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

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

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


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

 Copyright Google LLC All Rights Reserved.

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

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

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 Copyright (c) 2014, John MacFarlane

 All rights reserved.

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

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

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

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

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

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

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

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

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

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

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

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

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

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

 Copyright Google Inc. All Rights Reserved.

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

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

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

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var b44,h88,Sj5,FMj,arf,dyy,hY,$yM,Z4f,Fn,j5,oUN,M5y,rI,cF,nUj,XF4,H44,zk,Iq,NIN,t5y,WF,R8q,WMF,pFY,e8j,sq5,YjF,Gky,EUM,i45,wFF,Fa,$W,Pb,xyq,Z8,MP,Qq8,nM,IN,vUr,bMI,gG,s7,y8j,jNN,$PI,kW,K55,ZMN,oWU,E7,Me5,nWU,HM4,Xbn,ua5,qP,L5M,xW,OMN,r84,I8N,HN,BG8,W5r,nA,Rwy,oP,zw8,DPr,sNF,TGn,Ga5,RP,EWF,Vej,iMf,f8q,wbM,q7k,xPU,vWr,bAq,SfN,aEj,jPq,ZAn,M2M,oFF,sf,nFM,t2n,YF,rXq,Rdk,BA5,DAr,WYn,IE8,Gq,l84,Ef,ia,wA,AXf,la,JXM,UAn,pN4,vN,edM,Ca5,sPU,TAr,YfY,Gq8,kq8,V2f,xF,iAj,wNU,qfM,QPM,$$,vF8,yxn,Kc,aLM,$9N,h2M,LAF,
KAy,ZcI,Ock,n$8,tP5,cx8,R2j,D9j,ILy,U9M,pMf,CJY,sR5,Gpk,VP5,E$8,fL8,lLn,x9N,b$q,d5j,eP,$5I,PZn,Ktf,k$,VD,iJ,mA,yx,Sw,O$y,PE,tw8,Rh8,D55,IFj,B3f,uZ,WtI,N5,tk,r3,Rs,U5F,pEq,Jkq,ehy,CZn,ssq,Y3q,T3n,GH4,Vw8,BE,Is,Efj,i$M,fFy,lFN,wE8,q3F,x5I,QsM,s3,Yf,TH,GH,E3,vf4,iZ,hXj,dzY,w3,jar,$zU,LQU,q5,PRk,KQU,ZD8,Qx,nbf,vE,uXk,ODf,bR,tFf,N1k,rg5,cgn,RXI,zXn,SF,Dzr,IKU,FX,B1U,WQr,aa,d1,jF,$b,Agq,pBf,Uzf,LD,eXF,CRY,gb5,ZK,nD,XX,HB,OS,tg,saY,YSk,GP8,kPI,EbU,iDM,fKy,wBf,lKI,qSj,cB,xzI,Qaf,vbY,bq5,h9U,yW8,SDM,FnF,a9I,
DK,dKk,WB,Ag,jYr,P5f,Kn4,ZqM,MGM,nTj,X04,NBn,tG4,rWM,cWN,R94,z9n,DKN,AWn,CD,UKf,p0k,JWy,e94,C5I,gTq,YDF,QY8,mK8,vTF,yrn,S5U,ES,F2F,j4F,P_Y,K25,ZaI,oHF,Mhq,nHf,Xsy,Haf,Oa4,Nsk,$o4,th8,rrF,crn,Ru4,zuf,DoU,ICn,Bs4,W2j,Jrj,Uoy,gH4,euU,C_r,Ts4,Grr,krF,s44,EHn,Y5F,fCj,jG,wsY,$T,P0,lC5,xoM,Q4I,blF,Pnr,yi4,hrU,F$f,dUI,SWn,X4F,oZn,Hlq,u54,Ol8,Ngj,tYY,ci5,rik,RrY,zrn,DUY,Ib4,W$N,UUk,p4Y,JiF,Cny,err,lbM,MK,qW5,Qey,mUj,vZ8,bnU,hpM,SMM,Fw5,aIF,c0,RY,dlF,Zny,IY,AW,X95,uS4,BHn,eG,Ulq,p9f,g0n,epF,CNf,G$,sAr,YMf,
Gnj,knI,VRN,E0n,inj,fI4,w9N,qM8,xl8,mly,QA5,hvI,xT,v0,SvF,FB5,aBM,dON,j2F,$OF,Pj5,Zzy,KB8,oPN,o4,na,c98,O5,WBN,A9M,No,pLN,UOY,k6j,VKI,EPq,fB5,xOY,mO4,vPN,bKF,hmM,ydk,cs,FmM,I4,di5,jh8,$if,PFn,a74,Suf,Lm8,zr,ZKF,XXn,MZr,OK4,NdM,tZ8,cdf,RmN,Dif,Bd4,WmM,Ad5,Uij,Ca,pXI,emM,Jdk,CFF,shF,YH,GEU,kH,E5,Vi,iK5,TdN,xi8,yRr,aRM,FV5,$Sq,qo,PhN,KVN,MHF,nJY,vs,HPk,hi,yC,T_q,VHf,iPM,fRU,woI,lRq,qPy,SY,QLY,mSy,vJq,b2Y,ymy,Sbr,FdF,af4,$Z,Kl,$dU,Ldf,PzM,o6j,MMI,n6n,rm8,cmk,O24,zSU,DdM,If5,NU,rg,c4,Udq,p_I,zw,Jmf,eSN,
CzF,g65,YbU,Tkj,GNn,kNN,s0I,VMf,B4,i2n,xdn,W4,qbq,Q0M,E6Y,mdj,UW,bxM,hYF,yeY,SEj,any,Fpn,dQF,LpN,jHY,KpY,HxI,Oxk,t3q,RYj,cek,reM,zYY,DQ8,BOI,Ae4,Wpf,p5j,VC,eYy,CXn,gjr,sHn,Gty,V3N,kt5,EjF,ixI,fnN,w5M,qEf,QHn,bI5,yLr,hbN,Ml,Sa8,xQj,PE4,ZIF,op5,MxM,Nl,npU,HIM,Nhr,cLy,rLj,IWr,Bhn,WyN,ALq,pTn,swy,JLj,CE8,gpj,Ya5,ThY,kYN,GYr,Ep8,Vxk,eR,iI4,wTf,lW4,mtf,Vb,EM,vpN,bi5,iN,SnN,x0,Qb,mw,jU5,v9,PSU,yV,KkY,Zif,o8f,M74,dw,n8U,XiY,Hij,Oif,t7M,ROr,Dmq,Xl,IUj,BRy,Wk4,At8,Umf,piF,JtN,eOI,Ov,sUM,Yn8,TR4,GDk,kDy,V7M,
E8k,iif,fUk,wiU,lUI,qnY,xmU,I2,$CY,Li5,BL,WL,A9,Pkq,KiN,ZRf,ogU,MIf,ngn,XdU,tI4,rPn,cPk,Rg5,zgU,eK,gw,sv,YP,kP,VV,Ev,IT4,fz,WiF,ww,APU,UC4,lj,pdj,JP8,egr,Egk,fT4,Q3r,hqn,bZj,iRF,yo4,amI,OZN,Kcn,RqU,oxn,roI,zqj,yT,Imy,Fp,WcI,Ao4,ply,Jor,eqr,gx4,jZ,YBy,Tyj,Gjr,kj8,VCU,ExY,iZf,scN,lm5,qBY,xhk,LK,y6F,SQ8,hkU,a15,dJ5,$JY,LIq,j_5,X3M,ubY,NU5,r6j,Ou,WI8,I1Y,BUI,ek4,gSj,s_U,YQN,TU5,GK4,kKf,BX,Q_r,vS4,qQN,l1U,mJk,ESN,hzN,Z9M,Ffq,avF,dG4,r4U,Rzj,ts8,A4f,NS8,Vj4,WfM,Sk4,Kf8,c45,b9U,f1M,itf,w3y,xJk,O9N,wd,i9f,
w2U,lvj,qkI,xGN,a5I,PMN,KlY,FC,orI,XCM,NC4,OhI,rBI,cBy,zTN,I5U,Dn8,BCr,Wl4,ABk,Unn,JB4,pCk,nP,Go8,TCI,YF5,ihq,koI,f5f,ErY,wCY,l55,mnn,xnN,Q7U,bwq,SoM,Fof,jrU,$Dr,LoM,Pqn,Zwk,MDN,RL,nGM,usM,XVr,OwI,cFF,RlY,IAn,Won,AR,UP,JFF,elN,pP,JR,Cqn,eH,CP,gGI,g_,srU,sP,Yoq,Tx4,TU,GRq,kRM,VD8,EGq,iwM,wVF,fA4,qoU,mDn,Qrn,vG5,bWF,lA4,hN4,Fgk,S9k,xDF,aaf,d$M,ih,j8U,Lgj,$$U,PGf,Kgf,o7n,ZWM,M4M,w_,XfM,HW4,n7M,OW4,NeU,t48,zNk,BeM,J_U,s8I,lh,Gf5,kfj,qS,V4y,bz,hm,q9r,Qy,Fu,x$F,Q8f,v75,bFN,y1n,FPF,aNF,dq4,jXq,Pm5,nYq,oY8,
LPF,Xv8,HFF,P_,Mk8,uWI,o0,OFq,NQY,tkr,r1I,Dqq,c1q,zyr,A1r,UqY,gYF,Cmy,TQ8,fNU,wvn,qVF,QXM,mqU,b8k,hok,y2k,FL5,aS8,dM4,LLU,oBI,MVn,P48,XqU,uH8,H8I,nBq,O88,tV8,r2f,c25,RoM,zo5,zN,Df,W_,Ub,BX4,WLI,UMj,eor,p2,Jm,C4j,eM,YeY,TX8,GGf,gk,fSr,xM5,mMY,vBU,bvN,yUk,S65,FXU,j6f,Y6,$kk,KXF,TN,Zvn,Xm4,GN,OvN,k6,iz,f2,Nbk,rUf,tWj,RWI,zWr,DkF,Iyj,cUk,pmn,JU8,Ce5,s6U,kI4,GIq,VWf,ivr,fy5,wmI,lyU,q6f,xk4,Q6M,bGq,mkn,Qn,y7Y,md,Swn,bX,he,FWF,alf,dIf,jE4,$I8,yB,LWU,PDy,KW5,ZGF,MA8,nur,XRM,HG4,uiN,Nvr,OGf,S3,r7n,R0y,z0y,
DIr,IlN,A7f,pR4,j3,e0q,guq,sEF,Ywy,Tvf,GSj,kSN,VAM,Eu4,UIF,J7y,iGN,flN,xIF,QEj,mIk,vu8,M65,HHk,ueq,OHj,XaM,zHY,B45,D8U,WDq,pa8,eHn,gRk,Gy4,T4U,iHY,uX,f6n,waM,OE,l6q,NQ,q$U,x8N,QGF,vRj,m84,bp8,hZI,yD4,SYj,PY5,Zp4,Myf,oe4,jOY,a$y,XHj,u3f,cDj,RZn,I$j,JD5,CYY,RH,gen,YYI,T$k,kQj,f$I,qYM,mEj,vey,bTj,hKI,dBn,yV4,PtM,Ksk,ZT5,MQj,B5,nq8,HTF,uKY,OTk,N5q,tQY,rVj,cVI,zKk,DBy,Je,IXr,B5M,AVk,Cx,WsM,pIU,gqF,Yj,sBf,YRj,T5N,VQF,Eqn,G9j,fXU,xBn,QBI,mBk,iX,vq4,SpN,F85,qQ,jbU,aGr,def,PVj,K8j,ZEr,XJY,OEI,uVI,HEN,NJY,
rQ5,cQn,BJ4,RI8,W8I,UeN,AQY,sbI,GmN,Vpq,iEq,bjI,AL,yTU,duf,$un,BT,GY,Mg8,uIn,HjY,N2M,tgn,cTU,rTN,RMk,zMU,kp,mCy,naN,OjY,XA8,Yp,B2N,WJM,ATF,vT,eMI,bS,CC8,gaU,skj,YUN,T2I,yE,Gcq,kcn,Vgy,Ea4,ijq,dR,fek,qUf,Qkk,muq,ahU,jzF,$Lq,L3f,K35,Z0j,ni,M1k,nXq,Xy5,H0Y,uq4,O0Y,t15,c0k,zUn,DLk,py4,A0N,J0q,gX5,szM,rR,YNF,TDr,G2r,EXn,fhF,i0k,lhI,xL4,DU,mLU,vXN,Qzr,bdN,hGj,SGr,a4N,Fxr,dbM,yJM,jDU,$bF,Lxy,Pgf,Kx5,ZdI,oNy,MS8,nNU,ucq,Hdf,Odr,tSU,Nc8,IU,rJk,zGF,Wxn,cJF,pjF,JJr,eGf,Cg4,YGU,f4U,wj8,qG5,xbN,GD,beI,F08,j$f,
k8,K0I,$1q,L0Y,Puq,Zej,He5,lS,uBY,Oey,tm8,rKI,cK8,R4y,D14,Iwf,g9Y,pPN,e4j,YtI,s$U,Taf,GuF,Vm4,iey,wPr,qtk,x15,m15,$Tk,KEn,odF,Mb5,nd8,Xgn,Hff,Of4,NPU,cvn,RcY,zc8,DTU,IVj,BPM,WEy,AvN,jxM,KqI,dq,jI,$g,Zkk,oof,KR,noI,REY,ApN,B7k,wDy,lPq,qzn,Hkq,cp4,N7M,Qx8,mpN,voN,br8,Dpk,hfq,SXj,ai8,$YN,Lzy,tP,uw8,NEI,rZn,cZM,DYI,BEk,Iik,UYn,JZI,GBk,YX8,CHn,TEU,gw5,kBn,fif,gq,s0,hxj,mYj,Sh5,FCy,dxy,ji5,TM,$xn,KCr,Z1N,oIf,Miy,rCM,tiM,lk,BnU,vd,AC5,UxN,p8j,JCn,exf,Clr,gIU,siI,Yhy,Tny,GdF,ho,kd5,Vik,EIj,i1Y,f08,w8q,l0n,
qhM,SC,xxN,QiU,mxN,vIk,bX4,hQf,yaN,SHy,FZr,aYf,djI,j9q,$jF,dy,PQI,ZXn,Mq8,HXU,NpN,tq4,ra5,RQ5,DjU,IYY,Bp4,Xf,JaY,Ujj,eQN,CQq,gMf,Tpk,GeU,kef,EM8,Bl,fYn,Dm,lYn,qHr,Wl,xjN,Q9k,mj4,vMM,UB,Sc4,a3j,Pyq,Lrr,ZN5,olj,Tj,Mln,nlr,HNF,ON5,Nm4,rff,cfq,u2F,R3k,Wrn,Jfk,e3I,Gj,CyF,gln,kZN,slU,TmI,GZf,l3U,ElY,qc5,Qlj,vlI,bbF,hDr,yEU,SC5,FHj,dr8,jv8,$r8,LHI,P04,Zbn,MdN,HbM,tdN,RDN,DrF,WHM,l3,AEy,Urj,pe5,JEk,eDk,gOq,svU,YCj,Tjq,GJy,kJy,Vd4,EOn,ib5,fxn,we5,qCI,lxN,mrN,bU5,QU,h6f,Fu8,SIF,juM,$3f,Lur,ZUI,nVI,MEj,KuN,
uMF,HUY,cNk,OUn,Sj,tEf,ANq,D3r,Ity,Bty,WuF,U34,JNf,p$5,Fb,a_,GTM,C2r,TtY,YIr,gVn,suq,EVk,ftF,ltk,w$k,qIj,vVU,m3j,hFN,FGf,dZr,SLN,jmn,LGr,$Z8,KG4,MNy,P3,nCj,XWN,OC8,RF8,AuM,Z1,pW8,eF5,ui,smf,C65,gCY,H3,klk,YLN,T05,VNF,iCI,ECf,lDf,qLj,Qm8,mZk,vCM,bgy,hJ4,S2k,FKq,pt,dW8,Ps8,KK4,gU,Zg8,MvM,csI,kS,uJI,rsj,OgU,N6j,Ipq,DWk,UWn,B6n,p7U,JsN,EQ,eJn,Csq,g1r,wU,snq,ii,G1M,k1Y,Vv4,E1N,ig4,w7I,Qnn,mWN,h1f,ylY,F1j,jWM,asF,dc4,$cf,P7j,K15,ZsI,o3k,Mtr,XZf,utU,OsY,ttj,Nln,rlU,clN,z14,Dcr,C78,Jlq,YKN,TlY,fsj,wZq,ls4,
qKj,xck,QW8,bLM,hn5,y54,F4k,aM5,dFN,jZN,$FU,L4F,K4Y,ZLI,oA4,oF,HLj,Xzn,nAf,Mcq,OL4,r5f,NzI,RnY,zn4,IMU,BzY,W45,A5f,UFn,gAy,pzn,J5k,enY,sZf,YJk,TzI,C$j,H2,Vcr,iLf,EAq,Ok,fMr,lM5,qJU,xFf,wzI,QZn,mFI,vAN,b_q,hsj,S8y,Fhy,aH5,dgj,Lh4,$gq,M$F,j5y,t4,nsk,PrY,osY,H_5,uzf,O_I,NF5,t$k,cOj,Rsf,zsr,IHY,BF4,AO8,pkn,s55,Crk,gsM,esN,JOj,Y8U,Uk,TFI,p9,G75,k7I,wk4,q8q,xgF,Q5I,mgn,vsN,byF,YE,TA,aqU,yzk,h7U,SgU,Xw5,MzY,F6n,oz8,rzj,czf,R75,z75,DH4,W64,UH8,Jzq,C9f,gz8,sTk,kij,Gi8,VzM,iyy,dC,lq4,qgj,xH8,QTn,mHr,vzf,bon,
$r,Lh,SyI,FO4,dw4,LO5,ncN,NT4,Ooq,tLf,cyF,Ri5,ziq,Dw5,I_j,BT4,nh,WO8,gc4,sVF,Jyy,p1y,CLy,ei4,VL8,Ec8,io8,f_f,w1M,l_F,QVn,xwU,qyN,d6I,F_5,jJF,$6n,L_y,ZYq,Muq,PxM,K_U,rSn,RVM,D6f,Bo4,ASf,pnf,gk8,sJn,Y15,kLq,GL4,ToY,Vuk,Ek4,iYF,fQn,wnU,lQn,q15,x6j,QJj,m6j,bVy,haj,ywM,SsF,FRy,aj8,jty,$NN,LRU,PPr,KRq,ZVY,XKU,HVf,OVf,t0M,Nrn,rwq,WC,cwF,RaM,zaY,DNr,Aw5,WRf,UNn,pKI,Jwy,ea5,CPj,gi4,stf,Ys8,Trj,G0N,k0N,V05,EiF,iVU,fjn,ljn,wKN,qs5,xN4,Qtk,mNI,viI,b6F,h_f,y$N,Yr,F95,azq,d2n,jCn,$2Y,P1f,K9I,Z6N,ot4,MBj,ntU,H64,
uGk,N9q,Ve,c$4,B9k,D2F,z_4,R_8,Izk,U2y,ph4,J$5,e_j,gtN,sCn,YrI,Gg8,T9j,kgk,VBN,EtN,wh5,lzk,qrj,x2j,QCy,m2y,h5N,ycU,vC,jjf,$vr,P8j,ohk,Z3Y,Mfy,nh5,bq,yH,H3q,uPI,ar,dx,rcU,O38,NKf,z5U,DvY,IkU,BKq,pUN,e5q,C8k,ghF,sjM,Ymq,GX5,kXF,VfY,Eh8,i3F,fkj,wU8,Lw,lkU,qmN,Kw,xv5,QjF,mvN,vhk,bBf,hBM,MD,nw,ynI,Sxy,Xs,F7y,au5,d7f,j1Y,L7Y,PO4,ZBN,HBj,Xrq,n44,uTY,OB8,D7y,rnj,cnU,RBk,tTj,zB4,Iuq,BiI,AnN,pr5,uq,CON,g4N,s1I,YxI,TiU,kb4,E4k,wrM,Q1j,qxn,Oo,lur,yAr,FNf,ND,aJj,d0k,jSF,$0k,LNq,KN4,Zu4,Mnn,nDN,Huk,u_4,rAk,tnI,
RRI,zRU,D0I,IJ5,WN5,AAM,U0F,pYF,JAj,eRF,CIF,gDf,sSj,TYY,Ghy,fJ5,wYF,lJU,qZ4,BV,m08,bSM,hPN,yGq,Sin,FFy,acq,jIN,$RY,LFy,PBM,ZSk,oQU,MOy,Uo,nQj,XOk,OSj,NVr,pw,JF,cG8,tOF,RPY,IcY,zP5,BV5,AGn,so,URF,pOy,JGf,gQj,YiN,YG,Gzn,kzY,VOI,EQ8,iSY,fc4,wOF,lcI,mRI,vQq,Sq8,bmn,yMM,FT4,adr,d_8,LTk,PWr,KTy,oKy,M_j,Nuq,OmU,D_j,WTn,qD,AMf,U_f,xUN,xG,pGr,JMU,CWY,YqN,Tur,wGr,ldk,qqF,x_q,QKf,m_Y,bQy,h$M,S4q,aOr,yHI,Fvf,jgn,dVM,Lv8,ZQ4,Pb5,o5j,M8j,n5N,Xpn,HQj,uOU,NL4,OQq,R$q,IOj,z$M,BLF,WvI,AHM,a8,UVq,ppM,j4,e$f,JHI,Cb4,
sgj,g5n,kVn,V8M,iQU,fOU,lO8,q4I,xVY,Qgy,b54,y3I,agU,FSU,dX8,jfj,$Xr,Z5q,r3F,X68,RAM,zAU,Igr,B8y,p68,J3Y,eAF,Cvf,gnF,sfU,G5n,k5F,VoM,EnU,w64,qOy,xXq,lgk,mXk,Qfr,Sl8,Fef,aZf,da4,joY,$aI,Le5,Keq,Mry,n_N,XSn,OJU,uZk,rIr,Rtn,ztf,DaI,IZk,BMF,AI8,Wer,pSM,sok,kxn,Gx4,VrM,E_5,iJq,wS5,U9,qln,CW,Qo8,v_r,b7y,ao5,jMn,Kjy,ov4,MJy,Xt5,H7N,ujf,NWn,rby,cbF,zjr,BWN,Iok,D4Y,Gf,AbM,WjF,U4f,ptU,Jbf,ejj,CdN,gvj,sMU,TWU,GFq,kFj,VJy,Evq,i7q,foY,wtk,loN,qdq,QM5,m4F,vvY,jdf,$sq,LUI,KUq,ZOr,om8,Xc8,x7,rh8,chY,zCj,DsN,I2F,BZn,
WUF,mg,sdY,Mo,vf,h1,YT5,TZN,VXU,iOr,Emf,Sk,f2N,wcq,l2N,qTM;b44=function(){var b,h;return typeof CSS!=="undefined"&&((h=(b=CSS).supports)==null?void 0:h.call(b,"selector(:has(*))"))};
h88=function(b){return b.visibility!=="hidden"&&b.display!=="none"};
Sj5=function(b){if(b44()||b.tagName!=="DETAILS"?!b.matches(yYr):b.querySelector("summary")!==null)return-1;b=b.getAttribute("tabindex")||"0";return Number(b)};
FMj=function(b){return b.some(function(h){return Sj5(h)>0})};
arf=function(b){if(b.textContent||b.ariaLabel)return!0;if(b instanceof HTMLInputElement){if(!b.labels)return!1;b=_.L(b.labels);for(var h=b.next();!h.done;h=b.next())if(h.value.textContent)return!0}return!1};
dyy=function(b){return b.sort(function(h,y){return Sj5(y)-Sj5(h)})};
_.jqF=function(b){b=Array.from(b.querySelectorAll(yYr)).filter(function(h){return(h88(h.style)?h88(window.getComputedStyle(h)):!1)&&arf(h)});
return FMj(b)?dyy(b):b};
_.bf=function(b,h){if(Error.captureStackTrace)Error.captureStackTrace(this,_.bf);else{var y=Error().stack;y&&(this.stack=y)}b&&(this.message=String(b));h!==void 0&&(this.cause=h)};
hY=function(){throw Error("E");};
$yM=function(b,h){h=String.fromCharCode.apply(null,h);return b==null?h:b+h};
Z4f=function(b){var h=!1;h=h===void 0?!1:h;if(LMj){if(h&&(PfU?!b.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(b)))throw Error("F");b=(KMj||(KMj=new TextEncoder)).encode(b)}else{for(var y=0,S=new Uint8Array(3*b.length),F=0;F<b.length;F++){var a=b.charCodeAt(F);if(a<128)S[y++]=a;else{if(a<2048)S[y++]=a>>6|192;else{if(a>=55296&&a<=57343){if(a<=56319&&F<b.length){var P=b.charCodeAt(++F);if(P>=56320&&P<=57343){a=(a-55296)*1024+P-56320+65536;S[y++]=a>>18|
240;S[y++]=a>>12&63|128;S[y++]=a>>6&63|128;S[y++]=a&63|128;continue}else F--}if(h)throw Error("F");a=65533}S[y++]=a>>12|224;S[y++]=a>>6&63|128}S[y++]=a&63|128}}b=y===S.length?S:S.subarray(0,y)}return b};
Fn=function(b){_.S5.setTimeout(function(){throw b;},0)};
_.aq=function(b,h){return b.lastIndexOf(h,0)==0};
j5=function(b,h){var y=b.length-h.length;return y>=0&&b.indexOf(h,y)==y};
_.$U=function(b){return/^[\s\xa0]*$/.test(b)};
_.PF=function(b,h){return b.indexOf(h)!=-1};
_.Zr=function(b,h){return _.PF(b.toLowerCase(),h.toLowerCase())};
_.n4=function(b,h){var y=0;b=My(String(b)).split(".");h=My(String(h)).split(".");for(var S=Math.max(b.length,h.length),F=0;y==0&&F<S;F++){var a=b[F]||"",P=h[F]||"";do{a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""];P=/(\d*)(\D*)(.*)/.exec(P)||["","","",""];if(a[0].length==0&&P[0].length==0)break;y=oUN(a[1].length==0?0:parseInt(a[1],10),P[1].length==0?0:parseInt(P[1],10))||oUN(a[2].length==0,P[2].length==0)||oUN(a[2],P[2]);a=a[3];P=P[3]}while(y==0)}return y};
oUN=function(b,h){return b<h?-1:b>h?1:0};
_.HF=function(){var b=_.S5.navigator;return b&&(b=b.userAgent)?b:""};
M5y=function(b){if(!uf||!tY)return!1;for(var h=0;h<tY.brands.length;h++){var y=tY.brands[h].brand;if(y&&_.PF(y,b))return!0}return!1};
rI=function(b){return _.PF(_.HF(),b)};
cF=function(){return uf?!!tY&&tY.brands.length>0:!1};
nUj=function(){return cF()?!1:rI("Opera")};
XF4=function(){return cF()?!1:rI("Trident")||rI("MSIE")};
H44=function(){return cF()?M5y("Microsoft Edge"):rI("Edg/")};
zk=function(){return rI("Firefox")||rI("FxiOS")};
_.un5=function(){return rI("Safari")&&!(Iq()||(cF()?0:rI("Coast"))||nUj()||(cF()?0:rI("Edge"))||H44()||(cF()?M5y("Opera"):rI("OPR"))||zk()||rI("Silk")||rI("Android"))};
Iq=function(){return cF()?M5y("Chromium"):(rI("Chrome")||rI("CriOS"))&&!(cF()?0:rI("Edge"))||rI("Silk")};
_.O4q=function(){return rI("Android")&&!(Iq()||zk()||nUj()||rI("Silk"))};
NIN=function(b){var h={};b.forEach(function(y){h[y[0]]=y[1]});
return function(y){return h[y.find(function(S){return S in h})]||""}};
t5y=function(b){var h=_.HF();if(b==="Internet Explorer"){if(XF4())if((b=/rv: *([\d\.]*)/.exec(h))&&b[1])h=b[1];else{b="";var y=/MSIE +([\d\.]+)/.exec(h);if(y&&y[1])if(h=/Trident\/(\d.\d)/.exec(h),y[1]=="7.0")if(h&&h[1])switch(h[1]){case "4.0":b="8.0";break;case "5.0":b="9.0";break;case "6.0":b="10.0";break;case "7.0":b="11.0"}else b="7.0";else b=y[1];h=b}else h="";return h}var S=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");y=[];for(var F;F=S.exec(h);)y.push([F[1],F[2],F[3]||void 0]);
h=NIN(y);switch(b){case "Opera":if(nUj())return h(["Version","Opera"]);if(cF()?M5y("Opera"):rI("OPR"))return h(["OPR"]);break;case "Microsoft Edge":if(cF()?0:rI("Edge"))return h(["Edge"]);if(H44())return h(["Edg"]);break;case "Chromium":if(Iq())return h(["Chrome","CriOS","HeadlessChrome"])}return b==="Firefox"&&zk()||b==="Safari"&&_.un5()||b==="Android Browser"&&_.O4q()||b==="Silk"&&rI("Silk")?(h=y[2])&&h[1]||"":""};
_.rYI=function(b){if(cF()&&b!=="Silk"){var h=tY.brands.find(function(y){return y.brand===b});
if(!h||!h.version)return NaN;h=h.version.split(".")}else{h=t5y(b);if(h==="")return NaN;h=h.split(".")}return h.length===0?NaN:Number(h[0])};
WF=function(){return uf?!!tY&&!!tY.platform:!1};
_.cYy=function(){return WF()?tY.platform==="Android":rI("Android")};
R8q=function(){return rI("iPhone")&&!rI("iPod")&&!rI("iPad")};
_.AY=function(){return R8q()||rI("iPad")||rI("iPod")};
_.z8U=function(){return WF()?tY.platform==="macOS":rI("Macintosh")};
_.DyY=function(){return WF()?tY.platform==="Windows":rI("Windows")};
_.Irk=function(){return WF()?tY.platform==="Chrome OS":rI("CrOS")};
_.Uj=function(b){return b[b.length-1]};
_.p4=function(b,h,y){h=_.BIN(b,h,y);return h<0?null:typeof b==="string"?b.charAt(h):b[h]};
_.BIN=function(b,h,y){for(var S=b.length,F=typeof b==="string"?b.split(""):b,a=0;a<S;a++)if(a in F&&h.call(y,F[a],a,b))return a;return-1};
WMF=function(b){for(var h=_.e5,y=typeof b==="string"?b.split(""):b,S=b.length-1;S>=0;S--)if(S in y&&h.call(void 0,y[S],S,b))return S;return-1};
_.sj=function(b,h){return _.C4(b,h)>=0};
_.AYf=function(b,h){_.sj(b,h)||b.push(h)};
_.Gk=function(b,h){h=_.C4(b,h);var y;(y=h>=0)&&_.Uyk(b,h);return y};
_.Uyk=function(b,h){Array.prototype.splice.call(b,h,1)};
_.Ej=function(b){var h=b.length;if(h>0){for(var y=Array(h),S=0;S<h;S++)y[S]=b[S];return y}return[]};
_.wI=function(b,h){for(var y=1;y<arguments.length;y++){var S=arguments[y];if(_.f4(S)){var F=b.length||0,a=S.length||0;b.length=F+a;for(var P=0;P<a;P++)b[F+P]=S[P]}else b.push(S)}};
_.JYk=function(b,h,y,S){Array.prototype.splice.apply(b,pFY(arguments,1))};
pFY=function(b,h,y){return arguments.length<=2?Array.prototype.slice.call(b,h):Array.prototype.slice.call(b,h,y)};
e8j=function(b,h){h=h||b;for(var y=0,S=0,F={};S<b.length;){var a=b[S++],P=_.lf(a)?"o"+_.mM(a):(typeof a).charAt(0)+a;Object.prototype.hasOwnProperty.call(F,P)||(F[P]=!0,h[y++]=a)}h.length=y};
_.gUI=function(b,h,y){y=y||_.Cfr;for(var S=0,F=b.length,a;S<F;){var P=S+(F-S>>>1);var K=y(h,b[P]);K>0?S=P+1:(F=P,a=!K)}return a?S:-S-1};
_.bo=function(b,h,y){if(!_.f4(b)||!_.f4(h)||b.length!=h.length)return!1;var S=b.length;y=y||sq5;for(var F=0;F<S;F++)if(!y(b[F],h[F]))return!1;return!0};
_.Cfr=function(b,h){return b>h?1:b<h?-1:0};
sq5=function(b,h){return b===h};
YjF=function(b,h,y){h=Array.prototype.splice.call(b,h,1);Array.prototype.splice.call(b,y,0,h[0])};
Gky=function(b){return TIn[b]||""};
EUM=function(b){if(!kkj)return _.h8(b);b=V5n.test(b)?b.replace(V5n,Gky):b;b=atob(b);for(var h=new Uint8Array(b.length),y=0;y<b.length;y++)h[y]=b.charCodeAt(y);return h};
i45=function(b,h){b.__closure__error__context__984382||(b.__closure__error__context__984382={});b.__closure__error__context__984382.severity=h};
_.yW=function(b){b=Error(b);i45(b,"warning");return b};
wFF=function(b,h){if(b!=null){var y;var S=(y=frq)!=null?y:frq={};y=S[b]||0;y>=h||(S[b]=y+1,b=Error(),i45(b,"incident"),Fn(b))}};
Fa=function(b,h,y){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(y===void 0?0:y)&&Symbol.for&&b?Symbol.for(b):b!=null?Symbol(b):Symbol():h};
$W=function(b,h){dG||_.je in b||lrU(b,qjn);b[_.je]|=h};
Pb=function(b,h){dG||_.je in b||lrU(b,qjn);b[_.je]=h};
xyq=function(b){if(4&b)return 512&b?512:1024&b?1024:0};
Z8=function(b){$W(b,34);return b};
MP=function(b){$W(b,8192);return b};
Qq8=function(b){$W(b,32);return b};
nM=function(){return typeof BigInt==="function"};
IN=function(b,h){return h===void 0?b.copyOnWrite!==RN&&!!(2&(b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.je]|0)):!!(2&h)&&b.copyOnWrite!==RN};
_.ee=function(b,h){if(b!=null)if(typeof b==="string")b=b?new A8(b,pM):_.J8();else if(b.constructor!==A8)if(my8&&b!=null&&b instanceof Uint8Array)b=b.length?new A8(new Uint8Array(b),pM):_.J8();else{if(!h)throw Error();b=void 0}return b};
vUr=function(b,h){if(typeof h!=="number"||h<0||h>=b.length)throw Error();};
bMI=function(b,h,y){var S=h&128?0:-1,F=b.length,a;if(a=!!F)a=b[F-1],a=a!=null&&typeof a==="object"&&a.constructor===Object;var P=F+(a?-1:0);for(h=h&128?1:0;h<P;h++)y(h-S,b[h]);if(a){b=b[F-1];for(var K in b)!isNaN(K)&&y(+K,b[K])}};
gG=function(b){return b&128?CM:void 0};
s7=function(b){b.isGuard_doNotManuallySetPrettyPlease=!0;return b};
y8j=function(){var b=hwj;return s7(function(h){for(var y in b)if(h===b[y]&&!/^[0-9]+$/.test(y))return!0;return!1})};
_.YW=function(b){var h=b;if(S7N(h)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(h))throw Error(String(h));}else if(F5Y(h)&&!Number.isSafeInteger(h))throw Error(String(h));return a8U?BigInt(b):b=dPf(b)?b?"1":"0":S7N(b)?b.trim()||"0":String(b)};
jNN=function(b,h){if(b.length>h.length)return!1;if(b.length<h.length||b===h)return!0;for(var y=0;y<b.length;y++){var S=b[y],F=h[y];if(S>F)return!1;if(S<F)return!0}};
$PI=function(b){var h=b>>>0;Ta=h;Ga=(b-h)/4294967296>>>0};
kW=function(b){if(b<0){$PI(-b);var h=_.L(L5M(Ta,Ga));b=h.next().value;h=h.next().value;Ta=b>>>0;Ga=h>>>0}else $PI(b)};
K55=function(b){var h=Pon||(Pon=new DataView(new ArrayBuffer(8)));h.setFloat32(0,+b,!0);Ga=0;Ta=h.getUint32(0,!0)};
ZMN=function(b,h){var y=h*4294967296+(b>>>0);return Number.isSafeInteger(y)?y:_.VW(b,h)};
oWU=function(b,h){return _.YW(nM()?BigInt.asUintN(64,(BigInt(h>>>0)<<BigInt(32))+BigInt(b>>>0)):_.VW(b,h))};
E7=function(b,h){var y=h&2147483648;y&&(b=~b+1>>>0,h=~h>>>0,b==0&&(h=h+1>>>0));b=ZMN(b,h);return typeof b==="number"?y?-b:b:y?"-"+b:b};
Me5=function(b,h){return nM()?_.YW(BigInt.asIntN(64,(BigInt.asUintN(32,BigInt(h))<<BigInt(32))+BigInt.asUintN(32,BigInt(b)))):_.YW(_.fM(b,h))};
nWU=function(b){var h=Ta,y=Ga,S=y>>31;y=(y<<1|h>>>31)^S;b(h<<1^S,y)};
HM4=function(b,h){return Xbn(b,h,E7)};
Xbn=function(b,h,y){var S=-(b&1);b=(b>>>1|h<<31)^S;h=h>>>1^S;return y(b,h)};
_.VW=function(b,h){h>>>=0;b>>>=0;if(h<=2097151)var y=""+(4294967296*h+b);else nM()?y=""+(BigInt(h)<<BigInt(32)|BigInt(b)):(y=(b>>>24|h<<8)&16777215,h=h>>16&65535,b=(b&16777215)+y*6777216+h*6710656,y+=h*8147497,h*=2,b>=1E7&&(y+=b/1E7>>>0,b%=1E7),y>=1E7&&(h+=y/1E7>>>0,y%=1E7),y=h+ua5(y)+ua5(b));return y};
ua5=function(b){b=String(b);return"0000000".slice(b.length)+b};
_.fM=function(b,h){h&2147483648?nM()?b=""+(BigInt(h|0)<<BigInt(32)|BigInt(b>>>0)):(h=_.L(L5M(b,h)),b=h.next().value,h=h.next().value,b="-"+_.VW(b,h)):b=_.VW(b,h);return b};
qP=function(b){if(b.length<16)kW(Number(b));else if(nM())b=BigInt(b),Ta=Number(b&BigInt(4294967295))>>>0,Ga=Number(b>>BigInt(32)&BigInt(4294967295));else{var h=+(b[0]==="-");Ga=Ta=0;for(var y=b.length,S=h,F=(y-h)%6+h;F<=y;S=F,F+=6)S=Number(b.slice(S,F)),Ga*=1E6,Ta=Ta*1E6+S,Ta>=4294967296&&(Ga+=Math.trunc(Ta/4294967296),Ga>>>=0,Ta>>>=0);h&&(h=_.L(L5M(Ta,Ga)),b=h.next().value,h=h.next().value,Ta=b,Ga=h)}};
L5M=function(b,h){h=~h;b?b=~b+1:h+=1;return[b,h]};
xW=function(b){return Array.prototype.slice.call(b)};
_.m5=function(b,h){throw Error(h===void 0?"unexpected value "+b+"!":h);};
_.hX=function(b){if(b!=null&&typeof b!=="number")throw Error("L`"+typeof b+"`"+b);return b};
_.yf=function(b){if(b==null||typeof b==="number")return b;if(b==="NaN"||b==="Infinity"||b==="-Infinity")return Number(b)};
OMN=function(b){if(b!=null&&typeof b!=="boolean")throw Error("M`"+_.S2(b)+"`"+b);return b};
_.NGj=function(b){if(b==null||typeof b==="boolean")return b;if(typeof b==="number")return!!b};
_.aP=function(b){switch(typeof b){case "bigint":return!0;case "number":return Fx(b);case "string":return teF.test(b);default:return!1}};
_.$F=function(b){if(!Fx(b))throw _.yW("enum");return b|0};
_.PN=function(b){return b==null?b:Fx(b)?b|0:void 0};
r84=function(b){if(typeof b!=="number")throw _.yW("int32");if(!Fx(b))throw _.yW("int32");return b|0};
_.KA=function(b){return b==null?b:r84(b)};
_.ZE=function(b){if(b==null)return b;if(typeof b==="string"&&b)b=+b;else if(typeof b!=="number")return;return Fx(b)?b|0:void 0};
_.c8M=function(b){if(b==null)return b;if(typeof b==="string"&&b)b=+b;else if(typeof b!=="number")return;return Fx(b)?b>>>0:void 0};
I8N=function(b){var h=0;h=h===void 0?0:h;if(!_.aP(b))throw _.yW("int64");var y=typeof b;switch(h){case 512:switch(y){case "string":return oP(b);case "bigint":return String(MA(64,b));default:return Rwy(b)}case 1024:switch(y){case "string":return zw8(b);case "bigint":return _.YW(MA(64,b));default:return DPr(b)}case 0:switch(y){case "string":return oP(b);case "bigint":return _.YW(MA(64,b));default:return nA(b)}default:return _.m5(h,"Unknown format requested type for int64")}};
HN=function(b){return b==null?b:I8N(b)};
BG8=function(b){var h=b.length;if(b[0]==="-"?h<20||h===20&&b<="-9223372036854775808":h<19||h===19&&b<="9223372036854775807")return b;qP(b);return _.fM(Ta,Ga)};
W5r=function(b){if(b[0]==="-")var h=!1;else h=b.length,h=h<20?!0:h===20&&b<="18446744073709551615";if(h)return b;qP(b);return _.VW(Ta,Ga)};
nA=function(b){b=Of(b);NA(b)||(kW(b),b=E7(Ta,Ga));return b};
_.A85=function(b){b=Of(b);b>=0&&NA(b)||(kW(b),b=ZMN(Ta,Ga));return b};
Rwy=function(b){b=Of(b);NA(b)?b=String(b):(kW(b),b=_.fM(Ta,Ga));return b};
_.UPF=function(b){b=Of(b);b>=0&&NA(b)?b=String(b):(kW(b),b=_.VW(Ta,Ga));return b};
oP=function(b){var h=Of(Number(b));if(NA(h))return String(h);h=b.indexOf(".");h!==-1&&(b=b.substring(0,h));return BG8(b)};
zw8=function(b){var h=Of(Number(b));if(NA(h))return _.YW(h);h=b.indexOf(".");h!==-1&&(b=b.substring(0,h));return nM()?_.YW(MA(64,BigInt(b))):_.YW(BG8(b))};
DPr=function(b){return NA(b)?_.YW(nA(b)):_.YW(Rwy(b))};
_.pb8=function(b){return NA(b)?_.YW(_.A85(b)):_.YW(_.UPF(b))};
_.J8N=function(b){var h=Of(Number(b));if(NA(h)&&h>=0)return String(h);h=b.indexOf(".");h!==-1&&(b=b.substring(0,h));return W5r(b)};
_.ew4=function(b){var h=Of(Number(b));if(NA(h)&&h>=0)return _.YW(h);h=b.indexOf(".");h!==-1&&(b=b.substring(0,h));return nM()?_.YW((0,_.tX)(64,BigInt(b))):_.YW(W5r(b))};
_.gW4=function(b){if(b==null)return b;if(typeof b==="bigint")return CoY(b)?b=Number(b):(b=MA(64,b),b=CoY(b)?Number(b):String(b)),b;if(_.aP(b))return typeof b==="number"?nA(b):oP(b)};
sNF=function(b,h){h=h===void 0?!1:h;var y=typeof b;if(b==null)return b;if(y==="bigint")return String(MA(64,b));if(_.aP(b))return y==="string"?oP(b):h?Rwy(b):nA(b)};
_.Y7y=function(b){var h=typeof b;if(b==null)return b;if(h==="bigint")return _.YW(MA(64,b));if(_.aP(b))return h==="string"?zw8(b):DPr(b)};
TGn=function(b){if(b==null)return b;var h=typeof b;if(h==="bigint")return String(MA(64,b));if(_.aP(b)){if(h==="string")return oP(b);if(h==="number")return nA(b)}};
Ga5=function(b){if(b==null)return b;var h=typeof b;if(h==="bigint")return String((0,_.tX)(64,b));if(_.aP(b)){if(h==="string")return _.J8N(b);if(h==="number")return _.A85(b)}};
_.cN=function(b){if(typeof b!=="string")throw Error();return b};
RP=function(b){if(b!=null&&typeof b!=="string")throw Error();return b};
_.zq=function(b){return b==null||typeof b==="string"?b:void 0};
EWF=function(b,h,y,S){if(b!=null&&b[WN]===AX)return b;if(!Array.isArray(b))return y?S&2?h[kaY]||(h[kaY]=Vej(h)):new h:void 0;y=b[_.je]|0;S=y|S&32|S&2;S!==y&&Pb(b,S);return new h(b)};
Vej=function(b){b=new b;Z8(b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return b};
iMf=function(b,h,y){b=h?r84(b):_.ZE(b);return b==null?y?0:void 0:b|0};
f8q=function(b){return b};
wbM=function(b){return b};
q7k=function(b,h,y,S,F,a){b=EWF(b,S,y,a);F&&(b=l84(b));return b};
xPU=function(b){return[b,this.get(b)]};
vWr=function(){return QNq||(QNq=new Uf(Z8([]),void 0,void 0,void 0,mPU))};
bAq=function(b){var h=pA(JX);return h?b[h]:void 0};
SfN=function(b,h){var y=y===void 0?!1:y;if(pA(hdr)&&pA(JX)&&void 0===hdr){var S=b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,F=S[JX];if(!F)return;if(F=F.reviveUnknownFields)try{F(S,h,yX8);return}catch(a){Fn(a)}}y&&(b=b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(y=pA(JX))&&y in b&&(b=b[y])&&delete b[h])};
aEj=function(b,h){var y=pA(JX),S;dG&&y&&((S=b[y])==null?void 0:S[h])!=null&&wFF(FYq,3)};
jPq=function(b,h){h<100||wFF(dAn,1)};
ZAn=function(b,h,y,S){var F=S!==void 0;S=!!S;var a=pA(JX),P;!F&&dG&&a&&(P=b[a])&&$A4(P,jPq);a=[];var K=b.length;P=4294967295;var n=!1,X=!!(h&64),u=X?h&128?0:-1:void 0;if(!(h&1)){var O=K&&b[K-1];O!=null&&typeof O==="object"&&O.constructor===Object?(K--,P=K):O=void 0;if(X&&!(h&128)&&!F){n=!0;var N;P=((N=LYU)!=null?N:f8q)(P-u,u,b,O,void 0)+u}}h=void 0;for(N=0;N<K;N++){var t=b[N];if(t!=null&&(t=y(t,S))!=null)if(X&&N>=P){var R=N-u,I=void 0;((I=h)!=null?I:h={})[R]=t}else a[N]=t}if(O)for(var U in O)K=O[U],
K!=null&&(K=y(K,S))!=null&&(N=+U,t=void 0,X&&!Number.isNaN(N)&&(t=N+u)<P?a[t]=K:(N=void 0,((N=h)!=null?N:h={})[U]=K));h&&(n?a.push(h):a[P]=h);F&&pA(JX)&&(b=bAq(b))&&b instanceof Paf&&(a[JX]=KYf(b));return a};
M2M=function(b){b[0]=oFF(b[0]);b[1]=oFF(b[1]);return b};
oFF=function(b){switch(typeof b){case "number":return Number.isFinite(b)?b:""+b;case "bigint":return CoY(b)?Number(b):""+b;case "boolean":return b?1:0;case "object":if(Array.isArray(b)){var h=b[_.je]|0;return b.length===0&&h&1?void 0:ZAn(b,h,oFF)}if(b!=null&&b[WN]===AX)return nFM(b);if(b instanceof A8){h=b.JSC$9003_value_;if(h==null)b="";else if(typeof h==="string")b=h;else{if(kkj){for(var y="",S=0,F=h.length-10240;S<F;)y+=String.fromCharCode.apply(null,h.subarray(S,S+=10240));y+=String.fromCharCode.apply(null,
S?h.subarray(S):h);h=btoa(y)}else h=_.CA(h);b=b.JSC$9003_value_=h}return b}if(b instanceof Uf)return b=b.size!==0?XNY(b,M2M):void 0,b;return}return b};
sf=function(b,h){if(h){LYU=h==null||h===f8q||h[HA4]!==uxq?f8q:h;try{return nFM(b)}finally{LYU=void 0}}return nFM(b)};
nFM=function(b){b=b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return ZAn(b,b[_.je]|0,oFF)};
t2n=function(b){switch(typeof b){case "boolean":return OAN||(OAN=[0,void 0,!0]);case "number":return b>0?void 0:b===0?NAU||(NAU=[0,void 0]):[-b,void 0];case "string":return[0,b];case "object":return b}};
YF=function(b,h){return rXq(b,h[0],h[1])};
_.Tq=function(b,h,y){return rXq(b,h,y,2048)};
rXq=function(b,h,y,S){S=S===void 0?0:S;if(b==null){var F=32;y?(b=[y],F|=128):b=[];h&&(F=F&-16760833|(h&1023)<<14)}else{if(!Array.isArray(b))throw Error("O");F=b[_.je]|0;if(cXq&&1&F)throw Error("P");2048&F&&!(2&F)&&Rdk();if(F&256)throw Error("Q");if(F&64)return(F|S)!==F&&Pb(b,F|S),b;if(y&&(F|=128,y!==b[0]))throw Error("R");a:{y=b;F|=64;var a=y.length;if(a){var P=a-1,K=y[P];if(K!=null&&typeof K==="object"&&K.constructor===Object){h=F&128?0:-1;P-=h;if(P>=1024)throw Error("T");for(var n in K)a=+n,a<P&&
(y[a+h]=K[n],delete K[n]);F=F&-16760833|(P&1023)<<14;break a}}if(h){n=Math.max(h,a-(F&128?0:-1));if(n>1024)throw Error("U");F=F&-16760833|(n&1023)<<14}}}Pb(b,F|64|S);return b};
Rdk=function(){if(cXq)throw Error("S");wFF(zd5,5)};
BA5=function(b,h){if(typeof b!=="object")return b;if(Array.isArray(b)){var y=b[_.je]|0;return b.length===0&&y&1?void 0:DAr(b,y,h)}if(b!=null&&b[WN]===AX)return IE8(b);if(b instanceof Uf){h=b.arrayState;if(h&2)return b;if(!b.size)return;y=Z8(XNY(b));if(b.valueCtor)for(b=0;b<y.length;b++){var S=y[b],F=S[1];F==null||typeof F!=="object"?F=void 0:F!=null&&F[WN]===AX?F=IE8(F):Array.isArray(F)?F=DAr(F,F[_.je]|0,!!(h&32)):F=void 0;S[1]=F}return y}if(b instanceof A8)return b};
DAr=function(b,h,y){if(h&2)return b;!y||4096&h||16&h?b=Gq(b,h,!1,y&&!(h&16)):($W(b,34),h&4&&Object.freeze(b));return b};
WYn=function(b,h,y){b=new b.constructor(h);y&&(b.copyOnWrite=RN);b.noLegacyNull=RN;return b};
IE8=function(b){var h=b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,y=h[_.je]|0;return IN(b,y)?b:AXf(b,h,y)?WYn(b,h):Gq(h,y)};
Gq=function(b,h,y,S){S!=null||(S=!!(34&h));b=ZAn(b,h,BA5,S);S=32;y&&(S|=2);h=h&16769217|S;Pb(b,h);return b};
l84=function(b){var h=b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,y=h[_.je]|0;return IN(b,y)?AXf(b,h,y)?WYn(b,h,!0):new b.constructor(Gq(h,y,!1)):b};
Ef=function(b){if(b.copyOnWrite!==RN)return!1;var h=b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;h=Gq(h,h[_.je]|0);$W(h,2048);b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=h;b.copyOnWrite=void 0;b.noLegacyNull=void 0;return!0};
ia=function(b){if(!Ef(b)&&IN(b,b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.je]|0))throw Error();};
wA=function(b,h){h===void 0&&(h=b[_.je]|0);h&32&&!(h&4096)&&Pb(b,h|4096)};
AXf=function(b,h,y){return y&2?!0:y&32&&!(y&4096)?(Pb(h,y|2),b.copyOnWrite=RN,!0):!1};
la=function(b,h,y,S,F){var a=y+(F?0:-1),P=b.length-1;if(P>=1+(F?0:-1)&&a>=P){var K=b[P];if(K!=null&&typeof K==="object"&&K.constructor===Object)return K[y]=S,h}if(a<=P)return b[a]=S,h;if(S!==void 0){var n;P=((n=h)!=null?n:h=b[_.je]|0)>>14&1023||536870912;y>=P?S!=null&&(a={},b[P+(F?0:-1)]=(a[y]=S,a)):b[a]=S}return h};
_.mY=function(b,h,y,S,F){var a=b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,P=a[_.je]|0;S=IN(b,P)?1:S;F=!!F||S===3;S===2&&Ef(b)&&(a=b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,P=a[_.je]|0);b=UAn(a,h);var K=b===qA?7:b[_.je]|0,n=pN4(K,P);var X=4&n?!1:!0;if(X){4&n&&(b=xW(b),K=0,n=xF(n,P),P=la(a,P,h,b));for(var u=0,O=0;u<b.length;u++){var N=y(b[u]);N!=null&&(b[O++]=N)}O<u&&(b.length=O);y=(n|4)&-513;n=y&=-1025;n&=-4097}n!==K&&(Pb(b,n),2&n&&Object.freeze(b));return b=JXM(b,n,a,
P,h,S,X,F)};
JXM=function(b,h,y,S,F,a,P,K){var n=h;a===1||(a!==4?0:2&h||!(16&h)&&32&S)?vN(h)||(h|=!b.length||P&&!(4096&h)||32&S&&!(4096&h||16&h)?2:256,h!==n&&Pb(b,h),Object.freeze(b)):(a===2&&vN(h)&&(b=xW(b),n=0,h=xF(h,S),S=la(y,S,F,b)),vN(h)||(K||(h|=16),h!==n&&Pb(b,h)));2&h||!(4096&h||16&h)||wA(y,S);return b};
UAn=function(b,h,y){b=hx(b,h,y);return Array.isArray(b)?b:qA};
pN4=function(b,h){2&h&&(b|=2);return b|1};
vN=function(b){return!!(2&b)&&!!(4&b)||!!(256&b)};
edM=function(b){return _.ee(b,!0)};
Ca5=function(b){b=xW(b);for(var h=0;h<b.length;h++){var y=b[h]=xW(b[h]);Array.isArray(y[1])&&(y[1]=Z8(y[1]))}return MP(b)};
_.gFr=function(b,h,y,S,F){var a=b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,P=a[_.je]|0;var K=IN(b,P);a:{!K&&Ef(b)&&(a=b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,P=a[_.je]|0);var n=hx(a,h);b=!1;if(n==null){if(K){h=vWr();break a}n=[]}else if(n.constructor===Uf)if(n.arrayState&2&&!K)n=XNY(n);else{h=n;break a}else Array.isArray(n)?b=!!((n[_.je]|0)&2):n=[];if(K){if(!n.length){h=vWr();break a}b||(b=!0,Z8(n))}else b&&(b=!1,MP(n),n=Ca5(n));!b&&P&32&&Qq8(n);S=new Uf(n,y,S,F);P=
la(a,P,h,S);b||wA(a,P);h=S}!K&&y&&(h.callToMutableOnAccess=!0);return h};
_.yD=function(b,h,y,S){ia(b);var F=b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,a=F[_.je]|0;if(y==null)return la(F,a,h),b;var P=y===qA?7:y[_.je]|0,K=P,n=vN(P),X=n||Object.isFrozen(y);n||(P=0);X||(y=xW(y),K=0,P=xF(P,a),X=!1);P|=5;var u;n=(u=xyq(P))!=null?u:0;for(u=0;u<y.length;u++){var O=y[u],N=S(O,n);Object.is(O,N)||(X&&(y=xW(y),K=0,P=xF(P,a),X=!1),y[u]=N)}P!==K&&(X&&(y=xW(y),P=xF(P,a)),Pb(y,P));la(F,a,h,y);return b};
_.SP=function(b,h,y,S,F){ia(b);var a=b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;la(a,a[_.je]|0,h,(S==="0"?Number(y)===0:y===S)?void 0:y,F);return b};
_.aR=function(b,h,y){if(h&2)throw Error();var S=gG(h),F=UAn(b,y,S),a=F===qA?7:F[_.je]|0,P=pN4(a,h);if(2&P||vN(P)||16&P)P===a||vN(P)||Pb(F,P),F=xW(F),a=0,P=xF(P,h),la(b,h,y,F,S);P&=-13;P!==a&&Pb(F,P);return F};
sPU=function(b){if(dG){var h;return(h=b[df])!=null?h:b[df]=new Map}if(df in b)return b[df];h=new Map;Object.defineProperty(b,df,{value:h});return h};
TAr=function(b,h,y,S,F){var a=sPU(b),P=YfY(a,b,h,y,F);P!==S&&(P&&(h=la(b,h,P,void 0,F)),a.set(y,S));return h};
YfY=function(b,h,y,S,F){var a=b.get(S);if(a!=null)return a;for(var P=a=0;P<S.length;P++){var K=S[P];hx(h,K,F)!=null&&(a!==0&&(y=la(h,y,a,void 0,F)),a=K)}b.set(S,a);return a};
Gq8=function(b,h,y,S,F){var a=!1;S=hx(b,S,F,function(P){var K=EWF(P,y,!1,h);a=K!==P&&K!=null;return K});
if(S!=null)return a&&!IN(S)&&wA(b,h),S};
kq8=function(b,h,y,S,F,a,P,K){var n=IN(b,y);a=n?1:a;P=!!P||a===3;n=K&&!n;(a===2||n)&&Ef(b)&&(h=b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,y=h[_.je]|0);b=UAn(h,F);var X=b===qA?7:b[_.je]|0,u=pN4(X,y);if(K=!(4&u)){var O=b,N=y,t=!!(2&u);t&&(N|=2);for(var R=!t,I=!0,U=0,p=0;U<O.length;U++){var e=EWF(O[U],S,!1,N);if(e instanceof S){if(!t){var E=IN(e);R&&(R=!E);I&&(I=E)}O[p++]=e}}p<U&&(O.length=p);u|=4;u=I?u&-4097:u|4096;u=R?u|8:u&-9}u!==X&&(Pb(b,u),2&u&&Object.freeze(b));if(n&&!(8&u||!b.length&&
(a===1||(a!==4?0:2&u||!(16&u)&&32&y)))){vN(u)&&(b=xW(b),u=xF(u,y),y=la(h,y,F,b));S=b;n=u;for(X=0;X<S.length;X++)O=S[X],u=l84(O),O!==u&&(S[X]=u);n|=8;u=n=S.length?n|4096:n&-4097;Pb(b,u)}return b=JXM(b,u,h,y,F,a,K,P)};
V2f=function(b){b==null&&(b=void 0);return b};
xF=function(b,h){return b=(2&h?b|2:b&-3)&-273};
_.EFk=function(b,h,y,S,F){ia(b);h=_.mY(b,h,F,2,!0);var a;F=(a=xyq(h===qA?7:h[_.je]|0))!=null?a:0;h.push(y(S,F));return b};
iAj=function(b,h,y,S,F,a,P){ia(b);var K=b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;b=kq8(b,K,K[_.je]|0,y,h,2,!0);if(a&&P)F!=null||(F=b.length-1),vUr(b,F),b.splice(F,a),b.length||(b[_.je]&=-4097);else{if(a){if(typeof F!=="number"||F<0||F>b.length)throw Error();}else S=S!=null?S:new y;F!=void 0?b.splice(F,a,S):b.push(S);F=y=b===qA?7:b[_.je]|0;(S=IN(S))?(y&=-9,b.length===1&&(y&=-4097)):y|=4096;y!==F&&Pb(b,y);S||wA(K)}};
wNU=function(b,h){if(typeof b==="string")return new jP(EUM(b),h);if(Array.isArray(b))return new jP(new Uint8Array(b),h);if(b.constructor===Uint8Array)return new jP(b,!1);if(b.constructor===ArrayBuffer)return b=new Uint8Array(b),new jP(b,!1);if(b.constructor===A8)return h=fEM(b)||new Uint8Array(0),new jP(h,!0,b);if(b instanceof Uint8Array)return b=b.constructor===Uint8Array?b:new Uint8Array(b.buffer,b.byteOffset,b.byteLength),new jP(b,!1);throw Error();};
qfM=function(b){switch(typeof b){case "string":lEk(b)}};
QPM=function(b){switch(typeof b){case "string":xAY(b)}};
$$=function(){var b=function(){throw Error();};
Object.setPrototypeOf(b,b.prototype);return b};
vF8=function(b,h){var y=y===void 0?mAM:y;return new PM(b,h,y)};
yxn=function(b,h,y,S,F){bcM(b,y,h2M(h,S),F)};
Kc=function(b,h,y,S){var F=S[b];if(F)return F;F={};F.binaryFields=S;F.messageMetadata=t2n(S[0]);var a=S[1],P=1;a&&a.constructor===Object&&(F.extensions=a,a=S[++P],typeof a==="function"&&(F.isMessageSet=!0,S_F!=null||(S_F=a),FAj!=null||(FAj=S[P+1]),a=S[P+=2]));for(var K={};a&&aLM(a);){for(var n=0;n<a.length;n++)K[a[n]]=a;a=S[++P]}for(n=1;a!==void 0;){typeof a==="number"&&(n+=a,a=S[++P]);var X=void 0;if(a instanceof PM)var u=a;else u=d94,P--;a=void 0;if((a=u)==null?0:a.$$isMsg){a=S[++P];X=S;var O=P;
typeof a==="function"&&(a=a(),X[O]=a);X=a}a=S[++P];O=n+1;typeof a==="number"&&a<0&&(O-=a,a=S[++P]);for(;n<O;n++){var N=K[n];X?y(F,n,u,X,N):h(F,n,u,N)}}return S[b]=F};
aLM=function(b){return Array.isArray(b)&&!!b.length&&typeof b[0]==="number"&&b[0]>0};
$9N=function(b){return Array.isArray(b)?b[0]instanceof PM?b:[jRF,b]:[b,void 0]};
h2M=function(b,h){if(b instanceof _.ZL)return b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(b))return YF(b,h)};
LAF=function(b,h,y,S){var F=y.$$binaryReaderFn;b[h]=S?function(a,P,K){return F(a,P,K,S)}:F};
KAy=function(b,h,y,S,F){var a=y.$$binaryReaderFn,P,K;b[h]=function(n,X,u){return a(n,X,u,K||(K=Kc(PJ8,LAF,KAy,S).messageMetadata),P||(P=ZcI(S)),F)}};
ZcI=function(b){var h=b[o$5];if(h!=null)return h;var y=Kc(PJ8,LAF,KAy,b);h=y.isMessageSet?function(S,F){return S_F(S,F,y)}:function(S,F){for(;MPj(F)&&F.nextWireType_!=4;){var a=F.nextField_,P=y[a];
if(P==null){var K=y.extensions;K&&(K=K[a])&&(K=n$8(K),K!=null&&(P=y[a]=K))}if(P==null||!P(F,S,a)){K=F;P=K.fieldCursor_;XMY(K);if(K.discardUnknownFields)var n=void 0;else{var X=K.decoder_.cursor_-P;K.decoder_.cursor_=P;n=Hc4(K.decoder_,X)}X=K=P=void 0;var u=S;n&&((P=(K=(X=u[JX])!=null?X:u[JX]=new Paf)[a])!=null?P:K[a]=[]).push(n)}}if(S=bAq(S))S.reviveUnknownFields=y.binaryFields[u95];return!0};
b[o$5]=h;b[u95]=Ock.bind(b);return h};
Ock=function(b,h,y,S){var F=this[PJ8],a=this[o$5],P=YF(void 0,F.messageMetadata),K=bAq(b);if(K){var n=!1,X=F.extensions;if(X){F=function(R,I,U){if(U.length!==0)if(X[I])for(R=_.L(U),I=R.next();!I.done;I=R.next()){I=NfY(I.value);try{n=!0,a(P,I)}finally{I.free()}}else S==null||S(b,I,U)};
if(h==null)$A4(K,F);else if(K!=null){var u=K[h];u&&F(K,h,u)}if(n){var O=b[_.je]|0;if(O&2&&O&2048&&(y==null||!y.reviveIntoImmutable))throw Error();var N=gG(O),t=function(R,I){if(hx(b,R,N)!=null)switch(y==null?void 0:y.resolutionBehavior){case 1:return;default:throw Error();}I!=null&&(O=la(b,O,R,I,N));delete K[R]};
h==null?bMI(P,P[_.je]|0,function(R,I){t(R,I)}):t(h,hx(P,h,N))}}}};
n$8=function(b){b=$9N(b);var h=b[0].$$binaryReaderFn;if(b=b[1]){var y=ZcI(b),S=Kc(PJ8,LAF,KAy,b).messageMetadata;return function(F,a,P){return h(F,a,P,S,y)}}return h};
tP5=function(b,h,y){b[h]=y.$$binaryWriterFn};
cx8=function(b,h,y,S){var F,a,P=y.$$binaryWriterFn;b[h]=function(K,n,X){return P(K,n,X,a||(a=Kc(rxU,tP5,cx8,S).messageMetadata),F||(F=R2j(S)))}};
R2j=function(b){var h=b[z28];if(!h){var y=Kc(rxU,tP5,cx8,b);h=function(S,F){return D9j(S,F,y)};
b[z28]=h}return h};
D9j=function(b,h,y){bMI(b,b[_.je]|0,function(S,F){if(F!=null){var a=ILy(y,S);a?a(h,F,S):S<500||wFF(BfU,3)}});
(b=bAq(b))&&$A4(b,function(S,F,a){M9(h,h.encoder_.end());for(S=0;S<a.length;S++)M9(h,fEM(a[S])||new Uint8Array(0))})};
ILy=function(b,h){var y=b[h];if(y)return y;if(y=b.extensions)if(y=y[h]){y=$9N(y);var S=y[0].$$binaryWriterFn;if(y=y[1]){var F=R2j(y),a=Kc(rxU,tP5,cx8,y).messageMetadata;y=b.isMessageSet?FAj(a,F):function(P,K,n){return S(P,K,n,a,F)}}else y=S;
return b[h]=y}};
_.WAk=function(b,h,y){if(Array.isArray(h)){var S=h[_.je]|0;if(S&4)return h;for(var F=0,a=0;F<h.length;F++){var P=b(h[F]);P!=null&&(h[a++]=P)}a<F&&(h.length=a);b=S|1;y&&(b=(b|4)&-1537);b!==S&&Pb(h,b);y&&b&2&&Object.freeze(h);return h}};
_.nc=function(b,h,y){return new PM(b,h,y)};
_.Ax5=function(b,h,y){return new PM(b,h,y)};
_.X9=function(b,h,y){la(b,b[_.je]|0,h,y,gG(b[_.je]|0))};
U9M=function(b,h,y){h=_.yf(h);h!=null&&(_.HM(b,y,1),b=b.encoder_,y=Pon||(Pon=new DataView(new ArrayBuffer(8))),y.setFloat64(0,+h,!0),Ta=y.getUint32(0,!0),Ga=y.getUint32(4,!0),_.uJ(b,Ta),_.uJ(b,Ga))};
pMf=function(b,h,y){h=_.yf(h);h!=null&&(_.HM(b,y,5),b=b.encoder_,K55(h),_.uJ(b,Ta))};
_.N9=function(b,h,y){h=TGn(h);if(h!=null&&(qfM(h),h!=null))switch(_.HM(b,y,0),typeof h){case "number":b=b.encoder_;kW(h);O_(b,Ta,Ga);break;case "bigint":y=BigInt.asUintN(64,h);y=new Jxk(Number(y&BigInt(4294967295)),Number(y>>BigInt(32)));O_(b.encoder_,y.JSC$9046_lo,y.JSC$9046_hi);break;default:y=lEk(h),O_(b.encoder_,y.JSC$9046_lo,y.JSC$9046_hi)}};
CJY=function(b,h,y){h=Ga5(h);if(h!=null&&(QPM(h),h!=null))switch(_.HM(b,y,0),typeof h){case "number":b=b.encoder_;kW(h);O_(b,Ta,Ga);break;case "bigint":y=e2f(h);O_(b.encoder_,y.JSC$9044_lo,y.JSC$9044_hi);break;default:y=xAY(h),O_(b.encoder_,y.JSC$9044_lo,y.JSC$9044_hi)}};
sR5=function(b,h,y){h=_.ZE(h);h!=null&&h!=null&&(_.HM(b,y,0),_.g$M(b.encoder_,h))};
_.Tfq=function(b,h,y){Y_I(b,y,Ga5(h))};
Gpk=function(b,h,y){h=_.NGj(h);h!=null&&(_.HM(b,y,0),b.encoder_.JSC$9048_buffer_.push(h?1:0))};
VP5=function(b,h,y){h=_.zq(h);h!=null&&kpy(b,y,Z4f(h))};
E$8=function(b,h,y,S,F){bcM(b,y,h2M(h,S),F)};
_.icI=function(b,h,y){h=h==null||typeof h=="string"||h instanceof A8?h:void 0;h!=null&&kpy(b,y,wNU(h,!0).buffer)};
fL8=function(b,h,y){h=_.c8M(h);h!=null&&h!=null&&(_.HM(b,y,0),tx(b.encoder_,h))};
_.wMM=function(b,h,y){h=_.ZE(h);h!=null&&(h=parseInt(h,10),_.HM(b,y,0),_.g$M(b.encoder_,h))};
lLn=function(b,h,y){if(b.nextWireType_!==0)return!1;_.X9(h,y,_.rf(b.decoder_,Me5));return!0};
_.q_U=function(b,h,y,S){if(b.nextWireType_!==0)return!1;_.cM(h,y,S,_.rf(b.decoder_,Me5));return!0};
x9N=function(b,h,y){if(b.nextWireType_!==0)return!1;_.X9(h,y,_.rf(b.decoder_,oWU));return!0};
_.m9f=function(b,h,y){if(b.nextWireType_!==1)return!1;_.X9(h,y,QR8(b.decoder_));return!0};
_.IR=function(b,h){return function(y,S){var F={treatNewDataAsImmutable:!0};S&&Object.assign(F,S);y=NfY(y,void 0,void 0,F);try{var a=new b,P=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;ZcI(h)(P,y);var K=a}finally{y.free()}return K}};
_.BM=function(b){return function(h){return v$n(h,b)}};
b$q=function(b){return function(){return v$n(this,b)}};
_.hhk=function(b){return s7(function(h){return h instanceof b&&!IN(h)})};
_.WM=function(b){return function(h){return ykI(b,h)}};
d5j=function(b,h){return S3r({child:b,origin:h||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:Ftn,getPayloadCase:function(y){return y.getPayloadCase()},
createInitMessage:function(y){var S=new Ax,F=new aFk;y=_.U_(F,1,y);return _.pc(S,5,Jx,y)}})};
eP=function(b){return{valueOf:b}.valueOf()};
$5I=function(){var b=null;if(!jsF)return b;try{var h=function(y){return y};
b=jsF.createPolicy("goog#html",{createHTML:h,createScript:h,createScriptURL:h})}catch(y){}return b};
PZn=function(){Ltj===void 0&&(Ltj=$5I());return Ltj};
_.gf=function(b){var h=PZn();b=h?h.createScriptURL(b):b;return new Cc(b)};
_.s_=function(b){if(b instanceof Cc)return b.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.Tp=function(b){return Object.isFrozen(b)&&Object.isFrozen(b.raw)};
Ktf=function(b){return b.toString().indexOf("`")===-1};
k$=function(b){return new _.Gp(Z$Y,b)};
VD=function(b){return b instanceof _.Gp};
_.E_=function(b){if(VD(b))return b.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
iJ=function(b){return new ofM(function(h){return h.substr(0,b.length+1).toLowerCase()===b+":"})};
_.fc=function(b,h){h=h===void 0?Mwn:h;if(VD(b))return b;for(var y=0;y<h.length;++y){var S=h[y];if(S instanceof ofM&&S.isValid(b))return k$(b)}};
_.lJ=function(b,h){h=h===void 0?Mwn:h;return _.fc(b,h)||wf};
_.q9=function(b){var h=window;if(typeof MediaSource!=="undefined"&&b instanceof MediaSource||typeof h.ManagedMediaSource!=="undefined"&&b instanceof h.ManagedMediaSource)return k$(URL.createObjectURL(b));h=b.type;h.toLowerCase()==="application/octet-stream"?h=!0:(h=h.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),h=(h==null?void 0:h.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(h[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(h[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(h[1])||/^font\/[\w-]+$/i.test(h[1])));if(!h)throw Error("Z");return k$(URL.createObjectURL(b))};
_.nff=function(b){for(var h=_.x$.apply(1,arguments),y=[b[0]],S=0;S<h.length;S++)y.push(String(h[S])),y.push(b[S+1]);return k$(y.join(""))};
_.H$n=function(b){if(!XEk){a:{var h=document.createElement("a");try{h.href=b}catch(y){b=void 0;break a}b=h.protocol;b=b===":"||b===""?"https:":b}return b}try{h=new URL(b)}catch(y){return"https:"}return h.protocol};
_.QD=function(b){b instanceof _.Gp?b=_.E_(b):b=ug8.test(b)?b:void 0;return b};
mA=function(b,h){h=_.QD(h);h!==void 0&&(b.href=h)};
yx=function(b){var h=PZn();b=h?h.createHTML(b):b;return new bZ(b)};
Sw=function(b){if(b instanceof bZ)return b.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.Fg=function(b,h){b.src=_.s_(h).toString()};
O$y=function(b,h){b.setAttribute("sandbox","");for(var y=0;y<h.length;y++)b.sandbox.supports&&!b.sandbox.supports(h[y])||b.sandbox.add(h[y])};
_.as=function(b,h,y){b.removeAttribute("srcdoc");switch(h){case 0:if(y instanceof Cc)throw new N3q("TrustedResourceUrl",0);O$y(b,[]);h=_.QD(y);h!==void 0&&(b.src=h);break;case 1:if(!(y instanceof Cc))throw new N3q(typeof y,1);O$y(b,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.Fg(b,y);break;case 2:if(y instanceof Cc)throw new N3q("TrustedResourceUrl",2);O$y(b,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
h=_.QD(y);h!==void 0&&(b.src=h);break;default:_.m5(h)}};
_.d3=function(b,h,y,S){h=_.QD(h);return h!==void 0?b.open(h,y,S):null};
_.jw=function(b){b=b===void 0?document:b;var h,y;b=(y=(h=b).querySelector)==null?void 0:y.call(h,"script[nonce]");return b==null?"":b.nonce||b.getAttribute("nonce")||""};
_.L$=function(b){var h=PZn();b=h?h.createScript(b):b;return new _.$f(b)};
PE=function(b){if(b instanceof _.$f)return b.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
tw8=function(b){var h=_.jw(b.ownerDocument);h&&b.setAttribute("nonce",h)};
_.K$=function(b,h){b.textContent=PE(h);tw8(b)};
_.ZF=function(b,h){b.src=_.s_(h);tw8(b)};
_.M5=function(b,h){if(b.nodeType===1&&/^(script|style)$/i.test(b.tagName))throw Error("Z");b.innerHTML=Sw(h)};
_.n$=function(b,h,y,S){if(b.length===0)throw Error("Z");b=b.map(function(a){if(a instanceof rkN)a=a.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return a});
var F=y.toLowerCase();if(b.every(function(a){return F.indexOf(a)!==0}))throw Error("aa`"+y);
h.setAttribute(y,S)};
_.Xg=function(b,h,y){if(h instanceof Cc)b.href=_.s_(h).toString(),b.rel=y;else{if(ckN.indexOf(y)===-1)throw Error("ba`"+y);h=_.QD(h);h!==void 0&&(b.href=h,b.rel=y)}};
Rh8=function(b){if(b instanceof HE)return b.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.zhY=function(b,h){h=_.QD(h);h!==void 0&&(b.href=h)};
D55=function(b){return new Worker(_.s_(b),void 0)};
IFj=function(b){return _.gf(b)};
B3f=function(b,h){b&&(h=b.indexOf(h),0<=h&&b.splice(h,1))};
uZ=function(b){return typeof b==="function"};
WtI=function(b){return b instanceof O3||b&&"closed"in b&&uZ(b.remove)&&uZ(b.add)&&uZ(b.unsubscribe)};
N5=function(){};
tk=function(b){Ak8(function(){throw b;})};
r3=function(b){return b};
Rs=function(){return U5F(_.x$.apply(0,arguments))};
U5F=function(b){return b.length===0?r3:b.length===1?b[0]:function(h){return b.reduce(function(y,S){return S(y)},h)}};
pEq=function(b){var h;return(h=b!=null?b:void 0)!=null?h:Promise};
Jkq=function(b,h){return new zH(function(y){var S=0;return h.schedule(function(){S===b.length?y.complete():(y.next(b[S++]),y.closed||this.schedule())})})};
ehy=function(b,h){if(!b)throw Error("ca");return new zH(function(y){var S=new O3;S.add(h.schedule(function(){var F=b[Symbol.asyncIterator]();S.add(h.schedule(function(){var a=this;F.next().then(function(P){P.done?y.complete():(y.next(P.value),a.schedule())})}))}));
return S})};
CZn=function(b,h,y){h=h.schedule(function(){try{y.call(this)}catch(S){b.error(S)}},0);
b.add(h)};
ssq=function(b,h){return new zH(function(y){var S;y.add(h.schedule(function(){S=b[gfF]();CZn(y,h,function(){var F=S.next(),a=F.value;F.done?y.complete():(y.next(a),this.schedule())})}));
return function(){var F;return uZ((F=S)==null?void 0:F.return)&&S.return()}})};
Y3q=function(b,h){return new zH(function(y){var S=new O3;S.add(h.schedule(function(){var F=b[DF]();S.add(F.subscribe({next:function(a){S.add(h.schedule(function(){return y.next(a)}))},
error:function(a){S.add(h.schedule(function(){return y.error(a)}))},
complete:function(){S.add(h.schedule(function(){return y.complete()}))}}))}));
return S})};
T3n=function(b,h){return new zH(function(y){return h.schedule(function(){return b.then(function(S){y.add(h.schedule(function(){y.next(S);y.add(h.schedule(function(){return y.complete()}))}))},function(S){y.add(h.schedule(function(){return y.error(S)}))})})})};
GH4=function(b){return new TypeError("da`"+(b!==null&&typeof b==="object"?"an invalid object":"'"+b+"'"))};
Vw8=function(b,h){if(b!=null){if(uZ(b[DF]))return Y3q(b,h);if(kHI(b))return Jkq(b,h);if(uZ(b==null?void 0:b.then))return T3n(b,h);if(Symbol.asyncIterator&&uZ(b==null?void 0:b[Symbol.asyncIterator]))return ehy(b,h);if(uZ(b==null?void 0:b[gfF]))return ssq(b,h)}throw GH4(b);};
BE=function(b,h){return h?Vw8(b,h):Is(b)};
Is=function(b){if(b instanceof zH)return b;if(b!=null){if(uZ(b[DF]))return Efj(b);if(kHI(b))return i$M(b);if(uZ(b==null?void 0:b.then))return fFy(b);if(Symbol.asyncIterator&&uZ(b==null?void 0:b[Symbol.asyncIterator]))return wE8(b);if(uZ(b==null?void 0:b[gfF]))return lFN(b)}throw GH4(b);};
Efj=function(b){return new zH(function(h){var y=b[DF]();if(uZ(y.subscribe))return y.subscribe(h);throw new TypeError("ea");})};
i$M=function(b){return new zH(function(h){for(var y=0;y<b.length&&!h.closed;y++)h.next(b[y]);h.complete()})};
fFy=function(b){return new zH(function(h){b.then(function(y){h.closed||(h.next(y),h.complete())},function(y){return h.error(y)}).then(null,tk)})};
lFN=function(b){return new zH(function(h){for(var y=b[gfF]();!h.closed;){var S=y.next(),F=S.value;S.done?h.complete():h.next(F)}return function(){return uZ(y==null?void 0:y.return)&&y.return()}})};
wE8=function(b){return new zH(function(h){q3F(b,h).catch(function(y){return h.error(y)})})};
q3F=function(b,h){var y,S,F,a,P,K;return _.Z(function(n){switch(n.nextAddress){case 1:_.WE(n,2,3),a=_.Ak(b);case 5:return n.yield(a.next(),8);case 8:S=n.yieldResult;if(S.done){n.jumpTo(3);break}P=S.value;h.next(P);n.jumpTo(5);break;case 3:_.U3(n);_.p$(n,9);if(!S||S.done||!(F=a.return)){n.jumpTo(9);break}return n.yield(F.call(a),9);case 9:_.U3(n,0,0,1);if(y)throw y.error;_.Jk(n,10,1);break;case 10:_.Jk(n,4);break;case 2:K=_.C$(n);y={error:K};n.jumpTo(3);break;case 4:h.complete(),_.g3(n)}})};
x5I=function(b,h){return h?Jkq(b,h):i$M(b)};
QsM=function(b){return uZ(b[b.length-1])?b.pop():void 0};
s3=function(b){var h=b[b.length-1];return h&&uZ(h.schedule)?b.pop():void 0};
Yf=function(){var b=_.x$.apply(0,arguments),h=s3(b);return h?Jkq(b,h):x5I(b)};
TH=function(b){var h=uZ(b)?b:function(){return b};
return new zH(function(y){return y.error(h())})};
GH=function(b){return function(h){if(uZ(h==null?void 0:h.lift))return h.lift(function(y){try{return b(y,this)}catch(S){this.error(S)}});
throw new TypeError("fa");}};
E3=function(){return GH(function(b,h){var y=null;b._refCount++;var S=new kf(h,void 0,void 0,void 0,function(){if(!b||b._refCount<=0||0<--b._refCount)y=null;else{var F=b._connection,a=y;y=null;!F||a&&F!==a||F.unsubscribe();h.unsubscribe()}});
b.subscribe(S);S.closed||(y=b.connect())})};
vf4=function(){var b=m5N;var h=h===void 0?0:h;return GH(function(y,S){S.add(b.schedule(function(){return y.subscribe(S)},h))})};
iZ=function(b){return GH(function(h,y){var S=0;h.subscribe(new kf(y,function(F){y.next(b.call(void 0,F,S++))}))})};
hXj=function(b){return iZ(function(h){return bDq(h)?b.apply(null,_.f$(h)):b(h)})};
dzY=function(b){if(b.length===1){var h=b[0];if(ygj(h))return{args:h,keys:null};if(h&&typeof h==="object"&&SSn(h)===FQk)return b=aK5(h),{args:b.map(function(y){return h[y]}),
keys:b}}return{args:b,keys:null}};
w3=function(){var b=_.x$.apply(0,arguments),h=s3(b),y=QsM(b);b=dzY(b);var S=b.args,F=b.keys;if(S.length===0)return BE([],h);h=new zH(jar(S,h,F?function(a){for(var P={},K=0;K<a.length;K++)P[F[K]]=a[K];return P}:r3));
return y?h.pipe(hXj(y)):h};
jar=function(b,h,y){y=y===void 0?r3:y;return function(S){$zU(h,function(){for(var F=b.length,a=Array(F),P=F,K=b.map(function(){return!1}),n=!0,X={i$jscomp$218:0};X.i$jscomp$218<F;X={i$jscomp$218:X.i$jscomp$218},X.i$jscomp$218++)$zU(h,function(u){return function(){BE(b[u.i$jscomp$218],h).subscribe(new lZ(S,function(O){a[u.i$jscomp$218]=O;
n&&(K[u.i$jscomp$218]=!0,n=!K.every(r3));n||S.next(y(a.slice()))},function(){return--P===0}))}}(X),S)},S)}};
$zU=function(b,h,y){b?y.add(b.schedule(h)):h()};
LQU=function(b,h,y,S){var F=[],a=0,P=0,K=!1,n=function(X){a++;Is(y(X,P++)).subscribe(new kf(h,function(u){h.next(u)},void 0,function(){a--;
for(var u={};F.length&&a<S;u={bufferedValue:void 0})u.bufferedValue=F.shift(),n(u.bufferedValue);!K||F.length||a||h.complete()}))};
b.subscribe(new kf(h,function(X){return a<S?n(X):F.push(X)},void 0,function(){K=!0;
!K||F.length||a||h.complete()}));
return function(){F=null}};
q5=function(b,h){var y=y===void 0?Infinity:y;if(uZ(h))return q5(function(S,F){return iZ(function(a,P){return h(S,a,F,P)})(Is(b(S,F)))},y);
typeof h==="number"&&(y=h);return GH(function(S,F){return LQU(S,F,b,y)})};
PRk=function(b){b=b===void 0?Infinity:b;return q5(r3,b)};
KQU=function(){var b=_.x$.apply(0,arguments);return PRk(1)(x5I(b,s3(b)))};
ZD8=function(b){return new zH(function(h){Is(b()).subscribe(h)})};
Qx=function(b,h,y){if(uZ(y)){var S=y;y=void 0}if(S)return Qx(b,h,y).pipe(hXj(S));S=_.L(uZ(b.addEventListener)&&uZ(b.removeEventListener)?obf.map(function(P){return function(K){return b[P](h,K,y)}}):uZ(b.addListener)&&uZ(b.removeListener)?MFf.map(nbf(b,h)):uZ(b.on)&&uZ(b.off)?XBj.map(nbf(b,h)):[]);
var F=S.next().value,a=S.next().value;return!F&&kHI(b)?q5(function(P){return Qx(P,h,y)})(x5I(b)):new zH(function(P){if(!F)throw new TypeError("ga");
var K=function(){var n=_.x$.apply(0,arguments);return P.next(1<n.length?n:n[0])};
F(K);return function(){return a(K)}})};
nbf=function(b,h){return function(y){return function(S){return b[y](h,S)}}};
vE=function(){var b=_.x$.apply(0,arguments),h=s3(b);var y=typeof b[b.length-1]==="number"?b.pop():Infinity;return b.length?b.length===1?Is(b[0]):PRk(y)(x5I(b,h)):mt};
uXk=function(b){return b.length===1&&HDn(b[0])?b[0]:b};
ODf=function(){var b=uXk(_.x$.apply(0,arguments));return GH(function(h,y){var S=[h].concat(_.f$(b)),F=function(){if(!y.closed)if(S.length>0){try{var a=Is(S.shift())}catch(K){F();return}var P=new kf(y,void 0,N5,N5);y.add(a.subscribe(P));P.add(F)}else y.complete()};
F()})};
bR=function(b){return GH(function(h,y){var S=0;h.subscribe(new kf(y,function(F){return b.call(void 0,F,S++)&&y.next(F)}))})};
tFf=function(){var b=_.x$.apply(0,arguments);b=uXk(b);return b.length===1?Is(b[0]):new zH(N1k(b))};
N1k=function(b){return function(h){for(var y=[],S={i$jscomp$221:0};y&&!h.closed&&S.i$jscomp$221<b.length;S={i$jscomp$221:S.i$jscomp$221},S.i$jscomp$221++)y.push(Is(b[S.i$jscomp$221]).subscribe(new kf(h,function(F){return function(a){if(y){for(var P=0;P<y.length;P++)P!==F.i$jscomp$221&&y[P].unsubscribe();y=null}h.next(a)}}(S))))}};
rg5=function(){var b=_.x$.apply(0,arguments),h=QsM(b),y=uXk(b);return y.length?new zH(function(S){var F=y.map(function(){return[]}),a=y.map(function(){return!1});
S.add(function(){F=a=null});
for(var P={sourceIndex$jscomp$1:0};!S.closed&&P.sourceIndex$jscomp$1<y.length;P={sourceIndex$jscomp$1:P.sourceIndex$jscomp$1},P.sourceIndex$jscomp$1++)Is(y[P.sourceIndex$jscomp$1]).subscribe(new kf(S,function(K){return function(n){F[K.sourceIndex$jscomp$1].push(n);F.every(function(X){return X.length})&&(n=F.map(function(X){return X.shift()}),S.next(h?h.apply(null,_.f$(n)):n),F.some(function(X,u){return!X.length&&a[u]})&&S.complete())}}(P),void 0,function(K){return function(){a[K.sourceIndex$jscomp$1]=
!0;
!F[K.sourceIndex$jscomp$1].length&&S.complete()}}(P)));
return function(){F=a=null}}):mt};
cgn=function(b){var h,y,S;return!!b&&typeof b.active==="boolean"&&typeof((h=b.clock)==null?void 0:h.now)==="function"&&((y=b.clock)==null?void 0:y.timeline)!==void 0&&!((S=b.lastMeasurement)==null||!S.timestamp)&&typeof b.equivalentTo==="function"&&typeof b.extrapolateToNow==="function"&&typeof b.extrapolateToTime==="function"&&typeof b.map==="function"&&typeof b.joinWith==="function"};
RXI=function(b){function h(y){return typeof y==="boolean"||typeof y==="string"||typeof y==="number"||y===void 0||y===null}
return h(b)?!0:Array.isArray(b)?b.every(h):typeof b==="object"?Object.keys(b).every(function(y){return typeof y==="string"})&&Object.values(b).every(function(y){return Array.isArray(y)?y.every(h):h(y)}):!1};
zXn=function(b){if(RXI(b))return b;if(cgn(b))return{lastMeasurement:{value:zXn(b.lastMeasurement.value),timestamp:hg(b.lastMeasurement.timestamp,new yX(0,b.lastMeasurement.timestamp.timeline))},active:b.active};try{return JSON.parse(JSON.stringify(b))}catch(h){}return String(b)};
SF=function(b,h){return function(y){return new zH(function(S){return y.subscribe(function(F){b.timeExecution(h,function(){S.next(F)})()},function(F){b.timeExecution(h,function(){S.error(F)})()},function(){b.timeExecution(h,function(){S.complete()})()})})}};
Dzr=function(b,h){var y=!1;return new zH(function(S){var F=b.setTimeout(function(){y=!0;S.next(!0);S.complete()},h);
return function(){y||b.clearTimeout(F)}})};
IKU=function(b){b=b.global;if(b.fetchLater)return b.fetchLater.bind(b)};
FX=function(b){return GH(function(h,y){var S=null,F=!1,a;S=h.subscribe(new kf(y,void 0,function(P){a=Is(b(P,FX(b)(h)));S?(S.unsubscribe(),S=null,a.subscribe(y)):F=!0}));
F&&(S.unsubscribe(),S=null,a.subscribe(y))})};
B1U=function(b,h,y){return function(S,F){var a=y,P=h,K=0;S.subscribe(new kf(F,function(n){var X=K++;P=a?b(P,n,X):(a=!0,n);F.next(P)},void 0,void 0))}};
WQr=function(b){b=b===void 0?null:b;return GH(function(h,y){var S=!1;h.subscribe(new kf(y,function(F){S=!0;y.next(F)},void 0,function(){S||y.next(b);
y.complete()}))})};
aa=function(){return GH(function(b,h){b.subscribe(new kf(h,N5))})};
d1=function(b){return GH(function(h,y){h.subscribe(new kf(y,function(){return y.next(b)}))})};
jF=function(b){return b<=0?function(){return mt}:GH(function(h,y){var S=0;
h.subscribe(new kf(y,function(F){++S<=b&&(y.next(F),b<=S&&y.complete())}))})};
$b=function(b){var h=h===void 0?r3:h;var y;b=(y=b)!=null?y:Agq;return GH(function(S,F){var a,P=!0;S.subscribe(new kf(F,function(K){var n=h(K);if(P||!b(a,n))P=!1,a=n,F.next(K)}))})};
Agq=function(b,h){return b===h};
pBf=function(b){b=b===void 0?Uzf:b;return GH(function(h,y){var S=!1;h.subscribe(new kf(y,function(F){S=!0;y.next(F)},void 0,function(){return S?y.complete():y.error(b())}))})};
Uzf=function(){return new Jgj};
LD=function(){var b=_.x$.apply(0,arguments);return function(h){return KQU(h,Yf.apply(null,_.f$(b)))}};
eXF=function(b){return GH(function(h,y){var S=0;h.subscribe(new kf(y,function(F){b.call(void 0,F,S++,h)||(y.next(!1),y.complete())},void 0,function(){y.next(!0);
y.complete()}))})};
CRY=function(){return GH(function(b,h){var y=[];b.subscribe(new kf(h,function(S){y.push(S);1<y.length&&y.shift()},void 0,function(){for(var S=_.L(y),F=S.next();!F.done;F=S.next())h.next(F.value);
h.complete()},function(){y=null}))})};
gb5=function(b,h){var y=arguments.length>=2;return function(S){return S.pipe(b?bR(function(F,a){return b(F,a,S)}):r3,CRY(),y?WQr(h):pBf(function(){return new Jgj}))}};
ZK=function(b){var h=uZ(b)?b:function(){return b};
return uZ()?GH(function(y,S){var F=h();(void 0)(F).subscribe(S).add(y.subscribe(F))}):function(y){var S=new KD(y,h);
uZ(y==null?void 0:y.lift)&&(S.lift=y.lift);S.source=y;S.subjectFactory=h;return S}};
nD=function(b){var h=new Mz(b,void 0,void 0);return function(y){return ZK(function(){return h})(y)}};
XX=function(b,h){return GH(B1U(b,h,arguments.length>=2))};
HB=function(){var b=_.x$.apply(0,arguments),h=s3(b);return GH(function(y,S){(h?KQU(b,y,h):KQU(b,y)).subscribe(S)})};
OS=function(b){return GH(function(h,y){var S=null,F=0,a=!1;h.subscribe(new kf(y,function(P){var K;(K=S)==null||K.unsubscribe();K=F++;Is(b(P,K)).subscribe(S=new kf(y,function(n){return y.next(n)},void 0,function(){S=null;
a&&!S&&y.complete()}))},void 0,function(){(a=!0,!S)&&y.complete()}))})};
tg=function(b,h){h=h===void 0?!1:h;return GH(function(y,S){var F=0;y.subscribe(new kf(S,function(a){var P=b(a,F++);(P||h)&&S.next(a);!P&&S.complete()}))})};
saY=function(b,h,y){var S=uZ(b)||h||y?{next:b,error:h,complete:y}:b;return S?GH(function(F,a){F.subscribe(new kf(a,function(P){var K;(K=S.next)==null||K.call(S,P);a.next(P)},function(P){var K;
(K=S.error)==null||K.call(S,P);a.error(P)},function(){var P;
(P=S.complete)==null||P.call(S);a.complete()}))}):r3};
YSk=function(){var b=_.x$.apply(0,arguments),h=QsM(b);return GH(function(y,S){for(var F=b.length,a=Array(F),P=b.map(function(){return!1}),K=!1,n={i$jscomp$231:0};n.i$jscomp$231<F;n={i$jscomp$231:n.i$jscomp$231},n.i$jscomp$231++)Is(b[n.i$jscomp$231]).subscribe(new kf(S,function(X){return function(u){a[X.i$jscomp$231]=u;
K||P[X.i$jscomp$231]||(P[X.i$jscomp$231]=!0,(K=P.every(r3))&&(P=null))}}(n),void 0,N5));
y.subscribe(new kf(S,function(X){K&&(X=[X].concat(_.f$(a)),S.next(h?h.apply(null,_.f$(X)):X))}))})};
GP8=function(b){var h=T1F;if(h)for(var y in h)Object.prototype.hasOwnProperty.call(h,y)&&b(h[y],y,h)};
kPI=function(){var b=[];GP8(function(h){b.push(h)});
return b};
EbU=function(b){try{return!!b&&b.location.href!=null&&VFM(b,"foo")}catch(h){return!1}};
_.r1=function(b){return new rkN(b[0].toLowerCase())};
iDM=function(b){for(var h=_.x$.apply(1,arguments),y=b[0],S=0;S<b.length-1;S++)y+=String(h[S]),y+=b[S+1];h=document.implementation.createHTMLDocument("");S=h.createElement("style");h.head.appendChild(S);h=S.sheet;h.insertRule(y,0);if(h.cssRules.length===1&&(y=h.cssRules[0],y instanceof CSSStyleRule))return new HE(y.cssText.replace(/</g,"\\3C "))};
fKy=function(b){try{return new URL(b,window.document.baseURI)}catch(h){return new URL("about:invalid")}};
wBf=function(b,h){var y=h.createRange();y.selectNode(h.body);b=yx(b);return y.createContextualFragment(Sw(b))};
lKI=function(b){b=b.nodeName;return typeof b==="string"?b:"FORM"};
qSj=function(b){b=b.nodeType;return b===1||typeof b!=="number"};
cB=function(b,h,y){b.setAttribute(h,y)};
xzI=function(b){return b.parts.map(function(h){var y=h.descriptor;return""+h.url+(y?" "+y:"")}).join(" , ")};
_.Ra=function(b){var h=_.x$.apply(1,arguments);if(h.length===0)return _.gf(b[0]);for(var y=b[0],S=0;S<h.length;S++)y+=encodeURIComponent(h[S])+b[S+1];return _.gf(y)};
_.zP=function(b,h){b=_.s_(b).toString();var y=b.split(/[?#]/),S=/[?]/.test(b)?"?"+y[1]:"";return Qaf(y[0],S,/[#]/.test(b)?"#"+(S?y[2]:y[1]):"",h)};
Qaf=function(b,h,y,S){function F(P,K){P!=null&&(Array.isArray(P)?P.forEach(function(n){return F(n,K)}):(h+=a+encodeURIComponent(K)+"="+encodeURIComponent(P),a="&"))}
var a=h.length?"&":"?";S.constructor===Object&&(S=Object.entries(S));Array.isArray(S)?S.forEach(function(P){return F(P[1],P[0])}):S.forEach(F);
return _.gf(b+h+y)};
vbY=function(){var b=PE(mzk).toString();return _.gf(URL.createObjectURL(new Blob([b],{type:"text/javascript"})))};
bq5=function(b){var h=[],y=0,S;for(S in b)h[y++]=S;return h};
h9U=function(b,h){for(var y in b)if(b[y]==h)return!0;return!1};
yW8=function(b,h,y){for(var S in b)if(h.call(y,b[S],S,b))return S};
SDM=function(b){if(!b||typeof b!=="object")return b;if(typeof b.clone==="function")return b.clone();if(typeof Map!=="undefined"&&b instanceof Map)return new Map(b);if(typeof Set!=="undefined"&&b instanceof Set)return new Set(b);if(b instanceof Date)return new Date(b.getTime());var h=Array.isArray(b)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(b)||b instanceof DataView?{}:new b.constructor(b.length),y;for(y in b)h[y]=SDM(b[y]);return h};
FnF=function(b){var h=arguments.length;if(h==1&&Array.isArray(arguments[0]))return FnF.apply(null,arguments[0]);if(h%2)throw Error("ma");for(var y={},S=0;S<h;S+=2)y[arguments[S]]=arguments[S+1];return y};
a9I=function(b){var h=arguments.length;if(h==1&&Array.isArray(arguments[0]))return a9I.apply(null,arguments[0]);for(var y={},S=0;S<h;S++)y[arguments[S]]=!0;return y};
DK=function(b,h,y,S){this.top=b;this.right=h;this.bottom=y;this.left=S};
dKk=function(b){b=b.global;if(b.PendingGetBeacon)return b.PendingGetBeacon};
WB=function(b){return function(h){return h.pipe(jYr(b,ZK(new Ia)))}};
Ag=function(b){return function(h){return h.pipe(jYr(b,nD(1)))}};
jYr=function(b,h){function y(S){return new zH(function(F){return S.subscribe(function(a){US(b,function(){return void F.next(a)},3)},function(a){US(b,function(){return void F.error(a)},3)},function(){US(b,function(){return void F.complete()},3)})})}
return Rs(y,vf4(),h,E3(),y)};
P5f=function(b){var h=$KU(b);return h===null?new pD(null):h.pipe(iZ(function(y){y=y.serialize();if(Lny)y=_.S5.btoa(y);else{for(var S=[],F=0,a=0;a<y.length;a++){var P=y.charCodeAt(a);P>255&&(S[F++]=P&255,P>>=8);S[F++]=P}y=_.CA(S)}return y}),jF(1),Ag(b.queue))};
Kn4=function(b){var h=h===void 0?{}:h;if(typeof Event==="function")return new Event(b,h);if(typeof document!=="undefined"){var y=document.createEvent("CustomEvent");y.initCustomEvent(b,h.bubbles||!1,h.cancelable||!1,h.detail);return y}throw Error();};
ZqM=function(b){return typeof b==="string"?document.getElementById(b):b};
MGM=function(b){var h=!1;h=h===void 0?!1:h;if(b.tagName==="IMG"){if(b.complete&&(!b.naturalWidth||!b.naturalHeight))return!0;var y;if(h&&((y=b.style)==null?void 0:y.display)==="none")return!0}var S,F;return oTN.test((S=b.getAttribute("width"))!=null?S:"")&&oTN.test((F=b.getAttribute("height"))!=null?F:"")};
nTj=function(b,h){if(b.tagName==="IMG")return b.naturalWidth&&b.naturalHeight?!0:!1;try{if(b.readyState)var y=b.readyState;else{var S,F;y=(S=b.contentWindow)==null?void 0:(F=S.document)==null?void 0:F.readyState}return y==="complete"}catch(a){return h===void 0?!1:h}};
X04=function(b){b||(b=function(h,y,S){h.addEventListener(y,S)});
return b};
NBn=function(b,h){var y=Hqn();y=y===void 0?new uRI:y;if(b=ZqM(b)){var S=X04(S);for(var F=!1,a=function(U){F||(F=!0,h(U))},P,K=2,n=0;n<Oqf.length;++n)if(Oqf[n]===b.tagName){K=3;
P=[b];break}P||(P=b.querySelectorAll(Oqf.join(",")));var X=0,u=0,O=!0,N=b=!1;n={};for(var t=0;t<P.length;n={isImg:void 0},t++){var R=P[t];if(!MGM(R))if(n.isImg=R.tagName==="IMG",nTj(R,y.crossDomainLoadedDefault))b=!0,n.isImg&&(O=!0);else{X++;var I=function(U){return function(p){X--;!X&&O&&a(K);U.isImg&&(p=p&&p.type==="error",u--,p||(O=!0),!u&&N&&O&&a(K))}}(n);
S(R,"load",I);n.isImg&&(u++,S(R,"error",I))}}u===0&&(O=!0);P=null;P=_.S5.document.readyState==="complete";if(X===0&&!b&&P)K=5;else if(X||!b){S(_.S5,"load",function(){!y.pendingImagesBlockLoad||!u&&O?a(4):N=!0});
return}a(K)}};
tG4=function(b,h,y){if(b)for(var S=0;b!=null&&S<500&&!y(b);++S)b=h(b)};
rWM=function(b,h){tG4(b,function(y){try{return y===y.parent?null:y.parent}catch(S){}return null},h)};
cWN=function(b,h){if(b.tagName=="IFRAME")h(b);else{b=b.querySelectorAll("IFRAME");for(var y=0;y<b.length&&!h(b[y]);++y);}};
R94=function(b){return(b=b.ownerDocument)&&(b.parentWindow||b.defaultView)||null};
z9n=function(b,h,y){try{var S=JSON.parse(y.data)}catch(P){}if(typeof S==="object"&&S&&S.type==="creativeLoad"){var F=R94(b);if(y.source&&F){var a;rWM(y.source,function(P){try{if(P.parent===F)return a=P,!0}catch(K){}});
a&&cWN(b,function(P){if(P.contentWindow===a)return h(S),!0})}}};
DKN=function(b){return typeof b==="string"?document.getElementById(b):b};
AWn=function(){var b={};return b[0]=_.Ra(I9U,"current"),b[1]=_.Ra(BB4),b[2]=_.Ra(Wnj),b};
CD=function(b,h){return b.left===h.left&&b.top===h.top&&b.width===h.width&&b.height===h.height};
UKf=function(b,h){return{left:Math.max(b.left,h.left),top:Math.max(b.top,h.top),width:Math.max(0,Math.min(b.left+b.width,h.left+h.width)-Math.max(b.left,h.left)),height:Math.max(0,Math.min(b.top+b.height,h.top+h.height)-Math.max(b.top,h.top))}};
p0k=function(b,h){return{left:Math.round(b.left+h.x),top:Math.round(b.top+h.y),width:b.width,height:b.height}};
JWy=function(b,h,y){if(b&&h!==null&&h!=h.top){if(!h.top)return new _.g1(-12245933,-12245933);h=h.top}try{return(y===void 0?0:y)?(new _.g1(h.innerWidth,h.innerHeight)).round():_.sS(h).round()}catch(S){return new _.g1(-12245933,-12245933)}};
e94=function(b,h,y){try{if(b){if(!h.top)return new DK(-12245933,-12245933,-12245933,-12245933);h=h.top}var S=JWy(b,h,y),F=S.height,a=S.width;if(a===-12245933)return new DK(a,a,a,a);var P=TP(GP(h.document)),K=P.x,n=P.y;return new DK(n,K+a,n+F,K)}catch(X){return new DK(-12245933,-12245933,-12245933,-12245933)}};
C5I=function(b){var h;return(h=b.google_tag_data)!=null?h:b.google_tag_data={}};
gTq=function(b){var h,y;return typeof((h=b.navigator)==null?void 0:(y=h.userAgentData)==null?void 0:y.getHighEntropyValues)==="function"};
YDF=function(b){if(!gTq(b))return null;var h=C5I(b);if(h.uach_promise)return h.uach_promise;b=b.navigator.userAgentData.getHighEntropyValues(sY5).then(function(y){h.uach!=null||(h.uach=y);return y});
return h.uach_promise=b};
QY8=function(b){var h;return TBf(G$N(k$k(VGn(ETN(iq4(f9Y(w0k(l9y(new qDM,b.architecture||""),b.bitness||""),b.mobile||!1),b.model||""),b.platform||""),b.platformVersion||""),b.uaFullVersion||""),((h=b.fullVersionList)==null?void 0:h.map(function(y){var S=new xKr;S=_.kb(S,1,y.brand);return _.kb(S,2,y.version)}))||[]),b.wow64||!1)};
mK8=function(b){var h,y;return(y=(h=YDF(b))==null?void 0:h.then(function(S){return QY8(S)}))!=null?y:null};
vTF=function(b,h){return new zH(function(y){var S=!1,F=Array(h.length);F.fill(void 0);var a=new Set,P=new Set,K=function(O,N){b.running?(F[N]=O,a.add(N),S||(S=!0,US(b,function(){S=!1;y.next(_.Ej(F))},1))):y.error(new VX(N))},n=function(O,N){P.add(N);
a.add(N);US(b,function(){y.error(O)},1)},X=function(O){P.add(O);
US(b,function(){P.size===h.length&&y.complete()},1)},u=h.map(function(O,N){return O.subscribe(function(t){return void K(t,N)},function(t){return void n(t,N)},function(){return void X(N)})});
return function(){u.forEach(function(O){return void O.unsubscribe()})}})};
yrn=function(b,h,y){function S(){if(h.debugChannel){var U=h.debugChannel,p=U.next;var e={creativeId:h.debugNames.getName(y),requiredSignals:F,signals:Object.assign({},a),hasPrematurelyCompleted:P,errorMessage:K,erroredSignalKey:n};e={specMajor:2,specMinor:0,specPatch:0,timestamp:hg(h.timeProvider.now(),new yX(0,h.timeProvider.timeline)),instanceId:h.debugNames.getName(h.symbol),creativeState:e};p.call(U,e)}}
for(var F=Object.keys(b),a={},P=!1,K=null,n=null,X={},u=new Set,O=[],N=[],t=_.L(F),R=t.next(),I={};!R.done;I={key$jscomp$394:void 0},R=t.next())I.key$jscomp$394=R.value,R=b[I.key$jscomp$394],R instanceof pD?(X[I.key$jscomp$394]=R.value,u.add(I.key$jscomp$394),h.debugChannel&&(a[String(I.key$jscomp$394)]=zXn(R.value))):(R=R.pipe($b(function(U,p){return cgn(U)||cgn(p)?!1:U===p}),iZ(function(U){return function(p){h.debugChannel&&(a[String(U.key$jscomp$394)]=zXn(p),S());
var e={};return e[U.key$jscomp$394]=p,e}}(I)),FX(function(U){return function(p){if(p instanceof VX)throw new baM(String(U.key$jscomp$394));
throw p;}}(I)),saY(function(U){return function(){u.add(U.key$jscomp$394)}}(I),function(U){return function(p){n=String(U.key$jscomp$394);
K=String(p);S()}}(I),function(U){return function(){u.has(U.key$jscomp$394)||(P=!0,S())}}(I))),N.push(I.key$jscomp$394),O.push(R));
(b=Object.keys(a).length>0)&&S();t=vTF(h.queue,O).pipe(FX(function(U){if(U instanceof VX)throw new huj(String(N[U.inputObservableIndex]));throw U;}),iZ(function(U){return Object.freeze(Object.assign.apply(Object,[{},
X].concat(_.f$(U))))}));
return(O=O.length>0)&&b?vE(Yf(Object.freeze(X)),t):O?t:Yf(Object.freeze(X))};
S5U=function(b,h,y,S,F){return b.performanceMonitor.timeExecution.bind(b.performanceMonitor)(733,function(){var a={};try{return h.pipe(FX(function(P){S(Object.assign({},a,{error:P}));return mt}),q5(function(P){try{var K=y(b,P)}catch(X){return S(Object.assign({},a,{error:X instanceof Error?X:String(X)})),mt}var n={};
return yrn(K,b,P.symbol).pipe(saY(function(X){n=X}),nD(1),E3()).pipe(F,FX(function(X){S(Object.assign({},n,{error:X}));
return mt}),LD(void 0),iZ(function(){return!0}))})).pipe(XX(function(P){return P+1},0),FX(function(P){S(Object.assign({},a,{error:P}));
return mt}))}catch(P){return S(Object.assign({},a,{error:P})),mt}})()};
ES=function(b){var h=new Map;if(typeof b!=="object"||b===null)return h;Object.values(b).forEach(function(y){y&&typeof y.extrapolateToNow==="function"&&(h.has(y.clock.timeline)||h.set(y.clock.timeline,y.clock.now()))});
return h};
F2F=function(b,h){return typeof b==="string"?encodeURIComponent(b):typeof b==="number"?String(b):Array.isArray(b)?b.map(function(y){return F2F(y,h)}).join(","):b instanceof yX?b.toString():b&&typeof b.extrapolateToNow==="function"?F2F(b.extrapolateUsingTimestampMap(h).value,h):b===!0?"1":b===!1?"0":b===void 0||b===null?null:b instanceof aCN?dok(b):[b.top,
b.left,b.top+b.height,b.left+b.width].join()};
j4F=function(b,h){b=Object.entries(b).map(function(y){var S=_.L(y);y=S.next().value;S=S.next().value;S=F2F(S,h);return S===null?"":y+"="+S}).filter(function(y){return y!==""});
return b.length?b.join("&"):""};
P_Y=function(b,h){var y=$o4,S=L28;h=h===void 0?.01:h;return function(F){h>0&&Math.random()<=h&&(b.global.HTMLFencedFrameElement&&b.global.fence&&typeof b.global.fence.reportEvent==="function"&&b.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),F=Object.assign({},F,{errorMessage:F.error instanceof Error&&F.error.message?F.error.message:String(F.error),errorStack:F.error instanceof Error&&F.error.stack?String(F.error.stack):null,errorName:F.error instanceof
Error&&F.error.name?String(F.error.name):null,errorContext:String(b.performanceMonitor.timedFunctionContext),errorEscapedQueryId:F.escapedQueryId}),y(Object.assign({},F,{payloadMapper:function(){return function(a){try{return S(Object.assign({},a))}catch(P){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),ES(F)).forEach(function(a){b.beaconFactory.makeBeacon(a).sendNow()}))}};
K25=function(){var b=_.x$.apply(0,arguments);return function(h){var y=h.pipe(nD(1),E3());h=b.map(function(S){return y.pipe(S,LD(!0))});
return w3(h).pipe(jF(1),aa())}};
ZaI=function(){var b=_.x$.apply(0,arguments);return function(h){var y=h.pipe(nD(1),E3());h=b.map(function(S){return y.pipe(S,LD(!0))});
return vE.apply(null,_.f$(h)).pipe(jF(1),aa())}};
oHF=function(b,h){return function(y){var S=y.pipe(nD(1),E3());y=S.pipe(b,LD(!0));S=S.pipe(Rs(h,nD(),E3()),LD(!0));y=w3([y,S]);return tFf(y,S).pipe(jF(1),aa())}};
Mhq=function(b,h,y){y(!0)};
nHf=function(b,h){return Rs(OS(function(y){var S=b(y),F=h(y),a={};return S&&F&&a?new zH(function(P){F(S,a,function(K){P.next(Object.assign({},y,{canEmit:K}));P.complete()});
return function(){}}):iR}),bR(function(y){return y.canEmit}))};
Xsy=function(b){var h={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(y){return y.pipe(OS(function(S){return new zH(function(F){function a(){K.disconnect();n.unsubscribe()}
var P=b.MutationObserver;if(P&&S.ref!==void 0){var K=new P(function(X){F.next(X)});
K.observe(S.ref,h);var n=S.JSC$9543_released.subscribe(a);return a}})}))}};
Haf=function(b){if(b.measurementDeferralState===3)return null;if(b.timeOnScreenReason!==void 0){var h=b.creativeFound===!1?"n":null;if(h!==null)return h}return b.geometricMeasurementErrors instanceof fD?"msf":b.contextValidationErrors instanceof w1?"c":b.contextVisibilityKnown===!1?"pv":b.geometricMeasurementErrors||b.contextValidationErrors?"x":null};
Oa4=function(b,h){return b.replace(ukn,function(y,S){try{var F=_.lR.get(h,S);if(F==null||F.toString()==null)return y;F=F.toString();if(F==""||!_.$U(F==null?"":String(F)))return encodeURIComponent(F).replace(/%2C/g,",")}catch(a){}return y})};
Nsk=function(b,h){var y=Object.assign({},b),S=b.userAgentClientHints;y=(delete y.userAgentClientHints,y);y=b.payloadMapper(y);var F=j4F(y,h);return _.qz(b.urlPrefixes,function(a){var P="";typeof S==="string"&&(P="&"+j4F({uach:S},h));var K={};return Oa4(a,(K.VIEWABILITY=F,K))+P})};
$o4=function(b,h){var y=b.payloadMapper(b),S=j4F(y,h);return S?_.qz(b.urlPrefixes,function(F){F=F.indexOf("?")>=0?F:F+"?";F="?&".indexOf(F.slice(-1))>=0?F:F+"&";return F+S}):b.urlPrefixes};
th8=function(){return Rs(bR(function(b){return b!==void 0}),iZ(function(b){return b}))};
rrF=function(b){return Rs(iZ(function(){return!0}),HB(!1),Ag(b))};
crn=function(b){return b.length<=0?mt:w3(b.map(function(h){var y=0;return h.pipe(iZ(function(S){return{index:y++,value:S}}))})).pipe(bR(function(h){return h.every(function(y){return y.index===h[0].index})}),iZ(function(h){return h.map(function(y){return y.value})}))};
Ru4=function(b,h){b.currentState&&(b.previousState=b.currentState);b.currentState=h;b.previousState&&b.previousState.value?(h=Math.max(0,hg(h.timestamp,b.previousState.timestamp)),b.totalTime+=h,b.consecutiveTime+=h):b.consecutiveTime=0;return b};
zuf=function(){return Rs(XX(Ru4,{totalTime:0,consecutiveTime:0}),iZ(function(b){return b.totalTime}))};
DoU=function(){return Rs(XX(Ru4,{totalTime:0,consecutiveTime:0}),iZ(function(b){return b.consecutiveTime}))};
ICn=function(b,h){return function(y){return crn(h.map(function(S){return y.pipe(b(S))}))}};
Bs4=function(){var b;return Rs(saY(function(h){return void(b=h.timestamp)}),DoU(),iZ(function(h){return{timestamp:b,
value:Math.round(h)}}))};
W2j=function(b,h){return CD(b.topWindowViewportExternalGeometry,h.topWindowViewportExternalGeometry)&&CD(b.elementGeometry,h.elementGeometry)&&CD(b.exposedViewportLocalGeometry,h.exposedViewportLocalGeometry)&&CD(b.intersectionGeometry,h.intersectionGeometry)&&b.elementGeometrySourceName===h.elementGeometrySourceName&&b.measurementRequests===h.measurementRequests&&b.viewportGeometrySourceName===h.viewportGeometrySourceName&&b.viewportLocalAppOffset.x===h.viewportLocalAppOffset.x&&b.viewportLocalAppOffset.y===
h.viewportLocalAppOffset.y};
Jrj=function(b,h){return function(y){return function(S){var F=S.pipe(ZK(new Ia),E3());S=y.element.pipe($b());F=F.pipe(iZ(function(a){return a.value}));
return w3([S,F,h]).pipe(iZ(function(a){var P=_.L(a);a=P.next().value;var K=P.next().value;P=P.next().value;if(a.ref===void 0)var n={top:0,left:0,width:0,height:0};else{n=a.ref.getBoundingClientRect();var X=a.ref,u=b.global,O=new _.xb(0,0),N=QX(_.mQ(X));if(VFM(N,"parent")){do{if(N==u)var t=_.vB(X);else t=Ark(X),t=new _.xb(t.left,t.top);O.x+=t.x;O.y+=t.y}while(N&&N!=u&&N!=N.parent&&(X=N.frameElement)&&(N=N.parent))}n={top:O.y,left:O.x,width:n.width,height:n.height}}n=p0k(n,K.viewportLocalAppOffset);
u=UKf(n,K.exposedViewportLocalGeometry);O=b.timeProvider.now();N=Object;X=N.assign;if(P!==2||b.inCrossDomainIframe||u.width<=0||u.height<=0)var R=!1;else try{var I=b.document.elementFromPoint(u.left+u.width/2,u.top+u.height/2);R=I?!Uoy(I,a):!1}catch(U){R=!1}return{timestamp:O,value:X.call(N,{},K,{elementGeometrySourceName:"geo",intersectionGeometry:R?psI.intersectionGeometry:u,elementGeometry:n})}}),WB(b.queue))}}};
Uoy=function(b,h,y){y=y===void 0?0:y;return b.ref===void 0||h.ref===void 0?!1:b.ref===h.ref||_.b5(h.ref,function(S){return S===b.ref})?!0:h.ref.ownerDocument&&h.ref.ownerDocument.defaultView&&h.ref.ownerDocument.defaultView===h.ref.ownerDocument.defaultView.top?!1:y<10&&h.ref.ownerDocument&&h.ref.ownerDocument.defaultView&&h.ref.ownerDocument.defaultView.frameElement?Uoy(b,new hW(h.ref.ownerDocument.defaultView.frameElement),y+1):!0};
gH4=function(b){return function(h){return h.pipe(b.ResizeObserver?euU(b):C_r(b),nD(1),E3())}};
euU=function(b){return function(h){return h.pipe(OS(function(y){var S=b.ResizeObserver;if(!S||y.ref===void 0)return Yf(psI.elementGeometry);var F=(new zH(function(a){function P(){y.ref!==void 0&&K.unobserve(y.ref);K.disconnect();n.unsubscribe()}
if(y.ref===void 0)return a.complete(),function(){};
var K=new S(function(X){X.forEach(function(u){a.next(u)})});
K.observe(y.ref);var n=y.JSC$9543_released.subscribe(P);return P})).pipe(SF(b.performanceMonitor,736),iZ(function(a){return a.contentRect}));
return vE(Yf(y.ref.getBoundingClientRect()),F)}),$b(CD))}};
C_r=function(b){return function(h){var y=h.pipe(Xsy(b)),S=b.onResize;y=vE(h.pipe(iZ(function(){return Kn4("resize")})),y,S);
return w3(h,y).pipe(SF(b.performanceMonitor,737),iZ(function(F){F=_.L(F).next().value;return F.ref===void 0?void 0:F.ref.getBoundingClientRect()}),th8(),$b(CD))}};
Ts4=function(b,h){var y=s44(b,h).pipe(nD(1),E3());return function(S){return function(F){F=F.pipe(OS(function(a){return a.element}),$b());
return w3([y,F]).pipe(OS(function(a){var P=_.L(a);a=P.next().value;P=P.next().value;return Y5F(b,a.intersectionObserver,gH4(b),a.observations,S,a.flushRecords,P)}),WB(b.queue))}}};
Grr=function(b){return iZ(function(h){return h.value.viewportGeometrySourceName!=="nio"?h:Object.assign({},h,{value:Object.assign({},h.value,{exposedViewportLocalGeometry:yY(b,!0),topWindowViewportExternalGeometry:yY(b,!0)})})})};
krF=function(b,h){return Yf(h).pipe(b,iZ(function(){return h}))};
s44=function(b,h){return b.timeProvider.timeline!==Vh5?TH(new fD(2)):b.MutationObserver?typeof IntersectionObserver==="undefined"?TH(new fD(0)):(new zH(function(y){var S=new Ia,F=new SG(S.next.bind(S),{threshold:[].concat(_.f$(h))});y.next({observations:S.pipe(SF(b.performanceMonitor,735)),intersectionObserver:F,flushRecords:function(a){a=F.takeRecords(a);a.length>0&&S.next(a)}})})).pipe(jF(1),nD(1),E3()):TH(new fD(1))};
EHn=function(b){return Vw8(b.sort(function(h,y){return h.time-y.time}),m5N)};
Y5F=function(b,h,y,S,F,a,P){return new zH(function(K){function n(){R||(R=!0,P.ref!==void 0&&h.unobserve(F,P.ref),u.unsubscribe(),t.unsubscribe(),N.unsubscribe(),I.unsubscribe())}
if(P.ref!==void 0){iaI(h,F);h.observe(F,P.ref);var X=new aY({timestamp:b.timeProvider.now(),value:Object.assign({},psI,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),u=S.pipe(q5(function(U){return EHn(U)}),bR(function(U){return U.target===P.ref}),iZ(function(U){return{timestamp:new yX(U.time,Vh5),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:U.rootBounds||dB,topWindowViewportExternalGeometry:U.rootBounds||yY(b,!0),measurementRequests:O,elementGeometrySourceName:"nio",intersectionGeometry:U.intersectionRect,elementGeometry:U.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:U.isIntersecting,isV2Visible:U.isVisible}}}),ZK(X),E3()).subscribe(K),O=new Ia,N=O.subscribe(function(){a(F);
K.next({timestamp:b.timeProvider.now(),value:X.value.value});P.ref!==void 0&&(h.unobserve(F,P.ref),h.observe(F,P.ref))}),t=krF(y,P).subscribe(function(){O.next()}),R=!1,I=P.JSC$9543_released.subscribe(function(){return n()});
return n}})};
fCj=function(b,h){var y=b.getOnBackgrounded().pipe(iZ(function(){return"b"}));
return tFf(h,y).pipe(jF(1),Ag(b.queue))};
jG=function(b){return function(h){var y;return h.pipe(saY(function(S){return void(y=S.timestamp)}),iZ(function(S){return S.value}),b,iZ(function(S){return{timestamp:y,
value:S}}))}};
wsY=function(b){return b.intersectionGeometry.width*b.intersectionGeometry.height/(b.elementGeometry.width*b.elementGeometry.height)};
$T=function(b,h,y){y=y===void 0?function(S,F){return S===F}:y;
return b.timestamp.equals(h.timestamp)&&y(b.value,h.value)};
P0=function(b,h){return h.pipe(iZ(function(y){return new Lq(b.timeProvider,{timestamp:b.timeProvider.now(),value:y})}))};
lC5=function(b){return function(h){return h.pipe(YSk(b),iZ(function(y){var S=_.L(y);y=S.next().value;S=S.next().value;var F=y.value;return{timestamp:y.timestamp,value:F>=1?!0:F<=0?!1:F>=S}}))}};
xoM=function(){return Rs(bR(function(b,h){return h>0}),q5r,HB(-1),$b())};
Q4I=function(b,h,y){return b?w3([h,y]).pipe(bR(function(S){var F=_.L(S);S=F.next().value;F=F.next().value;return S.timestamp.equals(F.timestamp)}),iZ(function(S){var F=_.L(S);
S=F.next().value;F=F.next().value;return S.value>F.value?S:F})):h};
blF=function(b){return function(h){var y=h.pipe(moq),S=h.pipe(vHk);return b instanceof zH?b.pipe(OS(function(F){return Q4I(F,y,S)})):Q4I(b.value,y,S)}};
Pnr=function(b,h,y,S){var F=S.geometryIsOccluded,a=S.exposureThreshold,P=S.wasLargeAdAtRender,K=S.allowLargeAdThreshold,n=S.largeAdExposureThreshold,X=S.mayUseViewportShareExposure,u=S.hasMeasurementStarted;S=S.useIntersectionObserverV2;h=hrU(b,y,h);y=yi4(b,y);S=SWn(h,S);var O=F$f(b,F,X,h),N=O.pipe(iZ(function(w){return w.value}),$b(),Ag(b),XX(function(w,x){return Math.max(w,x)},0)),t=O.pipe(iZ(function(w){return w.value}),xoM(),Ag(b)),R=h.pipe(abM,iZ(function(w){return w.value}),jF(2),$b(),Ag(b));
P=dUI(b,h,P,K);var I=P.pipe(HB(!1),$b(),iZ(function(w){return w?n:a}));
K=O.pipe(lC5(I),$b(),Ag(b));var U=w3([K,h]).pipe(bR(function(w){var x=_.L(w);w=x.next().value;x=x.next().value;return w.timestamp.equals(x.timestamp)}),iZ(function(w){var x=_.L(w);
w=x.next().value;x=x.next().value;return{visible:w.value,geometry:x.value.elementGeometry}}),XX(function(w,x){return!x.visible&&w.visible?w:x},{visible:!1,
geometry:dB}),iZ(function(w){return w.geometry}),HB(dB),Ag(b),$b(CD));
X=X instanceof zH?X.pipe($b(),d1()):iR;I=w3([X,I]).pipe(d1());var p=h.pipe(bR(function(w){return w.value.viewportGeometrySourceName!=="ns"&&w.value.elementGeometrySourceName!=="ns"}),XX(function(w){return w+1},0),HB(0),Ag(b)),e=y.pipe(d1(!0),HB(!1),Ag(b));
e=w3([u,e]).pipe(iZ(function(w){var x=_.L(w);w=x.next().value;x=x.next().value;return w&&!x}),Ag(b));
var E=h.pipe(jef,$b()),Y=E.pipe(iZ(function(w){return w.value}),XX(function(w,x){return Math.max(w,x)},0),$b(),Ag(b));
b=E.pipe(iZ(function(w){return w.value}),xoM(),Ag(b));
return{shouldResetExposureSignals:X,shouldResetViewabilitySignals:I,geometrySignals:{readyGeometryWithDefault:h,measurementStrategy:h.pipe($U8),creativePosition:U.pipe($b(CD)),visible:K.pipe($b($T)),timestampedExposure:O.pipe($b($T)),maximumExposure:N,minimumExposure:t,browserSize:h.pipe(L$U,$b(_.bo)),timestampedScreenShare:E,maxScreenShare:Y,minScreenShare:b,geometricMeasurementErrors:y,measurementRequests:h.pipe(iZ(function(w){return w.value.measurementRequests})),
isLargeAd:P,geometryIsOccluded:F,hasMeasurementStarted:u,geometryMeasurable:e,validMeasurementCount:p,loadTimeExposure:R,v2VisibilityBitVector:S}}};
yi4=function(b,h){return h.pipe(bR(function(){return!1}),iZ(function(y){return y}),FX(function(y){return Kq(new pD(y),b)}))};
hrU=function(b,h,y){return h.pipe(ODf(iR),Ag(b)).pipe($b(function(S,F){return $T(S,F,W2j)}),HB({timestamp:y.now(),
value:psI}),Ag(b))};
F$f=function(b,h,y,S){y=S.pipe(blF(y),jG(iZ(function(F){return Math.round(F*100)/100})),Ag(b));
return h instanceof pD?y:w3([y,h]).pipe(iZ(function(F){var a=_.L(F);F=a.next().value;a=a.next().value;return{timestamp:a.timestamp.maximum(F.timestamp),value:a.value?0:F.value}}),$b($T),Ag(b))};
dUI=function(b,h,y,S){h=[h.pipe(iZ(function(F){return F.value.elementGeometry.width*F.value.elementGeometry.height>=242500}))];
y instanceof zH&&h.push(y.pipe(iZ(function(F){return!!F})));
y=w3(h);return S?y.pipe(iZ(function(F){return F.some(function(a){return a})}),HB(!1),$b(),Ag(b)):Kq(new pD(!1),b)};
SWn=function(b,h){b=w3([b,h]).pipe(iZ(function(F){var a=_.L(F);F=a.next().value;if(a.next().value&&F.value.isIntersecting)return F.value.isV2Visible}),$b());
var y=b.pipe(iZ(function(F){return F===void 0?!0:F}),XX(function(F,a){return F||!a},!1)),S=b.pipe(XX(function(F,a){return a===void 0?F:a?!1:F!=null?F:!0},void 0),iZ(function(F){return!!F}));
return w3([h,rg5(b,y,S)]).pipe(iZ(function(F){var a=_.L(F);F=a.next().value;var P=_.L(a.next().value);a=P.next().value;var K=P.next().value;P=P.next().value;var n=0;if(!F)return 0;if(a===void 0)return 16;a&&(n|=1);a||(n|=2);K&&(n|=4);P&&(n|=8);return n}))};
X4F=function(b,h,y,S,F){var a=K$N.timeThresholdMs;var P=P===void 0?new ZlY(h,S):P;return(new zH(function(K){var n=y.pipe(HB(void 0),OS(function(){return oZn(F)})).pipe(iZ(function(X){var u=X.value;
X=X.timestamp;var O=u.visible;u=u.consecutiveViewTime;var N=u>=a;N||!O?MY8(P):(X=Math.max(0,hg(h.now(),X)),nZn(P,Math.max(0,a-u-X)));return N}),XX(function(X,u){return u||X},!1),$b()).subscribe(K);
return function(){P.dispose();n.unsubscribe()}})).pipe(tg(function(K){return!K},!0),Ag(b))};
oZn=function(b){return crn([b,b.pipe(Bs4())]).pipe(iZ(function(h){var y=_.L(h);h=y.next().value;y=y.next().value;return{timestamp:h.timestamp,value:{visible:h.value,consecutiveViewTime:y.value}}}),$b(function(h,y){return $T(h,y,function(S,F){return S.consecutiveViewTime===F.consecutiveViewTime&&S.visible===F.visible})}))};
Hlq=function(){return Rs(DoU(),XX(function(b,h){return Math.max(b,h)},0),iZ(function(b){return Math.round(b)}))};
u54=function(b){return Rs(lC5(Yf(b)),Hlq())};
Ol8=function(b,h){return h instanceof zH?h.pipe(OS(function(y){return(y=y?15:null)?TH(new fD(y)):b})):(h=h.value?15:null)?TH(new fD(h)):b};
Ngj=function(b){var h=new fD(13);if(b.length<1)return{chain:mt,capturedErrors:mt};var y=new Ia,S=b[0];return{chain:b.slice(1).reduce(function(F,a){return F.pipe(FX(function(P){y.next(P);return a}))},S).pipe(FX(function(F){y.next(F);
return TH(h)}),ZK(new Ia),E3()),
capturedErrors:y}};
tYY=function(b,h){var y=b.pipe(ZK(new Ia),E3());return OS(function(S){return y.pipe(h(S))})};
ci5=function(b,h){if(b.inCrossDomainIframe)return TH(new fD(6));var y=new Ia;return vE(Yf({}),h,y).pipe(iZ(function(){return{timestamp:b.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:rik(b),topWindowViewportExternalGeometry:yY(b,!0),measurementRequests:y,viewportLocalAppOffset:{x:0,y:0}}}}),WB(b.queue))};
rik=function(b){var h=yY(b,!1);if(!b.inIframe||!EbU(b.global.parent)||b.global.parent===b.global)return h;var y=new Z9(b.global.parent,b.debugChannel);y.beaconFactory=b.beaconFactory;y=rik(y);b=b.global.frameElement.getBoundingClientRect();return UKf(p0k(UKf(y,b),{x:h.left-b.left,y:h.top-b.top}),h)};
RrY=function(b){if(b.prerendering)return 3;var h;return(h={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[b.visibilityState||b.webkitVisibilityState||b.mozVisibilityState||""])!=null?h:0};
zrn=function(b){return b.document.JSC$9554_onVisibilityChange.pipe(iZ(function(h){return h==="visible"}),$b(),Ag(b.queue))};
DUY=function(b,h,y){var S;return h.pipe($b(),OS(function(F){return y.pipe(iZ(function(){if(!S){S=!0;try{F.next()}finally{S=!1}}return!0}))}),HB(!1),Ag(b.queue))};
Ib4=function(b){return Rs(jG(iZ(function(h){return h>=1?!0:h<=0?!1:h>=b})),zuf(),iZ(function(h){return Math.round(h)}))};
W$N=function(b,h,y,S,F){var a=BgI;if(a.length>1)for(var P=0;P<a.length-1;P++)if(a[P]<a[P+1])throw Error();P=F.pipe(HB(void 0),OS(function(){return y.pipe(Bs4())}),$b(),Ag(b));
F=F.pipe(HB(void 0),OS(function(){return y.pipe(Hlq())}),$b(),Ag(b));
return{totalMeasurementTime:S.pipe(HB(void 0),OS(function(){return h.pipe(iZ(function(K){return{timestamp:K.timestamp,value:!0}}),zuf())}),$b(),Ag(b)),
totalUnviewedTime:S.pipe(HB(void 0),OS(function(){return h.pipe(iZ(function(K){return{timestamp:K.timestamp,value:K.value===0}}),zuf())}),$b(),Ag(b)),
maxTimeOnScreen:S.pipe(HB(void 0),OS(function(){return h.pipe(ICn(u54,a))}),$b(_.bo),Ag(b)),
timeOnScreen:S.pipe(HB(void 0),OS(function(){return h.pipe(ICn(Ib4,a),iZ(function(K){return K.map(function(n,X){return X>0?n-K[X-1]:n})}))}),$b(_.bo),Ag(b)),
maxConsecutiveViewTime:F,consecutiveViewTime:P.pipe($b($T),Ag(b))}};
UUk=function(b){var h=!0;h=h===void 0?!1:h;return Rs(OS(function(y){return AiI(b.document,y,h)}),Ag(b.queue))};
p4Y=function(b,h,y){var S=y.pipe(iZ(function(F){return{value:F,timestamp:b.timeProvider.now()}}),$b($T));
return h instanceof zH?h.pipe($b(),OS(function(F){return F?Kq(new pD({value:!1,timestamp:b.timeProvider.now()}),b.queue):S})):h.value===!1?S:new pD(!1)};
JiF=function(b,h,y,S,F,a,P){var K=K$N;h=h instanceof zH?h.pipe(HB(!1),$b()):h;var n=!b.isMobile();y=p4Y(b,y,S);b=P.measurableCreative.pipe(rrF(b.queue));return Object.assign({},K,{geometryIsOccluded:y,wasLargeAdAtRender:F,allowLargeAdThreshold:n,mayUseViewportShareExposure:h,hasMeasurementStarted:b,useIntersectionObserverV2:a})};
Cny=function(b,h,y,S,F,a){var P=1;a=a===void 0?!0:a;P=P===void 0?.01:P;var K=K===void 0?b.timeProvider.intervalObservable(100).pipe(Ag(b.queue)):K;return b.performanceMonitor.timeExecution(916,function(){return err(b,h.pipe(WB(b.queue)),y.pipe(WB(b.queue)),S,F,a,P,K)})()};
err=function(b,h,y,S,F,a,P,K){var n=zrn(b).pipe(iZ(function(u){return!u})),X=new gZI(b,[new ser(b,BgI),
new YWq(b,K)]);K=K25(TgY,Gw5);return S5U(b,h,function(u,O){var N=Kq(new pD(O.element),u.queue).pipe(UUk(u),Ag(u.queue)),t={loadedElement:N,shouldMeasure:N.pipe(d1(!0)),measurableCreative:N.pipe(iZ(function(w){var x=x===void 0?Symbol():x;return Object.freeze({symbol:x,element:Kq(new pD(w),u.queue)})})),
creativeSearchResult:Kq(new pD("mue"),u.queue)},R=new pD(!1),I=new pD(!1),U=new pD(17),p=new pD(!1),e=new pD(!1),E=Kq(oY,u.queue);R=X.buildGeometrySource(t,{inApp:R,useV2:!1,requestSource:Kq(U,u.queue)}).geometrySource;t=JiF(u,p,I,n,e,E,t);I=Pnr(u.queue,u.timeProvider,R,t);t=I.geometrySignals;p=I.shouldResetViewabilitySignals;I=W$N(u.queue,t.timestampedExposure,t.visible,I.shouldResetExposureSignals,p);p=X4F(u.queue,u.timeProvider,p,t.measurementRequests,t.visible);e=y.pipe(bR(function(w){return w===
O.element.ref}),iZ(function(){return"ur"}));
E=Dzr(u.timeProvider,F).pipe(d1("t"));e=fCj(u,vE(e,E));E=DUY(u,t.measurementRequests,e.pipe(bR(function(w){return w!==null})));
R=e.pipe(bR(function(w){return w!==null}),iZ(function(){return RrY(u.global.document)===1}));
var Y=kwj(u.document);return Object.assign({},{beaconFactory:new pD(u.beaconFactory),context:new pD(u),inferredPingId:new pD("lidar2"),timeOnScreenPingId:new pD("lidartos"),binaryContext:new pD(17),binaryVersion:new pD(S),requestSource:U,contextValidationErrors:new pD(u.validate()?null:new w1),contextVisibilityKnown:new pD(Y),payloadMapper:new pD(L28),endOfSessionReason:e,timeOnScreenReason:e,requestMeasurementOnEndOfSession:E,hasImpressionFired:VYf,crossDomainIframeState:new pD(u.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:oY,inFetchLaterBeaconExperiment:oY,isTurtlex:oY,turtlexReportEventData:new pD(""),reportFencedFrameEvent:iR,isViewableAttributionEnabled:oY,inViewableAttributionExperiment:new pD(0),fetchBeaconFactory:iR,supportsPendingBeacon:oY,supportsFetchLater:oY,emit:new pD(Mhq),beginToRenderEvent:new pD(Symbol()),activeViewUnmeasurableEvent:new pD(Symbol()),activeViewViewableEvent:new pD(Symbol()),creativeFound:VYf,immediateUrlPrefixes:new pD(O.immediateUrls),timeOnScreenUrlPrefixes:new pD(O.timeOnScreenUrls),
cpmavUrls:iR,viewableRelayUrls:iR,measurementDeferralState:new pD(2),urlSerializer:new pD(Nsk),viewUrlSerializer:new pD(EZN),isCreativeLoaded:N.pipe(rrF(u.queue)),pageVisible:n.pipe(iZ(function(w){return!w})),
eosPageVisible:R,timestampedExposureHistory:t.timestampedExposure.pipe(XX(function(w,x){w.push(x);return w},[]))},t,{viewable:P0(u,p),
maxTimeOnScreen:P0(u,I.maxTimeOnScreen),timeOnScreen:P0(u,I.timeOnScreen),maxConsecutiveViewTime:P0(u,I.maxConsecutiveViewTime),consecutiveViewTime:I.consecutiveViewTime.pipe(iZ(function(w){return new Lq(u.timeProvider,w)})),
totalMeasurementTime:P0(u,I.totalMeasurementTime),totalUnviewedTime:P0(u,I.totalUnviewedTime),userAgentClientHints:P5f(u),clientOrderPingCounter:new pD(new aCN)})},P_Y(b,P),ZaI(a?oHF(K,ilY):oHF(K,fbj),w4I))};
lbM=function(b){var h=_.x$.apply(1,arguments).filter(Boolean).join("&");if(!h)return b;var y=b.match(/[?&]adurl=/);return y?b.slice(0,y.index+1)+h+"&"+b.slice(y.index+1):b+(b.indexOf("?")<0?"?":"&")+h};
MK=function(b,h){return h?"&"+b+"="+encodeURIComponent(h):""};
qW5=function(){try{var b,h;return!!((b=window)==null?0:(h=b.top)==null?0:h.location.href)&&!1}catch(y){return!0}};
_.nq=function(b){b&&typeof b.dispose=="function"&&b.dispose()};
_.H0=function(b){for(var h=0,y=arguments.length;h<y;++h){var S=arguments[h];_.f4(S)?_.H0.apply(null,S):_.nq(S)}};
Qey=function(){var b=xUN();b=b===void 0?"bevasrsg":b;return new Promise(function(h){var y=window===window.top?window:qW5()?window:window.top,S=y[b],F;((F=S)==null?0:F.bevasrs)?h(new OD(S.bevasrs)):(S||(S={},S=(S.nqfbel=[],S),y[b]=S),S.nqfbel.push(function(a){h(new OD(a))}))})};
mUj=function(b){var h={c:b.yn,e:b.xPO,mc:b.wsI,me:b.gkt};b.am&&(h.co={c:b.am.hRi,a:b.am.mMI,s:b.am.l5d});return h};
vZ8=function(b){var h,y,S={yn:b.c,xPO:b.e,wsI:(h=b.mc)!=null?h:!1,gkt:(y=b.me)!=null?y:!1};b.co&&(S.am={hRi:b.co.c,mMI:b.co.a,l5d:b.co.s});return S};
bnU=function(b){return function(){var h;return _.Z(function(y){if(y.nextAddress==1)return y.yield(b(),2);h=y.yieldResult;return y.return({f:function(){return h.k5k()},
c:function(S){return h.wD2(S)},
m:function(S){return h.nJ(vZ8(S))},
mws:function(S){return h.cSO(vZ8(S))}})})}};
hpM=function(b,h){var y=xUN();y=y===void 0?"bevasrsg":y;h={s:function(a){var P;return b.snapshot(Object.assign({},a.c&&{yn:a.c},a.s&&{g6S:a.s},{qEq:(P=a.p)!=null?P:!0}))},
e:function(a){var P;return void((P=b.wqA)==null?void 0:P.call(b,a))},
c:function(a,P){return b.geg(a,P)},
p:b.h8f,l:function(){return b.hAJ()},
wpc:h?bnU(h):void 0};var S=window===window.top?window:qW5()?window:window.top,F=S[y];if(F){F.bevasrs=h;if(F.nqfbel!==void 0)for(y=_.L(F.nqfbel),S=y.next();!S.done;S=y.next())S=S.value,S(h);F.nqfbel=void 0}else F={},F=(F.bevasrs=h,F.nqfbel=void 0,F),S[y]=F};
SMM=function(b){var h=h===void 0?52:h;var y=[];_.NK(b,yjN,6,_.tW()).forEach(function(S){_.rB(S,2)<=h&&y.push(_.rB(S,1))});
return y};
Fw5=function(b){var h=h===void 0?52:h;var y=[];_.NK(b,yjN,6,_.tW()).forEach(function(S){_.rB(S,2)>h&&y.push(_.rB(S,1))});
return y};
aIF=function(b){b.then(function(){},function(){})};
c0=function(b){return{fieldType:1,fieldName:b}};
RY=function(b){return{fieldType:2,fieldName:b}};
_.z$=function(b){return{fieldType:3,fieldName:b}};
dlF=function(){function b(){F[0]=1732584193;F[1]=4023233417;F[2]=2562383102;F[3]=271733878;F[4]=3285377520;u=X=0}
function h(O){for(var N=P,t=0;t<64;t+=4)N[t/4]=O[t]<<24|O[t+1]<<16|O[t+2]<<8|O[t+3];for(t=16;t<80;t++)O=N[t-3]^N[t-8]^N[t-14]^N[t-16],N[t]=(O<<1|O>>>31)&4294967295;O=F[0];var R=F[1],I=F[2],U=F[3],p=F[4];for(t=0;t<80;t++){if(t<40)if(t<20){var e=U^R&(I^U);var E=1518500249}else e=R^I^U,E=1859775393;else t<60?(e=R&I|U&(R|I),E=2400959708):(e=R^I^U,E=3395469782);e=((O<<5|O>>>27)&4294967295)+e+p+E+N[t]&4294967295;p=U;U=I;I=(R<<30|R>>>2)&4294967295;R=O;O=e}F[0]=F[0]+O&4294967295;F[1]=F[1]+R&4294967295;F[2]=
F[2]+I&4294967295;F[3]=F[3]+U&4294967295;F[4]=F[4]+p&4294967295}
function y(O,N){if(typeof O==="string"){O=unescape(encodeURIComponent(O));for(var t=[],R=0,I=O.length;R<I;++R)t.push(O.charCodeAt(R));O=t}N||(N=O.length);t=0;if(X==0)for(;t+64<N;)h(O.slice(t,t+64)),t+=64,u+=64;for(;t<N;)if(a[X++]=O[t++],u++,X==64)for(X=0,h(a);t+64<N;)h(O.slice(t,t+64)),t+=64,u+=64}
function S(){var O=[],N=u*8;X<56?y(K,56-X):y(K,64-(X-56));for(var t=63;t>=56;t--)a[t]=N&255,N>>>=8;h(a);for(t=N=0;t<5;t++)for(var R=24;R>=0;R-=8)O[N++]=F[t]>>R&255;return O}
for(var F=[],a=[],P=[],K=[128],n=1;n<64;++n)K[n]=0;var X,u;b();return{reset:b,update:y,digest:S,digestString:function(){for(var O=S(),N="",t=0;t<O.length;t++)N+="0123456789ABCDEF".charAt(Math.floor(O[t]/16))+"0123456789ABCDEF".charAt(O[t]%16);return N}}};
Zny=function(b,h){h=h===void 0?jAM:h;if(!$lN){var y;b=(y=b.navigator)==null?void 0:y.userAgentData;if(!b||typeof b.getHighEntropyValues!=="function"||b.brands&&typeof b.brands.map!=="function")return Promise.reject(Error("ua"));LwF((b.brands||[]).map(function(F){var a=new PN5;a=_.kb(a,1,F.brand);return _.kb(a,2,F.version)}));
typeof b.mobile==="boolean"&&_.D9(Kwj,2,b.mobile);$lN=b.getHighEntropyValues(h)}var S=new Set(h);return $lN.then(function(F){var a=Kwj.clone();S.has("platform")&&_.kb(a,3,F.platform);S.has("platformVersion")&&_.kb(a,4,F.platformVersion);S.has("architecture")&&_.kb(a,5,F.architecture);S.has("model")&&_.kb(a,6,F.model);S.has("uaFullVersion")&&_.kb(a,7,F.uaFullVersion);return a.serialize()}).catch(function(){return Kwj.serialize()})};
IY=function(b,h,y,S){this.initialValue_=b;this.maxValue_=h;this.currBaseValue_=this.currValue_=b;this.randomFactor_=y||0;this.backoffFactor_=S||2};
AW=function(b){this.src=b;this.listeners={};this.typeCount_=0};
X95=function(){for(var b;b=o0Y.remove();){try{b.fn.call(b.scope)}catch(h){Fn(h)}MR4.put(b)}n0f=!1};
_.HnI=function(b){switch(b){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}};
uS4=function(b){switch(b){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""}};
_.On4=function(){};
BHn=function(b,h,y,S){b=NHq(tRk(rjN(new _.UD(1828,"0"),b),new cjf)).disableWithCredentials();h.length&&Rp5(b,zpY(new Dl5,h));S!==void 0&&(b.destinationUrl=S);var F=new IIk(1828,"","",!1,"",b.build());_.pq(F,b);var a=new JW({flush:function(P){try{F.flush(P)}catch(K){y(K)}}});
a.addOnDisposeCallback(function(){setTimeout(function(){try{a.snapshotAndFlush()}finally{F.dispose()}})});
a.invocationLimit=1E5;a.flushInterval=3E4;a.JSC$9970_flushTimer.setInterval(3E4);return a};
eG=function(){var b,h,y;return(y=(b=globalThis.performance)==null?void 0:(h=b.now)==null?void 0:h.call(b))!=null?y:Date.now()};
Ulq=function(b,h){if(b.disable)return new Wwr;h=h?SMM(h):[];b={jF:b.jF,qqW:b.f7u,nVy:b.x6m,destinationUrl:b.destinationUrl,daF:b.daF,xxi:b.xxi};h=h===void 0?[]:h;return new Aj8(b,h)};
p9f=function(b){if(!b)return null;b=_.Cq(b,2);return b===null||b===void 0?null:yx(b)};
_.JjU=function(b){if(!b)return null;b=_.Cq(b,4);return b===null||b===void 0?null:_.gf(b)};
g0n=function(b,h){return h?epF(h):b?CNf(b):Promise.resolve()};
epF=function(b){return new Promise(function(h,y){var S=_.gB("SCRIPT"),F=_.JjU(b);_.ZF(S,F);S.onload=function(){_.sD(S);h()};
S.onerror=function(){_.sD(S);y(Error("Fa"))};
(T$("HEAD")[0]||document.documentElement).appendChild(S)})};
CNf=function(b){return new Promise(function(h){var y=_.gB("SCRIPT");if(b){var S=_.Cq(b,6);S=S===null||S===void 0?null:_.L$(S)}else S=null;_.K$(y,S);(T$("HEAD")[0]||document.documentElement).appendChild(y);_.sD(y);h()})};
G$=function(b,h,y){var S,F=new Promise(function(a){S=setTimeout(a,h)});
return Promise.race([b.finally(function(){return void clearTimeout(S)}),
F.then(y)])};
sAr=function(b,h){try{return globalThis.sessionStorage.setItem(b,h),!0}catch(y){return!1}};
YMf=function(b,h,y,S){h=h===void 0?0:h;y=y===void 0?b.length:y;var F=0;for(S&&(F=YMf(S));h<y;h++)S=typeof b==="string"?b.charCodeAt(h):b[h],F=THr(31,F)+S|0;return F};
Gnj=function(b,h){return[YMf(b,0,b.length>>1,h),YMf(b,b.length>>1)]};
knI=function(b){var h=_.L(Gnj(b,kT));b=h.next().value;h=h.next().value;return b.toString(16)+h.toString(16)};
VRN=function(b,h){var y=Gnj(h);b=new Uint32Array(b.buffer);h=b[0];var S=_.L(y);y=S.next().value;S=S.next().value;for(var F=1;F<b.length;F+=2){for(var a=h,P=F,K=y,n=S,X=0;X<22;X++)P=P>>>8|P<<24,P+=a|0,P^=K+38293,a=a<<3|a>>>29,a^=P,n=n>>>8|n<<24,n+=K|0,n^=X+38293,K=K<<3|K>>>29,K^=n;a=[a,P];b[F]^=a[0];F+1<b.length&&(b[F+1]^=a[1])}};
E0n=function(b,h,y,S,F){var a=(4-(kT.length+y.length)%4)%4,P=new Uint8Array(4+a+kT.length+4+y.length),K=new DataView(P.buffer),n=0;K.setUint32(n,Math.random()*4294967295);n=n+4+a;P.set(kT,n);n+=kT.length;K.setUint32(n,F);P.set(y,n+4);VRN(P,S);return b.insert(h,function(X){return void globalThis.sessionStorage.removeItem(X)})?sAr(h,_.CA(P))?"s":"t":"i"};
inj=function(b,h){var y=globalThis.sessionStorage.getItem(b);if(!y)return["m"];try{var S=_.h8(y);VRN(S,h)}catch(F){return globalThis.sessionStorage.removeItem(b),["c"]}for(h=4;h<7&&S[h]===0;)h++;for(y=0;y<kT.length;y++)if(S[h++]!==kT[y])return globalThis.sessionStorage.removeItem(b),["d"];y=(new DataView(S.buffer)).getUint32(h);return Math.floor(Date.now()/1E3)>=y?(globalThis.sessionStorage.removeItem(b),["e"]):["a",new Uint8Array(S.buffer,h+4)]};
fI4=function(b){return globalThis.TextEncoder?(new TextEncoder).encode(b):_.VY(b)};
w9N=function(b){var h=b,y;return function(){if(h){var S=h;h=void 0;y=S.apply(this,arguments)}return y}};
qM8=function(b){return s7(function(h){if(h instanceof b)return!0;var y,S,F=h==null?void 0:(y=h.ownerDocument)==null?void 0:(S=y.defaultView)==null?void 0:S[b.name];return lIk(F)&&h instanceof F})};
_.fq=function(b,h,y){_.ED.call(this);this.JSC$10184_listener_=b;this.JSC$10184_interval_=h||0;this.handler_=y;this.callback_=(0,_.i5)(this.JSC$10186_doAction_,this)};
_.wB=function(b){b=xl8(b);return _.gf(b)};
xl8=function(b){return b===null?"null":b===void 0?"undefined":b};
mly=function(b){if(b&&b.focus)if(b!==document.activeElement)b.focus();else return QA5(function(){return _.Z(function(h){document.activeElement&&document.activeElement.blur();return h.return(QA5(function(){b.focus()}))})})};
_.v0r=function(b){var h=h===void 0?5:h;setTimeout(function(){var y;return _.Z(function(S){S.nextAddress==1&&(y=document.activeElement);if(S.nextAddress!=5)return(document.activeElement===y||document.activeElement===document.body)&&h>=0&&b?S.yield(mly(b),5):S.jumpTo(0);if(document.activeElement===b)return S.return();b=b.parentElement;--h;return S.jumpTo(2)})},15)};
QA5=function(b){return new Promise(function(h){requestAnimationFrame(function(){h(b())})})};
hvI=function(b){if(_.l5)b(_.l5);else{var h;((h=bz4)!=null?h:bz4=[]).push(b)}};
xT=function(){!_.l5&&_.qK&&_.y94(_.qK());return _.l5};
_.y94=function(b){_.l5=b;var h;(h=bz4)==null||h.forEach(hvI);bz4=void 0};
_.QY=function(b){_.l5&&_.l5.beforeLoadModuleCode(b)};
_.mn=function(){_.l5&&_.l5.JSC$11241_setLoaded()};
v0=function(b){return CoY(b)?Number(b):String(b)};
SvF=function(b){this.action=b;this.wfv=!1};
FB5=function(b,h){SvF.call(this,"set-drive-options");this.appId=b;this.appOrigin=h};
aBM=function(b){SvF.call(this,"visibility");this.visible=b};
dON=function(b,h,y){hr.call(this,b,h,y)};
j2F=function(b){Sh.call(this,b)};
$OF=function(b){b=b&&b.getWindow()||window;return b.gadgets&&b.gadgets.rpc};
Pj5=function(b,h){var y=h&&h.getWindow()||window;if($OF(h))b();else if(LB5)LB5.push(b);else var S=LB5=[b],F=y.setInterval(function(){if($OF(h)){y.clearInterval(F);for(var a=0;a<S.length;a++)S[a]();LB5=null}},100)};
Zzy=function(b,h){var y=new Fk(b);_.pq(h,y);var S={passive:!1};h.listen(y,"mousewheel",function(F){return void KB8(b,F)},S).listen(b,"scroll",function(F){return void KB8(b,F)},S)};
KB8=function(b,h){var y;a:{for(y=h.target;y;){if(y.nodeType==1){var S=_.a4(y,"overflowY");if(S=="auto"||S=="scroll")break a}y=y.parentNode}y=null}if(!y||!_.ds(b,y)||y.scrollHeight==y.clientHeight||h.deltaY>0&&Math.abs(y.scrollTop-(y.scrollHeight-y.clientHeight))<=1||h.deltaY<0&&y.scrollTop==0)h.preventDefault(),h.stopPropagation()};
oPN=function(){var b;if(b=b===void 0?window:b)return b!==b.parent&&b.hasOwnProperty("pangolinIframeGlobals");var h=Error("fb");setTimeout(function(){throw h;},1);
return!1};
o4=function(b,h,y,S,F,a,P,K,n){K=K===void 0?!1:K;n=n===void 0?!1:n;hr.call(this,void 0,void 0,void 0);hr.call(this,a?a+" picker modal-dialog":"picker modal-dialog",!0,y);_.jh(b,"protocol");this.iframeManager_=new MKN;this.targetId_=$H();this.rpcToken_=$H();b=_.La(b);_.Ps(b,"hostId");this.useGapi_=!n&&!oPN();K&&_.Ka(b,"fv2","true");this.setUrl(b.toString());this.preferredDialogWidth_=S;this.preferredDialogHeight_=F;S!==void 0||F!==void 0?S=!0:(S=_.Ps(_.La(b.toString()),"hostId"),nP5||(nP5=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),
S=!nP5.has(S));this.autoSizeDialog_=S;this.JSC$10374_gadgetsDomHelper_=P||this.JSC$10325_dom_;h&&(P=this.JSC$10374_gadgetsDomHelper_,h=_.Ps(_.La(this.JSC$10376_url_),"grugl")=="true"?XLM:HzY,$OF(P)||(P=P||GP(document),S=P.createElement("SCRIPT"),_.ZF(S,h),S.type="text/javascript",P.JSC$9509_document_.body.appendChild(S)));b=b.toString();h=null;P=b.indexOf("/picker?");P>-1?h=b.substring(0,P+8-1):j5(b,"/picker")&&(h=b);h&&this.setRelayUrl(h+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=
null;this.buttonEl_&&(this.buttons_?(b=this.buttons_,b.JSC$10359_element_=this.buttonEl_,b.render()):_.M5(this.buttonEl_,ulq),_.ZC(this.buttonEl_,!!this.buttons_))};
_.r9M=function(b){var h=h===void 0?OzY:h;var y=_.mM(b),S=function(a){a=_.L(a);a.next();a=Mo(a);return h(y,a)},F=function(a){var P=_.L(a);
a=P.next().value;P=Mo(P);return b.apply(a,P)};
return function(){var a=_.x$.apply(0,arguments),P=this||_.S5,K=NwN.get(P);K||(K={},NwN.set(P,K));return tK8(K,[this].concat(_.f$(a)),F,S)}};
na=function(b){var h={};b=b.replace(/\r/g,"").split("\n");for(var y=0;y<b.length;y++){var S=b[y],F=S.indexOf(":");F<0||(h[S.substring(0,F)]=S.substring(F+2,S.length))}return h};
c98=function(b,h,y){y=y===void 0?function(){}:y;
return b?h():y()};
_.zvU=function(b){var h;return((h=RvF.documentOverride)!=null?h:b).__wizdispatcher};
_.Hs=function(b){var h=Xk;Xk=b;return h};
_.IBy=function(b){return b===DOy||(b==null?void 0:b.name)==="\u0275NotFound"};
_.u_=function(b,h){var y;if((y=b)==null?0:y.isDisposed)throw Error("kb`"+String(b.debugName));for(;b!==void 0;){y=b;if(y.retrieve)return y.retrieve(h,{optional:!0});b=b.parent}return DOy};
O5=function(b){return{"\u0275prov":{providedIn:"root",token:Symbol(b),factory:void 0,value:void 0}}};
_.Bwq=function(b){var h=Xk;if(!h){switch(b===void 0?3:b){case 0:b=Error("jb");break;case 1:b=Error("lb");break;case 2:b=Error("mb");break;default:b=Error("nb")}throw b;}return h};
WBN=function(b){var h=_.Hs(b);b={};return b[Symbol.dispose]=function(){_.Hs(h)},b};
A9M=function(b,h){b.disposables||(b.disposables=[]);b.disposables.push(h)};
No=function(b){var h=Xk;h&&!h.isDisposed&&(A9M(h,b),b.parent=h)};
pLN=function(b){if(b.disposables){for(var h=_.L(b.disposables),y=h.next();!y.done;y=h.next())y=y.value,typeof y==="function"?y():UOY(y);b.disposables.length=0}};
UOY=function(b){if(!b.isDisposed){b.isDisposed=!0;var h;(h=b[Symbol.dispose])==null||h.call(b);delete b.parent;pLN(b)}};
k6j=function(b){var h={retrieve:function(y){switch(y.\u0275prov.token){case J9k.\u0275prov.token:var S=b.asyncDeps;break;case _.ev4.\u0275prov.token:S=b.rootElement;break;case CjU.\u0275prov.token:S=b.modelRootElement;break;case gPf.\u0275prov.token:S=b.appContext;break;case s2j.\u0275prov.token:S=b.rendererData;break;case Yv4.\u0275prov.token:S=b.injectingConstructor;break;case Twy.\u0275prov.token:S=b.dispatcher}if(S)y=S;else a:{for(S=h.parent;S;){var F=S;if(F.retrieve){y=F.retrieve(y);break a}S=
S.parent}S=y.\u0275prov.token;F=G6U[S];F!==void 0?y=F:(F=y.\u0275prov.providedIn,y.\u0275prov.factory?(y=y.\u0275prov.factory(),S&&F==="root"&&(G6U[S]=y)):y=DOy)}return y}};
No(h);return h};
VKI=function(){var b=_.Bwq(1),h=_.u_(b,gPf);if(!_.IBy(h))return h;b=_.u_(b,Twy);if(!_.IBy(b))return b.getOptionalAppContext()};
EPq=function(b){if(typeof document!=="undefined"&&document&&document.getElementById&&(b=document.getElementById(b))){var h=b.tagName.toUpperCase();if(h=="SCRIPT"||h=="LINK")return b}return null};
fB5=function(b,h){if((b=b===void 0?"":b)&&h)throw Error("tb");var y="";var S=_.S5._F_jsUrl;(b=h||EPq(b))&&(y=b.src?b.src:b.getAttribute("href"));if(S&&y){if(S!=y)throw Error("ub`"+S+"`"+y);y=S}else y=S||y;if(!izM(y))throw Error("vb");return y};
xOY=function(){if(!wL5){wL5=!0;try{var b=fB5(_.S5._F_jsUrl?"":"base-js")}catch(S){return}var h=lBI(qvq(b)),y=Object.keys(h);y.length!==0&&hvI(function(S){for(var F=_.L(y),a=F.next();!a.done;a=F.next()){a=a.value;for(var P=_.L(Object.keys(h[a])),K=P.next();!K.done;K=P.next())S.addExtraEdge(a,K.value)}})}};
mO4=function(){var b=Object.assign({},Q2Y);Object.getOwnPropertyNames(Q2Y).forEach(function(h){tr[h]!==void 0&&(b[h]=tr[h])});
return b};
vPN=function(b,h){if(tr.enablePerformanceTiming){var y,S;(S=(y=performance).mark)==null||S.call(y,b+"Start__"+h)}};
bKF=function(b,h){if(tr.enablePerformanceTiming){var y,S;(S=(y=performance).measure)==null||S.call(y,b+"__"+h,b+"Start__"+h)}};
hmM=function(b,h,y){var S;return b&&h?b+"__"+h:(S=b!=null?b:h)!=null?S:y};
ydk=function(b,h){return Object.is(b,h)};
cs=function(b){var h=rs;rs=b;return h};
FmM=function(b){if(R4)throw Error("Z");if(rs!==null){var h=rs.producersTail;if(h===void 0||h.producer!==b){var y=void 0,S=rs.recomputing;if(S&&(y=h!==void 0?h.nextProducer:rs.producers,y!==void 0&&y.producer===b)){rs.producersTail=y;y.lastReadVersion=b.version;return}var F=b.consumersTail,a;if(!(a=F===void 0||F.consumer!==rs)){if(S){a:{a=rs;S=a.producersTail;if(S!==void 0){a=a.producers;do{if(a===F){S=!0;break a}if(a===S)break;a=a.nextProducer}while(a!==void 0)}S=!1}S=!S}a=S}a&&(S=zr(rs),y={producer:b,
consumer:rs,nextProducer:y,prevConsumer:F,lastReadVersion:b.version,nextConsumer:void 0},rs.producersTail=y,h!==void 0?h.nextProducer=y:rs.producers=y,S&&Suf(b,y))}}};
I4=function(b){if(!zr(b)||b.dirty)if(b.dirty||b.lastCleanEpoch!==DC)(b.producerMustRecompute(b)||a74(b))&&b.producerRecomputeValue(b),b.dirty=!1,b.lastCleanEpoch=DC};
di5=function(b){if(b.consumers!==void 0){var h=R4;R4=!0;try{for(var y=b.consumers;y!==void 0;y=y.nextConsumer){var S=y.consumer;S.dirty||(b=void 0,S.dirty=!0,di5(S),(b=S.consumerMarkedDirty)==null||b.call(S,S))}}finally{R4=h}}};
jh8=function(){var b;return((b=rs)==null?void 0:b.consumerAllowSignalWrites)!==!1};
$if=function(b){b&&(b.producersTail=void 0,b.recomputing=!0);return cs(b)};
PFn=function(b){b.recomputing=!1;var h=b.producersTail,y=h!==void 0?h.nextProducer:b.producers;if(y!==void 0){if(zr(b)){do y=Lm8(y);while(y!==void 0)}h!==void 0?h.nextProducer=void 0:b.producers=void 0}};
a74=function(b){for(b=b.producers;b!==void 0;b=b.nextProducer){var h=b.producer,y=b.lastReadVersion;if(y!==h.version)return!0;I4(h);if(y!==h.version)return!0}return!1};
Suf=function(b,h){var y=b.consumersTail,S=zr(b);y!==void 0?(h.nextConsumer=y.nextConsumer,y.nextConsumer=h):(h.nextConsumer=void 0,b.consumers=h);h.prevConsumer=y;b.consumersTail=h;if(!S)for(b=b.producers;b!==void 0;b=b.nextProducer)Suf(b.producer,b)};
Lm8=function(b){var h=b.producer,y=b.nextProducer,S=b.nextConsumer,F=b.prevConsumer;b.nextConsumer=void 0;b.prevConsumer=void 0;S!==void 0?S.prevConsumer=F:h.consumersTail=F;if(F!==void 0)F.nextConsumer=S;else if(h.consumers=S,!zr(h))for(b=h.producers;b!==void 0;)b=Lm8(b);return y};
zr=function(b){return b.consumerIsAlwaysLive||b.consumers!==void 0};
ZKF=function(b){var h=Object.create(Kmr);h.computation=b;b=function(){I4(h);FmM(h);if(h.value===Bs)throw h.error;return h.value};
b[Ws]=h;return b};
XXn=function(b,h){var y=Object.create(o2N);y.value=b;h!==void 0&&(y.equal=h);b=function(){FmM(y);return y.value};
b[Ws]=y;return[b,function(S){return MZr(y,S)},
function(S){jh8()||n2j(y);MZr(y,S(y.value))}]};
MZr=function(b,h){jh8()||n2j(b);if(!b.equal(b.value,h)){b.value=h;b.version++;DC++;di5(b);var y;(y=HKY)==null||y(b)}};
OK4=function(b,h,y){var S=Object.create(upU);S.source=b;S.computation=h;y!=void 0&&(S.equal=y);b=function(){I4(S);FmM(S);if(S.value===Bs)throw S.error;return S.value};
b[Ws]=S;return b};
_.Ar=function(b){var h=cs(null);try{return b()}finally{cs(h)}};
NdM=function(b,h){vPN("signalSet",h.debugName);try{b()}finally{bKF("signalSet",h.debugName)}};
tZ8=function(b,h,y){b=XXn(b,h.equals);var S=b[0],F=S[Ws];F.debugName=hmM(h.debugName,y,"[signal]");if(!tr.enablePerformanceTiming)return b;var a=b[1],P=b[2];return[S,function(K){NdM(function(){return void a(K)},F)},
function(K){NdM(function(){return void P(K)},F)}]};
cdf=function(b){var h=Object.create(rdI);h.debugName=b;!Xk||No(h);return h};
RmN=function(b,h){var y=cdf(h);h=_.Hs(y);try{b(y)}finally{_.Hs(h)}return function(){return void UOY(y)}};
Dif=function(b){return U5(b)&&zmI in b};
_.pa=function(b,h,y){return tZ8(b,h!=null?h:{},y===void 0?"":y)};
Bd4=function(b,h){var y=_.L(_.pa(b,void 0,"cPpJzc"));b=y.next().value;y=y.next().value;b[I7U]=y;b[Jr]=h;return b};
WmM=function(b){return!!b&&typeof b==="object"&&Object.getPrototypeOf(b)===Object.prototype};
Ad5=function(b){return typeof b==="function"&&I7U in b&&typeof b[I7U]==="function"};
Uij=function(b,h){Object.defineProperty(b,Jr,{get:function(){return h}})};
Ca=function(b,h){if(eh(b)){var y=b.map(function(a){return Ca(a,h)});
Uij(y,h);return y}if(WmM(b)){y={};b=_.L(Object.entries(b));for(var S=b.next();!S.done;S=b.next()){var F=_.L(S.value);S=F.next().value;F=F.next().value;y[S]=Ca(F,h)}Uij(y,h);return y}return Bd4(b,h)};
pXI=function(b){if(eh(b))return b.map(function(F){return pXI(F)});
if(WmM(b)){var h={};b=_.L(Object.entries(b));for(var y=b.next();!y.done;y=b.next()){var S=_.L(y.value);y=S.next().value;S=S.next().value;h[y]=pXI(S)}return h}return Ad5(b)?b():b};
emM=function(){var b={height:0,width:0};if(!WmM(b))throw Error("Kb");var h=Symbol("Lb");return[Ca(b,h),function(y,S){if(y[Jr]===h)if(typeof S==="function"){var F=[].concat(_.f$(pXI(y)));S=S(F)||F;Jdk(y,[].concat(_.f$(S)))}else Jdk(y,S);else throw Error("Mb");}]};
Jdk=function(b,h){if(Ad5(b))b[I7U](h);else if(eh(b)&&eh(h))h=Ca(h,b[Jr]),b.length=0,b.push.apply(b,_.f$(h));else if((WmM(b)||eh(b))&&(eh(h)||typeof h==="object"&&h!==null)){h=_.L(Object.entries(h));for(var y=h.next();!y.done;y=h.next()){var S=_.L(y.value);y=S.next().value;S=S.next().value;var F=b,a=F[y];Object.hasOwn(b,y)?Jdk(a,S):F[y]=Ca(S,b[Jr])}}else throw Error("Nb");};
CFF=function(b){return Object.create(Object.assign({},gs,b))};
shF=function(){var b;return(b=g2N)!=null?b:g2N=CFF({consumerAllowSignalWrites:!0})};
_.s5=function(b,h,y){y=y===void 0?"":y;b=ZKF(b);var S=b[Ws];S.debugName=hmM(h==null?void 0:h.debugName,y,"[computed]");(h==null?void 0:h.equals)!=null&&(S.equal=h.equals);return b};
YH=function(b){var h=cs(Yun);try{b()}finally{cs(h)}};
GEU=function(b,h,y){var S=TdN(b);Tr={name:y?S+" ("+y+")":S,isReactive:b.componentType!==Gr,parent:Tr};b=h();Tr=Tr.parent;return b};
kH=function(){var b=Tr;return b?b.isReactive:!1};
E5=function(b,h,y){var S=Tr;h&&(Tr=h);try{return y==null?b():b.call(y)}catch(a){b=a;Vi(b,Tr);if(b!==kEY){VZY=Tr;h=[];for(y=Xk;y;){var F=void 0;h.push((F=y.debugName)!=null?F:"[context]");F=void 0;y=(F=y.parent)!=null?F:null}E25=h.reverse()}kEY=b;throw b;}finally{Tr=S}};
Vi=function(b,h){try{var y=iK5(h);if(y&&!b.componentStack&&(b.componentStack=y,tr.enableComponentStacksInErrorMessages)){var S=b.message+"\n\nComponent stack: "+y;b.stack&&(b.stack=b.stack.replace(b.message,S));b.message=S}}catch(F){}};
iK5=function(b){if(U5(b)&&b.name!==void 0&&b.isReactive!==void 0&&b.parent!==void 0||b===null){for(var h=0,y="";h<20&&b;)y+=b.name+" > ",b=b.parent,h++;b=y.slice(0,-3)}else if(tr.enableContextBasedComponentStacks){a:{for(b=b===void 0?Xk:b;b;){if(Dif(b))break a;h=void 0;b=(h=b.parent)!=null?h:null}b=null}b=b.getComponentStack().slice(0,20).join(" > ")}else b="";return b};
TdN=function(b){return b.debugName||b.name||"[component]"};
xi8=function(b){switch(b.onInitType){case f7f:wX8.schedule(b);break;case l7I:tr.enableQueueEffectAndOnInitInitialRuns?quN.enqueue(b):quN.schedule(b);break;default:_.m5(b.onInitType)}};
yRr=function(b){if(!b.isDisposed)switch(b.effectType){case fa:Qhj.schedule(b);break;case mir:v2q.schedule(b);break;case bPM:tr.enableQueueEffectAndOnInitInitialRuns||b.version!==0?hLF.enqueue(b):hLF.schedule(b);break;default:_.m5(b.effectType)}};
aRM=function(){if(ws>0)tr.flushRenderEffectsDuringRender&&Qhj.flush();else{for(var b=_.L(SP8),h=b.next();!h.done;h=b.next())h.value.flush();FV5()}};
FV5=function(){_.Z(function(b){if(b.nextAddress==1)return b.yield(Promise.resolve(),2);for(var h=_.L(dS4),y=h.next();!y.done;y=h.next())y.value.flush();_.g3(b)})};
$Sq=function(b){l_=!0;try{for(var h=_.L(b),y=h.next();!y.done;y=h.next()){for(var S=y.value,F=[S],a=S;a.parent!==void 0;)a=a.parent,jLN(a)&&b.has(a)&&F.push(a);for(;F.length>0;){var P=F.pop();b.delete(P);P.run()}}}finally{l_=!1}};
qo=function(b){ws--;if(b){b=_.L(LVn);for(var h=b.next();!h.done;h=b.next())h.value.clear()}else ws>0||l_&&!tr.flushRenderEffectsDuringRender||aRM()};
PhN=function(b,h,y){b=Object.create(b);h&&(b.fn=h);y&&(b.debugName=y);No(b);b.componentStack=Tr;return b};
KVN=function(b){if(!b.isDisposed){if(R4)throw Error("Rb");var h=_.Hs(b);vPN("effectRun",b.debugName);try{E5(function(){b.dirty=!1;if(!(b.version>0)||a74(b)){b.version++;var y=$if(b);try{b.cleanup(),b.fn()}finally{cs(y),b&&PFn(b)}}},b.componentStack,b)}catch(y){throw tr.enableContextBasedComponentStacks&&Vi(y),y;
}finally{bKF("effectRun",b.debugName),_.Hs(h)}}};
_.xH=function(b,h){b=PhN(ZPN,b,h);yRr(b)};
_.Qi=function(b,h){b=PhN(oJ5,b,h);yRr(b)};
MHF=function(b){return b};
nJY=function(b,h,y){function S(){return F()}
y=y===void 0?"":y;var F=typeof b==="function"?OK4(b,MHF,h==null?void 0:h.equals):OK4(b.source,b.computation,h==null?void 0:h.equals);var a=F[Ws];a.debugName=hmM(h==null?void 0:h.debugName,y,"[linkedSignal]");S[Ws]=a;return[S,function(P){NdM(function(){I4(a);MZr(a,P);a.dirty=!1;a.lastCleanEpoch=DC},a)},
function(P){NdM(function(){I4(a);jh8()||n2j(a);MZr(a,P(a.value));a.dirty=!1;a.lastCleanEpoch=DC},a)}]};
_.m2=function(b){var h=Xk;if(h){var y=Tr;A9M(h,function(){var S=cs(shF());try{E5(function(){return void b()},y)}catch(F){throw tr.enableContextBasedComponentStacks&&Vi(F),F;
}finally{cs(S)}})}};
vs=function(b,h){var y={};(h===void 0||h)&&No(y);h=_.Hs(y);try{b(y)}finally{_.Hs(h)}return function(){return void UOY(y)}};
_.bn=function(b){return typeof b==="function"?b():(b==null?0:b[Xok])?b.get():b};
HPk=function(b){if(Xk)throw Error("ob");vs(b,!1)};
hi=function(b,h){b=_.Hs(b);try{return _.Ar(h)}finally{_.Hs(b)}};
yC=function(b,h){var y=iK5(VZY),S,F;var a=(F=(S=E25)==null?void 0:S.slice())!=null?F:[];h={componentStack:y,contextTrace:a,errorSeverity:3,featureFlags:mO4(),tagName:h};return[b,h]};
T_q=function(b,h,y){if(Object.hasOwnProperty.call(uCM,b)&&(b=uCM[b],Object.hasOwnProperty.call(b,h)&&(b=b[h],b instanceof Array))){for(var S=null,F=!1,a=0,P=b.length;a<P;++a){var K=b[a],n=K.contingentAttribute;if(!n)return K.contract;S===null&&(S={});n=Object.hasOwnProperty.call(S,n)?S[n]:S[n]=y(n);if(n===K.requiredValue)return K.contract;n==null&&(F=!0)}if(F)return null}h=OPU[h];return typeof h==="number"?h:null};
VHf=function(b,h,y){var S=null;(b=GUr[b])&&(S=b[h]);return typeof S!=="number"&&((b=GUr["*"])&&(S=b[h]),typeof S!=="number")?!1:!0===kUY[S][String(y).toLowerCase()]};
iPM=function(b,h){h=T_q(b.toLowerCase(),h,function(){var S;(S=tr.handleError)==null||S.call.apply(S,[tr].concat(_.f$(yC(Error("Ub"),b.toLowerCase()))))});
if(h===null)return null;var y;return(y=EJ8[h])!=null?y:null};
fRU=function(b,h,y){if(y===null||y===void 0)return y;h=h.toLowerCase();b=iPM(b,h);return b===null?y:b(h,y)};
woI=function(){};
lRq=function(b,h){for(;b.length>h;)b.pop()};
qPy=function(b){b=Array(b);lRq(b,0);return b};
SY=function(b,h,y){if(y==null)b.removeAttribute(h);else{var S;(S=h.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":h.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?b.setAttributeNS(S,h,y):b.setAttribute(h,y)}};
QLY=function(b,h,y){b=b.style;if(typeof y==="string")b.cssText=y;else{b.cssText="";for(var S in y)if(xS5.call(y,S)){h=b;var F=S,a=y[S];F.indexOf("-")>=0?h.setProperty(F,a):h[F]=a}}};
mSy=function(b,h,y){var S=typeof y;S==="object"||S==="function"?b[h]=y:SY(b,h,y)};
vJq=function(){var b=new woI;b[F5.default]=mSy;b.style=QLY;return b};
b2Y=function(b,h,y,S){(S[h]||S[F5.default])(b,h,y)};
ymy=function(b,h,y){h=new hSr(h,y);return b.__incrementalDOMData=h};
Sbr=function(b,h){if(b.__incrementalDOMData)return b.__incrementalDOMData;var y=b.nodeType===1?b.localName:b.nodeName,S=b.nodeType===1?b.getAttribute("key"):null;h=ymy(b,y,b.nodeType===1?S||h:null);if(b.nodeType===1&&(b=b.attributes,y=b.length)){S=h._attrsArr||(h._attrsArr=qPy(y*2));for(var F=0,a=0;F<y;F+=1,a+=2){var P=b[F],K=P.value;S[a]=P.name;S[a+1]=K}}return h};
FdF=function(b,h,y,S,F){return h==y&&S==F};
af4=function(b){for(var h=jY,y=$Z();y!==b;){var S=y.nextSibling;h.removeChild(y);Ll.deleted.push(y);y=S}};
$Z=function(){return P4?P4.nextSibling:jY.firstChild};
Kl=function(){P4=$Z()};
$dU=function(b,h){Kl();var y;a:{if(y=P4){do{var S=y,F=b,a=h,P=Sbr(S,a);if(ddM(S,F,P.nameOrCtor,a,P.key))break a}while(h&&(y=y.nextSibling))}y=null}y||(b==="#text"?(b=Zb.createTextNode(""),ymy(b,"#text",null)):(y=Zb,S=jY,typeof b==="function"?y=new b:y=(S=b==="svg"?"http://www.w3.org/2000/svg":b==="math"?"http://www.w3.org/1998/Math/MathML":S==null||Sbr(S).nameOrCtor==="foreignObject"?null:S.namespaceURI)?y.createElementNS(S,b):y.createElement(b),ymy(y,b,h),b=y),Ll.created.push(b),y=b);b=y;if(b!==
P4){if(j0f.indexOf(b)>=0)for(h=jY,y=b.nextSibling,S=P4;S!==null&&S!==b;)F=S.nextSibling,h.insertBefore(S,y),S=F;else jY.insertBefore(b,P4);P4=b}};
Ldf=function(b,h){$dU(b,h);jY=P4;P4=null;return jY};
PzM=function(){af4(null);P4=jY;jY=jY.parentNode};
o6j=function(b,h){h=h===void 0?{}:h;var y=h.matches===void 0?FdF:h.matches;return function(S,F,a){var P=Ll,K=Zb,n=j0f,X=oe,u=P4,O=jY,N=ddM;Zb=S.ownerDocument;Ll=new KdU(S);ddM=y;oe=[];P4=null;var t=jY=S.parentNode,R,I=Z2j.call(S);if((R=I.nodeType===11||I.nodeType===9?I.activeElement:null)&&S.contains(R)){for(I=[];R!==t;)I.push(R),R=R.parentNode||(t?R.host:null);t=I}else t=[];j0f=t;try{return b(S,F,a)}finally{S=Ll,MU&&S.deleted.length>0&&MU(S.deleted),Zb=K,Ll=P,ddM=N,oe=X,P4=u,jY=O,j0f=n}}};
MMI=function(b,h,y,S){nl.push(b2Y);nl.push(b);nl.push(h);nl.push(y);nl.push(S)};
n6n=function(b){$dU("#text",null);var h=P4;var y=Sbr(h);if(y.text!==b){y=y.text=b;for(var S=1;S<arguments.length;S+=1)y=(0,arguments[S])(y);h.data!==y&&(h.data=y)}};
rm8=function(b,h,y){if(y===!1&&X_M.has(h))SY(b,h,null);else if(h!=="idomKey"&&h!=="skip"&&h!=="skipchildren"&&h!=="children"&&h!=="el")if(h.startsWith("on")){if(h[2]!==":")throw Error("Tb`"+h);if(y===void 0||y===null){var S;(S=tr.handleError)==null||S.call.apply(S,[tr].concat(_.f$(yC(Error("Yb`"+h),b.tagName))));b[h]=void 0}else{var F=h.slice(3);S=kH();if(F==="jsaction"){y=Array.isArray(y)?y:[y];y=_.L(y);for(var a=y.next();!a.done;a=y.next()){a=a.value;if(typeof a!=="object"||a===null||typeof a.selfReg!==
"function")throw Error("ac`"+h);a.selfReg(0,b,S?_.m2:function(){})}}else{if(typeof y!=="object"||y===null)throw Error("Zb`"+h+"`"+typeof y);
if(typeof y.getFn!=="function")throw Error("$b`"+h+"`"+Object.keys(y));if(y.selfReg)y.selfReg(0,b,F,S?_.m2:function(){});
else if(S&&b["on"+F]===void 0){var P=y.getFn(0);b.addEventListener(F,P);_.m2(function(){return void b.removeEventListener(F,P)})}else if(S||!H2I.includes(F))b["on"+F]=y.getFn(0)}}}else{if(h.startsWith("data-")&&typeof y==="string")try{y=uuk(y)}catch(K){y="zSoyz"}typeof y!=="function"||b._disposeEffects!=null?((S=h.startsWith("prop:"))&&(h=h.slice(5)),tr.enableAttributeSanitization&&(S&&O24(b.tagName)||(y=fRU(b.tagName,h,y))),h==="style"?("function"==typeof _.X5&&y instanceof _.X5&&(y=y.toString()),
NkM(b,h,y)):S?b[h]=y:tMn(b,h,y)):(b._signalProps||(b._signalProps=[]),b._signalValues||(b._signalValues=[]),b._signalProps.push(h))}};
cmk=function(b,h,y){y=(y===void 0?{}:y).isReactive;if(h==null?0:h.el){var S=h.el,F;(F=S.onRender)==null||F.call(S,b);b._disposeRef||(b._disposeRef=function(){var a;(a=S.onUnmount)==null||a.call(S);delete b._disposeRef},y&&_.m2(function(){var a;
(a=b._disposeRef)==null||a.call(b)}))}};
O24=function(b){return b.length>0&&b.includes("-")&&!RSq.includes(b.toLowerCase())};
zSU=function(b){return U5(b)&&H4 in b};
DdM=function(b){return zSU(b)?b[H4].flattened:b};
If5=function(b,h){var y=_.x$.apply(2,arguments),S;h=(S=h)!=null?S:{};S={};return S.type=b,S.props=h,S.children=y,S[un]=!0,S};
_.OW=function(b){return b.children};
NU=function(b){var h=Bkj!==If5;Bkj=b?WdY:If5;return h};
_.ti=function(b){return _.lf(b)?"nodeType"in b:!1};
rg=function(){return document.createTextNode("")};
c4=function(b){b=document.createTextNode(String(b));b._isSignalTextNode=!0;return b};
Udq=function(b){return b!=null&&b.contentKind===Re||b instanceof bZ||Am4(b)};
p_I=function(b){var h=document.createElement("div");if(Am4(b)&&p9f(b))_.M5(h,p9f(b));else if(b instanceof bZ)_.M5(h,b);else if(b!=null&&b.contentKind===Re){if(b.contentKind!==Re)throw Error("Xb");b=yx(b.toString());_.M5(h,b)}b=_.L(h.childNodes);for(var y=b.next();!y.done;y=b.next())y.value._isSafeOrSanitizedHtmlNode=!0;return h};
zw=function(b){b=typeof b;return b==="string"||b==="number"||b==="boolean"};
Jmf=function(b){return b instanceof Cc||VD(b)||b instanceof HE||"function"==typeof _.X5&&b instanceof _.X5};
eSN=function(b,h){var y=b.parentElement;if(!y)return h;y.replaceChild(h,b);return h};
CzF=function(b,h){var y=b[0].parentElement;if(y)if(b[0].previousSibling||b[b.length-1].nextSibling){y.insertBefore(h,b[0]);for(var S=b.length-1;S>=0;S--)y.removeChild(b[S])}else y.textContent="",y.appendChild(h);return h};
g65=function(b,h){if(b[0].parentElement)for(var y=b[0].parentElement,S=h.length,F=b.length,a=S,P=0,K=0,n=b[F-1].nextSibling,X=null;P<F||K<a;)if(b[P]===h[K])P++,K++;else{for(;b[F-1]===h[a-1];)F--,a--;if(F===P)for(var u=a<S?K?h[K-1].nextSibling:h[a-K]:n;K<a;){var O=h[K++];y.insertBefore(O,u)}else if(a===K)for(;P<F;)u=b[P],X&&X.has(u)||y.removeChild(u),P++;else if(b[P]===h[a-1]&&h[K]===b[F-1])u=b[--F].nextSibling,y.insertBefore(h[K++],b[P++].nextSibling),y.insertBefore(h[--a],u),b[F]=h[a];else{if(!X)for(X=
new Map,u=K;u<a;)X.set(h[u],u++);u=X.get(b[P]);if(u==null)y.removeChild(b[P]),P++;else if(K<u&&u<a){O=P;for(var N=1,t=void 0;++O<F&&O<a&&(t=X.get(b[O]))!=null&&t===u+N;)N++;if(N>u-K)for(O=b[P];K<u;)y.insertBefore(h[K++],O);else y.replaceChild(h[K++],b[P++])}else P++}}return h};
YbU=function(b){if(Array.isArray(b)){if(b.length>1)throw Error("kc`"+b.length+"`"+b.map(s0I).join(", "));b=b[0]}if(b==null)return null;if(!(b instanceof _.$f)){var h,y;if((h=window)==null?0:(y=h.trustedTypes)==null?0:y.isScript(b))throw Error("jc");if(String(b).trim().length===0)return null;throw Error("lc`"+s0I(b));}return b};
Tkj=function(b,h){h=YbU(h);h!==null&&_.K$(b,h)};
GNn=function(b){if(Array.isArray(b)){if(b.length>1)throw Error("mc`"+b.length+"`"+b.map(s0I).join(", "));b=b[0]}if(b==null)return null;if(!(b instanceof HE)){if(String(b).trim().length===0)return null;throw Error("nc`"+s0I(b));}return b};
kNN=function(b,h){h=GNn(h);h!==null&&(b.textContent=Rh8(h))};
s0I=function(b){return"("+typeof b+") "+(b!=null&&typeof b==="object"?b.constructor.name:typeof b)+" "+b};
VMf=function(){};
B4=function(b,h){h=h===void 0?{}:h;var y=E6Y(),S=!0,F,a=!!tr.legacyTriggerSoyRendererEvents;a&&(F=VKI());_.xH(function(){var P=!S&&h.isControlFlowComponent&&a,K=P?y[H4].flattened[0].parentElement:void 0;S=!1;_.Db.setUp();h.isControlFlowComponent&&ws++;var n=y[0],X=y[H4].flattened,u=NU(!0);try{var O=b(),N=i2n(n,O,y);Array.isArray(N)||(y[H4].flattened=[N]);var t=y[H4].flattened;if(X&&(!Array.isArray(X)||X.length!==0)){var R=Array.isArray(X)?X[0]:X,I=R[Ie],U=R._disposeEffects;R._disposeEffects=void 0;
R=Array.isArray(t)?t[0]:t;R[Ie]=I;R[Ie]&&(R[Ie].numNodes=R===t?1:t.length);R._disposeEffects=U}y[0]=N;h.isControlFlowComponent&&qo(!1)}catch(p){throw h.isControlFlowComponent&&qo(!0),p;}finally{NU(u),_.Db.tearDown()}P&&(P=F,P!=null||(P=_.zvU(document).getAppContext()),P.get(ff5).JSC$29861_getEventTarget().dispatchEvent(new w_8(lfU,K,Re)))},h.debugName);
return y};
i2n=function(b,h,y){for(;typeof h==="function";)h=h();if(h!=null&&h[un]){var S,F,a;(a=tr.handleError)==null||a.call.apply(a,[tr].concat(_.f$(yC(Error("oc`"+((S=h.type)==null?void 0:S.TAG_NAME)),(F=h.type)==null?void 0:F.TAG_NAME))))}if(b==null)return h==null?rg():zw(h)?c4(h):Jmf(h)?c4(h.toString()):_.ti(h)?h:h.length===0?rg():qbq(h,y);if(_.ti(b)){if(h==null)return eSN(b,rg());if(zw(h))return xdn(b,h);if(Jmf(h))return xdn(b,h.toString());if(_.ti(h))return eSN(b,h);if(h.length===0)return eSN(b,rg());
h=qbq(h,y);g65([b],y[H4].flattened);return h}b=W4(b);if(h==null)return CzF(b,rg());if(zw(h))return CzF(b,c4(h));if(Jmf(h))return CzF(b,c4(h.toString()));if(_.ti(h))return g65(b,[h])[0];if(h.length===0)return CzF(b,rg());h=qbq(h,y);g65(b,y[H4].flattened);return h};
xdn=function(b,h){b.nodeType===Node.TEXT_NODE?b.textContent!==String(h)&&(b.textContent=String(h)):b=eSN(b,c4(h));return b};
W4=function(b,h,y){return Q0M(b,h!=null?h:[],y===void 0?!1:y)};
qbq=function(b,h){var y=W4(b,void 0,!0);if(y.length===0)return rg();h[H4].flattened=y;return b};
Q0M=function(b,h,y,S,F){h=h===void 0?[]:h;y=y===void 0?!1:y;F=F===void 0?-1:F;if(b==null)return h;if(b instanceof Ai){var a=b.render();return Q0M(a,h,y,S,F)}if(_.ti(h)&&h.nodeType===Node.ELEMENT_NODE)switch(h.tagName){case "SCRIPT":Tkj(h,b);return;case "STYLE":kNN(h,b);return}zw(b)&&(b=c4(b),S&&y&&(S[F]=b));if(Udq(b)){y=p_I(b);y=Array.from(y.childNodes);y=_.L(y);for(a=y.next();!a.done;a=y.next())mdj(h,a.value);return h}Jmf(b)&&(b=c4(b.toString()),S&&y&&(S[F]=b));if(_.ti(b))return mdj(h,b);if(Array.isArray(b)){for(a=
0;a<b.length;a++)Q0M(b[a],h,y,b,a);return h}if(typeof b==="function"){a=B4(function(){var K=b();return K!=null&&!zw(K)&&Udq(K)?(K=p_I(K),Array.from(K.childNodes)):K},{debugName:"qmF2ne",
debugFn:b})[0];if(Array.isArray(a)){y=_.L(a);for(a=y.next();!a.done;a=y.next())mdj(h,a.value);return h}S&&y&&(S[F]=a);return mdj(h,a)}if(b!=null&&b[un]){S=b;F=NU(!0);var P=Bkj;try{a=P.apply(null,[S.type,S.props].concat(_.f$(S.children)))}finally{NU(F)}return Q0M(a,h,y)}(P=tr.handleError)==null||P.call.apply(P,[tr].concat(_.f$(yC(Error("pc")))));return h};
E6Y=function(b){var h={};h=Object.assign([],(h[H4]={flattened:[]},h));if(!b)return h;h[0]=qbq(b,h);return h};
mdj=function(b,h){Array.isArray(b)?b.push(h):b.appendChild(h);return b};
UW=function(b){if(!tr.enableLazyTsx)return b;if(Array.isArray(b)){for(var h=0;h<b.length;h++)b[h]=UW(b[h]);return b}return b instanceof Ai?(b=b.render(),UW(b)):b};
bxM=function(b,h){var y,S,F=TdN(b),a=function(t){S=t;t=NU(!0);var R=cs(pl);vPN("render",F);try{y=UW(b(h))}finally{bKF("render",F),cs(R),NU(t)}};
a=tr.enableContextPerComponent?RmN(a,F):vs(a,tr.alwaysTrackContexts||!!Xk);Dif(S);if(!h.renderedFromIdom){var P=_.Hs(S);try{return v6M(b,h,y),y}finally{_.Hs(P)}}!zSU(y)&&Array.isArray(y)&&(y=E6Y(y));var K=DdM(y);P=Array.isArray(K)?K[0]:K;var n=!1;if(P){var X,u=(X=h==null?void 0:h.idomKey)!=null?X:b;X=K!==P;P._disposeEffects=a;var O=P[Ie]||{},N=zSU(y)?y:O.sourceDynamicRange;Object.assign(O,{key:u,numNodes:X?K.length:1,context:S,higherOrder:!!P[Ie],sourceDynamicRange:N});P[Ie]=O}else n=!0;(function(){var t=
_.Hs(S);try{v6M(b,h,K)}finally{_.Hs(t)}})();
n&&a();return y};
hYF=function(b){var h={},y;for(y in b)h={prev$jscomp$24:void 0,next$jscomp$33:void 0},h.prev$jscomp$24=eY[y],h.next$jscomp$33=b[y],eY[y]=function(S){return function(){var F=_.x$.apply(0,arguments);S.prev$jscomp$24.apply(null,_.f$(F));S.next$jscomp$33.apply(null,_.f$(F))}}(h)};
yeY=function(){if(kH())throw Error("qc");return Cl};
SEj=function(b,h){if(!b.__unmounted&&h){b.__unmounted=!0;try{b.didUnmount()}catch(F){var y,S;(S=tr.handleError)==null||S.call.apply(S,[tr].concat(_.f$(yC(F,(y=b.__type)==null?void 0:y.TAG_NAME))))}eY.didUnmount(b);b.el=null;h.__instance&&delete h.__instance}};
any=function(b,h,y){b._signalProps!=null&&b._disposeEffects==null&&((y===void 0?0:y)?b._disposeEffects=vs(function(){return void Fpn(b,h)},tr.alwaysTrackContexts||!!Xk):Fpn(b,h))};
Fpn=function(b,h){_.xH(function(){for(var y=b._signalProps,S=b._signalValues,F=0;F<y.length;F++){var a=y[F],P=h[a]();S[F]!==P&&(S[F]=P,rm8(b,a,P))}},"e3YVbb")};
dQF=function(b,h,y){var S,F=[];b._disposeEffects=vs(function(){_.xH(function(){var a=y();if(a===null||a===void 0)a="";if(zw(a)||a===null)S!=null||(S=document.createTextNode("")),S.parentNode!==b&&(S._isSignalTextNode=!0,b.insertBefore(S,h)),S.textContent=String(a);else if(Udq(a)){for(var P=F.length>0?F[F.length-1].nextSibling:h,K=_.L(F),n=K.next();!n.done;n=K.next())b.removeChild(n.value);a=p_I(a);F=Array.from(a.childNodes);a=_.L(F);for(K=a.next();!K.done;K=a.next())b.insertBefore(K.value,P)}else throw n=
(K=(P=Tr)==null?void 0:P.name)!=null?K:"unknown",Error("fc`"+n+"`"+typeof a);},"VvDgC")},tr.alwaysTrackContexts||!!Xk)};
LpN=function(b,h){var y=_.x$.apply(2,arguments);h!=null||(h={});return!tr.enableLazyTsx||Tr!=null&&!kH()?jHY(b,h,y):new $Qf(b,h,y)};
jHY=function(b,h,y){if(b===_.OW)return y;if(typeof b==="function")return Tr&&!kH()&&(h.renderedFromIdom=!0),GEU(b,function(){var a=PXj(b,h,y);if(a)return a;y.length>0&&(h.children=y.length===1?y[0]:y);if(b.componentType===Gr){var P;RmN(function(){var K=h;if(b.componentType!==Gr)P=!1;else{K||(K={});var n=new gg(K,b),X=cs(pl);try{var u=n.render(K)}finally{cs(X)}u instanceof HTMLElement?(u.__instance=n,n.el=u,n.__type=b,b.TAG_NAME=u.tagName.toLowerCase(),eY.didPatch(n),P=u):P=u}},b.name);
if(P)return P}return bxM(b,h)},h.debugInstance);
var S=KpY(b,h),F;for(F in h)rm8(S,F,h[F]);any(S,h);W4(y,S);cmk(S,h,{isReactive:!0});ZxN(S,h);return S};
KpY=function(b,h){b=(ojj.has(b.toLowerCase())?0:M3f.has(b.startsWith("svg:")?b.replace("svg:",""):b))?document.createElementNS("http://www.w3.org/2000/svg",b.startsWith("svg:")?b.replace("svg:",""):b):njr(b,h)||document.createElement(b);b[X5n]=!0;return b};
HxI=function(b){if(b){var h;(h=b._disposeRef)==null||h.call(b);var y;(y=b._disposeEffects)==null||y.call(b);b.__instance&&b.__instance instanceof sW&&(h=b.__instance,SEj(h,b),h instanceof gg&&h.disposeEffects());for(h=0;h<b.childNodes.length;h++)HxI(b.childNodes[h])}};
Oxk=function(b){uNk.push(b)===1&&requestAnimationFrame(function(){setTimeout(function(){var h=[].concat(_.f$(uNk));uNk=[];h=_.L(h);for(var y=h.next();!y.done;y=h.next()){y=y.value;try{for(var S=0;S<y.length;S++)HxI(y[S])}catch(F){S=y=void 0,(S=(y=tr).handleError)==null||S.call.apply(S,[y].concat(_.f$(yC(F))))}}})})};
_.M=function(b,h){return Bkj.apply(null,[b,h].concat(_.f$(_.x$.apply(2,arguments))))};
_.YZ=function(b){return b};
_.Tw=function(b){return{isDefault:!0,children:b.children}};
_.H=function(b){var h=b.cond;if(h===void 0)return b.else&&b.else();var y=_.s5(function(){return!!h()},void 0,"JHVi8"),S=function(){var F=h();
if(!F){var a;(a=tr.handleError)==null||a.call.apply(a,[tr].concat(_.f$(yC(NOU.nonNullableCondIsNull()))))}return F};
return B4(function(){var F=y(),a;vs(function(){var P=cs(pl);try{a=UW(F?b.then(S):b.else&&b.else())}finally{cs(P)}},!0);
return a},{debugName:b.debugInstance,
debugFn:b.then,isControlFlowComponent:!0})};
t3q=function(b){return _.H(b)};
_.Gw=function(b){return b.keyBy==="INDEX"?reM(b):cek(b)};
RYj=function(b){b=_.L(b);for(var h=b.next();!h.done;h=b.next()){var y=void 0;(y=h.value)==null||y()}};
cek=function(b){var h=b.keyBy===void 0||b.keyBy==="REFERENCE",y=h?function(u){return u}:b.keyBy,S=[],F=[],a=[],P=[],K=[],n=[],X=!0;
_.m2(function(){RYj(P)});
return B4(function(){var u=zYY(b),O=u.length;if(O===0){if(S.length===0&&!X)return a;RYj(P);S=u;F=[];for(u=0;u<S.length;u++)F.push(y(S[u]));a=[];P=[];K=[];n=[];b.fallback&&(P[0]=DQ8(function(){a[0]=UW(b.fallback())}));
X=!1;return a}for(var N=new Inq,t=S.length-1;t>=0;t--)N.push(F[t],t);t=Array(O);for(var R=Array(O),I=Array(O),U=Array(O),p=Array(h?0:O),e={i$jscomp$451:0};e.i$jscomp$451<O;e={i$jscomp$451:e.i$jscomp$451,item$jscomp$104:void 0,key$jscomp$563:void 0},e.i$jscomp$451++){e.item$jscomp$104=u[e.i$jscomp$451];e.key$jscomp$563=y(e.item$jscomp$104);var E=N.pop(e.key$jscomp$563);E!=null?(I[e.i$jscomp$451]=a[E],R[e.i$jscomp$451]=F[E],t[e.i$jscomp$451]=P[E],U[e.i$jscomp$451]=K[E],h||(p[e.i$jscomp$451]=n[E]),YH(function(Y){return function(){U[Y.i$jscomp$451](Y.i$jscomp$451);
if(!h)p[Y.i$jscomp$451](Y.item$jscomp$104)}}(e)),delete P[E]):t[e.i$jscomp$451]=DQ8(function(Y){return function(){var w=_.L(_.pa(Y.i$jscomp$451,void 0,"Fqk1zd")),x=w.next().value;
w=w.next().value;U[Y.i$jscomp$451]=w;R[Y.i$jscomp$451]=Y.key$jscomp$563;if(h)I[Y.i$jscomp$451]=UW(b.children(Y.item$jscomp$104,x));else{var q=_.L(_.pa(Y.item$jscomp$104,void 0,"GBj5de"));w=q.next().value;q=q.next().value;p[Y.i$jscomp$451]=q;I[Y.i$jscomp$451]=UW(b.children(w,x))}}}(e))}RYj(P);
S=u;F=R;a=I;P=t;K=U;n=p;X=!1;return I},{debugName:b.debugInstance,
debugFn:b.each,isControlFlowComponent:!0})};
reM=function(b){var h=[],y=[],S=[],F=[],a=!1;_.m2(function(){RYj(F)});
return B4(function(){var P=zYY(b);a&&P.length>0&&(F.pop()(),h.pop(),a=!1);for(var K=Array(P.length),n={i$jscomp$452:0};n.i$jscomp$452<P.length;n={i$jscomp$452:n.i$jscomp$452},n.i$jscomp$452++)if(n.i$jscomp$452<h.length)h[n.i$jscomp$452]!==P[n.i$jscomp$452]&&(YH(function(u){return function(){return void y[u.i$jscomp$452](P[u.i$jscomp$452])}}(n)),h[n.i$jscomp$452]=P[n.i$jscomp$452]),K[n.i$jscomp$452]=S[n.i$jscomp$452];
else{var X=DQ8(function(u){return function(){h[u.i$jscomp$452]=P[u.i$jscomp$452];var O=_.L(_.pa(P[u.i$jscomp$452],void 0,"JMMLmd")),N=O.next().value;O=O.next().value;y[u.i$jscomp$452]=O;K[u.i$jscomp$452]=UW(b.children(N,u.i$jscomp$452))}}(n));
F[n.i$jscomp$452]=X}for(;h.length>P.length;)h.pop(),F.pop()(),y.pop();P.length===0&&!a&&b.fallback&&(n=DQ8(function(){K[0]=UW(b.fallback())}),F[0]=n,a=!0);
return S=K},{debugName:b.debugInstance,
isControlFlowComponent:!0})};
zYY=function(b){b=b.each();return Array.isArray(b)?b:Array.from(b)};
DQ8=function(b){var h=Xk;return vs(function(y){var S=cs(pl);try{y.parent=h,b(y)}finally{cs(S)}},!1)};
_.kZ=function(b){var h=BOI(b),y=_.s5(function(){return Wpf(h)},void 0,"F1PF4");
return B4(function(){var S=y(),F;vs(function(){var a=cs(pl);try{F=UW(S())}finally{cs(a)}});
return F},{debugName:b.debugInstance,
isControlFlowComponent:!0})};
BOI=function(b){b=b.children;return Array.isArray(b)?b:[b]};
Ae4=function(b){var h=b.props;b=b.getChildren()[0];return h.when?{when:h.when,children:b}:{isDefault:!0,children:b}};
Wpf=function(b){var h=function(){return null};
b=_.L(b);for(var y=b.next();!y.done;y=b.next())if(y=y.value,y!=null&&y[un]&&(y=y.type===_.Tw?{isDefault:!0,children:y.children[0]}:{when:y.props.when,children:y.children[0]}),y instanceof Ai&&(y=Ae4(y)),y.isDefault)h=y.children;else if(y.when())return y.children;return h};
p5j=function(b){var h=null,y,S={get value(){var a,P;(P=(a=F).validateGetValue)==null||P.call(a);return F.__value},set value(a){var P,K;(K=(P=F).validateSetValue)==null||K.call(P,a);F.__value=a;F.__hasBeenSet=!0}},F=(S.__value=null,S.__hasBeenSet=!1,S.__hasErrored=!1,S.onRender=function(a){if(y&&a!==y){y._disposeRef=void 0;var P;(P=h)==null||P()}y=a;h=b(a)||null},S.onUnmount=function(){var a;
(a=h)==null||a();h=F.value=null},S[_.UQy]=!0,S);
return F};
VC=function(b){return typeof b==="symbol"};
eYy=function(b){var h=yeY();if(h==null)throw _.Jer.PRIMITIVE_INVALID_HOOK_CALL();var y=h.hookCounter++;h.hooks||(h.hooks=[]);var S=h.hooks;S[y]||(S[y]={key:b,host:h});if(b!==S[y].key){if(h.__type){var F;b=(F=h.__type)==null?void 0:F.name}else b=h instanceof gg?TdN(h.functionComponent):"<"+h.el.tagName.toLowerCase()+">";throw _.Jer.OUT_OF_ORDER_HOOK_CALL(b);}return S[y]};
CXn=function(b,h){return!b||b.length!==(h==null?void 0:h.length)||b.some(function(y,S){return y!==h[S]})};
gjr=function(b,h){var y=eYy("onChange"),S=yeY();CXn(y.deps,h)&&(y.deps=h,y.pendingEffect=b,S.__syncEffects||(S.__syncEffects=[]),S.__syncEffects.push(y))};
_.EW=function(b,h,y){y!=null||(y={});y=y.appContext;var S=!!tr.legacyTriggerSoyRendererEvents;_.Db.setUp();try{var F=sHn(b,h,y);S&&(h=y,h!=null||(h=_.zvU(document).getAppContext()),h.get(ff5).JSC$29861_getEventTarget().dispatchEvent(new w_8(YEN,b,Re)));_.Db.log(b);return F}finally{_.Db.tearDown()}};
sHn=function(b,h,y){var S=E5(function(){var F=cs(pl);try{return vs(function(){var a=_.zvU(_.mQ(b)),P;var K=k6j({rootElement:{value:b},appContext:y||(a==null?void 0:(P=a.getOptionalAppContext)==null?void 0:P.call(a)),dispatcher:a});a=_.Hs(K);K=NU(!0);ws++;try{W4(h(),b),qo(!1)}catch(n){throw qo(!0),n;}finally{NU(K),_.Hs(a)}},!1)}catch(a){throw tr.enableContextBasedComponentStacks&&Vi(a),a;
}finally{cs(F)}});
b[TOj]=!0;return function(){b.textContent="";S();b[TOj]=!1}};
_.fl=function(b){if(jLN(rs)){var h;(h=tr.handleError)==null||h.call.apply(h,[tr].concat(_.f$(yC(Error("ec")))))}var y=Xk,S=Tr;xi8({onInitType:l7I,run:function(){if(y&&!y.isDisposed){var F=_.Hs(y);try{E5(function(){return void b()},S)}catch(a){throw tr.enableContextBasedComponentStacks&&Vi(a),a;
}finally{_.Hs(F)}}}})};
Gty=function(b,h){gjr(function(){return _.Ar(b)},h)};
_.wg=function(b){kH()?_.fl(function(){_.Ar(b)}):gjr(function(){return _.Ar(b)},[])};
V3N=function(b){var h=[].concat(_.f$(b));b.length=0;b=_.L(h);for(h=b.next();!h.done;h=b.next()){h=h.value;kt5(h);var y=h.pendingEffect;h.pendingEffect=null;if(y=y==null?void 0:y())h.pendingCleanup=y}};
kt5=function(b){var h=b.pendingCleanup;b.pendingCleanup=null;h==null||h()};
EjF=function(b,h){if(kH())return b();var y=eYy("useMemoInternal");CXn(y.deps,h)&&(y.deps=h,y.value=b());return y.value};
ixI=function(b,h){return EjF(b,h)};
fnN=function(b){return EjF(function(){return{value:b}},[])};
_.ln=function(b,h){if(!b)return null;b=Object.keys(b);b=_.L(b);for(var y=b.next();!y.done;y=b.next()){y=y.value;var S=y.toLowerCase();if(S.indexOf(h,S.length-h.length)>-1)return y}return null};
_.xZ=function(){var b=arguments,h=_.qU;b.length>1?h[b[0]]=b[1]:b.length===1&&Object.assign(h,b[0])};
_.QC=function(b,h){return b in _.qU?_.qU[b]:h};
_.m$=function(b,h){return!!_.QC(b,h)};
w5M=function(b){var h=_.qU.EXPERIMENT_FLAGS;return h?h[b]:void 0};
qEf=function(b){ln4.forEach(function(h){return h(b)})};
_.bN=function(b){return b&&window.yterr?function(){try{return b.apply(this,arguments)}catch(h){_.v4(h)}}:b};
_.v4=function(b){var h=_.hj("yt.logging.errors.log");h?h(b,"ERROR",void 0,void 0,void 0,void 0,void 0):(h=_.QC("ERRORS",[]),h.push([b,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.xZ("ERRORS",h));qEf(b)};
_.yb=function(b,h,y,S,F){var a=_.hj("yt.logging.errors.log");a?a(b,"WARNING",h,y,S,void 0,F):(a=_.QC("ERRORS",[]),a.push([b,"WARNING",h,y,S,void 0,F]),_.xZ("ERRORS",a))};
QHn=function(b,h){h=b.split(h);for(var y={},S=0,F=h.length;S<F;S++){var a=h[S].split("=");if(a.length===1&&a[0]||a.length===2)try{var P=xQj(a[0]||""),K=xQj(a[1]||"");if(P in y){var n=y[P];Array.isArray(n)?_.wI(n,K):y[P]=[n,K]}else y[P]=K}catch(N){var X=N,u=a[0],O=String(QHn);X.args=[{key:u,value:a[1],query:b,method:mQM===O?"unchanged":O}];vjj.hasOwnProperty(u)||_.yb(X)}}return y};
bI5=function(b){var h=[];_.lR.forEach(b,function(y,S){var F=_.SR(S);y=Array.isArray(y)?y:[y];_.FS(y,function(a){a==""?h.push(F):h.push(F+"="+_.SR(a))})});
return h.join("&")};
_.aA=function(b){b.charAt(0)==="?"&&(b=b.substring(1));return QHn(b,"&")};
_.dH=function(b){return b.indexOf("?")!==-1?(b=(b||"").split("#")[0],b=b.split("?",2),_.aA(b.length>1?b[1]:b[0])):{}};
_.Ln=function(b,h){return hbN(b,h||{},!0)};
yLr=function(b,h){return hbN(b,h||{},!1)};
hbN=function(b,h,y){var S=b.split("#",2);b=S[0];S=S.length>1?"#"+S[1]:"";var F=b.split("?",2);b=F[0];F=_.aA(F[1]||"");for(var a in h)if(y||!_.lR.containsKey(F,a))F[a]=h[a];return _.P9(b,F)+S};
Ml=function(b){if(!h)var h=window.location.href;var y=_.Kn(b)[1]||null,S=_.ZI(b);return y&&S?oA(b,h):S?_.ZI(h)===S&&(Number(_.Kn(h)[4]||null)||null)===(Number(_.Kn(b)[4]||null)||null):!0};
_.Fyn=function(b){b=Sa8(b);return b===null?!1:b[0]==="com"&&b[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
Sa8=function(b){b=_.ZI(b);return b!==null?b.split(".").reverse():null};
xQj=function(b){return b&&b.match(aWI)?b:nn(b)};
_.XS=function(b){return new dtr(b)};
_.H9=function(){jwN||(jwN=new $t8);return jwN};
PE4=function(){var b=LyY;return function(){var h=_.H9();if(!h.resolve(_.XS(b))){var y={};h.addProvider((y.provide=b,y.useClass=b,y[uN]=void 0,y))}return h.resolve(b)}};
ZIF=function(b){var h=_.OM,y,S;_.Z(function(F){y=_.H9();return(S=y.resolve(_.XS(h)))?(b(S),F.return(Promise.resolve(S))):F.return(y.resolve(new KyI(h)).then(function(a){b(a);return a}))})};
_.r=function(b){b=Nl(b);return typeof b==="string"&&b==="false"?!1:!!b};
_.tj=function(b,h){b=Nl(b);return b===void 0&&h!==void 0?h:Number(b||0)};
op5=function(b){b=Nl(b);return Array.isArray(b)?_.qz(b,function(h){return Number(h||0)}):[Number(b||0)]};
_.rH=function(b){b=Nl(b);return b!==void 0?String(b):""};
_.c9=function(b){b=Nl(b);return Array.isArray(b)?_.qz(b,function(h){return String(h||"")}):[String(b||"")]};
MxM=function(){return _.QC("EXPERIMENTS_TOKEN","")};
Nl=function(b){return _.QC("EXPERIMENT_FLAGS",{})[b]};
npU=function(){for(var b=[],h=_.QC("EXPERIMENTS_FORCED_FLAGS",{}),y=_.L(Object.keys(h)),S=y.next();!S.done;S=y.next())S=S.value,b.push({key:S,value:String(h[S])});y=_.QC("EXPERIMENT_FLAGS",{});S=_.L(Object.keys(y));for(var F=S.next();!F.done;F=S.next())F=F.value,F.startsWith("force_")&&h[F]===void 0&&b.push({key:F,value:String(y[F])});return b};
HIM=function(){if(!XTU)return null;var b=XTU();return"open"in b?b:null};
_.u8k=function(b){switch(_.RA(b)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.RA=function(b){return b&&"status"in b?b.status:-1};
_.zn=function(b,h){typeof b==="function"&&(b=_.bN(b));return window.setTimeout(b,h)};
_.DI=function(b,h){typeof b==="function"&&(b=_.bN(b));return window.setInterval(b,h)};
_.B9=function(b){window.clearTimeout(b)};
Nhr=function(b){b=_.dH(b);for(var h=_.L(OIN),y=h.next();!y.done;y=h.next())if(b[y.value]!==void 0)return!0;return!1};
cLy=function(b,h,y,S,F,a,P,K,n){y=y===void 0?"GET":y;S=S===void 0?"":S;K=K===void 0?!1:K;var X=HIM();if(!X)return null;var u=function(){(X&&"readyState"in X?X.readyState:0)===4&&h&&_.bN(h)(X)};
"onloadend"in X?X.addEventListener("loadend",u,!1):X.onreadystatechange=u;_.r("debug_forward_web_query_parameters")&&(b=txN(b,window.location.search));X.open(y,b,!0);a&&(X.responseType=a);P&&(X.withCredentials=!0);y=y==="POST"&&(window.FormData===void 0||!(S instanceof FormData));if(F=rLj(b,F))for(var O in F)X.setRequestHeader(O,F[O]),"content-type"===O.toLowerCase()&&(y=!1);y&&X.setRequestHeader("Content-Type","application/x-www-form-urlencoded");n&&"onprogress"in X&&(X.onprogress=function(){n(X.responseText)});
if(K&&"setAttributionReporting"in XMLHttpRequest.prototype){b={eventSourceEligible:!0,triggerEligible:!1};try{X.setAttributionReporting(b)}catch(N){_.yb(N)}}X.send(S);return X};
rLj=function(b,h){h=h===void 0?{}:h;var y=Ml(b),S=_.QC("INNERTUBE_CLIENT_NAME"),F=_.r("web_ajax_ignore_global_headers_if_set"),a;for(a in Rbf){var P=_.QC(Rbf[a]),K=a==="X-Goog-AuthUser"||a==="X-Goog-PageId";a!=="X-Goog-Visitor-Id"||P||(P=_.QC("VISITOR_DATA"));var n;if(!(n=!P)){if(!(n=y||(_.ZI(b)?!1:!0))){n=b;var X;if(X=_.r("add_auth_headers_to_remarketing_google_dot_com_ping")&&a==="Authorization"&&(S==="TVHTML5"||S==="TVHTML5_UNPLUGGED"||S==="TVHTML5_SIMPLY"))X=Sa8(n),X=X===null?!1:X[1]==="google"?
!0:X[2]==="google"?X[0]==="au"&&X[1]==="com"?!0:X[0]==="uk"&&X[1]==="co"?!0:!1:!1;X&&(n=_.W9(n)||"",n=n.split("/"),n="/"+(n.length>1?n[1]:""),X=n==="/pagead");n=X?!0:!1}n=!n}n||F&&h[a]!==void 0||S==="TVHTML5_UNPLUGGED"&&K||(h[a]=P)}"X-Goog-EOM-Visitor-Id"in h&&"X-Goog-Visitor-Id"in h&&delete h["X-Goog-Visitor-Id"];if(y||!_.ZI(b))h["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(y||!_.ZI(b)){try{var u=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(O){}u&&(h["X-YouTube-Time-Zone"]=
u)}document.location.hostname.endsWith("youtubeeducation.com")||!y&&_.ZI(b)||(h["X-YouTube-Ad-Signals"]=bI5(zbI()));return h};
_.Dtq=function(b,h){var y=_.ZI(b);_.r("debug_handle_relative_url_for_query_forward_killswitch")||!y&&Ml(b)&&(y=document.location.hostname);var S=_.W9(b);S=(y=y&&(y.endsWith("youtube.com")||y.endsWith("youtube-nocookie.com")))&&S&&S.startsWith("/api/");if(!y||S)return b;var F=_.aA(h),a={};_.FS(OIN,function(P){F[P]&&(a[P]=F[P])});
return yLr(b,a)};
IWr=function(b,h){h.method="POST";h.postParams||(h.postParams={});return _.Aj(b,h)};
Bhn=function(b,h){var y=_.QC("XSRF_FIELD_NAME"),S;h.headers&&(S=h.headers["Content-Type"]);return!h.excludeXsrf&&(!_.ZI(b)||h.withCredentials||_.ZI(b)===document.location.hostname)&&h.method==="POST"&&(!S||S==="application/x-www-form-urlencoded")&&!(h.postParams&&h.postParams[y])};
_.Aj=function(b,h){var y=h.format||"JSON";b=WyN(b,h);var S=ALq(b,h),F=!1,a=Ut8(b,function(n){if(!F){F=!0;K&&_.B9(K);var X=_.u8k(n),u=null,O=400<=n.status&&n.status<500,N=500<=n.status&&n.status<600;if(X||O||N)u=pTn(b,y,n,h.convertToSafeHtml);X&&(X=JLj(y,n,u));u=u||{};O=h.context||_.S5;X?h.onSuccess&&h.onSuccess.call(O,n,u):h.onError&&h.onError.call(O,n,u);h.onFinish&&h.onFinish.call(O,n,u)}},h.method,S,h.headers,h.responseType,h.withCredentials,!1,h.onProgress);
S=h.timeout||0;if(h.onTimeout&&S>0){var P=h.onTimeout;var K=_.zn(function(){F||(F=!0,a.abort(),_.B9(K),P.call(h.context||_.S5,a))},S)}return a};
WyN=function(b,h){h.includeDomain&&(b=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+b);var y=_.QC("XSRF_FIELD_NAME");if(h=h.urlParams)h[y]&&delete h[y],b=_.Ln(b,h);return b};
ALq=function(b,h){var y=_.QC("XSRF_FIELD_NAME"),S=_.QC("XSRF_TOKEN"),F=h.postBody||"",a=h.postParams;Bhn(b,h)&&(a||(a={}),a[y]=S);(_.r("ajax_parse_query_data_only_when_filled")&&a&&Object.keys(a).length>0||a)&&typeof F==="string"&&(F=_.aA(F),_.lR.extend(F,a),F=h.postBodyFormat&&h.postBodyFormat==="JSON"?JSON.stringify(F):_.pn(F));a=F||a&&!_.lR.isEmpty(a);!ebI&&a&&h.method!=="POST"&&(ebI=!0,_.v4(Error("Kc")));return F};
pTn=function(b,h,y,S){var F=null;switch(h){case "JSON":try{var a=y.responseText}catch(P){throw S=Error("Lc"),S.params=b,_.yb(S),P;}b=y.getResponseHeader("Content-Type")||"";a&&b.indexOf("json")>=0&&(a.substring(0,5)===")]}'\n"&&(a=a.substring(5)),F=JSON.parse(a));break;case "XML":if(b=(b=y.responseXML)?CE8(b):null)F={},_.FS(b.getElementsByTagName("*"),function(P){F[P.tagName]=gpj(P)})}S&&swy(F);
return F};
swy=function(b){if(_.lf(b))for(var h in b)h==="html_content"||j5(h,"_html")?b[h]=yx(b[h]):swy(b[h])};
JLj=function(b,h,y){if(h&&h.status===204)return!0;switch(b){case "JSON":return!!y;case "XML":return Number(y&&y.return_code)===0;case "RAW":return!0;default:return!!y}};
CE8=function(b){return b?(b=("responseXML"in b?b.responseXML:b).getElementsByTagName("root"))&&b.length>0?b[0]:null:null};
gpj=function(b){var h="";_.FS(b.childNodes,function(y){h+=y.nodeValue});
return h};
Ya5=function(b){if(b.name==="JavaException")return!0;b=b.stack;return b.includes("chrome://")||b.includes("-extension://")||b.includes("webkit-masked-url://")};
ThY=function(b){if(!b.stack)return!0;var h=!b.stack.includes("\n");return h&&b.stack.includes("ErrorType: ")||h&&b.stack.includes("Anonymous function (Unknown script")||b.stack.toLowerCase()==="not available"||b.fileName==="user-script"||b.fileName.startsWith("user-script:")?!0:!1};
_.Jj=function(b){_.ED.call(this);this.JSC$10705_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!b};
kYN=function(b,h){var y=b.length,S=0,F=function(){return b.charCodeAt(S++)};
do{var a=GYr(F);if(a===Infinity)break;var P=a>>3;switch(a&7){case 0:a=GYr(F);if(P===h)return a;break;case 1:if(P===h)return;S+=8;break;case 2:a=GYr(F);if(P===h)return b.substr(S,a);S+=a;break;case 5:if(P===h)return;S+=4;break;default:return}}while(S<y)};
GYr=function(b){var h=b(),y=h&127;if(h<128)return y;h=b();y|=(h&127)<<7;if(h<128)return y;h=b();y|=(h&127)<<14;if(h<128)return y;h=b();return h<128?y|(h&127)<<21:Infinity};
Ep8=function(b,h,y,S){if(b)if(Array.isArray(b)){var F=S;for(S=0;S<b.length&&!(b[S]&&(F+=Vxk(S,b[S],h,y),F>500));S++);S=F}else if(typeof b==="object")for(F in b){if(b[F]){var a=F;var P=b[F],K=h,n=y;a=typeof P!=="string"||a!=="clickTrackingParams"&&a!=="trackingParams"?0:(P=kYN(atob(P.replace(/-/g,"+").replace(/_/g,"/")),2))?Vxk(a+".ve",P,K,n):0;S+=a;S+=Vxk(F,b[F],h,y);if(S>500)break}}else y[h]=eR(b),S+=y[h].length;else y[h]=eR(b),S+=y[h].length;return S};
Vxk=function(b,h,y,S){y+="."+b;b=eR(h);S[y]=b;return y.length+b.length};
eR=function(b){try{return(typeof b==="string"?b:String(JSON.stringify(b))).substr(0,500)}catch(h){return"unable to serialize "+typeof b+" ("+h.message+")"}};
iI4=function(b){switch(b){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}};
_.gH=function(b,h,y,S,F){_.Cn.set(b,h,{maxAge:y,path:"/",domain:S===void 0?"youtube.com":S,secure:F===void 0?!1:F})};
_.fW8=function(b,h,y){_.Cn.remove(b,h===void 0?"/":h,y===void 0?"youtube.com":y)};
_.sM=function(){if(_.r("embeds_web_enable_cookie_detection_fix")){if(!_.S5.navigator.cookieEnabled)return!1}else if(!_.Cn.isEnabled())return!1;if(!_.Cn.isEmpty())return!0;_.r("embeds_web_enable_cookie_detection_fix")?_.Cn.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.Cn.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.Cn.get("TESTCOOKIESENABLED")!=="1")return!1;_.Cn.remove("TESTCOOKIESENABLED");return!0};
wTf=function(){var b=_.S5.navigator;return b?b.connection:void 0};
lW4=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(b){}};
_.xt8=function(){var b=wTf();if(b){var h=qa5[b.type||"unknown"]||"CONN_UNKNOWN";b=qa5[b.effectiveType||"unknown"]||"CONN_UNKNOWN";h==="CONN_CELLULAR_UNKNOWN"&&b!=="CONN_UNKNOWN"&&(h=b);if(h!=="CONN_UNKNOWN")return h;if(b!=="CONN_UNKNOWN")return b}};
mtf=function(){var b=wTf();if(b!=null&&b.effectiveType)return Qwy.hasOwnProperty(b.effectiveType)?Qwy[b.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.Tn=function(){try{return _.Y0(),!0}catch(b){return!1}};
_.Y0=function(b){if(_.QC("DATASYNC_ID")!==void 0)return _.QC("DATASYNC_ID");throw new _.Gn("Datasync ID not set",b===void 0?"unknown":b);};
_.k0=function(b){this.mechanism=b};
Vb=function(b){this.mechanism=b};
EM=function(b){this.storage_=b;this.cachedIsStorageAvailable_=null};
vpN=function(){var b=null;try{b=_.S5.localStorage||null}catch(h){}EM.call(this,b)};
bi5=function(){var b=null;try{b=_.S5.sessionStorage||null}catch(h){}EM.call(this,b)};
iN=function(b,h){this.mechanism_=b;this.JSC$10808_prefix_=h+"::"};
_.fn=function(b){var h=new vpN;return h.isAvailable()?b?new iN(h,b):h:null};
_.hO4=function(b){var h=new bi5;return h.isAvailable()?b?new iN(h,b):h:null};
SnN=function(){var b;return(b=ytn())==null?void 0:b.get("LAST_RESULT_ENTRY_KEY",!0)};
_.ql=function(b){FkN||(_.wH?_.wH.logError(b):(_.lN.push({type:"ERROR",payload:b}),_.lN.length>10&&_.lN.shift()))};
x0=function(b,h){FkN||(_.wH?_.wH.logEvent(b,h):(_.lN.push({type:"EVENT",eventType:b,payload:h}),_.lN.length>10&&_.lN.shift()))};
Qb=function(b){if(b.indexOf(":")>=0)throw Error("Sc");};
mw=function(b){return b.substr(0,b.indexOf(":"))||b};
jU5=function(){return(aU8||dmn)&&v9("applewebkit")&&!v9("version")&&(!v9("safari")||v9("gsa/"))};
v9=function(b){var h=_.HF();return h?h.toLowerCase().indexOf(b)>=0:!1};
PSU=function(b,h,y,S){h=mw(h);var F=b instanceof Error?b:Error("Tc`"+b);if(F instanceof bj)return F;b={objectStoreNames:y,dbName:h,dbVersion:S};if(F.name==="QuotaExceededError")return new bj("QUOTA_EXCEEDED",b);if(_.h9&&F.name==="UnknownError")return new bj("QUOTA_MAYBE_EXCEEDED",b);if(F instanceof $mr)return new bj("MISSING_INDEX",Object.assign({},b,{objectStore:F.objectStore,index:F.index}));if(F.name==="InvalidStateError"&&Lkq.some(function(a){return F.message.includes(a)}))return new bj("EXECUTE_TRANSACTION_ON_CLOSED_DB",
b);
if(F.name==="AbortError")return new bj("UNKNOWN_ABORT",b,F.message);F.args=[Object.assign({},b,{name:"IdbError",originalName:F.name})];F.level="WARNING";return F};
yV=function(b,h,y){var S=SnN();return new bj("IDB_NOT_SUPPORTED",{context:{caller:b,publicName:h,version:y,hasSucceededOnce:S==null?void 0:S.hasSucceededOnce}})};
KkY=function(b){if(!b)throw Error();throw b;};
Zif=function(b){return b};
o8f=function(b,h,y){var S=function(){try{b.removeEventListener("success",F),b.removeEventListener("error",a)}catch(P){}},F=function(){h(b.result);
S()},a=function(){y(b.error);
S()};
b.addEventListener("success",F);b.addEventListener("error",a)};
M74=function(b){return new Promise(function(h,y){o8f(b,h,y)})};
dw=function(b){return new Fl(new a2(function(h,y){o8f(b,h,y)}))};
n8U=function(b,h){return new Fl(new a2(function(y,S){var F=function(){var a=b?h(b):null;a?a.then(function(P){b=P;F()},S):y()};
F()}))};
XiY=function(b,h,y){return new Promise(function(S,F){var a=h!==void 0?self.indexedDB.open(b,h):self.indexedDB.open(b);var P=y.blocked,K=y.blocking,n=y.terminated,X=y.upgrade,u=y.closed,O,N=function(){O||(O=new jK(a.result,{closed:u}));return O};
a.addEventListener("upgradeneeded",function(t){try{if(t.newVersion===null)throw Error("Yc");if(a.transaction===null)throw Error("Zc");t.dataLoss&&t.dataLoss!=="none"&&x0("IDB_DATA_CORRUPTED",{reason:t.dataLossMessage||"unknown reason",dbName:mw(b)});var R=N(),I=new $P(a.transaction);X&&X(R,function(U){return t.oldVersion<U&&t.newVersion>=U},I);
I.done.catch(function(U){F(U)})}catch(U){F(U)}});
a.addEventListener("success",function(){var t=a.result;K&&t.addEventListener("versionchange",function(){K(N())});
t.addEventListener("close",function(){x0("IDB_UNEXPECTEDLY_CLOSED",{dbName:mw(b),dbVersion:t.version});n&&n()});
S(N())});
a.addEventListener("error",function(){F(a.error)});
P&&a.addEventListener("blocked",function(){P()})})};
Hij=function(b,h,y){y=y===void 0?{}:y;return XiY(b,h,y)};
_.PL=function(b,h){h=h===void 0?{}:h;var y,S,F,a;return _.Z(function(P){if(P.nextAddress==1)return _.WE(P,2),y=self.indexedDB.deleteDatabase(b),S=h,(F=S.blocked)&&y.addEventListener("blocked",function(){F()}),P.yield(M74(y),4);
if(P.nextAddress!=2)return _.Lz(P,0);a=_.C$(P);throw PSU(a,b,"",-1);})};
Oif=function(b,h){var y;return _.Z(function(S){if(S.nextAddress==1)return S.yield(_.Kz(uFU,h),2);y=S.yieldResult;return S.return(_.ZB(y,["databases"],{enableRetries:!0,mode:"readwrite"},function(F){var a=F.objectStore("databases");return a.get(b.actualName).then(function(P){if(P?b.actualName!==P.actualName||b.publicName!==P.publicName||b.userIdentifier!==P.userIdentifier:1)return a.put(b).then(function(){})})}))})};
_.o2=function(b,h){var y;return _.Z(function(S){if(S.nextAddress==1)return b?S.yield(_.Kz(uFU,h),2):S.return();y=S.yieldResult;return S.return(y.delete("databases",b))})};
_.NRr=function(b,h){var y,S;return _.Z(function(F){return F.nextAddress==1?(y=[],F.yield(_.Kz(uFU,h),2)):F.nextAddress!=3?(S=F.yieldResult,F.yield(_.ZB(S,["databases"],{enableRetries:!0,mode:"readonly"},function(a){y.length=0;return MO(a.objectStore("databases"),{},function(P){b(P.getValue())&&y.push(P.getValue());return P.continue()})}),3)):F.return(y)})};
t7M=function(b,h){return _.NRr(function(y){return y.publicName===b&&y.userIdentifier!==void 0},h)};
ROr=function(){var b,h,y,S;return _.Z(function(F){switch(F.nextAddress){case 1:b=SnN();if((h=b)==null?0:h.hasSucceededOnce)return F.return(!0);var a;if(a=rt5)a=/WebKit\/([0-9]+)/.exec(_.HF()),a=!!(a&&parseInt(a[1],10)>=600);a&&(a=/WebKit\/([0-9]+)/.exec(_.HF()),a=!(a&&parseInt(a[1],10)>=602));if(a||nz)return F.return(!1);try{if(y=self,!(y.indexedDB&&y.IDBIndex&&y.IDBKeyRange&&y.IDBObjectStore))return F.return(!1)}catch(P){return F.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return F.return(!1);
_.WE(F,2);S={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return F.yield(Oif(S,ctF),4);case 4:return F.yield(_.o2("yt-idb-test-do-not-use",ctF),5);case 5:return F.return(!0);case 2:return _.C$(F),F.return(!1)}})};
Dmq=function(){if(zOj!==void 0)return zOj;FkN=!0;return zOj=ROr().then(function(b){FkN=!1;var h;if((h=ytn())!=null&&h.hasLocalStorage()){var y;h={hasSucceededOnce:((y=SnN())==null?void 0:y.hasSucceededOnce)||b};var S;(S=ytn())==null||S.set("LAST_RESULT_ENTRY_KEY",h,2592E3,!0)}return b})};
Xl=function(){return _.hj("ytglobal.idbToken_")||void 0};
_.uj=function(){var b=Xl();return b?Promise.resolve(b):Dmq().then(function(h){(h=h?ctF:void 0)&&_.HL("ytglobal.idbToken_",h);return h})};
IUj=function(b){if(!_.Tn())throw b=new bj("AUTH_INVALID",{dbName:b}),_.ql(b),b;var h=_.Y0();return{actualName:b+":"+h,publicName:b,userIdentifier:h}};
BRy=function(b,h,y,S){var F,a,P,K,n,X;return _.Z(function(u){switch(u.nextAddress){case 1:return a=(F=Error().stack)!=null?F:"",u.yield(_.uj(),2);case 2:P=u.yieldResult;if(!P)throw K=yV("openDbImpl",b,h),_.r("ytidb_async_stack_killswitch")||(K.stack=K.stack+"\n"+a.substring(a.indexOf("\n")+1)),_.ql(K),K;Qb(b);n=y?{actualName:b,publicName:b,userIdentifier:void 0}:IUj(b);_.WE(u,3);return u.yield(Oif(n,P),5);case 5:return u.yield(Hij(n.actualName,h,S),6);case 6:return u.return(u.yieldResult);case 3:return X=
_.C$(u),_.WE(u,7),u.yield(_.o2(n.actualName,P),9);case 9:_.Lz(u,8);break;case 7:_.C$(u);case 8:throw X;}})};
Wk4=function(b,h,y){y=y===void 0?{}:y;return BRy(b,h,!1,y)};
At8=function(b,h,y){y=y===void 0?{}:y;return BRy(b,h,!0,y)};
Umf=function(b,h){h=h===void 0?{}:h;var y,S;return _.Z(function(F){if(F.nextAddress==1)return F.yield(_.uj(),2);if(F.nextAddress!=3){y=F.yieldResult;if(!y)return F.return();Qb(b);S=IUj(b);return F.yield(_.PL(S.actualName,h),3)}return F.yield(_.o2(S.actualName,y),0)})};
piF=function(b,h,y){b=b.map(function(S){return _.Z(function(F){return F.nextAddress==1?F.yield(_.PL(S.actualName,h),2):F.yield(_.o2(S.actualName,y),0)})});
return Promise.all(b).then(function(){})};
JtN=function(b){var h=h===void 0?{}:h;var y,S;return _.Z(function(F){if(F.nextAddress==1)return F.yield(_.uj(),2);if(F.nextAddress!=3){y=F.yieldResult;if(!y)return F.return();Qb(b);return F.yield(t7M(b,y),3)}S=F.yieldResult;return F.yield(piF(S,h,y),0)})};
eOI=function(b,h){h=h===void 0?{}:h;var y;return _.Z(function(S){if(S.nextAddress==1)return S.yield(_.uj(),2);if(S.nextAddress!=3){y=S.yieldResult;if(!y)return S.return();Qb(b);return S.yield(_.PL(b,h),3)}return S.yield(_.o2(b,y),0)})};
Ov=function(b,h){return CSN(b,h)};
sUM=function(b){return _.Kz(g85(),b)};
Yn8=function(b,h,y,S){var F,a,P;return _.Z(function(K){switch(K.nextAddress){case 1:return F={config:b,hashData:h,timestamp:S!==void 0?S:(0,_.NO)()},K.yield(sUM(y),2);case 2:return a=K.yieldResult,K.yield(a.clear("hotConfigStore"),3);case 3:return K.yield(a.put("hotConfigStore",F),4);case 4:return P=K.yieldResult,K.return(P)}})};
TR4=function(b,h,y,S,F){var a,P,K;return _.Z(function(n){switch(n.nextAddress){case 1:return a={config:b,hashData:h,configData:y,timestamp:F!==void 0?F:(0,_.NO)()},n.yield(sUM(S),2);case 2:return P=n.yieldResult,n.yield(P.clear("coldConfigStore"),3);case 3:return n.yield(P.put("coldConfigStore",a),4);case 4:return K=n.yieldResult,n.return(K)}})};
GDk=function(b){var h,y;return _.Z(function(S){return S.nextAddress==1?S.yield(sUM(b),2):S.nextAddress!=3?(h=S.yieldResult,y=void 0,S.yield(_.ZB(h,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(F){return _.t9(F.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(a){y=a.getValue()})}),3)):S.return(y)})};
kDy=function(b){var h,y;return _.Z(function(S){return S.nextAddress==1?S.yield(sUM(b),2):S.nextAddress!=3?(h=S.yieldResult,y=void 0,S.yield(_.ZB(h,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(F){return _.t9(F.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(a){y=a.getValue()})}),3)):S.return(y)})};
V7M=function(){return _.Z(function(b){return b.yield(JtN("ytGcfConfig"),0)})};
E8k=function(){return"INNERTUBE_API_KEY"in _.qU&&"INNERTUBE_API_VERSION"in _.qU};
_.rw=function(){return{innertubeApiKey:_.QC("INNERTUBE_API_KEY"),innertubeApiVersion:_.QC("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.QC("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.QC("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.QC("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.QC("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.QC("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.QC("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.QC("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.m$("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.m$("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.QC("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.QUF=function(b){var h={client:{hl:b.innertubeContextHostLanguage,gl:b.innertubeContextGeoLocation,clientName:b.innertubeContextClientName,clientVersion:b.innertubeContextClientVersion,configInfo:b.innertubeContextClientConfigInfo}};navigator.userAgent&&(h.client.userAgent=String(navigator.userAgent));var y=_.S5.devicePixelRatio;y&&y!=1&&(h.client.screenDensityFloat=String(y));y=MxM();y!==""&&(h.client.experimentsToken=y);y=npU();y.length>0&&(h.request={internalExperimentFlags:y});iif(b,void 0,h);
fUk(void 0,h);wiU(void 0,h);lUI(b,void 0,h);qnY(void 0,h);_.r("start_client_gcf")&&xmU(void 0,h);_.QC("DELEGATED_SESSION_ID")&&!_.r("pageid_as_header_web")&&(h.user={onBehalfOfUser:_.QC("DELEGATED_SESSION_ID")});!_.r("fill_delegate_context_in_gel_killswitch")&&(b=_.QC("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(h.user=Object.assign({},h.user,{serializedDelegationContext:b}));b=_.QC("INNERTUBE_CONTEXT");var S;if(_.r("enable_persistent_device_token")&&(b==null?0:(S=b.client)==null?0:S.rolloutToken)){var F;
h.client.rolloutToken=b==null?void 0:(F=b.client)==null?void 0:F.rolloutToken}S=Object;F=S.assign;b=h.client;y={};for(var a=_.L(Object.entries(_.aA(_.QC("DEVICE","")))),P=a.next();!P.done;P=a.next()){var K=_.L(P.value);P=K.next().value;K=K.next().value;P==="cbrand"?y.deviceMake=K:P==="cmodel"?y.deviceModel=K:P==="cbr"?y.browserName=K:P==="cbrver"?y.browserVersion=K:P==="cos"?y.osName=K:P==="cosver"?y.osVersion=K:P==="cplatform"&&(y.platform=K)}h.client=F.call(S,b,y);return h};
iif=function(b,h,y){b=b.innertubeContextClientName;if(b==="WEB"||b==="MWEB"||b===1||b===2)if(h){y=_.cL(h,mm5,96)||new mm5;var S=v8F();S=Object.keys(bRj).indexOf(S);S=S===-1?null:S;S!==null&&_.R2(y,3,S);_.U_(h,96,y)}else y&&(y.client.mainAppWebInfo=(S=y.client.mainAppWebInfo)!=null?S:{},y.client.mainAppWebInfo.webDisplayMode=v8F())};
fUk=function(b,h){var y=_.hj("yt.embedded_player.embed_url");y&&(b?(h=_.cL(b,hgM,7)||new hgM,_.kb(h,4,y),_.U_(b,7,h)):h&&(h.thirdParty={embedUrl:y}))};
wiU=function(b,h){var y;if(_.r("web_log_memory_total_kbytes")&&((y=_.S5.navigator)==null?0:y.deviceMemory)){var S;y=(S=_.S5.navigator)==null?void 0:S.deviceMemory;b?_.z6(b,95,HN(y*1E6)):h&&(h.client.memoryTotalKbytes=""+y*1E6)}};
lUI=function(b,h,y){if(b.appInstallData)if(h){var S;y=(S=_.cL(h,DB,62))!=null?S:new DB;_.kb(y,6,b.appInstallData);_.U_(h,62,y)}else y&&(y.client.configInfo=y.client.configInfo||{},y.client.configInfo.appInstallData=b.appInstallData)};
qnY=function(b,h){var y=_.xt8();y&&(b?_.R2(b,61,yPN[y]):h&&(h.client.connectionType=y));_.r("web_log_effective_connection_type")&&(y=mtf())&&(b?_.R2(b,94,S0j[y]):h&&(h.client.effectiveConnectionType=y))};
_.dCq=function(b,h,y){y=y===void 0?{}:y;var S={};_.QC("EOM_VISITOR_DATA")?S={"X-Goog-EOM-Visitor-Id":_.QC("EOM_VISITOR_DATA")}:S={"X-Goog-Visitor-Id":y.visitorData||_.QC("VISITOR_DATA","")};if(h&&h.includes("www.youtube-nocookie.com"))return S;h=y.authorization||_.QC("AUTHORIZATION");h||(b?h="Bearer "+_.hj("gapi.auth.getToken")().access_token:(FiN.instance||(FiN.instance=new FiN),b=aTU(),_.r("pageid_as_header_web")||delete b["X-Goog-PageId"],S=Object.assign({},S,b)));h&&(S.Authorization=h);return S};
xmU=function(b,h){var y=j3I();if(y){var S=y.coldConfigData,F=y.coldHashData;y=y.hotHashData;if(b){var a;h=(a=_.cL(b,DB,62))!=null?a:new DB;S=_.kb(h,1,S);_.kb(S,3,F).setHotHashData(y);_.U_(b,62,h)}else h&&(h.client.configInfo=h.client.configInfo||{},S&&(h.client.configInfo.coldConfigData=S),F&&(h.client.configInfo.coldHashData=F),y&&(h.client.configInfo.hotHashData=y))}};
I2=function(b){for(var h=b.length;--h>=0;)b[h]=0};
$CY=function(b,h,y,S,F){this.static_tree=b;this.extra_bits=h;this.extra_base=y;this.elems=S;this.max_length=F;this.has_stree=b&&b.length};
Li5=function(b,h){this.dyn_tree=b;this.max_code=0;this.stat_desc=h};
BL=function(b,h){b.pending_buf[b.pending++]=h&255;b.pending_buf[b.pending++]=h>>>8&255};
WL=function(b,h,y){b.bi_valid>16-y?(b.bi_buf|=h<<b.bi_valid&65535,BL(b,b.bi_buf),b.bi_buf=h>>16-b.bi_valid,b.bi_valid+=y-16):(b.bi_buf|=h<<b.bi_valid&65535,b.bi_valid+=y)};
A9=function(b,h,y){WL(b,y[h*2],y[h*2+1])};
Pkq=function(b,h){var y=0;do y|=b&1,b>>>=1,y<<=1;while(--h>0);return y>>>1};
KiN=function(b,h,y){var S=Array(16),F=0,a;for(a=1;a<=15;a++)S[a]=F=F+y[a-1]<<1;for(y=0;y<=h;y++)F=b[y*2+1],F!==0&&(b[y*2]=Pkq(S[F]++,F))};
ZRf=function(b){var h;for(h=0;h<286;h++)b.dyn_ltree[h*2]=0;for(h=0;h<30;h++)b.dyn_dtree[h*2]=0;for(h=0;h<19;h++)b.bl_tree[h*2]=0;b.dyn_ltree[512]=1;b.opt_len=b.static_len=0;b.last_lit=b.matches=0};
ogU=function(b){b.bi_valid>8?BL(b,b.bi_buf):b.bi_valid>0&&(b.pending_buf[b.pending++]=b.bi_buf);b.bi_buf=0;b.bi_valid=0};
MIf=function(b,h,y){ogU(b);BL(b,y);BL(b,~y);Uv.arraySet(b.pending_buf,b.window,h,y,b.pending);b.pending+=y};
ngn=function(b,h,y,S){var F=h*2,a=y*2;return b[F]<b[a]||b[F]===b[a]&&S[h]<=S[y]};
XdU=function(b,h,y){for(var S=b.heap[y],F=y<<1;F<=b.heap_len;){F<b.heap_len&&ngn(h,b.heap[F+1],b.heap[F],b.depth)&&F++;if(ngn(h,S,b.heap[F],b.depth))break;b.heap[y]=b.heap[F];y=F;F<<=1}b.heap[y]=S};
tI4=function(b,h,y){var S=0;if(b.last_lit!==0){do{var F=b.pending_buf[b.d_buf+S*2]<<8|b.pending_buf[b.d_buf+S*2+1];var a=b.pending_buf[b.l_buf+S];S++;if(F===0)A9(b,a,h);else{var P=pz[a];A9(b,P+256+1,h);var K=HRI[P];K!==0&&(a-=udF[P],WL(b,a,K));F--;P=F<256?J9[F]:J9[256+(F>>>7)];A9(b,P,y);K=OR5[P];K!==0&&(F-=Nqq[P],WL(b,F,K))}}while(S<b.last_lit)}A9(b,256,h)};
rPn=function(b,h){var y=h.dyn_tree,S=h.stat_desc.static_tree,F=h.stat_desc.has_stree,a=h.stat_desc.elems,P,K=-1;b.heap_len=0;b.heap_max=573;for(P=0;P<a;P++)y[P*2]!==0?(b.heap[++b.heap_len]=K=P,b.depth[P]=0):y[P*2+1]=0;for(;b.heap_len<2;){var n=b.heap[++b.heap_len]=K<2?++K:0;y[n*2]=1;b.depth[n]=0;b.opt_len--;F&&(b.static_len-=S[n*2+1])}h.max_code=K;for(P=b.heap_len>>1;P>=1;P--)XdU(b,y,P);n=a;do P=b.heap[1],b.heap[1]=b.heap[b.heap_len--],XdU(b,y,1),S=b.heap[1],b.heap[--b.heap_max]=P,b.heap[--b.heap_max]=
S,y[n*2]=y[P*2]+y[S*2],b.depth[n]=(b.depth[P]>=b.depth[S]?b.depth[P]:b.depth[S])+1,y[P*2+1]=y[S*2+1]=n,b.heap[1]=n++,XdU(b,y,1);while(b.heap_len>=2);b.heap[--b.heap_max]=b.heap[1];P=h.dyn_tree;n=h.max_code;S=h.stat_desc.static_tree;F=h.stat_desc.has_stree;a=h.stat_desc.extra_bits;var X=h.stat_desc.extra_base,u=h.stat_desc.max_length,O,N=0;for(O=0;O<=15;O++)b.bl_count[O]=0;P[b.heap[b.heap_max]*2+1]=0;for(h=b.heap_max+1;h<573;h++){var t=b.heap[h];O=P[P[t*2+1]*2+1]+1;O>u&&(O=u,N++);P[t*2+1]=O;if(!(t>
n)){b.bl_count[O]++;var R=0;t>=X&&(R=a[t-X]);var I=P[t*2];b.opt_len+=I*(O+R);F&&(b.static_len+=I*(S[t*2+1]+R))}}if(N!==0){do{for(O=u-1;b.bl_count[O]===0;)O--;b.bl_count[O]--;b.bl_count[O+1]+=2;b.bl_count[u]--;N-=2}while(N>0);for(O=u;O!==0;O--)for(t=b.bl_count[O];t!==0;)S=b.heap[--h],S>n||(P[S*2+1]!==O&&(b.opt_len+=(O-P[S*2+1])*P[S*2],P[S*2+1]=O),t--)}KiN(y,K,b.bl_count)};
cPk=function(b,h,y){var S,F=-1,a=h[1],P=0,K=7,n=4;a===0&&(K=138,n=3);h[(y+1)*2+1]=65535;for(S=0;S<=y;S++){var X=a;a=h[(S+1)*2+1];++P<K&&X===a||(P<n?b.bl_tree[X*2]+=P:X!==0?(X!==F&&b.bl_tree[X*2]++,b.bl_tree[32]++):P<=10?b.bl_tree[34]++:b.bl_tree[36]++,P=0,F=X,a===0?(K=138,n=3):X===a?(K=6,n=3):(K=7,n=4))}};
Rg5=function(b,h,y){var S,F=-1,a=h[1],P=0,K=7,n=4;a===0&&(K=138,n=3);for(S=0;S<=y;S++){var X=a;a=h[(S+1)*2+1];if(!(++P<K&&X===a)){if(P<n){do A9(b,X,b.bl_tree);while(--P!==0)}else X!==0?(X!==F&&(A9(b,X,b.bl_tree),P--),A9(b,16,b.bl_tree),WL(b,P-3,2)):P<=10?(A9(b,17,b.bl_tree),WL(b,P-3,3)):(A9(b,18,b.bl_tree),WL(b,P-11,7));P=0;F=X;a===0?(K=138,n=3):X===a?(K=6,n=3):(K=7,n=4)}}};
zgU=function(b){var h=4093624447,y;for(y=0;y<=31;y++,h>>>=1)if(h&1&&b.dyn_ltree[y*2]!==0)return 0;if(b.dyn_ltree[18]!==0||b.dyn_ltree[20]!==0||b.dyn_ltree[26]!==0)return 1;for(y=32;y<256;y++)if(b.dyn_ltree[y*2]!==0)return 1;return 0};
eK=function(b,h,y){b.pending_buf[b.d_buf+b.last_lit*2]=h>>>8&255;b.pending_buf[b.d_buf+b.last_lit*2+1]=h&255;b.pending_buf[b.l_buf+b.last_lit]=y&255;b.last_lit++;h===0?b.dyn_ltree[y*2]++:(b.matches++,h--,b.dyn_ltree[(pz[y]+256+1)*2]++,b.dyn_dtree[(h<256?J9[h]:J9[256+(h>>>7)])*2]++);return b.last_lit===b.lit_bufsize-1};
gw=function(b,h){b.msg=Cz[h];return h};
sv=function(b){for(var h=b.length;--h>=0;)b[h]=0};
YP=function(b){var h=b.state,y=h.pending;y>b.avail_out&&(y=b.avail_out);y!==0&&(Uv.arraySet(b.output,h.pending_buf,h.pending_out,y,b.next_out),b.next_out+=y,h.pending_out+=y,b.total_out+=y,b.avail_out-=y,h.pending-=y,h.pending===0&&(h.pending_out=0))};
kP=function(b,h){var y=b.block_start>=0?b.block_start:-1,S=b.strstart-b.block_start,F=0;if(b.level>0){b.strm.data_type===2&&(b.strm.data_type=zgU(b));rPn(b,b.l_desc);rPn(b,b.d_desc);cPk(b,b.dyn_ltree,b.l_desc.max_code);cPk(b,b.dyn_dtree,b.d_desc.max_code);rPn(b,b.bl_desc);for(F=18;F>=3&&b.bl_tree[DCn[F]*2+1]===0;F--);b.opt_len+=3*(F+1)+5+5+4;var a=b.opt_len+3+7>>>3;var P=b.static_len+3+7>>>3;P<=a&&(a=P)}else a=P=S+5;if(S+4<=a&&y!==-1)WL(b,h?1:0,3),MIf(b,y,S);else if(b.strategy===4||P===a)WL(b,2+(h?
1:0),3),tI4(b,T6,G6);else{WL(b,4+(h?1:0),3);y=b.l_desc.max_code+1;S=b.d_desc.max_code+1;F+=1;WL(b,y-257,5);WL(b,S-1,5);WL(b,F-4,4);for(a=0;a<F;a++)WL(b,b.bl_tree[DCn[a]*2+1],3);Rg5(b,b.dyn_ltree,y-1);Rg5(b,b.dyn_dtree,S-1);tI4(b,b.dyn_ltree,b.dyn_dtree)}ZRf(b);h&&ogU(b);b.block_start=b.strstart;YP(b.strm)};
VV=function(b,h){b.pending_buf[b.pending++]=h};
Ev=function(b,h){b.pending_buf[b.pending++]=h>>>8&255;b.pending_buf[b.pending++]=h&255};
IT4=function(b,h){var y=b.max_chain_length,S=b.strstart,F=b.prev_length,a=b.nice_match,P=b.strstart>b.w_size-262?b.strstart-(b.w_size-262):0,K=b.window,n=b.w_mask,X=b.prev,u=b.strstart+258,O=K[S+F-1],N=K[S+F];b.prev_length>=b.good_match&&(y>>=2);a>b.lookahead&&(a=b.lookahead);do{var t=h;if(K[t+F]===N&&K[t+F-1]===O&&K[t]===K[S]&&K[++t]===K[S+1]){S+=2;for(t++;K[++S]===K[++t]&&K[++S]===K[++t]&&K[++S]===K[++t]&&K[++S]===K[++t]&&K[++S]===K[++t]&&K[++S]===K[++t]&&K[++S]===K[++t]&&K[++S]===K[++t]&&S<u;);
t=258-(u-S);S=u-258;if(t>F){b.match_start=h;F=t;if(t>=a)break;O=K[S+F-1];N=K[S+F]}}}while((h=X[h&n])>P&&--y!==0);return F<=b.lookahead?F:b.lookahead};
fz=function(b){var h=b.w_size,y;do{var S=b.window_size-b.lookahead-b.strstart;if(b.strstart>=h+(h-262)){Uv.arraySet(b.window,b.window,h,h,0);b.match_start-=h;b.strstart-=h;b.block_start-=h;var F=y=b.hash_size;do{var a=b.head[--F];b.head[F]=a>=h?a-h:0}while(--y);F=y=h;do a=b.prev[--F],b.prev[F]=a>=h?a-h:0;while(--y);S+=h}if(b.strm.avail_in===0)break;F=b.strm;y=b.window;a=b.strstart+b.lookahead;var P=F.avail_in;P>S&&(P=S);P===0?y=0:(F.avail_in-=P,Uv.arraySet(y,F.input,F.next_in,P,a),F.state.wrap===
1?F.adler=BqI(F.adler,y,P,a):F.state.wrap===2&&(F.adler=ij(F.adler,y,P,a)),F.next_in+=P,F.total_in+=P,y=P);b.lookahead+=y;if(b.lookahead+b.insert>=3)for(S=b.strstart-b.insert,b.ins_h=b.window[S],b.ins_h=(b.ins_h<<b.hash_shift^b.window[S+1])&b.hash_mask;b.insert&&!(b.ins_h=(b.ins_h<<b.hash_shift^b.window[S+3-1])&b.hash_mask,b.prev[S&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=S,S++,b.insert--,b.lookahead+b.insert<3););}while(b.lookahead<262&&b.strm.avail_in!==0)};
WiF=function(b,h){for(var y;;){if(b.lookahead<262){fz(b);if(b.lookahead<262&&h===0)return 1;if(b.lookahead===0)break}y=0;b.lookahead>=3&&(b.ins_h=(b.ins_h<<b.hash_shift^b.window[b.strstart+3-1])&b.hash_mask,y=b.prev[b.strstart&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=b.strstart);y!==0&&b.strstart-y<=b.w_size-262&&(b.match_length=IT4(b,y));if(b.match_length>=3)if(y=eK(b,b.strstart-b.match_start,b.match_length-3),b.lookahead-=b.match_length,b.match_length<=b.max_lazy_match&&b.lookahead>=3){b.match_length--;
do b.strstart++,b.ins_h=(b.ins_h<<b.hash_shift^b.window[b.strstart+3-1])&b.hash_mask,b.prev[b.strstart&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=b.strstart;while(--b.match_length!==0);b.strstart++}else b.strstart+=b.match_length,b.match_length=0,b.ins_h=b.window[b.strstart],b.ins_h=(b.ins_h<<b.hash_shift^b.window[b.strstart+1])&b.hash_mask;else y=eK(b,0,b.window[b.strstart]),b.lookahead--,b.strstart++;if(y&&(kP(b,!1),b.strm.avail_out===0))return 1}b.insert=b.strstart<2?b.strstart:2;return h===4?(kP(b,
!0),b.strm.avail_out===0?3:4):b.last_lit&&(kP(b,!1),b.strm.avail_out===0)?1:2};
ww=function(b,h){for(var y,S;;){if(b.lookahead<262){fz(b);if(b.lookahead<262&&h===0)return 1;if(b.lookahead===0)break}y=0;b.lookahead>=3&&(b.ins_h=(b.ins_h<<b.hash_shift^b.window[b.strstart+3-1])&b.hash_mask,y=b.prev[b.strstart&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=b.strstart);b.prev_length=b.match_length;b.prev_match=b.match_start;b.match_length=2;y!==0&&b.prev_length<b.max_lazy_match&&b.strstart-y<=b.w_size-262&&(b.match_length=IT4(b,y),b.match_length<=5&&(b.strategy===1||b.match_length===3&&
b.strstart-b.match_start>4096)&&(b.match_length=2));if(b.prev_length>=3&&b.match_length<=b.prev_length){S=b.strstart+b.lookahead-3;y=eK(b,b.strstart-1-b.prev_match,b.prev_length-3);b.lookahead-=b.prev_length-1;b.prev_length-=2;do++b.strstart<=S&&(b.ins_h=(b.ins_h<<b.hash_shift^b.window[b.strstart+3-1])&b.hash_mask,b.prev[b.strstart&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=b.strstart);while(--b.prev_length!==0);b.match_available=0;b.match_length=2;b.strstart++;if(y&&(kP(b,!1),b.strm.avail_out===0))return 1}else if(b.match_available){if((y=
eK(b,0,b.window[b.strstart-1]))&&kP(b,!1),b.strstart++,b.lookahead--,b.strm.avail_out===0)return 1}else b.match_available=1,b.strstart++,b.lookahead--}b.match_available&&(eK(b,0,b.window[b.strstart-1]),b.match_available=0);b.insert=b.strstart<2?b.strstart:2;return h===4?(kP(b,!0),b.strm.avail_out===0?3:4):b.last_lit&&(kP(b,!1),b.strm.avail_out===0)?1:2};
APU=function(b,h){for(var y,S,F,a=b.window;;){if(b.lookahead<=258){fz(b);if(b.lookahead<=258&&h===0)return 1;if(b.lookahead===0)break}b.match_length=0;if(b.lookahead>=3&&b.strstart>0&&(S=b.strstart-1,y=a[S],y===a[++S]&&y===a[++S]&&y===a[++S])){for(F=b.strstart+258;y===a[++S]&&y===a[++S]&&y===a[++S]&&y===a[++S]&&y===a[++S]&&y===a[++S]&&y===a[++S]&&y===a[++S]&&S<F;);b.match_length=258-(F-S);b.match_length>b.lookahead&&(b.match_length=b.lookahead)}b.match_length>=3?(y=eK(b,1,b.match_length-3),b.lookahead-=
b.match_length,b.strstart+=b.match_length,b.match_length=0):(y=eK(b,0,b.window[b.strstart]),b.lookahead--,b.strstart++);if(y&&(kP(b,!1),b.strm.avail_out===0))return 1}b.insert=0;return h===4?(kP(b,!0),b.strm.avail_out===0?3:4):b.last_lit&&(kP(b,!1),b.strm.avail_out===0)?1:2};
UC4=function(b,h){for(var y;;){if(b.lookahead===0&&(fz(b),b.lookahead===0)){if(h===0)return 1;break}b.match_length=0;y=eK(b,0,b.window[b.strstart]);b.lookahead--;b.strstart++;if(y&&(kP(b,!1),b.strm.avail_out===0))return 1}b.insert=0;return h===4?(kP(b,!0),b.strm.avail_out===0?3:4):b.last_lit&&(kP(b,!1),b.strm.avail_out===0)?1:2};
lj=function(b,h,y,S,F){this.good_length=b;this.max_lazy=h;this.nice_length=y;this.max_chain=S;this.func=F};
pdj=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 Uv.Buf16(1146);this.dyn_dtree=new Uv.Buf16(122);this.bl_tree=new Uv.Buf16(78);sv(this.dyn_ltree);sv(this.dyn_dtree);sv(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new Uv.Buf16(16);this.heap=new Uv.Buf16(573);sv(this.heap);this.heap_max=this.heap_len=0;this.depth=new Uv.Buf16(573);sv(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};
JP8=function(b,h){if(!b||!b.state||h>5||h<0)return b?gw(b,-2):-2;var y=b.state;if(!b.output||!b.input&&b.avail_in!==0||y.status===666&&h!==4)return gw(b,b.avail_out===0?-5:-2);y.strm=b;var S=y.last_flush;y.last_flush=h;if(y.status===42)if(y.wrap===2)b.adler=0,VV(y,31),VV(y,139),VV(y,8),y.gzhead?(VV(y,(y.gzhead.text?1:0)+(y.gzhead.hcrc?2:0)+(y.gzhead.extra?4:0)+(y.gzhead.name?8:0)+(y.gzhead.comment?16:0)),VV(y,y.gzhead.time&255),VV(y,y.gzhead.time>>8&255),VV(y,y.gzhead.time>>16&255),VV(y,y.gzhead.time>>
24&255),VV(y,y.level===9?2:y.strategy>=2||y.level<2?4:0),VV(y,y.gzhead.os&255),y.gzhead.extra&&y.gzhead.extra.length&&(VV(y,y.gzhead.extra.length&255),VV(y,y.gzhead.extra.length>>8&255)),y.gzhead.hcrc&&(b.adler=ij(b.adler,y.pending_buf,y.pending,0)),y.gzindex=0,y.status=69):(VV(y,0),VV(y,0),VV(y,0),VV(y,0),VV(y,0),VV(y,y.level===9?2:y.strategy>=2||y.level<2?4:0),VV(y,3),y.status=113);else{var F=8+(y.w_bits-8<<4)<<8;F|=(y.strategy>=2||y.level<2?0:y.level<6?1:y.level===6?2:3)<<6;y.strstart!==0&&(F|=
32);y.status=113;Ev(y,F+(31-F%31));y.strstart!==0&&(Ev(y,b.adler>>>16),Ev(y,b.adler&65535));b.adler=1}if(y.status===69)if(y.gzhead.extra){for(F=y.pending;y.gzindex<(y.gzhead.extra.length&65535)&&(y.pending!==y.pending_buf_size||(y.gzhead.hcrc&&y.pending>F&&(b.adler=ij(b.adler,y.pending_buf,y.pending-F,F)),YP(b),F=y.pending,y.pending!==y.pending_buf_size));)VV(y,y.gzhead.extra[y.gzindex]&255),y.gzindex++;y.gzhead.hcrc&&y.pending>F&&(b.adler=ij(b.adler,y.pending_buf,y.pending-F,F));y.gzindex===y.gzhead.extra.length&&
(y.gzindex=0,y.status=73)}else y.status=73;if(y.status===73)if(y.gzhead.name){F=y.pending;do{if(y.pending===y.pending_buf_size&&(y.gzhead.hcrc&&y.pending>F&&(b.adler=ij(b.adler,y.pending_buf,y.pending-F,F)),YP(b),F=y.pending,y.pending===y.pending_buf_size)){var a=1;break}a=y.gzindex<y.gzhead.name.length?y.gzhead.name.charCodeAt(y.gzindex++)&255:0;VV(y,a)}while(a!==0);y.gzhead.hcrc&&y.pending>F&&(b.adler=ij(b.adler,y.pending_buf,y.pending-F,F));a===0&&(y.gzindex=0,y.status=91)}else y.status=91;if(y.status===
91)if(y.gzhead.comment){F=y.pending;do{if(y.pending===y.pending_buf_size&&(y.gzhead.hcrc&&y.pending>F&&(b.adler=ij(b.adler,y.pending_buf,y.pending-F,F)),YP(b),F=y.pending,y.pending===y.pending_buf_size)){a=1;break}a=y.gzindex<y.gzhead.comment.length?y.gzhead.comment.charCodeAt(y.gzindex++)&255:0;VV(y,a)}while(a!==0);y.gzhead.hcrc&&y.pending>F&&(b.adler=ij(b.adler,y.pending_buf,y.pending-F,F));a===0&&(y.status=103)}else y.status=103;y.status===103&&(y.gzhead.hcrc?(y.pending+2>y.pending_buf_size&&YP(b),
y.pending+2<=y.pending_buf_size&&(VV(y,b.adler&255),VV(y,b.adler>>8&255),b.adler=0,y.status=113)):y.status=113);if(y.pending!==0){if(YP(b),b.avail_out===0)return y.last_flush=-1,0}else if(b.avail_in===0&&(h<<1)-(h>4?9:0)<=(S<<1)-(S>4?9:0)&&h!==4)return gw(b,-5);if(y.status===666&&b.avail_in!==0)return gw(b,-5);if(b.avail_in!==0||y.lookahead!==0||h!==0&&y.status!==666){S=y.strategy===2?UC4(y,h):y.strategy===3?APU(y,h):qO[y.level].func(y,h);if(S===3||S===4)y.status=666;if(S===1||S===3)return b.avail_out===
0&&(y.last_flush=-1),0;if(S===2&&(h===1?(WL(y,2,3),A9(y,256,T6),y.bi_valid===16?(BL(y,y.bi_buf),y.bi_buf=0,y.bi_valid=0):y.bi_valid>=8&&(y.pending_buf[y.pending++]=y.bi_buf&255,y.bi_buf>>=8,y.bi_valid-=8)):h!==5&&(WL(y,0,3),MIf(y,0,0),h===3&&(sv(y.head),y.lookahead===0&&(y.strstart=0,y.block_start=0,y.insert=0))),YP(b),b.avail_out===0))return y.last_flush=-1,0}if(h!==4)return 0;if(y.wrap<=0)return 1;y.wrap===2?(VV(y,b.adler&255),VV(y,b.adler>>8&255),VV(y,b.adler>>16&255),VV(y,b.adler>>24&255),VV(y,
b.total_in&255),VV(y,b.total_in>>8&255),VV(y,b.total_in>>16&255),VV(y,b.total_in>>24&255)):(Ev(y,b.adler>>>16),Ev(y,b.adler&65535));YP(b);y.wrap>0&&(y.wrap=-y.wrap);return y.pending!==0?0:1};
egr=function(b){if(!(this instanceof egr))return new egr(b);b=this.options=Uv.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},b||{});b.raw&&b.windowBits>0?b.windowBits=-b.windowBits:b.gzip&&b.windowBits>0&&b.windowBits<16&&(b.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new Ckf;this.strm.avail_out=0;var h=this.strm;var y=b.level,S=b.method,F=b.windowBits,a=b.memLevel,P=b.strategy;if(h){var K=1;y===-1&&(y=6);F<0?(K=0,F=-F):F>15&&
(K=2,F-=16);if(a<1||a>9||S!==8||F<8||F>15||y<0||y>9||P<0||P>4)h=gw(h,-2);else{F===8&&(F=9);var n=new pdj;h.state=n;n.strm=h;n.wrap=K;n.gzhead=null;n.w_bits=F;n.w_size=1<<n.w_bits;n.w_mask=n.w_size-1;n.hash_bits=a+7;n.hash_size=1<<n.hash_bits;n.hash_mask=n.hash_size-1;n.hash_shift=~~((n.hash_bits+3-1)/3);n.window=new Uv.Buf8(n.w_size*2);n.head=new Uv.Buf16(n.hash_size);n.prev=new Uv.Buf16(n.w_size);n.lit_bufsize=1<<a+6;n.pending_buf_size=n.lit_bufsize*4;n.pending_buf=new Uv.Buf8(n.pending_buf_size);
n.d_buf=n.lit_bufsize;n.l_buf=3*n.lit_bufsize;n.level=y;n.strategy=P;n.method=S;if(h&&h.state){h.total_in=h.total_out=0;h.data_type=2;y=h.state;y.pending=0;y.pending_out=0;y.wrap<0&&(y.wrap=-y.wrap);y.status=y.wrap?42:113;h.adler=y.wrap===2?0:1;y.last_flush=0;if(!ggr){S=Array(16);for(a=P=0;a<28;a++)for(udF[a]=P,F=0;F<1<<HRI[a];F++)pz[P++]=a;pz[P-1]=a;for(a=P=0;a<16;a++)for(Nqq[a]=P,F=0;F<1<<OR5[a];F++)J9[P++]=a;for(P>>=7;a<30;a++)for(Nqq[a]=P<<7,F=0;F<1<<OR5[a]-7;F++)J9[256+P++]=a;for(F=0;F<=15;F++)S[F]=
0;for(F=0;F<=143;)T6[F*2+1]=8,F++,S[8]++;for(;F<=255;)T6[F*2+1]=9,F++,S[9]++;for(;F<=279;)T6[F*2+1]=7,F++,S[7]++;for(;F<=287;)T6[F*2+1]=8,F++,S[8]++;KiN(T6,287,S);for(F=0;F<30;F++)G6[F*2+1]=5,G6[F*2]=Pkq(F,5);s34=new $CY(T6,HRI,257,286,15);Y05=new $CY(G6,OR5,0,30,15);TqF=new $CY([],GM4,0,19,7);ggr=!0}y.l_desc=new Li5(y.dyn_ltree,s34);y.d_desc=new Li5(y.dyn_dtree,Y05);y.bl_desc=new Li5(y.bl_tree,TqF);y.bi_buf=0;y.bi_valid=0;ZRf(y);y=0}else y=gw(h,-2);y===0&&(h=h.state,h.window_size=2*h.w_size,sv(h.head),
h.max_lazy_match=qO[h.level].max_lazy,h.good_match=qO[h.level].good_length,h.nice_match=qO[h.level].nice_length,h.max_chain_length=qO[h.level].max_chain,h.strstart=0,h.block_start=0,h.lookahead=0,h.insert=0,h.match_length=h.prev_length=2,h.match_available=0,h.ins_h=0);h=y}}else h=-2;if(h!==0)throw Error(Cz[h]);b.header&&(h=this.strm)&&h.state&&h.state.wrap===2&&(h.state.gzhead=b.header);if(b.dictionary){var X;typeof b.dictionary==="string"?X=kM8(b.dictionary):VIN.call(b.dictionary)==="[object ArrayBuffer]"?
X=new Uint8Array(b.dictionary):X=b.dictionary;b=this.strm;a=X;P=a.length;if(b&&b.state)if(X=b.state,h=X.wrap,h===2||h===1&&X.status!==42||X.lookahead)h=-2;else{h===1&&(b.adler=BqI(b.adler,a,P,0));X.wrap=0;P>=X.w_size&&(h===0&&(sv(X.head),X.strstart=0,X.block_start=0,X.insert=0),y=new Uv.Buf8(X.w_size),Uv.arraySet(y,a,P-X.w_size,X.w_size,0),a=y,P=X.w_size);y=b.avail_in;S=b.next_in;F=b.input;b.avail_in=P;b.next_in=0;b.input=a;for(fz(X);X.lookahead>=3;){a=X.strstart;P=X.lookahead-2;do X.ins_h=(X.ins_h<<
X.hash_shift^X.window[a+3-1])&X.hash_mask,X.prev[a&X.w_mask]=X.head[X.ins_h],X.head[X.ins_h]=a,a++;while(--P);X.strstart=a;X.lookahead=2;fz(X)}X.strstart+=X.lookahead;X.block_start=X.strstart;X.insert=X.lookahead;X.lookahead=0;X.match_length=X.prev_length=2;X.match_available=0;b.next_in=S;b.input=F;b.avail_in=y;X.wrap=h;h=0}else h=-2;if(h!==0)throw Error(Cz[h]);this._dict_set=!0}};
Egk=function(b,h){h=h||{};h.gzip=!0;h=new egr(h);h.push(b,!0);if(h.err)throw h.msg||Cz[h.err];return h.result};
fT4=function(b,h){var y=iRF();y&&y.publish.call(y,b.toString(),b,h)};
Q3r=function(b,h,y){var S=iRF();if(!S)return 0;var F=S.subscribe(b.toString(),function(a,P){var K=_.hj("ytPubsub2Pubsub2SkipSubKey");K&&K==F||(K=function(){if(wdr[F])try{if(P&&b instanceof lTN&&b!=a)try{var n=b.dataClass,X=P;if(!X.args||!X.version)throw Error("ad");try{if(!n.version_){var u=new n;n.version_=u.version}var O=n.version_}catch(N){}if(!O||X.version!=O)throw Error("bd");try{P=Reflect.construct(n,_.Ej(X.args))}catch(N){throw N.message="yt.pubsub2.Data.deserialize(): "+N.message,N;}}catch(N){throw N.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+b.toString()+": "+N.message,N;}h.call(y||window,P)}catch(N){_.v4(N)}},q0k[b.toString()]?_.hj("yt.scheduler.instance")?_.xP.addLowPriorityJob(K):_.zn(K,0):K())});
wdr[F]=!0;xCf[b.toString()]||(xCf[b.toString()]=[]);xCf[b.toString()].push(F);return F};
hqn=function(){var b=mCy,h=Q3r(vgj,function(y){b.apply(void 0,arguments);bZj(h)});
return h};
bZj=function(b){var h=iRF();h&&(typeof b==="number"&&(b=[b]),_.FS(b,function(y){h.unsubscribeByKey(y);delete wdr[y]}))};
iRF=function(){return _.hj("ytPubsub2Pubsub2Instance")};
yo4=function(b,h,y){y=y===void 0?{sampleRate:.1}:y;Math.random()<Math.min(.02,y.sampleRate/100)&&fT4("meta_logging_csi_event",{timerName:b,timelineData:h})};
_.SBU=function(b){return b?(b=b.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.L$(b):null:null};
_.QV=function(b){return b?(b=b.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.gf(b):null:null};
amI=function(){Fck||(Fck=_.QV(_.QC("WORKER_SERIALIZATION_URL")));return Fck||void 0};
_.jcY=function(){var b=amI();dhF||b===void 0||(dhF=D55(b));return dhF};
_.$hn=function(){return typeof Worker==="function"&&amI()?!0:!1};
_.ZZI=function(){if(_.$hn()&&!Lc4){var b=function(y){y=y.data;if(y.op==="gzippedGelBatch"){var S=P3r.get(y.key);S&&(Kcn(y.gzippedBatch,S.latencyPayload,S.url,S.options,S.sendFn),P3r.delete(y.key))}},h=_.jcY();
h&&(h.addEventListener("message",b),h.onerror=function(){P3r.clear()},Lc4=!0)}};
OZN=function(b,h,y,S,F){F=F===void 0?!1:F;var a={startTime:(0,_.NO)(),ticks:{},infos:{}};if(mB)try{var P=oxn(h);if(P!=null&&(P>MCk||P<nxy))S(b,y);else{if(_.r("gzip_gel_with_worker")&&(_.r("initial_gzip_use_main_thread")&&!Xlj||!_.r("initial_gzip_use_main_thread"))){Lc4||_.ZZI();var K=_.jcY();if(K&&!F){P3r.set(HZn,{latencyPayload:a,url:b,options:y,sendFn:S});K.postMessage({op:"gelBatchToGzip",serializedBatch:h,key:HZn});HZn++;return}}var n=Egk(uf8(h));Kcn(n,a,b,y,S)}}catch(X){_.yb(X),S(b,y)}else S(b,
y)};
Kcn=function(b,h,y,S,F){Xlj=!1;var a=(0,_.NO)();h.ticks.gelc=a;hd++;_.r("disable_compression_due_to_performance_degredation")&&a-h.startTime>=Nyr&&(tCn++,mB=!1);roI(h);S.headers||(S.headers={});S.headers["Content-Encoding"]="gzip";S.postBody=b;S.postParams=void 0;F(y,S)};
RqU=function(b){var h=h===void 0?!1:h;var y=y===void 0?!1:y;var S=(0,_.NO)(),F={startTime:S,ticks:{},infos:{}},a=h?_.hj("yt.logging.gzipForFetch",!1):!0;if(mB&&a){if(!b.body)return b;try{var P=y?b.body:typeof b.body==="string"?b.body:JSON.stringify(b.body);a=P;if(!y&&typeof P==="string"){var K=oxn(P);if(K!=null&&(K>MCk||K<nxy))return b;y=h?{level:1}:void 0;a=Egk(uf8(P),y);var n=(0,_.NO)();F.ticks.gelc=n;if(h){hd++;if((_.r("disable_compression_due_to_performance_degredation")||_.r("disable_compression_due_to_performance_degradation_lr"))&&
n-S>=Nyr)if(tCn++,_.r("abandon_compression_after_N_slow_zips_lr")){h=tCn/hd;var X=coF/_.tj("compression_disable_point");hd>0&&hd%_.tj("compression_disable_point")===0&&h>=X&&(mB=!1)}else mB=!1;roI(F)}}b.headers=Object.assign({},{"Content-Encoding":"gzip"},b.headers||{});b.body=a;return b}catch(u){return _.yb(u),b}}else return b};
oxn=function(b){try{return(new Blob(b.split(""))).size}catch(h){return _.yb(h),null}};
roI=function(b){_.r("gel_compression_csi_killswitch")||!_.r("log_gel_compression_latency")&&!_.r("log_gel_compression_latency_lr")||yo4("gel_compression",b,{sampleRate:.1})};
zqj=function(){this.blockSize=-1};
yT=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var b=1;b<this.blockSize;++b)this.pad_[b]=0;this.total_=this.inbuf_=0;this.reset()};
Imy=function(b){b=Object.assign({},b);delete b.Authorization;var h=_.Dhf();if(h){var y=new yT;y.update(_.QC("INNERTUBE_API_KEY"));y.update(h);b.hash=_.CA(y.digest(),3)}return b};
Fp=function(){ByY||(ByY=new _.SZ("yt.innertube"));return ByY};
WcI=function(b,h,y,S){if(S)return null;S=Fp().get("nextId",!0)||1;var F=Fp().get("requests",!0)||{};F[S]={method:b,request:h,authState:Imy(y),requestTime:Math.round((0,_.NO)())};Fp().set("nextId",S+1,86400,!0);Fp().set("requests",F,86400,!0);return S};
Ao4=function(b){var h=Fp().get("requests",!0)||{};delete h[b];Fp().set("requests",h,86400,!0)};
ply=function(b){var h=Fp().get("requests",!0);if(h){for(var y in h){var S=h[y];if(!(Math.round((0,_.NO)())-S.requestTime<6E4)){var F=S.authState,a=Imy(_.dCq(!1));_.lR.equals(F,a)&&(F=S.request,"requestTimeMs"in F&&(F.requestTimeMs=Math.round((0,_.NO)())),UhN(b,S.method,F,{}));delete h[y]}}Fp().set("requests",h,86400,!0)}};
Jor=function(b){var h;return(b=b==null?void 0:(h=b.error)==null?void 0:h.code)&&b>=400&&b<=599?!1:!0};
eqr=function(b){var h;b=b==null?void 0:(h=b.error)==null?void 0:h.code;return!(b!==400&&b!==415)};
gx4=function(){if(C3I)return C3I();var b={};C3I=Ov("LogsDatabaseV2",{objectStores:(b.LogsRequestsStore={addedAtVersion:2},b),shared:!1,upgrade:function(h,y,S){y(2)&&ah(h,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});y(3);y(5)&&(S=S.objectStore("LogsRequestsStore"),S.JSC$10867_wrapped.indexNames.contains("newRequest")&&S.JSC$10867_wrapped.deleteIndex("newRequest"),dd(S,"newRequestV2",["status","interface","timestamp"]));y(7)&&h.JSC$10852_wrapped.objectStoreNames.contains("sapisid")&&h.JSC$10852_wrapped.deleteObjectStore("sapisid");
y(9)&&h.JSC$10852_wrapped.objectStoreNames.contains("SWHealthLog")&&h.JSC$10852_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return C3I()};
jZ=function(b){return _.Kz(gx4(),b)};
YBy=function(b,h){var y,S,F,a;return _.Z(function(P){if(P.nextAddress==1)return y={startTime:(0,_.NO)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},P.yield(jZ(h),2);if(P.nextAddress!=3)return S=P.yieldResult,F=Object.assign({},b,{options:JSON.parse(JSON.stringify(b.options)),interface:_.QC("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),P.yield(S.put("LogsRequestsStore",F),3);a=P.yieldResult;y.ticks.tc=(0,_.NO)();scN(y);return P.return(a)})};
Tyj=function(b,h){var y,S,F,a,P,K,n,X,u;return _.Z(function(O){if(O.nextAddress==1)return y={startTime:(0,_.NO)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},O.yield(jZ(h),2);if(O.nextAddress!=3)return S=O.yieldResult,F=_.QC("INNERTUBE_CONTEXT_CLIENT_NAME",0),a=[b,F,0],P=[b,F,(0,_.NO)()],K=IDBKeyRange.bound(a,P),n="prev",_.r("use_fifo_for_networkless")&&(n="next"),X=void 0,u=b==="NEW"?"readwrite":"readonly",_.r("use_readonly_for_get_most_recent_by_status_killswitch")&&(u="readwrite"),
O.yield(_.ZB(S,["LogsRequestsStore"],{mode:u,enableRetries:!0},function(N){return _.t9(N.objectStore("LogsRequestsStore").index("newRequestV2"),{query:K,direction:n},function(t){t.getValue()&&(X=t.getValue(),b==="NEW"&&(X.status="QUEUED",t.update(X)))})}),3);
y.ticks.tc=(0,_.NO)();scN(y);return O.return(X)})};
Gjr=function(b,h){var y;return _.Z(function(S){if(S.nextAddress==1)return S.yield(jZ(h),2);y=S.yieldResult;return S.return(_.ZB(y,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(F){var a=F.objectStore("LogsRequestsStore");return a.get(b).then(function(P){if(P)return P.status="QUEUED",a.put(P).then(function(){return P})})}))})};
kj8=function(b,h,y,S){y=y===void 0?!0:y;var F;return _.Z(function(a){if(a.nextAddress==1)return a.yield(jZ(h),2);F=a.yieldResult;return a.return(_.ZB(F,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(P){var K=P.objectStore("LogsRequestsStore");return K.get(b).then(function(n){return n?(n.status="NEW",y&&(n.sendCount+=1),S!==void 0&&(n.options.compress=S),K.put(n).then(function(){return n})):Fl.resolve(void 0)})}))})};
VCU=function(b,h){var y;return _.Z(function(S){if(S.nextAddress==1)return S.yield(jZ(h),2);y=S.yieldResult;return S.return(y.delete("LogsRequestsStore",b))})};
ExY=function(b){var h,y;return _.Z(function(S){if(S.nextAddress==1)return S.yield(jZ(b),2);h=S.yieldResult;y=(0,_.NO)()-2592E6;return S.yield(_.ZB(h,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(F){return MO(F.objectStore("LogsRequestsStore"),{},function(a){if(a.getValue().timestamp<=y)return a.delete().then(function(){return a.continue()})})}),0)})};
iZf=function(){_.Z(function(b){return b.yield(JtN("LogsDatabaseV2"),0)})};
scN=function(b){_.r("nwl_csi_killswitch")||yo4("networkless_performance",b,{sampleRate:1})};
_.wl8=function(b){return _.Kz(fmf(),b)};
lm5=function(b){var h,y;_.Z(function(S){if(S.nextAddress==1)return S.yield(_.wl8(b),2);h=S.yieldResult;y=(0,_.NO)()-2592E6;return S.yield(_.ZB(h,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(F){return MO(F.objectStore("SWHealthLog"),{},function(a){if(a.getValue().timestamp<=y)return a.delete().then(function(){return a.continue()})})}),0)})};
qBY=function(b){var h;return _.Z(function(y){if(y.nextAddress==1)return y.yield(_.wl8(b),2);h=y.yieldResult;return y.yield(h.clear("SWHealthLog"),0)})};
_.$2=function(b,h,y,S,F,a,P){F=F===void 0?"":F;a=a===void 0?!1:a;P=P===void 0?!1:P;if(b)if(y&&!v9("cobalt"))_.yb(new _.Gn("Legacy referrer-scrubbed ping detected")),b&&xhk(b,void 0,{scrubReferrer:!0});else if(F)cLy(b,h,"POST",F,S);else if(_.QC("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||S||P)cLy(b,h,"GET","",S,void 0,a,P);else{b:{try{c:{var K=new Qck({url:b});if(K.urlParamValues_.dsh==="1")var n=null;else{var X=K.urlParamValues_.ae;if(X==="1"){var u=K.urlParamValues_.adurl;if(u)try{n={version:3,directUrl:decodeURIComponent(u),
asyncUrl:lbM(K.JSC$9659_url_,"act=1","ri=1",mhj(K))};break c}catch(R){}}n=X==="2"?{version:4,directUrl:lbM(K.JSC$9659_url_,"dct=1","suid="+K.suid_,"ri=1"),asyncUrl:lbM(K.JSC$9659_url_,"act=1","ri=1","suid="+K.suid_)}:null}}if(n){var O=_.W9(b);var N=!(!O||!O.endsWith("/aclk")||_.jh(b,"ri")!=="1");break b}}catch(R){}N=!1}if(N){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(b,"")){var t=!0;break b}}catch(R){}t=!1}t?(h&&h(),y=!0):y=!1}else y=!1;y||xhk(b,h)}};
xhk=function(b,h,y){y=y===void 0?{}:y;var S=new Image,F=""+vxf++;btM[F]=S;S.onload=S.onerror=function(){h&&btM[F]&&h();delete btM[F]};
y.scrubReferrer&&(S.referrerPolicy="no-referrer");S.src=b};
LK=function(b,h){hkU(b,h==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
y6F=function(b){var h;return((h=document.featurePolicy)==null?0:h.allowedFeatures().includes("attribution-reporting"))?b+"&nis=6":b+"&nis=5"};
SQ8=function(b){if(!b)return!1;try{var h;if(((h=_.aA(b))==null?void 0:h.asm)==="4")return!0}catch(y){_.v4(y)}return!1};
hkU=function(b,h){h?(b=y6F(b),_.$2(b,void 0,void 0,void 0,"",!0,!0)):_.$2(b)};
a15=function(){FIr||(FIr=new _.SZ("yt.offline"));return FIr};
dJ5=function(b){if(_.r("offline_error_handling")){var h=a15().get("errors",!0)||{};h[b.message]={name:b.name,stack:b.stack};b.level&&(h[b.message].level=b.level);a15().set("errors",h,2592E3,!0)}};
$JY=function(b,h,y,S){S=S===void 0?!1:S;h=_.r("web_fp_via_jspb")?Object.assign({},h):h;_.r("use_cfr_monitor")&&j_5(b,h);if(_.r("use_request_time_ms_header"))h.headers&&Ml(b)&&(h.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.NO)())));else{var F;if((F=h.postParams)==null?0:F.requestTimeMs)h.postParams.requestTimeMs=Math.round((0,_.NO)())}y&&Object.keys(h).length===0?_.$2(b):h.compress?h.postBody?(typeof h.postBody!=="string"&&(h.postBody=JSON.stringify(h.postBody)),OZN(b,h.postBody,
h,_.Aj,S)):OZN(b,JSON.stringify(h.postParams),h,IWr,S):_.Aj(b,h)};
LIq=function(b,h){_.r("use_event_time_ms_header")&&Ml(b)&&(h.headers||(h.headers={}),h.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.NO)())));return h};
_.KIr=function(){Pir||(Pir=new _.PX({logOfflineErrors:!0,enablePolling:!0}));return Pir};
j_5=function(b,h){var y=h.onError?h.onError:function(){};
h.onError=function(F,a){KK().requestComplete(b,!1);y(F,a)};
var S=h.onSuccess?h.onSuccess:function(){};
h.onSuccess=function(F,a){KK().requestComplete(b,!0);S(F,a)}};
_.ZtF=function(){return _.ZI(document.location.toString())!=="www.youtube-nocookie.com"};
_.nSI=function(){return _.hj("ytNetworklessLoggingInitializationOptions")?_.oSn.isNwlInitialized:_.MjF};
X3M=function(b,h){if(_.r("polymer_on_demand_shady_dom")){var y;var S=(y=b.__shady_native_firstElementChild)!=null?y:b.firstElementChild}else S=b.firstElementChild;for(;S;){if(b=h(S)?S:X3M(S,h))return b;S=S.nextElementSibling}return null};
ubY=function(){var b=document;if("visibilityState"in b)return b.visibilityState;var h=Ht5+"VisibilityState";if(h in b)return b[h]};
_.Oty=function(b,h){var y;Z7(b,function(S){y=h[S];return!!y});
return y};
_.Mi=function(b){var h=NU5(b);h?h.focus(void 0):_.oh(b)};
NU5=function(b){return(b=X3M(b,function(h){return _.nK(h)?tj5(h)&&!!h.offsetParent:!1}))?b:null};
_.oh=function(b,h){b.hasAttribute("tabindex")||b.setAttribute("tabindex","-1");b.focus(h)};
r6j=function(b,h,y,S){S=S===void 0?{}:S;b.addEventListener&&(h!="mouseenter"||"onmouseenter"in document?h!="mouseleave"||"onmouseenter"in document?h=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(h="MozMousePixelScroll"):h="mouseout":h="mouseover");return _.lR.findKey(Xp,function(F){var a=typeof F[4]==="boolean"&&F[4]==!!S,P=_.lf(F[4])&&_.lf(S)&&_.lR.equals(F[4],S);return!!F.length&&F[0]==b&&F[1]==h&&F[2]==y&&(a||P)})};
_.uF=function(b,h,y,S){S=S===void 0?{}:S;if(!b||!b.addEventListener&&!b.attachEvent)return"";var F=r6j(b,h,y,S);if(F)return F;F=++c6F.count+"";var a=!(h!="mouseenter"&&h!="mouseleave"||!b.addEventListener||"onmouseenter"in document);var P=a?function(K){K=new HX(K);if(!_.b5(K.relatedTarget,function(n){return n==b},!0))return K.currentTarget=b,K.type=h,y.call(b,K)}:function(K){K=new HX(K);
K.currentTarget=b;return y.call(b,K)};
P=_.bN(P);b.addEventListener?(h=="mouseenter"&&a?h="mouseover":h=="mouseleave"&&a?h="mouseout":h=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(h="MozMousePixelScroll"),RkF()||typeof S==="boolean"?b.addEventListener(h,P,S):b.addEventListener(h,P,!!S.capture)):b.attachEvent("on"+h,P);Xp[F]=[b,h,y,P,S];return F};
_.DJj=function(b,h,y){var S=S===void 0?{}:S;var F=_.uF(b,h,function(){_.zk5(F);y.apply(b,arguments)},S)};
_.zk5=function(b){b&&(typeof b=="string"&&(b=[b]),_.FS(b,function(h){if(h in Xp){var y=Xp[h],S=y[0],F=y[1],a=y[3];y=y[4];S.removeEventListener?RkF()||typeof y==="boolean"?S.removeEventListener(F,a,y):S.removeEventListener(F,a,!!y.capture):S.detachEvent&&S.detachEvent("on"+F,a);delete Xp[h]}}))};
Ou=function(b){this.callback_=b;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(b=0;b<4;b++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.uF(window,"mousemove",(0,_.i5)(this.onMouseMove_,this));this.timerId_=_.DI((0,_.i5)(this.checkPosition_,this),25)};
WI8=function(){var b={};var h=b.preferMobileEvents===void 0?!1:b.preferMobileEvents;b=b.enableScrollEventListener===void 0?!0:b.enableScrollEventListener;if(_.hj("_lact",window)==null){var y=parseInt(_.QC("LACT"),10);y=isFinite(y)?Date.now()-Math.max(y,0):-1;_.HL("_lact",y,window);_.HL("_fact",y,window);y==-1&&_.Ni();I1Y(window,h,b);new Ou(function(){BUI("mouse",100)})}};
I1Y=function(b,h,y){h=h===void 0?!1:h;y=y===void 0?!0:y;_.uF(b.document,"keydown",_.Ni);_.uF(b.document,"keyup",_.Ni);_.uF(b.document,"mousedown",_.Ni);_.uF(b.document,"mouseup",_.Ni);h?_.uF(b,"touchmove",function(){BUI("touchmove",200)},{passive:!0}):(_.uF(b,"resize",function(){BUI("resize",200)}),y&&_.uF(b,"scroll",function(){BUI("scroll",200)}));
_.uF(b.document,"touchstart",_.Ni,{passive:!0});_.uF(b.document,"touchend",_.Ni,{passive:!0})};
BUI=function(b,h){A6N[b]||(A6N[b]=!0,_.xP.addLowPriorityJob(function(){_.Ni();A6N[b]=!1},h))};
_.Ni=function(){_.hj("_lact",window)==null&&WI8();var b=Date.now();_.HL("_lact",b,window);_.hj("_fact",window)==-1&&_.HL("_fact",b,window);(b=_.hj("ytglobal.ytUtilActivityCallback_"))&&b()};
_.td=function(){var b=_.hj("_lact",window);return b==null?-1:Math.max(Date.now()-b,0)};
_.zE=function(b,h,y){var S=_.rd();if(S&&h){var F=S.subscribe(b,function(){var a=arguments,P=function(){cX[F]&&h.apply&&typeof h.apply=="function"&&h.apply(y||window,a)};
try{_.UJy[b]?P():_.zn(P,0)}catch(K){_.v4(K)}},y);
cX[F]=!0;Rh[b]||(Rh[b]=[]);Rh[b].push(F);return F}return 0};
_.p38=function(b){var h=_.rd();h&&(typeof b==="number"?b=[b]:typeof b==="string"&&(b=[parseInt(b,10)]),_.FS(b,function(y){h.unsubscribeByKey(y);delete cX[y]}))};
_.J6I=function(b,h){var y=_.rd();y&&y.publish.apply(y,arguments)};
_.Cik=function(b){var h=_.rd();if(h)if(h.clear(b),b)ek4(b);else for(var y in Rh)ek4(y)};
_.rd=function(){return _.S5.ytPubsubPubsubInstance};
ek4=function(b){Rh[b]&&(b=Rh[b],_.FS(b,function(h){cX[h]&&delete cX[h]}),b.length=0)};
gSj=function(){var b,h;return"h5vcc"in D7&&((b=D7.h5vcc.traceEvent)==null?0:b.traceBegin)&&((h=D7.h5vcc.traceEvent)==null?0:h.traceEnd)?1:"performance"in D7&&D7.performance.mark&&D7.performance.measure?2:0};
s_U=function(b){var h=gSj();switch(h){case 1:D7.h5vcc.traceEvent.traceBegin("YTLR",b);break;case 2:D7.performance.mark(b+"-start");break;case 0:break;default:_.m5(h,"unknown trace type")}};
YQN=function(b){var h=gSj();switch(h){case 1:D7.h5vcc.traceEvent.traceEnd("YTLR",b);break;case 2:h=b+"-start";var y=b+"-end";D7.performance.mark(y);D7.performance.measure(b,h,y);break;case 0:break;default:_.m5(h,"unknown trace type")}};
TU5=function(b){var h,y;(y=(h=window).onerror)==null||y.call(h,b.message,"",0,0,b)};
GK4=function(b){if(_.r("web_lifecycle_error_handling_killswitch"))return b();try{return b()}catch(h){TU5(h)}};
kKf=function(b){return[b.auth===void 0?"undefined":b.auth,b.isJspb===void 0?"undefined":b.isJspb,b.cttAuthInfo===void 0?"undefined":b.cttAuthInfo,b.tier===void 0?"undefined":b.tier].join("/")};
_.c=function(b,h){if(b)return b[h.name]};
BX=function(){var b=_.hj("yt.logging.ims");b||(b=new Ih,_.HL("yt.logging.ims",b));return b};
Q_r=function(b,h){if(b.endpoint==="log_event"){Vj4(b);var y=ESN(b),S=itf(b.payload)||"",F=f1M(S),a=200;if(F){if(F.enabled===!1&&!_.r("web_payload_policy_disabled_killswitch"))return;a=w3y(F.tier);if(a===400){l1U(b,h);return}}WX[y]=!0;y={cttAuthInfo:y,isJspb:!1,tier:a};BX().storePayload(y,b.payload);qQN(h,!1,y,xJk(S))}};
vS4=function(b,h,y){if(h.endpoint==="log_event"){Vj4(void 0,h);var S=ESN(h,!0),F=f1M(b),a=200;if(F){if(F.enabled===!1&&!_.r("web_payload_policy_disabled_killswitch"))return;a=w3y(F.tier);if(a===400){mJk(b,h,y);return}}WX[S]=!0;S={cttAuthInfo:S,isJspb:!0,tier:a};BX().storePayload(S,sf(h.payload));qQN(y,!0,S,xJk(b))}};
qQN=function(b,h,y,S){h=h===void 0?!1:h;S=S===void 0?!1:S;b&&(Ad=new b);b=_.tj("tvhtml5_logging_max_batch_ads_fork")||_.tj("tvhtml5_logging_max_batch")||_.tj("web_logging_max_batch")||100;var F=(0,_.NO)(),a=b9U(h,y.tier),P=a.lastDebounceQueueFromLogTimeMs;S&&(a.useVideoStatsEndPoint=!0);S=0;y&&(S=BX().getSequenceCount(y));var K=function(){hzN({writeThenSend:!0},h,y.tier)};
S>=1E3?K():S>=b?y4U||(y4U=Sk4(function(){K();y4U=void 0},0)):F-P>=10&&(Ffq(h,y.tier),a.lastDebounceQueueFromLogTimeMs=F)};
l1U=function(b,h){if(b.endpoint==="log_event"){_.r("more_accurate_gel_parser")&&BX().storePayload({isJspb:!1},b.payload);Vj4(b);var y=ESN(b),S=new Map;S.set(y,[b.payload]);var F=itf(b.payload)||"";h&&(Ad=new h);return new _.Uu(function(a,P){Ad&&Ad.isReady()?avF(S,Ad,a,P,{bypassNetworkless:!0},!0,xJk(F)):a()})}};
mJk=function(b,h,y){if(h.endpoint==="log_event"){Vj4(void 0,h);var S=ESN(h,!0),F=new Map;F.set(S,[sf(h.payload)]);y&&(Ad=new y);return new _.Uu(function(a){Ad&&Ad.isReady()?dG4(F,Ad,a,{bypassNetworkless:!0},!0,xJk(b)):a()})}};
ESN=function(b,h){var y="";if(b.dangerousLogToVisitorSession)y="visitorOnlyApprovedKey";else if(b.cttAuthInfo){if(h===void 0?0:h){h=b.cttAuthInfo.token;y=b.cttAuthInfo;var S=new jF8;y.videoId?S.setVideoId(y.videoId):y.playlistId&&pK(S,2,$Gr,RP(y.playlistId));Lff[h]=S}else h=b.cttAuthInfo,y={},h.videoId?y.videoId=h.videoId:h.playlistId&&(y.playlistId=h.playlistId),Ppr[b.cttAuthInfo.token]=y;y=b.cttAuthInfo.token}return y};
hzN=function(b,h,y){b=b===void 0?{}:b;h=h===void 0?!1:h;new _.Uu(function(S,F){var a=b9U(h,y),P=a.useVideoStatsEndPoint;a.useVideoStatsEndPoint=!1;Kf8(a.queueTimer);Kf8(a.queueMaxTimer);a.queueMaxTimer=0;Ad&&Ad.isReady()?y===void 0&&_.r("enable_web_tiered_gel")?Z9M(S,F,b,h,300,P):Z9M(S,F,b,h,y,P):(Ffq(h,y),S())})};
Z9M=function(b,h,y,S,F,a){var P=Ad;y=y===void 0?{}:y;S=S===void 0?!1:S;F=F===void 0?200:F;a=a===void 0?!1:a;var K=new Map,n=new Map,X={isJspb:S,cttAuthInfo:void 0,tier:F},u={isJspb:S,cttAuthInfo:void 0};if(S){h=_.L(Object.keys(WX));for(F=h.next();!F.done;F=h.next())F=F.value,n=_.r("enable_web_tiered_gel")?BX().smartExtractMatchingEntries({keys:[X,u],sizeLimit:1E3}):BX().extractMatchingEntries({isJspb:!0,cttAuthInfo:F}),n.length>0&&K.set(F,n),(_.r("web_fp_via_jspb_and_json")&&y.writeThenSend||!_.r("web_fp_via_jspb_and_json"))&&
delete WX[F];dG4(K,P,b,y,!1,a)}else{K=_.L(Object.keys(WX));for(X=K.next();!X.done;X=K.next())X=X.value,u=_.r("enable_web_tiered_gel")?BX().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:X,tier:F},{isJspb:!1,cttAuthInfo:X}],sizeLimit:1E3}):BX().extractMatchingEntries({isJspb:!1,cttAuthInfo:X}),u.length>0&&n.set(X,u),(_.r("web_fp_via_jspb_and_json")&&y.writeThenSend||!_.r("web_fp_via_jspb_and_json"))&&delete WX[X];avF(n,P,b,h,y,!1,a)}};
Ffq=function(b,h){b=b===void 0?!1:b;h=h===void 0?200:h;var y=function(){hzN({writeThenSend:!0},b,h)},S=b9U(b,h),F=S===oEY||S===Msq?5E3:nEj;
_.r("web_gel_timeout_cap")&&!S.queueMaxTimer&&(F=Sk4(function(){y()},F),S.queueMaxTimer=F);
Kf8(S.queueTimer);F=_.QC("LOGGING_BATCH_TIMEOUT",_.tj("web_gel_debounce_ms",1E4));_.r("shorten_initial_gel_batch_timeout")&&X2I&&(F=H9q);F=Sk4(function(){_.tj("gel_min_batch_size")>0?BX().getSequenceCount({cttAuthInfo:void 0,isJspb:b,tier:h})>=uv8&&y():y()},F);
S.queueTimer=F};
avF=function(b,h,y,S,F,a,P){F=F===void 0?{}:F;var K=Math.round((0,_.NO)()),n=b.size,X=O9N(P);b=_.L(b);var u=b.next();for(P={};!u.done;P={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},u=b.next()){var O=_.L(u.value);u=O.next().value;O=O.next().value;P.batchRequest=_.lR.unsafeClone({context:_.QUF(h.config_||_.rw())});if(!_.f4(O)&&!_.r("throw_err_when_logevent_malformed_killswitch")){S();break}P.batchRequest.events=O;
(O=Ppr[u])&&NS8(P.batchRequest,u,O);delete Ppr[u];P.dangerousLogToVisitorSession=u==="visitorOnlyApprovedKey";ts8(P.batchRequest,K,P.dangerousLogToVisitorSession);r4U(F);P.onSuccess$jscomp$3=function(N){_.r("start_client_gcf")&&_.xP.addLowPriorityJob(function(){return _.Z(function(t){return t.yield(c45(N),0)})});
n--;n||y()};
P.networkFailures=0;P.onError$jscomp$5=function(N){return function(){N.networkFailures++;if(F.bypassNetworkless&&N.networkFailures===1)try{UhN(h,X,N.batchRequest,Rzj({writeThenSend:!0},N.dangerousLogToVisitorSession,N.onSuccess$jscomp$3,N.onError$jscomp$5,a)),X2I=!1}catch(t){_.v4(t),S()}n--;n||y()}}(P);
try{UhN(h,X,P.batchRequest,Rzj(F,P.dangerousLogToVisitorSession,P.onSuccess$jscomp$3,P.onError$jscomp$5,a)),X2I=!1}catch(N){_.v4(N),S()}}};
dG4=function(b,h,y,S,F,a){S=S===void 0?{}:S;var P=Math.round((0,_.NO)()),K={value:b.size},n=new Map([].concat(_.f$(b)));n=_.L(n);for(var X=n.next();!X.done;X=n.next()){var u=_.L(X.value).next().value,O=b.get(u);X=new zzY;var N=h.config_||_.rw(),t=new Jd,R=new DGM;_.kb(R,1,N.innertubeContextHostLanguage);_.kb(R,2,N.innertubeContextGeoLocation);_.R2(R,16,N.innertubeContextClientNameFieldNumber);_.kb(R,17,N.innertubeContextClientVersion);if(N.innertubeContextClientConfigInfo){var I=N.innertubeContextClientConfigInfo,
U=new DB;I.coldConfigData&&_.kb(U,1,I.coldConfigData);I.appInstallData&&_.kb(U,6,I.appInstallData);I.coldHashData&&_.kb(U,3,I.coldHashData);I.hotHashData&&U.setHotHashData(I.hotHashData);_.U_(R,62,U)}(I=_.S5.devicePixelRatio)&&I!=1&&_.z6(R,65,_.hX(I));I=MxM();I!==""&&_.kb(R,54,I);I=npU();if(I.length>0){U=new Ivn;for(var p=0;p<I.length;p++){var e=new eZ;e.setKey(I[p].key);pK(e,2,BSr,RP(I[p].value));gd(U,15,eZ,e)}_.U_(t,5,U)}iif(N,R);fUk(t);wiU(R);lUI(N,R);qnY(R);_.r("start_client_gcf")&&xmU(R);_.QC("DELEGATED_SESSION_ID")&&
!_.r("pageid_as_header_web")&&(N=new su,_.kb(N,3,_.QC("DELEGATED_SESSION_ID")));!_.r("fill_delegate_context_in_gel_killswitch")&&(I=_.QC("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(U=_.cL(t,su,3)||new su,N=t,I=_.kb(U,18,I),_.U_(N,3,I));N=R;I=_.L(Object.entries(_.aA(_.QC("DEVICE",""))));for(U=I.next();!U.done;U=I.next())p=_.L(U.value),U=p.next().value,p=p.next().value,U==="cbrand"?_.kb(N,12,p):U==="cmodel"?_.kb(N,13,p):U==="cbr"?_.kb(N,87,p):U==="cbrver"?_.kb(N,88,p):U==="cos"?_.kb(N,18,
p):U==="cosver"?_.kb(N,19,p):U==="cplatform"&&_.R2(N,42,iI4(p));t.setClient(R);_.U_(X,1,t);if(R=Lff[u])a:{if(_.Cq(R,Y2(R,$Gr,1)))t=1;else if(R.getPlaylistId())t=2;else break a;_.U_(X,4,R);R=X.getContext()||new Jd;N=_.cL(R,su,3)||new su;I=new TE;I.setToken(u);_.R2(I,1,t);gd(N,12,TE,I);_.U_(R,3,N)}delete Lff[u];u=u==="visitorOnlyApprovedKey";WfM()||_.GE(X,2,P);!u&&(t=_.QC("EVENT_ID"))&&(R=A4f(),N=new UGq,_.kb(N,1,t),_.GE(N,2,R),_.U_(X,5,N));r4U(S);if(_.r("jspb_serialize_with_worker")&&(t=_.jcY())&&
S.writeThenSend){_.p2N.set(J4I,{client:h,resolve:y,networklessOptions:S,isIsolated:F,useVSSEndpoint:a,dangerousLogToVisitorSession:u,requestsOutstanding:K});t.postMessage({op:"gelBatchToSerialize",batchRequest:sf(X),clientEvents:O,key:J4I});J4I++;break}if(O){t=[];for(R=0;R<O.length;R++)try{t.push(new k2(O[R]))}catch(E){_.v4(new _.Gn("Transport failed to deserialize "+String(O[R])))}O=t}else O=[];O=_.L(O);for(t=O.next();!t.done;t=O.next())gd(X,3,k2,t.value);O={startTime:(0,_.NO)(),ticks:{},infos:{}};
X=X.serialize();O.ticks.geljspc=(0,_.NO)();_.r("log_jspb_serialize_latency")&&yo4("gel_jspb_serialize",O,{sampleRate:.1});_.ezj(X,h,y,S,F,a,u,K)}};
_.ezj=function(b,h,y,S,F,a,P,K){S=S===void 0?{}:S;K=K===void 0?{value:0}:K;a=O9N(a);S=Rzj(S,P,function(n){_.r("start_client_gcf")&&_.xP.addLowPriorityJob(function(){return _.Z(function(X){return X.yield(c45(n),0)})});
K.value--;K.value||y()},function(){K.value--;
K.value||y()},F);
S.headers["Content-Type"]="application/json+protobuf";S.postBodyFormat="JSPB";S.postBody=b;UhN(h,a,"",S);X2I=!1};
r4U=function(b){_.r("always_send_and_write")&&(b.writeThenSend=!1)};
Rzj=function(b,h,y,S,F){b={retry:!0,onSuccess:y,onError:S,networklessOptions:b,dangerousLogToVisitorSession:h,bypassMonitoring:!!F,headers:{},postBodyFormat:"",postBody:"",compress:_.r("compress_gel")||_.r("compress_gel_lr")};WfM()&&(b.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.NO)())));return b};
ts8=function(b,h,y){WfM()||(b.requestTimeMs=String(h));_.r("unsplit_gel_payloads_in_logs")&&(b.unsplitGelPayloadsInLogs=!0);!y&&(h=_.QC("EVENT_ID"))&&(y=A4f(),b.serializedClientEventId={serializedEventId:h,clientCounter:String(y)})};
A4f=function(){var b=_.QC("BATCH_CLIENT_COUNTER")||0;b||(b=Math.floor(Math.random()*65535/2));b++;b>65535&&(b=1);_.xZ("BATCH_CLIENT_COUNTER",b);return b};
NS8=function(b,h,y){if(y.videoId)var S="VIDEO";else if(y.playlistId)S="PLAYLIST";else return;b.credentialTransferTokenTargetId=y;b.context=b.context||{};b.context.user=b.context.user||{};b.context.user.credentialTransferTokens=[{token:h,scope:S}]};
Vj4=function(b,h){var y=_.rH("il_payload_scraping")==="enable_il_payload_scraping";if(!_.hj("yt.logging.transport.enableScrapingForTest"))if(y)Cp8=[],_.HL("yt.logging.transport.enableScrapingForTest",!0),_.HL("yt.logging.transport.scrapedPayloadsForTesting",Cp8),_.HL("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.HL("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.HL("yt.logging.transport.scrapeClientEvent",!0);else return;y=_.hj("yt.logging.transport.scrapedPayloadsForTesting");var S=_.hj("yt.logging.transport.payloadToScrape");h&&(h=_.hj("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(h.payload)())&&y.push(h);h=_.hj("yt.logging.transport.scrapeClientEvent");if(S&&S.length>=1)for(var F=0;F<S.length;F++)if(b&&b.payload[S[F]])if(h)y.push(b.payload);else{var a=void 0;y.push(((a=b)==null?void 0:a.payload)[S[F]])}_.HL("yt.logging.transport.scrapedPayloadsForTesting",
y)};
WfM=function(){return _.r("use_request_time_ms_header")||_.r("lr_use_request_time_ms_header")};
Sk4=function(b,h){return _.r("transport_use_scheduler")===!1?_.zn(b,h):_.r("logging_avoid_blocking_during_navigation")||_.r("lr_logging_avoid_blocking_during_navigation")?_.VT(_.xP,function(){if(_.gEj().currentState==="none")b();else{var y={};_.gEj().install((y.none={callback:b},y))}},h):_.VT(_.xP,b,h)};
Kf8=function(b){_.r("transport_use_scheduler")?_.xP.cancelJob(b):_.B9(b)};
c45=function(b){var h,y,S,F,a,P,K,n,X,u;return _.Z(function(O){return O.nextAddress==1?(S=(h=b)==null?void 0:(y=h.responseContext)==null?void 0:y.globalConfigGroup,F=_.c(S,sF8),P=(a=S)==null?void 0:a.hotHashData,K=_.c(S,YkM),X=(n=S)==null?void 0:n.coldHashData,(u=_.H9().resolve(_.XS(Eu)))?P?F?O.yield(TSj(u,P,F),2):O.yield(TSj(u,P),2):O.jumpTo(2):O.return()):X?K?O.yield(GAM(u,X,K),0):O.yield(GAM(u,X),0):O.jumpTo(0)})};
b9U=function(b,h){h=h===void 0?200:h;return b?h===300?oEY:kAI:h===300?Msq:Vsq};
f1M=function(b){if(_.r("enable_web_tiered_gel")){b=EEF[b||""];var h,y,S,F=_.H9().resolve(_.XS(Eu))==null?void 0:(h=iF())==null?void 0:(y=h.loggingHotConfig)==null?void 0:(S=y.eventLoggingConfig)==null?void 0:S.payloadPolicies;if(F)for(h=0;h<F.length;h++)if(F[h].payloadNumber===b)return F[h]}};
itf=function(b){b=Object.keys(b);b=_.L(b);for(var h=b.next();!h.done;h=b.next())if(h=h.value,EEF[h])return h};
w3y=function(b){switch(b){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}};
xJk=function(b){return b==="gelDebuggingEvent"};
O9N=function(b){return(b===void 0?0:b)&&_.r("vss_through_gel_video_stats")?"video_stats":"log_event"};
wd=function(b,h,y,S){S=S===void 0?{}:S;var F={},a=Math.round(S.timestamp||(0,_.NO)());F.eventTimeMs=a<Number.MAX_SAFE_INTEGER?a:0;F[b]=h;b=_.td();F.context={lastActivityMs:String(S.timestamp||!isFinite(b)?-1:b)};S.sequenceGroup&&!_.r("web_gel_sequence_info_killswitch")&&(b=F.context,h=S.sequenceGroup,h={index:i9f(h),groupKey:h},b.sequence=h,S.endOfSequence&&delete fK[S.sequenceGroup]);_.r("web_tag_automated_log_events")&&(F.context.automatedLogEventSource=S.automatedLogEventSource);(S.sendIsolatedPayload?
l1U:Q_r)({endpoint:"log_event",payload:F,cttAuthInfo:S.cttAuthInfo,dangerousLogToVisitorSession:S.dangerousLogToVisitorSession},y)};
i9f=function(b){fK[b]=b in fK?fK[b]+1:0;return fK[b]};
_.qi=function(b,h,y){y=y===void 0?{}:y;var S=lF;_.m$("ytLoggingEventsDefaultDisabled",!1)&&lF===lF&&(S=null);wd(b,h,S,y)};
_.x2=function(){if(_.r("web_fp_via_jspb")){var b=!0;b=b===void 0?!1:b;var h=fvY;fvY=[];if(h){h=_.L(h);for(var y=h.next();!y.done;y=h.next())y=y.value,b?wd(y.payloadName,y.payload,lF,y.options):_.qi(y.payloadName,y.payload,y.options)}hzN(void 0,!0);if(!_.r("web_fp_via_jspb_and_json"))return}hzN(void 0,!1)};
w2U=function(b,h){var y;if((y=h)==null?0:y.componentStack)return h;if(b=b.componentStack)h||(h={}),h.componentStack=b;return h};
lvj=function(){_.FS(_.QC("ERRORS")||[],function(b){_.QT.apply(null,b)});
_.xZ("ERRORS",[])};
_.mm=function(b){_.QT(b)};
_.vX=function(b){_.QT(b,"WARNING")};
qkI=function(b){b instanceof Error?_.QT(b):(b=_.lf(b)?JSON.stringify(b):String(b),b=new _.Gn(b),b.name="RejectedPromiseError",_.vX(b))};
xGN=function(b,h,y,S,F,a){h=h===void 0?"Unknown file":h;y=y===void 0?0:y;var P=!1,K=w5M("log_window_onerror_fraction");if(K&&Math.random()<K)P=!0;else{K=document.getElementsByTagName("script");for(var n=0,X=K.length;n<X;n++)if(K[n].src.indexOf("/debug-")>0){P=!0;break}}P&&(P=!1,F?P=!0:(typeof b==="string"?K=b:ErrorEvent&&b instanceof ErrorEvent?(P=!0,K=b.message,h=b.filename,y=b.lineno,S=b.colno):(K="Unknown error",h="Unknown file",y=0),F=new _.Gn(K),F.name="UnhandledWindowError",F.message=K,F.fileName=
h,F.lineNumber=y,isNaN(S)?delete F.columnNumber:F.columnNumber=S),_.r("wiz_enable_component_stack_propagation_killswitch")||(a=w2U(F,a)),a&&_.bh(F,a),P?_.QT(F):_.vX(F))};
_.QT=function(b,h,y,S,F,a,P,K){a=a===void 0?{}:a;a.name=y||_.QC("INNERTUBE_CONTEXT_CLIENT_NAME",1);a.version=S||_.QC("INNERTUBE_CONTEXT_CLIENT_VERSION");y=a;h=h===void 0?"ERROR":h;P=P===void 0?!1:P;h=h===void 0?"ERROR":h;P=P===void 0?!1:P;if(b&&(b.hasOwnProperty("level")&&b.level&&(h=b.level),_.r("console_log_js_exceptions")&&(S=[],S.push("Name: "+b.name),S.push("Message: "+b.message),b.hasOwnProperty("params")&&S.push("Error Params: "+JSON.stringify(b.params)),b.hasOwnProperty("args")&&S.push("Error args: "+
JSON.stringify(b.args)),S.push("File name: "+b.fileName),S.push("Stacktrace: "+b.stack),S=S.join("\n"),window.console.log(S,b)),!(QFj>=5))){S=[];F=_.L(mGF);for(a=F.next();!a.done;a=F.next()){a=a.value;try{a()&&S.push(a())}catch(U){}}S=[].concat(_.f$(vEn),_.f$(S));var n=bhr(b);F=n.message||"Unknown Error";a=n.name||"UnknownError";var X=n.stack||b.stacktrace||"Not available";if(X.startsWith(a+": "+F)){var u=X.split("\n");u.shift();X=u.join("\n")}u=n.lineNumber||"Not available";n=n.fileName||"Not available";
var O=0;if(b.hasOwnProperty("args")&&b.args&&b.args.length)for(var N=0;N<b.args.length&&!(O=Ep8(b.args[N],"params."+N,y,O),O>=500);N++);else if(b.hasOwnProperty("params")&&b.params){var t=b.params;if(typeof b.params==="object")for(N in t){if(t[N]){var R="params."+N,I=eR(t[N]);y[R]=I;O+=R.length+I.length;if(O>500)break}}else y.params=eR(t)}if(S.length)for(N=0;N<S.length&&!(O=Ep8(S[N],"params.context."+N,y,O),O>=500);N++);navigator.vendor&&!y.hasOwnProperty("vendor")&&(y["device.vendor"]=navigator.vendor);
N={message:F,name:a,lineNumber:u,fileName:n,stack:X,params:y,sampleWeight:1};y=Number(b.columnNumber);isNaN(y)||(N.lineNumber=N.lineNumber+":"+y);if(b.level==="IGNORED")b=0;else a:{b=hTM();y=_.L(b.messageWeights);for(S=y.next();!S.done;S=y.next())if(S=S.value,N.message&&N.message.match(S.messageRegExp)){b=S.weight;break a}b=_.L(b.callbackWeights);for(y=b.next();!y.done;y=b.next())if(y=y.value,y.callback(N)){b=y.weight;break a}b=1}N.sampleWeight=b;b=_.L(yBN);for(y=b.next();!y.done;y=b.next())if(y=
y.value,y.patternsForType[N.name])for(F=_.L(y.patternsForType[N.name]),S=F.next();!S.done;S=F.next())if(a=S.value,S=N.message.match(a.regexp)){N.params["params.error.original"]=S[0];F=a.groups;a={};for(u=0;u<F.length;u++)a[F[u]]=S[u+1],N.params["params.error."+F[u]]=S[u+1];N.message=y.messageFn(a);break}N.params||(N.params={});b=hTM();N.params["params.errorServiceSignature"]="msg="+b.messageWeights.length+"&cb="+b.callbackWeights.length;N.params["params.serviceWorker"]="false";_.S5.document&&_.S5.document.querySelectorAll&&
(N.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new hR(SFr,"sample")).constructor!==hR&&(N.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(N);if(N.sampleWeight!==0&&!Flf.has(N.message)){if(P)a5I(h===void 0?"ERROR":h,N);else{h=h===void 0?"ERROR":h;h==="ERROR"?(yy.publish("handleError",N),_.r("record_app_crashed_web")&&dnM===0&&N.sampleWeight===1&&(dnM++,P={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},_.r("report_client_error_with_app_crash_ks")||
(P.systemHealth={crashData:{clientError:{logMessage:{message:N.message}}}}),_.qi("appCrashed",P)),j7N++):h==="WARNING"&&yy.publish("handleWarning",N);if(_.r("kevlar_gel_error_routing")){P=h;K=K===void 0?{}:K;b:{b=_.L($nk);for(y=b.next();!y.done;y=b.next())if(v9(y.value.toLowerCase())){b=!0;break b}b=!1}if(b)K=void 0;else{y={stackTrace:N.stack};N.fileName&&(y.filename=N.fileName);b=N.lineNumber&&N.lineNumber.split?N.lineNumber.split(":"):[];b.length!==0&&(b.length!==1||isNaN(Number(b[0]))?b.length!==
2||isNaN(Number(b[0]))||isNaN(Number(b[1]))||(y.lineNumber=Number(b[0]),y.columnNumber=Number(b[1])):y.lineNumber=Number(b[0]));b={level:"ERROR_LEVEL_UNKNOWN",message:N.message,errorClassName:N.name,sampleWeight:N.sampleWeight};P==="ERROR"?b.level="ERROR_LEVEL_ERROR":P==="WARNING"&&(b.level="ERROR_LEVEL_WARNNING");y={isObfuscated:!0,browserStackInfo:y};K.pageUrl=window.location.href;K.kvPairs=[];_.QC("FEXP_EXPERIMENTS")&&(K.experimentIds=_.QC("FEXP_EXPERIMENTS"));S=_.QC("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");
if(!w5M("web_disable_gel_stp_ecatcher_killswitch")&&S)for(F=_.L(Object.keys(S)),a=F.next();!a.done;a=F.next())a=a.value,K.kvPairs.push({key:a,value:String(S[a])});if(S=N.params)for(F=_.L(Object.keys(S)),a=F.next();!a.done;a=F.next())a=a.value,K.kvPairs.push({key:"client."+a,value:String(S[a])});S=_.QC("SERVER_NAME");F=_.QC("SERVER_VERSION");S&&F&&(K.kvPairs.push({key:"server.name",value:S}),K.kvPairs.push({key:"server.version",value:F}));K={errorMetadata:K,stackTrace:y,logMessage:b}}K&&(_.qi("clientError",
K),(P==="ERROR"||_.r("errors_flush_gel_always_killswitch"))&&_.x2())}_.r("suppress_error_204_logging")||a5I(h,N)}try{Flf.add(N.message)}catch(U){}QFj++}}};
a5I=function(b,h){var y=h.params||{};b={urlParams:{a:"logerror",t:"jserror",type:h.name,msg:h.message.substr(0,250),line:h.lineNumber,level:b,"client.name":y.name},postParams:{url:_.QC("PAGE_NAME",window.location.href),file:h.fileName},method:"POST"};y.version&&(b["client.version"]=y.version);if(b.postParams){h.stack&&(b.postParams.stack=h.stack);h=_.L(Object.keys(y));for(var S=h.next();!S.done;S=h.next())S=S.value,b.postParams["client."+S]=y[S];if(y=_.QC("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(h=
_.L(Object.keys(y)),S=h.next();!S.done;S=h.next())S=S.value,b.postParams[S]=y[S];(y=_.QC("LAVA_VERSION"))&&(b.postParams["lava.version"]=y);y=_.QC("SERVER_NAME");h=_.QC("SERVER_VERSION");y&&h&&(b.postParams["server.name"]=y,b.postParams["server.version"]=h)}_.Aj(_.QC("ECATCHER_REPORT_HOST","")+"/error_204",b)};
_.LlU=function(b,h){h=h===void 0?"ERROR":h;var y=y===void 0?{}:y;var S=_.hj("ytbin.polymer.shared.lib.tampering.info");S&&(S=S())&&(y["params.tamperingInfo"]=S.sort().join(","));_.QT(b,h,void 0,void 0,!0,y)};
_.bh=function(b){var h=_.x$.apply(1,arguments);b.args||(b.args=[]);Array.isArray(b.args)&&b.args.push.apply(b.args,_.f$(h))};
PMN=function(b){b.level="IGNORED"};
KlY=function(b,h){vEn.push(b);h();vEn.pop()};
FC=function(b,h){for(var y in h)h.hasOwnProperty(y)&&(b=_.SH(b,y,h[y]));return b};
_.Zh4=function(b,h,y){y=y===void 0?!1:y;if(!b)return null;if(b.adInfoDialogEndpoint||b.backstageImageUploadEndpoint||b.confirmDialogEndpoint||b.clientActionEndpoint||b.createBackstagePostDialogEndpoint||b.createCommentReplyDialogEndpoint||b.flowEndpoint||b.guideBuilderEndpoint||b.liveChatDialogEndpoint||b.modalEndpoint||b.openPopupAction||b.shareEndpoint||b.shareEntityEndpoint||b.showLiveChatItemEndpoint||b.subscriptionManagerEndpoint||b.unlimitedCreateFamilyEndpoint||b.unlimitedFamilyFlowEndpoint||
b.updateCommentDialogEndpoint||b.updateCommentReplyDialogEndpoint||b.userFeedbackEndpoint||b.videoEditorEndpoint||b.ypcCancelSurveyEndpoint)return h=_.tj("polymer_report_client_url_requested_rate"),!y&&Math.random()<h&&_.vX(new _.Gn("urlForEndpoint used on client endpoint",b)),null;var S=_.tj("polymer_report_missing_web_navigation_endpoint_rate");if(b.liveChatEndpoint||b.liveChatReplayEndpoint)S=0;if(!b.commandMetadata&&!b.clickTrackingParams&&Math.random()<S){var F={},a;for(a in b)F[a]="1";_.vX(new _.Gn("Missing navigation data",
F))}F="";if(b.commandMetadata&&b.commandMetadata.webCommandMetadata&&b.commandMetadata.webCommandMetadata.url)F=b.commandMetadata.webCommandMetadata.url;else if(b.searchEndpoint)Math.random()<S&&_.vX(new _.Gn("Should not manually handle search",b)),F="/results?search_query="+encodeURIComponent(b.searchEndpoint.query).replace(/%20/g,"+"),b.searchEndpoint.params&&(F+="&sp="+b.searchEndpoint.params);else if(b.watchEndpoint)Math.random()<S&&_.vX(new _.Gn("Should not manually handle watch",b)),F="/watch?v="+
b.watchEndpoint.videoId,b.watchEndpoint.playlistId&&(F+="&list="+b.watchEndpoint.playlistId),b.watchEndpoint.index&&(F+="&index="+b.watchEndpoint.index),b.watchEndpoint.startTimeSeconds&&(F+="&t="+b.watchEndpoint.startTimeSeconds);else if(b.browseEndpoint)S=b.browseEndpoint.browseId,(a=b.browseEndpoint.canonicalBaseUrl)?F=a:S&&(F=S.substr(0,2),F=F==="FE"?S==="FEwhat_to_watch"?"/":S==="FEmy_videos"?"/my_videos":"/feed/"+S.substr(2):F==="VL"?"/playlist?list="+S.substr(2):"/channel/"+S),F&&b.browseEndpoint.query&&
(F=FC(F+"/search",{query:b.browseEndpoint.query})),F&&b.browseEndpoint.params&&(F=FC(F,{params:b.browseEndpoint.params}));else{if(b.urlEndpoint)return b.urlEndpoint.url;b.signInEndpoint?(F="https://accounts.google.com/ServiceLogin",S={},_.lR.extend(S,h||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),h=S):b.uploadEndpoint?F="//www.youtube.com/upload":b.liveChatEndpoint?(F=b.liveChatEndpoint,S=_.lR.clone(F),_.lf(F.continuation)&&(a=Object.keys(F.continuation)[0],
S.continuation=F.continuation[a].continuation),F=FC("/youtubei/v1/live_chat/get_live_chat",S)):b.liveChatReplayEndpoint?(F=_.lR.clone(b.liveChatReplayEndpoint),F.currentPlayerState&&(_.lR.extend(F,F.currentPlayerState),delete F.currentPlayerState),F=FC("/youtubei/v1/live_chat/get_live_chat_replay",F)):b.liveChatItemContextMenuEndpoint?F=FC("/youtubei/v1/live_chat/get_item_context_menu",b.liveChatItemContextMenuEndpoint):b.liveChatPurchaseMessageEndpoint?F=FC("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
b.liveChatPurchaseMessageEndpoint):b.openSuperStickerBuyFlowCommand?F=FC("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",b.openSuperStickerBuyFlowCommand):b.videoEditEndpoint?F=FC("/edit",{video_id:b.videoEditEndpoint.videoId}):b.liveDashboardEndpoint?F=b.liveDashboardEndpoint.videoId?FC("/live_dashboard",{v:b.liveDashboardEndpoint.videoId}):"/live_dashboard":b.signalNavigationEndpoint&&b.signalNavigationEndpoint.signal&&b.signalNavigationEndpoint.signal==="WEBCAM"?F="/webcam":b.getPdgBuyFlowCommand&&
(F=FC(b.getPdgBuyFlowCommand.buyflowApiPath,{params:b.getPdgBuyFlowCommand.params}))}return F||y?FC(F,h||{}):(_.vX(new _.Gn("Error: Can't construct url for endpoint","keys:"+Object.keys(b).sort().join(","),b)),null)};
orI=function(b){if(b){if(b.browseEndpoint)return!!b.browseEndpoint.nofollow;if(b.watchEndpoint)return!!b.watchEndpoint.nofollow;if(b.urlEndpoint)return!!b.urlEndpoint.nofollow}return!1};
_.nrq=function(b,h){var y=h+b,S=Maj.get(y);if(S)return S;b=h+"-"+b.replace(/([A-Z])/g,"-$1").toLowerCase();Maj.set(y,b);return b};
XCM=function(b){var h=_.ln(b,"action")||_.ln(b,"command")||_.ln(b,"endpoint");if(!h)return null;h=_.nrq(h,"yt");_.c(b,_.aL)&&(h+="-"+_.c(b,_.aL).signal.toLowerCase().replace(/_/g,"-"));return h};
NC4=function(b){try{var h=Object.keys(b)}catch(F){return[]}for(var y=0;y<h.length;y++){var S=h[y];if(Hhj.test(S)||uQn.test(S))return OhI(b[S])}return[]};
OhI=function(b){return b.command?[b.command]:b.onExecutionAction?[b.onExecutionAction]:b.onResponseReceivedCommand?[b.onResponseReceivedCommand]:b.updateFlowCommand?[b.updateFlowCommand]:b.clientActions?b.clientActions:b.action?[b.action]:b.actions||b.commands||b.onResponseReceivedActions||b.onResponseReceivedCommands||b.onResponseReceivedEndpoints||[]};
rBI=function(b,h){h=h===void 0?!1:h;var y=_.H9().resolve(_.XS(d_));y||(y=new taq,_.H9().addProvider({provide:d_,useValue:y}));return y&&b&&!_.lR.isEmpty(b)?y.getUrl(b,h):""};
cBy=function(b,h,y){y=y===void 0?"":y;if(h){b.data=h;var S=rBI(h);S?(mA(b,S),orI(h)||!Ml(S)?b.rel="nofollow":b.removeAttribute("rel"),_.c(h,_.jH)&&_.c(h,_.jH).target==="TARGET_NEW_WINDOW"?b.target="_blank":y?b.target=y:b.removeAttribute("target")):(b.removeAttribute("href"),b.removeAttribute("rel"),b.removeAttribute("target"))}};
_.KP=function(b,h){var y=Xk;if(kH())RTn(b,function(){var a=_.x$.apply(0,arguments);hi(y,function(){h.apply(null,_.f$(a))})});
else{var S=_.$J.getInstance(),F=fnN(h);gjr(function(){F.value=h});
_.wg(function(){var a={},P=_.LP(S,(a[b]=function(){var K=_.x$.apply(0,arguments);hi(y,function(){F.value.apply(F,_.f$(K))})},a));
return function(){var K={};_.Po(S,(K[b]="",K),P)}})}};
_.ZR=function(b,h){return zTN(b,!1,h)};
_.MS=function(b,h){return zTN(b,!0,h)};
zTN=function(b,h,y){return kH()?Dn8(b,h,y):I5U(b,h,y)};
I5U=function(b,h,y){return EjF(function(){return Dn8(b,h,y)},[])};
Dn8=function(b,h,y){var S=p5j(function(F){S.value=F;var a=function(){var P=cs(null);try{return y==null?void 0:y(F)}finally{cs(P)}}();
return function(){a==null||a()}});
S.__expectedTagName=b;S.__optional=h;S.isIdom=!kH();return S};
BCr=function(b){var h=Xk,y=Tr;return{getFn:function(){return function(S){if(!h.isDisposed){var F=function(){return b(S)};
E5(function(){return _.Ar(F)},y)!==!0&&S.stopPropagation()}}}}};
Wl4=function(b){if(typeof b.children==="function")return b.children(),null;b=_.L(b.children);for(var h=b.next();!h.done;h=b.next())h=h.value,h();return null};
ABk=function(b){var h;return((h=b.prototype)==null?void 0:h.render)===void 0};
Unn=function(b){var h=Array.isArray(b.items)?b.items:Array.from(b.items);b=b.children;return(Array.isArray(h)?h:Array.from(h)).map(b)};
JB4=function(b,h,y){y=y===void 0?!1:y;E5(function(){return pCk(b,h,y)})};
pCk=function(b,h,y){var S=null;ws++;y=(y===void 0?0:y)?eTn:CMf;try{S=y(b,function(){nP(h)}),qo(!1)}catch(F){throw qo(!0),F;
}return S===null?b:S};
nP=function(b){if(b!==void 0&&b!==null)if(b instanceof Ai)for(var h=jY;$Z()!=null&&X5n in $Z()&&h.contains($Z());)Kl();else if(Array.isArray(b))for(h=_.L(b),b=h.next();!b.done;b=h.next())nP(b.value);else if(b instanceof Cc||b instanceof HE||"function"==typeof _.X5&&b instanceof _.X5)n6n(b.toString());else if(_.ti(b)){if($Z()!==b){var y,S;h=(S=(y=Tr)==null?void 0:y.name)!=null?S:"unknown";throw Error("ic`"+b.tagName+"`"+h);}Kl()}else if(b!=null&&b.contentKind===Re||b instanceof bZ||Am4(b))for(h=p_I(b),
h=Array.from(h.childNodes),h=_.L(h),b=h.next();!b.done;b=h.next())jY.appendChild(b.value),Kl();else if(VD(b)&&(b=b.toString()),y=typeof b,y==="boolean"||y==="number"||y==="string")n6n(b);else if(typeof b==="function"){h=jY;var F=$Z();F&&(F._isSignalTextNode||F._isSafeOrSanitizedHtmlNode)||dQF(h,F,b);Kl()}else if(b.type===Unn)nP(b.type(Object.assign({},b.props,{children:b.children[0]})));else{if(typeof b.type==="string"){a:{b.__open||Ldf(b.type,b.props.idomKey);F=jY;for(var a in b.props)if(b.props[a]!==
grq){var P=b.props[a];y=oe;y.push(a);y.push(P)}a=tr.attributes;a=a===void 0?XC:a;P=jY;S=Sbr(P);y=a;a=oe;S=S._attrsArr||(S._attrsArr=qPy(a.length));for(var K=!S.length||!1,n=0;n<a.length;n+=2){var X=a[n];if(K)S[n]=X;else if(S[n]!==X)break;var u=a[n+1];if(K||S[n+1]!==u)S[n+1]=u,MMI(P,X,u,y)}if(n<a.length||n<S.length){for(n=K=n;n<S.length;n+=2)Ho[S[n]]=S[n+1];for(n=K;n<a.length;n+=2)K=a[n],X=a[n+1],Ho[K]!==X&&MMI(P,K,X,y),S[n]=K,S[n+1]=X,delete Ho[K];lRq(S,a.length);for(h in Ho)MMI(P,h,void 0,y),delete Ho[h]}h=
s7I;s7I=P=nl.length;for(y=h;y<P;y+=5)(0,nl[y])(nl[y+1],nl[y+2],nl[y+3],nl[y+4]);s7I=h;lRq(nl,h);lRq(a,0);any(F,b.props,!0);if((b.props.skip||b.props.skipchildren)&&jY.hasChildNodes())P4=jY.lastChild;else{if(b.type==="style"&&GNn(b.children)===null){P4=jY.lastChild;h=void 0;break a}nP(b.children)}PzM();b.__open&&(b.__open=!1);cmk(F,b.props);h=F}return h}if(b.type===_.OW)nP(b.children);else if(!YF5(b)){h=b;try{TCI(h)}catch(O){b=O,(P=tr.handleError)==null||P.call.apply(P,[tr].concat(_.f$(yC(b,(F=h.type)==
null?void 0:F.TAG_NAME))))}h.__open&&(PzM(),h.__open=!1)}}};
Go8=function(b,h){var y;ABk(b)?y=new gg(h,b):y=new b(h);y.__type=b;y.__updateContext={nextState:y.state,isForced:!1};return y};
TCI=function(b){var h=b.type,y=h.TAG_NAME;if(h===Wl4)b.props.children=b.children,h(b.props);else{b.children.length>0&&(b.props.children=b.children);var S;(S=b.props).idomKey||(S.idomKey=h);if(y){var F=Ldf(y,b.props.idomKey);b.__open=!0;var a=F.__instance}a||(a=Go8(h,b.props),a.props=null,F&&(F.__instance=a,a.el=F));var P;y=((P=a.__updateContext)!=null?P:{nextState:a.state,isForced:!1}).nextState;a.__updateContext=void 0;h.getDerivedStateFromProps&&(y=h.getDerivedStateFromProps(b.props,y));a.props=
b.props;a.state=y;P=function(){var K=a;eY.beforeRender(K);var n=K.render(K.props);n?(K.props.idomKey&&(n.props.idomKey=K.props.idomKey),K=n):K=void 0;if(n=K)if(n.__open=b.__open,K=nP(n),b.__open=n.__open,!h.TAG_NAME)if(K)h.TAG_NAME=K.tagName.toLowerCase(),K.__instance=a,a.el=K;else{var X;if((X=a.hooks)==null?0:X.length){var u;(u=tr.handleError)==null||u.call.apply(u,[tr].concat(_.f$(yC(Error("pd")))))}}a.didPatch();eY.didPatch(a)};
(y=a.functionComponent)?GEU(y,P,a.props.debugInstance):P()}};
YF5=function(b){var h=b.type;if(!ABk(h)||h===Wl4||h.componentType===Gr)return!1;b.props.children=b.children.length>1?b.children:b.children[0];var y,S=(y=b.props.idomKey)!=null?y:b.type,F;if($Z()&&((F=$Z()[Ie])==null?void 0:F.key)===S){var a=$Z(),P=a[Ie];if(!P)throw Error("hc`"+a.tagName);var K;(K=P.updateSignalsFromIdomProps)==null||K.call(P,b.props);koI(P);return!0}if(Vaf.has(h.name))throw K=h.name,h=(P=(a=Tr)==null?void 0:a.name)!=null?P:"unknown",Error("gc`"+K+"`"+h);PXj(b.type,b.props,b.children);
b.props.renderedFromIdom=!0;(K=GEU(b.type,function(){return bxM(b.type,b.props)},b.props.debugInstance))&&ErY(K);
return!0};
ihq=function(b){for(var h=0;h<W4(b).length;h++)Kl()};
koI=function(b){var h=f5f();if(h)ihq(h);else for(var y=0;y<b.numNodes;y++)(h=f5f())?ihq(h):Kl()};
f5f=function(){var b;return(b=$Z()[Ie])==null?void 0:b.sourceDynamicRange};
ErY=function(b){b=DdM(b);b=Array.isArray(b)?b:[b];b=_.L(b);for(var h=b.next();!h.done;h=b.next())jY.insertBefore(h.value,$Z()),Kl()};
wCY=function(){var b=yeY(),h=EjF(function(){return{value:0}},[]);
return[h.value,function(y){if(Cl!==null){var S;(S=tr.handleError)==null||S.call.apply(S,[tr].concat(_.f$(yC(Error("qd")))))}h.value=typeof y==="function"?y(h.value):y;b.__updateContext={nextState:b.state,isForced:!0};y=_.Hs(b.effectContext);S=NU(!1);try{if(b.el){var F,a={},P=(a.props=b.props,a.type=b.__type,a.children=(F=b.props.children)!=null?F:[],a[un]=!0,a);try{JB4(b.el,P,!0)}catch(X){var K,n;(n=tr.handleError)==null||n.call.apply(n,[tr].concat(_.f$(yC(X,(K=b.__type)==null?void 0:K.TAG_NAME))))}}}finally{NU(S),
_.Hs(y)}}]};
_.NS=function(b,h){var y=Xk,S=function(F){hi(y,function(){h(F)})};
window.addEventListener(b,S,void 0);_.m2(function(){window.removeEventListener(b,S,void 0)})};
_.r_=function(b){var h=Xk;return function(y){var S,F=(S=b.observer)!=null?S:_.H9().resolve(tR);S=l55(y);var a=[];b.showOption&&a.push(F.observe(y,function(){hi(h,function(){b.visibilityCallback(!0,y)})},b.showOption));
b.hideOption&&a.push(F.observe(y,function(){hi(h,function(){b.visibilityCallback(!1,y)})},b.hideOption));
b.prescanOption&&b.prescanCallback&&a.push(F.observe(y,function(){hi(h,function(){b.prescanCallback()})},b.prescanOption));
var P;S.visibilityMonitorKeys=((P=S.visibilityMonitorKeys)!=null?P:[]).concat(a)}};
l55=function(b){var h;return(h=b.polymerController)!=null?h:b};
mnn=function(b,h){var y=qFy;return _.M(_.OW,null,c98(tr.enableLazyTsx,function(){return _.M(xnN,{id:y,value:b,children:h})},function(){var S=Q7U(y,b);
No(S);S=_.Hs(S);try{return h()}finally{_.Hs(S)}}))};
xnN=function(b){var h=b.children;b=Q7U(b.id,b.value);No(b);b=_.Hs(b);try{return _.M(_.OW,null,UW(h()))}finally{_.Hs(b)}};
Q7U=function(b,h){return Object.assign(Object.create(vrM),{id:b,contextValue:h})};
bwq=function(b){var h,y=Xk;_.xH(function(){var S=_.Hs(y),F=NU(!h);try{if(h)JB4(h,b.children(),!0);else if(h=UW(b.children()),!(h instanceof Element))throw Error("rd");}finally{NU(F),_.Hs(S)}},"g");
return h};
_.hlY=function(b,h){var y;h=vs(function(){var S=NU(!0);ws++;try{y=W4(b()),qo(!1)}catch(F){throw qo(!0),F;}finally{NU(S)}},h===void 0?!1:h);
return[y,h]};
SoM=function(b){var h=new yFF;h.abort(b);return h.signal};
Fof=function(){if(this.aborted){var b;throw(b=this.reason)!=null?b:new DOMException("signal is aborted without reason","AbortError");}};
jrU=function(b){var h=new yFF;b=_.L(b);for(var y=b.next();!y.done;y=b.next())if(y=y.value,y.aborted){h.abort(y.reason);break}else aAj.set(h.signal,h),dDk.add(y,h.signal);return h.signal};
$Dr=function(){for(var b=_.L(dDk.get(this)),h=b.next();!h.done;h=b.next())aAj.get(h.value).abort(this.reason)};
LoM=function(b){var h=new yFF;setTimeout(function(){h.abort(new DOMException("signal timed out","TimeoutError"))},b);
return h.signal};
Pqn=function(){var b,h;return{promise:new Promise(function(y,S){b=y;h=S}),
resolve:b,reject:h}};
Zwk=function(b){var h=Pqn(),y=h.promise;Ko5.set(b,{promise:y,resolve:h.resolve,reject:h.reject});co||(co=[],queueMicrotask(function(){var S=[].concat(_.f$(co));co=null;var F=xT().loadMultiple(S);S=_.L(S);for(var a=S.next();!a.done;a=S.next())a=a.value,F[a].then(Ko5.get(a).resolve,Ko5.get(a).reject)}));
co.push(b);return y};
MDN=function(b){b=b.buf.charCodeAt(b.pos++);return oGj[b]};
RL=function(b){var h=0,y=0;do{var S=MDN(b);h|=(S&31)<<y;y+=5}while(S&32);return h<0?h+4294967296:h};
nGM=function(b,h,y,S){var F=!0;F=F===void 0?!1:F;h=h===void 0?!1:h;S=S===void 0?{}:S;var a=S.cssRowKey||"",P=S.combinedSignature||"";!a&&window&&window._F_cssRowKey&&(a=window._F_cssRowKey,!P&&window._F_combinedSignature&&(P=window._F_combinedSignature));if(a&&typeof window._F_installCss!=="function")throw Error("Bd");var K=S.loaderClass||_.zU;b=EPq(b===void 0?"base-js":b);h=new K(IFj(fB5("",b)),a,P,F,h);F=S.useCors||b&&b.hasAttribute("crossorigin");b=S.corsMode||b&&b.getAttribute("crossorigin");
F&&(h.useCors_=F);b&&(h.corsMode_=b);S.urlMaxLength&&(h.urlMaxLength=S.urlMaxLength);y&&(h.insertPos=y);S.fetchPriority&&(h.fetchPriority=S.fetchPriority);var n=xT();n.JSC$10237_loader_=h;n.setBatchModeEnabled(!0);_.DR=S.batchingStrategy==="BATCH"?Zwk:function(X){return Promise.resolve(n.load(X))}};
usM=function(b,h,y){XVr(b,h);b[h][Hwk].unshift(y)};
XVr=function(b,h){if(!b[h]||!b[h][Hwk]){var y=b[h],S=y?[y]:[];b[h]=function(){for(var F=_.L(S),a=F.next();!a.done;a=F.next())a.value.apply(this,arguments)};
b[h][Hwk]=S}};
OwI=function(b){if(!b)return[];var h=[];b=_.L(b);for(var y=b.next();!y.done;y=b.next())y=y.value,Array.isArray(y)?h.push.apply(h,_.f$(OwI(y))):h.push(y);return h};
_.Bo=function(b,h){if(b&&Nxf.test(b)||b==="//")return b;if(tD8===void 0){tD8=!1;try{var y=new URL("b","http://a");y.pathname="c%20d";tD8=y.href==="http://a/c%20d"}catch(S){}}h||(h=document.baseURI||window.location.href);if(tD8)try{return(new URL(b,h)).href}catch(S){return b}IL||(IL=document.implementation.createHTMLDocument("temp"),IL.base=IL.createElement("base"),IL.head.appendChild(IL.base),IL.anchor=IL.createElement("a"),IL.body.appendChild(IL.anchor));IL.base.href=h;IL.anchor.href=b;return IL.anchor.href||
b};
cFF=function(b,h){return b.replace(rF4,function(y,S,F,a){return S+"'"+_.Bo(F.replace(/["']/g,""),h)+"'"+a})};
RlY=function(b){return b.substring(0,b.lastIndexOf("/")+1)};
IAn=function(){zlI=!1;for(var b=Wo.length,h=0;h<b;h++){var y=Wo[h];if(y)try{y()}catch(S){setTimeout(function(){throw S;})}}Wo.splice(0,b);
DDF+=b};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(b){console.log("["+b.is+"]: registered")};
Won=function(b){Bx5.push(b)};
AR=function(b){return AFF[b]||(AFF[b]=b.indexOf("-")<0?b:b.replace(UDU,function(h){return h[1].toUpperCase()}))};
UP=function(b){return AFF[b]||(AFF[b]=b.replace(pV8,"-$1").toLowerCase())};
JFF=function(b,h){var y=h.parentInfo&&JFF(b,h.parentInfo);if(y)for(b=y.firstChild,y=0;b;b=b.nextSibling){if(h.parentIndex===y++)return b}else return b};
elN=function(b,h){b=b._methodHost||b;return function(y){if(b[h])b[h](y,y.detail);else console.warn("listener method `"+h+"` not defined")}};
pP=function(b){return b.indexOf(".")>=0};
JR=function(b){var h=b.indexOf(".");return h===-1?b:b.slice(0,h)};
Cqn=function(b,h){return b.indexOf(h+".")===0};
eH=function(b,h){return h.indexOf(b+".")===0};
CP=function(b,h,y){return h+y.slice(b.length)};
gGI=function(b,h){return b===h||Cqn(b,h)||eH(b,h)};
g_=function(b){if(Array.isArray(b)){for(var h=[],y=0;y<b.length;y++)for(var S=b[y].toString().split("."),F=0;F<S.length;F++)h.push(S[F]);return h.join(".")}return b};
srU=function(b){return Array.isArray(b)?g_(b).split("."):b.toString().split(".")};
sP=function(b,h,y){h=srU(h);for(var S=0;S<h.length;S++){if(!b)return;b=b[h[S]]}y&&(y.path=h.join("."));return b};
Yoq=function(b,h,y){var S=srU(h),F=S[S.length-1];if(S.length>1){for(h=0;h<S.length-1;h++)if(b=b[S[h]],!b)return;b[F]=y}else b[h]=y;return S.join(".")};
Tx4=function(b,h,y){var S=b[h];if(!S)S=b[h]={};else if(!b.hasOwnProperty(h)&&(S=b[h]=Object.create(b[h]),y))for(var F in S)for(b=S[F],h=S[F]=Array(b.length),y=0;y<b.length;y++)h[y]=b[y];return S};
TU=function(b,h,y,S,F,a){if(h){var P=!1,K=YJ++,n;for(n in y){var X=F?JR(n):n;if(X=h[X])for(var u=0,O=X.length,N=void 0;u<O&&(N=X[u]);u++)N.info&&N.info.lastRun===K||F&&!GRq(n,N.trigger)||(N.info&&(N.info.lastRun=K),N.fn(b,n,y,S,N.info,F,a),P=!0)}return P}return!1};
GRq=function(b,h){if(h){var y=h.name;return y==b||!(!h.structured||!Cqn(y,b))||!(!h.wildcard||!eH(y,b))}return!0};
kRM=function(b,h,y,S,F){h=typeof F.method==="string"?b[F.method]:F.method;y=F.property;h?h.call(b,b.__data[y],S[y]):F.dynamicFn||console.warn("observer method `"+F.method+"` not defined")};
VD8=function(b,h,y,S){y={value:y,queueProperty:!0};S&&(y.path=S);(0,_.GU)(b).dispatchEvent(new CustomEvent(h,{detail:y}))};
EGq=function(b,h,y,S,F,a){a=(S=(a?JR(h):h)!=h?h:null)?sP(b,S):b.__data[h];S&&a===void 0&&(a=y[h]);VD8(b,F.eventName,a,S)};
iwM=function(b,h,y,S,F){y=b.__data[h];kJ&&(y=kJ(y,F.attrName,"attribute",b));b._propertyToAttribute(h,F.attrName,y)};
wVF=function(b){var h=b.constructor.__orderedComputedDeps;if(!h){h=new Map;for(var y=b.__computeEffects,S=fA4(b),F=S.counts,a=S.ready,P=S.total;S=a.shift();)h.set(S,h.size),(S=y[S])&&S.forEach(function(K){K=K.info.methodInfo;--P;--F[K]===0&&a.push(K)});
P!==0&&console.warn("Computed graph for "+b.localName+" incomplete; circular?");b.constructor.__orderedComputedDeps=h}return h};
fA4=function(b){var h=b.__computeInfo,y={};b=b.__computeEffects;var S=[],F=0,a;for(a in h){var P=h[a];F+=y[a]=P.args.filter(function(n){return!n.literal}).length+(P.dynamicFn?1:0)}for(var K in b)h[K]||S.push(K);
return{counts:y,ready:S,total:F}};
qoU=function(b,h,y,S,F){h=lA4(b,h,y,S,F);if(h===Vy)return!1;F=F.methodInfo;if(b.__dataHasAccessor&&b.__dataHasAccessor[F])return b._setPendingProperty(F,h,!0);b[F]=h;return!1};
mDn=function(b,h,y,S,F,a,P){y.bindings=y.bindings||[];S={kind:S,target:F,parts:a,literal:P,isCompound:a.length!==1};y.bindings.push(S);S.target&&S.kind!="attribute"&&S.kind!="text"&&!S.isCompound&&S.parts[0].mode==="{"&&(y=S.parts[0],a=y.negate,S.listenerEvent=y.event||UP(F)+"-changed",S.listenerNegate=a);F=h.nodeInfoList.length;for(y=0;y<S.parts.length;y++){var K=S.parts[y];K.compoundIndex=y;a=b;P=h;var n=S,X=K,u=F;if(!X.literal)if(n.kind==="attribute"&&n.target[0]==="-")console.warn("Cannot set attribute "+
n.target+' because "-" is not a valid attribute starting character');else for(K=X.dependencies,n={index:u,binding:n,part:X,evaluator:a},X=0;X<K.length;X++)u=K[X],typeof u=="string"&&(u=xDF(u),u.wildcard=!0),a._addTemplatePropertyEffect(P,u.rootProperty,{fn:Qrn,info:n,trigger:u})}};
Qrn=function(b,h,y,S,F,a,P){P=P[F.index];var K=F.binding,n=F.part;a&&n.source&&h.length>n.source.length&&K.kind=="property"&&!K.isCompound&&P.__isPropertyEffectsClient&&P.__dataHasAccessor&&P.__dataHasAccessor[K.target]?(y=y[h],h=CP(n.source,K.target,h),P._setPendingPropertyOrPath(h,y,!1,!0)&&b._enqueueClient(P)):(h=F.evaluator._evaluateBinding(b,n,h,y,S,a),h!==Vy&&(K.isCompound&&(y=P.__dataCompoundStorage[K.target],y[n.compoundIndex]=h,h=y.join("")),K.kind==="attribute"||K.target!=="textContent"&&
(K.target!=="value"||P.localName!=="input"&&P.localName!=="textarea")||(h=h==void 0?"":h),n=h,kJ&&(n=kJ(n,K.target,K.kind,P)),K.kind=="attribute"?b._valueToNodeAttribute(P,n,K.target):(K=K.target,P.__isPropertyEffectsClient&&P.__dataHasAccessor&&P.__dataHasAccessor[K]?P.__readOnly&&P.__readOnly[K]||P._setPendingProperty(K,n)&&b._enqueueClient(P):b._setUnmanagedPropertyToNode(P,K,n))))};
vG5=function(b,h,y){if(y.listenerEvent){var S=y.parts[0];b.addEventListener(y.listenerEvent,function(F){var a=y.target,P=S.source,K=S.negate,n=F.detail,X=n&&n.path;X?(P=CP(a,P,X),F=n&&n.value):F=F.currentTarget[a];h.__readOnly&&h.__readOnly[P]||!h._setPendingPropertyOrPath(P,K?!F:F,!0,!!X)||n&&n.queueProperty||h._invalidateProperties()})}};
bWF=function(b,h,y,S,F,a){a=h.static||a&&(typeof a!=="object"||a[h.methodName]);F={methodName:h.methodName,args:h.args,methodInfo:F,dynamicFn:a};for(var P=0,K=void 0;P<h.args.length&&(K=h.args[P]);P++)K.literal||b._addPropertyEffect(K.rootProperty,y,{fn:S,info:F,trigger:K});a&&b._addPropertyEffect(h.methodName,y,{fn:S,info:F});return F};
lA4=function(b,h,y,S,F){S=b._methodHost||b;var a=S[F.methodName];if(a)return b=b._marshalArgs(F.args,h,y),b===Vy?Vy:a.apply(S,b);F.dynamicFn||console.warn("method `"+F.methodName+"` not defined")};
hN4=function(b){for(var h="",y=0;y<b.length;y++)h+=b[y].literal||"";return h};
Fgk=function(b){if(b=b.match(/([^\s]+?)\(([\s\S]*)\)/)){var h={methodName:b[1],static:!0,args:y_I};return b[2].trim()?S9k(b[2].replace(/\\,/g,"&comma;").split(","),h):h}return null};
S9k=function(b,h){h.args=b.map(function(y){y=xDF(y);y.literal||(h.static=!1);return y},this);
return h};
xDF=function(b){b=b.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var h={name:b,value:"",literal:!1},y=b[0];y==="-"&&(y=b[1]);y>="0"&&y<="9"&&(y="#");switch(y){case "'":case '"':h.value=b.slice(1,-1);h.literal=!0;break;case "#":h.value=Number(b),h.literal=!0}h.literal||(h.rootProperty=JR(b),h.structured=pP(b),h.structured&&(h.wildcard=b.slice(-2)==".*",h.wildcard&&(h.name=b.slice(0,-2))));return h};
aaf=function(b,h,y){b=sP(b,y);b===void 0&&(b=h[y]);return b};
d$M=function(b,h,y,S){S={indexSplices:S};EP&&!b._overrideLegacyUndefined&&(h.splices=S);b.notifyPath(y+".splices",S);b.notifyPath(y+".length",h.length);EP&&!b._overrideLegacyUndefined&&(S.indexSplices=[])};
ih=function(b,h,y,S,F,a){d$M(b,h,y,[{index:S,addedCount:F,removed:a,object:h,type:"splice"}])};
j8U=function(b){b=cFF((b.body?b.body:b).textContent,b.baseURI);var h=document.createElement("style");h.textContent=b;return h};
Lgj=function(b){b=b.trim().split(/\s+/);for(var h=[],y=0;y<b.length;y++)h.push.apply(h,_.f$($$U(b[y])));return h};
$$U=function(b){var h=fP.import(b);if(!h)return console.warn("Could not find style data in module named",b),[];if(h._styles===void 0){b=[];b.push.apply(b,_.f$(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(h)));var y=h.querySelector("template");y&&b.push.apply(b,_.f$(PGf(y,h.assetpath)));h._styles=b}return h._styles};
PGf=function(b,h){if(!b._styles){for(var y=[],S=b.content.querySelectorAll("style"),F=0;F<S.length;F++){var a=S[F],P=a.getAttribute("include");P&&y.push.apply(y,_.f$(Lgj(P).filter(function(K,n,X){return X.indexOf(K)===n})));
h&&(a.textContent=cFF(a.textContent,h));y.push(a)}b._styles=y}return b._styles};
Kgf=function(b){return(b=fP.import(b))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(b):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(b){var h=[];b=b.querySelectorAll("link[rel=import][type~=css]");for(var y=0;y<b.length;y++){var S=b[y];if(S.import){var F=S.import;if((S=S.hasAttribute("shady-unscoped"))&&!F._unscopedStyle){var a=j8U(F);a.setAttribute("shady-unscoped","");F._unscopedStyle=a}else F._style||(F._style=j8U(F));h.push(S?F._unscopedStyle:F._style)}}return h};
o7n=function(b){b=b.trim().split(/\s+/);for(var h="",y=0;y<b.length;y++)h+=ZWM(b[y]);return h};
ZWM=function(b){var h=fP.import(b);if(h&&h._cssText===void 0){var y=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(h),S=h.querySelector("template");S&&(y+=M4M(S,h.assetpath));h._cssText=y||null}h||console.warn("Could not find style data in module named",b);return h&&h._cssText||""};
M4M=function(b,h){var y="";b=PGf(b,h);for(h=0;h<b.length;h++){var S=b[h];S.parentNode&&S.parentNode.removeChild(S);y+=S.textContent}return y};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(b){var h="";b=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(b);for(var y=0;y<b.length;y++)h+=b[y].textContent;return h};
w_=function(b,h){return{index:b,removed:[],addedCount:h}};
XfM=function(b,h,y,S){var F=0,a=0,P=0,K=0,n=Math.min(h-F,S-a);if(F==0&&a==0)a:{for(P=0;P<n;P++)if(b[P]!==y[P])break a;P=n}if(h==b.length&&S==y.length){K=b.length;for(var X=y.length,u=0;u<n-P&&n7M(b[--K],y[--X]);)u++;K=u}F+=P;a+=P;h-=K;S-=K;if(h-F==0&&S-a==0)return[];if(F==h){for(h=w_(F,0);a<S;)h.removed.push(y[a++]);return[h]}if(a==S)return[w_(F,h-F)];n=F;P=a;S=S-P+1;K=h-n+1;h=Array(S);for(X=0;X<S;X++)h[X]=Array(K),h[X][0]=X;for(X=0;X<K;X++)h[0][X]=X;for(X=1;X<S;X++)for(u=1;u<K;u++)if(b[n+u-1]===
y[P+X-1])h[X][u]=h[X-1][u-1];else{var O=h[X-1][u]+1,N=h[X][u-1]+1;h[X][u]=O<N?O:N}n=h.length-1;P=h[0].length-1;S=h[n][P];for(b=[];n>0||P>0;)n==0?(b.push(2),P--):P==0?(b.push(3),n--):(K=h[n-1][P-1],X=h[n-1][P],u=h[n][P-1],O=X<u?X<K?X:K:u<K?u:K,O==K?(K==S?b.push(0):(b.push(1),S=K),n--,P--):O==X?(b.push(3),n--,S=X):(b.push(2),P--,S=u));b.reverse();h=void 0;n=[];for(P=0;P<b.length;P++)switch(b[P]){case 0:h&&(n.push(h),h=void 0);F++;a++;break;case 1:h||(h=w_(F,0));h.addedCount++;F++;h.removed.push(y[a]);
a++;break;case 2:h||(h=w_(F,0));h.addedCount++;F++;break;case 3:h||(h=w_(F,0)),h.removed.push(y[a]),a++}h&&n.push(h);return n};
HW4=function(b,h){return XfM(b,b.length,h,h.length)};
n7M=function(b,h){return b===h};
OW4=function(b){if(b instanceof uoF)return b.value;throw Error("Jd`"+b);};
NeU=function(b,h){for(var y in h)y===null?b.style.removeProperty(y):b.style.setProperty(y,h[y])};
t48=function(b,h){return(b=window.getComputedStyle(b).getPropertyValue(h))?b.trim():""};
zNk=function(b){requestAnimationFrame(function(){r_N?r_N(b):(c_F||(c_F=new Promise(function(h){RNk=h}),document.readyState==="complete"?RNk():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&RNk()})),c_F.then(function(){b&&b()}))})};
BeM=function(b){D$I=b&&b.shimcssproperties?!1:IaU||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
J_U=function(b){if(!(WgU.indexOf(b)>-1)&&b!=="touchend"&&A_I&&U$5&&pfq)return{passive:!0}};
s8I=function(b){for(var h=eN4?["click"]:WgU,y=0,S;y<h.length;y++)S=h[y],b?(CGk.length=0,document.addEventListener(S,g7f,!0)):document.removeEventListener(S,g7f,!0)};
lh=function(b){var h=b.type;return WgU.indexOf(h)>-1?h==="mousemove"?(h=b.buttons===void 0?1:b.buttons,b instanceof window.MouseEvent&&!Y9M&&(h=Tek[b.which]||0),!!(h&1)):(b.button===void 0?0:b.button)===0:!1};
Gf5=function(b){if(b.type==="click"){if(b.detail===0)return!0;var h=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(b);if(!h.nodeType||h.nodeType!==Node.ELEMENT_NODE)return!0;h=h.getBoundingClientRect();var y=b.pageX;b=b.pageY;return!(y>=h.left&&y<=h.right&&b>=h.top&&b<=h.bottom)}return!1};
kfj=function(b,h,y){b.movefn=h;b.upfn=y;document.addEventListener("mousemove",h);document.addEventListener("mouseup",y)};
qS=function(b){document.removeEventListener("mousemove",b.movefn);document.removeEventListener("mouseup",b.upfn);b.movefn=null;b.upfn=null};
V4y=function(b,h){for(var y=document.elementFromPoint(b,h),S=y;S&&S.shadowRoot&&!window.ShadyDOM;){var F=S;S=S.shadowRoot.elementFromPoint(b,h);if(F===S)break;S&&(y=S)}return y};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(b){var h=E7q(b);return h.length>0?h[0]:b.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(b){var h=b.type,y=b.currentTarget.__polymerGestures;if(y&&(y=y[h])){if(!b.__polymerGesturesHandled&&(b.__polymerGesturesHandled={},h.slice(0,5)==="touch")){var S=b.changedTouches[0];h==="touchstart"&&b.touches.length===1&&(iWM=S.identifier);if(iWM!==S.identifier)return;A_I||(h==="touchstart"||h==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(b)}S=
b.__polymerGesturesHandled;if(!S.skip){for(var F=0,a;F<xJ.length;F++)a=xJ[F],y[a.name]&&!S[a.name]&&a.flow&&a.flow.start.indexOf(b.type)>-1&&a.reset&&a.reset();for(F=0;F<xJ.length;F++)a=xJ[F],y[a.name]&&!S[a.name]&&(S[a.name]=!0,a[h](b))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(b){var h=b.changedTouches[0],y=b.type;if(y==="touchstart")faY=h.clientX,wfU=h.clientY,laM=!1;else if(y==="touchmove"&&!laM){laM=!0;y="auto";for(var S=E7q(b),F=0,a;F<S.length;F++)if(a=S[F],a.__polymerGesturesTouchAction){y=a.__polymerGesturesTouchAction;break}S=!1;F=Math.abs(faY-h.clientX);h=Math.abs(wfU-h.clientY);b.cancelable&&(y==="none"?S=!0:y==="pan-x"?S=h>F:y==="pan-y"&&(S=F>h));S?b.preventDefault():
Qy("track")}};
bz=function(b,h,y){return mV[h]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(b,h,y),!0):!1};
hm=function(b,h,y){return mV[h]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(b,h,y),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(b,h,y){var S=mV[h],F=S.deps,a=S.name,P=b.__polymerGestures;P||(b.__polymerGestures=P={});for(var K=0,n,X;K<F.length;K++)n=F[K],eN4&&WgU.indexOf(n)>-1&&n!=="click"||((X=P[n])||(P[n]=X={_count:0}),X._count===0&&b.addEventListener(n,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,J_U(n)),X[a]=(X[a]||0)+1,X._count=(X._count||0)+1);b.addEventListener(h,y);S.touchAction&&_.yn(b,S.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(b,h,y){var S=mV[h],F=S.deps;S=S.name;var a=b.__polymerGestures;if(a)for(var P=0,K,n;P<F.length;P++)K=F[P],(n=a[K])&&n[S]&&(n[S]=(n[S]||1)-1,n._count=(n._count||1)-1,n._count===0&&b.removeEventListener(K,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,J_U(K)));b.removeEventListener(h,y)};
q9r=function(b){xJ.push(b);for(var h=0;h<b.emits.length;h++)mV[b.emits[h]]=b};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(b){for(var h=0,y;h<xJ.length;h++){y=xJ[h];for(var S=0,F;S<y.emits.length;S++)if(F=y.emits[S],F===b)return y}return null};
_.yn=function(b,h){A_I&&b instanceof HTMLElement&&SM.run(function(){b.style.touchAction=h});
b.__polymerGesturesTouchAction=h};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(b,h,y){h=new Event(h,{bubbles:!0,cancelable:!0,composed:!0});h.detail=y;(0,_.GU)(b).dispatchEvent(h);h.defaultPrevented&&(b=y.preventer||y.sourceEvent)&&b.preventDefault&&b.preventDefault()};
Qy=function(b){b=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(b);b.info&&(b.info.prevent=!0)};
Fu=function(b,h,y,S){h&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(h,b,{x:y.clientX,y:y.clientY,sourceEvent:y,preventer:S,prevent:function(F){return Qy(F)}})};
x$F=function(b,h,y){if(b.prevent)return!1;if(b.started)return!0;y=Math.abs(b.y-y);return Math.abs(b.x-h)>=5||y>=5};
Q8f=function(b,h,y){if(h){var S=b.moves[b.moves.length-2],F=b.moves[b.moves.length-1],a=F.x-b.x,P=F.y-b.y,K=0;if(S){var n=F.x-S.x;K=F.y-S.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(h,"track",{state:b.state,x:y.clientX,y:y.clientY,dx:a,dy:P,ddx:n,ddy:K,sourceEvent:y,hover:function(){return V4y(y.clientX,y.clientY)}})}};
v75=function(b,h,y){var S=Math.abs(h.clientX-b.x),F=Math.abs(h.clientY-b.y),a=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(y||h);!a||m$M[a.localName]&&a.hasAttribute("disabled")||!(isNaN(S)||isNaN(F)||S<=25&&F<=25||Gf5(h))||b.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a,"tap",{x:h.clientX,y:h.clientY,sourceEvent:h,preventer:y})};
bFN=function(b,h,y,S,F){var a;F&&(a=typeof y==="object"&&y!==null)&&(S=b.__dataTemp[h]);S=S!==y&&(S===S||y===y);a&&S&&(b.__dataTemp[h]=y);return S};
y1n=function(){if(a0&&!dk){if(!hyY){hyY=!0;var b=document.createElement("style");b.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(b)}return!0}return!1};
FPF=function(){return SVr};
aNF=function(b,h){SVr=b;Object.setPrototypeOf(b,h.prototype);new h;SVr=null};
dq4=function(b,h){for(var y=0;y<h.length;y++){var S=h[y];if(!!b!=!!S.__hideTemplateChildren__)if(S.nodeType===Node.TEXT_NODE)b?(S.__polymerTextContent__=S.textContent,S.textContent=""):S.textContent=S.__polymerTextContent__;else if(S.localName==="slot")if(b)S.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.GU)((0,_.GU)(S).parentNode).replaceChild(S.__polymerReplaced__,S);else{var F=S.__polymerReplaced__;F&&(0,_.GU)((0,_.GU)(F).parentNode).replaceChild(S,F)}else S.style&&(b?(S.__polymerDisplay__=
S.style.display,S.style.display="none"):S.style.display=S.__polymerDisplay__);S.__hideTemplateChildren__=b;S._showHideChildren&&S._showHideChildren(b)}};
jXq=function(b){return(b=b.__dataHost)&&b._methodHost||b};
Pm5=function(b,h,y){var S=y.mutableData?$q5:jM;P_.mixin&&(S=P_.mixin(S));var F=function(){return S.apply(this,arguments)||this};
_.z(F,S);F.prototype.__templatizeOptions=y;F.prototype._bindTemplate(b);LPF(F,b,h,y);return F};
nYq=function(b,h,y,S){var F=y.forwardHostProp;if(F&&h.hasHostProps){var a=b.localName=="template",P=h.templatizeTemplateClass;if(!P){if(a){var K=y.mutableData?KPj:ZF4;P=function(){return K.apply(this,arguments)||this};
_.z(P,K);P=h.templatizeTemplateClass=P}else{var n=b.constructor;P=function(){return n.apply(this,arguments)||this};
_.z(P,n);P=h.templatizeTemplateClass=P}var X=h.hostProps,u;for(u in X)P.prototype._addPropertyEffect("_host_"+u,P.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:oY8(F)}),P.prototype._createNotifyingProperty("_host_"+u);K2&&S&&Mk8(h,y,S)}b.__dataProto&&Object.assign(b.__data,b.__dataProto);if(a)aNF(b,P),b.__dataTemp={},b.__dataPending=null,b.__dataOld=null,b._enableProperties();else{Object.setPrototypeOf(b,P.prototype);h=h.hostProps;for(var O in h)O="_host_"+O,O in b&&(h=b[O],delete b[O],b.__data[O]=
h)}}};
oY8=function(b){return function(h,y,S){b.call(h.__templatizeOwner,y.substring(6),S[y])}};
LPF=function(b,h,y,S){var F=y.hostProps||{},a;for(a in S.instanceProps){delete F[a];var P=S.notifyInstanceProp;P&&b.prototype._addPropertyEffect(a,b.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Xv8(P)})}if(S.forwardHostProp&&h.__dataHost)for(var K in F)y.hasHostProps||(y.hasHostProps=!0),b.prototype._addPropertyEffect(K,b.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:HFF()})};
Xv8=function(b){return function(h,y,S){b.call(h.__templatizeOwner,h,y,S[y])}};
HFF=function(){return function(b,h,y){b.__dataHost._setPendingPropertyOrPath("_host_"+h,y[h],!0,!0)}};
P_=function(b,h,y){if(Zf&&!jXq(b))throw Error("Pd");y=y||{};if(b.__templatizeOwner)throw Error("Qd");b.__templatizeOwner=h;var S=(h?h.constructor:jM)._parseTemplate(b),F=S.templatizeInstanceClass;F||(F=Pm5(b,S,y),S.templatizeInstanceClass=F);var a=jXq(b);nYq(b,S,y,a);y=function(){return F.apply(this,arguments)||this};
_.z(y,F);y.prototype._methodHost=a;y.prototype.__dataHost=b;y.prototype.__templatizeOwner=h;y.prototype.__hostProps=S.hostProps;return y};
Mk8=function(b,h,y){y=y.constructor._properties;b=b.propertyEffects;h=h.instanceProps;for(var S in b)if(!(y[S]||h&&h[S]))for(var F=b[S],a=0;a<F.length;a++){var P=F[a].info.part;if(!P.signature||!P.signature.static){console.warn("Property '"+S+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
uWI=function(b,h){for(var y;h;)if(y=h.__dataHost?h:h.__templatizeInstance)if(y.__dataHost!=b)h=y.__dataHost;else return y;else h=(0,_.GU)(h).parentNode;return null};
o0=function(b){return b.localName==="slot"};
OFq=function(){for(var b=Md.prototype,h="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),y={},S=0;S<h.length;y={method$jscomp$33:void 0},S++)y.method$jscomp$33=h[S],b[y.method$jscomp$33]=function(F){return function(){return this.node[F.method$jscomp$33].apply(this.node,arguments)}}(y)};
NQY=function(b,h){for(var y={},S=0;S<h.length;y={name$jscomp$448:void 0},S++)y.name$jscomp$448=h[S],Object.defineProperty(b,y.name$jscomp$448,{get:function(F){return function(){return this.node[F.name$jscomp$448]}}(y),
configurable:!0})};
tkr=function(){for(var b=Md.prototype,h=["textContent","innerHTML","className"],y={},S=0;S<h.length;y={name$jscomp$449:void 0},S++)y.name$jscomp$449=h[S],Object.defineProperty(b,y.name$jscomp$449,{get:function(F){return function(){return this.node[F.name$jscomp$449]}}(y),
set:function(F){return function(a){this.node[F.name$jscomp$449]=a}}(y),
configurable:!0})};
r1I=function(){n2=document.documentElement.getAttribute("dir");n2=document.documentElement.getAttribute("dir");for(var b=0;b<Xu.length;b++){var h=Xu[b];h.__autoDirOptOut||h.setAttribute("dir",n2)}};
Dqq=function(){H_=!0;requestAnimationFrame(function(){H_=!1;c1q(RyY);setTimeout(function(){for(var b=0,h=uz.length;b<h;b++)zyr(uz.shift())})})};
c1q=function(b){for(;b.length;)zyr(b.shift())};
zyr=function(b){var h=b[0],y=b[1];b=b[2];try{y.apply(h,b)}catch(S){setTimeout(function(){throw S;})}};
_.INM=function(b,h,y){H_||Dqq();RyY.push([b,h,y])};
_.Ob=function(b,h,y){H_||Dqq();uz.push([b,h,y])};
A1r=function(b,h){h=h===void 0?!1:h;if(!BQj||!WPq||!BQj.handlesDynamicScoping)return null;var y=WPq.ScopingShim;if(!y)return null;var S=y.scopeForNode(b),F=(0,_.GU)(b).getRootNode(),a=function(P){if((0,_.GU)(P).getRootNode()===F){var K=Array.from(BQj.nativeMethods.querySelectorAll.call(P,"*"));K.push(P);for(P=0;P<K.length;P++){var n=K[P];if((0,_.GU)(n).getRootNode()===F){var X=y.currentScopeForNode(n);X!==S&&(X!==""&&y.unscopeNode(n,X),y.scopeNode(n,S))}}}};
a(b);return h?(h=new MutationObserver(function(P){for(var K=0;K<P.length;K++)for(var n=P[K],X=0;X<n.addedNodes.length;X++){var u=n.addedNodes[X];u.nodeType===Node.ELEMENT_NODE&&a(u)}}),h.observe(b,{childList:!0,
subtree:!0}),h):null};
UqY=function(){document.body.removeAttribute("unresolved")};
gYF=function(b){var h=b=b.replace(pvy,"").replace(J1F,""),y=new eyN;y.start=0;y.end=h.length;for(var S=y,F=0,a=h.length;F<a;F++)if(h[F]==="{"){S.rules||(S.rules=[]);var P=S,K=P.rules[P.rules.length-1]||null;S=new eyN;S.start=F+1;S.parent=P;S.previous=K;P.rules.push(S)}else h[F]==="}"&&(S.end=F+1,S=S.parent||y);return Cmy(y,b)};
Cmy=function(b,h){var y=h.substring(b.start,b.end-1);b.parsedCssText=b.cssText=y.trim();b.parent&&(y=h.substring(b.previous?b.previous.end:b.parent.start,b.start-1),y=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(y),y=y.replace(sXj," "),y=y.substring(y.lastIndexOf(";")+1),y=b.parsedSelector=b.selector=y.trim(),b.atRule=y.indexOf("@")===0,b.atRule?y.indexOf("@media")===0?b.type=4:y.match(YVM)&&(b.type=7,b.keyframesName=b.selector.split(sXj).pop()):y.indexOf("--")===
0?b.type=1E3:b.type=1);if(y=b.rules)for(var S=0,F=y.length,a=void 0;S<F&&(a=y[S]);S++)Cmy(a,h);return b};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(b){return b.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var h=arguments[1],y=6-h.length;y--;)h="0"+h;return"\\"+h})};
TQ8=function(b,h,y){y=y===void 0?"":y;var S="";if(b.cssText||b.rules){var F=b.rules;if(F&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(F))for(var a=0,P=F.length,K=void 0;a<P&&(K=F[a]);a++)S=TQ8(K,h,S);else h?h=b.cssText:(h=b.cssText,h=h.replace(G4M,"").replace(k4U,""),h=h.replace(Vkj,"").replace(EYr,"")),(S=h.trim())&&(S="  "+S+"\n")}S&&(b.selector&&(y+=b.selector+" {\n"),y+=S,b.selector&&(y+="}\n\n"));return y};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(b){b=b[0];return!!b&&!!b.selector&&b.selector.indexOf("--")===0};
fNU=function(b){if(b=iF5[b])b._applyShimCurrentVersion=b._applyShimCurrentVersion||0,b._applyShimValidatingVersion=b._applyShimValidatingVersion||0,b._applyShimNextVersion=(b._applyShimNextVersion||0)+1};
wvn=function(b){return b._applyShimCurrentVersion===b._applyShimNextVersion};
qVF=function(b){b._applyShimValidatingVersion=b._applyShimNextVersion;b._validating||(b._validating=!0,lNf.then(function(){b._applyShimCurrentVersion=b._applyShimNextVersion;b._validating=!1}))};
QXM=function(b){if(!b)return"";typeof b==="string"&&(b=gYF(b));return TQ8(b,xqY)};
mqU=function(b){!b.__cssRules&&b.textContent&&(b.__cssRules=gYF(b.textContent));return b.__cssRules||null};
b8k=function(b,h,y,S){if(b){var F=!1,a=b.type;if(S&&a===4){var P=b.selector.match(vYN);P&&(window.matchMedia(P[1]).matches||(F=!0))}a===1?h(b):y&&a===7?y(b):a===1E3&&(F=!0);if((b=b.rules)&&!F)for(F=0,a=b.length,P=void 0;F<a&&(P=b[F]);F++)b8k(P,h,y,S)}};
hok=function(b,h){var y=b.indexOf("var(");if(y===-1)return h(b,"","","");a:{var S=0;var F=y+3;for(var a=b.length;F<a;F++)if(b[F]==="(")S++;else if(b[F]===")"&&--S===0)break a;F=-1}S=b.substring(y+4,F);y=b.substring(0,y);b=hok(b.substring(F+1),h);a=S.indexOf(",");if(a===-1)return h(y,S.trim(),"",b);F=S.substring(0,a).trim();S=S.substring(a+1).trim();return h(y,F,S,b)};
y2k=function(b){if(Nd!==void 0)return Nd;if(b.__cssBuild===void 0){var h=b.getAttribute("css-build");if(h)b.__cssBuild=h;else{a:{h=b.localName==="template"?b.content.firstChild:b.firstChild;if(h instanceof Comment&&(h=h.textContent.trim().split(":"),h[0]==="css-build")){h=h[1];break a}h=""}if(h!==""){var y=b.localName==="template"?b.content.firstChild:b.firstChild;y.parentNode.removeChild(y)}b.__cssBuild=h}}return b.__cssBuild||""};
FL5=function(b,h,y,S){for(var F=h._noAccessors,a=Object.getOwnPropertyNames(h),P=0;P<a.length;P++){var K=a[P];if(!(K in S))if(F)b[K]=h[K];else{var n=Object.getOwnPropertyDescriptor(h,K);n&&(n.configurable=!0,Object.defineProperty(b,K,n))}}for(var X in Ser)h[X]&&(y[X]=y[X]||[],y[X].push(h[X]))};
aS8=function(b,h,y){h=h||[];for(var S=b.length-1;S>=0;S--){var F=b[S];F?Array.isArray(F)?aS8(F,h):h.indexOf(F)<0&&(!y||y.indexOf(F)<0)&&h.unshift(F):console.warn("behavior is null, check for missing or 404 import")}return h};
dM4=function(b,h){for(var y in h){var S=b[y],F=h[y];b[y]=!("value"in F)&&S&&"value"in S?Object.assign({value:S.value},F):F}};
LLU=function(b,h,y){var S={},F=function(){return h.apply(this,arguments)||this};
_.z(F,h);F._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(P)for(var n=0,X;n<P.length;n++)X=P[n],X.properties&&this.createProperties(X.properties),X.observers&&this.createObservers(X.observers,X.properties);b.properties&&this.createProperties(b.properties);b.observers&&this.createObservers(b.observers,b.properties);this._prepareTemplate()}else h._finalizeClass.call(this)};
F.prototype.created=function(){h.prototype.created.call(this);var n=S.created;if(n)for(var X=0;X<n.length;X++)n[X].call(this)};
F.prototype._registered=function(){var n=F.prototype;if(!n.hasOwnProperty("__hasRegisterFinished")){n.__hasRegisterFinished=!0;h.prototype._registered.call(this);a0&&K(n);n=Object.getPrototypeOf(this);var X=S.beforeRegister;if(X)for(var u=0;u<X.length;u++)X[u].call(n);if(X=S.registered)for(u=0;u<X.length;u++)X[u].call(n)}};
F.prototype._applyListeners=function(){h.prototype._applyListeners.call(this);var n=S.listeners;if(n)for(var X=0;X<n.length;X++){var u=n[X];if(u)for(var O in u)this._addMethodEventListenerToNode(this,O,u[O])}};
F.prototype._ensureAttributes=function(){var n=S.hostAttributes;if(n)for(var X=n.length-1;X>=0;X--){var u=n[X],O;for(O in u)this._ensureAttribute(O,u[O])}h.prototype._ensureAttributes.call(this)};
F.prototype.ready=function(){h.prototype.ready.call(this);var n=S.ready;if(n)for(var X=0;X<n.length;X++)n[X].call(this)};
F.prototype.attached=function(){h.prototype.attached.call(this);var n=S.attached;if(n)for(var X=0;X<n.length;X++)n[X].call(this)};
F.prototype.detached=function(){h.prototype.detached.call(this);var n=S.detached;if(n)for(var X=0;X<n.length;X++)n[X].call(this)};
F.prototype.attributeChanged=function(n,X,u){h.prototype.attributeChanged.call(this);var O=S.attributeChanged;if(O)for(var N=0;N<O.length;N++)O[N].call(this,n,X,u)};
_.tm.Object.defineProperties(F,{properties:{configurable:!0,enumerable:!0,get:function(){var n={};if(P)for(var X=0;X<P.length;X++)dM4(n,P[X].properties);dM4(n,b.properties);return n}},
observers:{configurable:!0,enumerable:!0,get:function(){var n=[];if(P)for(var X=0,u;X<P.length;X++)u=P[X],u.observers&&(n=n.concat(u.observers));b.observers&&(n=n.concat(b.observers));return n}}});
if(y){Array.isArray(y)||(y=[y]);var a=h.prototype.behaviors;var P=aS8(y,null,a);F.prototype.behaviors=a?a.concat(y):P}var K=function(n){if(P)for(var X=P,u=0;u<X.length;u++)FL5(n,X[u],S,jyk);FL5(n,b,S,$Mk)};
a0||K(F.prototype);F.generatedFrom=b;return F};
oBI=function(b){var h=typeof b!=="string"?b:{is:b,notifyObserversOnUndefined:!0};h.fastInit===void 0&&(h.fastInit=!0);return function(y){if(!h.disableInheritanceCheck&&Object.getPrototypeOf(y.prototype).constructor!==_.rk)throw Error("Ud");var S=y.prototype;S.is=h.is;usM(S,"created",function(){this.hostElement=this;this.polymerController=this});
P48(S,y,h.fastInit);h.notifyObserversOnUndefined&&(S._overrideLegacyUndefined=!0);if(KLF)for(var F=_.L(Object.getOwnPropertyNames(S)),a=F.next();!a.done;a=F.next()){a=a.value;var P=Object.getOwnPropertyDescriptor(S,a);P.enumerable===!1&&(P.enumerable=!0,Object.defineProperty(S,a,P))}if("template"in y)var K=function(){return y.template};
else h.template!==void 0&&(K=h.template);if(K!==void 0){var n;Object.defineProperty(S,"_template",{get:function(){n===void 0&&(n=K());return n},
set:function(X){n=X},
configurable:!0,enumerable:!0})}Polymer(S);y[Z8r]=S}};
MVn=function(b){b=b===void 0?{}:b;b.fastInit===void 0&&(b.fastInit=!0);return function(h){if(!b.disableInheritanceCheck&&Object.getPrototypeOf(h.prototype).constructor!==c_)throw Error("Vd");P48(h.prototype,h,b.fastInit)}};
P48=function(b,h,y){y=y===void 0?!1:y;nBq(h);y?usM(b,"created",function(){this.disableEnforceFastDefaultValuesCheck||XqU(h,this)}):usM(b,"ready",function(){for(var S={},F=_.L(OwI(this.behaviors)),a=F.next();!a.done;a=F.next())a=a.value,a.properties&&Object.assign(S,H8I(this,a.properties));
Object.assign(S,H8I(this,this.properties));XqU(h,this);F=_.L(Object.keys(S));for(a=F.next();!a.done;a=F.next())a=a.value,this[a]=S[a]})};
XqU=function(b,h){if(KLF){b=new b;for(var y=_.L(Object.getOwnPropertyNames(b)),S=y.next();!S.done;S=y.next())S=S.value,h[S]=b[S];for(y=h;y&&y!==Object.prototype;y=Object.getPrototypeOf(y)){S=_.L(Object.getOwnPropertyNames(y));for(var F=S.next();!F.done;F=S.next())F=F.value,b.hasOwnProperty(F)||Object.defineProperty(b,F,uH8(h,F))}}else b.apply(h)};
uH8=function(b,h){return{get:function(){var y=b[h];return y instanceof Function?y.bind(b):y},
set:function(y){b[h]=y}}};
H8I=function(b,h){if(!h)return{};for(var y={},S=_.L(Object.keys(h)),F=S.next();!F.done;F=S.next())if(F=F.value,!h[F].readOnly){var a=b[F];a!==void 0&&(y[F]=a)}return y};
nBq=function(b){var h=new b;b=b.prototype.properties||{};for(var y=_.L(Object.keys(b)),S=y.next();!S.done;S=y.next())if(S=S.value,h.hasOwnProperty(S)){var F=b[S];typeof F==="function"&&(b[S]=F={type:F});h[S]!=null&&F.type===Object&&(F.type=O88(h[S].constructor))}};
O88=function(b){for(var h=_.L(NXn),y=h.next();!y.done;y=h.next())if(y=y.value,b===y)return y;return Object};
tV8=function(b){return function(h,y){h.behaviors=h.behaviors||[];h.behaviors.push(b||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",h,y).prototype:void 0));Object.defineProperty(h,y,{get:function(){return this},
enumerable:!0,configurable:!0})}};
r2f=function(b){b=b===void 0?{}:b;return function(h,y){h.properties=h.properties||{};b.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?b.type=O88(Reflect.getMetadata("design:type",h,y)):b.type=String);var S=b,F=h.properties[y];h.properties[y]=F?Object.assign({},F,S):S}};
c25=function(b){return function(h,y){h.listeners=h.listeners||{};h.listeners[b]=y}};
RoM=function(){var b=_.x$.apply(0,arguments);if(b.length===0)throw Error("Wd");return function(h,y){h.observers=h.observers||[];h.observers.push(y+"("+b.join(",")+")")}};
zo5=function(){var b=_.x$.apply(0,arguments);return function(h,y,S){var F=Object.getOwnPropertyDescriptor(h,y).get,a="__compute__"+y;Object.defineProperty(h,a,{value:F,enumerable:!0});h.properties=h.properties||{};F=h.properties[y];F||(F={},h.properties[y]=F);F.computed=a+"("+b.join(",")+")";S.get=void 0}};
_.R0=function(b,h,y){_.ED.call(this);this.JSC$11497_id_=null;this.usingListeners_=!1;this.JSC$11497_listener_=b;this.handler_=y;this.JSC$11497_win_=h||window;this.callback_=(0,_.i5)(this.JSC$11499_doAction_,this)};
zN=function(b){this.range_=b};
Df=function(b){this.range_=b};
W_=function(b,h,y){_.ED.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=b;this.scrollTimer_=new _.I0(50);this.JSC$11576_eventHandler_=new _.B_(this);this.scrollDelta_=new _.xb;this.containerIsActuallyContent_=b.tagName==="BODY"||b.tagName==="HTML";this.containerBounds_=DMI(b);this.containerIsActuallyContent_&&(b=_.sS(),this.containerBounds_.height=b.height,this.containerBounds_.width=b.width);this.margin_=h||0;if(h){if(h=this.containerBounds_.clone(),b=this.margin_){var S=
Math.min(b,h.height*.25);h.top+=S;h.height-=2*S;b=Math.min(b,h.width*.25);h.left+=b;h.width-=2*b}}else h=this.containerBounds_;this.scrollBounds_=h;y||this.JSC$11576_eventHandler_.listen(_.mQ(this.containerNode_),"mousemove",this.JSC$11578_onMouseMove);this.JSC$11576_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11578_onTick_)};
_.Am=function(b){this.mechanism=b};
Ub=function(b,h){this.JSC$11674_key_=b;this.JSC$11674_value_=h};
BX4=function(b){if(b>=55296&&b<=57343||b>1114111)return"\ufffd";b in ISU&&(b=ISU[b]);var h="";b>65535&&(b-=65536,h+=String.fromCharCode(b>>>10&1023|55296),b=56320|b&1023);return h+=String.fromCharCode(b)};
WLI=function(b,h){return b<h?1:-1};
UMj=function(){return function(b){return b.charAt(1)==="#"?b.charAt(2)==="X"||b.charAt(2)==="x"?BX4(parseInt(b.substr(3),16)):BX4(parseInt(b.substr(2),10)):A2I[b.slice(1,-1)]}};
eor=function(b){return b.slice(1,b.length-1).trim().replace(pq4,function(h){return J2j[h]||" "})};
p2=function(b){return b===32||b===9};
Jm=function(b,h){return h<b.length?b.charCodeAt(h):-1};
C4j=function(b){for(;b;){if(b._lastLineBlank)return!0;var h=b.type;if(h==="list"||h==="item")b=b._lastChild;else break}return!1};
eM=function(b){if(gBI.test(b)){var h=1,y=0,S=0;for(b[y]=="|"&&y++;y<b.length;){switch(b[y]){case "|":S=1;break;case " ":break;case "\t":break;default:S&&(S=0,h++)}y++}return syI.test(b)?-h:h}return 0};
YeY=function(b){return b=="table"||b=="row"||b=="cell"};
TX8=function(){return new C2("document",[[1,1],[0,0]])};
GGf=function(){};
gk=function(){var b={safe:!1};b=b||{};b.softbreak=b.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=b};
fSr=function(b,h){var y="";if(b)if(b=b.toLowerCase(),b===" "||kGn.test(b))y="space";else if(VVn.test(b))y="esc";else if(b.length==1){if(!h||EBq.test(b))y=b}else y=i85.test(b)?b.replace("arrow",""):b=="multiply"?"*":b;return y};
xM5=function(b,h){var y=b.hasModifiers;if(h.key)y=fSr(h.key,y);else if(h.detail&&h.detail.key)y=fSr(h.detail.key,y);else{y=h.keyIdentifier;var S="";y&&(y in wqf?S=wqf[y]:lSY.test(y)?(y=parseInt(y.replace("U+","0x"),16),S=String.fromCharCode(y).toLowerCase()):S=y.toLowerCase());(y=S)||(y=h.keyCode,S="",Number(y)&&(y>=65&&y<=90?S=String.fromCharCode(32+y):y>=112&&y<=123?S="f"+(y-112+1):y>=48&&y<=57?S=String(y-48):y>=96&&y<=105?S=String(y-96):S=qey[y]),y=S);y=y||""}return y===b.key&&(!b.hasModifiers||
!!h.shiftKey===!!b.shiftKey&&!!h.ctrlKey===!!b.ctrlKey&&!!h.altKey===!!b.altKey&&!!h.metaKey===!!b.metaKey)};
mMY=function(b){return b.length===1?{combo:b,key:b,event:"keydown"}:b.split("+").reduce(function(h,y){var S=y.split(":");y=S[0];S=S[1];y in Qy5?(h[Qy5[y]]=!0,h.hasModifiers=!0):(h.key=y,h.event=S||"keydown");return h},{combo:b.split(":").shift()})};
vBU=function(b){return b.trim().split(" ").map(function(h){return mMY(h)})};
bvN=function(b,h){if(b&&b.fn){var y=b.fn;b.fn=function(){try{y.apply(this,arguments)}catch(S){if(S instanceof sb)console.warn("Argument '"+S.arg+"'"+(h?" for method '"+h+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw S;}}}return b};
yUk=function(){var b=[],h;var y=y||_.hWk.length;for(h=0;h<8;h++)b[h]=_.hWk[0|Math.random()*y];return b.join("")};
S65=function(){var b=_.x$.apply(0,arguments);return b.length===0?function(h){return h}:b.length===1?b[0]:b.reduce(function(h,y){return function(){return h(y.apply(null,_.f$(_.x$.apply(0,arguments))))}})};
FXU=function(){var b=_.x$.apply(0,arguments);return function(h){return function(y,S){y=h(y,S);var F=function(){throw Error("Ge");},a={getState:y.getState,
dispatch:function(P){return F.apply(null,[P].concat(_.f$(_.x$.apply(1,arguments))))}};
S=b.map(function(P){return P(a)});
F=S65.apply(null,_.f$(S))(y.dispatch);return Object.assign({},y,{dispatch:F})}}};
j6f=function(b){Object.keys(b).forEach(function(h){var y=b[h];if(typeof y(void 0,{type:ayF})==="undefined")throw Error("He`"+h);if(typeof y(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+dk4()})==="undefined")throw Error("Ie`"+h+"`"+ayF);})};
Y6=function(b){for(var h=Object.keys(b),y={},S=0;S<h.length;S++){var F=h[S];typeof b[F]==="function"&&(y[F]=b[F])}var a=Object.keys(y);try{j6f(y)}catch(K){var P=K}return function(K,n){K=K===void 0?{}:K;if(P)throw P;for(var X=!1,u={},O=0;O<a.length;O++){var N=a[O],t=K[N],R=(0,y[N])(t,n);if(typeof R==="undefined")throw K=n&&n.type,Error("Je`"+(K?'"'+String(K)+'"':"(unknown type)")+"`"+N);u[N]=R;X=X||R!==t}return(X=X||a.length!==Object.keys(K).length)?u:K}};
$kk=function(b,h,y){function S(){if(u)throw Error("Ke");return K}
function F(t){if(typeof t!=="function")throw Error("Le`"+typeof t);if(u)throw Error("Me");var R=!0;X===n&&(X=n.slice());X.push(t);return function(){if(R){if(u)throw Error("Ne");R=!1;X===n&&(X=n.slice());var I=X.indexOf(t);X.splice(I,1);n=null}}}
function a(t){if(typeof t!=="object"||t===null)var R=!1;else{for(R=t;Object.getPrototypeOf(R)!==null;)R=Object.getPrototypeOf(R);R=Object.getPrototypeOf(t)===R}if(!R)throw Error("Oe`"+typeof t);if(typeof t.type==="undefined")throw Error("Pe");if(u)throw Error("Qe");try{u=!0,K=P(K,t)}finally{u=!1}R=n=X;for(var I=0;I<R.length;I++)(0,R[I])();return t}
if(typeof h==="function"&&typeof y==="function"||typeof y==="function"&&typeof arguments[3]==="function")throw Error("Re");typeof h==="function"&&typeof y==="undefined"&&(y=h,h=void 0);if(typeof y!=="undefined"){if(typeof y!=="function")throw Error("Se`"+typeof y);return y($kk)(b,h)}if(typeof b!=="function")throw Error("Te`"+typeof b);var P=b,K=h,n=[],X=n,u=!1;a({type:ayF});var O={},N=(O.dispatch=a,O.subscribe=F,O.getState=S,O.replaceReducer=function(t){if(typeof t!=="function")throw Error("Ue`"+
typeof t);P=t;a({type:LXI});return N},O[Pe8]=function(){var t={};
return t.subscribe=function(R){function I(){R.next&&R.next(S())}
if(typeof R!=="object"||R===null)throw new TypeError("Ve`"+typeof R);I();return{unsubscribe:F(I)}},t[Pe8]=function(){return this},t},O);
return N};
KXF=function(b){function h(){F&&(F=!1,b());a&&S()}
function y(){requestAnimationFrame(h)}
function S(){var K=Date.now();if(F){if(K-P<2)return;a=!0}else F=!0,a=!1,setTimeout(y,20);P=K}
var F=!1,a=!1,P=0;return S};
TN=function(b){return typeof b==="number"?b:parseFloat(b)||0};
Zvn=function(b){return _.x$.apply(1,arguments).reduce(function(h,y){return h+TN(b["border-"+y+"-width"])},0)};
Xm4=function(b){if(oyn[b])return oyn[b];var h=globalThis[b],y=h.prototype,S=b in MWj?MWj[b]:void 0;S=!(!S||!S.every(function(n){var X,u;return!!((X=Object.getOwnPropertyDescriptor(y,n))==null?0:(u=X.get)==null?0:u.toString().includes("[native code]"))}));
var F=b in nyj?nyj[b]:void 0;F=!(!F||!F.every(function(n){var X;return typeof y[n]==="function"&&((X=y[n])==null?void 0:X.toString().includes("[native code]"))}));
if(S&&F&&!globalThis.Zone)return oyn[b]=h.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var P=a.contentWindow;if(!P)return h.prototype;var K=P[b].prototype;document.body.removeChild(a);return K?oyn[b]=K:y}catch(n){return y}};
GN=function(b,h,y){var S=b+"."+String(y);if(Hvr[S])return Hvr[S].call(h);b=Xm4(b);var F;b=(F=Object.getOwnPropertyDescriptor(b,y))==null?void 0:F.get;if(!b)return h[y];Hvr[S]=b;return b.call(h)};
OvN=function(b,h){var y="Node."+String(h);if(u04[y])return u04[y].bind(b);var S=Xm4("Node")[h];if(typeof S!=="function")return b[h];u04[y]=S;return S.bind(b)};
k6=function(b,h,y){try{if(!(h in b))return function(){};
var S=b[h],F=y(S);typeof F==="function"&&(F.prototype=F.prototype||{},Object.defineProperties(F,{__rrweb_original__:{enumerable:!1,value:S}}));b[h]=F;return function(){b[h]=S}}catch(a){return function(){}}};
iz=function(b){var h=b&&"host"in b&&"mode"in b&&Vn(b)||null;return!!(h&&"shadowRoot"in h&&Eb(h)===b)};
f2=function(b){return Object.prototype.toString.call(b)==="[object ShadowRoot]"};
Nbk=function(b){b.includes(" background-clip: text;")&&!b.includes(" -webkit-background-clip: text;")&&(b=b.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"));return b};
rUf=function(b){try{var h=b.rules||b.cssRules;if(!h)return null;var y=b.href;!y&&b.ownerNode&&(y=b.ownerNode.baseURI);var S=Array.from(h,function(F){return tWj(F,y)}).join("");
return Nbk(S)}catch(F){return null}};
tWj=function(b,h){if("styleSheet"in b){try{var y;if(!(y=rUf(b.styleSheet))){var S=b.cssText;if(S.split('"').length<3)y=S;else{var F=["@import","url("+JSON.stringify(b.href)+")"];b.layerName===""?F.push("layer"):b.layerName&&F.push("layer("+b.layerName+")");b.supportsText&&F.push("supports("+b.supportsText+")");b.media.length&&F.push(b.media.mediaText);y=F.join(" ")+";"}}var a=y}catch(P){a=b.cssText}return b.styleSheet.href?cUk(a,b.styleSheet.href):a}a=b.cssText;"selectorText"in b&&b.selectorText.includes(":")&&
(a=a.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2"));return h?cUk(a,h):a};
RWI=function(b){var h=b.element;var y=b.maskInputOptions;var S=b.tagName;var F=b.type;var a=b.value;b=b.maskInputFn;a=a||"";F=F&&F.toLowerCase();if(y[S.toLowerCase()]||F&&y[F])a=b?b(a,h):"*".repeat(a.length);return a};
zWr=function(b){var h=b.getContext("2d");if(!h)return!0;for(var y=0;y<b.width;y+=50)for(var S=0;S<b.height;S+=50){var F=h.getImageData;if((new Uint32Array(("__rrweb_original__"in F?F.__rrweb_original__:F).call(h,y,S,Math.min(50,b.width-y),Math.min(50,b.height-S)).data.buffer)).some(function(a){return a!==0}))return!1}return!0};
DkF=function(b){var h=b.type;return b.hasAttribute("data-rr-is-password")?"password":h?h.toLowerCase():null};
Iyj=function(b){try{var h=new URL(b,window.location.href)}catch(F){return null}var y,S;return(S=(y=h.pathname.match(/\.([0-9a-z]+)(?:$)/i))==null?void 0:y[1])!=null?S:null};
cUk=function(b,h){return(b||"").replace(Bbn,function(y,S,F,a,P,K){F=F||P||K;S=S||a||"";if(!F)return y;if(WXn.test(F)||AUU.test(F)||UkI.test(F))return"url("+S+F+S+")";if(F[0]==="/")return y=h.indexOf("//")>-1?h.split("/").slice(0,3).join("/"):h.split("/")[0],y=y.split("?")[0],"url("+S+(y+F)+S+")";y=h.split("/");a=F.split("/");y.pop();a=_.L(a);for(F=a.next();!F.done;F=a.next())F=F.value,F!=="."&&(F===".."?y.pop():y.push(F));return"url("+S+y.join("/")+S+")"})};
pmn=function(b,h){return(h=h===void 0?!1:h)?b.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):b.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")};
JU8=function(b,h){var y=y===void 0?!1:y;h=Array.from(h.childNodes);var S=[],F=0;if(h.length>1&&b&&typeof b==="string")for(var a=pmn(b,y),P=a.length/b.length,K=1;K<h.length;K++)if(h[K].textContent&&typeof h[K].textContent==="string"){for(var n=pmn(h[K].textContent,y),X=3;X<n.length&&(n[X].match(/[a-zA-Z0-9]/)||n.indexOf(n.substring(0,X),1)!==-1);X++);for(;X<n.length;X++){var u=n.substring(0,X),O=a.split(u),N=-1;if(O.length===2)N=O[0].length;else if(O.length>2&&O[0]===""&&h[K-1].textContent!=="")N=
a.indexOf(u,1);else if(O.length===1){u=u.substring(0,u.length-1);O=a.split(u);if(O.length<=1)return S.push(b),S;X=101}else X===n.length-1&&(N=a.indexOf(u));if(O.length>=2&&X>100){var t=h[K-1].textContent;t&&typeof t==="string"&&(N=a.indexOf(u,pmn(t).length));N===-1&&(N=O[0].length)}if(N!==-1){for(n=Math.floor(N/P);n>0&&n<b.length;){F+=1;if(F>50*h.length)return S.push(b),S;X=pmn(b.substring(0,n),y);if(X.length===N){S.push(b.substring(0,n));b=b.substring(n);a=a.substring(N);break}else n=X.length<N?
n+Math.max(1,Math.floor((N-X.length)/P)):n-Math.max(1,Math.floor((X.length-N)*P))}break}}}S.push(b);return S};
Ce5=function(){return eWj++};
s6U=function(b){if(b instanceof HTMLFormElement)return"form";b=b.tagName.toLowerCase();return gyr.test(b)?"div":b};
kI4=function(b,h){function y(X){return(X=X.exec(h.substring(S)))?(X=X[0],S+=X.length,X):""}
if(h.trim()==="")return h;for(var S=0,F=[];;){y(Y6U);if(S>=h.length)break;var a=y(Tby);if(a.slice(-1)===",")a=GIq(b,a.substring(0,a.length-1)),F.push(a);else{var P="";a=GIq(b,a);for(var K=!1;;){var n=h.charAt(S);if(n===""){F.push((a+P).trim());break}else if(K)n===")"&&(K=!1);else if(n===","){S+=1;F.push((a+P).trim());break}else n==="("&&(K=!0);P+=n;S+=1}}}return F.join(", ")};
GIq=function(b,h){return h&&h.trim()!==""?VWf(b,h):h};
VWf=function(b,h){var y=EyU.get(b);y||(y=b.createElement("a"),EyU.set(b,y));if(!h)h="";else if(h.startsWith("blob:")||h.startsWith("data:"))return h;mA(y,h);return y.href};
ivr=function(b,h,y,S){return S?y==="src"||y==="href"&&(h!=="use"||S[0]!=="#")||y==="xlink:href"&&S[0]!=="#"||y==="background"&&(h==="table"||h==="td"||h==="th")?GIq(b,S):y==="srcset"?kI4(b,S):y==="style"?cUk(S,VWf(b)):h==="object"&&y==="data"?GIq(b,S):S:S};
fy5=function(b,h){return(b==="video"||b==="audio")&&h==="autoplay"};
wmI=function(b,h,y){try{if(typeof h==="string"){if(b.classList.contains(h))return!0}else for(var S=b.classList.length;S--;)if(h.test(b.classList[S]))return!0;if(y)return b.matches(y)}catch(F){}return!1};
lyU=function(b,h,y){if(!b)return!1;if(b.nodeType!==b.ELEMENT_NODE)return y?lyU(wk(b),h,y):!1;for(var S=b.classList.length;S--;)if(h.test(b.classList[S]))return!0;return y?lyU(wk(b),h,y):!1};
q6f=function(b,h,y,S){if(b.nodeType===b.ELEMENT_NODE){if(!lz(b).length)return!1}else{if(qd(b)===null)return!1;b=qd(b)}try{if(typeof h==="string")if(S){if(b.closest("."+h))return!0}else{if(b.classList.contains(h))return!0}else if(lyU(b,h,S))return!0;if(y)if(S){if(b.closest(y))return!0}else if(b.matches(y))return!0}catch(F){}return!1};
xk4=function(b,h,y){var S=b.contentWindow;if(S){var F=!1;try{var a=S.document.readyState}catch(K){return}if(a!=="complete"){var P=setTimeout(function(){F||(h(),F=!0)},y);
b.addEventListener("load",function(){clearTimeout(P);F=!0;h()})}else S.location.href==="about:blank"&&b.src!=="about:blank"&&b.src!==""||setTimeout(h,0),b.addEventListener("load",h)}};
Q6M=function(b,h,y){var S=!1;try{var F=b.sheet}catch(P){return}if(!F){var a=setTimeout(function(){S||(h(),S=!0)},y);
b.addEventListener("load",function(){clearTimeout(a);S=!0;h()})}};
bGq=function(b,h){var y=h.doc,S=h.blockClass,F=h.blockSelector,a=h.needsMask,P=h.inlineStylesheet,K=h.maskInputOptions===void 0?{}:h.maskInputOptions,n=h.maskTextFn,X=h.maskInputFn,u=h.dataURLOptions===void 0?{}:h.dataURLOptions,O=h.inlineImages,N=h.recordCanvas,t=h.keepIframeSrcFn,R=h.newlyAddedElement===void 0?!1:h.newlyAddedElement,I=h.cssCaptured===void 0?!1:h.cssCaptured;h=h.mirror;h.nodeMetaMap.has(y)?(h=h.getId(y),h=h===1?void 0:h):h=void 0;switch(b.nodeType){case b.DOCUMENT_NODE:return b.compatMode!==
"CSS1Compat"?{type:0,childNodes:[],compatMode:b.compatMode}:{type:0,childNodes:[]};case b.DOCUMENT_TYPE_NODE:return{type:1,name:b.name,publicId:b.publicId,systemId:b.systemId,rootId:h};case b.ELEMENT_NODE:return mkn(b,{doc:y,blockClass:S,blockSelector:F,inlineStylesheet:P,maskInputOptions:K,maskInputFn:X,dataURLOptions:u,inlineImages:O,recordCanvas:N,keepIframeSrcFn:t,newlyAddedElement:R,rootId:h});case b.TEXT_NODE:return P=(S=wk(b))&&S.tagName,S="",F=P==="STYLE"?!0:void 0,(P=P==="SCRIPT"?!0:void 0)?
S="SCRIPT_PLACEHOLDER":I||(S=vy8(b),F&&S&&(S=cUk(S,VWf(y)))),!F&&!P&&S&&a&&(S=n?n(S,qd(b)):S.replace(/[\S]/g,"*")),{type:3,textContent:S||"",rootId:h};case b.CDATA_SECTION_NODE:return{type:4,textContent:"",rootId:h};case b.COMMENT_NODE:return{type:5,textContent:vy8(b)||"",rootId:h};default:return!1}};
mkn=function(b,h){var y=h.doc,S=h.inlineStylesheet,F=h.maskInputOptions===void 0?{}:h.maskInputOptions,a=h.maskInputFn,P=h.dataURLOptions===void 0?{}:h.dataURLOptions,K=h.inlineImages,n=h.recordCanvas,X=h.keepIframeSrcFn,u=h.newlyAddedElement===void 0?!1:h.newlyAddedElement,O=h.rootId;h=wmI(b,h.blockClass,h.blockSelector);for(var N=s6U(b),t={},R=b.attributes.length,I=0;I<R;I++){var U=b.attributes[I];fy5(N,U.name)||(t[U.name]=ivr(y,N,U.name.toLowerCase(),U.value))}N==="link"&&S&&(S=Array.from(y.styleSheets).find(function(w){return w.href===
b.href}),R=null,S&&(R=rUf(S)),R&&(delete t.rel,delete t.href,t._cssText=R));
N==="style"&&b.sheet&&(S=rUf(b.sheet))&&(b.childNodes.length>1&&(S=JU8(S,b).join("/* rr_split */")),t._cssText=S);if(N==="input"||N==="textarea"||N==="select")S=b.value,R=b.checked,t.type!=="radio"&&t.type!=="checkbox"&&t.type!=="submit"&&t.type!=="button"&&S?t.value=RWI({element:b,type:DkF(b),tagName:N,value:S,maskInputOptions:F,maskInputFn:a}):R&&(t.checked=R);N==="option"&&(b.selected&&!F.select?t.selected=!0:delete t.selected);N==="dialog"&&b.open&&(t.rr_open_mode=b.matches("dialog:modal")?"modal":
"non-modal");N==="canvas"&&n&&(b.__context==="2d"?zWr(b)||(t.rr_dataURL=b.toDataURL(P.type,P.quality)):"__context"in b||(F=b.toDataURL(P.type,P.quality),a=y.createElement("canvas"),a.width=b.width,a.height=b.height,a=a.toDataURL(P.type,P.quality),F!==a&&(t.rr_dataURL=F)));if(N==="img"&&K){x6||(x6=y.createElement("canvas"),h0F=x6.getContext("2d"));var p=b.currentSrc||b.getAttribute("src")||"<unknown-src>",e=b.crossOrigin,E=function(){b.removeEventListener("load",E);try{x6.width=b.naturalWidth,x6.height=
b.naturalHeight,h0F.drawImage(b,0,0),t.rr_dataURL=x6.toDataURL(P.type,P.quality)}catch(w){if(b.crossOrigin!=="anonymous"){b.crossOrigin="anonymous";b.complete&&b.naturalWidth!==0?E():b.addEventListener("load",E);return}console.warn("Cannot inline img src="+p+"! Error: "+w)}b.crossOrigin==="anonymous"&&(e?t.crossOrigin=e:b.removeAttribute("crossorigin"))};
b.complete&&b.naturalWidth!==0?E():b.addEventListener("load",E)}if(N==="audio"||N==="video")y=t,y.rr_mediaState=b.paused?"paused":"played",y.rr_mediaCurrentTime=b.currentTime,y.rr_mediaPlaybackRate=b.playbackRate,y.rr_mediaMuted=b.muted,y.rr_mediaLoop=b.loop,y.rr_mediaVolume=b.volume;u||(b.scrollLeft&&(t.rr_scrollLeft=b.scrollLeft),b.scrollTop&&(t.rr_scrollTop=b.scrollTop));h&&(u=b.getBoundingClientRect(),t={class:t.class,rr_width:u.width+"px",rr_height:u.height+"px"});N!=="iframe"||X(t.src)||(b.contentDocument||
(t.rr_src=t.src),delete t.src);var Y;try{customElements.get(N)&&(Y=!0)}catch(w){}return{type:2,tagName:N,attributes:t,childNodes:[],isSVG:!(b.tagName!=="svg"&&!b.ownerSVGElement)||void 0,needBlock:h,rootId:O,isCustom:Y}};
Qn=function(b){return b===void 0||b===null?"":b.toLowerCase()};
y7Y=function(b,h){return h.comment&&b.type===5||b.type===2&&(h.script&&(b.tagName==="script"||b.tagName==="link"&&(b.attributes.rel==="preload"&&b.attributes.as==="script"||b.attributes.rel==="modulepreload")||b.tagName==="link"&&b.attributes.rel==="prefetch"&&typeof b.attributes.href==="string"&&Iyj(b.attributes.href)==="js")||h.headFavicon&&(b.tagName==="link"&&b.attributes.rel==="shortcut icon"||b.tagName==="meta"&&(Qn(b.attributes.name).match(/^msapplication-tile(image|color)$/)||Qn(b.attributes.name)===
"application-name"||Qn(b.attributes.rel)==="icon"||Qn(b.attributes.rel)==="apple-touch-icon"||Qn(b.attributes.rel)==="shortcut icon"))||b.tagName==="meta"&&(h.headMetaDescKeywords&&Qn(b.attributes.name).match(/^description|keywords$/)||h.headMetaSocial&&(Qn(b.attributes.property).match(/^(og|twitter|fb):/)||Qn(b.attributes.name).match(/^(og|twitter):/)||Qn(b.attributes.name)==="pinterest")||h.headMetaRobots&&(Qn(b.attributes.name)==="robots"||Qn(b.attributes.name)==="googlebot"||Qn(b.attributes.name)===
"bingbot")||h.headMetaHttpEquiv&&b.attributes["http-equiv"]!==void 0||h.headMetaAuthorship&&(Qn(b.attributes.name)==="author"||Qn(b.attributes.name)==="generator"||Qn(b.attributes.name)==="framework"||Qn(b.attributes.name)==="publisher"||Qn(b.attributes.name)==="progid"||Qn(b.attributes.property).match(/^article:/)||Qn(b.attributes.property).match(/^product:/))||h.headMetaVerification&&(Qn(b.attributes.name)==="google-site-verification"||Qn(b.attributes.name)==="yandex-verification"||Qn(b.attributes.name)===
"csrf-token"||Qn(b.attributes.name)==="p:domain_verify"||Qn(b.attributes.name)==="verify-v1"||Qn(b.attributes.name)==="verification"||Qn(b.attributes.name)==="shopify-checkout-api-token")))?!0:!1};
md=function(b,h){var y=h.doc,S=h.mirror,F=h.blockClass,a=h.blockSelector,P=h.maskTextClass,K=h.maskTextSelector,n=h.skipChild===void 0?!1:h.skipChild,X=h.inlineStylesheet===void 0?!0:h.inlineStylesheet,u=h.maskInputOptions===void 0?{}:h.maskInputOptions,O=h.maskTextFn,N=h.maskInputFn,t=h.slimDOMOptions,R=h.dataURLOptions===void 0?{}:h.dataURLOptions,I=h.inlineImages===void 0?!1:h.inlineImages,U=h.recordCanvas===void 0?!1:h.recordCanvas,p=h.onSerialize,e=h.onIframeLoad,E=h.iframeLoadTimeout===void 0?
5E3:h.iframeLoadTimeout,Y=h.onStylesheetLoad,w=h.stylesheetLoadTimeout===void 0?5E3:h.stylesheetLoadTimeout,x=h.keepIframeSrcFn===void 0?function(){return!1}:h.keepIframeSrcFn,q=h.newlyAddedElement===void 0?!1:h.newlyAddedElement,dI=h.cssCaptured===void 0?!1:h.cssCaptured,L4=h.needsMask,Rq=h.preserveWhiteSpace===void 0?!0:h.preserveWhiteSpace;
L4||(L4=q6f(b,P,K,L4===void 0));var Xn=bGq(b,{doc:y,mirror:S,blockClass:F,blockSelector:a,needsMask:L4,inlineStylesheet:X,maskInputOptions:u,maskTextFn:O,maskInputFn:N,dataURLOptions:R,inlineImages:I,recordCanvas:U,keepIframeSrcFn:x,newlyAddedElement:q,cssCaptured:dI});if(!Xn)return console.warn(b,"not serialized"),null;q=S.nodeMetaMap.has(b)?S.getId(b):y7Y(Xn,t)||!Rq&&Xn.type===3&&!Xn.textContent.replace(/^\s+|\s+$/gm,"").length?-2:eWj++;h=Object.assign(Xn,{id:q});S.add(b,h);if(q===-2)return null;
p&&p(b);q=!n;h.type===2&&(q=q&&!h.needBlock,delete h.needBlock,(dI=Eb(b))&&f2(dI)&&(h.isShadowHost=!0));if((h.type===0||h.type===2)&&q){t.headWhitespace&&h.type===2&&h.tagName==="head"&&(Rq=!1);n={doc:y,mirror:S,blockClass:F,blockSelector:a,needsMask:L4,maskTextClass:P,maskTextSelector:K,skipChild:n,inlineStylesheet:X,maskInputOptions:u,maskTextFn:O,maskInputFn:N,slimDOMOptions:t,dataURLOptions:R,inlineImages:I,recordCanvas:U,preserveWhiteSpace:Rq,onSerialize:p,onIframeLoad:e,iframeLoadTimeout:E,
onStylesheetLoad:Y,stylesheetLoadTimeout:w,keepIframeSrcFn:x,cssCaptured:!1};if(h.type!==2||h.tagName!=="textarea"||h.attributes.value===void 0)for(h.type===2&&h.attributes._cssText!==void 0&&typeof h.attributes._cssText==="string"&&(n.cssCaptured=!0),q=_.L(Array.from(lz(b))),dI=q.next();!dI.done;dI=q.next())(dI=md(dI.value,n))&&h.childNodes.push(dI);q=null;if(b.nodeType===b.ELEMENT_NODE&&(q=Eb(b))){dI=_.L(Array.from(lz(q)));for(var Ny=dI.next();!Ny.done;Ny=dI.next())if(Ny=md(Ny.value,n))f2(q)&&(Ny.isShadow=
!0),h.childNodes.push(Ny)}}(n=wk(b))&&iz(n)&&f2(n)&&(h.isShadow=!0);h.type===2&&h.tagName==="iframe"&&xk4(b,function(){var gI=b.contentDocument;gI&&e&&(gI=md(gI,{doc:gI,mirror:S,blockClass:F,blockSelector:a,needsMask:L4,maskTextClass:P,maskTextSelector:K,skipChild:!1,inlineStylesheet:X,maskInputOptions:u,maskTextFn:O,maskInputFn:N,slimDOMOptions:t,dataURLOptions:R,inlineImages:I,recordCanvas:U,preserveWhiteSpace:Rq,onSerialize:p,onIframeLoad:e,iframeLoadTimeout:E,onStylesheetLoad:Y,stylesheetLoadTimeout:w,
keepIframeSrcFn:x}))&&e(b,gI)},E);
h.type===2&&h.tagName==="link"&&typeof h.attributes.rel==="string"&&(h.attributes.rel==="stylesheet"||h.attributes.rel==="preload"&&typeof h.attributes.href==="string"&&Iyj(h.attributes.href)==="css")&&Q6M(b,function(){if(Y){var gI=md(b,{doc:y,mirror:S,blockClass:F,blockSelector:a,needsMask:L4,maskTextClass:P,maskTextSelector:K,skipChild:!1,inlineStylesheet:X,maskInputOptions:u,maskTextFn:O,maskInputFn:N,slimDOMOptions:t,dataURLOptions:R,inlineImages:I,recordCanvas:U,preserveWhiteSpace:Rq,onSerialize:p,
onIframeLoad:e,iframeLoadTimeout:E,onStylesheetLoad:Y,stylesheetLoadTimeout:w,keepIframeSrcFn:x});gI&&Y(b,gI)}},w);
return h};
Swn=function(b){var h=document;b=b||{};var y=b.maskAllInputs===void 0?!1:b.maskAllInputs,S=b.slimDOM===void 0?!1:b.slimDOM;return md(h,{doc:h,mirror:b.mirror===void 0?new v_:b.mirror,blockClass:b.blockClass===void 0?"rr-block":b.blockClass,blockSelector:b.blockSelector===void 0?null:b.blockSelector,maskTextClass:b.maskTextClass===void 0?"rr-mask":b.maskTextClass,maskTextSelector:b.maskTextSelector===void 0?null:b.maskTextSelector,skipChild:!1,inlineStylesheet:b.inlineStylesheet===void 0?!0:b.inlineStylesheet,
maskInputOptions:y===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:y===!1?{password:!0}:y,maskTextFn:b.maskTextFn,maskInputFn:b.maskInputFn,slimDOMOptions:S===!0||S==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:S==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:S===!1?{}:S,dataURLOptions:b.dataURLOptions,
inlineImages:b.inlineImages===void 0?!1:b.inlineImages,recordCanvas:b.recordCanvas===void 0?!1:b.recordCanvas,preserveWhiteSpace:b.preserveWhiteSpace,onSerialize:b.onSerialize,onIframeLoad:b.onIframeLoad,iframeLoadTimeout:b.iframeLoadTimeout,onStylesheetLoad:b.onStylesheetLoad,stylesheetLoadTimeout:b.stylesheetLoadTimeout,keepIframeSrcFn:b.keepIframeSrcFn===void 0?function(){return!1}:b.keepIframeSrcFn,
newlyAddedElement:!1})};
bX=function(b,h,y){y=y===void 0?document:y;var S={capture:!0,passive:!0};y.addEventListener(b,h,S);return function(){return y.removeEventListener(b,h,S)}};
he=function(b,h,y){y=y===void 0?{}:y;var S=null,F=0;return function(){var a=_.x$.apply(0,arguments),P=Date.now();F||y.leading!==!1||(F=P);var K=h-(P-F),n=this;K<=0||K>h?(S&&(clearTimeout(S),S=null),F=P,b.apply(n,a)):S||y.trailing===!1||(S=setTimeout(function(){F=y.leading===!1?0:Date.now();S=null;b.apply(n,a)},K))}};
FWF=function(b,h,y,S,F){F=F===void 0?window:F;var a=F.Object.getOwnPropertyDescriptor(b,h);F.Object.defineProperty(b,h,S?y:{set:function(P){var K=this;setTimeout(function(){y.set.call(K,P)},0);
a&&a.set&&a.set.call(this,P)}});
return function(){return FWF(b,h,a||{},!0)}};
alf=function(b){var h=b.document,y,S,F,a;return{left:h.scrollingElement?h.scrollingElement.scrollLeft:b.pageXOffset!==void 0?b.pageXOffset:h.documentElement.scrollLeft||(h==null?void 0:h.body)&&((y=qd(h.body))==null?void 0:y.scrollLeft)||(h==null?void 0:(S=h.body)==null?void 0:S.scrollLeft)||0,top:h.scrollingElement?h.scrollingElement.scrollTop:b.pageYOffset!==void 0?b.pageYOffset:(h==null?void 0:h.documentElement.scrollTop)||(h==null?void 0:h.body)&&((F=qd(h.body))==null?void 0:F.scrollTop)||(h==
null?void 0:(a=h.body)==null?void 0:a.scrollTop)||0}};
dIf=function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight};
jE4=function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth};
$I8=function(b){return b?b.nodeType===b.ELEMENT_NODE?b:qd(b):null};
yB=function(b,h,y,S){if(!b)return!1;b=$I8(b);if(!b)return!1;try{if(typeof h==="string"){if(b.classList.contains(h)||S&&b.closest("."+h)!==null)return!0}else if(lyU(b,h,S))return!0}catch(F){}return y&&(b.matches(y)||S&&b.closest(y)!==null)?!0:!1};
LWU=function(b,h,y){return b.tagName==="TITLE"&&y.headTitleMutations?!0:h.getId(b)===-2};
PDy=function(b,h){if(iz(b))return!1;var y=h.getId(b);return h.has(y)?(y=wk(b))&&y.nodeType===b.DOCUMENT_NODE?!1:y?PDy(y,h):!0:!0};
KW5=function(){var b=b===void 0?window:b;"NodeList"in b&&!b.NodeList.prototype.forEach&&(b.NodeList.prototype.forEach=Array.prototype.forEach);"DOMTokenList"in b&&!b.DOMTokenList.prototype.forEach&&(b.DOMTokenList.prototype.forEach=Array.prototype.forEach)};
ZGF=function(b,h){return!(b.nodeName!=="LINK"||b.nodeType!==b.ELEMENT_NODE||!b.getAttribute||b.getAttribute("rel")!=="stylesheet"||!h.nodeMetaMap.get(b))};
MA8=function(b){var h=null,y;"getRootNode"in b&&((y=ouU(b))==null?void 0:y.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&Vn(ouU(b))&&(h=Vn(ouU(b)));return h};
nur=function(b){var h=b.ownerDocument;if(h){if(!(h=OvN(h,"contains")(b)))if(h=b.ownerDocument){for(var y;y=MA8(b);)b=y;h=OvN(h,"contains")(b)}else h=!1}else h=!1;return h};
XRM=function(b,h){b.delete(h);lz(h).forEach(function(y){return XRM(b,y)})};
HG4=function(b,h){for(var y=[b];y.length;)b=y.pop(),h.has(b)||(h.add(b),lz(b).forEach(function(S){return y.push(S)}))};
uiN=function(b,h){b.size===0?b=!1:b=(h=wk(h))?b.has(h):!1;return b};
Nvr=function(b,h){return b.size===0?!1:OGf(b,h)};
OGf=function(b,h){return(h=wk(h))?b.has(h)?!0:OGf(b,h):!1};
S3=function(b){try{if("composedPath"in b){var h=b.composedPath();if(h.length)return h[0]}else if("path"in b&&b.path.length)return b.path[0]}catch(y){}return b&&b.target};
r7n=function(b,h){var y=new tAq;FN.push(y);y.init(b);b=new (Xm4("MutationObserver").constructor)(aH(y.processMutations.bind(y)));b.observe(h,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0});return b};
R0y=function(b){var h=b.mousemoveCb;var y=b.sampling;var S=b.doc;var F=b.mirror;if(y.mousemove===!1)return function(){};
var a=[],P,K=he(aH(function(X){var u=Date.now()-P;h(a.map(function(O){O.timeOffset-=u;return O}),X);
a=[];P=null}),typeof y.mousemoveCallback==="number"?y.mousemoveCallback:500);
b=aH(he(aH(function(X){var u=S3(X),O=X.changedTouches?X.changedTouches[0]:X,N=O.clientX;O=O.clientY;P||(P=c7I());a.push({x:N,y:O,id:F.getId(u),timeOffset:c7I()-P});K(typeof DragEvent!=="undefined"&&X instanceof DragEvent?12:X instanceof MouseEvent?1:6)}),typeof y.mousemove==="number"?y.mousemove:50,{trailing:!1}));
var n=[bX("mousemove",b,S),bX("touchmove",b,S),bX("drag",b,S)];return aH(function(){n.forEach(function(X){return X()})})};
z0y=function(b){var h=b.mouseInteractionCb;var y=b.doc;var S=b.mirror;var F=b.blockClass;var a=b.blockSelector;b=b.sampling;if(b.mouseInteraction===!1)return function(){};
var P=b.mouseInteraction===!0||b.mouseInteraction===void 0?{}:b.mouseInteraction,K=[],n=null,X=function(u){return function(O){var N=S3(O);if(!yB(N,F,a,!0)){var t=null,R=u;if("pointerType"in O){switch(O.pointerType){case "mouse":t=0;break;case "touch":t=2;break;case "pen":t=1}t===2&&(dO[u]===1?R="TouchStart":dO[u]===0&&(R="TouchEnd"))}else O.changedTouches&&(t=2);if(t!==null){if(n=t,R.startsWith("Touch")&&t===2||R.startsWith("Mouse")&&t===0)t=null}else dO[u]===2&&(t=n,n=null);if(O=O.changedTouches?
O.changedTouches[0]:O)N=S.getId(N),aH(h)(Object.assign({},{type:dO[R],id:N,x:O.clientX,y:O.clientY},t!==null&&{pointerType:t}))}}};
Object.keys(dO).filter(function(u){return Number.isNaN(Number(u))&&!u.endsWith("_Departed")&&P[u]!==!1}).forEach(function(u){var O=u.toLowerCase(),N=X(u);
if(window.PointerEvent)switch(dO[u]){case 1:case 0:O=O.replace("mouse","pointer");break;case 7:case 9:return}K.push(bX(O,N,y))});
return aH(function(){K.forEach(function(u){return u()})})};
DIr=function(b){var h=b.scrollCb;var y=b.doc;var S=b.mirror;var F=b.blockClass;var a=b.blockSelector;return bX("scroll",aH(he(aH(function(P){var K=S3(P);K&&!yB(K,F,a,!0)&&(P=S.getId(K),K===y&&y.defaultView?(K=alf(y.defaultView),h({id:P,x:K.left,y:K.top})):h({id:P,x:K.scrollLeft,y:K.scrollTop}))}),b.sampling.scroll||100)),y)};
IlN=function(b,h){var y=b.viewportResizeCb;var S=-1,F=-1;return bX("resize",aH(he(aH(function(){var a=dIf(),P=jE4();if(S!==a||F!==P)y({width:Number(P),height:Number(a)}),S=a,F=P}),200)),h.win)};
A7f=function(b){function h(U){var p=S3(U),e=U.isTrusted,E=p&&p.tagName;p&&E==="OPTION"&&(p=qd(p));if(!(!p||!E||Bv4.indexOf(E)<0||yB(p,P,K,!0)||p.classList.contains(n)||X&&p.matches(X))){var Y=p.value,w=!1;U=DkF(p)||"";if(U==="radio"||U==="checkbox")w=p.checked;else if(u[E.toLowerCase()]||u[U])Y=RWI({element:p,maskInputOptions:u,tagName:E,type:U,value:Y,maskInputFn:O});y(p,t?{text:Y,isChecked:w,userTriggered:e}:{text:Y,isChecked:w});e=p.name;U==="radio"&&e&&w&&F.querySelectorAll('input[type="radio"][name="'+
e+'"]').forEach(function(x){if(x!==p){var q=x.value;y(x,t?{text:q,isChecked:!w,userTriggered:!1}:{text:q,isChecked:!w})}})}}
function y(U,p){var e=WWI.get(U);e&&e.text===p.text&&e.isChecked===p.isChecked||(WWI.set(U,p),U=a.getId(U),aH(S)(Object.assign({},p,{id:U})))}
var S=b.inputCb;var F=b.doc;var a=b.mirror;var P=b.blockClass;var K=b.blockSelector;var n=b.ignoreClass;var X=b.ignoreSelector;var u=b.maskInputOptions;var O=b.maskInputFn;var N=b.sampling;var t=b.userTriggeredOnInput;var R=(N.input==="last"?["change"]:["input","change"]).map(function(U){return bX(U,aH(h),F)}),I=F.defaultView;
if(!I)return function(){R.forEach(function(U){return U()})};
b=I.Object.getOwnPropertyDescriptor(I.HTMLInputElement.prototype,"value");N=[[I.HTMLInputElement.prototype,"value"],[I.HTMLInputElement.prototype,"checked"],[I.HTMLSelectElement.prototype,"value"],[I.HTMLTextAreaElement.prototype,"value"],[I.HTMLSelectElement.prototype,"selectedIndex"],[I.HTMLOptionElement.prototype,"selected"]];b&&b.set&&R.push.apply(R,_.f$(N.map(function(U){return FWF(U[0],U[1],{set:function(){aH(h)({target:this,isTrusted:!1})}},!1,I)})));
return aH(function(){R.forEach(function(U){return U()})})};
pR4=function(b){var h=[],y,S,F,a;UIF("CSSGroupingRule")&&((y=b.parentRule)==null?void 0:(S=y.constructor)==null?void 0:S.name)==="CSSGroupingRule"||UIF("CSSMediaRule")&&b.parentRule instanceof CSSMediaRule||UIF("CSSSupportsRule")&&b.parentRule instanceof CSSSupportsRule||UIF("CSSConditionRule")&&((F=b.parentRule)==null?void 0:(a=F.constructor)==null?void 0:a.name)==="CSSConditionRule"?(b=Array.from(b.parentRule.cssRules).indexOf(b),h.unshift(b)):b.parentStyleSheet&&(b=Array.from(b.parentStyleSheet.cssRules).indexOf(b),
h.unshift(b));return h};
j3=function(b,h,y){var S,F;if(!b)return{};b.ownerNode?S=h.getId(b.ownerNode):F=y.getId(b);return{styleId:F,id:S}};
e0q=function(b,h){var y=b.styleSheetRuleCb;var S=b.mirror;var F=b.stylesheetManager;var a=h.win;if(!a.CSSStyleSheet||!a.CSSStyleSheet.prototype)return function(){};
var P=a.CSSStyleSheet.prototype.insertRule;a.CSSStyleSheet.prototype.insertRule=new Lx(P,{apply:aH(function(N,t,R){var I=_.L(R),U=I.next().value;I=I.next().value;var p=j3(t,S,F.styleMirror),e=p.id;p=p.styleId;(e&&e!==-1||p&&p!==-1)&&y({id:e,styleId:p,adds:[{rule:U,index:I}]});return N.apply(t,R)})});
a.CSSStyleSheet.prototype.addRule=function(N,t,R){R=R===void 0?this.cssRules.length:R;return a.CSSStyleSheet.prototype.insertRule.apply(this,[N+" { "+t+" }",R])};
var K=a.CSSStyleSheet.prototype.deleteRule;a.CSSStyleSheet.prototype.deleteRule=new Lx(K,{apply:aH(function(N,t,R){var I=_.L(R).next().value,U=j3(t,S,F.styleMirror),p=U.id;U=U.styleId;(p&&p!==-1||U&&U!==-1)&&y({id:p,styleId:U,removes:[{index:I}]});return N.apply(t,R)})});
a.CSSStyleSheet.prototype.removeRule=function(N){return a.CSSStyleSheet.prototype.deleteRule.apply(this,[N])};
if(a.CSSStyleSheet.prototype.replace){var n=a.CSSStyleSheet.prototype.replace;a.CSSStyleSheet.prototype.replace=new Lx(n,{apply:aH(function(N,t,R){var I=_.L(R).next().value,U=j3(t,S,F.styleMirror),p=U.id;U=U.styleId;(p&&p!==-1||U&&U!==-1)&&y({id:p,styleId:U,replace:I});return N.apply(t,R)})})}if(a.CSSStyleSheet.prototype.replaceSync){var X=a.CSSStyleSheet.prototype.replaceSync;
a.CSSStyleSheet.prototype.replaceSync=new Lx(X,{apply:aH(function(N,t,R){var I=_.L(R).next().value,U=j3(t,S,F.styleMirror),p=U.id;U=U.styleId;(p&&p!==-1||U&&U!==-1)&&y({id:p,styleId:U,replaceSync:I});return N.apply(t,R)})})}var u={};
J7y("CSSGroupingRule")?u.CSSGroupingRule=a.CSSGroupingRule:(J7y("CSSMediaRule")&&(u.CSSMediaRule=a.CSSMediaRule),J7y("CSSConditionRule")&&(u.CSSConditionRule=a.CSSConditionRule),J7y("CSSSupportsRule")&&(u.CSSSupportsRule=a.CSSSupportsRule));var O={};Object.entries(u).forEach(function(N){var t=_.L(N);N=t.next().value;t=t.next().value;O[N]={insertRule:t.prototype.insertRule,deleteRule:t.prototype.deleteRule};t.prototype.insertRule=new Lx(O[N].insertRule,{apply:aH(function(R,I,U){var p=_.L(U),e=p.next().value;
p=p.next().value;var E=j3(I.parentStyleSheet,S,F.styleMirror),Y=E.id;E=E.styleId;(Y&&Y!==-1||E&&E!==-1)&&y({id:Y,styleId:E,adds:[{rule:e,index:[].concat(_.f$(pR4(I)),[p||0])}]});return R.apply(I,U)})});
t.prototype.deleteRule=new Lx(O[N].deleteRule,{apply:aH(function(R,I,U){var p=_.L(U).next().value,e=j3(I.parentStyleSheet,S,F.styleMirror),E=e.id;e=e.styleId;(E&&E!==-1||e&&e!==-1)&&y({id:E,styleId:e,removes:[{index:[].concat(_.f$(pR4(I)),[p])}]});return R.apply(I,U)})})});
return aH(function(){a.CSSStyleSheet.prototype.insertRule=P;a.CSSStyleSheet.prototype.deleteRule=K;n&&(a.CSSStyleSheet.prototype.replace=n);X&&(a.CSSStyleSheet.prototype.replaceSync=X);Object.entries(u).forEach(function(N){var t=_.L(N);N=t.next().value;t=t.next().value;t.prototype.insertRule=O[N].insertRule;t.prototype.deleteRule=O[N].deleteRule})})};
guq=function(b,h){var y=b.mirror;var S=b.stylesheetManager;var F=null;F=h.nodeName==="#document"?y.getId(h):y.getId(Vn(h));var a,P,K;b=h.nodeName==="#document"?(a=h.defaultView)==null?void 0:a.Document:(P=h.ownerDocument)==null?void 0:(K=P.defaultView)==null?void 0:K.ShadowRoot;var n=(b==null?0:b.prototype)?Object.getOwnPropertyDescriptor(b==null?void 0:b.prototype,"adoptedStyleSheets"):void 0;if(F===null||F===-1||!b||!n)return function(){};
Object.defineProperty(h,"adoptedStyleSheets",{configurable:n.configurable,enumerable:n.enumerable,get:function(){var X;return(X=n.get)==null?void 0:X.call(this)},
set:function(X){var u,O=(u=n.set)==null?void 0:u.call(this,X);if(F!==null&&F!==-1)try{CDI(S,X,F)}catch(N){}return O}});
return aH(function(){Object.defineProperty(h,"adoptedStyleSheets",{configurable:n.configurable,enumerable:n.enumerable,get:n.get,set:n.set})})};
sEF=function(b,h){var y=b.styleDeclarationCb;var S=b.mirror;var F=b.ignoreCSSAttributes;var a=b.stylesheetManager;var P=h.win;var K=P.CSSStyleDeclaration.prototype.setProperty;P.CSSStyleDeclaration.prototype.setProperty=new Lx(K,{apply:aH(function(X,u,O){var N=_.L(O),t=N.next().value,R=N.next().value;N=N.next().value;if(F.has(t))return K.apply(u,[t,R,N]);var I,U=j3((I=u.parentRule)==null?void 0:I.parentStyleSheet,S,a.styleMirror);I=U.id;U=U.styleId;(I&&I!==-1||U&&U!==-1)&&y({id:I,styleId:U,set:{property:t,
value:R,priority:N},index:pR4(u.parentRule)});return X.apply(u,O)})});
var n=P.CSSStyleDeclaration.prototype.removeProperty;P.CSSStyleDeclaration.prototype.removeProperty=new Lx(n,{apply:aH(function(X,u,O){var N=_.L(O).next().value;if(F.has(N))return n.apply(u,[N]);var t,R=j3((t=u.parentRule)==null?void 0:t.parentStyleSheet,S,a.styleMirror);t=R.id;R=R.styleId;(t&&t!==-1||R&&R!==-1)&&y({id:t,styleId:R,remove:{property:N},index:pR4(u.parentRule)});return X.apply(u,O)})});
return aH(function(){P.CSSStyleDeclaration.prototype.setProperty=K;P.CSSStyleDeclaration.prototype.removeProperty=n})};
Ywy=function(b){var h=b.mediaInteractionCb;var y=b.blockClass;var S=b.blockSelector;var F=b.mirror;var a=b.sampling;b=b.doc;var P=aH(function(n){return he(aH(function(X){if((X=S3(X))&&!yB(X,y,S,!0)){var u=X.currentTime,O=X.volume,N=X.muted,t=X.playbackRate,R=X.loop;h({type:n,id:F.getId(X),currentTime:u,volume:O,muted:N,playbackRate:t,loop:R})}}),a.media||500)}),K=[bX("play",P(0),b),
bX("pause",P(1),b),bX("seeked",P(2),b),bX("volumechange",P(3),b),bX("ratechange",P(4),b)];return aH(function(){K.forEach(function(n){return n()})})};
Tvf=function(b){var h=b.fontCb;b=b.doc;var y=b.defaultView;if(!y)return function(){};
var S=[],F=new WeakMap,a=y.FontFace;y.FontFace=function(P,K,n){var X=new a(P,K,n);F.set(X,{family:P,buffer:typeof K!=="string",descriptors:n,fontSource:typeof K==="string"?K:JSON.stringify(Array.from(new Uint8Array(K)))});return X};
b=k6(b.fonts,"add",function(P){return function(K){setTimeout(aH(function(){var n=F.get(K);n&&(h(n),F.delete(K))}),0);
return P.apply(this,[K])}});
S.push(function(){y.FontFace=a});
S.push(b);return aH(function(){S.forEach(function(P){return P()})})};
GSj=function(b){var h=b.doc,y=b.mirror,S=b.blockClass,F=b.blockSelector,a=b.selectionCb,P=!0;b=aH(function(){var K=h.getSelection();if(K&&!(P&&(K==null?0:K.isCollapsed))){P=K.isCollapsed||!1;for(var n=[],X=K.rangeCount||0,u=0;u<X;u++){var O=K.getRangeAt(u),N=O.startContainer,t=O.startOffset,R=O.endContainer;O=O.endOffset;yB(N,S,F,!0)||yB(R,S,F,!0)||n.push({start:y.getId(N),startOffset:t,end:y.getId(R),endOffset:O})}a({ranges:n})}});
b();return bX("selectionchange",b)};
kSN=function(b){var h=b.doc;var y=b.customElementCb;return(b=h.defaultView)&&b.customElements?k6(b.customElements,"define",function(S){return function(F,a,P){try{y({define:{name:F}})}catch(K){console.warn("Custom element callback failed for "+F)}return S.apply(this,[F,a,P])}}):function(){}};
VAM=function(b,h){var y=b.mutationCb,S=b.mousemoveCb,F=b.mouseInteractionCb,a=b.scrollCb,P=b.viewportResizeCb,K=b.inputCb,n=b.mediaInteractionCb,X=b.styleSheetRuleCb,u=b.styleDeclarationCb,O=b.canvasMutationCb,N=b.fontCb,t=b.selectionCb,R=b.customElementCb;b.mutationCb=function(){var I=_.x$.apply(0,arguments);h.mutation&&h.mutation.apply(h,_.f$(I));y.apply(null,_.f$(I))};
b.mousemoveCb=function(){var I=_.x$.apply(0,arguments);h.mousemove&&h.mousemove.apply(h,_.f$(I));S.apply(null,_.f$(I))};
b.mouseInteractionCb=function(){var I=_.x$.apply(0,arguments);h.mouseInteraction&&h.mouseInteraction.apply(h,_.f$(I));F.apply(null,_.f$(I))};
b.scrollCb=function(){var I=_.x$.apply(0,arguments);h.scroll&&h.scroll.apply(h,_.f$(I));a.apply(null,_.f$(I))};
b.viewportResizeCb=function(){var I=_.x$.apply(0,arguments);h.viewportResize&&h.viewportResize.apply(h,_.f$(I));P.apply(null,_.f$(I))};
b.inputCb=function(){var I=_.x$.apply(0,arguments);h.input&&h.input.apply(h,_.f$(I));K.apply(null,_.f$(I))};
b.mediaInteractionCb=function(){var I=_.x$.apply(0,arguments);h.mediaInteaction&&h.mediaInteaction.apply(h,_.f$(I));n.apply(null,_.f$(I))};
b.styleSheetRuleCb=function(){var I=_.x$.apply(0,arguments);h.styleSheetRule&&h.styleSheetRule.apply(h,_.f$(I));X.apply(null,_.f$(I))};
b.styleDeclarationCb=function(){var I=_.x$.apply(0,arguments);h.styleDeclaration&&h.styleDeclaration.apply(h,_.f$(I));u.apply(null,_.f$(I))};
b.canvasMutationCb=function(){var I=_.x$.apply(0,arguments);h.canvasMutation&&h.canvasMutation.apply(h,_.f$(I));O.apply(null,_.f$(I))};
b.fontCb=function(){var I=_.x$.apply(0,arguments);h.font&&h.font.apply(h,_.f$(I));N.apply(null,_.f$(I))};
b.selectionCb=function(){var I=_.x$.apply(0,arguments);h.selection&&h.selection.apply(h,_.f$(I));t.apply(null,_.f$(I))};
b.customElementCb=function(){var I=_.x$.apply(0,arguments);h.customElement&&h.customElement.apply(h,_.f$(I));R.apply(null,_.f$(I))}};
Eu4=function(b,h){h=h===void 0?{}:h;var y=b.doc.defaultView;if(!y)return function(){};
VAM(b,h);var S;b.recordDOM&&(S=r7n(b,b.doc));var F=R0y(b),a=z0y(b),P=DIr(b),K=IlN(b,{win:y}),n=A7f(b),X=Ywy(b),u=function(){},O=function(){},N=function(){},t=function(){};
b.recordDOM&&(u=e0q(b,{win:y}),O=guq(b,b.doc),N=sEF(b,{win:y}),b.collectFonts&&(t=Tvf(b)));var R=GSj(b),I=kSN(b),U=[];b=_.L(b.plugins);for(h=b.next();!h.done;h=b.next())h=h.value,U.push(h.observer(h.callback,y,h.options));return aH(function(){FN.forEach(function(e){return e.reset()});
var p;(p=S)==null||p.disconnect();F();a();P();K();n();X();u();O();N();t();R();I();U.forEach(function(e){return e()})})};
UIF=function(b){return typeof window[b]!=="undefined"};
J7y=function(b){return!!(typeof window[b]!=="undefined"&&window[b].prototype&&"insertRule"in window[b].prototype&&"deleteRule"in window[b].prototype)};
iGN=function(b){b=new Uint8Array(b);for(var h="",y=0;y<b.byteLength;y++)h+=String.fromCharCode(b[y]);return btoa(h)};
flN=function(b,h,y){if(b instanceof Array)return b.map(function(F){return flN(F,h,y)});
if(b!==null){if(b instanceof Float32Array||b instanceof Float64Array||b instanceof Int32Array||b instanceof Uint32Array||b instanceof Uint8Array||b instanceof Uint16Array||b instanceof Int16Array||b instanceof Int8Array||b instanceof Uint8ClampedArray)return{rr_type:b.constructor.name,args:[Object.values(b)]};if(b instanceof ArrayBuffer){var S=b.constructor.name;b=iGN(b);return{rr_type:S,base64:b}}if(b instanceof DataView)return{rr_type:b.constructor.name,args:[flN(b.buffer,h,y),b.byteOffset,b.byteLength]};
if(b instanceof HTMLImageElement)return{rr_type:b.constructor.name,src:b.src};if(b instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:b.toDataURL()};if(b instanceof ImageData)return{rr_type:b.constructor.name,args:[flN(b.data,h,y),b.width,b.height]};if(wR8(b,h)||typeof b==="object")return S=b.constructor.name,b=llI(b,h,y),{rr_type:S,index:b}}return b};
xIF=function(b,h,y,S){for(var F=[],a=_.L(Object.getOwnPropertyNames(h.CanvasRenderingContext2D.prototype)),P=a.next(),K={};!P.done;K={prop$jscomp$58:void 0},P=a.next()){K.prop$jscomp$58=P.value;try{if(typeof h.CanvasRenderingContext2D.prototype[K.prop$jscomp$58]==="function"){var n=k6(h.CanvasRenderingContext2D.prototype,K.prop$jscomp$58,function(X){return function(u){return function(){var O=_.x$.apply(0,arguments),N=this;yB(this.canvas,y,S,!0)||setTimeout(function(){var t=qw4(O,h,N);b(N.canvas,{type:P5["2D"],
property:X.prop$jscomp$58,args:t})},0);
return u.apply(this,O)}}}(K));
F.push(n)}}catch(X){P=FWF(h.CanvasRenderingContext2D.prototype,K.prop$jscomp$58,{set:function(u){return function(O){b(this.canvas,{type:P5["2D"],property:u.prop$jscomp$58,args:[O],setter:!0})}}(K)}),F.push(P)}}return function(){F.forEach(function(X){return X()})}};
QEj=function(b,h,y,S){var F=[];try{var a=k6(b.HTMLCanvasElement.prototype,"getContext",function(P){return function(K){var n=_.x$.apply(1,arguments);if(!yB(this,h,y,!0)){var X=K==="experimental-webgl"?"webgl":K;"__context"in this||(this.__context=X);S&&["webgl","webgl2"].includes(X)&&(n[0]&&typeof n[0]==="object"?(X=n[0],X.preserveDrawingBuffer||(X.preserveDrawingBuffer=!0)):n.splice(0,1,{preserveDrawingBuffer:!0}))}return P.apply(this,[K].concat(_.f$(n)))}});
F.push(a)}catch(P){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){F.forEach(function(P){return P()})}};
mIk=function(b,h,y,S,F,a){for(var P=[],K=_.L(Object.getOwnPropertyNames(b)),n=K.next(),X={};!n.done;X={prop$jscomp$59:void 0},n=K.next())if(X.prop$jscomp$59=n.value,!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(X.prop$jscomp$59))try{if(typeof b[X.prop$jscomp$59]==="function"){var u=k6(b,X.prop$jscomp$59,function(O){return function(N){return function(){var t=_.x$.apply(0,arguments),R=N.apply(this,t);llI(R,a,this);"tagName"in this.canvas&&!yB(this.canvas,S,F,!0)&&(t=
qw4(t,a,this),y(this.canvas,{type:h,property:O.prop$jscomp$59,args:t}));return R}}}(X));
P.push(u)}}catch(O){n=FWF(b,X.prop$jscomp$59,{set:function(N){return function(t){y(this.canvas,{type:h,property:N.prop$jscomp$59,args:[t],setter:!0})}}(X)}),P.push(n)}return P};
vu8=function(b,h,y,S){var F=[];F.push.apply(F,_.f$(mIk(h.WebGLRenderingContext.prototype,1,b,y,S,h)));typeof h.WebGL2RenderingContext!=="undefined"&&F.push.apply(F,_.f$(mIk(h.WebGL2RenderingContext.prototype,2,b,y,S,h)));return function(){F.forEach(function(a){return a()})}};
M65=function(b){var h=b=b===void 0?{}:b,y=h.emit,S=h.checkoutEveryNms,F=h.checkoutEveryNth,a=h.blockClass===void 0?"rr-block":h.blockClass,P=h.blockSelector===void 0?null:h.blockSelector,K=h.ignoreClass===void 0?"rr-ignore":h.ignoreClass,n=h.ignoreSelector===void 0?null:h.ignoreSelector,X=h.maskTextClass===void 0?"rr-mask":h.maskTextClass,u=h.maskTextSelector===void 0?null:h.maskTextSelector,O=h.inlineStylesheet===void 0?!0:h.inlineStylesheet,N=h.maskAllInputs,t=h.maskInputOptions,R=h.slimDOMOptions,
I=h.maskInputFn,U=h.maskTextFn,p=h.hooks,e=h.packFn,E=h.sampling===void 0?{}:h.sampling,Y=h.dataURLOptions===void 0?{}:h.dataURLOptions,w=h.mousemoveWait,x=h.recordDOM===void 0?!0:h.recordDOM,q=h.recordCanvas===void 0?!1:h.recordCanvas,dI=h.recordCrossOriginIframes===void 0?!1:h.recordCrossOriginIframes,L4=h.recordAfter===void 0?b.recordAfter==="DOMContentLoaded"?b.recordAfter:"load":h.recordAfter,Rq=h.userTriggeredOnInput===void 0?!1:h.userTriggeredOnInput,Xn=h.collectFonts===void 0?!1:h.collectFonts,
Ny=h.inlineImages===void 0?!1:h.inlineImages,gI=h.plugins,YU=h.keepIframeSrcFn===void 0?function(){return!1}:h.keepIframeSrcFn,VN=h.ignoreCSSAttributes===void 0?new Set([]):h.ignoreCSSAttributes;
Kx=h.errorHandler;var Hb=dI?window.parent===window:!0,vF=!1;if(!Hb)try{window.parent.document&&(vF=!1)}catch(uo){vF=!0}if(Hb&&!y)throw Error("af");if(!Hb&&!vF)return function(){};
w!==void 0&&E.mousemove===void 0&&(E.mousemove=w);Zn.reset();var xU=N===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:t!==void 0?t:{password:!0},Xa=R===!0||R==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:R==="all",headMetaDescKeywords:R==="all",headTitleMutations:R==="all"}:
R?R:{};KW5();var rG,Wb=0,Xx=function(uo){for(var dA=_.L(gI||[]),QN=dA.next();!QN.done;QN=dA.next())QN=QN.value,QN.eventProcessor&&(uo=QN.eventProcessor(uo));e&&!vF&&(uo=e(uo));return uo};
oH=function(uo,dA){uo.timestamp=c7I();var QN;((QN=FN[0])==null?0:QN.isFrozen())&&uo.type!==2&&(uo.type!==3||uo.data.source!==0)&&FN.forEach(function(vb){return vb.unfreeze()});
Hb?y==null||y(Xx(uo),dA):vF&&(dA={type:"rrweb",event:Xx(uo),origin:window.location.origin,isCheckout:dA},window.parent.postMessage(dA,"*"));uo.type===2?(rG=uo,Wb=0):uo.type!==3||uo.data.source===0&&uo.data.isAttachIframe||(Wb++,uo=S&&uo.timestamp-rG.timestamp>S,(F&&Wb>=F||uo)&&bHY(!0))};
var Bb=function(uo){oH({type:3,data:Object.assign({},{source:0},uo)})},oq=function(uo){return oH({type:3,
data:Object.assign({},{source:3},uo)})},kU=function(uo){return oH({type:3,
data:Object.assign({},{source:9},uo)})},O7=new hHM({mutationCb:Bb,
adoptedStyleSheetCb:function(uo){return oH({type:3,data:Object.assign({},{source:15},uo)})}}),io=new yqr({mirror:Zn,
mutationCb:Bb,stylesheetManager:O7,recordCrossOriginIframes:dI,wrappedEmit:oH});b=_.L(gI||[]);for(h=b.next();!h.done;h=b.next())h=h.value,h.getMirror&&h.getMirror({nodeMirror:Zn,crossOriginIframeMirror:io.crossOriginIframeMirror,crossOriginIframeStyleMirror:io.crossOriginIframeStyleMirror});var cb=new S$n;FDk=new a6j({recordCanvas:q,mutationCb:kU,win:window,blockClass:a,blockSelector:P,mirror:Zn,sampling:E.canvas,dataURLOptions:Y});var QW=new d8Y({mutationCb:Bb,scrollCb:oq,bypassOptions:{blockClass:a,
blockSelector:P,maskTextClass:X,maskTextSelector:u,inlineStylesheet:O,maskInputOptions:xU,dataURLOptions:Y,maskTextFn:U,maskInputFn:I,recordCanvas:q,inlineImages:Ny,sampling:E,slimDOMOptions:Xa,iframeManager:io,stylesheetManager:O7,canvasManager:FDk,keepIframeSrcFn:YU,processedNodeManager:cb},mirror:Zn});bHY=function(uo){uo=uo===void 0?!1:uo;if(x){oH({type:4,data:{href:window.location.href,width:jE4(),height:dIf()}},uo);O7.reset();QW.init();FN.forEach(function(QN){return QN.lock()});
var dA=Swn({mirror:Zn,blockClass:a,blockSelector:P,maskTextClass:X,maskTextSelector:u,inlineStylesheet:O,maskAllInputs:xU,maskTextFn:U,maskInputFn:I,slimDOM:Xa,dataURLOptions:Y,recordCanvas:q,inlineImages:Ny,onSerialize:function(QN){QN.nodeName==="IFRAME"&&Zn.nodeMetaMap.get(QN)&&jGF(io,QN);ZGF(QN,Zn)&&$8f(O7,QN);QN&&Eb(QN)&&LDF(QW,Eb(QN),document)},
onIframeLoad:function(QN,vb){PcI(io,QN,vb);QN.contentWindow&&QN.contentDocument&&KDr(QW,QN.contentWindow.Element,QN.contentDocument)},
onStylesheetLoad:function(QN,vb){ZHk(O7,QN,vb)},
keepIframeSrcFn:YU});dA?(oH({type:2,data:{node:dA,initialOffset:alf(window)}},uo),FN.forEach(function(QN){return QN.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&CDI(O7,document.adoptedStyleSheets,Zn.getId(document))):console.warn("Failed to snapshot the document")}};
try{var vM=[],wG=function(uo){var dA;return aH(Eu4)({mutationCb:Bb,mousemoveCb:function(QN,vb){return oH({type:3,data:{source:vb,positions:QN}})},
mouseInteractionCb:function(QN){return oH({type:3,data:Object.assign({},{source:2},QN)})},
scrollCb:oq,viewportResizeCb:function(QN){return oH({type:3,data:Object.assign({},{source:4},QN)})},
inputCb:function(QN){return oH({type:3,data:Object.assign({},{source:5},QN)})},
mediaInteractionCb:function(QN){return oH({type:3,data:Object.assign({},{source:7},QN)})},
styleSheetRuleCb:function(QN){return oH({type:3,data:Object.assign({},{source:8},QN)})},
styleDeclarationCb:function(QN){return oH({type:3,data:Object.assign({},{source:13},QN)})},
canvasMutationCb:kU,fontCb:function(QN){return oH({type:3,data:Object.assign({},{source:10},QN)})},
selectionCb:function(QN){oH({type:3,data:Object.assign({},{source:14},QN)})},
customElementCb:function(QN){oH({type:3,data:Object.assign({},{source:16},QN)})},
blockClass:a,ignoreClass:K,ignoreSelector:n,maskTextClass:X,maskTextSelector:u,maskInputOptions:xU,inlineStylesheet:O,sampling:E,recordDOM:x,recordCanvas:q,inlineImages:Ny,userTriggeredOnInput:Rq,collectFonts:Xn,doc:uo,maskInputFn:I,maskTextFn:U,keepIframeSrcFn:YU,blockSelector:P,slimDOMOptions:Xa,dataURLOptions:Y,mirror:Zn,iframeManager:io,stylesheetManager:O7,shadowDomManager:QW,processedNodeManager:cb,canvasManager:FDk,ignoreCSSAttributes:VN,plugins:(gI==null?void 0:(dA=gI.filter(function(QN){return QN.observer}))==
null?void 0:dA.map(function(QN){return{observer:QN.observer,
options:QN.options,callback:function(vb){return oH({type:6,data:{plugin:QN.name,payload:vb}})}}}))||[]},p)};
oR4(io,function(uo){try{vM.push(wG(uo.contentDocument))}catch(dA){console.warn(dA)}});
var oN=function(){bHY();vM.push(wG(document))};
document.readyState==="interactive"||document.readyState==="complete"?oN():(vM.push(bX("DOMContentLoaded",function(){oH({type:0,data:{}});L4==="DOMContentLoaded"&&oN()})),vM.push(bX("load",function(){oH({type:1,
data:{}});L4==="load"&&oN()},window)));
return function(){vM.forEach(function(uo){try{uo()}catch(dA){String(dA).toLowerCase().includes("cross-origin")||console.warn(dA)}});
cb.destroy();Kx=void 0}}catch(uo){console.warn(uo)}};
_.D=function(b,h){h=Sw(yx(h));b.innerHTML=h};
HHk=function(b){var h=nR4;h||(h=XaM(),h=nR4=_.lR.transpose(h));h=h[b];return typeof h==="string"?h:_.MQ(b)};
ueq=function(b){b=String(b).toLowerCase();var h=XaM()[b];return typeof h==="string"?h:_.nx(b)};
OHj=function(b){b=b.toLowerCase();b=XaM()[b];return typeof b==="string"?b:null};
XaM=function(){if(!N4n){for(var b=Object.assign({},t6q),h=_.L(rqF),y=h.next();!y.done;y=h.next())y=y.value,b[y.toLowerCase()]=y;N4n=b}return N4n};
zHY=function(b,h){var y=window.customElements;return y&&y.get(b)||cqf[b]===!0?2:h.name==="HTMLUnknownElement"?1:h.name==="HTMLElement"&&RHY.test(b)?3:0};
B45=function(b,h){switch(h){case "innerHTML":return D8U(b)===1?2:null;case "textContent":return b=D8U(b),b===1||b===6?1:null;default:var y,S;return(S=(y=I6F[b.localName])==null?void 0:y[h])!=null?S:null}};
D8U=function(b){var h=b.localName,y=zHY(h,b.constructor);switch(y){case 0:case 1:return WDq(h,b);case 3:case 2:return 1;default:_.m5(y,"got an unknown element classification")}};
WDq=function(b,h){var y=Object.hasOwnProperty.call(Aqr,b)?Aqr[b]:null;return y!==null?y:Object.hasOwnProperty.call(U8F,b)&&h instanceof SVGElement?U8F[b]:null};
pa8=function(b,h){return h};
eHn=function(b){return(b=b.split(JqF,2))?{url:b[0],metadata:b[1]}:null};
gRk=function(b){var h=String(b.url).replace(Ccn,encodeURIComponent);if(b=b.metadata){Ccn.lastIndex=0;if(Ccn.test(b))return null;h+=" "+b}return h};
Gy4=function(b){function h(X){var u=X.localName;if(!X.getAttribute("is")&&zHY(u,X.constructor)===2){var O;return(O=n)!=null?O:n=document.createElement("polyresinuncustomized")}(X=K[u])||(X=K[u]=document.createElement(u));return X}
var y=b.reportHandler||void 0,S=b.safeTypesBridge||sGY,F=/^$/;if(b=b.allowedIdentifierPrefixes){b=_.L(b);for(var a=b.next();!a.done;a=b.next())F=new RegExp(F.source+"|^"+_.Y$q(a.value))}y&&y(!1,"initResin",null);var P=T4U(F,S,y),K={},n=null;return function(X,u,O){var N=X.nodeType;if(N!==Node.ELEMENT_NODE){if(N===Node.TEXT_NODE){u=X.parentElement;O=!u;if(u&&u.nodeType===Node.ELEMENT_NODE){N=u.localName;var t=zHY(N,u.constructor);switch(t){case 0:case 1:u=WDq(N,u);O=u===1||u===6;break;case 3:case 2:O=
!0;break;default:_.m5(t,"got an unknown element classification")}}if(O)return function(p){return""+S(p,"STRING",p)}}return function(p){if(!p&&p!==document.all)return p;
y&&y(!0,"Failed to sanitize "+(X.parentElement&&X.parentElement.nodeName)+" #text node to value "+p,X.parentElement);return XN}}var R=X.localName;
N=h(X);var I=null;switch(O){case "attribute":if(ueq(u)in N)break;return function(p){return p};
case "property":if(u in N){I=B45(N,u);break}if((t=OHj(u))&&t in N)break;return function(p){return p};
default:_.m5(O,"got an unknown resin type, expected either 'property' or 'attribute'")}var U=O==="attribute"?u.toLowerCase():HHk(u);I||(I=T_q(R,U,function(p){var e=X.getAttribute(p);return!e||/[\[\{]/.test(p)?null:e}));
return function(p){var e=H5,E=null;if(!p&&p!==document.all)return p;if(I!=null){var Y=P[I],w=Y.safeType;E=Y.safeReplacement;w&&(e=S(p,w,H5));e===H5&&(Y.filterString?(e=String(S(p,"STRING",p)),e=Y.filterString(R,U,e)):Y.filterRaw&&(e=Y.filterRaw(R,U,p,X)),e===E&&(e=H5))}e===H5&&(e=E||XN,y&&y(!0,"Failed to sanitize attribute of <"+R+">: <"+R+" "+U+'="'+p+'">',X));return e}}};
T4U=function(b,h,y){return[,{filterRaw:function(S,F,a){return a},
filterString:void 0,safeReplacement:void 0,safeType:void 0},{filterRaw:void 0,filterString:void 0,safeReplacement:void 0,safeType:"HTML"},{filterRaw:void 0,filterString:void 0,safeReplacement:ky5,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:ky5,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:XN,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:V6I,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(S,F,a){a=
String(a).toLowerCase();return VHf(S,F,a)?a:XN},
safeReplacement:XN,safeType:void 0},,{filterRaw:void 0,filterString:function(S,F,a){return b.test(a)?a:XN},
safeReplacement:XN,safeType:"CONSTANT"},{filterRaw:function(S,F,a,P){if(typeof a==="string")var K=(K=a.match(ERM))?K.map(eHn).filter(Boolean):[];else if(Array.isArray(a))K=a;else return ky5;var n=K;K=[];var X=[],u={};if(Array.isArray(n))for(var O=0,N=n.length;O<N;++O){var t=n[O],R=t&&t.url;if(R){var I=h(R,"URL",u);if(I){var U=I!==u;(U?K:X).push({url:U?I:R,metadata:t.metadata})}}}else X.push(n);n=X.length?JSON.stringify(X):null;X=H5;if(K.length){if(!Array.isArray(K))throw Error();X=K.map(gRk).filter(Boolean).join(" , ")||
H5}n&&y&&y(!0,"Failed to sanitize attribute value of <"+S+">: <"+S+" "+F+'="'+a+'">: '+n,P);return X===H5?ky5:X},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
iHY=function(b){var h=Gy4(b);return function(y,S,F,a){return a||a===document.all?h(y,S,F)(a):a}};
uX=function(b,h){function y(){function F(K,n,X){for(n=Reflect.getMetadata("parameters",K)||[];n.length<=X;)n.push(null);n[X]=n[X]||[];n[X].push(P);Reflect.defineMetadata(n,K);return K}
var a=_.x$.apply(0,arguments);if(this instanceof y)return S.apply(this,a),this;var P=new (Function.prototype.bind.apply(y,[null].concat(_.f$(a))));F.annotation=P;return F}
var S=f6n(h);y.prototype.toString=function(){return"@"+b};
return y.annotationCls=y};
f6n=function(b){return function(){var h=_.x$.apply(0,arguments),y=this;b.forEach(function(S,F){F=h[F];if(Array.isArray(S))y[S[0]]=F&&F!==void 0?F:S[1];else for(var a in S)y[a]=F&&F[a]!==void 0?F[a]:S[a]})}};
waM=function(b){return b!==void 0&&b!==null};
OE=function(b){if(typeof b==="string")return b;if(b===void 0||b===null)return""+b;if(b.overriddenName)return b.overriddenName;if(b.name)return b.name;b=b.toString();var h=b.indexOf("\n");return h===-1?b:b.substring(0,h)};
l6q=function(b){b.__forward_ref__=l6q;b.toString=function(){return OE(this())};
return b};
NQ=function(b){return typeof b==="function"&&b.hasOwnProperty("__forward_ref__")&&b.__forward_ref__===l6q?b():b};
q$U=function(b){return b?b.map(function(h){return new (Function.prototype.bind.apply(h.type.annotationCls,[null].concat(_.f$(h.args?h.args:[]))))}):[]};
x8N=function(b){for(var h=[],y=0;y<b.length;++y){if(h.indexOf(b[y])>-1){h.push(b[y]);break}h.push(b[y])}return h};
QGF=function(b){return b.length>1?" ("+x8N(b.slice().reverse()).map(function(h){return OE(h.token)}).join(" -> ")+")":""};
vRj=function(b,h,y,S){if(S){var F=Error("df``"+(S instanceof Error?S.message:S));F.ngOriginalError=S}else F=Error();F.addKey=m84;F.keys=[h];F.injectors=[b];F.constructResolvingMessage=y;F.message=F.constructResolvingMessage();F.ngOriginalError=S;return F};
m84=function(b,h){this.injectors.push(b);this.keys.push(h);this.message=this.constructResolvingMessage()};
bp8=function(b,h){return vRj(b,h,function(){return"No provider for "+OE(this.keys[0].token)+"!"+QGF(this.keys)})};
hZI=function(b,h){return vRj(b,h,function(){return"Cannot instantiate cyclic dependency!"+QGF(this.keys)})};
yD4=function(b,h,y){return vRj(b,y,function(){var S=OE(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+S+"!"+QGF(this.keys)+"."},h)};
SYj=function(b,h){for(var y=[],S=0,F=h.length;S<F;S++){var a=h[S];a&&a.length!=0?y.push(a.map(OE).join(" ")):y.push("?")}return Error("hf`"+OE(b)+"`"+y.join(", ")+"`"+OE(b))};
PY5=function(b){var h=void 0,y=void 0;if(b&&b.useClass!==void 0){h=b.useClass;var S=NQ(b.useClass);var F=Fbk.factory(S);S=a$y(S)}else b&&b.useExisting!==void 0?(F=function(a){return a},S=[dEU(te.get(NQ(b.useExisting)))]):b&&b.useFactory!==void 0?(F=b.useFactory,S=jOY(b.useFactory,b.deps)):(y=b.useValue,F=function(){return b.useValue},S=$E4);
return new Lbj(F,S,h,y)};
Zp4=function(b){return new Kbj(te.get(NQ(b.provide)),[PY5(b)],b.multi)};
Myf=function(b){b=oe4(b,[]).map(Zp4);for(var h=new Map,y=0;y<b.length;y++){var S=b[y],F=h.get(S.key.id);if(F){if(S.multiProvider!==F.multiProvider)throw Error("kf`"+F+"`"+S);if(S.multiProvider)for(var a=0;a<S.resolvedFactories.length;a++)F.resolvedFactories.push(S.resolvedFactories[a]);else h.set(S.key.id,S)}else F=void 0,S.multiProvider?F=new Kbj(S.key,S.resolvedFactories.slice(),S.multiProvider):F=S,h.set(S.key.id,F)}return Array.from(h.values())};
oe4=function(b,h){b.forEach(function(y){if(y instanceof neM)h.push({provide:y,useClass:y});else if(y&&typeof y=="object"&&y.provide!==void 0)h.push(y);else if(y instanceof Array)oe4(y,h);else throw Error("gf`"+y);});
return h};
jOY=function(b,h){if(h){var y=h.map(function(S){return[S]});
return h.map(function(S){return XHj(b,S,y)})}return a$y(b)};
a$y=function(b){var h=Fbk.parameters(b);if(!h)return[];if(h.some(function(y){return y==null}))throw SYj(b,h);
return h.map(function(y){return XHj(b,y,h)})};
XHj=function(b,h,y){var S=null,F=!1;if(!Array.isArray(h))return h instanceof HpY?u3f(h.token,F,null):u3f(h,F,null);for(var a=null,P=0;P<h.length;++P){var K=h[P];if(K instanceof neM)S=K;else if(K instanceof HpY)S=K.token;else if(K instanceof Opy)F=!0;else if(K instanceof N$j||K instanceof tyU)a=K}S=NQ(S);if(S!=null)return u3f(S,F,a);throw SYj(b,y);};
u3f=function(b,h,y){return new rDF(te.get(NQ(b)),h,y)};
cDj=function(b,h){for(var y=Array(b.providers.length),S=0;S<b.providers.length;++S){var F=S;if(S<0||S>=b.providers.length)throw Error("jf`"+S);y[F]=h(b.providers[S])}return y};
RZn=function(b){return typeof b==="function"&&Fbk.parameters(b).every(function(h){return!!h})};
I$j=function(b){var h=zZN;DEf.get(b)||DEf.set(b,new h);return DEf.get(b)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(b){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(b)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(b){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(b)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(b,h){var y,S;if(b.contains(h))return!0;b=_.rO(b).querySelectorAll("content,slot");for(y=0;y<b.length;++y){var F=_.rO(b[y]).getDistributedNodes();for(S=0;S<F.length;++S)if(F[S].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(F[S],h))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(b){b.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(b)&&b.preventDefault();b.targetTouches&&(b=b.targetTouches[0],B$f=b.pageX,Wb8=b.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 b=0,h=c5.length;b<h;b++)document.addEventListener(c5[b],_._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 b=0,h=c5.length;b<h;b++)document.removeEventListener(c5[b],_._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(b){var h=_.rO(b).rootTarget;b.type!=="touchmove"&&ADq!==h&&(ADq=h,UEj=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.rO(b).path));if(!UEj.length)return!0;if(b.type==="touchstart")return!1;b=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(b);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(UEj,b.deltaX,b.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(b){for(var h=[],y=b.indexOf(pHI),S=0;S<=y;S++)if(b[S].nodeType===Node.ELEMENT_NODE){var F=b[S],a=F.style;a.overflow!=="scroll"&&a.overflow!=="auto"&&(a=window.getComputedStyle(F));a.overflow!=="scroll"&&a.overflow!=="auto"||h.push(F)}return h};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(b,h,y){if(h||y)for(var S=Math.abs(y)>=Math.abs(h),F=0;F<b.length;F++){var a=b[F];if(S?y<0?a.scrollTop>0:a.scrollTop<a.scrollHeight-a.clientHeight:h<0?a.scrollLeft>0:a.scrollLeft<a.scrollWidth-a.clientWidth)return a}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(b){var h={deltaX:b.deltaX,deltaY:b.deltaY};"deltaX"in b||("wheelDeltaX"in b&&"wheelDeltaY"in b?(h.deltaX=-b.wheelDeltaX,h.deltaY=-b.wheelDeltaY):"wheelDelta"in b?(h.deltaX=0,h.deltaY=-b.wheelDelta):"axis"in b?(h.deltaX=b.axis===1?b.detail:0,h.deltaY=b.axis===2?b.detail:0):b.targetTouches&&(b=b.targetTouches[0],h.deltaX=B$f-b.pageX,h.deltaY=Wb8-b.pageY));return h};
JD5=function(b){this.element=b;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
CYY=function(b){this.element=b;this.color=window.getComputedStyle(b).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");_.rO(this.waveContainer).appendChild(this.wave);eZ4(this)};
RH=function(b,h){for(var y in b)if(y.toLowerCase()===h.toLowerCase())return b[y]};
gen=function(b,h){for(var y in b)if(y.toLowerCase()===h.toLowerCase()){delete b[y];break}};
YYI=function(b){b=_.lR.clone(b);for(var h=0;h<sO8.length;++h){var y=sO8[h],S=RH(b,y);S&&(b["X-Goog-Upload-Header-"+y]=S,gen(b,y))}return b};
T$k=function(b){b=_.lR.clone(b);gen(b,"X-Goog-Upload-Status")};
kQj=function(b){return GQk.some(function(h){return h.test(b)})};
f$I=function(b,h){var y;var S=(y=b.formContent)==null?void 0:y.locale;y=S==null?void 0:S.split("-")[0];S=S&&Vy5.includes(S)?S:y&&Vy5.includes(y)?y:void 0;S=(S!=null?S:"en").replaceAll("-","_").toLowerCase();var F;b=((F=b.initializationData)==null?0:F.useNightlyRelease)?"nightly":"live";var a;return(h==null?0:(a=h.getEnableAlohaBinarySplit)==null?0:a.call(h))?_.Ra(EeY,b):_.Ra(ipI,b,S)};
qYM=function(b,h,y,S){if(wHq&&l$5===h)return wHq;l$5=h;var F=f$I(b,S);return wHq=h.feedbackV2GlobalObject?Promise.resolve(h.feedbackV2GlobalObject):new Promise(function(a,P){var K=_.gB("SCRIPT");_.ZF(K,F);K.onload=function(){h.feedbackV2GlobalObject?a(h.feedbackV2GlobalObject):P(Error("nf"))};
K.onerror=function(){P(Error("of`"+F.toString()))};
y.body.appendChild(K)})};
mEj=function(b,h,y,S){if(xEj&&QOf===h)return xEj;QOf=h;var F=f$I(b,S);return xEj=h.feedbackV2GlobalObject?Promise.resolve(h.feedbackV2GlobalObject):new Promise(function(a,P){var K=_.gB("SCRIPT");_.ZF(K,F);K.onload=function(){h.feedbackV2GlobalObject?a(h.feedbackV2GlobalObject):P(Error("nf"))};
K.onerror=function(){P(Error("of`"+F.toString()))};
y.body.appendChild(K)})};
vey=function(b,h,y,S,F){F=F===void 0?!0:F;var a,P,K,n,X;return _.Z(function(u){switch(u.nextAddress){case 1:return a=Date.now(),u.yield(qYM(b,y,S,h),2);case 2:P=u.yieldResult;if(!(F||((n=b.initializationData)==null?0:n.useNightlyRelease)||((X=b.initializationData)==null?0:X.isLocalServer))){K=P.initializeFeedbackClient(b,a,h);u.jumpTo(3);break}return u.yield(P.initializeFeedbackClientAsync(b,a,h),4);case 4:K=u.yieldResult;case 3:return K.initiateAloha(),u.return(K)}})};
bTj=function(b,h,y,S){var F,a,P;return _.Z(function(K){if(K.nextAddress==1)return F=Date.now(),K.yield(mEj(b,y,S.document,h),2);if(K.nextAddress!=3)return a=K.yieldResult,K.yield(a.initializeFeedbackClientAsync(b,F,h,S),3);P=K.yieldResult;P.initiateAloha();return K.return(P)})};
hKI=function(b,h,y){var S=!0;S=S===void 0?!0:S;var F,a,P,K,n,X,u,O;return _.Z(function(N){F=y||_.S5;if((a=h)==null?0:(K=(P=a).getEnableAlohaBinarySplit)==null?0:K.call(P)){n=F;if(n.isFormOpened)throw new zt;n.isFormOpened=!0;b.callbacks=b.callbacks||{};X=b.callbacks.onClose||function(){};
b.callbacks.onClose=function(t){n.isFormOpened=!1;X(t)};
try{return N.return(bTj(b,h,n,F))}catch(t){throw n.isFormOpened=!1,t;}}else{u=F;if(u.isFormOpened)throw new zt;u.isFormOpened=!0;b.callbacks=b.callbacks||{};O=b.callbacks.onClose||function(){};
b.callbacks.onClose=function(t){u.isFormOpened=!1;O(t)};
try{return N.return(vey(b,h,u,F.document,S))}catch(t){throw u.isFormOpened=!1,t;}}_.g3(N)})};
dBn=function(b,h){return _.Z(function(y){return y.return(new Promise(function(S,F){Number.isInteger(Number(b))&&Number(b)>0?(F=yV4(h!=null?h:"")+"/aloha_form_properties?productId="+b,SR4(F,function(a){a=a.target;var P=null;try{var K=JSON,n=K.stringify;if(a.JSC$9979_xhr_){var X=a.JSC$9979_xhr_.responseText;X.indexOf(")]}'\n")==0&&(X=X.substring(5));var u=(0,_.Dn)(X)}else u=void 0;P=ykI(Fsn,n.call(K,u))}catch(O){n=new Fsn,u=aXq(),u=_.IH(u,13,!1),u=_.IH(u,14,!0),u=_.IH(u,15,!0),u=_.IH(u,20,!1),P=_.U_(n,
1,u)}S(P)},"GET","",{},2E3,!0)):F(Error("pf`"+b))}))})};
yV4=function(b){return kQj(b)?b:"https://www.google.com/tools/feedback"};
PtM=function(b){b=b.match(new RegExp(jBY,"gi"))||[];b=_.L(b);for(var h=b.next();!h.done;h=b.next()){h=h.value;a:{var y=_.L($BY);for(var S=y.next();!S.done;S=y.next())if(S.value.test(h)){y=!1;break a}y=!0}if(!y)a:{y=_.L(Lsn);for(S=y.next();!S.done;S=y.next())if(S.value.test(h)){y=!0;break a}y=!1}if(y)return!0}return!1};
Ksk=function(b,h){var y={},S=Object.keys(b);S=_.L(S);for(var F=S.next();!F.done;F=S.next())F=F.value,y[F]=h(F,b[F]);return y};
ZT5=function(b){switch(b){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"}};
MQj=function(b){if(window.crypto&&window.crypto.getRandomValues)try{var h=Array(b),y=new Uint8Array(b);window.crypto.getRandomValues(y);for(var S=0;S<h.length;S++)h[S]=y[S];return h}catch(a){}h=Array(b);for(y=0;y<b;y++){S=Date.now();for(var F=0;F<S%23;F++)h[y]=Math.random();h[y]=Math.floor(Math.random()*256)}if(oqr)for(y=1,S=0;S<oqr.length;S++)h[y%b]^=h[(y-1)%b]/4^oqr.charCodeAt(S),y++;return h};
B5=function(b){b=MQj(b);for(var h=[],y=0;y<b.length;y++)h.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(b[y]&63));return h.join("")};
nq8=function(){var b=_.S5.ytLoggingDocDocumentNonce_;b||(b=B5(16),_.HL("ytLoggingDocDocumentNonce_",b));return b};
HTF=function(b){b&&_.qi("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:XIF,clientScreenNonce:b})};
uKY=function(b){return _.QC("client-screen-nonce-store",{})[b===void 0?0:b]};
OTk=function(b,h){h=h===void 0?0:h;var y=_.QC("client-screen-nonce-store");y||(y={},_.xZ("client-screen-nonce-store",y));y[h]=b};
N5q=function(b){b=b===void 0?0:b;return b===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+b};
tQY=function(b){return _.QC(N5q(b===void 0?0:b))};
_.Ae=function(b){return(b=tQY(b===void 0?0:b))?new _.W5({veType:b,youtubeData:void 0,jspbYoutubeData:void 0}):null};
rVj=function(){var b=_.QC("csn-to-ctt-auth-info");b||(b={},_.xZ("csn-to-ctt-auth-info",b));return b};
cVI=function(){return Object.values(_.QC("client-screen-nonce-store",{})).filter(function(b){return b!==void 0})};
_.UE=function(b){b=uKY(b===void 0?0:b);if(!b&&!_.m$("USE_CSN_FALLBACK",!0))return null;b||(b="UNDEFINED_CSN");return b?b:null};
zKk=function(b){for(var h=_.L(Object.values(RKj)),y=h.next();!y.done;y=h.next())if(_.UE(y.value)===b)return!0;return!1};
DBy=function(b,h,y){var S=rVj();(y=_.UE(y))&&delete S[y];h&&(S[b]=h)};
Je=function(b){return rVj()[b]};
_.e3=function(b,h,y,S){y=y===void 0?0:y;if(b!==uKY(y)||h!==_.QC(N5q(y)))if(DBy(b,S,y),OTk(b,y),_.xZ(N5q(y),h),h=function(){setTimeout(function(){HTF(b)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(h)}catch(F){h()}else h()};
IXr=function(b,h){h=h===void 0?"":h;var y=[],S;for(S in b)if(b.hasOwnProperty(S)){var F=h!==""?h+"."+S:S;typeof b[S]==="object"?y.push.apply(y,_.f$(IXr(b[S],F))):y.push([F,b[S]])}y.sort();return y};
_.gO=function(b){var h=_.x$.apply(1,arguments);if(!Cx(b)||h.some(function(S){return!Cx(S)}))throw Error("qf");
h=_.L(h);for(var y=h.next();!y.done;y=h.next())B5M(b,y.value)};
B5M=function(b,h){for(var y in h)if(Cx(h[y])){if(y in b&&!Cx(b[y]))throw Error("rf");y in b||(b[y]={});B5M(b[y],h[y])}else if(WsM(h[y])){if(y in b&&!WsM(b[y]))throw Error("sf");y in b||(b[y]=[]);AVk(b[y],h[y])}else b[y]=h[y];return b};
AVk=function(b,h){h=_.L(h);for(var y=h.next();!y.done;y=h.next())y=y.value,Cx(y)?b.push(B5M({},y)):WsM(y)?b.push(AVk([],y)):b.push(y);return b};
Cx=function(b){return typeof b==="object"&&!Array.isArray(b)};
WsM=function(b){return typeof b==="object"&&Array.isArray(b)};
pIU=function(b){for(var h=_.L(Object.entries(UBk)),y=h.next();!y.done;y=h.next())if(y=_.L(y.value),y.next(),y=y.next().value,y==="SLI_STATUS_"+b)return y;return"SLI_STATUS_UNKNOWN"};
_.sE=function(b,h,y,S){return JVj(b,h,function(){return new _.eK8(b,h,y,S)})};
_.CtN=function(){return _.sE("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
gqF=function(){return _.sE("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
Yj=function(){return _.sE("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
sBf=function(){return _.sE("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
YRj=function(){return _.sE("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
T5N=function(){return _.sE("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
VQF=function(b){b&&(b.dataset?b.dataset[G9j()]="true":_.n$([_.r1(k9Y)],b,"data-loaded","true".toString()))};
Eqn=function(b){return b?b.dataset?b.dataset[G9j()]:b.getAttribute("data-loaded"):null};
G9j=function(){return iTf.loaded||(iTf.loaded="loaded".replace(/\-([a-z])/g,function(b,h){return h.toUpperCase()}))};
_.Tt=function(b,h,y){fXU(b,h,y===void 0?null:y)};
_.lXI=function(b,h){b&&h&&(b=""+_.mM(h),(b=wIr[b])&&_.p38(b))};
fXU=function(b,h,y){y=y===void 0?null:y;var S=_.qRI(typeof b==="string"?b:b.toString()),F=document.getElementById(S),a=F&&Eqn(F),P=F&&!a;a?h&&h():(h&&(a=_.zE(S,h),h=""+_.mM(h),wIr[h]=a),P||(F=xBn(b,S,function(){Eqn(F)||(VQF(F),_.J6I(S),_.zn(function(){_.Cik(S)},0))},y)))};
xBn=function(b,h,y,S){S=S===void 0?null:S;var F=_.gB("SCRIPT");F.id=h;F.onload=function(){y&&setTimeout(y,0)};
F.onreadystatechange=function(){switch(F.readyState){case "loaded":case "complete":F.onload()}};
S&&F.setAttribute("nonce",S);_.ZF(F,typeof b==="string"?_.wB(b):b);b=document.getElementsByTagName("head")[0]||document.body;b.insertBefore(F,b.firstChild);return F};
_.qRI=function(b){var h=document.createElement("a");mA(h,b);return"js-"+Gt(h.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
QBI=function(b){var h=_.QC("INNERTUBE_HOST_OVERRIDE");h&&(b=String(h)+String(_.kj(b)));return b};
mBk=function(b){var h={};_.r("json_condensed_response")&&(h.prettyPrint="false");return b=yLr(b,h)};
_.VB=function(b){return Ml(b)?"same-origin":"include"};
_.EE=function(b){return Ml(b)?"same-origin":"cors"};
iX=function(b,h,y){y=y===void 0?{}:y;b={method:h===void 0?"POST":h,mode:_.EE(b),credentials:_.VB(b)};h={};for(var S=_.L(Object.keys(y)),F=S.next();!F.done;F=S.next())F=F.value,y[F]&&(h[F]=y[F]);Object.keys(h).length>0&&(b.headers=h);return b};
_.fx=function(b,h){h=h===void 0?{}:h;return"service:"+b+"/"+Object.keys(h).sort().map(function(y){return y+":"+h[y]}).join("/")};
vq4=function(b){var h,y,S,F;b=(h=_.c(b,_.wO))==null?void 0:(y=h.watchEndpointSupportedOnesieConfig)==null?void 0:(S=y.html5PlaybackOnesieConfig)==null?void 0:(F=S.commonConfig)==null?void 0:F.url;if(!b)return[];h=new _.lX(b);return h.JSC$10215_domain_?["https://"+h.JSC$10215_domain_+"/generate_204"]:[]};
_.yQr=function(){return bEr()||jU5()||hIf&&v9("version/")?!0:_.QC("EOM_VISITOR_DATA")?!1:!0};
SpN=function(b){var h=b.docid||b.video_id||b.videoId||b.id;if(h)return h;h=b.raw_player_response;h||(b=b.player_response)&&(h=JSON.parse(b));return h&&h.videoDetails&&h.videoDetails.videoId||null};
F85=function(b){return b.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
qQ=function(b){return!isNaN(Number(b))&&!_.$U(b)};
_.QB=function(b,h,y,S){S=S===void 0?!0:S;var F=_.QC("VALID_SESSION_TEMPDATA_DOMAINS",[]),a=_.ZI(window.location.href);a&&F.push(a);a=_.ZI(b);if(_.sj(F,a)||!a&&_.aq(b,"/"))if(F=document.createElement("a"),mA(F,b),b=F.href)if(b=_.kj(b),b=_.xj(b))S&&!h.csn&&(h.itct||h.ved)&&(h=Object.assign({csn:_.UE()},h)),y?(y=parseInt(y,10),isFinite(y)&&y>0&&aGr(b,h,y)):aGr(b,h)};
jbU=function(b){var h=_.QC("VALID_SESSION_TEMPDATA_DOMAINS",[]),y=_.ZI(window.location.href);y&&h.push(y);y=_.ZI(b);if(!(_.sj(h,y)||!y&&_.aq(b,"/")))return null;b=_.kj(b);(b=_.xj(b))?(b=def(b),b=(b=_.Cn.get(b,void 0)||null)?_.aA(b):{}):b=null;return b};
aGr=function(b,h,y){b=def(b);h=h?_.pn(h):"";y=y||5;_.yQr()&&_.gH(b,h,y)};
def=function(b){for(var h=_.L($e5),y=h.next();!y.done;y=h.next())b=_.mp(b,y.value);return"ST-"+Gt(b).toString(36)};
_.L8U=function(b){if(b.requestFullscreen)b=b.requestFullscreen(void 0);else if(b.webkitRequestFullscreen)b=b.webkitRequestFullscreen();else if(b.mozRequestFullScreen)b=b.mozRequestFullScreen();else if(b.msRequestFullscreen)b=b.msRequestFullscreen();else if(b.webkitEnterFullscreen)b=b.webkitEnterFullscreen();else return Promise.reject(Error("Bf"));return b instanceof Promise?b:Promise.resolve()};
_.bE=function(b){var h;_.Oty(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.v5()==b&&(h=document):h=b;if(h&&(b=_.Oty(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],h))){b.call(h)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.v5=function(){var b=b===void 0?!1:b;var h=_.Oty(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(b)for(;h&&h.shadowRoot;)h=h.shadowRoot.fullscreenElement;return h?h:null};
_.hL=function(b,h){h=h===void 0?!0:h;b.addEventListener("wheel",PVj);b.overscrollConfig={cooldown:h}};
_.yh=function(b){b.overscrollConfig=void 0;b.removeEventListener("wheel",PVj)};
PVj=function(b){var h=b.deltaY,y=b.target,S=null;if(window.Polymer&&window.Polymer.Element){if(y=b.path||b.composedPath&&b.composedPath()){y=_.L(y);for(var F=y.next();!F.done&&(F=F.value,!K8j(F,h));F=y.next())if(F.overscrollConfig){S=F;break}}}else for(;y&&!K8j(y,h);){if(y.overscrollConfig){S=y;break}y=y.parentElement}S&&(h=S.overscrollConfig,h.cooldown?(S=b.deltaY,y=h.lastDeltaY||0,h.lastDeltaY=S,F=h.lastStopped||0,y&&F&&y>0==S>0?Math.abs(y)>=Math.abs(S)?(S=F+1200,y=!1):(S=F+600,y=!0):(S=Date.now()+
600,y=!0),S>Date.now()&&(b.preventDefault(),y&&(h.lastStopped=Date.now()))):b.preventDefault())};
K8j=function(b,h){return h<0&&b.scrollTop>0||h>0&&b.scrollTop<b.scrollHeight-b.clientHeight-1?(b=getComputedStyle(b).overflowY,b=="auto"||b=="scroll"):!1};
_.Sx=function(b,h,y,S){S||(S={bubbles:!0,cancelable:!1,composed:!0});y!==null&&y!==void 0&&(S.detail=y);var F=new CustomEvent(h,S);_.r("untrack_fire_custom_event_killswitch")?b.dispatchEvent(F):_.Ar(function(){return void b.dispatchEvent(F)});
return F};
ZEr=function(b){var h=window,y=function(S){h.removeEventListener("yt-navigate-start",y);return b.call(h,S)};
h.addEventListener("yt-navigate-start",y,void 0)};
_.F8=function(b,h,y,S){h=new oLq(h,!(S===void 0||!S),y);_.Sx(b,"yt-action",h);return h.returnValue};
_.aw=function(b,h,y){return _.F8(b,h,y,!0)};
_.jx=function(b,h,y,S){h&&h.length&&h.forEach(function(F){var a=XCM(F);a&&(_.r("handle_service_request_actions")&&F.commandMetadata&&F.commandMetadata.webCommandMetadata&&F.commandMetadata.webCommandMetadata.sendPost?_.dh(y?y:b,[F]):_.aw(b,a,[F,y,S]))})};
_.dh=function(b,h){var y=[b];h&&y.push.apply(y,h);h=_.F8(b,"yt-service-request",y);return h.length>0&&(h=h[0],_.Sx(b,"yt-service-request-sent",h),h&&h.ajaxPromise)?(h.ajaxPromise.then(function(S){_.Sx(b,"yt-service-request-completed",S)},function(S){_.Sx(b,"yt-service-request-error",{error:S,
params:y})},b),h.ajaxPromise):_.$p()};
_.PT=function(b,h){if(_.r("handle_service_request_actions"))_.jx(h,b,h);else{b=_.L(b);for(var y=b.next();!y.done;y=b.next()){y=y.value;var S=void 0;((S=_.c(y,_.LI))==null?0:S.commands)?_.PT(_.c(y,_.LI).commands,h):(S=void 0,((S=_.c(y,_.KI))==null?0:S.actions)?_.PT(_.c(y,_.KI).actions,h):(S=void 0,((S=_.c(y.commandMetadata,_.ZW))==null?0:S.sendPost)?_.dh(h,[y]):_.jx(h,[y],h)))}}};
_.nLY=function(b,h,y){h=h===void 0?{}:h;typeof h==="function"&&(h={callback:h});y||h._c&&h._c.jsl&&h._c.jsl.h||_.lR.extend(h,{_c:{jsl:{h:_.QC("GAPI_HINT_PARAMS")}}});(h.gapiHintOverride||_.QC("GAPI_HINT_OVERRIDE"))&&(y=_.dH(document.location.href).gapi_jsh)&&_.lR.extend(h,{_c:{jsl:{h:y}}});Mpq(b,h)};
_.Mt=function(b,h,y){h=h===void 0?{}:h;b=(b=b in ow?ow[b]:y)||"";y={};for(var S in h){y={key$jscomp$844:y.key$jscomp$844};y.key$jscomp$844=S;var F=function(a){return function(){return String(h[a.key$jscomp$844])}}(y);
b=b.replace(new RegExp("\\$\\{"+y.key$jscomp$844+"\\}","gi"),F);b=b.replace(new RegExp("\\$"+y.key$jscomp$844,"gi"),F)}return b};
_.nI=function(b,h){return XJY(b in ow?ow[b]:{},h)};
XJY=function(b,h){var y=_.QC("I18N_PLURAL_RULES");y||(y=function(S){return S==1?"one":"other"});
return(b=b["case"+h]||b[y(h)])?b.replace("#",h.toString()):h+""};
OEI=function(b){var h=HEN(b),y=document.getElementById(h),S=y&&Eqn(y);S||y&&!S||(y=uVI(b,h,function(){if(!Eqn(y)){VQF(y);_.J6I(h);var F=_.X8(_.Cik,h);_.zn(F,0)}}))};
uVI=function(b,h,y){var S=document.createElement("link");S.id=h;S.onload=function(){y&&setTimeout(y,0)};
b=_.wB(b);_.Xg(S,b,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(S);return S};
HEN=function(b){var h=_.gB("A");mA(h,k$(b));return"css-"+Gt(h.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.tpk=function(b){var h=NJY();b!==h&&(h=_.HT(),!_.r("web_autonav_allow_off_by_default")&&b||_.uE(0,141,!0),_.uE(0,140,!b),h.save())};
NJY=function(){var b=_.HT();return _.r("web_autonav_allow_off_by_default")&&!b.getFlag(141)&&_.QC("AUTONAV_OFF_BY_DEFAULT")?!1:!b.getFlag(140)};
rQ5=function(b,h){var y,S;b=((y=b.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(S=y.videoAuthorizationToken)==null?void 0:S.credentialTransferTokens)||[];for(y=0;y<b.length;++y)if(b[y].scope===h)return b[y].token||void 0};
cQn=function(b){for(var h=0,y=0;y<b.length;y++)h=h*31+b.charCodeAt(y),y<b.length-1&&(h%=0x800000000000);return h%1E5};
_.Oa=function(b){return _.hj("ytcsi."+(b||"")+"data_")||RI8(b)};
_.zIy=function(b){b=_.Oa(b);b.metadata||(b.metadata={});return b.metadata};
_.Dek=function(b){b=_.Oa(b);b.tick||(b.tick={});return b.tick};
_.Nt=function(b){b=_.Oa(b);if(b.gel){var h=b.gel;h.gelInfos||(h.gelInfos={});h.gelTicks||(h.gelTicks={})}else b.gel={gelTicks:{},gelInfos:{}};return b.gel};
_.IGj=function(b){b=_.Nt(b);b.gelInfos||(b.gelInfos={});return b.gelInfos};
BJ4=function(b){var h=_.Oa(b).nonce;h||(h=B5(16),_.Oa(b).nonce=h);return h};
RI8=function(b){var h={tick:{},info:{}};_.HL("ytcsi."+(b||"")+"data_",h);return h};
W8I=function(){var b=_.hj("ytcsi.debug");b||(b=[],_.HL("ytcsi.debug",b),_.HL("ytcsi.reference",{}));return b};
_.tL=function(b){b=b||"";var h=AQY();if(h[b])return h[b];var y=W8I(),S={timerName:b,info:{},tick:{},span:{},jspbInfo:[]};y.push(S);return h[b]=S};
UeN=function(b){b=b||"";var h=AQY();h[b]&&delete h[b];var y=W8I(),S={timerName:b,info:{},tick:{},span:{},jspbInfo:[]};y.push(S);h[b]=S};
AQY=function(){var b=_.hj("ytcsi.reference");if(b)return b;W8I();return _.hj("ytcsi.reference")};
_.JQr=function(b){return pJk[b]||"LATENCY_ACTION_UNKNOWN"};
sbI=function(b,h,y){y=y===void 0?{}:y;var S=!1;_.m$("ytLoggingEventsDefaultDisabled",!1)&&(S=!0);S=S?null:lF;y=y===void 0?{}:y;var F=Math.round(y.timestamp||(0,_.NO)());_.GE(h,1,F<Number.MAX_SAFE_INTEGER?F:0);F=new eI4;if(y.lact)_.GE(F,1,isFinite(y.lact)?y.lact:-1);else if(y.timestamp)_.GE(F,1,-1);else{var a=_.td();_.GE(F,1,isFinite(a)?a:-1)}if(y.sequenceGroup&&!_.r("web_gel_sequence_info_killswitch")){a=y.sequenceGroup;var P=i9f(a),K=new CVF;_.GE(K,2,P);_.kb(K,1,a);_.U_(F,3,K);y.endOfSequence&&delete gLF[y.sequenceGroup]}_.U_(h,
33,F);(y.sendIsolatedPayload?mJk:vS4)(b,{endpoint:"log_event",payload:h,cttAuthInfo:y.cttAuthInfo,dangerousLogToVisitorSession:y.dangerousLogToVisitorSession},S)};
_.cT=function(){return(_.r("csi_use_time_origin")||_.r("csi_use_time_origin_tvhtml5"))&&_.rh.timeOrigin?Math.floor(_.rh.timeOrigin):_.rh.timing.navigationStart};
_.Ypj=function(b,h){_.Rw("_start",b,h)};
_.zY=function(b,h){if(!_.r("web_csi_action_sampling_enabled")||!_.Oa(h).actionDisabled){var y=_.tL(h||"");_.gO(y.info,b);b.loadType&&(y=b.loadType,_.zIy(h).loadType=y);_.gO(_.IGj(h),b);y=BJ4(h);h=_.Oa(h).cttAuthInfo;TJk().info(b,y,h)}};
GmN=function(){var b,h,y,S;return((S=_.H9().resolve(_.XS(Eu))==null?void 0:(b=iF())==null?void 0:(h=b.loggingHotConfig)==null?void 0:(y=h.csiConfig)==null?void 0:y.debugTicks)!=null?S:[]).map(function(F){return Object.values(F)[0]})};
_.Rw=function(b,h,y){if(!_.r("web_csi_action_sampling_enabled")||!_.Oa(y).actionDisabled){var S=BJ4(y),F;if(F=_.r("web_csi_debug_sample_enabled")&&S){(_.H9().resolve(_.XS(Eu))==null?0:iF())&&!kmN&&(kmN=!0,_.Rw("gcfl",(0,_.NO)(),y));var a,P,K;F=(_.H9().resolve(_.XS(Eu))==null?void 0:(a=iF())==null?void 0:(P=a.loggingHotConfig)==null?void 0:(K=P.csiConfig)==null?void 0:K.debugSampleWeight)||0;if(a=F!==0)b:{a=GmN();if(a.length>0)for(P=0;P<a.length;P++)if(b===a[P]){a=!0;break b}a=!1}a?(F=cQn(S)%F!==0,
_.Oa(y).debugTicksExcludedLogged||(a={},a.debugTicksExcluded=F,_.zY(a,y)),_.Oa(y).debugTicksExcludedLogged=!0):F=!1}if(!F){b[0]!=="_"&&Vpq(b,y,h);F=_.tL(y||"");F.tick[b]=h||(0,_.NO)();if(F.callback&&F.callback[b])for(F=_.L(F.callback[b]),a=F.next();!a.done;a=F.next())a=a.value,a();F=_.Nt(y);F.gelTicks&&(F.gelTicks[b]=!0);a=_.Dek(y);F=h||(0,_.NO)();_.r("log_repeated_ytcsi_ticks")?b in a||(a[b]=F):a[b]=F;a=_.Oa(y).cttAuthInfo;b==="_start"?TJk().baseline(S,h,a):TJk().tick(b,S,h,a);_.ELn(y);return F}}};
Vpq=function(b,h,y){if(_.rh.mark)if(b.startsWith("mark_")||(b="mark_"+b),h&&(b+=" ("+h+")"),y===void 0||_.r("web_csi_disable_alt_time_performance_mark"))_.rh.mark(b);else{y=_.r("csi_use_performance_navigation_timing")?y-_.rh.timeOrigin:y-(_.rh.timeOrigin||_.rh.timing.navigationStart);try{_.rh.mark(b,{startTime:y})}catch(S){}}};
iEq=function(){var b,h=(b=_.rh.getEntriesByType)==null?void 0:b.call(_.rh,"mark");h&&h.forEach(function(y){if(y.name.startsWith("mark_")){var S;(S=_.rh.clearMarks)==null||S.call(_.rh,y.name)}})};
_.fGM=function(){switch(ubY()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.wJf=function(b){var h={},y=function(a,P,K){P=P.match("_rid")?P.split("_rid")[0]:P;typeof K==="number"&&(K=JSON.stringify(K));a.requestIds?a.requestIds.push({endpoint:P,id:K}):a.requestIds=[{endpoint:P,id:K}]};
b=_.L(Object.entries(b));for(var S=b.next();!S.done;S=b.next()){var F=_.L(S.value);S=F.next().value;F=F.next().value;switch(S){case "GetBrowse_rid":y(h,S,F);break;case "GetGuide_rid":y(h,S,F);break;case "GetHome_rid":y(h,S,F);break;case "GetPlayer_rid":y(h,S,F);break;case "GetSearch_rid":y(h,S,F);break;case "GetSettings_rid":y(h,S,F);break;case "GetTrending_rid":y(h,S,F);break;case "GetWatchNext_rid":y(h,S,F);break;case "yt_red":h.isRedSubscriber=!!F;break;case "yt_ad":h.isMonetized=!!F}}return h};
_.lGj=function(b){var h=_.Iw("aft",b);if(h)return h;h=_.QC((b||"")+"TIMING_AFT_KEYS",["ol"]);for(var y=h.length,S=0;S<y;S++){var F=_.Iw(h[S],b);if(F)return F}return NaN};
_.qpq=function(b,h){_.HL("ytglobal.timing"+(h||"")+"ready_",b)};
_.Iw=function(b,h){if(b=_.Dek(h)[b])return typeof b==="number"?b:b[b.length-1]};
_.ELn=function(b){var h=_.Iw("_start",b),y=_.lGj(b),S=!xeI;h&&y&&S&&(fT4(Qbj,new me5(Math.round(y-h),b)),xeI=!0)};
bjI=function(b){RI8(b);vLM();iEq();b||(_.QC("TIMING_ACTION")&&_.xZ("PREVIOUS_ACTION",_.QC("TIMING_ACTION")),_.xZ("TIMING_ACTION",""))};
_.hMy=function(b){b=b===void 0?{}:b;_.bN(function(){BT();UeN();bjI();_.qpq(!1);b.cttAuthInfo&&(_.Oa().cttAuthInfo=b.cttAuthInfo);_.xZ("TIMING_AFT_KEYS",[]);b.isHot?_.WT({loadType:"hot"}):_.WT({loadType:"warm"});_.xZ("TIMING_ACTION","");delete _.QC("TIMING_INFO",{}).yt_lt;_.bN(_.Ypj)(b.startTime,void 0)})()};
_.Ua=function(b,h,y,S){h=h===void 0?{}:h;_.bN(function(){var F=y?y:b;AL(F);var a=h.sampleRate;if(!_.r("web_csi_action_sampling_enabled")||a===void 0||a<=1)a=!1;else{var P=BJ4(F);a=cQn(P)%a!==0}a&&(_.Oa(F).actionDisabled=!0);_.tL(F||"").info.actionType=b;h.cttAuthInfo&&(_.Oa(F).cttAuthInfo=h.cttAuthInfo);_.xZ(F+"TIMING_ACTION",b);_.bN(_.Ypj)(h.startTime,F);a={actionType:S||_.JQr(b)};h.logPreviousAction&&(a.previousAction=_.JQr(_.QC("TIMING_ACTION")));(P=_.UE())&&P!=="UNDEFINED_CSN"&&(a.clientScreenNonce=
P);_.WT(a,F);_.qpq(!0,F)})()};
AL=function(b){_.bN(function(){BT(b);UeN(b);bjI(b)})()};
yTU=function(){_.bN(function(){var b=[],h;for(h in _.hj("ytcsi.".slice(0,-1)))h.endsWith("data_")&&b.push(h.slice(0,-5));b=_.L(b);for(h=b.next();!h.done;h=b.next())AL(h.value);BT()})()};
_.FJj=function(b){return _.bN(function(){return _.SUq("_start",b)})()};
_.WT=function(b,h,y){_.bN(_.zY)(b,h,y===void 0?!1:y)};
_.pI=function(b,h,y){return _.bN(_.Rw)(b,h,y)};
_.SUq=function(b,h){return _.bN(function(){var y=_.Dek(h);return b in y})()};
duf=function(b){if(!_.r("universal_csi_network_ticks"))return"";b=_.W9(b)||"";for(var h=Object.keys(aen),y=0;y<h.length;y++){var S=h[y];if(b.includes(S))return S}return""};
$un=function(b){if(!_.r("universal_csi_network_ticks"))return function(){};
var h=aen[b];return h?(_.JL(h),function(){var y=_.r("universal_csi_network_ticks")?(y=jkn[b])?_.JL(y):!1:!1;return y}):function(){}};
_.JL=function(b,h,y){return _.bN(function(){if(_.SUq(b,y))return!1;_.pI(b,h,y);return!0})()};
_.ex=function(b,h,y){_.bN(function(){if(!_.FJj(y)||_.SUq(b,y))return!1;_.pI(b,h,y);return!0})()};
_.CI=function(b){return _.bN(_.Iw)(b,void 0)};
BT=function(b){_.FJj(b)&&_.pI("aa",void 0,b)};
_.oa4=function(b,h,y,S,F,a,P,K,n,X){var u=LJ8();a=new _.W5({veType:h,youtubeData:a,jspbYoutubeData:K});X=Yp({automatedLogEventSource:X},u);F&&(X.cttAuthInfo=F);F={csn:u,pageVe:a.getAsJson()};_.r("expectation_logging")&&n&&n.screenCreatedLoggingExpectations&&(F.screenCreatedLoggingExpectations=n.screenCreatedLoggingExpectations);y&&y.visualElement?(F.implicitGesture={parentCsn:y.clientScreenNonce,gesturedVe:y.visualElement.getAsJson()},P&&(F.implicitGesture.gestureType=P)):y&&_.vX(new _.Gn("newScreen() parent element does not have a VE - rootVe",
h));S&&(F.cloneCsn=S);b?wd("screenCreated",F,b,X):_.qi("screenCreated",F,X);fT4(vgj,new PCU(u));TY.clear();KJf.clear();Zjn.clear();return u};
GY=function(b,h,y,S,F,a){a=a===void 0?{}:a;Mg8(b,h,y,[S],F===void 0?!1:F,a)};
Mg8=function(b,h,y,S,F,a){F=F===void 0?!1:F;a=a===void 0?{}:a;Object.assign(a,Yp({cttAuthInfo:Je(h)||void 0},h));for(var P=_.L(S),K=P.next();!K.done;K=P.next()){K=K.value;var n=K.getAsJson();(_.lR.isEmpty(n)||!n.trackingParams&&!n.veType)&&_.vX(Error("Cf"));if(_.r("no_client_ve_attach_unless_shown")){var X=naN(K,h);if(n.veType&&!KJf.has(X)&&!Zjn.has(X)&&!F){if(!_.r("il_attach_cache_limit")||TY.size<1E3){TY.set(X,[b,h,y,K]);return}_.r("il_attach_cache_limit")&&TY.size>1E3&&_.vX(new _.Gn("IL Attach cache exceeded limit"))}K=
naN(y,h);TY.has(K)?XA8(y,h):Zjn.set(K,!0)}}S=S.filter(function(u){u.csn!==h?(u.csn=h,u=!0):u=!1;return u});
y={csn:h,parentVe:y.getAsJson(),childVes:_.qz(S,function(u){return u.getAsJson()})};
h==="UNDEFINED_CSN"?kp("visualElementAttached",a,y):b?wd("visualElementAttached",y,b,a):_.qi("visualElementAttached",y,a)};
uIn=function(b,h,y,S,F,a,P){HjY(b,h,y,F,P)};
HjY=function(b,h,y,S,F){OjY(y,h);F=Yp({cttAuthInfo:Je(h)||void 0,automatedLogEventSource:F},h);y={csn:h,ve:y.getAsJson(),eventType:1};S&&(y.clientData=S);h==="UNDEFINED_CSN"?kp("visualElementShown",F,y):b?wd("visualElementShown",y,b,F):_.qi("visualElementShown",y,F)};
N2M=function(b,h,y,S){OjY(y,h);var F=Yp({cttAuthInfo:Je(h)||void 0,automatedLogEventSource:void 0},h);y={csn:h,ve:y.getAsJson(),eventType:4};S&&(y.clientData=S);h==="UNDEFINED_CSN"?kp("visualElementShown",F,y):b?wd("visualElementShown",y,b,F):_.qi("visualElementShown",y,F)};
tgn=function(b,h,y,S,F,a){var P=(S=S===void 0?!1:S)?16:8;S=Yp({cttAuthInfo:Je(h)||void 0,endOfSequence:S,automatedLogEventSource:a},h);y={csn:h,ve:y.getAsJson(),eventType:P};F&&(y.clientData=F);h==="UNDEFINED_CSN"?kp("visualElementHidden",S,y):b?wd("visualElementHidden",y,b,S):_.qi("visualElementHidden",y,S)};
cTU=function(b,h,y,S,F,a){rTN(b,h,y,void 0,S,F,a)};
rTN=function(b,h,y,S,F,a,P){OjY(y,h);S=S||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";a=Yp({cttAuthInfo:Je(h)||void 0,automatedLogEventSource:P},h);y={csn:h,ve:y.getAsJson(),gestureType:S};F&&(y.clientData=F);h==="UNDEFINED_CSN"?kp("visualElementGestured",a,y):b?wd("visualElementGestured",y,b,a):_.qi("visualElementGestured",y,a)};
RMk=function(b,h,y,S){var F=Yp({cttAuthInfo:Je(h)||void 0},h);y={csn:h,ve:y.getAsJson(),clientData:S};h==="UNDEFINED_CSN"?kp("visualElementStateChanged",F,y):b?wd("visualElementStateChanged",y,b,F):_.qi("visualElementStateChanged",y,F)};
zMU=function(){var b=MQj(16);for(var h=[],y=0;y<b.length;y++)h.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(b[y]&63));return h.join("")};
kp=function(b,h,y){Dun.push({payloadName:b,payload:y,jspbPayload:void 0,options:h});Iej||(Iej=hqn())};
mCy=function(b){if(Dun){for(var h=_.L(Dun),y=h.next();!y.done;y=h.next())y=y.value,y.payload&&(y.payload.csn=b.csn,_.qi(y.payloadName,y.payload,y.options));Dun.length=0}Iej=0};
naN=function(b,h){return""+b.getAsJson().veType+b.getAsJson().veCounter+h};
OjY=function(b,h){if(_.r("no_client_ve_attach_unless_shown")){var y=naN(b,h);KJf.set(y,!0);XA8(b,h)}};
XA8=function(b,h){b=naN(b,h);TY.has(b)&&(h=TY.get(b)||[],GY(h[0],h[1],h[2],h[3],!0),TY.delete(b))};
Yp=function(b,h){_.r("log_sequence_info_on_gel_web")&&(b.sequenceGroup=h);return b};
_.Vh=function(b,h,y){_.bN(GY)(void 0,b,h,y)};
_.Ea=function(b,h,y){_.bN(Mg8)(void 0,b,h,y)};
_.iE=function(b,h){_.bN(uIn)(void 0,b,h,void 0,void 0,void 0)};
_.fI=function(b,h,y){_.bN(function(){_.FS(h,function(S){N2M(void 0,b,S,y)})})()};
_.wh=function(b,h,y,S){_.bN(function(){_.FS(h,function(F){tgn(void 0,b,F,y,S)})})()};
_.lE=function(b,h,y){_.bN(cTU)(void 0,b,h,y,void 0)};
_.qt=function(b,h,y,S){_.bN(rTN)(void 0,b,h,y,S,void 0)};
_.xp=function(b,h,y){_.bN(RMk)(void 0,b,h,y,void 0)};
B2N=function(b,h){Qh.set(b,h)};
WJM=function(b){my.initialized=!0;my.sessionId=b.sessionId||"";my.enabledSpans=b.enabledSpans;b.shouldSampleFn!=null&&(my.shouldSampleFn=b.shouldSampleFn)};
ATF=function(b){my.processors.push(b)};
vT=function(b){return my.initialized?my.enabledSpans?my.enabledSpans[b]:!0:!1};
eMI=function(b,h,y){return vT(b)&&my.shouldSampleFn(b,h,Uun)?new pA4(b,h,y):JTf};
bS=function(b,h,y){if(typeof y==="function"){var S=y;y=void 0}var F=eMI(b,h,y),a;if(((a=y)==null?void 0:a.endTime)!=null)return S&&_.vX(Error("Gf")),F;var P;F!==JTf&&((P=y)==null?void 0:P.active)!==!1&&my.stack.push(F);if(!S)return F;if(F===JTf)return S(F);try{var K=S(F);if(K instanceof Promise)return K.then(function(n){F.end();return n},function(n){F.end("SPAN_STATUS_ERROR");
throw n;});
F.end();return K}catch(n){throw F.end("SPAN_STATUS_ERROR"),n;}};
CC8=function(){yy.subscribe("handleError",function(b){try{for(var h in ht)try{var y=ht[h];typeof ht[h]==="function"&&(y=y());b.params[h]=typeof ht[h]==="object"?JSON.stringify(y):String(y)}catch(S){_.vX(S)}}catch(S){_.vX(S)}})};
gaU=function(){};
skj=function(b,h){var y=Object.keys(b);b=new _.Gn("[Command Handler] "+h,{filteredCommandNames:y,originalCommand:b});_.QT(b)};
YUN=function(b,h){skj(b,h+" was called but not set")};
T2I=function(b){return function(){return new b}};
yE=function(b){return function(){return _.H9().resolve(b)}};
Gcq=function(b,h){var y=_.c(b,_.aL);if(y&&(y=h[y.signal]))return y();b=_.L(Object.keys(b));for(y=b.next();!y.done;y=b.next())if(y=y.value,h[y]&&(y=h[y]))return y()};
_.S7=function(b,h,y,S){return{browseEndpoint:{browseId:b},commandMetadata:{webCommandMetadata:{url:h,rootVe:y,webPageType:S===void 0?"WEB_PAGE_TYPE_BROWSE":S}}}};
kcn=function(b,h,y){var S=h=h===void 0?0:h;y=y===void 0?0:y;var F=y-S;return _.FF(b,"PPSV",void 0,void 0,(F>600?0:F<60||y<=0||S/y>.9)?0:h)};
_.FF=function(b,h,y,S,F){var a="/watch?v="+b;b={videoId:b};h&&(b.playlistId=h,a+="&list="+h);S&&(a+="&pp="+S);F&&(b.startTimeSeconds=F,a+="&t="+F+"s");h={watchEndpoint:b,commandMetadata:{webCommandMetadata:{url:a,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};y&&(h.clickTrackingParams=y);S&&(_.c(h,_.wO).playerParams=S);return h};
Vgy=function(b){return{browseEndpoint:{browseId:"VL"+b},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+b,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
Ea4=function(b){if(b){var h;if(b){var y=(h=_.c(b.commandMetadata,_.ZW))==null?void 0:h.url;h=!(!y||y==="/service_ajax")}else h=!1;if(h)return b;var S;if(b=(S=_.c(b,_.LI))==null?void 0:S.commands)for(S=_.L(b),b=S.next();!b.done;b=S.next())if(b=Ea4(b.value))return b}};
_.aU=function(b){return{runs:[{text:b}]}};
ijq=function(b,h){return b&&h?{runs:[{text:b,navigationEndpoint:h}]}:void 0};
dR=function(b){return b?_.aU(b):void 0};
_.j7=function(b){return b?{simpleText:b}:void 0};
_.$8=function(b){var h=b.type;b=b.payload;h={type:h};b!==void 0&&(h.payload=b);return h};
fek=function(b,h,y){for(var S=Object.assign({},b),F=_.L(Object.keys(h)),a=F.next();!a.done;a=F.next()){a=a.value;var P=b[a],K=h[a];if(K===void 0)delete S[a];else if(P===void 0)S[a]=K;else if(Array.isArray(K)&&Array.isArray(P))S[a]=y?[].concat(_.f$(P),_.f$(K)):K;else if(!Array.isArray(K)&&_.lf(K)&&!Array.isArray(P)&&_.lf(P))S[a]=fek(P,K,y);else if(typeof K===typeof P)S[a]=K;else return h=new _.Gn("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:a,originalValue:P,updateValue:K}),
_.QT(h),b}return S};
qUf=function(b){if(!b.length)return"";try{if(wAy)return wAy.decode(b);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(b)}catch(P){}for(var h=0,y=[],S=b.length;h<S;){for(var F=0;F<1024&&h<S;){var a=b[h++];if(a<128)leM[F++]=a;else{if(a<224)a=(a&31)<<6|b[h++]&63;else if(a<240)a=(a&15)<<12|(b[h++]&63)<<6|b[h++]&63;else{if(F+1===1024){--h;break}a=(a&7)<<18|(b[h++]&63)<<12|(b[h++]&63)<<6|b[h++]&63;a-=65536;leM[F++]=55296|a>>10;a=56320|a&1023}leM[F++]=a}}a=String.fromCharCode.apply(String,
leM);F<1024&&(a=a.substring(0,F));y.push(a)}return y.join("")};
Qkk=function(b,h){var y;if((y=xuy)==null?0:y.encodeInto)return h=xuy.encodeInto(b,h),h.read<b.length?b.length*4:h.written;for(var S=y=0;S<b.length;S++){var F=b.charCodeAt(S);F<128?h[y++]=F:(F<2048?h[y++]=F>>6|192:((F&64512)===55296&&S+1<b.length&&(b.charCodeAt(S+1)&64512)===56320?(F=65536+((F&1023)<<10)+(b.charCodeAt(++S)&1023),h[y++]=F>>18|240,h[y++]=F>>12&63|128):h[y++]=F>>12|224,h[y++]=F>>6&63|128),h[y++]=F&63|128)}return y};
muq=function(b,h,y){if(h&&y&&y.buffer===h.exports.memory.buffer){var S=h.realloc(y.byteOffset,b);if(S)return new Uint8Array(h.exports.memory.buffer,S,b)}b=h?new Uint8Array(h.exports.memory.buffer,h.malloc(b),b):new Uint8Array(b);y&&b.set(y);return b};
_.Pi=function(b){b=new vaU(new b0f([_.h8(decodeURIComponent(b))]));if(hUy(b,2)){var h=Li(b);var y=b.pos;var S=b.arrayView;y=y===void 0?0:y;var F=h===void 0?-1:h;y=y===void 0?0:y;F=F===void 0?-1:F;if(S.totalLength&&F){F<0&&(F=S.totalLength-y);S.focus(y);if(!(y-S.arrayPos+F<=S.arrays[S.arrayIdx].length)){var a=S.arrayIdx,P=S.arrayPos;S.focus(y+F-1);P=new Uint8Array(S.arrayPos+S.arrays[S.arrayIdx].length-P);for(var K=0,n=a;n<=S.arrayIdx;n++)P.set(S.arrays[n],K),K+=S.arrays[n].length;S.arrays.splice(a,
S.arrayIdx-a+1,P);S.arrayIdx=0;S.arrayPos=0;S.focus(y)}a=S.arrays[S.arrayIdx];S=new DataView(a.buffer,a.byteOffset+y-S.arrayPos,F)}else S=new DataView(new ArrayBuffer(0));S=new Uint8Array(S.buffer,S.byteOffset,S.byteLength);b.pos+=h;h=S}else h=void 0;h=h?qUf(h):void 0;b=hUy(b,4)?Li(b):void 0;S=y0n[b];if(typeof S==="undefined")throw b=new _.Gn("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:b}),_.QT(b),b;return{entityTypeFieldNumber:b,entityType:S,entityId:h}};
_.oU=function(b,h,y){y=y===void 0?0:y;var S=new SNf;if(xuy)b=xuy.encode(b);else{var F=new Uint8Array(Math.ceil(b.length*1.2)),a=Qkk(b,F);F.length<a&&(F=new Uint8Array(a),a=Qkk(b,F));F.length>a&&(F=F.subarray(0,a));b=F}b!==void 0&&(Ki(S,18),F=b.length,Ki(S,F),ZU(S,F),S.buf.set(b,S.pos),S.pos+=F);b=F3k[h];if(typeof b==="undefined")throw y=new _.Gn("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:h}),_.QT(y),y;b!==void 0&&(Ki(S,32),Ki(S,b));Ki(S,40);Ki(S,1);h=new Uint8Array(S.buf.buffer,
S.buf.byteOffset,S.pos);return encodeURIComponent(_.CA(h,y))};
ahU=function(b){b=b.key||b.id;if(!b)throw Error("If");return b};
jzF=function(b,h){b=b===void 0?{}:b;return dLY(b,h)};
$Lq=function(b,h,y,S){if(S===void 0)return S=Object.assign({},b[h]||{}),y=(delete S[y],S),S={},Object.assign({},b,(S[h]=y,S));var F={},a={};return Object.assign({},b,(a[h]=Object.assign({},b[h],(F[y]=S,F)),a))};
L3f=function(b,h,y,S,F){var a=b[h];if(a==null||!a[y])return b;S=fek(a[y],S,F==="REPEATED_FIELDS_MERGE_OPTION_APPEND");F={};a={};return Object.assign({},b,(a[h]=Object.assign({},b[h],(F[y]=S,F)),a))};
_.Mm=function(b,h,y){return b[h]?b[h][y]||null:null};
K35=function(){if(PKU)return PKU();var b={};PKU=Ov("PersistentEntityStoreDb",{objectStores:(b.EntityStore={addedAtVersion:1},b.EntityAssociationStore={addedAtVersion:2},b),shared:!1,upgrade:function(h,y){y(1)&&dd(ah(h,"EntityStore",{keyPath:"key"}),"entityType","entityType");y(2)&&(h=ah(h,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),dd(h,"byParentEntityKey","parentEntityKey"),dd(h,"byChildEntityKey","childEntityKey"))},
version:3});return PKU()};
Z0j=function(b){return _.Kz(K35(),b)};
ni=function(b){return window.Int32Array?new Int32Array(b):Array(b)};
M1k=function(b){return _.Kz(oXn(),b)};
nXq=function(b){return new XF("WRONG_DATA_TYPE",{encoderVersion:b})};
Xy5=function(b){return b instanceof Error?new XF("UNKNOWN_ENCODE_ERROR",{originalMessage:b.message}):new XF("UNKNOWN_ENCODE_ERROR")};
H0Y=function(b){return b instanceof Error?new XF("UNKNOWN_DECODE_ERROR",{originalMessage:b.message}):new XF("UNKNOWN_DECODE_ERROR")};
uq4=function(b,h){b=b instanceof XF?b:h(b);_.QT(b);throw b;};
O0Y=function(b){b=(new TextEncoder).encode(b).subarray(0,16);var h=new Uint8Array(16);h.set(b);return h};
t15=function(b){var h=NDM[b];if(h)return h;_.vX(new _.Gn("Entity model not found.",{entityType:b}))};
_.Hi=function(){r0U||(r0U=c0k());return r0U};
c0k=function(){var b,h,y;return _.Z(function(S){if(S.nextAddress==1)return _.WE(S,2),S.yield(_.uj(),4);if(S.nextAddress!=2){b=S.yieldResult;if(!b||!_.Tn()||typeof _.S5.BroadcastChannel==="undefined")return S.return();h=new RUY;return S.return(new uS(b,h))}y=_.C$(S);y instanceof Error&&_.QT(y);return S.return()})};
_.On=function(b,h){var y;return _.Z(function(S){if(S.nextAddress==1){y=b.mutations;if(!y||y.length<=0)return S.return();h&&h.dispatch(_.$8({type:"ENTITY_LOADED",payload:y}));return S.yield(zUn(y),2)}y.length=0;_.g3(S)})};
zUn=function(b){var h;return _.Z(function(y){return y.nextAddress==1?y.yield(_.Hi(),2):(h=y.yieldResult)?y.yield(_.Nm(h,"readwrite",function(S){for(var F={},a=_.L(b),P=a.next(),K={};!P.done;K={mutation$jscomp$8:void 0,mutationEntityType$jscomp$3:void 0},P=a.next())K.mutation$jscomp$8=P.value,K.mutation$jscomp$8.entityKey&&DLk(K.mutation$jscomp$8)&&(K.mutationEntityType$jscomp$3=(0,_.lR.getAnyKey)(K.mutation$jscomp$8.payload),P=void 0,K.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(P=function(n){return function(){return _.IhM(S,
n.mutation$jscomp$8.payload[n.mutationEntityType$jscomp$3],n.mutationEntityType$jscomp$3)}}(K)),K.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_DELETE"&&(P=function(n){return function(){return BDN(S,n.mutation$jscomp$8.entityKey)}}(K)),K.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(P=function(n){return function(){return W3F(S,n.mutation$jscomp$8.entityKey,n.mutation$jscomp$8.payload[n.mutationEntityType$jscomp$3],n.mutationEntityType$jscomp$3)}}(K)),P&&(F[K.mutation$jscomp$8.entityKey]=
F[K.mutation$jscomp$8.entityKey]?F[K.mutation$jscomp$8.entityKey].then(P):P()));
return Fl.all(Object.values(F))}),0):y.return()})};
DLk=function(b){var h;b=(h=b.options)==null?void 0:h.persistenceOption;return b==="ENTITY_PERSISTENCE_OPTION_PERSIST"||b==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
py4=function(b,h){var y,S;_.Z(function(F){if(F.nextAddress==1)return F.yield(_.Hi(),2);if(F.nextAddress!=3)return(y=F.yieldResult)?F.yield(_.Nm(y,"readonly",function(a){var P={},K=Object.keys(h).map(function(n){var X=h[n]?[].concat(_.f$(h[n])):[];return A0N(a,n,X,P)});
return Fl.all(K).then(function(){return P})}),3):F.return();
S=F.yieldResult;Object.keys(S).length>0&&b.dispatch(ULU(S));_.g3(F)})};
A0N=function(b,h,y,S){return tt(b,h,y).then(function(F){S[h]=J0q(y,F)})};
J0q=function(b,h){if(h.length!==b.length)throw Error("Lf");return h.reduce(function(y,S,F){y[b[F]]=S;return y},{})};
gX5=function(b){var h=b.filter(function(F){var a;return(F==null?void 0:(a=F.transferEntity)==null?void 0:a.transferState)==="TRANSFER_STATE_COMPLETE"}).length,y=b.filter(function(F){var a;
return(F==null?void 0:(a=F.transferEntity)==null?void 0:a.transferState)==="TRANSFER_STATE_FAILED"}).length,S=b.filter(function(F){var a;
return(F==null?void 0:(a=F.transferEntity)==null?void 0:a.transferState)&&eU5.includes(F.transferEntity.transferState)});
if(!(h||S!=null&&S.length))return 0;h=_.CK5(S)+h;b=b.length-y;return b===0?0:Math.round(h*100/b)/100};
_.CK5=function(b){var h=[];h=h.concat.apply(h,_.f$(b.filter(function(a){return a.streamEntity}).map(function(a){var P=Object.assign({},a.streamEntity),K,n=(K=a.transferEntity)==null?void 0:K.transferState;
P.streamsProgress=P.streamsProgress||[];P.streamsProgress=P.streamsProgress.map(function(X){var u=Object.assign({},X);u.numBytesDownloaded=n==="TRANSFER_STATE_COMPLETE"?X.numTotalBytes:X.numBytesDownloaded;return u});
return P}).map(function(a){return a.streamsProgress})));
var y=b=0;h=_.L(h);for(var S=h.next();!S.done;S=h.next()){var F=S.value;S=Number(F.numBytesDownloaded);F=Number(F.numTotalBytes);y+=isNaN(S)?0:S;b+=isNaN(F)?0:F}return b===0?0:Math.round(y*100/b)/100};
szM=function(b){if(!b||!b.expirationTimestamp||!b.action)return!1;var h=(0,_.NO)()/1E3;return Number(b.expirationTimestamp)>=h};
rR=function(b){return b&&b.expirationTimestamp&&b.action?szM(b)&&b.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.ci=function(b){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(b||"TRANSFER_STATE_UNKNOWN")};
YNF=function(b){var h=new SNf;if(b!==void 0){var y=Math.ceil(Math.log2(b.length*4+2)/7);y=y===void 0?2:y;Ki(h,10);h.submessagePosStack.push(h.pos);h.submessagePosStack.push(y);h.pos+=y;ZU(h,b.length*1.2);y=Qkk(b,h.buf.subarray(h.pos));h.pos+y>h.buf.length&&(ZU(h,y),y=Qkk(b,h.buf.subarray(h.pos)));h.pos+=y;b=h.submessagePosStack.pop();y=h.submessagePosStack.pop();for(var S=h.pos-y-b;b--;){var F=b?128:0;h.view.setUint8(y++,S&127|F);S>>=7}}h=new Uint8Array(h.buf.buffer,h.buf.byteOffset,h.pos);return(new TextDecoder("utf-8")).decode(h)};
_.RU=function(b){var h=0;b=_.L(b);for(var y=b.next(),S={};!y.done;S={transferState$jscomp$3:void 0},y=b.next()){var F=y.value,a=void 0;y=(a=F.streamEntity)!=null?a:{};a=void 0;S.transferState$jscomp$3=(a=F.transferEntity)==null?void 0:a.transferState;a=F=void 0;((F=y)==null?0:(a=F.streamsProgress)==null?0:a.length)&&y.streamsProgress.forEach(function(P){return function(K){K=Number(P.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?K.numTotalBytes:K.numBytesDownloaded);isFinite(K)&&(h+=K)}}(S))}return h};
TDr=function(b){return b.some(function(h){var y;if(!(h==null?0:(y=h.transferEntity)==null?0:y.transferState)){var S;return!(h==null?0:(S=h.policyEntity)==null?0:S.action)||h.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return eU5.includes(h.transferEntity.transferState)})};
G2r=function(b,h){if(!h)return!1;if(_.r("of_pb_en_po_ks"))return!0;var y;b=(y=_.Mm(b,"offlineVideoPolicy",_.oU(h,"offlineVideoPolicy")))!=null?y:void 0;return!!b&&rR(b)};
_.V15=function(b){var h=["TRANSFER_STATE_COMPLETE"];h=h===void 0?k2j:h;return b.filter(function(y){var S,F;return h.includes((F=(S=y.transferEntity)==null?void 0:S.transferState)!=null?F:"TRANSFER_STATE_UNKNOWN")})};
EXn=function(b,h){if(h){var y,S=(y=_.Mm(b,"playbackData",_.oU(h,"playbackData")))!=null?y:null,F;y=(F=_.Mm(b,"transfer",_.oU(h,"transfer")))!=null?F:null;var a;F=(a=_.Mm(b,"offlineVideoStreams",_.oU(h,"offlineVideoStreams")))!=null?a:null;var P;b=(P=_.Mm(b,"offlineVideoPolicy",_.oU(h,"offlineVideoPolicy")))!=null?P:null;if(S||y||F||b)return{playbackDataEntity:S,transferEntity:y,streamEntity:F,policyEntity:b}}};
_.zD=function(b){var h=b.playbackData;if(!h)return[];var y=[];h=_.L(Object.keys(h));for(var S=h.next();!S.done;S=h.next()){var F=S.value;if(!i0k(b,_.Pi(F).entityId)&&(S=EXn(b,_.Pi(F).entityId))){var a=void 0,P=void 0;F=(P=Number((a=_.Mm(b,"playbackData",F))==null?void 0:a.streamDownloadTimestampSeconds))!=null?P:(0,_.NO)();y.push({entity:S,streamDownloadTimestamp:F})}}return y.sort(function(K,n){var X=K.streamDownloadTimestamp,u=n.streamDownloadTimestamp;return u===X?K.entity.streamEntity&&!n.entity.streamEntity?
1:-1:u-X}).map(function(K){return K.entity})};
fhF=function(b){return _.V15(_.zD(b))};
_.wyn=function(b){return _.zD(b).filter(function(h){var y;if(((y=h.policyEntity)==null?0:y.action)&&h.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var S;if((S=h.transferEntity)==null?0:S.transferState){var F;return eU5.includes((F=h.transferEntity)==null?void 0:F.transferState)}return!0})};
i0k=function(b,h){var y;return((y=_.Mm(b,"downloadStatusEntity",_.oU(h,"downloadStatusEntity")))==null?void 0:y.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
lhI=function(b){var h;if(b==null?0:(h=b.playbackDataEntity)==null?0:h.key)return _.Pi(b.playbackDataEntity.key).entityId;var y;if(b==null?0:(y=b.transferEntity)==null?0:y.key)return _.Pi(b.transferEntity.key).entityId;var S;if(b==null?0:(S=b.streamEntity)==null?0:S.key)return _.Pi(b.streamEntity.key).entityId;var F;if(b==null?0:(F=b.policyEntity)==null?0:F.key)return _.Pi(b.policyEntity.key).entityId};
xL4=function(b){var h=new Set,y;b=(y=b.mainDownloadsListEntity)==null?void 0:y[qNF];var S;if(!(b==null?0:(S=b.downloads)==null?0:S.length))return h;var F;b==null||(F=b.downloads)==null||F.forEach(function(a){(a==null?0:a.videoItem)&&h.add(a.videoItem)});
return h};
DU=function(b,h){if(h){var y=_.Mm(b,"mainVideoEntity",_.oU(h,"mainVideoEntity")),S=_.Mm(b,"downloadStatusEntity",_.oU(h,"downloadStatusEntity")),F=_.Mm(b,"ytMainChannelEntity",_.oU(h,"ytMainChannelEntity")),a={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};b=EXn(b,h);S=(S==null?void 0:S.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.r("woffle_render_failed_download_state_ks")&&(S==null?void 0:S.downloadState)==="DOWNLOAD_STATE_FAILED";!b&&S&&(b=a);if(b&&y&&
F)return Object.assign({},{videoEntity:y,channelEntity:F},b)}};
mLU=function(b,h){return Qzr(b,h)==="TRANSFER_STATE_COMPLETE"&&G2r(b,h)};
vXN=function(b,h){if(!h)return!1;var y;b=(y=_.Mm(b,"playbackData",_.oU(h,"playbackData")))!=null?y:void 0;return!!b&&!!b.playerResponseJson};
Qzr=function(b,h){if(!h)return"TRANSFER_STATE_UNKNOWN";var y=_.Mm(b,"transfer",_.oU(h,"transfer"));if(y){var S;return(S=y.transferState)!=null?S:"TRANSFER_STATE_UNKNOWN"}y=_.Mm(b,"offlineOrchestrationActionWrapperEntity",_.oU(h,"offlineOrchestrationActionWrapperEntity"));b=_.Mm(b,"mainVideoEntity",_.oU(h,"mainVideoEntity"));return y||b?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
bdN=function(b,h){if(!h)return"TRANSFER_STATE_UNKNOWN";if(b=_.Mm(b,"transfer",_.oU(h,"transfer"))){var y;return(y=b.transferState)!=null?y:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
hGj=function(b,h){return h&&(b=_.Mm(b,"videoPlaybackPositionEntity",_.oU(h,"videoPlaybackPositionEntity")),b==null?0:b.lastPlaybackPositionSeconds)?Number(b.lastPlaybackPositionSeconds):0};
SGr=function(b,h){return yJM(b).some(function(y){var S;return(y==null?void 0:(S=y.mainPlaylistEntity)==null?void 0:S.playlistId)===h})};
a4N=function(b,h,y){var S=Fxr(b,h);if(!S.length)return[];h=[];S=_.L(S);for(var F=S.next();!F.done;F=S.next()){F=F.value;var a=DU(b,F);y&&Qzr(b,F)!=="TRANSFER_STATE_COMPLETE"||a&&h.push(a)}return h};
Fxr=function(b,h){if(!h)return[];var y=_.oU(h,"mainPlaylistEntity"),S;h=(S=b.mainPlaylistEntity)==null?void 0:S[y];S=[];if(h==null||!h.videos)return S;h=_.L(h.videos);for(y=h.next();!y.done;y=h.next()){y=y.value;var F=void 0,a=void 0,P=void 0,K=(F=b)==null?void 0:(a=F.mainPlaylistVideoEntity)==null?void 0:(P=a[y])==null?void 0:P.video;K&&(y=_.Pi(K).entityId)&&S.push(y)}return S};
dbM=function(b,h){if(h){var y=_.Mm(b,"mainPlaylistEntity",_.oU(h,"mainPlaylistEntity")),S=_.Mm(b,"mainPlaylistDownloadStateEntity",_.oU(h,"mainPlaylistDownloadStateEntity"));b=_.Mm(b,"ytMainChannelEntity",_.oU(h,"ytMainChannelEntity"));if(S&&y)return Object.assign({},{mainPlaylistEntity:y,mainPlaylistDownloadStateEntity:S},!!b&&{channelEntity:b})}};
yJM=function(b){return jDU(b).sort(function(h,y){return y.addedTimestampMillis-h.addedTimestampMillis}).map(function(h){return h.downloadedPlaylistEntities})};
jDU=function(b){var h=b.mainPlaylistDownloadStateEntity,y=[];if(!h)return y;for(var S=_.L(Object.keys(h)),F=S.next();!F.done;F=S.next()){var a=F.value;F=dbM(b,_.Pi(a).entityId);var P=void 0;a=Number((P=h[a])==null?void 0:P.addedTimestampMillis);P=isNaN(a)?(0,_.NO)():a;F!==void 0&&y.push({downloadedPlaylistEntities:F,addedTimestampMillis:P})}return y};
$bF=function(b){var h,y=(h=b.mainPlaylistVideoEntity)!=null?h:{};return new Set(yJM(b).reduce(function(S,F){S=S===void 0?[]:S;var a,P;F==null||(a=F.mainPlaylistEntity)==null||(P=a.videos)==null||P.forEach(function(K){var n;(K=(n=y[K])==null?void 0:n.video)&&S.push(K)});
return S},[]))};
Lxy=function(b){return"downloadedMusicPlaylistEntities"in b};
Pgf=function(b){return"mainPlaylistEntity"in b&&"mainPlaylistDownloadStateEntity"in b};
Kx5=function(b){return"videoEntity"in b&&"channelEntity"in b};
ZdI=function(b){var h=b.musicPlaylistDownloadMetadataEntity,y=[];if(!h)return y;for(var S=_.L(Object.keys(h)),F=S.next();!F.done;F=S.next()){F=F.value;a:{var a=b,P=_.Pi(F).entityId;if(P){var K=_.Mm(a,"musicPlaylist",_.oU(P,"musicPlaylist"));a=_.Mm(a,"musicPlaylistDownloadMetadataEntity",_.oU(P,"musicPlaylistDownloadMetadataEntity"));if(K&&a){K={musicPlaylistEntity:K,musicPlaylistDownloadStateEntity:a};break a}}K=void 0}a=void 0;F=Number((a=h[F])==null?void 0:a.addedTimestampMillis);F=isNaN(F)?(0,_.NO)():
F;K!==void 0&&y.push({downloadedMusicPlaylistEntities:K,addedTimestampMillis:F})}return y};
oNy=function(b){var h=new Set;b=_.L(b);for(var y=b.next();!y.done;y=b.next())if(y=y.value,"musicPlaylistEntity"in y&&"musicPlaylistDownloadStateEntity"in y){y=_.L(y.musicPlaylistEntity.tracks);for(var S=y.next();!S.done;S=y.next())h.add(S.value)}return h};
MS8=function(b,h){if(h){var y=_.Mm(b,"musicTrack",_.oU(h,"musicTrack")),S=_.Mm(b,"musicArtist",_.oU(h,"musicArtist"))||{};if((b=EXn(b,h))&&y&&S)return Object.assign({},{musicTrackEntity:y,musicArtistEntity:S},b)}};
nNU=function(b){var h=b.musicTrackDownloadMetadataEntity,y=[];if(!h)return[];h=_.L(Object.keys(h));for(var S=h.next();!S.done;S=h.next()){var F=S.value;S=MS8(b,_.Pi(F).entityId);var a=void 0;F=Number((a=_.Mm(b,"musicTrackDownloadMetadataEntity",F))==null?void 0:a.addedTimestampMillis);a=isNaN(F)?(0,_.NO)():F;S!==void 0&&y.push({downloadedMusicEntities:S,addedTimestampMillis:a})}return y};
ucq=function(b,h){if(!h)return[];if(Object.values(Xjf).includes(h))return Hdf(b,h);h=_.oU(h,"musicPlaylist");var y;b=(y=b.musicPlaylist)==null?void 0:y[h];y=[];if(b==null||!b.tracks)return y;b=_.L(b.tracks);for(h=b.next();!h.done;h=b.next())(h=_.Pi(h.value).entityId)&&y.push(h);return y};
Hdf=function(b,h){var y=new Set,S=ZdI(b).map(function(a){return a.downloadedMusicPlaylistEntities});
S=oNy(S);S=_.L(S);for(var F=S.next();!F.done;F=S.next())(F=_.Pi(F.value).entityId)&&y.add(F);return Odr(b).downloadedMusicEntities.filter(function(a){var P;if((P=a.musicTrackEntity)!=null&&P.videoId){a=a.musicTrackEntity;if(P=h==="PPOM"?!0:!y.has(a.videoId))b:switch(a=a.musicVideoType,h){case "PPSE":P=a==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:P=a!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}a=P}else a=!1;return a}).map(function(a){var P;
return(P=a.musicTrackEntity)==null?void 0:P.videoId})};
Odr=function(b){var h=nNU(b).sort(function(y,S){return S.addedTimestampMillis-y.addedTimestampMillis}).map(function(y){return"downloadedMusicEntities"in y?y.downloadedMusicEntities:Lxy(y)?y.downloadedMusicPlaylistEntities:{}});
b=ZdI(b).sort(function(y,S){return S.addedTimestampMillis-y.addedTimestampMillis}).map(function(y){return"downloadedMusicEntities"in y?y.downloadedMusicEntities:Lxy(y)?y.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:h,downloadedMusicPlaylistEntities:b}};
tSU=function(b,h){h=_.QC("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?ucq(b,h):Fxr(b,h);if(!h.length)return"TRANSFER_STATE_UNKNOWN";h=h.map(function(y){return bdN(b,y)});
return Nc8(h)};
Nc8=function(b){var h=new Set(b);if(h.has("TRANSFER_STATE_FAILED")&&h.size===1)return"TRANSFER_STATE_FAILED";h.delete("TRANSFER_STATE_FAILED");if(h.has("TRANSFER_STATE_UNKNOWN")&&h.size===1)return"TRANSFER_STATE_PRE_TRANSFER";h.delete("TRANSFER_STATE_UNKNOWN");if(h.has("TRANSFER_STATE_PRE_TRANSFER")&&h.size===1||h.size===0)return"TRANSFER_STATE_PRE_TRANSFER";b=h.has("TRANSFER_STATE_TRANSFERRING");h=h.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return b||h?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
IU=function(b){var h=b.mainVideoDownloadStateEntity,y=[];if(!h)return[];h=_.L(Object.keys(h));for(var S=h.next();!S.done;S=h.next()){var F=S.value;if(!i0k(b,_.Pi(F).entityId)){S=DU(b,_.Pi(F).entityId);var a=void 0,P=void 0;F=(P=Number((a=_.Mm(b,"mainVideoDownloadStateEntity",F))==null?void 0:a.addedTimestampMillis))!=null?P:(0,_.NO)();S!==void 0&&y.push({downloadedVideoEntities:S,addedTimestampMillis:F})}}return y};
rJk=function(b){return IU(b).sort(function(h,y){return y.addedTimestampMillis-h.addedTimestampMillis}).map(function(h){return h.downloadedVideoEntities})};
_.RG5=function(b){var h=$bF(b),y=_.Bi(b),S=xL4(b),F=IU(b).filter(function(P){var K,n;if((P==null?void 0:(K=P.downloadedVideoEntities)==null?void 0:(n=K.transferEntity)==null?void 0:n.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var X,u;P=P==null?void 0:(X=P.downloadedVideoEntities)==null?void 0:(u=X.videoEntity)==null?void 0:u.key;return _.r("kevlar_use_library_entity")?P&&(S.has(P)||y[P]):P&&!h.has(P)}),a=jDU(b).filter(function(P){return tSU(b,P.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.f$(F),_.f$(a)).sort(function(P,K){return K.addedTimestampMillis-P.addedTimestampMillis}).map(function(P){return cJF(P)})};
zGF=function(b,h){if(h&&G2r(b,h)){var y,S,F=(S=(y=_.Mm(b,"playbackData",_.oU(h,"playbackData")))!=null?y:void 0)==null?void 0:S.playerResponseJson;if(F){try{var a=JSON.parse(F);var P=_.Mm(b,"transfer",_.oU(h,"transfer")),K=hGj(b,h);K&&(a=Object.assign({},a,{playerConfig:Object.assign({},a.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+K*1E3}}})}));a.cotn=P==null?void 0:P.cotn}catch(n){}return a}}};
_.I4M=function(b){var h,y,S;b=(S=(y=((h=b.downloadsPageViewConfigurationEntity)!=null?h:{})[_.Wi])==null?void 0:y.smartDownloadsOptInBannerVisibility)!=null?S:{};var F;return(F=_.c(b,DbN))!=null?F:{}};
_.Bi=function(b){var h,y,S;b=(S=(y=((h=b.mainDownloadsListEntity)!=null?h:{})[_.Bcr])==null?void 0:y.downloads)!=null?S:[];h={};y=_.L(b);for(S=y.next();!S.done;S=y.next())b=void 0,h[(b=S.value.videoItem)!=null?b:""]=!0;return h};
Wxn=function(b){var h=_.Bi(b);if(Object.keys(h).length===0)return!1;var y=b.mainVideoEntity;if(!y)return!0;y=_.L(Object.keys(y));for(var S=y.next();!S.done;S=y.next()){S=S.value;var F=_.Pi(S).entityId;if(h[S]&&!i0k(b,F))return!1}return!0};
_.At=function(b){var h=_.Bi(b);return IU(b).sort(function(y,S){return y.addedTimestampMillis-S.addedTimestampMillis}).map(function(y){return y.downloadedVideoEntities}).filter(function(y){var S;
return(y=y==null?void 0:(S=y.videoEntity)==null?void 0:S.key)&&!!h[y]})};
_.UbM=function(b){var h,y,S;b=(S=(y=((h=b.downloadsPageViewConfigurationEntity)!=null?h:{})[_.Wi])==null?void 0:y.downloadsUpsellBannerVisibility)!=null?S:{};var F;return(F=_.c(b,AJY))!=null?F:{}};
cJF=function(b){return"downloadedVideoEntities"in b?b.downloadedVideoEntities:"downloadedPlaylistEntities"in b?b.downloadedPlaylistEntities:{}};
pjF=function(b){var h=_.Bi(b),y=$bF(b),S=IU(b).filter(function(F){var a,P;return(F=F==null?void 0:(a=F.downloadedVideoEntities)==null?void 0:(P=a.videoEntity)==null?void 0:P.key)&&!h[F]&&!y.has(F)});
b=jDU(b);return[].concat(_.f$(S),_.f$(b)).sort(function(F,a){return a.addedTimestampMillis-F.addedTimestampMillis}).map(function(F){return cJF(F)})};
_.Un=function(b){if(!_.r("kevlar_use_library_entity"))return pjF(b);var h=IU(b).filter(function(S){var F,a;if(F=S=S==null?void 0:(F=S.downloadedVideoEntities)==null?void 0:(a=F.videoEntity)==null?void 0:a.key){var P,K,n;F=((K=(P=b.mainDownloadsListEntity)==null?void 0:P[qNF])==null?0:(n=K.downloads)==null?0:n.length)?xL4(b).has(S):!1}return F}),y=jDU(b);
return[].concat(_.f$(h),_.f$(y)).sort(function(S,F){return F.addedTimestampMillis-S.addedTimestampMillis}).map(function(S){return cJF(S)})};
JJr=function(b){var h=_.Bi(b),y=$bF(b);return rJk(b).filter(function(S){var F;return(S=S==null?void 0:(F=S.videoEntity)==null?void 0:F.key)&&!h[S]&&!y.has(S)})};
eGf=function(b){if(!_.r("kevlar_use_library_entity"))return JJr(b);var h=_.Bi(b),y=xL4(b);return rJk(b).filter(function(S){var F;return(S=S==null?void 0:(F=S.videoEntity)==null?void 0:F.key)&&!h[S]&&y.has(S)})};
Cg4=function(b,h){h=_.oU(h,"settingEntity");var y,S,F;return!!((F=(S=((y=b.settingEntity)!=null?y:{})[h])==null?void 0:S.settingOptionValue)!=null?F:{}).boolValue};
_.pi=function(b){var h=_.At(b);if(TDr(h))return 0;var y=[];h=_.L(h);for(var S=h.next();!S.done;S=h.next()){S=S.value;var F=void 0,a=void 0;if((F=S)==null?0:(a=F.videoEntity)==null?0:a.key)F=_.Pi(S.videoEntity.key).entityId,S=b,F=_.oU(F,"mainVideoDownloadStateEntity"),S=_.Mm(S,"mainVideoDownloadStateEntity",F),(S=Number(S==null?void 0:S.addedTimestampMillis))&&y.push(S)}return Math.max.apply(Math,_.f$(y))};
_.Jt=function(b){return b.ui.richGridMiniMode};
_.e7=function(b){return b.ui.richGridItemsPerRow};
_.gNI=function(b){return b.ui.richGridSlimItemsPerRow};
_.sDY=function(b){return b.ui.guideIsExpanded};
_.Ci=function(b){return b.ui.miniplayerIsActive};
YGU=function(b){return b.ui.singleOptionSurveyIsActive};
_.gR=function(b){var h;return((h=b.ui)==null?void 0:h.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.TcY=function(b){return _.gR(b)==="WEB_PAGE_TYPE_WATCH"};
_.Gv5=function(b){return _.gR(b)==="WEB_PAGE_TYPE_SHORTS"};
_.kv8=function(b){return b.ui.inlinePreviewIsActive};
_.VSn=function(b){return b.ui.inlinePreviewIsEnabled};
_.ENf=function(b){return b.ui.miniplayerPlaybackState};
_.sn=function(b){return b.ui.isOnline};
_.id4=function(b){return b.ui.frostedGlassMode};
_.Y8=function(b,h){return Qzr(b.entities,h)};
_.TD=function(b,h){return tSU(b.entities,h)};
f4U=function(b,h){var y;if(h){var S;b=(S=_.Mm(b.entities,"offlineVideoPolicy",_.oU(h,"offlineVideoPolicy")))==null?void 0:S.action}else b=void 0;return(y=b)!=null?y:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
wj8=function(b,h){var y;h?(b=_.Mm(b.entities,"offlineVideoPolicy",_.oU(h,"offlineVideoPolicy")),b=Number(b==null?void 0:b.expirationTimestamp)):b=void 0;return(y=b)!=null?y:0};
_.l4N=function(b){return _.zD(b.entities).length};
qG5=function(b,h){return DU(b.entities,h)};
xbN=function(b,h){return dbM(b.entities,h)};
GD=function(b,h){return(b=DU(b.entities,h))?_.CK5([b]):0};
_.QDM=function(b,h){var y=_.QC("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(y){var S=b.entities;var F=ucq(S,h);if(F.length){var a=[];F=_.L(F);for(var P=F.next();!P.done;P=F.next())(P=MS8(S,P.value))&&a.push(P);S=a}else S=[]}else S=a4N(b.entities,h);var K;if(y){var n=b.entities;h?(h=_.oU(h,"musicPlaylist"),n=(K=n.musicPlaylist)==null?void 0:K[h],K=n!=null&&n.tracks?n.tracks.length:0):K=0}else K=b.entities,h?(h=_.oU(h,"mainPlaylistEntity"),K=(n=K.mainPlaylistEntity)==null?void 0:n[h],K=K!=null&&K.videos?
K.videos.length:0):K=0;return S.length!==K?0:S?gX5(S):0};
_.mb8=function(b){return b.download.isLeaderTab};
_.vN4=function(b,h,y){if(!h&&y){var S=b.entities;if(y){var F=YNF(y),a,P;h=(P=(a=_.Mm(S,"offlineabilityEntity",_.oU(F,"offlineabilityEntity")))==null?void 0:a.addToOfflineButtonState)!=null?P:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else h="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else a=b.entities,h?(P=YNF(h),h=(F=(S=_.Mm(a,"offlineabilityEntity",_.oU(P,"offlineabilityEntity")))==null?void 0:S.addToOfflineButtonState)!=null?F:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):h="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return h};
beI=function(b,h){b=b.entities;if(h){h=YNF(h);var y,S;h=(S=(y=_.Mm(b,"offlineabilityEntity",_.oU(h,"offlineabilityEntity")))==null?void 0:y.addToOfflineButtonState)!=null?S:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else h="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return h};
_.h4N=function(b){var h=b.entities;b=_.sn(b);var y=Cg4(h,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.r("kevlar_modern_downloads_page")&&y)var S=!1;else{var F,a;h=(a=(F=((S=h.downloadsPageViewConfigurationEntity)!=null?S:{})[_.Wi])==null?void 0:F.smartDownloadsOptInBannerVisibility)!=null?a:{};S=b?!!h.visibleWithConnection:!!h.visibleWithoutConnection}return S};
_.yKq=function(b){return Cg4(b.entities,"SMART_DOWNLOADS_ENABLED")};
_.St8=function(b){return Wxn(b.entities)};
F08=function(b){return _.At(b.entities).every(function(h){var y;return(h==null?void 0:(y=h.transferEntity)==null?void 0:y.transferState)&&!eU5.includes(h.transferEntity.transferState)})};
_.awM=function(b){var h,y,S,F=(S=(y=((h=b.entities.downloadsPageViewConfigurationEntity)!=null?h:{})[_.Wi])==null?void 0:y.downloadsUpsellBannerVisibility)!=null?S:{};return _.sn(b)?!!F.visibleWithConnection:!!F.visibleWithoutConnection};
_.d1U=function(b,h){return i0k(b.entities,h)};
j$f=function(b,h){if(h){var y,S;b=(S=(y=_.Mm(b.entities,"downloadStatusEntity",_.oU(h,"downloadStatusEntity")))==null?void 0:y.downloadState)!=null?S:"DOWNLOAD_STATE_UNKNOWN"}else b="DOWNLOAD_STATE_UNKNOWN";return b};
k8=function(b,h){return hGj(b.entities,h)};
K0I=function(b){b=$1q(b);var h=b.hours===void 0?0:b.hours,y=b.minutes===void 0?0:b.minutes,S=b.seconds===void 0?0:b.seconds,F=h>0;b=[];F&&(h=L0Y(h),b.push(h));h=F;h=h===void 0?!1:h;y=(["af","be","lt"].includes(iS)||h)&&y<10?Puq().format(y):(new Intl.NumberFormat("en-u-nu-latn")).format(y);b.push(y);y=Puq().format(S);b.push(y);y=":";"da fi id si sr sr-Latn".split(" ").includes(iS)&&(y=".");return b.join(y)};
_.o9N=function(b){b=$1q(b);var h=b.hours===void 0?0:b.hours,y=b.minutes===void 0?0:b.minutes,S=b.seconds===void 0?0:b.seconds;b=[];if(h>0){var F=Zej().format({hours:h});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(iS)||h>9999)F=F.replace(h.toString(),L0Y(h)),iS==="km"&&(F=F.replace(".",","));b.push(F)}y>0&&b.push(Zej().format({minutes:y}));S>0&&b.push(Zej().format({seconds:S}));h="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");y=iS=="am"?"{0}\u1363 ":iS=="fa"?"{0}\u060c\u200f ":
iS=="my"?"{0} - ":iS=="ne"?"{0},":iS=="th"?"{0} ":iS=="ur"?"{0}\u060c ":iS=="ar"||iS=="ar-XB"?"{0} \u0648":iS=="ja"||iS=="zh-CN"||iS=="zh-HK"||iS=="zh-TW"?"{0}\u3001":"{0}, ";S=iS=="am"?"\u1363 ":iS=="fa"?"\u060c\u200f ":iS=="my"?" - ":iS=="th"?" ":iS=="ur"?"\u060c ":iS=="ar"||iS=="ar-XB"?" \u0648":iS=="ja"||iS=="zh-CN"||iS=="zh-HK"||iS=="zh-TW"?"\u3001":", ";F=iS=="am"?" \u12a5\u1293 {0}":iS=="as"?" \u0986\u09f0\u09c1 {0}":iS=="az"?" v\u0259 {0}":iS=="bn"?" \u098f\u09ac\u0982 {0}":iS=="cs"?" a\u00a0{0}":
iS=="de"?" und {0}":iS=="el"?" \u03ba\u03b1\u03b9 {0}":iS=="eu"?" eta {0}":iS=="fa"?"\u060c \u0648 {0}":iS=="fil"?", at {0}":iS=="gu"?" \u0a85\u0aa8\u0ac7 {0}":iS=="hi"?", \u0914\u0930 {0}":iS=="hu"?" \u00e9s {0}":iS=="hy"?" \u0587 {0}":iS=="id"?", dan {0}":iS=="iw"?" \u05d5-{0}":iS=="ja"?"\u3001{0}":iS=="ka"?" \u10d3\u10d0 {0}":iS=="km"?" \u1793\u17b7\u1784 {0}":iS=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":iS=="ko"?" \ubc0f {0}":iS=="ky"?" \u0436\u0430\u043d\u0430 {0}":iS=="lt"?" ir {0}":iS==
"lv"?" un {0}":iS=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":iS=="mr"?" \u0906\u0923\u093f {0}":iS=="ms"?" dan {0}":iS=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":iS=="ne"?" \u0930 {0}":iS=="or"?", \u0b13 {0}":iS=="pa"?" \u0a05\u0a24\u0a47 {0}":iS=="ro"?" \u0219i {0}":iS=="si"?", \u0dc3\u0dc4 {0}":iS=="sk"?" a {0}":iS=="sl"?" in {0}":iS=="sq"?" dhe {0}":iS=="sv"?" och {0}":iS=="sw"?" na {0}":iS=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":iS=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":
iS=="th"?" \u0e41\u0e25\u0e30{0}":iS=="tr"?" ve {0}":iS=="ur"?"\u060c \u0627\u0648\u0631 {0}":iS=="uz"?" va {0}":iS=="vi"?" v\u00e0 {0}":iS=="zh-HK"?"\u53ca{0}":iS=="zu"?", ne-{0}":iS=="af"||iS=="nl"?" en {0}":iS=="ar"||iS=="ar-XB"?" \u0648{0}":iS=="be"||iS=="uk"?" \u0456 {0}":iS=="en-GB"||iS=="en-IN"?" and {0}":iS=="en"||iS=="en-XA"?", and {0}":iS=="et"||iS=="fi"?" ja {0}":iS=="fr"||iS=="fr-CA"?" et {0}":iS=="zh-CN"||iS=="zh-TW"?"\u548c{0}":iS=="da"||iS=="is"||iS=="no"?" og {0}":iS=="es"||iS=="es-419"||
iS=="es-US"?" y {0}":iS=="kk"||iS=="lo"||iS=="mn"?", {0}":iS=="bg"||iS=="mk"||iS=="ru"||iS=="sr"?" \u0438 {0}":iS=="gl"||iS=="it"||iS=="pt-BR"||iS=="pt-PT"?" e {0}":" i {0}";var a=iS=="am"?"{0} \u12a5\u1293 {1}":iS=="as"?"{0} \u0986\u09f0\u09c1 {1}":iS=="az"?"{0} v\u0259 {1}":iS=="bn"?"{0} \u098f\u09ac\u0982 {1}":iS=="de"?"{0} und {1}":iS=="el"?"{0} \u03ba\u03b1\u03b9 {1}":iS=="eu"?"{0} eta {1}":iS=="fa"?"{0} \u0648 {1}":iS=="fil"?"{0} at {1}":iS=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":iS=="hi"?"{0} \u0914\u0930 {1}":
iS=="hu"?"{0} \u00e9s {1}":iS=="hy"?"{0} \u0587 {1}":iS=="iw"?"{0} \u05d5-{1}":iS=="ja"?"{0}\u3001{1}":iS=="ka"?"{0} \u10d3\u10d0 {1}":iS=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":iS=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":iS=="kn"?"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":iS=="ko"?"{0} \ubc0f {1}":iS=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":iS=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":iS=="lt"?"{0} ir {1}":iS=="lv"?"{0} un {1}":iS=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":iS=="mn"?"{0}, {1}":iS==
"mr"?"{0} \u0906\u0923\u093f {1}":iS=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":iS=="ne"?"{0} \u0930 {1}":iS=="or"?"{0} \u0b13 {1}":iS=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":iS=="ro"?"{0} \u0219i {1}":iS=="si"?"{0} \u0dc3\u0dc4 {1}":iS=="sl"?"{0} in {1}":iS=="sq"?"{0} dhe {1}":iS=="sv"?"{0} och {1}":iS=="sw"?"{0} na {1}":iS=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":iS=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":iS=="th"?"{0}\u0e41\u0e25\u0e30{1}":iS=="tr"?"{0} ve {1}":iS=="ur"?
"{0} \u0627\u0648\u0631 {1}":iS=="uz"?"{0} va {1}":iS=="vi"?"{0} v\u00e0 {1}":iS=="zh-HK"?"{0}\u53ca{1}":iS=="zu"?"{0} ne-{1}":iS=="af"||iS=="nl"?"{0} en {1}":iS=="ar"||iS=="ar-XB"?"{0} \u0648{1}":iS=="be"||iS=="uk"?"{0} \u0456 {1}":iS=="cs"||iS=="sk"?"{0} a\u00a0{1}":iS=="et"||iS=="fi"?"{0} ja {1}":iS=="fr"||iS=="fr-CA"?"{0} et {1}":iS=="id"||iS=="ms"?"{0} dan {1}":iS=="zh-CN"||iS=="zh-TW"?"{0}\u548c{1}":iS=="da"||iS=="is"||iS=="no"?"{0} og {1}":iS=="es"||iS=="es-419"||iS=="es-US"?"{0} y {1}":iS==
"bg"||iS=="mk"||iS=="ru"||iS=="sr"?"{0} \u0438 {1}":iS=="en"||iS=="en-GB"||iS=="en-IN"||iS=="en-XA"?"{0} and {1}":iS=="gl"||iS=="it"||iS=="pt-BR"||iS=="pt-PT"?"{0} e {1}":"{0} i {1}";iS==="sq"?(F=F.replace("dhe","e"),a=a.replace("dhe","e")):iS==="th"?(S=S.replace("{0}"," {0}"),a=a.replace("{0}","{0} "),a=a.replace("{1}"," {1}")):iS==="ne"?S=",":iS==="zh-CN"?S="":h.includes(iS)&&(S=" ");return b.length<2?b.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(iS)?
b.length===2?a.replace("{0}",b[0]).replace("{1}",b[1]):y.replace("{0}",b[0])+b.slice(1,-1).join(S)+F.replace("{0}",b[b.length-1]):b.join(S)};
$1q=function(b){var h=b.hours||0,y=b.minutes||0,S=b.seconds||0;h=S+y*60+h*3600+(b.days||0)*86400+(b.weeks||0)*604800+(b.months||0)*2629800+(b.years||0)*31557600;if(h<=0)return{hours:0,minutes:0,seconds:0};b=h;h=Math.floor(b/3600);b%=3600;y=Math.floor(b/60);S=Math.floor(b%60);return{hours:h,minutes:y,seconds:S}};
L0Y=function(b){b=(new Intl.NumberFormat("en-u-nu-latn")).format(b);var h=["fr"],y="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(iS)?b.replace(",","\u00a0"):h.includes(iS)?b.replace(",","\u202f"):y.includes(iS)?b.replace(",","."):b};
Puq=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
Zej=function(){Mmq||(fi=n9j,Mmq=new XPY);return Mmq};
He5=function(b){try{return(new _.wR(5)).format(b)}catch(h){}};
lS=function(b){return{thumbnailOverlayDownloadingRenderer:{state:b}}};
uBY=function(){var b=_.Mt("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.aU(b),icon:{iconType:"PLAY_ALL"}}}};
Oey=function(b){b=_.qm(b,2);return iS!=="ru"&&iS!=="es_419"&&iS!=="es-419"&&iS!=="es"&&iS!=="es_US"&&iS!=="es-US"&&iS!=="fr"&&iS!=="pl"&&iS!=="it"&&iS!=="nl"&&iS!=="uk"&&iS!=="fr_CA"&&iS!=="fr-CA"||b===""?b:b[0].toLocaleUpperCase()+b.substring(1)};
tm8=function(b){return function(h){var y=b(),S=_.qm(h,y.dateFormat);h=_.qm(h,y.timeFormat);var F=Nak.DATETIMEFORMATS[y.joinerStyle];F=F.replace(/'(?!')/g,"");F=F.replace("{0}",h);F=F.replace("{1}",S);return y.capitalize(F)}};
rKI=function(b){return b?typeof b.seconds==="string"&&(b.nanos===void 0||typeof b.nanos==="number"):!1};
cK8=function(b){return new Date(Number(b.seconds)*1E3+(b.nanos||0)*1E-6)};
_.qm=function(b,h){if(typeof b.getTime==="function")b={date:b};else if(rKI(b))b={date:cK8(b)};else if(typeof rKI(b.timestamp)&&typeof b.i18nInternalSecondsEastOfUtc==="number")b={date:cK8(b.timestamp),timeZone:x8(-b.i18nInternalSecondsEastOfUtc/60)};else throw Error("Mf`"+JSON.stringify(b));var y=b;b=y.date;y=y.timeZone;h=R4y(h).format(b,y);iS==="zh-TW"&&(b=y?Number(R4y("H").format(b,y)):b.getHours(),h=b<5?h.replace("\u4e0a\u5348","\u51cc\u6668"):b<8?h.replace("\u4e0a\u5348","\u65e9\u4e0a"):b<12?
h.replace("\u4e0a\u5348","\u4e0a\u5348"):b<13?h.replace("\u4e0b\u5348","\u4e2d\u5348"):b<19?h.replace("\u4e0b\u5348","\u4e0b\u5348"):h.replace("\u4e0b\u5348","\u665a\u4e0a"));return h};
R4y=function(b){if(z4j.has(b))return z4j.get(b);var h=D14(b);h=Iwf(h);Bay!==!0&&(Bay=!0);W0r=!0;W0r=!1;h=new QE(h,Nak);z4j.set(b,h);return h};
D14=function(b){return(new QE(b,Nak)).patternParts_.map(function(h){return h.type===0?"'"+h.text+"'":h.text}).join("")};
Iwf=function(b){return iS==="en"||iS==="es_US"||iS==="es-US"?b:b.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(h,y,S){return"H".repeat(y.length)+S})};
g9Y=function(b,h){AKI||(fi=n9j,AKI=new U1y);var y=AKI;a:if(b=pPN(b),h=pPN(h||new Date),b>h)y=b.getTime()-h.getTime()>6048E5?_.qm(b,1):JKN(b);else{for(var S=0;e4j(b,12*(S+1))<h;)++S;if(S>0)y=y.format(-S,0);else{for(S=0;e4j(b,S+1)<h;)++S;if(S>0)y=y.format(-S,2);else{b=h.getTime()-b.getTime();h=_.L(Cuj);for(S=h.next();!S.done;S=h.next()){S=S.value;var F=S.unit,a=Math.floor(b/S.unitDuration);if(a>=(S.threshold===void 0?1:S.threshold)){y=y.format(-a,F);break a}}y=y.format(-0,7)}}}return y};
pPN=function(b){if(typeof b.getTime==="function")return b;if(rKI(b))return cK8(b);throw Error("Nf`"+JSON.stringify(b));};
e4j=function(b,h){for(var y=0,S;;++y)if(S=new Date(b.getFullYear(),b.getMonth()+h,b.getDate()-y,b.getHours(),b.getMinutes(),b.getSeconds()),S.getMonth()===(b.getMonth()+h)%12)return S};
_.mk=function(b){return{runs:[{text:b}]}};
_.vi=function(b){if(b&&b.simpleText)return b.simpleText;var h="";if(b&&b.runs)for(var y=0;y<b.runs.length;y++)b.runs[y].text&&(h+=b.runs[y].text);return h};
YtI=function(b,h,y,S){return b.videoEntity&&!b.policyEntity&&y!=="DOWNLOAD_STATE_FAILED"?[lS("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:rR(b.policyEntity)&&h!=="TRANSFER_STATE_FAILED"&&h!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?h==="TRANSFER_STATE_PAUSED_BY_USER"?[lS("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.ci(h)?[lS("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:b.videoEntity.lengthSeconds?s$U(b.videoEntity.lengthSeconds,S):[]:
[lS("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
s$U=function(b,h){var y=[{thumbnailOverlayTimeStatusRenderer:{text:_.aU(K0I({seconds:b})),style:"DEFAULT"}}];h&&(b=h<=0||b<=0?0:h>=b?100:Math.ceil(h*100/b),b>0&&y.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:b}}));return y};
Taf=function(b,h,y,S,F){if(h==="TRANSFER_STATE_UNKNOWN"||!b)return{};if(_.ci(h)||h==="TRANSFER_STATE_PRE_TRANSFER")var a=[lS("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var P,K;if(h==="TRANSFER_STATE_COMPLETE"&&((P=b.mainPlaylistEntity)==null?0:(K=P.videos)==null?0:K.length)){var n;b=(a=b.mainPlaylistEntity)==null?void 0:(n=a.videos)==null?void 0:n.length;a=(a=He5(b))?{thumbnailOverlayBottomPanelRenderer:{text:_.aU(a),icon:{iconType:"PLAYLISTS"}}}:void 0;a=[uBY(),Object.assign({},
a!=null?a:{})]}else a=[]}a:if(h==="TRANSFER_STATE_PRE_TRANSFER")y=dR(_.Mt("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(h==="TRANSFER_STATE_TRANSFER_IN_QUEUE")y=dR(_.Mt("WAITING_TO_DOWNLOAD"));else if(_.ci(h))y=Math.floor(y*100).toString(),y=dR(_.Mt("DOWNLOADING_PERCENT",{percent:y},"Downloading... "+y+"%"));else{if(S&&(_.r("playlist_is_offline_selector_killswitch")&&(F=_.H9().resolve(_.PX).isNetworkAvailable()),F)){y=ijq(_.Mt("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),
Vgy(S));break a}y=void 0}h=h==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.Mt("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},a.length?{thumbnailOverlays:a}:{},y?{viewPlaylistText:y}:{viewPlaylistText:_.mk("")},h.length?{badges:h}:{})};
GuF=function(b,h,y,S,F,a){if(h==="TRANSFER_STATE_UNKNOWN"||!b)return{};if(S==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var P=YtI(b,h,S);if(b.videoEntity&&!b.policyEntity&&S!=="DOWNLOAD_STATE_FAILED"){var K=_.Mt("WAITING_TO_DOWNLOAD");if(K)return{shortViewCountText:_.mk(K),publishedTimeText:void 0,thumbnailOverlays:P}}if(!rR(b.policyEntity)){a=b.policyEntity&&!szM(b.policyEntity)?_.Mt("DOWNLOAD_EXPIRED",{},"Download expired"):
_.Mt("TRANSFER_FAILED",{},"Download failed");var n;if((n=b.policyEntity)==null?0:n.shortMessageForDisabledAction)a=b.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:dR(a),publishedTimeText:void 0,thumbnailOverlays:P}}if(h==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.mk(_.Mt("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:P};if(h==="TRANSFER_STATE_FAILED"||h==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.mk(_.Mt("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:P};if(h==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(n=_.Mt("WAITING_TO_DOWNLOAD"),S==="DOWNLOAD_STATE_PAUSED"&&(n=_.Mt("DOWNLOAD_PAUSED",{},"Download paused")),n))return{shortViewCountText:_.mk(n),publishedTimeText:void 0,thumbnailOverlays:P};if(_.ci(h))return b=Math.floor(y*100).toString(),{shortViewCountText:_.mk(_.Mt("DOWNLOADING_PERCENT",{percent:b},"Downloading... "+b+"%")),publishedTimeText:void 0,thumbnailOverlays:P};h=void 0;b.videoEntity.publishedTimestampMillis&&
(h=new Date,F&&(h=new Date(F)),h=dR(g9Y(new Date(Number(b.videoEntity.publishedTimestampMillis)),h)));F=[];_.r("kevlar_woffle_badge_killswitch")||(F=[{metadataBadgeRenderer:{label:_.Mt("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var X;b=dR((X=b.videoEntity.localizedStrings)==null?void 0:X.viewCount);return Object.assign({},a?{shortViewCountText:void 0}:{shortViewCountText:b},a?{}:{publishedTimeText:h},{badges:F,thumbnailOverlays:P})};
Vm4=function(b,h){b=b===void 0?kuf:b;switch(h.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:h.payload.playlistId,inviteLinkURL:h.payload.inviteLinkUrl};default:return b}};
iey=function(b,h){b=b===void 0?E9k:b;switch(h.type){case "SET_CURRENT_FORM_ID":return h=h.payload.formId,b.currentFormId===h?b:{currentFormId:h,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var y=h.payload;h=y.groupId;y=y.command;if(b.currentFormId){var S=Object.assign({},b.commandsMap);S[h]=y;b=Object.assign({},b,{commandsMap:S})}return b;case "RESET_COMMAND_MAP":return Object.assign({},b,{commandsMap:{}});default:return b}};
wPr=function(b,h){b=b===void 0?fwN:b;switch(h.type){case "UPDATE_CANVAS_MODE":return Object.assign({},b,{currentMode:h.payload.currentMode});default:return b}};
qtk=function(b,h){b=b===void 0?lwF:b;switch(h.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},b,{guideIsExpanded:h.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},b,{scrollAtTop:h.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},b,{guideIsVisibleButNotPersistent:h.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},b,{miniplayerIsActive:h.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},b,{singleOptionSurveyIsActive:h.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},b,{slimlineSurveyRatingSelectedIndex:h.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},b,{richGridMiniMode:h.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},b,{richGridItemsPerRow:h.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},b,{richGridSlimItemsPerRow:h.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},b,{richGridContainerWidth:h.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},b,{richGridStyle:h.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},b,{currentPageType:h.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},b,{inlinePreviewIsActive:h.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},b,{inlinePreviewIsEnabled:h.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},b,{darkModeIsEnabled:h.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
b,{miniplayerPlaybackState:h.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},b,{tabGesturesIsActive:h.payload});case "SET_ONLINE_STATUS":return Object.assign({},b,{isOnline:h.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},b,{chipBarIsSticky:h.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},b,{frostedGlassMode:h.payload});default:return b}};
x15=function(){return _.r("kevlar_disable_theater_mode_persistence")?!1:_.m$("START_IN_THEATER_MODE")};
m15=function(b,h){b=b===void 0?Q$U:b;switch(h.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},b,{transcription:h.payload});case "SET_OVERLAY_STATE":return Object.assign({},b,{overlay:h.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return b}};
$Tk=function(){return Y6(Object.assign({},{continuation:v9U,download:bff,canvas:wPr,reportChannelAbuse:hck,share:yvM,talkToRecs:SAr,ui:qtk,voiceSearch:m15,watch:FEF,ypc:aV8,shorts:dTf,radioButtonGroup:iey,collabInviteLink:Vm4},jpY))};
KEn=function(){return _.r("web_player_entities_middleware")?new bk($Tk(),[LEI,Pwf]):new bk($Tk(),[LEI])};
_.hP=function(){Zfj||(Zfj=KEn());return Zfj};
odF=function(b,h,y){if(b.length)return{titleText:_.aU(h!=null?h:_.Mt("DOWNLOADS",void 0,"Downloads")),contents:b.map(function(S){var F=S.videoEntity;S={videoId:F.videoId,title:dR(F.title),shortBylineText:dR(S.channelEntity.title),thumbnail:F.thumbnail};var a=F.videoId?k8(_.hP().getState(),F.videoId):0;F.videoId&&y?S.navigationEndpoint=_.FF(F.videoId,y,void 0,void 0,a):F.videoId&&(S.navigationEndpoint=kcn(F.videoId,a,F.lengthSeconds));F.lengthSeconds&&(S.thumbnailOverlays=s$U(F.lengthSeconds,a));return{playlistPanelVideoRenderer:S}}),
totalVideos:b.length}};
Mb5=function(b){return(b=(0,_.lR.getValueByKeys)(b,"playlistId"))?{playlistId:b}:null};
nd8=function(){return{}};
Xgn=function(b,h){return new _.Uu(function(y,S){b.then(function(F){if(F){if(F=h(F))return y(F);S()}},S)})};
Hff=function(b){var h,y,S,F=(h=b.contents)==null?void 0:(y=h.twoColumnWatchNextResults)==null?void 0:(S=y.autoplay)==null?void 0:S.autoplay,a,P,K;h=(a=b.contents)==null?void 0:(P=a.twoColumnWatchNextResults)==null?void 0:(K=P.playlist)==null?void 0:K.playlist;return F&&h&&h.playlistId?{rawResponse:b,autoplayRenderer:F,playlistPanelRenderer:h,playlistId:h.playlistId}:null};
Of4=function(b){var h=h===void 0?"UNKNOWN_INTERFACE":h;if(b.length===1)return b[0];var y=uyy[h];if(y){y=new RegExp(y);for(var S=_.L(b),F=S.next();!F.done;F=S.next())if(F=F.value,y.exec(F))return F}var a=[];Object.entries(uyy).forEach(function(P){var K=_.L(P);P=K.next().value;K=K.next().value;h!==P&&a.push(K)});
y=new RegExp(a.join("|"));b.sort(function(P,K){return P.length-K.length});
S=_.L(b);for(F=S.next();!F.done;F=S.next())if(F=F.value,!y.exec(F))return F;return b[0]};
_.yk=function(b){return"/youtubei/v1/"+Of4(b)};
_.SI=function(b,h){return{openPopupAction:Object.assign({},{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:b}}},h!==void 0?{durationHintMs:h}:{})}};
_.Fd=function(b,h){return _.SI(_.mk(b),h)};
NPU=function(b,h){var y={mode:"NORMAL"};b&&(y.autoplayVideo=b.navigationEndpoint,y.nextButtonVideo=b.navigationEndpoint);h&&(y.previousButtonVideo=h.navigationEndpoint);return y};
cvn=function(b,h,y){if(!y||!y.sets)return{sets:[NPU(b,h)]};var S=y.sets.find(function(P){return P.mode==="NORMAL"}),F=(0,_.lR.unsafeClone)(y);
if(!S)return F.sets.push(NPU(b,h)),F;if(!b)return y;S=_.lR.getValueByKeys.apply(null,[S].concat(_.f$(tbF)));var a=_.lR.getValueByKeys.apply(null,[b].concat(_.f$(rvn)));if(S===a)return y;F.sets=F.sets.filter(function(P){return P.mode!=="NORMAL"});
F.sets.push(NPU(b,h));return F};
RcY=function(b){return!!b.playlistPanelVideoRenderer&&!b.playlistPanelVideoRenderer.unplayableText};
zc8=function(b){return!!b.playlistPanelVideoRenderer&&!!b.playlistPanelVideoRenderer.title};
DTU=function(b,h){if(h.contents&&!(b>=h.contents.length)&&(b=h.contents.slice(b).find(RcY)))return b.playlistPanelVideoRenderer};
IVj=function(b,h){if(h.contents)return(h=h.contents.find(function(y){return!!y.playlistPanelVideoRenderer&&y.playlistPanelVideoRenderer.videoId===b}))?h.playlistPanelVideoRenderer:void 0};
BPM=function(b,h){return h.contents?h.contents.findIndex(function(y){return!!y.playlistPanelVideoRenderer&&y.playlistPanelVideoRenderer.videoId===b}):-1};
WEy=function(b,h){return h.contents?h.contents.findIndex(function(y){return!!y.playlistPanelVideoRenderer&&y.playlistPanelVideoRenderer.playlistSetVideoId===b}):-1};
AvN=function(b,h){b.contents&&h!==-1&&b.contents.splice(h,1).length===1&&b.totalVideos!==void 0&&(--b.totalVideos,delete b.videoCountText)};
_.aPY=function(b){var h=[];if(!b||!b.contents)return h;b=_.L(b.contents);for(var y=b.next();!y.done;y=b.next())y=y.value,y.playlistPanelVideoRenderer&&y.playlistPanelVideoRenderer.videoId&&h.push(y.playlistPanelVideoRenderer.videoId);return h};
_.dpN=function(b){if(b&&b.contents)return(b=b.contents.find(function(h){return!!h.playlistPanelVideoRenderer&&!!h.playlistPanelVideoRenderer.selected})||b.contents[b.currentIndex])?b.playlistPanelVideoRenderer:void 0};
jxM=function(b,h,y,S,F,a,P){F=F===void 0?!1:F;a=a===void 0?!1:a;P=P===void 0?!1:P;if(b.contents&&b.contents.length!==0){S&&(b.contents=b.contents.filter(S));S=b.contents.length;for(var K=0;K<S;K++){var n=b.contents[K].playlistPanelVideoRenderer;n&&(K===h?(a&&delete n.menu,n.indexText=_.mk("\u25b6")):F||b.isInfinite||n.indexText===void 0?delete n.indexText:n.indexText=_.mk((K+1+y).toString()))}b.currentIndex=h+y;P&&(delete b.videoCountText,b.totalVideos=S)}};
_.a3=function(b){b=$pf(b);if(b){var h=b.length;var y=-73%h;y<0&&(y=h+y);b=b.slice(h-y)+b.slice(0,h-y)}else b="";y="";for(h=0;h<b.length&&b[h]!==Lqq;h++)y+=b[h];return y};
_.PUY=function(b,h){var y=document.body;h=h===void 0?function(K){return K}:h;
var S,F=null;b=_.L(b);for(S=b.next();!S.done;S=b.next()){var a=S.value;S="div";a[2]&&(S=h(a[2]));S=document.createElement(S);F||(F=S);var P=a[0];a=a[1];P&&(S.id=h(P));if(a)for(a=_.L(a),P=a.next();!P.done;P=a.next())S.classList.add(h(P.value));y.appendChild(S);y=S}return[F,y]};
KqI=function(b,h){for(var y="",S=0;S<h;S++)y+=b.charAt(Math.floor(Math.random()*b.length));return y};
dq=function(b){return KqI("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",b)};
jI=function(b){return KqI("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",b)};
$g=function(b){return KqI("0123456789",b)};
Zkk=function(){var b=performance.now(),h=new Date;var y="2."+h.getFullYear()+String(h.getMonth()+1).padStart(2,"0")+String(h.getDate()).padStart(2,"0");for(var S,F=Math.floor(Math.random()*11)+15,a=[],P=0;P<F;P++)a.push(Math.floor(Math.random()*26476865)+24547720);S=a.join(",");var K=dq(10),n=dq(100),X=dq(102),u=dq(106),O=dq(108),N=dq(11),t=dq(1140),R=dq(123),I=dq(14),U=dq(16),p=dq(1900),e=dq(23),E=dq(26),Y=dq(34),w=dq(397),x=dq(44),q=dq(5),dI=dq(72),L4=dq(74),Rq=dq(75),Xn=dq(88),Ny=dq(91),gI="rr4---sn-5hnekn7k rr4---sn-q4flrnle rr5---sn-hgn7rnll rr4---sn-q4fl6n6s rr4---sn-q4flrnee rr3---sn-q4fl6n6y rr1---sn-5hne6nzs rr5---sn-q4fzen7r rr1---sn-q4fl6ns6 rr5---sn-q4fl6ns6 rr2---sn-aigzrne7 rr3---sn-q4fl6nds rr4---sn-5hnekn7l rr5---sn-ntq7yney rr2---sn-q4fl6n66 rr1---sn-ntqe6n76 rr1---sn-q4fl6ndl rr4---sn-q4fl6n66 rr2---sn-q4flrner rr5---sn-q4fl6nz6".split(" ");
var YU=gI[Math.floor(Math.random()*gI.length)];var VN=(new Date("2010-01-01")).getTime();var Hb=(new Date(VN+Math.random()*((new Date).getTime()-VN))).toISOString().split("T")[0];for(var vF,xU=[],Xa=0;Xa<4;Xa++)xU.push(Math.floor(Math.random()*100));vF=xU.join(".");var rG=Number($g(5)),Wb=Number($g(6)),Xx=Number($g(7)),Bb=Number($g(9)),oq=$g(1),kU=$g(10),O7=$g(16),io=$g(19),cb=$g(2),QW=$g(20),vM=$g(21),wG=$g(3),oN=$g(4),uo=$g(5),dA=$g(6),QN=$g(7),vb=$g(8),fA=$g(9);var bJ=KqI("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var ua=[jI(5),jI(5),jI(5)].join("%2C"),kF=[$g(3),$g(5),$g(5)].join("%2C"),oa=jI(0),PB=jI(1),lo=jI(10),IP=jI(108),j2=jI(11),Jg=jI(12),uR=jI(13),Yb=jI(14),B0=jI(15),Vx=jI(16),vL=jI(17),BF=jI(18),Tk=jI(19),qy=jI(2),za=jI(20),rA=jI(22),zp=jI(23),BN=jI(24),U7=jI(266),D8=jI(3),Vf=jI(30),Lc=jI(34),NP=jI(35),eF=jI(36),i_=jI(4),Y$=jI(40),u5=jI(43),SK=jI(47),IA=jI(5),b_=jI(6),DW=jI(7),iK=jI(75),bF=jI(8),GI=jI(80),oL=jI(9),cE="https://www."+jI(12)+".com",t6={},iq={},fw={},f0={},T4={},ky={},V4={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:S}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:y},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+jI(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:y},{key:"client.name",value:"WEB"},{key:"client.fexp",value:S}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:vM+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+jI(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:Y$,ypcGetOfflineUpsellEndpoint:{params:GI}},trackingParams:NP+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+YU+".googlevideo.com/videoplayback?expire="+kU+"&ei="+e+"&ip="+vF+"&id=o-AF"+u5+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+kF+"&mn="+ua+"&ms="+ua+"&mv="+PB+"&mvi="+oq+"&pl="+cb+"&initcwndbps="+QN+"&siu="+oq+"&spc="+x+"&vprv="+oq+"&svpuc="+oq+"&mime=video%2Fmp4&ns="+BN+"&cnr="+cb+"&ratebypass=yes&dur="+vb+"&lmt="+O7+"&mt="+kU+"&fvip=3&c=WEB&txp="+QN+"&n="+U+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:Wb,width:640,height:360,lastModified:O7,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:QN,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+YU+".googlevideo.com/videoplayback?expire="+kU+"&ei="+e+"&ip="+vF+"&id=o-AF"+u5+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+kF+"&mn="+
ua+"&ms="+ua+"&mv="+PB+"&mvi="+oq+"&pl="+cb+"&initcwndbps="+QN+"&siu="+oq+"&spc="+x+"&vprv="+oq+"&svpuc="+oq+"&mime=video%2Fmp4&ns="+BN+"&cnr="+cb+"&ratebypass=yes&dur="+vb+"&lmt="+O7+"&mt="+kU+"&fvip=3&c=WEB&txp="+QN+"&n="+U+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+IP+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:Wb,width:1280,
height:720,lastModified:O7,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:QN,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+YU+".googlevideo.com/videoplayback?expire="+kU+"&ei="+e+"&ip="+vF+"&id=o-AF"+u5+"&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="+kF+"&mn="+ua+"&ms="+
ua+"&mv="+PB+"&mvi="+oq+"&pl="+cb+"&initcwndbps="+QN+"&siu="+oq+"&spc="+x+"&vprv="+oq+"&svpuc="+oq+"&mime=video%2Fmp4&ns="+BN+"&gir="+D8+"&clen="+fA+"&dur="+vb+"&lmt="+O7+"&mt="+kU+"&fvip=3&keepalive="+D8+"&c=WEB&txp="+QN+"&n="+Vx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:Xx,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:wG,end:oN},lastModified:O7,contentLength:fA,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Xx,approxDurationMs:QN},{itag:248,url:"https://"+YU+".googlevideo.com/videoplayback?expire="+kU+"&ei="+e+"&ip="+vF+"&id=o-AF"+u5+"&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="+kF+"&mn="+ua+"&ms="+ua+"&mv="+
PB+"&mvi="+oq+"&pl="+cb+"&initcwndbps="+QN+"&siu="+oq+"&spc="+x+"&vprv="+oq+"&svpuc="+oq+"&mime=video%2Fwebm&ns="+BN+"&gir="+D8+"&clen="+fA+"&dur="+vb+"&lmt="+O7+"&mt="+kU+"&fvip=3&keepalive="+D8+"&c=WEB&txp="+QN+"&n="+Vx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+u+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/webm; codecs="vp9"',bitrate:Xx,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:wG,end:oN},lastModified:O7,contentLength:fA,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Xx,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:QN},{itag:399,url:"https://"+YU+".googlevideo.com/videoplayback?expire="+kU+"&ei="+e+"&ip="+vF+"&id=o-AF"+u5+"&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="+
kF+"&mn="+ua+"&ms="+ua+"&mv="+PB+"&mvi="+oq+"&pl="+cb+"&initcwndbps="+QN+"&siu="+oq+"&spc="+x+"&vprv="+oq+"&svpuc="+oq+"&mime=video%2Fmp4&ns="+BN+"&gir="+D8+"&clen="+fA+"&dur="+vb+"&lmt="+O7+"&mt="+kU+"&fvip=3&keepalive="+D8+"&c=WEB&txp="+QN+"&n="+Vx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:Xx,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:wG,end:oN},lastModified:O7,contentLength:fA,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Xx,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:QN},{itag:136,url:"https://"+YU+".googlevideo.com/videoplayback?expire="+kU+"&ei="+e+"&ip="+vF+"&id=o-AF"+u5+"&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="+
kF+"&mn="+ua+"&ms="+ua+"&mv="+PB+"&mvi="+oq+"&pl="+cb+"&initcwndbps="+QN+"&siu="+oq+"&spc="+x+"&vprv="+oq+"&svpuc="+oq+"&mime=video%2Fmp4&ns="+BN+"&gir="+D8+"&clen="+fA+"&dur="+vb+"&lmt="+O7+"&mt="+kU+"&fvip=3&keepalive="+D8+"&c=WEB&txp="+QN+"&n="+Vx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:Xx,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:wG,end:oN},lastModified:O7,contentLength:fA,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Wb,approxDurationMs:QN},{itag:247,url:"https://"+YU+".googlevideo.com/videoplayback?expire="+kU+"&ei="+e+"&ip="+vF+"&id=o-AF"+u5+"&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="+kF+"&mn="+
ua+"&ms="+ua+"&mv="+PB+"&mvi="+oq+"&pl="+cb+"&initcwndbps="+QN+"&siu="+oq+"&spc="+x+"&vprv="+oq+"&svpuc="+oq+"&mime=video%2Fwebm&ns="+BN+"&gir="+D8+"&clen="+fA+"&dur="+vb+"&lmt="+O7+"&mt="+kU+"&fvip=3&keepalive="+D8+"&c=WEB&txp="+QN+"&n="+Vx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/webm; codecs="vp9"',bitrate:Xx,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:wG,end:oN},lastModified:O7,contentLength:fA,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Wb,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:QN},{itag:398,url:"https://"+YU+".googlevideo.com/videoplayback?expire="+kU+"&ei="+e+"&ip="+vF+"&id=o-AF"+u5+"&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="+
kF+"&mn="+ua+"&ms="+ua+"&mv="+PB+"&mvi="+oq+"&pl="+cb+"&initcwndbps="+QN+"&siu="+oq+"&spc="+x+"&vprv="+oq+"&svpuc="+oq+"&mime=video%2Fmp4&ns="+BN+"&gir="+D8+"&clen="+fA+"&dur="+vb+"&lmt="+O7+"&mt="+kU+"&fvip=3&keepalive="+D8+"&c=WEB&txp="+QN+"&n="+Vx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:Xx,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:wG,end:oN},lastModified:O7,contentLength:fA,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Wb,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:QN},{itag:135,url:"https://"+YU+".googlevideo.com/videoplayback?expire="+kU+"&ei="+e+"&ip="+vF+"&id=o-AF"+u5+"&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="+
kF+"&mn="+ua+"&ms="+ua+"&mv="+PB+"&mvi="+oq+"&pl="+cb+"&initcwndbps="+QN+"&siu="+oq+"&spc="+x+"&vprv="+oq+"&svpuc="+oq+"&mime=video%2Fmp4&ns="+BN+"&gir="+D8+"&clen="+vb+"&dur="+vb+"&lmt="+O7+"&mt="+kU+"&fvip=3&keepalive="+D8+"&c=WEB&txp="+QN+"&n="+Vx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:Wb,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:wG,end:oN},lastModified:O7,contentLength:vb,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Wb,approxDurationMs:QN},{itag:244,url:"https://"+YU+".googlevideo.com/videoplayback?expire="+kU+"&ei="+e+"&ip="+vF+"&id=o-AF"+u5+"&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="+kF+"&mn="+
ua+"&ms="+ua+"&mv="+PB+"&mvi="+oq+"&pl="+cb+"&initcwndbps="+QN+"&siu="+oq+"&spc="+x+"&vprv="+oq+"&svpuc="+oq+"&mime=video%2Fwebm&ns="+BN+"&gir="+D8+"&clen="+vb+"&dur="+vb+"&lmt="+O7+"&mt="+kU+"&fvip=3&keepalive="+D8+"&c=WEB&txp="+QN+"&n="+Vx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+IP+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/webm; codecs="vp9"',bitrate:Wb,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:wG,end:oN},lastModified:O7,contentLength:vb,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Wb,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:QN},{itag:397,url:"https://"+YU+".googlevideo.com/videoplayback?expire="+kU+"&ei="+e+"&ip="+vF+"&id=o-AF"+u5+"&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="+
kF+"&mn="+ua+"&ms="+ua+"&mv="+PB+"&mvi="+oq+"&pl="+cb+"&initcwndbps="+QN+"&siu="+oq+"&spc="+x+"&vprv="+oq+"&svpuc="+oq+"&mime=video%2Fmp4&ns="+BN+"&gir="+D8+"&clen="+vb+"&dur="+vb+"&lmt="+O7+"&mt="+kU+"&fvip=3&keepalive="+D8+"&c=WEB&txp="+QN+"&n="+Vx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:Wb,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:wG,end:oN},lastModified:O7,contentLength:vb,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Wb,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:QN},{itag:134,url:"https://"+YU+".googlevideo.com/videoplayback?expire="+kU+"&ei="+e+"&ip="+vF+"&id=o-AF"+u5+"&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="+
kF+"&mn="+ua+"&ms="+ua+"&mv="+PB+"&mvi="+oq+"&pl="+cb+"&initcwndbps="+QN+"&siu="+oq+"&spc="+x+"&vprv="+oq+"&svpuc="+oq+"&mime=video%2Fmp4&ns="+BN+"&gir="+D8+"&clen="+vb+"&dur="+vb+"&lmt="+O7+"&mt="+kU+"&fvip=3&keepalive="+D8+"&c=WEB&txp="+QN+"&n="+Vx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:Wb,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:wG,end:oN},lastModified:O7,contentLength:vb,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Wb,highReplication:!0,approxDurationMs:QN},{itag:243,url:"https://"+YU+".googlevideo.com/videoplayback?expire="+kU+"&ei="+e+"&ip="+vF+"&id=o-AF"+u5+"&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="+
kF+"&mn="+ua+"&ms="+ua+"&mv="+PB+"&mvi="+oq+"&pl="+cb+"&initcwndbps="+QN+"&siu="+oq+"&spc="+x+"&vprv="+oq+"&svpuc="+oq+"&mime=video%2Fwebm&ns="+BN+"&gir="+D8+"&clen="+vb+"&dur="+vb+"&lmt="+O7+"&mt="+kU+"&fvip=3&keepalive="+D8+"&c=WEB&txp="+QN+"&n="+Vx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+u+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/webm; codecs="vp9"',bitrate:Wb,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:wG,end:oN},lastModified:O7,contentLength:vb,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Wb,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:QN},{itag:396,url:"https://"+YU+".googlevideo.com/videoplayback?expire="+kU+"&ei="+e+"&ip="+vF+"&id=o-AF"+u5+"&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="+
kF+"&mn="+ua+"&ms="+ua+"&mv="+PB+"&mvi="+oq+"&pl="+cb+"&initcwndbps="+QN+"&siu="+oq+"&spc="+x+"&vprv="+oq+"&svpuc="+oq+"&mime=video%2Fmp4&ns="+BN+"&gir="+D8+"&clen="+vb+"&dur="+vb+"&lmt="+O7+"&mt="+kU+"&fvip=3&keepalive="+D8+"&c=WEB&txp="+QN+"&n="+Vx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:Wb,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:wG,end:oN},lastModified:O7,contentLength:vb,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Wb,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:QN},{itag:133,url:"https://"+YU+".googlevideo.com/videoplayback?expire="+kU+"&ei="+e+"&ip="+vF+"&id=o-AF"+u5+"&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="+
kF+"&mn="+ua+"&ms="+ua+"&mv="+PB+"&mvi="+oq+"&pl="+cb+"&initcwndbps="+QN+"&siu="+oq+"&spc="+x+"&vprv="+oq+"&svpuc="+oq+"&mime=video%2Fmp4&ns="+BN+"&gir="+D8+"&clen="+vb+"&dur="+vb+"&lmt="+O7+"&mt="+kU+"&fvip=3&keepalive="+D8+"&c=WEB&txp="+QN+"&n="+Vx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:Wb,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:wG,end:oN},lastModified:O7,contentLength:vb,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Wb,approxDurationMs:QN},{itag:242,url:"https://"+YU+".googlevideo.com/videoplayback?expire="+kU+"&ei="+e+"&ip="+vF+"&id=o-AF"+u5+"&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="+kF+"&mn="+
ua+"&ms="+ua+"&mv="+PB+"&mvi="+oq+"&pl="+cb+"&initcwndbps="+QN+"&siu="+oq+"&spc="+x+"&vprv="+oq+"&svpuc="+oq+"&mime=video%2Fwebm&ns="+BN+"&gir="+D8+"&clen="+vb+"&dur="+vb+"&lmt="+O7+"&mt="+kU+"&fvip=3&keepalive="+D8+"&c=WEB&txp="+QN+"&n="+Vx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/webm; codecs="vp9"',bitrate:Wb,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:wG,end:oN},lastModified:O7,contentLength:vb,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Wb,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:QN},{itag:395,url:"https://"+YU+".googlevideo.com/videoplayback?expire="+kU+"&ei="+e+"&ip="+vF+"&id=o-AF"+u5+"&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="+
kF+"&mn="+ua+"&ms="+ua+"&mv="+PB+"&mvi="+oq+"&pl="+cb+"&initcwndbps="+QN+"&siu="+oq+"&spc="+x+"&vprv="+oq+"&svpuc="+oq+"&mime=video%2Fmp4&ns="+BN+"&gir="+D8+"&clen="+vb+"&dur="+vb+"&lmt="+O7+"&mt="+kU+"&fvip=3&keepalive="+D8+"&c=WEB&txp="+QN+"&n="+Vx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:Wb,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:wG,end:oN},lastModified:O7,contentLength:vb,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Wb,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:QN},{itag:160,url:"https://"+YU+".googlevideo.com/videoplayback?expire="+kU+"&ei="+e+"&ip="+vF+"&id=o-AF"+u5+"&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="+
kF+"&mn="+ua+"&ms="+ua+"&mv="+PB+"&mvi="+oq+"&pl="+cb+"&initcwndbps="+QN+"&siu="+oq+"&spc="+x+"&vprv="+oq+"&svpuc="+oq+"&mime=video%2Fmp4&ns="+BN+"&gir="+D8+"&clen="+vb+"&dur="+vb+"&lmt="+O7+"&mt="+kU+"&fvip=3&keepalive="+D8+"&c=WEB&txp="+QN+"&n="+Vx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+u+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:Wb,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:wG,end:oN},lastModified:O7,contentLength:vb,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:rG,approxDurationMs:QN},{itag:278,url:"https://"+YU+".googlevideo.com/videoplayback?expire="+kU+"&ei="+e+"&ip="+vF+"&id=o-AF"+u5+"&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="+kF+"&mn="+
ua+"&ms="+ua+"&mv="+PB+"&mvi="+oq+"&pl="+cb+"&initcwndbps="+QN+"&siu="+oq+"&spc="+x+"&vprv="+oq+"&svpuc="+oq+"&mime=video%2Fwebm&ns="+BN+"&gir="+D8+"&clen="+vb+"&dur="+vb+"&lmt="+O7+"&mt="+kU+"&fvip=3&keepalive="+D8+"&c=WEB&txp="+QN+"&n="+Vx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+O+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/webm; codecs="vp9"',bitrate:Wb,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:wG,end:oN},lastModified:O7,contentLength:vb,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:rG,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:QN},{itag:394,url:"https://"+YU+".googlevideo.com/videoplayback?expire="+kU+"&ei="+e+"&ip="+vF+"&id=o-AF"+u5+"&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="+
kF+"&mn="+ua+"&ms="+ua+"&mv="+PB+"&mvi="+oq+"&pl="+cb+"&initcwndbps="+QN+"&siu="+oq+"&spc="+x+"&vprv="+oq+"&svpuc="+oq+"&mime=video%2Fmp4&ns="+BN+"&gir="+D8+"&clen="+vb+"&dur="+vb+"&lmt="+O7+"&mt="+kU+"&fvip=3&keepalive="+D8+"&c=WEB&txp="+QN+"&n="+Vx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:rG,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:wG,end:oN},lastModified:O7,contentLength:vb,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:rG,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:QN},{itag:140,url:"https://"+YU+".googlevideo.com/videoplayback?expire="+kU+"&ei="+e+"&ip="+vF+"&id=o-AF"+u5+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
kF+"&mn="+ua+"&ms="+ua+"&mv="+PB+"&mvi="+oq+"&pl="+cb+"&initcwndbps="+QN+"&siu="+oq+"&spc="+x+"&vprv="+oq+"&svpuc="+oq+"&mime=audio%2Fmp4&ns="+BN+"&gir="+D8+"&clen="+vb+"&dur="+vb+"&lmt="+O7+"&mt="+kU+"&fvip=3&keepalive="+D8+"&c=WEB&txp="+QN+"&n="+Vx+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+u+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:Wb,
initRange:{start:"0",end:"631"},indexRange:{start:wG,end:oN},lastModified:O7,contentLength:vb,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Wb,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:QN,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+YU+".googlevideo.com/videoplayback?expire="+kU+"&ei="+e+"&ip="+vF+"&id=o-AF"+u5+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+kF+"&mn="+ua+"&ms="+ua+"&mv="+PB+"&mvi="+oq+"&pl="+
cb+"&initcwndbps="+QN+"&siu="+oq+"&spc="+x+"&vprv="+oq+"&svpuc="+oq+"&mime=audio%2Fwebm&ns="+BN+"&gir="+D8+"&clen="+QN+"&dur="+vb+"&lmt="+O7+"&mt="+kU+"&fvip=3&keepalive="+D8+"&c=WEB&txp="+QN+"&n="+Vx+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+u+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'audio/webm; codecs="opus"',bitrate:rG,initRange:{start:"0",end:"265"},indexRange:{start:wG,
end:oN},lastModified:O7,contentLength:QN,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:rG,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:QN,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+YU+".googlevideo.com/videoplayback?expire="+kU+"&ei="+e+"&ip="+vF+"&id=o-AF"+u5+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+kF+"&mn="+ua+"&ms="+ua+"&mv="+PB+"&mvi="+oq+"&pl="+cb+"&initcwndbps="+QN+"&siu="+oq+"&spc="+x+"&vprv="+oq+"&svpuc="+oq+"&mime=audio%2Fwebm&ns="+
BN+"&gir="+D8+"&clen="+QN+"&dur="+vb+"&lmt="+O7+"&mt="+kU+"&fvip=3&keepalive="+D8+"&c=WEB&txp="+QN+"&n="+Vx+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+u+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'audio/webm; codecs="opus"',bitrate:rG,initRange:{start:"0",end:"265"},indexRange:{start:wG,end:oN},lastModified:O7,contentLength:QN,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:rG,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:QN,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+YU+".googlevideo.com/videoplayback?expire="+kU+"&ei="+e+"&ip="+vF+"&id=o-AF"+u5+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+kF+"&mn="+ua+"&ms="+ua+"&mv="+PB+"&mvi="+oq+"&pl="+cb+"&initcwndbps="+QN+"&siu="+oq+"&spc="+x+"&vprv="+oq+"&svpuc="+oq+"&mime=audio%2Fwebm&ns="+BN+"&gir="+D8+"&clen="+vb+"&dur="+vb+"&lmt="+O7+"&mt="+kU+"&fvip=3&keepalive="+D8+"&c=WEB&txp="+
QN+"&n="+Vx+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+O,mimeType:'audio/webm; codecs="opus"',bitrate:Wb,initRange:{start:"0",end:"265"},indexRange:{start:wG,end:oN},lastModified:O7,contentLength:vb,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Wb,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:QN,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="+fA+"&docid="+N+"&ei="+e+"&feature="+K+"&fexp="+oa+"&ns="+qy+"&plid="+U+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+PB+"&el="+lo+"&len="+oN+"&of="+rA+
"&uga="+cb+"&vm="+U7},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+fA+"&docid="+N+"&ei="+e+"&feature="+K+"&fexp="+oa+"&ns="+qy+"&plid="+U+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+PB+"&el="+lo+"&len="+oN+"&of="+rA+"&uga="+cb+"&vm="+U7},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+fA+"&docid="+N+"&ei="+e+"&feature="+K+"&fexp="+oa+"&ns="+qy+"&plid="+U+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
PB+"&el="+lo+"&len="+oN+"&of="+rA+"&uga="+cb+"&vm="+U7},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+e+"&m="+Xn+"&oid="+rA+"&plid="+U+"&pltype="+DW+"&ptchn="+rA+"&ptk="+I+"&video_id="+N},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+fA+"&docid="+N+"&ei="+e+"&event="+Yb+"&feature="+K+"&fexp="+oa+"&ns="+qy+"&plid="+U+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+PB},atrUrl:{baseUrl:"https://www.youtube.com/api/stats/atr?ns=yt&el=detailpage&cpn="+
Vx+"&ver=2&cmt=1."+wG+"&fmt="+wG+"&fs=0&rt="+uo+"&euri&lact="+wG+"&cl="+fA+"&mos="+oq+"&volume=100&cbrand="+IA+"&cbr="+b_+"&cbrver="+vF+"&c=WEB&cver="+y+"&cplayer=UNIPLAYER&cos="+oL+"&cosver="+QN+"&cplatform=DESKTOP&hl=en_US&cr=US&uga="+cb+"&len="+vb+"&fexp="+ua+"&feature=g-high-rec&afmt="+wG+"&muted=0&conn=1&docid="+N+"&ei="+e+"&plid="+U+"&vm="+jI(191),elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+
N+"&caps="+D8+"&opi="+fA+"&xoaf="+oq+"&hl="+qy+"&ip="+vF+"&ipbits="+oq+"&expire="+kU+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+vF+"&key="+D8+"&lang="+q,name:{simpleText:Yb},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+N+"&caps="+D8+"&opi="+fA+"&xoaf="+oq+"&hl="+qy+"&ip="+vF+"&ipbits="+oq+"&expire="+kU+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+vF+"&key="+D8+"&kind="+D8+"&lang="+qy,name:{simpleText:Vx},
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:j2,title:DW,lengthSeconds:"1155",keywords:[j2,Tk,DW,IA],channelId:BN,isOwnerViewing:!1,shortDescription:B0,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+N+"/hqdefault.jpg?sqp=-oaymwE"+eF+"G&rs="+Lc,width:168,height:94},{url:"https://i.ytimg.com/vi/"+N+"/hqdefault.jpg?sqp=-oaymwE"+eF+
"G&rs="+Lc,width:196,height:110},{url:"https://i.ytimg.com/vi/"+N+"/hqdefault.jpg?sqp=-oaymwE"+eF+"G&rs="+Y,width:246,height:138},{url:"https://i.ytimg.com/vi/"+N+"/hqdefault.jpg?sqp=-oaymwE"+eF+"G&rs="+Y,width:336,height:188},{url:"https://i.ytimg.com/vi/"+N+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:QN,author:uR,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:QN,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+
rA+"/featured_channel.jpg?v="+bF,width:40,height:40}]},trackingParams:NP+"=",navigationEndpoint:{clickTrackingParams:Y$,commandMetadata:{webCommandMetadata:{url:"/channel/"+BN,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:BN}},channelName:uR,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:j2}]},subscribed:!1,enabled:!0,type:"FREE",channelId:BN,showPreferences:!1,subscribedButtonText:{runs:[{text:Jg}]},unsubscribedButtonText:{runs:[{text:za}]},
trackingParams:NP+"=",unsubscribeButtonText:{runs:[{text:b_}]},serviceEndpoints:[{clickTrackingParams:Y$,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[BN],params:bF}},{clickTrackingParams:Y$,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:Y$,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:NP+"=",dialogMessages:[{runs:[{text:Yb},
{text:Yb},{text:oL}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:oL}]},serviceEndpoint:{clickTrackingParams:Y$,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[BN],params:bF}},accessibility:{label:Tk},trackingParams:NP+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Yb}]},accessibility:{label:i_},
trackingParams:NP+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:uR}},unsubscribeAccessibility:{accessibilityData:{label:oL}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:vb},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,
readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:Y$,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},subscribeCommand:{clickTrackingParams:Y$,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[BN],
params:bF}},unsubscribeCommand:{clickTrackingParams:Y$,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[BN],params:bF}},addToWatchLaterCommand:{clickTrackingParams:Y$,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:j2,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:Y$,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:j2}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+N+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+eF+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+N+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+j2,width:1280,
height:720},title:{simpleText:oL},description:{simpleText:B0},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+vL,externalChannelId:BN,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:QN,category:"Travel & Events",publishDate:Hb,ownerChannelName:uR,uploadDate:Hb}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:Jg},trackingParams:NP+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:Y$,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:NP+"="}}],headerText:{simpleText:b_},icon:{infoCardIconRenderer:{trackingParams:NP+"="}},closeButton:{infoCardIconRenderer:{trackingParams:NP+"="}},trackingParams:NP+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:NP+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+j2+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:bJ,interpreterSafeUrl:(t6.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+Vf+".js",t6),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:Yb},{text:b_,bold:!0}]},endpoint:{clickTrackingParams:Y$,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:NP+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:za}]},actionButton:{buttonRenderer:{text:{runs:[{text:BF}]},navigationEndpoint:{clickTrackingParams:Y$,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+N,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
N,target:"TARGET_NEW_WINDOW"}},trackingParams:NP+"="}},trackingParams:NP+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+dI+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+dI+"=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:QN,endMs:QN,title:{accessibility:{accessibilityData:{label:B0}},simpleText:j2},metadata:{simpleText:DW},callToAction:{simpleText:lo},dismiss:{simpleText:IA},endpoint:{clickTrackingParams:Y$,commandMetadata:{webCommandMetadata:{url:"/channel/"+BN,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:BN}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:uR}]},subscribed:!1,enabled:!0,type:"FREE",channelId:BN,showPreferences:!1,
subscribedButtonText:{runs:[{text:IA}]},unsubscribedButtonText:{runs:[{text:vL}]},trackingParams:NP+"=",unsubscribeButtonText:{runs:[{text:Jg}]},serviceEndpoints:[{clickTrackingParams:Y$,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[BN],params:bF}},{clickTrackingParams:Y$,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:Y$,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:NP+
"=",dialogMessages:[{runs:[{text:IA},{text:oL},{text:vL}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:IA}]},serviceEndpoint:{clickTrackingParams:Y$,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[BN],params:bF}},accessibility:{label:lo},trackingParams:NP+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:uR}]},
accessibility:{label:DW},trackingParams:NP+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:Tk}},unsubscribeAccessibility:{accessibilityData:{label:lo}}}},trackingParams:NP+"=",isSubscribe:!0,id:QW}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+N+"/hqdefault.jpg?sqp=-oaymwE"+eF+"G&rs="+Y,width:168,height:94},{url:"https://i.ytimg.com/vi/"+N+"/hqdefault.jpg?sqp=-oaymwE"+eF+"G&rs="+Lc,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+N+"/hqdefault.jpg?sqp=-oaymwE"+eF+"G&rs="+Y,width:246,height:138},{url:"https://i.ytimg.com/vi/"+N+"/hqdefault.jpg?sqp=-oaymwE"+eF+"G&rs="+Y,width:336,height:188},{url:"https://i.ytimg.com/vi/"+N+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:QN,endMs:QN,title:{accessibility:{accessibilityData:{label:Yb}},simpleText:j2},metadata:{simpleText:vL},endpoint:{clickTrackingParams:Y$,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
j2,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:j2,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+YU+".googlevideo.com/videoplayback?source=youtube&oeis="+oq+"&c=WEB&oad="+oN+"&ovd="+oN+"&oaad="+uo+"&oavd="+uo+"&ocs="+wG+"&oewis="+oq+"&oputc="+oq+"&ofpcc="+oq+"&siu="+oq+"&msp="+oq+"&odepv="+oq+
"&id=o-AF"+u5+"&ip="+vF+"&initcwndbps="+QN+"&mt="+kU+"&oweuc="+oa}}}}},trackingParams:NP+"=",id:QW,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:oL}},simpleText:IA},style:"DEFAULT"}}]}}],startMs:QN,trackingParams:NP+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:oq,offsetEndMilliseconds:uo},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+fA+";dc_trk_cid="+fA+";dc_dbm_token="+O+";ord="+kU+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+oq+";dc_rui="+oq+";dc_exteid="+QW+";dc_av="+wG+";dc_sk="+oq+";dc_ctype="+cb+";dc_ref=http://www.youtube.com/video/"+j2+";dc_pubid="+oq+";dc_btype=23?gclid="+Ny+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
t+"____________"+R+"AxAA&sigh="+j2+"&cid="+E+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+oq+"&ns="+oq+"&event="+oq+"&device="+oq+"&content_v="+N+"&el="+lo+"&ei="+e+"&devicever="+y+"&bti="+QN+"&format="+dA+"&break_type="+oq+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+oq+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+vF+"&slot_pos="+oq+"&slot_len="+oq+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+kF+"&ad_len="+uo+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
j2+"&aqi="+e+"&ad_rmp="+oq+"&sli="+oq}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+R+"AxAA&sigh="+N+"&cid="+E+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+R+"AxAA&sigh="+N+"&cid="+E+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oq+";dc_exteid="+QW+";met="+oq+";ecn"+oq+"="+oq+
";etm1="+oq+";eid1="+cb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+R+"AxAA&sigh="+N+"&cid="+E+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oq+";dc_exteid="+QW+";met="+oq+";ecn"+oq+"="+oq+";etm1="+oq+";eid1="+dA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
t+"____________"+R+"AxAA&sigh="+N+"&cid="+E+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oq+";dc_exteid="+QW+";met="+oq+";ecn"+oq+"="+oq+";etm1="+oq+";eid1="+cb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+R+"AxAA&sigh="+N+"&cid="+E+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+R+"AxAA&sigh="+N+"&cid="+E+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oq+";dc_exteid="+QW+";met="+oq+";ecn"+oq+"="+oq+";etm1="+oq+";eid1="+cb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+R+"AxAA&sigh="+N+"&cid="+E+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oq+";dc_exteid="+QW+";met="+oq+";ecn"+oq+"="+oq+";etm1="+oq+";eid1="+QN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+R+"AxAA&sigh="+N+"&cid="+E+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
t+"____________"+R+"AxAA&sigh="+N+"&cid="+E+"&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"+t+"____________"+R+"AxAA&ase=2&num="+oq+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+cE+"&ctype="+wG+"&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"+
t+"____________"+R+"AxAA&ase=2&num="+oq+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+cE+"&label=video_engaged_view&ctype="+wG+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oq+";dc_exteid="+QW+";met="+oq+";ecn"+oq+"="+oq+";etm1="+oq+";eid1="+dA+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
fA+";dc_trk_cid="+fA+";dc_dbm_token="+O+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+oq+";ord="+fA+";dc_rui="+oq+";dc_exteid="+io+";dc_av="+oq+";dc_sk="+oq+";dc_ctype="+cb+";dc_pubid="+oq+";dc_btype=3?gclid="+Ny+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+R+"AxAA&sigh="+N+"&cid="+E+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oq+";dc_exteid="+QW+";met="+oq+";ecn"+oq+"="+oq+";etm1="+oq+";eid1="+cb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+X+"&sig="+zp+"&ad_cpn=[AD_CPN]&id="+b_+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+b_+"&dc_pubid="+oq+"&dc_exteid="+QW+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+R+"AxAA&sigh="+N+"&cid="+E+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+X+"&sig="+zp+"&ad_cpn=[AD_CPN]&id="+b_+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+oq},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+b_+"&avm="+oq+"&dc_pubid="+oq+"&dc_exteid="+
QW+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+R+"AxAA&sigh="+N+"&cid="+E+"&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="+oq+";dc_exteid="+QW+";met="+oq+";ecn"+oq+"="+oq+";etm1="+oq+";eid1="+cb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
X+"&sig="+zp+"&ad_cpn=[AD_CPN]&id="+b_+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+oq},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+b_+"&dc_pubid="+oq+"&dc_exteid="+QW+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oq+";dc_exteid="+QW+";met="+oq+";ecn"+oq+"="+oq+";etm1="+oq+";eid1="+cb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
oq+";dc_exteid="+QW+";met="+oq+";ecn"+oq+"="+oq+";etm1="+oq+";eid1="+dA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oq+";dc_exteid="+QW+";met="+oq+";ecn"+oq+"="+oq+";etm1="+oq+";eid1="+cb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oq+";dc_exteid="+QW+";met="+oq+";ecn"+oq+"="+oq+";etm1="+oq+";eid1="+dA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+R+"AxAA&sigh="+N+"&cid="+E+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oq+";dc_exteid="+QW+";met="+oq+";ecn"+oq+"="+oq+";etm1="+oq+";eid1="+cb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:Y$,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+R+"AxAA&ase=2&num="+oq+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+cE+"&label=video_click_to_advertiser_site&ctype="+wG+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+R+"AxAA&ase=2&num="+oq+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+cE+"&label=video_click_to_advertiser_site&ctype="+
wG+"&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/"+N+"/mqdefault.jpg",width:320,height:180}]},trackingParams:NP+"="},trackingParams:NP+
"=",templatedCountdown:{templatedAdText:{text:oL,isTemplated:!0,trackingParams:NP+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:b_,isTemplated:!1,trackingParams:NP+"="},trackingParams:NP+"="}},trackingParams:NP+"=",skipOffsetMilliseconds:5E3}},trackingParams:NP+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:DW},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:Y$,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
t+"____________"+R+"AxAA&ase=2&num="+oq+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+cE+"&label=video_click_to_advertiser_site&ctype="+wG+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+R+"AxAA&ase=2&num="+oq+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+cE+"&label=video_click_to_advertiser_site&ctype="+wG+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:NP+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:BF,isTemplated:!1,trackingParams:NP+"="},trackingParams:NP+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:uR,isTemplated:!0,trackingParams:NP+"="}},trackingParams:NP+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:Y$,openPopupAction:{popup:{aboutThisAdRenderer:{url:(iq.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+p+"&hl="+qy+"&origin=www.youtube.com&ata_theme="+i_,iq),trackingParams:NP+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:NP+"="}},hoverText:{runs:[{text:bF}]},trackingParams:NP+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+SK+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:NP+"="},headline:{text:uR,isTemplated:!1,trackingParams:NP+"="},description:{text:Jg,
trackingParams:NP+"="},actionButton:{buttonRenderer:{text:{simpleText:IA},navigationEndpoint:{clickTrackingParams:Y$,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+fA+";dc_trk_cid="+fA+";dc_dbm_token="+O+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+oq+";ord="+fA+";dc_rui="+oq+";dc_exteid="+QW+";dc_av="+oq+";dc_sk="+oq+";dc_ctype="+cb+";dc_pubid="+oq+";dc_btype=3?gclid="+Ny+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
t+"____________"+R+"AxAA&ase=2&num="+oq+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+cE+"&label=video_click_to_advertiser_site&ctype="+wG+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+R+"AxAA&ase=2&num="+oq+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+cE+"&label=video_click_to_advertiser_site&ctype="+wG+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:NP+"="}},startMs:oq,trackingParams:NP+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:oL},elementId:vL}},elementId:DW,trackingParams:NP+"=",legacyInfoCardVastExtension:Vx,sodarExtensionData:{siub:B0,bgub:Jg,scs:uR,bgp:oL},externalVideoId:j2,adLayoutLoggingData:{serializedAdServingDataEntry:Tk},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+SK+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:NP+"="},
headline:{text:bF,isTemplated:!1,trackingParams:NP+"="},description:{text:i_,isTemplated:!1,trackingParams:NP+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:j2},navigationEndpoint:{clickTrackingParams:Y$,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+fA+";dc_trk_cid="+fA+";dc_dbm_token="+O+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+oq+";ord="+fA+";dc_rui="+oq+";dc_exteid="+
QW+";dc_av="+oq+";dc_sk="+oq+";dc_ctype="+cb+";dc_pubid="+oq+";dc_btype=3?gclid="+Ny+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+R+"AxAA&ase=2&num="+oq+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+cE+"&label=video_click_to_advertiser_site&ctype="+wG+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+R+"AxAA&ase=2&num="+
oq+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+cE+"&label=video_click_to_advertiser_site&ctype="+wG+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:NP+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:NP+"="}},navigationEndpoint:{clickTrackingParams:Y$,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+fA+";dc_trk_cid="+
fA+";dc_dbm_token="+O+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+oq+";ord="+fA+";dc_rui="+oq+";dc_exteid="+QW+";dc_av="+oq+";dc_sk="+oq+";dc_ctype="+cb+";dc_pubid="+oq+";dc_btype=3?gclid="+Ny+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+R+"AxAA&sigh="+N+"&cid="+E+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+
R+"AxAA&ase=2&num="+oq+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+cE+"&label=video_click_to_advertiser_site&ctype="+wG+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+R+"AxAA&ase=2&num="+oq+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+cE+"&label=video_click_to_advertiser_site&ctype="+wG+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:NP+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:NP+"="},abandonCommands:{commands:[{clickTrackingParams:Y$,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+R+"AxAA&sigh="+N+"&cid="+E+"&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="+oq+";dc_exteid="+QW+";met="+oq+";ecn"+
oq+"="+oq+";etm1="+oq+";eid1="+cb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:Y$,commandExecutorCommand:{commands:[{clickTrackingParams:Y$,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+R+"AxAA&sigh="+N+"&cid="+E+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:i_,isTemplated:!1,trackingParams:NP+
"="},trackingParams:NP+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:za},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+R+"AxAA&sigh="+N+"&cid="+E+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oq+";dc_exteid="+QW+";met="+oq+";ecn"+oq+"="+oq+";etm1="+oq+";eid1="+QN+";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="+fA+";dc_trk_cid="+fA+";ord="+kU+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+oq+";dc_rui="+oq+";dc_exteid="+QW+";dc_av="+wG+";dc_sk="+oq+";dc_ctype="+cb+";dc_ref=http://www.youtube.com/video/"+j2+";dc_pubid="+oq+";dc_btype=23?gclid="+Ny+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+t+"____________"+R+"AxAA&sigh="+j2+"&cid="+E+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+oq+"&ns="+oq+"&event="+oq+"&device="+oq+"&content_v="+N+"&el="+lo+"&ei="+e+"&devicever="+y+"&bti="+QN+"&format="+dA+"&break_type="+oq+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+oq+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+vF+"&slot_pos="+oq+"&slot_len="+oq+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
kF+"&ad_len="+uo+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+j2+"&aqi="+e+"&ad_rmp="+oq+"&sli="+oq}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+R+"AxAA&sigh="+j2+"&cid="+E+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+R+"AxAA&sigh="+j2+"&cid="+E+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
oq+";dc_exteid="+QW+";met="+oq+";ecn"+oq+"="+oq+";etm1="+oq+";eid1="+cb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+R+"AxAA&sigh="+j2+"&cid="+E+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oq+";dc_exteid="+QW+";met="+oq+";ecn"+oq+"="+oq+";etm1="+oq+";eid1="+dA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+R+"AxAA&sigh="+j2+"&cid="+E+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oq+";dc_exteid="+QW+";met="+oq+";ecn"+oq+"="+oq+";etm1="+oq+";eid1="+cb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+R+"AxAA&sigh="+j2+"&cid="+
E+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+R+"AxAA&sigh="+j2+"&cid="+E+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oq+";dc_exteid="+QW+";met="+oq+";ecn"+oq+"="+oq+";etm1="+oq+";eid1="+cb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
t+"____________"+R+"AxAA&sigh="+j2+"&cid="+E+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oq+";dc_exteid="+QW+";met="+oq+";ecn"+oq+"="+oq+";etm1="+oq+";eid1="+QN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+R+"AxAA&sigh="+j2+"&cid="+E+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+R+"AxAA&sigh="+j2+"&cid="+E+"&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"+t+"____________"+R+"AxAA&ase=2&num="+oq+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+cE+"&ctype="+wG+"&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"+t+"____________"+R+"AxAA&ase=2&num="+oq+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+cE+"&label=video_engaged_view&ctype="+wG+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oq+";dc_exteid="+QW+";met="+oq+";ecn"+oq+"="+oq+";etm1="+oq+";eid1="+dA+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+R+"AxAA&sigh="+j2+"&cid="+E+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oq+";dc_exteid="+QW+";met="+oq+";ecn"+oq+"="+oq+";etm1="+oq+";eid1="+cb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+X+"&sig="+zp+"&ad_cpn=[AD_CPN]&id="+
b_+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+b_+"&dc_pubid="+oq+"&dc_exteid="+QW+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+R+"AxAA&sigh="+j2+"&cid="+E+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+X+
"&sig="+zp+"&ad_cpn=[AD_CPN]&id="+b_+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+oq},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+b_+"&avm="+oq+"&dc_pubid="+oq+"&dc_exteid="+QW+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+R+"AxAA&sigh="+j2+"&cid="+E+"&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="+oq+";dc_exteid="+QW+";met="+oq+";ecn"+oq+"="+oq+";etm1="+oq+";eid1="+cb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+X+"&sig="+zp+"&ad_cpn=[AD_CPN]&id="+b_+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+oq},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+b_+"&dc_pubid="+oq+"&dc_exteid="+QW+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oq+";dc_exteid="+QW+";met="+oq+";ecn"+oq+"="+oq+";etm1="+oq+";eid1="+cb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oq+";dc_exteid="+QW+";met="+oq+";ecn"+oq+"="+oq+";etm1="+oq+";eid1="+dA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
oq+";dc_exteid="+QW+";met="+oq+";ecn"+oq+"="+oq+";etm1="+oq+";eid1="+cb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oq+";dc_exteid="+QW+";met="+oq+";ecn"+oq+"="+oq+";etm1="+oq+";eid1="+dA+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+R+"AxAA&sigh="+j2+"&cid="+E+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oq+";dc_exteid="+QW+";met="+oq+";ecn"+oq+"="+oq+";etm1="+oq+";eid1="+cb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:Y$,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+R+"AxAA&ase=2&num="+oq+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+cE+"&label=video_click_to_advertiser_site&ctype="+
wG+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+R+"AxAA&ase=2&num="+oq+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+cE+"&label=video_click_to_advertiser_site&ctype="+wG+"&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/"+N+"/mqdefault.jpg",width:320,height:180}]},trackingParams:NP+"="},trackingParams:NP+"=",templatedCountdown:{templatedAdText:{text:BF,isTemplated:!0,trackingParams:NP+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:IA,isTemplated:!1,trackingParams:NP+"="},trackingParams:NP+"="}},
trackingParams:NP+"=",skipOffsetMilliseconds:5E3}},trackingParams:NP+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:DW},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:Y$,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+R+"AxAA&ase=2&num="+oq+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+cE+"&label=video_click_to_advertiser_site&ctype="+wG+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+R+"AxAA&ase=2&num="+oq+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+cE+"&label=video_click_to_advertiser_site&ctype="+wG+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:NP+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:b_,isTemplated:!1,trackingParams:NP+"="},trackingParams:NP+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:Tk,
isTemplated:!0,trackingParams:NP+"="}},trackingParams:NP+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:Y$,openPopupAction:{popup:{aboutThisAdRenderer:{url:(fw.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+p+"&hl="+qy+"&origin=www.youtube.com&ata_theme="+i_,fw),trackingParams:NP+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:NP+"="}},hoverText:{runs:[{text:BF}]},trackingParams:NP+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+L4+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:NP+"="},headline:{text:BF,isTemplated:!1,trackingParams:NP+"="},description:{text:Vx,trackingParams:NP+"="},actionButton:{buttonRenderer:{text:{simpleText:IA},navigationEndpoint:{clickTrackingParams:Y$,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
t+"____________"+R+"AxAA&ase=2&num="+oq+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+cE+"&label=video_click_to_advertiser_site&ctype="+wG+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+R+"AxAA&ase=2&num="+oq+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+cE+"&label=video_click_to_advertiser_site&ctype="+wG+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:NP+"="}},startMs:oq,trackingParams:NP+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:IA},elementId:uR}},elementId:bF,trackingParams:NP+"=",legacyInfoCardVastExtension:uR,sodarExtensionData:{siub:BF,bgub:bF,scs:Yb,bgp:IA},externalVideoId:j2,adLayoutLoggingData:{serializedAdServingDataEntry:B0},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+L4+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:NP+"="},headline:{text:B0,
isTemplated:!1,trackingParams:NP+"="},description:{text:bF,isTemplated:!1,trackingParams:NP+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:DW},navigationEndpoint:{clickTrackingParams:Y$,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+R+"AxAA&ase=2&num="+oq+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+cE+"&label=video_click_to_advertiser_site&ctype="+wG+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+R+"AxAA&ase=2&num="+oq+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+cE+"&label=video_click_to_advertiser_site&ctype="+wG+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:NP+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:NP+"="}},navigationEndpoint:{clickTrackingParams:Y$,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
t+"____________"+R+"AxAA&sigh="+j2+"&cid="+E+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+R+"AxAA&ase=2&num="+oq+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+cE+"&label=video_click_to_advertiser_site&ctype="+wG+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+R+"AxAA&ase=2&num="+
oq+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+cE+"&label=video_click_to_advertiser_site&ctype="+wG+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:NP+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:NP+"="},abandonCommands:{commands:[{clickTrackingParams:Y$,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+R+"AxAA&sigh="+j2+"&cid="+E+"&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="+oq+";dc_exteid="+QW+";met="+oq+";ecn"+oq+"="+oq+";etm1="+oq+";eid1="+cb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:Y$,commandExecutorCommand:{commands:[{clickTrackingParams:Y$,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+R+"AxAA&sigh="+j2+"&cid="+E+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:uR,isTemplated:!1,trackingParams:NP+"="},trackingParams:NP+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:BF},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+R+"AxAA&sigh="+j2+"&cid="+E+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oq+";dc_exteid="+QW+";met="+oq+";ecn"+oq+"="+oq+";etm1="+oq+";eid1="+
QN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:oL}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:i_}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:uo,offsetEndMilliseconds:dA},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+e+"&m_pos="+cb+"&token=ALHj"+w+"&index="+oq+"&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="+y+"&m_pos_ms="+uo}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Yb}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:dA,offsetEndMilliseconds:dA},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+e+"&m_pos="+wG+"&token=ALHj"+w+"&index="+oq+"&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="+
y+"&m_pos_ms="+dA}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Jg}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:dA,offsetEndMilliseconds:dA},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+e+"&m_pos="+wG+"&token=ALHj"+w+"&index="+oq+"&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="+
y+"&m_pos_ms="+dA}},adSlotLoggingData:{serializedSlotAdServingDataEntry:za}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:dA,offsetEndMilliseconds:dA},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+e+"&m_pos="+wG+"&token=ALHj"+w+"&index="+oq+"&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="+
y+"&m_pos_ms="+dA}},adSlotLoggingData:{serializedSlotAdServingDataEntry:b_}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:dA,offsetEndMilliseconds:cb},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+e+"&m_pos="+wG+"&token=ALHj"+w+"&index="+oq+"&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="+
y+"&m_pos_ms="+dA}},adSlotLoggingData:{serializedSlotAdServingDataEntry:i_}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:cb,offsetEndMilliseconds:cb},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+e+"&m_pos="+cb+"&token=ALHj"+w+"&index="+oq+"&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="+
y+"&m_pos_ms="+cb}},adSlotLoggingData:{serializedSlotAdServingDataEntry:bF}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:uR,isTemplated:!1,trackingParams:NP+"="},description:{text:Tk,isTemplated:!1,trackingParams:NP+"="},actionButton:{buttonRenderer:{text:{simpleText:vL},navigationEndpoint:{clickTrackingParams:Y$,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
fA+";dc_trk_cid="+fA+";dc_dbm_token="+O+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+oq+";ord="+fA+";dc_rui="+oq+";dc_exteid="+QW+";dc_av="+oq+";dc_sk="+oq+";dc_ctype="+cb+";dc_pubid="+oq+";dc_btype=3?gclid="+Ny+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+R+"AxAA&ase=2&num="+oq+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+cE+"&label=video_click_to_advertiser_site&ctype="+wG+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+R+"AxAA&ase=2&num="+oq+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+cE+"&label=video_click_to_advertiser_site&ctype="+wG+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:NP+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+SK+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:NP+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Rq+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:NP+"="},navigationEndpoint:{clickTrackingParams:Y$,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+fA+";dc_trk_cid="+fA+";dc_dbm_token="+O+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+oq+";ord="+fA+
";dc_rui="+oq+";dc_exteid="+QW+";dc_av="+oq+";dc_sk="+oq+";dc_ctype="+cb+";dc_pubid="+oq+";dc_btype=3?gclid="+Ny+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+R+"AxAA&ase=2&num="+oq+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+cE+"&label=video_click_to_advertiser_site&ctype="+wG+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
t+"____________"+R+"AxAA&ase=2&num="+oq+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+cE+"&label=video_click_to_advertiser_site&ctype="+wG+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:NP+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Y$,openPopupAction:{popup:{aboutThisAdRenderer:{url:(f0.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+p+"&hl="+qy+"&origin=www.youtube.com&ata_theme="+i_,f0),trackingParams:NP+"="}},popupType:"DIALOG"}},trackingParams:NP+"="}},hoverText:{runs:[{text:b_}]},trackingParams:NP+"="}},adVideoId:j2,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+R+"AxAA&sigh="+N+"&cid="+E+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:j2},associatedCompositePlayerBytesLayoutId:Vx}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:lo}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:BF,isTemplated:!1,trackingParams:NP+"="},description:{text:vL,isTemplated:!1,trackingParams:NP+"="},actionButton:{buttonRenderer:{text:{simpleText:vL},navigationEndpoint:{clickTrackingParams:Y$,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+
R+"AxAA&ase=2&num="+oq+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+cE+"&label=video_click_to_advertiser_site&ctype="+wG+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+R+"AxAA&ase=2&num="+oq+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+cE+"&label=video_click_to_advertiser_site&ctype="+wG+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:NP+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+L4+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:NP+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+iK+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:NP+"="},navigationEndpoint:{clickTrackingParams:Y$,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+R+"AxAA&ase=2&num="+
oq+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+cE+"&label=video_click_to_advertiser_site&ctype="+wG+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+R+"AxAA&ase=2&num="+oq+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+cE+"&label=video_click_to_advertiser_site&ctype="+wG+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:NP+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Y$,openPopupAction:{popup:{aboutThisAdRenderer:{url:(T4.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+p+"&hl="+qy+"&origin=www.youtube.com&ata_theme="+i_,T4),trackingParams:NP+"="}},popupType:"DIALOG"}},trackingParams:NP+"="}},
hoverText:{runs:[{text:DW}]},trackingParams:NP+"="}},adVideoId:j2,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+R+"AxAA&sigh="+j2+"&cid="+E+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:j2},associatedCompositePlayerBytesLayoutId:Vx}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Jg}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Vx,
isTemplated:!1,trackingParams:NP+"="},description:{text:i_,isTemplated:!1,trackingParams:NP+"="},actionButton:{buttonRenderer:{text:{simpleText:bF},navigationEndpoint:{clickTrackingParams:Y$,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+fA+";dc_trk_cid="+fA+";dc_dbm_token="+O+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+oq+";ord="+fA+";dc_rui="+oq+";dc_exteid="+QW+";dc_av="+oq+";dc_sk="+oq+";dc_ctype="+
cb+";dc_pubid="+oq+";dc_btype=3?gclid="+Ny+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+R+"AxAA&ase=2&num="+oq+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+cE+"&label=video_click_to_advertiser_site&ctype="+wG+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+R+"AxAA&ase=2&num="+oq+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+
Y+"&adurl="+cE+"&label=video_click_to_advertiser_site&ctype="+wG+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:NP+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+SK+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:NP+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Rq+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:NP+
"="},navigationEndpoint:{clickTrackingParams:Y$,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+fA+";dc_trk_cid="+fA+";dc_dbm_token="+O+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+oq+";ord="+fA+";dc_rui="+oq+";dc_exteid="+QW+";dc_av="+oq+";dc_sk="+oq+";dc_ctype="+cb+";dc_pubid="+oq+";dc_btype=3?gclid="+Ny+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
t+"____________"+R+"AxAA&ase=2&num="+oq+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+cE+"&label=video_click_to_advertiser_site&ctype="+wG+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+R+"AxAA&ase=2&num="+oq+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+Y+"&adurl="+cE+"&label=video_click_to_advertiser_site&ctype="+wG+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:NP+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Y$,openPopupAction:{popup:{aboutThisAdRenderer:{url:(ky.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+p+"&hl="+qy+"&origin=www.youtube.com&ata_theme="+i_,ky),trackingParams:NP+"="}},popupType:"DIALOG"}},trackingParams:NP+
"="}},hoverText:{runs:[{text:Tk}]},trackingParams:NP+"="}},adVideoId:j2,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+R+"AxAA&sigh="+N+"&cid="+E+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:DW},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:Vx}},adSlotLoggingData:{serializedSlotAdServingDataEntry:lo}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:Vf,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:Vf,command:{innertubeCommand:{clickTrackingParams:Y$,ypcGetOfflineUpsellEndpoint:{params:GI}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:NP+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:kU,nanos:Bb}}}},vo=JSON.stringify(V4),E6=performance.now()-b;return{objectRepresentation:V4,jsonRepresentation:vo,generationTime:E6}};
oof=function(b,h){if(b===h)return!0;if(!b||!h||typeof b!==typeof h)return!1;if(b instanceof Array&&h instanceof Array){if(b.length!==h.length)return!1;for(var y=0;y<b.length;y++)if(!oof(b[y],h[y]))return!1;return!0}if(typeof b==="object"&&typeof h==="object"&&b&&h){for(y in b)if(!(y in h&&oof(b[y],h[y])))return!1;for(var S in h)if(!(S in b))return!1;return!0}return!1};
_.Pd=function(){if(!LR){LR=new JW(new M9k);var b=_.tj("client_streamz_web_flush_count",-1);b!==-1&&(LR.invocationLimit=b)}return LR};
KR=function(b,h,y,S){if(b===h)return!0;if(Array.isArray(b)&&Array.isArray(h)){if(b.length!==h.length)return!1;for(var F=0;F<b.length;F++)if(!KR(b[F],h[F],y,S))return!1;return!0}if(b instanceof Set||h instanceof Set){if(b instanceof Set&&h instanceof Set){if(b.size!==h.size)return!1;S=_.L(b.values());for(F=S.next();!F.done;F=S.next())if(!h.has(F.value))return!1;return!0}return!1}if(b instanceof Function){if(S)return!0;b.name===""&&_.QT(Error("Rf"),"ERROR");return!1}if(b instanceof Date&&h instanceof
Date)return b.getTime()===h.getTime();if(b instanceof Object&&h instanceof Object){if(noI(b)&&noI(h))try{return b.equals(h)}catch(P){_.QT(Error("Sf`"+P),"ERROR")}F=Object.getOwnPropertyNames(b).filter(function(P){return y?b[P]!==void 0:!0});
var a=Object.getOwnPropertyNames(h).filter(function(P){return y?h[P]!==void 0:!0});
if(F.length!==a.length)return!1;F=_.L(F);for(a=F.next();!a.done;a=F.next())if(a=a.value,!KR(b[a],h[a],y,S))return!1;return!0}return!1};
noI=function(b){b=Object.getPrototypeOf(b).equals;return b instanceof Function&&b.length===1};
_.u$I=function(){return _.Z(function(b){if(b.nextAddress==1)return XDy!==2?b.jumpTo(2):b.yield(Hkq(),3);b.nextAddress!=2&&(XDy=b.yieldResult);return b.return(XDy)})};
_.t9n=function(){return _.Z(function(b){if(b.nextAddress==1)return _.r("ab_pl_man")?Ok5!==2?b.jumpTo(2):b.yield(N7M(),3):b.return(1);b.nextAddress!=2&&(Ok5=b.yieldResult);return b.return(Ok5)})};
REY=function(){return _.Z(function(b){if(b.nextAddress==1)return _.r("ab_fk_sk_cl")?rp4!==2?b.jumpTo(2):b.yield(cp4(),3):b.return(1);b.nextAddress!=2&&(rp4=b.yieldResult);return b.return(rp4)})};
_.IPU=function(){return _.Z(function(b){if(b.nextAddress==1)return _.r("ab_det_apb_b")?zEk!==2?b.jumpTo(2):b.yield(Dpk(),3):b.return(1);b.nextAddress!=2&&(zEk=b.yieldResult);return b.return(zEk)})};
ApN=function(){var b;return _.Z(function(h){if(h.nextAddress==1)return h.yield(Promise.all([_.u$I(),_.IPU(),_.t9n(),REY()]),2);if(h.nextAddress!=3)return B7k()?h.return(!0):h.yield(_.Wqf(),3);b=h.yieldResult;return h.return(b===0)})};
B7k=function(){var b=!1,h=function(y,S){UpF.increment(S,y);y===0&&(b=!0)};
h(_.pDN(),"j.s_");h(XDy,"f.i_");h(zEk,"a.b_");h(Ok5,"p.m_");h(rp4,"i.f_");Jp5===2&&(Jp5=_.eEy(CUU));h(Jp5,"e.h_");_.r("ks_det_gpbl")||h(_.gon(),"p.i_");_.r("ks_get_o_pp")||h(_.sxI(),"g.o_");_.r("ab_deg_unex_thr")||h(_.Yzy(),"a.o_");h(T7k,"s.t_");_.r("ab_det_sc_inj_enf")&&h(_.G_I(),"s.i_");h(k_Y,"d.p_");h(_.V9Y(_.ZT),"o.p_");h(_.Eoy()===0?0:_.ikF(),"o.a_");return _.r("debug_sk_em_precheck")?!0:b};
wDy=function(){var b=[].concat(_.f$(fP8));try{var h=Zkk();b.push({jsonRepresentation:h.jsonRepresentation,objectRepresentation:h.objectRepresentation})}catch(y){b=[].concat(_.f$(fP8))}return b};
lPq=function(){var b=["adPlacements","adSlots"];try{return b.filter(function(){return!0}).length!==b.length?0:1}catch(h){return 0}};
_.sxI=function(){if(lPq()===0)return 0;var b=Zkk(),h=b.objectRepresentation,y=(0,_.lR.unsafeClone)(h),S=[];if(h&&typeof h==="object")for(var F in h)S.push(F);else return 4;b=b.objectRepresentation.adPlacements;if(!(b&&b.length>0))return 4;try{if(!oof(S,Object.getOwnPropertyNames(h)))return 0}catch(a){return 0}return oof(y,h)?1:0};
_.V9Y=function(b){if(!b||!b.length||typeof b==="string")return 0;for(var h=Object.getOwnPropertyNames(Object.prototype),y=0;y<b.length;y++)for(var S=_.a3(b[y]),F=_.L(h),a=F.next();!a.done;a=F.next())if(S===a.value)return 0;return 1};
qzn=function(b){var h=_.a3(b[1]);if(b[0]===null)return h;b=b[0];for(var y={},S=0;S<b.length;S++){var F=_.a3(b[S]);if(S===0)y[F]=h;else{var a={};a[F]=y;y=a}}return y};
_.Eoy=function(){for(var b=_.o3,h=0;h<b.length;h++){var y=qzn(b[h]),S=[];S.push(y);if(S.length===0)return 0}return 1};
_.ikF=function(){for(var b=_.o3,h={},y=0;y<b.length;h={hJF:void 0},y++){var S=[qzn(b[y])];h.hJF=[];S.forEach(function(F){return function(a){F.hJF[F.hJF.length]=a}}(h));
if(h.hJF.length===0)return 0}return 1};
_.pDN=function(){for(var b=_.L(wDy()),h=b.next();!h.done;h=b.next()){var y=h.value;h=y.jsonRepresentation;y=y.objectRepresentation;try{var S=JSON.parse(h);if(!KR(S,y,!1,!1))return 0}catch(F){return 0}}return 1};
_.G_I=function(){try{var b=_.c9("ab_det_sc_inj_val");b.length===1&&b[0]===""&&(b=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var h=document.querySelectorAll("script"),y=_.L(h),S=y.next();!S.done;S=y.next())for(var F=S.value,a=_.L(b),P=a.next();!P.done;P=a.next()){var K=P.value;h=void 0;if((h=F.textContent)==null?0:h.includes(K))return 0}}catch(n){return 4}return 1};
_.Wqf=function(){var b,h,y,S,F,a,P;return _.Z(function(K){switch(K.nextAddress){case 1:_.WE(K,2),b=_.L(fP8),h=b.next();case 4:if(h.done)return K.return(1);S=y=h.value;F=S.jsonRepresentation;a=S.objectRepresentation;return K.yield((new Response(F,{status:200})).json(),7);case 7:P=K.yieldResult;if(!KR(P,a,!1,!1))return K.return(0);h=b.next();K.jumpTo(4);break;case 2:return _.C$(K),K.return(4)}})};
_.Yzy=function(){try{btoa("abc")}catch(b){return 0}return 1};
Hkq=function(){var b,h,y,S,F,a,P,K,n,X,u;return _.Z(function(O){switch(O.nextAddress){case 1:_.WE(O,2),b=_.L(wDy()),h=b.next();case 4:if(h.done)return O.return(1);S=y=h.value;F=S.jsonRepresentation;a=S.objectRepresentation;P=btoa(F);K="data:application/json;base64,"+P;n=new Request(K);Object.defineProperty(n,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(n,"method",{get:function(){return"POST"}});
Object.defineProperty(n,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(n,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(n,"body",{get:function(){return new ReadableStream}});
return O.yield(fetch(n),7);case 7:return X=O.yieldResult,O.yield(X.json(),8);case 8:u=O.yieldResult;if(!KR(u,a,!1,!1))return O.return(0);h=b.next();O.jumpTo(4);break;case 2:return _.C$(O),O.return(4)}})};
_.eEy=function(b){if(!b||!b.length||typeof b==="string")return 0;for(var h=function(F){return _.a3(F)},y=2,S=0;S<b.length&&(y=_.xpj(_.PUY(b[S],h)),y!==0);S++);
return y};
_.xpj=function(b){var h=_.L(b);b=h.next().value;h=h.next().value;try{var y=document.createElement("div");document.body.appendChild(y);var S=getComputedStyle(y).display;document.body.removeChild(y);if(S==="none")return 4;var F=getComputedStyle(h).display==="none"?0:1;document.body.removeChild(b);return F}catch(a){return 4}};
cp4=function(){var b,h,y;return _.Z(function(S){b=new _.MC;h=document.createElement("button");h.classList.add("ytp-ad-skip-button");h.style.opacity="0";h.style.height="0px";h.style.width="0px";h.style.padding="0px";h.style.border="none";y=function(){h.parentElement&&h.parentElement.removeChild(h)};
h.onclick=function(){b.resolve(0);y()};
document.body.appendChild(h);setTimeout(function(){y();b.resolve(1)},50);
return S.return(b.promise)})};
N7M=function(){var b,h,y,S,F,a,P;return _.Z(function(K){b=new _.MC;h=document.createElement("ytd-player");try{document.body.prepend(h)}catch(n){return K.return(4)}y=function(){h.parentElement&&h.parentElement.removeChild(h)};
h.getElementsByTagName("div").length>0?S=h.getElementsByTagName("div")[0]:(S=document.createElement("div"),h.appendChild(S));F=document.createElement("div");S.appendChild(F);a=document.createElement("video");P=new Blob([new Uint8Array([26,69,223,163,159,66,134,129,1,66,247,129,1,66,242,129,4,66,243,129,8,66,130,132,119,101,98,109,66,135,129,4,66,133,129,2,24,83,128,103,1,255,255,255,255,255,255,255,21,73,169,102,153,42,215,177,131,15,66,64,77,128,134,67,104,114,111,109,101,87,65,134,67,104,114,111,
109,101,22,84,174,107,169,174,167,215,129,1,115,197,135,207,96,156,234,24,157,175,131,129,1,85,238,129,1,134,133,86,95,86,80,56,224,138,176,129,1,186,129,1,83,192,129,1,31,67,182,117,1,255,255,255,255,255,255,255,231,129,0,160,204,161,162,129,0,0,0,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,229,106,0,117,161,165,166,163,238,129,1,165,158,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,232,120,0,160,187,161,152,129,3,233,0,177,
1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,129,0,160,188,161,152,129,7,208,0,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,130,3,233])],{type:"video/webm"});a.src=_.E_(_.q9(P));a.ontimeupdate=function(){y();b.resolve(0)};
F.appendChild(a);a.classList.add("html5-main-video");setTimeout(function(){F.classList.add("ad-interrupting")},200);
setTimeout(function(){y();b.resolve(1)},5E3);
return K.return(b.promise)})};
Qx8=function(b){var h=Zkk().objectRepresentation.playbackTracking;if(h){var y=[],S;y.push(h==null?void 0:(S=h.videostatsPlaybackUrl)==null?void 0:S.baseUrl);var F;y.push(h==null?void 0:(F=h.videostatsDelayplayUrl)==null?void 0:F.baseUrl);var a;y.push(h==null?void 0:(a=h.videostatsWatchtimeUrl)==null?void 0:a.baseUrl);var P;y.push(h==null?void 0:(P=h.ptrackingUrl)==null?void 0:P.baseUrl);var K;y.push(h==null?void 0:(K=h.qoeUrl)==null?void 0:K.baseUrl);var n;y.push(h==null?void 0:(n=h.atrUrl)==null?
void 0:n.baseUrl);h=_.L(y);for(y=h.next();!y.done;y=h.next())if((y=y.value)&&b.test(y))return y.replace("https://www.youtube.com","").replace("https://s.youtube.com","")}};
mpN=function(b,h){var y,S;return _.Z(function(F){switch(F.nextAddress){case 1:y=[],S=0;case 2:if(!(S<3)){F.jumpTo(4);break}return F.yield(fetch(b,{cache:"no-store",method:h}).then(function(a){y.push(a.status)}).catch(function(){y.push(-1)}),3);
case 3:S++;F.jumpTo(2);break;case 4:return F.return(y)}})};
voN=function(b){return b.domainLookupStart===0&&b.domainLookupEnd===0&&b.connectStart===0&&b.connectEnd===0||b.duration===0};
br8=function(b,h,y){y=y===void 0?"GET":y;var S,F,a,P,K,n,X,u,O,N;return _.Z(function(t){if(t.nextAddress==1)return t.yield(Promise.all([mpN(b,y),mpN(h,y)]),2);S=t.yieldResult;F=_.L(S);a=F.next().value;P=F.next().value;K=a;n=P;if(Math.min.apply(Math,_.f$(n))!==Math.max.apply(Math,_.f$(n))||Math.min.apply(Math,_.f$(K))!==Math.max.apply(Math,_.f$(K)))return t.return(2);if(Math.min.apply(Math,_.f$(n))===Math.min.apply(Math,_.f$(K)))return t.return(1);u=(X=performance.getEntriesByName(b))==null?void 0:
X[0];N=(O=performance.getEntriesByName(h))==null?void 0:O[0];return u&&N?voN(N)?t.return(1):voN(u)?t.return(0):t.return(1):t.return(2)})};
Dpk=function(){var b;return _.Z(function(h){var y=[];var S;var F,a,P;(F=S=(F=Zkk().objectRepresentation.streamingData)==null?void 0:(a=F.formats)==null?void 0:(P=a[0])==null?void 0:P.url)&&F&&!S.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(F=F.replace("initcwndbps","ctier=L&initcwndbps"),F=F.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),S={testUrl:F,baseUrl:S,method:"GET"}):S=void 0;S&&y.push(S);_.r("ab_net_tp_e")&&y.push({testUrl:_.S5.location.origin+"/ad_companion",baseUrl:_.S5.location.origin+
"/generate_204",method:"OPTIONS"});_.r("ab_fix_creator_view_cnt")&&(y.length=0,(S=Qx8(/api\/stats\/atr/))&&y.push({testUrl:_.S5.location.origin+S,baseUrl:_.S5.location.origin+"/generate_204",method:"POST"}));_.r("ad_net_pb_pbp")&&(S=Qx8(/api\/stats\/qoe/))&&y.push({testUrl:_.S5.location.origin+S,baseUrl:_.S5.location.origin+"/feed/download",method:"GET"});y=y.length!==0?y[Math.floor(Math.random()*y.length)]:void 0;return(b=y)?h.return(br8(b.testUrl,b.baseUrl,b.method)):h.return(4)})};
_.gon=function(){if(_.S5.aTG===void 0||_.S5.aTG===null||typeof _.S5.aTG!=="function")return 2;try{return _.S5.aTG()===!0?0:1}catch(b){return 0}};
hfq=function(b){switch(b){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.m5(b,"unknown result type")}};
_.yZn=function(b,h){var y=Number(_.QC("CATSTAT",0));if(h.igF===void 0)return y;h=h.igF;b=hfq(b);return y&~(3<<h)|b<<h};
SXj=function(b){var h,y;if((b=(h=b.auxiliaryUi)==null?void 0:(y=h.messageRenderers)==null?void 0:y.bkaEnforcementMessageViewModel)&&b.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return b};
ai8=function(){for(var b=_.L(Object.values(_.FzI)),h=b.next();!h.done;h=b.next())h=h.value,h.bZQ&&h.igF&&_.xZ("CATSTAT",_.yZn(2,h))};
_.Hd=function(b,h){b=_.nR("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",b);(h===void 0?0:h)?_.dY8(b,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.Xd().logFlowEvent(b,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
$YN=function(){if(!jQk){if(Polymer.Base){var b=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{b.apply(this,arguments)}catch(O){_.v4(O)}};
var h=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{h.apply(this,arguments)}catch(O){_.v4(O)}};
var y=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{y.apply(this,arguments)}catch(O){_.v4(O)}};
var S=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{S.apply(this,arguments)}catch(O){_.v4(O)}};
var F=Polymer.Base._listen,a=new WeakMap;Polymer.Base._listen=function(O,N,t){var R=function(){try{t.apply(this,arguments)}catch(I){_.v4(I)}};
a.set(t,R);F.call(this,O,N,R)};
var P=Polymer.Base._unlisten;Polymer.Base._unlisten=function(O,N,t){P.call(this,O,N,a.get(t))}}if(Polymer.Async){var K=Polymer.Async,n=K._atEndOfMicrotask;
K._atEndOfMicrotask=function(){try{n.apply(K,arguments)}catch(O){_.v4(O)}}}if(Polymer.RenderStatus){var X=Polymer.RenderStatus,u=X.afterNextRender;
X.afterNextRender=function(O,N,t){u.call(X,O,function(){try{N.apply(this,arguments)}catch(R){_.v4(R)}},t)}}jQk=!0}};
_.PHN=function(b){var h=b?_.W9(b):"";if(h){if(h.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(h.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(h.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(h.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(h.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.r("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(h.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";h=h.toLowerCase();if(h==="/")return"home";if(h==="/channel_memberships")return"channel-memberships-shopfront";if(h.indexOf("/feed/trending")===0)return"trending";if(h.indexOf("/feed/explore")===0)return"explore";if(h.indexOf("/live")===0)return"live";if(h.indexOf("/results")===0)return"search";if(h.indexOf("/sports")===0)return"sports";if(h.indexOf("/fashion")===0||h.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(h))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(h))return _.r("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(h.indexOf("/channel/")===0||h.indexOf("/user/")===0||h.indexOf("/gaming")===0||h.indexOf("/post/")===0)return"channel";if(Lzy(b))return"show";if(h==="/playlist"||h.indexOf("/playlist/")===0||h==="/view_play_list"||h.indexOf("/view_play_list/")===0||h.indexOf("/show/")===0)return"playlist";if(h==="/companion_canvas")return"companion-canvas";if(h==="/feed/history"||
h.indexOf("/feed/history/")===0)return"history";if(h==="/new")return"labs";if(h==="/feed/subscriptions")return"subscriptions";if(h.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(h==="/history_controls")return"standalone";if(h.indexOf("/account")===0||h==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(h.indexOf("/paid_memberships")===0||h.indexOf("/refund")===0||h.indexOf("/purchases")===0||h.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(h.indexOf("/product")===
0)return"yts-products";if(h.indexOf("/premium")===0||h.indexOf("/musicpremium")===0)return h.indexOf("/premium/offers")===0||h.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(h==="/cart/checkout"||h==="/cart")return"ypc-checkout";if(h.indexOf("/reporthistory")===0)return _.r("enable_new_page_subtypes_for_ai_companion")?"report-history":"browse";if(h.indexOf("/feed/downloads")===0||h.indexOf("/redeem")===0)return"browse";if(h.indexOf("/hashtag")===0)return"hashtag-landing-page";if(h.indexOf("/handle")===
0)return"handle";if(h.indexOf("/source")===0)return"audio-pivot";if(h.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(h.indexOf("/playables")===0)return"playables";if(h.indexOf("/create/live/join")===0)return"open-in-app";if(h.indexOf("/shorts")===0)return"shorts";if(h.indexOf("/feed/channels")===0)return"subscriptions-channels";var y=b?_.W9(b):"";y&&y.indexOf("/watch")===0&&_.r("web_watch_enable_learning_journey")?(b=_.dH(b),b=!!b.list&&b.list.indexOf("LJPP")===0):b=!1;if(b)return"learning_journey_watch";
if(_.r("enable_new_page_subtypes_for_ai_companion")&&h==="/feed/courses")return"your-courses"}};
_.uk=function(b){var h,y;(b=(y=_.c(b==null?void 0:b.commandMetadata,_.ZW))==null?void 0:y.url)&&(h=_.PHN(b));return h};
Lzy=function(b){var h=b?_.W9(b):"";if(!h)return!1;h=h.toLowerCase();return h.indexOf("/show/")===0||h.indexOf("/playlist")===0&&(b=_.dH(b),b.list&&b.list.indexOf("EL")===0)?!0:!1};
tP=function(b){var h="unknown",y;var S=((y=_.c(b==null?void 0:b.commandMetadata,_.ZW))==null?void 0:y.webPageType)||"";S?(y=S.toLowerCase(),y.startsWith("web_page_type_")&&(y=y.slice(14))):y=S;y&&Kzq[y.toUpperCase()]?h=Kzq[y.toUpperCase()]:_.c(b,_.O0)||_.c(b,ZrM)?h="browse":_.c(b,_.NC)?h="search":_.c(b,_.wO)&&(h="watch");h==="watch"&&_.uk(b||null)==="learning_journey_watch"&&(h="learning_journey_watch");h==="unknown"&&_.vX(Error("Uf`"+JSON.stringify({clickTrackingParams:b==null?void 0:b.clickTrackingParams,
commandMetadata:b==null?void 0:b.commandMetadata,allEndpointKeys:Object.keys(b||[])})));return h};
_.rq=function(b){if(!_.owN||b)_.owN=_.sS();return _.owN};
_.MUy=function(b){return!!_.c(b,_.wO)||!!_.c(b,_.cd)&&_.r("kevlar_enable_shorts_prefetch")};
_.nwI=function(b,h){b=_.c(b,_.wO)||_.c(b,_.cd);return"v"+b.videoId+(b.playlistId?"-pl"+b.playlistId:"")+(h?"-an1":"")+(b.params?"-pr"+b.params:"")};
_.XQf=function(b){var h=new R3(_.QC("ONE_PICK_URL",""));h.urlParamMap_.set("hostId",b);(b=_.QC("GAPI_LOCALE"))&&h.urlParamMap_.set("hl",b);(b=_.QC("SESSION_INDEX"))&&h.urlParamMap_.set("authuser",b);(b=_.QC("DELEGATED_SESSION_ID"))&&h.urlParamMap_.set("groupId",b);return h};
uw8=function(){var b=_.H9(),h=b.resolve(_.zM);b=b.resolve(_.DT);return new HrN(h,b)};
NEI=function(b){if(window.IntersectionObserver)return new Orf(b,400);throw new TypeError("Wf");};
rZn=function(){var b=Hammer.TouchAction,h=b.prototype.preventDefaults;b.prototype.preventDefaults=function(y){var S=this.actions.indexOf("pan-down")>-1;if(!S)return h.call(this,y);if(!tUn){var F=y.srcEvent;y=y.direction;var a;if((a=this.manager)==null?0:a.session.prevented)F.preventDefault();else if(S&&y&Hammer.DIRECTION_DOWN)return this.preventSrc(F)}}};
cZM=function(b){if(!b||b.size===0)return Hammer.DIRECTION_ALL;if(b.size===2){if(b.has("up")&&b.has("down"))return Hammer.DIRECTION_VERTICAL;if(b.has("right")&&b.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(b.size===1){if(b.has("up"))return Hammer.DIRECTION_UP;if(b.has("down"))return Hammer.DIRECTION_DOWN;if(b.has("right"))return Hammer.DIRECTION_RIGHT;if(b.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.zfY=function(){return Rfq?Promise.resolve(Rfq):new Promise(function(b,h){var y=self.indexedDB.open("swpushnotificationsdb");y.onerror=h;y.onsuccess=function(){var S=y.result;if(S.objectStoreNames.contains("swpushnotificationsstore"))Rfq=S,b(Rfq);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.zfY()};
y.onupgradeneeded=DYI})};
DYI=function(b){b=b.target.result;b.objectStoreNames.contains("swpushnotificationsstore")&&b.deleteObjectStore("swpushnotificationsstore");b.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
_.Bd=function(b,h,y){var S=y&&y>0?y:0;y=S?Date.now()+S*1E3:0;if((S=S?_.I3.getLocalStorage():_.I3.getSessionStorage())&&window.JSON){typeof h!=="string"&&(h=JSON.stringify(h,void 0));try{S.set(b,h,y)}catch(F){S.remove(b)}}};
_.Wd=function(b){var h=_.I3.getSessionStorage(),y=_.I3.getLocalStorage();if(!h&&!y||!window.JSON)return null;try{var S=h.get(b)}catch(F){}if(typeof S!=="string")try{S=y.get(b)}catch(F){}if(typeof S!=="string")return null;try{S=JSON.parse(S,void 0)}catch(F){}return S};
_.AP=function(b){try{var h=_.I3.getSessionStorage(),y=_.I3.getLocalStorage();h&&h.remove(b);y&&y.remove(b)}catch(S){}};
BEk=function(b){var h=Iik(),y;return _.Z(function(S){switch(S.nextAddress){case 1:return _.WE(S,2),S.yield(b.match(h,{cacheName:"yt-appshell-assets"}),4);case 4:y=S.yieldResult;_.Lz(S,3);break;case 2:_.C$(S);case 3:return S.return(y)}})};
Iik=function(){var b=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?Wzk.registration.scope:AZF;b.endsWith("/")&&(b=b.slice(0,-1));return b+"/app_shell_home"};
UYn=function(b){b.map(function(h){return h.source}).join("|")};
_.pQN=function(b){return _.Z(function(h){return h.return(BEk(b))})};
JZI=function(){var b=window.caches,h;return _.Z(function(y){if(y.nextAddress==1)return y.yield(_.pQN(b),2);h=y.yieldResult;return y.return(!!h)})};
GBk=function(){_.Z(function(b){if(b.nextAddress==1){if(efY)return b.jumpTo(0);efY=!0;if(_.r("enable_system_health_primes_monitoring"))return _.DI(CHn,3E4),gw5(),b.return();if(!(Math.random()<_.tj("web_system_health_fraction")))return b.jumpTo(0);sQ8={heightPixels:screen.height,widthPixels:screen.width};U0&&!isNaN(U0.jsHeapSizeLimit)&&(sQ8.memoryTotalKbytes=String(Math.round(U0.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(sQ8.devicePixelRatio=window.devicePixelRatio);return b.yield(YX8(),4)}_.DI(CHn,
3E4);return b.yield(TEU(),0)})};
YX8=function(){return _.Z(function(b){if(b.nextAddress==1)return pR.intersectionObserverPresent="IntersectionObserver"in window,pR.serviceWorkerPresent="serviceWorker"in navigator,pR.webSharePresent="share"in navigator,pR.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,pR.cacheStoragePresent="caches"in window,pR.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,pR.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
pR.webkitTemporaryStoragePresent="webkitTemporaryStorage"in JP&&JP.webkitTemporaryStorage&&"queryUsageAndQuota"in JP.webkitTemporaryStorage,pR.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",b.yield(Dmq(),2);pR.indexedDbPresent=b.yieldResult;pR.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;pR.broadcastChannelPresent="BroadcastChannel"in window;pR.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(pR.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,pR.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.g3(b)})};
CHn=function(){var b=9E4+Math.random()*2E3;_.td()>b||(_.r("enable_system_health_primes_monitoring")?gw5():TEU())};
TEU=function(){var b;return _.Z(function(h){if(h.nextAddress==1)return h.yield(kBn(),2);b=h.yieldResult;_.qi("systemHealthCaptured",b);_.g3(h)})};
gw5=function(){var b={metric:{}},h=VUM();h.networkEvents.length&&(b.metric.networkEvents=Ewk(h));_.qi("systemHealthCaptured",b)};
kBn=function(){var b,h,y,S,F,a,P,K,n,X;return _.Z(function(u){switch(u.nextAddress){case 1:b={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)};h=window.screen;_.r("enable_is_extended_monitoring")&&h&&"isExtended"in h&&(b.isExtended=!!h.isExtended);y={metric:{staticContext:sQ8,dynamicContext:b,webMetric:ir5,webApiSupport:pR}};
if(S=_.UE())y.csn=S;U0&&(y.metric.webMetric.currentHeapKbytes=Math.round(U0.usedJSHeapSize/1E3));window.matchMedia&&(y.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,y.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,y.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in JP&&typeof JP.getBattery==="function")){u.jumpTo(2);break}return u.yield(JP.getBattery(),3);case 3:if(F=
u.yieldResult)y.metric.dynamicContext.chargingStatus=F.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(y.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(pR.storageEstimatePresent)return u.yield(navigator.storage.estimate(),8);if(!pR.webkitTemporaryStoragePresent){u.jumpTo(5);break}return u.yield(fif(),7);case 7:a=u.yieldResult;u.jumpTo(5);break;case 8:a=u.yieldResult;case 5:return y.metric.dynamicContext.deviceStorageQuotaMbytes=((P=a)==null?0:P.quota)?String(Math.round(a.quota/
1048576/10)*10):"-1",y.metric.dynamicContext.deviceStorageUsageMbytes=((K=a)==null?0:K.usage)?String(Math.round(a.usage/1048576/10)*10):"-1",n=y.metric.dynamicContext,u.yield(JZI(),9);case 9:return n.hasAppShell=u.yieldResult,X=VUM(),X.networkEvents.length&&(y.metric.networkEvents=Ewk(X)),u.return(y)}})};
fif=function(){return new Promise(function(b){var h;pR.webkitTemporaryStoragePresent&&(h=JP.webkitTemporaryStorage)!=null&&h.queryUsageAndQuota?JP.webkitTemporaryStorage.queryUsageAndQuota(function(y,S){b({usage:y,quota:S})}):b(void 0)})};
_.eI=function(b){b&=16777215;b=[(b&16711680)>>16,(b&65280)>>8,b&255];return wQI(b[0],b[1],b[2])};
_.CR=function(b){b=[(b&16711680)>>>16,(b&65280)>>>8,b&255,(b&4278190080)>>>24];if(!_.liF(b,function(h){return h===(h&255)}))throw Error("Xf`"+b.join(","));
return"rgba("+b[0]+","+b[1]+","+b[2]+","+(b[3]/255).toFixed(3)+")"};
_.qXM=function(b){return[(b&16711680)>>>16,(b&65280)>>>8,b&255]};
_.xYk=function(b){b=b.map(function(h){h/=255;return h<=.03928?h/12.92:Math.pow((h+.05)/1.05,2.4)});
return b[0]*.2126+b[1]*.7152+b[2]*.0722};
gq=function(b,h){b=_.qXM(b);return"rgba("+b[0]+", "+b[1]+", "+b[2]+", "+h+")"};
s0=function(b){return(b&4278190080)>>>24===0?gq(b,"1"):_.CR(b)};
_.QQY=function(){try{return!!self.localStorage}catch(b){return!1}};
hxj=function(){if(mYj())_.vX(Error("Yf"));else{var b=document.createElement("iframe");b.style.display="none";var h=h===void 0?window.location.href:h;var y=_.QV(_.QC("PERSIST_IDENTITY_IFRAME_URL"));h=y?y:(new URL(h)).host.indexOf("studio")===0?_.Ra(vw8,"persist_identity"):_.Ra(b1k,"persist_identity");_.as(b,1,h);b.id="persist_identity";var S;(S=document.body)==null||S.appendChild(b)}};
mYj=function(){var b=yCn;b||(b=document.querySelector("#persist_identity"));return b};
Sh5=function(){var b=!1;try{b=!!window.sessionStorage.getItem("session_logininfo")}catch(h){b=!0}return(_.QC("INNERTUBE_CLIENT_NAME")==="WEB"||_.QC("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&b};
FCy=function(b,h){if(!Sh5())return!1;h||(h=_.QC("LOGIN_INFO"));return h?(b.session_logininfo=h,!0):!1};
dxy=function(b,h){b=b===void 0?!1:b;if((h===void 0||!h)&&a0j!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.m$("LOG_STICKINESS",!1)){h=_.UE();var y=_.Ae(),S={identityStickinessData:{initialState:a0j}};h&&y&&_.xp(h,y,S)}if(h=mYj())if(y=h.src?(new URL(h.src)).origin:"*",b){var F;(F=h.contentWindow)==null||F.postMessage({action:"clear"},y)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(b=window.sessionStorage.getItem("session_logininfo"))){var a;(a=h.contentWindow)==null||a.postMessage({loginInfo:b},y)}};
_.Yg=function(b){b=b===void 0?!0:b;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.xZ("LOGIN_INFO",""),b&&window.sessionStorage.setItem("from_switch_account","1"),dxy(!0,b)}catch(h){}};
ji5=function(b){b&&(b.startsWith("https://accounts.google.com/AddSession")?_.Yg():b.startsWith("https://accounts.google.com/ServiceLogin")?_.Yg():b.startsWith("https://myaccount.google.com")&&_.La(b).getPath().endsWith("/youtubeoptions")&&_.Yg())};
TM=function(b,h){ji5(b);if(_.m$("LOGGED_IN",!0)&&Sh5()){var y=jbU(b);y==null&&(y={});FCy(y,h)&&_.QB(b,y)}};
$xn=function(){function b(h){for(h=h.target;h&&h.nodeName!=="A";)if(h=h.parentNode,!(h&&h instanceof HTMLElement))return;if(h&&!h.hasAttribute("download")&&h.getAttribute("rel")!=="external"&&h.href)return h.href}
document.addEventListener("mousedown",function(h){h.button!==0&&(h=b(h))&&TM(h)});
document.addEventListener("click",function(h){(h=b(h))&&TM(h)})};
KCr=function(){var b=new LCj;try{if(_.m$("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(K){b.increment(5,!1);return}if(_.QC("LOGIN_INFO")){var h=Plk?Plk:window.location;_.QC("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&hxj();var y=jbU(h.href);y==null&&(y={});var S=y.session_logininfo,F=Number(window.sessionStorage.getItem("stickiness_reload")),a=S===_.QC("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
F>=2||a)F>=2?b.increment(2,a):a?b.increment(7,a):window.sessionStorage.getItem("session_logininfo")||(b.increment(3,a),a0j="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.QC("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.QC("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))b.increment(4,a),window.sessionStorage.removeItem("stickiness_reload");
else if(F<2){window.sessionStorage.setItem("stickiness_reload",String(F+1));var P=h.href;P=_.mp(P,"sttick");TM(P,window.sessionStorage.getItem("session_logininfo"));P=_.Ln(P,{sttick:F});b.increment(F,a);_.zhY(h,P)}}else b.increment(6,!1)}else _.Yg(!1)}catch(K){}};
_.GM=function(b,h,y,S,F){h=h===void 0?{}:h;y=y===void 0?"":y;S=S===void 0?window:S;b=_.P9(b,h);TM(b);y=_.lJ(b+y,F);_.zhY(S.location,y)};
Z1N=function(b){if(b.urlEndpoint){if(b=_.dH(b.urlEndpoint.url),b.adurl)return nn(b.adurl)}else if(b.watchEndpoint)return"//www.youtube.com/watch?v="+b.watchEndpoint.videoId;return null};
oIf=function(b){if(!b||!b.reportingPings)return null;var h={};b.reportingPings.forEach(function(y){y.pingType in h?h[y.pingType].push(y.url):h[y.pingType]=[y.url]});
return{adpings:bI5(h)}};
_.Vk=function(b){b=b===void 0?!1:b;var h=_.HT(),y="USER_INTERFACE_THEME_LIGHT";h.getFlag(165)?y="USER_INTERFACE_THEME_DARK":h.getFlag(174)?y="USER_INTERFACE_THEME_LIGHT":_.kg()&&(y="USER_INTERFACE_THEME_DARK");return b?y:Miy()||y};
_.nI5=function(){return!_.r("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.kg=function(){return _.nI5()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.E0=function(){var b=_.HT();return _.nI5()&&!b.getFlag(165)&&!b.getFlag(174)};
Miy=function(){var b=b===void 0?window.location.href:b;if(_.r("kevlar_disable_theme_param"))return null;var h=_.W9(b);if(_.X8U(h))return"USER_INTERFACE_THEME_DARK";try{var y=_.dH(b).theme;return H1q.get(y)||null}catch(S){}return null};
_.X8U=function(b){return _.r("enable_dark_theme_only_on_shorts")?!(b==null||!b.startsWith("/shorts/")):!1};
_.NnY=function(b,h,y,S,F){h=h===void 0?!1:h;y=y===void 0?!1:y;var a=_.QC("INNERTUBE_CONTEXT");if(!a)return _.QT(Error("bg")),{};a=(0,_.lR.unsafeClone)(a);_.r("web_no_tracking_params_in_shell_killswitch")||delete a.clickTracking;a.client||(a.client={});var P=a.client;P.clientName==="MWEB"&&P.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(P.clientFormFactor=_.QC("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");P.screenWidthPoints=window.innerWidth;P.screenHeightPoints=window.innerHeight;P.screenPixelDensity=
Math.round(window.devicePixelRatio||1);P.screenDensityFloat=window.devicePixelRatio||1;P.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());P.userInterfaceTheme=_.Vk();if(!h){var K=_.xt8();K&&(P.connectionType=K);_.r("web_log_effective_connection_type")&&(K=mtf())&&(a.client.effectiveConnectionType=K)}var n;if(_.r("web_log_memory_total_kbytes")&&((n=_.S5.navigator)==null?0:n.deviceMemory)){var X;n=(X=_.S5.navigator)==null?void 0:X.deviceMemory;a.client.memoryTotalKbytes=""+n*1E6}h&&S&&!_.r("web_it_context_set_original_url_ks")&&
(P.originalUrl=uLU(_.S5.location.href,S).toString());_.r("web_gcf_hashes_innertube")&&(K=j3I())&&(X=K.coldConfigData,n=K.coldHashData,K=K.hotHashData,a.client.configInfo=a.client.configInfo||{},X&&(a.client.configInfo.coldConfigData=X),n&&(a.client.configInfo.coldHashData=n),K&&(a.client.configInfo.hotHashData=K));X=_.dH(_.S5.location.href);!_.r("web_populate_internal_geo_killswitch")&&X.internalcountrycode&&(P.internalGeo=X.internalcountrycode);!_.r("web_populate_client_screen_killswitch")&&F&&(P.clientScreen=
F);P.clientName==="MWEB"||P.clientName==="WEB"?(P.mainAppWebInfo||(P.mainAppWebInfo={}),P.mainAppWebInfo.graftUrl=S||_.S5.location.href,_.r("kevlar_woffle")&&_.ik.instance&&(S=_.ik.instance,P.mainAppWebInfo.pwaInstallabilityStatus=!S.appInstalledEventFired&&S.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),P.mainAppWebInfo.webDisplayMode=v8F(),P.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):P.clientName==="TVHTML5"&&
(!_.r("web_lr_app_quality_killswitch")&&(S=_.QC("LIVING_ROOM_APP_QUALITY"))&&(P.tvAppInfo=Object.assign(P.tvAppInfo||{},{appQuality:S})),S=_.QC("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(P.tvAppInfo=Object.assign(P.tvAppInfo||{},{certificationScope:S}));!_.r("web_populate_time_zone_itc_killswitch")&&(S=lW4())&&(P.timeZone=S);(S=MxM())?P.experimentsToken=S:delete P.experimentsToken;P=npU();S=_.O1Y();S=(0,_.lR.getValues)(S.tokenJars);a.request=Object.assign({},a.request,{internalExperimentFlags:P,consistencyTokenJars:S});
!_.r("web_prequest_context_killswitch")&&(P=_.QC("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(a.request.externalPrequestContext=P);S=_.HT();P=S.getFlag(58);S=S.get("gsml","");a.user=Object.assign({},a.user);P&&(a.user.enableSafetyMode=P);S&&(a.user.lockedSafetyMode=!0);_.r("warm_op_csn_cleanup")?y&&(h=_.UE())&&(a.clientScreenNonce=h):!h&&(h=_.UE())&&(a.clientScreenNonce=h);b&&(a.clickTracking={clickTrackingParams:b});if(b=_.hj("yt.mdx.remote.remoteClient_"))a.remoteClient=b;_.fR.getInstance().setLocationOnInnerTubeContext(a);
try{var u=zbI(),O=u.bid;delete u.bid;a.adSignalsInfo={params:[],bid:O};for(var N=_.L(Object.entries(u)),t=N.next();!t.done;t=N.next()){var R=_.L(t.value),I=R.next().value,U=R.next().value;u=I;O=U;b=void 0;(b=a.adSignalsInfo.params)==null||b.push({key:u,value:""+O})}var p,e;if(((p=a.client)==null?void 0:p.clientName)==="TVHTML5"||((e=a.client)==null?void 0:e.clientName)==="TVHTML5_UNPLUGGED"){var E=_.QC("INNERTUBE_CONTEXT");E.adSignalsInfo&&(a.adSignalsInfo.advertisingId=E.adSignalsInfo.advertisingId,
a.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",a.adSignalsInfo.limitAdTracking=E.adSignalsInfo.limitAdTracking)}}catch(Y){_.QT(Y)}return a};
_.wq=function(){return{isShellLoad:_.m$("IS_SHELL_LOAD",!1)}};
rCM=function(){navigator.serviceWorker.getRegistrations().then(function(b){b.forEach(tiM)})};
tiM=function(b){b&&_.cCM(RxN,b.scope)};
_.cCM=function(b,h){h={scope:h||_.rH("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.s_(b),h)};
lk=function(b,h,y,S){if(h&&h.serializedYpcCujLoggingParams){if(y){var F={};F.transactionErrorType=y;S&&(F.errorMessage=S);h.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:F}}}y={};y.ypcCujContext=h;b=_.nR("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",b,y);_.Xd().logFlowEvent(b,"FLOW_TYPE_YPC_ACQUISITION")}};
_.zxM=function(b,h,y,S){var F={};F.serializedTransactionFlowLoggingParams=h;y&&(F.errorType=y);S&&(F.errorMessage=S);_.qi(b,F);_.x2()};
_.DxM=function(b){b&&_.zxM("transactionFlowStarted",b)};
_.I05=function(b){b&&_.zxM("transactionFlowCancelled",b)};
_.qC=function(b,h,y){h&&_.zxM("transactionFlowFailed",h,b,y)};
BnU=function(b){var h=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");h&&(h.inert=b)};
_.xg=function(){this.megabloxUrl_=null};
_.Qk=function(b){try{var h=WCr==null?void 0:WCr.composedPath(b)}catch(y){h=b.composedPath?b.composedPath():[]}return h&&h.length>0?h:b.composedPath?b.composedPath():[]};
_.mi=function(b){return _.Qk(b)[0]};
vd=function(b){return b instanceof ShadowRoot?ShadowRoot:b instanceof DocumentFragment?DocumentFragment:b instanceof Document?Document:HTMLElement};
AC5=function(b){if(b instanceof Element)return Element.prototype;if(b instanceof DocumentFragment)return DocumentFragment.prototype;throw Error("fg`"+b);};
UxN=function(b,h){return _.r("sunnydom_native_scoped_query_selectors")?AC5(b).querySelector.call(b,h):vd(b).prototype.querySelector.call(b,h)};
p8j=function(b,h){return _.r("sunnydom_native_scoped_query_selectors")?AC5(b).querySelectorAll.call(b,h):vd(b).prototype.querySelectorAll.call(b,h)};
JCn=function(b){var h,y,S;return(S=(y=(h=b.parentElement)!=null?h:b.__shady_native_parentElement)!=null?y:b.__shady_parentElement)!=null?S:null};
exf=function(b){var h,y,S;return(S=(y=(h=b.parentNode)!=null?h:b.__shady_native_parentNode)!=null?y:b.__shady_parentNode)!=null?S:null};
Clr=function(b){var h,y,S;return(S=(y=(h=b.nextSibling)!=null?h:b.__shady_native_nextSibling)!=null?y:b.__shady_nextSibling)!=null?S:null};
gIU=function(b){var h,y,S;return(S=(y=(h=b.previousSibling)!=null?h:b.__shady_native_previousSibling)!=null?y:b.__shady_previousSibling)!=null?S:null};
siI=function(b){var h,y,S;return(S=(y=(h=b.nextElementSibling)!=null?h:b.__shady_native_nextElementSibling)!=null?y:b.__shady_nextElementSibling)!=null?S:null};
Yhy=function(b){var h,y,S;return(S=(y=(h=b.previousElementSibling)!=null?h:b.__shady_native_previousElementSibling)!=null?y:b.__shady_previousElementSibling)!=null?S:null};
Tny=function(b){var h,y,S;return new Set([].concat(_.f$((h=b.children)!=null?h:[]),_.f$((y=b.__shady_native_children)!=null?y:[]),_.f$((S=b.__shady_children)!=null?S:[])))};
GdF=function(b){var h,y,S;return new Set([].concat(_.f$((h=b.childNodes)!=null?h:[]),_.f$((y=b.__shady_native_childNodes)!=null?y:[]),_.f$((S=b.__shady_childNodes)!=null?S:[])))};
_.b3=function(b){if(!(b instanceof Element))return null;b=b.classList?Array.from(b.classList):void 0;if(!b)return null;var h=b.indexOf("style-scope");return h>-1&&h+1<b.length?b[h+1]:null};
ho=function(b){if(!(b instanceof HTMLElement))return null;var h=b&&(b.$$||b.polymerController)?b.tagName.toLowerCase():null;return h?h:_.b3(b)};
kd5=function(b,h){return _.r("sunnydom_native_scoped_query_selectors")?b+".style-scope."+h:b.replace(/[^a-z]*[^\s]+/g,function(y){return y+".style-scope."+h})};
Vik=function(b,h){return h?b.split(",").map(function(y){return kd5(y.trim(),h)}).join(", "):b};
_.yU=function(b){var h,y,S,F;return(F=(S=(y=(h=b.root)!=null?h:b.shadowRoot)!=null?y:b.__shady_native_shadowRoot)!=null?S:b.__shady_shadowRoot)!=null?F:b};
EIj=function(b){var h,y,S;return(S=(y=(h=b.__shady_parentNode)!=null?h:b.__shady_native_parentNode)!=null?y:b.parentNode)!=null?S:null};
i1Y=function(b){var h,y;return(y=(h=exf(b))!=null?h:b.host)!=null?y:null};
f08=function(b){for(;b&&!(b instanceof HTMLElement);)b=i1Y(b);return b};
w8q=function(b){var h=f08(b);return b===h?_.b3(b):h?ho(h):null};
l0n=function(b){return(b=f08(b))?ho(b):null};
qhM=function(b){if(b instanceof Comment)return!1;if(b instanceof Text){var h,y;if(((y=(h=b.textContent)==null?void 0:h.trim())!=null?y:"")==="")return!1}return!0};
SC=function(b,h,y){var S=h(b);for(y=y===void 0?l0n(b):y;S&&(w8q(S)!==y||!qhM(S));)b=S,S=h(b);return S};
xxN=function(b,h,y){if(!h)return null;b=l0n(b);return w8q(h)===b&&qhM(h)?h:SC(h,y,b)};
QiU=function(b){return SC(b,EIj,_.b3(b))};
mxN=function(b){return SC(b,siI)};
vIk=function(b){return SC(b,Clr)};
bX4=function(b){return SC(b,Yhy)};
hQf=function(b){return SC(b,gIU)};
yaN=function(b){return xxN(b,b.firstChild||null,Clr)};
SHy=function(b){var h,y,S;var F=(S=(y=(h=b.firstElementChild)!=null?h:b.__shady_native_firstElementChild)!=null?y:b.__shady_firstElementChild)!=null?S:null;return xxN(b,F,siI)};
FZr=function(b){var h,y,S;var F=(S=(y=(h=b.lastChild)!=null?h:b.__shady_native_lastChild)!=null?y:b.__shady_lastChild)!=null?S:null;return xxN(b,F,gIU)};
aYf=function(b){var h,y,S;var F=(S=(y=(h=b.lastElementChild)!=null?h:b.__shady_native_lastElementChild)!=null?y:b.__shady_lastElementChild)!=null?S:null;return xxN(b,F,Yhy)};
djI=function(b){var h=l0n(b);return Array.from(GdF(b)).filter(function(y){return w8q(y)===h})};
j9q=function(b){var h=ho(b);return Array.from(Tny(b)).filter(function(y){return _.b3(y)===h})};
$jF=function(b){if(!b)return null;var h=_.b3(b);if(!h){var y;return(y=Node.prototype.getRootNode)==null?void 0:y.call(b)}h=h.toUpperCase();for(b=JCn(b);b&&b.tagName!==h;)b=JCn(b);return b?_.yU(b):null};
_.Ff=function(b){var h=_.r(b);ht["counterfactuals."+b]=String(h);return h};
_.ac=function(b,h,y){if(b instanceof HTMLElement&&_.b3(b)===y){var S=Array.from(b.classList).indexOf("style-scope");if(S===-1)b.classList.add("style-scope"),b.classList.add(h);else if(!(S+1>=b.classList.length)){S=b.classList[S+1];var F,a;b==null||(F=b.classList)==null||(a=F.replace)==null||a.call(F,S,h)}}if(b instanceof HTMLElement||b instanceof DocumentFragment)for(F=_.L(Tny(b)),a=F.next();!a.done;a=F.next())_.ac(a.value,h,y);return b};
dy=function(b,h){if(b instanceof HTMLElement&&_.b3(b)===h){var y=Array.from(b.classList).indexOf("style-scope");y===-1||y+1>=b.classList.length||b.classList.remove("style-scope",b.classList[y+1])}if(b instanceof HTMLElement||b instanceof DocumentFragment){y=_.L(b.children);for(var S=y.next();!S.done;S=y.next())dy(S.value,h)}return b};
_.LZk=function(b,h){return vd(b).prototype.appendChild.call(b,h)};
PQI=function(b,h){if(b===h)return!0;b=GdF(b);return Array.from(b).some(function(y){return PQI(y,h)})};
_.$x=function(b,h){if(b instanceof jC)return b;(h==null?0:h.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(b,"ownerDocument")&&Object.defineProperty(b,"ownerDocument",{get:function(){return window.document}});
return new jC(b)};
ZXn=function(){var b=jC.prototype,h=[].concat(_.f$(KZj?[]:["getRootNode"]),["setAttribute","removeAttribute"]);h=_.L(h);for(var y=h.next(),S={};!y.done;S={method$jscomp$53:void 0},y=h.next())S.method$jscomp$53=y.value,b[S.method$jscomp$53]=function(F){return function(){return this.host[F.method$jscomp$53].apply(this.host,arguments)}}(S)};
Mq8=function(){var b=jC.prototype,h=[].concat(_.f$(KZj?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.f$(oMn?[]:["querySelector","querySelectorAll"]));h=_.L(h);for(var y=h.next(),S={};!y.done;S={method$jscomp$54:void 0},y=h.next())S.method$jscomp$54=y.value,b[S.method$jscomp$54]=function(F){return function(){return this.root[F.method$jscomp$54].apply(this.root,arguments)}}(S)};
HXU=function(){var b=jC.prototype,h=[].concat(_.f$(nMj?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.f$(Xx4?[]:["parentNode"]));h=_.L(h);for(var y=h.next(),S={};!y.done;S={prop$jscomp$67:void 0},y=h.next())S.prop$jscomp$67=y.value,Object.defineProperty(b,S.prop$jscomp$67,{get:function(F){return function(){return this.host[F.prop$jscomp$67]}}(S),
configurable:!0})};
NpN=function(){var b=jC.prototype,h=["activeElement"].concat(_.f$(nMj?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.f$(u1I?[]:["children"]),_.f$(OXU?[]:["lastChild"]));h=_.L(h);for(var y=h.next(),S={};!y.done;S={prop$jscomp$68:void 0},y=h.next())S.prop$jscomp$68=y.value,Object.defineProperty(b,S.prop$jscomp$68,{get:function(F){return function(){return this.root[F.prop$jscomp$68]}}(S),
configurable:!0})};
tq4=function(){for(var b=jC.prototype,h=_.L(["innerHTML","textContent"]),y=h.next(),S={};!y.done;S={prop$jscomp$69:void 0},y=h.next())S.prop$jscomp$69=y.value,Object.defineProperty(b,S.prop$jscomp$69,{get:function(F){return function(){return this.root[F.prop$jscomp$69]}}(S),
set:function(F){return function(a){this.root[F.prop$jscomp$69]=a}}(S),
configurable:!0})};
ra5=function(b){var h=jC.prototype;b=_.L(Object.entries(b));for(var y=b.next(),S={};!y.done;S={fn$jscomp$402:void 0},y=b.next()){var F=_.L(y.value);y=F.next().value;F=F.next().value;S.fn$jscomp$402=F;h[y]=function(a){return function(){return a.fn$jscomp$402.apply(null,[this.host.node||this.host].concat(_.f$(arguments)))}}(S)}};
RQ5=function(){for(var b=jC.prototype,h=_.L(Object.entries(ca4)),y=h.next(),S={};!y.done;S={fn$jscomp$403:void 0},y=h.next()){var F=_.L(y.value);y=F.next().value;F=F.next().value;S.fn$jscomp$403=F;Object.defineProperty(b,y,{get:function(a){return function(){return a.fn$jscomp$403.apply(null,[this.host.node||this.host].concat(_.f$(arguments)))}}(S),
configurable:!0})}};
_.KZ=function(b){return b instanceof zQM||b instanceof Document?b:new zQM(b)};
DjU=function(){for(var b=zQM.prototype,h=_.L("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),y=h.next(),S={};!y.done;S={method$jscomp$55:void 0},y=h.next())S.method$jscomp$55=y.value,b[S.method$jscomp$55]=function(F){return function(){return HTMLElement.prototype[F.method$jscomp$55].call.apply(HTMLElement.prototype[F.method$jscomp$55],[this.node].concat(_.f$(arguments)))}}(S)};
IYY=function(){for(var b=zQM.prototype,h=_.L("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),y=h.next(),S={};!y.done;S={prop$jscomp$70:void 0},y=h.next())S.prop$jscomp$70=y.value,Object.defineProperty(b,S.prop$jscomp$70,{get:function(F){return function(){var a;return(a=this.node["__shady_native_"+F.prop$jscomp$70])!=null?a:this.node[F.prop$jscomp$70]}}(S),
configurable:!0})};
_.Zm=function(b,h,y){y===void 0&&(y=!b.classList.contains(h));y?b.classList.add(h):b.classList.remove(h)};
_.oc=function(b,h,y){y===void 0&&(y=!b.hasAttribute(h));if(h==="class")throw Error("gg");y?_.KZ(b).setAttribute(h,""):_.KZ(b).removeAttribute(h)};
Bp4=function(b){return(b.localName!=="slot"?[]:(0,_.Mh)(b).assignedNodes({flatten:!0})).filter(function(h){return h.nodeType===Node.ELEMENT_NODE})};
_.WZ8=function(b){return(b=_.$x(b).querySelector("slot"))&&b.localName==="slot"?Bp4(b):[]};
_.nZ=function(b,h){window.ShadyCSS&&window.ShadyCSS.styleSubtree(b,h)};
Xf=function(b,h){var y=h.bind(b);return function(S){y(S,S.detail)}};
_.Hl=function(b,h){var y=AaU.get(b);y||(y=new WeakMap,AaU.set(b,y));if(y.has(h))return y.get(h);if(_.r("web_fi_listen_disable_bound_fn_helper")){var S=h.bind(b);b=function(F){S(F,F==null?void 0:F.detail)}}else b=Xf(b,h);
y.set(h,b);return b};
JaY=function(b,h){Ujj(b);b.created[pxy].push(h)};
Ujj=function(b){if(!b.created||!b.created[pxy]){var h=b.created,y=h?[h]:[];b.created=function(){for(var S=_.L(y),F=S.next();!F.done;F=S.next())F.value.apply(this)};
b.created[pxy]=y}};
eQN=function(b){return function(){var h=_.x$.apply(0,arguments);return function(y,S,F){b.apply(null,_.f$(h))(y,S,F)}}};
CQq=function(){return function(){var b=_.x$.apply(0,arguments);return function(h,y,S){tV8.apply(null,_.f$(b))(h,y,S)}}};
_.B=function(b){return CQq()(b)};
_.W=function(){return eQN(zo5).apply(null,_.f$(_.x$.apply(0,arguments)))};
_.u3=function(b){return _.r("pbcm_fi_listen_decorators")?gMf(b):eQN(c25)(b)};
gMf=function(b){return function(h,y){JaY(h,function(){var S=this[y],F=_.r("web_fi_listen_disable_bound_fn_helper")?function(a){S(a,a.detail)}.bind(this):Xf(this,S);
s9q.has(b)?bz(this.hostElement,b,F):this.hostElement.addEventListener(b,F)})}};
_.OB=function(){return eQN(RoM).apply(null,_.f$(_.x$.apply(0,arguments)))};
_.C=function(b){b=b===void 0?{}:b;return eQN(r2f)(b)};
_.Nh=function(b){if(b.hostElement&&b!==b.hostElement){var h=_.rO(b.hostElement);h=b.renderIdom?h:h.shadowRoot}h||(b=b.root,h=b instanceof Node?_.rO(b):null);return h};
_.to=function(b){return YHy?Tpk(b):function(h,y){Object.defineProperty(h,y,{get:function(){var S;return(S=_.Nh(this))==null?void 0:S.querySelector(b)},
enumerable:!0,configurable:!0})}};
Tpk=function(b){return function(h,y){Object.defineProperty(h,y,{get:function(){var S,F=(S=_.$x(this.hostElement))==null?void 0:S.querySelector(b);if(F)return F;var a;return(a=_.Nh(this))==null?void 0:a.querySelector(b)},
enumerable:!0,configurable:!0})}};
_.ry=function(b){return YHy?GeU(b):function(h,y){Object.defineProperty(h,y,{get:function(){var S;return(S=_.Nh(this))==null?void 0:S.querySelectorAll(b)},
enumerable:!0,configurable:!0})}};
GeU=function(b){return function(h,y){Object.defineProperty(h,y,{get:function(){var S,F=(S=_.$x(this.hostElement))==null?void 0:S.querySelectorAll(b);if(F==null?0:F.length)return F;var a;return(a=_.Nh(this))==null?void 0:a.querySelectorAll(b)},
enumerable:!0,configurable:!0})}};
kef=function(b){return function(h){if(![_.rk,_.g].includes(Object.getPrototypeOf(h.prototype).constructor))throw Error("hg");oBI(Object.assign({},typeof b!=="string"?b:{is:b,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(h)}};
_.Rc=function(){var b=b===void 0?{}:b;return function(h){if(![c_,_.cl].includes(Object.getPrototypeOf(h.prototype).constructor))throw Error("ig");MVn(Object.assign({},b,{disableInheritanceCheck:!0}))(h)}};
EM8=function(b,h){Vq8[b]!=null||(Vq8[b]=new Set);Vq8[b].add(h)};
_.zj=function(){var b=_.OB.apply(null,_.f$(_.x$.apply(0,arguments)));return function(h,y){EM8(h.is,y);b(h,y)}};
Bl=function(b,h,y){if(Dm(b)&&!iXM.has(h)){h=h.replace(/^JSC\$[\d]+_/,"");h=h.replace(/\.\d+(\.|$)/g,function(a,P){return".#"+P});
Ic[b]!=null||(Ic[b]={});var S,F;(S=Ic[b])[F=h]!=null||(S[F]=new Set);Ic[b][h].has(y)||(Ic[b][h].add(y),_.qi("polymerPropertyAccessEvent",{componentName:b,propertyName:h,accessType:y}))}};
fYn=function(){return _.r("polymer_property_access_logging_debug")||_.r("polymer_enable_property_access_logging")};
Dm=function(b){if(_.r("polymer_property_access_logging_debug"))return!0;if(!_.r("polymer_enable_property_access_logging"))return!1;wxF||(wxF=Date.now());return(Gt(b)+wxF)%100<_.tj("polymer_property_access_logging_percent")};
lYn=function(b,h){return Dm(h)&&b.hostElement.loggingStatus?new Proxy(b,{get:function(y,S,F){if(y.hostElement.loggingStatus.bypassProxyController)return y[S];y.hostElement.loggingStatus.isExternalGet=!0;var a=y[S];y.hostElement.loggingStatus.isExternalGet=!1;if(a instanceof Function)return function(){var P=_.x$.apply(0,arguments);try{return y.hostElement.loggingStatus.currentExternalCall=S,Bl(h,S,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),a.apply(this===F?y:this,P)}finally{y.hostElement.loggingStatus.currentExternalCall=
void 0}};
Bl(h,S,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return a},
set:function(y,S,F){if(y.hostElement.loggingStatus.bypassProxyController)return y[S]=F,!0;y.hostElement.loggingStatus.isRendererStamper?Bl(h,S,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):y.hostElement.loggingStatus.isDeclarativeExternal||Bl(h,S,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{y.hostElement.loggingStatus.currentExternalSet=S,y[S]=F}finally{y.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):b};
qHr=function(b,h){b&&b.loggingStatus&&!b.loggingStatus.isDeclarativeExternal&&!b.loggingStatus.isExternalGet&&b.loggingStatus.currentExternalSet!==h&&Bl(b.tagName.toLowerCase(),h,"PROPERTY_ACCESS_GET_INTERNAL")};
Wl=function(b,h,y){b&&(y||b.loggingStatus&&!b.loggingStatus.isInitializing&&!b.loggingStatus.isDefiningPropertyAccessor&&b.loggingStatus.currentExternalSet!==h)&&Bl(b.tagName.toLowerCase(),h,"PROPERTY_ACCESS_SET_INTERNAL")};
xjN=function(){return{_definePropertyAccessor:function(b,h){var y=this,S=y.hostElement.loggingStatus;S&&(S.isDefiningPropertyAccessor=!0);var F=y[b];F!==void 0&&(y.__data?y._setPendingProperty(b,F):(y.__dataProto!=null||(y.__dataProto={}),y.__dataProto[b]=F));S&&(S.isDefiningPropertyAccessor=!1);Object.defineProperty(this,b,{get:function(){qHr(y.hostElement,b);return this.__data[b]},
set:function(a){h||this._setPendingProperty(b,a,!0)&&this._invalidateProperties()}})},
created:function(){var b=this._setPendingProperty.bind(this);this._setPendingProperty=function(h,y,S){Wl(this.hostElement,h);return b.apply(this,[h,y,S])}}}};
Q9k=function(b){fYn()&&_.B(Ao.prototype)(b.prototype,"__templateBindingLoggingBehavior")};
mj4=function(b,h){if(h.resolvedFactories.length!==b.resolvedFactories.length)return!0;h=_.L(h.resolvedFactories.entries());for(var y=h.next();!y.done;y=h.next()){var S=_.L(y.value);y=S.next().value;S=S.next().value;if(S.providerClass){if(S.providerClass!==b.resolvedFactories[y].providerClass)return!0}else if(S.providerValue){if(S.providerValue!==b.resolvedFactories[y].providerValue)return!0}else if(S.factory!==b.resolvedFactories[y].factory)return!0}return!1};
vMM=function(b,h){b=_.L(b);for(var y=b.next();!y.done;y=b.next())if(y=y.value,y.constructor===Array)vMM(y,h);else{var S=h;S.has(y)||(y.inject&&S.add(y),y.behaviors&&vMM(y.behaviors,S))}};
UB=function(b,h){var y=b[h];b[h]=function(){var S=_.x$.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(y)return y.apply(this,S)}};
Sc4=function(){_.pZ.Class=function(y,S){y=bN5(y,S);UB(y.prototype,"created");return y};
UB(Jo.prototype,"_initializeProperties");UB(_.eC.prototype,"_initializeProperties");if(h3N)UB(yf4,"created");else{var b=function(){UB(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))b();else{var h=customElements.define;customElements.define=function(y,S,F){h.call(customElements,y,S,F);y==="tp-yt-iron-list"&&(b(),customElements.define=h)}}}};
a3j=function(b,h){b.prototype.behaviors=b.prototype.behaviors||[];b.prototype.behaviors.unshift(Fr8.InjectBehavior);b.prototype.provide=h};
_.sB=function(b){return function(h){if(!b.disableElementRegistration){b.noInjection||a3j(h,b.providers);var y=h.prototype;y.__templateHelpers||tV8(CZ.prototype)(y,"__templateHelpers");y=b.is;dfU||(dfU=Date.now());(Gt(y)+dfU)%100<_.tj("polymer_log_prop_change_observer_percent")&&tV8(gy.prototype)(h.prototype,"__propertyObserverObserver");h.prototype.behaviors=h.prototype.behaviors||[];h.prototype.behaviors.unshift(_.jl4.YtHostElementBehavior);Q9k(h);kef({is:b.is,notifyObserversOnUndefined:b.notifyObserversOnUndefined!==
!1,fastInit:b.fastInit,template:b.template,disableEnforceFastDefaultValuesCheck:!0})(h)}}};
_.Yx=function(b){return _.sB({is:b.is,template:b.template,disableElementRegistration:b.disableElementRegistration,cssBuildOptOut:b.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
Pyq=function(b,h){if($fY){b=new b;for(var y=_.L(Object.getOwnPropertyNames(b)),S=y.next();!S.done;S=y.next())S=S.value,h[S]=b[S];for(y=h;y&&y!==Object.prototype;y=Object.getPrototypeOf(y)){S=_.L(Object.getOwnPropertyNames(y));for(var F=S.next();!F.done;F=S.next())F=F.value,b.hasOwnProperty(F)||Object.defineProperty(b,F,Lrr(h,F))}}else b.apply(h)};
Lrr=function(b,h){return{get:function(){var y=b[h];return y instanceof Function?y.bind(b):y},
set:function(y){b[h]=y}}};
ZN5=function(b,h){for(var y=b._noAccessors,S=_.L(Object.getOwnPropertyNames(b)),F=S.next();!F.done;F=S.next())if(F=F.value,!Krk.has(F))if(y)h[F]=b[F];else{var a=Object.getOwnPropertyDescriptor(b,F);a&&(a.configurable=!0,Object.defineProperty(h,F,a))}};
olj=function(b,h,y){return function(S){if(y){var F=y();S.model=F}if(b[h])b[h](S,S.detail)}};
Tj=function(b){var h=[];if(typeof b==="string")b.length>0&&h.push.apply(h,_.f$(b.split(".")));else{b=_.L(b);for(var y=b.next();!y.done;y=b.next())y=y.value,typeof y==="string"?h.push.apply(h,_.f$(y.split("."))):h.push(y)}return h};
Mln=function(b,h){if(h[h.length-1]!=="*"&&h[h.length-1]!=="splices"){for(var y=0;y<h.length;y++){if(!b)return;b=b[h[y]]}return b}};
nlr=function(b,h){if(b.length>h.length)return!1;for(var y=0;y<b.length;y++)if(b[y]!==h[y])return!1;return!0};
HNF=function(b,h,y){if(h.type==="compute"){var S=h.getter.bind(y);var F=h.args}else S=function(){return y[h.method.methodName].apply(y,_.f$(_.x$.apply(0,arguments)))},F=h.method.args;
XuN(b,h.propertyKey,S,F,h.value)};
ON5=function(b,h){if(h.readOnly){var y=Object.getOwnPropertyDescriptor(b.model,h.propertyKey);Object.defineProperty(b.model,h.propertyKey,{get:y.get,set:function(){}});
b.model[u2F(h.propertyKey)]=y.set}};
Nm4=function(b,h,y){if(y){var S=h.propertyKey,F=h.selector;h=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.f$(h.selectorArgs.map(function(a){return{type:"path",path:a}})));
XuN(b,S,function(a){var P=_.x$.apply(1,arguments);return F.apply(null,[y.getState()].concat(_.f$(P)))},h)}};
rff=function(b,h,y){var S=_.MQ(h.propertyKey)+"-changed";tlr(b,function(F){var a={value:F.value,queueProperty:!0};F.path.split(".").length>1&&(a.path=F.path);y.dispatchEvent(new CustomEvent(S,{detail:a}))},[{type:"wildcard",
path:h.propertyKey}])};
cfq=function(b,h,y){tlr(b,function(){y[h.method.methodName].apply(y,_.f$(_.x$.apply(0,arguments)))},h.method.args)};
u2F=function(b){return"_set"+(b.charAt(0).toUpperCase()+b.slice(1))};
R3k=function(){var b,h=vs(function(y){b=y},!1);
return[b,h]};
Wrn=function(b){b=b.trim().replace(z34,",").replace(DfM,"$1");var h=b[0];h==="-"&&(h=b[1]);if(h>="0"&&h<="9")return{type:"literal",value:Number(b)};if(h==="'"||h==='"')return{type:"literal",value:b.slice(1,-1)};if(h=b.match(I3I)){h=h[1];var y=BmN[h];if(y)return{type:y,path:b.slice(0,-(h.length+1))}}return{type:"path",path:b}};
Jfk=function(b){var h=b.match(AfM);if(h)return b={methodName:h[1],args:UfF},h[2].trim()&&(h=h[2].replace(puN,"&comma;").split(","),b.args=h.map(Wrn)),b};
e3I=function(b,h,y,S){S=S===void 0?!1:S;h=_.MQ(h);var F=kJ;F&&(y=F(y,h,"attribute",b));Gj(b,y,h,S)};
Gj=function(b,h,y,S){h=CyF(h,S===void 0?!1:S);h===void 0?b.removeAttribute(y):b.setAttribute(y,h)};
CyF=function(b,h){switch(typeof b){case "object":case "function":if(b instanceof Date)return b.toString();if(b){if((h===void 0?0:h)&&!_.r("polymer_reflect_objects_as_boolean_killswitch"))return b?"":void 0;h=window.trustedTypes?window.trustedTypes.isHTML(b)||window.trustedTypes.isScript(b)||window.trustedTypes.isScriptURL(b):void 0;if(h)return b;try{return JSON.stringify(b)}catch(y){_.vX(Error("Eg`"+b))}}break;case "boolean":return b?"":void 0;default:return b!==null&&b!==void 0?b.toString():void 0}};
gln=function(b){if(b===void 0)throw Error("Fg");return b};
kZN=function(b,h,y,S){var F=slU(S);if(F.length){S=y;var a="property";Ycr.test(y)?a="attribute":y[y.length-1]==="$"&&(y=y.slice(0,-1),a="attribute");var P=TmI(F);P&&a==="attribute"&&(y==="class"&&b.hasAttribute("class")&&(P+=" "+b.getAttribute(y)),Gj(b,P,y));a==="attribute"&&S==="disable-upgrade$"&&b.setAttribute("disable-upgrade","");b.localName==="input"&&S==="value"&&b.setAttribute("value","");b.removeAttribute(S);a==="property"&&(y=_.nx(y));h=gln(h);GZf(h,a,y,F);return!0}return y.slice(0,3)===
"on-"?(b.removeAttribute(y),(a=h).events!=null||(a.events=[]),h.events.push({name:y.slice(3),value:S}),!0):y==="id"?(h.id=S,!0):!1};
slU=function(b){for(var h=[],y=0,S;(S=Vl5.exec(b))!==null;){S.index>y&&h.push({type:"literal",value:b.slice(y,S.index)});var F=S[1][0];y=!!S[2];S=S[3].trim();if(F==="{")throw Error("Gg");(F=Jfk(S))?h.push({type:"method",negate:y,signature:F}):h.push({type:"path",negate:y,path:S});y=Vl5.lastIndex}y&&y<b.length&&(b=b.substring(y))&&h.push({type:"literal",value:b});return h};
TmI=function(b){for(var h="",y=0;y<b.length;y++){var S=b[y];S.type==="literal"&&(h+=S.value)}return h};
GZf=function(b,h,y,S){b.bindings!=null||(b.bindings=[]);b.bindings.push({kind:h,target:y,parts:S})};
l3U=function(b,h,y){var S=!1;if(b.localName==="template"){S=y;var F=h.stripWhitespace;F=ElY(b,F===void 0?!1:F);var a=b.content.ownerDocument.createDocumentFragment();F.content=a;a.appendChild(b.content);S&&(S.templateInfo=F);S=!0}else b.localName==="slot"&&(h.hasInsertionPoint=!0);if(b.firstChild&&(F=y,b.localName!=="script"&&b.localName!=="style")){a=0;for(var P=b.firstChild;P;){var K=P;if(K.localName==="template"){var n=K.getAttribute("is");if((P=n==="dom-if")||n==="dom-repeat"){K.removeAttribute("is");
n=K.ownerDocument.createElement("ps-"+n);K.parentNode.replaceChild(n,K);n.appendChild(K);var X=Array.from(K.attributes);X=_.L(X);for(var u=X.next();!u.done;u=X.next())u=u.value,P?iNf.has(u.name)&&Gj(n,u.value,u.name):f3j.has(u.name)?Gj(n,u.value,u.name):wuf.has(u.name),K.removeAttribute(u.name);P=n}else P=K}if(P.nodeType===Node.TEXT_NODE){K=void 0;n=b;for(X=P;((K=X.nextSibling)==null?void 0:K.nodeType)===Node.TEXT_NODE;)u=void 0,(u=X).textContent!=null||(u.textContent=""),X.nextSibling.textContent&&
(X.textContent+=X.nextSibling.textContent),n.removeChild(X.nextSibling);if(h.stripWhitespace&&P.textContent&&!P.textContent.trim()){b.removeChild(P);P=P.nextSibling;continue}}l3U(P,h,{parentIndex:a,parentInfo:F});P.parentNode&&a++;P=P.nextSibling}}var O;if((O=b.hasAttributes)==null?0:O.call(b)){O=y=gln(y);F=!1;a=Array.from(b.attributes);a=_.L(a);for(K=a.next();!K.done;K=a.next())K=K.value,F=kZN(b,O,K.name,K.value)||F;S=F||S}b.nodeType===Node.TEXT_NODE&&(O=slU(b.textContent),O.length&&(b.textContent=
TmI(O)||" ",y=gln(y),GZf(y,"text","textContent",O),S=!0));y&&S&&(y.infoIndex=h.nodeInfoList.push(y)-1)};
ElY=function(b,h){h={nodeInfoList:[],stripWhitespace:(h===void 0?!1:h)||b.hasAttribute("strip-whitespace")};l3U(b.content,h);return h};
qc5=function(b){Object.assign(b,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
Qlj=function(b,h,y){h.signalCache!=null||(h.signalCache={});var S=h.signalCache[y];if(!S){var F=y.split(".");S=!xfM(b,F[0]);if(F.length>1&&S){var a=b.getPathMutationSignal(F);S=function(){var P=hi(b.owner,function(){return b.getWithPath([F[0]])}),K,n=(K=a())==null?void 0:K.value;
return{rootWasDefined:P!==void 0,value:n}}}else S=function(){var P=b.getWithPath(F);
return{rootWasDefined:P!==void 0,value:P}};
h.signalCache[y]=S}return S()};
vlI=function(b,h,y,S,F){h=h.parts.map(function(P,K){if(P.type==="literal"){y.partWasDefined!=null||(y.partWasDefined=[]);var n;(n=y.partWasDefined)[K]||(n[K]=P.value!==void 0);return P.value}var X;if(P.type==="method"){var u,O=(u=(X=y.partWasDefined)==null?void 0:X[K])!=null?u:!1;O||(O=P.signature.args.every(function(R){return R.type==="literal"}));
var N=!1,t=!0;X=P.signature.args.map(function(R){if(R.type==="literal")return R.value;if(R.type!=="path")throw Error("Hg`"+R.type);var I=Qlj(b,y,R.path);R=I.value;I=I.rootWasDefined;N||(N=I);t&&(t=I);return R});
O||(O=F===1?t:N);y.partWasDefined!=null||(y.partWasDefined={});y.partWasDefined[K]=O;if(!O)return;X=(K=Qlj(b,y,P.signature.methodName).value)&&typeof K==="function"?K.apply(S,X):void 0}else u=Qlj(b,y,P.path),X=u.value,y.partWasDefined!=null||(y.partWasDefined={}),(O=y.partWasDefined)[K]||(O[K]=X!==void 0||u.rootWasDefined);P.negate&&(X=!X);return X});
if(h.length===1){var a;return((a=y.partWasDefined)==null?0:a[0])?h[0]:mfM}return h.join("")};
bbF=function(b){return typeof b==="object"&&!!b&&"notifyPath"in b&&"canNotifyPath"in b};
hDr=function(b){return typeof b==="object"&&!!b&&"notifyPath"in b};
yEU=function(b){return"polymerController"in b};
SC5=function(b,h){h=""+Tj(h)[0];if(bbF(b))return b.canNotifyPath(h);if(yEU(b)&&bbF(b.polymerController))return b.polymerController.canNotifyPath(h);if(hDr(b)){var y;return!((y=b.properties)==null||!y[h])}if(yEU(b)&&hDr(b.polymerController)){var S;return!((S=b.polymerController.properties)==null||!S[h])}return!1};
FHj=function(b,h,y){bbF(b)||hDr(b)?b.notifyPath(h,y):yEU(b)&&(bbF(b.polymerController)||hDr(b.polymerController))&&b.polymerController.notifyPath(h,y)};
dr8=function(b,h,y){if(y!==mfM){b.kind==="attribute"||b.target!=="textContent"&&(b.target!=="value"||h.localName!=="input"&&h.localName!=="textarea")||(y=y===void 0?"":y);var S,F=(S=axN.Polymer)==null?void 0:S.sanitizeDOMValue;F&&(y=F(y,b.target,b.kind,h));if(b.kind==="attribute"){b=b.target;if(b==="class"||b==="name"||b==="slot")h=(0,_.Mh)(h);Gj(h,y,b)}else if(b=b.target,y!==h[b]||typeof y==="object")h.loggingStatus&&(h.loggingStatus.isDeclarativeExternal=!0,Bl(h.localName,b,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
h[b]=y,h.loggingStatus&&(h.loggingStatus.isDeclarativeExternal=!1)}};
jv8=function(b,h,y,S){var F=h.parts[0];if(h.parts.length!==1||F.type!=="path"||!SC5(y,h.target))return!1;var a=_.L(F.path.split(".")),P=a.next().value,K=Mo(a);if(xfM(b,P))return!1;S.signalCache!=null||(S.signalCache={});a=S.signalCache[F.path];var n;a=(n=a)==null?void 0:n().value;if((a==null?void 0:a.path)!==void 0){S=Tj(a.path);var X=Tj(F.path);S=[h.target].concat(_.f$(S.slice(X.length-1)));FHj(y,S,F.negate?!a.value:a.value);return!0}var u=kx(b,P);var O=u.getChangeRecordSignal(K),N=!1;a=function(){if(!N){var R=
hi(b.owner,function(){return u.getWithPath([])});
N||(N=R!==void 0)}return{value:O(),rootWasDefined:N}};
S.signalCache[F.path]=a;S.partWasDefined!=null||(S.partWasDefined={});a=a();(X=S.partWasDefined)[0]||(X[0]=a.rootWasDefined);var t=hi(b.owner,function(){return u.getWithPath(K)});
S.partWasDefined[0]&&hi(b.owner,function(){return void dr8(h,y,F.negate?!t:t)});
return!0};
$r8=function(b,h,y,S,F,a){if(!jv8(b,h,y,S)){var P=vlI(b,h,S,F,a);hi(b.owner,function(){return void dr8(h,y,P)})}};
LHI=function(b,h,y,S,F,a){y=_.L(y);for(var P=y.next(),K={};!P.done;K={infoIndex:void 0},P=y.next()){P=P.value;var n=P.bindings;K.infoIndex=P.infoIndex;P=P.parentInfo;if(n){n=_.L(n);for(var X=n.next(),u={};!X.done;u={b$jscomp$257:void 0,bindingCtx$jscomp$4:void 0},X=n.next()){u.b$jscomp$257=X.value;if(K.infoIndex===void 0)throw Error("Ig");u.bindingCtx$jscomp$4={};b.effect(function(O,N){return function(){F&&!F()||$r8(b,O.b$jscomp$257,h[N.infoIndex],O.bindingCtx$jscomp$4,S,a)}}(u,K))}}P&&LHI(b,h,[P],
S,F,a)}};
P04=function(b,h){b=(h.parentInfo?P04(b,h.parentInfo):b).firstChild;for(var y=0;b;b=b.nextSibling)if(h.parentIndex===y++)return b;throw Error("Jg");};
Zbn=function(b,h,y,S){b=document.importNode(b.content,!0);b.__noInsertionPoint=!(S==null?0:S.hasInsertionPoint);for(var F=Array(h.length),a={},P=0;P<h.length;P++){var K=h[P],n=P04(b,K);F[P]=n;K.id&&(a[K.id]=n);if(K.templateInfo){var X=n.parentElement;X&&(X.templateInfo=K.templateInfo,X.parentSignalProxy=y,X.eventListenerHost=S.eventListenerHost,X.stampingEnabled=S.enabledSignal)}X=void 0;if((X=K.events)==null?0:X.length)for(X=0;X<K.events.length;X++){var u=K.events[X];KHM(S.eventListenerHost,n,u.name,
u.value,S.getModel)}}LHI(y,F,h,S.thisCtx,S.enabledSignal,S.methodInvocationRequirement);return{root:b,nodes:F,nodesById:a}};
MdN=function(b,h){b=b();var y;(y=oOf.ShadyCSS)==null||y.prepareTemplate(b,h);h=ElY(b);return{template:b,nodeInfoList:h.nodeInfoList,hasInsertionPoint:h.hasInsertionPoint}};
HbM=function(){nO8=!1;for(var b=VU.length,h=0;h<b;h++){var y=VU[h];if(y)try{y()}catch(S){Promise.resolve().then(function(){throw S;})}}VU.splice(0,b);
XeN+=b};
tdN=function(b){nO8||(nO8=!0,urN.textContent=(Obr++).toString());VU.push(b);return Nj4++};
_.fZ=function(b,h,y){EB++;b=h?new rEM(EB,b,h,y):new cEI(EB,b);i3.set(EB,b);return EB};
RDN=function(b){(b=i3.get(b))&&b.cancel()};
DrF=function(b,h){b=zDF.get(b);return b?(h=b.get(h))?h:null:null};
_.wy=function(b,h,y,S){var F=DrF(b,h);if(!F){F=new IxU;var a=zDF.get(b);a||(a=new Map,zDF.set(b,a));a.set(h,F)}b=y.bind(b);F.run(b,S,void 0)};
_.Bj5=function(b,h){var y;(y=DrF(b,h))==null||y.cancel()};
WHM=function(b){var h;(h=DrF(b,"doRender"))==null||h.flush()};
l3=function(b){var h;return(h=b.hostElement)!=null?h:b};
AEy=function(b){var h=b.indexOf(".");return h===-1?b:b.slice(0,h)};
Urj=function(b,h,y,S,F,a){a=(F=(S=a?AEy(h):h)?h:null)?b.get(F):b.__data[h];F&&a===void 0&&(a=y[h]);_.Sx(b.hostElement,F85(S)+"-changed",{value:a,queueProperty:!0,path:F!=null?F:void 0},{bubbles:!1,composed:!1})};
pe5=function(b,h){b.__isReflecting=!0;e3I(b.hostElement,h,b.__data[h]);b.__isReflecting=!1};
JEk=function(b){if(b._onIronRequestResizeNotifications){var h=b._onIronRequestResizeNotifications.bind(b);b._onIronRequestResizeNotifications=function(y){_.mi(y)!==b.hostElement&&h(y)}}b._ariaActiveAttributeChanged&&(b._ariaActiveAttributeChanged=b._ariaActiveAttributeChanged.bind(b.hostElement));
b._activeChanged&&(b._activeChanged=function(y){b.toggles?Gj(b.hostElement,y?"true":"false",b.ariaActiveAttribute):b.hostElement.removeAttribute(b.ariaActiveAttribute);b._changedButtonState()});
b._asyncClick&&(b._asyncClick=function(){_.fZ(function(){b.hostElement.click()},1)});
!b.keyEventTarget||b.keyEventTarget instanceof EventTarget||(b.keyEventTarget=l3(b.keyEventTarget));b._disabledChanged&&(b._disabledChanged=b._disabledChanged.bind(b.hostElement));b._observeItems&&(b._observeItems=function(y){var S=l3(y);return _.rO(S).observeNodes(function(F){b._updateItems();b._updateSelected();_.Sx(S,"iron-items-changed",F,{bubbles:!1,cancelable:!1})})});
b._updateItems&&b._updateItems===_.qh._updateItems&&(b._updateItems=function(){var y=_.rO(b.hostElement).queryDistributedElements(b.selectable||"*");y=Array.prototype.filter.call(y,b._bindFilterItem);b._setItems(y)});
b._computeKeyboardClass&&(b._computeKeyboardClass=function(y){_.Zm(b.hostElement,"keyboard-focus",y)});
b.ensureRipple&&(b.ensureRipple=function(y){if(b.hasRipple&&!b.hasRipple()){if(!b._createRipple)return;b._ripple=b._createRipple();b._ripple.noink=b.noink;var S=b._rippleContainer||b.hostElement;S&&_.$x(S).appendChild(b._ripple)}var F;if(y&&((F=b._ripple)==null?0:F.uiDownAction)){S=_.$x(b._rippleContainer||b.hostElement);var a;F=(a=y.composedPath())==null?void 0:a[0];S.contains(F)&&b._ripple.uiDownAction(y)}});
b._updateMultiselectable&&(b._updateMultiselectable=function(y){y?b.hostElement.setAttribute("aria-multiselectable","true"):b.hostElement.removeAttribute("aria-multiselectable")})};
eDk=function(b,h,y){y=_.L(y);for(var S=y.next();!S.done;S=y.next())Pyq(S.value.constructor,b);Pyq(h.constructor,b)};
gOq=function(b,h){b=_.L(b);for(var y=b.next();!y.done;y=b.next())if(y=y.value,y.type==="signal"){var S=y.propertyKey;if(h.hasOwnProperty(S)&&h[S]!=null&&y.attributeType===Object){a:{S=h[S].constructor;for(var F=_.L(C0f),a=F.next();!a.done;a=F.next())if(a=a.value,S===a){S=a;break a}S=Object}y.attributeType=S}}};
svU=function(){};
YCj=function(b){var h;return(h=b.hostElement)!=null?h:b};
Tjq=function(){throw Error("Ng");};
GJy=function(b,h){b.constructor.prototype.useSignals=!0;var y=new b.constructor;eDk(y,b,h.behaviors);gOq(h.reactiveSchemas,y);y={};for(var S=_.L(h.reactiveSchemas),F=S.next();!F.done;F=S.next())F=F.value,F.type==="signal"&&(y[F.propertyKey]=F.attributeType);var a={copyPropertiesToProto:Tjq,didRegister:!1,typesForSignals:y},P=["disable-upgrade"].concat(_.f$(h.observedAttributes)),K=function(n){xx.call(this,b,h,a,n)};
_.z(K,xx);_.tm.Object.defineProperties(K,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return P}}});
a.copyPropertiesToProto=function(){for(var n=0;n<h.behaviors.length;n++)ZN5(h.behaviors[n],K.prototype);ZN5(b,K.prototype)};
h.legacyOptimizations||a.copyPropertiesToProto();K.prototype.is=b.is;return K};
kJy=function(b,h){if(Object.getPrototypeOf(h.prototype).constructor!==_.g)throw Error("Og");h.prototype.is=b.is;return GJy(h.prototype,b)};
Vd4=function(b){return b.type==="compute"||b.type==="computeWithMethod"};
EOn=function(b){for(var h=b.reactiveSchemas.filter(Vd4),y=new Map,S=new Map,F=new Map,a=_.L(h),P=a.next();!P.done;P=a.next())P=P.value,y.set(P.propertyKey,P),S.set(P.propertyKey,[]),F.set(P.propertyKey,0);a=0;h=_.L(h);for(P=h.next();!P.done;P=h.next()){P=P.value;for(var K=_.L(P.type==="computeWithMethod"?P.method.args:P.args),n=K.next();!n.done;n=K.next())n=n.value,n.type!=="literal"&&(n=n.path.split(".")[0],S.has(n)&&(S.get(n).push(P.propertyKey),F.set(P.propertyKey,F.get(P.propertyKey)+1),a++))}P=
[].concat(_.f$(S.keys())).filter(function(X){return F.get(X)===0});
for(h=[];P.length;)for(K=P.shift(),h.push(y.get(K)),K=_.L(S.get(K)),n=K.next();!n.done;n=K.next())n=n.value,F.set(n,F.get(n)-1),a--,F.get(n)===0&&P.push(n);y=b.reactiveSchemas.filter(function(X){return!Vd4(X)});
b.reactiveSchemas=[].concat(_.f$(y),_.f$(h))};
ib5=function(b,h){if(h.properties)for(var y=_.L(Object.entries(h.properties)),S=y.next();!S.done;S=y.next()){var F=_.L(S.value);S=F.next().value;F=F.next().value;b.properties[S]=typeof F==="function"?{type:F}:F}h.observers&&b.observers.push.apply(b.observers,_.f$(h.observers));h.disabledPolySiReactions&&b.disabledPolySiReactions.push.apply(b.disabledPolySiReactions,_.f$(h.disabledPolySiReactions))};
fxn=function(b,h){for(var y=h.length-1;y>=0;y--){var S=h[y];Array.isArray(S)?fxn(b,S):b.indexOf(S)<0&&b.unshift(S)}};
we5=function(b,h){b.reactiveSchemas=b.reactiveSchemas.filter(function(y){return y.type==="observe"&&h.includes(y.method.methodName)||Vd4(y)&&h.includes(y.propertyKey)?!1:!0})};
qCI=function(b,h){var y=h.prototype,S,F,a={is:b.is,reactiveSchemas:[],observedAttributes:[],behaviors:[Fr8.InjectBehavior,CZ.prototype],disableElementRegistration:b.disableElementRegistration,provide:(S=b.providers)!=null?S:[],reactivityMode:b.reactivityMode,signalProperties:(F=y.signalProperties)!=null?F:[]};"template"in h?a.templateGetter=function(){return h.template}:b.getTemplate&&(a.templateGetter=b.getTemplate);
y.behaviors&&fxn(a.behaviors,y.behaviors);lxN(a,h);return a};
lxN=function(b,h){for(var y=h.prototype,S={properties:{},observers:[],disabledPolySiReactions:[]},F=_.L(b.behaviors),a=F.next();!a.done;a=F.next())ib5(S,a.value);ib5(S,y);if(b.signalProperties)for(y=_.L(b.signalProperties),F=y.next();!F.done;F=y.next())delete S.properties[F.value];y=_.L(Object.entries(S.properties));for(F=y.next();!F.done;F=y.next()){a=_.L(F.value);F=a.next().value;a=a.next().value;var P=void 0;if((P=b.signalProperties)==null||!P.includes(F)){P=void 0;var K=b,n=a.type;if(!n)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{n=Reflect.getMetadata("design:type",h,F);for(var X=_.L(xr4),u=X.next();!u.done;u=X.next())if(u=u.value,n===u){n=u;break a}n=Object}else n=String;a.computed||a.selector||(K.reactiveSchemas.push({type:"signal",propertyKey:F,value:a.value,attributeType:n,readOnly:a.readOnly}),K.observedAttributes.push(_.MQ(F)));a.reflectToAttribute&&K.reactiveSchemas.push({type:"reflect",propertyKey:F});if(a.computed){n=Jfk(a.computed);if(!n)throw Error("Pg");K.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:F,method:n,value:a.value})}a.observer&&K.reactiveSchemas.push({type:"observe",method:{methodName:a.observer,args:[{type:"path",path:F}]}});a.notify&&K.reactiveSchemas.push({type:"notify",propertyKey:F});a.selector&&K.reactiveSchemas.push({type:"redux",propertyKey:F,selector:a.selector,selectorArgs:(P=a.selectorArgs)!=null?P:[]})}}QvY&&EOn(b);h=_.L(S.observers);for(F=h.next();!F.done;F=h.next())y=b,F=F.value,(a=Jfk(F))?y.reactiveSchemas.push({type:"observe",method:a}):console.log('Warning: unable to parse observe declaration: "'+
F+'"');we5(b,S.disabledPolySiReactions)};
mrN=function(b,h){for(var y=0;y<h.length;y++){var S=h[y],F=void 0;(F=S).showHideApi!=null||(F.showHideApi={});F=void 0;!!b!==!((F=S.showHideApi)==null||!F.hideTemplateChildren)&&(S.nodeType===Node.TEXT_NODE?b?(S.showHideApi.polymerTextContent=S.textContent,S.textContent=""):(F=void 0,S.textContent=(F=S.showHideApi.polymerTextContent)!=null?F:null):S instanceof Element&&S.localName==="slot"?b?(S.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.Mh)((0,_.Mh)(S).parentNode).replaceChild(S.showHideApi.polymerReplaced,
S)):(F=S.showHideApi.polymerReplaced)&&(0,_.Mh)((0,_.Mh)(F).parentNode).replaceChild(S,F):S instanceof HTMLElement&&S.style&&(b?(S.showHideApi.polymerDisplay=S.style.display,S.style.display="none"):S.style.display=S.showHideApi.polymerDisplay));S.showHideApi.hideTemplateChildren=b;S.showHideChildren&&S.showHideChildren(b)}};
bU5=function(){if(!vOU){var b=document.createElement("style");b.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(b);vOU=!0}};
QU=function(){return _.r("disable_hidden_dom_if_using_stamper")};
h6f=function(b,h){var y=_.mc().getState();return h?b.apply(null,[y].concat(_.f$(h))):b(y)};
Fu8=function(){if(yN5)return yN5;var b=_.L(_.pa(0,void 0,"MB1Hb")),h=b.next().value;b.next();var y=b.next().value;_.mc().subscribe(function(){SIF(y)});
return yN5=h};
SIF=function(b){at4||(at4=!0,Promise.resolve().then(function(){b(function(h){return h+1});
at4=!1}))};
_.mc=function(){return d3N.getAppStore()};
juM=function(b,h){return d3N.getSelectFn()(b,h)};
_.vl=function(b){d3N.getDispatchFn()(b)};
$3f=function(b,h){var y={},S;for(S in b)y[S]=h(b[S],S);return y};
_.bi=function(b,h){return function(){var y;return(y=_.bn(b))!=null?y:h}};
_.h6=function(b,h){var y=Object.assign({},b),S;for(S in h)h.hasOwnProperty(S)&&(y[S]=_.bi(b[S],h[S]));return y};
Lur=function(b,h,y,S){b instanceof Element&&(y.debugName||(y.debugName="<"+b.tagName.toLowerCase()+(b.tagName.includes("-")?">":"."+b.className+">")),_.r("ytwiz_enable_debug_component_props")&&(b.debugProps||(b.debugProps=$3f(h,function(F){return function(){return F()}})),h.data===void 0||"data"in b&&!b.isWebComponentWrapper||Object.defineProperty(b.debugProps,"data",{get:function(){return _.bn(h.data)},
set:function(F){var a;S==null||(a=S.data)==null||a.call(S,F)},
enumerable:!0,configurable:!0})))};
_.ya=function(b,h){if(b.length===0&&(h==null||!h.initial))return nJY(b,{debugName:h==null?void 0:h.debugName},"j");var y=_.L(nJY({source:function(){return b()},
computation:function(a,P){return(P==null?0:P.value)?b(P.value):(h==null?0:h.initial)?b(h.initial):a}},{debugName:h==null?void 0:h.debugName},"k")),S=y.next().value,F=y.next().value;
y=y.next().value;return[S,F,y]};
_.T=function(b,h){var y=function(S){return bS("ytComponent",{},function(F){var a=P24={};var P;if(((P=y)==null?0:P.idomCompat)&&S.renderedFromIdom){var K;P=typeof y.idomCompat==="object"?(K=y)==null?void 0:K.idomCompat.callbacks:{};P=_.L(KuN(S,P));K=P.next().value;var n=P.next().value;P=P.next().value;var X=ZUI(b,K);a.privateValue=X;P24=void 0;Lur(X,K,y,n);F.addAttributes({debugName:y.debugName});F=DdM(X);F=Array.isArray(F)?F[0]:F;F[Ie]||(F[Ie]={});F[Ie].updateSignalsFromIdomProps=P;oVU(K,X);return X}P=
$3f(S,MEj);K=ZUI(b,P);Lur(K,P,y);a.privateValue=K;P24=void 0;F.addAttributes({debugName:y.debugName});oVU(P,K);return K})};
y.debugName=h===void 0?"":h;return y};
ZUI=function(b,h){b=b(h);return UW(b)};
nVI=function(b,h){b[h]||(b=new _.Gn("IDOM interop setter undefined. Key:",h),_.QT(b))};
MEj=function(b,h){return h==="children"||h==="ref"||typeof b==="function"||b===void 0?b:function(){return _.bn(b)}};
KuN=function(b,h){var y={},S={},F={},a={},P;for(P in b){a={key$jscomp$952:a.key$jscomp$952};a.key$jscomp$952=P;var K=b[a.key$jscomp$952];if(a.key$jscomp$952==="children"||a.key$jscomp$952==="ref")y[a.key$jscomp$952]=K;else if(typeof K==="function")if(a.key$jscomp$952 in h||K.length>0)F[a.key$jscomp$952]=K,y[a.key$jscomp$952]=function(X){return function(){return F[X.key$jscomp$952].apply(F,_.f$(_.x$.apply(0,arguments)))}}(a);
else if(a.key$jscomp$952==="data"){var n=_.L(_.ya(K,{debugName:a.key$jscomp$952+":cwis"}));K=n.next().value;n=n.next().value;y[a.key$jscomp$952]=K;S[a.key$jscomp$952]=n}else y[a.key$jscomp$952]=K;else b[a.key$jscomp$952]===void 0&&a.key$jscomp$952 in h||(n=_.L(_.pa(b[a.key$jscomp$952],{debugName:a.key$jscomp$952+":cwis"},"HQMSk")),K=n.next().value,n=n.next().value,y[a.key$jscomp$952]=K,S[a.key$jscomp$952]=n)}return[y,S,function(X){var u={},O;for(O in X)u={key$jscomp$951:u.key$jscomp$951,val$jscomp$122:void 0},
u.key$jscomp$951=O,u.val$jscomp$122=X[u.key$jscomp$951],u.key$jscomp$951!=="children"&&u.key$jscomp$951!=="ref"&&(typeof u.val$jscomp$122==="function"?u.key$jscomp$951 in h?F[u.key$jscomp$951]=u.val$jscomp$122:u.val$jscomp$122.length>0&&(F[u.key$jscomp$951]=u.val$jscomp$122,_.vX(new _.Gn("Callback detected that was not set in the idomCompat callbacks map. Key:",u.key$jscomp$951))):u.key$jscomp$951 in h&&u.val$jscomp$122===void 0||(nVI(S,u.key$jscomp$951),YH(function(N){return function(){S[N.key$jscomp$951](N.val$jscomp$122)}}(u))))}]};
uMF=function(b,h,y){var S=LLU(b.prototype,X$U,b.prototype.behaviors);S.prototype.is=h;S.prototype.localName=h;y&&HUY(S,y);return function(F){F&&(S.prototype.hostElement=F);var a=new S;a.root=a;a.hostElement=F;return a}};
HUY=function(b,h){var y;Object.defineProperty(b.prototype,"_template",{get:function(){y===void 0&&(y=h());return y},
set:function(S){y=S},
configurable:!0,enumerable:!0})};
cNk=function(b,h,y,S){function F(){if(!t){for(var R=new Set,I=_.L(u),U=I.next();!U.done;U=I.next()){U=U.value;for(var p=_.L(Object.getOwnPropertyNames(U)),e=p.next();!e.done;e=p.next()){e=e.value;var E=void 0,Y=(E=Object.getOwnPropertyDescriptor(U,e))==null?void 0:E.value;Y&&Y instanceof Function&&!Sj(e)&&(!K[e]||_.r("polymer_forward_method_killswitch"))&&R.add(e)}}I=_.L(Object.entries(Object.getOwnPropertyDescriptors(b.prototype)));for(U=I.next();!U.done;U=I.next())p=_.L(U.value),U=p.next().value,
p=p.next().value,p.value instanceof Function&&!Sj(U)&&R.add(U);t=R}return t}
OUn(b,h,S==null?void 0:S.providers);P48(b.prototype,b,!0);var a=uMF(b,h,y),P,K=(P=b.prototype.properties)!=null?P:{},n,X,u=(X=(n=b.prototype.behaviors)==null?void 0:n.flat(Infinity))!=null?X:[];y=_.L(u);for(P=y.next();!P.done;P=y.next())K=Object.assign({},P.value.properties,K);var O=[].concat(_.f$(Nt8),_.f$(Object.keys(K).map(function(R){return _.MQ(R)}))),N=!1,t;
return{ctor:function(R,I){var U=a(R),p,e;R=[].concat(_.f$((p=S==null?void 0:S.allowedProps)!=null?p:[]),_.f$((e=S==null?void 0:S.allowedPropsFromBehaviors)!=null?e:[]));U.allowedProps=R.length>0?R:void 0;p={};e=_.L(O);for(R=e.next();!R.done;R=e.next())R=R.value,p[R]=_.nx(R);U.__dataAttributes=p;var E=U.ready.bind(U);U.ready=function(){I.beforeReady();E();if(Dm(h)&&!N){var Y=U.__templateInfo;if(Y==null?0:Y.hostProps){Y=_.L(Object.keys(Y.hostProps));for(var w=Y.next();!w.done;w=Y.next())Bl(h,w.value,
"PROPERTY_ACCESS_GET_INTERNAL")}N=!0}};
U._overrideLegacyUndefined=!0;return U},
props:K,observedAttributes:O,getInitialMethods:F,getPropsToForwardBeforeRegister:function(){for(var R=[],I=new Set,U=_.L(Object.keys(K)),p=U.next();!p.done;p=U.next())p=p.value,R.push([p,K[p].readOnly]),I.add(p);U=F();p=_.L(Object.keys(Object.getOwnPropertyDescriptors(b.prototype)));for(var e=p.next();!e.done;e=p.next())e=e.value,!tEf(e)||U.has(e)||I.has(e)||(R.push([e,!1]),I.add(e));I=_.L(rNf);for(U=I.next();!U.done;U=I.next())R.push([U.value,!0]);return R},
getPropsToForwardBeforeReady:function(R){for(var I=[],U=_.L(Object.entries(R)),p=U.next();!p.done;p=U.next()){var e=_.L(p.value);p=e.next().value;e=e.next().value;if(tEf(p)&&!(e instanceof Function)&&(I.push([p,!1]),Dm(h))){var E=e=void 0;(E=(e=R)._createPropertyAccessor)==null||E.call(e,p)}}return I},
shouldForwardProp:tEf,shouldLog:Dm}};
OUn=function(b,h,y){a3j(b,y);b.prototype.behaviors.unshift(R6f);if(fYn()){if(Dm(h)){var S;(S=b.prototype).behaviors!=null||(S.behaviors=[]);b.prototype.behaviors.unshift(xjN())}Q9k(b)}_.B(CZ.prototype)(b.prototype,"__templateHelpers")};
Sj=function(b){return z6j.has(b)||b.startsWith("__compute__")};
tEf=function(b){return!Sj(b)&&!b.startsWith("_")&&!b.endsWith("_")};
ANq=function(b,h){function y(){var N=n();N=_.L(N);for(var t=N.next();!t.done;t=N.next()){var R=_.L(t.value);t=R.next().value;R=R.next().value;D3r(O.prototype,t,R)}S=!0}
var S=!1,F=b.ctor,a=b.getInitialMethods,P=b.observedAttributes,K=b.getPropsToForwardBeforeReady,n=b.getPropsToForwardBeforeRegister,X=b.shouldForwardProp,u=b.shouldLog,O=function(){var N=HTMLElement.call(this)||this;N.didForwardDynamicProps=!1;N.loggingStatus={};S||y();N.inst=F(N,{beforeReady:function(){N.didForwardDynamicProps||(N.forwardDynamicProps(),N.didForwardDynamicProps=!0)}});
N.controllerProxy=lYn(N.inst,h);N.forwardMethods();return N};
_.z(O,HTMLElement);O.prototype.forwardMethods=function(){for(var N=this,t=_.L(this.inst.getExtraMethodsToForward()),R=t.next(),I={};!R.done;I={method$jscomp$65:void 0},R=t.next()){var U=_.L(R.value);R=U.next().value;U=U.next().value;I.method$jscomp$65=U;this[R]=function(p){return function(){return p.method$jscomp$65.call.apply(p.method$jscomp$65,[N.inst].concat(_.f$(_.x$.apply(0,arguments))))}}(I)}t=_.L(a());
for(I=t.next();!I.done;I=t.next())I=I.value,X(I)&&Ity(this,I),u(h)&&!Sj(I)&&Bty(this.inst,I)};
O.prototype.forwardDynamicProps=function(){var N=K(this.inst);N=_.L(N);for(var t=N.next();!t.done;t=N.next()){var R=_.L(t.value);t=R.next().value;R=R.next().value;D3r(this,t,R);u(h)&&!Sj(t)&&WuF(this.inst,t)}};
O.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
O.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
O.prototype.attributeChangedCallback=function(N,t,R){this.inst.attributeChangedCallbackWrapper(N,t,R)};
_.tm.Object.defineProperties(O.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return h}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.tm.Object.defineProperties(O,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return P}}});
customElements.define(h,O)};
D3r=function(b,h,y){b.hasOwnProperty(h)||Object.defineProperty(b,h,{get:function(){var S,F=((S=b.is)!=null?S:b.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||Bl(F,h,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,S=this.polymerController[h],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,S},
set:function(S){if(!y){var F,a=((F=b.is)!=null?F:b.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||Bl(a,h,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=h,this.loggingStatus.bypassProxyController=!0,this.polymerController[h]!==S&&(F={},this.polymerController.setProperties((F[h]=S,F)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
Ity=function(b,h,y){var S=b.polymerController;b[h]=function(){var F=_.x$.apply(0,arguments);b.loggingStatus.currentExternalCall=h;b.loggingStatus.bypassProxyController=!0;var a,P=((a=b.is)!=null?a:b.tagName).toLowerCase();Bl(P,h,"PROPERTY_ACCESS_CALL_EXTERNAL");var K;a=(K=y!=null?y:S[h])==null?void 0:K.call.apply(K,[S].concat(_.f$(F)));b.loggingStatus.currentExternalCall=void 0;b.loggingStatus.bypassProxyController=!1;return a}};
Bty=function(b,h){var y=b.hostElement,S=b[h];b[h]=function(){var F=_.x$.apply(0,arguments);if(y.loggingStatus.currentExternalCall!==h){var a,P=((a=y.is)!=null?a:y.tagName).toLowerCase();Bl(P,h,"PROPERTY_ACCESS_CALL_INTERNAL")}return S==null?void 0:S.apply(b,F)}};
WuF=function(b,h){var y=Object.getOwnPropertyDescriptor(b,h);y&&!y.get&&Object.defineProperty(b,h,{get:function(){qHr(b.hostElement,h);return y.value},
set:function(S){Wl(b.hostElement,h);y.value=S}})};
U34=function(b){return _.r("poly_si_dom_repeat_detached_fix_killswitch")||b.tagName!=="PS-DOM-REPEAT"?b.tagName==="DOM-REPEAT":!0};
JNf=function(b,h){var y=p$5(b);b instanceof Element&&y.unshift(b);b=_.L(y.filter(U34));for(var S=b.next();!S.done;S=b.next()){var F=void 0;S=_.L((F=S.value.__instances)!=null?F:[]);for(F=S.next();!F.done;F=S.next())if(F=F.value,F.root){F=Array.from(F.root.children);F=_.L(F);for(var a=F.next();!a.done;a=F.next())y.push.apply(y,_.f$(JNf(a.value,h)))}}return y.filter(function(P){return P.usePatchedLifecycles&&P.lifecycleIsConnected===h})};
p$5=function(b){var h=null;b instanceof Element?h=Element.prototype.querySelectorAll:b instanceof DocumentFragment&&(h=DocumentFragment.prototype.querySelectorAll);return h?Array.from(h.call(b,"*")):[]};
Fb=function(b){_.Ar(function(){for(var h=_.L(JNf(b,!1)),y=h.next();!y.done;y=h.next()){y=y.value;y.lifecycleIsConnected=!0;try{var S=void 0,F=void 0,a=void 0,P=void 0;(S=(P=y.polymerController)!=null?P:y)==null||(a=(F=S).connectedCallback)==null||a.call(F)}catch(K){_.QT(K)}}})};
a_=function(b){_.Ar(function(){for(var h=_.L(JNf(b,!0)),y=h.next();!y.done;y=h.next()){y=y.value;y.lifecycleIsConnected=!1;try{var S=void 0,F=void 0,a=void 0,P=void 0;(S=(P=y.polymerController)!=null?P:y)==null||(a=(F=S).disconnectedCallback)==null||a.call(F)}catch(K){_.QT(K)}}})};
GTM=function(){if(!e6y){e6y=!0;var b=[Node];dU&&b.push(dU.Wrapper);var h=Node.prototype.insertBefore,y=Node.prototype.removeChild;b=_.L(b);for(var S=b.next(),F={};!S.done;F={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},S=b.next())S=S.value,F.nativeInsertBefore=S.prototype.insertBefore,S.prototype.insertBefore=function(P){return function(K,n){if(K instanceof DocumentFragment){var X=Array.from(K.children);K=P.nativeInsertBefore.call(this,K,n);
if(this.isConnected&&P.nativeInsertBefore===h)for(n=_.L(X),X=n.next();!X.done;X=n.next())Fb(X.value);return K}X=K instanceof Element&&K.isConnected;n=P.nativeInsertBefore.call(this,K,n);X&&a_(K);this.isConnected&&Fb(K);return n}}(F),F.nativeAppendChild=S.prototype.appendChild,S.prototype.appendChild=function(P){return function(K){if(K instanceof DocumentFragment){var n=Array.from(K.children);
K=P.nativeAppendChild.call(this,K);if(this.isConnected){n=_.L(n);for(var X=n.next();!X.done;X=n.next())Fb(X.value)}return K}n=K instanceof Element&&K.isConnected;X=P.nativeAppendChild.call(this,K);n&&a_(K);this.isConnected&&Fb(K);return X}}(F),F.nativeRemoveChild=S.prototype.removeChild,S.prototype.removeChild=function(P){return function(K){var n=K instanceof Element&&K.isConnected,X=P.nativeRemoveChild.call(this,K);
n&&y===P.nativeRemoveChild&&a_(K);return X}}(F),F.nativeReplaceChild=S.prototype.replaceChild,S.prototype.replaceChild=function(P){return function(K,n){if(K instanceof DocumentFragment){var X=Array.from(K.children);
K=P.nativeReplaceChild.call(this,K,n);if(this.isConnected)for(a_(n),n=_.L(X),X=n.next();!X.done;X=n.next())Fb(X.value);return K}X=K instanceof Element&&K.isConnected;var u=this.isConnected,O=P.nativeReplaceChild.call(this,K,n);u&&a_(n);X&&a_(K);u&&Fb(K);return O}}(F);
b=[Element];dU&&b.push(dU.Wrapper);b=_.L(b);S=b.next();for(F={};!S.done;F={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},S=b.next())S=S.value,S.prototype.before=C2r(S.prototype.before),S.prototype.after=C2r(S.prototype.after),F.nativeReplaceWith=S.prototype.replaceWith,S.prototype.replaceWith=function(P){return function(){var K=_.x$.apply(0,arguments),n=_.L(gVn(K)),X=n.next().value,
u=n.next().value;n=this.isConnected;P.nativeReplaceWith.apply(this,K);K=_.L(u);for(u=K.next();!u.done;u=K.next())a_(u.value);if(n)for(a_(this),X=_.L(X),n=X.next();!n.done;n=X.next())n=n.value,n instanceof Element&&Fb(n)}}(F),F.nativeRemove=S.prototype.remove,S.prototype.remove=function(P){return function(){var K=this.isConnected;
P.nativeRemove.call(this);K&&a_(this)}}(F),F.nativeInsertAdjacentElement=S.prototype.insertAdjacentElement,S.prototype.insertAdjacentElement=function(P){return function(K,n){var X=n.isConnected;
K=P.nativeInsertAdjacentElement.call(this,K,n);X&&a_(n);K.isConnected&&Fb(K);return K}}(F),F.nativeSetAttribute=S.prototype.setAttribute,S.prototype.setAttribute=function(P){return function(K,n){var X=suq(this);
if(!X.usePatchedLifecycles)return P.nativeSetAttribute.call(this,K,n);var u=this.getAttribute(K);P.nativeSetAttribute.call(this,K,n);n=this.getAttribute(K);YIr(X,K,u,n)}}(F),F.nativeRemoveAttribute=S.prototype.removeAttribute,S.prototype.removeAttribute=function(P){return function(K){var n=suq(this);
if(!n.usePatchedLifecycles)return P.nativeRemoveAttribute.call(this,K);var X=this.getAttribute(K);P.nativeRemoveAttribute.call(this,K);X!==null&&YIr(n,K,X,null)}}(F),F.nativeToggleAttribute=S.prototype.toggleAttribute,S.prototype.toggleAttribute=function(P){return function(K,n){var X=suq(this);
if(!this.usePatchedLifecycles)return P.nativeToggleAttribute.call(this,K,n);var u=this.getAttribute(K),O=u!==null;n=P.nativeToggleAttribute.call(this,K,n);n!==O&&YIr(X,K,u,n?"":null);return n}}(F);
b=[Document,DocumentFragment,Element,ShadowRoot];dU&&b.push(dU.Wrapper);b=_.L(b);for(F=b.next();!F.done;F=b.next())F=F.value,F.prototype.prepend=C2r(F.prototype.prepend),F.prototype.append=C2r(F.prototype.append);(dU==null?void 0:dU.noPatch)===!0&&TtY();document.readyState==="complete"?Fb(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&Fb(document.body)});
var a=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");a&&a.get&&a.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:a.enumerable,configurable:!0,get:a.get,set:function(P){P||a_(this);a.set.call(this,P);return P}})}};
C2r=function(b){return function(){var h=_.x$.apply(0,arguments),y=_.L(gVn(h)),S=y.next().value;y=y.next().value;b.apply(this,h);h=_.L(y);for(y=h.next();!y.done;y=h.next())a_(y.value);if(this.isConnected)for(S=_.L(S),h=S.next();!h.done;h=S.next())h=h.value,h instanceof Element&&Fb(h)}};
TtY=function(){for(var b=_.L(kTk),h=b.next();!h.done;h=b.next()){h=h.value.prototype;for(var y=_.L(VEU),S=y.next();!S.done;S=y.next()){S=S.value;var F=Object.getOwnPropertyDescriptor(h,S);F&&Object.defineProperty(h,"__shady_native_"+S,F)}}};
YIr=function(b,h,y,S){var F,a;if((F=b.polymerController)==null?0:(a=F.observedAttributes)==null?0:a.includes(h))if(b=b.polymerController,b.attributeChangedCallbackWrapper)b.attributeChangedCallbackWrapper.call(b,h,y,S);else{var P;(P=b.attributeChangedCallback)==null||P.call(b,h,y,S)}};
gVn=function(b){var h=[],y=[];b=_.L(b);for(var S=b.next();!S.done;S=b.next())S=S.value,S instanceof Element&&S.isConnected&&y.push(S),S instanceof DocumentFragment?h.push.apply(h,_.f$(Array.from(S.children))):h.push(S);return[h,y]};
suq=function(b){return!(b instanceof Element)&&b.node instanceof Element?b.node:b};
EVk=function(b,h){var y=h?["children"].concat(_.f$(h)):["children"];h=[];y=_.L(y);for(var S=y.next();!S.done;S=y.next()){var F=S.value;if(b.hasOwnProperty(F)){S=b[F];S=typeof S==="function"?S():S;S=Array.isArray(S)?S:[S];S=UW(S).flat();if(F!=="children"){F=F85(F);for(var a=_.L(S),P=a.next();!P.done;P=a.next())P=P.value,P instanceof Element&&P.setAttribute("slot",F)}h.push(S)}}h.length===0?b=[]:(b=UW(_.M("div",null,h)),b=Array.from(b.childNodes));return b};
ftF=function(b,h,y){var S={};_.xH(function(){var F={},a;for(a in h)if(h.hasOwnProperty(a)){var P=void 0,K=void 0;if(!(((P=y.slotProps)==null?0:P.includes(a))||a==="children"||((K=y.callbackProps)==null?0:K.includes(a))||a==="ref")&&(P=_.bn(h[a]),S[a]!==P)){S[a]=P;K=void 0;var n=(K=b.hostElement)!=null?K:b;!y.skipHostForwardedProps&&iU4.has(a)&&(n[a]=P);F[a]=P}}YH(function(){if(b.setProperties)b.setProperties(F);else for(var X=_.L(Object.entries(F)),u=X.next();!u.done;u=X.next()){var O=_.L(u.value);
u=O.next().value;O=O.next().value;b[u]=O}})},"l")};
ltk=function(b,h,y,S){var F=EVk(y,S.slotProps),a=(0,_.Mh)(b);F=_.L(F);for(var P=F.next();!P.done;P=F.next())a.appendChild(P.value);ftF(h,y,S);S=_.L(S.callbackProps||[]);F=S.next();for(a={};!F.done;a={kebabEventName:void 0,eventListener:void 0},F=S.next())P=F=F.value,String(F).substring(0,2)==="on"&&y[P]?(a.kebabEventName=F85(String(F).substring(2)),a.eventListener=y[P],b.addEventListener(a.kebabEventName,a.eventListener),_.m2(function(u){return function(){b.removeEventListener(u.kebabEventName,u.eventListener)}}(a))):
h[P]=y[P];
if(y.ref){y=_.L(w$k(y.ref));var K=y.next().value,n=y.next().value,X=h.attached.bind(h);h.attached=function(){K(b);X()};
_.m2(function(){n()})}};
w$k=function(b){if(typeof b==="function"){var h;return[function(y){h=b(y)},
function(){var y;(y=h)==null||y()}]}if(!b.onRender||!b.onUnmount)throw Error("Tg");
return[b.onRender,b.onUnmount]};
qIj=function(b,h){h=h===void 0?{}:h;var y=function(S){var F=document.createElement(b),a;var P=(a=F.polymerController)!=null?a:F;ltk(F,P,S,h);return F};
y.debugName=b;return y};
vVU=function(b,h,y,S,F){S=S===void 0?{}:S;var a=x3k,P=!1;a?(P=!0,x3k=void 0):(QuN=h,a=document.createElement(h),QuN=void 0);var K=a;K.usePatchedLifecycles=!0;K.lifecycleIsConnected=!1;a.loggingStatus={};var n=m3j(b,h,a,S,F);_.m2(function(){K.lifecycleIsConnected&&(K.lifecycleIsConnected=!1,n.disconnectedCallback())});
P||(a.__noInsertionPoint=!0,ltk(a,n,y,S));return a};
m3j=function(b,h,y,S,F){F=F===void 0?cNk:F;bCy[h]!=null||(bCy[h]=F(b,h,S==null?void 0:S.getTemplate,S));var a=bCy[h],P=a.ctor;F=a.getInitialMethods;var K=a.getPropsToForwardBeforeReady;b=a.getPropsToForwardBeforeRegister;S=a.shouldForwardProp;var n=a.observedAttributes,X=a.shouldLog,u=P(y,{beforeReady:function(){var O=u;O._takeAttributes?O._takeAttributes():O.setPropertiesFromInitialAttributeValues&&O.setPropertiesFromInitialAttributeValues();O=_.L(K(y.polymerController));for(var N=O.next();!N.done;N=
O.next()){var t=_.L(N.value);N=t.next().value;t=t.next().value;D3r(y,N,t);X(h)&&!Sj(N)&&WuF(y.polymerController,N)}y.polymerController=lYn(u,h)}});
y.polymerController=u;y.polymerController.observedAttributes=n;a=_.L(u.getExtraMethodsToForward());for(P=a.next();!P.done;P=a.next())n=_.L(P.value),P=n.next().value,n=n.next().value,Ity(y,P,n);F=_.L(F());for(a=F.next();!a.done;a=F.next())a=a.value,S(a)&&Ity(y,a),X(h)&&!Sj(a)&&Bty(u,a);b=_.L(b());for(S=b.next();!S.done;S=b.next())F=_.L(S.value),S=F.next().value,F=F.next().value,D3r(y,S,F);return u};
hFN=function(b){var h=jj;jj=b;return h};
FGf=function(b){if(yuY.has(b)&&jj&&SLN(jj)===b){var h;(h=jj)._numRenders!=null||(h._numRenders=0);jj._numRenders++;if(jj._numRenders>1)throw Error("Ug");return jj}};
dZr=function(b){var h=SLN(b);jj!==b&&h.includes("-")&&aD5.set(b,!0)};
SLN=function(b){var h;return(h=b==null?void 0:b.tagName.toLowerCase())!=null?h:""};
jmn=function(b,h){if(b.componentType===Gr)throw Error("Vg");yuY.add(h);var y=function(){var S=HTMLElement.call(this)||this;S.is=h;if(QuN===h)return S.isInert=!0,S;S.createElement();return S};
_.z(y,HTMLElement);y.prototype.createElement=function(){if(!this.isInert){x3k=this;var S=_.L(_.hlY(function(){return _.M(b,null)})).next().value;
x3k=void 0;qc5(this);return S}};
customElements.define(h,y)};
LGr=function(b,h,y,S,F){b.prototype.is=h;(S==null?0:S.useSink)?$Z8(b,h,y,S,F):(y=cNk(b,h,y,S),ANq(y,h));return b};
$Z8=function(b,h,y,S,F){GTM();var a=_.T(function(P){return vVU(b,h,P,Object.assign({},S,{getTemplate:y}),F)},"m");
a.debugName=h;jmn(a,h);return a};
KG4=function(b){return!P6M.has(b)};
MNy=function(b,h,y,S){function F(){if(!O){for(var N=new Set(ZCj),t=_.L(a.behaviors),R=t.next();!R.done;R=t.next()){R=R.value;for(var I=_.L(Object.getOwnPropertyNames(R)),U=I.next();!U.done;U=I.next()){U=U.value;var p=void 0,e=(p=Object.getOwnPropertyDescriptor(R,U))==null?void 0:p.value;e&&e instanceof Function&&(!X[U]||_.r("polymer_forward_method_killswitch"))&&N.add(U)}}t=_.L(Object.entries(Object.getOwnPropertyDescriptors(b.prototype)));for(R=t.next();!R.done;R=t.next())I=_.L(R.value),R=I.next().value,
I=I.next().value,I.value instanceof Function&&N.add(R);O=N}return O}
var a=qCI({is:h,disableElementRegistration:!1,getTemplate:y,providers:S==null?void 0:S.providers,reactivityMode:S==null?void 0:S.reactivityMode},b);if((S==null?0:S.allowedProps)||(S==null?0:S.allowedPropsFromBehaviors)){var P,K;a.allowedProps=[].concat(_.f$((P=S.allowedProps)!=null?P:[]),_.f$((K=S.allowedPropsFromBehaviors)!=null?K:[]))}var n=kJy(a,b);h=n.observedAttributes;var X={};y=_.L(a.reactiveSchemas);for(S=y.next();!S.done;S=y.next())if(S=S.value,S.type==="signal")X[S.propertyKey]={readOnly:S.readOnly},
S.readOnly&&(X[u2F(S.propertyKey)]={readOnly:!0});else if(S.type==="compute"||S.type==="computeWithMethod"||S.type==="redux")X[S.propertyKey]={readOnly:!0};var u=a.reactiveSchemas.length,O;return{ctor:function(N,t){N=new n(N);N.beforeReady=t.beforeReady;return N},
props:X,observedAttributes:h,getInitialMethods:F,getPropsToForwardBeforeRegister:function(){for(var N=[],t=new Set,R=_.L(oCU),I=R.next();!I.done;I=R.next())I=I.value,N.push([I,I!=="observers"&&I!=="properties"]),t.add(I);R=_.L(Object.keys(X));for(I=R.next();!I.done;I=R.next())I=I.value,N.push([I,X[I].readOnly]),t.add(I);R=F();I=_.L(Object.keys(Object.getOwnPropertyDescriptors(b.prototype)));for(var U=I.next();!U.done;U=I.next())U=U.value,!KG4(U)||R.has(U)||t.has(U)||(N.push([U,!1]),t.add(U));N.push(["allowedProps",
!0]);return N},
getPropsToForwardBeforeReady:function(N){var t=[];N=_.L(Object.keys(N));for(var R=N.next();!R.done;R=N.next()){R=R.value;var I=F();KG4(R)&&!I.has(R)&&t.push([R,!1])}N=_.L(a.reactiveSchemas.slice(u));for(R=N.next();!R.done;R=N.next())R=R.value,R.type!=="compute"&&R.type!=="computeWithMethod"&&R.type!=="redux"&&R.type!=="signal"||t.push([R.propertyKey,R.type==="signal"?R.readOnly:!0]);return t},
shouldForwardProp:KG4,shouldLog:Dm}};
_.k=function(b,h,y,S){var F,a,P=(a=(F=S)==null?void 0:F.mode)!=null?a:0;S!=null||(S={});var K;(K=S).reactivityMode!=null||(K.reactivityMode=0);P===1&&_.c9("creator_poly_si_disable_list").includes(h)&&(P=2);return P===1?LGr(b,h,y,Object.assign({},S,{useSink:!0}),MNy):LGr(b,h,y,Object.assign({},S,{useSink:P===2}))};
_.$S=function(){return function(b,h,y,S){var F,a,P=(a=(F=S)==null?void 0:F.mode)!=null?a:2;S!=null||(S={});var K;(K=S).reactivityMode!=null||(K.reactivityMode=0);if(P===0)throw Error("Wg`"+P);return $Z8(b,h,y,S,P===1?MNy:void 0)}};
_.Lt=function(b){return _.r("creator_poly_si_killswitch")?!1:_.r("force_all_poly_si_batches")&&(b==="poly_si_all_on_test_check"?0:b)||document.documentElement.hasAttribute("use-signals")?!0:!b||_.r(b+"_holdback_enabled")&&_.r("kevlar_polysi_holdback")?!1:_.r(b)};
P3=function(b){return b?b.icon?b.icon.iconType.toLowerCase():b.customThumbnail?"member":"":""};
nCj=function(b){if(!b)return"";b=_.L(b);for(var h=b.next();!h.done;h=b.next())if((h=h.value)&&h.liveChatAuthorBadgeRenderer&&(h=P3(h.liveChatAuthorBadgeRenderer))&&h!=="verified")return h;return""};
XWN=function(b,h){if(!b)return null;var y;return((y=b.find(function(S){return S&&S.liveChatAuthorBadgeRenderer?P3(S.liveChatAuthorBadgeRenderer)===h:!1}))==null?void 0:y.liveChatAuthorBadgeRenderer)||null};
_.ruy=function(b){var h=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;b=HCU(b);h=HCU(h);var y=u74(b.hex);h=u74(h.hex);var S=h[0]/255;var F=h[1]/255,a=h[2]/255,P=Math.max(S,F,a),K=Math.min(S,F,a),n=0,X=0,u=.5*(P+K);P!=K&&(P==S?n=60*(F-a)/(P-K):P==F?n=60*(a-S)/(P-K)+120:P==a&&(n=60*(S-F)/(P-K)+240),X=0<u&&u<=.5?(P-K)/(2*u):(P-K)/(2-2*u));S=[Math.round(n+360)%360,X,u];y=OC8(y,h);for(b=N0M(b.hex);y<4.5;){b=S[2]>=.5?b.darker((4.5-y)/2):b.brighter((4.5-y)/2);y=b.toString();
F=tNN(y);if(!F.length)throw Error("Yd`"+y);y=F;y=OC8(y,h)}return b.hex()};
OC8=function(b,h){b=_.xYk(b);h=_.xYk(h);return(Math.max(b,h)+.05)/(Math.min(b,h)+.05)};
_.Kt=function(b){return"#"+("000000"+(b&16777215).toString(16)).slice(-6)};
_.cuf=function(b){for(var h=0,y=0;y<b.length;y++)h=b.charCodeAt(y)+((h<<5)-h);b="#";for(y=0;y<3;y++)b+=("00"+(h>>y*8&255).toString(16)).slice(-2);return b};
RF8=function(b){b=(b||"").split(":");b.length===1&&b.unshift("yt-icons");b[1]=b[1].toLowerCase();return b};
AuM=function(b,h){var y=(h=h===void 0?!1:h)?zFY:DZq,S=h?IDn:B0N;b.getIconNames().forEach(function(F){F=h?F:F.substring(F.indexOf(":")+1);b.name==="yt-icons"?WGY.add(F):F.includes("-filled")?y.add(F):S.add(F)})};
Z1=function(b,h,y,S){y=y===void 0?!1:y;S=S===void 0?!1:S;var F,a,P;return _.Z(function(K){if(K.nextAddress==1)return K.yield(UZq,2);if(S)return K.return(WGY.has(b));F=y?zFY:DZq;a=y?IDn:B0N;return h?(P=b.includes("-filled")?b:b.concat("-filled"),K.return(F.has(P))):K.return(a.has(b))})};
_.o_=function(b){if(pW8(b))return b.toString();var h=Juf.get(b);if(h)return h;h=b.toLowerCase();var y="yt-icons",S=h.replace(/_/g,"-");switch(b){case "MY_CHANNEL":h="account_circle";break;case "ADD_TO_LIBRARY":h="add";break;case "ALERT_WARN_RED":h="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":h="person_music";break;case "BLOCK_USER":h="block";break;case "CAPTIONS":h="closed_caption";break;case "CLOSED_CAPTION":y="av";h="closed-caption";break;case "COLLECTION":y="maps";h="layers";break;case "CONTACT":y=
"icons";h="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":y="yt-studio-system-icons";h=S.split("creator-studio-")[1];break;case "DISMISSAL":h="close";break;case "DO_NOT_DISTURB":h="block";break;case "DOGFOOD":y="icons";h="pets";break;case "DRAFT":h="paper_corner_folded";
break;case "EMPTY_LIKE":h="like_outline";break;case "EXIT_APP":h="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":h=S;break;case "GAMES":y="ytg";h="my-games";break;case "GO_TO_PAGE":h="arrow-forward";break;case "GROUP":y="social";break;case "HIDE":h="not_interested";break;case "INPUT_COMPONENT":y="icons";h="settings-input-component";break;case "KIDS_BLOCK":h="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":y="ytg";h="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":y=
"ytg";h="membership-post-purchase";break;case "MULTIVIEW":h="screen_multi_view";break;case "MY_LOCATION":y="maps";h=S;break;case "NOTIFICATIONS_INBOX":h="NOTIFICATIONS";break;case "NEXT":h="chevron_right";break;case "OFFLINE":h="power-settings-new";break;case "PAUSE":y="miniplayer";break;case "PAYMENT":y="icons";break;case "PHONE_DOWNLOAD":h="phone_download";break;case "PREMIUM_STANDALONE":y="yt-logos";h="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":y="yt-logos";h="premium_standalone_cairo";
break;case "QUESTION_ANSWER":h="question_answer";break;case "REDEEM":y="icons";h="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":h="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":h="library_add";break;case "SCHOOL":y="yt-sys-icons";h="creator_academy";break;case "SETTINGS_LIGHT":h="settings_applications";break;case "SETTINGS_MATERIAL":h="settings";break;case "SEARCH_HISTORY":h="watch_history";break;case "SHOPPING_BAG":h="bag";break;case "SOCIAL":case "PEOPLE":y=
"yt-icons";h="people";break;case "STAFF_PICK":y="ytg";h="spotlight";break;case "START_DVR":h="add";break;case "STOP_DVR":y="av";h="stop";break;case "TAB_LIKED":h="like";break;case "TAB_INBOX":h="mail";break;case "TERMS_OF_SERVICE":y="icons";h="description";break;case "TRENDING":h="fire";break;case "UNBLOCK_USER":h="remove";break;case "UNPLUGGED_DARK_THEME":y="image";h="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":h="live";break;case "UNPLUGGED_SPORTS":y="ytu";h="visibility-off";break;
case "VIDEOS":y="av";h="play-circle-filled";break;case "YOUTUBE":y="yt-logos";h="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":y="yt-logos-ext";h="yt-logo-red-updated";break;case "YOUTUBE_LOGO":y="yt-logos-ext";h="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":y="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":y="shorts";h=S;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":y="yt-sys-icons";h="youtube_improve_tv";break;case "OUTLINE_BAG":y=
"yt-sys-icons";h="bag";break;case "QUEUE_PLAY_LAST":y="yt-sys-icons";h="list_queue_last";break;case "SLASH_CIRCLE_LEFT":h="slash_circle_left";break;case "SPEED_1_POINT_2X":h="1_point_2x";break;case "SPEED_1_POINT_5X":h="1_point_5x";break;case "SPEED_1_POINT_8X":h="1_point_8x";break;case "SPEED_POINT_2X":h="point_2x";break;case "SPEED_POINT_5X":h="point_5x";break;case "SPEED_POINT_8X":h="point_8x";break;case "SPEED_1X":h="1x";break;case "SPEED_2X":h="2x";break;case "TAB_BOOKMARK":h="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":y="yt-sys-icons";h="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":y="yt-sys-icons";h="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":y="yt-sys-icons",h="tic_tac_toe"}h=y+":"+h;Juf.set(b,h);return h};
pW8=function(b){var h;_.r("kevlar_use_wil_icons")?h=!!_.H9().resolve(_.MJ).resolveIcon({iconName:b.toString()}):h=!1;return h};
_.Xb=function(b,h,y,S){y=y===void 0?{}:y;S=S===void 0?!1:S;y===null&&(y={});var F=_.c9("kevlar_command_handler_command_banlist");F=_.L(F);for(var a=F.next();!a.done;a=F.next())if(a=b?b.hasOwnProperty(a.value):void 0,a)return!1;F=_.c(b.commandMetadata,_.ZW);return S&&F!=null&&F.url?!1:!h.disableCommandHandlerOverride&&_.nt.instance?(S=_.nt.instance,y.form||(y.form={element:h}),y.form.element||(y.form.element=h),!y.clickedVisualElement&&h.visualElement&&(y.clickedVisualElement=h.visualElement),S.resolveCommand(b,
y),!0):!1};
eF5=function(b,h){b=H3(b);for(var y=_.L(b.visibilityMonitorKeys||[]),S=y.next();!S.done;S=y.next())h.unobserveByKey(S.value);b.visibilityMonitorKeys=void 0};
ui=function(b,h){if(_.UE()){if(_.r("kevlar_vimio_use_shared_monitor"))C65(b,h.data);else if(!C65(b,h.data))return;var y=h.data,S=gCY(y);if(_.r("enable_client_ve_spec_logging"))eF5(b,h.observer);else{var F=H3(b);F.trackedParams&&F.trackedParams!==S&&eF5(b,h.observer)}F=H3(b);!y||F.data&&F.data===y||(F.data=y);smf(b,h);F.trackedParams=S}};
smf=function(b,h){var y=h.observer;if(!y&&_.r("web_skip_missing_vimio_observer")){var S,F;_.vX(new _.Gn("VisibilityObserver is not defined.",b.tagName,b.trackedParams,(S=h.data)==null?void 0:S.trackingParams,(F=h.data)==null?void 0:F.loggingDirectives))}else{var a=h.layer,P=h.visibilityCallback||function(){},K=h.prescanCallback,n=H3(b);
S=[];h.showOption&&S.push(y.observe(b,function(){h.skipLogging&&h.skipLogging()||_.OQ().reportShown(n,void 0,a,7);P(!0)},h.showOption));
h.hideOption&&S.push(y.observe(b,function(){_.OQ().reportHidden(n,void 0,a,7);P(!1)},h.hideOption));
h.prescanOption&&K&&S.push(y.observe(b,function(){K()},h.prescanOption));
n.visibilityMonitorKeys=S}};
C65=function(b,h){b=H3(b);if(b.visualElement&&!h)return!0;if(!h)return!1;var y=!1;if(_.r("enable_client_ve_spec_logging")){var S,F;y=!!((S=h.loggingDirectives)==null?0:(F=S.clientVeSpec)==null?0:F.uiType)}S=gCY(h);if(!S&&!y)return!1;_.r("mweb_component_visibility_logging")&&(b.veContainer||(b.veContainer={}),b.veContainer.trackingParams=S);if(b.trackedParams&&b.trackedParams===S)return!1;var a;if(_.r("enable_client_ve_spec_logging")&&((a=b.visualElement)==null?0:a.isClientVe())){var P;a=(P=b.visualElement)==
null?void 0:P.getAsJspb();var K,n,X,u;if(_.rB(a,2)===((K=h.loggingDirectives)==null?void 0:(n=K.clientVeSpec)==null?void 0:n.uiType)&&_.rB(a,3,-1)===((X=h.loggingDirectives)==null?void 0:(u=X.clientVeSpec)==null?void 0:u.elementIndex))return!1}if(_.r("enable_client_ve_spec_logging")){var O,N;!b.visualElement&&((O=h.loggingDirectives)==null?0:(N=O.clientVeSpec)==null?0:N.uiType)&&(K=h.loggingDirectives.clientVeSpec,h=K.uiType,P=K.elementIndex,K=K.clientYoutubeData,b.visualElement=_.NJ(_.rU(),{veType:h,
elementIndex:P,clientYouTubeData:K}))}return!0};
gCY=function(b){if(b==null?0:b.rendererContext){var h=_.c(b.rendererContext,_.c3);if(h==null?0:h.loggingDirectives)return h.loggingDirectives.trackingParams}return(b==null?0:b.loggingDirectives)?b.loggingDirectives.trackingParams:b==null?void 0:b.trackingParams};
H3=function(b){var h;return(h=b.polymerController)!=null?h:b};
klk=function(b){_.OQ();if(_.bN(R_().JSC$12911_elementShouldLogGesture).bind(R_())(b,4)){YLN(b);var h=T05(b);Gl4.set(b,h)}};
YLN=function(b){Gl4.has(b)&&(Gl4.get(b).cancel("untrack hover element"),Gl4.delete(b))};
T05=function(b){var h,y=[],S=!1,F=new _.Uu(function(a,P){zK(b,"mouseenter",_.bN(function(){var K,n,X;return _.Z(function(u){if(u.nextAddress==1)return h=(0,_.NO)(),K=VNF(b),y.push(K),n=ECf(b,function(){S=!0;P(Error("Xg"))}),u.yield(K,2);
if(u.nextAddress!=3)return n&&D1(n),X=iCI(b),y.push(X),u.yield(X,3);a();_.g3(u)})}))});
F.then(function(){var a=(0,_.NO)()-h;a=Math.round(a);if(!(500>a||6E5<=a)){var P=b.getScreenLayer?b.getScreenLayer():void 0;P=_.UE(P)||"";var K=fDj(_.OQ(),b);_.qt(P,b.visualElement?b.visualElement:_.I_(K),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:a}})}klk(b)},function(){B3&&(B3(),B3=null);
S&&(YLN(b),klk(b))});
return F};
VNF=function(b){var h;return(new _.Uu(function(y,S){B3=function(){S(Error("Yg"))};
h=_.xP.debounce(_.bN(function(){D1(F);y()}),1,100);
var F=_.W3(b,"mousemove",h)})).thenCatch(function(){var y=_.xP.cancelDebouncedJobMap.get(h);
y&&_.xP.cancelJob(y)})};
iCI=function(b){var h;return(new _.Uu(function(y,S){B3=function(){S(Error("Zg"))};
h=zK(b,"mouseleave",_.bN(function(){y()}))})).thenCatch(function(){D1(h)})};
ECf=function(b,h){return zK(b,"mouseleave",_.bN(h))};
lDf=function(b){wWN&&_.A6.cancel(wWN);wWN=_.A6.run(function(){_.Sx(b,"yt-visibility-refresh");wWN=0})};
qLj=function(b){b=Number(b);return"rgba("+[b>>16&255,b>>8&255,b&255,(b>>24&255)/255].join()+")"};
Qm8=function(b){if(!b)return!1;if(_.c(b,_.xZN))return!0;var h;if(b=(h=_.c(b,_.LI))==null?void 0:h.commands)for(h=_.L(b),b=h.next();!b.done;b=h.next())if(_.c(b.value,_.xZN))return!0;return!1};
mZk=function(b){var h=!0;h=h===void 0?!0:h;if(!b.useSignals&&!b.experimentalPropertiesChanged||_.r("experimental_templating_behavior_nopatch_killswitch")){var y=b._propertiesChanged;b._propertiesChanged=function(S,F,a){h?b.debounceRender():b.doRender();y&&y.call(b,S,F,a)}}};
vCM=function(b,h){if(b.useSignals||b.experimentalPropertiesChanged)if(_.r("experimental_templating_behavior_nopatch_killswitch"))b.experimentalPropertiesChanged=function(){};
else return;var y=new Set,S=[b].concat(_.f$(b.behaviors));S=_.L(S);for(var F=S.next();!F.done;F=S.next()){F=F.value;for(var a in F.properties)y.has(a)||(b._addPropertyEffect(a,"function",h),y.add(a))}};
bgy=function(){var b=Polymer.Element,h=b._prepareTemplate;b._prepareTemplate=function(){h.call(this);var y=this.prototype;if(y.experimentalTemplatingInUse&&y.experimentalTemplatingInUse()&&y.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.QT(Error("$g"));else{y=this.template.content.childNodes;for(var S=y.length-1;S>=0;S--){var F=y[S];F.nodeName!=="STYLE"&&F.nodeName!=="LINK"&&F.nodeName!=="SCRIPT"&&F.nodeName!=="#comment"&&F.remove()}}}};
hJ4=function(b){var h=!0;h=h===void 0?!0:h;bgy();var y=b.ready;b.ready=function(){this._template=null;y.call(this)};
vCM(b,h?b.debounceRender:b.doRender)};
S2k=function(b,h,y){if(y===null||y===void 0)return y;var S=T_q(b.tagName.toLowerCase(),h,function(){throw Error("Ub");});
if(S===null)return y;S=ysf[S];var F;if((F=S.isUnwrappable)==null?0:F.call(S,y)){if(S.unwrap)return S.unwrap(y);throw Error("ch");}return S.filterString?S.filterString(b.tagName,h,String(y)):y};
FKq=function(b,h,y){var S=h[h.length-1]!=="$";y=S2k(b,h,y);S?b[h]=y:(S=y==null?null:String(y),SY(b,h.slice(0,-1),S))};
pt=function(b){apf.length===0&&requestAnimationFrame(function(){setTimeout(function(){var h=apf.slice();apf.length=0;h=_.L(h);for(var y=h.next();!y.done;y=h.next()){y=y.value;try{y()}catch(S){_.UQ(S)}}})});
apf.push(b)};
dW8=function(b){if(b){var h=b.component;if(h){var y;h==null||(y=h.events)==null||y.publish("DISCONNECTED");var S;h==null||(S=h.onDisconnected)==null||S.call(h)}var F,a;(F=b.__spec)==null||(a=F.didUnmount)==null||a.call(F);for(h=0;h<b.childNodes.length;h++)dW8(b.childNodes[h])}};
_.J6=function(b,h,y){y===void 0?delete b[h.name]:b[h.name]=y};
_.ej=function(b){var h={androidIncludeFontPadding:!1},y=0,S=[],F=[],a=[];if(b.simpleText)return h.content=b.simpleText,h;if(b.runs===void 0)return h.content="",h;b=_.L(b.runs);for(var P=b.next();!P.done;P=b.next()){P=P.value;var K=P.text,n=void 0,X=(n=K)==null?void 0:n.length;if(K&&X){S.push(K);if(P.bold||P.italics||P.strikethrough||P.underline||P.textColor!=null&&P.textColor!==0||P.deemphasize){K=F;n=K.push;var u={startIndex:y,length:X};P.bold&&(u.weightLabel="FONT_WEIGHT_MEDIUM");P.italics&&(u.italic=
!0);P.strikethrough&&(u.strikethrough="LINE_STYLE_SINGLE");P.underline&&(u.underline="LINE_STYLE_SINGLE");P.textColor!=null&&P.textColor!==0?document.documentElement.hasAttribute("dark")?u.fontColor=P.darkModeTextColor||P.textColor:u.fontColor=P.textColor:P.deemphasize&&(document.documentElement.hasAttribute("dark")?u.fontColor=parseInt("ff"+jnI("#aaa").substring(1),16):u.fontColor=parseInt("ff"+jnI("#606060").substring(1),16));n.call(K,u)}P.navigationEndpoint&&(K=a,n=K.push,u={startIndex:y,length:X,
onTap:{innertubeCommand:P.navigationEndpoint}},P.loggingDirectives&&_.J6(u,$Wr,P.loggingDirectives),n.call(K,u));y+=X}}h.content=S.join("");h.styleRuns=F.length?F:void 0;h.commandRuns=a.length?a:void 0;return h};
Ps8=function(b){if(b==null||!b.runs)return!0;b=_.L(b.runs);for(var h=b.next();!h.done;h=b.next())if(h=h.value,h.bracket||h.errorUnderline||h.deemphasize||_.c(h,Ct)||_.c(h,LK5))return!1;return!0};
KK4=function(b,h){return function(y){var S=h.unit;if(S!==y)throw Error("fh`"+b+"`"+S+"`"+y);return h}};
gU=function(b){if(!((b==null?0:b.value)&&(b==null?0:b.unit)))return"";switch(b.unit){case "DIMENSION_UNIT_FRACTION":var h="%";break;default:h="px"}b=b.value;h==="%"&&(b*=100);return""+b+h};
Zg8=function(b){try{return b()}catch(h){_.vX(h)}};
_.YS=function(b){var h=_.c(b,_.sQ);if(h)return h;if((h=_.c(b,o1N))&&h.commands)return MvM(h.commands);if((h=_.c(b,n1F))&&h.commands)return MvM(h.commands);if((b=_.c(b,X7M))&&b.identifier&&b.command&&(HgF||(HgF=[]),!HgF.includes(b.identifier)))return HgF.push(b.identifier),_.c(b.command,_.sQ)};
MvM=function(b){if(b.length!==0){var h=[];b=_.L(b);for(var y=b.next();!y.done;y=b.next())(y=_.YS(y.value))&&h.push(y);return{commandExecutorCommand:{commands:h}}}};
_.GK=function(b){var h=b.defaultTarget,y=b.elementConfig,S=b.elementsCommand,F=b.skipOnClick,a=b.forceNewState,P=b.additionalCommandArgs,K=b.innertubeCommand||_.YS(S);if(K){b={};var n=uJI(K);S=n.navigatingCommand;n=n.href;S&&n?(b.href$=n,OgU(b,S,n,h),_.r("web_atagconfig_pointerdown")&&N6j(b,S),a&&(b["force-new-state$"]=!0)):(b.role$="button",b.href$="javascript:void(0);");_.c(K,tvY)&&(b["aria-haspopup$"]=!0);F||(b.onclick=function(X){var u={};if(rsj(X)){var O=(P==null?void 0:P.clickedVisualElement)||
(P==null?void 0:P.getClickedVisualElement)&&P.getClickedVisualElement();O&&(u={clickedVisualElement:O});u=Object.assign({},{form:{element:X.target,event:X,createScreenConfig:u}},P);X.preventDefault();_.TK(K,u)}});
return Object.assign({},y,b)}};
csI=function(b){if(b.length){if(b.length===1)return b[0];var h={};_.J6(h,_.LI,{commands:b});return h}};
kS=function(b){return b&&b.href$!=="javascript:void(0);"};
uJI=function(b){var h,y=((h=_.c(b,_.LI))==null?void 0:h.commands)||[b];b=_.L(y);for(h=b.next();!h.done;h=b.next()){h=h.value;var S=void 0,F=void 0;y=(F=_.c((S=h)==null?void 0:S.commandMetadata,_.ZW))==null?void 0:F.url;_.r("web_remove_web_navigation_endpoint_data")||(S=void 0,y=y||((S=_.c(h,RJq))==null?void 0:S.url));if(y&&y!=="/service_ajax"){if(S=_.fc(y,zJk))return b=_.E_(S),{navigatingCommand:h,href:b};_.vX(new _.Gn("AttributedString URL could not be sanitized",y))}}return{}};
rsj=function(b){return b.button!==void 0?b.button===0&&!(b.shiftKey||b.altKey||b.metaKey||b.ctrlKey):!(b.shiftKey||b.altKey||b.metaKey||b.ctrlKey)};
OgU=function(b,h,y,S){y=!Ml(y);var F,a,P;if((F=_.c(h,_.O0))!=null&&F.nofollow||(a=_.c(h,_.wO))!=null&&a.nofollow||(P=_.c(h,_.jH))!=null&&P.nofollow||y)b.rel$="nofollow";var K;h=((K=_.c(h,_.jH))==null?void 0:K.target)==="TARGET_NEW_WINDOW"?"_blank":S===void 0?"":S;b.target$=h};
N6j=function(b,h){h.clickTrackingParams&&(b.params={itct:h.clickTrackingParams});b.onpointerdown=function(y){DWk(y)};
b._data=h};
Ipq=function(b){(b.loggingUrls||[]).forEach(function(h){LK(h.baseUrl,h.attributionSrcMode)})};
DWk=function(b){var h=b.currentTarget;b=Zg8(function(){return h.href});
var y=h.params;b&&_.QB(b,y||{},8,!0)};
_.Va=function(b,h){(b=_.YS(b))&&_.TK(b,h)};
_.TK=function(b,h){ZIF(function(y){h?y.resolveCommand(b,h):y.resolveCommand(b)})};
UWn=function(b,h){var y=["yt-core-attributed-string__link"];h!=null&&h.noLinkColor||((h==null?0:h.isOverlay)?y.push("yt-core-attributed-string__link--overlay-call-to-action-color"):y.push("yt-core-attributed-string__link--call-to-action-color"),(h==null?0:h.linkInheritColor)&&y.push("yt-core-attributed-string--link-inherit-color"));y={className:y.join(" "),tabindex$:"0"};var S=b.onTap||b.onLongPress;if(!S)return y;var F=B6n(b);F&&(y["aria-label$"]=F);h=_.GK({elementsCommand:S,elementConfig:y,skipOnClick:!(h==
null||!h.skipOnClick),forceNewState:!0});b.onLongPress&&(S=new WKj(function(){var a=_.YS(b.onLongPress);a&&_.H9().resolve(_.OM).resolveCommand(a)}),h&&As5(S,h));
return h||y};
B6n=function(b){var h,y;return(h=b.onTapOptions)==null?void 0:(y=h.accessibilityInfo)==null?void 0:y.accessibilityLabel};
p7U=function(b){var h=b;b<=16777215&&(h+=parseInt("ff000000",16));return _.CR(h)};
JsN=function(b){var h=b.isDarkTheme;var y=b.extension;b=b.runColor;var S=void 0;if(y=y==null?void 0:y.colorMap){h=h?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";y=_.L(y);for(var F=y.next();!F.done;F=y.next())if(F=F.value,h===F.key){S=F.value;break}}S==null&&b&&(S=b);if(S)return p7U(S)};
EQ=function(b){var h=b.config;var y=b.image;var S=b.imageConfig;var F=b.imageWrapperConfig;var a=b.run;var P=b.tag;var K=b.textLength;var n=b.startIndex===void 0?0:b.startIndex;b=b.length;n===void 0&&(n=0);a={run:a,startIndex:n,endIndex:b!==void 0?n+b:K,tag:P};y&&(a.image=y);S&&(a.imageConfig=S);F&&(a.imageWrapperConfig=F);h&&(a.config=h);return a};
eJn=function(b,h){if(b.weight)return b.weight;switch(b.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 h?900:700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
Csq=function(b){switch(b){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"}};
g1r=function(b){switch(b){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"}};
wU=function(b,h,y){var S=h;b.content&&y&&(y=b.content.indexOf("\n"),y!==-1&&(S=Math.min(h,y)));if(!b.content||b.content.length<=S)h=b;else if(b.attachmentRuns||b.commandRuns||b.decorationRuns||b.styleRuns||b.paragraphStyleRuns){h=ii(b.content,S);y=S;var F=b.attachmentRuns;if(F){var a=[];F=_.L(F);for(var P=F.next();!P.done;P=F.next())P=Object.assign({},P.value),P.startIndex===void 0||P.startIndex>=y||(P.length||(P.length=0),P.length+P.startIndex>y&&(P.length=y-P.startIndex),a.push(P));y=a}else y=void 0;
a=snq(S,b.commandRuns);F=S;var K=b.decorationRuns;if(K){P=[];K=_.L(K);for(var n=K.next();!n.done;n=K.next()){n=n.value;var X=_.c(n.textDecorator,ft);if(X&&X.startIndex!==void 0&&!(X.startIndex>=F)){n=Object.assign({},n,{textDecorator:{highlightTextDecorator:Object.assign({},X)}});X=_.c(n.textDecorator,ft);if(!X.length||X.length+X.startIndex>F)X.length=F-X.startIndex;P.push(n)}}F=P}else F=void 0;P=snq(S,b.styleRuns);if(K=b.paragraphStyleRuns)for(b=[],K=_.L(K),n=K.next();!n.done;n=K.next()){var u=n.value;
n=Object.assign({},u);if(!(n.startIndex===void 0||n.startIndex>=S)){if(!n.length||n.length+n.startIndex>S)n.length=S-n.startIndex;X=[];var O=void 0,N=void 0;if((O=u)==null?0:(N=O.listGroup)==null?0:N.listItems)for(u=_.L(u.listGroup.listItems),O=u.next();!O.done;O=u.next())if(O=Object.assign({},O.value),!(O.startIndex===void 0||O.startIndex>=S)){if(!O.length||O.length+O.startIndex>S)O.length=S-O.startIndex;X.push(O)}X.length>0&&(n.listGroup||(n.listGroup={}),n.listGroup=Object.assign({},n.listGroup,
{listItems:X}));b.push(n)}}else b=void 0;h={content:h,attachmentRuns:y,commandRuns:a,decorationRuns:F,styleRuns:P,paragraphStyleRuns:b}}else h=Object.assign({},b,{content:ii(b.content,S)});return h};
snq=function(b,h){if(h){var y=[];h=_.L(h);for(var S=h.next();!S.done;S=h.next())if(S=Object.assign({},S.value),!(S.startIndex===void 0||S.startIndex>=b)){if(!S.length||S.length+S.startIndex>b)S.length=b-S.startIndex;y.push(S)}return y}};
ii=function(b,h){var y=h,S;if(S=y>0)S=b.charCodeAt(y-1),S=S>=55296&&S<=56319;S&&(y=b.charCodeAt(y),S=y>=56320&&y<=57343);S&&--h;return b.substring(0,h)};
_.li=function(b){return(b==null?void 0:b.content)!==void 0};
G1M=function(b){return function(h){var y=b.run;(y.onTap!==void 0||y.onLongPress!==void 0)&&_.c(y,$Wr)&&ui(h,{data:{loggingDirectives:_.c(y,$Wr)},observer:_.H9().resolve(tR),hideOption:Y2M,showOption:T6r,layer:h.layer})}};
k1Y=function(b){return function(h){for(var y in b)(XC[y]||XC[F5["default"]])(h,y,b[y])}};
Vv4=function(b,h,y,S){for(var F=_.L(b.parts),a=F.next();!a.done;a=F.next()){a=a.value;if(typeof a==="string")throw Error("hh");if(a.start<=h&&y<=a.end){Vv4(a,h,y,S);return}}b.parts.push({data:S,parts:[],start:h,end:y})};
E1N=function(b,h){for(var y=h.parts.length;y>=0;y--){var S=h.parts[y],F=h.parts[y-1],a=y===h.parts.length?h.end:S.start;F=y===0?h.start:F.end;a!==F&&h.parts.splice(y,0,b.slice(F,a));S&&E1N(b,S)}};
ig4=function(b){b.sort(function(h,y){if(h.startIndex<y.startIndex)return-1;if(y.startIndex<h.startIndex)return 1;h=h.endIndex-h.startIndex;y=y.endIndex-y.startIndex;return h>y?-1:y>h?1:0})};
_.fpY=function(b){var h=b.thumbnails;if(h){b={sources:[]};h=_.L(h);for(var y=h.next();!y.done;y=h.next()){y=y.value;var S={};S.url=y.url;S.width=y.width;S.height=y.height;b.sources.push(S)}return b}};
w7I=function(b,h,y,S){if(!h)return b.length>=1?b[b.length-1]:null;if(S)for(var F=_.L(b),a=F.next();!a.done;a=F.next()){a=a.value;var P=void 0,K=(P=a.url)==null?void 0:P.indexOf(S);if(K!==void 0&&K>=0)return a}S=_.L(b);for(F=S.next();!F.done;F=S.next())if(F=F.value,F.width&&F.height&&(y&&F.width>=h||!y&&F.height>=h))return F;for(h=b.length-1;h>=0;h--)if(y&&b[h].width||!y&&b[h].height)return b[h];return b[0]};
_.lpU=function(b){var h;return(b=(h=b.sources)==null?void 0:h[0])?b.width/b.height:0};
_.q2q=function(b){if(b.sources){b=_.L(b.sources);for(var h=b.next();!h.done;h=b.next()){h=h.value;var y=void 0;if((y=h.clientResource)==null?0:y.imageName)return h}}};
Qnn=function(b){var h={};b=_.c(b.processor,xWy);var y=(b=b==null?void 0:(y=b.imageTint)==null?void 0:y.color)?_.CR(b):void 0;y&&(h.color=y);return h};
mWN=function(b){var h;if((h=b.clientResource)!=null&&h.imageColor)return _.CR(b.clientResource.imageColor)};
_.bs4=function(b,h,y,S,F,a,P){if(!h||h.length===0||h[0].clientResource)return null;if(y&&h[0].url)return h[0].url;S===void 0&&(S=!0);if(S){var K;b=v1M*(F||(b==null?void 0:(K=b.getBoundingClientRect())==null?void 0:K.width)||0)}else{var n;b=v1M*(a||(b==null?void 0:(n=b.getBoundingClientRect())==null?void 0:n.height)||0)}h=w7I(h,b,S,P);return(h==null?0:h.url)?h.url:(h==null?0:h.imageData)?h.imageData:null};
h1f=function(b,h,y){y=y?[y]:[];b.opacity&&y.push("opacity: "+b.opacity+";");h&&b.placeholderColor?(b=_.CR(b.placeholderColor),y.push("background-color: "+b+";")):y.push("background-color: transparent;");return y.join(" ")};
ylY=function(b,h,y,S,F){var a=["ytCoreImageHost"];h&&a.push(h);y||a.push("ytCoreImageFillParentHeight");S||a.push("ytCoreImageFillParentWidth");switch(b.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":a.push("ytCoreImageContentModeScaleAspectFit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":a.push("ytCoreImageContentModeScaleAspectFill");break;case "CONTENT_MODE_CENTER":a.push("ytCoreImageContentModeCenter");break;default:a.push("ytCoreImageContentModeScaleToFill")}b.flipForRtlLayout&&a.push("ytCoreImageFlipRtl");
switch(F){case "TOP_START":var P;a.push(((P=document.body)==null?void 0:P.getAttribute("dir"))==="rtl"?"ytCoreImageObjectPositionTopRight":"ytCoreImageObjectPositionTopLeft")}return a.join(" ")};
F1j=function(b){var h;if(b==null?0:(h=b.clientResource)==null?0:h.imageName){var y;b=(y=b.clientResource)==null?void 0:y.imageName;a:{switch(b){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":y="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":y="yt-logos-ext:yt-logo-updated";break a}y=void 0}return y||SKq.get(b)||b}};
jWM=function(b){return _.r("mweb_wiz_skip_render")?asF(b):dc4(b)};
asF=function(b){return function(h){var y=Ldf("wink-root");P4=jY.lastChild;PzM();JB4(y,_.M(b,h))}};
dc4=function(b){var h=h===void 0?!1:h;return function(y){if(!h||!_.r("mweb_skip_keto_to_c3_if_no_data")||y.data!==void 0){var S=NU(!1);try{var F=y.children;_.r("mweb_render_outside_patch_killswitch")||jY?F?nP(_.M(b,y,F)):nP(_.M(b,y)):_.vX(new _.Gn("ketoToC3 called outside of a patch",{tagName:b.TAG_NAME}))}finally{NU(S)}}}};
$cf=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
P7j=function(b,h){b.onViewportEntered=h;L1k.observe(b)};
K15=function(){var b={rootMargin:"10%",threshold:.01};_.r("mweb_enable_set_io_root_to_null_safari")?b.root=null:_.r("mweb_enable_set_io_root_to_body_safari")&&(b.root=document.body);return new IntersectionObserver(function(h,y){h.filter(function(S){return S.intersectionRect.height>0}).forEach(function(S){S=S.target;
if(!_.r("mweb_enable_only_update_image_when_connected")||S.isConnected!==!1){var F;(F=S.onViewportEntered)==null||F.call(S);y.unobserve(S)}})},b)};
ZsI=function(b,h,y,S,F){function a(){if(S){var K=S.loadedClass,n=S.notifyOnUnloaded;K&&_.qJ(b,K);n&&b.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function P(){var K=y(h,b);K&&b.getAttribute("src")!==K&&(_.r("mweb_enable_only_update_image_when_connected")&&b.isConnected===!1||K===b.src||(b.src=K),a())}
F=F===void 0?!0:F;b.removeAttribute("src");a();h&&(F?P7j(b,P):P())};
o3k=function(b,h,y){if(!h)return!1;h=y(h,b);y=b.getAttribute("src");return h&&h===y&&b.complete};
Mtr=function(b,h){for(var y in h)y==="className"?b.className=h[y]:(XC[y]||XC[F5.default])(b,y,h[y])};
XZf=function(b,h,y){y=y===void 0?!1:y;var S=b.sources!==void 0?b:_.fpY(b);if(S){var F=h.onload;h.onload=function(X){var u=X.target;y&&u.naturalWidth===120||_.xS(u,"ytCoreImageLoaded");h.notifyOnLoaded&&u.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));F==null||F(X)};
h.targetWidth&&h.preserveWidth&&(h.width=h.targetWidth);h.targetHeight&&h.preserveHeight&&(h.height=h.targetHeight);var a=_.q2q(S),P=a&&F1j(a),K=Qnn(S);if(P)return(b=mWN(a)||K.color)&&(h.color=b),{type:"icon",iconName:P,config:Object.assign({},h,h.alt?{}:{"aria-hidden$":"true"},{"aria-label$":h.alt,role:"img"})};if(b.sources===void 0){h.alt=b.accessibility&&b.accessibility.accessibilityData&&b.accessibility.accessibilityData.label||h.alt;h.style$=h1f(b,h.shouldShowPlaceholder,h.style$);var n;h.isPreloaded=
!((n=_.c(b,n3U))==null||!n.isPreloaded)}h.contentMode&&!S.contentMode&&(S.contentMode=h.contentMode);h.className=ylY(S,h.className,h.preserveHeight,h.preserveWidth,h.objectPosition);h.loadedClass="ytCoreImageLoaded";return{type:"image",image:S,config:h}}};
_.Qa=function(){var b=_.x$.apply(0,arguments);return _.MS(Hsn,function(h){var y=b.map(function(S){return S==null?void 0:S(h)});
return function(){return void y.forEach(function(S){return void(S==null?void 0:S())})}})};
utU=function(b,h){var y=h==null?void 0:h.initial;return _.s5(function(){_.bn(!0);return y=b(y)},{equals:h==null?void 0:h.isEqual},"rSlKsc")};
OsY=function(b,h){if(b===h)return!0;if(b===void 0||h===void 0)return!1;var y,S,F,a,P,K,n,X;return b.content===h.content&&((y=b.styleRuns)==null?void 0:y.length)===((S=h.styleRuns)==null?void 0:S.length)&&((F=b.commandRuns)==null?void 0:F.length)===((a=h.commandRuns)==null?void 0:a.length)&&((P=b.attachmentRuns)==null?void 0:P.length)===((K=h.attachmentRuns)==null?void 0:K.length)&&((n=b.decorationRuns)==null?void 0:n.length)===((X=h.decorationRuns)==null?void 0:X.length)};
ttj=function(b){return b.parts.map(Nln)};
Nln=function(b){if(typeof b==="string")return b;var h=b.data;b=h.image!==void 0&&h.imageConfig!==void 0?_.M("span",{el:_.Qa(k1Y(b.data.imageWrapperConfig))},_.M(_.mI,Object.assign({},{data:b.data.image},b.data.imageConfig))):_.M(b.data.tag,{el:_.Qa(G1M(b.data),k1Y(b.data.config))},b.parts.map(Nln));return UW(b)};
rlU=function(b,h){return b===h?!0:b===void 0||h===void 0?!1:b.noStyleRuns===h.noStyleRuns&&b.noLinkColor===h.noLinkColor&&b.noEndpoints===h.noEndpoints&&b.headerRuns===h.headerRuns&&b.isOverlay===h.isOverlay&&b.linkInheritColor===h.linkInheritColor&&b.userInput===h.userInput&&b.isHeadline===h.isHeadline};
clN=function(b){return function(){var h,y,S,F,a,P,K,n,X,u,O,N,t,R;return{ariaLabel:(h=b.ariaLabel)==null?void 0:h.call(b),className:(y=b.className)==null?void 0:y.call(b),ellipsisTruncate:(S=b.ellipsisTruncate)==null?void 0:S.call(b),isOverlay:(F=b.isOverlay)==null?void 0:F.call(b),linkInheritColor:(a=b.linkInheritColor)==null?void 0:a.call(b),noEndpoints:(P=b.noEndpoints)==null?void 0:P.call(b),noStyleRuns:(K=b.noStyleRuns)==null?void 0:K.call(b),noLinkColor:(n=b.noLinkColor)==null?void 0:n.call(b),
noPreWrap:(X=b.noPreWrap)==null?void 0:X.call(b),noWrap:(u=b.noWrap)==null?void 0:u.call(b),skipOnClick:(O=b.skipOnClick)==null?void 0:O.call(b),userInput:(N=b.userInput)==null?void 0:N.call(b),headerRuns:(t=b.headerRuns)==null?void 0:t.call(b),isHeadline:(R=b.isHeadline)==null?void 0:R.call(b)}}};
z14=function(b,h){b=new R1F(b,h);_.QT(b);throw b;};
Dcr=function(b,h,y){var S=hFN(b);b._numRenders=0;try{var F=_.hlY(function(){return _.M(h,Object.assign({},y))})}catch(P){var a=function(K){K.args||(K.args=[]);
K.args.push("Error in web component wrapper");K.args.push(b.tagName.toLowerCase());return K};
_.mm(P instanceof Error?a(P):new R1F("Wiz rendering error",b.tagName.toLowerCase()));throw P;}finally{hFN(S)}return F};
_.yd=function(b,h,y){function S(u){var O={};u=_.L(u);for(var N=u.next();!N.done;N=u.next()){N=N.value;var t=void 0,R=void 0,I=void 0,U=_.nx((I=(R=(t=N).getAttribute)==null?void 0:R.call(t,"slot"))!=null?I:"children");if(t=O[U])t.push(N);else if(U in a||U==="children")O[U]=[N]}u=_.L(Object.keys(O));U=u.next();for(N={};!U.done;N={content$jscomp$59:void 0},U=u.next())U=U.value,U!=="children"&&(N.content$jscomp$59=O[U],O[U]=function(p){return function(){return p.content$jscomp$59}}(N));
return O}
y=y===void 0?{}:y;b.debugName=h+" (CoW)";var F,a=(F=y.props)!=null?F:{};yuY.add(h);var P=IsI();F=function(){var u=P.apply(this,arguments)||this;u.rawProps={};u.queuingRender=!1;u.dispose=function(){};
u.isWebComponentWrapper=!0;u.isReparenting=!1;u.hasRendered=!1;return u};
_.z(F,P);F.prototype.render=function(){this.hasRendered=!0;for(var u=_.L([].concat(_.f$(this.attributes))),O=u.next();!O.done;O=u.next())O=O.value,O.name!=="slot"&&O.name!=="hidden"&&this.removeAttribute(O.name);u=Object.assign({},this.componentProps,this.slotProps);O=_.L(Dcr(this,b,u));u=O.next().value;O=O.next().value;!(u[0]instanceof Element)||u.length>1?z14("Wrapped Wiz components must return a single root element.",h):(u=u[0].tagName.toLowerCase(),u!==h&&z14("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(u+" !== '"+h),h),this.dispose=O)};
F.prototype.setUpProps=function(){for(var u=this.rawProps,O=this.attributes,N=_.L(Object.keys(a)),t=N.next();!t.done;t=N.next()){t=t.value;var R=void 0;((R=this)==null?0:R[t])&&this[t]!==Blr&&u[t]===void 0&&(u[t]=this[t],(R=Object.getOwnPropertyDescriptor(this.constructor.prototype,t))&&Object.defineProperty(this,t,R))}N=_.L(O);for(t=N.next();!t.done;t=N.next()){R=t.value;t=_.nx(R.name);var I=t==="class"&&!O.getNamedItem("class-name");if(t in a||I)R=R.value===""||R.value==="true"?!0:R.value==="false"?
!1:isNaN(Number(R.value))?R.value:Number(R.value),t!=="class"||u.className?u[t]=R:u.className=R}O={};for(var U in a)a[U]!==_.v3&&a[U]!==W1Y&&(u[U]instanceof Function&&z14("Function props must be configured as STATIC, not SIGNAL.",h),t=_.L(_.pa(u[U],void 0,"tbseob")),N=t.next().value,t=t.next().value,O[U]=t,u[U]=N);u=_.L([u,O]);this.componentProps=u.next().value;this.setters=u.next().value;this.slotProps=S(this.childNodes)};
F.prototype.connectedCallback=function(){aD5.has(this)||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in a&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
F.prototype.disconnectedCallback=function(){if(!aD5.has(this)){var u;a:{if(_.bp)for(u=this;u;){if(_.h4.has(u)){u=!0;break a}u=u.parentElement}u=!1}if(u)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){u=_.L([].concat(_.f$(this.attributes)));for(var O=u.next();!O.done;O=u.next()){O=O.value;var N=void 0;O.name==="slot"||O.name==="hidden"&&((N=y.unsafeExternallySettableAttributes)==null?0:N.has("hidden"))||this.removeAttribute(O.name)}}this.innerText="";qc5(this)}}};
F.prototype._setPendingPropertyOrPath=function(){};
F.prototype.notifyPath=function(){};
_.tm.Object.defineProperties(F.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var K=_.L(Object.keys(a)),n=K.next(),X={};!n.done;X={prop$jscomp$109:void 0},n=K.next())X.prop$jscomp$109=n.value,n=void 0,((n=y.legacyPolymer)==null?0:n.forwardHostProps)&&iU4.has(X.prop$jscomp$109)||Object.defineProperty(F.prototype,X.prop$jscomp$109,{set:function(u){return function(O){var N=this;aD5.has(this)||(this.setters?YH(function(){var t,R;return void((R=(t=N.setters)[u.prop$jscomp$109])==null?void 0:R.call(t,O))}):(this.rawProps[u.prop$jscomp$109]=O,this.queuingRender&&u.prop$jscomp$109===
"data"&&O!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(X),
get:AlF.has(X.prop$jscomp$109)?void 0:function(){return Blr}});
customElements.define(h,F)};
_.UcY=function(b,h){return(b=_.Ss(b,h))?_.E_(_.lJ(b)):null};
_.Fv=function(b){if(b=_.Ss(b,Number.MAX_VALUE,void 0,"width"))return _.lJ(b)};
_.Ss=function(b,h,y,S){S=S===void 0?"width":S;if(!b||!b.length)return null;if(_.r("kevlar_tuner_should_always_use_device_pixel_ratio")){var F=window.devicePixelRatio;_.r("kevlar_tuner_should_clamp_device_pixel_ratio")?F=Math.min(F,_.tj("kevlar_tuner_clamp_device_pixel_ratio")):_.r("kevlar_tuner_should_use_thumbnail_factor")&&(F=_.tj("kevlar_tuner_thumbnail_factor"));pZj=F}else pZj||(pZj=window.devicePixelRatio);F=pZj;_.r("kevlar_tuner_should_always_use_device_pixel_ratio")?h*=F:F>1&&(h*=F);if(_.r("kevlar_tuner_min_thumbnail_quality"))return b[0].url||
null;F=b.length;if(_.r("kevlar_tuner_max_thumbnail_quality"))return b[F-1].url||null;if(y)for(var a=0;a<F;a++)if(b[a].url.indexOf(y)>=0)return b[a].url||null;for(y=0;y<F;y++)if(b[y][S]>=h)return b[y].url||null;for(h=F-1;h>0;h--)if(b[h][S])return b[h].url||null;return b[0].url||null};
C78=function(){aF.size?setTimeout(function(){dS(Jlq)},0):e1q=0};
Jlq=function(){var b=(0,_.NO)(),h=null,y=!1;aF.forEach(function(F){F.loaded=!0;F.loadTime=b;F.pendingPaint=!1;var a=g35.get(F);a&&a.resolve(b);h=F;y||!F.ftlEligible&&F.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(y=!0)});
var S;((S=h)==null?0:S.markDirty)&&h.markDirty();aF.clear();e1q=0;y&&sWk(b)};
YKN=function(b){aF.add(b);b.pendingPaint=!0;e1q||(e1q=_.js(_.xP,C78))};
TlY=function(b){b.loaded=!1;b.loadTime=Infinity;var h=g35.get(b);h&&(h.reject(Error("nh")),g35.delete(b));b.pendingPaint&&(aF.delete(b),b.pendingPaint=!1)};
_.GWk=function(b){var h=b.indexOf(":");return h===-1?{originalName:b}:{originalName:b.substring(0,h),datasyncId:b.substring(h+1)}};
_.Vty=function(){return _.Z(function(b){if(kWr!==void 0)return b.return(kWr);kWr=new Promise(function(h){var y;return _.Z(function(S){switch(S.nextAddress){case 1:return _.WE(S,2),S.yield(_.$E.open("test-only"),4);case 4:return S.yield(_.$E.delete("test-only"),5);case 5:_.Lz(S,3);break;case 2:if(y=_.C$(S),y instanceof Error&&y.name==="SecurityError")return h(!1),S.return();case 3:h("caches"in window),_.g3(S)}})});
return b.return(kWr)})};
fsj=function(){return _.Z(function(b){if(b.nextAddress==1)return b.yield(_.Vty(),2);if(!b.yieldResult)return b.return(void 0);E34||(E34=new isF);return b.return(E34)})};
wZq=function(b){var h,y,S,F;return _.Z(function(a){switch(a.nextAddress){case 1:return a.yield(fsj(),2);case 2:h=a.yieldResult;if(!h)throw Error("ph");return a.yield(h.open("yt-player-local-img"),3);case 3:return y=a.yieldResult,a.yield(y.match(b),4);case 4:S=a.yieldResult;if(!S)throw Error("qh");return a.yield(S.blob(),5);case 5:return F=a.yieldResult,a.return(F)}})};
ls4=function(b,h){for(var y in b)if(b.hasOwnProperty(y)&&h[y])return y;return null};
qKj=function(b){return"stamp"+b.replace("-","_")+"_"};
xck=function(b){var h=b.match(/\[\[([\w\.]+)\]\]/);if(h&&h.length>1)return h[1];_.QT(Error("sh`"+b));return null};
QW8=function(b){return b===void 0?_.m$("REUSE_COMPONENTS",!1):b||!1};
bLM=function(b,h,y){y&&(h.is?(mcI.has(h)&&(b=mcI.get(h),y=b.listener,delete h[b.property],y.type==="element"&&h.removeEventListener(y.eventName,y.handler),mcI.delete(h)),v3Y(h)):h.__proto__==HTMLElement.prototype&&(h=new _.Gn("Rendererstamper removed a non custom element","Stamper: "+b+" element: "+(h&&h.nodeName)),_.vX(h)))};
hn5=function(b,h,y,S){var F=h.node?h.node:h;_.$x(y).parentNode===F&&(h.removeChild(y),bLM(b,y,S));if(b=L9.get(y))L9.delete(y),_.xP.cancelJob(b);y.hidden=!1};
y54=function(b,h,y,S){if(h&&h.children&&(y=h.children[y]))if(_.m$("DEFERRED_DETACH"))for(;y&&!L9.has(y);){var F=b,a=h,P=y,K=S;P.hidden=!0;F=_.VT(_.xP,hn5.bind(null,F,a,P,K),0);L9.set(P,F);y=y.nextElementSibling}else for(;(P=h.lastElementChild)&&(h.removeChild(P),bLM(b,P,S),P!=y););};
_.P2=function(){for(var b=_.x$.apply(0,arguments),h=!0,y=_.L(b),S=y.next();!S.done;S=y.next())if(typeof S.value!=="string"){h=!1;break}return h?b.join(" ").trim()||void 0:function(){for(var F="",a=_.L(b),P=a.next();!P.done;P=a.next())if(P=P.value,typeof P==="function"&&(P=P()),P)if(typeof P==="string")F+=" "+P;else for(var K in P)if(P.hasOwnProperty(K)){var n=P[K];typeof n==="function"&&(n=n());n&&(F+=" "+K)}F=F.trim()||void 0;return _.bn(F)}};
_.SJF=function(b,h){return _.Mm(b.entities,"markersEngagementPanelSyncEntity",h)};
_.K9=function(b,h){return _.Mm(b.entities,"playerStateEntity",h)};
F4k=function(b,h){return _.Mm(b.entities,"fantasyWinProbabilityEntity",h)};
aM5=function(b,h){return _.Mm(b.entities,"fantasyTeamEntity",h)};
dFN=function(b,h){return _.Mm(b.entities,"fantasyPlayerEntity",h)};
jZN=function(b,h){return _.Mm(b.entities,"booleanEntity",h)};
$FU=function(b,h){return _.Mm(b.entities,"qrCodeEntity",h)};
L4F=function(b){return _.Mm(b.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
K4Y=function(b){var h;return(h=P$q[b])!=null?h:"EVENT_SPAN_TYPE_UNKNOWN"};
ZLI=function(b){var h=b.nodeName;if(b.id)return h+="#"+b.id;if(b.classList)for(var y=_.L(b.classList),S=y.next();!S.done;S=y.next())h+="."+S.value;b.parentElement&&(h=ZLI(b.parentElement)+" > "+h);return h};
oA4=function(b){return function(h){var y=K4Y(h.type);return y==="EVENT_SPAN_TYPE_UNKNOWN"?b(h):bS("event",{type:y,nodepath:h.target instanceof Element?ZLI(h.target):void 0},function(){return b(h)})}};
_.Zv=function(b){b&&vT("event")&&(b=oA4(b));return BCr(function(h){var y,S=(y=b)==null?void 0:y(h);return typeof S==="boolean"?S:!0})};
oF=function(b){return function(){return b()?b():void 0}};
HLj=function(b){var h=_.ZR("animated-rolling-character"),y=fnN(),S=qQ(b.character)||qQ(b.previousCharacter),F=_.L(wCY()),a=F.next().value,P=F.next().value;_.wg(function(){if(window.ResizeObserver&&_.r("web_fix_rolling_numbers_zoom_safari")){var K=new _.MG(function(){var X,u,O=Math.round(((u=(X=h.value.querySelector("div"))==null?void 0:X.getBoundingClientRect().height)!=null?u:0)*100)/100;O&&P(O)},500),n=new ResizeObserver(function(){K.fire()});
n.observe(h.value);return function(){n.disconnect();K.dispose()}}});
gjr(function(){var K=_.r("web_fix_rolling_numbers_zoom_safari")?a:b.marginMultiplier;if(K){var n;(n=y.value)==null||n.cancel();S?(n=b.previousCharacter?Number(b.previousCharacter)+10:b.rollUp?0:30,b.shouldAnimate||(n-=Mcq(b,n))):(n=b.rollUp?0:2,b.shouldAnimate||(n-=b.rollUp?-1:1));h.value.style.marginTop="-"+n*K+"px";b.shouldAnimate?y.value=nAf(h.value,b,n,S,K):h.value.style.display=b.character?"":"none"}});
return _.M("animated-rolling-character",{el:h,class:"animatedRollingCharacterHost"},c98(S,function(){for(var K=[],n=1;n<30;n++)K.push(_.M("div",null,n%10));return _.M(_.OW,null,_.M("div",null,"\u00a0"),K,_.M("div",null,"\u00a0"))},function(){return Xzn(b.character)}))};
Xzn=function(b){return _.M(_.OW,null,_.M("div",null,"\u00a0"),_.M(_.OW,null,c98(!b||_.$U(b),function(){return _.M("div",null,"\u00a0")},function(){return _.M("div",null,b)})),_.M("div",null,"\u00a0"))};
nAf=function(b,h,y,S,F){y=new Animation(new KeyframeEffect(b,[{transform:"translateY(0px)"},{transform:"translateY("+(S?Mcq(h,y):h.rollUp?-1:1)*F+"px)"}],uUy),document.timeline);h.character?(b.style.display="",y.onfinish=null):y.onfinish=function(){b.style.display="none"};
y.play();return y};
Mcq=function(b,h){var y=Number(b.character)+10;if(b.previousCharacter)if(b.character){var S=Number(b.character),F=Number(b.previousCharacter);b=b.rollUp?F<S?y:y+10:F<S?y-10:y}else b=b.rollUp?30:0;else b=b.character==="0"?y:b.rollUp?y-10:y+10;return h-b};
OL4=function(b){return function(h){var y={},S;for(S in h){var F=void 0,a=void 0;((F=void 0)==null?0:(a=F.callbacks)==null?0:a[S])||(y[S]=h[S])}return _.M(bwq,null,function(){for(var P in y)h[P]=_.bn(y[P]);h.disableReactiveLogging=!0;return _.M(b,Object.assign({},h))})}};
r5f=function(b,h,y,S,F,a,P){y=new Animation(new KeyframeEffect(b,[{transform:"translateY(0px)"},{transform:"translateY("+(a?NzI(h,y,S,F):S?-1:1)*P+"px)"}],tcY),document.timeline);h?(b.style.display="",y.onfinish=null):y.onfinish=function(){b.style.display="none"};
y.play();return y};
NzI=function(b,h,y,S){var F=Number(b)+10;h?b?(b=Number(b),h=Number(h),y=y?h<b?F:F+10:h<b?F-10:F):y=y?30:0:y=b==="0"?F:y?F-10:F+10;return S-y};
RnY=function(b){var h=fnN(),y=fnN();Gty(function(){h.value=b.numberText;y.value=b.numberValue},[b.numberText]);
var S=b.fontSizeMultiplier?b.heightPx*b.fontSizeMultiplier:b.heightPx,F=ixI(function(){if(b.numberText){var P=b.numberText;var K=b.forceRollUp||!y.value||!b.numberValue||y.value<b.numberValue;var n=!!b.shouldAnimate,X=h.value,u=[],O=0,N=0,t=(X?X.replace(/\D/g,"").length:0)-(P?P.replace(/\D/g,"").length:0);X=X?X.split(/(\d)/).filter(Boolean):[];for(P=P.split(/(\d)/).filter(Boolean);t<0;){var R=P[N];u.push({character:R,rollUp:K,marginMultiplier:S,shouldAnimate:n});N++;qQ(R)&&t++}for(;O<t;)R=X[O],u.push({previousCharacter:R,
rollUp:K,marginMultiplier:S,shouldAnimate:n}),O++,qQ(R)||t++;for(;N<P.length;)t=P[N],R=X[O],qQ(t)===qQ(R)?(N++,O++):qQ(t)?(O++,t=void 0):qQ(R)&&(N++,R=void 0),u.push({character:t,previousCharacter:R,rollUp:K,marginMultiplier:S,shouldAnimate:n});K=u}else K=[];return K},[b.numberText]),a=b.numberText?["height: "+S+"px;",
"line-height: "+b.heightPx+"px;"].join(" "):"";return _.M("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:a,dir:"ltr","aria-hidden":"true"},F.map(function(P){return _.M(c5F,Object.assign({},P))}))};
zn4=function(b){switch(b){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}};
_.DFf=function(b,h){if(!b&&!h)return"medium";b=Math.max(b||0,h||0);return b>=256?"large":b>=96?"medium":"small"};
IMU=function(b){switch(b){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
BzY=function(b){return new KeyframeEffect(b,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
W45=function(b){return new KeyframeEffect(b,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.n9=function(b){return function(){var h="",y;for(y in b){for(var S=b[y];typeof S==="function";)S=S();S!==void 0&&S!==null&&(h+="; "+y+": "+S)}return h.length>0?_.bn(h.slice(2)):_.bn()}};
A5f=function(b){switch(b){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"}};
UFn=function(b,h){if(h)return"yt-spec-touch-feedback-shape--thumbnail-size-small";if(b)switch(b){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"}};
gAy=function(b,h,y,S,F,a,P){var K=pzn(b),n=K.disabled,X=K.iconPosition,u=K.style,O=K.focused,N=function(){return!!I()&&X()==="icon-only"},t=function(){return!!I()&&X()==="icon-only-40"},R=function(){return!!I()&&X()==="icon-with-label"},I=function(){return!!h||!(S==null||!S())};
return{type:function(){return u()==="call-to-action-inverse"?"text":u()==="overlay-dark"&&b().type!=="filled"&&b().type!=="tonal"?"tonal":b().type},
shouldFocus:function(){return(O()||(a==null?void 0:a()))&&!n()},
hasIconLeading:function(){return!!I()&&X()==="leading"},
hasIconTrailing:function(){return!!I()&&X()==="trailing"},
hasIconLeadingTrailing:function(){return!!I()&&!!(y||F!=null&&F())&&X()==="leading-trailing"},
hasIconOnly:N,hasIconOnly40:t,hasIconWithLabel:R,iconButton:function(){return N()||t()||R()},
visiblyDisabled:function(){return(n()?"disabled":b().state)==="disabled"||n()},
overrideSmallSizeIcon:function(){return!b().ignoreIconSizeOverride&&J5k(b(),I())},
iconToRender:h?h:function(){return _.M(_.Xv,{icon:S,gradientColor:function(){var U;return(U=b().customColors)==null?void 0:U.iconGradientColor},
size:function(){return enY(b(),!0,b().ignoreIconSizeOverride)},
active:function(){return b().toggled},
iconFilter:function(){return C$j(b())},
animateIcon:P})},
secondaryIconToRender:y?y:function(){return _.M(_.Xv,{icon:F,size:function(){return enY(b(),!0,b().ignoreIconSizeOverride)},
active:function(){return b().toggled},
iconFilter:function(){return C$j(b())}})}}};
pzn=function(b){return{size:function(){return b().size},
style:function(){return b().style},
focused:function(){return b().focused},
disabled:function(){return b().disabled},
onTap:function(h){var y,S;return(S=(y=b()).onTap)==null?void 0:S.call(y,h)},
alignByText:function(){return b().alignByText},
aTagConfig:function(){return b().aTagConfig},
customColors:function(){return b().customColors},
segmentedPosition:function(){return b().segmentedPosition},
toggled:function(){return b().toggled},
toggleable:function(){return b().toggleable},
accessibilityLabel:function(){return b().accessibilityLabel},
onToggle:function(h){var y,S;return(S=(y=b()).onToggle)==null?void 0:S.call(y,h)},
iconPosition:function(){return b().iconPosition},
oneOffCustomTextWrap:function(){return b().oneOffCustomTextWrap},
disableTextEllipsis:function(){return b().disableTextEllipsis},
disableBackdropFilter:function(){return b().disableBackdropFilter},
tooltipText:function(){return b().tooltipText},
tooltipShape:function(){return b().tooltipShape},
ariaHidden:function(){return b().ariaHidden},
tabIndex:function(){return b().tabIndex},
buttonText:function(){return b().buttonText},
formattedButtonText:function(){return b().formattedButtonText},
animatedTextProps:function(){return b().animatedTextProps},
onClickRateLimitMs:function(){return b().onClickRateLimitMs}}};
J5k=function(b,h){h=(b.iconPosition==="icon-only"||b.iconPosition==="icon-only-40"||b.iconPosition==="icon-with-label")&&h;return!b.segmentedPosition&&h&&b.size==="S"};
enY=function(b,h,y){switch(b.size){case "XS":return 16;case "S":return!y&&J5k(b,h)?24:16;default:return 24}};
sZf=function(b){switch(b){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"}};
YJk=function(b){switch(b){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"}};
TzI=function(b){switch(b){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"}};
C$j=function(b){if(b.style==="overlay-dark"&&b.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
H2=function(b){return b&&b.endsWith("px")?Number(b.slice(0,-2)):0};
Vcr=function(b,h){var y=_.L(_.ya(function(){var F,a;return(a=b())!=null?a:h==null?void 0:(F=h())==null?void 0:F.text})),S=y.next().value;
return[function(F){var a=_.s5(function(){var n;return Object.assign({},{location:"bottom",offset:16,delay:1},h==null?void 0:h(),{text:(n=S())!=null?n:""})},void 0,"IJU38d");
_.Qi(function(){var n=a();_.Ar(function(){_.xP.addJob(function(){up.notify(F,n)},4)})},"WlsgZc");
var P=function(){GCU(F,a())},K=function(){kCf()};
F.addEventListener("mouseenter",P);F.addEventListener("focus",P);F.addEventListener("mouseleave",K);F.addEventListener("blur",K);F.addEventListener("tap",K);_.m2(function(){F.removeEventListener("mouseenter",P);F.removeEventListener("mouseleave",K);F.removeEventListener("focus",P);F.removeEventListener("blur",K);F.removeEventListener("tap",K);kCf()})},
y.next().value]};
iLf=function(b,h){if(!Xk){var y;HPk(function(){return y=mnn(b,h)});
return y}b.parent=EAq();return mnn(b,h)};
EAq=function(){var b=_.u_(Xk||void 0,qFy);return _.IBy(b)?void 0:b};
Ok=function(b,h){_.TK(b,Object.assign({},h,{forceClickLogging:!0}))};
fMr=function(b){switch(b){case "TOOLTIP_VIEW_MODEL_PLACEMENT_BOTTOM":return"bottom";case "TOOLTIP_VIEW_MODEL_PLACEMENT_TOP":return"top";case "TOOLTIP_VIEW_MODEL_PLACEMENT_LEFT":return"left";case "TOOLTIP_VIEW_MODEL_PLACEMENT_RIGHT":return"right";default:return"bottom"}};
lM5=function(b,h){var y=_.YS(b==null?void 0:b.onTap),S={};y&&(S.getClickedVisualElement=function(){var F;return wzI(b,y,h==null?void 0:(F=h.value)==null?void 0:F.visualElement)});
S=_.GK({elementsCommand:b.onTap,forceNewState:!0,additionalCommandArgs:S});return kS(S)?S:void 0};
qJU=function(b,h,y,S){Ok(b,Object.assign({},{form:{element:h,event:y}},S))};
xFf=function(b,h,y,S,F){var a=void 0;return function(P){var K=_.YS(y?b==null?void 0:b.onDisabledTap:b==null?void 0:b.onTap);if(K){var n;a=(n=a)!=null?n:h==null?void 0:h.value;if(K)if(_.r("web_button_vm_click_client_ve_killswitch"))qJU(K,a,P);else{var X;n=wzI(b,K,(X=a)==null?void 0:X.visualElement);if(F){qJU(K,F,P,{clickedVisualElement:n,form:{element:F}});return}qJU(K,a,P,{clickedVisualElement:n})}}S&&S(P)}};
wzI=function(b,h,y){h=h==null?void 0:h.clickTrackingParams;var S,F;b=b==null?void 0:(S=b.loggingDirectives)==null?void 0:(F=S.clientVeSpec)==null?void 0:F.uiType;if(y&&b&&!h)return y};
QZn=function(b){switch(b){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"}};
mFI=function(b){switch(b){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"}};
vAN=function(b){switch(b){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"}};
b_q=function(b){switch(b){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"}};
_.NG=function(b){return _.s5(function(){Fu8()();return juM(b)},{debugName:"d8B62c"},"DEXkhd")};
hsj=function(b,h){return _.Mm(b.entities,"engagementToolbarStateEntityPayload",h)};
S8y=function(b){(b=_.I_(b))&&_.yOF(b)};
_.yOF=function(b){var h=_.UE();h&&_.iE(h,b)};
Fhy=function(b,h,y){_.F8(b,"yt-open-popup-action",[h,y||b])};
aH5=function(b,h){var y=_.ln(b,"endpoint"),S=_.ln(b,"action");return(y=S?S:y)&&h&&(y=h.navigationEndpointPopupMap[y])&&(b=_.hj(y,b),(y=_.ln(b,"renderer"))&&h.supportedPopups.hasOwnProperty(y))?{openPopupAction:{popupType:h.popupTypeMap[y],popup:b}}:null};
dgj=function(b,h,y,S){if(S){var F;y=y==null?void 0:(F=y.data)==null?void 0:F.contents;(F=y instanceof Array&&y.length?y[0]:y)&&(y=_.ln(F,"renderer"))&&S.supportedPopups.hasOwnProperty(y)&&(h.stopPropagation(),Fhy(b,{openPopupAction:{popupType:S.popupTypeMap[y],popup:F}}))}};
Lh4=function(b,h,y,S){S=S===void 0?!1:S;var F=j5y(h);if(F){F.href&&TM(F.href);var a=h.button;a=a!==void 0?a===0&&!t4(h):!t4(h);F.data&&a&&$gq(b,F,h,y,S)}};
$gq=function(b,h,y,S,F){F=F===void 0?!1:F;var a=_.tj("pbj_navigate_limit",-1)===0;PrY(h);_.H9().resolve(_.XS(d_));var P=h.data;if(Object.keys(P).length!==0)if(!_.r("unplugged_web_disable_actions_for_cec_endpoint")&&_.c(P,_.LI))_.r("endpoint_behavior_command_executor_fix_killswitch")||(y.preventDefault(),y.stopPropagation()),_.jx(b,[P],b);else if(S=aH5(P,S))P.loggingUrls&&P.loggingUrls.forEach(function(n){n.baseUrl&&_.$2(n.baseUrl)}),y.preventDefault(),y.stopPropagation(),Fhy(b,S,h);
else{var K=KhU(0,h.data,y);if(b=h.getForm)b=b(),K.tempData=K.tempData||{},K.tempData=Object.assign({},K.tempData,b);b=_.Qk(y);if(S=b.find(function(n){return!!n.visualElement}))K.createScreenConfig=K.createScreenConfig||{},K.createScreenConfig.clickedVisualElement=S.visualElement;
if(!a)if(y.preventDefault(),y.stopPropagation(),_.c(P,_.Z_q)&&!F&&_.nt.instance)_.nt.instance.resolveCommand(P,K);else if(_.r("kevlar_command_handler_formatted_string")&&!F&&_.nt.instance&&osY(P))F=b.find(function(n){return!!n.is})||y.target,y={form:Object.assign({},K,{event:y,
element:F,originatingNode:h})},_.nt.instance.resolveCommand(P,y);else{P=_.Qk(y);y=[];for(F=0;F<P.length;F++)(a=P[F].is)&&y.push(a);KlY({parents:y.join(","),text:h.innerText},function(){_.Sx(h,"yt-navigate",K)})}}};
M$F=function(b){if(b=j5y(b))PrY(b),ji5(b.href)};
j5y=function(b){b=_.Qk(b);for(var h,y=0;y<b.length;y++)if(h=b[y],h.tagName==="A"&&h.classList.contains("yt-simple-endpoint")){if(!h.data)break;return h}return null};
t4=function(b){return b.shiftKey||b.altKey||b.metaKey||b.ctrlKey};
nsk=function(b,h){var y={itct:h.clickTrackingParams};_.r("kevlar_client_side_screens")&&(!_.c(h,_.cd)||_.r("kevlar_exclude_endpoint_killswitch"))&&(y.endpoint=JSON.stringify(h));_.r("enable_unknown_lact_fix_on_html5")&&_.H9().resolve(_.XS(_.rS))&&(y.lact=_.td());FCy(y);_.QB(b,y)};
PrY=function(b){b.href&&Object.keys(b.data).length!==0&&nsk(b.href,b.data)};
osY=function(b){for(var h=_.L(Xkk),y=h.next();!y.done;y=h.next())if(b[y.value])return!1;return!0};
H_5=function(){if(c2)return c2;if(window.lottie)return c2=Promise.resolve(window.lottie);var b=_.QV(_.QC("LOTTIE_URL"));return b?c2=new Promise(function(h,y){var S=document.createElement("script");S.addEventListener("load",function(){h(lottie)});
S.addEventListener("error",function(F){var a="Lottie library failed to load.";F?F.message&&(a+=" Original description: "+F.message,_.bh(F,a)):F=Error(a);_.vX(F);y(F)});
S.setAttribute("async","");_.ZF(S,b);document.head.appendChild(S)}):Promise.reject(Error("th"))};
uzf=function(){return c2?c2:H_5()};
O_I=function(b){if(b)switch(b){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.r("kevlar_use_wil_icons"))return b=(b=L4F(_.hP().getState()))&&b.animationLightUrl&&b.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:b.animationLightUrl,pathDarkTheme:b.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,b?b:RF.get("LIKE");break;case "LIKE_DELHI_PLAYER":return RF.get("LIKE_DELHI_PLAYER")}};
NF5=function(b){var h=O_I(b);if(h)return h;switch(b){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return RF.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return RF.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return RF.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return RF.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return RF.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return RF.get("NOTIFICATION_BELL")}};
t$k=function(b,h){if(!b.closest)return!1;h=!!O_I(h);return _.QC("ID_TOKEN")&&h?!!b.closest("segmented-like-dislike-button-view-model")||!!b.closest("yt-player-quick-action-buttons"):!1};
cOj=function(b,h){if(!b||rOn)h=!1;else{var y;if(!(y=t$k(b,h)))if(b.closest)if(y=!_.QC("ID_TOKEN"),b=b.closest("ytd-subscription-notification-toggle-button-renderer-next"),y||!b)y=!1;else{var S;y=((S=b.data)==null?void 0:S.targetId)==="notification-bell"&&h!=="EXPAND_MORE"}else y=!1;h=y}return h};
Rsf=function(b){var h,y;return _.Z(function(S){switch(S.nextAddress){case 1:return _.WE(S,2),S.yield(fetch(b),4);case 4:return h=S.yieldResult,S.yield(h.json(),5);case 5:return S.return(S.yieldResult);case 2:y=_.C$(S),_.vX(y),_.g3(S)}})};
zsr=function(b,h){var y,S,F;return _.Z(function(a){if(a.nextAddress==1)return(y=h?b.pathDarkTheme:b.path)?a.yield(Promise.all([Rsf(y),H_5()]),2):a.return();S=a.yieldResult;F=S[0];zA.set(y,F);_.g3(a)})};
IHY=function(b,h,y,S){function F(P,K){if(h.value===K&&!h.cancelled){for(;b.firstChild;)b.removeChild(b.firstChild);b.classList.add("ytSpecIconShapeHost");P(b,S)}}
var a=_.Dgq(_.H9().resolve(_.MJ),y);typeof a==="function"?(h.value=null,F(a,null)):(h.value=a,a.then(function(P){F(P,a)}))};
BF4=function(b,h){var y=document.createElement("div"),S=_.EW(y,function(){return _.M(_.H,{cond:b,then:function(F){return _.M(_.Dv,{data:F,options:h})}})},"ca");
return[y,S]};
_.IF=function(b,h){if(h){var y={};WhF.forEach(function(S){S=AO8(h,S,"--yt-lightsource-");Object.assign(y,S)});
UgU.forEach(function(S){S=AO8(h,S,"--yt-basic-");Object.assign(y,S)});
_.nZ(b,y)}};
AO8=function(b,h,y){var S={};S[y+_.MQ(h)]=b&&b[h]?_.CR(b[h]):"";return S};
_.W2=function(b,h,y){B2[b]||(B2[b]={});B2[b][h]=y};
_.A4=function(b){B2[b]||(B2[b]={});return B2[b]};
pkn=function(b){if(!b)return{};var h=b.foregroundTitleColor,y=b.backgroundColor;b=b.borderColor;var S="text";b?S="outline":y&&(S="filled");return{type:S,customColors:{color:h?_.CR(h):void 0,backgroundColor:y?_.CR(y):void 0,borderColor:b?_.CR(b):void 0}}};
s55=function(b){var h=b.renderer;var y=b.element;var S=b.commandController;var F=b.onTapCallback;var a=b.skipCommandHandling;var P=b.overrides;var K=b.forceIcon;var n=b.forceModernIconButton;var X=b.forceDisabled;var u=b.isSubscribe===void 0?!1:b.isSubscribe;var O=b.isPressed===void 0?!1:b.isPressed;var N=b.useButtonSize===void 0?!1:b.useButtonSize;b=JOj(h);u&&(b.style="mono",b.type="filled");K=!h.icon||!K&&h.text?h.icon?h.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:n?"icon-only":"icon-only-40";K==="icon-only-40"&&(b.type="text");var t;n=Object;u=n.assign;N=esN(h,N);O=!!h.isSelected||!_.r("web_propagate_is_pressed_killswitch")&&!!O;var R=h.isSelected!==void 0;X=X===void 0?h.isDisabled:X;var I=h.text?_.ej(h.text):void 0;var U,p,e,E=((U=h.accessibilityData)==null?void 0:(p=U.accessibilityData)==null?void 0:p.label)||((e=h.accessibility)==null?void 0:e.label);U=E?E:_.vi(h.text);y=Crk(h,y,S,F,a);S=gsM(h);S!=null&&S.length?(S=_.GK({innertubeCommand:csI(S),
forceNewState:!0}),S=kS(S)?S:void 0):S=void 0;return u.call(n,{},b,N,{iconPosition:K},P,{focused:!1,toggled:O,toggleable:R,disabled:X,formattedButtonText:I,accessibilityLabel:U,onTap:y,aTagConfig:S},pkn((t=h.colorData)==null?void 0:t.basicColorPaletteData),{oneOffCustomTextWrap:h.oneOffCustomTextWrap})};
Crk=function(b,h,y,S,F){return function(a){var P=gsM(b);S(P,a);if(!F){P=_.L(P);for(var K=P.next();!K.done;K=P.next())Ok(K.value,{form:{element:h,event:a},commandController:y})}}};
gsM=function(b){var h=[];b.command&&h.push(b.command);b.serviceEndpoint&&h.push(b.serviceEndpoint);b.navigationEndpoint&&h.push(b.navigationEndpoint);return h};
esN=function(b,h){if(h)switch(b.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(b.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
JOj=function(b){switch(b.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"}}};
Y8U=function(b,h){return typeof b!=="object"||b===null?!1:Object.keys(h).every(function(y){return y in b})};
Uk=function(b){return Object.fromEntries(Object.keys(b).map(function(h){return[h,h]}))};
TFI=function(b,h,y){return Ksk(y,function(S,F){return function(a){var P=_.x$.apply(1,arguments);return Y8U(a,b)?F.apply(null,[a[h]].concat(_.f$(P))):F.apply(null,[a].concat(_.f$(P)))}})};
p9=function(b){return function(h,y){return TFI(b,h,y)}};
G75=function(b,h){var y;return(y=_.Mm(b,"playlistLoopStateEntity",h))!=null?y:void 0};
k7I=function(b,h){var y;return(y=_.Mm(b,"toggleMenuServiceItemEntity",h))!=null?y:void 0};
_.J4=function(b){return b!=null&&b.watch?b.watch.isTheaterMode:!1};
_.es=function(b){return b!=null&&b.watch?b.watch.isWatchFullscreen:!1};
_.C9=function(b){if(_.V$N(b))return!0;b=_.EsF(b);return _.r("web_watch_enable_single_column_grid_view")?b:!1};
_.V$N=function(b){return b!=null&&b.watch?b.watch.isSwatcherooActive:!1};
_.EsF=function(b){return b.watch.isWatchNarrowWidth};
_.i_k=function(b){return _.J4(b)||_.es(b)||_.EsF(b)};
_.fHk=function(b){return b.watch.openEngagementPanels};
_.gS=function(b,h){return _.Mm(b.entities,"likeStatusEntity",h)};
wk4=function(b,h){return _.Mm(b.entities,"likeCountEntity",h)};
_.lHn=function(b,h){return _.Mm(b.entities,"stringEntity",h)};
q8q=function(b,h){return _.Mm(b.entities,"dataFreshnessEntity",h)};
xgF=function(b,h){if(!b)return!1;var y,S=(y=_.c(b,_.KI))==null?void 0:y.signal;if(S&&h.signalEndpointMap)return!!h.signalEndpointMap[S];var F;if((y=(F=_.c(b,_.sk))==null?void 0:F.request)&&h.continuationEndpointMap)return!!h.continuationEndpointMap[y];for(var a in b)if(h.commandEndpointMap[a])return!0;return!1};
Q5I=function(b,h){if(h.streamingEndpointMap)for(var y in b)if(h.streamingEndpointMap[y]&&(b=h.streamingEndpointMap[y]))return b()};
mgn=function(b,h){var y,S=(y=_.c(b,_.KI))==null?void 0:y.signal;if(S&&h.signalEndpointMap&&(y=h.signalEndpointMap[S]))return y();var F;if((y=(F=_.c(b,_.sk))==null?void 0:F.request)&&h.continuationEndpointMap&&(F=h.continuationEndpointMap[y]))return F();for(var a in b)if(h.commandEndpointMap[a]&&(b=h.commandEndpointMap[a]))return b()};
vsN=function(b){var h={"Content-Type":"application/json"};_.QC("EOM_VISITOR_DATA")?h["X-Goog-EOM-Visitor-Id"]=_.QC("EOM_VISITOR_DATA"):_.QC("VISITOR_DATA")&&(h["X-Goog-Visitor-Id"]=_.QC("VISITOR_DATA"));h["X-Youtube-Bootstrap-Logged-In"]=_.QC("LOGGED_IN",!1);_.QC("DEBUG_SETTINGS_METADATA")&&(h["X-Debug-Settings-Metadata"]=_.QC("DEBUG_SETTINGS_METADATA"));b!=="cors"&&((b=_.QC("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(h["X-Youtube-Client-Name"]=b),(b=_.QC("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(h["X-Youtube-Client-Version"]=
b),(b=_.QC("CHROME_CONNECTED_HEADER"))&&(h["X-Youtube-Chrome-Connected"]=b),(b=_.QC("DOMAIN_ADMIN_STATE"))&&(h["X-Youtube-Domain-Admin-State"]=b));(b=_.QC("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(h["X-YouTube-Lava-Device-Context"]=b);return h};
byF=function(b,h){h.watchNextResponse||h.reelItemWatchResponse?h.watchNextResponse?b.content=h.watchNextResponse:b.content=h.reelItemWatchResponse:h.playerResponse?b.player=h.playerResponse:h.reelWatchSequenceResponse&&(b.reelSequence=h.reelWatchSequenceResponse)};
YE=function(b){return function(){return new b}};
TA=function(b){var h=_.H9();return function(){return h.resolve(b)}};
_.GA=function(b){if(!b)return null;for(var h=[],y=0;y<b.textSegments.length;y++){var S=b.textSegments[y];S.text?h.push(S):S.emojiId&&h.push({emoji_id:S.emojiId})}return{text_segments:h}};
aqU=function(b,h,y,S,F,a,P){a=a===void 0?[]:a;var K=new _.kE;K.endpoint=y;if(!y)return _.mm(new _.Gn("handle undefined endpoint",h.tagName)),K;var n=NC4(y);n.length&&(_.jx(b,n,h,S),K.actions=n);y.loggingUrls&&y.loggingUrls.forEach(function(u){u.baseUrl&&LK(u.baseUrl,u.attributionSrcMode)});
n=!_.r("web_skip_impression_click_killswitch")&&S&&S.impression;if(y.clickTrackingParams&&!h7U(y)&&!yzk(h)&&!n&&(n=_.rU(),!_.Vd(n,h))){var X=h.getScreenLayer&&h.getScreenLayer();X?n.clickCommand(y,null,X):n.clickCommand(y,null)}n=!1;for(X=0;X<a.length;X++)if((0,a[X])(h,y,S)){n=!0;break}!n&&SgU(y)&&(K.ajaxPromise=F6n(b,h,y,S,F,P));return K};
yzk=function(b){var h;return(b=(h=b.data)==null?void 0:h.navigationEndpoint)&&!!b.clickTrackingParams};
h7U=function(b){var h=_.c(b,_.KI);if(h&&(h=h.signal)&&dHN.indexOf(h)>=0)return!0;for(var y in b)if(jTM.indexOf(y)>=0)return!0;return!1};
SgU=function(b){var h;if(((h=_.c(b,_.KI))==null?void 0:h.signal)==="CLIENT_SIGNAL")return!1;for(var y in b)if($H4.indexOf(y)>=0)return!1;b=Object.keys(b);return b.length===1&&b[0]==="loggingUrls"?!1:!0};
Xw5=function(b,h,y,S,F,a,P){var K=_.Ek.instance;if(K&&_.ip(K,S))var n=_.f9(K,S,F).then(function(u){return(u==null?0:u.data)?u:{data:u}});
else n=b.requestDataForServiceEndpoint(S,F),_.c(S,L68)||_.c(S,P95)||_.c(S,_.K6n)||_.c(S,ZyM)||_.vX(new _.Gn("No RequestBuilder for endpoint",S));var X=_.wS();X.promise.thenCatch(function(){var u=_.ln(S,"action")||_.ln(S,"command")||_.ln(S,"endpoint");u&&(u=S[u],u.hasOwnProperty("onFailureAction")?_.jx(h,[u.onFailureAction],y):u.hasOwnProperty("onFailureCommand")&&_.jx(h,u.onFailureCommand,y));n.cancel("Resolver promise rejected")});
n.then(function(u){if(u){var O=u.error;if(O){if(a&&a.onServerError)a.onServerError(S,u);X.reject(new _.Gn("Response error",S,O))}else if(u=u.data)if(O=u.error){if(a&&a.onServerError)a.onServerError(S,u);X.reject(new _.Gn("Returned error",S,O))}else{oz8(h,y,u,S);MzY(u);if(O=OhI(u))for(var N=_.L(O),t=N.next();!t.done;t=N.next()){t=t.value;var R=_.H9().resolve(_.XS(nzk))||lp;if(!_.Ek.instance||!R.some(function(U){return!!_.c(S,U)})||_.r("kevlar_response_processor_allowlist_killswitch")){var I=R=void 0;
((I=_.c((R=t)==null?void 0:R.commandMetadata,_.ZW))==null?0:I.sendPost)?_.dh(h,[t]):_.jx(h,[t],y)}}(N=_.c(u==null?void 0:u.frameworkUpdates,qG))&&P&&P(N);if(a&&a.onSuccess)a.onSuccess(S,u);X.resolve(new _.xE(u,O))}}else X.reject(new _.Gn("Invalid service endpoint provided",S))},function(u){X.reject(u)});
return X.promise};
MzY=function(b){var h;(b=(h=_.c(b==null?void 0:b.onResponseReceivedCommand,_.Hy5))==null?void 0:h.continuationItems)&&(b==null?void 0:b.length)===1&&_.c(b[0],uEj)&&_.pI("so_r",void 0,"search_overview_answer")};
F6n=function(b,h,y,S,F,a){var P;return(P=h.getNetworkManager&&h.getNetworkManager()?h.getNetworkManager():_.H9().resolve(_.XS(_.zM)))?Xw5(P,b,h,y,S,F,a):_.UQ("No network manager.")};
oz8=function(b,h,y,S){if(y=y.trackingParams||y.loggingDirectives&&y.loggingDirectives.trackingParams){var F;(_.c(S,_.Qd)||_.c(S,OyF)||_.c(S,NNj))&&S.clickTrackingParams?F=_.I_(S.clickTrackingParams):_.r("web_graft_to_parent_command")&&S.clickTrackingParams&&(F=_.I_(S.clickTrackingParams));var a;S=(a=h.getScreenLayer)==null?void 0:a.call(h);h=_.rU().graftServerVe(y,F,S);_.aw(b,"yt-store-grafted-ve-action",[h])}};
_.tz4=function(b){var h=new Image;return new _.Uu(function(y,S){h.addEventListener("load",function(){y()});
h.addEventListener("error",function(){S()});
h.src=b})};
rzj=function(b){return!!b};
czf=function(b){return!!b};
R75=function(b,h,y){var S=b.rowIndex;S!==void 0&&_.aw(b.hostElement,"yt-section-reactive-dismissal",[S,h,y])};
_.mf=function(b,h,y){b=_.L(b);for(var S=b.next();!S.done;S=b.next()){S=S.value;if(S===h)break;for(var F=_.L(y),a=F.next();!a.done;a=F.next())if(a=a.value,S.tagName===a||!_.r("web_event_button_role_check_killswitch")&&S.role==="button"&&a==="BUTTON")return!0}return!1};
_.v2=function(b,h,y){b=_.L(b);for(var S=b.next();!S.done;S=b.next()){S=S.value;if(S===h)break;for(var F=_.L(y),a=F.next();!a.done;a=F.next())if(S.id===a.value)return!0}return!1};
_.ye=function(){var b=_.H9().resolve(_.XS(_.bM));return b?(b=b.getCurrentPage())?_.hB(b):null:null};
_.Sa=function(){var b=_.ye();if(!b){var h=_.H9().resolve(_.XS(_.bM)),y=h?typeof h:"no page manager";h=h?h.getCurrentPage():null;y=new _.Gn("Player is missing when requested.",y,h?h.tagName:"no page");_.QT(y)}return b};
_.hB=function(b){return b&&b.getPlayer?b.getPlayer():null};
z75=function(b,h){b={args:{raw_player_response:b}};h&&(b.args=Object.assign({},b.args,h));return b};
DH4=function(b){if(b.args){if(b.args.raw_player_response)return b.args.raw_player_response;if(b.args.player_response)return JSON.parse(b.args.player_response)}};
_.IqN=function(b,h){var y={url:"/watch?v="+b.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};b.playlistId&&(y.url+="&list="+b.playlistId);b.playerParams&&(y.url+="&pp="+b.playerParams);b={watchEndpoint:b,commandMetadata:{webCommandMetadata:y}};h&&(b.clickTrackingParams=h);return b};
W64=function(){return BNk||!!_.hj("yt.player.Application")};
UH8=function(){return AzM||!!document.querySelector("link#player-css")};
Jzq=function(){function b(){BNk=!0;pwq.resolve()}
var h,y;return _.Z(function(S){pwq||(pwq=new _.MC,W64()?b():(h=document.createElement("script"),h.addEventListener("load",b),y=_.wB(_.QC("PLAYER_JS_URL")),_.ZF(h,y),document.head.appendChild(h)));return S.return(pwq.promise)})};
C9f=function(){function b(){AzM=!0;e7k.resolve()}
if(!e7k)if(e7k=new _.MC,UH8())b();else{var h=document.createElement("link");h.id="player-css";h.addEventListener("load",b);var y=_.wB(_.QC("PLAYER_CSS_URL"));_.Xg(h,y,"stylesheet");document.head.appendChild(h)}return e7k.promise};
gz8=function(){return W64()&&UH8()?Promise.resolve([]):Promise.all([Jzq(),C9f()])};
sTk=function(b,h,y){var S={args:{}};b&&(S.args.raw_player_response=b);h&&(S.args.raw_watch_next_response=h);y&&(S.args=Object.assign({},S.args,y));return S};
kij=function(b,h,y){var S=!1;S=S===void 0?!0:S;b=typeof b==="string"?_.FQ(document,b):b;var F=YgN+"_"+_.mM(b),a=TNq[F];if(a&&S)return Gi8(h,y)?a.api.loadVideoByPlayerVars(h.args||null):a.loadNewVideoConfig(h),a.api;a=new a7(b,F,h,y,void 0);TNq[F]=a;a.addOnDisposeCallback(function(){delete TNq[a.getId()]});
return a.api};
Gi8=function(b,h){return h&&h.serializedExperimentFlags?h.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):b&&b.args&&b.args.fflags?b.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
VzM=function(){var b=new _.MC;b.resolved=!1;var h=b.resolve;b.resolve=function(y){b.resolved=!0;h(y)};
return b};
iyy=function(b){var h={};EzY().install((h.document_disposed={callback:b},h))};
dC=function(b,h){if(!b&&Math.random()<=_.tj("kevlar_unified_player_logging_threshold")){b=Error("vh`"+(h?h:"Unspecified error"));if(_.r("kevlar_unified_player_throw_errors"))throw b;_.vX(b)}};
_.fqj=function(){var b=_.hj("ytDebugData.callbacks");b||(b={},_.HL("ytDebugData.callbacks",b));return b};
lq4=function(b,h){var y=_.fqj();if(_.r("web_dd_iu")||wwM.includes(b))y[b]=h};
qgj=function(){return _.Z(function(b){return b.return({isLeader:_.mb8(_.hP().getState()),c:_.QC("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.QC("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
xH8=function(){var b;_.Z(function(h){if(h.nextAddress==1)return lq4("APP_STATE",qgj),h.yield(_.H9().resolve(_.ja),2);b=h.yieldResult;lq4("PI",function(){return _.Z(function(y){return y.return(b.getVideoStats())})});
_.g3(h)})};
QTn=function(b){return!!b&&b.length>0&&b[0].loggingUrls!=null&&b[0].loggingUrls.length>0};
mHr=function(){var b=_.QC("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(b==null?void 0:b.length)===2?b[1]:null};
vzf=function(b){if(!b)return[];var h=[];b=_.L(b);for(var y=b.next();!y.done;y=b.next())if(y=y.value,y.loggingUrls){y=_.L(y.loggingUrls);for(var S=y.next();!S.done;S=y.next())S=S.value,S.baseUrl&&h.push(S.baseUrl)}return h};
bon=function(b){var h=_.xj(_.kj(_.S5.location.href));b=_.xj(_.kj(b));return _.r("kevlar_clear_non_displayable_url_params")?h==$r(b):$r(h)==$r(b)};
$r=function(b){var h=_.hiI(b);b=b.slice(0);var y=["frags"];_.r("kevlar_hide_pp_url_param")&&y.push("pp");_.r("kevlar_hide_time_continue_url_param")&&y.push("time_continue");y=_.L(y);for(var S=y.next();!S.done;S=y.next())S=S.value,b=_.mp(_.xj(b),S);return _.xj(b)+(h?"#"+h:"")};
Lh=function(b,h){var y=y===void 0?!0:y;h=Number(h)*1E3;var S=Math.round((0,_.NO)()),F=S.toString();b={innertubeResponse:b,serverDateTimestampMs:F,lastModifiedTimestampMs:F,expireTimestampMs:(S+h).toString(),isProcessed:y};if(y=_.QC("INNERTUBE_CONTEXT_CLIENT_NAME"))b.clientName=y;return b};
SyI=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++yyf};
FO4=function(b){return!isNaN(b)&&b>0};
dw4=function(){_.r("web_adaptive_repeat_ase")&&a_N&&_.qi("applicationStarted",a_N)};
_.jVr=function(){var b=_.Ae(),h=_.UE();h&&b&&_.wh(h,[b],!0)};
LO5=function(b){return b&&$wN.some(function(h){return b.includes(h)})};
ncN=function(b){var h=_.c(b,_.jH);if(!h)return!1;var y=h.url,S=h.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!y)return _.QT(Error("Ah")),!1;if(h.target==="TARGET_NEW_WINDOW"){h={};_.r("resolve_url_parent_tracking_params")&&(!_.ZI(y)||oA(window.location.href,y))&&(h={endpoint:b,itct:b.clickTrackingParams});FCy(h);b=null;try{if(S){a:{var F=y,a=h;S=S===void 0?!1:S;a&&_.QB(F,a);var P=_.lJ(F),K=_.E_(P);F!=K&&_.yb(Error("Zf`"+F));F=K;try{if(S){K=F;K=y6F(K);TM(K);b=_.d3(window,K,"_blank",
"attributionsrc");break a}}catch(N){_.v4(N)}TM(F);b=_.d3(window,P,"_blank")}PLI(_.H9().resolve(KOF),b,y);return!0}}catch(N){_.QT(N)}_.QB(y,h);h={target:"_blank",noopener:!1};P=window;K=VD(y)?y:_.lJ(typeof y.href!="undefined"?y.href:String(y));S=self.crossOriginIsolated!==void 0;b="strict-origin-when-cross-origin";window.Request&&(b=(new Request("/")).referrerPolicy);F=h.noreferrer;if(S&&F&&b==="unsafe-url")throw Error("we");b=F&&!S;F=h.target||y.target;a=[];var n=[],X=!1;for(O in h){var u=h[O];switch(O){case "width":case "height":case "top":case "left":a.push(O+
"="+u);break;case "target":break;case "noopener":case "noreferrer":u?n.push(O):(X=!0,n.push(O+"=false"));break;case "attributionsrc":a.push(O+(u?"="+u:""));break;default:a.push(O+"="+(u?1:0))}}var O=F!==void 0&&!["_blank","_self","_top","_parent",""].includes(F);O=zk()&&O;Zon&&S&&a.length===0&&n.length>0&&!O&&!X?(n.length===2&&(n=["noreferrer"]),_.d3(P,K,F,n[0]),b=oc5()):(O=a.join(","),_.AY()&&P.navigator&&P.navigator.standalone&&F&&F!="_self"?(O=_.gB("A"),mA(O,K),O.target=F,b&&(O.rel="noreferrer"),
((h=h.attributionsrc)||h==="")&&O.setAttribute("attributionsrc",h),h=document.createEvent("MouseEvent"),h.initMouseEvent("click",!0,!0,P,1),O.dispatchEvent(h),O=oc5()):b?(O=_.d3(P,"",F,O),P=_.E_(K),O&&(O.opener=null,P===""&&(P="javascript:''"),P='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+PC(P)+'">',P=yx(P),(h=O.document)&&h.write&&(h.write(Sw(P)),h.close()))):((O=_.d3(P,K,F,O))&&h.noopener&&(O.opener=null),O&&h.noreferrer&&(O.opener=null)),b=O);PLI(_.H9().resolve(KOF),
b,y);return!0}O=_.W9(y);O=LO5(O)||y==="https://studio.youtube.com/";if(_.ZI(y)&&!oA(window.location.href,y)||O)TM(y),BT(),_.GM(y,void 0,void 0,window.top,MLk);else return _.vX(new _.Gn("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",b)),!1;return!0};
_.uYf=function(b,h){h=h===void 0?0:h;if(!(_.c(b,X1y)||_.c(b,HoM)||_.c(b,_.jH)&&_.c(b,_.jH).url))return!1;var y,S=(y=_.c(b,_.jH))==null?void 0:y.url;y=S?{externalLinkData:{url:S}}:null;return _.rU().clickCommand(b,y,h)};
NT4=function(b,h,y,S,F){F=F===void 0?{}:F;return function(a){var P,K;var n=((P=b.loggingDirectives)==null?0:(K=P.clientVeSpec)==null?0:K.uiType)?_.Kh(b.loggingDirectives.clientVeSpec.uiType):void 0;F.clickedVisualElement||(F.clickedVisualElement=n);n=Ooq(b,h);y(n,a);n=_.L(n);for(P=n.next();!P.done;P=n.next()){P=P.value;K=S;var X=a,u=F;u.form?u.form.event=X:u.form={element:K,event:X};Ok(P,u)}}};
Ooq=function(b,h){var y=[];h?(b.toggledCommand&&y.push(b.toggledCommand),b.toggledServiceEndpoint&&y.push(b.toggledServiceEndpoint)):(b.defaultCommand&&y.push(b.defaultCommand),b.defaultServiceEndpoint&&y.push(b.defaultServiceEndpoint),b.defaultNavigationEndpoint&&y.push(b.defaultNavigationEndpoint));return y};
tLf=function(b,h){var y=b.toggledStyle||b.style,S;switch((S=h?y:b.style)==null?void 0:S.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"}}};
_.Z5=function(){return _.Z(function(b){return b.nextAddress==1?b.yield(_.H9().resolve(_.ja),2):b.return(_.H9().resolve(ryq)())})};
_.o7=function(){return _.H9().resolve(ryq)()};
_.Mn=function(){return{lottieEl:void 0}};
cyF=function(b,h){return b.startsWith(h.uniqueId)};
Ri5=function(b){var h,y;_.Z(function(S){if(S.nextAddress==1)return S.yield(_.Z5(),2);h=S.yieldResult;if((y=h)==null||!y.addEventListener)return nh(),S.return();h.addEventListener("onCueRangeEnter",b);_.g3(S)})};
ziq=function(b){var h,y;_.Z(function(S){if(S.nextAddress==1)return S.yield(_.Z5(),2);h=S.yieldResult;if((y=h)==null||!y.removeEventListener)return nh(),S.return();h.removeEventListener("onCueRangeEnter",b);_.g3(S)})};
Dw5=function(b){var h,y,S,F,a;_.Z(function(P){if(P.nextAddress==1)return P.yield(_.Z5(),2);h=P.yieldResult;if((y=h)==null||!y.addCueRange)return nh(),P.return();S=_.L(b.timings);for(F=S.next();!F.done;F=S.next())a=F.value,h.addCueRange(b.uniqueId+"-"+a,a/1E3,(a+100)/1E3);_.g3(P)})};
I_j=function(b){var h,y,S,F,a;_.Z(function(P){if(P.nextAddress==1)return P.yield(_.Z5(),2);h=P.yieldResult;if((y=h)==null||!y.removeCueRange)return nh(),P.return();S=_.L(b.timings);for(F=S.next();!F.done;F=S.next())a=F.value,h.removeCueRange(b.uniqueId+"-"+a);_.g3(P)})};
BT4=function(){var b,h,y;return _.Z(function(S){if(S.nextAddress==1)return S.yield(_.Z5(),2);b=S.yieldResult;if((h=b)==null||!h.getPlayerState)return nh(),S.return();y=b.getPlayerState();return S.return(y===2)})};
nh=function(){_.vX(new _.Gn("Smartimation player does not exist or is corrupted"))};
WO8=function(){try{var b;return(b=window.CSS)!=null&&b.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(h){return _.vX(new _.Gn("Smartimation CSS.supports threw an error")),!1}};
gc4=function(b,h,y,S,F){var a=b.playlistId?AyF:Uwk;h=h();y=y();F=!!b.videoId&&F()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.ci(h))return p1y({data:b,actionType:a,disabled:F},y);if(b.videoId&&S())return Jyy({data:b,actionType:a,disabled:F});switch(h){case "TRANSFER_STATE_UNKNOWN":return Jyy({data:b,actionType:a,disabled:F});case "TRANSFER_STATE_FAILED":return b.videoId?ei4({data:b,actionType:a,disabled:F}):CLy({data:b,actionType:a,disabled:F});case "TRANSFER_STATE_COMPLETE":return CLy({data:b,
actionType:a,disabled:F});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return p1y({data:b,actionType:a,disabled:F},y);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return b.videoId?ei4({data:b,actionType:a,disabled:F}):Jyy({data:b,actionType:a,disabled:F});default:return Jyy({data:b,actionType:a,disabled:F})}};
sVF=function(b,h){var y=b.onTapCommand,S=_.YS(y);if(b.videoId&&_.c(S,_.HC))return _.c(S,_.HC).action=h,y;b.playlistId&&_.c(S,_.uM)&&(_.c(S,_.uM).action=h);return y};
Jyy=function(b){var h=b.data;var y=b.actionType;b=b.disabled;return{text:Yyy,iconType:"OFFLINE_DOWNLOAD",onTap:sVF(h,y.ACTION_ADD),disabled:b}};
p1y=function(b,h){var y=b.data;var S=b.actionType;b=b.disabled;var F="OFFLINE_DOWNLOAD";h>=0&&h<=.1?F="OFFLINE_DOWNLOADING_ZERO":h>.1&&h<=.3?F="OFFLINE_DOWNLOADING_TWENTY":h>.3&&h<=.5?F="OFFLINE_DOWNLOADING_FORTY":h>.5&&h<=.7?F="OFFLINE_DOWNLOADING_SIXTY":h>.7&&h<1?F="OFFLINE_DOWNLOADING_EIGHTY":h===1&&(F="OFFLINE_PIN");return{text:TTI,iconType:F,onTap:sVF(y,S.ACTION_REMOVE_WITH_PROMPT),disabled:b}};
CLy=function(b){var h=b.data;var y=b.actionType;b=b.disabled;return{text:G3q,iconType:"OFFLINE_PIN",onTap:sVF(h,y.ACTION_REMOVE_WITH_PROMPT),disabled:b}};
ei4=function(b){var h=b.data;var y=b.actionType;b=b.disabled;return{text:k3I,iconType:"OFFLINE_DOWNLOAD",onTap:sVF(h,y.ACTION_RETRY),disabled:b}};
_.OF=function(b,h){var y=Fu8();return _.s5(function(){y();return juM(b,[_.bn(h)||""])},{debugName:"LUZslf"},"Z105t")};
VL8=function(b){var h=_.OF(_.Y8,function(){return b().videoId}),y=_.OF(_.TD,function(){return b().playlistId});
return function(){return b().videoId?h:b().playlistId?y:_.L(_.pa("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
Ec8=function(b){var h=_.OF(GD,function(){return b().videoId}),y=_.OF(_.QDM,function(){return b().playlistId});
return function(){return b().videoId?h:b().playlistId?y:_.L(_.pa(0,void 0,"K4tgOc")).next().value}};
io8=function(b){var h=_.OF(_.d1U,function(){return b().videoId});
return function(){return b().videoId?h:_.L(_.pa(!1,void 0,"Oaxwcf")).next().value}};
f_f=function(b){var h=_.OF(beI,function(){return b().videoId});
return function(){return b().videoId?h:_.L(_.pa("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
w1M=function(){return{}};
_.mwI=function(b,h,y){return{submitForm:function(){var S,F,a,P;return _.Z(function(K){if(K.nextAddress==1){S=l_F(b());if(!S)return K.return();if(S.onSubmit)return qyN(h),S.onSubmit(),qyN(y),K.return();if(!S.submitConfig||!S.formData)return K.jumpTo(0);S.disableDuringSubmission&&xwU(b(),!0);qyN(h);return K.yield(QVn(S.submitConfig,S.formData()),3)}F=K.yieldResult;qyN(y);if(((a=F)==null?0:a.submitResult)&&((P=S)==null?0:P.onSubmitResult))S.onSubmitResult(F.submitResult);S.disableDuringSubmission&&xwU(b(),
!1);return K.return()})},
isValid:function(){var S=l_F(b());if(S){var F;return!((F=S.isValid)==null||!F.call(S))}return!0},
isSubmitting:function(){var S,F;return!!((S=l_F(b()))==null?0:(F=S.isSubmitting)==null?0:F.call(S))}}};
_.Nn=function(){if(!vcM){var b=_.L(_.pa(new Map,void 0,"Y1XnBc"));vcM=b.next().value;bYI=b.next().value}return vcM};
_.hVq=function(b){bYI(new Map(b))};
l_F=function(b){if(b)return _.Nn()().get(b)};
QVn=function(b,h){var y;return _.Z(function(S){return S.nextAddress==1?h?(y=_.H9().resolve(_.XS(ySn)))&&b.submitId?S.yield(y.submitForm(b.submitId,h,S18,b.params,b.clickTrackingParams),2):S.return(Promise.reject(Error("Ch"))):S.return(Promise.reject(Error("Bh"))):S.return(S.yieldResult)})};
xwU=function(b,h){if(b){var y=_.Nn();y().set(b,Object.assign({},y().get(b),{isSubmitting:function(){return h}}));
_.hVq(y())}};
qyN=function(b){if(b){var h=_.H9().resolve(_.OM);h&&(b=_.YS(b()))&&h.resolveCommand(b)}};
d6I=function(b,h){h=h===void 0?{shouldPersist:!0}:h;return{useUpdatableData:function(y,S){var F=_.s5(function(){return b(y())},void 0,"Gmrblb"),a=F_5(y,F,S,h);
_.Qi(function(){if(F()!=null){aQM.set(F(),a);var P=F();_.m2(function(){aQM.delete(P)})}},"j4hx9b");
return a},
getData:function(y){var S;return(S=aQM.get(b(y)))==null?void 0:S[0]()},
updateData:function(y,S){y=b(y);y=aQM.get(y);if(!y)return!1;var F=_.L(y);y=F.next().value;F=F.next().value;S=S(y());F(S);return!0}}};
F_5=function(b,h,y,S){S=S===void 0?{}:S;var F=_.L(_.ya(function(){var K=b(),n=h();return jJF(K,n,y,S)})),a=F.next().value,P=F.next().value;
return[a,function(K){P(K);var n=h();if(S.shouldPersist&&n!=null){var X,u=(X=y==null?void 0:y.map(function(O){return O()}))!=null?X:[];
_.tB.set(n,[K,u])}}]};
jJF=function(b,h,y,S){S=S===void 0?{}:S;if(h==null||!S.shouldPersist)return b;S=_.tB.get(h);if(!S)return b;var F=_.L(S);S=F.next().value;var a=F.next().value,P;F=(P=y==null?void 0:y.map(function(K){return K()}))!=null?P:[];
if((a==null?0:a.length)&&(y==null?0:y.length)&&F.some(function(K,n){return K!==a[n]}))return _.tB.remove(h),b;
(y==null?0:y.length)&&_.tB.set(h,[S,F]);return S};
$6n=function(b){var h=_.L(_.pa(!0,void 0,"bKtO6d")),y=h.next().value;h.next();return function(){var S=UW(b.children());return _.M(_.H,{cond:y,then:function(){return S},
else:b.fallback})}()};
_.rC=function(b){var h=L_y(b),y=h.data,S=h.mapping,F=h.wrapper;h=h.pendingFallback;var a=function(){return PxM(_.bn(y))},P=function(){var K=a(),n=[];
K=_.L(K);for(var X=K.next();!X.done;X=K.next()){var u=void 0;X=X.value;var O=void 0;for(u in X)if(!(!X).hasOwnProperty(u)){O=u;break}(u=O)&&n.push(u)}return n};
return b.data?_.M($6n,{fallback:h},function(){return _.M(_.Gw,{each:P},function(K,n){var X=F?function(R){return F(function(){return S[K](R,n)},u,n)}:function(R){return S[K](R,n)};
X.debugName||(X.debugName=String(K));if(!S[String(K)])return document.createComment("");X.componentType!==Gr&&K_U(String(K));var u=ZYq(a,K,n);if(_.r("web_add_microtask_to_stamper")&&!okU.has(String(K))){var O=_.L(_.pa(!1,void 0,"afb1md")),N=O.next().value,t=O.next().value;Promise.resolve().then(function(){okU.add(String(K));t(!0)});
return _.M(_.H,{cond:N,then:function(){return _.M(X,{data:u})}})}return _.M(X,{data:u})})}):_.M(_.OW,null)};
L_y=function(b){var h=b.targetId||Muq(b.children);if(!b.data||!h)return Object.assign({},b,{mapping:b.children});var y="stamper-"+nkI++,S=function(){var K;return(K=typeof b.targetId==="function"?b.targetId(y):b.targetId)!=null?K:y};
h=_.L(Xnq(function(){var K=PxM(b.data());K.targetId=S;return K})).next().value;
var F=Object.assign({},(_.H9().resolve(_.XS(HYf))||{}).replaceableMapping,b.children);if(b.replacementWrapper){var a=F.notificationTextRenderer,P=F.notificationMultiActionRenderer;a&&(F.notificationTextRenderer=function(K,n){return b.replacementWrapper(a({data:K.data},n))});
P&&(F.notificationMultiActionRenderer=function(K,n){return b.replacementWrapper(P({data:K.data},n))})}return Object.assign({},b,{data:h,
mapping:F,wrapper:function(K,n,X){return iLf({targetId:S,stamperIndex:X},b.wrapper?function(){return b.wrapper(K,n,X)}:K)}})};
ZYq=function(b,h,y){var S;return _.s5(function(){var F=b()[y()];if(F)S=F[h];else return _.vX(new _.Gn("Stamper failed to find "+String(h)+" at index "+y()+" of data array of length "+(b().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),S;return F[h]},void 0,"Su9U8")};
Muq=function(b){b=_.L(Object.keys(b));for(var h=b.next();!h.done;h=b.next())if(h=h.value,u4k.includes(h)||OYN.includes(h)||Noq.includes(h))return!0;return!1};
PxM=function(b){return b?Array.isArray(b)&&b instanceof Array?b:[b]:[]};
K_U=function(b){if(_.r("web_enable_renderer_logger")){var h;(h=_.H9().resolve(_.XS(tur)))!=null&&h.loggingEnabled&&!h.ids.has(b)&&h.ids.add(b)}};
rSn=function(){var b,h;return(h=(b=_.H9().resolve(_.XS(_.cC)))==null?void 0:b())!=null?h:!1};
RVM=function(b,h){b=b===void 0?cSU:b;switch(h.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},b,{isOpen:h.payload});default:return b}};
D6f=function(b,h){b=b===void 0?zVy:b;switch(h.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},b,{isAllowed:h.payload});default:return b}};
Bo4=function(b,h){b=b===void 0?IQr:b;switch(h.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},b,{errorMessage:h.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},b,{title:h.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},b,{privacy:h.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},b,{isDisabled:h.payload});default:return b}};
ASf=function(b,h){b=b===void 0?W_q:b;switch(h.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},b,{isOpen:h.payload});default:return b}};
pnf=function(b,h){b=b===void 0?U6q:b;switch(h.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},b,{isFullscreen:h.payload});case "SET_NAVIGATION_BUTTON":var y=h.payload.targetId,S=Object.assign({},b.navigationButtons);S[y]=h.payload.button;return Object.assign({},b,{navigationButtons:S});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},b,{topPanelId:h.payload});case "SET_SECONDARY_HEADER":return y=h.payload.panelId,S=Object.assign({},b.secondaryHeader),S[y]=h.payload.secondaryHeader,
Object.assign({},b,{secondaryHeader:S});default:return b}};
gk8=function(){return Y6(Object.assign({},{voiceSearch:m15,engagementPanel:pnf,bottomSheet:RVM,cinematicSetting:D6f,shorts:dTf,drawerLayout:ASf,createPlaylist:Bo4,locationCollection:JSI,reportChannel:eV5,reportForm:Cx8},jpY))};
sJn=function(b,h){_.xP.addLowPriorityJob(function(){var y,S,F;return _.Z(function(a){switch(a.nextAddress){case 1:return _.WE(a,2),a.yield(H_5(),4);case 4:return a.yield(fetch(b),5);case 5:return y=a.yieldResult,a.yield(y.json(),6);case 6:S=a.yieldResult;zA.set(b,S);requestAnimationFrame(function(){h(S)});
_.Lz(a,0);break;case 2:F=_.C$(a),_.vX(F),_.g3(a)}})})};
Y15=function(b){var h={animationConfig:{},listeners:{}},y=function(){b(!0)};
h.listeners.data_failed=y;h.listeners.error=y;h.listeners.data_ready=function(){b(!1)};
return h};
kLq=function(b){var h=b.model;var y=b.subscribed;var S=b.isOverlay;var F=b.element;var a=b.commandController;var P=b.notificationState;if(y){var K,n;var X=(h==null?void 0:(K=h.buttonStyle)==null?void 0:K.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:h==null?void 0:(n=h.unsubscribeButtonContent)==null?void 0:n.buttonText}else{var u;X=h==null?void 0:(u=h.subscribeButtonContent)==null?void 0:u.buttonText}a:{var O;switch(h==null?void 0:(O=h.buttonStyle)==
null?void 0:O.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":K="S";break a;default:K="M"}}a:if(S)S="overlay";else switch(h.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":S="overlay";break a;default:S="mono"}a:if(y)var N="tonal";else switch((N=h.buttonStyle)==null?void 0:N.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":N=
"tonal";break a;default:N="filled"}return{style:S,type:N,state:h.disableSubscribeButton?"disabled":"active",size:K,focused:b.focused,toggled:y,accessibilityLabel:ToY(h,y,P),buttonText:X,iconPosition:h.disableNotificationBell?"none":"leading-trailing",onTap:GL4(h,y,F,a),disableTextEllipsis:!!b.disableTextEllipsis}};
GL4=function(b,h,y,S){return function(F){if(h){var a;var P=b.disableNotificationBell?_.YS(b==null?void 0:(a=b.unsubscribeButtonContent)==null?void 0:a.onTapCommand):_.YS(b==null?void 0:b.onShowSubscriptionOptions)}else{var K;P=_.YS(b==null?void 0:(K=b.subscribeButtonContent)==null?void 0:K.onTapCommand)}P&&Ok(P,{form:{element:y==null?void 0:y.value},commandController:S});F.stopPropagation()}};
ToY=function(b,h,y){if(h){if(b==null?0:b.disableNotificationBell){var S;return b==null?void 0:(S=b.unsubscribeButtonContent)==null?void 0:S.accessibilityText}switch(y){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var F;return b==null?void 0:(F=b.bellAccessibilityData)==null?void 0:F.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var a;return b==null?void 0:(a=b.bellAccessibilityData)==null?void 0:a.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var P;return b==null?void 0:(P=
b.bellAccessibilityData)==null?void 0:P.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var K;return b==null?void 0:(K=b.bellAccessibilityData)==null?void 0:K.disabledLabel;default:var n;return b==null?void 0:(n=b.unsubscribeButtonContent)==null?void 0:n.accessibilityText}}else{var X;return b==null?void 0:(X=b.subscribeButtonContent)==null?void 0:X.accessibilityText}};
Vuk=function(b,h){return _.Mm(b.entities,"subscriptionStateEntity",h)};
Ek4=function(b,h){return _.Mm(b.entities,"subscriptionNotificationStateEntity",h)};
iYF=function(b,h){return _.Mm(b.entities,"upcomingEventReminderStateEntity",h)};
fQn=function(b,h){return _.Mm(b.entities,"commentEntityPayload",h)};
wnU=function(b,h){return _.Mm(b.entities,"engagementToolbarSurfaceEntityPayload",h)};
lQn=function(b,h){return _.Mm(b.entities,"triStateButtonStateEntityPayload",h)};
q15=function(b,h){return _.Mm(b.entities,"commerceCartCheckoutButtonEntity",h)};
x6j=function(b,h){return _.Mm(b.entities,"commandEntity",h)};
QJj=function(b){if(b){switch(b){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":b="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":b="NOTIFICATIONS_OFF";break;default:b="NOTIFICATIONS_NONE"}return b}};
m6j=function(b,h,y){y.subscribed!==h&&((y=y.key)&&_.vl(_.R7("subscriptionStateEntity",y,{key:y,subscribed:h})),b.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:h})),h||_.F8(b,"yt-unsubscribe-action"))};
bVy=function(b){b=_.c(_.YS(b),_.zo);var h,y,S,F;return(F=_.c(b==null?void 0:(h=b.panelLoadingStrategy)==null?void 0:(y=h.inlineContent)==null?void 0:(S=y.sheetViewModel)==null?void 0:S.content,vkj))==null?void 0:F.listItems};
haj=function(b,h){if(b.onShowSubscriptionOptions&&h&&(b=bVy(b.onShowSubscriptionOptions),b!=null&&b.length)){var y=QJj(h);b.forEach(function(S){S=_.c(S,_.D5);var F,a,P,K,n=S==null?void 0:(F=S.leadingImage)==null?void 0:(a=F.sources)==null?void 0:(P=a[0])==null?void 0:(K=P.clientResource)==null?void 0:K.imageName;S&&n&&(S.isSelected=n===y)})}};
ywM=function(b,h,y,S){h&&y?b.style.width=y+"px":!h&&S&&(b.style.width=S+"px")};
SsF=function(b,h,y){var S;(S=b.lottieEl)==null||S.goToAndPlay(0);var F;(F=h.lottieEl)==null||F.goToAndPlay(0);_.I7(_.xP,function(){var a;(a=y.lottieEl)==null||a.goToAndPlay(0)},300)};
FRy=function(b){return!(b==null||!b.iconName||(b==null?0:b.title))};
aj8=function(b,h,y,S){y&&_.xP.cancelJob(y);y=_.xP.addLowPriorityJob(function(){S(void 0)},5E3);
S(y);h&&b!==(h.likeStatus==="LIKE")&&h.key&&_.vl(_.R7("likeStatusEntity",h.key,{key:h.key,likeStatus:b?"LIKE":"INDIFFERENT",hadUserInteraction:b}))};
_.dNn=function(b,h){return _.Mm(b.entities,"accountLinkStatusEntity",h)};
jty=function(b,h){return _.Mm(b.entities,"hatsSurveyEntity",h)};
$NN=function(b,h){return _.Mm(b.entities,"hatsSurveyStateEntity",h)};
LRU=function(b,h){return _.Mm(b.entities,"quantityIncrementerEntity",h)};
PPr=function(b){switch(b){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_LIVE_NOW":return 11;case "BADGE_STYLE_TYPE_PREMIUM":return 6;case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":return 2;case "BADGE_STYLE_TYPE_YPC":return 9;case "BADGE_STYLE_TYPE_FEATURED":return 5;case "BADGE_STYLE_TYPE_THUMBNAIL_OVERLAY_SPECIAL":return 19;case "BADGE_STYLE_TYPE_BLUE":return 12;default:return 0}};
KRq=function(b){switch(b){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}};
ZVY=function(b){switch(b){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"}};
_.M0r=function(b){var h=_.tj("web_generic_client_event_wait_period ",0);h||(h=3E5);var y=oif.get(b);!_.r("enable_web_client_experiment_event_timeout_killswitch")&&y&&(0,_.NO)()-y<h||(oif.set(b,(0,_.NO)()),_.qi("genericClientExperimentEvent",{eventType:b}))};
_.ni4=function(b,h){var y,S,F,a;a:{var P=b.style;if(P===void 0)P=17;else switch(P){case "LIVE":P=18;break a;default:P=17}}return{type:P,text:h?K0I({seconds:h}):_.vi(b.text),accessibilityText:(y=b.text)==null?void 0:(S=y.accessibility)==null?void 0:(F=S.accessibilityData)==null?void 0:F.label,icon:(a=b.icon)==null?void 0:a.iconType}};
XKU=function(b){switch(b){case "small":return"ytCollectionsStackCollectionStack1Small";case "medium":return"ytCollectionsStackCollectionStack1Medium";case "large":return"ytCollectionsStackCollectionStack1Large";default:return""}};
HVf=function(b){if(!b)return"";var h,y=(h=_.H9().resolve(_.XS(_.cC)))==null?void 0:h(),S;if(!y&&((S=b.vibrantColorPalette)==null?0:S.iconInactiveColor))return gq(b.vibrantColorPalette.iconInactiveColor,"1");var F;return y&&((F=b.darkColorPalette)==null?0:F.iconInactiveColor)?gq(b.darkColorPalette.iconInactiveColor,"1"):b.color?gq(b.color,"1"):b.sampledThumbnailColor?(b=b.sampledThumbnailColor,"rgba("+b.red+","+b.green+","+b.blue+");"):""};
_.BC=function(b,h){if(!b.includes("DATE_PLACEHOLDER"))return b;var y=new Date(0);y.setUTCSeconds(h);return b.replace("DATE_PLACEHOLDER",uhn(y))};
OVf=function(b,h,y){return function(S){var F=b.command;F&&(Ok(F,{form:{element:y}}),h([F],S))}};
t0M=function(b,h,y,S,F){return function(a){var P=Nrn(b,h);P&&Ok(P,{form:{element:y},commandController:S});F&&a.stopPropagation()}};
Nrn=function(b,h){if(b.signInEndpoint&&!_.r("web_subscribe_sign_in_endpoint_killswitch"))return b.signInEndpoint;if(h){if(b.serviceEndpoints)return b.serviceEndpoints[1];if(b.onUnsubscribeEndpoints)return b.onUnsubscribeEndpoints[0]}else{if(b.serviceEndpoints)return b.serviceEndpoints[0];if(b.onSubscribeEndpoints)return b.onSubscribeEndpoints[0]}};
rwq=function(b,h){var y,S,F,a;h=h&&((y=b.unsubscribeAccessibility)==null?void 0:(S=y.accessibilityData)==null?void 0:S.label)||((F=b.subscribeAccessibility)==null?void 0:(a=F.accessibilityData)==null?void 0:a.label);return b.longSubscriberCountText?[h,_.vi(b.longSubscriberCountText)].filter(function(P){return P}).join(" "):h};
WC=function(b,h){return h||(b==null?0:b.isChannelDelegate)?"disabled":"active"};
cwF=function(b,h){var y;switch((y=b.style)==null?void 0:y.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:WC(b)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:WC(b)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:WC(b,!0)};case "OVERLAY":return h?{style:"overlay",type:"tonal",state:WC(b)}:{style:"overlay",type:"filled",state:WC(b)};default:return h?{style:"mono",type:"tonal",state:WC(b)}:{style:"mono",type:"filled",state:WC(b)}}};
_.AB=function(){for(var b=[],h=_.L(_.x$.apply(0,arguments)),y=h.next();!y.done;y=h.next())if(y=y.value)if(typeof y==="string")b.push(y);else{y=_.L(Object.entries(y));for(var S=y.next();!S.done;S=y.next()){var F=_.L(S.value);S=F.next().value;(F=F.next().value)&&b.push(S)}}return b.join(" ")};
RaM=function(b){switch(b){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
zaY=function(b){switch(b){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
DNr=function(b,h){var y=b.map(function(S){return S.toString()});
return _.Zv(function(S){if(y.includes(S.key)){h&&S.preventDefault();var F;(F=S.currentTarget)==null||F.click()}})};
_.IjY=function(){return DNr(["Enter"])};
_.Brn=function(){return DNr(["Enter"," "],!0)};
_.UF=function(b){if(b.composedPath)return b.composedPath();if(!b.__composedPath){for(var h=[],y=b.target;y;)h.push(y),y=y.parentNode;h.push(window);b.__composedPath=h}return b.__composedPath};
_.ph=function(b,h,y){b=_.L(b);for(var S=b.next();!S.done;S=b.next()){S=S.value;if(S===h)break;for(var F=_.L(y),a=F.next();!a.done;a=F.next())if(a=a.value,S.tagName===a||S.role==="button"&&a==="BUTTON")return!0}return!1};
Aw5=function(b,h){var y,S=(y=h.observer)!=null?y:_.H9().resolve(tR);if(b){y=WRf(b);var F=[];h.showOption&&F.push(S.observe(b,function(){h.visibilityCallback(!0,b)},h.showOption));
h.hideOption&&F.push(S.observe(b,function(){h.visibilityCallback(!1,b)},h.hideOption));
h.prescanOption&&h.prescanCallback&&F.push(S.observe(b,function(){h.prescanCallback()},h.prescanOption));
var a;y.visibilityMonitorKeys=((a=y.visibilityMonitorKeys)!=null?a:[]).concat(F)}};
WRf=function(b){var h;return(h=b.polymerController)!=null?h:b};
_.ea=function(b){return!!_.JB(b)};
_.Ch=function(b,h,y,S,F){return function(a){var P=EAq();_.Qi(function(){if(a){UNn(a,b(),F);var K=pKI(a,b(),h,y,S,P);_.m2(K)}},"lrewVd")}};
UNn=function(b,h,y){var S=Jwy(h),F=ea5(h),a=S&&T6r,P=F&&Y2M;(S||F)&&Aw5(b,{visibilityCallback:function(K){var n=_.H9().resolve(_.OM);K&&S?(n.resolveCommand(S,{form:{element:y?b:void 0},disableClickTracking:!0}),S=Jwy(h)):!K&&F&&(n.resolveCommand(F,{form:{element:y?b:void 0},disableClickTracking:!0}),F=ea5(h))},
showOption:a,hideOption:P})};
pKI=function(b,h,y,S,F,a){var P=new Map;if(h=_.JB(h)){var K;b=(S==null?void 0:(K=S.onTap)==null?void 0:K.value)||b;y=CPj(h,b,y==null?void 0:y.onTap,F,a);b.addEventListener("click",y);P.set("click",y)}return function(){for(var n=_.L(P),X=n.next();!X.done;X=n.next()){var u=_.L(X.value);X=u.next().value;u=u.next().value;b.removeEventListener(X,u)}}};
_.JB=function(b){var h;return(b=(h=_.c(b,_.gC))==null?void 0:h.onTap)&&_.YS(b)};
Jwy=function(b){var h;return(b=(h=_.c(b,_.gC))==null?void 0:h.onVisible)&&_.YS(b)};
ea5=function(b){var h;return(b=(h=_.c(b,_.gC))==null?void 0:h.onHidden)&&_.YS(b)};
CPj=function(b,h,y,S,F){var a=function(K){_.H9().resolve(_.OM).resolveCommand(b,K)},P=function(K){S&&_.ph(_.UF(K),h,S)||a(K.target?{form:{element:K.target,
sourceData:b,mutationContext:F}}:void 0)};
y&&(P=function(K){y(K,a)});
return P};
gi4=function(b){switch(b){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}};
stf=function(b){var h=b.numAvatarsInCluster;switch(b.clusterSize){case "small":return h===2?22:18;case "40":return h===2?24:22;default:return h===2?24:20}};
Ys8=function(b,h){return function(y){var S=Object.keys(h);_.Qi(function(){if(b!=null&&b()){for(var F=_.L(S),a=F.next();!a.done;a=F.next())a=a.value,y.addEventListener(a,h[a]);_.m2(function(){for(var P=_.L(S),K=P.next();!K.done;K=P.next())K=K.value,y.removeEventListener(K,h[K])})}},"bXZGfe")}};
Trj=function(b){switch(stf(b)){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""}};
G0N=function(b){switch(b){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""}};
k0N=function(b){switch(stf(b)){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""}};
V05=function(b){switch(b){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""}};
EiF=function(b){switch(b){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}};
iVU=function(b){return b==="medium"||b==="48"||b==="large"||b==="extra-large"||b==="extra-extra-large"||b==="giant"};
fjn=function(b){return!!((b==null?0:b.includes(3))||(b==null?0:b.includes(5)))};
ljn=function(b){var h=b.data;return{size:wKN(h.avatarImageSize),type:h.avatarBorderStyle==="AVATAR_BORDER_STYLE_SQUARE"?2:0,onTap:b.onTap,decorations:b.decorations||[],badgeText:b.badgeText,accessibilityText:b.accessibilityText,avatarButtonCustomClassName:b.avatarButtonCustomClassName,clusterLayoutConfig:b.clusterLayoutConfig}};
wKN=function(b){switch(b){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"}};
qs5=function(b){switch(b){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}};
xN4=function(b){switch(b){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""}};
Qtk=function(b){var h=b.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",y,S=b.avatars&&b.avatars.length>0?(y=_.c(b.avatars[0],_.sF))==null?void 0:y.avatarImageSize:"AVATAR_SIZE_UNKNOWN";y=qs5(S)||0;if(h){var F,a=(F=b.avatarClusterSize)!=null?F:"AVATAR_SIZE_M";h=qs5(a);var P,K,n=Math.min((K=(P=b.avatars)==null?void 0:P.length)!=null?K:0,4),X;return{avatars:((X=b.avatars)==null?void 0:X.slice(0,4))||[],avatarSizeInPx:y,avatarStackStyle:{width:h+"px",height:h+"px",position:"relative"},avatarStyle:function(O){var N=
stf({clusterSize:wKN(a),numAvatarsInCluster:n,avatarIndex:O});var t=qs5(a);n===3&&O===2?(t=(t-N)/2,t=(_.QC("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*t):t=void 0;return{position:"absolute",top:n===2&&O===1||n===3&&O===2||n===4&&O>=2?"0":void 0,bottom:n===2&&O===0||n>2&&O<2?"0":void 0,left:n===2&&O===1||n>2&&(O===1||O===3)?"0":void 0,right:n<=3&&O===0||n===4&&(O===0||O===2)?"0":void 0,transform:t?"translateX("+t+"px)":void 0,width:N+"px",height:N+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(O){return{clusterSize:wKN(b.avatarClusterSize),numAvatarsInCluster:n,avatarIndex:O}},
avatarButtonCustomClassName:void 0}}var u;return{avatars:((u=b.avatars)==null?void 0:u.slice())||[],avatarSizeInPx:y,avatarStackClass:"yt-avatar-stack-view-model__avatars",avatarClass:xN4(S),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model__avatar-button"}};
mNI=function(b,h,y){return function(){Ok(b,{form:{element:h},commandController:y})}};
viI=function(b){switch(b){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
b6F=function(b){switch(b){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"}};
h_f=function(b){if("accessibilityText"in b)return b.accessibilityText||"";if("title"in b){var h,y,S;return((h=b.title)==null?void 0:(y=h.accessibility)==null?void 0:(S=y.accessibilityData)==null?void 0:S.label)||""}if("accessibility"in b){var F,a;return((F=b.accessibility)==null?void 0:(a=F.accessibilityData)==null?void 0:a.label)||""}return""};
y$N=function(b){return"inlinePlayerData"in b};
Yr=function(b){return new SrM(b)};
F95=function(b){switch(b){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"}};
azq=function(b){switch(b){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 9;case "BADGE_STATUS_NEW":return 12;case "BADGE_PREMIUM":return 6;case "BADGE_PROMOTED":return 3;case "BADGE_PROMOTED_INVERTED":return 4;case "BADGE_MEDIA":return 1;default:return 0}};
d2n=function(b){switch(b){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}};
jCn=function(b){return function(h){b&&(b.thumbnailElRef=h.thumbnailElRef,b.thumbnail=h.thumbnail,b.thumbnailOverlays=h.thumbnailOverlays,b.thumbnailSize=h.thumbnailSize)}};
$2Y=function(b){switch(b){case 1:return"ytThumbnailViewModelAspectRatio2By3";case 4:return"ytThumbnailViewModelShortsAspectRatio9By16";case 3:return"ytThumbnailViewModelAspectRatio1By1";default:return"ytThumbnailViewModelAspectRatio16By9"}};
P1f=function(b){var h=_.L(_.pa(!1,void 0,"E6wDDe")),y=h.next().value,S=h.next().value;_.wg(function(){var F=b==null?void 0:b();if(F){var a=_.H9().resolve(_.XS(L9f));if(a){var P={triggeringElement:F,onDwellTriggeredFn:function(){S(!0)},
onDwellEndFn:function(){S(!1)}};
a.registerElement(P);_.m2(function(){_.To(a,P)})}}});
return y};
K9I=function(b,h,y){y?y(h):_.Va(h,b.target?{form:{element:b.target}}:void 0)};
_.Go=function(b,h,y,S){return function(F){_.Qi(function(){function a(u){u=u.composedPath();u=_.L(u);for(var O=u.next();!O.done;O=u.next()){O=O.value;if(O===F)break;if(O.className.indexOf("HostIsClickableAdComponent")>=0||O.tagName==="A".toString()||O.tagName==="BUTTON".toString())return!0}return!1}
var P=new Map,K,n=(K=b())==null?void 0:K.onTap;if(n){K=function(u){a(u)||K9I(u,n,h)};
var X=function(u){a(u)||u.key!=="Enter"||K9I(u,n,h)};
(y==null?0:y())||_.r("enable_web_home_top_landscape_image_layout_level_click")?(F.addEventListener("tap",K),P.set("tap",K)):(F.addEventListener("click",K),P.set("click",K));if(S==null?0:S())F.addEventListener("keydown",X),P.set("keydown",X)}_.m2(function(){for(var u=_.L(P),O=u.next();!O.done;O=u.next()){var N=_.L(O.value);O=N.next().value;N=N.next().value;F.removeEventListener(O,N)}})},"D7XqOc")}};
Z6N=function(b,h){var y,S=(y=b.interaction)==null?void 0:y.onTap;if(b=_.GK({elementsCommand:S,forceNewState:!0,skipOnClick:!0}))return b.onclick=function(F){rsj(F)&&(F.preventDefault(),S&&K9I(F,S,h))},kS(b)?b:void 0};
ot4=function(b){switch(b){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
MBj=function(b){switch(b){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"}};
ntU=function(b){switch(b){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"}};
_.XhM=function(b){return _.r("rich_grid_enable_dynamic_offset")&&b?Math.max((b-_.tj("rich_grid_dynamic_offset_anchor_width",1300))/100*_.tj("rich_grid_dynamic_offset_offset_per_100",10),_.tj("rich_grid_dynamic_offset_lower_bound",-60)):0};
H64=function(b,h){switch(h){case 4:return 16;case 1:return b<528?16:b<1024?32:48;case 2:return(b>=528?16:8)/2;case 3:return(b<528?16:b<1024?32:48)+(b>=528?16:8)/2;default:return 0}};
uGk=function(b){var h=b.originalContainerWidth;var y=b.sizing;var S=b.standardUnit;if(b.isCompactList&&h<528)return 1;switch(y){case "STANDARD":return S;case "COMPACT":return S+1;case "EXTRA_COMPACT":return _.r("web_responsive_extra_compact_2x")?S*2:_.r("web_responsive_current")?S===1?2:S%2===0?S/2*3:S+2:S<4?S*2:Math.ceil(S*3/2);case "MINI":return S>1?S*2:3;default:return S}};
N9q=function(b){var h=b.containerWidth;var y=b.peek;var S=b.gutter;var F=b.numItems;b=b.ignoreMaxWidthLimit;h=y?Math.max((h-y-S*F)/F,0):Math.max((h-S*(F-1))/F,0);return b?h:Math.min(h,O6f)};
_.kr=function(b){var h=b.containerWidth;var y=b.hasPeek;var S=b.sizing;var F=b.marginSettings;var a=b.isCompactList;var P=b.enableFullBleedForSingleCol;var K=b.standardUnitMinWidth;S=S||"STANDARD";y=!!y;b=h>=528?16:8;var n=y?h>=528?48:24:0;F=H64(h,F);var X=Math.max(h-F*2,0);K=_.r("kevlar_disable_min_width_override")?void 0:K;K=Math.min(Math.max(Math.floor((X-n+b)/((K!=null?K:tBI)+_.XhM(h)+b)),1),6);var u=(P=!!P&&K===1)||K===1&&S!=="STANDARD";y=y||u?X:Math.min(X,(O6f+b)*K-b);S=uGk({originalContainerWidth:h,
sizing:S,standardUnit:K,isCompactList:a});return{itemWidth:N9q({containerWidth:y,peek:n,gutter:b,numItems:S,ignoreMaxWidthLimit:u}),gutter:b,maxContainerWidth:y,numItems:S,margin:P?0:F,contentMargin:H64(h,1),typographyBump:N9q({containerWidth:y,peek:n,gutter:b,numItems:K,ignoreMaxWidthLimit:u})>400&&!(a&&h<528),standardUnit:K}};
Ve=function(b){switch(b){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.r$f=function(b){if(b){var h;if((h=b.responsiveContainerConfiguration)==null?0:h.responsiveSize)return Ve(b.responsiveContainerConfiguration.responsiveSize);if(b.layoutSizing)switch(b.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"}}};
c$4=function(b){if(b.fullbleed)return 1;switch(b.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
B9k=function(b,h,y,S,F,a,P,K,n){a:if(b===4&&S==="LOCKUP_CONTENT_TYPE_SOURCE")var X=1;else switch(b){case 3:X=1;break a;default:X=0}var u=R_8(b,S);a:switch(b){case 4:a=!!(a&&a<100);break a;default:a=!1}a:switch(b){case 3:case 4:var O=S==="LOCKUP_CONTENT_TYPE_CHANNEL"||S==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:O=!1}return{metadataOnThumbnail:u,isOverlay:K||u,isCard:z_4(S,P),sizing:h!=null?h:"STANDARD",typographyBump:y!=null?y:!1,isTiny:a,isCentered:O,isCollection:D2F(S),arrangement:X,addMarginForFullbleed:b===
1&&S!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:b===1&&S==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:Izk(S,F,n),disableRounding:b===5||z_4(S,P)||b===1&&S==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:D2F(S)?2:0,useLegacyTypography:!(n==null||!n.useLegacyTypography),useRichGridLegacyTypography:!(n==null||!n.useRichGridLegacyTypography)&&!_.r("web_enable_typography_bump"),compactMetadata:X===0&&S==="LOCKUP_CONTENT_TYPE_VIDEO",onFocusEffect:n==null?void 0:n.onFocusEffect,titleMaxLines:S==="LOCKUP_CONTENT_TYPE_AI_CARD"?
1:void 0}};
D2F=function(b){switch(b){case "LOCKUP_CONTENT_TYPE_PLAYLIST":case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":case "LOCKUP_CONTENT_TYPE_MIX":case "LOCKUP_CONTENT_TYPE_STATION":return!0;default:return!1}};
z_4=function(b,h){if(h&&b==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(b){case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_AI_CARD":return!0;default:return!1}};
R_8=function(b,h){if(h==="LOCKUP_CONTENT_TYPE_AI_CARD")return!0;switch(b){case 5:return!0;case 4:return!1;default:return!1}};
Izk=function(b,h,y){if(h&&(y==null||!y.alwaysRespectPodcastShowAspectRatio||b!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(b){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}};
_.EF=function(b){if(b){var h;return((h=_.H9().resolve(_.XS(_.cC)))==null?0:h())?b.darkThemeImage:b.image}};
U2y=function(b,h,y,S,F,a){if(F&&a&&h==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:F,height:a};if(!y)return{};F=y.size;y=y.allowFullWidth;if(h==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&y)return{fullWidth:!0};if(F===void 0)return{};switch(b){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:F,height:F};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:F,height:1/W9F*F};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:F*
A$y,height:F};default:return(S==null?0:S.height)&&(S==null?0:S.width)?S.width/S.height>1?{maxWidth:F*A$y}:{maxWidth:F}:{maxWidth:F}}};
ph4=function(b){var h;return b&&((h=_.EF(b.themedImage))!=null?h:b.image)};
J$5=function(b){var h;return b==null?void 0:(h=b.sources)==null?void 0:h[0]};
e_j=function(b){switch(b){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"}};
_.C1F=function(b){if(b)return"content-id-"+b};
gtN=function(b){switch(b.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"}}};
sCn=function(b){var h=_.iM.currentPageSubTypeSelector(_.mc().getState())||"";return b?b+h:""};
YrI=function(b){switch(b){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
Gg8=function(b){var h=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],y=_.L(_.pa(void 0,void 0,"JrqNsb")),S=y.next().value,F=y.next().value,a=_.L(_.pa(void 0,void 0,"rWytse"));y=a.next().value;var P=a.next().value;a=_.L(_.pa(void 0,void 0,"DHRqxe"));var K=a.next().value,n=a.next().value;return{touchFeedbackEvents:{pointerUpEvent:S,pointerDownEvent:y,pointerLeaveEvent:K},touchFeedbackOnPointerUp:_.Zv(function(X){T9j(_.UF(X),h)||(F(X),P(void 0),n(void 0))}),
touchFeedbackOnPointerDown:_.Zv(function(X){b==null||b(X);T9j(_.UF(X),h)||(P(X),F(void 0),n(void 0))}),
touchFeedbackOnPointerLeave:_.Zv(function(X){T9j(_.UF(X),h)||(n(X),P(void 0),F(void 0))})}};
T9j=function(b,h){h=h===void 0?[]:h;h=[].concat(_.f$(h),["BUTTON".toString()]);b=_.L(b);for(var y=b.next();!y.done;y=b.next()){y=y.value;for(var S=_.L(h),F=S.next();!F.done;F=S.next())if(y.tagName===F.value)return!0}return!1};
kgk=function(b){switch(b){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"}};
VBN=function(b){return b.scrollHeight-b.offsetHeight>1};
EtN=function(b,h){var y;return wU(b,((y=b.content)==null?void 0:y.length)||0,!h)};
wh5=function(b,h,y,S,F,a){if(!h||i6n){var P;return wU(b,((P=b.content)==null?void 0:P.length)||0,!0)}h=S.value;if(!y.value||!h||!b.content)return b;y=0;S=b.content.length;P=0;fzq||(fzq=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var K=fzq;for(F=F*a*K;y<=S;)a=Math.floor(y+(S-y)/2),K=wU(b,a)||b,h.firstChild&&(h.firstChild.textContent=K.content),h.scrollHeight>F?S=a-1:(P=a,y=a+1);return wU(b,P)};
lzk=function(b,h){var y,S;return(((y=b.content)==null?void 0:y.length)||0)>(((S=h.content)==null?void 0:S.length)||0)};
qrj=function(b,h,y,S,F,a){var P=_.ZR("truncated-text-content"),K=_.ZR("truncated-text-content"),n=_.ZR("button"),X=_.ZR("button"),u=_.ZR("button"),O=_.H9().resolve(_.fh),N=_.L(_.ya(function(){return EtN(b(),F())})),t=N.next().value,R=N.next().value;
N=_.L(_.ya(function(){return lzk(b(),t())}));
var I=N.next().value,U=N.next().value,p=null;_.Qi(function(){function e(){if(P.value&&n.value&&u.value){var w=a()?b():wh5(b(),F(),P,K,h(),y());R(w);requestAnimationFrame(function(){if(P.value&&n.value&&u.value){var x=VBN(P.value)||lzk(b(),w);U(x);if(!S()){var q=VBN(P.value),dI=y(),L4=P.value,Rq=n.value,Xn=u.value,Ny=O==="rtl";if(L4&&Rq){var gI=Rq.offsetLeft;Ny&&(gI=L4.offsetWidth-Rq.offsetWidth-Rq.offsetLeft);if(x){x=Rq.offsetWidth;Rq=L4.offsetWidth;var YU=q?Rq-x-70:gI-70;dI="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
dI+"rem,\n      #000 "+dI+"rem,\n      #000 100%), linear-gradient(\n      to "+((Ny?"left":"right")+",\n      #000 0px,\n      #000 "+YU+"px,\n      transparent "+(q?Rq-x:YU+70)+"px)");L4.style.setProperty("-webkit-mask-image",dI);L4.style.setProperty("mask-image",dI)}else L4.style.setProperty("-webkit-mask-image",""),L4.style.setProperty("mask-image","");q?Ny?(Xn.style.setProperty("left","0"),Xn.style.setProperty("right","unset")):(Xn.style.setProperty("left",""),Xn.style.setProperty("right","0")):
Ny?(Xn.style.setProperty("left","unset"),Xn.style.setProperty("right",gI+"px")):(Xn.style.setProperty("left",gI+"px"),Xn.style.setProperty("right","unset"))}}}})}}
var E,Y;(E=p)==null||(Y=E.stop)==null||Y.call(E);E=new _.MG(e,17);e();p=E},"KjwIxd");
_.wg(function(){R(EtN(b(),F()));U(lzk(b(),t()));var e=function(){fzq=void 0;var Y,w;(Y=p)==null||(w=Y.fire)==null||w.call(Y)};
if(window.ResizeObserver){var E=new ResizeObserver(e);E.observe(P.value);_.m2(function(){var Y,w;(Y=p)==null||(w=Y.stop)==null||w.call(Y);E.disconnect()})}else window.addEventListener("resize",e),_.m2(function(){var Y,w;
(Y=p)==null||(w=Y.stop)==null||w.call(Y);window.removeEventListener("resize",e)})});
return{isTruncated:I,displayText:t,contentRef:P,hiddenRef:K,placeholderTruncationTextRef:n,hiddenTruncationTextRef:X,truncationTextRef:u}};
x2j=function(b){return{content:b!=null?b:""}};
QCy=function(b){return _.YS(b.onTap)||_.JB(b.rendererContext)};
m2y=function(b){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:b.overflowMenuA11yLabel,onTap:function(h){h.preventDefault();h.stopPropagation();if(b.overflowMenuOnTap){var y=_.GK({elementsCommand:b.overflowMenuOnTap,forceNewState:!0});if(y==null?0:y.onclick)y.onclick(h)}}}};
_.wC=function(b,h,y,S,F){S=S===void 0?{}:S;if(!F||Math.random()<5E-4){h=h||null;y=y||null;b=b instanceof Error?b:new _.Gn(b);if(b.args)for(var a=_.L(b.args),P=a.next();!P.done;P=a.next())P=P.value,P instanceof Object&&(S=Object.assign({},P,S));S.category="H5 Ads Control Flow";h&&(S.slot=h?"slot:  "+h.slotType:"");y&&(S.layout=y?"layout:  "+y.layoutType:"",S.layoutId=y.layoutId);F&&(S.known_error_aggressively_sampled=!0);b.args=[S];_.vX(b)}};
_.vtq=function(b,h){h=_.SI(h);_.F8(b,"yt-open-popup-action",[h,b])};
_.lM=function(b,h){_.vtq(b,_.mk(h))};
h5N=function(b){if(!b)return"";if(b38[b])return b38[b];qn||(qn=_.gB("A"));qn.href!==b&&mA(qn,b);var h=qn.pathname;b38[b]=h.startsWith("/")?h:"/"+h;return b38[b]};
ycU=function(){var b=h5N(window.location.href);if(b==="/")return"home";if(b.startsWith("/results"))return"search";if(b.startsWith("/watch"))return"watch";if(b.startsWith("/shorts"))return"shorts";if(b.startsWith("/hashtag"))return"hashtag";if(b.startsWith("/create_channel"))return"create_channel";if(b.startsWith("/@")||b.startsWith("/user/")||b.startsWith("/channel/"))return"channel";if(b.startsWith("/experiments"))return"experiments";if(b.startsWith("/sponsor_channel"))return"sponsorship";if(b.startsWith("/select_site"))return"settings";
if(b.startsWith("/locate"))return"locate";if(b.startsWith("/redeem"))return"redeem";if(b.startsWith("/musicpremium")||b.startsWith("/premium")||b.startsWith("/red"))return"premium";if(b.startsWith("/paid_memberships"))return"paid_memberships";if(b.startsWith("/oops"))return"oops";if(b.startsWith("/clip"))return"clip";var h;return(xr==null?void 0:(h=xr.response)==null?void 0:h.page)==="404"?"404":b.startsWith("/feed/history")?"history":b.startsWith("/feed/library")?"library":b.startsWith("/feed/subscriptions")?
"subscriptions":b.startsWith("/feed/trending")?"trending":b.startsWith("/feed/news_destination")?"news":b.startsWith("/playlist")?"playlist":b.startsWith("/minor_moment")?"minor_moment":b.startsWith("/playable/")||b.match("^/playables/(?!saved).")?"mini_app":b.startsWith("/playables")?"playables":b.startsWith("/create/live/join")?"open_in_app":b.startsWith("/feed/explore")?"explore":"browse"};
_.ml=function(){var b=xr==null?void 0:xr.response,h=b==null?void 0:b.endpoint;if(!h)return(b==null?void 0:b.page)==="watch"?"watch":ycU();var y;b=(y=_.c(h==null?void 0:h.commandMetadata,_.ZW))==null?void 0:y.webPageType;y=!1;if(b&&!Sm8.includes(b))switch(b){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 S;return((S=_.c(h==null?void 0:h.commandMetadata,_.ZW))==null?0:S.url)&&h5N(_.c(h.commandMetadata,_.ZW).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var F;return(h=(F=_.c(h,_.O0))==null?void 0:F.browseId)?Fa8[h]||"browse":"browse";default:y=!0}if(_.c(h,_.Qe)||_.c(h,akI))return"sponsorship";F=h5N(window.location.href);if(F.startsWith("/experiments"))return"experiments";if(F.startsWith("/create_channel"))return"create_channel";
if(_.c(h,_.jH)&&F.startsWith("/shorts"))return"shorts";if(_.c(h,_.jH)&&F.startsWith("/watch"))return"watch";y&&(h=new _.Gn("Unsupported mWeb page type",{pathname:F,webPageType:b}),_.QT(h));return"browse"};
vC=function(b,h,y,S){return b&&h?b!==y||h!==S?(_.wC(Error("Lh"),void 0,void 0,{"stored-slot":b,"stored-layout":h,"latest-slot":y,"latest-layout":S}),!1):!0:!1};
jjf=function(b,h,y){return b({targetId:h},function(S){return y.slot==="RELOAD_CONTINUATION_SLOT_REPLACE_SELF"?Object.assign({},S,{contents:[y.continuationItems?_.c(y.continuationItems[0],dvy):{}]}):y.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},S,{header:y.continuationItems?y.continuationItems[0]:void 0}):Object.assign({},S,{contents:y.continuationItems?y.continuationItems:[]})})};
$vr=function(b,h,y,S){if(h=h.trackingParams){var F,a=(F=y.getScreenLayer)==null?void 0:F.call(y);y=_.UE(a);F=_.Ae(a);if(y&&F){var P=_.I_(h);_.r("combine_ve_grafts")?b.graftServerVe(h,F,a):_.Vh(y,F,P);S==null||S(P)}}};
P8j=function(b){var h;return((h=Laf.get(b))==null?void 0:h.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
ohk=function(b,h){var y={type:h.slotType,controlFlowManagerLayer:KaU.get(h.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};h.slotEntryTrigger&&(y.entryTriggerType=h.slotEntryTrigger.triggerType);h.slotPhysicalPosition!==1&&(y.slotPhysicalPosition=h.slotPhysicalPosition);if(b){y.debugData={slotId:h.slotId};if(b=h.slotEntryTrigger)y.debugData.slotEntryTriggerData=Z3Y(b);b=h.slotFulfillmentTriggers;y.debugData.fulfillmentTriggerData=[];b=_.L(b);for(var S=b.next();!S.done;S=b.next())y.debugData.fulfillmentTriggerData.push(Z3Y(S.value));
h=h.slotExpirationTriggers;y.debugData.expirationTriggerData=[];h=_.L(h);for(b=h.next();!b.done;b=h.next())y.debugData.expirationTriggerData.push(Z3Y(b.value))}return y};
Z3Y=function(b,h){var y={type:b.triggerType};h!=null&&(y.category=h);b.triggeringSlotId!=null&&(y.triggerSourceData||(y.triggerSourceData={}),y.triggerSourceData.associatedSlotId=b.triggeringSlotId);b.triggeringLayoutId!=null&&(y.triggerSourceData||(y.triggerSourceData={}),y.triggerSourceData.associatedLayoutId=b.triggeringLayoutId);return y};
Mfy=function(b,h,y,S){h={opportunityType:h};b&&(S||y)&&(S=_.qz(S||[],function(F){return ohk(b,F)}),h.debugData=Object.assign({},y&&y.length>0?{associatedSlotId:y}:{},S.length>0?{slots:S}:{}));
return h};
nh5=function(b){return bq(b.opportunityAdapterMap).concat(bq(b.triggerAdapterMap)).concat(bq(b.fulfillmentAdapterFactoryMap)).concat(bq(b.slotAdapterFactoryMap)).concat(bq(b.layoutRenderingAdapterFactoryMap))};
bq=function(b){var h=[];b=_.L(b.values());for(var y=b.next();!y.done;y=b.next())y=y.value,y.isAdsControlFlowEventListener&&h.push(y);return h};
yH=function(b){var h=b.slotId,y=b.slotType,S=b.slotPhysicalPosition;return h===void 0?new hF("Cannot construct a slot due to the missing id.",{adSlotMetadata:b}):y===void 0?new hF("Cannot construct a slot due to the missing type.",{adSlotMetadata:b}):S===void 0?new hF("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:b}):{slotId:h,slotType:y,slotPhysicalPosition:S,managerLayer:"external",adSlotLoggingData:b.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new XUM}};
H3q=function(b){var h=b.layoutId,y=b.layoutType;return h===void 0?new SD("Cannot construct a layout due to the missing id.",{adLayoutMetadata:b}):y===void 0?new SD("Cannot construct a layout due to the missing type.",{adLayoutMetadata:b}):{layoutId:h,layoutType:y,managerLayer:"external",adLayoutLoggingData:b.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new XUM,interactionLoggingAdsClientData:{}}};
uPI=function(b){if(b.querySelector("img")){var h=b.querySelector("img");h.addEventListener("error",function(){wZq(h.src).then(function(y){(y=_.q9(y).toString())?h.src=y:h.removeAttribute("src")}).catch(function(){h.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
ar=function(b,h){if(h&&(O38(h.viewableCommand)||O38(h.endOfSessionCommand))){var y=NKf(h==null?void 0:h.viewableCommand);h=NKf(h==null?void 0:h.endOfSessionCommand);if(!Fs){var S=_.tj("custom_active_view_tos_timeout_ms");Fs=S>0&&S!==36E5?new tfy(rcU(),S):new tfy(rcU())}ccF(Fs,b);R5N(Fs,b,y,h)}};
dx=function(b){Fs&&ccF(Fs,b)};
rcU=function(){var b=_.QC("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(b==null?void 0:b.length)===2?b[1]:null};
O38=function(b){b=_.YS(b);return!(b==null||!b.loggingUrls)&&b.loggingUrls.length>0};
NKf=function(b){if(!b)return[];var h=[],y,S;((S=(y=_.YS(b))==null?void 0:y.loggingUrls)!=null?S:[]).forEach(function(F){F.baseUrl&&h.push(F.baseUrl)});
return h};
z5U=function(b){if(_.r("stop_av_measurement_on_detach"))return function(){dx(b)}};
DvY=function(b){return function(){_.r("stop_av_measurement_on_detach")&&dx(b)}};
IkU=function(b){if(_.r("stop_av_measurement_on_detach"))return function(){dx(b)}};
BKq=function(b){return b.shorts.isDesktopSmallWidth};
_.Waj=function(b){return b.shorts.isShortsActive};
_.AcF=function(b){return b.shorts.isWatchWhileMode};
_.jD=function(b){return b.shorts.isFullscreen};
_.$G=function(b){return b.shorts.isShortsPipActive};
pUN=function(b){var h,y;if(b=(h=_.c(b.reelsAdCardButtoned,UvU))==null?void 0:(y=h.animatedRenderingConfig)==null?void 0:y.easeOutSeconds)return b+"s"};
e5q=function(b,h,y){return _.Z(function(S){return S.return(new Promise(function(F){var a=new Image;a.onload=function(){F(new Jck(b,h,y,a.naturalWidth,a.naturalHeight))};
a.src=y.toString()}))})};
C8k=function(b,h){return Math.round(b/1E-5)===Math.round(h/1E-5)};
ghF=function(b,h){return Math.round(b/1E-5)===Math.round(h/1E-5)};
sjM=function(b,h){return b.year===h.year&&b.month===h.month&&b.day===h.day};
Ymq=function(b,h){return b.year!==h.year?b.year<h.year:b.month!==h.month?b.month<h.month:b.day<h.day};
GX5=function(b){return b.day===TKj(b.year,b.month)?b.month===11?{year:b.year+1,month:0,day:1}:{year:b.year,month:b.month+1,day:1}:{year:b.year,month:b.month,day:b.day+1}};
kXF=function(){var b=new Date,h={year:b.getFullYear(),month:b.getMonth(),day:b.getDate()};return{start:h,end:{year:b.getFullYear()+2,month:b.getMonth(),day:b.getDate()},selectedDate:GX5(h)}};
VfY=function(b){return(new QE(2)).format(new Date(b.year,b.month,b.day))};
Eh8=function(b){return{year:b.getFullYear(),month:b.getMonth(),day:b.getDate()}};
i3F=function(b,h){b=(b+(Number(h.utcOffsetSec)+(new Date(b*1E3)).getTimezoneOffset()*60))*1E3;h=Eh8(new Date(b));return{date:h,secondsSinceMidnight:Math.floor((b-(new Date(h.year,h.month,h.day)).getTime())/1E3)}};
fkj=function(b,h){h=h.months.findIndex(function(y){return y.year===b.year&&y.month===b.month});
return h>=0?h:void 0};
wU8=function(b){if(!b)return!1;try{if(b.host&&b.host.tagName==="YT-FORMATTED-STRING"&&b.host.id==="contenteditable-textarea"||b.nodeType===Node.ELEMENT_NODE&&b.tagName==="YTD-COMMENTBOX")return!0}catch(h){return!1}return wU8(b.parentNode)};
Lw=function(b){return b?!(b.tagName!=="A"||!b.href||!b.classList.contains("yt-simple-endpoint")):!1};
lkU=function(b){return b?b.tagName==="IMG"&&b.classList.contains("emoji"):!1};
qmN=function(b,h,y){if(!b)return null;var S=Lw(b);if(S&&y)return h=b.pathname.substring(b.pathname.indexOf("/channel/")+9),document.createTextNode("@"+h);if(S&&!y)return document.createTextNode("");if(lkU(b))return y=b.alt,b=b.dataset.emojiId,!b&&h&&(h=_.PV(h,y))&&h.isCustomEmoji&&(b=h.emojiId),b?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+b+">"):document.createTextNode(y);S=b.cloneNode(!1);for(var F=0;F<b.childNodes.length;++F){var a=qmN(b.childNodes[F],h,y);a&&S.appendChild(a)}return S};
Kw=function(b){return b?Lw(b)?b:Kw(b.lastChild):null};
xv5=function(b){return b?Lw(b)?b:xv5(b.firstChild):null};
QjF=function(b){if(!b)return null;for(var h=b.previousSibling;h;)if(h.nodeType===Node.ELEMENT_NODE&&h.nodeName==="BR")h=h.previousSibling;else if(h.nodeType===Node.TEXT_NODE&&/\s+/.test(h.textContent))h=h.previousSibling;else break;(h=Kw(h))?b=h:b=(b=b.parentNode)?Kw(b.previousElementSibling):null;return b};
mvN=function(b){if(!b)return null;for(var h=b.nextSibling;h;)if(h.nodeType===Node.ELEMENT_NODE&&h.nodeName==="BR")h=h.nextSibling;else if(h.nodeType===Node.TEXT_NODE&&/\s+/.test(h.textContent))h=h.nextSibling;else break;return(h=xv5(h))?h:mvN(b.parentNode)};
vhk=function(b){var h=_.ZA(),y=h.JSC$11530_getStartNode();if(!wU8(y.parentNode))return null;h=h.JSC$11530_getStartOffset();if(y.nodeType===Node.TEXT_NODE){var S=_.b5(y,Lw);if(S){if(b&&h===0||!b&&h===y.length)return S}else{if(b&&h===y.length)return!y||y.nodeName==="BR"||y.nextElementSibling&&_.or(y.nextElementSibling,"display")==="block"?null:xv5(y.nextElementSibling);if(!b&&h===0)return y?Kw(y.previousElementSibling):null}}if(y.nodeType===Node.ELEMENT_NODE)if(b){if(0<=h&&h<y.childNodes.length)return xv5(y.childNodes[h])}else if(0<
h&&h<=y.childNodes.length)return Kw(y.childNodes[h-1]);return null};
bBf=function(b,h,y){if(!b)return null;if(b.nodeType===Node.TEXT_NODE)if(y){var S=QjF(b);if(S&&!/^\s+\S/.test(b.wholeText.substr(0,h)))return S}else if((S=mvN(b))&&!/\S\s+/.test(b.wholeText.substr(h,b.wholeText.length)))return S;return b.nodeType===Node.ELEMENT_NODE?y?QjF(b.childNodes[h]):mvN(b.childNodes[h]):bBf(b.parentNode,h,y)};
hBM=function(b){if(b.hasChildNodes())switch(b.tagName){case "DIV":case "A":case "SPAN":var h="";for(b=b.firstChild;b;b=b.nextSibling)h+=hBM(b);return h;default:return""}else switch(b.nodeType){case 3:return b.textContent;default:return""}};
MD=function(b,h){return b.year===h.year&&b.month===h.month&&b.day===h.day};
nw=function(b,h){return b.year!==h.year?b.year<h.year:b.month!==h.month?b.month<h.month:b.day<h.day};
ynI=function(b){return{year:b.getFullYear(),month:b.getMonth(),day:b.getDate()}};
Sxy=function(b){var h=Oey;h=h===void 0?Oey:h;h(new Date(b.year,b.month,b.day))};
Xs=function(b){return ynI(new Date(Number(b.seconds)*1E3))};
F7y=function(b){return b.year!==void 0&&b.month!==void 0&&b.day!==void 0};
au5=function(b){return b.start!==void 0&&b.end!==void 0};
d7f=function(b){return au5(b)?b.start:b};
j1Y=function(b){return au5(b)?b.end:void 0};
L7Y=function(b,h){for(var y=[],S=new Date(b.start.year,b.start.month);S.getFullYear()<b.end.year||S.getFullYear()===b.end.year&&S.getMonth()<=b.end.month;){var F=y,a=F.push,P=S.getFullYear(),K=S.getMonth(),n=b,X=h,u=void 0,O=[],N=Object.freeze({extraCssClass:"invisible"}),t=new Date(P,K),R=ynI(t);t=t.getDay();for(var I=ynI(new Date);R.month===K;){t!==$7y&&u||(u=Array.from({length:7}).fill(N),O.push(u));var U={date:{year:P,month:K,day:R.day},extraCssClass:"",debugClass:""};U.extraCssClass=X(U.date,
R,I,n).trim();u[(t-$7y+7)%7]=U;R=R.day===TKj(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};t=(t+1)%7}a.call(F,{weeks:O,monthLabel:HV.SHORTMONTHS[K]+" "+P,year:P,month:K,monthLabelExtraCssClass:O[0][2]===N?"shift-down-label":""});S.setMonth(S.getMonth()+1)}return y};
PO4=function(b,h){h=h.months.findIndex(function(y){return y.year===b.year&&y.month===b.month});
return h>=0?h:void 0};
ZBN=function(b,h){a:{var y=y===void 0?[2,3]:y;y=_.L(y);for(var S=y.next();!S.done;S=y.next()){var F=new Date;if((new K7y(S.value)).parse(h,F,{validate:!0})){F.setHours(0,0,0,0);h=F;break a}}h=null}if(!h)return{isValid:!1,value:void 0};h=ynI(h);y=b.end;return nw(h,b.start)||nw(y,h)?{isValid:!1,value:void 0}:{isValid:!0,value:h}};
HBj=function(b){var h=o4M;h=h===void 0?MTf:h;var y=b.columnsToShow||[],S=n44(b.columnDimensions,b.columnsToShow,b.leftFloatingColumns,h);return y.map(function(F,a){var P=b.columns[F];if(P===void 0)throw Error("Rh");var K=S?S[a]:"";var n=b.getCustomTooltip?b.getCustomTooltip(F,P.headerTooltipParagraphs):P.headerTooltipParagraphs;var X=Xrq(b,F);return{type:F,index:a,style:K,classes:X,headerName:P.headerName||"",headerIcon:P.headerIcon,headerTooltipParagraphs:n||[],headerTooltipHelpContext:P.headerTooltipHelpContext,
sortOrders:P.sortOrders||[],selectionState:P.isSelectionCheckbox?b.selectionState:void 0}})};
Xrq=function(b,h){var y=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],S=b.columns[h];if(S===void 0)return"";var F=y.includes("DEFAULTS")&&S.cssClass?[S.cssClass]:[];if(y.includes("SORTING")){S.sortOrders&&S.sortOrders.length&&F.push("sortable");if(b.sorting&&b.sorting.columnType===h)a:switch(b.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var a="column-sorted";break a;default:a=""}else a="";a&&F.push(a)}y.includes("FLOATING")&&(h=b.columnsToShow.indexOf(h),b.leftFloatingColumns&&h<b.leftFloatingColumns&&
F.push("floating-column"),b.leftFloatingColumns&&h===b.leftFloatingColumns-1&&F.push("last-floating-column"));y.includes("RIGHT_ALIGN")&&S.rightAlignHeader&&F.push("right-align");return F.filter(function(P){return P}).join(" ")};
n44=function(b,h,y,S){y=y===void 0?0:y;S=S===void 0?MTf:S;if(b){var F=[],a=0;uTY(b,h,S).forEach(function(P,K){var n="min-width:"+P.minWidth+"px;padding-left:"+P.paddingLeft+"px;padding-right:"+P.paddingRight+"px;flex:"+P.flexGrow+" 0 "+P.minWidth+"px;";P.maxWidth!==Infinity&&(n=[n,"max-width:"+P.maxWidth+"px;"].join(""));a>0&&K<y&&(n=[n,"left:"+a+"px;"].join(""));F.push(n);a+=P.minWidth+P.paddingLeft+P.paddingRight});
return F}};
uTY=function(b,h,y){y=y===void 0?MTf:y;return h.map(function(S,F){S=b&&b[S]||{};var a=F===0?y.paddingLeftFirstColumn:y.padding;S.paddingLeft!==void 0&&(a=S.paddingLeft);F=F===h.length-1?y.paddingRightLastColumn:y.padding;S.paddingRight!==void 0&&(F=S.paddingRight);return{paddingLeft:a,paddingRight:F,minWidth:S.minWidth!==void 0?S.minWidth:y.minWidth,maxWidth:S.maxWidth!==void 0?S.maxWidth:y.maxWidth,flexGrow:S.flexGrow!==void 0?S.flexGrow:y.flexGrow}})};
OB8=function(b){var h=b.reduce(function(S,F){var a=F.columnId,P={};F.headerText&&(P.headerName=_.vi(F.headerText));F.rightAlignHeader&&(P.rightAlignHeader=F.rightAlignHeader);var K;if((K=F.headerIcon)==null?0:K.iconType)P.headerIcon=_.o_(F.headerIcon.iconType);S[a]=P;return S},{}),y=b.filter(function(S){return!S.hideColumn}).map(function(S){return S.columnId});
b=b.filter(function(S){return!!S.dimensions}).reduce(function(S,F){S[F.columnId]=F.dimensions;
return S},{});
return{columns:h,columnsToShow:y,columnDimensions:b}};
_.NiM=function(b){return b?b.simpleText?b.simpleText:b.runs?b.runs.map(function(h){return h.text}).join(""):"":""};
D7y=function(b){var h=b.data;var y=b.onTap;var S=b.isSelected;var F=b.onFocusIn;if(!h)return{};b=tTj(h);S===void 0&&(S=h==null?void 0:h.isSelected);var a;return{text:rnj(h,b),startIcon:(a=h.icon)==null?void 0:a.iconType,state:S?0:2,type:0,style:cnU(h),onTap:RBk(h,y),accessibilityLabel:zB4(h,b),onFocusIn:function(){return F==null?void 0:F()}}};
rnj=function(b,h){if(!h)return b.text?_.NiM(b.text):void 0};
cnU=function(b){var h;switch((h=b.style)==null?void 0:h.styleType){case "STYLE_AI_CUSTOMIZED_FEED_CHIP":return 0}};
RBk=function(b,h){return function(y){h==null||h(y,b)}};
tTj=function(b){b=b.style&&b.style.styleType;return!i6n&&b==="STYLE_EXPLORE_LAUNCHER_CHIP"};
zB4=function(b,h){if(h){var y,S,F;return(F=(y=b.accessibilityData)==null?void 0:(S=y.accessibilityData)==null?void 0:S.label)!=null?F:rnj(b,!1)}};
Iuq=function(){var b;return[function(h,y,S){return _.Sx(b,h,y,S)},
function(h){b=h}]};
BiI=function(b,h){return _.Mm(b.entities,"chipEntity",h)};
AnN=function(b,h,y,S){return function(){var F=W75.has(b.displayType)&&b.selected,a=F&&b.deselectCommand?b.deselectCommand:b.tapCommand;!a||F&&S||_.Va(a,{form:{element:h==null?void 0:h.value}});y==null||y()}};
pr5=function(b,h){a:{if(b=b.onUpdateText)if(b=_.c(b,_.sQ)){var y;b=(y=_.c(b,U7M))==null?void 0:y.stepId;break a}b=void 0}y=b;h=h==null?void 0:h.stepStates;if(y&&h){var S,F;return(S=h[y])==null?void 0:(F=S.userQuery)==null?void 0:F.userQuery}};
uq=function(b){return{signalAction:{signal:b}}};
CON=function(){return _.QC("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?JnM:_.eB4};
g4N=function(b,h){b=b===void 0?"SOFT_RELOAD_PAGE":b;h=h===void 0?49504:h;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.aU(_.Mt("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:h}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:b}}]}}}};
s1I=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.aU(_.Mt("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:CON()}};
YxI=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.aU(_.Mt("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:CON()}};
TiU=function(b,h){var y=_.aU(_.Mt("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),S=_.aU(_.Mt("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),F={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.aU(_.Mt("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};F.serviceEndpoint=b?b:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[uq("SOFT_RELOAD_PAGE")]}};return{title:y,bodyText:S,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:F},
style:{value:h!=null?h:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
kb4=function(b){b=b===void 0?{}:b;return{title:_.aU(b.localizedZeroStateTitleText===void 0?"":b.localizedZeroStateTitleText),bodyText:_.aU(b.localizedZeroStateMessage===void 0?"":b.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.aU(b.localizedZeroStateButtonText===void 0?"":b.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[GbY]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
E4k=function(b){b=b===void 0?{}:b;return{title:_.aU(b.localizedOptInBannerTitleText===void 0?"":b.localizedOptInBannerTitleText),titleLength:19,subtitle:_.aU(b.localizedOptInMessage===void 0?"":b.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.aU(_.Mt("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:_.aU(_.Mt("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:[VTq]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
wrM=function(b,h){var y=h=h===void 0?{}:h;h=y.offlineTitleText===void 0?"":y.offlineTitleText;var S=y.offlineDescriptionText===void 0?"":y.offlineDescriptionText,F=y.formattedSupplementalText,a=y.actionButtonText===void 0?"":y.actionButtonText,P=y.titleText===void 0?"":y.titleText;y=y.descriptionText===void 0?"":y.descriptionText;var K={title:a,accessibilityText:a,style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:266213}},onTap:{innertubeCommand:{browseEndpoint:{browseId:"SPunlimited"},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse",rootVe:93498,url:"/premium",webPageType:"WEB_PAGE_TYPE_BROWSE"}}}}};b||(P=h,y=S,K={title:a,accessibilityText:a,style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_DISABLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:266213}}});
return{title:_.aU(P),titleLength:P.length,overrideTitleMaxFontSize:30,subtitle:_.aU(y),supplementalText:F,primaryButton:{buttonViewModel:K},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[iBM]},darkTileImage:{thumbnails:[fuU]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.x74=function(b,h,y,S,F,a,P,K,n,X,u){F=F===void 0?!1:F;a=a===void 0?!1:a;P=P===void 0?0:P;K=K===void 0?-Infinity:K;n=n===void 0?!1:n;X=X===void 0?!1:X;u=u===void 0?!1:u;var O=[],N=_.aU(_.Mt("SMART_DOWNLOADS",void 0,"Smart downloads")),t=_.aU(lur(P,K,b.length));K=P=void 0;X?P={statementBannerRenderer:wrM(u,S)}:F?b.length>0?K=qxn(b,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.r("kevlar_manual_downloads_above"),N,t):n?K={alertBannerViewModel:{heading:{content:y.localizedOptInBannerTitleText===
void 0?"":y.localizedOptInBannerTitleText},body:{content:y.localizedPromptMessage===void 0?"":y.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.Mt("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.Mt("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:_.Bcr}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:a&&(K={backgroundPromoRenderer:{bodyText:_.aU(_.Mt("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),thumbnail:{thumbnails:[{url:"https://www.gstatic.com/youtube/img/useredu/grey_loading_spinner.gif"}]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_CONTENT_HEIGHT"}}}):
a&&(K={alertBannerViewModel:{heading:{content:y.localizedOptInBannerTitleText===void 0?"":y.localizedOptInBannerTitleText},body:{content:y.localizedOptInMessage===void 0?"":y.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.Mt("TURN_ON",void 0,"Turn on"),accessibilityText:_.Mt("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}}}}}});y=_.aU(_.Mt("YOUR_DOWNLOADS",void 0,"Your downloads"));S=void 0;h.length>0?(S=void 0,_.r("kevlar_display_downloads_numbers")&&(S=_.aU(_.nI("VIDEO_COUNT",h.length))),S=qxn(h,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,y,S)):F||b.length||
X||(S={backgroundPromoRenderer:{bodyText:_.aU(_.Mt("VIDEOS_WILL_APPEAR_HERE",void 0,"Videos you download will appear here")),thumbnail:{thumbnails:[{url:"https://www.gstatic.com/youtube/img/useredu/downloads_empty_state.png"}]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_CONTENT_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:120848}}}});P?O.push({richSectionRenderer:{content:P}}):K&&!_.r("kevlar_manual_downloads_above")&&O.push({richSectionRenderer:{content:K,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
S&&O.push({richSectionRenderer:{content:S,loggingDirectives:{clientVeSpec:{uiType:51721}}}});K&&_.r("kevlar_manual_downloads_above")&&O.push({richSectionRenderer:{content:K,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(h.length>0||F&&b.length>0&&!X)&&O.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.aU(_.Mt("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:O}};
_.m7q=function(b){return Q1j(b,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.v4f=function(b){return Q1j(b,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
Q1j=function(b,h){var y=[];b=qxn(b,h,!0);y.push({richSectionRenderer:{content:b}});return{contents:y}};
qxn=function(b,h,y,S,F){y=y===void 0?!1:y;var a="RESPONSIVE_SIZE_STANDARD";_.r("kevlar_standard_rich_grid_on_offline_home")&&h==="RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE"?a="RESPONSIVE_SIZE_STANDARD":_.r("kevlar_modern_downloads_compact")?a="RESPONSIVE_SIZE_COMPACT":_.r("kevlar_modern_downloads_extra_compact")?a="RESPONSIVE_SIZE_EXTRA_COMPACT":_.r("kevlar_modern_downloads_tiny")&&(a="RESPONSIVE_SIZE_TINY");b={isExpanded:y,contents:Oo(b),entitySelectorType:h,responsiveContainerConfiguration:{responsiveSize:a}};
S&&(b.title=S);F&&(b.subtitle=F);y||(_.r("kevlar_smart_downloads_show_more_button")?(b.showMoreButton={buttonRenderer:{accessibility:{label:_.Mt("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.aU(_.Mt("SHOW_MORE",void 0,"Show more"))}},b.showLessButton={buttonRenderer:{accessibility:{label:_.Mt("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",
text:_.aU(_.Mt("SHOW_LESS",void 0,"Show less"))}}):(b.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.Mt("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}}}},b.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.Mt("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}}}},b.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.Mt("VIEW_ALL",void 0,"View all"),accessibilityText:_.Mt("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:_.S7("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:b}};
Oo=function(b){var h=[];b=_.L(b);for(var y=b.next();!y.done;y=b.next())if(y=y.value,Kx5(y)){var S=h,F=S.push;var a=void 0;if(y==null?0:(a=y.videoEntity)==null?0:a.videoId){a=k8(_.hP().getState(),y.videoEntity.videoId);var P=_.hP().getState();var K=_.oU(y.videoEntity.videoId,"mainVideoEntity");P=!!_.Bi(P.entities)[K];P={videoId:y.videoEntity.videoId,title:dR(y.videoEntity.title),shortBylineText:dR(y.channelEntity.title),thumbnail:y.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:P&&_.r("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:kcn(y.videoEntity.videoId,a,y.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.Mt("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};y.videoEntity.lengthSeconds&&(P.thumbnailOverlays=s$U(y.videoEntity.lengthSeconds,a));P.isWatched=a>0;_.r("kevlar_modern_downloads_page")&&(P.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:y.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.Mt("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},P.badges=void 0);y=P}else y={};F.call(S,{richItemRenderer:{content:{videoRenderer:y},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(Pgf(y)){S=h;F=S.push;var n=K=a=void 0,X=void 0,u=void 0,O=void 0,N=void 0,t=void 0,R=void 0,I=void 0,U=void 0,p=void 0;P=y.mainPlaylistEntity.playlistId;var e=y==null?void 0:(p=y.mainPlaylistEntity)==null?void 0:(U=p.thumbnailStyleData)==null?void 0:(I=U[0])==null?void 0:(R=I.value)==null?void 0:(t=R.collageThumbnail)==
null?void 0:t.coverThumbnail;if(P&&e){t=Vgy(P);!_.r("enable_offline_playlist_page")&&(y==null?0:(N=y.mainPlaylistEntity)==null?0:N.videos)&&(N=y==null?void 0:(O=y.mainPlaylistEntity)==null?void 0:(u=O.videos)==null?void 0:u[0],u=_.Pi(N).entityId,u=JSON.parse(u).videoId,u!==void 0&&(t=k8(_.hP().getState(),u),t=_.FF(u,P,void 0,void 0,t)));u=[];if(y==null?0:(X=y.mainPlaylistEntity)==null?0:(n=X.videos)==null?0:n.length)n=uBY(),X=Object,u=X.assign,O=(O=He5(y==null?void 0:y.mainPlaylistEntity.videos.length))?
{thumbnailOverlaySidePanelRenderer:{text:_.aU(O),icon:{iconType:"PLAYLISTS"}}}:void 0,u=[n,u.call(X,{},(K=O)!=null?K:{})];y={playlistId:P,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:e}},navigationEndpoint:t,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:u,title:dR(y.mainPlaylistEntity.title),shortBylineText:dR(y==null?void 0:(a=y.channelEntity)==null?void 0:a.title),badges:[{metadataBadgeRenderer:{label:_.Mt("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};
_.r("kevlar_modern_downloads_page")&&(y.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:buN,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:P,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.Mt("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},y.badges=void 0)}else y=void 0;F.call(S,{richItemRenderer:{content:{playlistRenderer:y},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return h};
lur=function(b,h,y){b=b?hRN(b):"";h!==void 0&&isFinite(h)?h===0?h=_.Mt("UPDATING",void 0,"Updating..."):(h=g9Y(new Date(h),new Date),h=_.Mt("UPDATED_TIME",{relative_time:h},"Updated "+h)):h="";var S="";b&&h&&(S=" \u2022 ");if(y&&_.r("kevlar_display_downloads_numbers")){y=_.nI("VIDEO_COUNT",y);if(b||h)S=" \u2022 ";return y+S+b+S+h}return b+S+h};
yAr=function(b){return yJM(b.entities).length};
_.SZj=function(b,h,y){var S=Ve(b.responsiveSize),F;b=!((F=b.responsiveMap)==null||!F.some(function(a){return a.containerSize==="CONTAINER_SIZE_NARROW"&&a.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:y,containerWidth:h,sizing:S,enableFullBleedForSingleCol:!1,isCompactList:S==="COMPACT"&&b}};
FNf=function(b,h){return _.Mm(b.entities,"votingEntity",h)};
ND=function(b){if(b){var h;return((h=_.H9().resolve(_.XS(_.cC)))==null?0:h())?b.darkTheme:b.lightTheme}};
aJj=function(b,h){if(b.simpleText)return Object.assign({},b,{simpleText:ii(b.simpleText,h)});if(!b.runs)return b;for(var y=Object.assign({},b,{runs:[]}),S=0,F=_.L(b.runs),a=F.next();!a.done;a=F.next())if(a=a.value,a.text)if(S+a.text.length<=h)y.runs.push(a),S+=a.text.length;else return y.runs.push(Object.assign({},a,{text:ii(a.text,h-S)})),y;return b};
d0k=function(b,h){return _.Mm(b.entities,"chipBarStateEntity",h)};
jSF=function(b){switch(b){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""}};
$0k=function(b,h){return{triggeringElement:b,onDwellTriggeredFn:function(){var y={triggeringElement:b,loadVideoPreviewEventData:h},S=document.querySelector(".video-preview");S&&S.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:y}))},
onDwellEndFn:function(){var y=document.querySelector(".video-preview");y&&y.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
LNq=function(b,h){var y=_.H9().resolve(_.XS(L9f)),S=function(){var F=h();return y&&F?$0k(b.value,F):null};
_.Qi(function(){var F=S();y&&F&&Promise.resolve().then(function(){y.registerElement(F)});
_.m2(function(){y&&F&&Promise.resolve().then(function(){_.To(y,F)})})},"csPUge")};
KN4=function(b){var h=b.dataset.resizeObserverId;if(h)return h;h=""+PIq++;return b.dataset.resizeObserverId=h};
Zu4=function(b){b=_.L(b);for(var h=b.next();!h.done;h=b.next()){h=h.value;var y=KN4(h.target),S=Object.assign({},{target:h.target},tF.get(y));if(S!=null&&S.contentRect?S.contentRect.width!==h.contentRect.width||S.contentRect.height!==h.contentRect.height:1)for(tF.set(y,{borderBoxSize:h.borderBoxSize,contentBoxSize:h.contentBoxSize,contentRect:h.contentRect,devicePixelContentBoxSize:h.devicePixelContentBoxSize}),y=_.L(rx.get(y)||[]),S=y.next();!S.done;S=y.next())S=S.value,S(h)}};
Mnn=function(b,h){var y=KN4(b);rx.has(y)||rx.set(y,new Set);rx.get(y).add(h);tF.has(y)&&h(Object.assign({},{target:b},tF.get(y)));cV||(cV=new oDk(Zu4));h=cV;h.observe(b)};
nDN=function(b,h){var y=KN4(b);rx.has(y)&&(rx.get(y).delete(h),rx.get(y).size===0&&(rx.delete(y),tF.delete(y),cV.unobserve(b),delete b.dataset.resizeObserverId));rx.size===0&&cV&&(cV.disconnect(),cV=void 0)};
Huk=function(b,h){var y=_.H9().resolve(tR);return XYn.map(function(S){return y.observe(b,h,S)})};
u_4=function(b){var h=_.H9().resolve(tR);b.forEach(function(y){h.unobserveByKey(y)})};
_.Rr=function(b){var h=_.L(emM()),y=h.next().value,S=h.next().value,F=Object.assign({},OuI,b),a=NYU(function(P){var K=P.contentRect.height;if((P=P.contentRect.width)||K||F.canHaveZeroSize)y.width()===P&&y.height()===K||S(y,{height:K,width:P})},F.throttleMs);
return[y,function(P){var K=[];F.useVisibilityObserver&&(K=Huk(P,function(n,X){requestAnimationFrame(function(){X==="visible"?Mnn(P,a):nDN(P,a)})}));
K.length||Mnn(P,a);return function(){K.length&&(u_4(K),K.length=0);nDN(P,a)}}]};
rAk=function(b,h,y,S,F){b=h?b.switchOffCommand:b.switchOnCommand;if(S&&F)tnI(b,y,F);else{var a,P;(a=_.GK({elementsCommand:b}))==null||(P=a.onclick)==null||P.call(a,y)}};
tnI=function(b,h,y){b=_.GK({elementsCommand:b,additionalCommandArgs:{commandController:{onSuccess:function(){y(!1)},
onServerError:function(){y(!1)}}}});
if(b==null?0:b.onclick)b.onclick(h),y(!0)};
RRI=function(b){if(b)return _.c(b,cA5)};
zRU=function(b){if(b)switch(b){case "LIST_ITEM_ICON_ACCESSORY_SIZE_XSMALL":return 16;case "LIST_ITEM_ICON_ACCESSORY_SIZE_SMALL":return 18;case "LIST_ITEM_ICON_ACCESSORY_SIZE_STANDARD":return 24;case "LIST_ITEM_ICON_ACCESSORY_SIZE_LARGE":return 36;case "LIST_ITEM_ICON_ACCESSORY_SIZE_XLARGE":return 48;default:return 24}};
D0I=function(b,h){if(!((b==null?0:b.entitySelectorType)&&(b==null?0:b.entityKey)))return{};switch(b.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":if(_.r("enable_web_shorts_captions_language_command")){var y;var S=(y=_.o7())==null?void 0:y.getOption("captions","track");var F,a=typeof(S==null?void 0:S.translationLanguage)==="object"&&((F=S.translationLanguage)==null?void 0:F.languageName)||(S==null?void 0:S.displayName)||"";S={data:Object.assign({},
!!a&&{selectionText:{content:a}},!!a&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:typeof S==="undefined"})}}else S={};return S;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":if(_.r("web_shorts_audio_track_picker")){var P;F=((P=_.o7())==null?void 0:P.getAudioTrack())||void 0;y=F==null?void 0:(a=F.getLanguageInfo())==null?void 0:a.getName();F={data:Object.assign({},{selectionText:{content:y}},y&&!(F==null?0:(S=F.getLanguageInfo())==
null?0:S.getIsDefault())&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}})}}else F={};return F;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":return S=b!=null&&b.entityKey?(S=_.K9(h,b.entityKey))?{isHidden:(S==null?void 0:S.adsState)!=="ADS_STATE_PLAYING"}:{isHidden:!0}:{},S;default:return{}}};
IJ5=function(b,h){return function(y){var S=function(F){_.ph(_.UF(F),y,h)||b(F)};
y.addEventListener("click",S);return function(){y.removeEventListener("click",S)}}};
_.BYy=function(b){return function(){return _.c(b(),_.zR)}};
WN5=function(b){switch(b){case "LINEAR_LAYOUT_SPACE_S1":return 4;case "LINEAR_LAYOUT_SPACE_S2":return 8;case "LINEAR_LAYOUT_SPACE_S3":return 12;case "LINEAR_LAYOUT_SPACE_S4":return 16;case "LINEAR_LAYOUT_SPACE_S5":return 20;case "LINEAR_LAYOUT_SPACE_S6":return 24;case "LINEAR_LAYOUT_SPACE_S7":return 28;case "LINEAR_LAYOUT_SPACE_S8":return 32;case "LINEAR_LAYOUT_SPACE_S9":return 36;case "LINEAR_LAYOUT_SPACE_S10":return 40;case "LINEAR_LAYOUT_SPACE_S11":return 44;case "LINEAR_LAYOUT_SPACE_S12":return 48;
default:return 0}};
AAM=function(b){return WN5(b==null?void 0:b.all)};
U0F=function(b){var h={};(b=b==null?void 0:b.padding)&&(h.padding=WN5(b.vertical)+"px "+WN5(b.horizontal)+"px");return h};
pYF=function(b){switch(b){case "FLEX_DIRECTION_COLUMN_REVERSE":return"ytLinearLayoutViewModelFlexDirectionColumnReverse";case "FLEX_DIRECTION_ROW":return"ytLinearLayoutViewModelFlexDirectionRow";case "FLEX_DIRECTION_ROW_REVERSE":return"ytLinearLayoutViewModelFlexDirectionRowReverse";default:return"ytLinearLayoutViewModelFlexDirectionColumn"}};
JAj=function(b){switch(b){case "JUSTIFY_CONTENT_CENTER":return"ytLinearLayoutViewModelJustifyContentCenter";case "JUSTIFY_CONTENT_FLEX_END":return"ytLinearLayoutViewModelJustifyContentFlexEnd";case "JUSTIFY_CONTENT_SPACE_AROUND":return"ytLinearLayoutViewModelJustifyContentSpaceAround";case "JUSTIFY_CONTENT_BETWEEN":return"ytLinearLayoutViewModelJustifyContentBetween";case "JUSTIFY_CONTENT_SPACE_EVENLY":return"ytLinearLayoutViewModelJustifyContentSpaceEvenly";default:return"ytLinearLayoutViewModelJustifyContentFlexStart"}};
eRF=function(b){switch(b){case "ALIGN_ITEMS_START":return"ytLinearLayoutViewModelAlignItemsStart";case "ALIGN_ITEMS_END":return"ytLinearLayoutViewModelAlignItemsEnd";case "ALIGN_ITEMS_CENTER":return"ytLinearLayoutViewModelAlignItemsCenter";case "ALIGN_ITEMS_BASELINE_FIRST":return"ytLinearLayoutViewModelAlignItemsBaselineFirst";case "ALIGN_ITEMS_BASELINE_LAST":return"ytLinearLayoutViewModelAlignItemsBaselineLast";default:return"ytLinearLayoutViewModelAlignItemsStretch"}};
CIF=function(b,h){if(h)return{containerStyles:U0F(h),itemStyles:function(y,S){var F={flex:"1"},a=h==null?void 0:h.flexDirection;b:switch(a){case "FLEX_DIRECTION_ROW_REVERSE":case "FLEX_DIRECTION_COLUMN_REVERSE":y=!!y;break b;default:y=!!S}y||(y=_.QC("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl",a==="FLEX_DIRECTION_ROW"||a==="FLEX_DIRECTION_ROW_REVERSE"?(a=AAM(h==null?void 0:h.gap)+"px",y?F["margin-left"]=a:F["margin-right"]=a):F["margin-bottom"]=AAM(h==null?void 0:h.gap)+"px",F.flex=
"1");return F},
containerLayoutConfig:{responsiveSize:"RESPONSIVE_SIZE_STANDARD",containerSize:"CONTAINER_SIZE_UNSPECIFIED",containerType:(h==null?void 0:h.flexDirection)==="FLEX_DIRECTION_ROW"||(h==null?void 0:h.flexDirection)==="FLEX_DIRECTION_ROW_REVERSE"?"CONTAINER_TYPE_HORIZONTAL_LIST":"CONTAINER_TYPE_VERTICAL_LIST",contentPreviewWidth:"33%"}}};
gDf=function(b){return b<528?"CONTAINER_SIZE_NARROW":b<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE"};
sSj=function(b,h){b=_.L(b.responsiveMap||[]);for(var y=b.next();!y.done;y=b.next())if(y=y.value,y.containerSize===h)return y.containerType};
_.YZr=function(b,h){if(h){var y=h.responsiveSize;b=gDf(b);var S=sSj(h,b);if(S&&y){a:{if(S==="CONTAINER_TYPE_VERTICAL_LIST")if(y==="RESPONSIVE_SIZE_STANDARD"){if(b!=="CONTAINER_SIZE_NARROW"){var F="50%";break a}}else{F=b==="CONTAINER_SIZE_NARROW"?"50%":"33.3%";break a}F=void 0}return{responsiveSize:y,containerSize:b,containerType:S,force16By9ThumbnailAspectRatio:!h.enableContentSpecificAspectRatio,contentPreviewWidth:F,fullbleed:(S==="CONTAINER_TYPE_VERTICAL_LIST"||S==="CONTAINER_TYPE_GRID")&&b===
"CONTAINER_SIZE_NARROW"&&!1}}}};
TYY=function(b,h){var y={};switch(h){case "CONTAINER_TYPE_VERTICAL_LIST":y["flex-direction"]="column";y.padding="0 "+b.margin+"px";break;case "CONTAINER_TYPE_GRID":y["flex-direction"]="row";y.flex="none";y["flex-wrap"]="wrap";y.width=b.maxContainerWidth?b.maxContainerWidth+b.gutter+"px":void 0;y.padding="0 "+(b.margin-b.gutter/2)+"px";break;case "CONTAINER_TYPE_HORIZONTAL_LIST":y["flex-direction"]="row",y.flex="none",y["overflow-x"]="auto",y.width=b.maxContainerWidth?b.maxContainerWidth+"px":void 0,
y.padding="0 "+b.margin+"px"}return y};
Ghy=function(b,h){if(h){var y=sSj(h,gDf(b));a:switch(y){case "CONTAINER_TYPE_GRID":var S=3;break a;default:S=1}S=_.SZj(h,b,S);var F=_.kr(S);return{containerLayoutConfig:_.YZr(b,h),containerStyles:TYY(F,y),itemStyles:function(a,P){a={};switch(y){case "CONTAINER_TYPE_VERTICAL_LIST":P||(a["margin-bottom"]="16px");break;case "CONTAINER_TYPE_GRID":a.width=F.itemWidth+"px";a["margin-right"]=F.gutter/2+"px";a["margin-left"]=F.gutter/2+"px";break;case "CONTAINER_TYPE_HORIZONTAL_LIST":a.width=F.itemWidth+
"px",a.flex="none",P||(a["margin-right"]=F.gutter+"px")}return a}}}};
fJ5=function(b,h,y){if(h)return[khM];switch(b){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[DA];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return y?[DA]:[Vny,DA];case "TRANSFER_STATE_PAUSED_BY_USER":return[EDN,DA];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[iuk,DA];default:return[khM]}};
wYF=function(b,h,y,S){return fJ5(b,h,S).map(function(F){var a=F.text,P=F.iconType,K=F.videoAction;F=F.playlistAction;a=a?{content:a}:void 0;P=P&&{sources:[{clientResource:{imageName:P}}]};var n=(0,_.lR.unsafeClone)(y);if(n){var X=_.c(n,_.HC),u=_.c(n,_.uM);X&&K?X.action=K:u&&F&&(u.action=F)}return{title:a,leadingImage:P,rendererContext:n&&{commandContext:{onTap:{innertubeCommand:n}}}}})};
lJU=function(b){b=_.JB(b.rendererContext);var h;return(h=_.c(b,_.uM))==null?void 0:h.playlistId};
qZ4=function(b){var h;return(h=b.listItems)==null?void 0:h.some(function(y){var S;return _.ea((S=_.c(y,_.D5))==null?void 0:S.rendererContext)})};
_.Ir=function(b){var h=_.H9().resolve(_.XS(_.cC));return h!=null&&h()?b.darkThemeColorPalette:b.lightThemeColorPalette};
_.WV=function(b){return{primaryTextColor:BV(b,0),secondaryTextColor:BV(b,1),optionColor:BV(b,2),backgroundColor:BV(b,3),videoBackgroundColor:BV(b,4)}};
BV=function(b,h){if(b){switch(h){case 0:b=b.primaryTitleColor;break;case 1:b=b.secondaryTitleColor;break;case 2:b=b.surgeColor;break;case 3:b=b.section2Color;break;case 4:b=b.section3Color;break;default:return}if(b)return _.eI(b)}};
m08=function(b){var h=b.element;var y=b.veType;var S=b.storedVisualElement===void 0?null:b.storedVisualElement;var F=b.elementIndex===void 0?0:b.elementIndex;b=b.clientYouTubeData;var a=_.UE();a!==x0q&&(QSf.clear(),x0q=a);if(h.visualElement&&QSf.has(h.visualElement))return null;if(S&&QSf.has(S))return h.visualElement=S,null;y=_.NJ(_.rU(),{veType:y,elementIndex:F,clientYouTubeData:b});if(!y)return null;h.visualElement=y;QSf.add(y);return y};
bSM=function(b,h,y){y=y===void 0?vDr:y;if(b){var S=_.H9().resolve(tR);S||_.r("mweb_no_observer_killswitch")?ui(b,{data:h,observer:S,visibilityCallback:y,hideOption:Y2M,showOption:T6r,layer:b.layer}):_.vX(new _.Gn("Warning: monitorVisibility called with null observer",b.tagName,h==null?void 0:h.loggingDirectives,h==null?void 0:h.trackingParams))}else _.vX(new _.Gn("Warning: monitorVisibility called with null element",h==null?void 0:h.loggingDirectives,h==null?void 0:h.trackingParams,h==null?void 0:
h.rendererContext))};
_.AF=function(b,h,y,S){y=y===void 0?null:y;S=S===void 0?vDr:S;var F=F===void 0?null:F;pt(function(){if(h){y instanceof Function&&(y=y());var a=m08({element:h,veType:b,storedVisualElement:y,clientYouTubeData:void 0});a&&(_.r("web_graft_ve_unified_vis_mon")?ui(h,{data:F,observer:_.H9().resolve(tR),hideOption:Y2M,showOption:T6r,layer:h.layer}):bSM(h,F),S(a))}})};
hPN=function(b){return b?_.CR(b):""};
yGq=function(b){return(b==null?void 0:b.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
Sin=function(b,h){return _.Mm(b.entities,"videoOverviewAsyncDataEntity",h)};
FFy=function(b,h){var y;return"linear-gradient(to bottom, "+((y=h==null?void 0:h.map(function(S){var F=b?S.darkThemeColor:S.lightThemeColor;return F?_.CR(F)+" "+((S==null?void 0:S.startLocation)||0)*100+"%":"transparent"}))==null?void 0:y.join(", "))+")"};
acq=function(b,h,y,S,F){if(!((S==null?0:S.height)&&(S==null?0:S.width)))return{size:0};var a=S.width;S=S.height;if(F)return h==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||h==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&a>S?{size:312/A$y}:h==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(y!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||b!==1&&b!==2||h!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&h!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&h!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(h==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||h==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||S===a)switch(b){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(h==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||S>a)switch(b){case 1:case 3:return{size:240*W9F};default:return{size:360*W9F}}switch(b){case 1:case 2:return{size:1/A$y*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.dRN=function(b){if(!("matchMedia"in window))return _.yb(Error("Sh")),function(){return!1};
var h=window.matchMedia(b);b=_.L(_.pa(h.matches,void 0,"waIHpe"));var y=b.next().value,S=b.next().value,F=function(a){S(a.matches)};
h.addEventListener?(h.addEventListener("change",F),_.m2(function(){h.removeEventListener("change",F)})):h.addListener&&(h.addListener(F),_.m2(function(){h.removeListener(F)}));
return y};
jIN=function(b){return b==="IMAGE_BANNER_STYLE_INSET"||b==="IMAGE_BANNER_STYLE_UNKNOWN"};
$RY=function(){if(!("matchMedia"in window))return _.yb(Error("Sh")),function(){return 0};
var b=window.matchMedia("(max-width: 527.9px)"),h=window.matchMedia("(min-width: 528px) and (max-width: 839.9px)"),y=window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)"),S=window.matchMedia("(min-width: 1024px)"),F=_.L(_.pa(b.matches,void 0,"TmIKcb")),a=F.next().value,P=F.next().value;F=_.L(_.pa(h.matches,void 0,"Z0fTKd"));var K=F.next().value,n=F.next().value;F=_.L(_.pa(y.matches,void 0,"w4xy7b"));var X=F.next().value,u=F.next().value;F=_.L(_.pa(S.matches,void 0,"DrbNC"));var O=F.next().value,
N=F.next().value,t=function(p){P(p.matches)},R=function(p){n(p.matches)},I=function(p){u(p.matches)},U=function(p){N(p.matches)};
_.wg(function(){b.addEventListener?(b.addEventListener("change",t),h.addEventListener("change",R),y.addEventListener("change",I),S.addEventListener("change",U)):b.addListener&&(b.addListener(t),h.addListener(R),y.addListener(I),S.addListener(U));_.m2(function(){b.removeEventListener?(b.removeEventListener("change",t),h.removeEventListener("change",R),y.removeEventListener("change",I),S.removeEventListener("change",U)):b.removeListener&&(b.removeListener(t),h.removeListener(R),y.removeListener(I),
S.removeListener(U))})});
return function(){return a()?1:K()?2:X()?3:O()?4:0}};
LFy=function(b){var h=0;b=_.L([b.title,b.metadata,b.actions,b.description,b.attribution]);for(var y=b.next();!y.done;y=b.next())y.value&&h++;return h};
PBM=function(b){return b===1||b===2?1:0};
ZSk=function(b){b=(new KFI).parse(b);return(new gk).render(b).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(h){var y=h.split(":").map(Number),S=0,F=0;if(y.length===3)y=_.L(y),S=y.next().value,F=y.next().value,y=y.next().value;else if(y.length===2)y=_.L(y),F=y.next().value,y=y.next().value;else if(y.length===1)y=_.L(y).next().value;else throw Error("Th");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(S*3600+F*60+y)+'" role="button">'+h+"</span>"})};
oQU=function(b){b=_.L(b.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var h=b.next(),y={};!h.done;y={clickHandler$jscomp$5:void 0},h=b.next()){h=h.value;y.clickHandler$jscomp$5=function(F){F=Number(F.target.getAttribute("data-time"));if(isNaN(F))throw Error("Uh");var a;(a=_.o7())==null||a.seekTo(F,!0)};
var S=function(F){return function(a){a.key!=="Enter"&&a.key!=="Space"||(0,F.clickHandler$jscomp$5)(a)}}(y);
h.setAttribute("tabindex","0");h.removeEventListener("click",y.clickHandler$jscomp$5);h.removeEventListener("keydown",S);h.addEventListener("click",y.clickHandler$jscomp$5);h.addEventListener("keydown",S)}};
MOy=function(){return _.M("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.M(Uo,{percentWidth:100}),_.M(Uo,{animationDelay:200}),_.M(Uo,{animationDelay:400}),_.M(Uo,{animationDelay:600}),_.M(Uo,{animationDelay:800,percentWidth:60}),_.M("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.M(Uo,{percentWidth:100}),_.M(Uo,{animationDelay:200}),_.M(Uo,{animationDelay:400}),_.M(Uo,{animationDelay:600,percentWidth:50}))};
Uo=function(b){return _.M("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(b.percentWidth===void 0?100:b.percentWidth)+"%"},_.M("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(b.animationDelay===void 0?0:b.animationDelay)+"ms"}))};
nQj=function(){var b=_.L(_.pa(function(){return""},void 0,"dXJHWc")),h=b.next().value;
return[function(){return h()()},
b.next().value]};
XOk=function(b,h){b=b?hRN(b):"";h!==void 0&&isFinite(h)?h===0?h=_.Mt("UPDATING",void 0,"Updating..."):(h=g9Y(new Date(h),new Date),h=_.Mt("UPDATED_TIME",{relative_time:h},"Updated "+h)):h="";var y="";b&&h&&(y=" \u2022 ");return _.aU(b+y+h)};
OSj=function(b,h,y,S,F,a){h=h===void 0?0:h;var P=HSq[h],K=P.title,n=P.iconType,X=P.topButtonRenderer,u=P.sectionClientVE;P=P.videoClientVE;var O;if(h!==1||b.length){y=[];b=_.L(b);for(S=b.next();!S.done;S=b.next()){var N=S.value;if(Kx5(N))y.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:N.videoEntity.videoId,title:dR(N.videoEntity.title),shortBylineText:dR(N.channelEntity.title),thumbnail:N.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:N.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.Mt("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:P}}}}}});else if(Pgf(N)){S=y;var t=S.push;var R=void 0,I=void 0,U=void 0,p=void 0,e=void 0,E=void 0,Y=void 0,w=void 0,x=N.mainPlaylistEntity.playlistId,q=N==null?void 0:(w=N.mainPlaylistEntity)==null?void 0:(Y=w.thumbnailStyleData)==null?void 0:(E=Y[0])==null?void 0:(e=E.value)==null?void 0:(p=e.collageThumbnail)==null?void 0:p.coverThumbnail;p=Vgy(x);if(!_.r("enable_offline_playlist_page")&&
(N==null?0:(U=N.mainPlaylistEntity)==null?0:U.videos)){b:{U=N==null?void 0:(I=N.mainPlaylistEntity)==null?void 0:I.videos;I=_.hP().getState().entities;if(U!=null&&U.length&&I)for(U=_.L(U),e=U.next();!e.done;e=U.next())if(e=_.Pi(e.value).entityId,(e=JSON.parse(e).videoId)&&bdN(I,e)==="TRANSFER_STATE_COMPLETE"){I=e;break b}I=""}I!==void 0&&(p=k8(_.hP().getState(),I),p=_.FF(I,x,void 0,void 0,p))}I=ijq(_.Mt("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),Vgy(x));N=x&&q&&I?{playlistId:x,navigationEndpoint:p,
viewPlaylistText:I,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:q}},title:dR(N.mainPlaylistEntity.title),shortBylineText:dR(N==null?void 0:(R=N.channelEntity)==null?void 0:R.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:uA4,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:x,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.Mt("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:P}}}:
void 0;t.call(S,{gridPlaylistRenderer:N})}}P={gridRenderer:{items:y}};h===1&&(O=XOk(F,a))}else if(S){var dI=_.aU((t=y==null?void 0:y.localizedPromptMessage)!=null?t:"");P={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.aU(_.Mt("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.Bcr}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.aU(_.Mt("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};O=XOk(F,a)}else dI=_.aU(_.Mt("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
P={};return{contents:[{shelfRenderer:{title:K,titleAnnotation:O,icon:{iconType:n},subtitle:dI,content:P,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:X}]}}}}],loggingDirectives:{clientVeSpec:{uiType:u}}}};
NVr=function(b,h,y,S,F,a,P,K,n,X,u){y=y===void 0?{}:y;S=S===void 0?{}:S;F=F===void 0?!1:F;a=a===void 0?!1:a;P=P===void 0?!1:P;K=K===void 0?!1:K;n=n===void 0?!1:n;X=X===void 0?0:X;u=u===void 0?-Infinity:u;if(!(h.length||b.length||F||K))return a?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:kb4(y)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.aU(_.Mt("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 O=[];b.length&&O.push(OSj(b,0));K?O.push({contents:[{statementBannerRenderer:wrM(n,S)}]}):F?O.push(OSj(h,1,y,P,X,u)):a&&O.push({contents:[{statementBannerRenderer:E4k(y)}]});(F&&h.length||b.length)&&O.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.aU(_.Mt("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 O.map(function(N){return{itemSectionRenderer:N}})};
pw=function(b,h){if(typeof b!=="object")return null;b=_.L(Object.entries(b));for(var y=b.next();!y.done;y=b.next()){var S=_.L(y.value);y=S.next().value;S=S.next().value;if(y===h)return y;if(S=pw(S,h))return y+"."+S}return null};
JF=function(b){var h=b.content;return(b=b.styleRuns)&&h?{runs:b.map(function(y){var S={text:h.slice(y.startIndex,y.startIndex+y.length)};y.fontColor&&(S.textColor=y.fontColor);return S})}:{simpleText:h}};
cG8=function(b,h,y,S){var F=tOF;S&&(b.quantity=S);if(!b.quantity||!b.maxQuantity)return{};S=b.minusButton;var a=b.plusButton,P,K,n,X;return{value:b.quantity,maxValue:b.maxQuantity,onChangeCallback:function(u){F(b,u)},
minusLabel:(P=_.c(S,rGU))==null?void 0:P.label,minimumReachedLabel:(K=_.c(S,rGU))==null?void 0:K.limitReachedLabel,plusLabel:(n=_.c(a,rGU))==null?void 0:n.label,maximumReachedLabel:(X=_.c(a,rGU))==null?void 0:X.limitReachedLabel,disabled:h,onRemoveCommand:y}};
tOF=function(b,h){var y=b.quantityIncrementerEntityKey;if(y){var S={};S.quantity=h;_.vl(_.eD("quantityIncrementerEntity",y,S));b.onChangeCommand&&_.Va(b.onChangeCommand)}};
RPY=function(b){if(b)return b===document.body?document.documentElement:/(auto|scroll)/.test(getComputedStyle(b).overflowY)?b:RPY(b.parentElement)};
IcY=function(b,h){(b=zP5(b))&&((_.r("enable_mini_app_command_handler_mweb_fix")?0:h)?DRF.push({command:b,sourceData:{},commandContext:void 0}):_.H9().resolve(_.OM).resolveCommand(b))};
zP5=function(b){return _.c(b,_.sQ)};
BV5=function(){var b=window.performance.timeOrigin+window.performance.now(),h=(new _.Cw).setSeconds(b/1E9);return _.SP(h,2,_.KA(b%1E9),0)};
AGn=function(b,h){var y;b=(y=_.c(_.c(b,_.sQ),WFM))==null?void 0:y.methodName;var S,F;(y=window.youtubewebview||((S=window.webkit)==null?void 0:(F=S.messageHandlers)==null?void 0:F.youtubewebview))&&b&&(S=new gx,b=_.kb(S,1,b),b=_.CA(b.JSC$12734_serializeBinary()),h=_.CA(h),y.postMessage(b+","+h))};
so=function(b,h){var y=_.c(_.c(b,_.sQ),WFM);y&&(h&&(y.serializedAdditionalMetadata=_.CA(h)),IcY(b,!0))};
URF=function(b,h,y){setTimeout(function(){_.Fg(b,h)},y)};
pOy=function(b){switch(b){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"}};
JGf=function(){return!!_.QC("ID_TOKEN")};
gQj=function(b){return b instanceof Error&&b.cause instanceof ePy&&b.cause.rpcErrorCode!==void 0?!CBM.includes(b.cause.rpcErrorCode):!0};
YiN=function(){return _.P9(sI8,{authuser:""+(_.QC("SESSION_INDEX")||0)})};
YG=function(b,h,y,S){y=y===void 0?"MINI_APP_SDK_API_UNSPECIFIED":y;S=S===void 0?"":S;var F=new _.Gn;y={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:S,sdkApi:y};b instanceof Error&&(F.message=b.message,F.name=b.name,b.cause instanceof ePy&&b.cause.rpcErrorCode!==void 0&&(y.rpcErrorCode=b.cause.rpcErrorCode));var a;(a=h.onError)==null||a.call(h,{loggingError:F,metadata:y})};
Gzn=function(b,h,y,S){switch(b){case "MINI_APP_SOURCE_GAMESNACKS":return new TR(h,y,S);default:return new TVn(h,y,S)}};
kzY=function(b){switch(b){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"}};
VOI=function(b){switch(b){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"}};
EQ8=function(b){switch(b){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"}};
iSY=function(){return Math.floor(Math.random()*4)+1};
fc4=function(b,h,y,S){b=_.L(Object.entries(b));for(var F=b.next(),a={};!F.done;a={message$jscomp$995:void 0},F=b.next()){var P=_.L(F.value);F=P.next().value;P=P.next().value;a.message$jscomp$995=P;h.push(setTimeout(function(K){return function(){S(!1);y(K.message$jscomp$995.text)}}(a),a.message$jscomp$995.delayMs));
Number(F)>0&&h.push(setTimeout(function(){S(!0)},a.message$jscomp$995.delayMs-400))}};
wOF=function(b,h){var y=y===void 0?vDr:y;_.r("mweb_fix_monitor_visibility_after_render")?b&&pt(function(){bSM(b,h,y)}):pt(function(){bSM(b,h,y)})};
lcI=function(b,h){var y=document.createElement("ytd-engagement-panel-section-list-renderer");y.data=b;var S=h!=null?h:{};b=S.isPersistentPanel;h=S.hideDelayMs;S=S.overscrollContain;b=Object.assign({},b&&{isPersistentPanel:b},h&&{hideDelayMs:h},S&&{overscrollContain:S});Object.assign(y,b);return y};
mRI=function(b){qif||(qif=xRM(new _.wR(1,void 0,void 0,QIM),0));var h=qif.format(Math.floor(b));h=iS==="be"||iS==="bg"||iS==="es"||iS==="et"||iS==="hu"||iS==="ka"||iS==="lv"||iS==="pl"||iS==="pt-PT"||iS==="sq"?h.replace(new RegExp("^(\\d)"+QIM.GROUP_SEP.replace(".","\\.")+"(\\d+("+QIM.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):h;return b>=1E3&&b<=9999&&h[1]==="."&&(iS==="sl"||iS==="it")?h.replace(".",""):h};
_.heq=function(b,h,y){return window.spf&&!_.r("web_disable_spfjs_client")?vQq(b,h,y):bmn(b,h)};
vQq=function(b,h,y){var S=null,F=(new _.Uu(function(a,P){var K={};if(h){K.method=h.method;var n=h.postParams||{};Bhn(b,h)&&(n[_.QC("XSRF_FIELD_NAME")]=_.QC("XSRF_TOKEN"));K.postData=_.pn(n);h.type&&(K.type=h.type);n=h.headers}K.headers=rLj(b,n);_.r("debug_forward_web_query_parameters")&&(b=_.Dtq(b,window.location.search));K.experimental_headers=K.headers;K.onError=function(X){X.err&&X.xhr&&(X.err.params={url:X.xhr.responseURL,response:X.xhr.responseText.substr(0,64)});P(X.err)};
K.onPartDone=function(X){y&&y.call(null,X.part)};
K.onDone=function(X){var u=yMM(X.response,"xsrf_token");oA(window.location.href,b)&&u&&_.xZ("XSRF_TOKEN",u);if(u=yMM(X.response,"service_worker_killswitch"))_.xZ("SERVICE_WORKER_KILLSWITCH",u),rCM();a(X.response)};
S=spf.request(b,K)})).then(Sq8);
F.thenCatch(function(a){var P=a instanceof _.GR,K=a&&a.hasOwnProperty("params")&&a.params.response?a.params.response:"";a instanceof Error&&(K?P?PMN(a):K===')]}\'\n{"reload":"now"}'?PMN(a):(FT4(a,b,K),adr(a,K)?_.vX(a):_.QT(a)):PMN(a));S&&S.abort()});
return F};
Sq8=function(b){if(b.type==="multipart"){var h=b.timing;b=b.parts.reduce(function(y,S){Object.assign(y,S);return y},{});
b.timing=b.timing||{};Object.assign(b.timing,h);b.type="reduced"}return b};
bmn=function(b,h){h=h===void 0?{}:h;var y=null,S=new _.Uu(function(F,a){h.onFinish=function(P){if(P.readyState===XMLHttpRequest.DONE)if(P.status===200){if(P.responseType!=="json"){var K=P.response;K.substring(0,5)===")]}'\n"&&(K=K.substring(5));try{var n=JSON.parse(K)}catch(X){n=X}}else n=P.response;n instanceof Error?a(n):(K=yMM(n,"xsrf_token"),oA(window.location.href,b)&&K&&_.xZ("XSRF_TOKEN",K),P=P.responseURL,window.performance&&window.performance.getEntriesByName?(K=window.performance.getEntriesByName(P).pop())?
P={responseStart:(0,_.NO)()-(K.responseEnd-K.responseStart)}:(Math.random()<.01&&(K=Error("gi"),K.params=P,_.vX(K)),P={responseStart:-1}):P={responseStart:0},n.timing=n.timing||{},Object.assign(n.timing,P),F(n))}else a(Error("fi`"+P.status))};
(y=_.Aj(b,h))||a(Error("fi`"+y.status))});
S.thenCatch(function(F){F instanceof Error&&(FT4(F,b),adr(F)&&(F.level="WARNING"))});
_.r("cancel_pending_navs")&&S.thenCatch(function(){y.abort()});
return S};
yMM=function(b,h){var y=b[h],S=b.parts;b.type==="multipart"&&S&&(y=(b=S.find(function(F){return h in F}))&&b[h]);
return y};
FT4=function(b,h,y){var S=b.message||"";h={original:S,url:h};if(y)if(S=S.match(/position:?\s*(\d+)/)){S=S&&Number(S[1])?Number(S[1]):0;var F=Math.max(S-25,0);h.position=S;h.response=y.substring(F,S+25)}else h.response=y.substring(0,50);_.bh(b,h);try{b.message="JSON parse error"}catch(a){}};
adr=function(b,h){b=b.message||"";b=!!(b.indexOf("<")>=0||b.indexOf("end of ")>=0||b.indexOf("Unterminated string")>=0||b.indexOf("Unexpected EOF"));if(!b&&h)for(var y=h.length,S=!1,F=0;F<y;F++)if(S&&h[F]==="\\")F++;else if(h[F]==='"')S=!S;else if(h[F]==="<"&&!S){b=!0;break}return b};
d_8=function(){return document.documentElement.hasAttribute("dark")};
_.jKr=function(b,h){if(b!=="GFEEDBACK"&&b!=="GUIDED_HELP")_.v4(Error("hi`"+b));else{var y=_.H9().resolve(_.XS(_.bM));if(y&&(y=y.getCurrentPage())&&y.getServiceTrackingParams&&(y=y.getServiceTrackingParams()))for(var S=0,F;F=y[S++];)if(F.service===b){if(b=F.params)for(y=0;S=b[y++];)h[S.key]=S.value;break}}};
_.$_8=function(b){var h=_.ye();h&&(h=h.getPlayer())&&(h.pauseVideo(),b.playback_id=h.getVideoData().cpn,b.eid=h.getVideoData().eventId,Object.assign(b,h.getFeedbackProductData()))};
LTk=function(){var b={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.QC("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(b.enableAnonymousFeedback=!0);_.QC("SESSION_INDEX")&&(b.authuser=String(_.QC("SESSION_INDEX")));_.r("enable_pageid_for_feedback")&&_.QC("DELEGATED_SESSION_ID")&&(b.pageId=String(_.QC("DELEGATED_SESSION_ID")));return b};
_.kG=function(b){_.r("enable_ypc_spinners")&&_.F8(b,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},b])};
_.VH=function(b){_.r("enable_ypc_spinners")&&_.F8(b,"yt-close-popup-action",["yt-loading-renderer"])};
PWr=function(b){return new Promise(function(h,y){_.TK({verifyCommand:{recaptchaToken:b.recaptchaResponse}},{commandController:{onSuccess:function(S,F){F||y("ChallengeService did not return a response.");var a;h({challengeCompleted:(a=F.verified)!=null?a:!1})},
onServerError:function(S,F){y(F)}}})})};
KTy=function(b,h,y,S){h({recaptchaResponse:S}).then(function(F){F.challengeCompleted?_.sM()?(y(3),_.H9().resolve(_.OM).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:b}})):y(2):y(4)},function(){y(4)})};
oKy=function(b,h,y){_.Tt(_.Ra(Zmn,_.QC("HL")),function(){var S;(S=window.grecaptcha)==null||S.ready(function(){var F=window.grecaptcha;F?(y(F.render(b,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:KTy.bind(null,b,PWr,h)})),h(1)):h(4)})})};
M_j=function(b,h){return function(){switch(h()){case 0:return b().captchaLoadingMessage;case 1:return b().challengeReason;case 3:return b().captchaSuccessfulMessage;case 2:return b().captchaCookieSetFailureMessage;case 4:return b().captchaFailedMessage;default:return b().challengeReason}}()};
_.Eo=function(){if(!nKy){var b=document.querySelector("#player.skeleton");b&&(_.sD(b),nKy=!0)}};
_.HmM=function(){return XG5=B7k()};
Nuq=function(){return _.Z(function(b){return uDf!==void 0?b.return():b.yield(OmU(),0)})};
OmU=function(){return _.Z(function(b){if(b.nextAddress==1)return b.yield(ApN(),2);XG5=b.yieldResult;uDf=_.xP.addLowPriorityJob(OmU,5E3);_.g3(b)})};
D_j=function(b){var h=h===void 0?t_n:h;var y,S,F=(y=b.responseContext)==null?void 0:(S=y.mainAppWebResponseContext)==null?void 0:S.trackingParam;if(!F){h.increment("MISSING");var a,P,K,n,X,u;_.vX(new _.Gn("282054944_a",{vc4:!!((a=b.responseContext)==null?0:(P=a.mainAppWebResponseContext)==null?0:P.loggedOut),gu9:((K=b.responseContext)==null?void 0:K.mainAppWebResponseContext)===void 0,tgP:b.responseContext===void 0,cp:(n=b.playabilityStatus)==null?void 0:n.contextParams,bol:(((X=b.streamingData)==
null?void 0:X.formats)||[]).length>0,pjY:(((u=b.streamingData)==null?void 0:u.adaptiveFormats)||[]).length>0,os:!!b.offlineState,cotn:b.cotn}));return 2}y="";try{y=rMr(F)}catch(t){return h.increment("C_ERROR"),_.QT(t),2}try{var O=_.cMr(y);var N=Ren(O)}catch(t){return h.increment("P_ERROR"),_.QT(t),2}N=_.NK(N,zef,1,_.tW());F=[];N=_.L(N);for(O=N.next();!O.done;O=N.next())S=O.value,O=S.getPath(),y=(0,_.lR.getValueByKeys)(b,O.split(".")),y=String(y===void 0||y===null?"":y),S=S.getValue()||"",a=/[+\-\/_]/g,
y.replace(a,"")!==S.replace(a,"")&&(h.increment("MISMATCH"),_.r("ab_mis_log_err")&&(y=new _.Gn("282054944_p",{gsl:O,g:String(y),e:String(S)}),_.QT(y)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(O)||(O.match(/enforcementMessageViewModel/i)?F.push(3):F.push(2)));if(F.length>0)return Math.max.apply(Math,_.f$(F));h.increment("SUCCESS");return 1};
WTn=function(b){var h=new wx;if(b.interpreterJavascript){var y=_.SBU(b.interpreterJavascript);y=PE(y).toString();var S=new IdU;_.kb(S,6,y);_.U_(h,1,S,CM)}else b.interpreterUrl&&(y=_.QV(b.interpreterUrl),y=_.s_(y).toString(),S=new _.BuN,_.kb(S,4,y),_.U_(h,2,S,CM));b.interpreterHash&&_.lq(h,3,b.interpreterHash,CM);b.program&&_.lq(h,4,b.program,CM);b.globalName&&_.lq(h,5,b.globalName,CM);b.clientExperimentsStateBlob&&_.lq(h,7,b.clientExperimentsStateBlob,CM);return h};
qD=function(b){var h={};b=_.L(b.split("&"));for(var y=b.next();!y.done;y=b.next())y=y.value.split("="),y.length===2&&(h[y[0]]=y[1]);return h};
AMf=function(b){return Number(b.t)||7200};
U_f=function(){var b=b===void 0?window:b;var h,y;return _.Z(function(S){if(S.nextAddress==1)return S.yield(Qey(),2);h=b;y=h.bgevmc;if(!y)throw Error("li");return S.return({pause:function(){y.p()},
resume:function(){y.r()},
checkForRefresh:function(){return y.cr()}})})};
xUN=function(){if(_.r("bg_st_hr"))return"havuokmhhs-0";var b,h=((b=globalThis.performance)==null?void 0:b.timeOrigin)||0;return"havuokmhhs-"+Math.floor(h)};
xG=function(b){window.bgens=b};
pGr=function(){return new Promise(function(b){var h=window;h.ntpevasrs!==void 0?b(new QH(h.ntpevasrs)):(h.ntpqfbel===void 0&&(h.ntpqfbel=[]),h.ntpqfbel.push(function(y){b(new QH(y))}))})};
JMU=function(b){if(_.r("attmusi")&&_.r("attmusi_ue")){b={s:b.qzg.bind(b),ir:b.s1y.bind(b)};var h=window;h.attmp=b;if(h.attmq!==void 0)for(var y=_.L(h.attmq),S=y.next();!S.done;S=y.next())S=S.value,S(b);h.attmq=void 0}else h=b.qzg.bind(b),_.HL("yt.aba.att",h),b=b.s1y.bind(b),_.HL("yt.aba.att2",b)};
CWY=function(b){switch(_.W9(b.input)){case _.yk(eeq):var h={};return h.encryptedVideoId=b.innerTubeRequest.externalVideoId,h}return{}};
YqN=function(b){switch(_.W9(b.input)){case _.yk(eeq):if(_.r("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.yk(gK4):if(_.r("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.yk(mo):if(_.r("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&b.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.yk(sKY):var h,y;if(_.r("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((y=_.c((h=b.config)==null?void 0:h.command,_.Qd))==null?0:y.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.Gs5=function(b){var h;if(b.playlistVideoRenderer&&((h=b.playlistVideoRenderer)==null?0:h.engagementBar))return Tur(b.playlistVideoRenderer.engagementBar);if(_.c(b,vV)){var y;if(b=(y=_.c(b,vV))==null?void 0:y.engagementBar)return Tur(b)}return""};
Tur=function(b){if(!b)return"";b=_.c(b,_.ksy);if(b==null||!b.actions)return"";b=_.L(b.actions);for(b=b.next();!b.done;b=b.next()){b=_.c(b.value,_.V_U);var h=void 0;if((h=b)==null||!h.itemId)break;return b.itemId}return""};
_.EKq=function(b){var h;if(b.playlistVideoRenderer&&((h=b.playlistVideoRenderer)==null?0:h.videoId))return b.playlistVideoRenderer.videoId;if(_.c(b,vV)){var y,S;if(b=(y=_.c(b,vV))==null?void 0:(S=y.playlistItemData)==null?void 0:S.videoId)return b}return""};
_.imI=function(b){var h;if(b.playlistVideoRenderer&&((h=b.playlistVideoRenderer)==null?0:h.voteCount))return b.playlistVideoRenderer.voteCount;if(_.c(b,vV)){var y,S;if(b=(y=_.c(b,vV))==null?void 0:(S=y.playlistItemData)==null?void 0:S.voteCount)return b}return 0};
_.bG=function(b,h){return _.Mm(b.entities,"flowStateEntity",h)};
wGr=function(b,h,y,S){var F=void 0;b=_.L(b[h.iconName]||[]);for(var a=b.next();!a.done;a=b.next()){a=a.value;var P=h.iconSize;var K=h.iconStyle;P=!P||P===a[2];var n=fdk[a[0]];S&&S!==a[1]||!P||K&&K!==n?K=!1:F?(K=fdk[a[0]],K=!!h.iconStyle||K==="youtube_outline",P=F.version<=a[1],K=(!!h.iconSize||a[2]===24)&&K&&P):K=!0;K&&(F={name:h.iconName,style:fdk[a[0]],size:a[2],version:a[1],allowMirroring:!!a[3],url:y(h.iconName,a)})}return F};
ldk=function(b,h,y,S){return b+(""+fdk[y[0]]+((S===void 0?0:S)?"_experimental":"")+"/"+h+"/v"+y[1]+"/")+(y[2]+"px.svg")};
qqF=function(b){return _.QC("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&_.QC("INNERTUBE_CLIENT_NAME")!=="WEB_CREATOR"?"bookmark":b};
x_q=function(b,h){return ldk("https://fonts.gstatic.com/s/i/",b,h)};
QKf=function(b,h){return ldk("https://fonts.gstatic.com/s/i/",b,h,!0)};
m_Y=function(b,h){return ldk("https://www.gstatic.com/youtube/img/icons/web/",b,h)};
bQy=function(b){var h=b.enabled;var y=b.itemPlaybackModel;var S=b.thumbnailElRef;var F=b.containerElRef;var a=b.options;var P;_.Qi(function(){var K=F==null?void 0:F.value;var n,X=(n=S())==null?void 0:n.value;n=y();var u=a();if(h&&n&&K&&X&&(u==null?0:u.thumbnail)){var O={data:n,hostElement:K},N,t,R=[].concat(_.f$((N=u.thumbnailOverlays)!=null?N:[]),_.f$((t=n.overlays)!=null?t:[]));t=n.itemPlaybackOptions;N=(t==null?void 0:t.enableRoundedPlayer)||u.enableRounding;t=t==null?void 0:t.disableTimeStatusOverlay;
var I,U;K={mediaRenderer:O,lockupElement:K,thumbnailElement:X,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.YS((I=n.inlinePlayerData)==null?void 0:I.onVisible),navigationEndpoint:_.YS((U=n.inlinePlayerData)==null?void 0:U.onSelect),thumbnail:u.thumbnail,thumbnailOverlays:R,accessibilityText:u.accessibilityText||""},thumbnailSize:u.thumbnailSize,enableRounding:N,mouseleaveCallback:u.mouseleaveCallback,hideTimeDisplay:t}}}else K=void 0;if(I=K){var p;(p=P)==null||h_(p);P=Yr(I);var e,E;
((e=y())==null?0:(E=e.inlinePlayerData)==null?0:E.forceImpAutoplay)&&vKk(P)}},"BLiQOd");
_.m2(function(){var K;(K=P)==null||h_(K)})};
h$M=function(b){b=atob(b);for(var h=[],y=0;y<b.length;y++)h.push(b.charCodeAt(y));return new Blob([new Uint8Array(h)],{type:"image/png"})};
S4q=function(b,h,y,S){S=S===void 0?"INSERTION_POSITION_UNSPECIFIED":S;return b({targetId:h},function(F){var a,P=(a=F.contents)!=null?a:[];a=y!=null?y:[];var K=yHI(P);switch(S){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},F,{contents:[].concat(_.f$(P.slice(0,K)),_.f$(a),_.f$(P.slice(K+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},F,{contents:[].concat(_.f$(a),_.f$(P))});case "INSERTION_POSITION_LAST":return Object.assign({},F,{contents:[].concat(_.f$(P),_.f$(a))});
default:return F}})};
aOr=function(b,h,y,S,F){F=F===void 0?"RELATIVE_INSERTION_POSITION_AFTER":F;return b({targetId:h},function(a){var P,K=(P=a.contents)!=null?P:[];P=Fvf(K,y);if(P<0)return a;P=F==="RELATIVE_INSERTION_POSITION_BEFORE"?P:P+1;return Object.assign({},a,{contents:[].concat(_.f$(K.slice(0,P)),_.f$(S),_.f$(K.slice(P)))})})};
yHI=function(b){var h=b.findIndex(function(y){return _.c(y,_.yp)});
return h>=0?h:b.length};
Fvf=function(b,h){return b.findIndex(function(y){a:{y=_.L(Object.values(y));for(var S=y.next();!S.done;S=y.next())if((S=S.value)&&S.targetId){y=S.targetId;break a}y=""}return y===h})};
jgn=function(b,h,y){return b({targetId:h},function(S){var F,a=(F=S.contents)!=null?F:[];return Object.assign({},S,{contents:dVM(a,y)})})};
dVM=function(b,h){return b.filter(function(y){var S=h.includes;a:{y=_.L(Object.values(y));for(var F=y.next();!F.done;F=y.next())if((F=F.value)&&F.targetId){y=F.targetId;break a}y=""}return!S.call(h,y||"")})};
_.$V8=function(b,h){return{engagementPanelSectionListRenderer:{panelIdentifier:b,identifier:h,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
Lv8=function(b,h){b=b.getAvailableAudioTracks();if(b.length)return b==null?void 0:b.find(function(y){var S;return(y==null?void 0:(S=y.getLanguageInfo())==null?void 0:S.getId())===h})};
_.Kvf=function(b){var h,y=(h=b.getOption("captions","tracklist",{includeAsr:!0}))!=null?h:[];return y=Pb5(y,b)};
ZQ4=function(b){return b.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
Pb5=function(b,h){h=ZQ4(h);if(h==null||!h.length)return b;var y=h.filter(function(P){return P});
h=b.filter(function(P){return P.languageCode.startsWith("en")});
y=_.L(y);for(var S=y.next();!S.done;S=y.next())if(S=S.value,h.length){var F=h[0],a=Object.assign({},F);F.languageCode!==S.languageCode&&(a.displayName=F.languageName+" >> "+S.languageName,a.translationLanguage=S,b.push(a))}return b};
o5j=function(b,h,y){b=_.Kvf(b);if(b.length)return y?b.find(function(S){if(typeof(S==null?void 0:S.translationLanguage)==="object"){var F;return((F=S.translationLanguage)==null?void 0:F.languageCode)===h}return!1}):b==null?void 0:b.find(function(S){return S.languageCode===h})};
M8j=function(b){return b.getOption("captions","tracklist",{includeAsr:!0})};
n5N=function(b){var h=b.getAvailableAudioTracks();if(h!=null&&h.length){var y=b.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.f$(h.map(function(S){return{listItemViewModel:{title:{content:S.getLanguageInfo().getName()},isSelected:S.getLanguageInfo().getId()===(y==null?void 0:y.getLanguageInfo().getId()),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{audioTrackSelectActionCommand:{languageCode:S.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
Xpn=function(b){return b.getOption("captions","tracklist",{includeAsr:!0})};
HQj=function(b){var h=Xpn(b);if(h==null?0:h.length)return h;b.loadModule("captions");return Xpn(b)};
uOU=function(b){var h=b.getOption("captions","track");if(h)return h;b.loadModule("captions");return b.getOption("captions","track")};
NL4=function(b){var h=HQj(b);if(h!=null&&h.length){var y=uOU(b),S;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.Mt("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(y==null?0:y.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.f$(h.map(function(F){return{listItemViewModel:{title:{content:F.displayName},
isSelected:F.displayName===(y==null?void 0:y.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:F.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.Mt("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!y.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!y.translationLanguage&&{selectionText:{content:(y==null?void 0:(S=y.translationLanguage)==null?void 0:S.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[OQq(b)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
OQq=function(b){var h=ZQ4(b);if(h==null||!h.length)throw Error("Hi");var y=uOU(b);b=h.filter(function(S){return!S.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.f$(b.map(function(S){var F;return{listItemViewModel:{title:{content:S.languageName},isSelected:S.languageName===(y==null?void 0:(F=y.translationLanguage)==null?void 0:F.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:S.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
R$q=function(b){return new Promise(function(h,y){if(b===void 0)_.QT(Error("Li"),"ERROR"),y(Error("Li"));else{y=new _.t8n;var S=_.rHY();y=y.init();var F=_.cHN(_.QC("YPC_MB_URL"),!0);Promise.all([y,F]).then(function(){var a=_.S4.payments.business.integration.ClientTokenFactory.createClientToken(b,S);h(a)})}})};
IOj=function(b,h,y,S,F,a,P){var K=_.wS();y=y.replace(/-/g,"+").replace(/_/g,"/");var n=_.HT().get("hl"),X=_.Fo(_.xg),u=h==null?void 0:h.element;u&&_.kG(u);z$M(h,!0);_.DVy(X,y,K.resolve,function(){u&&_.VH(u)},function(O){u&&_.VH(u);
K.reject(O)},n,S?function(O){S&&_.f9(b,S,{backend_analytics:O})}:void 0,K.resolve,F,a,P);
return K.promise};
z$M=function(b,h){!(b=b==null?void 0:b.element)||b.tagName!=="YT-BUTTON-RENDERER"&&b.tagName!=="YTD-BUTTON-RENDERER"||(b.disabled=h)};
BLF=function(){var b=_.Mt("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.aU(b),actionButton:{buttonRenderer:YxI()}}},popupType:"TOAST"}};
WvI=function(){var b=_.Mt("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.aU(b),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
AHM=function(b){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:b}]}}};
a8=function(b,h,y,S){var F;return _.Z(function(a){if(a.nextAddress==1)return _.WE(a,2),a.yield(b,4);if(a.nextAddress!=2)return(F=_.zD(h.getState().entities).length>0)?a.return({title:_.aU(_.Mt("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.aU(_.Mt("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:s1I()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
a.return(TiU(y,S));_.C$(a);return a.return(TiU(y,S))})};
UVq=function(b,h){return h?h==="PPSV"||SGr(b,h):!1};
ppM=function(b){b.responseContext||(b.responseContext={});b.responseContext.maxAgeSeconds=0;return b};
j4=function(b){var h;return _.Z(function(y){return y.nextAddress==1?y.yield(JHI(b,"service:topbar:fallback"),2):(h=y.yieldResult)&&_.de(h)?y.return(ppM(_.de(h))):y.return()})};
e$f=function(b){var h;return _.Z(function(y){return y.nextAddress==1?y.yield(JHI(b,"service:downloads_settings:fallback"),2):(h=y.yieldResult)&&_.de(h)?y.return(h):y.return()})};
JHI=function(b,h){var y;return _.Z(function(S){if(S.nextAddress==1)return b?S.yield(b.get(h),2):S.return();y=S.yieldResult;return!y||!_.de(y)||!isNaN(Number(y.data.expireTimestampMs))&&y.isExpired()?S.return():S.return(y)})};
Cb4=function(b){var h=_.H9().resolve($7).getState().entities;return b.playlistId?UVq(h,b.playlistId):!1};
sgj=function(b){var h=_.tj("web_pbj_log_warning_rate",0);h=h>0&&Math.random()<h;if(!_.c(b,_.cd))return h&&_.vX(Error("ej")),!1;var y;return _.r("shorts_controller_retrieve_seedless_sequence_v2")&&((y=_.c(b,_.cd))==null?void 0:y.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:g5n(b)?!0:(h&&_.vX(Error("fj")),!1)};
g5n=function(b){var h=(_.c(b,_.wO)||_.c(b,_.cd)).videoId;if(!h||!Y4q.test(h))return!1;var y;return(b=(y=_.c(b.commandMetadata,_.ZW))==null?void 0:y.url)&&(b.includes(h)||b.startsWith("/clip"))?!0:!1};
_.GVy=function(){var b=_.HT();return b.getFlag(192)?b.getFlag(190):!(_.Ff("web_watch_cinematics_disabled_by_default")||_.Ff("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&TLj())};
_.LW=function(b,h,y){var S={};S.currentUrl=h;S.vis=b.vis!==void 0?b.vis:0;S.splay=!1;h=_.HT();S.autoCaptionsDefaultOn=h.getFlag(66);h.getFlag(141)?h.getFlag(140)?S.autonavState="STATE_OFF":S.autonavState="STATE_ON":S.autonavState="STATE_NONE";S.html5Preference="HTML5_PREF_WANTS";isNaN(_.QC("STS"))||(S.signatureTimestamp=_.QC("STS"));b.autonav&&(S.autoplay=!0,S.autonav=!0);b.mutedAutoplay&&(S.autoplay=!0,S.mutedAutoplay=!0);b.inlinePlayback&&(S.autoplay=!0,S.autonav=!1,S.isInlineUnmutedPlayback=!!b.inlineUnmuted);
S.referer=y;S.lactMilliseconds=b.lact!==void 0?b.lact.toString():"-1";_.r("enable_unknown_lact_fix_on_html5")&&S.lactMilliseconds==="-1"&&_.vX(new _.Gn("Unknown LACT is set in playbackContext.",{"lact in tempData":b.lact||"undefined",autonav:b.autonav||"undefined"}));b={};h.getFlag(194)&&(b.hasShownAmbientMode=!0);h.getFlag(192)&&(b.hasToggledOffAmbientMode=!0);_.GVy()&&(b.watchAmbientModeEnabled=!0);S.watchAmbientModeContext=b;return S};
kVn=function(b){var h={},y=b.pbis||0;y&&(h.playbackBeginsInSeconds=y);b.prefetch_reason&&b.prefetch_reason==="hc_pbis"&&(h.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return h};
V8M=function(b,h){var y;if(h==null?0:(y=h.requestTemplate)==null?0:y.panelId)b.panelId=h.requestTemplate.panelId;var S;if(h==null?0:(S=h.requestTemplate)==null?0:S.params)b.params=h.requestTemplate.params};
iQU=function(){if(E55)return E55();var b=!_.r("idb_response_store_auth_killswitch"),h={};E55=Ov("yt-it-response-store",{objectStores:(h.ResponseStore={addedAtVersion:1},h),shared:!b,upgrade:function(y,S){S(1)&&(y=ah(y,"ResponseStore",{keyPath:["key","clientName"]}),dd(y,"byExpiration","expireTimestampMs"),dd(y,"byInterface","clientName"))},
version:1});return E55()};
fOU=function(b){return _.Kz(iQU(),b)};
lO8=function(b,h){var y;return _.Z(function(S){return S.nextAddress==1?S.yield(_.uj(),2):(y=S.yieldResult)?S.return(new wpr(b,h,y)):S.return()})};
q4I=function(b){var h=Object.keys(b)[0];if(h)return b.screenExit&&(h=h+";"+b.screenExit.screen),h};
xVY=function(b){var h=new Map;b=_.L(b);for(var y=b.next();!y.done;y=b.next())y=y.value,y!=null&&(h.has(y.taskType)||h.set(y.taskType,[]),h.get(y.taskType).push(y));return h};
Qgy=function(b){b=[].concat(_.f$(b)).sort(function(y,S){return y-S});
var h=Math.floor(b.length/2);return b.length%2?b[h]:(b[h-1]+b[h])/2};
b54=function(b,h){b=b===void 0?xGN:b;h=h===void 0?{}:h;_.HL("yt.logging.errors.log",_.QT);lvj();mVM(hTM(),h);window.onerror=b;v5y=qkI;window.addEventListener("unhandledrejection",function(y){if(y.reason instanceof Error){var S=y.reason;_.bh(S,{source:"unhandledrejection"});S.name==="AbortError"&&(S.level="WARNING")}qkI(y.reason);y.preventDefault()})};
_.hAy=function(b){var h,y,S,F,a,P,K,n,X,u,O,N,t,R,I,U,p,e,E,Y,w,x,q,dI,L4,Rq,Xn,Ny,gI,YU,VN,Hb,vF,xU,Xa,rG,Wb,Xx,Bb,oq;return _.Z(function(kU){if(kU.nextAddress==1)return kU.yield(_.Nm(b,{mode:"readonly",enableRetries:!0},function(O7){return tt(O7,"playbackData").then(function(io){var cb=io.map(function(oN){return oN.transfer}).filter(function(oN){return!!oN}),QW=io.map(function(oN){return oN.offlineVideoPolicy}).filter(function(oN){return!!oN}),vM=io.filter(function(oN){return!!oN.key}).map(function(oN){return _.oU(_.Pi(oN.key).entityId,
"downloadStatusEntity")});
cb=tt(O7,"transfer",cb);QW=tt(O7,"offlineVideoPolicy",QW);vM=tt(O7,"downloadStatusEntity",vM);var wG=cb.then(function(oN){oN=oN.reduce(function(uo,dA){(dA==null?0:dA.offlineVideoStreams)&&uo.push.apply(uo,_.f$(dA.offlineVideoStreams));return uo},[]).filter(function(uo){return!!uo});
return tt(O7,"offlineVideoStreams",oN)});
return Fl.all([cb,QW,wG,vM]).then(function(oN){var uo=_.L(oN);oN=uo.next().value;var dA=uo.next().value;var QN=uo.next().value;uo=uo.next().value;return[io,oN,dA,QN,uo]})})}),2);
if(kU.nextAddress!=3)return h=kU.yieldResult,kU.yield(_.Nm(b,{mode:"readonly",enableRetries:!0},function(O7){return tt(O7,"mainDownloadsListEntity").then(function(io){var cb,QW;return(QW=(cb=io[0])==null?void 0:cb.downloads)!=null?QW:[]})}),3);
y=kU.yieldResult;S=_.L(h);F=S.next().value;a=S.next().value;P=S.next().value;K=S.next().value;n=S.next().value;X=F;u=a;O=P;N=K;t=n;R={};I={};U={};p={};e={};E=[];Y=_.L(u);for(w=Y.next();!w.done;w=Y.next())(x=w.value)&&(R[x.key]=x);q=_.L(O);for(dI=q.next();!dI.done;dI=q.next())(L4=dI.value)&&(I[L4.key]=L4);Rq=_.L(t);for(Xn=Rq.next();!Xn.done;Xn=Rq.next())(Ny=Xn.value)&&(U[Ny.key]=Ny);gI=_.L(N);for(YU=gI.next();!YU.done;YU=gI.next())(VN=YU.value)&&(p[VN.key]=VN);Hb=_.L(y);for(vF=Hb.next();!vF.done;vF=
Hb.next())xU=vF.value,Xa=void 0,e[(Xa=xU.videoItem)!=null?Xa:""]=!0,xU.videoItem&&(Wb=rG=void 0,Xx=(Wb=(rG=_.Pi(xU.videoItem))==null?void 0:rG.entityId)!=null?Wb:"",E.push({externalVideoId:Xx}));Bb=X.filter(function(O7){if(!O7||!O7.key||!O7.offlineVideoPolicy)return!1;O7=_.Pi(O7.key).entityId;O7=_.oU(O7,"downloadStatusEntity");var io;return!(O7&&((io=U[O7])==null?void 0:io.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
oq=Bb.map(function(O7){var io=R[O7.transfer],cb=[];if(io==null?0:io.offlineVideoStreams)for(var QW=_.L(io.offlineVideoStreams),vM=QW.next();!vM.done;vM=QW.next())(vM=p[vM.value])&&cb.push(vM);QW=I[O7.offlineVideoPolicy];vM=e;var wG=O7==null?void 0:O7.playerResponseTimestamp,oN=_.Pi(QW.key).entityId;O7=_.oU(oN,"mainVideoEntity");if(QW.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var uo="OFFLINE_VIDEO_STATE_DISABLED";QW.expirationTimestamp&&Number(QW.expirationTimestamp)<Date.now()/1E3&&(uo="OFFLINE_VIDEO_STATE_EXPIRED")}else if(QW.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")uo="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(io==null?void 0:io.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":uo="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":uo="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":uo="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":uo="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":uo="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":uo="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:uo="OFFLINE_VIDEO_STATE_UNKNOWN"}if(uo==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(io==null?void 0:io.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":uo="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":uo="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":uo=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}oN={id:oN,videoState:uo};if(io==null?0:io.cotn)oN.cotn=io.cotn;if(io==null?0:io.maximumDownloadQuality)oN.selectedVideoQuality=io==null?void 0:io.maximumDownloadQuality;if(io==null?0:io.lastProgressTimeMs)oN.lastProgressTimeMs=io.lastProgressTimeMs;wG&&(oN.playerResponseSavedTimeMs=String(Number(wG)*1E3));io=String;wG=0;cb=_.L(cb);for(uo=cb.next();!uo.done;uo=cb.next())if(uo=uo.value,uo.streamsProgress){uo=_.L(uo.streamsProgress);for(var dA=uo.next();!dA.done;dA=
uo.next()){var QN=void 0;wG+=Number((QN=dA.value.numBytesDownloaded)!=null?QN:0)}}oN.downloadedBytes=io(wG);oN.selectedOfflineMode=vM[O7]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";QW.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(oN.offlinePlaybackDisabledReason=QW.offlinePlaybackDisabledReason);return oN});
return kU.return({offlineVideos:oq,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:E}}})})};
y3I=function(){var b;return _.Z(function(h){return h.nextAddress==1?h.yield(_.Hi(),2):(b=h.yieldResult)?h.return(_.hAy(b)):h.return({state:"PES Unavailable"})})};
agU=function(){var b,h,y,S;return _.Z(function(F){if(F.nextAddress==1)return F.yield(_.Hi(),2);if(F.nextAddress!=3)return(b=F.yieldResult)?F.yield(SOU(b),3):F.return({state:"PES Unavailable"});h=F.yieldResult;y={};S=h.reduce(function(a,P){a[P.key]=P;return a},y);
return F.return(FSU(S))})};
FSU=function(b){for(var h={},y=[],S=_.L(Object.keys(b)),F=S.next();!F.done;F=S.next()){var a=F.value;F=b[a];var P=void 0;if(((P=F)==null?void 0:P.entityType)==="mainVideoEntity"){delete b[a];var K=F.data;F={};if(K){var n=void 0;P=(n=K.videoId)!=null?n:"vid-"+a;a=b;F.video=K;delete F.video.formattedDescription;delete F.video.thumbnail;K.owner&&(n=a[K.owner],n==null?0:n.data)&&(delete a[n.key],F.video.owner=n.data,delete F.video.owner.avatar);if(K=K.downloadState)if(n=a[K],n==null?0:n.data)if(delete a[K],
K=n.data.playbackData)if(n=a[K],n!=null&&n.data){delete a[K];K=n.data;delete K.playerResponseJson;F.playbackData=K;if(K.transfer&&(n=a[K.transfer],n==null?0:n.data)){delete a[n.key];var X=n.data;F.transfer=X;n=[];X=_.L(X.offlineVideoStreams||[]);for(var u=X.next();!u.done;u=X.next())if(u=a[u.value])delete a[u.key],n.push(u.data);n&&(F.streams=n)}(K=K.offlineVideoPolicy)&&(K=a[K])&&K.data&&(delete a[K.key],F.offlineVideoPolicy=K.data)}h[P]=F}}else F&&F.entityType==="offlineOrchestrationActionWrapperEntity"&&
F.data&&(delete b[F.key],P=F.data,a=void 0,y.push({id:P.rootActionId,type:((a=P.actionProto)==null?void 0:a.actionType)||"",entity:F}))}h.wrapperEntities=y;Object.keys(b).length>0&&(h.unknownKeys=b);return h};
dX8=function(){var b,h,y,S,F,a,P,K,n;return _.Z(function(X){if(X.nextAddress==1)return b=(new _.SZ("")).hasLocalStorage(),S=!!((h=_.S5.crypto)==null?0:(y=h.subtle)==null?0:y.importKey),F=!!_.S5.BroadcastChannel,a=!!_.S5.navigator.locks,X.yield(Dmq(),2);P=X.yieldResult;K=b&&S&&F&&a&&P;n={isSupported:K};if(K)return X.return(n);n.missingBrowserFeatures=[];P||n.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");b||n.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
S||n.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");F||n.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");a||n.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return X.return(n)})};
jfj=function(b,h,y,S){var F=!1,a={contentId:void 0,contentType:"video"};h=_.L(Object.entries(h));for(var P=h.next();!P.done;P=h.next()){var K=_.L(P.value);P=K.next().value;K=K.next().value;b.includes(P)&&!y.has(K)?(a.contentId=K,y.add(K),F=!0):P==="contentType"?K==="LOCKUP_CONTENT_TYPE_PLAYLIST"&&(a.contentType="playlist"):typeof K==="object"&&K!==null&&jfj(b,K,y,S)}F&&S.push(a)};
$Xr=function(){var b;return!((b=Pf?Pf:null)==null||!b.window)};
_.KSr=function(b){if(_.LSr()){var h=_.Pv8().mediaSession;try{h.setActionHandler("enterpictureinpicture",function(y){b(y)})}catch(y){}}};
_.LSr=function(){return!(!Pf||!Pf)&&Iq()&&_.rYI("Chromium")>=120};
Z5q=function(b){for(var h=[],y=_.L(document.styleSheets),S=y.next(),F={};!S.done;F={node$jscomp$777:void 0},S=y.next())F.node$jscomp$777=S.value.ownerNode,F.node$jscomp$777&&(F.node$jscomp$777 instanceof HTMLStyleElement||F.node$jscomp$777 instanceof HTMLLinkElement)&&h.push(new Promise(function(a){return function(P){var K=a.node$jscomp$777.cloneNode(!0);K.onload=function(){P()};
K.onerror=function(){_.vX(Error("wj"));P()};
b.document.head.appendChild(K)}}(F)));
return Promise.all(h)};
r3F=function(b){var h=[_.r1(onI),_.r1(Mo8),_.r1(nnr)];X68(window.document.documentElement,b.document.documentElement,[_.r1(H5f),_.r1(u6M),_.r1(O54),_.r1(N8F),_.r1(toF)]);X68(window.document.body,b.document.body,h)};
X68=function(b,h,y){b=_.L(b.attributes);for(var S=b.next();!S.done;S=b.next())if(S=S.value)try{_.n$(y,h,S.name,S.value)}catch(F){}};
RAM=function(b,h){b=new _.KW(b.document.documentElement);b.start(c3n,h);return b};
zAU=function(b){var h=b.document.documentElement;h.addEventListener("click",function(y){Lh4(h,y)});
h.addEventListener("touchstart",function(y){M$F(y)});
h.addEventListener("mousedown",function(y){M$F(y)})};
Igr=function(b,h,y,S){S=S===void 0?!1:S;h=new DXU(h||b,y||b);return{x:b.x+((S===void 0?0:S)?h.lengthX*-1:h.lengthX)*.2,y:b.y+((S===void 0?0:S)?h.lengthY*-1:h.lengthY)*.2}};
B8y=function(b){if(!b)return!1;var h=b.status==="OK"||b.status==="LIVE_STREAM_OFFLINE",y,S,F,a=(F=(y=b.errorScreen)==null?void 0:y.playerLegacyDesktopYpcTrailerRenderer)!=null?F:(S=b.errorScreen)==null?void 0:S.ypcTrailerRenderer;return!!h||!!a};
_.WSq=function(b,h){if(!b)return!1;var y,S=(y=b.errorScreen)==null?void 0:y.playerLegacyDesktopYpcOfferRenderer,F;h=!!(h==null?0:(F=h.playerOverlayRenderer)==null?0:F.gatedActionsOverlayRenderer);return!!B8y(b)||!!S||!!h};
p68=function(b){return A3N(b,0,"gclid",b.search(UXF))>=0||A3N(b,0,"gad_source",b.search(UXF))>=0};
J3Y=function(b){var h=[],y=0;return{clear:function(){y=h.length=0},
push:function(S){h[y]=S;y=(y+1)%b},
iterate:function(){return function F(){var a,P,K,n;return _.nW(F,function(X){switch(X.nextAddress){case 1:_.p$(X,2),a=h.length,P=0;case 4:if(!(P<a)){X.jumpTo(2);break}K=y+P;n=_.Xo;return X.yield(h[K%a],7);case 7:n(X.yieldResult);P++;X.jumpTo(4);break;case 2:_.U3(X),_.Jk(X,0)}})}()}}};
eAF=function(b){b.eventsToIgnore||(b.eventsToIgnore=[]);var h=b.eventsToIgnore.map(K4Y),y=new Set(h),S=J3Y(b.bufferSize);return{flush:function(){var F=Array.from(S.iterate());S.clear();F=F.map(function(a){return{name:a.name,timestamp:a.startTime,attributes:a.attributes}});
return JSON.stringify(F)},
onSpanStart:function(F){F.name==="event"&&y.has(F.attributes.type)||S.push(F)}}};
Cvf=function(b){b=eAF(b);var h=b.flush;ATF({onSpanStart:b.onSpanStart});yy.subscribe("handleError",function(y){try{y.params.breadcrumbs=h()}catch(S){_.QT(S,"WARNING")}})};
gnF=function(){AL("web_tracing_action");_.Ua("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
sfU=function(){AL("web_tracing_action");_.Ua("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
G5n=function(b,h,y){if(h===void 0){YOf||(sfU(),setInterval(sfU,6E5),YOf=!0);var S="web_tracing_action"}else S=h;var F,a=((F=b.endTime)!=null?F:b.startTime)-b.startTime;F={};y=T8n(b.name,a,b.startTime,{webTracing:(F[b.name]=b.attributes,F)},y,S,{spanStatus:b.status});if(b.children)for(b=_.L(b.children),S=b.next();!S.done;S=b.next())G5n(S.value,h,y)};
k5F=function(b){var h=gaU.bind(null,"yt.telemetry_extension");window.addEventListener("message",function(y){y.data&&typeof y.data==="object"&&(y=y.data,y.from==="extension"&&y.app==="yt.telemetry"&&(h("Received message from extension",y),b.onMessage(y)))});
return function(y,S){y={app:"yt.telemetry",from:"app",key:y,payload:S};h("Sending message to extension",y);window.postMessage(y,"*")}};
VoM=function(){var b=b===void 0?3E3:b;var h=k5F({onMessage:function(){}}),y=[];
return{onSpanEnd:function(S){S.parentId==null&&y.push(S)===1&&setTimeout(function(){var F=[].concat(_.f$(y));y.length=0;h("spansReported",{spans:F})},b)}}};
EnU=function(b){b=b===void 0?400:b;var h=[],y=[];return{start:function(){return M65({checkoutEveryNth:b,emit:function(S,F){F&&(h=y,y=[]);y.push(S)}})},
getRecording:function(){return[].concat(_.f$(h),_.f$(y))}}};
w64=function(){(new i5n({sessionReplayEvents:_.tj("web_tracing_session_replay",0)})).subscribe(function(b){if(b.sessionReplayEvents>0)try{var h=EnU(b.sessionReplayEvents);h.start();if(_.r("web_tracing_session_replay_demo")){var y=console.log;window.exportSessionReplay=function(){var S=JSON.stringify(h.getRecording(),null,2);S=fgF(new Blob([S],{type:"text/plain"}));var F=document.createElement("a");F.download="session_replay.json";F.dataset.downloadurl=["application/json",F.download,F.href].join(":");
F.style.display="none";F.href=S;F.click();URL.revokeObjectURL(S);y("View replay at go/yt-session-replay-viewer")}}}catch(S){_.vX(Error("yj"))}})};
qOy=function(){var b=window.fetch;window.fetch=function(){var h=_.x$.apply(0,arguments),y=_.L(h),S=y.next().value;y=y.next().value;var F=bS("httpEvent",{method:(y===void 0?{}:y).method||"GET",path:lgk(S),type:"fetch"},{active:!1});return b.apply(null,_.f$(h)).then(function(a){F.addAttributes({statusCode:a.status,statusText:a.statusText});F.end();return a}).catch(function(a){F.end("SPAN_STATUS_ERROR");
throw a;})}};
xXq=function(){var b=XMLHttpRequest.prototype.open,h=XMLHttpRequest.prototype.send;XMLHttpRequest.prototype.open=function(y,S,F,a,P){var K=this;F=F===void 0?!0:F;this._requestData={method:y,url:S.toString()};this.addEventListener("load",function(){var n=K._span;n==null||n.addAttributes({statusCode:K.status,responseContentLength:K.responseText.length});n==null||n.end()});
this.addEventListener("error",function(){var n=K._span;n==null||n.addAttributes({statusCode:K.status,statusText:K.statusText});n==null||n.end("SPAN_STATUS_ERROR")});
this.addEventListener("abort",function(){var n=K._span;n==null||n.addAttributes({statusCode:K.status,aborted:!0});n==null||n.end()});
b.apply(this,[y,S,F,a,P])};
XMLHttpRequest.prototype.send=function(y){var S=this._requestData||{method:"N/A",url:"N/A"};this._span=bS("httpEvent",{method:S.method,path:lgk(S.url),type:"xhr"},{active:!1});h.apply(this,[y])}};
lgk=function(b){try{if(b instanceof URL)return b.pathname;b instanceof Request&&(b=b.url);return(new URL(b,"https://youtube.com")).pathname}catch(h){return"<unable to parse path>"}};
mXk=function(){window.performance&&window.performance.getEntriesByType&&window.addEventListener("load",function(){try{var b=window.performance.getEntriesByType("navigation");if(b.length>0){var h=b[0],y=window.performance.timeOrigin;bS("pageLoad",{navigationType:Qfr(h.type),unloadEventStart:Math.round(h.unloadEventStart),unloadEventEnd:Math.round(h.unloadEventEnd),domInteractive:Math.round(h.domInteractive),domContentLoadedEventStart:Math.round(h.domContentLoadedEventStart),domContentLoadedEventEnd:Math.round(h.domContentLoadedEventEnd),
domComplete:Math.round(h.domComplete),loadEventStart:Math.round(h.loadEventStart),loadEventEnd:Math.round(h.loadEventEnd),redirectCount:h.redirectCount},{active:!1,startTime:y+h.startTime,endTime:y+h.loadEventEnd})}}catch(S){}})};
Qfr=function(b){switch(b){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"}};
Sl8=function(){for(var b=vn8.value,h={},y=_.L(b.enabledSpansArray),S=y.next();!S.done;S=y.next())h[S.value]=!0;WJM({sessionId:nq8(),enabledSpans:h,shouldSampleFn:function(F,a,P){if(bJN){var K;return F==="shortToShort"||(P==null?void 0:(K=P.rootSpan())==null?void 0:K.name)==="shortToShort"}return!0}});
CC8();vT("pageLoad")&&mXk();vT("httpEvent")&&(qOy(),xXq());b.exportToCsi&&ATF(htY);b.exportToDevTools&&ATF(VoM());b.maxBreadcrumbs>0&&Cvf({eventsToIgnore:yII,bufferSize:b.maxBreadcrumbs})};
Fef=function(b){return new Promise(function(h){window.setTimeout(h,b)})};
aZf=function(b){var h={bicf:function(a){b.s4x=a},
blc:function(){return b.getLatestChallengeResponse()},
bcr:function(a){b.z8R.push(a)}},y=window;
y.ntpevasrs=h;if(y.ntpqfbel!==void 0)for(var S=_.L(y.ntpqfbel),F=S.next();!F.done;F=S.next())F=F.value,F(h);y.ntpqfbel=void 0};
da4=function(b){return _.Z(function(h){if(h.nextAddress==1)return _.WE(h,2),h.yield(b.k5k(),4);if(h.nextAddress!=2)return _.Lz(h,0);_.C$(h);_.g3(h)})};
joY=function(b){var h,y;(h=b.ytcsi)==null||(y=h.tick)==null||y.call(h,"pot_ist")};
$aI=function(b){if(b instanceof Error){var h=_.hj("yt.logging.errors.log");h&&h(b,"WARNING")}};
Le5=function(b){try{var h=JSON.parse(b);if(h.bgChallenge)return h}catch(y){}};
Keq=function(){var b=window,h={networkStatusManagerPromise:_.H9().resolve(new KyI(_.PX)),initialChallengeSli:_.r("wpo_att_sli")?new _.eK8("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};b=b===void 0?window:b;var y=b.ytAtR,S;h==null||(S=h.initialChallengeSli)==null||_.Hf(S);if(y){if(y=Le5(y)){var F;h==null||(F=h.initialChallengeSli)==null||_.uG(F,"SUCCESS");PTf(y,h)}b.ytAtR=void 0}else b.ytAtRC=function(a){if(a=Le5(a)){var P;h==null||(P=h.initialChallengeSli)==null||
_.uG(P,"SUCCESS");PTf(a,h);b.ytAtRC=void 0}}};
Mry=function(){if(ZJy)return ZJy;try{var b=_.gB("IFRAME");_.Fg(b,_.Ra(o_n));b.sandbox.add("allow-same-origin");b.style.display="none";document.body.appendChild(b);return ZJy=b}catch(h){b=new _.Gn("Failed to create sandbox iframe"),_.QT(b)}};
n_N=function(){return function(b,h){_.QC("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[b]=h}};
XSn=function(){return function(b,h){var y={};y[b]=h;b=_.bN(_.wJf)(y);Object.keys(b).length>0&&_.WT(b)}};
OJU=function(){if(ubY()==="hidden")var b="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else ubY()==="visible"&&(b="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",HJF=null);b&&uZk(b)};
uZk=function(b){if(b==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||b==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(NM5===b)return;NM5=b}var h=9E4+Math.random()*2E3;if(b!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.td()>h)&&ubY()==="visible"){h=-1;HJF&&(h=Math.round((0,_.NO)()-HJF));var y=String;var S=_.hj("_fact",window);S=S==null||S==-1?-1:Math.max(Date.now()-S,0);_.qi("foregroundHeartbeat",{firstActivityMs:y(S),clientDocumentNonce:XIF,index:String(trq),lastEventDeltaMs:String(h),trigger:b});
_.HL("_fact",-1,window);trq++;HJF=(0,_.NO)()}};
rIr=function(b,h,y,S,F,a){h=new Uint8Array(h);if(b.length===0)return h;var P=0;F=F!=null?F:b.length-1;for(var K=y;K<=F;K++){var n=b[K],X=K===y?S:0,u=void 0,O=K===F?(u=a)!=null?u:n.length:n.length;n=n.subarray(X,O);h.set(n,P);P+=n.length}return h};
_.cIN=function(){try{return!!self.sessionStorage}catch(b){return!1}};
Rtn=function(){var b=navigator;return new Promise(function(h,y){var S;(S=b.webkitTemporaryStorage)!=null&&S.queryUsageAndQuota?b.webkitTemporaryStorage.queryUsageAndQuota(function(F,a){h({usage:F,quota:a})},function(F){y(F)}):y(Error("Hj"))})};
ztf=function(b,h){var y={errorSeverity:h.errorSeverity.toString(),wizFeatureFlags:Object.entries(h.featureFlags).join("\n")};w2U(h,y);h=h.errorSeverity;h===3?_.QT(b,"ERROR",void 0,void 0,void 0,y):h===2&&_.QT(b,"WARNING",void 0,void 0,void 0,y);_.r("cow_if_errors_in_popup")&&h===3&&b.message.indexOf("<If>")!==-1&&window.alert(b.message)};
DaI=function(b,h){var y=Qh.get(b)||{layerNode:h};y.layerNode=h;B2N(b,y);b.getScreenLayer=function(){return O9(y.layerNode)}};
IZk=function(b){var h;b=b.parentNode;for(var y;b&&((h=Qh.get(b))==null||!h.isRenderer)&&!((y=b.polymerController)!=null?y:b).isRenderer_;)b=b.parentNode||b.host;if(h=b)return Qh.get(h)};
BMF=function(b){if(b){Qh.delete(b);var h=_.H9().resolve(tR);eF5(b,h)}};
AI8=function(b,h,y){if(y===void 0?0:y){if(y=b.getAttribute("client-ve-type"),h.data&&!h.disableReactiveLogging||y)_.xH(function(){Wer(b,_.bn(h.data))},"Ag"),_.m2(function(){return void BMF(b)})}else typeof h.data!=="function"&&Wer(b,h.data)};
Wer=function(b,h){Uan++;pSM(b,h)&&_.xP.addJob(function(){_.N$(_.xP,function(){if(pSM(b,h)&&b.ownerDocument.documentElement===document.documentElement&&b){var y;if(b.getAttribute("layer")){var S=y=Number(b.getAttribute("layer")),F=Qh.get(b);F?F.layerNode.layer=S:DaI(b,new JIk(S));(S=IZk(b))&&(F=Qh.get(b))!=null&&(F.layerNode.parent=S.layerNode)}else if(y=Qh.get(b))y=O9(y.layerNode);else{y=O9;S=new JIk;if(F=IZk(b))S.parent=F.layerNode;DaI(b,S);y=y(S)}y!=null||(y=0);S=b.getAttribute("client-ve-type");
F=Number(S);var a=!1;S=!1;var P=Qh.get(b),K;if((K=P)&&!(K=P[etU]!==h)&&(K=F)){var n;K=((n=Qh.get(b))==null?void 0:n.clientVeType)===void 0}K&&(P[etU]=h,a=S=P.isRenderer=!0);Qh.has(b)&&(Qh.get(b).clientVeType=F);b.visualElement&&(S=!0);if(_.r("wiz_next_ld_fix_client_ve_spec")){var X;n=((X=_.c(h==null?void 0:h.rendererContext,_.c3))==null?void 0:X.loggingDirectives)||(h==null?void 0:h.loggingDirectives)}else n=h==null?void 0:h.loggingDirectives;n&&n.clientVeSpec&&(X=CTj(_.OQ(),b),X=_.g_n(_.rU(),n,X||
void 0,y))&&(b.visualElement=X);!b.visualElement&&F&&a&&(b.veType=F,X=void 0,_.r("wiz_next_client_ve_parent_fix")&&(X=CTj(_.OQ(),b)),X=_.NJ(_.rU(),b,X,y),b.visualElement=X);S&&(X=_.H9().resolve(tR),ui(b,{data:h,observer:X,layer:y,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
pSM=function(b,h){return(h==null?0:h.trackingParams)||(h==null?0:h.loggingDirectives)||_.c(h==null?void 0:h.rendererContext,_.c3)||b.getAttribute("client-ve-type")?!0:!1};
sok=function(b,h,y){b.componentType!==Gr&&y instanceof HTMLElement&&h&&!_.r("cow_logging_in_component_wrapper")&&AI8(y,h,!0)};
kxn=function(){if(!Ylj){Ylj=!0;var b=_.r("enable_wiz_context_per_component")||!1;b=Object.assign({},{flushRenderEffectsDuringRender:!0,enableQueueEffectAndOnInitInitialRuns:_.r("enable_wiz_queue_effect_and_on_init_initial_runs"),enableContextPerComponent:b,enableContextBasedComponentStacks:b},{handleError:ztf,enableComponentStacksInErrorMessages:!1});Object.assign(tr,b);_.r("web_c3_idom_interop_ks")&&(PXj=TMq);Gx4();njr=FGf;ZxN=dZr}};
Gx4=function(){_.r("cow_logging_in_component_wrapper")?(oVU=function(b,h){h instanceof HTMLElement&&AI8(h,b,!0)},v6M=function(){}):(oVU=function(){},v6M=sok)};
VrM=function(b,h,y){h=h===void 0?{}:h;var S,F=(S=_.c(b.commandMetadata,_.ZW))==null?void 0:S.url;S=h.form||{};!y||S.element||S.skipDefaultElement||(h.form=h.form||{},h.form.element=y);if(F&&F!=="/service_ajax")return{type:0,command:b,form:h.form};if(_.r("kevlar_service_command_check")){if(_.ip(_.H9().resolve(_.DT),b))return Object.assign({},{type:1,command:b},h)}else{var a;if((a=_.c(b.commandMetadata,_.ZW))==null?0:a.apiUrl)return Object.assign({},{type:1,command:b},h)}return{type:2,command:b,form:h.form}};
E_5=function(b){if(b.form){var h=b.form,y=Object.assign({},h);h=h.element;y=(delete y.element,y);if(h)return[_.dh(h,[b.command,y,b.commandController])]}return[]};
iJq=function(b){if(b.form){var h=b.form,y=Object.assign({},h);h=h.element;y=(delete y.element,y);h&&_.jx(h,[b.command],h,y)}};
wS5=function(b,h,y){var S=new fZk(b,h),F=new t_(b,h,y);b={"/youtubei/v1/browse":new re(b,h,y),"/youtubei/v1/player":S,"/youtubei/v1/navigation/resolve_url":new cf,"/youtubei/v1/next":F,"/youtubei/v1/guide":new R8(y),"/youtubei/v1/search":new zf(b,h,y),"/youtubei/v1/reel/reel_item_watch":new Da(b,h,y),"/youtubei/v1/get_watch":new I8(S,F)};b["/youtubei/v1/account/account_menu"]=new Bf;b["/youtubei/v1/notification/get_notification_menu"]=new Wf;return b};
U9=function(){var b=_.H9().resolve(_.A_);return Promise.resolve(lZY(b,_.S5.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
qln=function(b){return b&&(b=_.pW(_.hiI(b)))?(new URLSearchParams(b)).get("service"):null};
CW=function(b,h){_.js(_.J_(),function(){_.pI("adl")});
_.H9().resolve(xaY)(h);b=b.root;b.loadData&&b.loadData(h);(h==null?0:h.response)?_.uG(sBf(),"SUCCESS"):_.vX(new _.Gn("Lifecycle: No response in data",_.m$("IS_SHELL_LOAD"),h?h.page:"NO_PAGE",h?h.endpoint:"NO_ENDPOINT"));b.polymerController.$["page-manager"].lazyPrepareCriticalPages((h==null?void 0:h.page)||"",h.endpoint);var y,S;((S=_.c(h==null?void 0:(y=h.endpoint)==null?void 0:y.commandMetadata,_.ZW))==null?0:S.webPageType)&&_.hP().dispatch(_.e4(_.c(h.endpoint.commandMetadata,_.ZW).webPageType))};
Qo8=function(){var b,h;return _.Z(function(y){switch(y.nextAddress){case 1:b=window;if(!b.getDataPromise){y.jumpTo(2);break}_.WE(y,3);return y.yield(b.getDataPromise(),5);case 5:return y.return(y.yieldResult);case 3:return _.C$(y),y.yield(U9(),6);case 6:return y.return(y.yieldResult);case 2:if(b.getInitialData)return h=b.getInitialData(),b.getInitialData=void 0,y.return(h);throw Error("Jj`"+_.S5.location.href);}})};
v_r=function(){_.xZ("CSI_SERVICE_NAME","youtube");_.WT({loadType:"cold"});_.r("kevlar_log_lcp")&&ma5(function(b){_.pI("lcp",b.value)})};
b7y=function(){var b=_.jh(document.location.href,"enable");b&&b.indexOf("scraper")>-1&&_.xZ("ADD_SCRAPER_ATTRIBUTES",!0)};
ao5=function(b){var h=b.root;b=[hj4,ybj,_.ge];_.r("web_feedback_endpoint_autolog_allowlist_killswitch")&&b.push(_.s9,SdI);FjN(function(y,S){return VrM(y,S,h)},function(y){if(!y.command)return[];
var S;((S=y.form)==null?0:S.element)?y.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},y.form,{endpoint:y.command})})):h.handleNavigate(y);return[]},b);
_.H9().addProvider({provide:_.OM,useValue:_.nt.instance})};
jMn=function(){var b={},h={},y;for(y in d4n){var S=_.L(_.pa(d4n[y],void 0,"IAtZ7"));b[y]=S.next().value;h[y]=S.next().value}return[b,function(F){for(var a in F){var P=void 0;(P=h[a])==null||P(F[a])}}]};
_.PdF=function(b,h){var y=!1;y=y===void 0?!1:y;var S=_.lR.getValueByKeys(b,"contents","twoColumnWatchNextResults","results","results","contents"),F=_.lR.getValueByKeys(b,"contents","twoColumnWatchNextResults","playlist","playlist")||null;y&&(F=null);var a=y=null;if(F)y=_.lR.getValueByKeys(F,"titleText"),a=_.lR.unsafeClone(_.lR.getValueByKeys(F,"longBylineText")),S="",a&&(S=_.vi(a)),a=_.mk(S);else if(S){S=_.L(S);for(var P=S.next();!P.done;P=S.next())P=P.value,P.videoPrimaryInfoRenderer&&(y=_.lR.getValueByKeys.apply(_.lR,
[P].concat(_.f$($4y)))),P.videoSecondaryInfoRenderer&&(a=_.lR.getValueByKeys.apply(_.lR,[P].concat(_.f$(Lj5))))}else _.yb(Error("Oj"));var K;b.currentVideoEndpoint?K=b.currentVideoEndpoint:_.yb(Error("Pj"));var n;h&&(n=_.lR.getValueByKeys(h,"playabilityStatus","miniplayer","miniplayerRenderer"));b={miniplayerTitle:y,miniplayerSubtitle:a,watchEndpoint:K,playlistData:F};n&&(b.miniplayerRenderer=n);return b};
Kjy=function(b){if(b)return _.ej(b)};
_.Z75=function(){return{isFullscreen:function(){throw Error("Qj");},
toggleFullscreen:function(){throw Error("Rj");},
exitFullscreen:function(){throw Error("Sj");},
isAutonavEnabled:function(){throw Error("Tj");},
setAutonavEnabled:function(){throw Error("Uj");},
isAutoplaySetExplicitly:function(){throw Error("Vj");}}};
ov4=function(b){return b.videoDuration?b.numTaps>1&&b.tapDirection!==0?_.Y7(b.draggedTime/b.videoDuration,0,1):_.Y7((b.playedTime||0)/b.videoDuration,0,1):0};
MJy=function(b){return b.videoDuration?b.isDragging||b.numTaps>1&&b.tapDirection!==0?_.Y7(b.draggedTime/b.videoDuration,0,1):_.Y7((b.playedTime||0)/b.videoDuration,0,1):0};
Xt5=function(b){var h,y,S;return _.c(b==null?void 0:(h=b.markersMap)==null?void 0:(y=h.find(function(F){return F.key==="HEATSEEKER"}))==null?void 0:(S=y.value)==null?void 0:S.heatmap,nvU)};
H7N=function(b){var h,y;return(y=(h=Xt5(b))==null?void 0:h.heatMarkersDecorations)!=null?y:[]};
ujf=function(b){if(_.r("mweb_supported_chapters_killswitch"))return!0;var h;return!!(b==null?0:(h=b.markersMap)==null?0:h.find(function(y){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(y.key)}))};
_.O7r=function(b){var h=Object,y=h.assign,S;b={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(S=b==null?void 0:b.getPlayerState())!=null?S:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return y.call(h,{},{isLive:!1,isPlaylist:!1,playerType:1,isProbablyAScreenreaderUser:!1,videoId:void 0,captionsEnabled:!1,captionsAvailable:!1,volume:0,volumeMuted:!0,draggedYDistance:0,isLooping:!1,isLongPressSpeedup:!1},{enabledFullscreenControlsGesture:!1,expandedFullscreenControls:!1,
isFullscreen:!1,numTaps:0,lastTapTime:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},b,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
NWn=function(b){return function(h){var y=b(),S,F=(S=y.playerApi)==null?void 0:S.getPlayerState();h&&h!==y.playerState&&(h===1||h===2)&&y.setState({playerState:F})}};
rby=function(b){return function(h){var y=b(),S=y.playerApi;S&&(h==null?void 0:h.type)==="newdata"&&(tJM&&(clearTimeout(tJM),tJM=void 0),_.r("web_shorts_use_progress_state_for_gapless")?(h=S==null?void 0:S.getProgressState(h==null?void 0:h.playertype),h=h.seekableEnd-h.seekableStart):h=S==null?void 0:S.getDuration(h==null?void 0:h.playertype),y.setState({playedTime:0,videoDuration:h}))}};
cbF=function(b){return function(h){var y=b(),S=y.playerApi;if(S){var F=S.getPresentingPlayerType();_.r("web_shorts_use_progress_state_for_gapless")?(S=S.getProgressState(F),S=S.seekableEnd-S.seekableStart):S=S.getDuration(F);y.setState({playedTime:h,videoDuration:S})}}};
zjr=function(b){_.AF(112394,b,function(){return Rj5},function(h){Rj5=h})};
BWN=function(b,h){if(!b)return[];var y,S,F;b=((y=b.markersMap)==null?void 0:(S=y.find(function(a){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(a.key)}))==null?void 0:(F=S.value)==null?void 0:F.chapters)||[];
!D4Y(b)||(h==null?0:h.ignoreStub)||(b=[Iok()].concat(_.f$(b)));return b};
Iok=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
D4Y=function(b){if(b.length===0)return!1;var h;return((h=_.c(b[0],Tf))==null?void 0:h.timeRangeStartMillis)!==0};
Gf=function(b){return b?b.timeRangeStartMillis||0:0};
AbM=function(b,h){if(b.isDragging&&h)return b=WjF(b,h),b===-1?Iok():BWN(h)[b]};
WjF=function(b,h){return b.isDragging&&h?BWN(h,{ignoreStub:!0}).findIndex(function(y,S,F){y=U4f(b);return ptU(y,F,S).scrubberHovering}):-1};
U4f=function(b){return Object.assign({},b,{videoDuration:b.videoDuration*1E3,playedTime:b.playedTime*1E3,draggedTime:b.draggedTime*1E3})};
ptU=function(b,h,y){var S=Gf(_.c(h[y],Tf));h=Gf(_.c(h[y+1],Tf))||b.videoDuration;y=b.isDragging;var F;if(F=b.isDragging)F=b.draggedTime,F=F!==null&&F>=S&&F<h;var a=b.playedTime;return a!==null&&a>=S&&a<h?{videoPosition:"active",isScrubbing:y,scrubberHovering:F}:b.playedTime<S?{videoPosition:"pending",isScrubbing:y,scrubberHovering:F}:{videoPosition:"seen",isScrubbing:y,scrubberHovering:F}};
Jbf=function(b,h){return b.videoPosition==="seen"||(h===void 0?0:h)>0};
ejj=function(b,h,y){h=b/h.storyboardInterval;var S=BWN(y);if(!S.length)return-h*72;y=0;S=_.L(S);for(var F=S.next();!F.done;F=S.next())if(Gf(_.c(F.value,Tf))/1E3<b)y++;else break;return-(h*72)-y*56};
CdN=function(b){return b?b.width/b.columns:0};
gvj=function(b){return b.isHovering?b.hoveredTime:b.draggedTime};
sMU=function(b,h){b=b.draggedTime*1E3;return b>=h.visibleTimeRangeStartMillis&&b<=h.visibleTimeRangeEndMillis};
_.Ydj=function(b){if(b===void 0||Number.isNaN(b))return"--:--";var h=Math.abs(Math.floor(b)),y=Math.floor(h/86400),S=Math.floor(h%86400/3600),F=Math.floor(h%3600/60);h=Math.floor(h%60);var a="";y>0&&(a+=y+":",S<10&&(a+="0"));if(y>0||S>0)a+=S+":",F<10&&(a+="0");a+=F+":";h<10&&(a+="0");a+=h;return b>=0?a:"-"+a};
TWU=function(b,h){return function(){var y=gvj(b());var S=h();var F=b().playerApi;if(F&&F.getNumberOfStoryboardLevels()!==0){var a=F.getStoryboardFrameIndex(y,1);a!==-1?S=F.getStoryboardFrame(a,1):(y=F.getStoryboardFrameIndex(y,0),F=F.getStoryboardFrame(y,0),S&&F&&(F.height*=3,F.width*=3),S=F)}else S=null;if(!S)return null;h()&&(S.width=90*S.columns,S.height=160*S.rows);return S}};
_.k7=function(b){if(!b||b.getVideoData)return b};
GFq=function(){var b;return{playerApi:(b=_.o7())!=null?b:void 0}};
kFj=function(b){var h;_.Z(function(y){if(y.nextAddress==1)return y.yield(_.Z5(),2);if(h=y.yieldResult)h.unMute(!0),h.setVolume(b,!0);_.g3(y)})};
VJy=function(b,h){b&&(b.value=""+h,b.style.setProperty("--gradient-percent",h+"%"))};
Evq=function(b){var h;return(h=b==null?void 0:b.value)!=null?h:0};
i7q=function(){var b;_.Z(function(h){if(h.nextAddress==1)return h.yield(_.Z5(),2);b=h.yieldResult;if(!b)return h.return();b.isMuted()?b.unMute(!0):b.mute(!0);_.g3(h)})};
foY=function(b){var h=_.H9().resolve(_.Vp).getPlayerElement();h&&b&&(b===1?h.pause():h.play())};
wtk=function(b){return!!_.c(b,_.E9)||!!_.c(b,_.iG)};
loN=function(b){_.aw(b,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
qdq=function(b){_.aw(b,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
QM5=function(b){return _.EW(b.document.body,function(){return _.M(x4N,null)},"nh")};
m4F=function(){var b;return(b=navigator.userActivation)==null?void 0:b.isActive};
vvY=function(){var b=window.performance.getEntriesByType("navigation");return b?b.map(function(h){return h.type}).includes("reload"):!1};
jdf=function(){fW(fW(fW(fW(fW(fW(fW(_.H9().resolve(_.we),_.bOq),_.hCf),_.yhY),_.STI),_.FUN),_.a2U),_.dsN)};
$sq=function(b,h){h=h===void 0?!1:h;var y,S,F,a;return _.Z(function(P){if(P.nextAddress==1)return h||!_.r("kevlar_shorts_seedless_retry_initial_load")||(y=window,S=!(!y.getDataPromise&&!y.getInitialData),S)?P.yield(Qo8(),2):(setTimeout($sq.bind(window,b,!0),1E3),P.return());if(P.nextAddress!=3)return F=P.yieldResult,P.yield(LUI(F),3);a=P.yieldResult;CW(b,a);_.g3(P)})};
LUI=function(b){var h;if((h=b.response)==null||!h.replacementEndpoint)return _.$p(b);h=_.H9().resolve(_.A_);b=b.response;_.c(b.replacementEndpoint,_.cd)&&b.sequenceContinuation&&(_.c(b.replacementEndpoint,_.cd).sequenceParams=b.sequenceContinuation);return lG(h,b.replacementEndpoint,{},_.S5.location.href,"shorts",function(){},function(){return!1})};
KUq=function(b){var h=_.H9().resolve(PA8);b.playerResponse&&h.handleResponse(b.playerResponse);b.response&&h.handleResponse(b.response)};
ZOr=function(b){var h=_.hP(),y,S=_.c((y=b.response)==null?void 0:y.frameworkUpdates,qG),F;y=_.c((F=b.playerResponse)==null?void 0:F.frameworkUpdates,qG);var a;b=_.c((a=b.reelWatchSequenceResponse)==null?void 0:a.frameworkUpdates,qG);S&&_.On(S,h);y&&_.On(y,h);b&&_.On(b,h)};
om8=function(b){var h;_.r("enable_redirect_linking_for_desktop_web_client")&&((h=window.location.hash)==null?0:h.includes("redirect_state"))&&b.url&&(b.url=b.url.toString()+window.location.hash)};
Xc8=function(b){var h=_.H9(),y=h.resolve(_.A_);h=h.resolve(_.MXM);b.endpoint&&(y=nmn(y,b.endpoint),y.content&&b.response&&_.q$(h,b.response,y.content),y.player&&b.playerResponse&&_.q$(h,b.playerResponse,y.player),y.reelSequence&&b.reelWatchSequenceResponse&&_.q$(h,b.reelWatchSequenceResponse,y.reelSequence))};
x7=function(b,h){KUq(h);ZOr(h);var y;(h==null?0:h.url)&&((y=window.location.hash)==null?0:y.includes("redirect_state"))&&(om8(h),(y=qln(h.url))&&_.F8(b.root,"yt-initialize-third-party",[y,h]));Xc8(h);y=_.H9();var S=y.resolve(HOI);h.playerResponse&&y.resolve(um4).handleResponse(h.playerResponse);if(h.playerResponse){y=void 0;if(_.r("ab_v_vid_sig")&&h.endpoint){var F,a=(F=_.c(h.endpoint,_.wO))!=null?F:_.c(h.endpoint,_.cd);a&&(y=a.videoId)}OO4(S,h.playerResponse,y)}h.playerResponse&&SXj(h.playerResponse)&&
_.r("web_enable_ab_rsp_cl")?Nuq().then(function(){NZY(S,h.playerResponse);CW(b,h)}):CW(b,h)};
rh8=function(b){if(b=b.root.data){var h=_.H9().resolve(tX5);b.endpoint&&(b.response&&h.handleResponse(b.response,void 0,document.querySelector("ytd-app")),b.playerResponse&&h.handleResponse(b.playerResponse),b.reelWatchSequenceResponse&&h.handleResponse(b.reelWatchSequenceResponse))}};
chY=function(b){var h,y,S,F,a,P;return _.Z(function(K){switch(K.nextAddress){case 1:h=window;if(!h.getDataPromise){K.jumpTo(2);break}_.WE(K,3);return K.yield(h.getDataPromise(),5);case 5:y=K.yieldResult;x7(b,y);_.Lz(K,4);break;case 3:return _.C$(K),K.yield(U9(),6);case 6:S=K.yieldResult,CW(b,S);case 4:return K.return();case 2:if(!_.r("sw_nav_preload_pbj")){K.jumpTo(7);break}h.fetchInitialData=function(){var n;return _.Z(function(X){if(X.nextAddress==1)return X.yield(U9(),2);n=X.yieldResult;CW(b,n);
_.g3(X)})};
if(h.getInitialData){h.loadInitialData=function(n){x7(b,n)};
F=h.getInitialData();h.getInitialData=void 0;x7(b,F);K.jumpTo(8);break}h.fetchInitialData=void 0;return K.yield(U9(),9);case 9:a=K.yieldResult,CW(b,a);case 8:return K.return();case 7:h.getInitialData?(P=h.getInitialData(),h.getInitialData=void 0,x7(b,P)):h.loadInitialData=function(n){x7(b,n)},_.g3(K)}})};
zCj=function(){var b=new RC5;_.y94(b);b.registerInitializationCallback(function(){nGM(void 0,void 0,void 0,{batchingStrategy:"BATCH"})});
b.registerCallback("error",function(h,y,S){_.v4(Error("Zj`"+y+"`"+S))})};
DsN=typeof Object.create=="function"?Object.create:function(b){var h=function(){};
h.prototype=b;return new h};
I2F=typeof Object.defineProperties=="function"?Object.defineProperty:function(b,h,y){if(b==Array.prototype||b==Object.prototype)return b;b[h]=y.value;return b};
BZn=function(b){b=["object"==typeof globalThis&&globalThis,b,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var h=0;h<b.length;++h){var y=b[h];if(y&&y.Math==Math)return y}throw Error("a");};
_.tm=BZn(this);WUF="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");_.tm.BigInt64Array&&(WUF.push("BigInt64"),WUF.push("BigUint64"));var UsM=function(b,h){if(h)for(var y=0;y<WUF.length;y++)AhN(WUF[y]+"Array.prototype."+b,h)},Qp=function(b,h){h&&AhN(b,h)},AhN=function(b,h){var y=_.tm;
b=b.split(".");for(var S=0;S<b.length-1;S++){var F=b[S];if(!(F in y))return;y=y[F]}b=b[b.length-1];S=y[b];h=h(S);h!=S&&h!=null&&I2F(y,b,{configurable:!0,writable:!0,value:h})},pcI=function(){function b(){function y(){}
new y;Reflect.construct(y,[],function(){});
return new y instanceof y}
if(typeof Reflect!="undefined"&&Reflect.construct){if(b())return Reflect.construct;var h=Reflect.construct;return function(y,S,F){y=h(y,S);F&&Reflect.setPrototypeOf(y,F.prototype);return y}}return function(y,S,F){F===void 0&&(F=y);
F=DsN(F.prototype||Object.prototype);return Function.prototype.apply.call(y,F,S)||F}}(),JhI;
if(typeof Object.setPrototypeOf=="function")JhI=Object.setPrototypeOf;else{var eC5;a:{var CAk={a:!0},gmU={};try{gmU.__proto__=CAk;eC5=gmU.a;break a}catch(b){}eC5=!1}JhI=eC5?function(b,h){b.__proto__=h;if(b.__proto__!==h)throw new TypeError("b`"+b);return b}:null}mg=JhI;
_.z=function(b,h){b.prototype=DsN(h.prototype);b.prototype.constructor=b;if(mg)mg(b,h);else for(var y in h)if(y!="prototype")if(Object.defineProperties){var S=Object.getOwnPropertyDescriptor(h,y);S&&Object.defineProperty(b,y,S)}else b[y]=h[y];b.superClass_=h.prototype};
sdY=function(b){var h=0;return function(){return h<b.length?{done:!1,value:b[h++]}:{done:!0}}};
_.L=function(b){var h=typeof Symbol!="undefined"&&Symbol.iterator&&b[Symbol.iterator];if(h)return h.call(b);if(typeof b.length=="number")return{next:sdY(b)};throw Error("c`"+String(b));};
Mo=function(b){for(var h,y=[];!(h=b.next()).done;)y.push(h.value);return y};
_.f$=function(b){return b instanceof Array?b:Mo(_.L(b))};
_.bm=function(b){return vf(b,b)};
vf=function(b,h){b.raw=h;Object.freeze&&(Object.freeze(b),Object.freeze(h));return b};
h1=function(b,h){return Object.prototype.hasOwnProperty.call(b,h)};
YT5=function(b){if(b==null)throw new TypeError("d");return Object(b)};
TZN=typeof Object.assign=="function"?Object.assign:function(b,h){b=YT5(b);for(var y=1;y<arguments.length;y++){var S=arguments[y];if(S)for(var F in S)h1(S,F)&&(b[F]=S[F])}return b};
Qp("Object.assign",function(b){return b||TZN});
var y7=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},G8n=function(b){if(b.isRunning_)throw new TypeError("f");
b.isRunning_=!0};
y7.prototype.JSC$8896_next_=function(b){this.yieldResult=b};
var k8y=function(b,h){b.abruptCompletion_={exception:h,isException:!0};b.nextAddress=b.catchAddress_||b.finallyAddress_};
y7.prototype.return=function(b){this.abruptCompletion_={return:b};this.nextAddress=this.finallyAddress_};
y7.prototype.yield=function(b,h){this.nextAddress=h;return{value:b}};
y7.prototype.jumpTo=function(b){this.nextAddress=b};
_.g3=function(b){b.nextAddress=0};
_.WE=function(b,h,y){b.catchAddress_=h;y!=void 0&&(b.finallyAddress_=y)};
_.p$=function(b,h){b.catchAddress_=0;b.finallyAddress_=h||0};
_.Lz=function(b,h,y){b.nextAddress=h;b.catchAddress_=y||0};
_.C$=function(b,h){b.catchAddress_=h||0;h=b.abruptCompletion_.exception;b.abruptCompletion_=null;return h};
_.U3=function(b,h,y,S){S?b.finallyContexts_[S]=b.abruptCompletion_:b.finallyContexts_=[b.abruptCompletion_];b.catchAddress_=h||0;b.finallyAddress_=y||0};
_.Jk=function(b,h,y){y=b.finallyContexts_.splice(y||0)[0];(y=b.abruptCompletion_=b.abruptCompletion_||y)?y.isException?b.nextAddress=b.catchAddress_||b.finallyAddress_:y.jumpTo!=void 0&&b.finallyAddress_<y.jumpTo?(b.nextAddress=y.jumpTo,b.abruptCompletion_=null):b.nextAddress=b.finallyAddress_:b.nextAddress=h};
VXU=function(b){this.JSC$8901_context_=new y7;this.program_=b};
iOr=function(b,h){G8n(b.JSC$8901_context_);var y=b.JSC$8901_context_.yieldAllIterator_;if(y)return Emf(b,"return"in y?y["return"]:function(S){return{value:S,done:!0}},h,b.JSC$8901_context_.return);
b.JSC$8901_context_.return(h);return Sk(b)};
Emf=function(b,h,y,S){try{var F=h.call(b.JSC$8901_context_.yieldAllIterator_,y);if(!(F instanceof Object))throw new TypeError("e`"+F);if(!F.done)return b.JSC$8901_context_.isRunning_=!1,F;var a=F.value}catch(P){return b.JSC$8901_context_.yieldAllIterator_=null,k8y(b.JSC$8901_context_,P),Sk(b)}b.JSC$8901_context_.yieldAllIterator_=null;S.call(b.JSC$8901_context_,a);return Sk(b)};
Sk=function(b){for(;b.JSC$8901_context_.nextAddress;)try{var h=b.program_(b.JSC$8901_context_);if(h)return b.JSC$8901_context_.isRunning_=!1,{value:h.value,done:!1}}catch(y){b.JSC$8901_context_.yieldResult=void 0,k8y(b.JSC$8901_context_,y)}b.JSC$8901_context_.isRunning_=!1;if(b.JSC$8901_context_.abruptCompletion_){h=b.JSC$8901_context_.abruptCompletion_;b.JSC$8901_context_.abruptCompletion_=null;if(h.isException)throw h.exception;return{value:h.return,done:!0}}return{value:void 0,done:!0}};
f2N=function(b){this.next=function(h){G8n(b.JSC$8901_context_);b.JSC$8901_context_.yieldAllIterator_?h=Emf(b,b.JSC$8901_context_.yieldAllIterator_.next,h,b.JSC$8901_context_.JSC$8896_next_):(b.JSC$8901_context_.JSC$8896_next_(h),h=Sk(b));return h};
this.throw=function(h){G8n(b.JSC$8901_context_);b.JSC$8901_context_.yieldAllIterator_?h=Emf(b,b.JSC$8901_context_.yieldAllIterator_["throw"],h,b.JSC$8901_context_.JSC$8896_next_):(k8y(b.JSC$8901_context_,h),h=Sk(b));return h};
this.return=function(h){return iOr(b,h)};
this[Symbol.iterator]=function(){return this}};
_.nW=function(b,h){h=new f2N(new VXU(h));mg&&b.prototype&&mg(h,b.prototype);return h};
wcq=function(b){function h(S){return b.next(S)}
function y(S){return b.throw(S)}
return new Promise(function(S,F){function a(P){P.done?S(P.value):Promise.resolve(P.value).then(h,y).then(a,F)}
a(b.next())})};
_.Z=function(b){return wcq(new f2N(new VXU(b)))};
Qp("Symbol",function(b){if(b)return b;var h=function(a,P){this.$jscomp$symbol$id_=a;I2F(this,"description",{configurable:!0,writable:!0,value:P})};
h.prototype.toString=function(){return this.$jscomp$symbol$id_};
var y="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",S=0,F=function(a){if(this instanceof F)throw new TypeError("g");return new h(y+(a||"")+"_"+S++,a)};
return F});
Qp("Symbol.iterator",function(b){if(b)return b;b=Symbol("h");I2F(Array.prototype,b,{configurable:!0,writable:!0,value:function(){return l2N(sdY(this))}});
return b});
Qp("Symbol.asyncIterator",function(b){return b?b:Symbol("i")});
l2N=function(b){b={next:b};b[Symbol.iterator]=function(){return this};
return b};
_.Ak=function(b){var h=b[Symbol.asyncIterator];return h!==void 0?h.call(b):new qTM(_.L(b))};
qTM=function(b){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return b};
this.next=function(h){return Promise.resolve(b.next(h))};
this["throw"]=function(h){return new Promise(function(y,S){var F=b["throw"];F!==void 0?y(F.call(b,h)):(y=b["return"],y!==void 0&&y.call(b),S(new TypeError("j")))})};
b["return"]!==void 0&&(this["return"]=function(h){return Promise.resolve(b["return"](h))})};
_.x$=function(){for(var b=Number(this),h=[],y=b;y<arguments.length;y++)h[y-b]=arguments[y];return h};
_.Xo=function(b){return b};
Qp("globalThis",function(b){return b||_.tm});
Qp("Reflect",function(b){return b?b:{}});
Qp("Reflect.construct",function(){return pcI});
Qp("Reflect.setPrototypeOf",function(b){return b?b:mg?function(h,y){try{return mg(h,y),!0}catch(S){return!1}}:null});
Qp("Promise",function(b){function h(){this.batch_=null}
function y(P){return P instanceof F?P:new F(function(K){K(P)})}
if(b&&(typeof _.tm.PromiseRejectionEvent!=="undefined"||!_.tm.Promise||_.tm.Promise.toString().indexOf("[native code]")===-1))return b;h.prototype.asyncExecute=function(P){if(this.batch_==null){this.batch_=[];var K=this;this.asyncExecuteFunction(function(){K.executeBatch_()})}this.batch_.push(P)};
var S=_.tm.setTimeout;h.prototype.asyncExecuteFunction=function(P){S(P,0)};
h.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var P=this.batch_;this.batch_=[];for(var K=0;K<P.length;++K){var n=P[K];P[K]=null;try{n()}catch(X){this.asyncThrow_(X)}}}this.batch_=null};
h.prototype.asyncThrow_=function(P){this.asyncExecuteFunction(function(){throw P;})};
var F=function(P){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var K=this.createResolveAndReject_();try{P(K.resolve,K.reject)}catch(n){K.reject(n)}};
F.prototype.createResolveAndReject_=function(){function P(X){return function(u){n||(n=!0,X.call(K,u))}}
var K=this,n=!1;return{resolve:P(this.resolveTo_),reject:P(this.JSC$8933_reject_)}};
F.prototype.resolveTo_=function(P){if(P===this)this.JSC$8933_reject_(new TypeError("n"));else if(P instanceof F)this.settleSameAsPromise_(P);else{a:switch(typeof P){case "object":var K=P!=null;break a;case "function":K=!0;break a;default:K=!1}K?this.resolveToNonPromiseObj_(P):this.fulfill_(P)}};
F.prototype.resolveToNonPromiseObj_=function(P){var K=void 0;try{K=P.then}catch(n){this.JSC$8933_reject_(n);return}typeof K=="function"?this.settleSameAsThenable_(K,P):this.fulfill_(P)};
F.prototype.JSC$8933_reject_=function(P){this.settle_(2,P)};
F.prototype.fulfill_=function(P){this.settle_(1,P)};
F.prototype.settle_=function(P,K){if(this.state_!=0)throw Error("o`"+P+"`"+K+"`"+this.state_);this.state_=P;this.result_=K;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
F.prototype.scheduleUnhandledRejectionCheck_=function(){var P=this;S(function(){if(P.notifyUnhandledRejection_()){var K=_.tm.console;typeof K!=="undefined"&&K.error(P.result_)}},1)};
F.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var P=_.tm.CustomEvent,K=_.tm.Event,n=_.tm.dispatchEvent;if(typeof n==="undefined")return!0;typeof P==="function"?P=new P("unhandledrejection",{cancelable:!0}):typeof K==="function"?P=new K("unhandledrejection",{cancelable:!0}):(P=_.tm.document.createEvent("CustomEvent"),P.initCustomEvent("unhandledrejection",!1,!0,P));P.promise=this;P.reason=this.result_;return n(P)};
F.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var P=0;P<this.onSettledCallbacks_.length;++P)a.asyncExecute(this.onSettledCallbacks_[P]);this.onSettledCallbacks_=null}};
var a=new h;F.prototype.settleSameAsPromise_=function(P){var K=this.createResolveAndReject_();P.callWhenSettled_(K.resolve,K.reject)};
F.prototype.settleSameAsThenable_=function(P,K){var n=this.createResolveAndReject_();try{P.call(K,n.resolve,n.reject)}catch(X){n.reject(X)}};
F.prototype.then=function(P,K){function n(N,t){return typeof N=="function"?function(R){try{X(N(R))}catch(I){u(I)}}:t}
var X,u,O=new F(function(N,t){X=N;u=t});
this.callWhenSettled_(n(P,X),n(K,u));return O};
F.prototype.catch=function(P){return this.then(void 0,P)};
F.prototype.callWhenSettled_=function(P,K){function n(){switch(X.state_){case 1:P(X.result_);break;case 2:K(X.result_);break;default:throw Error("p`"+X.state_);}}
var X=this;this.onSettledCallbacks_==null?a.asyncExecute(n):this.onSettledCallbacks_.push(n);this.isRejectionHandled_=!0};
F.resolve=y;F.reject=function(P){return new F(function(K,n){n(P)})};
F.race=function(P){return new F(function(K,n){for(var X=_.L(P),u=X.next();!u.done;u=X.next())y(u.value).callWhenSettled_(K,n)})};
F.all=function(P){var K=_.L(P),n=K.next();return n.done?y([]):new F(function(X,u){function O(R){return function(I){N[R]=I;t--;t==0&&X(N)}}
var N=[],t=0;do N.push(void 0),t++,y(n.value).callWhenSettled_(O(N.length-1),u),n=K.next();while(!n.done)})};
return F});
var FW=function(b,h,y){if(b==null)throw new TypeError("q`"+y);if(h instanceof RegExp)throw new TypeError("r`"+y);return b+""};
Qp("String.prototype.startsWith",function(b){return b?b:function(h,y){var S=FW(this,h,"startsWith"),F=S.length,a=h.length;y=Math.max(0,Math.min(y|0,S.length));for(var P=0;P<a&&y<F;)if(S[y++]!=h[P++])return!1;return P>=a}});
Qp("Object.setPrototypeOf",function(b){return b||mg});
Qp("Symbol.dispose",function(b){return b?b:Symbol("s")});
Qp("SuppressedError",function(b){function h(y,S,F){if(!(this instanceof h))return new h(y,S,F);F=Error(F);"stack"in F&&(this.stack=F.stack);this.message=F.message;this.error=y;this.suppressed=S}
if(b)return b;_.z(h,Error);h.prototype.name="SuppressedError";return h});
Qp("Array.from",function(b){return b?b:function(h,y,S){y=y!=null?y:function(K){return K};
var F=[],a=typeof Symbol!="undefined"&&Symbol.iterator&&h[Symbol.iterator];if(typeof a=="function"){h=a.call(h);for(var P=0;!(a=h.next()).done;)F.push(y.call(S,a.value,P++))}else for(a=h.length,P=0;P<a;P++)F.push(y.call(S,h[P],P));return F}});
var xsn=function(b,h,y){b instanceof String&&(b=String(b));for(var S=b.length,F=0;F<S;F++){var a=b[F];if(h.call(y,a,F,b))return{i:F,v:a}}return{i:-1,v:void 0}};
Qp("Array.prototype.find",function(b){return b?b:function(h,y){return xsn(this,h,y).v}});
Qp("WeakMap",function(b){function h(){}
function y(n){var X=typeof n;return X==="object"&&n!==null||X==="function"}
function S(n){if(!h1(n,a)){var X=new h;I2F(n,a,{value:X})}}
function F(n){var X=Object[n];X&&(Object[n]=function(u){if(u instanceof h)return u;Object.isExtensible(u)&&S(u);return X(u)})}
if(function(){if(!b||!Object.seal)return!1;try{var n=Object.seal({}),X=Object.seal({}),u=new b([[n,2],[X,3]]);if(u.get(n)!=2||u.get(X)!=3)return!1;u.delete(n);u.set(X,4);return!u.has(n)&&u.get(X)==4}catch(O){return!1}}())return b;
var a="$jscomp_hidden_"+Math.random();F("freeze");F("preventExtensions");F("seal");var P=0,K=function(n){this.JSC$8941_id_=(P+=Math.random()+1).toString();if(n){n=_.L(n);for(var X;!(X=n.next()).done;)X=X.value,this.set(X[0],X[1])}};
K.prototype.set=function(n,X){if(!y(n))throw Error("t");S(n);if(!h1(n,a))throw Error("u`"+n);n[a][this.JSC$8941_id_]=X;return this};
K.prototype.get=function(n){return y(n)&&h1(n,a)?n[a][this.JSC$8941_id_]:void 0};
K.prototype.has=function(n){return y(n)&&h1(n,a)&&h1(n[a],this.JSC$8941_id_)};
K.prototype.delete=function(n){return y(n)&&h1(n,a)&&h1(n[a],this.JSC$8941_id_)?delete n[a][this.JSC$8941_id_]:!1};
return K});
Qp("Map",function(b){if(function(){if(!b||typeof b!="function"||!b.prototype.entries||typeof Object.seal!="function")return!1;try{var K=Object.seal({x:4}),n=new b(_.L([[K,"s"]]));if(n.get(K)!="s"||n.size!=1||n.get({x:4})||n.set({x:4},"t")!=n||n.size!=2)return!1;var X=n.entries(),u=X.next();if(u.done||u.value[0]!=K||u.value[1]!="s")return!1;u=X.next();return u.done||u.value[0].x!=4||u.value[1]!="t"||!X.next().done?!1:!0}catch(O){return!1}}())return b;
var h=new WeakMap,y=function(K){this[0]={};this[1]=a();this.size=0;if(K){K=_.L(K);for(var n;!(n=K.next()).done;)n=n.value,this.set(n[0],n[1])}};
y.prototype.set=function(K,n){K=K===0?0:K;var X=S(this,K);X.list||(X.list=this[0][X.id]=[]);X.entry?X.entry.value=n:(X.entry={next:this[1],previous:this[1].previous,head:this[1],key:K,value:n},X.list.push(X.entry),this[1].previous.next=X.entry,this[1].previous=X.entry,this.size++);return this};
y.prototype.delete=function(K){K=S(this,K);return K.entry&&K.list?(K.list.splice(K.index,1),K.list.length||delete this[0][K.id],K.entry.previous.next=K.entry.next,K.entry.next.previous=K.entry.previous,K.entry.head=null,this.size--,!0):!1};
y.prototype.clear=function(){this[0]={};this[1]=this[1].previous=a();this.size=0};
y.prototype.has=function(K){return!!S(this,K).entry};
y.prototype.get=function(K){return(K=S(this,K).entry)&&K.value};
y.prototype.entries=function(){return F(this,function(K){return[K.key,K.value]})};
y.prototype.keys=function(){return F(this,function(K){return K.key})};
y.prototype.values=function(){return F(this,function(K){return K.value})};
y.prototype.forEach=function(K,n){for(var X=this.entries(),u;!(u=X.next()).done;)u=u.value,K.call(n,u[1],u[0],this)};
y.prototype[Symbol.iterator]=y.prototype.entries;var S=function(K,n){var X=n&&typeof n;X=="object"||X=="function"?h.has(n)?X=h.get(n):(X=""+ ++P,h.set(n,X)):X="p_"+n;var u=K[0][X];if(u&&h1(K[0],X))for(K=0;K<u.length;K++){var O=u[K];if(n!==n&&O.key!==O.key||n===O.key)return{id:X,list:u,index:K,entry:O}}return{id:X,list:u,index:-1,entry:void 0}},F=function(K,n){var X=K[1];
return l2N(function(){if(X){for(;X.head!=K[1];)X=X.previous;for(;X.next!=X.head;)return X=X.next,{done:!1,value:n(X)};X=null}return{done:!0,value:void 0}})},a=function(){var K={};
return K.previous=K.next=K.head=K},P=0;
return y});
Qp("Set",function(b){if(function(){if(!b||typeof b!="function"||!b.prototype.entries||typeof Object.seal!="function")return!1;try{var y=Object.seal({x:4}),S=new b(_.L([y]));if(!S.has(y)||S.size!=1||S.add(y)!=S||S.size!=1||S.add({x:4})!=S||S.size!=2)return!1;var F=S.entries(),a=F.next();if(a.done||a.value[0]!=y||a.value[1]!=y)return!1;a=F.next();return a.done||a.value[0]==y||a.value[0].x!=4||a.value[1]!=a.value[0]?!1:F.next().done}catch(P){return!1}}())return b;
var h=function(y){this.JSC$8955_map_=new Map;if(y){y=_.L(y);for(var S;!(S=y.next()).done;)this.add(S.value)}this.size=this.JSC$8955_map_.size};
h.prototype.add=function(y){y=y===0?0:y;this.JSC$8955_map_.set(y,y);this.size=this.JSC$8955_map_.size;return this};
h.prototype.delete=function(y){y=this.JSC$8955_map_.delete(y);this.size=this.JSC$8955_map_.size;return y};
h.prototype.clear=function(){this.JSC$8955_map_.clear();this.size=0};
h.prototype.has=function(y){return this.JSC$8955_map_.has(y)};
h.prototype.entries=function(){return this.JSC$8955_map_.entries()};
h.prototype.values=function(){return this.JSC$8955_map_.values()};
h.prototype.keys=h.prototype.values;h.prototype[Symbol.iterator]=h.prototype.values;h.prototype.forEach=function(y,S){var F=this;this.JSC$8955_map_.forEach(function(a){return y.call(S,a,a,F)})};
return h});
Qp("Math.log2",function(b){return b?b:function(h){return Math.log(h)/Math.LN2}});
Qp("Object.values",function(b){return b?b:function(h){var y=[],S;for(S in h)h1(h,S)&&y.push(h[S]);return y}});
Qp("Object.is",function(b){return b?b:function(h,y){return h===y?h!==0||1/h===1/y:h!==h&&y!==y}});
Qp("Array.prototype.includes",function(b){return b?b:function(h,y){var S=this;S instanceof String&&(S=String(S));var F=S.length;y=y||0;for(y<0&&(y=Math.max(y+F,0));y<F;y++){var a=S[y];if(a===h||Object.is(a,h))return!0}return!1}});
Qp("String.prototype.includes",function(b){return b?b:function(h,y){return FW(this,h,"includes").indexOf(h,y||0)!==-1}});
Qp("Object.entries",function(b){return b?b:function(h){var y=[],S;for(S in h)h1(h,S)&&y.push([S,h[S]]);return y}});
Qp("Number.isFinite",function(b){return b?b:function(h){return typeof h!=="number"?!1:!isNaN(h)&&h!==Infinity&&h!==-Infinity}});
Qp("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
Qp("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
Qp("Number.isInteger",function(b){return b?b:function(h){return Number.isFinite(h)?h===Math.floor(h):!1}});
Qp("Number.isSafeInteger",function(b){return b?b:function(h){return Number.isInteger(h)&&Math.abs(h)<=Number.MAX_SAFE_INTEGER}});
Qp("String.prototype.endsWith",function(b){return b?b:function(h,y){var S=FW(this,h,"endsWith");y===void 0&&(y=S.length);y=Math.max(0,Math.min(y|0,S.length));for(var F=h.length;F>0&&y>0;)if(S[--y]!=h[--F])return!1;return F<=0}});
var QdM=function(b,h){b instanceof String&&(b+="");var y=0,S=!1,F={next:function(){if(!S&&y<b.length){var a=y++;return{value:h(a,b[a]),done:!1}}S=!0;return{done:!0,value:void 0}}};
F[Symbol.iterator]=function(){return F};
return F};
Qp("Array.prototype.entries",function(b){return b?b:function(){return QdM(this,function(h,y){return[h,y]})}});
Qp("Math.trunc",function(b){return b?b:function(h){h=Number(h);if(isNaN(h)||h===Infinity||h===-Infinity||h===0)return h;var y=Math.floor(Math.abs(h));return h<0?-y:y}});
Qp("Number.isNaN",function(b){return b?b:function(h){return typeof h==="number"&&isNaN(h)}});
Qp("Array.prototype.keys",function(b){return b?b:function(){return QdM(this,function(h){return h})}});
Qp("Array.prototype.values",function(b){return b?b:function(){return QdM(this,function(h,y){return y})}});
Qp("Array.prototype.fill",function(b){return b?b:function(h,y,S){var F=this.length||0;y<0&&(y=Math.max(0,F+y));if(S==null||S>F)S=F;S=Number(S);S<0&&(S=Math.max(0,F+S));for(y=Number(y||0);y<S;y++)this[y]=h;return this}});
UsM("fill",function(b){return b?b:Array.prototype.fill});
Qp("Object.fromEntries",function(b){return b?b:function(h){var y={};if(!(Symbol.iterator in h))throw new TypeError("v`"+h);h=h[Symbol.iterator].call(h);for(var S=h.next();!S.done;S=h.next()){S=S.value;if(Object(S)!==S)throw new TypeError("w");y[S[0]]=S[1]}return y}});
Qp("String.prototype.replaceAll",function(b){return b?b:function(h,y){if(h instanceof RegExp&&!h.global)throw new TypeError("x");return h instanceof RegExp?this.replace(h,y):this.replace(new RegExp(String(h).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),y)}});
Qp("Object.getOwnPropertySymbols",function(b){return b?b:function(){return[]}});
Qp("String.prototype.repeat",function(b){return b?b:function(h){var y=FW(this,null,"repeat");if(h<0||h>1342177279)throw new RangeError("y");h|=0;for(var S="";h;)if(h&1&&(S+=y),h>>>=1)y+=y;return S}});
Qp("Array.prototype.findIndex",function(b){return b?b:function(h,y){return xsn(this,h,y).i}});
Qp("Array.prototype.flatMap",function(b){return b?b:function(h,y){var S=[];Array.prototype.forEach.call(this,function(F,a){F=h.call(y,F,a,this);Array.isArray(F)?S.push.apply(S,F):S.push(F)});
return S}});
Qp("String.prototype.codePointAt",function(b){return b?b:function(h){var y=FW(this,null,"codePointAt"),S=y.length;h=Number(h)||0;if(h>=0&&h<S){h|=0;var F=y.charCodeAt(h);if(F<55296||F>56319||h+1===S)return F;h=y.charCodeAt(h+1);return h<56320||h>57343?F:(F-55296)*1024+h+9216}}});
Qp("String.fromCodePoint",function(b){return b?b:function(h){for(var y="",S=0;S<arguments.length;S++){var F=Number(arguments[S]);if(F<0||F>1114111||F!==Math.floor(F))throw new RangeError("z`"+F);F<=65535?y+=String.fromCharCode(F):(F-=65536,y+=String.fromCharCode(F>>>10&1023|55296),y+=String.fromCharCode(F&1023|56320))}return y}});
Qp("String.prototype.trimLeft",function(b){function h(){return this.replace(/^[\s\xa0]+/,"")}
return b||h});
Qp("String.prototype.trimStart",function(b){return b||String.prototype.trimLeft});
Qp("String.prototype.padStart",function(b){return b?b:function(h,y){var S=FW(this,null,"padStart");h-=S.length;y=y!==void 0?String(y):" ";return(h>0&&y?y.repeat(Math.ceil(h/y.length)).substring(0,h):"")+S}});
Qp("Promise.prototype.finally",function(b){return b?b:function(h){return this.then(function(y){return Promise.resolve(h()).then(function(){return y})},function(y){return Promise.resolve(h()).then(function(){throw y;
})})}});
Qp("Math.imul",function(b){return b?b:function(h,y){h=Number(h);y=Number(y);var S=h&65535,F=y&65535;return S*F+((h>>>16&65535)*F+S*(y>>>16&65535)<<16>>>0)|0}});
Qp("Object.hasOwn",function(b){return b?b:function(h,y){return Object.prototype.hasOwnProperty.call(h,y)}});
Qp("Math.sign",function(b){return b?b:function(h){h=Number(h);return h===0||isNaN(h)?h:h>0?1:-1}});
Qp("Array.prototype.flat",function(b){return b?b:function(h){h=h===void 0?1:h;var y=[];Array.prototype.forEach.call(this,function(S){Array.isArray(S)&&h>0?(S=Array.prototype.flat.call(S,h-1),y.push.apply(y,S)):y.push(S)});
return y}});
Qp("String.raw",function(b){return b?b:function(h,y){h=YT5(h);for(var S=h.raw,F=S.length,a="",P=0;P<F;++P)a+=S[P],P+1<F&&P+1<arguments.length&&(a+=String(arguments[P+1]));return a}});
Qp("WeakSet",function(b){if(function(){if(!b||!Object.seal)return!1;try{var y=Object.seal({}),S=Object.seal({}),F=new b([y]);if(!F.has(y)||F.has(S))return!1;F.delete(y);F.add(S);return!F.has(y)&&F.has(S)}catch(a){return!1}}())return b;
var h=function(y){this.JSC$8969_map_=new WeakMap;if(y){y=_.L(y);for(var S;!(S=y.next()).done;)this.add(S.value)}};
h.prototype.add=function(y){this.JSC$8969_map_.set(y,!0);return this};
h.prototype.has=function(y){return this.JSC$8969_map_.has(y)};
h.prototype.delete=function(y){return this.JSC$8969_map_.delete(y)};
return h});
Qp("Reflect.ownKeys",function(b){return b?b:function(h){var y=[],S=Object.getOwnPropertyNames(h);h=Object.getOwnPropertySymbols(h);for(var F=0;F<S.length;F++)(S[F].substring(0,14)=="jscomp_symbol_"?h:y).push(S[F]);return y.concat(h)}});
Qp("Object.getOwnPropertyDescriptors",function(b){return b?b:function(h){for(var y={},S=Reflect.ownKeys(h),F=0;F<S.length;F++)y[S[F]]=Object.getOwnPropertyDescriptor(h,S[F]);return y}});
Qp("Promise.allSettled",function(b){function h(S){return{status:"fulfilled",value:S}}
function y(S){return{status:"rejected",reason:S}}
return b?b:function(S){var F=this;S=Array.from(S,function(a){return F.resolve(a).then(h,y)});
return F.all(S)}});
Qp("Number.parseInt",function(b){return b||parseInt});
var msF=function(b,h,y){b instanceof String&&(b=String(b));for(var S=b.length-1;S>=0;S--){var F=b[S];if(h.call(y,F,S,b))return{i:S,v:F}}return{i:-1,v:void 0}};
Qp("Array.prototype.findLastIndex",function(b){return b?b:function(h,y){return msF(this,h,y).i}});
UsM("findLastIndex",function(b){return b?b:function(h,y){return msF(this,h,y).i}});
_._DumpException=window._DumpException||function(b){throw b;};
window._DumpException=_._DumpException;var vmY=window.ytcsi;vmY&&typeof vmY.tick==="function"&&vmY.tick("rses_dpj");var b4M,aX,dQ,jk,h8w,yY8,Sje,FM7,pA,aro;b4M=b4M||{};_.S5=this||self;_.HL=function(b,h,y){b=b.split(".");y=y||_.S5;for(var S;b.length&&(S=b.shift());)b.length||h===void 0?y[S]&&y[S]!==Object.prototype[S]?y=y[S]:y=y[S]={}:y[S]=h};
aX=function(b,h){var y=_.hj("WIZ_global_data.oxN3nb");b=y&&y[b];return b!=null?b:h};
dQ=_.S5._F_toggles_default_kevlar_base||[];jk=function(){};
jk.get=function(){return null};
_.DR=null;_.hj=function(b,h){b=b.split(".");h=h||_.S5;for(var y=0;y<b.length;y++)if(h=h[b[y]],h==null)return null;return h};
_.$Y=function(b){b.instance_=void 0;b.getInstance=function(){return b.instance_?b.instance_:b.instance_=new b}};
_.S2=function(b){var h=typeof b;return h!="object"?h:b?Array.isArray(b)?"array":h:"null"};
_.f4=function(b){var h=_.S2(b);return h=="array"||h=="object"&&typeof b.length=="number"};
_.lf=function(b){var h=typeof b;return h=="object"&&b!=null||h=="function"};
_.mM=function(b){return Object.prototype.hasOwnProperty.call(b,h8w)&&b[h8w]||(b[h8w]=++yY8)};
h8w="closure_uid_"+(Math.random()*1E9>>>0);yY8=0;Sje=function(b,h,y){return b.call.apply(b.bind,arguments)};
FM7=function(b,h,y){if(!b)throw Error();if(arguments.length>2){var S=Array.prototype.slice.call(arguments,2);return function(){var F=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(F,S);return b.apply(h,F)}}return function(){return b.apply(h,arguments)}};
_.i5=function(b,h,y){_.i5=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?Sje:FM7;return _.i5.apply(null,arguments)};
_.X8=function(b,h){var y=Array.prototype.slice.call(arguments,1);return function(){var S=y.slice();S.push.apply(S,arguments);return b.apply(this,S)}};
_.LF=function(){return Date.now()};
pA=function(b){return b};
_.Pv=function(b,h){function y(){}
y.prototype=h.prototype;b.superClass_=h.prototype;b.prototype=new y;b.prototype.constructor=b;b.base=function(S,F,a){for(var P=Array(arguments.length-2),K=2;K<arguments.length;K++)P[K-2]=arguments[K];return h.prototype[F].apply(S,P)}};
aro=function(b){return b};var dyP,jqb;_.V=function(b,h,y,S){var F=arguments.length,a=F<3?h:S===null?S=Object.getOwnPropertyDescriptor(h,y):S,P;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")a=Reflect.decorate(b,h,y,S);else for(var K=b.length-1;K>=0;K--)if(P=b[K])a=(F<3?P(a):F>3?P(h,y,a):P(h,y))||a;F>3&&a&&Object.defineProperty(h,y,a)};
_.f=function(b,h){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(b,h)};
dyP=function(b,h){if(h!==null&&h!==void 0){if(typeof h!=="object"&&typeof h!=="function")throw new TypeError("A");if(y===void 0){if(!Symbol.dispose)throw new TypeError("C");var y=h[Symbol.dispose]}if(typeof y!=="function")throw new TypeError("D");b.stack.push({value:h,dispose:y,async:!1})}return h};
jqb=function(b){function h(a){b.error=b.hasError?new SuppressedError(a,b.error,"An error was suppressed during disposal."):a;b.hasError=!0}
function y(){for(;S=b.stack.pop();)try{if(!S.async&&F===1)return F=0,b.stack.push(S),Promise.resolve().then(y);if(S.dispose){var a=S.dispose.call(S.value);if(S.async)return F|=2,Promise.resolve(a).then(y,function(P){h(P);return y()})}else F|=1}catch(P){h(P)}if(F===1)return b.hasError?Promise.reject(b.error):Promise.resolve();
if(b.hasError)throw b.error;}
var S,F=0;y()};var $y5="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(" ");b44()&&$y5.push("details:not(:has(summary))");var yYr=$y5.join(",");_.Pv(_.bf,Error);_.bf.prototype.name="CustomError";var LM7;var PfW=void 0,KM7,Z4o=typeof TextDecoder!=="undefined",KMj,PfU=typeof String.prototype.isWellFormed==="function",LMj=typeof TextEncoder!=="undefined";var oUW;_.VY=function(b){for(var h=[],y=0,S=0;S<b.length;S++){var F=b.charCodeAt(S);F<128?h[y++]=F:(F<2048?h[y++]=F>>6|192:((F&64512)==55296&&S+1<b.length&&(b.charCodeAt(S+1)&64512)==56320?(F=65536+((F&1023)<<10)+(b.charCodeAt(++S)&1023),h[y++]=F>>18|240,h[y++]=F>>12&63|128):h[y++]=F>>12|224,h[y++]=F>>6&63|128),h[y++]=F&63|128)}return h};
oUW=function(b){for(var h=[],y=0,S=0;y<b.length;){var F=b[y++];if(F<128)h[S++]=String.fromCharCode(F);else if(F>191&&F<224){var a=b[y++];h[S++]=String.fromCharCode((F&31)<<6|a&63)}else if(F>239&&F<365){a=b[y++];var P=b[y++],K=b[y++];F=((F&7)<<18|(a&63)<<12|(P&63)<<6|K&63)-65536;h[S++]=String.fromCharCode(55296+(F>>10));h[S++]=String.fromCharCode(56320+(F&1023))}else a=b[y++],P=b[y++],h[S++]=String.fromCharCode((F&15)<<12|(a&63)<<6|P&63)}return h.join("")};var My=String.prototype.trim?function(b){return b.trim()}:function(b){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(b)[1]},M5P=/&/g,nU7=/</g,XFM=/>/g,H4M=/"/g,une=/'/g,O4N=/\x00/g,NIW=/[\x00&<>"']/;var KF=!!(dQ[0]>>17&1),t5P=!!(dQ[0]&4096),rYG=!!(dQ[0]>>18&1),cYP=!!(dQ[0]&8),R8N=!!(dQ[0]&2),z8W=!!(dQ[0]&4),Dy8=!!(dQ[0]&16),Ira=!!(dQ[0]&256),BIW=!!(dQ[0]&32);var uf,WMb,AYo,Uya,Zon,cXq;uf=KF?rYG:aX(610401301,!1);WMb=KF?cYP:aX(772657768,!1);AYo=KF?R8N:aX(513659523,!1);Uya=KF?t5P||!z8W:aX(568333945,!0);Zon=KF?Dy8:aX(1331761403,!1);cXq=KF?t5P||!Ira:aX(748402147,!0);_.ZN=KF?BIW:aX(824648567,!1);var tY,pF8=_.S5.navigator;tY=pF8?pF8.userAgentData||null:null;var Z7;_.C4=function(b,h){return Array.prototype.indexOf.call(b,h,void 0)};
_.FS=function(b,h,y){Array.prototype.forEach.call(b,h,y)};
_.oX=function(b,h,y){return Array.prototype.filter.call(b,h,y)};
_.qz=function(b,h,y){return Array.prototype.map.call(b,h,y)};
Z7=function(b,h,y){return Array.prototype.some.call(b,h,y)};
_.liF=function(b,h,y){return Array.prototype.every.call(b,h,y)};var Mq=function(b){Mq[" "](b);return b};
Mq[" "]=function(){};
var VFM=function(b,h){try{return Mq(b[h]),!0}catch(y){}return!1},tK8=function(b,h,y,S){S=S?S(h):h;
return Object.prototype.hasOwnProperty.call(b,S)?b[S]:b[S]=y(h)};var JYa,nz,e87,Cf8,sqe,Yjb,hIf,TIa,GkP,kk7,i6n,EU5,i4e,qja,xyN,Qqw;_.Pv8=function(){return _.S5.navigator||null};
JYa=nUj();_.nF=XF4();nz=rI("Edge");e87=nz||_.nF;_.XW=rI("Gecko")&&!(_.Zr(_.HF(),"WebKit")&&!rI("Edge"))&&!(rI("Trident")||rI("MSIE"))&&!rI("Edge");_.Hv=_.Zr(_.HF(),"WebKit")&&!rI("Edge");Cf8=_.Hv&&rI("Mobile");_.gUG=_.z8U();sqe=_.DyY();Yjb=(WF()?tY.platform==="Linux":rI("Linux"))||_.Irk();hIf=_.cYy();TIa=R8q();GkP=rI("iPad");kk7=rI("iPod");_.V5a=_.AY();i6n=_.Zr(_.HF(),"KaiOS");EU5=function(){var b=_.S5.document;return b?b.documentMode:void 0};
a:{var frN="",wFb=function(){var b=_.HF();if(_.XW)return/rv:([^\);]+)(\)|;)/.exec(b);if(nz)return/Edge\/([\d\.]+)/.exec(b);if(_.nF)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(b);if(_.Hv)return/WebKit\/(\S+)/.exec(b);if(JYa)return/(?:Version)[ \/]?(\S+)/.exec(b)}();
wFb&&(frN=wFb?wFb[1]:"");if(_.nF){var lrW=EU5();if(lrW!=null&&lrW>parseFloat(frN)){i4e=String(lrW);break a}}i4e=frN}qja=i4e;xyN={};_.um=function(b){return tK8(xyN,b,function(){return _.n4(qja,b)>=0})};
if(_.S5.document&&_.nF){var myw=EU5();Qqw=myw?myw:parseInt(qja,10)||void 0}else Qqw=void 0;_.vU8=Qqw;var aU8,dmn,bMG;_.OV=zk();aU8=R8q()||rI("iPod");dmn=rI("iPad");bMG=_.O4q();_.Nq=Iq();_.h9=_.un5()&&!_.AY();var hw7,t1,Lny,$pf,S7W,y87;hw7={};t1=null;Lny=_.XW||_.Hv||typeof _.S5.btoa=="function";_.CA=function(b,h){h===void 0&&(h=0);y87();h=hw7[h];for(var y=Array(Math.floor(b.length/3)),S=h[64]||"",F=0,a=0;F<b.length-2;F+=3){var P=b[F],K=b[F+1],n=b[F+2],X=h[P>>2];P=h[(P&3)<<4|K>>4];K=h[(K&15)<<2|n>>6];n=h[n&63];y[a++]=X+P+K+n}X=0;n=S;switch(b.length-F){case 2:X=b[F+1],n=h[(X&15)<<2]||S;case 1:b=b[F],y[a]=h[b>>2]+h[(b&3)<<4|X>>4]+n+S}return y.join("")};
$pf=function(b){var h="";S7W(b,function(y){h+=String.fromCharCode(y)});
return h};
_.cMr=function(b){var h=[];S7W(b,function(y){h.push(y)});
return h};
_.h8=function(b){var h=b.length,y=h*3/4;y%3?y=Math.floor(y):_.PF("=.",b[h-1])&&(y=_.PF("=.",b[h-2])?y-2:y-1);var S=new Uint8Array(y),F=0;S7W(b,function(a){S[F++]=a});
return F!==y?S.subarray(0,F):S};
S7W=function(b,h){function y(n){for(;S<b.length;){var X=b.charAt(S++),u=t1[X];if(u!=null)return u;if(!_.$U(X))throw Error("H`"+X);}return n}
y87();for(var S=0;;){var F=y(-1),a=y(0),P=y(64),K=y(64);if(K===64&&F===-1)break;h(F<<2|a>>4);P!=64&&(h(a<<4&240|P>>2),K!=64&&h(P<<6&192|K))}};
y87=function(){if(!t1){t1={};for(var b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),h=["+/=","+/","-_=","-_.","-_"],y=0;y<5;y++){var S=b.concat(h[y].split(""));hw7[y]=S;for(var F=0;F<S.length;F++){var a=S[F];t1[a]===void 0&&(t1[a]=F)}}}};var my8=typeof Uint8Array!=="undefined",kkj=!_.nF&&typeof btoa==="function",V5n=/[-_.]/g,TIn={"-":"+",_:"/",".":"="},pM={};var A8,a8W;A8=function(b,h){if(h!==pM)throw Error("J");this.JSC$9003_value_=b;if(b!=null&&b.length===0)throw Error("I");};
_.J8=function(){return F58||(F58=new A8(null,pM))};
a8W=function(b){return new Uint8Array(fEM(b)||0)};
A8.prototype.isEmpty=function(){return this.JSC$9003_value_==null};
A8.prototype.sizeBytes=function(){var b=fEM(this);return b?b.length:0};
var fEM=function(b){if(pM!==pM)throw Error("J");var h=b.JSC$9003_value_;h==null||my8&&h!=null&&h instanceof Uint8Array||(typeof h==="string"?h=EUM(h):(_.S2(h),h=null));return h==null?h:b.JSC$9003_value_=h},F58;var frq=void 0;var dG=typeof Symbol==="function"&&typeof Symbol()==="symbol",dPo=Fa("jas",void 0,!0),kaY=Fa(void 0,"0di"),df=Fa(void 0,"1oa"),JX=Fa(void 0,Symbol()),FYq=Fa(void 0,"0ub"),dAn=Fa(void 0,"0ubs"),BfU=Fa(void 0,"0ubsb"),zd5=Fa(void 0,"0actk"),WN=Fa("m_m","messagePrototypeMarker",!0),HA4=Fa(void 0,"vps"),hdr=Fa();var qjn,lrU,qA,jNW;qjn={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};lrU=Object.defineProperties;_.je=dG?dPo:"internalArrayState";jNW=[];Pb(jNW,7);qA=Object.freeze(jNW);var AX={},RN={},$PG=function(b,h,y){this.iterable=b;this.mapper=h;this.thisArg=y};
$PG.prototype.next=function(){var b=this.iterable.next();b.done||(b.value=this.mapper.call(this.thisArg,b.value));return b};
$PG.prototype[Symbol.iterator]=function(){return this};
var L55=Object.freeze({}),CM={};_.Poa=s7(function(b){return b!==null&&b!==void 0});var F5Y=s7(function(b){return typeof b==="number"}),S7N=s7(function(b){return typeof b==="string"}),dPf=s7(function(b){return typeof b==="boolean"}),K5e=s7(function(b){return b!=null&&typeof b==="object"&&typeof b.then==="function"}),lIk=s7(function(b){return typeof b==="function"}),U5=s7(function(b){return!!b&&(typeof b==="object"||typeof b==="function")});var a8U=typeof _.S5.BigInt==="function"&&typeof _.S5.BigInt(0)==="bigint";var CoY=s7(function(b){return a8U?b>=ZMW&&b<=oWW:b[0]==="-"?jNN(b,Mee):jNN(b,nWW)}),Mee=Number.MIN_SAFE_INTEGER.toString(),ZMW=a8U?BigInt(Number.MIN_SAFE_INTEGER):void 0,nWW=Number.MAX_SAFE_INTEGER.toString(),oWW=a8U?BigInt(Number.MAX_SAFE_INTEGER):void 0;var Xba=typeof Uint8Array.prototype.slice==="function",Ta=0,Ga=0,Pon;var MA,NA,Fx,Of,teF;MA=typeof BigInt==="function"?BigInt.asIntN:void 0;_.tX=typeof BigInt==="function"?BigInt.asUintN:void 0;NA=Number.isSafeInteger;Fx=Number.isFinite;Of=Math.trunc;teF=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var uxq={};var mPU={},HMM=function(){try{var b=function(){return pcI(Map,[],this.constructor)};
_.z(b,Map);Mq(new b);return!1}catch(h){return!0}}(),rQ=function(){this.JSC$9022_map_=new Map};
_.d=rQ.prototype;_.d.get=function(b){return this.JSC$9022_map_.get(b)};
_.d.set=function(b,h){this.JSC$9022_map_.set(b,h);this.size=this.JSC$9022_map_.size;return this};
_.d.delete=function(b){b=this.JSC$9022_map_.delete(b);this.size=this.JSC$9022_map_.size;return b};
_.d.clear=function(){this.JSC$9022_map_.clear();this.size=this.JSC$9022_map_.size};
_.d.has=function(b){return this.JSC$9022_map_.has(b)};
_.d.entries=function(){return this.JSC$9022_map_.entries()};
_.d.keys=function(){return this.JSC$9022_map_.keys()};
_.d.values=function(){return this.JSC$9022_map_.values()};
_.d.forEach=function(b,h){return this.JSC$9022_map_.forEach(b,h)};
rQ.prototype[Symbol.iterator]=function(){return this.entries()};
var cv=function(){if(HMM)return Object.setPrototypeOf(rQ.prototype,Map.prototype),Object.defineProperties(rQ.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),rQ;var b=function(){return pcI(Map,[],this.constructor)};
_.z(b,Map);return b}(),Uf=function(b,h,y,S){y=y===void 0?wbM:y;
S=S===void 0?wbM:S;var F=cv.call(this)||this;F.arrayState=b[_.je]|0;F.valueCtor=h;F.keyToApi=y;F.valueToApi=F.valueCtor?q7k:S;for(var a=0;a<b.length;a++){var P=b[a],K=y(P[0],!1,!0),n=P[1];h?n===void 0&&(n=null):n=S(P[1],!1,!0,void 0,void 0,F.arrayState);cv.prototype.set.call(F,K,n)}return F};
_.z(Uf,cv);var uae=function(b){if(b.arrayState&2)throw Error("N");},XNY=function(b,h){return MP(Array.from(cv.prototype.entries.call(b),h))};
_.d=Uf.prototype;_.d.clear=function(){uae(this);cv.prototype.clear.call(this)};
_.d.delete=function(b){uae(this);return cv.prototype.delete.call(this,this.keyToApi(b,!0,!1))};
_.d.entries=function(){if(this.valueCtor){var b=cv.prototype.keys.call(this);b=new $PG(b,xPU,this)}else b=cv.prototype.entries.call(this);return b};
_.d.values=function(){if(this.valueCtor){var b=cv.prototype.keys.call(this);b=new $PG(b,Uf.prototype.get,this)}else b=cv.prototype.values.call(this);return b};
_.d.forEach=function(b,h){this.valueCtor?cv.prototype.forEach.call(this,function(y,S,F){b.call(h,F.get(S),S,F)}):cv.prototype.forEach.call(this,b,h)};
_.d.set=function(b,h){uae(this);b=this.keyToApi(b,!0,!1);return b==null?this:h==null?(cv.prototype.delete.call(this,b),this):cv.prototype.set.call(this,b,this.valueToApi(h,!0,!0,this.valueCtor,!1,this.arrayState))};
_.d.has=function(b){return cv.prototype.has.call(this,this.keyToApi(b,!1,!1))};
_.d.get=function(b){b=this.keyToApi(b,!1,!1);var h=cv.prototype.get.call(this,b);if(h!==void 0){var y=this.valueCtor;return y?(y=this.valueToApi(h,!1,!0,y,this.callToMutableOnAccess,this.arrayState),y!==h&&cv.prototype.set.call(this,b,y),y):h}};
Uf.prototype[Symbol.iterator]=function(){return this.entries()};
Uf.prototype.toJSON=void 0;var QNq;var Paf=function(){},$A4=function(b,h){for(var y in b)!isNaN(y)&&h(b,+y,b[y])},KYf=function(b){var h=new Paf;
$A4(b,function(y,S,F){h[S]=xW(F)});
h.reviveUnknownFields=b.reviveUnknownFields;return h},yX8={reviveIntoImmutable:!0};var LYU;var OAN,NAU;var OMW,hx,pK,Y2,NG7,A1,gd,teb,r8M,ek,c85,CF,YY,G4;OMW=_.YW(0);_.RX={};_.z4=function(b,h,y,S,F){h=hx(b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,h,y,F);if(h!==null||S&&b.noLegacyNull!==RN)return h};
hx=function(b,h,y,S){if(h===-1)return null;var F=h+(y?0:-1),a=b.length-1;if(!(a<1+(y?0:-1))){if(F>=a){var P=b[a];if(P!=null&&typeof P==="object"&&P.constructor===Object){y=P[h];var K=!0}else if(F===a)y=P;else return}else y=b[F];if(S&&y!=null){S=S(y);if(S==null)return S;if(!Object.is(S,y))return K?P[h]=S:b[F]=S,S}return y}};
_.z6=function(b,h,y,S){ia(b);var F=b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;la(F,F[_.je]|0,h,y,S);return b};
_.DN=function(b,h,y){b=b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Gq8(b,b[_.je]|0,h,y)!==void 0};
_.IX=function(b,h,y,S){var F=b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Gq8(F,F[_.je]|0,h,Y2(b,S,y))!==void 0};
_.tW=function(b){return b===L55?2:4};
_.Bv=function(b,h){b=_.z4(b,h,void 0,void 0,edM);return b==null?_.J8():b};
pK=function(b,h,y,S){ia(b);var F=b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,a=F[_.je]|0;if(S==null){var P=sPU(F);if(YfY(P,F,a,y)===h)P.set(y,0);else return b}else a=TAr(F,a,y,h);la(F,a,h,S);return b};
_.cM=function(b,h,y,S){var F=b[_.je]|0,a=gG(F);F=TAr(b,F,y,h,a);la(b,F,h,S,a)};
Y2=function(b,h,y){return _.Wv(b,h)===y?y:-1};
_.Wv=function(b,h){b=b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return YfY(sPU(b),b,void 0,h,void 0)};
NG7=function(b,h,y){var S=b[_.je]|0,F=gG(S),a=hx(b,y,F);if(a!=null&&a[WN]===AX){if(!IN(a))return Ef(a),a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var P=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(a)&&(P=a);if(P){var K=P[_.je]|0;K&2&&(P=Gq(P,K))}P=YF(P,h);P!==a&&la(b,S,y,P,F);return P};
_.cL=function(b,h,y,S){var F=b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,a=F[_.je]|0;h=Gq8(F,a,h,y,S);if(h==null)return h;a=F[_.je]|0;if(!IN(b,a)){var P=l84(h);P!==h&&(Ef(b)&&(F=b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,a=F[_.je]|0),h=P,a=la(F,a,y,h,S),wA(F,a))}return h};
_.NK=function(b,h,y,S){var F=b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return kq8(b,F,F[_.je]|0,h,y,S,!1,!0)};
_.U_=function(b,h,y,S){y=V2f(y);_.z6(b,h,y,S);y&&!IN(y)&&wA(b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return b};
_.pc=function(b,h,y,S){S=V2f(S);pK(b,h,y,S);S&&!IN(S)&&wA(b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return b};
A1=function(b,h,y){ia(b);var S=b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,F=S[_.je]|0;if(y==null)return la(S,F,h),b;for(var a=y===qA?7:y[_.je]|0,P=a,K=vN(a),n=K||Object.isFrozen(y),X=!0,u=!0,O=0;O<y.length;O++){var N=y[O];K||(N=IN(N),X&&(X=!N),u&&(u=N))}K||(a=X?13:5,a=u?a&-4097:a|4096);n&&a===P||(y=xW(y),P=0,a=xF(a,F));a!==P&&Pb(y,a);F=la(S,F,h,y);2&a||!(4096&a||16&a)||wA(S,F);return b};
gd=function(b,h,y,S){iAj(b,h,y,S);return b};
teb=function(b,h,y){iAj(b,h,UV,void 0,y,1,!0);return b};
_.pF=function(b,h,y){b=_.z4(b,h,void 0,y);h=typeof b;b=b==null?b:h==="bigint"?_.YW((0,_.tX)(64,b)):_.aP(b)?h==="string"?_.ew4(b):_.pb8(b):void 0;return b};
_.J1=function(b,h){var y=y===void 0?!1:y;var S;return(S=_.NGj(_.z4(b,h)))!=null?S:y};
_.rB=function(b,h,y){y=y===void 0?0:y;var S;return(S=_.ZE(_.z4(b,h)))!=null?S:y};
r8M=function(b,h){var y=y===void 0?0:y;b=_.c8M(_.z4(b,h));return b!=null?b:y};
ek=function(b,h,y){y=y===void 0?OMW:y;var S;return(S=_.Y7y(_.z4(b,h)))!=null?S:y};
c85=function(b){var h=h===void 0?OMW:h;var y;return(y=_.pF(b,23))!=null?y:h};
CF=function(b,h){var y=y===void 0?0:y;var S;return(S=_.z4(b,h,void 0,void 0,_.yf))!=null?S:y};
_.gQ=function(b,h,y,S){y=y===void 0?"":y;var F;return(F=_.zq(_.z4(b,h,S)))!=null?F:y};
_.sV=function(b,h){var y=y===void 0?0:y;var S;return(S=_.PN(_.z4(b,h)))!=null?S:y};
YY=function(b,h){var y=y===void 0?"0":y;b=sNF(_.z4(b,h),!0);return b!=null?b:y};
_.RwP=function(b,h,y){b=_.mY(b,h,_.zq,3,!0);vUr(b,y);return b[y]};
G4=function(b,h,y){return _.gQ(b,Y2(b,y,h))};
_.kY=function(b,h,y,S){return _.cL(b,h,Y2(b,S,y),void 0)};
_.Cq=function(b,h){return _.zq(_.z4(b,h,void 0,_.RX))};
_.D9=function(b,h,y){return _.z6(b,h,OMN(y))};
_.IH=function(b,h,y){return _.SP(b,h,OMN(y),!1)};
_.V7=function(b,h,y){return _.z6(b,h,_.KA(y))};
_.GE=function(b,h,y){return _.z6(b,h,HN(y))};
_.kb=function(b,h,y){return _.z6(b,h,RP(y))};
_.lq=function(b,h,y,S){return _.SP(b,h,RP(y),"",S)};
_.R2=function(b,h,y){return _.z6(b,h,y==null?y:_.$F(y))};
_.EV=function(b,h,y){return _.SP(b,h,y==null?y:_.$F(y),0)};var jP=function(b,h,y){this.buffer=b;if(y&&!h)throw Error();this.JSC$9034_isImmutable=h};var zww=function(b,h,y,S){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$9037_start_=0;this.init(b,h,y,S)},I8W,im,BGw,QR8,W58,A8e,UPb,pbw,Hc4,DP8;
_.d=zww.prototype;_.d.init=function(b,h,y,S){var F=S===void 0?{}:S;S=F.aliasBytesFields===void 0?!1:F.aliasBytesFields;F=F.treatNewDataAsImmutable===void 0?!1:F.treatNewDataAsImmutable;this.aliasBytesFields=S;this.treatNewDataAsImmutable=F;b&&(b=wNU(b,this.treatNewDataAsImmutable),this.bytes_=b.buffer,this.bytesAreImmutable_=b.JSC$9034_isImmutable,this.JSC$9037_start_=h||0,this.end_=y!==void 0?this.JSC$9037_start_+y:this.bytes_.length,this.cursor_=this.JSC$9037_start_)};
_.d.free=function(){this.clear();DP8.length<100&&DP8.push(this)};
_.d.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$9037_start_=0;this.aliasBytesFields=!1};
_.d.reset=function(){this.cursor_=this.JSC$9037_start_};
_.d.atEnd=function(){return this.cursor_==this.end_};
_.rf=function(b,h){var y=0,S=0,F=0,a=b.bytes_,P=b.cursor_;do{var K=a[P++];y|=(K&127)<<F;F+=7}while(F<32&&K&128);if(F>32)for(S|=(K&127)>>4,F=3;F<32&&K&128;F+=7)K=a[P++],S|=(K&127)<<F;im(b,P);if(!(K&128))return h(y>>>0,S>>>0);throw Error();};
I8W=function(b){return _.rf(b,function(h,y){return Xbn(h,y,Me5)})};
im=function(b,h){b.cursor_=h;if(h>b.end_)throw Error();};
_.fF=function(b){var h=b.bytes_,y=b.cursor_,S=h[y++],F=S&127;if(S&128&&(S=h[y++],F|=(S&127)<<7,S&128&&(S=h[y++],F|=(S&127)<<14,S&128&&(S=h[y++],F|=(S&127)<<21,S&128&&(S=h[y++],F|=S<<28,S&128&&h[y++]&128&&h[y++]&128&&h[y++]&128&&h[y++]&128&&h[y++]&128)))))throw Error();im(b,y);return F};
_.wQ=function(b){var h=b.bytes_,y=b.cursor_,S=h[y],F=h[y+1],a=h[y+2];h=h[y+3];im(b,b.cursor_+4);return(S<<0|F<<8|a<<16|h<<24)>>>0};
BGw=function(b){var h=_.wQ(b);b=_.wQ(b);return ZMN(h,b)};
QR8=function(b){var h=_.wQ(b);b=_.wQ(b);return oWU(h,b)};
W58=function(b){var h=_.wQ(b);b=(h>>31)*2+1;var y=h>>>23&255;h&=8388607;return y==255?h?NaN:b*Infinity:y==0?b*1.401298464324817E-45*h:b*Math.pow(2,y-150)*(h+8388608)};
A8e=function(b){var h=_.wQ(b),y=_.wQ(b);b=(y>>31)*2+1;var S=y>>>20&2047;h=4294967296*(y&1048575)+h;return S==2047?h?NaN:b*Infinity:S==0?b*4.9E-324*h:b*Math.pow(2,S-1075)*(h+4503599627370496)};
UPb=function(b){for(var h=0,y=b.cursor_,S=y+10,F=b.bytes_;y<S;){var a=F[y++];h|=a;if((a&128)===0)return im(b,y),!!(h&127)}throw Error();};
pbw=function(b,h){if(h<0)throw Error();var y=b.cursor_;h=y+h;if(h>b.end_)throw Error();b.cursor_=h;return y};
Hc4=function(b,h){if(h==0)return _.J8();var y=pbw(b,h);b.aliasBytesFields&&b.bytesAreImmutable_?y=b.bytes_.subarray(y,y+h):(b=b.bytes_,h=y+h,y=y===h?new Uint8Array(0):Xba?b.slice(y,h):new Uint8Array(b.subarray(y,h)));return y.length==0?_.J8():new A8(y,pM)};
DP8=[];var ewM=function(b,h,y,S){if(DP8.length){var F=DP8.pop();F.init(b,h,y,S);b=F}else b=new zww(b,h,y,S);this.decoder_=b;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;J8W(this,S)},J8W=function(b,h){h=h===void 0?{}:h;
b.discardUnknownFields=h.discardUnknownFields===void 0?!1:h.discardUnknownFields},NfY=function(b,h,y,S){if(Co8.length){var F=Co8.pop();
J8W(F,S);F.decoder_.init(b,h,y,S);return F}return new ewM(b,h,y,S)},MPj,XMY,lm,gWM,Co8;
ewM.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;Co8.length<100&&Co8.push(this)};
ewM.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
MPj=function(b){if(b.decoder_.atEnd())return!1;b.fieldCursor_=b.decoder_.cursor_;var h=_.fF(b.decoder_)>>>0,y=h>>>3;h&=7;if(!(h>=0&&h<=5))throw Error();if(y<1)throw Error();b.nextField_=y;b.nextWireType_=h;return!0};
XMY=function(b){switch(b.nextWireType_){case 0:b.nextWireType_!=0?XMY(b):UPb(b.decoder_);break;case 1:b=b.decoder_;im(b,b.cursor_+8);break;case 2:if(b.nextWireType_!=2)XMY(b);else{var h=_.fF(b.decoder_)>>>0;b=b.decoder_;im(b,b.cursor_+h)}break;case 5:b=b.decoder_;im(b,b.cursor_+4);break;case 3:h=b.nextField_;do{if(!MPj(b))throw Error();if(b.nextWireType_==4){if(b.nextField_!=h)throw Error();break}XMY(b)}while(1);break;default:throw Error();}};
lm=function(b,h,y){var S=b.decoder_.end_,F=_.fF(b.decoder_)>>>0;F=b.decoder_.cursor_+F;var a=F-S;a<=0&&(b.decoder_.end_=F,y(h,b,void 0,void 0,void 0),a=F-b.decoder_.cursor_);if(a)throw Error();b.decoder_.cursor_=F;b.decoder_.end_=S;return h};
gWM=function(b){var h=_.fF(b.decoder_)>>>0;b=b.decoder_;var y=pbw(b,h);b=b.bytes_;if(Z4o){var S=b,F;(F=KM7)||(F=KM7=new TextDecoder("utf-8",{fatal:!0}));h=y+h;S=y===0&&h===S.length?S:S.subarray(y,h);try{var a=F.decode(S)}catch(X){if(PfW===void 0){try{F.decode(new Uint8Array([128]))}catch(u){}try{F.decode(new Uint8Array([97])),PfW=!0}catch(u){PfW=!1}}!PfW&&(KM7=void 0);throw X;}}else{a=y;h=a+h;y=[];for(var P=null,K,n;a<h;)K=b[a++],K<128?y.push(K):K<224?a>=h?hY():(n=b[a++],K<194||(n&192)!==128?(a--,
hY()):y.push((K&31)<<6|n&63)):K<240?a>=h-1?hY():(n=b[a++],(n&192)!==128||K===224&&n<160||K===237&&n>=160||((F=b[a++])&192)!==128?(a--,hY()):y.push((K&15)<<12|(n&63)<<6|F&63)):K<=244?a>=h-2?hY():(n=b[a++],(n&192)!==128||(K<<28)+(n-144)>>30!==0||((F=b[a++])&192)!==128||((S=b[a++])&192)!==128?(a--,hY()):(K=(K&7)<<18|(n&63)<<12|(F&63)<<6|S&63,K-=65536,y.push((K>>10&1023)+55296,(K&1023)+56320))):hY(),y.length>=8192&&(P=$yM(P,y),y.length=0);a=$yM(P,y)}return a};
_.sNb=function(b){var h=_.fF(b.decoder_)>>>0;return Hc4(b.decoder_,h)};
_.Y7P=function(b,h,y){var S=_.fF(b.decoder_)>>>0;for(S=b.decoder_.cursor_+S;b.decoder_.cursor_<S;)y.push(h(b.decoder_))};
Co8=[];var TGa=function(b,h){this.JSC$9044_lo=b>>>0;this.JSC$9044_hi=h>>>0},e2f=function(b){b=BigInt.asUintN(64,b);
return new TGa(Number(b&BigInt(4294967295)),Number(b>>BigInt(32)))},xAY=function(b){if(!b)return Gae||(Gae=new TGa(0,0));
if(!/^\d+$/.test(b))return null;qP(b);return new TGa(Ta,Ga)},Gae,Jxk=function(b,h){this.JSC$9046_lo=b>>>0;
this.JSC$9046_hi=h>>>0},lEk=function(b){if(!b)return ka8||(ka8=new Jxk(0,0));
if(!/^-?\d+$/.test(b))return null;qP(b);return new Jxk(Ta,Ga)},ka8;var qq=function(){this.JSC$9048_buffer_=[]},O_,tx,Ve7;
qq.prototype.length=function(){return this.JSC$9048_buffer_.length};
qq.prototype.end=function(){var b=this.JSC$9048_buffer_;this.JSC$9048_buffer_=[];return b};
O_=function(b,h,y){for(;y>0||h>127;)b.JSC$9048_buffer_.push(h&127|128),h=(h>>>7|y<<25)>>>0,y>>>=7;b.JSC$9048_buffer_.push(h)};
tx=function(b,h){for(;h>127;)b.JSC$9048_buffer_.push(h&127|128),h>>>=7;b.JSC$9048_buffer_.push(h)};
_.g$M=function(b,h){if(h>=0)tx(b,h);else{for(var y=0;y<9;y++)b.JSC$9048_buffer_.push(h&127|128),h>>=7;b.JSC$9048_buffer_.push(1)}};
Ve7=function(b,h){qP(h);nWU(function(y,S){O_(b,y>>>0,S>>>0)})};
qq.prototype.writeUint8=function(b){this.JSC$9048_buffer_.push(b>>>0&255)};
_.uJ=function(b,h){b.JSC$9048_buffer_.push(h>>>0&255);b.JSC$9048_buffer_.push(h>>>8&255);b.JSC$9048_buffer_.push(h>>>16&255);b.JSC$9048_buffer_.push(h>>>24&255)};
qq.prototype.writeInt8=function(b){this.JSC$9048_buffer_.push(b>>>0&255)};var EWb,M9,Y_I,kpy,bcM;EWb=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new qq};
M9=function(b,h){h.length!==0&&(b.blocks_.push(h),b.totalLength_+=h.length)};
_.iMo=function(b,h){_.HM(b,h,2);h=b.encoder_.end();M9(b,h);h.push(b.totalLength_);return h};
_.f8N=function(b,h){var y=h.pop();for(y=b.totalLength_+b.encoder_.length()-y;y>127;)h.push(y&127|128),y>>>=7,b.totalLength_++;h.push(y);b.totalLength_++};
_.HM=function(b,h,y){tx(b.encoder_,h*8+y)};
Y_I=function(b,h,y){if(y!=null)switch(QPM(y),_.HM(b,h,1),typeof y){case "number":b=b.encoder_;$PI(y);_.uJ(b,Ta);_.uJ(b,Ga);break;case "bigint":y=e2f(y);b=b.encoder_;h=y.JSC$9044_hi;_.uJ(b,y.JSC$9044_lo);_.uJ(b,h);break;default:y=xAY(y),b=b.encoder_,h=y.JSC$9044_hi,_.uJ(b,y.JSC$9044_lo),_.uJ(b,h)}};
kpy=function(b,h,y){_.HM(b,h,2);tx(b.encoder_,y.length);M9(b,b.encoder_.end());M9(b,y)};
bcM=function(b,h,y,S){y!=null&&(h=_.iMo(b,h),S(y,b),_.f8N(b,h))};var mAM,wb5,l8M,q7a,xPW,mPW,vW8,hd8,yXw;mAM=$$();wb5=$$();l8M=$$();q7a=$$();xPW=$$();_.QNN=$$();_.xY=$$();mPW=$$();vW8=$$();_.bAN=$$();hd8=$$();yXw=$$();_.SfW=$$();_.FYN=$$();_.ZL=function(b,h,y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b,h,y)};
_.ZL.prototype.toJSON=function(){return sf(this)};
_.ZL.prototype.serialize=function(b){return JSON.stringify(sf(this,b))};
var ykI=function(b,h){if(h==null||h=="")return new b;h=JSON.parse(h);if(!Array.isArray(h))throw Error("V");return new b(Qq8(h))};
_.ZL.prototype.getExtension=function(b){aEj(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b.fieldIndex);SfN(this,b.fieldIndex);return b.ctor?b.isRepeated?b.getExtensionFn(this,b.ctor,b.fieldIndex,_.tW(),b.JSC$9059_hasMessageId):b.getExtensionFn(this,b.ctor,b.fieldIndex,b.JSC$9059_hasMessageId):b.isRepeated?b.getExtensionFn(this,b.fieldIndex,_.tW(),b.JSC$9059_hasMessageId):b.getExtensionFn(this,b.fieldIndex,b.defaultValue,b.JSC$9059_hasMessageId)};
_.ZL.prototype.clone=function(){var b=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,h=b[_.je]|0;return AXf(this,b,h)?WYn(this,b,!0):new this.constructor(Gq(b,h,!1))};
_.ZL.prototype[WN]=AX;_.ZL.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var PM=function(b,h,y){this.$$binaryReaderFn=b;this.$$binaryWriterFn=h;b=pA(mAM);this.$$isMsg=!!b&&y===b||!1},d94=vF8(function(b,h,y,S,F){if(b.nextWireType_!==2)return!1;
lm(b,NG7(h,S,y),F);return!0},yxn),jRF=vF8(function(b,h,y,S,F){if(b.nextWireType_!==2)return!1;
lm(b,NG7(h,S,y),F);return!0},yxn),rxU=Symbol(),PJ8=Symbol(),o$5=Symbol(),z28=Symbol(),u95=Symbol(),S_F,FAj;var aE7,v$n,dAa,Q7,jPN,$AM,LYW,Pao,vv,ZAa,oFb,M25,nF5,XN8,uxN,OAW,NAW,t2a,rXN,cXN;aE7=_.YW(0);v$n=function(b,h){var y=new EWb;D9j(b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,y,Kc(rxU,tP5,cx8,h));M9(y,y.encoder_.end());b=new Uint8Array(y.totalLength_);h=y.blocks_;for(var S=h.length,F=0,a=0;a<S;a++){var P=h[a];b.set(P,F);F+=P.length}y.blocks_=[b];return b};
dAa=vF8(function(b,h,y,S,F){if(b.nextWireType_!==2)return!1;b=lm(b,YF([void 0,void 0],S),F);b=xW(b);S=h[_.je]|0;F=gG(S);if(S&2)throw Error();var a=hx(h,y,F);if(a instanceof Uf)(a.arrayState&2)!=0?(a=XNY(a),a.push(b),la(h,S,y,a,F)):(h=a,y=h.keyToApi(b[0],!1,!0),b=b[1],b=h.valueCtor?b===void 0?null:b:h.valueToApi(b,!1,!0,void 0,!1,h.arrayState),cv.prototype.set.call(h,y,b));else if(Array.isArray(a)){var P=a[_.je]|0;P&8192||Pb(a,P|=8192);P&2&&(a=Ca5(a),la(h,S,y,a,F));a.push(b)}else la(h,S,y,MP([b]),
F);return!0},function(b,h,y,S,F){if(h instanceof Uf)h.forEach(function(K,n){bcM(b,y,YF([n,
K],S),F)});
else if(Array.isArray(h)){for(var a=0;a<h.length;a++){var P=h[a];Array.isArray(P)&&bcM(b,y,YF(P,S),F)}MP(h)}});
Q7=_.nc(function(b,h,y){if(b.nextWireType_!==1)return!1;_.X9(h,y,A8e(b.decoder_));return!0},U9M,yXw);
jPN=_.nc(function(b,h,y,S){if(b.nextWireType_!==1)return!1;_.cM(h,y,S,A8e(b.decoder_));return!0},U9M,yXw);
$AM=_.nc(function(b,h,y){if(b.nextWireType_!==5)return!1;_.X9(h,y,W58(b.decoder_));return!0},pMf,hd8);
LYW=_.Ax5(function(b,h,y){if(b.nextWireType_!==5&&b.nextWireType_!==2)return!1;h=_.aR(h,h[_.je]|0,y);b.nextWireType_==2?_.Y7P(b,W58,h):h.push(W58(b.decoder_));return!0},function(b,h,y){h=_.WAk(_.yf,h,!0);
if(h!=null&&h.length)for(_.HM(b,y,2),tx(b.encoder_,h.length*4),y=0;y<h.length;y++){var S=b.encoder_;K55(h[y]);_.uJ(S,Ta)}},hd8);
Pao=_.nc(function(b,h,y,S){if(b.nextWireType_!==5)return!1;_.cM(h,y,S,W58(b.decoder_));return!0},pMf,hd8);
_.KYo=_.nc(function(b,h,y){if(_.ZN)return lLn(b,h,y);if(b.nextWireType_!==0)return!1;_.X9(h,y,_.rf(b.decoder_,_.fM));return!0},_.N9,_.xY);
_.mP=_.nc(function(b,h,y){if(_.ZN)return lLn(b,h,y);if(b.nextWireType_!==0)return!1;_.X9(h,y,_.rf(b.decoder_,E7));return!0},_.N9,_.xY);
vv=_.nc(function(b,h,y){if(_.ZN)return b.nextWireType_!==0?h=!1:(b=_.rf(b.decoder_,Me5),_.X9(h,y,b===aE7?void 0:b),h=!0),h;if(b.nextWireType_!==0)return!1;b=_.rf(b.decoder_,E7);_.X9(h,y,b===0?void 0:b);return!0},_.N9,_.xY);
ZAa=_.nc(function(b,h,y,S){if(_.ZN)return _.q_U(b,h,y,S);if(b.nextWireType_!==0)return!1;_.cM(h,y,S,_.rf(b.decoder_,E7));return!0},_.N9,_.xY);
oFb=_.nc(function(b,h,y){if(_.ZN)return x9N(b,h,y);if(b.nextWireType_!==0)return!1;_.X9(h,y,_.rf(b.decoder_,_.VW));return!0},CJY,mPW);
_.b4=_.nc(function(b,h,y){if(_.ZN)return x9N(b,h,y);if(b.nextWireType_!==0)return!1;_.X9(h,y,_.rf(b.decoder_,ZMN));return!0},CJY,mPW);
_.h2=_.nc(function(b,h,y){if(b.nextWireType_!==0)return!1;_.X9(h,y,_.fF(b.decoder_));return!0},sR5,q7a);
M25=_.nc(function(b,h,y){if(b.nextWireType_!==0)return!1;b=_.fF(b.decoder_);_.X9(h,y,b===0?void 0:b);return!0},sR5,q7a);
nF5=_.nc(function(b,h,y,S){if(b.nextWireType_!==0)return!1;_.cM(h,y,S,_.fF(b.decoder_));return!0},sR5,q7a);
XN8=_.nc(function(b,h,y){if(_.ZN)return _.m9f(b,h,y);if(b.nextWireType_!==1)return!1;_.X9(h,y,BGw(b.decoder_));return!0},_.Tfq,_.bAN);
_.HAM=_.Ax5(function(b,h,y){if(_.ZN)return b.nextWireType_!==1&&b.nextWireType_!==2?b=!1:(h=_.aR(h,h[_.je]|0,y),b.nextWireType_==2?_.Y7P(b,QR8,h):h.push(QR8(b.decoder_)),b=!0),b;if(b.nextWireType_!==1&&b.nextWireType_!==2)return!1;h=_.aR(h,h[_.je]|0,y);b.nextWireType_==2?_.Y7P(b,BGw,h):h.push(BGw(b.decoder_));return!0},function(b,h,y){h=_.WAk(Ga5,h,!1);
if(h!=null)for(var S=0;S<h.length;S++)Y_I(b,y,h[S])},_.bAN);
_.yw=_.nc(function(b,h,y){if(b.nextWireType_!==0)return!1;_.X9(h,y,UPb(b.decoder_));return!0},Gpk,wb5);
_.SV=_.nc(function(b,h,y){if(b.nextWireType_!==0)return!1;b=UPb(b.decoder_);_.X9(h,y,b===!1?void 0:b);return!0},Gpk,wb5);
uxN=_.nc(function(b,h,y,S){if(b.nextWireType_!==0)return!1;_.cM(h,y,S,UPb(b.decoder_));return!0},Gpk,wb5);
_.FH=_.nc(function(b,h,y){if(b.nextWireType_!==2)return!1;_.X9(h,y,gWM(b));return!0},VP5,l8M);
_.ay=_.nc(function(b,h,y){if(b.nextWireType_!==2)return!1;b=gWM(b);_.X9(h,y,b===""?void 0:b);return!0},VP5,l8M);
_.dX=_.nc(function(b,h,y,S){if(b.nextWireType_!==2)return!1;_.cM(h,y,S,gWM(b));return!0},VP5,l8M);
OAW=_.Ax5(function(b,h,y){if(b.nextWireType_!==2)return!1;b=gWM(b);_.aR(h,h[_.je]|0,y).push(b);return!0},function(b,h,y){h=_.WAk(_.zq,h,!0);
if(h!=null)for(var S=0;S<h.length;S++){var F=b,a=y,P=h[S];P!=null&&kpy(F,a,Z4f(P))}},l8M);
NAW=void 0;NAW=NAW===void 0?mAM:NAW;_.L8=new PM(function(b,h,y,S,F){if(b.nextWireType_!==2)return!1;S=YF(void 0,S);_.aR(h,h[_.je]|0,y).push(S);lm(b,S,F);return!0},function(b,h,y,S,F){if(Array.isArray(h)){for(var a=0;a<h.length;a++)E$8(b,h[a],y,S,F);
b=h[_.je]|0;b&1||Pb(h,b|1)}},NAW);
_.Pq=vF8(function(b,h,y,S,F,a){if(b.nextWireType_!==2)return!1;var P=h[_.je]|0;TAr(h,P,a,y,gG(P));h=NG7(h,S,y);lm(b,h,F);return!0},E$8);
_.K8=_.nc(function(b,h,y){if(b.nextWireType_!==2)return!1;_.X9(h,y,_.sNb(b));return!0},_.icI,_.SfW);
t2a=_.nc(function(b,h,y,S){if(b.nextWireType_!==2)return!1;_.cM(h,y,S,_.sNb(b));return!0},_.icI,_.SfW);
_.ZS=_.nc(function(b,h,y){if(b.nextWireType_!==0)return!1;_.X9(h,y,_.fF(b.decoder_)>>>0);return!0},fL8,xPW);
rXN=_.nc(function(b,h,y,S){if(b.nextWireType_!==0)return!1;_.cM(h,y,S,_.fF(b.decoder_)>>>0);return!0},fL8,xPW);
_.oy=_.nc(function(b,h,y){if(b.nextWireType_!==0)return!1;_.X9(h,y,_.fF(b.decoder_));return!0},_.wMM,_.FYN);
_.MM=_.nc(function(b,h,y){if(b.nextWireType_!==0)return!1;b=_.fF(b.decoder_);_.X9(h,y,b===0?void 0:b);return!0},_.wMM,_.FYN);
cXN=_.nc(function(b,h,y){if(_.ZN)return b.nextWireType_!==0?b=!1:(_.X9(h,y,I8W(b.decoder_)),b=!0),b;if(b.nextWireType_!==0)return!1;_.X9(h,y,_.rf(b.decoder_,HM4));return!0},function(b,h,y){h=TGn(h);
if(h!=null&&(qfM(h),h!=null))switch(_.HM(b,y,0),typeof h){case "number":b=b.encoder_;y=h;h=y<0;y=Math.abs(y)*2;$PI(y);y=Ta;var S=Ga;h&&(y==0?S==0?S=y=4294967295:(S--,y=4294967295):y--);Ta=y;Ga=S;O_(b,Ta,Ga);break;case "bigint":b=b.encoder_;h=h<<BigInt(1)^h>>BigInt(63);Ta=Number(BigInt.asUintN(32,h));Ga=Number(BigInt.asUintN(32,h>>BigInt(32)));O_(b,Ta,Ga);break;default:Ve7(b.encoder_,h)}},vW8);var DA8=function(){var b=Rda,h=zde;this.fieldIndex=175237375;this.ctor=h;this.isRepeated=0;this.getExtensionFn=_.cL;this.defaultValue=void 0;this.JSC$9059_hasMessageId=b.messageId!=null?CM:void 0};
DA8.prototype.register=function(){Mq(this)};var IEw=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(IEw,_.ZL);var BAe=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(BAe,_.ZL);var aFk=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(aFk,_.ZL);var WYa=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(WYa,_.ZL);var AXo=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(AXo,_.ZL);var UAa=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(UAa,_.ZL);var pNM=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(pNM,_.ZL);pNM.prototype.getData=function(){return _.Bv(this,2)};var JX5=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(JX5,_.ZL);var ed5=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(ed5,_.ZL);ed5.prototype.getStyle=function(){return _.cL(this,IEw,1)};var Ax=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(Ax,_.ZL);Ax.prototype.getPayloadCase=function(){return _.Wv(this,Jx)};
Ax.prototype.getStyle=function(){return _.kY(this,ed5,6,Jx)};
var Cae=function(){var b=new Ax,h=new AXo;return _.pc(b,7,Jx,h)},gF8=function(){var b=new Ax,h=new UAa;
return _.pc(b,8,Jx,h)},Jx=[1,
2,3,4,5,6,7,8];var sPW=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(sPW,_.ZL);var Yf8=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(Yf8,_.ZL);var TA8=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(TA8,_.ZL);var Gqw=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(Gqw,_.ZL);var kqw=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(kqw,_.ZL);var V2o=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(V2o,_.ZL);var EFa=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(EFa,_.ZL);var iA7=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(iA7,_.ZL);iA7.prototype.getData=function(){return _.Bv(this,2)};var fE5=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(fE5,_.ZL);var Ftn=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(Ftn,_.ZL);Ftn.prototype.getPayloadCase=function(){return _.Wv(this,n8)};
var n8=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var XH=function(b,h){b=Error.call(this,b);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=h===void 0?2:h};
_.z(XH,Error);var wNW=Promise;var lEa=function(b){this.channelPromise=b};
lEa.prototype.send=function(b,h,y){this.channelPromise.then(function(S){S.send(b,h,y)})};var qf5=function(b,h){this.data=b;this.channel=h};
qf5.prototype.reply=function(b,h,y){this.channel.send(b,h,y)};var xA8=function(b){this.JSC$9125_port_=b};
xA8.prototype.send=function(b,h,y){y=y===void 0?[]:y;var S=new MessageChannel;QP5(S.port1,h);this.JSC$9125_port_.postMessage(b,[S.port2].concat(y))};
var mA5=function(b,h){QP5(b,h);return new xA8(b)},QP5=function(b,h){h&&(b.onmessage=function(y){h(new qf5(y.data,mA5(y.ports[0])))})};var vFw=function(b){this.verifier_=b};
vFw.prototype.verify=function(b){return this.verifier_(b)};
var bc5=function(b){var h=Object.create(null);(typeof b==="string"?[b]:b).forEach(function(y){if(y==="null")throw Error("X");h[y]=!0});
return function(y){return h[y]===!0}};_.h25=function(){if(!_.S5.addEventListener||!Object.defineProperty)return!1;var b=!1,h=Object.defineProperty({},"passive",{get:function(){b=!0}});
try{var y=function(){};
_.S5.addEventListener("test",y,h);_.S5.removeEventListener("test",y,h)}catch(S){}return b}();var yxa;_.Hq=function(b){var h=b.destination;var y=b.iframe;var S=b.origin;var F=b.channelName===void 0?"ZNWN1d":b.channelName;var a=b.onMessage===void 0?void 0:b.onMessage;b=b.onEstablished===void 0?void 0:b.onEstablished;return yxa({destination:h,getSource:function(){return y.contentWindow},
originVerifier:S instanceof vFw?S:typeof S==="function"?new vFw(S):new vFw(bc5(S)),channelName:F,onMessage:a,onEstablished:b})};
yxa=function(b){var h=b.destination;var y=b.getSource;var S=b.originVerifier;var F=b.token===void 0?void 0:b.token;var a=b.channelName;var P=b.onMessage===void 0?void 0:b.onMessage;var K=b.onEstablished===void 0?void 0:b.onEstablished;return new lEa(new wNW(function(n,X){var u=function(O){O.source&&O.source===y()&&S.verify(O.origin)&&(O.data.n||O.data)===a&&(h.removeEventListener("message",u,!1),F&&O.data.t!==F?X(Error("Y`"+a+"`"+F+"`"+O.data.t)):(n(mA5(O.ports[0],P)),K&&K(O)))};
h.addEventListener("message",u,!1)}))};var S_b=function(b){try{b()}catch(h){Fn(h)}};var aL5=function(b){var h=this;var y=b.getMessageType;var S=b.onUnregisteredMessage===void 0?function(){}:b.onUnregisteredMessage;
var F=b.onBeforeRegisteredMessage===void 0?function(){}:b.onBeforeRegisteredMessage;
b=b.onAfterRegisteredMessage===void 0?function(){}:b.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=y;this.onUnregisteredMessage_=S;this.onBeforeRegisteredMessage_=F;this.onAfterRegisteredMessage_=b;this.onMessage=function(a){return FA7(h,a)}};
aL5.prototype.register=function(b,h){this.registry_.set(b,h);return this};
var FA7=function(b,h){var y=b.getMessageType_(h.data),S=b.registry_.get(y);S?(S_b(function(){return b.onBeforeRegisteredMessage_(h,y)}),S_b(function(){return S(h)}),S_b(function(){return b.onAfterRegisteredMessage_(h,y)})):S_b(function(){return b.onUnregisteredMessage_(h,y)})};var d9M=function(b){this.JSC$9142_channel_=b},$9W,LAb;
d9M.prototype.send=function(b,h,y){this.JSC$9142_channel_.send(sf(b),h,y)};
_.jRb=function(b,h){return function(y){var S=new b(y.data);return h(new qf5(S,y.channel))}};
$9W=function(b){return function(h){return b(new qf5(h.data,new d9M(h.channel)))}};
LAb=function(b,h){return $9W(_.jRb(b,h))};var PJw=function(b,h,y,S){this.registry=b;this.delegate=h;this.receiveMessageConstructor=y;this.createInitMessage=S;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},S3r=function(b){var h=new aL5({getMessageType:b.getPayloadCase});
return new PJw(h,new d9M(_.Hq({iframe:b.child,destination:window,origin:b.origin,channelName:b.channelName,onMessage:LAb(b.receiveMessageConstructor,h.onMessage)})),b.receiveMessageConstructor,b.createInitMessage)},KAP=function(b,h){b.createInitMessage=h};
PJw.prototype.send=function(b){if(!this.initialised)throw new XH("Attempted to send a message before initialisation.");this.delegate.send(b)};
var ZcG=function(b,h){return _.Z(function(y){if(!b.initialised)throw new XH("Attempted to send a message before initialisation.");return y.return(new Promise(function(S){b.delegate.send(h,LAb(b.receiveMessageConstructor,S))}))})};
PJw.prototype.init=function(){var b=this;return _.Z(function(h){if(b.initialised)throw new XH("Attempted to initialise twice. The SDK can only be initialised once.");if(b.createInitMessage!==void 0){var y=b.delegate,S=y.send,F=b.createInitMessage;var a=new BAe;var P=[].concat(_.f$(b.features));a=_.yD(a,1,P,_.$F);S.call(y,F.call(b,a))}b.initialised=!0;_.g3(h)})};
var u4=function(b,h){if(b.initialised)throw new XH('Attempted to set up API "'+h+'" after initialisation. All APIs must be set up before initialising the SDK.');b.features.add(h);return b.registry};
_.tm.Object.defineProperties(PJw.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var o$e=function(b){this.channel=b;this.registered=!1};
o$e.prototype.update=function(b){if(this.channel.isInitialised){if(!this.registered)throw new XH("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var h=new Ax;var y=new WYa;y=_.D9(y,1,b);h=_.pc(h,2,Jx,y);this.channel.send(h)}else this.register();this.JSC$9156_audioEnabled=b};
o$e.prototype.register=function(){u4(this.channel,1);this.registered=!0};
o$e.prototype.isAudioEnabled=function(){return this.JSC$9156_audioEnabled};var MP7=function(b){this.channel=b};
_.d=MP7.prototype;_.d.onFirstFrameReady=function(b){u4(this.channel,2).register(11,function(h){h=_.kY(h.data,sPW,11,n8);if(!h)throw new XH("Unexpectedly nonexistent GameFirstFrameReadyEvent");b(_.gQ(h,1))})};
_.d.onReady=function(b){u4(this.channel,2).register(4,function(h){h=_.kY(h.data,TA8,4,n8);if(!h)throw new XH("Unexpectedly nonexistent GameReadyEvent");b(_.gQ(h,1))})};
_.d.onLevelComplete=function(b){u4(this.channel,2).register(5,function(h){h=_.kY(h.data,Gqw,5,n8);if(!h)throw new XH("Unexpectedly nonexistent LevelCompleteEvent");b(_.gQ(h,1),_.rB(h,2))})};
_.d.onGameOver=function(b){u4(this.channel,2).register(6,function(h){h=_.kY(h.data,Yf8,6,n8);if(!h)throw new XH("Unexpectedly nonexistent GameOverEvent");b(_.gQ(h,1))})};
_.d.pause=function(){var b=this;if(!this.channel.isInitialised)return u4(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new XH("Using unregistered Game Feature: pause.");var h=Cae();return new Promise(function(y){return _.Z(function(S){if(S.nextAddress==1)return S.yield(ZcG(b.channel,h),2);y();_.g3(S)})})};
_.d.resume=function(){var b=this;if(!this.channel.isInitialised)return u4(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new XH("Using unregistered Game Feature: resume.");var h=gF8();return new Promise(function(y){return _.Z(function(S){if(S.nextAddress==1)return S.yield(ZcG(b.channel,h),2);y();_.g3(S)})})};var n$w=function(b){this.channel=b};
n$w.prototype.onReady=function(b){u4(this.channel,5).register(8,function(h){if(!_.kY(h.data,kqw,8,n8))throw new XH("Unexpectedly nonexistent PageReadyEvent");b()})};var XM8=function(b){this.channel=b};
XM8.prototype.onChange=function(b){u4(this.channel,3).register(7,function(h){h=_.kY(h.data,V2o,7,n8);if(!h)throw new XH("Unexpectedly nonexistent ScoreEvent");b(_.gQ(h,1),_.rB(h,2))})};var HcM={load:function(){throw new XH("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new XH("Storage used, but storage.onSave() listener not set!");}},u9e=function(b){this.channel=b;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},Oca=function(b){u4(b.channel,4).register(2,HcM.load).register(3,HcM.save);
b.initialSetupDone=!0};
u9e.prototype.onLoad=function(b){this.initialSetupDone||Oca(this);this.loadRegistered||(this.loadRegistered=!0,u4(this.channel,4).register(2,function(h){var y,S,F;return _.Z(function(a){if(a.nextAddress==1){y=_.kY(h.data,EFa,2,n8);if(!y)throw new XH("Unexpectedly nonexistent StorageLoad");S=_.gQ(y,1);return a.yield(b(S),2)}F=a.yieldResult;var P=h.reply,K=new Ax;var n=new pNM;n=_.kb(n,1,S);n=_.z6(n,2,_.ee(F,!1));K=_.pc(K,3,Jx,n);P.call(h,K);_.g3(a)})}))};
u9e.prototype.onSave=function(b){this.initialSetupDone||Oca(this);this.saveRegistered||(this.saveRegistered=!0,u4(this.channel,4).register(3,function(h){var y,S,F;return _.Z(function(a){if(a.nextAddress==1){y=_.kY(h.data,iA7,3,n8);if(!y)throw new XH("Unexpectedly nonexistent StorageSave");S=_.gQ(y,1);F=a8W(y.getData());return a.yield(b(S,F),2)}var P=h.reply,K=new Ax;var n=new JX5;n=_.kb(n,1,S);K=_.pc(K,4,Jx,n);P.call(h,K);_.g3(a)})}))};var Nf8=function(b){this.channel=b};
Nf8.prototype.update=function(b){if(!this.channel.features.has(6))throw new XH("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var h=new Ax,y=new ed5;b=_.U_(y,1,b);h=_.pc(h,6,Jx,b);this.channel.send(h)};
Nf8.prototype.register=function(){u4(this.channel,6)};var tPe=function(b){this.channel=b;this.userActivityLoggingIntervalMs=0};
tPe.prototype.onUserActivity=function(b,h){this.userActivityLoggingIntervalMs=h;u4(this.channel,7).register(9,function(y){if(!_.kY(y.data,fE5,9,n8))throw new XH("Unexpectedly nonexistent ClickEvent");b()})};var rxW=function(b){var h=this;this.channel=b;this.init=this.channel.init.bind(this.channel);this.page=new n$w(this.channel);this.game=new MP7(this.channel);this.audio=new o$e(this.channel);this.score=new XM8(this.channel);this.storage=new u9e(this.channel);this.style=new Nf8(this.channel);this.userActivity=new tPe(this.channel);KAP(this.channel,function(y){var S=new aFk;y=_.U_(S,1,y);y=_.V7(y,3,h.userActivity.userActivityLoggingIntervalMs);S=h.audio.isAudioEnabled();S!==void 0&&_.D9(y,2,S);S=new Ax;
return _.pc(S,5,Jx,y)})};var cxw=function(){this.timedFunctionContext=0};
cxw.prototype.timeExecution=function(b,h){var y=this;return function(){var S=_.x$.apply(0,arguments);y.timedFunctionContext=b;return h.apply(null,_.f$(S))}};var R27=function(){var b={};this.priorityTasks=(b[3]=[],b[2]=[],b[1]=[],b);this.isFlushing=!1},US=function(b,h,y){var S=z2w(b,y);
b.priorityTasks[y].push(h);S&&b.priorityTasks[y].length===1&&b.flush()},z2w=function(b,h){return Object.keys(b.priorityTasks).map(function(y){return Number(y)}).filter(function(y){return!isNaN(y)&&y>h}).every(function(y){return b.priorityTasks[y].length===0})};
R27.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(b){return b.length>0});)D97(this,3),D97(this,2),D97(this,1)}catch(b){throw Object.values(this.priorityTasks).forEach(function(h){return void h.splice(0,h.length)}),b;
}finally{this.isFlushing=!1}}};
var D97=function(b,h){for(;z2w(b,h)&&b.priorityTasks[h].length>0;)b.priorityTasks[h][0](),b.priorityTasks[h].shift()};
_.tm.Object.defineProperties(R27.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(b){return b.length>0})}}});var Z$Y={};var ILP=globalThis.trustedTypes,jsF=ILP,Ltj;var Cc=function(b){this.privateDoNotAccessOrElseWrappedResourceUrl=b};
Cc.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var BfW,WAa,Axe,U95,pMo,Jxa,e2o,CJ8;BfW=_.bm([""]);WAa=vf(["\x00"],["\\0"]);Axe=vf(["\n"],["\\n"]);U95=vf(["\x00"],["\\u0000"]);pMo=_.bm([""]);Jxa=vf(["\x00"],["\\0"]);e2o=vf(["\n"],["\\n"]);CJ8=vf(["\x00"],["\\u0000"]);_.g$5=Ktf(function(b){return b(BfW)})||Ktf(function(b){return b(WAa)})||Ktf(function(b){return b(Axe)})||Ktf(function(b){return b(U95)});
_.sRe=_.Tp(pMo)&&_.Tp(Jxa)&&_.Tp(e2o)&&_.Tp(CJ8);var wf;_.Gp=function(b,h){this.privateDoNotAccessOrElseWrappedUrl=h};
_.Gp.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.Y_G=k$("about:blank");wf=k$("about:invalid#zClosurez");var ofM=function(b){this.isValid=b},TfN=new ofM(function(b){return/^[^:]*([/?#]|$)/.test(b)}),Gpa=iJ("data"),kpP=iJ("http"),VPe=iJ("https"),E$w=iJ("ftp"),icG=iJ("mailto"),fLw=iJ("intent"),wM5=iJ("vnd.youtube"),Mwn=[Gpa,
kpP,VPe,icG,E$w,TfN],XEk=eP(function(){return typeof URL==="function"}),lLa=["data:",
"http:","https:","mailto:","ftp:"],ug8=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var bZ=function(b){this.privateDoNotAccessOrElseWrappedHtml=b};
bZ.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var ulq=eP(function(){return new bZ(ILP?ILP.emptyHTML:"")});var q_W={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"},N3q=function(b,h){var y=Error.call(this,b+" cannot be used with intent "+q_W[h]);this.message=y.message;"stack"in y&&(this.stack=y.stack);this.type=b;this.intent=h;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.z(N3q,Error);_.$f=function(b){this.privateDoNotAccessOrElseWrappedScript=b};
_.$f.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var rkN=function(b){this.privateDoNotAccessOrElseWrappedAttributePrefix=b};
rkN.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var ckN="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var HE=function(b){this.privateDoNotAccessOrElseWrappedStyleSheet=b};
HE.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var bhr=function(b){var h=_.hj("window.location.href");b==null&&(b='Unknown Error of type "null/undefined"');if(typeof b==="string")return{message:b,name:"Unknown error",lineNumber:"Not available",fileName:h,stack:"Not available"};var y=!1;try{var S=b.lineNumber||b.line||"Not available"}catch(P){S="Not available",y=!0}try{var F=b.fileName||b.filename||b.sourceURL||_.S5.$googDebugFname||h}catch(P){F="Not available",y=!0}h=x9W(b);if(!(!y&&b.lineNumber&&b.fileName&&b.stack&&b.message&&b.name)){y=b.message;
if(y==null){if(b.constructor&&b.constructor instanceof Function){if(b.constructor.name)y=b.constructor.name;else if(y=b.constructor,Oe[y])y=Oe[y];else{y=String(y);if(!Oe[y]){var a=/function\s+([^\(]+)/m.exec(y);Oe[y]=a?a[1]:"[Anonymous]"}y=Oe[y]}y='Unknown Error of type "'+y+'"'}else y="Unknown Error of unknown type";typeof b.toString==="function"&&Object.prototype.toString!==b.toString&&(y+=": "+b.toString())}return{message:y,name:b.name||"UnknownError",lineNumber:S,fileName:F,stack:h||"Not available"}}return{message:b.message,
name:b.name,lineNumber:b.lineNumber,fileName:b.fileName,stack:h}},x9W=function(b,h){h||(h={});
h[QRw(b)]=!0;var y=b.stack||"",S=b.cause;S&&!h[QRw(S)]&&(y+="\nCaused by: ",S.stack&&S.stack.indexOf(S.toString())==0||(y+=typeof S==="string"?S:S.message+"\n"),y+=x9W(S,h));b=b.errors;if(Array.isArray(b)){S=1;var F;for(F=0;F<b.length&&!(S>4);F++)h[QRw(b[F])]||(y+="\nInner error "+S++ +": ",b[F].stack&&b[F].stack.indexOf(b[F].toString())==0||(y+=typeof b[F]==="string"?b[F]:b[F].message+"\n"),y+=x9W(b[F],h));F<b.length&&(y+="\n... "+(b.length-F)+" more inner errors")}return y},QRw=function(b){var h=
"";
typeof b.toString==="function"&&(h=""+b);return h+b.stack},Oe={};var m9o,nn,PC,b$N,hha,v$a,$H,Gt,S38;m9o=function(b,h){for(var y=b.split("%s"),S="",F=Array.prototype.slice.call(arguments,1);F.length&&y.length>1;)S+=y.shift()+F.shift();return S+y.join("%s")};
_.SR=function(b){return encodeURIComponent(String(b))};
nn=function(b){return decodeURIComponent(b.replace(/\+/g," "))};
PC=function(b){NIW.test(b)&&(b.indexOf("&")!=-1&&(b=b.replace(M5P,"&amp;")),b.indexOf("<")!=-1&&(b=b.replace(nU7,"&lt;")),b.indexOf(">")!=-1&&(b=b.replace(XFM,"&gt;")),b.indexOf('"')!=-1&&(b=b.replace(H4M,"&quot;")),b.indexOf("'")!=-1&&(b=b.replace(une,"&#39;")),b.indexOf("\x00")!=-1&&(b=b.replace(O4N,"&#0;")));return b};
b$N=function(b){var h={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var y=_.S5.document.createElement("div");return b.replace(v$a,function(S,F){var a=h[S];if(a)return a;F.charAt(0)=="#"&&(F=Number("0"+F.slice(1)),isNaN(F)||(a=String.fromCharCode(F)));a||(_.M5(y,yx(S+" ")),a=y.firstChild.nodeValue.slice(0,-1));return h[S]=a})};
hha=function(b){return b.replace(/&([^;]+);/g,function(h,y){switch(y){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return y.charAt(0)!="#"||(y=Number("0"+y.slice(1)),isNaN(y))?h:String.fromCharCode(y)}})};
v$a=/&([^;\s<&]+);?/g;_.Y$q=function(b){return String(b).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.ykG=String.prototype.repeat?function(b,h){return b.repeat(h)}:function(b,h){return Array(h+1).join(b)};
_.NM=function(b,h){if(!Number.isFinite(b))return String(b);b=String(b);var y=b.indexOf(".");y===-1&&(y=b.length);var S=b[0]==="-"?"-":"";S&&(b=b.substring(1));return S+(0,_.ykG)("0",Math.max(0,h-y))+b};
$H=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.LF()).toString(36)};
Gt=function(b){for(var h=0,y=0;y<b.length;++y)h=31*h+b.charCodeAt(y)>>>0;return h};
_.nx=function(b){return String(b).replace(/\-([a-z])/g,function(h,y){return y.toUpperCase()})};
_.MQ=function(b){return String(b).replace(/([A-Z])/g,"-$1").toLowerCase()};
S38=function(b){return b.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(h,y,S){return y+S.toUpperCase()})};var Fta=function(){this.names=new Map};
Fta.prototype.getName=function(b){var h=this.names.get(b);if(h)return h;var y;h=(y=b.description)!=null?y:$H();this.names.set(b,h);return h};var aFa=function(b){var h=Error.call(this,b?b.length+" errors occurred during unsubscription:\n"+b.map(function(y,S){return S+1+") "+y.toString()}).join("\n  "):"");
this.message=h.message;"stack"in h&&(this.stack=h.stack);this.errors=b;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.z(aFa,Error);var O3=function(b){this.initialTeardown=b;this.closed=!1;this._teardowns=this._parentage=null};
_.d=O3.prototype;
_.d.unsubscribe=function(){if(!this.closed){this.closed=!0;var b=this._parentage;if(Array.isArray(b))for(var h=_.L(b),y=h.next();!y.done;y=h.next())y.value.remove(this);else b==null||b.remove(this);h=this.initialTeardown;if(uZ(h))try{h()}catch(a){var S=a instanceof aFa?a.errors:[a]}var F=this._teardowns;if(F)for(this._teardowns=null,h=_.L(F),y=h.next();!y.done;y=h.next()){y=y.value;try{uZ(y)?y():y.unsubscribe()}catch(a){y=void 0,S=(y=S)!=null?y:[],a instanceof aFa?S=[].concat(_.f$(S),_.f$(a.errors)):
S.push(a)}}if(S)throw new aFa(S);}};
_.d.add=function(b){if(b&&b!==this)if(this.closed)uZ(b)?b():b.unsubscribe();else{if(b instanceof O3){if(b.closed||b._hasParent(this))return;b._addParent(this)}var h;(this._teardowns=(h=this._teardowns)!=null?h:[]).push(b)}};
_.d._hasParent=function(b){var h=this._parentage;return h===b||Array.isArray(h)&&h.includes(b)};
_.d._addParent=function(b){var h=this._parentage;this._parentage=Array.isArray(h)?(h.push(b),h):h?[h,b]:b};
_.d._removeParent=function(b){var h=this._parentage;h===b?this._parentage=null:Array.isArray(h)&&B3f(h,b)};
_.d.remove=function(b){var h=this._teardowns;h&&B3f(h,b);b instanceof O3&&b._removeParent(this)};
var d57=new O3;d57.closed=!0;O3.JSC$9252_EMPTY=d57;var Ak8=function(){setTimeout.apply(null,_.f$(_.x$.apply(0,arguments)))};var t2=function(b){O3.call(this);this.JSC$9257_isStopped=!1;this.destination=b instanceof t2?b:new rX(!b||uZ(b)?{next:b!=null?b:void 0}:b);WtI(b)&&b.add(this)};
_.z(t2,O3);t2.JSC$9252_EMPTY=O3.JSC$9252_EMPTY;t2.create=function(b,h,y){return new cq(b,h,y)};
_.d=t2.prototype;_.d.next=function(b){this.JSC$9257_isStopped||this._next(b)};
_.d.error=function(b){this.JSC$9257_isStopped||(this.JSC$9257_isStopped=!0,this._error(b))};
_.d.complete=function(){this.JSC$9257_isStopped||(this.JSC$9257_isStopped=!0,this._complete())};
_.d.unsubscribe=function(){this.closed||(this.JSC$9257_isStopped=!0,O3.prototype.unsubscribe.call(this))};
_.d._next=function(b){this.destination.next(b)};
_.d._error=function(b){this.destination.error(b);this.unsubscribe()};
_.d._complete=function(){this.destination.complete();this.unsubscribe()};
var rX=function(b){this.partialObserver=b};
rX.prototype.next=function(b){var h=this.partialObserver;if(h.next)try{h.next(b)}catch(y){tk(y)}};
rX.prototype.error=function(b){var h=this.partialObserver;if(h.error)try{h.error(b)}catch(y){tk(y)}else tk(b)};
rX.prototype.complete=function(){var b=this.partialObserver;if(b.complete)try{b.complete()}catch(h){tk(h)}};
var cq=function(b,h,y){t2.call(this);var S;uZ(b)||!b?S={next:b!=null?b:void 0,error:h!=null?h:void 0,complete:y!=null?y:void 0}:S=b;this.destination=new rX(S)};
_.z(cq,t2);cq.JSC$9252_EMPTY=t2.JSC$9252_EMPTY;cq.create=t2.create;var DF=typeof Symbol==="function"&&Symbol.observable||"@@observable";var zH=function(b){b&&(this._subscribe=b)};
_.d=zH.prototype;_.d.lift=function(b){var h=new zH;h.source=this;h.operator=b;return h};
_.d.subscribe=function(b,h,y){b=b&&b instanceof t2||b&&uZ(b.next)&&uZ(b.error)&&uZ(b.complete)&&WtI(b)?b:new cq(b,h,y);h=this.operator;y=this.source;b.add(h?h.call(b,y):y?this._subscribe(b):this._trySubscribe(b));return b};
_.d._trySubscribe=function(b){try{return this._subscribe(b)}catch(h){b.error(h)}};
_.d.forEach=function(b,h){var y=this;h=pEq(h);return new h(function(S,F){var a=y.subscribe(function(P){try{b(P)}catch(K){F(K),a==null||a.unsubscribe()}},F,S)})};
_.d._subscribe=function(b){var h;return(h=this.source)==null?void 0:h.subscribe(b)};
zH.prototype[DF]=function(){return this};
zH.prototype.pipe=function(){var b=_.x$.apply(0,arguments);return b.length?U5F(b)(this):this};
zH.create=function(b){return new zH(b)};var jsb=function(){var b=Error.call(this,"object unsubscribed");this.message=b.message;"stack"in b&&(this.stack=b.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.z(jsb,Error);var Ia=function(){this.observers=[];this.hasError=this.JSC$9273_isStopped=this.closed=!1;this.thrownError=null};
_.z(Ia,zH);_.d=Ia.prototype;_.d.lift=function(b){var h=new Ry(this,this);h.operator=b;return h};
_.d._throwIfClosed=function(){if(this.closed)throw new jsb;};
_.d.next=function(b){this._throwIfClosed();if(!this.JSC$9273_isStopped){var h=this.observers.slice();h=_.L(h);for(var y=h.next();!y.done;y=h.next())y.value.next(b)}};
_.d.error=function(b){this._throwIfClosed();if(!this.JSC$9273_isStopped){this.hasError=this.JSC$9273_isStopped=!0;this.thrownError=b;for(var h=this.observers;h.length;)h.shift().error(b)}};
_.d.complete=function(){this._throwIfClosed();if(!this.JSC$9273_isStopped){this.JSC$9273_isStopped=!0;for(var b=this.observers;b.length;)b.shift().complete()}};
_.d.unsubscribe=function(){this.JSC$9273_isStopped=this.closed=!0;this.observers=null};
_.d._trySubscribe=function(b){this._throwIfClosed();return zH.prototype._trySubscribe.call(this,b)};
_.d._subscribe=function(b){this._throwIfClosed();this._checkFinalizedStatuses(b);return this._innerSubscribe(b)};
_.d._innerSubscribe=function(b){var h=this,y=this.JSC$9273_isStopped,S=this.observers;return this.hasError||y?O3.JSC$9252_EMPTY:(S.push(b),new O3(function(){return B3f(h.observers,b)}))};
_.d._checkFinalizedStatuses=function(b){var h=this.thrownError,y=this.JSC$9273_isStopped;this.hasError?b.error(h):y&&b.complete()};
Ia.create=function(b,h){return new Ry(b,h)};
var Ry=function(b,h){Ia.call(this);this.destination=b;this.source=h};
_.z(Ry,Ia);Ry.create=Ia.create;Ry.prototype.next=function(b){var h,y;(h=this.destination)==null||(y=h.next)==null||y.call(h,b)};
Ry.prototype.error=function(b){var h,y;(h=this.destination)==null||(y=h.error)==null||y.call(h,b)};
Ry.prototype.complete=function(){var b,h;(b=this.destination)==null||(h=b.complete)==null||h.call(b)};
Ry.prototype._subscribe=function(b){var h,y;return(y=(h=this.source)==null?void 0:h.subscribe(b))!=null?y:O3.JSC$9252_EMPTY};var aY=function(b){Ia.call(this);this._value=b};
_.z(aY,Ia);aY.create=Ia.create;aY.prototype._subscribe=function(b){var h=Ia.prototype._subscribe.call(this,b);!h.closed&&b.next(this._value);return h};
aY.prototype.getValue=function(){var b=this.thrownError,h=this._value;if(this.hasError)throw b;this._throwIfClosed();return h};
aY.prototype.next=function(b){Ia.prototype.next.call(this,this._value=b)};
_.tm.Object.defineProperties(aY.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var mt=new zH(function(b){return b.complete()});var gfF=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var kHI=function(b){return b&&typeof b.length==="number"&&typeof b!=="function"};var $5G={now:function(){return($5G.delegate||Date).now()},
delegate:void 0};var Mz=function(b,h,y){b=b===void 0?Infinity:b;h=h===void 0?Infinity:h;y=y===void 0?$5G:y;Ia.call(this);this.bufferSize=b;this.windowTime=h;this.timestampProvider=y;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=h===Infinity;this.bufferSize=Math.max(1,b);this.windowTime=Math.max(1,h)};
_.z(Mz,Ia);Mz.create=Ia.create;Mz.prototype.next=function(b){var h=this.buffer,y=this.infiniteTimeWindow,S=this.timestampProvider,F=this.windowTime;this.JSC$9273_isStopped||(h.push(b),!y&&h.push(S.now()+F));Lt7(this);Ia.prototype.next.call(this,b)};
Mz.prototype._subscribe=function(b){this._throwIfClosed();Lt7(this);for(var h=this._innerSubscribe(b),y=this.infiniteTimeWindow,S=this.buffer.slice(),F=0;F<S.length&&!b.closed;F+=y?1:2)b.next(S[F]);this._checkFinalizedStatuses(b);return h};
var Lt7=function(b){var h=b.bufferSize,y=b.timestampProvider,S=b.buffer;b=b.infiniteTimeWindow;var F=(b?1:2)*h;h<Infinity&&F<S.length&&S.splice(0,S.length-F);if(!b){h=y.now();y=0;for(b=1;b<S.length&&S[b]<=h;b+=2)y=b;y&&S.splice(0,y+1)}};var Kto=function(b,h){h=h===void 0?PZa:h;this.schedulerActionCtor=b;this.now=h};
Kto.prototype.schedule=function(b,h,y){h=h===void 0?0:h;return(new this.schedulerActionCtor(this,b)).schedule(y,h)};
var PZa=$5G.now;var Jgj=function(){var b=Error.call(this,"no elements in sequence");this.message=b.message;"stack"in b&&(this.stack=b.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.z(Jgj,Error);var kf=function(b,h,y,S,F){t2.call(this,b);this.onUnsubscribe=F;h&&(this._next=function(a){try{h(a)}catch(P){this.destination.error(P)}});
y&&(this._error=function(a){try{y(a)}catch(P){this.destination.error(P)}this.unsubscribe()});
S&&(this._complete=function(){try{S()}catch(a){this.destination.error(a)}this.unsubscribe()})};
_.z(kf,t2);kf.JSC$9252_EMPTY=t2.JSC$9252_EMPTY;kf.create=t2.create;kf.prototype.unsubscribe=function(){var b;this.closed||(b=this.onUnsubscribe)!=null&&b.call(this);t2.prototype.unsubscribe.call(this)};var KD=function(b,h){this.source=b;this.subjectFactory=h;this._subject=null;this._refCount=0;this._connection=null};
_.z(KD,zH);KD.create=zH.create;KD.prototype._subscribe=function(b){return Z$8(this).subscribe(b)};
var Z$8=function(b){var h=b._subject;if(!h||h.JSC$9273_isStopped)b._subject=b.subjectFactory();return b._subject};
KD.prototype._teardown=function(){this._refCount=0;var b=this._connection;this._subject=this._connection=null;b==null||b.unsubscribe()};
KD.prototype.connect=function(){var b=this,h=this._connection;if(!h){h=this._connection=new O3;var y=Z$8(this);h.add(this.source.subscribe(new kf(y,void 0,function(S){b._teardown();y.error(S)},function(){b._teardown();
y.complete()},function(){return b._teardown()})));
h.closed&&(this._connection=null,h=O3.JSC$9252_EMPTY)}return h};var bDq=Array.isArray;var ygj=Array.isArray,of5=Object,SSn=of5.getPrototypeOf,FQk=of5.prototype,aK5=of5.keys;var lZ=function(b,h,y){t2.call(this,b);this._next=h;this.shouldComplete=y};
_.z(lZ,t2);lZ.JSC$9252_EMPTY=t2.JSC$9252_EMPTY;lZ.create=t2.create;lZ.prototype._complete=function(){this.shouldComplete()?t2.prototype._complete.call(this):this.unsubscribe()};var MFf=["addListener","removeListener"],obf=["addEventListener","removeEventListener"],XBj=["on","off"];var zG=function(){O3.call(this)};
_.z(zG,O3);zG.JSC$9252_EMPTY=O3.JSC$9252_EMPTY;zG.prototype.schedule=function(){return this};var Mwa=function(b,h){return setInterval.apply(null,[b,h].concat(_.f$(_.x$.apply(2,arguments))))};var DS=function(b,h){O3.call(this);this.scheduler=b;this.work=h;this.pending=!1};
_.z(DS,zG);DS.JSC$9252_EMPTY=zG.JSC$9252_EMPTY;DS.prototype.schedule=function(b,h){h=h===void 0?0:h;if(this.closed)return this;this.state=b;b=this.id;var y=this.scheduler;b!=null&&(this.id=nfo(this,b,h));this.pending=!0;this.delay=h;this.id=this.id||this.requestAsyncId(y,this.id,h);return this};
DS.prototype.requestAsyncId=function(b,h,y){y=y===void 0?0:y;return Mwa(b.flush.bind(b,this),y)};
var nfo=function(b,h,y){y=y===void 0?0:y;if(y!=null&&b.delay===y&&b.pending===!1)return h;clearInterval(h)};
DS.prototype.execute=function(b,h){if(this.closed)return Error("ha");this.pending=!1;if(b=this._execute(b,h))return b;this.pending===!1&&this.id!=null&&(this.id=nfo(this,this.id,null))};
DS.prototype._execute=function(b){var h=!1;try{this.work(b)}catch(S){h=!0;var y=!!S&&S||Error(S)}if(h)return this.unsubscribe(),y};
DS.prototype.unsubscribe=function(){if(!this.closed){var b=this.id,h=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;B3f(h,this);b!=null&&(this.id=nfo(this,b,null));this.delay=null;zG.prototype.unsubscribe.call(this)}};var XEa=function(b,h){h=h===void 0?PZa:h;Kto.call(this,b,h);this.actions=[];this.active=!1;this.scheduled=void 0};
_.z(XEa,Kto);XEa.prototype.flush=function(b){var h=this.actions;if(this.active)h.push(b);else{var y;this.active=!0;do if(y=b.execute(b.state,b.delay))break;while(b=h.shift());this.active=!1;if(y){for(;b=h.shift();)b.unsubscribe();throw y;}}};var iR=new zH(N5);var HDn=Array.isArray;var Iy=function(b,h){DS.call(this,b,h);this.scheduler=b;this.work=h};
_.z(Iy,DS);Iy.JSC$9252_EMPTY=DS.JSC$9252_EMPTY;Iy.prototype.schedule=function(b,h){h=h===void 0?0:h;if(h>0)return DS.prototype.schedule.call(this,b,h);this.delay=h;this.state=b;this.scheduler.flush(this);return this};
Iy.prototype.execute=function(b,h){return h>0||this.closed?DS.prototype.execute.call(this,b,h):this._execute(b,h)};
Iy.prototype.requestAsyncId=function(b,h,y){y=y===void 0?0:y;return y!=null&&y>0||y==null&&this.delay>0?DS.prototype.requestAsyncId.call(this,b,h,y):b.flush(this)};var H$a=function(){XEa.apply(this,arguments)};
_.z(H$a,XEa);var m5N=new H$a(Iy);var ugw=function(){this.performanceMonitor=new cxw;this.queue=new R27;this.internalSymbol=Symbol();this.debugNames=new Fta};
ugw.prototype.getOnBackgrounded=function(){return iR};
_.tm.Object.defineProperties(ugw.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var Bq=function(b,h){h=Error.call(this,h?b+": "+h:String(b));this.message=h.message;"stack"in h&&(this.stack=h.stack);this.code=b;this.__proto__=Bq.prototype;this.name=String(b)};
_.z(Bq,Error);var fD=function(b){Bq.call(this,1E3,'sfr:"'+b+'"');this.measurementStrategyFailureReason=b;this.__proto__=fD.prototype};
_.z(fD,Bq);var w1=function(){Bq.call(this,1003);this.__proto__=w1.prototype};
_.z(w1,Bq);var Wq=function(){Bq.call(this,1009);this.__proto__=Wq.prototype};
_.z(Wq,Bq);var O$P=function(){Bq.call(this,1011);this.__proto__=O$P.prototype};
_.z(O$P,Bq);var N3N=function(){Bq.call(this,1007);this.__proto__=w1.prototype};
_.z(N3N,Bq);var VX=function(b){Bq.call(this,1004,String(b));this.inputObservableIndex=b;this.__proto__=VX.prototype};
_.z(VX,Bq);var baM=function(b){Bq.call(this,1010,b);this.__proto__=huj.prototype};
_.z(baM,Bq);var huj=function(b){Bq.call(this,1005,b);this.__proto__=huj.prototype};
_.z(huj,Bq);var tww=function(b){var h=_.x$.apply(1,arguments),y=this;this.orderedFactories=[];this.orderedFactories.push(b);h.forEach(function(S){y.orderedFactories.push(S)})};
tww.prototype.isSupported=function(b){return this.orderedFactories.some(function(h){return h.isSupported(b)})};
tww.prototype.makeBeacon=function(b,h){for(var y=0;y<this.orderedFactories.length;y++)if(this.orderedFactories[y].isSupported(h))return this.orderedFactories[y].makeBeacon(b,h);throw new Wq;};var Vh5=Symbol("ia"),rkW=Symbol("ja"),yX=function(b,h){this.value=b;this.timeline=h},hg=function(b,h){if(h.timeline!==b.timeline)throw new N3N;
return b.value-h.value};
_.d=yX.prototype;_.d.equals=function(b){return hg(this,b)===0};
_.d.maximum=function(b){if(b.timeline!==this.timeline)throw new N3N;return this.value>=b.value?this:b};
_.d.round=function(){return new yX(Math.round(this.value),this.timeline)};
_.d.add=function(b){return new yX(this.value+b,this.timeline)};
_.d.toString=function(){return String(this.value)};var A2=function(b,h){this.context=b;this.JSC$9379_pinger=h};
A2.prototype.isSupported=function(b){return this.JSC$9379_pinger.isSupported(b)};
A2.prototype.makeBeacon=function(b,h){if(!this.isSupported(h))throw new Wq;return new Ue(this.context,this.JSC$9379_pinger,h!=null?h:void 0,b)};
var Ue=function(b,h,y,S){var F=this;this.JSC$9385_pinger=h;this.properties=y;this.url=S;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var a;this.method=(a=y==null?void 0:y.beaconMethod)!=null?a:"GET";this.backgroundedSubscription=b.getOnBackgrounded().subscribe(function(){F.sendNow()})};
Ue.prototype.deactivate=function(){this.internalIsPending=!1};
Ue.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9385_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var b,h;this.JSC$9385_pinger.pingWithHeadersAndBody((b=this.properties)!=null?b:{},this.customHeaders,(h=this.body)!=null?h:"",this.url)}else this.JSC$9385_pinger.ping(this.url);this.internalIsPending=!1}catch(y){}else this.internalIsPending=!1};
Ue.prototype.setHeader=function(b,h){this.customHeaders.set(b,h)};
_.tm.Object.defineProperties(Ue.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var Rhw=function(){for(var b=_.L(_.x$.apply(0,arguments)),h=b.next();!h.done;h=b.next())if(h=h.value,h.available()){this.timeProvider=h;return}this.timeProvider=new ckW};
_.d=Rhw.prototype;_.d.available=function(){return this.timeProvider.available()};
_.d.now=function(){return this.timeProvider.now()};
_.d.setTimeout=function(b,h){return this.timeProvider.setTimeout(b,h)};
_.d.clearTimeout=function(b){this.timeProvider.clearTimeout(b)};
_.d.interval=function(b,h){var y=this.intervalObservable(b).subscribe(h);return function(){return void y.unsubscribe()}};
_.d.intervalObservable=function(b){return this.timeProvider.intervalObservable(b)};
_.tm.Object.defineProperties(Rhw.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var ckW=function(){this.timeline=Symbol()};
_.d=ckW.prototype;_.d.available=function(){return!1};
_.d.now=function(){return new yX(0,this.timeline)};
_.d.setTimeout=function(){return 0};
_.d.clearTimeout=function(){};
_.d.interval=function(){return function(){}};
_.d.intervalObservable=function(){return iR};var p8=function(b,h){this.intrinsicFunctionNamespace=b;this.performanceMonitor=h};
_.d=p8.prototype;_.d.setTimeout=function(b,h){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,b),h)};
_.d.clearTimeout=function(b){this.intrinsicFunctionNamespace.clearTimeout(b)};
_.d.interval=function(b,h){var y=this.intervalObservable(b).subscribe(h);return function(){return void y.unsubscribe()}};
_.d.intervalObservable=function(b){var h=this;return new zH(function(y){var S=0,F=h.intrinsicFunctionNamespace.setInterval(function(){y.next(S++)},b);
return function(){h.intrinsicFunctionNamespace.clearInterval(F)}})};
_.d.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var zh8=function(b,h){p8.call(this,b,h);this.timeline=rkW};
_.z(zh8,p8);zh8.prototype.now=function(){return new yX(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
zh8.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&p8.prototype.available.call(this)};var D5e=function(b,h){p8.call(this,b,h);this.timeline=Vh5};
_.z(D5e,p8);D5e.prototype.now=function(){return new yX(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
D5e.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&p8.prototype.available.call(this)};var B3o=function(b){this.context=b;if(IF7===void 0)a:{var h,y,S=(h=b.global)==null?void 0:(y=h.document)==null?void 0:y.createElement("meta");if(S)try{S.httpEquiv="origin-trial";S.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";b.global.document.head.append(S);IF7=S;break a}catch(F){}IF7=void 0}},
IF7;
B3o.prototype.isSupported=function(b){return IKU(this.context)!==void 0&&!(b==null||!b.endOfSession)&&!J2(this.context)&&!(b==null?0:b.attributionEnabled)&&!(b==null?0:b.customHeaders)&&!(b==null?0:b.customBody)};
B3o.prototype.makeBeacon=function(b,h){if(!this.isSupported(h))throw new Wq;return new eV(this.context,b,h)};
var eV=function(b,h,y){this.context=b;this.properties=y;this.JSC$9412_urlWithoutToken=h;var S;this.beaconMethod=(S=y==null?void 0:y.beaconMethod)!=null?S:"GET";b=IKU(this.context);if(b===void 0)throw Error();this.fetchLater=b;WtG(this,Akw(this))},WtG=function(b,h){b.beaconResult&&b.beaconResult.activated||(b.beaconAbort=new AbortController,b.beaconResult=b.fetchLater(h,{method:b.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:b.beaconAbort.signal,activateAfter:96E4}))},Akw=function(b){b=b.JSC$9412_urlWithoutToken;
return(b.slice(-1)[0]==="&"?b:b+"&")+"flapi=1"};
eV.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
eV.prototype.sendNow=function(){};
eV.prototype.setHeader=function(){};
_.tm.Object.defineProperties(eV.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9412_urlWithoutToken},
set:function(b){this.JSC$9412_urlWithoutToken=b;b=Akw(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);WtG(this,b)}},
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 U5b=function(b){this.context=b};
U5b.prototype.isSupported=function(){return!J2(this.context)&&!!this.context.global.fetch};
U5b.prototype.ping=function(){var b=this;return vE.apply(null,_.f$(_.x$.apply(0,arguments).map(function(h){return BE(b.context.global.fetch(h,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(iZ(function(y){return y.status===200}))}))).pipe(eXF(function(h){return h}),gb5())};
U5b.prototype.pingWithHeadersAndBody=function(b,h,y){for(var S=_.x$.apply(3,arguments),F=this,a=new Headers,P=_.L(h.entries()),K=P.next();!K.done;K=P.next()){var n=_.L(K.value);K=n.next().value;n=n.next().value;a.set(K,n)}var X,u=(X=b.keepAlive)!=null?X:!1;vE.apply(null,_.f$(S.map(function(O){return BE(F.context.global.fetch(O,Object.assign({},{method:String(b.beaconMethod),cache:"no-cache"},u?{keepalive:!0}:{},{mode:"no-cors",headers:a,body:y}))).pipe(iZ(function(N){return N.status===200}))}))).pipe(eXF(function(O){return O}),
gb5())};var pEN,NYU,JkN;_.C8=function(){};
_.e5=function(b){return b};
pEN=function(b){var h=h||0;return function(){return b.apply(this,Array.prototype.slice.call(arguments,0,h))}};
_.gX=function(b){var h=!1,y;return function(){h||(y=b(),h=!0);return y}};
_.se=function(b,h){var y=0;return function(S){_.S5.clearTimeout(y);var F=arguments;y=_.S5.setTimeout(function(){b.apply(void 0,F)},h)}};
NYU=function(b,h){var y=0,S=!1,F=[],a=function(){y=0;S&&(S=!1,P())},P=function(){y=_.S5.setTimeout(a,h);
var K=F;F=[];b.apply(void 0,K)};
return function(K){F=arguments;y?S=!0:P()}};
JkN=function(b,h){var y=0,S=function(){y=0};
return function(F){y||(y=_.S5.setTimeout(S,h),b.apply(void 0,arguments))}};var CZa=function(){return uf&&tY?tY.mobile:!ehP()&&(rI("iPod")||rI("iPhone")||rI("Android")||rI("IEMobile"))},ehP=function(){return uf&&tY?!tY.mobile&&(rI("iPad")||rI("Android")||rI("Silk")):rI("iPad")||rI("Android")&&!rI("Mobile")||rI("Silk")};var YB=function(b,h,y,S,F){this.allowedElements=b;this.elementPolicies=h;this.allowedGlobalAttributes=y;this.globalAttributePolicies=S;this.globallyAllowedAttributePrefixes=F},gfb=function(b,h,y){y=b.elementPolicies.get(y);
return(y==null?0:y.has(h))?y.get(h):b.allowedGlobalAttributes.has(h)?{policyAction:1}:(y=b.globalAttributePolicies.get(h))?y:b.globallyAllowedAttributePrefixes&&[].concat(_.f$(b.globallyAllowedAttributePrefixes)).some(function(S){return h.indexOf(S)===0})?{policyAction:1}:{policyAction:0}};var ssN="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(" "),
Y3N=[["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}]])]],T3a="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(" "),
GHM=[["dir",{policyAction:3,conditions:eP(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:eP(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:eP(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:eP(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],kHG=new YB(new Set(ssN),new Map(Y3N),new Set(T3a),new Map(GHM)),Vww=new YB(new Set(ssN.concat(["BUTTON",
"INPUT"])),new Map(Y3N),new Set(eP(function(){return T3a.concat(["class","id","name"])})),new Map(eP(function(){return GHM.concat([["style",
{policyAction:1}]])})));var Ef7,i$5,wEw;Ef7=function(b,h,y,S,F){this.JSC$9469_sanitizerTable=b;this.styleElementSanitizer=h;this.styleAttributeSanitizer=y;this.JSC$9469_resourceUrlPolicy=S;this.JSC$9469_navigationUrlPolicy=F;this.changes=[]};
_.fFP=function(b,h){var y=document.implementation.createHTMLDocument("");b=i$5(b,h,y);y=y.body;y.appendChild(b);y=(new XMLSerializer).serializeToString(y);y=y.slice(y.indexOf(">")+1,y.lastIndexOf("</"));return yx(y)};
i$5=function(b,h,y){h=wBf(h,y);h=document.createTreeWalker(h,5,function(K){if(K.nodeType===3)K=1;else if(qSj(K))if(K=lKI(K),K===null)K=2;else{var n=b.JSC$9469_sanitizerTable;K=K!=="FORM"&&(n.allowedElements.has(K)||n.elementPolicies.has(K))?1:2}else K=2;return K});
for(var S=h.nextNode(),F=y.createDocumentFragment(),a=F;S!==null;){var P=void 0;if(S.nodeType===3)b.styleElementSanitizer&&a.nodeName==="STYLE"?(S=b.styleElementSanitizer(S.data),P=b.createTextNode(S)):P=b.createTextNode(S.data);else if(qSj(S))P=wEw(b,S,y);else throw Error("Z");a.appendChild(P);if(S=h.firstChild())a=P;else for(;!(S=h.nextSibling())&&(S=h.parentNode());)a=a.parentNode}return F};
Ef7.prototype.createTextNode=function(b){return document.createTextNode(b)};
wEw=function(b,h,y){var S,F=lKI(h);y=y.createElement(F);h=h.attributes;for(var a=_.L(h),P=a.next();!P.done;P=a.next()){var K=P.value;P=K.name;K=K.value;var n=gfb(b.JSC$9469_sanitizerTable,P,F);a:{if(S=n.conditions){S=_.L(S);for(var X=S.next();!X.done;X=S.next()){var u=_.L(X.value);X=u.next().value;u=u.next().value;var O=void 0;if((X=(O=h.getNamedItem(X))==null?void 0:O.value)&&!u.has(X)){S=!1;break a}}}S=!0}if(S)switch(n.policyAction){case 1:cB(y,P,K);break;case 2:throw Error();case 3:cB(y,P,K.toLowerCase());
break;case 4:b.styleAttributeSanitizer?(K=b.styleAttributeSanitizer(K),cB(y,P,K)):cB(y,P,K);break;case 5:b.JSC$9469_resourceUrlPolicy?(n={type:2,attributeName:P,elementName:F},K=fKy(K),(K=b.JSC$9469_resourceUrlPolicy(K,n))&&cB(y,P,K.toString())):cB(y,P,K);break;case 6:if(b.JSC$9469_resourceUrlPolicy){n={type:2,attributeName:P,elementName:F};S=[];K=_.L(K.split(","));for(X=K.next();!X.done;X=K.next())u=_.L(X.value.trim().split(/\s+/,2)),X=u.next().value,u=u.next().value,S.push({url:X,descriptor:u});
K={parts:[]};S=_.L(S);for(X=S.next();!X.done;X=S.next())X=X.value,u=fKy(X.url),(u=b.JSC$9469_resourceUrlPolicy(u,n))&&K.parts.push({url:u.toString(),descriptor:X.descriptor});cB(y,P,xzI(K))}else cB(y,P,K);break;case 7:n=K;if(b.JSC$9469_navigationUrlPolicy){n={type:2,attributeName:P,elementName:F};K=fKy(K);K=b.JSC$9469_navigationUrlPolicy(K,n);if(K===null)break;n=K.toString()}K=n;n=_.H$n(K);n=n!==void 0&&lLa.indexOf(n.toLowerCase())!==-1?K:"about:invalid#zClosurez";cB(y,P,n)}}return y};
_.lFW=eP(function(){return new Ef7(kHG)});
_.q3b=eP(function(){return new Ef7(Vww)});var x5G=function(){this.calledBuild=!1;this.JSC$9481_sanitizerTable=kHG},Qs5=function(){x5G.apply(this,arguments)};
_.z(Qs5,x5G);Qs5.prototype.build=function(){if(this.calledBuild)throw Error("la");this.calledBuild=!0;return new Ef7(this.JSC$9481_sanitizerTable,void 0,void 0,this.JSC$9481_resourceUrlPolicy,this.JSC$9481_navigationUrlPolicy)};var m5W=/[^#]*/;var T1F={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"},vfM=_.gX(function(){return kPI()}),
hX7=function(){var b=bDN("IFRAME"),h={};
_.FS(vfM(),function(y){b.sandbox&&b.sandbox.supports&&b.sandbox.supports(y)&&(h[y]=!0)});
return h},bDN=function(b,h){h=h===void 0?document:h;
return h.createElement(String(b).toLowerCase())};var TG;_.Y7=function(b,h,y){return Math.min(Math.max(b,h),y)};
TG=function(b,h,y){return b+y*(h-b)};_.xb=function(b,h){this.x=b!==void 0?b:0;this.y=h!==void 0?h:0};
_.d=_.xb.prototype;_.d.clone=function(){return new _.xb(this.x,this.y)};
_.d.equals=function(b){return b instanceof _.xb&&(this==b?!0:this&&b?this.x==b.x&&this.y==b.y:!1)};
_.d.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.d.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.d.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.d.translate=function(b,h){b instanceof _.xb?(this.x+=b.x,this.y+=b.y):(this.x+=Number(b),typeof h==="number"&&(this.y+=h));return this};
_.d.scale=function(b,h){this.x*=b;this.y*=typeof h==="number"?h:b;return this};_.g1=function(b,h){this.width=b;this.height=h};
_.d=_.g1.prototype;_.d.clone=function(){return new _.g1(this.width,this.height)};
_.d.area=function(){return this.width*this.height};
_.d.aspectRatio=function(){return this.width/this.height};
_.d.isEmpty=function(){return!this.area()};
_.d.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.d.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.d.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.d.scale=function(b,h){this.width*=b;this.height*=typeof h==="number"?h:b;return this};var yg7;_.lR={};yg7="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.lR.add=function(b,h,y){if(b!==null&&h in b)throw Error("na`"+h);b[h]=y};
_.lR.clear=function(b){for(var h in b)delete b[h]};
_.lR.clone=function(b){var h={},y;for(y in b)h[y]=b[y];return h};
_.lR.contains=function(b,h){return h9U(b,h)};
_.lR.containsKey=function(b,h){return b!==null&&h in b};
_.lR.containsValue=h9U;_.lR.create=FnF;_.lR.createImmutableView=function(b){var h=b;Object.isFrozen&&!Object.isFrozen(b)&&(h=Object.create(b),Object.freeze(h));return h};
_.lR.createSet=a9I;_.lR.equals=function(b,h){for(var y in b)if(!(y in h)||b[y]!==h[y])return!1;for(var S in h)if(!(S in b))return!1;return!0};
_.lR.every=function(b,h,y){for(var S in b)if(!h.call(y,b[S],S,b))return!1;return!0};
_.lR.extend=function(b,h){for(var y,S,F=1;F<arguments.length;F++){S=arguments[F];for(y in S)b[y]=S[y];for(var a=0;a<yg7.length;a++)y=yg7[a],Object.prototype.hasOwnProperty.call(S,y)&&(b[y]=S[y])}};
_.lR.filter=function(b,h,y){var S={},F;for(F in b)h.call(y,b[F],F,b)&&(S[F]=b[F]);return S};
_.lR.findKey=yW8;_.lR.findValue=function(b,h,y){return(h=yW8(b,h,y))&&b[h]};
_.lR.forEach=function(b,h,y){for(var S in b)h.call(y,b[S],S,b)};
_.lR.get=function(b,h,y){return b!==null&&h in b?b[h]:y};
_.lR.getAllPropertyNames=function(b,h,y){if(!b)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return bq5(b);for(var S={};b&&(b!==Object.prototype||h)&&(b!==Function.prototype||y);){for(var F=Object.getOwnPropertyNames(b),a=0;a<F.length;a++)S[F[a]]=!0;b=Object.getPrototypeOf(b)}return bq5(S)};
_.lR.getAnyKey=function(b){for(var h in b)return h};
_.lR.getAnyValue=function(b){for(var h in b)return b[h]};
_.lR.getCount=function(b){var h=0,y;for(y in b)h++;return h};
_.lR.getKeys=bq5;_.lR.getSuperClass=function(b){return(b=Object.getPrototypeOf(b.prototype))&&b.constructor};
_.lR.getValueByKeys=function(b,h){var y=_.f4(h),S=y?h:arguments;for(y=y?0:1;y<S.length;y++){if(b==null)return;b=b[S[y]]}return b};
_.lR.getValues=function(b){var h=[],y=0,S;for(S in b)h[y++]=b[S];return h};
_.lR.isEmpty=function(b){for(var h in b)return!1;return!0};
_.lR.isImmutableView=function(b){return!!Object.isFrozen&&Object.isFrozen(b)};
_.lR.map=function(b,h,y){var S={},F;for(F in b)S[F]=h.call(y,b[F],F,b);return S};
_.lR.remove=function(b,h){var y;(y=h in b)&&delete b[h];return y};
_.lR.set=function(b,h,y){b[h]=y};
_.lR.setIfUndefined=function(b,h,y){return h in b?b[h]:b[h]=y};
_.lR.setWithReturnValueIfNotSet=function(b,h,y){if(h in b)return b[h];y=y();return b[h]=y};
_.lR.some=function(b,h,y){for(var S in b)if(h.call(y,b[S],S,b))return!0;return!1};
_.lR.transpose=function(b){var h={},y;for(y in b)h[b[y]]=y;return h};
_.lR.unsafeClone=SDM;var hR=function(b,h){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=b===SFr&&h||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=SSa};
hR.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var FQa=function(b){return b instanceof hR&&b.constructor===hR&&b.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===SSa?b.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},SSa={},SFr={};
new hR(SFr,"");var GP,T$,kB,aKe,$zW,ja8,QX,PRa,ZDw,KQW,f8,obo,N1a,ODo,uXa,tFo,rge,cga,RXG,tj5,zXa,IKW,B1W,Dz8,GG;GP=function(b){return b?new GG(_.mQ(b)):LM7||(LM7=new GG)};
_.FQ=function(b,h){return typeof h==="string"?b.getElementById(h):h};
T$=function(b,h){return(h||document).getElementsByTagName(String(b))};
_.dz8=function(b){return aKe("yt-formatted-string","paper-input-input",b)};
kB=function(b,h,y,S){b=S||b;return(h=h&&h!="*"?String(h).toUpperCase():"")||y?b.querySelectorAll(h+(y?"."+y:"")):b.getElementsByTagName("*")};
aKe=function(b,h,y){var S=document,F=b&&b!="*"?String(b).toUpperCase():"";return F||h?(y||S).querySelector(F+(h?"."+h:"")):kB(S,b,h,y)[0]||null};
$zW=function(b,h){_.lR.forEach(h,function(y,S){S=="style"?b.style.cssText=y:S=="class"?b.className=y:S=="for"?b.htmlFor=y:ja8.hasOwnProperty(S)?b.setAttribute(ja8[S],y):_.aq(S,"aria-")||_.aq(S,"data-")?b.setAttribute(S,y):b[S]=y})};
ja8={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"};_.sS=function(b){b=(b||window).document;b=b.compatMode=="CSS1Compat"?b.documentElement:b.body;return new _.g1(b.clientWidth,b.clientHeight)};
_.LQW=function(b){var h=_.Vw(b);b=b.defaultView;return new _.xb((b==null?void 0:b.pageXOffset)||h.scrollLeft,(b==null?void 0:b.pageYOffset)||h.scrollTop)};
_.Vw=function(b){return b.scrollingElement?b.scrollingElement:_.Hv||b.compatMode!="CSS1Compat"?b.body||b.documentElement:b.documentElement};
QX=function(b){return b?b.defaultView:window};
_.Ee=function(b,h,y){return PRa(document,arguments)};
PRa=function(b,h){var y=h[1],S=KQW(b,String(h[0]));y&&(typeof y==="string"?S.className=y:Array.isArray(y)?S.className=y.join(" "):$zW(S,y));h.length>2&&ZDw(b,S,h,2);return S};
ZDw=function(b,h,y,S){function F(K){K&&h.appendChild(typeof K==="string"?b.createTextNode(K):K)}
for(;S<y.length;S++){var a=y[S];if(!_.f4(a)||_.lf(a)&&a.nodeType>0)F(a);else{a:{if(a&&typeof a.length=="number"){if(_.lf(a)){var P=typeof a.item=="function"||typeof a.item=="string";break a}if(typeof a==="function"){P=typeof a.item=="function";break a}}P=!1}_.FS(P?_.Ej(a):a,F)}}};
_.gB=function(b){return KQW(document,b)};
KQW=function(b,h){h=String(h);b.contentType==="application/xhtml+xml"&&(h=h.toLowerCase());return b.createElement(h)};
_.i4=function(){return document.createTextNode("\n")};
f8=function(b){if(b.nodeType!=1)return!1;switch(b.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};
obo=function(b,h){ZDw(_.mQ(b),b,arguments,1)};
_.wX=function(b){for(var h;h=b.firstChild;)b.removeChild(h)};
_.l4=function(b,h){h.parentNode&&h.parentNode.insertBefore(b,h)};
_.qM=function(b,h){h.parentNode&&h.parentNode.insertBefore(b,h.nextSibling)};
_.sD=function(b){return b&&b.parentNode?b.parentNode.removeChild(b):null};
_.MFo=function(b,h){var y=h.parentNode;y&&y.replaceChild(b,h)};
_.nbo=function(b){var h,y=b.parentNode;if(y&&y.nodeType!=11)if(b.removeNode)b.removeNode(!1);else{for(;h=b.firstChild;)y.insertBefore(h,b);_.sD(b)}};
_.xB=function(b){return b.children!=void 0?b.children:Array.prototype.filter.call(b.childNodes,function(h){return h.nodeType==1})};
_.HDa=function(b){return b.nextElementSibling!==void 0?b.nextElementSibling:_.XB7(b.nextSibling,!0)};
_.XB7=function(b,h){for(;b&&b.nodeType!=1;)b=h?b.nextSibling:b.previousSibling;return b};
_.nK=function(b){return _.lf(b)&&b.nodeType==1};
_.ds=function(b,h){if(!b||!h)return!1;if(b.contains&&h.nodeType==1)return b==h||b.contains(h);if(typeof b.compareDocumentPosition!="undefined")return b==h||!!(b.compareDocumentPosition(h)&16);for(;h&&b!=h;)h=h.parentNode;return h==b};
N1a=function(b,h){if(b==h)return 0;if(b.compareDocumentPosition)return b.compareDocumentPosition(h)&2?1:-1;if("sourceIndex"in b||b.parentNode&&"sourceIndex"in b.parentNode){var y=b.nodeType==1,S=h.nodeType==1;if(y&&S)return b.sourceIndex-h.sourceIndex;var F=b.parentNode,a=h.parentNode;return F==a?uXa(b,h):!y&&_.ds(F,h)?-1*ODo(b,h):!S&&_.ds(a,b)?ODo(h,b):(y?b.sourceIndex:F.sourceIndex)-(S?h.sourceIndex:a.sourceIndex)}S=_.mQ(b);y=S.createRange();y.selectNode(b);y.collapse(!0);b=S.createRange();b.selectNode(h);
b.collapse(!0);return y.compareBoundaryPoints(_.S5.Range.START_TO_END,b)};
ODo=function(b,h){var y=b.parentNode;if(y==h)return-1;for(;h.parentNode!=y;)h=h.parentNode;return uXa(h,b)};
uXa=function(b,h){for(;h=h.previousSibling;)if(h==b)return-1;return 1};
tFo=function(b){var h,y=arguments.length;if(!y)return null;if(y==1)return arguments[0];var S=[],F=Infinity;for(h=0;h<y;h++){for(var a=[],P=arguments[h];P;)a.unshift(P),P=P.parentNode;S.push(a);F=Math.min(F,a.length)}a=null;for(h=0;h<F;h++){P=S[0][h];for(var K=1;K<y;K++)if(P!=S[K][h])return a;a=P}return a};
_.mQ=function(b){return b.nodeType==9?b:b.ownerDocument||b.document};
rge=function(b){return b.contentDocument||b.contentWindow.document};
_.Qw=function(b,h){if("textContent"in b)b.textContent=h;else if(b.nodeType==3)b.data=String(h);else if(b.firstChild&&b.firstChild.nodeType==3){for(;b.lastChild!=b.firstChild;)b.removeChild(b.lastChild);b.firstChild.data=String(h)}else _.wX(b),b.appendChild(_.mQ(b).createTextNode(String(h)))};
cga={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};RXG={IMG:" ",BR:"\n"};tj5=function(b){var h;b.tagName=="A"&&b.hasAttribute("href")||b.tagName=="INPUT"||b.tagName=="TEXTAREA"||b.tagName=="SELECT"||b.tagName=="BUTTON"?h=!b.disabled&&(!b.hasAttribute("tabindex")||zXa(b)):h=b.hasAttribute("tabindex")&&zXa(b);return h};
zXa=function(b){b=b.tabIndex;return typeof b==="number"&&b>=0&&b<32768};
IKW=function(b){var h=[];Dz8(b,h,!0);b=h.join("");b=b.replace(/ \xAD /g," ").replace(/\xAD/g,"");b=b.replace(/\u200B/g,"");b=b.replace(/ +/g," ");b!=" "&&(b=b.replace(/^\s*/,""));return b};
B1W=function(b){var h=[];Dz8(b,h,!1);return h.join("")};
Dz8=function(b,h,y){if(!(b.nodeName in cga))if(b.nodeType==3)y?h.push(String(b.nodeValue).replace(/(\r\n|\r|\n)/g,"")):h.push(b.nodeValue);else if(b.nodeName in RXG)h.push(RXG[b.nodeName]);else for(b=b.firstChild;b;)Dz8(b,h,y),b=b.nextSibling};
_.WQ8=function(b,h,y){if(!h&&!y)return null;var S=h?String(h).toUpperCase():null;return _.b5(b,function(F){return(!S||F.nodeName==S)&&(!y||typeof F.className==="string"&&_.sj(F.className.split(/\s+/),y))},!0)};
_.b5=function(b,h,y){b&&!y&&(b=b.parentNode);for(y=0;b;){if(h(b))return b;b=b.parentNode;y++}return null};
GG=function(b){this.JSC$9509_document_=b||_.S5.document||document};
_.d=GG.prototype;_.d.getElement=function(b){return _.FQ(this.JSC$9509_document_,b)};
_.d.$=GG.prototype.getElement;_.d.getElementsByTagName=function(b,h){return(h||this.JSC$9509_document_).getElementsByTagName(String(b))};
_.d.getElementsByTagNameAndClass=function(b,h,y){return kB(this.JSC$9509_document_,b,h,y)};
_.d.$$=GG.prototype.getElementsByTagNameAndClass;_.d.setProperties=$zW;_.d.JSC$9511_createDom=function(b,h,y){return PRa(this.JSC$9509_document_,arguments)};
_.d.createElement=function(b){return KQW(this.JSC$9509_document_,b)};
_.d.createTextNode=function(b){return this.JSC$9509_document_.createTextNode(String(b))};
_.d.getWindow=function(){return this.JSC$9509_document_.defaultView};
var TP=function(b){return _.LQW(b.JSC$9509_document_)};
_.d=GG.prototype;_.d.appendChild=function(b,h){b.appendChild(h)};
_.d.append=obo;_.d.canHaveChildren=f8;_.d.removeNode=_.sD;_.d.getChildren=_.xB;_.d.contains=_.ds;_.d.isFocusable=tj5;_.d=DK.prototype;_.d.getWidth=function(){return this.right-this.left};
_.d.getHeight=function(){return this.bottom-this.top};
_.d.clone=function(){return new DK(this.top,this.right,this.bottom,this.left)};
_.d.contains=function(b){return this&&b?b instanceof DK?b.left>=this.left&&b.right<=this.right&&b.top>=this.top&&b.bottom<=this.bottom:b.x>=this.left&&b.x<=this.right&&b.y>=this.top&&b.y<=this.bottom:!1};
_.d.expand=function(b,h,y,S){_.lf(b)?(this.top-=b.top,this.right+=b.right,this.bottom+=b.bottom,this.left-=b.left):(this.top-=b,this.right+=Number(h),this.bottom+=Number(y),this.left-=Number(S));return this};
_.d.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};
_.d.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};
_.d.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};
_.d.translate=function(b,h){b instanceof _.xb?(this.left+=b.x,this.right+=b.x,this.top+=b.y,this.bottom+=b.y):(this.left+=b,this.right+=b,typeof h==="number"&&(this.top+=h,this.bottom+=h));return this};
_.d.scale=function(b,h){h=typeof h==="number"?h:b;this.left*=b;this.right*=b;this.top*=h;this.bottom*=h;return this};var mL=function(b,h,y,S){this.left=b;this.top=h;this.width=y;this.height=S};
_.d=mL.prototype;_.d.clone=function(){return new mL(this.left,this.top,this.width,this.height)};
_.d.boundingRect=function(b){var h=Math.max(this.left+this.width,b.left+b.width),y=Math.max(this.top+this.height,b.top+b.height);this.left=Math.min(this.left,b.left);this.top=Math.min(this.top,b.top);this.width=h-this.left;this.height=y-this.top};
_.d.contains=function(b){return b instanceof _.xb?b.x>=this.left&&b.x<=this.left+this.width&&b.y>=this.top&&b.y<=this.top+this.height:this.left<=b.left&&this.left+this.width>=b.left+b.width&&this.top<=b.top&&this.top+this.height>=b.top+b.height};
_.d.distance=function(b){var h=b.x<this.left?this.left-b.x:Math.max(b.x-(this.left+this.width),0);b=b.y<this.top?this.top-b.y:Math.max(b.y-(this.top+this.height),0);return Math.sqrt(h*h+b*b)};
_.d.getSize=function(){return new _.g1(this.width,this.height)};
_.d.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};
_.d.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};
_.d.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};
_.d.translate=function(b,h){b instanceof _.xb?(this.left+=b.x,this.top+=b.y):(this.left+=b,typeof h==="number"&&(this.top+=h));return this};
_.d.scale=function(b,h){h=typeof h==="number"?h:b;this.left*=b;this.width*=b;this.top*=h;this.height*=h;return this};var Uzo,hU,Ark,be,CR8,eXb,gbe,DMI,sa8,T1b;_.vq=function(b,h,y){if(typeof h==="string")(h=_.AgN(b,h))&&(b.style[h]=y);else for(var S in h){y=b;var F=h[S],a=_.AgN(y,S);a&&(y.style[a]=F)}};
Uzo={};_.AgN=function(b,h){var y=Uzo[h];if(!y){var S=_.nx(h);y=S;b.style[S]===void 0&&(S=(_.Hv?"Webkit":_.XW?"Moz":null)+S38(S),b.style[S]!==void 0&&(y=S));Uzo[h]=y}return y};
_.or=function(b,h){var y=_.mQ(b);return y.defaultView&&y.defaultView.getComputedStyle&&(b=y.defaultView.getComputedStyle(b,null))?b[h]||b.getPropertyValue(h)||"":""};
_.a4=function(b,h){return _.or(b,h)||(b.currentStyle?b.currentStyle[h]:null)||b.style&&b.style[h]};
_.pBo=function(b){return _.a4(b,"position")};
hU=function(b,h,y){if(h instanceof _.xb){var S=h.x;h=h.y}else S=h,h=y;b.style.left=be(S,!1);b.style.top=be(h,!1)};
Ark=function(b){try{return b.getBoundingClientRect()}catch(h){return{left:0,top:0,right:0,bottom:0}}};
_.vB=function(b){var h=_.mQ(b),y=new _.xb(0,0);if(b==(h?_.mQ(h):document).documentElement)return y;b=Ark(b);h=TP(GP(h));y.x=b.left+h.x;y.y=b.top+h.y;return y};
_.Jg7=function(b,h,y){if(h instanceof _.g1)y=h.height,h=h.width;else if(y==void 0)throw Error("oa");b.style.width=be(h,!0);b.style.height=be(y,!0)};
be=function(b,h){typeof b=="number"&&(b=(h?Math.round(b):b)+"px");return b};
CR8=function(b){return eXb(b)};
eXb=function(b){var h=gbe;if(_.a4(b,"display")!="none")return h(b);var y=b.style,S=y.display,F=y.visibility,a=y.position;y.visibility="hidden";y.position="absolute";y.display="inline";b=h(b);y.display=S;y.position=a;y.visibility=F;return b};
gbe=function(b){var h=b.offsetWidth,y=b.offsetHeight,S=_.Hv&&!h&&!y;return(h===void 0||S)&&b.getBoundingClientRect?(b=Ark(b),new _.g1(b.right-b.left,b.bottom-b.top)):new _.g1(h,y)};
DMI=function(b){var h=_.vB(b);b=eXb(b);return new mL(h.x,h.y,b.width,b.height)};
sa8=function(b,h){b=b.style;"opacity"in b?b.opacity=h:"MozOpacity"in b?b.MozOpacity=h:"filter"in b&&(b.filter=h===""?"":"alpha(opacity="+Number(h)*100+")")};
_.ZC=function(b,h){b.style.display=h?"":"none"};
_.YSa=function(b){return"rtl"==_.a4(b,"direction")};
T1b=function(b){var h=_.or(b,"marginLeft"),y=_.or(b,"marginRight"),S=_.or(b,"marginTop");b=_.or(b,"marginBottom");return new DK(parseFloat(S),parseFloat(y),parseFloat(b),parseFloat(h))};
_.GPw=function(b){var h=_.or(b,"borderLeftWidth"),y=_.or(b,"borderRightWidth"),S=_.or(b,"borderTopWidth");b=_.or(b,"borderBottomWidth");return new DK(parseFloat(S),parseFloat(y),parseFloat(b),parseFloat(h))};var y4=function(b){this.context=b};
y4.prototype.isSupported=function(b){return(b==null?0:b.attributionEnabled)||(b==null?void 0:b.beaconMethod)==="POST"||(b==null?0:b.customHeaders)||(b==null?0:b.customBody)||(b==null?0:b.keepAlive)?!1:!J2(this.context)};
y4.prototype.ping=function(){var b=this;return Yf(_.x$.apply(0,arguments).map(function(h){try{var y=b.context.global,S=!1;S=S===void 0?!1:S;y.google_image_requests||(y.google_image_requests=[]);var F=bDN("IMG",y.document);S&&(F.attributionSrc="");F.src=h;y.google_image_requests.push(F);return!0}catch(a){return!1}}).every(function(h){return h}))};
y4.prototype.pingWithHeadersAndBody=function(b,h,y){this.ping.apply(this,_.f$(_.x$.apply(3,arguments)))};var kPG=function(b){this.context=b};
kPG.prototype.isSupported=function(b){return VF5&&!J2(this.context)&&dKk(this.context)!==void 0&&!(b==null?0:b.attributionEnabled)&&(b==null?void 0:b.beaconMethod)!=="POST"&&!(b==null?0:b.customHeaders)&&!(b==null?0:b.customBody)};
kPG.prototype.makeBeacon=function(b,h){if(!this.isSupported(h))throw new Wq;return new SW(this.context,b)};
var VF5=!1,SW=function(b,h){this.context=b;this.JSC$9530_urlWithoutToken=h;b=dKk(this.context);if(b===void 0)throw Error();this.wrappedBeacon=new b(EbW(this),{})},EbW=function(b){b=b.JSC$9530_urlWithoutToken;
return(b.slice(-1)[0]==="&"?b:b+"&")+"pbapi=1"};
SW.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
SW.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
SW.prototype.setHeader=function(){};
_.tm.Object.defineProperties(SW.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9530_urlWithoutToken},
set:function(b){this.JSC$9530_urlWithoutToken=b;this.wrappedBeacon.setURL(EbW(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(b){if(b!=="GET")throw new Wq;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var iD5=function(b){this.context=b};
iD5.prototype.isSupported=function(b){if((b==null?0:b.attributionEnabled)||(b==null?void 0:b.beaconMethod)==="GET"||(b==null?0:b.customHeaders)||(b==null?0:b.customBody)||(b==null?0:b.keepAlive))return!1;var h;return!J2(this.context)&&((h=this.context.global.navigator)==null?void 0:h.sendBeacon)!==void 0};
iD5.prototype.ping=function(){var b=this;return Yf(_.x$.apply(0,arguments).map(function(h){var y;return(y=b.context.global.navigator)==null?void 0:y.sendBeacon(h)}).every(function(h){return h}))};
iD5.prototype.pingWithHeadersAndBody=function(b,h,y){this.ping.apply(this,_.f$(_.x$.apply(3,arguments)))};var pD=function(b){this.value=b},Kq=function(b,h){return Yf(b.value).pipe(Ag(h))},oY=new pD(!1),VYf=new pD(!0);var hW=function(b){this.value=b;this.releasedSubject=new Ia};
hW.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.tm.Object.defineProperties(hW.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9543_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var Oqf=["FRAME","IMG","IFRAME"],oTN=/^[01](px)?$/,uRI=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},Hqn=function(){var b=new uRI;
b.crossDomainLoadedDefault=!0;b.pendingImagesBlockLoad=!0;return b};var fKP=function(b,h){var y=DKN(b);if(y)if(y.onCreativeLoad)y.onCreativeLoad(h);else{var S=h?[h]:[],F=function(a){for(var P=0;P<S.length;++P)try{S[P](1,a)}catch(K){}S={push:function(K){K(1,a)}}};
y.onCreativeLoad=function(a){S.push(a)};
y.setAttribute("data-creative-load-listener","");y.addEventListener("creativeLoad",function(a){F(a.detail)});
_.S5.addEventListener("message",function(a){z9n(y,F,a)})}};var F0=function(b,h){var y=this;this.global=b;this.parentContext=h;this.JSC$9554_onVisibilityChange=this.document?vE(Yf(!0),Qx(this.document,"visibilitychange")).pipe(SF(this.parentContext.performanceMonitor,748),iZ(function(){return y.getVisibilityState()}),$b()):Yf("visible");
this.document?Qx(this.document,"DOMContentLoaded").pipe(SF(this.parentContext.performanceMonitor,739),jF(1)):Yf(Kn4("DOMContentLoaded"))},kwj=function(b){return b.document!==null&&b.document.visibilityState!==void 0};
F0.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
F0.prototype.querySelector=function(b){return this.document?this.document.querySelector(b):null};
F0.prototype.querySelectorAll=function(b){return this.document?_.Ej(this.document.querySelectorAll(b)):[]};
F0.prototype.elementFromPoint=function(b,h){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;b=this.document.elementFromPoint(b,h);return b===null?null:new hW(b)};
var AiI=function(b,h,y){y=y===void 0?!1:y;if(h.ref===void 0||!b.document)return Yf(h).pipe(SF(b.parentContext.performanceMonitor,749));var S=new Mz(1),F=function(){S.next(h)};
y||fKP(h.ref,F);NBn(h.ref,F);return S.pipe(SF(b.parentContext.performanceMonitor,749),jF(1))};
_.tm.Object.defineProperties(F0.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return VFM(this.global,"document")?this.global.document||null:null}}});var I9U=_.bm(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),BB4=_.bm(["./reach_worklet.js"]),Wnj=_.bm(["./reach_worklet.js"]),wBo=_.bm(["./reach_worklet.html"]),lKG=_.bm(["./reach_worklet.js"]),qS7=_.bm(["./reach_worklet.js"]);_.Ra(wBo);_.Ra(lKG);_.Ra(qS7);var dB={left:0,top:0,width:0,height:0};var xzG,Qao,mza,vb8,oA,h9W,yWw,SD5,A3N,UXF,dKa,jY8;xzG=function(b,h,y,S,F,a,P){var K="";b&&(K+=b+":");y&&(K+="//",h&&(K+=h+"@"),K+=y,S&&(K+=":"+S));F&&(K+=F);a&&(K+="?"+a);P&&(K+="#"+P);return K};
Qao=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.Kn=function(b){return b.match(Qao)};
_.pW=function(b,h){return b?h?decodeURI(b):decodeURIComponent(b):b};
mza=function(b){b=_.Kn(b)[1]||null;!b&&_.S5.self&&_.S5.self.location&&(b=_.S5.self.location.protocol.slice(0,-1));return b?b.toLowerCase():""};
_.ZI=function(b){return _.pW(_.Kn(b)[3]||null,!0)};
_.W9=function(b){return _.pW(_.Kn(b)[5]||null,!0)};
_.hiI=function(b){var h=b.indexOf("#");return h<0?null:b.slice(h+1)};
vb8=function(b){b=_.Kn(b);return xzG(b[1],b[2],b[3],b[4])};
_.bqe=function(b){b=_.Kn(b);return xzG(b[1],null,b[3],b[4])};
_.kj=function(b){b=_.Kn(b);return xzG(null,null,null,null,b[5],b[6],b[7])};
_.xj=function(b){var h=b.indexOf("#");return h<0?b:b.slice(0,h)};
oA=function(b,h){b=_.Kn(b);h=_.Kn(h);return b[3]==h[3]&&b[1]==h[1]&&b[4]==h[4]};
h9W=function(b,h){if(b){b=b.split("&");for(var y=0;y<b.length;y++){var S=b[y].indexOf("="),F=null;if(S>=0){var a=b[y].substring(0,S);F=b[y].substring(S+1)}else a=b[y];h(a,F?nn(F):"")}}};
yWw=function(b){var h=b.indexOf("#");h<0&&(h=b.length);var y=b.indexOf("?");if(y<0||y>h){y=h;var S=""}else S=b.substring(y+1,h);return[b.slice(0,y),S,b.slice(h)]};
SD5=function(b,h){return h?b?b+"&"+h:h:b};
_.Fnb=function(b,h){if(!h)return b;b=yWw(b);b[1]=SD5(b[1],h);return b[0]+(b[1]?"?"+b[1]:"")+b[2]};
_.a9G=function(b,h,y){if(Array.isArray(h))for(var S=0;S<h.length;S++)_.a9G(b,String(h[S]),y);else h!=null&&y.push(b+(h===""?"":"="+_.SR(h)))};
_.pn=function(b){var h=[],y;for(y in b)_.a9G(y,b[y],h);return h.join("&")};
_.P9=function(b,h){h=_.pn(h);return _.Fnb(b,h)};
_.a6=function(b,h,y){y=y!=null?"="+_.SR(y):"";return _.Fnb(b,h+y)};
A3N=function(b,h,y,S){for(var F=y.length;(h=b.indexOf(y,h))>=0&&h<S;){var a=b.charCodeAt(h-1);if(a==38||a==63)if(a=b.charCodeAt(h+F),!a||a==61||a==38||a==35)return h;h+=F+1}return-1};
UXF=/#|$/;_.jh=function(b,h){var y=b.search(UXF),S=A3N(b,0,h,y);if(S<0)return null;var F=b.indexOf("&",S);if(F<0||F>y)F=y;S+=h.length+1;return nn(b.slice(S,F!==-1?F:0))};
dKa=/[?&]($|#)/;_.mp=function(b,h){for(var y=b.search(UXF),S=0,F,a=[];(F=A3N(b,S,h,y))>=0;)a.push(b.substring(S,F)),S=Math.min(b.indexOf("&",F)+1||y,y);a.push(b.slice(S));return a.join("").replace(dKa,"$1")};
_.SH=function(b,h,y){return _.a6(_.mp(b,h),h,y)};
jY8=function(b){var h=yWw(window.location.href),y=h[1],S=[];y&&y.split("&").forEach(function(F){var a=F.indexOf("=");a=a>=0?F.slice(0,a):F;b.hasOwnProperty(a)||S.push(F)});
h[1]=SD5(S.join("&"),_.pn(b));return h[0]+(h[1]?"?"+h[1]:"")+h[2]};var xKr=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(xKr,_.ZL);var qDM=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(qDM,_.ZL);var VGn=function(b,h){return _.kb(b,2,h)},l9y=function(b,h){return _.kb(b,3,h)};
qDM.prototype.getModel=function(){return _.gQ(this,4)};
var iq4=function(b,h){return _.kb(b,4,h)},k$k=function(b,h){return _.kb(b,5,h)},w0k=function(b,h){return _.kb(b,9,h)},G$N=function(b,h){return A1(b,10,h)},TBf=function(b,h){return _.D9(b,11,h)},ETN=function(b,h){return _.kb(b,1,h)},f9Y=function(b,h){return _.D9(b,7,h)};var sY5="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var Z9=function(b,h,y,S){b=b===void 0?window:b;h=h===void 0?null:h;y=y===void 0?new cxw:y;S=S===void 0?AWn():S;ugw.call(this);var F=this;this.global=b;this.debugChannel=h;this.performanceMonitor=y;this.onPageHide=ZD8(function(){return Qx(F.global,"pagehide")}).pipe(SF(this.performanceMonitor,941));
this.onLoad=ZD8(function(){return Qx(F.global,"load")}).pipe(SF(this.performanceMonitor,738),jF(1));
this.onResize=ZD8(function(){return Qx(F.global,"resize")}).pipe(SF(this.performanceMonitor,741));
this.onMessage=ZD8(function(){return Qx(F.global,"message")}).pipe(SF(this.performanceMonitor,740));
this.document=new F0(this.global,this);this.timeProvider=new Rhw(new D5e(this.intrinsicFunctionNamespace,this.performanceMonitor),new zh8(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new tww(new B3o(this),new kPG(this),new A2(this,new U5b(this)),new A2(this,new iD5(this)),new A2(this,new y4(this)))};
_.z(Z9,ugw);Z9.prototype.hasLocalStorage=function(){try{return!!this.global.localStorage}catch(b){return b}};
var J2=function(b){var h=b.global;return!!b.global.HTMLFencedFrameElement&&!!h.fence&&typeof h.fence.reportEvent==="function"};
_.d=Z9.prototype;_.d.reportFencedFrameEvent=function(b){J2(this)&&this.global.fence.reportEvent(b)};
_.d.getOnBackgrounded=function(){return this.onPageHide.pipe(SF(this.performanceMonitor,942),Ag(this.queue),iZ(function(){}))};
_.d.postMessage=function(b,h,y){y=y===void 0?[]:y;this.global.postMessage(b,h,y)};
_.d.getWidth=function(){return EbU(this.global)?this.global.width:0};
_.d.getHeight=function(){return EbU(this.global)?this.global.height:0};
_.d.isMobile=function(){return ehP()||CZa()};
var yY=function(b,h){try{var y=e94(h,b.global,b.isMobile());return{left:y.left,top:y.top,width:y.getWidth(),height:y.getHeight()}}catch(S){return dB}};
Z9.prototype.validate=function(){var b=this.beaconFactory.isSupported()||J2(this);return this.global&&this.timeProvider.available()&&b};
var $KU=function(b){return(b=mK8(b.global))?BE(b):null};
_.tm.Object.defineProperties(Z9.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(b){}}},
localStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.localStorage}catch(b){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!EbU(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}}});_.$KW=!_.nF&&!_.un5();var EZN=function(b){return b};var fbj=function(b){return b.pipe(bR(function(h){var y=h.endOfSessionReason;var S;return((S=h.viewable)==null?void 0:S.extrapolateToNow().value)||y!=void 0}),jF(1),aa())};var aCN=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},dok=function(b){var h=b.sequenceNumber.toString(10).padStart(2,"0");
h=""+b.startTime+h;b.sequenceNumber<99&&b.sequenceNumber++;return h};var Gw5=Rs(tg(function(b){return b.endOfSessionReason===void 0}),iZ(function(b){return Object.assign({},b,{timestamps:ES(b)})}),bR(function(b){var h=b.viewable;
b=b.timestamps;var y;return(y=h==null?void 0:h.extrapolateUsingTimestampMap(b).value)!=null?y:!1}),iZ(function(b){var h=b.beaconFactory;
var y=b.timestampedExposureHistory;var S=b.timeOnScreen;var F=b.binaryContext;b=b.timestamps;if(h===void 0||y===void 0||S===void 0||F===void 0)return!1;if(S.extrapolateUsingTimestampMap(b).value.every(function(a){return a>=0}))return!0;
y=y.map(function(a){return a.timestamp+":"+a.value}).join(",");
S=j4F({bin:F,tos:S},b);h.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+S+("&eh="+y)).sendNow();return!0}),tg(function(b){return!b}),aa());var L28=function(b){return{id:b.pingId,mcvt:b.maxConsecutiveViewTime,p:b.creativePosition,asp:b.adSpeedPosition,tm:b.totalMeasurementTime,tu:b.totalUnviewedTime,mtos:b.maxTimeOnScreen,tos:b.timeOnScreen,v:b.binaryVersion,bin:b.binaryContext,avms:b.measurementStrategy,bs:b.browserSize,mc:b.maximumExposure,"if":b.crossDomainIframeState,vu:b.delayedImpressionJsState,app:b.inApp,mse:b.mraidError,mtop:b.mraidSituation,itpl:b.injectedTemplateId,adk:b.adKey,exk:b.awbidKey,rs:b.requestSource,la:b.isLargeAd,
cr:b.isContentRecommendationAd,uach:b.userAgentClientHints,vs:b.viewState,r:b.reasonCode,pay:b.hasCpmavUrl,co:b.clientPingOrderCounter,rst:b.adRenderStartTime,rpt:b.adRenderPeriodTime,isd:b.initialScrollDepth,lsd:b.loadedScrollDepth,context:b.errorContext,msg:b.errorMessage,stack:b.errorStack,name:b.errorName,ec:b.hasElementChanged,sfr:b.strategyFailureReasons,met:b.creativeSearchResult,wmsd:b.webMeasurementStartDiagnostic,pv:b.pageVisible,epv:b.eosPageVisible,pbe:b.inStatefulBeaconExperiment,fle:b.inFetchLaterBeaconExperiment,
vae:b.inViewableAttributionExperiment,spb:b.supportsPendingBeacon,sfl:b.supportsFetchLater,ffslot:b.isFencedFrameSlotTurtlex,reach:b.sharedStorageReachMode,io2:b.v2VisibilityBitVector,rxdbg:b.rxDebugger,omida:b.omidAppId,omidp:b.omidPartner,omidpv:b.omidPartnerVersion,omidor:b.omidOcclusionReasons,omidv:b.omidVersion,omids:b.omidSessionType,omidam:b.omidAccessMode,omidct:b.omidCreativeType,omidia:b.omidInApp,omiddc:b.omidDeviceCategory,omidlat:b.omidLastActivity,omiddit:b.omidDeviceIdleTime,qid:b.errorEscapedQueryId}};var ilY=function(b){var h=[];return b.pipe(iZ(function(y){var S=y.beaconFactory,F=y.fetchBeaconFactory,a=y.timeOnScreen,P=y.timeOnScreenUrlPrefixes,K=y.payloadMapper,n=y.timeOnScreenPingId,X=y.timeOnScreenReason,u=y.urlSerializer,O=y.viewable,N=y.hasImpressionFired,t=y.inStatefulBeaconExperiment,R=y.supportsPendingBeacon,I=y.supportsFetchLater,U=y.turtlexReportEventData;if(!y.geometryMeasurable||!N||y.maxTimeOnScreen===void 0||a===void 0||P===void 0||K===void 0||n===void 0||u===void 0||S===void 0)return!1;
if(y.isTurtlex){if(X===void 0)return!1;P=y.reportFencedFrameEvent;if(!P)return!1;P({eventType:"active-view-time-on-screen",eventData:U!=null?U:"",destination:["buyer"]});return!0}if(!(t||I||X))return!1;U=ES(y);var p;O=(p=O==null?void 0:O.extrapolateUsingTimestampMap(U).value)!=null?p:!1;p=u(Object.assign({},y,{pingId:n,viewState:O?4:3,reasonCode:X!=null?X:"u",payloadMapper:K,urlPrefixes:P}),U);if(t){for(;h.length>P.length;)y=void 0,(y=h.shift())==null||y.deactivate();p.forEach(function(E,Y){Y>=h.length?
h.push(S.makeBeacon(E)):h[Y].url=E});
return R&&F&&X!==void 0?(p.forEach(function(E){F.makeBeacon(E).sendNow()}),!0):X!==void 0}if(R&&F&&X!==void 0)return p.forEach(function(E){F.makeBeacon(E).sendNow()}),!0;
if(I&&F){for(;h.length>P.length;)R=void 0,(R=h.shift())==null||R.deactivate();var e=u(Object.assign({},y,{pingId:n,viewState:O?4:3,reasonCode:X!=null?X:"u",payloadMapper:K,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),U)[0];p.forEach(function(E,Y){Y>=h.length?h.push(S.makeBeacon(e,{endOfSession:!0})):h[Y].url=e});
return X!==void 0?(p.forEach(function(E){F.makeBeacon(E).sendNow()}),!0):X!==void 0}return X!==void 0?(p.forEach(function(E){S.makeBeacon(E).sendNow()}),!0):!1}),tg(function(y){return!y}),aa())};var w4I=Rs(bR(function(b){return b.immediateUrlPrefixes!==void 0&&b.payloadMapper!==void 0&&b.urlSerializer!==void 0&&b.inferredPingId!==void 0&&b.beaconFactory!==void 0}),bR(function(b){return Haf(b)!==null}),nHf(function(b){return b.activeViewUnmeasurableEvent},function(b){return b.emit}),iZ(function(b){if(b.isTurtlex){var h=b.reportFencedFrameEvent;
if(h){var y;h({eventType:"active-view-unmeasurable",eventData:(y=b.turtlexReportEventData)!=null?y:"",destination:["buyer"]})}}else{y=void 0;var S=Haf(b);if(S==="x"){var F,a=(F=b.geometricMeasurementErrors)!=null?F:b.contextValidationErrors;a&&(h=a.stack,y=a.message)}b.urlSerializer(Object.assign({},b,{urlPrefixes:b.immediateUrlPrefixes,payloadMapper:b.payloadMapper,pingId:b.inferredPingId,viewState:2,reasonCode:S,errorMessage:y,errorStack:h}),ES(b)).forEach(function(P){b.beaconFactory.makeBeacon(P).sendNow()})}}),
jF(1),aa());var ukn=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var TgY=Rs(bR(function(b){return b.payloadMapper!==void 0&&b.immediateUrlPrefixes!==void 0&&b.urlSerializer!==void 0&&b.inferredPingId!==void 0&&b.beaconFactory!==void 0}),iZ(function(b){return Object.assign({},b,{timestamps:ES(b)})}),bR(function(b){var h=b.viewable;
var y=b.hasImpressionFired;b=b.timestamps;var S;return!!y&&((S=h==null?void 0:h.extrapolateUsingTimestampMap(b).value)!=null?S:!1)}),nHf(function(b){return b.activeViewViewableEvent},function(b){return b.emit}),iZ(function(b){var h=b.beaconFactory,y=b.turtlexReportEventData;
if(b.isTurtlex){var S=b.reportFencedFrameEvent;if(!S)return!1;S({eventType:"active-view-viewable",eventData:y!=null?y:"",destination:["buyer"]});return!0}y=b.urlSerializer(Object.assign({},b,{urlPrefixes:b.immediateUrlPrefixes,payloadMapper:b.payloadMapper,pingId:b.inferredPingId,viewState:4,reasonCode:"v"}),b.timestamps);(S=b.cpmavUrls)&&S.length>0&&b.viewUrlSerializer&&b.viewUrlSerializer(S,b).forEach(function(F){h.makeBeacon(F).sendNow()});
(S=b.viewableRelayUrls)&&S.length>0&&b.viewUrlSerializer&&b.viewUrlSerializer(S,b).forEach(function(F){h.makeBeacon(F).sendNow()});
y.forEach(function(F){h.makeBeacon(F,{attributionEnabled:b.isViewableAttributionEnabled}).sendNow()});
return!0}),tg(function(b){return!b}),aa());var L$U=iZ(function(b){return[b.value.topWindowViewportExternalGeometry.width,b.value.topWindowViewportExternalGeometry.height]});var SG=function(b,h){this.callback=b;this.options=h;this.intersectionObserverV2=this.intersectionObserverV1=null},iaI=function(b,h){h?b.intersectionObserverV2||(h=Object.assign({},b.options,{delay:100,
trackVisibility:!0}),b.intersectionObserverV2=new IntersectionObserver(b.callback,h)):b.intersectionObserverV1||(b.intersectionObserverV1=new IntersectionObserver(b.callback,b.options))},LnP=function(b,h){b=h?b.intersectionObserverV2:b.intersectionObserverV1;
if(!b)throw new O$P;return b};
SG.prototype.observe=function(b,h){LnP(this,b).observe(h)};
SG.prototype.unobserve=function(b,h){LnP(this,b).unobserve(h)};
SG.prototype.disconnect=function(b){LnP(this,b).disconnect()};
SG.prototype.takeRecords=function(b){return LnP(this,b).takeRecords()};var psI={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:dB,topWindowViewportExternalGeometry:dB,measurementRequests:new Ia,elementGeometrySourceName:"ns",elementGeometry:dB,intersectionGeometry:dB,viewportLocalAppOffset:{x:0,y:0}};var moq=jG(Rs(iZ(function(b){var h;return(h=b.exposureOverride)!=null?h:wsY(b)}),iZ(function(b){return isFinite(b)?b:0}))),abM=jG(Rs(iZ(function(b){var h;
return(h=b.exposureOverride)!=null?h:wsY(b)}),iZ(function(b){return isFinite(b)?b:-1})));var db=function(b,h){this.a=b;this.b=h;if(b.clock.timeline!==h.clock.timeline)throw Error();};
db.prototype.equivalentTo=function(b){return b instanceof db?this.a.equivalentTo(b.a)&&this.b.equivalentTo(b.b):!1};
db.prototype.extrapolateToTime=function(b){var h=this.a.extrapolateToTime(b).value,y=this.b.extrapolateToTime(b).value;return{timestamp:b,value:[h,y]}};
_.tm.Object.defineProperties(db.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 b=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),h=this.a.lastMeasurement.timestamp.equals(b)?this.a.lastMeasurement.value:this.a.extrapolateToTime(b).value,y=this.b.lastMeasurement.timestamp.equals(b)?this.b.lastMeasurement.value:this.b.extrapolateToTime(b).value;return{timestamp:b,value:[h,y]}}}});var jW=function(b,h){this.input=b;this.mapFunction=h;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
jW.prototype.equivalentTo=function(b){return b instanceof jW?this.input.equivalentTo(b.input)&&this.mapFunction===b.mapFunction:!1};
jW.prototype.extrapolateToTime=function(b){b=this.input.extrapolateToTime(b);return{timestamp:b.timestamp,value:this.mapFunction(b.value)}};
_.tm.Object.defineProperties(jW.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var $y=function(){};
$y.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
$y.prototype.extrapolateUsingTimestampMap=function(b){var h=this.clock.timeline,y,S=(y=b.get(h))!=null?y:this.clock.now();b.set(h,S);return this.extrapolateToTime(S)};
$y.prototype.map=function(b){return new P5o(this,b)};
$y.prototype.joinWith=function(b){return new KnM(this,b)};
var KnM=function(){db.apply(this,arguments);this.map=$y.prototype.map;this.joinWith=$y.prototype.joinWith;this.extrapolateToNow=$y.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=$y.prototype.extrapolateUsingTimestampMap};
_.z(KnM,db);var P5o=function(){jW.apply(this,arguments);this.map=$y.prototype.map;this.joinWith=$y.prototype.joinWith;this.extrapolateToNow=$y.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=$y.prototype.extrapolateUsingTimestampMap};
_.z(P5o,jW);var Lq=function(b,h){this.lastMeasurement=h;this.extrapolateToNow=$y.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=$y.prototype.extrapolateUsingTimestampMap;this.map=$y.prototype.map;this.joinWith=$y.prototype.joinWith;this.clock=b};
Lq.prototype.equivalentTo=function(b){return b.active};
Lq.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.tm.Object.defineProperties(Lq.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var $U8=iZ(function(b){if(b.value.viewportGeometrySourceName==="omid"){if(b.value.elementGeometrySourceName==="nio")return"omio";if(b.value.elementGeometrySourceName==="geo")return"omgeo"}return b.value.elementGeometrySourceName==="geo"||b.value.elementGeometrySourceName==="nio"?b.value.viewportGeometrySourceName:b.value.elementGeometrySourceName});var q5r=Rs(bR(function(b){return!isNaN(b)}),XX(function(b,h){return isNaN(b)?h:Math.min(b,h)},NaN),$b());var vHk=jG(Rs(iZ(function(b){return b.intersectionGeometry.width*b.intersectionGeometry.height/(b.exposedViewportLocalGeometry.width*b.exposedViewportLocalGeometry.height)}),iZ(function(b){return isFinite(b)?Math.min(1,b):0})));var jef=Rs(jG(iZ(function(b){b=b.exposureOverride?b.elementGeometry.width*b.elementGeometry.height*b.exposureOverride/(b.topWindowViewportExternalGeometry.width*b.topWindowViewportExternalGeometry.height):b.intersectionGeometry.width*b.intersectionGeometry.height/(b.topWindowViewportExternalGeometry.width*b.topWindowViewportExternalGeometry.height);return isFinite(b)?b:0})));var ZlY=function(b,h){var y=this;this.timeProvider=b;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=h.pipe($b()).subscribe(function(S){MY8(y);y.measurementRequestObserver=S})},nZn=function(b,h){MY8(b);
b.lastMeasurementRequest=b.timeProvider.setTimeout(function(){var y;return void((y=b.measurementRequestObserver)==null?void 0:y.next())},h)},MY8=function(b){b.lastMeasurementRequest!==null&&b.timeProvider.clearTimeout(b.lastMeasurementRequest);
b.lastMeasurementRequest=null};
ZlY.prototype.dispose=function(){MY8(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var Zq5=function(){};var gZI=function(b,h){this.context=b;this.strategies=h};
_.z(gZI,Zq5);gZI.prototype.buildGeometrySource=function(b,h){var y=this.strategies.map(function(a){return a.buildGeometrySource(b,h)}),S=Ngj(y.map(function(a){return a.geometrySource})),F=S.capturedErrors.pipe(oTW());
return{geometrySource:S.chain.pipe(Ag(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:F,strategyErrors:S.capturedErrors}].concat(_.f$(y.map(function(a){return a.additionalOutputs}))))}};
var oTW=function(){return XX(function(b,h){h instanceof fD?b.push(h.measurementStrategyFailureReason):b.push(-1);return b},[])};var YWq=function(b,h){this.context=b;this.poller=h};
_.z(YWq,Zq5);YWq.prototype.buildGeometrySource=function(b,h){var y=tYY(ci5(this.context,this.poller),Jrj(this.context,h.requestSource));return{geometrySource:Ol8(b.measurableCreative.pipe(y),h.inApp),additionalOutputs:{}}};var ser=function(b,h,y){y=y===void 0?Ts4(b,h):y;this.context=b;this.intersectionObserverStrategy=y};
_.z(ser,Zq5);ser.prototype.buildGeometrySource=function(b,h){var y=this.intersectionObserverStrategy(h.useV2);return{geometrySource:Ol8(b.measurableCreative.pipe(y,Grr(this.context)),h.inApp),additionalOutputs:{}}};var MG5=function(b,h,y){var S=S===void 0?Symbol():S;this.element=b;this.immediateUrls=h;this.timeOnScreenUrls=y;this.symbol=S};var K$N=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),BgI=Object.freeze([1,.75,K$N.exposureThreshold,K$N.largeAdExposureThreshold,0]);var tfy=function(b,h){h=h===void 0?36E5:h;var y=y===void 0?!0:y;this.creatives=new Ia;this.elementsToUnregister=new Ia;this.elementMap=new Map;var S=new Z9(window,null);S.beaconFactory=new A2(S,new y4(S));Cny(S,this.creatives,this.elementsToUnregister,b,h,y).subscribe()},R5N=function(b,h,y,S){if(!b.elementMap.has(h)){var F=new hW(h);
b.elementMap.set(h,F);b.creatives.next(new MG5(F,y,S))}},ccF=function(b,h){b.elementsToUnregister.next(h);
var y=b.elementMap.get(h);y!==void 0&&(y.release(),b.elementMap.delete(h))};var Qck=function(b){var h=b.url;b=b.uaDataValues;this.JSC$9659_url_=h;this.uaDataValues_=b;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var y=/[?&]([^&=]+)=([^&]*)/g;b=y.exec(h);)this.urlParamValues_[b[1]]=b[2]},mhj=function(b){b=b.uaDataValues_;
if(!b)return"";var h=MK("uap",b.platform)+MK("uapv",b.platformVersion)+MK("uafv",b.uaFullVersion)+MK("uaa",b.architecture)+MK("uam",b.model)+MK("uab",b.bitness);b.fullVersionList&&(h+="&uafvl="+encodeURIComponent(b.fullVersionList.map(function(y){return encodeURIComponent(y.brand)+";"+encodeURIComponent(y.version)}).join("|")));
b.wow64!=null&&(h+="&uaw="+Number(b.wow64));return h.slice(1)};var nT7=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(nT7,_.ZL);nT7.prototype.getId=function(){return _.gQ(this,1)};var Lv=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(Lv,_.ZL);Lv.prototype.getSeconds=function(){return ek(this,1)};
Lv.prototype.setSeconds=function(b){return _.SP(this,1,HN(b),"0")};_.Cw=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(_.Cw,_.ZL);_.Cw.prototype.getSeconds=function(){return ek(this,1)};
_.Cw.prototype.setSeconds=function(b){return _.SP(this,1,HN(b),"0")};
_.X0M=function(b){var h=Number(YY(b,1));b=_.rB(b,2);return new Date(h*1E3+b/1E6)};var Pm=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(Pm,_.ZL);Pm.prototype.getUrl=function(){return _.gQ(this,1)};
Pm.prototype.setUrl=function(b){return _.lq(this,1,b)};
Pm.prototype.getHeight=function(){return _.rB(this,2)};
Pm.prototype.getWidth=function(){return _.rB(this,3)};var Kv=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(Kv,_.ZL);Kv.prototype.getAspectRatio=function(){return CF(this,1)};
Kv.prototype.getDuration=function(){return _.cL(this,Lv,2)};var Hqa=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(Hqa,_.ZL);var uRG=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(uRG,_.ZL);var Oqo=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(Oqo,_.ZL);var NBa=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(NBa,_.ZL);var tGM=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(tGM,_.ZL);var rW5=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(rW5,_.ZL);var cWW=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(cWW,_.ZL);var R9M=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(R9M,_.ZL);var z9a=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(z9a,_.ZL);var Zy=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(Zy,_.ZL);var o6=[2,4,5,6,7];var DKW=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(DKW,_.ZL);var UV=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(UV,_.ZL);_.d=UV.prototype;_.d.getId=function(){return _.cL(this,nT7,1)};
_.d.getName=function(){return _.gQ(this,2)};
_.d.setDescription=function(b){return _.lq(this,3,b)};
_.d.getUrl=function(){return _.gQ(this,8)};
_.d.setUrl=function(b){return _.lq(this,8,b)};
var Mk=function(b){return _.NK(b,Pm,10,_.tW())};
UV.prototype.getOwner=function(b){return _.RwP(this,40,b)};
var nv=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(nv,_.ZL);_.X0=[0,vv,M25];_.Hm=[0,vv,M25];var I9W=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(I9W,_.ZL);var ue=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(ue,_.ZL);ue.prototype.getStatus=function(){return _.sV(this,1)};
ue.prototype.removeItem=function(b){return teb(this,2,b)};var BBM=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(BBM,_.ZL);BBM.prototype.getName=function(){return _.gQ(this,8)};var O6=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(O6,_.ZL);O6.prototype.getCommand=function(){return _.sV(this,1)};
O6.prototype.getSource=function(){return _.cL(this,BBM,2)};
O6.prototype.setVisible=function(b){return _.IH(this,5,b)};
O6.prototype.removeItem=function(b){return teb(this,7,b)};var Wn7=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(Wn7,_.ZL);Wn7.prototype.getCommand=function(){return _.sV(this,1)};
Wn7.prototype.removeItem=function(b){return teb(this,4,b)};
var AWa=_.WM(Wn7);var Nk=function(b,h,y){y=y===void 0?Error():y;var S=Error.call(this);this.message=S.message;"stack"in S&&(this.stack=S.stack);this.code=b;h+=":";y instanceof Error?(this.message=h+y.message,this.stack=y.stack||""):(this.message=h+String(y),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.z(Nk,Error);_.ED=function(){this.JSC$9717_disposed_=this.JSC$9717_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.ED.prototype.JSC$9717_disposed_=!1;_.ED.prototype.isDisposed=function(){return this.JSC$9717_disposed_};
_.ED.prototype.dispose=function(){this.JSC$9717_disposed_||(this.JSC$9717_disposed_=!0,this.disposeInternal())};
_.ED.prototype[Symbol.dispose]=function(){this.dispose()};
_.pq=function(b,h){b.addOnDisposeCallback(_.X8(_.nq,h))};
_.ED.prototype.addOnDisposeCallback=function(b,h){this.JSC$9717_disposed_?h!==void 0?b.call(h):b():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),h&&(b=b.bind(h)),this.onDisposeCallbacks_.push(b))};
_.ED.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var tU=function(b){_.ED.call(this);this.wpc=b};
_.z(tU,_.ED);tU.prototype.k5k=function(){return this.wpc.f()};
tU.prototype.wD2=function(b){return this.wpc.c(b)};
tU.prototype.nJ=function(b){return this.wpc.m(mUj(b))};
tU.prototype.cSO=function(b){return this.wpc.mws(mUj(b))};
var OD=function(b){_.ED.call(this);var h=this;this.vm=b;this.cTR="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.mS2=void 0;this.h8f=this.vm.p;this.jmr=this.wqA.bind(this);this.addOnDisposeCallback(function(){return void UKo(h)})};
_.z(OD,_.ED);var p0a=function(b){var h;return _.Z(function(y){if(y.nextAddress==1){if(!b.vm.wpc)throw new Nk(30,"NWA");return b.hkO?y.return(b.hkO):y.yield(b.vm.wpc(),2)}h=y.yieldResult;b.hkO=new tU(h);return y.return(b.hkO)})};
OD.prototype.snapshot=function(b){return this.vm.s(Object.assign({},b.yn&&{c:b.yn},b.g6S&&{s:b.g6S},b.b6k!==void 0&&{p:b.b6k}))};
OD.prototype.wqA=function(b){this.vm.e(b)};
OD.prototype.geg=function(b,h){return this.vm.c(b,h,!1)};
var UKo=function(b){b.mS2!==void 0&&(b.cTR.forEach(function(h){var y;(y=b.mS2)==null||y.removeEventListener(h,b.jmr)}),b.mS2=void 0)};
OD.prototype.hAJ=function(){return this.vm.l()};var rb=function(){_.ED.apply(this,arguments);this.l0r=1};
_.z(rb,_.ED);rb.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.l0r++;return this};
rb.prototype.dispose=function(){--this.l0r||_.ED.prototype.dispose.call(this)};var JWP=function(b){this.gWL=b;b.addNewEventMetric("/client_streamz/bg/frs",_.z$("mk"))};
JWP.prototype.record=function(b,h){this.gWL.record("/client_streamz/bg/frs",b,h)};
var e9M=function(b){this.cpL=b;b.addNewEventMetric("/client_streamz/bg/wrl",_.z$("mn"),RY("ac"),RY("sc"),_.z$("rk"),_.z$("mk"))};
e9M.prototype.record=function(b,h,y,S,F,a){this.cpL.record("/client_streamz/bg/wrl",b,h,y,S,F,a)};
var C5G=function(b){this.ypZ=b;b.addNewCounter("/client_streamz/bg/ec",_.z$("en"),_.z$("mk"))};
C5G.prototype.increment=function(b,h){this.ypZ.JSC$9970_incrementCounter("/client_streamz/bg/ec",b,h)};
var gTN=function(b){this.tnk=b;b.addNewEventMetric("/client_streamz/bg/el",_.z$("en"),_.z$("mk"))};
gTN.prototype.record=function(b,h,y){this.tnk.record("/client_streamz/bg/el",b,h,y)};
var sYe=function(b){this.lTz=b;b.addNewCounter("/client_streamz/bg/cec",RY("ec"),_.z$("mk"))};
sYe.prototype.increment=function(b,h){this.lTz.JSC$9970_incrementCounter("/client_streamz/bg/cec",b,h)};
var YDb=function(b){this.xH6=b;b.addNewCounter("/client_streamz/bg/po/csc",RY("cs"),_.z$("mk"))};
YDb.prototype.increment=function(b,h){this.xH6.JSC$9970_incrementCounter("/client_streamz/bg/po/csc",b,h)};
var TBo=function(b){this.fTL=b;b.addNewCounter("/client_streamz/bg/po/ctav",_.z$("av"),_.z$("mk"))};
TBo.prototype.increment=function(b,h){this.fTL.JSC$9970_incrementCounter("/client_streamz/bg/po/ctav",b,h)};
var G$W=function(b){this.uSL=b;b.addNewCounter("/client_streamz/bg/po/cwsc",_.z$("su"),_.z$("mk"))};
G$W.prototype.increment=function(b,h){this.uSL.JSC$9970_incrementCounter("/client_streamz/bg/po/cwsc",b,h)};var Dl5=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(Dl5,_.ZL);var zpY=function(b,h){return _.yD(b,3,h,r84)};var k$a=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(k$a,_.ZL);var VGa=[1,2,3];var ETW=[0,VGa,_.dX,nF5,uxN];var iqM=[0,_.L8,[0,Q7,_.mP]];var f98=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(f98,_.ZL);var w0a=[1,2,3];var l9P=[0,w0a,ZAa,jPN,_.Pq,iqM];var qD5=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(qD5,_.ZL);var xK8=[0,_.L8,ETW,l9P];var QYw=[0,_.FH];var mKw=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(mKw,_.ZL);var vTb=[0,_.FH,-1,_.yw];var ba5=[0,_.FH,-1,_.h2,_.yw];var hu7=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(hu7,_.ZL);var yra=[1,2,3];var S5W=[0,yra,_.Pq,vTb,_.Pq,ba5,_.Pq,QYw];var F2b=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(F2b,_.ZL);F2b.prototype.JSC$9790_serializeBinary=b$q([0,_.FH,S5W,OAW,_.L8,xK8,XN8,_.HAM]);var aCW=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(aCW,_.ZL);var $oM=function(b){var h=new F2b;h=_.kb(h,1,b.JSC$9906_metricName);var y=doa(b);h=_.yD(h,3,y,_.cN);y=[];for(var S=[],F=_.L(b.cellMap.keys()),a=F.next();!a.done;a=F.next())S.push(a.value.split(","));for(F=0;F<S.length;F++){a=S[F];for(var P=b.cellType,K=b.getCells(a)||[],n=[],X=0;X<K.length;X++){var u=K[X],O=u&&u.cellValue;u=new f98;switch(P){case 3:O=Number(O);Number.isFinite(O)&&pK(u,1,w0a,HN(O));break;case 2:pK(u,2,w0a,_.hX(Number(O)))}n.push(u)}P=n;for(K=0;K<P.length;K++){n=P[K];X=new qD5;n=_.U_(X,
2,n);X=[];u=j4b(b);for(O=0;O<u.length;O++){var N=u[O],t=a[O],R=new k$a;switch(N){case 3:pK(R,1,VGa,RP(String(t)));break;case 2:N=Number(t);Number.isFinite(N)&&pK(R,2,VGa,_.KA(N));break;case 1:pK(R,3,VGa,OMN(t==="true"))}X.push(R)}A1(n,1,X);y.push(n)}}A1(h,4,y);return h};var L2w=function(b){if(!b)return"";if(/^about:(?:blank|srcdoc)$/.test(b))return window.origin||"";b.indexOf("blob:")===0&&(b=b.substring(5));b=b.split("#")[0].split("?")[0];b=b.toLowerCase();b.indexOf("//")==0&&(b=window.location.protocol+b);/^[\w\-]*:\/\//.test(b)||(b=window.location.href);var h=b.substring(b.indexOf("://")+3),y=h.indexOf("/");y!=-1&&(h=h.substring(0,y));y=b.substring(0,b.indexOf("://"));if(!y)throw Error("qa`"+b);if(y!=="http"&&y!=="https"&&y!=="chrome-extension"&&y!=="moz-extension"&&
y!=="file"&&y!=="android-app"&&y!=="chrome-search"&&y!=="chrome-untrusted"&&y!=="chrome"&&y!=="app"&&y!=="devtools")throw Error("ra`"+y);b="";var S=h.indexOf(":");if(S!=-1){var F=h.substring(S+1);h=h.substring(0,S);if(y==="http"&&F!=="80"||y==="https"&&F!=="443")b=":"+F}return y+"://"+h+b};var K2e=function(b,h,y){var S=String(_.S5.location.href);return S&&b&&h?[h,P_8(L2w(S),b,y||null)].join(" "):null},P_8=function(b,h,y){var S=[],F=[];
if((Array.isArray(y)?2:1)==1)return F=[h,b],_.FS(S,function(K){F.push(K)}),ZaG(F.join(" "));
var a=[],P=[];_.FS(y,function(K){P.push(K.key);a.push(K.value)});
y=Math.floor((new Date).getTime()/1E3);F=a.length==0?[y,h,b]:[a.join(":"),y,h,b];_.FS(S,function(K){F.push(K)});
b=ZaG(F.join(" "));b=[y,b];P.length==0||b.push(P.join(""));return b.join("_")},ZaG=function(b){var h=dlF();
h.update(b);return h.digestString().toLowerCase()};var cm=function(b){this.JSC$9801_document_=b||{cookie:""}},oHb;
_.d=cm.prototype;_.d.isEnabled=function(){if(!_.S5.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};
_.d.set=function(b,h,y){var S=!1;if(typeof y==="object"){var F=y.sameSite;S=y.secure||!1;var a=y.domain||void 0;var P=y.path||void 0;var K=y.maxAge}if(/[;=\s]/.test(b))throw Error("sa`"+b);if(/[;\r\n]/.test(h))throw Error("ta`"+h);K===void 0&&(K=-1);y=a?";domain="+a:"";P=P?";path="+P:"";S=S?";secure":"";K=K<0?"":K==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+K*1E3)).toUTCString();this.JSC$9801_document_.cookie=b+"="+h+y+P+K+S+(F!=null?";samesite="+F:"")};
_.d.get=function(b,h){for(var y=b+"=",S=(this.JSC$9801_document_.cookie||"").split(";"),F=0,a;F<S.length;F++){a=My(S[F]);if(a.lastIndexOf(y,0)==0)return a.slice(y.length);if(a==b)return""}return h};
_.d.remove=function(b,h,y){var S=this.containsKey(b);this.set(b,"",{maxAge:0,path:h,domain:y});return S};
_.d.getKeys=function(){return oHb(this).keys};
_.d.getValues=function(){return oHb(this).values};
_.d.isEmpty=function(){return!this.JSC$9801_document_.cookie};
_.d.getCount=function(){return this.JSC$9801_document_.cookie?(this.JSC$9801_document_.cookie||"").split(";").length:0};
_.d.containsKey=function(b){return this.get(b)!==void 0};
_.d.containsValue=function(b){for(var h=oHb(this).values,y=0;y<h.length;y++)if(h[y]==b)return!0;return!1};
_.d.clear=function(){for(var b=oHb(this).keys,h=b.length-1;h>=0;h--)this.remove(b[h])};
oHb=function(b){b=(b.JSC$9801_document_.cookie||"").split(";");for(var h=[],y=[],S,F,a=0;a<b.length;a++)F=My(b[a]),S=F.indexOf("="),S==-1?(h.push(""),y.push(F)):(h.push(F.substring(0,S)),y.push(F.substring(S+1)));return{keys:h,values:y}};
_.Cn=new cm(typeof document=="undefined"?null:document);var bEr,MhN;bEr=function(){var b=_.S5.__SAPISID||_.S5.__APISID||_.S5.__3PSAPISID||_.S5.__1PSAPISID||_.S5.__OVERRIDE_SID;if(b)return!0;typeof document!=="undefined"&&(b=new cm(document),b=b.get("SAPISID")||b.get("APISID")||b.get("__Secure-3PAPISID")||b.get("__Secure-1PAPISID"));return!!b};
MhN=function(b,h,y,S){(b=_.S5[b])||typeof document==="undefined"||(b=(new cm(document)).get(h));return b?K2e(b,y,S):null};
_.Dhf=function(b){var h=L2w(_.S5==null?void 0:_.S5.location.href),y=[];if(bEr()){h=h.indexOf("https:")==0||h.indexOf("chrome-extension:")==0||h.indexOf("chrome-untrusted://new-tab-page")==0||h.indexOf("moz-extension:")==0;var S=h?_.S5.__SAPISID:_.S5.__APISID;S||typeof document==="undefined"||(S=new cm(document),S=S.get(h?"SAPISID":"APISID")||S.get("__Secure-3PAPISID"));(S=S?K2e(S,h?"SAPISIDHASH":"APISIDHASH",b):null)&&y.push(S);h&&((h=MhN("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",b))&&y.push(h),
(b=MhN("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",b))&&y.push(b))}return y.length==0?null:y.join(" ")};var nHo=function(){this.minSize=1024};
nHo.prototype.compress=function(b){var h,y,S,F;return _.Z(function(a){switch(a.nextAddress){case 1:return h=new CompressionStream("gzip"),y=(new Response(h.readable)).arrayBuffer(),S=h.writable.getWriter(),a.yield(S.write((new TextEncoder).encode(b)),2);case 2:return a.yield(S.close(),3);case 3:return F=Uint8Array,a.yield(y,4);case 4:return a.return(new F(a.yieldResult))}})};
nHo.prototype.isSupported=function(b){return b<this.minSize?!1:typeof CompressionStream!=="undefined"};var XsP=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(XsP,_.ZL);var R6=function(b,h){this.intervalMs=b;this.callback=h;this.enabled=!1;this.nowFn=function(){return _.LF()};
this.lastTimeMs=this.nowFn()};
R6.prototype.setInterval=function(b){this.intervalMs=b;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
R6.prototype.start=function(){var b=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){b.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
R6.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
R6.prototype.tick=function(){var b=this;if(this.enabled){var h=Math.max(this.nowFn()-this.lastTimeMs,0);h<this.intervalMs*.8?this.timer=setTimeout(function(){b.tick()},this.intervalMs-h):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var Hao=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(Hao,_.ZL);var uka=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(uka,_.ZL);var OaM=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(OaM,_.ZL);OaM.prototype.getTransmissionType=function(){return _.sV(this,1)};var PN5=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(PN5,_.ZL);var zI=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(zI,_.ZL);var LwF=function(b){A1(Kwj,1,b)};
zI.prototype.getModel=function(){return _.gQ(this,6)};
var Nsa=_.WM(zI);var thw=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(thw,_.ZL);var jAM=["platform","platformVersion","architecture","model","uaFullVersion"],Kwj=new zI,$lN=null;var Dy=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(Dy,_.ZL);var rrb=function(b){return _.R2(b,1,1)};var cra=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b,4)};
_.z(cra,_.ZL);_.I6=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b,36)};
_.z(_.I6,_.ZL);_.I6.prototype.getExperimentIds=function(){return _.cL(this,XsP,16)};var RuM=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b,19)};
_.z(RuM,_.ZL);RuM.prototype.setLogSource=function(b){return _.R2(this,2,b)};
RuM.prototype.setScheduler=function(b){return _.R2(this,10,b)};var DoW=function(b,h){this.isServiceWorkerScope=h=h===void 0?!1:h;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new RuM;Number.isInteger(b)&&this.logRequest.setLogSource(b);h||(this.locale=document.documentElement.getAttribute("lang"));zuo(this,new Dy)};
DoW.prototype.setLogSource=function(b){this.logRequest.setLogSource(b);return this};
var zuo=function(b,h){_.U_(b.logRequest,1,h);_.sV(h,1)||rrb(h);b.isServiceWorkerScope||(h=Bm(b),_.gQ(h,5)||_.kb(h,5,b.locale));b.uach&&(h=Bm(b),_.cL(h,zI,9)||_.U_(h,9,b.uach))},ICa=function(b,h){b.transmissionType=h},BsM=function(b){var h=h===void 0?jAM:h;
var y=b.isServiceWorkerScope?void 0:QX();y?Zny(y,h).then(function(S){b.uach=Nsa(S!=null?S:"[]");S=Bm(b);_.U_(S,9,b.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},Bm=function(b){var h=_.cL(b.logRequest,Dy,1);
h||(h=new Dy,zuo(b,h));b=h;h=_.cL(b,thw,11);h||(h=new thw,_.U_(b,11,h));return h};
DoW.prototype.build=function(b,h,y,S,F,a){h=h===void 0?0:h;y=y===void 0?0:y;S=S===void 0?null:S;F=F===void 0?0:F;a=a===void 0?0:a;if(!this.isServiceWorkerScope){var P=Bm(this);var K=new OaM;K=_.R2(K,1,this.transmissionType);K=_.D9(K,2,this.isFinal);y=_.V7(K,3,y>0?y:void 0);y=_.V7(y,4,F>0?F:void 0);y=_.V7(y,5,a>0?a:void 0);F=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;a=F[_.je]|0;y=IN(y,a)?y:AXf(y,F,a)?WYn(y,F):new y.constructor(Gq(F,a,!0));_.U_(P,10,y)}P=this.logRequest.clone();y=Date.now().toString();
P=_.z6(P,4,HN(y));b=b.slice();b=A1(P,3,b);S&&(P=new Hao,S=_.V7(P,13,S),P=new uka,S=_.U_(P,2,S),P=new cra,S=_.U_(P,1,S),S=_.R2(S,2,9),_.U_(b,18,S));h&&_.GE(b,14,h);return b};IY.prototype.currBackoffCount_=0;IY.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
IY.prototype.getValue=function(){return this.currValue_};
var W27=function(b){b.currBaseValue_=Math.min(b.maxValue_,b.currBaseValue_*b.backoffFactor_);b.currValue_=Math.min(b.maxValue_,b.currBaseValue_+(b.randomFactor_?Math.round(b.randomFactor_*(Math.random()-.5)*2*b.currBaseValue_):0));b.currBackoffCount_++};var Rda=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b,8)};
_.z(Rda,_.ZL);var Ara=_.WM(Rda);var zde=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(zde,_.ZL);var Wm;Wm=new DA8;var AU=function(b){_.ED.call(this);var h=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9879_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$9879_sendBeaconApiEnabled=!1;this.logSource=b.logSource;this.getAuthHeaderValue=
b.getAuthHeaderValue||function(){};
this.logRequestBuilder=new DoW(b.logSource,b.isServiceWorkerScope);this.network=b.network||null;this.productID=b.productID||null;this.bufferSize=1E3;this.clearcutUrl=b.urlOverride||null;this.sessionIndex=b.sessionIndex||null;this.disableAutomaticFlush=b.disableAutomaticFlush||!1;this.withCredentials=!b.disableWithCredentials;this.isServiceWorkerScope=b.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!QX()&&!!QX().navigator&&QX().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(UoP())).searchParams&&!!(new URL(UoP())).searchParams.set;var y=rrb(new Dy);zuo(this.logRequestBuilder,y);this.flushBackoff=new IY(1E4,3E5,.1);b=psG(this,b.backgroundJobDeferrer);this.JSC$9879_flushTimer=new R6(this.flushBackoff.getValue(),b);this.backupTimer=new R6(6E5,b);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){Jr7(h);
var S;(S=h.metalogService)==null||S.flush()}}),document.addEventListener("pagehide",function(){Jr7(h);
var S;(S=h.metalogService)==null||S.flush()}))};
_.z(AU,_.ED);var psG=function(b,h){return b.isBrowserSupported?h?function(){h().then(function(){b.flush()})}:function(){b.flush()}:function(){}};
AU.prototype.disposeInternal=function(){Jr7(this);this.JSC$9879_flushTimer.stop();this.backupTimer.stop();_.ED.prototype.disposeInternal.call(this)};
var euW=function(b){b.clearcutUrl||(b.clearcutUrl=UoP());try{return(new URL(b.clearcutUrl)).toString()}catch(h){return(new URL(b.clearcutUrl,QX().location.origin)).toString()}};
AU.prototype.dispatch=function(b){if(b instanceof _.I6)this.log(b);else try{var h=new _.I6,y=b.serialize();var S=_.kb(h,8,y);this.log(S)}catch(F){U6(this,4,1)}};
var U6=function(b,h,y){b.metalogService&&b.metalogService.increment(h,y)};
AU.prototype.log=function(b){U6(this,2,1);if(this.isBrowserSupported){b=b.clone();var h=this.sequencePosition++;b=_.GE(b,21,h);this.componentId&&_.kb(b,26,this.componentId);h=b;if(sNF(_.z4(h,1))==null){var y=Date.now();y=Number.isFinite(y)?y.toString():"0";_.z6(h,1,HN(y))}_.gW4(_.z4(h,15))!=null||_.GE(h,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(y=this.experimentIds.clone(),_.U_(h,16,y));U6(this,1,1);h=this.pendingEvents.length-this.bufferSize+1;h>0&&(this.pendingEvents.splice(0,h),
this.numLogsDroppedSinceLastFlush+=h,U6(this,3,h));this.pendingEvents.push(b);this.disableAutomaticFlush||this.JSC$9879_flushTimer.enabled||this.JSC$9879_flushTimer.start()}};
AU.prototype.flush=function(b,h){var y=this;if(this.pendingEvents.length===0)b&&b();else if(this.JSC$9879_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,C_8(this);else{var S=Date.now();if(this.noFlushUntilMs>S&&this.startWaitingMs<S)h&&h("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?ICa(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var F=this.pendingEvents.length,
a=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),P=this.getAuthHeaderValue();if(P&&this.lastFailedAuth===P)h&&h("stale-auth-token");else{this.pendingEvents=[];this.JSC$9879_flushTimer.enabled&&this.JSC$9879_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;S=a.serialize();var K;this.JSC$9879_compressor&&this.JSC$9879_compressor.isSupported(S.length)&&
(K=this.JSC$9879_compressor.compress(S));var n=gHM(this,S,P),X=function(N){y.flushBackoff.reset();y.JSC$9879_flushTimer.setInterval(y.flushBackoff.getValue());if(N){var t=null;try{var R=JSON.stringify(JSON.parse(N.replace(")]}'\n","")));t=Ara(R)}catch(I){}t&&(N=Number(ek(t,1,_.YW("-1"))),N>0&&(y.startWaitingMs=Date.now(),y.noFlushUntilMs=y.startWaitingMs+N),aEj(t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Wm.fieldIndex),SfN(t,Wm.fieldIndex),t=Wm.ctor?Wm.getExtensionFn(t,Wm.ctor,Wm.fieldIndex,
Wm.JSC$9059_hasMessageId):Wm.getExtensionFn(t,Wm.fieldIndex,null,Wm.JSC$9059_hasMessageId),t=t===null?void 0:t)&&(t=_.rB(t,1,-1),t!==-1&&(y.flushBackoff=new IY(t<1?1:t,3E5,.1),y.JSC$9879_flushTimer.setInterval(y.flushBackoff.getValue())))}b&&b();y.numRetriesSinceLastSuccessfulFlush=0},u=function(N,t){var R=_.NK(a,_.I6,3,_.tW());
var I=Number(ek(a,14));W27(y.flushBackoff);y.JSC$9879_flushTimer.setInterval(y.flushBackoff.getValue());N===401&&P&&(y.lastFailedAuth=P);I&&(y.numLogsDroppedSinceLastFlush+=I);t===void 0&&(t=y.isRetryable(N));t&&(y.pendingEvents=R.concat(y.pendingEvents),y.disableAutomaticFlush||y.JSC$9879_flushTimer.enabled||y.JSC$9879_flushTimer.start());U6(y,7,1);h&&h("net-send-failed",N);++y.numRetriesSinceLastSuccessfulFlush},O=function(){y.network&&y.network.send(n,X,u)};
K?K.then(function(N){U6(y,5,F);n.requestHeaders["Content-Encoding"]="gzip";n.requestHeaders["Content-Type"]="application/binary";n.body=N;n.bodyType=2;O()},function(){U6(y,6,F);
O()}):O()}}}};
var gHM=function(b,h,y){y=y===void 0?null:y;var S=S===void 0?b.withCredentials:S;var F={},a=new URL(euW(b));y&&(F.Authorization=y);b.sessionIndex&&(F["X-Goog-AuthUser"]=b.sessionIndex,a.searchParams.set("authuser",b.sessionIndex));b.pageId&&(Object.defineProperty(F,"X-Goog-PageId",{value:b.pageId}),a.searchParams.set("pageId",b.pageId));return{url:a.toString(),body:h,bodyType:1,requestHeaders:F,requestType:"POST",withCredentials:S,timeoutMillis:b.timeoutMillis}},Jr7=function(b){b.logRequestBuilder.isFinal=
!0;
b.flush();b.logRequestBuilder.isFinal=!1},C_8=function(b){s4M(b,function(h,y){h=new URL(h);
h.searchParams.set("format","json");var S=!1;try{S=QX().navigator.sendBeacon(h.toString(),y.serialize())}catch(F){}S||(b.isSendBeaconSupported=!1);return S})},s4M=function(b,h){if(b.pendingEvents.length!==0){var y=new URL(euW(b));
y.searchParams.delete("format");var S=b.getAuthHeaderValue();S&&y.searchParams.set("auth",S);y.searchParams.set("authuser",b.sessionIndex||"0");for(S=0;S<10&&b.pendingEvents.length;++S){var F=b.pendingEvents.slice(0,32),a=b.logRequestBuilder.build(F,b.numLogsDroppedSinceLastFlush,b.numRetriesSinceLastSuccessfulFlush,b.productID,b.persistedLogRecoveredCount,b.persistedLogExpiredCount);if(!h(y.toString(),a)){++b.numRetriesSinceLastSuccessfulFlush;break}b.numLogsDroppedSinceLastFlush=0;b.numRetriesSinceLastSuccessfulFlush=
0;b.persistedLogRecoveredCount=0;b.persistedLogExpiredCount=0;b.pendingEvents=b.pendingEvents.slice(F.length)}b.JSC$9879_flushTimer.enabled&&b.JSC$9879_flushTimer.stop()}};
AU.prototype.isRetryable=function(b){return 500<=b&&b<600||b===401||b===0};
var UoP=function(){return"https://play.google.com/log?format=json&hasfast=true"};var Y5b=function(){this.abortSupported=typeof AbortController!=="undefined"};
Y5b.prototype.send=function(b,h,y){var S=this,F,a,P,K,n,X,u,O,N,t;return _.Z(function(R){switch(R.nextAddress){case 1:return a=(F=S.abortSupported?new AbortController:void 0)?setTimeout(function(){F.abort()},b.timeoutMillis):void 0,_.WE(R,2,3),P=Object.assign({},{method:b.requestType,
headers:Object.assign({},b.requestHeaders)},b.body&&{body:b.body},b.withCredentials&&{credentials:"include"},{signal:b.timeoutMillis&&F?F.signal:null}),R.yield(fetch(b.url,P),5);case 5:K=R.yieldResult;if(K.status!==200){(n=y)==null||n(K.status);R.jumpTo(3);break}if((X=h)==null){R.jumpTo(7);break}return R.yield(K.text(),8);case 8:X(R.yieldResult);case 7:case 3:_.U3(R);clearTimeout(a);_.Jk(R,0);break;case 2:u=_.C$(R);switch((O=u)==null?void 0:O.name){case "AbortError":(N=y)==null||N(408);break;default:(t=
y)==null||t(400)}R.jumpTo(3)}})};
Y5b.prototype.getTransmissionType=function(){return 4};_.UD=function(b,h){h=h===void 0?"0":h;_.ED.call(this);this.logSource=b;this.sessionIndex=h;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9897_clearExperimentIds=this.productID=null;this.JSC$9897_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.z(_.UD,_.ED);var rjN=function(b,h){b.buildLabel=h;return b},tRk=function(b,h){b.network=h;
return b},Rp5=function(b,h){b.JSC$9897_clearExperimentIds=h},NHq=function(b){b.JSC$9897_sendBeaconApiEnabled=!0;
return b};
_.UD.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.UD.prototype.build=function(){this.network||(this.network=new Y5b);var b=new AU({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.Dhf,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.pq(this,b);if(this.buildLabel){var h=this.buildLabel,y=
Bm(b.logRequestBuilder);_.kb(y,7,h)}b.JSC$9879_compressor=new nHo;this.componentId&&(b.componentId=this.componentId);this.productID&&(b.productID=this.productID);this.pageId&&(b.pageId=this.pageId);this.JSC$9897_clearExperimentIds&&((y=this.JSC$9897_clearExperimentIds)?(b.experimentIds||(b.experimentIds=new XsP),h=b.experimentIds,y=y.serialize(),_.kb(h,4,y)):b.experimentIds&&_.z6(b.experimentIds,4));this.JSC$9897_sendBeaconApiEnabled&&(b.JSC$9879_sendBeaconApiEnabled=b.isSendBeaconSupported);BsM(b.logRequestBuilder);
this.bufferSize&&(b.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(b);return b};var IIk=function(b,h,y,S,F,a,P){b=b===void 0?-1:b;h=h===void 0?"":h;y=y===void 0?"":y;S=S===void 0?!1:S;F=F===void 0?"":F;_.ED.call(this);this.logSource=b;this.componentId=h;a?h=a:(b=new _.UD(b,"0"),b.componentId=h,_.pq(this,b),y!==""&&(b.destinationUrl=y),S&&(b.serviceWorkerScopeEnabled=!0),F&&rjN(b,F),P&&tRk(b,P),h=b.build());this.JSC$9901_transport=h};
_.z(IIk,_.ED);IIk.prototype.flush=function(b){b=b||[];if(b.length){for(var h=new aCW,y=[],S=0;S<b.length;S++){var F=b[S],a=$oM(F);y.push(a);F.clear()}A1(h,1,y);this.JSC$9901_transport.dispatch(h);this.JSC$9901_transport.flush()}};var TsM=function(b){this.cellValue=b};var pv=function(b,h,y){this.JSC$9906_metricName=b;this.cellType=h;this.fields=y||[];this.cellMap=new Map},j4b=function(b){return b.fields.map(function(h){return h.fieldType})},doa=function(b){return b.fields.map(function(h){return h.fieldName})};
_.d=pv.prototype;_.d.addCell=function(b){var h=_.x$.apply(1,arguments),y=this.getCells(h);y?y.push(new TsM(b)):this.JSC$9906_setCell(b,h)};
_.d.JSC$9906_setCell=function(b){var h=this.JSC$9906_getKey(_.x$.apply(1,arguments));this.cellMap.set(h,[new TsM(b)])};
_.d.getCells=function(){var b=this.JSC$9906_getKey(_.x$.apply(0,arguments));return this.cellMap.has(b)?this.cellMap.get(b):void 0};
_.d.getCell=function(){var b=this.getCells(_.x$.apply(0,arguments));return b&&b.length?b[0]:void 0};
_.d.clear=function(){this.cellMap.clear()};
_.d.JSC$9906_getKey=function(){var b=_.x$.apply(0,arguments);return b?b.join(","):"key"};var Gr8=function(b,h){pv.call(this,b,3,h)};
_.z(Gr8,pv);Gr8.prototype.JSC$9909_incrementCounterBy=function(b){var h=_.x$.apply(1,arguments),y=0,S=this.getCell(h);S&&(y=S.cellValue);this.JSC$9906_setCell(y+b,h)};var krb=function(b,h){pv.call(this,b,2,h)};
_.z(krb,pv);krb.prototype.record=function(b){this.addCell(b,_.x$.apply(1,arguments))};_.JU=function(b){this.id=b};
_.JU.prototype.toString=function(){return this.id};_.eW=function(b,h){this.type=b instanceof _.JU?String(b):b;this.currentTarget=this.target=h;this.defaultPrevented=this.propagationStopped_=!1};
_.eW.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.eW.prototype.preventDefault=function(){this.defaultPrevented=!0};_.Cv=function(b,h){_.eW.call(this,b?b.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;b&&this.init(b,h)};
_.Pv(_.Cv,_.eW);
_.Cv.prototype.init=function(b,h){var y=this.type=b.type,S=b.changedTouches&&b.changedTouches.length?b.changedTouches[0]:null;this.target=b.target||b.srcElement;this.currentTarget=h;h=b.relatedTarget;h||(y=="mouseover"?h=b.fromElement:y=="mouseout"&&(h=b.toElement));this.relatedTarget=h;S?(this.clientX=S.clientX!==void 0?S.clientX:S.pageX,this.clientY=S.clientY!==void 0?S.clientY:S.pageY,this.screenX=S.screenX||0,this.screenY=S.screenY||0):(this.offsetX=_.Hv||b.offsetX!==void 0?b.offsetX:b.layerX,
this.offsetY=_.Hv||b.offsetY!==void 0?b.offsetY:b.layerY,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.button=b.button;this.keyCode=b.keyCode||0;this.key=b.key||"";this.charCode=b.charCode||(y=="keypress"?b.keyCode:0);this.ctrlKey=b.ctrlKey;this.altKey=b.altKey;this.shiftKey=b.shiftKey;this.metaKey=b.metaKey;this.pointerId=b.pointerId||0;this.pointerType=b.pointerType;this.state=b.state;
this.timeStamp=b.timeStamp;this.event_=b;b.defaultPrevented&&_.Cv.superClass_.preventDefault.call(this)};
_.Cv.prototype.isButton=function(b){return this.event_.button==b};
_.Cv.prototype.stopPropagation=function(){_.Cv.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.Cv.prototype.preventDefault=function(){_.Cv.superClass_.preventDefault.call(this);var b=this.event_;b.preventDefault?b.preventDefault():b.returnValue=!1};var Vhe="closure_listenable_"+(Math.random()*1E6|0),gb=function(b){return!(!b||!b[Vhe])};var EHa=0;var iaG=function(b,h,y,S,F){this.listener=b;this.proxy=null;this.src=h;this.type=y;this.capture=!!S;this.handler=F;this.key=++EHa;this.removed=this.callOnce=!1},fC7=function(b){b.removed=!0;
b.listener=null;b.proxy=null;b.src=null;b.handler=null};AW.prototype.add=function(b,h,y,S,F){var a=b.toString();b=this.listeners[a];b||(b=this.listeners[a]=[],this.typeCount_++);var P=ws8(b,h,S,F);P>-1?(h=b[P],y||(h.callOnce=!1)):(h=new iaG(h,this.src,a,!!S,F),h.callOnce=y,b.push(h));return h};
AW.prototype.remove=function(b,h,y,S){b=b.toString();if(!(b in this.listeners))return!1;var F=this.listeners[b];h=ws8(F,h,y,S);return h>-1?(fC7(F[h]),_.Uyk(F,h),F.length==0&&(delete this.listeners[b],this.typeCount_--),!0):!1};
var lCe=function(b,h){var y=h.type;if(!(y in b.listeners))return!1;var S=_.Gk(b.listeners[y],h);S&&(fC7(h),b.listeners[y].length==0&&(delete b.listeners[y],b.typeCount_--));return S};
AW.prototype.removeAll=function(b){b=b&&b.toString();var h=0,y;for(y in this.listeners)if(!b||y==b){for(var S=this.listeners[y],F=0;F<S.length;F++)++h,fC7(S[F]);delete this.listeners[y];this.typeCount_--}return h};
AW.prototype.getListener=function(b,h,y,S){b=this.listeners[b.toString()];var F=-1;b&&(F=ws8(b,h,y,S));return F>-1?b[F]:null};
AW.prototype.hasListener=function(b,h){var y=b!==void 0,S=y?b.toString():"",F=h!==void 0;return _.lR.some(this.listeners,function(a){for(var P=0;P<a.length;++P)if(!(y&&a[P].type!=S||F&&a[P].capture!=h))return!0;return!1})};
var ws8=function(b,h,y,S){for(var F=0;F<b.length;++F){var a=b[F];if(!a.removed&&a.listener==h&&a.capture==!!y&&a.handler==S)return F}return-1};var q58,xo5,Q4G,vHa,blb,zK,D1,SWa,hrW,yiM,s6,F$o,moN;q58="closure_lm_"+(Math.random()*1E6|0);xo5={};Q4G=0;_.W3=function(b,h,y,S,F){if(S&&S.once)return zK(b,h,y,S,F);if(Array.isArray(h)){for(var a=0;a<h.length;a++)_.W3(b,h[a],y,S,F);return null}y=moN(y);return gb(b)?b.listen(h,y,_.lf(S)?!!S.capture:!!S,F):vHa(b,h,y,!1,S,F)};
vHa=function(b,h,y,S,F,a){if(!h)throw Error("va");var P=_.lf(F)?!!F.capture:!!F,K=s6(b);K||(b[q58]=K=new AW(b));y=K.add(h,y,S,P,a);if(y.proxy)return y;S=blb();y.proxy=S;S.src=b;S.listener=y;if(b.addEventListener)_.h25||(F=P),F===void 0&&(F=!1),b.addEventListener(h.toString(),S,F);else if(b.attachEvent)b.attachEvent(hrW(h.toString()),S);else if(b.addListener&&b.removeListener)b.addListener(S);else throw Error("wa");Q4G++;return y};
blb=function(){var b=yiM,h=function(y){return b.call(h.src,h.listener,y)};
return h};
zK=function(b,h,y,S,F){if(Array.isArray(h)){for(var a=0;a<h.length;a++)zK(b,h[a],y,S,F);return null}y=moN(y);return gb(b)?b.listenOnce(h,y,_.lf(S)?!!S.capture:!!S,F):vHa(b,h,y,!0,S,F)};
_.Yy=function(b,h,y,S,F){if(Array.isArray(h))for(var a=0;a<h.length;a++)_.Yy(b,h[a],y,S,F);else S=_.lf(S)?!!S.capture:!!S,y=moN(y),gb(b)?b.unlisten(h,y,S,F):b&&(b=s6(b))&&(h=b.getListener(h,y,S,F))&&D1(h)};
D1=function(b){if(typeof b==="number"||!b||b.removed)return!1;var h=b.src;if(gb(h))return lCe(h.eventTargetListeners_,b);var y=b.type,S=b.proxy;h.removeEventListener?h.removeEventListener(y,S,b.capture):h.detachEvent?h.detachEvent(hrW(y),S):h.addListener&&h.removeListener&&h.removeListener(S);Q4G--;(y=s6(h))?(lCe(y,b),y.typeCount_==0&&(y.src=null,h[q58]=null)):fC7(b);return!0};
SWa=function(b,h,y,S,F){y=moN(y);S=!!S;return gb(b)?b.getListener(h,y,S,F):b?(b=s6(b))?b.getListener(h,y,S,F):null:null};
hrW=function(b){return b in xo5?xo5[b]:xo5[b]="on"+b};
yiM=function(b,h){if(b.removed)b=!0;else{h=new _.Cv(h,this);var y=b.listener,S=b.handler||b.src;b.callOnce&&D1(b);b=y.call(S,h)}return b};
s6=function(b){b=b[q58];return b instanceof AW?b:null};
F$o="__closure_events_fn_"+(Math.random()*1E9>>>0);moN=function(b){if(typeof b==="function")return b;b[F$o]||(b[F$o]=function(h){return b.handleEvent(h)});
return b[F$o]};_.TI=function(){_.ED.call(this);this.eventTargetListeners_=new AW(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.Pv(_.TI,_.ED);_.TI.prototype[Vhe]=!0;_.d=_.TI.prototype;_.d.setParentEventTarget=function(b){this.parentEventTarget_=b};
_.d.addEventListener=function(b,h,y,S){_.W3(this,b,h,y,S)};
_.d.removeEventListener=function(b,h,y,S){_.Yy(this,b,h,y,S)};
_.d.dispatchEvent=function(b){var h,y=this.parentEventTarget_;if(y)for(h=[];y;y=y.parentEventTarget_)h.push(y);y=this.actualEventTarget_;var S=b.type||b;if(typeof b==="string")b=new _.eW(b,y);else if(b instanceof _.eW)b.target=b.target||y;else{var F=b;b=new _.eW(S,y);_.lR.extend(b,F)}F=!0;var a;if(h)for(a=h.length-1;!b.propagationStopped_&&a>=0;a--){var P=b.currentTarget=h[a];F=ab5(P,S,!0,b)&&F}b.propagationStopped_||(P=b.currentTarget=y,F=ab5(P,S,!0,b)&&F,b.propagationStopped_||(F=ab5(P,S,!1,b)&&
F));if(h)for(a=0;!b.propagationStopped_&&a<h.length;a++)P=b.currentTarget=h[a],F=ab5(P,S,!1,b)&&F;return F};
_.d.disposeInternal=function(){_.TI.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.d.listen=function(b,h,y,S){return this.eventTargetListeners_.add(String(b),h,!1,y,S)};
_.d.listenOnce=function(b,h,y,S){return this.eventTargetListeners_.add(String(b),h,!0,y,S)};
_.d.unlisten=function(b,h,y,S){return this.eventTargetListeners_.remove(String(b),h,y,S)};
_.d.removeAllListeners=function(b){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(b):0};
var ab5=function(b,h,y,S){h=b.eventTargetListeners_.listeners[String(h)];if(!h)return!0;h=h.concat();for(var F=!0,a=0;a<h.length;++a){var P=h[a];if(P&&!P.removed&&P.capture==y){var K=P.listener,n=P.handler||P.src;P.callOnce&&lCe(b.eventTargetListeners_,P);F=K.call(n,S)!==!1&&F}}return F&&!S.defaultPrevented};
_.TI.prototype.getListener=function(b,h,y,S){return this.eventTargetListeners_.getListener(String(b),h,y,S)};
_.TI.prototype.hasListener=function(b,h){return this.eventTargetListeners_.hasListener(b!==void 0?String(b):void 0,h)};var ie=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(b){return b&&AsyncContext.Snapshot.wrap(b)}:function(b){return b};var dUG=function(b,h){this.create_=b;this.reset_=h;this.occupants_=0;this.JSC$9941_head_=null};
dUG.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var b=this.JSC$9941_head_;this.JSC$9941_head_=b.next;b.next=null}else b=this.create_();return b};
dUG.prototype.put=function(b){this.reset_(b);this.occupants_<100&&(this.occupants_++,b.next=this.JSC$9941_head_,this.JSC$9941_head_=b)};var jeo=function(){this.workTail_=this.workHead_=null};
jeo.prototype.add=function(b,h){var y=MR4.get();y.set(b,h);this.workTail_?this.workTail_.next=y:this.workHead_=y;this.workTail_=y};
jeo.prototype.remove=function(){var b=null;this.workHead_&&(b=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),b.next=null);return b};
var MR4=new dUG(function(){return new $Uw},function(b){return b.reset()}),$Uw=function(){this.next=this.scope=this.fn=null};
$Uw.prototype.set=function(b,h){this.fn=b;this.scope=h;this.next=null};
$Uw.prototype.reset=function(){this.next=this.scope=this.fn=null};var L$W,n0f,o0Y,Pn8;n0f=!1;o0Y=new jeo;_.fv=function(b,h){L$W||Pn8();n0f||(L$W(),n0f=!0);o0Y.add(b,h)};
Pn8=function(){var b=Promise.resolve(void 0);L$W=function(){b.then(X95)}};var K$W=function(b){b.prototype.$goog_Thenable=!0},Zl8=function(b){if(!b)return!1;
try{return!!b.$goog_Thenable}catch(h){return!1}};var oZa,MYw,nZa,HlN,u5M,Olw,cie,DU8,AiG,BgG,v5y;_.Uu=function(b,h){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(b!=_.C8)try{var y=this;b.call(h,function(S){y.resolve_(2,S)},function(S){y.resolve_(3,S)})}catch(S){this.resolve_(3,S)}};
oZa=function(){this.next=this.context=this.JSC$9952_onRejected=this.JSC$9952_onFulfilled=this.child=null;this.always=!1};
oZa.prototype.reset=function(){this.context=this.JSC$9952_onRejected=this.JSC$9952_onFulfilled=this.child=null;this.always=!1};
MYw=new dUG(function(){return new oZa},function(b){b.reset()});
nZa=function(b,h,y){var S=MYw.get();S.JSC$9952_onFulfilled=b;S.JSC$9952_onRejected=h;S.context=y;return S};
_.$p=function(b){if(b instanceof _.Uu)return b;var h=new _.Uu(_.C8);h.resolve_(2,b);return h};
_.UQ=function(b){return new _.Uu(function(h,y){y(b)})};
HlN=function(b,h,y){X4b(b,h,y,null)||_.fv(_.X8(h,b))};
_.wb=function(b){return new _.Uu(function(h,y){var S=b.length,F=[];if(S)for(var a=function(X,u){S--;F[X]=u;S==0&&h(F)},P=function(X){y(X)},K,n=0;n<b.length;n++)K=b[n],HlN(K,_.X8(a,n),P);
else h(F)})};
u5M=function(b){return new _.Uu(function(h){var y=b.length,S=[];if(y)for(var F=function(K,n,X){y--;S[K]=n?{fulfilled:!0,value:X}:{fulfilled:!1,reason:X};y==0&&h(S)},a,P=0;P<b.length;P++)a=b[P],HlN(a,_.X8(F,P,!0),_.X8(F,P,!1));
else h(S)})};
Olw=function(b){return new _.Uu(function(h,y){var S=b.length,F=[];if(S)for(var a=function(X){h(X)},P=function(X,u){S--;
F[X]=u;S==0&&y(F)},K,n=0;n<b.length;n++)K=b[n],HlN(K,a,_.X8(P,n));
else h(void 0)})};
_.wS=function(){var b,h,y=new _.Uu(function(S,F){b=S;h=F});
return new Ng7(y,b,h)};
_.Uu.prototype.then=function(b,h,y){return tY8(this,ie(typeof b==="function"?b:null),ie(typeof h==="function"?h:null),y)};
K$W(_.Uu);cie=function(b,h,y,S){ria(b,nZa(h||_.C8,y||null,S))};
_.le=function(b,h){h=ie(h);h=nZa(h,h);h.always=!0;ria(b,h);return b};
_.Uu.prototype.finally=function(b){var h=this;b=ie(b);return new _.Uu(function(y,S){cie(h,function(F){b();y(F)},function(F){b();
S(F)})})};
_.Uu.prototype.thenCatch=function(b,h){return tY8(this,null,ie(b),h)};
_.Uu.prototype.catch=_.Uu.prototype.thenCatch;_.Uu.prototype.cancel=function(b){if(this.state_==0){var h=new _.GR(b);_.fv(function(){Rr8(this,h)},this)}};
var Rr8=function(b,h){if(b.state_==0)if(b.parent_){var y=b.parent_;if(y.callbackEntries_){for(var S=0,F=null,a=null,P=y.callbackEntries_;P&&(P.always||(S++,P.child==b&&(F=P),!(F&&S>1)));P=P.next)F||(a=P);F&&(y.state_==0&&S==1?Rr8(y,h):(a?(S=a,S.next==y.callbackEntriesTail_&&(y.callbackEntriesTail_=S),S.next=S.next.next):zra(y),DU8(y,F,3,h)))}b.parent_=null}else b.resolve_(3,h)},ria=function(b,h){b.callbackEntries_||b.state_!=2&&b.state_!=3||IbM(b);
b.callbackEntriesTail_?b.callbackEntriesTail_.next=h:b.callbackEntries_=h;b.callbackEntriesTail_=h},tY8=function(b,h,y,S){var F=nZa(null,null,null);
F.child=new _.Uu(function(a,P){F.JSC$9952_onFulfilled=h?function(K){try{var n=h.call(S,K);a(n)}catch(X){P(X)}}:a;
F.JSC$9952_onRejected=y?function(K){try{var n=y.call(S,K);n===void 0&&K instanceof _.GR?P(K):a(n)}catch(X){P(X)}}:P});
F.child.parent_=b;ria(b,F);return F.child};
_.Uu.prototype.unblockAndFulfill_=function(b){this.state_=0;this.resolve_(2,b)};
_.Uu.prototype.unblockAndReject_=function(b){this.state_=0;this.resolve_(3,b)};
_.Uu.prototype.resolve_=function(b,h){this.state_==0&&(this===h&&(b=3,h=new TypeError("xa")),this.state_=1,X4b(h,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=h,this.state_=b,this.parent_=null,IbM(this),b!=3||h instanceof _.GR||BgG(this,h)))};
var X4b=function(b,h,y,S){if(b instanceof _.Uu)return cie(b,h,y,S),!0;if(Zl8(b))return b.then(h,y,S),!0;if(_.lf(b))try{var F=b.then;if(typeof F==="function")return W$W(b,F,h,y,S),!0}catch(a){return y.call(S,a),!0}return!1},W$W=function(b,h,y,S,F){var a=!1,P=function(n){a||(a=!0,y.call(F,n))},K=function(n){a||(a=!0,S.call(F,n))};
try{h.call(b,P,K)}catch(n){K(n)}},IbM=function(b){b.executing_||(b.executing_=!0,_.fv(b.executeCallbacks_,b))},zra=function(b){var h=null;
b.callbackEntries_&&(h=b.callbackEntries_,b.callbackEntries_=h.next,h.next=null);b.callbackEntries_||(b.callbackEntriesTail_=null);return h};
_.Uu.prototype.executeCallbacks_=function(){for(var b;b=zra(this);)DU8(this,b,this.state_,this.result_);this.executing_=!1};
DU8=function(b,h,y,S){if(y==3&&h.JSC$9952_onRejected&&!h.always)for(;b&&b.hadUnhandledRejection_;b=b.parent_)b.hadUnhandledRejection_=!1;if(h.child)h.child.parent_=null,AiG(h,y,S);else try{h.always?h.JSC$9952_onFulfilled.call(h.context):AiG(h,y,S)}catch(F){v5y.call(null,F)}MYw.put(h)};
AiG=function(b,h,y){h==2?b.JSC$9952_onFulfilled.call(b.context,y):b.JSC$9952_onRejected&&b.JSC$9952_onRejected.call(b.context,y)};
BgG=function(b,h){b.hadUnhandledRejection_=!0;_.fv(function(){b.hadUnhandledRejection_&&v5y.call(null,h)})};
v5y=Fn;_.GR=function(b){_.bf.call(this,b)};
_.Pv(_.GR,_.bf);_.GR.prototype.name="cancel";var Ng7=function(b,h,y){this.promise=b;this.resolve=h;this.reject=y};var qk;_.I0=function(b,h){_.TI.call(this);this.JSC$9964_interval_=b||1;this.timerObject_=h||_.S5;this.boundTick_=(0,_.i5)(this.tick_,this);this.last_=_.LF()};
_.Pv(_.I0,_.TI);_.d=_.I0.prototype;_.d.enabled=!1;_.d.JSC$9966_timer_=null;_.d.setInterval=function(b){this.JSC$9964_interval_=b;this.JSC$9966_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$9966_timer_&&this.stop()};
_.d.tick_=function(){if(this.enabled){var b=_.LF()-this.last_;b>0&&b<this.JSC$9964_interval_*.8?this.JSC$9966_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9964_interval_-b):(this.JSC$9966_timer_&&(this.timerObject_.clearTimeout(this.JSC$9966_timer_),this.JSC$9966_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.d.start=function(){this.enabled=!0;this.JSC$9966_timer_||(this.JSC$9966_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9964_interval_),this.last_=_.LF())};
_.d.stop=function(){this.enabled=!1;this.JSC$9966_timer_&&(this.timerObject_.clearTimeout(this.JSC$9966_timer_),this.JSC$9966_timer_=null)};
_.d.disposeInternal=function(){_.I0.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
qk=function(b,h,y){if(typeof b==="function")y&&(b=(0,_.i5)(b,y));else if(b&&typeof b.handleEvent=="function")b=(0,_.i5)(b.handleEvent,b);else throw Error("ya");return Number(h)>2147483647?-1:_.S5.setTimeout(b,h||0)};
_.UUa=function(b){var h=null;return(new _.Uu(function(y,S){h=qk(function(){y(void 0)},b);
h==-1&&S(Error("za"))})).thenCatch(function(y){_.S5.clearTimeout(h);
throw y;})};var JW=function(b){_.ED.call(this);this.streamzLogger=b;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$9970_flushTimer=new _.I0(this.flushInterval);this.JSC$9970_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.pq(this,this.JSC$9970_flushTimer)};
_.z(JW,_.ED);JW.prototype.sendIsolatedPayload=function(b){this.shouldSendIsolatedPayload=b;this.invocationLimit=1};
var p48=function(b){b.JSC$9970_flushTimer.enabled||b.JSC$9970_flushTimer.start();b.invocationCount++;b.invocationCount>=b.invocationLimit&&b.snapshotAndFlush()};
JW.prototype.snapshotAndFlush=function(){var b=this.metricMap.values();b=[].concat(_.f$(b)).filter(function(h){return h.cellMap.size});
b.length&&this.streamzLogger.flush(b,this.shouldSendIsolatedPayload);Jib(b);this.invocationCount=0;this.JSC$9970_flushTimer.enabled&&this.JSC$9970_flushTimer.stop()};
JW.prototype.addNewCounter=function(b){var h=_.x$.apply(1,arguments);this.metricMap.has(b)||this.metricMap.set(b,new Gr8(b,h))};
JW.prototype.addNewEventMetric=function(b){var h=_.x$.apply(1,arguments);this.metricMap.has(b)||this.metricMap.set(b,new krb(b,h))};
var er8=function(b,h){return b.disabledMetrics.has(h)?void 0:b.metricMap.get(h)};
JW.prototype.JSC$9970_incrementCounter=function(b){this.JSC$9970_incrementCounterBy(b,1,_.x$.apply(1,arguments))};
JW.prototype.JSC$9970_incrementCounterBy=function(b,h){var y=_.x$.apply(2,arguments),S=er8(this,b);S&&S instanceof Gr8&&(S.JSC$9909_incrementCounterBy(h,y),p48(this))};
JW.prototype.record=function(b,h){var y=_.x$.apply(2,arguments),S=er8(this,b);S&&S instanceof krb&&(S.record(h,y),p48(this))};
var Jib=function(b){for(var h=0;h<b.length;h++)b[h].clear()};_.xy=function(b,h,y){y=y===void 0?{}:y;h=Error.call(this,h);this.message=h.message;"stack"in h&&(this.stack=h.stack);this.code=b;this.metadata=y;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.z(_.xy,Error);_.xy.prototype.toString=function(){var b="RpcError("+(uS4(this.code)||String(this.code))+")";this.message&&(b+=": "+this.message);return b};_.CnP=_.S5.JSON.parse;_.Q4=_.S5.JSON.stringify;_.Dn=_.S5.JSON.parse;_.gZG=function(b){switch(b){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 se8=function(b){switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var YWN,Tg8=function(){};
_.Pv(Tg8,_.On4);Tg8.prototype.createInstance=function(){return new XMLHttpRequest};
YWN=new Tg8;_.mX=function(b){_.TI.call(this);this.headers=new Map;this.JSC$9979_xmlHttpFactory_=b||null;this.JSC$9979_active_=!1;this.JSC$9979_xhr_=null;this.JSC$9979_lastUri_="";this.JSC$9979_lastErrorCode_=0;this.JSC$9979_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$9979_timeoutId_=null;this.responseType_="";this.JSC$9979_withCredentials_=!1};
_.Pv(_.mX,_.TI);var Gwe=/^https?$/i,kw7=["POST","PUT"],VYo=[],SR4=function(b,h,y,S,F,a,P){var K=new _.mX;VYo.push(K);h&&K.listen("complete",h);K.listenOnce("ready",K.cleanupSend_);a&&(K.timeoutInterval_=Math.max(0,a));P&&(K.JSC$9979_withCredentials_=P);K.send(b,y,S,F)};
_.mX.prototype.cleanupSend_=function(){this.dispose();_.Gk(VYo,this)};
_.mX.prototype.send=function(b,h,y,S){if(this.JSC$9979_xhr_)throw Error("Aa`"+this.JSC$9979_lastUri_+"`"+b);h=h?h.toUpperCase():"GET";this.JSC$9979_lastUri_=b;this.JSC$9979_lastError_="";this.JSC$9979_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$9979_active_=!0;this.JSC$9979_xhr_=this.createXhr();this.JSC$9979_xhr_.onreadystatechange=ie((0,_.i5)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$9979_xhr_.open(h,String(b),!0),this.inOpen_=!1}catch(P){EZW(this,P);return}b=y||"";y=new Map(this.headers);
if(S)if(Object.getPrototypeOf(S)===Object.prototype)for(var F in S)y.set(F,S[F]);else if(typeof S.keys==="function"&&typeof S.get==="function"){F=_.L(S.keys());for(var a=F.next();!a.done;a=F.next())a=a.value,y.set(a,S.get(a))}else throw Error("Ba`"+String(S));S=Array.from(y.keys()).find(function(P){return"content-type"==P.toLowerCase()});
F=_.S5.FormData&&b instanceof _.S5.FormData;!_.sj(kw7,h)||S||F||y.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");h=_.L(y);for(S=h.next();!S.done;S=h.next())y=_.L(S.value),S=y.next().value,y=y.next().value,this.JSC$9979_xhr_.setRequestHeader(S,y);this.responseType_&&(this.JSC$9979_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$9979_xhr_&&this.JSC$9979_xhr_.withCredentials!==this.JSC$9979_withCredentials_&&(this.JSC$9979_xhr_.withCredentials=this.JSC$9979_withCredentials_);
try{this.JSC$9979_timeoutId_&&(clearTimeout(this.JSC$9979_timeoutId_),this.JSC$9979_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$9979_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$9979_xhr_.send(b),this.inSend_=!1}catch(P){EZW(this,P)}};
_.mX.prototype.createXhr=function(){return this.JSC$9979_xmlHttpFactory_?this.JSC$9979_xmlHttpFactory_.createInstance():YWN.createInstance()};
_.mX.prototype.timeout_=function(){typeof b4M!="undefined"&&this.JSC$9979_xhr_&&(this.JSC$9979_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$9979_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var EZW=function(b,h){b.JSC$9979_active_=!1;b.JSC$9979_xhr_&&(b.inAbort_=!0,b.JSC$9979_xhr_.abort(),b.inAbort_=!1);b.JSC$9979_lastError_=h;b.JSC$9979_lastErrorCode_=5;il8(b);fb7(b)},il8=function(b){b.errorDispatched_||(b.errorDispatched_=!0,b.dispatchEvent("complete"),b.dispatchEvent("error"))};
_.mX.prototype.abort=function(b){this.JSC$9979_xhr_&&this.JSC$9979_active_&&(this.JSC$9979_active_=!1,this.inAbort_=!0,this.JSC$9979_xhr_.abort(),this.inAbort_=!1,this.JSC$9979_lastErrorCode_=b||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),fb7(this))};
_.mX.prototype.disposeInternal=function(){this.JSC$9979_xhr_&&(this.JSC$9979_active_&&(this.JSC$9979_active_=!1,this.inAbort_=!0,this.JSC$9979_xhr_.abort(),this.inAbort_=!1),fb7(this,!0));_.mX.superClass_.disposeInternal.call(this)};
_.mX.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)w4G(this);else this.onReadyStateChangeEntryPoint_()};
_.mX.prototype.onReadyStateChangeEntryPoint_=function(){w4G(this)};
var w4G=function(b){if(b.JSC$9979_active_&&typeof b4M!="undefined")if(b.inSend_&&_.bD(b)==4)setTimeout(b.onReadyStateChange_.bind(b),0);else if(b.dispatchEvent("readystatechange"),b.isComplete()){b.JSC$9979_active_=!1;try{if(b.isSuccess())b.dispatchEvent("complete"),b.dispatchEvent("success");else{b.JSC$9979_lastErrorCode_=6;try{var h=_.bD(b)>2?b.JSC$9979_xhr_.statusText:""}catch(y){h=""}b.JSC$9979_lastError_=h+" ["+b.getStatus()+"]";il8(b)}}finally{fb7(b)}}},fb7=function(b,h){if(b.JSC$9979_xhr_){b.JSC$9979_timeoutId_&&
(clearTimeout(b.JSC$9979_timeoutId_),b.JSC$9979_timeoutId_=null);
var y=b.JSC$9979_xhr_;b.JSC$9979_xhr_=null;h||b.dispatchEvent("ready");try{y.onreadystatechange=null}catch(S){}}};
_.mX.prototype.isActive=function(){return!!this.JSC$9979_xhr_};
_.mX.prototype.isComplete=function(){return _.bD(this)==4};
_.mX.prototype.isSuccess=function(){var b=this.getStatus(),h;if(!(h=se8(b))){if(b=b===0)b=mza(String(this.JSC$9979_lastUri_)),b=!Gwe.test(b);h=b}return h};
_.bD=function(b){return b.JSC$9979_xhr_?b.JSC$9979_xhr_.readyState:0};
_.d=_.mX.prototype;_.d.getStatus=function(){try{return _.bD(this)>2?this.JSC$9979_xhr_.status:-1}catch(b){return-1}};
_.d.getResponseText=function(){try{return this.JSC$9979_xhr_?this.JSC$9979_xhr_.responseText:""}catch(b){return""}};
_.d.getResponse=function(){try{if(!this.JSC$9979_xhr_)return null;if("response"in this.JSC$9979_xhr_)return this.JSC$9979_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$9979_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$9979_xhr_)return this.JSC$9979_xhr_.mozResponseArrayBuffer}return null}catch(b){return null}};
_.d.getAllResponseHeaders=function(){return this.JSC$9979_xhr_&&_.bD(this)>=2?this.JSC$9979_xhr_.getAllResponseHeaders()||"":""};
_.d.getLastError=function(){return typeof this.JSC$9979_lastError_==="string"?this.JSC$9979_lastError_:String(this.JSC$9979_lastError_)};var cjf=function(){};
cjf.prototype.send=function(b,h,y){h=h===void 0?function(){}:h;
y=y===void 0?function(){}:y;
SR4(b.url,function(S){S=S.target;S.isSuccess()?h(S.getResponseText()):y(S.getStatus())},b.requestType,b.body,b.requestHeaders,b.timeoutMillis,b.withCredentials)};
cjf.prototype.getTransmissionType=function(){return 1};var lb5=function(b,h){this.mHv=b;this.event=h;this.startTime=eG()},Wwr;
lb5.prototype.done=function(){this.mHv.eB(this.event,eG()-this.startTime)};
var h7=function(){rb.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.z(h7,rb);_.yF=function(b,h,y){var S=eG();h=h();b.eB(y,eG()-S);return h};
Wwr=function(){h7.apply(this,arguments)};
_.z(Wwr,h7);_.d=Wwr.prototype;_.d.lLg=function(){};
_.d.nW=function(){};
_.d.eB=function(){};
_.d.logError=function(){};
_.d.jA=function(){};
_.d.vEg=function(){};
_.d.hcB=function(){};
_.d.rLX=function(){};
var qWe=function(b){h7.call(this);var h=this;this.hN=b;this.TEST_ONLY={qO6:function(){return h.hN},
getExperimentIds:function(){return h.hN.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void h.hN.dispose()})};
_.z(qWe,h7);_.d=qWe.prototype;_.d.update=function(b){this.hN.dispose();this.hN=b};
_.d.nW=function(b){this.hN.nW(b)};
_.d.eB=function(b,h){this.hN.eB(b,h)};
_.d.logError=function(b){this.hN.logError(b)};
_.d.jA=function(){this.hN.jA()};
_.d.vEg=function(b){this.hN.vEg(b)};
_.d.hcB=function(b){this.hN.hcB(b)};
_.d.rLX=function(b){this.hN.rLX(b)};
_.d.lLg=function(b){this.hN.lLg(b)};
var xUW=function(b,h){_.ED.call(this);var y=this;this.callback=b;this.f2W=h;this.sj1=-h;this.addOnDisposeCallback(function(){return void clearTimeout(y.timer)})};
_.z(xUW,_.ED);var QeP=function(b){if(b.timer===void 0){var h=Math.max(0,b.sj1+b.f2W-eG());b.timer=setTimeout(function(){try{b.callback()}finally{b.sj1=eG(),b.timer=void 0}},h)}},mU7=function(b,h){h7.call(this);
this.metrics=b;this.jF=h};
_.z(mU7,h7);_.d=mU7.prototype;_.d.lLg=function(b){this.metrics.eTP.record(b,this.jF)};
_.d.nW=function(b){this.metrics.eventCount.increment(b,this.jF)};
_.d.eB=function(b,h){this.metrics.rVQ.record(h,b,this.jF)};
_.d.logError=function(b){this.metrics.errorCount.increment(b,this.jF)};
_.d.vEg=function(b){this.metrics.byj.increment(b,this.jF)};
_.d.hcB=function(b){this.metrics.zc6.increment(b,this.jF)};
_.d.rLX=function(b){this.metrics.pJP.increment(b,this.jF)};
var Aj8=function(b,h){h=h===void 0?[]:h;var y={jF:b.jF||"_",qqW:b.qqW||[],nVy:b.nVy|0,destinationUrl:b.destinationUrl,daF:b.daF||function(){},
xxi:b.xxi||function(a,P){return BHn(a,P,y.daF,y.destinationUrl)}},S=y.xxi("52",y.qqW.concat(h));
mU7.call(this,{eTP:new JWP(S),errorCount:new sYe(S),eventCount:new C5G(S),rVQ:new gTN(S),tV8:new e9M(S),byj:new YDb(S),zc6:new TBo(S),pJP:new G$W(S)},y.jF);var F=this;this.TEST_ONLY={getExperimentIds:function(){return F.options.qqW.concat(F.duu).sort(function(a,P){return a-P})}};
this.options=y;this.service=S;this.mjL=!b.xxi;this.flushDebouncer=new xUW(function(){return void F.service.snapshotAndFlush()},y.nVy);
this.addOnDisposeCallback(function(){F.flushDebouncer.dispose();F.mjL&&F.service.dispose()});
(this.duu=h.slice()).sort(_.Cfr)};
_.z(Aj8,mU7);Aj8.prototype.jA=function(){QeP(this.flushDebouncer)};var IdU=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(IdU,_.ZL);_.BuN=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(_.BuN,_.ZL);var wx=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b,0,wx.messageId)};
_.z(wx,_.ZL);var vZw=_.hhk(wx);wx.messageId="bfkj";var yjN=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(yjN,_.ZL);var bnW=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(bnW,_.ZL);var hp5=_.WM(bnW);_.MC=function(){var b=this;this.promise=new Promise(function(h,y){b.resolve=h;b.reject=y})};_.SA=function(b){_.ED.call(this);var h=this;this.dx2=Math.floor(Math.random()*200);this.bQJ=new bnW;if("challenge"in b&&vZw(b.challenge)){var y=_.gQ(b.challenge,4,void 0,CM);var S=_.gQ(b.challenge,5,void 0,CM);_.gQ(b.challenge,7,void 0,CM)&&(this.bQJ=hp5(_.gQ(b.challenge,7,void 0,CM)))}else y=b.program,S=b.globalName;this.addOnDisposeCallback(function(){var R,I,U;return _.Z(function(p){if(p.nextAddress==1)return p.yield(h.sJg,2);R=p.yieldResult;I=R.nn2;(U=I)==null||U();_.g3(p)})});
this.fj=Ulq(b.gRB||{},this.bQJ);_.pq(this,this.fj);var F=new _.MC;this.sJg=F.promise;this.fj.nW("t");var a=this.fj.share(),P=new lb5(a,"t"),K=function(R,I,U,p){if(!h.fj.isDisposed()){var e="k";I?e="h":U&&(e="u");e!=="k"?p!==0&&(h.fj.nW(e),h.fj.eB(e,R)):h.dx2<=0?(h.fj.nW(e),h.fj.eB(e,R),h.dx2=Math.floor(Math.random()*200)):h.dx2--}},n=function(R,I,U,p){Promise.resolve().then(function(){P.done();
a.jA();a.dispose();F.resolve({sxk:R,nn2:I,n0Y:U,rLQ:p})})};
if(!_.S5[S])throw this.fj.logError(25),Error("Ca");if(!_.S5[S].a)throw this.fj.logError(26),Error("Da");try{var X=_.S5[S].a;S=[];for(var u=[],O=SMM(this.bQJ),N=0;N<O.length;N++)S.push(O[N]),u.push(1);var t=Fw5(this.bQJ);for(O=0;O<t.length;O++)S.push(t[O]),u.push(2);this.qVj=_.L(X(y,n,!0,b.rbT,K,[S,u],_.gQ(this.bQJ,5),!1)).next().value;this.h8f=F.promise.then(function(){})}catch(R){throw this.fj.logError(28),R;
}};
_.z(_.SA,_.ED);_.SA.prototype.snapshot=function(b){if(this.isDisposed())throw Error("Ea");this.fj.nW("n");var h=this.fj.share();return this.sJg.then(function(y){var S=y.sxk;return new Promise(function(F){var a=new lb5(h,"n");S(function(P){a.done();h.lLg(P.length);h.jA();h.dispose();F(P)},[b.yn,
b.g6S,b.o7r,b.b6k])})})};
_.SA.prototype.wqA=function(b){this.sJg.then(function(h){var y;(y=h.n0Y)==null||y(b)})};
_.SA.prototype.geg=function(b,h){return this.sJg.then(function(y){var S;return(S=y.rLQ)==null?void 0:S(b,h,!1)})};
_.SA.prototype.hAJ=function(){return this.fj.share()};var yjW=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(yjW,_.ZL);var Am4=_.hhk(yjW);var SM5=function(){this.promises={};this.v0z=null},Fwe=function(){SM5.instance||(SM5.instance=new SM5);
return SM5.instance},dlb=function(b,h){return aIb(b,_.cL(h,IdU,1,CM),_.cL(h,_.BuN,2,CM),_.gQ(h,3,void 0,CM))},aIb=function(b,h,y,S){if(!h&&!y)return Promise.resolve();
if(!S)return g0n(h,y);var F;(F=b.promises)[S]||(F[S]=new Promise(function(a,P){g0n(h,y).then(function(){b.v0z=S;a()},function(K){delete b.promises[S];
P(K)})}));
return b.promises[S]};var jA5=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(jA5,_.ZL);var $lW=function(b,h){return _.lq(b,1,h)},Lwb=function(b,h){return _.lq(b,2,h)};var Fi=function(b){_.ED.call(this);var h=this;this.options=b;this.npO=new _.MC;this.h8f=this.npO.promise;this.aif=new _.MC;this.xJZ=1;this.bL6=new _.MC;this.vxA=[];this.isPaused=!1;this.xae=b.xae||function(){};
this.rgS=new qWe(Ulq(b.gRB||{}));PNe(this,b.q1,b.apu,b.f2M,b.g5l,Object.assign({},Kw7,b.eHg||{}));this.addOnDisposeCallback(function(){return void ZnP(h)})};
_.z(Fi,_.ED);Fi.prototype.snapshot=function(b){var h=this;return _.Z(function(y){switch(y.nextAddress){case 1:if(h.isDisposed())throw Error("Ea");if(h.vD||h.hoX){y.jumpTo(2);break}return y.yield(h.aif.promise,2);case 2:if(!h.vD){y.jumpTo(4);break}return y.yield(h.vD.snapshot(b),5);case 5:return y.return(y.yieldResult);case 4:throw h.hoX;}})};
Fi.prototype.pause=function(){this.isDisposed()||this.isPaused||(this.isPaused=!0,this.uQ&&this.uQ.pause())};
Fi.prototype.resume=function(){!this.isDisposed()&&this.isPaused&&(this.isPaused=!1,this.uQ&&this.uQ.resume())};
Fi.prototype.checkForRefresh=function(){var b=this;return _.Z(function(h){if(b.isDisposed())throw Error("Ea");var y;if(y=b.uQ)y=b.uQ,y.isExpired()?(o08(y),y.resolver(0),y=!0):y=!1,y=!y;return y?h.jumpTo(0):h.yield(b.bL6.promise,0)})};
var n0o=function(b){var h;return _.Z(function(y){if(b.isDisposed())throw Error("Ea");(h=b.uQ)==null||MRM(h);return y.yield(b.bL6.promise,0)})},ZnP=function(b){b.hoX=Error("Ga");
b.aif.resolve();aIF(b.npO.promise);b.npO.reject(Error("Ga"));b.rgS.dispose();Promise.all(b.vxA).then(function(){var y;return _.Z(function(S){(y=b.vD)==null||y.dispose();b.vD=void 0;_.g3(S)})});
b.vxA=[];var h;(h=b.uQ)==null||MRM(h);aIF(b.bL6.promise);b.bL6.reject(Error("Ga"))};
Fi.prototype.wqA=function(b){var h,y;(h=this.vD)==null||(y=h.wqA)==null||y.call(h,b)};
Fi.prototype.geg=function(b,h){var y,S,F;return(F=(y=this.vD)==null?void 0:(S=y.geg)==null?void 0:S.call(y,b,h))!=null?F:Promise.resolve()};
var X9e=function(b,h){var y=b.xae;b.xae=function(){y();h()}},HnG=function(b,h){b.isDisposed()||(b.vD=h,b.rgS.update(h.hAJ()),b.aif.resolve(),b.npO.resolve(void 0),b.xae())};
Fi.prototype.handleError=function(b){if(!this.isDisposed()){this.hoX=b;this.aif.resolve();var h,y;(y=(h=this.options).hHl)==null||y.call(h,b)}};
var uSM=function(b,h){h&&(Promise.all(b.vxA).then(function(){return void h.dispose()}),b.vxA=[])},aE=function(b,h){b.xJZ=h;
var y,S;(S=(y=b.options).jys)==null||S.call(y,h)},OnM=function(b){b.isDisposed()||(b.bL6.resolve(),b.bL6=new _.MC)},PNe=function(b,h,y,S,F,a){S=S===void 0?Fwe():S;
F=F===void 0?Promise.resolve(void 0):F;var P,K,n,X,u,O,N,t,R,I,U,p;_.Z(function(e){switch(e.nextAddress){case 1:return e.yield(0,3);case 3:K=null;if(!P){e.jumpTo(6);break}aE(b,7);_.WE(e,7);return e.yield(G$(P.snapshot({}),a.jKv,function(){return Promise.resolve("E:CTO")}),9);
case 9:K=e.yieldResult;_.Lz(e,6);break;case 7:_.C$(e),K="E:UCE";case 6:n=void 0,X=P?a.mLR:a.o6Q,u=new IY(X,a.kVr,a.q8F,a.j0u),O=1;case 10:if(!(O<=a.maxAttempts)){e.jumpTo(12);break}if(O===1){e.jumpTo(13);break}aE(b,0);b.uQ=new dv(u.getValue(),a.gbS,a.hnd);return e.yield(b.uQ.promise,14);case 14:N=e.yieldResult,b.uQ=void 0,N===1?(O=1,u.reset()):W27(u);case 13:_.WE(e,15);t=void 0;if(y){t=y;e.jumpTo(17);break}aE(b,5);R=S.v0z;return e.yield(G$(NHN(h,R,K),a.qLQ,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:t=e.yieldResult;case 17:return aE(b,3),e.yield(G$(dlb(S,t),a.gGQ,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return aE(b,8),e.yield(F,20);case 20:return I=new _.SA({challenge:t,gRB:b.options.gRB,rbT:b.options.rbT}),e.yield(G$(I.h8f,a.uLY,function(){return Promise.reject(Error("Ja"))}),21);
case 21:n=I;e.jumpTo(12);break;case 15:U=_.C$(e),b.handleError(U),OnM(b);case 11:O++;e.jumpTo(10);break;case 12:if(b.isDisposed()){e.jumpTo(5);break}n&&(y=void 0,uSM(b,P),P=n,HnG(b,n),OnM(b));aE(b,2);b.uQ=new dv(a.f06,a.gbS,a.hnd);b.isPaused&&b.uQ.pause();return e.yield(b.uQ.promise,22);case 22:b.uQ=void 0;if(b.isDisposed()){e.jumpTo(5);break}e.jumpTo(3);break;case 5:(p=P)==null||p.dispose(),_.g3(e)}})};
Fi.prototype.hAJ=function(){return this.rgS.share()};
var Kw7={f06:432E5,gbS:3E5,hnd:10,jKv:1E4,qLQ:3E4,gGQ:3E4,uLY:6E4,o6Q:1E3,mLR:6E4,kVr:6E5,q8F:.25,j0u:2,maxAttempts:10},dv=function(b,h,y){var S=this;this.endTimeMs=0;this.eyi=null;this.isPaused=!1;this.tick=function(){if(!S.isPaused){var F=S.endTimeMs-Date.now();F<=S.w7Q?(S.eyi=null,S.resolver(0)):S.eyi=setTimeout(S.tick,Math.min(F,S.gbS))}};
this.gbS=h;this.w7Q=y;this.promise=new Promise(function(F){S.resolver=F});
tRa(this,b)},tRa=function(b,h){b.endTimeMs=Date.now()+h;
b.tick()};
dv.prototype.pause=function(){this.isPaused||(this.isPaused=!0,o08(this))};
dv.prototype.resume=function(){this.isPaused&&(this.isPaused=!1,this.tick())};
var MRM=function(b){o08(b);b.endTimeMs=0;b.isPaused=!1;b.resolver(1)},o08=function(b){b.eyi&&(clearTimeout(b.eyi),b.eyi=null)};
dv.prototype.isExpired=function(){return Date.now()>this.endTimeMs};var rjW,THr=(rjW=Math.imul)!=null?rjW:function(b,h){return b*h|0},kT=[196,
200,224,18],jA=function(b,h,y){y=y===void 0?[]:y;this.maxItems=b;this.yO=h===void 0?0:h;this.hj=y},cjo=function(b){var h=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!h)return new jA(b);var y=h.split(",");if(y.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new jA(b);h=y.slice(1);h.length===1&&h[0]===""&&(h=[]);y=Number(y[0]);return isNaN(y)||y<0||y>h.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new jA(b)):new jA(b,y,h)};
jA.prototype.serialize=function(){return String(this.yO)+","+this.hj.join()};
jA.prototype.insert=function(b,h){var y=void 0;if(this.hj[this.yO]!==b){var S=this.hj.indexOf(b);S!==-1?(this.hj.splice(S,1),S<this.yO&&this.yO--,this.hj.splice(this.yO,0,b)):(y=this.hj[this.yO],this.hj[this.yO]=b)}this.yO=(this.yO+1)%this.maxItems;b=sAr("iU5q-!O9@$",this.serialize());y&&b&&h(y);return b};
var Rpe=function(b,h){this.njq=h;try{var y=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(S){y=!1}y&&(this.index=cjo(b))},zp8=function(b,h,y,S,F){var a=b.index?_.yF(b.njq,function(){return E0n(b.index,knI(h),y,S,F)},"W"):"u";
b.njq.rLX(a)},Dle=function(b,h,y){var S=_.L(b.index?_.yF(b.njq,function(){return inj(knI(h),y)},"R"):["u"]),F=S.next().value;
S=S.next().value;b.njq.hcB(F);return S};var IIa={toString:function(b){var h=[],y=0;b-=-2147483648;h[y++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(b%52);for(b=Math.floor(b/52);b>0;)h[y++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(b%62),b=Math.floor(b/62);return h.join("")}};var Ajw=function(b){b=BHa(b);for(var h=2654435769,y=2654435769,S=314159265,F=b.length,a=F,P=0,K=function(){h-=y;h-=S;h^=S>>>13;y-=S;y-=h;y^=h<<8;S-=h;S-=y;S^=y>>>13;h-=y;h-=S;h^=S>>>12;y-=S;y-=h;y^=h<<16;S-=h;S-=y;S^=y>>>5;h-=y;h-=S;h^=S>>>3;y-=S;y-=h;y^=h<<10;S-=h;S-=y;S^=y>>>15};a>=12;a-=12,P+=12)h+=Ww8(b,P),y+=Ww8(b,P+4),S+=Ww8(b,P+8),K();
S+=F;switch(a){case 11:S+=b[P+10]<<24;case 10:S+=b[P+9]<<16;case 9:S+=b[P+8]<<8;case 8:y+=b[P+7]<<24;case 7:y+=b[P+6]<<16;case 6:y+=b[P+5]<<8;case 5:y+=b[P+4];case 4:h+=b[P+3]<<24;case 3:h+=b[P+2]<<16;case 2:h+=b[P+1]<<8;case 1:h+=b[P]}K();return IIa.toString(S)},BHa=function(b){for(var h=[],y=0;y<b.length;y++)h.push(b.charCodeAt(y));
return h},Ww8=function(b,h){return b[h]+(b[h+1]<<8)+(b[h+2]<<16)+(b[h+3]<<24)};var $u=function(b){_.ED.call(this);this.dD=b;this.nCJ=new _.MC};
_.z($u,_.ED);var UlN=function(b,h){var y=setTimeout(function(){b.nCJ.resolve()},h);
b.addOnDisposeCallback(function(){return void clearTimeout(y)})};
$u.prototype.cSO=function(b,h){var y=this.nJ(b);h==null||h(y);return _.yF(this.dD,function(){return _.CA(y,2)},this.yZg)};
var p9o=function(b,h,y,S){return _.yF(b.dD,function(){return y?b.cSO(h,S):b.nJ(h,S)},b.ySg)},JjW=function(b,h,y,S){$u.call(this,b);
this.boP=h;this.m6m=y;this.ySg="m";this.yZg="x";this.j99=0;UlN(this,S)};
_.z(JjW,$u);JjW.prototype.nJ=function(b,h){var y=this;this.dD.nW(this.ySg);++this.j99>=this.m6m&&this.nCJ.resolve();var S=b();b=_.yF(this.dD,function(){return y.boP(S)},"C");
if(b===void 0)throw new Nk(17,"YNJ:Undefined");if(!(b instanceof Uint8Array))throw new Nk(18,"ODM:Invalid");h==null||h(b);return b};
var epb=function(b,h,y){$u.call(this,b);this.mDr=h;this.ySg="f";this.yZg="z";UlN(this,y)};
_.z(epb,$u);epb.prototype.nJ=function(){return this.mDr};
var CNo=function(b,h,y){$u.call(this,b);this.qM6=h;this.ySg="w";this.yZg="z";UlN(this,y)};
_.z(CNo,$u);CNo.prototype.nJ=function(){var b=this;return _.yF(this.dD,function(){return _.h8(b.qM6)},"d")};
CNo.prototype.cSO=function(){return this.qM6};
var g0a=function(b,h){$u.call(this,b);this.error=h;this.ySg="e";this.yZg="y"};
_.z(g0a,$u);var sA8=function(b,h){var y=(h(b.error.message)+":"+h(b.error.stack)).substring(0,2048);h=y.length+1;y=fI4(y);var S=new Uint8Array(4+y.length);S.set([42,h&127|128,h>>7,b.error.code]);S.set(y,4);return S};
g0a.prototype.nJ=function(){if(this.qNk)return this.qNk;this.qNk=sA8(this,function(b){return"_"+Ajw(b)});
return sA8(this,function(b){return b})};
var YMo=function(b,h,y){$u.call(this,b);this.ysu=h;this.clientState=y;this.ySg="S";this.yZg="q"};
_.z(YMo,$u);YMo.prototype.nJ=function(){var b=Math.floor(Date.now()/1E3),h=[Math.random()*255,Math.random()*255],y=h.concat([this.ysu&255,this.clientState],[b>>24&255,b>>16&255,b>>8&255,b&255]);b=new Uint8Array(2+y.length);b[0]=34;b[1]=y.length;b.set(y,2);y=b.subarray(2);for(var S=h=h.length;S<y.length;++S)y[S]^=y[S%h];this.dD.vEg(this.clientState);return b};var TH8={ikF:3E4,wqY:2E4},LG=function(b){_.ED.call(this);var h=this;this.auS=new _.MC;this.kZb=0;this.i0=void 0;this.state=2;this.vm=b.vm;this.q1=b.q1;this.eHg=Object.assign({},TH8,b.eHg||{});this.aP=b.vm.hAJ();var y;this.onError=(y=b.onError)!=null?y:function(){};
this.spq=b.spq||!1;if(Gn7(b)){var S=this.vm;this.qtX=function(){return n0o(S).catch(function(P){P=h.reportError(new Nk(h.dG?20:32,"TRG:Disposed",P));h.i0=P;var K;(K=h.dG)==null||K.dispose();h.dG=void 0;h.auS.reject(P)})};
X9e(S,function(){return void knG(h)});
S.xJZ===2&&knG(this)}else this.qtX=b.fqE,knG(this);var F=this.aP.share();F.nW("o");var a=new lb5(F,"o");this.auS.promise.then(function(){a.done();F.jA();F.dispose()},function(){return void F.dispose()});
this.addOnDisposeCallback(function(){h.dG?(h.dG.dispose(),h.dG=void 0):h.i0?h.aP.jA():(h.i0=h.reportError(new Nk(32,"TNP:Disposed")),h.aP.jA(),h.auS.reject(h.i0))});
_.pq(this,this.aP)};
_.z(LG,_.ED);LG.prototype.k5k=function(){return this.auS.promise};
var VRW=function(b,h){if(!(h instanceof Nk))if(h instanceof _.xy){var y=Error(h.toString());y.stack=h.stack;h=new Nk(11,"EBH:Error",y)}else h=new Nk(12,"BSO:Unknown",h);return b.reportError(h)},knG=function(b){var h,y,S,F,a,P,K,n,X,u,O,N,t,R,I;
return _.Z(function(U){switch(U.nextAddress){case 1:h=void 0;b.kZb++;y=new _.MC;b.vm instanceof Fi&&b.vm.vxA.push(y.promise);if(!b.spq){U.jumpTo(2);break}S=new _.MC;setTimeout(function(){return void S.resolve()});
return U.yield(S.promise,2);case 2:return F=b.aP.share(),_.WE(U,4,5),b.state=5,a={},P=[],U.yield(G$(b.vm.snapshot({yn:a,o7r:P}),b.eHg.wqY,function(){return Promise.reject(new Nk(15,"MDA:Timeout"))}),7);
case 7:K=U.yieldResult;if(b.isDisposed())throw new Nk(b.dG?20:32,"MDA:Disposed");n=P[0];b.state=6;return U.yield(G$(E0a(b.q1,K),b.eHg.ikF,function(){return Promise.reject(new Nk(10,"BWB:Timeout"))}),8);
case 8:X=U.yieldResult;if(b.isDisposed())throw new Nk(b.dG?20:32,"BWB:Disposed");b.state=7;h=_.yF(F,function(){var e=in7(b,X,y,n);e.nCJ.promise.then(function(){return void b.qtX()});
return e},"i");
case 5:_.U3(U);F.dispose();_.Jk(U,6);break;case 4:u=_.C$(U);(O=h)==null||O.dispose();if(!b.i0){N=VRW(b,u);y.resolve();var p;if(p=b.vm instanceof Fi&&b.kZb<2)a:if(u instanceof Nk)p=u.code!==32&&u.code!==20&&u.code!==10;else{if(u instanceof _.xy)switch(u.code){case 2:case 13:case 14:case 4:break;default:p=!1;break a}p=!0}if(p)return t=(1+Math.random()*.25)*(b.dG?6E4:1E3),R=setTimeout(function(){return void b.qtX()},t),b.addOnDisposeCallback(function(){return void clearTimeout(R)}),U.return();
b.i0=N}F.logError(b.dG?13:14);b.auS.reject(b.i0);return U.return();case 6:b.state=8,b.kZb=0,(I=b.dG)==null||I.dispose(),b.dG=h,b.auS.resolve(),_.g3(U)}})},in7=function(b,h,y,S){var F=r8M(h,2)*1E3;
if(F<=0)throw new Nk(31,"TTM:Invalid");if(_.gQ(h,4))return new CNo(b.aP,_.gQ(h,4),F);if(!r8M(h,3))return new epb(b.aP,a8W(_.Bv(h,1)),F);if(!S)throw new Nk(4,"PMD:Undefined");S=S(a8W(_.Bv(h,1)));if(!(S instanceof Function))throw new Nk(16,"APF:Failed");b.n9Q=Math.floor((Date.now()+F)/1E3);b=new JjW(b.aP,S,r8M(h,3),F);b.addOnDisposeCallback(function(){return void y.resolve()});
return b};
LG.prototype.nJ=function(b){return fIM(this,Object.assign({},b),!1)};
LG.prototype.cSO=function(b){return fIM(this,Object.assign({},b),!0)};
LG.prototype.wD2=function(b){if(b>150)return!1;try{return this.cache=new Rpe(b,this.aP),!0}catch(h){return this.reportError(new Nk(22,"GBJ:init",h)),!1}};
LG.prototype.reportError=function(b){this.aP.logError(b.code);this.onError(b);return b};
var w9W=function(b,h){h=h instanceof Nk?h:new Nk(5,"TVD:error",h);return b.reportError(h)},fIM=function(b,h,y){try{if(b.isDisposed())throw new Nk(21,"BNT:disposed");
if(!b.dG&&b.i0)throw b.i0;var S,F;return(F=(S=lIa(b,h,y))!=null?S:qMw(b,h,y))!=null?F:xlw(b,h,y)}catch(a){if(!h.gkt)throw w9W(b,a);return QAe(b,y,a)}},lIa=function(b,h,y){var S;
return(S=b.dG)==null?void 0:p9o(S,function(){return mlP(b,h)},y,function(F){var a;
if(b.dG instanceof JjW&&((a=h.am)==null?0:a.l5d))try{var P;(P=b.cache)==null||zp8(P,mlP(b,h),F,h.am.hRi,b.n9Q-120)}catch(K){b.reportError(new Nk(24,"ELX:write",K))}})},qMw=function(b,h,y){var S;
if((S=h.am)!=null&&S.mMI)try{var F,a=(F=b.cache)==null?void 0:Dle(F,mlP(b,h),h.am.hRi);return a?y?_.yF(b.aP,function(){return _.CA(a,2)},"a"):a:void 0}catch(P){b.reportError(new Nk(23,"RXO:read",P))}},xlw=function(b,h,y){var S={stack:[],
error:void 0,hasError:!1};try{if(!h.wsI)throw new Nk(29,"SDF:notready");return p9o(dyP(S,new YMo(b.aP,0,b.state)),function(){return mlP(b,h)},y)}catch(F){S.error=F,S.hasError=!0}finally{jqb(S)}},QAe=function(b,h,y){var S={stack:[],
error:void 0,hasError:!1};try{var F=w9W(b,y);return p9o(dyP(S,new g0a(b.aP,F)),function(){return[]},h)}catch(a){S.error=a,S.hasError=!0}finally{jqb(S)}},mlP=function(b,h){return h.xPO?h.xPO:h.yn?_.yF(b.aP,function(){return h.xPO=fI4(h.yn)},"c"):[]},Gn7=function(b){return s7(function(h){if(!U5(h))return!1;
for(var y=_.L(Object.entries(b)),S=y.next();!S.done;S=y.next()){var F=_.L(S.value);S=F.next().value;F=F.next().value;if(!(S in h)){if(F.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!F(h[S]))return!1}return!0})}({vm:function(b){return s7(function(h){return h instanceof b})}(Fi)},"");var v08=function(){var b=_.Pd();this.JSC$10097_streamzService=b;b.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",c0("cookie_enabled"),c0("cookie_3p_enabled"),_.z$("browser"))};
v08.prototype.increment=function(b,h,y){this.JSC$10097_streamzService.JSC$9970_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",b,h,y)};
var LCj=function(){var b=_.Pd();this.JSC$10121_streamzService=b;b.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",RY("tick"),c0("from_st_cookie"))};
LCj.prototype.increment=function(b,h){this.JSC$10121_streamzService.JSC$9970_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",b,h)};
var bzM=function(){var b=_.Pd();this.JSC$10127_streamzService=b;b.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.z$("status"))};
bzM.prototype.increment=function(b){this.JSC$10127_streamzService.JSC$9970_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",b)};
var hvG=function(){var b=_.Pd();this.JSC$10130_streamzService=b;b.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.z$("stage"),c0("is_using_ytd_player"),c0("has_expandable_tiles"))};
hvG.prototype.increment=function(b,h,y){this.JSC$10130_streamzService.JSC$9970_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",b,h,y)};
var y9M=function(){var b=_.Pd();this.JSC$10133_streamzService=b;b.addNewCounter("/client_streamz/youtube/web/response_signature",_.z$("check_status"))};
y9M.prototype.increment=function(b){this.JSC$10133_streamzService.JSC$9970_incrementCounter("/client_streamz/youtube/web/response_signature",b)};
var Svb=function(){var b=_.Pd();this.JSC$10136_streamzService=b;b.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.z$("sig"),RY("de"))};
Svb.prototype.increment=function(b,h){this.JSC$10136_streamzService.JSC$9970_incrementCounter("/client_streamz/youtube/web/e_sig_log",b,h)};
var FBe=function(){var b=_.Pd();this.JSC$10139_streamzService=b;b.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.z$("sig"),RY("de"))};
FBe.prototype.increment=function(b,h){this.JSC$10139_streamzService.JSC$9970_incrementCounter("/client_streamz/youtube/web/e_sig_en",b,h)};
_.aB5=function(){var b=_.Pd();this.JSC$10142_streamzService=b;b.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.z$("action"))};
_.aB5.prototype.increment=function(b){this.JSC$10142_streamzService.JSC$9970_incrementCounter("/client_streamz/youtube/web/enforcement_intent",b)};var PR=window;var dOW=(new Date).getTime();_.lR.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.lR.createSet("action","cite","data","formaction","href","manifest","poster","src");var j2b=function(b){this.servicePromise_=b;b.then((0,_.i5)(function(){},this),function(){},this)},$Ob=function(b,h,y){b.servicePromise_.then(function(S){var F=S[h];
if(!F)throw Error("Ka`"+h);return F.apply(S,y)})},KBw=function(b,h,y){for(var S=Array(arguments.length-2),F=2;F<arguments.length;F++)S[F-2]=arguments[F];
F=LBe(b,h).then(function(a){return a.apply(null,S)},function(a){a=Error("La`"+h+"`"+b+"`"+a,{cause:a});
delete Pje[h];return _.UQ(a)});
return new j2b(F)},Pje={},LBe=function(b,h){var y=Pje[h];
if(y)return y;y=(y=_.hj(h))?_.$p(y):(new _.Uu(function(S,F){var a=(new GG(document)).createElement("SCRIPT");a.async=!0;_.ZF(a,_.gf(FQa(b)));a.onload=a.onreadystatechange=function(){a.readyState&&a.readyState!="loaded"&&a.readyState!="complete"||S()};
a.onerror=function(P){F(Error("Ma`"+h+"`"+b,{cause:P}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(a)})).then(function(){var S=_.hj(h);
if(!S)throw Error("Na`"+h+"`"+b);return S});
return Pje[h]=y};var ZzP={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},MKW=function(){var b=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=w9N(function(){return _.Z(function(h){if(h.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?h.return(Promise.resolve()):h.yield(oPW(b),2);b.rsaForList.length>
0&&document.addEventListener("click",b.requestAccessForHelpPanel);_.g3(h)})});
this.requestAccessForHelpPanel=function(){if(!(b.rsaForPromises.length>0)){for(var h=_.L(b.rsaForList),y=h.next();!y.done;y=h.next()){y=y.value;try{b.rsaForPromises.push(document.requestStorageAccessFor(y))}catch(S){}}Promise.all(b.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){b.reset()})}}};
MKW.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var oPW=function(b){var h,y,S,F;return _.Z(function(a){switch(a.nextAddress){case 1:h=_.L(Object.values(ZzP)),y=h.next();case 2:if(y.done){a.jumpTo(0);break}S=y.value;_.WE(a,5);return a.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:S}),7);case 7:F=a.yieldResult;F.state!=="granted"&&b.rsaForList.push(S);_.Lz(a,3);break;case 5:_.C$(a);a.jumpTo(0);break;case 3:y=h.next(),a.jumpTo(2)}})};(new MKW).initialize();var nPe=function(b){this.JSC$10156_loader_=b};
nPe.prototype.startHelp=function(b){$Ob(this.JSC$10156_loader_,"startHelp",arguments)};
nPe.prototype.JSC$10158_loadChatSupport=function(b){$Ob(this.JSC$10156_loader_,"loadChatSupport",arguments)};
var Hz8=function(b,h){h=h||{};b=KBw(XL5,"help.service.Lazy.create",b,{apiKey:h.apiKey||h.apiKey,asxUiUri:h.asxUiUri||h.asxUiUri,environment:h.environment||h.environment,flow:h.flow||h.flow,frdProductData:h.frdProductData||h.frdProductData,frdProductDataSerializedJspb:h.frdProductDataSerializedJspb||h.frdProductDataSerializedJspb,helpCenterPath:h.helpCenterPath||h.helpCenterPath,locale:h.locale||h.locale||"en-US".replace(/-/g,"_"),nonce:h.nonce||h.nonce,productData:h.productData||h.productData,receiverUri:h.receiverUri||
h.receiverUri,renderApiUri:h.renderApiUri||h.renderApiUri,theme:h.theme||h.theme,window:h.window||h.window});return new nPe(b)},XL5=new hR(SFr,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var ulN=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(ulN,_.ZL);var Oz8=_.WM(ulN);var NwW=[0,_.ay,vv,M25];_.tKw=new function(b,h,y,S){this.configType=b;this.flagName=y;this.defaultValue=S;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 c9w=function(){this.retriever=_.H9().resolve(r95)};_.S4={get payments(){return window.payments}};qM8(Node);qM8(Element);var Rvb=qM8(HTMLElement);qM8(SVGElement);var zvW,DOP,oE,IBP;zvW=function(b){return typeof b.className=="string"?b.className:b.getAttribute&&b.getAttribute("class")||""};
DOP=function(b){return b.classList?b.classList:zvW(b).match(/\S+/g)||[]};
_.KG=function(b,h){typeof b.className=="string"?b.className=h:b.setAttribute&&b.setAttribute("class",h)};
_.Zl=function(b,h){return b.classList?b.classList.contains(h):_.sj(DOP(b),h)};
_.xS=function(b,h){if(b.classList)b.classList.add(h);else if(!_.Zl(b,h)){var y=zvW(b);_.KG(b,y+(y.length>0?" "+h:h))}};
oE=function(b,h){if(b.classList)Array.prototype.forEach.call(h,function(F){_.xS(b,F)});
else{var y={};Array.prototype.forEach.call(DOP(b),function(F){y[F]=!0});
Array.prototype.forEach.call(h,function(F){y[F]=!0});
h="";for(var S in y)h+=h.length>0?" "+S:S;_.KG(b,h)}};
_.qJ=function(b,h){b.classList?b.classList.remove(h):_.Zl(b,h)&&_.KG(b,Array.prototype.filter.call(DOP(b),function(y){return y!=h}).join(" "))};
IBP=function(b,h){b.classList?Array.prototype.forEach.call(h,function(y){_.qJ(b,y)}):_.KG(b,Array.prototype.filter.call(DOP(b),function(y){return!_.sj(h,y)}).join(" "))};var BwN=function(b){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=b.document},UO8=function(b,h){WBW(b);
var y=document.createElement("div"),S;(S=h.parentNode)==null||S.insertBefore(y,h);y.tabIndex=0;y.id="fc-focus-trap-pre-div";y=document.createElement("div");var F;(F=h.parentNode)==null||F.insertBefore(y,h.nextSibling);y.tabIndex=0;y.id="fc-focus-trap-post-div";var a=A95(b,h),P=A95(b,h,!0);a&&P&&(b.focusChangeHandler=function(){var K=b.document.activeElement;if(K)if(_.ds(h,K))b.previouslyFocusedElement=K;else if(K===b.document.activeElement)switch(b.previouslyFocusedElement){case a:P.focus();b.previouslyFocusedElement=
P;break;default:a.focus(),b.previouslyFocusedElement=a}},b.document.addEventListener("focus",b.focusChangeHandler,!0),b.document.addEventListener("focusin",b.focusChangeHandler))},WBW=function(b){b.focusChangeHandler&&(document.removeEventListener("focus",b.focusChangeHandler,!0),document.removeEventListener("focusin",b.focusChangeHandler),b.focusChangeHandler=null);
var h;(h=document.getElementById("fc-focus-trap-pre-div"))==null||h.remove();var y;(y=document.getElementById("fc-focus-trap-post-div"))==null||y.remove()},pLW=function(b,h,y,S,F){y=y===void 0?!0:y;
var a;F=(a=F===void 0?null:F)!=null?a:A95(b,h,S===void 0?!1:S);F!==null&&(F.focus(),y&&UO8(b,h))};
BwN.prototype.disableButton=function(b,h){h=h===void 0?null:h;b.disabled=!0;h&&_.xS(b,h)};
var A95=function(b,h,y){y=y===void 0?!1:y;if(tj5(h)&&!y)return h;var S=y?[].slice.call(h.children,0).reverse():h.children;S=_.L(S);for(var F=S.next();!F.done;F=S.next())if(F=F.value,Rvb(F)&&(F=A95(b,F,y)))return F;return tj5(h)&&y?h:null};var J9a=function(b){this.originalBodyOverflow="";this.JSC$10183_domHelper=GP(b);var h;this.isScrollingEnabled=((h=this.JSC$10183_domHelper.JSC$9509_document_.body)==null?void 0:h.style.overflow)!=="hidden"};
J9a.prototype.enableScrolling=function(){this.isScrollingEnabled||(this.JSC$10183_domHelper.JSC$9509_document_.body.style.overflow=this.originalBodyOverflow,this.isScrollingEnabled=!0)};_.Pv(_.fq,_.ED);_.d=_.fq.prototype;_.d.JSC$10186_id_=0;_.d.disposeInternal=function(){_.fq.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$10184_listener_;delete this.handler_};
_.d.start=function(b){this.stop();this.JSC$10186_id_=qk(this.callback_,b!==void 0?b:this.JSC$10184_interval_)};
_.d.stop=function(){this.isActive()&&_.S5.clearTimeout(this.JSC$10186_id_);this.JSC$10186_id_=0};
_.d.fire=function(){this.stop();this.JSC$10186_doAction_()};
_.d.isActive=function(){return this.JSC$10186_id_!=0};
_.d.JSC$10186_doAction_=function(){this.JSC$10186_id_=0;this.JSC$10184_listener_&&this.JSC$10184_listener_.call(this.handler_)};_.B_=function(b){_.ED.call(this);this.handler_=b;this.JSC$10187_keys_={}};
_.Pv(_.B_,_.ED);var evM=[];_.B_.prototype.listen=function(b,h,y,S){Array.isArray(h)||(h&&(evM[0]=h.toString()),h=evM);for(var F=0;F<h.length;F++){var a=_.W3(b,h[F],y||this.handleEvent,S||!1,this.handler_||this);if(!a)break;this.JSC$10187_keys_[a.key]=a}return this};
_.B_.prototype.listenOnce=function(b,h,y,S){return CjW(this,b,h,y,S)};
var CjW=function(b,h,y,S,F,a){if(Array.isArray(y))for(var P=0;P<y.length;P++)CjW(b,h,y[P],S,F,a);else{h=zK(h,y,S||b.handleEvent,F,a||b.handler_||b);if(!h)return b;b.JSC$10187_keys_[h.key]=h}return b};
_.B_.prototype.unlisten=function(b,h,y,S,F){if(Array.isArray(h))for(var a=0;a<h.length;a++)this.unlisten(b,h[a],y,S,F);else if(b=SWa(b,h,y||this.handleEvent,_.lf(S)?!!S.capture:!!S,F||this.handler_||this))D1(b),delete this.JSC$10187_keys_[b.key];return this};
_.B_.prototype.removeAll=function(){_.lR.forEach(this.JSC$10187_keys_,function(b,h){this.JSC$10187_keys_.hasOwnProperty(h)&&D1(b)},this);
this.JSC$10187_keys_={}};
_.B_.prototype.disposeInternal=function(){_.B_.superClass_.disposeInternal.call(this);this.removeAll()};
_.B_.prototype.handleEvent=function(){throw Error("Oa");};var MI=function(){_.ED.call(this);this.services_={}};
_.Pv(MI,_.ED);MI.prototype.connect=function(b){b&&b()};
MI.prototype.isConnected=function(){return!0};
MI.prototype.registerService=function(b,h,y){this.services_[b]={callback:h,objectPayload:!!y}};
MI.prototype.getService=function(b,h){var y=this.services_[b];return y?y:this.defaultService_?{callback:_.X8(this.defaultService_,b),objectPayload:_.lf(h)}:null};
var gPo=function(b,h){if(h&&typeof b==="string")try{return JSON.parse(b)}catch(y){return null}else if(!h&&typeof b!=="string")return(0,_.Q4)(b);return b};
MI.prototype.disposeInternal=function(){MI.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 nG=function(b,h){this.sequence_=[];this.onCancelFunction_=b;this.defaultScope_=h||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};
nG.prototype.cancel=function(b){if(this.fired_)this.result_ instanceof nG&&this.result_.cancel();else{if(this.parent_){var h=this.parent_;delete this.parent_;b?h.cancel(b):(h.branches_--,h.branches_<=0&&h.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new Xi(this))}};
nG.prototype.continue_=function(b,h){this.blocked_=!1;s27(this,b,h)};
var s27=function(b,h,y){b.fired_=!0;b.result_=y;b.hadError_=!h;YvM(b)},G6W=function(b){if(b.fired_){if(!b.silentlyCanceled_)throw new TwP(b);
b.silentlyCanceled_=!1}};
nG.prototype.callback=function(b){G6W(this);s27(this,!0,b)};
nG.prototype.errback=function(b){G6W(this);s27(this,!1,b)};
var k67=function(b,h,y){HR(b,h,null,y)};
nG.prototype.finally=function(b){var h=this;return VKG(new Promise(function(y,S){HR(h,function(F){b();y(F)},function(F){b();
S(F)})}))};
var HR=function(b,h,y,S){var F=b.fired_;F||(h===y?h=y=ie(h):(h=ie(h),y=ie(y)));b.sequence_.push([h,y,S]);F&&YvM(b)};
nG.prototype.then=function(b,h,y){var S,F,a=new _.Uu(function(P,K){F=P;S=K});
HR(this,F,function(P){P instanceof Xi?a.cancel():S(P);return EPN},this);
return a.then(b,h,y)};
K$W(nG);var iz5=function(b,h){h instanceof nG?k67(b,(0,_.i5)(h.branch,h)):k67(b,function(){return h})};
nG.prototype.branch=function(b){var h=new nG;HR(this,h.callback,h.errback,h);b&&(h.parent_=this,this.branches_++);return h};
nG.prototype.isError=function(b){return b instanceof Error};
var fBe=function(b){return Z7(b.sequence_,function(h){return typeof h[1]==="function"})},EPN={},YvM=function(b){if(b.unhandledErrorId_&&b.fired_&&fBe(b)){var h=b.unhandledErrorId_,y=wLe[h];
y&&(_.S5.clearTimeout(y.JSC$10204_id_),delete wLe[h]);b.unhandledErrorId_=0}b.parent_&&(b.parent_.branches_--,delete b.parent_);h=b.result_;for(var S=y=!1;b.sequence_.length&&!b.blocked_;){var F=b.sequence_.shift(),a=F[0],P=F[1];F=F[2];if(a=b.hadError_?P:a)try{var K=a.call(F||b.defaultScope_,h);K===EPN&&(K=void 0);K!==void 0&&(b.hadError_=b.hadError_&&(K==h||b.isError(K)),b.result_=h=K);if(Zl8(h)||typeof _.S5.Promise==="function"&&h instanceof _.S5.Promise)S=!0,b.blocked_=!0}catch(n){h=n,b.hadError_=
!0,fBe(b)||(y=!0)}}b.result_=h;S&&(K=(0,_.i5)(b.continue_,b,!0),S=(0,_.i5)(b.continue_,b,!1),h instanceof nG?(HR(h,K,S),h.blocking_=!0):h.then(K,S));y&&(h=new lBG(h),wLe[h.JSC$10204_id_]=h,b.unhandledErrorId_=h.JSC$10204_id_)},VKG=function(b){var h=new nG;
b.then(function(y){h.callback(y)},function(y){h.errback(y)});
return h},TwP=function(){_.bf.call(this)};
_.Pv(TwP,_.bf);TwP.prototype.message="Deferred has already fired";TwP.prototype.name="AlreadyCalledError";var Xi=function(){_.bf.call(this)};
_.Pv(Xi,_.bf);Xi.prototype.message="Deferred was canceled";Xi.prototype.name="CanceledError";var lBG=function(b){this.JSC$10204_id_=_.S5.setTimeout((0,_.i5)(this.throwError,this),0);this.JSC$10204_error_=b};
lBG.prototype.throwError=function(){delete wLe[this.JSC$10204_id_];throw this.JSC$10204_error_;};
var wLe={};var qvN={1:"NativeMessagingTransport"},xO8=["pu","lru","pru","lpu","ppu"],mOM=function(){for(var b=10,h=Q28,y=h.length,S="";b-- >0;)S+=h.charAt(Math.floor(Math.random()*y));return S},Q28="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var uD=function(b){_.ED.call(this);this.JSC$10207_domHelper_=b||GP()};
_.Pv(uD,_.ED);uD.prototype.transportType=0;uD.prototype.getWindow=function(){return this.JSC$10207_domHelper_.getWindow()};
uD.prototype.getName=function(){return qvN[String(this.transportType)]||""};var Ow=function(b,h,y,S,F){uD.call(this,y);this.JSC$10210_channel_=b;this.protocolVersion_=F||2;this.peerHostname_=h||"*";this.JSC$10210_eventHandler_=new _.B_(this);this.maybeAttemptToConnectTimer_=new _.I0(100,this.getWindow());this.oneSidedHandshake_=!!S;this.setupAckReceived_=new nG;this.setupAckSent_=new nG;this.JSC$10210_connected_=new nG;this.endpointId_=mOM();this.peerEndpointId_=null;this.oneSidedHandshake_?vPW(this.JSC$10210_channel_)==1?iz5(this.JSC$10210_connected_,this.setupAckReceived_):
iz5(this.JSC$10210_connected_,this.setupAckSent_):(iz5(this.JSC$10210_connected_,this.setupAckReceived_),this.protocolVersion_==2&&iz5(this.JSC$10210_connected_,this.setupAckSent_));k67(this.JSC$10210_connected_,this.notifyConnected_,this);this.JSC$10210_connected_.callback(!0);this.JSC$10210_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.Pv(Ow,uD);Ow.prototype.peerProtocolVersion_=null;Ow.prototype.initialized_=!1;Ow.prototype.transportType=1;var bKb={};Ow.prototype.sendTimerId_=0;
var Suo=function(b){var h=b.event_.data;if(typeof h!=="string")return!1;var y=h.indexOf("|"),S=h.indexOf(":");if(y==-1||S==-1)return!1;var F=h.substring(0,y);y=h.substring(y+1,S);h=h.substring(S+1);if(S=NI[F])return S.xpcDeliver(y,h,b.event_.origin),!0;S=hm5(h)[0];for(var a in NI){var P=NI[a];if(vPW(P)==1&&!P.isConnected()&&y=="tp"&&(S=="SETUP"||S=="SETUP_NTPV2")&&yda(P,b.event_.origin))return delete NI[P.name],P.name=F,NI[F]=P,P.xpcDeliver(y,h),!0}return!1},Fm5=function(b){b.protocolVersion_!=2||
b.peerProtocolVersion_!=null&&b.peerProtocolVersion_!=2||b.send("tp","SETUP_NTPV2,"+b.endpointId_);
b.peerProtocolVersion_!=null&&b.peerProtocolVersion_!=1||b.send("tp","SETUP")},a7M=function(b,h){if(b.protocolVersion_!=2||b.peerProtocolVersion_!=null&&b.peerProtocolVersion_!=2||h!=2){if(b.peerProtocolVersion_!=null&&b.peerProtocolVersion_!=1||h!=1)return;
b.send("tp","SETUP_ACK")}else b.send("tp","SETUP_ACK_NTPV2");b.setupAckSent_.fired_||b.setupAckSent_.callback(!0)},die=function(b,h){h>b.peerProtocolVersion_&&(b.peerProtocolVersion_=h);
b.peerProtocolVersion_==1&&(b.setupAckSent_.fired_||b.oneSidedHandshake_||b.setupAckSent_.callback(!0),b.peerEndpointId_=null)};
_.d=Ow.prototype;_.d.connect=function(){var b=this.getWindow(),h=_.mM(b),y=bKb[h];typeof y!=="number"&&(y=0);y==0&&_.W3(b.postMessage?b:b.document,"message",Suo,!1,Ow);bKb[h]=y+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.d.maybeAttemptToConnect_=function(){var b=vPW(this.JSC$10210_channel_)==0;this.oneSidedHandshake_&&b||this.JSC$10210_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),Fm5(this))};
_.d.send=function(b,h){var y=this.JSC$10210_channel_.peerWindowObject_;y&&(this.send=function(S,F){var a=this,P=this.JSC$10210_channel_.name;this.sendTimerId_=qk(function(){a.sendTimerId_=0;try{var K=y.postMessage?y:y.document;K.postMessage&&K.postMessage(P+"|"+S+":"+F,a.peerHostname_)}catch(n){}},0)},this.send(b,h))};
_.d.notifyConnected_=function(){var b=this.JSC$10210_channel_,h=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;b.isConnected()||b.connectionDelay_&&b.connectionDelay_.isActive()||(b.state_=2,_.nq(b.connectionDelay_),h!==void 0?(b.connectionDelay_=new _.fq(b.connectCb_,h),b.connectionDelay_.start()):(b.connectionDelay_=null,b.connectCb_()))};
_.d.disposeInternal=function(){if(this.initialized_){var b=this.getWindow(),h=_.mM(b),y=bKb[h];bKb[h]=y-1;y==1&&_.Yy(b.postMessage?b:b.document,"message",Suo,!1,Ow)}this.sendTimerId_&&(_.S5.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.nq(this.JSC$10210_eventHandler_);delete this.JSC$10210_eventHandler_;_.nq(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$10210_connected_.cancel();delete this.JSC$10210_connected_;delete this.send;Ow.superClass_.disposeInternal.call(this)};
var hm5=function(b){b=b.split(",");b[1]=b[1]||null;return b};var $io;_.t7=function(b){if(b.getValues&&typeof b.getValues=="function")return b.getValues();if(typeof Map!=="undefined"&&b instanceof Map||typeof Set!=="undefined"&&b instanceof Set)return Array.from(b.values());if(typeof b==="string")return b.split("");if(_.f4(b)){for(var h=[],y=b.length,S=0;S<y;S++)h.push(b[S]);return h}return _.lR.getValues(b)};
_.jhw=function(b){if(b.getKeys&&typeof b.getKeys=="function")return b.getKeys();if(!b.getValues||typeof b.getValues!="function"){if(typeof Map!=="undefined"&&b instanceof Map)return Array.from(b.keys());if(!(typeof Set!=="undefined"&&b instanceof Set)){if(_.f4(b)||typeof b==="string"){var h=[];b=b.length;for(var y=0;y<b;y++)h.push(y);return h}return _.lR.getKeys(b)}}};
$io=function(b,h,y){if(b.forEach&&typeof b.forEach=="function")b.forEach(h,y);else if(_.f4(b)||typeof b==="string")Array.prototype.forEach.call(b,h,y);else for(var S=_.jhw(b),F=_.t7(b),a=F.length,P=0;P<a;P++)h.call(y,F[P],S&&S[P],b)};var uLU,BR,A7,n27,Lmw,Km8,PFa,MZ8,ZKb;
_.lX=function(b,h){this.JSC$10215_domain_=this.userInfo_=this.scheme_="";this.JSC$10215_port_=null;this.fragment_=this.JSC$10215_path_="";this.JSC$10215_ignoreCase_=!1;var y;b instanceof _.lX?(this.JSC$10215_ignoreCase_=h!==void 0?h:b.JSC$10215_ignoreCase_,_.rv(this,b.scheme_),this.userInfo_=b.userInfo_,_.cR(this,b.JSC$10215_domain_),_.RE(this,b.JSC$10215_port_),_.zS(this,b.getPath()),_.Dl(this,b.JSC$10215_queryData_.clone()),_.IE(this,b.fragment_)):b&&(y=_.Kn(String(b)))?(this.JSC$10215_ignoreCase_=
!!h,_.rv(this,y[1]||"",!0),this.userInfo_=BR(y[2]||""),_.cR(this,y[3]||"",!0),_.RE(this,y[4]),_.zS(this,y[5]||"",!0),_.Dl(this,y[6]||"",!0),_.IE(this,y[7]||"",!0)):(this.JSC$10215_ignoreCase_=!!h,this.JSC$10215_queryData_=new _.WR(null,this.JSC$10215_ignoreCase_))};
_.lX.prototype.toString=function(){var b=[],h=this.scheme_;h&&b.push(A7(h,Lmw,!0),":");var y=this.JSC$10215_domain_;if(y||h=="file")b.push("//"),(h=this.userInfo_)&&b.push(A7(h,Lmw,!0),"@"),b.push(_.SR(y).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),y=this.JSC$10215_port_,y!=null&&b.push(":",String(y));if(y=this.getPath())this.JSC$10215_domain_&&y.charAt(0)!="/"&&b.push("/"),b.push(A7(y,y.charAt(0)=="/"?PFa:Km8,!0));(y=this.JSC$10215_queryData_.toString())&&b.push("?",y);(y=this.fragment_)&&b.push("#",
A7(y,ZKb));return b.join("")};
_.lX.prototype.resolve=function(b){var h=this.clone(),y=!!b.scheme_;y?_.rv(h,b.scheme_):y=!!b.userInfo_;y?h.userInfo_=b.userInfo_:y=!!b.JSC$10215_domain_;y?_.cR(h,b.JSC$10215_domain_):y=b.JSC$10215_port_!=null;var S=b.getPath();if(y)_.RE(h,b.JSC$10215_port_);else if(y=!!b.JSC$10215_path_){if(S.charAt(0)!="/")if(this.JSC$10215_domain_&&!this.JSC$10215_path_)S="/"+S;else{var F=h.getPath().lastIndexOf("/");F!=-1&&(S=h.getPath().slice(0,F+1)+S)}F=S;if(F==".."||F==".")S="";else if(_.PF(F,"./")||_.PF(F,
"/.")){S=_.aq(F,"/");F=F.split("/");for(var a=[],P=0;P<F.length;){var K=F[P++];K=="."?S&&P==F.length&&a.push(""):K==".."?((a.length>1||a.length==1&&a[0]!="")&&a.pop(),S&&P==F.length&&a.push("")):(a.push(K),S=!0)}S=a.join("/")}else S=F}y?_.zS(h,S):y=b.JSC$10215_queryData_.toString()!=="";y?_.Dl(h,b.JSC$10215_queryData_.clone()):y=!!b.fragment_;y&&_.IE(h,b.fragment_);return h};
_.lX.prototype.clone=function(){return new _.lX(this)};
_.rv=function(b,h,y){b.scheme_=y?BR(h,!0):h;b.scheme_&&(b.scheme_=b.scheme_.replace(/:$/,""));return b};
_.cR=function(b,h,y){b.JSC$10215_domain_=y?BR(h,!0):h;return b};
_.RE=function(b,h){if(h){h=Number(h);if(isNaN(h)||h<0)throw Error("Pa`"+h);b.JSC$10215_port_=h}else b.JSC$10215_port_=null;return b};
_.lX.prototype.getPath=function(){return this.JSC$10215_path_};
_.zS=function(b,h,y){b.JSC$10215_path_=y?BR(h,!0):h;return b};
_.Dl=function(b,h,y){h instanceof _.WR?(b.JSC$10215_queryData_=h,o2W(b.JSC$10215_queryData_,b.JSC$10215_ignoreCase_)):(y||(h=A7(h,MZ8)),b.JSC$10215_queryData_=new _.WR(h,b.JSC$10215_ignoreCase_));return b};
_.Ka=function(b,h,y){b.JSC$10215_queryData_.set(h,y);return b};
_.Ps=function(b,h){return b.JSC$10215_queryData_.get(h)};
_.IE=function(b,h,y){b.fragment_=y?BR(h):h;return b};
_.Uw=function(b){_.Ka(b,"zx",$H());return b};
_.La=function(b,h){return b instanceof _.lX?b.clone():new _.lX(b,h)};
uLU=function(b,h){b instanceof _.lX||(b=_.La(b));h instanceof _.lX||(h=_.La(h));return b.resolve(h)};
BR=function(b,h){return b?h?decodeURI(b.replace(/%25/g,"%2525")):decodeURIComponent(b):""};
A7=function(b,h,y){return typeof b==="string"?(b=encodeURI(b).replace(h,n27),y&&(b=b.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),b):null};
n27=function(b){b=b.charCodeAt(0);return"%"+(b>>4&15).toString(16)+(b&15).toString(16)};
Lmw=/[#\/\?@]/g;Km8=/[#\?:]/g;PFa=/[#\?]/g;MZ8=/[#\?@]/g;ZKb=/#/g;_.WR=function(b,h){this.count_=this.keyMap_=null;this.encodedQuery_=b||null;this.JSC$10216_ignoreCase_=!!h};
_.pG=function(b){b.keyMap_||(b.keyMap_=new Map,b.count_=0,b.encodedQuery_&&h9W(b.encodedQuery_,function(h,y){b.add(nn(h),y)}))};
_.d=_.WR.prototype;_.d.getCount=function(){_.pG(this);return this.count_};
_.d.add=function(b,h){_.pG(this);this.encodedQuery_=null;b=J7(this,b);var y=this.keyMap_.get(b);y||this.keyMap_.set(b,y=[]);y.push(h);this.count_+=1;return this};
_.d.remove=function(b){_.pG(this);b=J7(this,b);return this.keyMap_.has(b)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(b).length,this.keyMap_.delete(b)):!1};
_.d.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.d.isEmpty=function(){_.pG(this);return this.count_==0};
_.d.containsKey=function(b){_.pG(this);b=J7(this,b);return this.keyMap_.has(b)};
_.d.containsValue=function(b){var h=this.getValues();return _.sj(h,b)};
_.d.forEach=function(b,h){_.pG(this);this.keyMap_.forEach(function(y,S){y.forEach(function(F){b.call(h,F,S,this)},this)},this)};
_.d.getKeys=function(){_.pG(this);for(var b=Array.from(this.keyMap_.values()),h=Array.from(this.keyMap_.keys()),y=[],S=0;S<h.length;S++)for(var F=b[S],a=0;a<F.length;a++)y.push(h[S]);return y};
_.d.getValues=function(b){_.pG(this);var h=[];if(typeof b==="string")this.containsKey(b)&&(h=h.concat(this.keyMap_.get(J7(this,b))));else{b=Array.from(this.keyMap_.values());for(var y=0;y<b.length;y++)h=h.concat(b[y])}return h};
_.d.set=function(b,h){_.pG(this);this.encodedQuery_=null;b=J7(this,b);this.containsKey(b)&&(this.count_-=this.keyMap_.get(b).length);this.keyMap_.set(b,[h]);this.count_+=1;return this};
_.d.get=function(b,h){if(!b)return h;b=this.getValues(b);return b.length>0?String(b[0]):h};
_.XXa=function(b,h,y){b.remove(h);y.length>0&&(b.encodedQuery_=null,b.keyMap_.set(J7(b,h),_.Ej(y)),b.count_+=y.length)};
_.WR.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var b=[],h=Array.from(this.keyMap_.keys()),y=0;y<h.length;y++){var S=h[y],F=_.SR(S);S=this.getValues(S);for(var a=0;a<S.length;a++){var P=F;S[a]!==""&&(P+="="+_.SR(S[a]));b.push(P)}}return this.encodedQuery_=b.join("&")};
_.WR.prototype.clone=function(){var b=new _.WR;b.encodedQuery_=this.encodedQuery_;this.keyMap_&&(b.keyMap_=new Map(this.keyMap_),b.count_=this.count_);return b};
var J7=function(b,h){h=String(h);b.JSC$10216_ignoreCase_&&(h=h.toLowerCase());return h},o2W=function(b,h){h&&!b.JSC$10216_ignoreCase_&&(_.pG(b),b.encodedQuery_=null,b.keyMap_.forEach(function(y,S){var F=S.toLowerCase();
S!=F&&(this.remove(S),_.XXa(this,F,y))},b));
b.JSC$10216_ignoreCase_=h};
_.WR.prototype.extend=function(b){for(var h=0;h<arguments.length;h++)$io(arguments[h],function(y,S){this.add(S,y)},this)};var eA=function(b,h){MI.call(this);for(var y=0,S;S=xO8[y];y++)if(S in b&&!/^https?:\/\//.test(b[S]))throw Error("Ra`"+b[S]+"`"+S);this.cfg_=b;this.name=this.cfg_.cn||mOM();this.JSC$10211_domHelper_=h||GP();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.B_(this);b.lpu=b.lpu||vb8(this.JSC$10211_domHelper_.getWindow().location.href)+"/robots.txt";b.ppu=b.ppu||vb8(b.pu||"")+"/robots.txt";NI[this.name]=this;SWa(window,"unload",HK8)||zK(window,"unload",HK8)};
_.Pv(eA,MI);var upW=RegExp("^%*tp$"),OKM=RegExp("^%+tp$");_.d=eA.prototype;_.d.connectionDelay_=null;_.d.peerWindowDeferred_=null;_.d.transport_=null;_.d.state_=1;_.d.isConnected=function(){return this.state_==2};
_.d.peerWindowObject_=null;_.d.iframeElement_=null;_.d.getConfig=function(){return this.cfg_};
_.d.connect=function(b){this.connectCb_=b||_.C8;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?k67(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.d.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$10211_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var b=this.iframeElement_.contentWindow;b||(b=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=b}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$10211_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new Ow(this,this.cfg_.ph,this.JSC$10211_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()()};
_.d.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.nq(this.transport_);this.connectCb_=this.transport_=null;_.nq(this.connectionDelay_);this.connectionDelay_=null};
_.d.send=function(b,h){if(this.isConnected()){try{var y=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(F){y=!1}if(y){_.lf(h)&&(h=(0,_.Q4)(h));y=this.transport_;var S=y.send;upW.test(b)&&(b="%"+b);b=b.replace(/[%:|]/g,encodeURIComponent);S.call(y,b,h)}else this.close()}};
_.d.xpcDeliver=function(b,h,y){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.i5)(this.xpcDeliver,this,b,h,y));else if(yda(this,y)&&!this.isDisposed()&&this.state_!=3)if(b&&b!="tp")this.isConnected()&&(b=b.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),b=OKM.test(b)?b.substring(1):b,b=this.getService(b,h))&&(h=gPo(h,b.objectPayload),h!=null&&b.callback(h));else switch(b=this.transport_,y=hm5(h),h=y[1],y[0]){case "SETUP_ACK":die(b,1);b.setupAckReceived_.fired_||b.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":b.protocolVersion_==2&&(die(b,2),b.setupAckReceived_.fired_||b.setupAckReceived_.callback(!0));break;case "SETUP":die(b,1);a7M(b,1);break;case "SETUP_NTPV2":b.protocolVersion_==2&&(y=b.peerProtocolVersion_,die(b,2),a7M(b,2),y!=1&&b.peerEndpointId_==null||b.peerEndpointId_==h||Fm5(b),b.peerEndpointId_=h)}};
var vPW=function(b){var h=b.cfg_.role;return typeof h==="number"?h:window.parent==b.peerWindowObject_?1:0},yda=function(b,h){var y=b.cfg_.ph;
return _.$U(h==null?"":String(h))||_.$U(y==null?"":String(y))||h==b.cfg_.ph};
eA.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete NI[this.name];_.nq(this.peerLoadHandler_);delete this.peerLoadHandler_;eA.superClass_.disposeInternal.call(this)};
var HK8=function(){for(var b in NI)_.nq(NI[b])},NI={};var tZw=function(b,h){this.win=b;this.allowAdsHttpEndpoint=h;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10225_domHelper=GP(b);this.scrollManager=new J9a(b);this.accessibilityManager=new BwN(b);Nd5(this)},Nd5=function(b){var h=function(){b.allowAdsPopup&&b.allowAdsPopup.style.setProperty("display","none","important");
b.wallElement.style.setProperty("display","","important");WBW(b.accessibilityManager);pLW(b.accessibilityManager,b.wallElement.querySelector(".fc-dialog-container"),!1,!1,b.wallElement.querySelector(".fc-button-whitelist"));b.scrollManager.enableScrolling()};
b.allowAdsPopup=b.JSC$10225_domHelper.JSC$9511_createDom("DIV",{"class":"fc-whitelist-root"});b.allowAdsPopup.style.setProperty("display","none","important");b.JSC$10225_domHelper.appendChild(b.JSC$10225_domHelper.JSC$9509_document_.body,b.allowAdsPopup);var y=b.JSC$10225_domHelper.JSC$9511_createDom("DIV",{"class":"fc-dialog-overlay"});b.JSC$10225_domHelper.appendChild(b.allowAdsPopup,y);var S=b.JSC$10225_domHelper.JSC$9511_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:h});b.JSC$10225_domHelper.appendChild(b.allowAdsPopup,
S);y=b.JSC$10225_domHelper.JSC$9511_createDom("IFRAME");y.className="fc-whitelist-dialog";y.frameBorder="0";y.id="fc-whitelist-iframe";y.tabIndex="0";_.Fg(y,b.allowAdsHttpEndpoint);b.JSC$10225_domHelper.appendChild(S,y);S={};S.pu=_.s_(b.allowAdsHttpEndpoint).toString();S.tp=1;S.cn="fc-whitelist-channel";S.ifrid=y.id;S.osh=!0;b.allowAdsCrossPageChannel=new eA(S);b.allowAdsCrossPageChannel.registerService("close",h);b.allowAdsCrossPageChannel.registerService("refresh",function(){b.win.location.reload()});
b.allowAdsCrossPageChannel.registerService("resize",function(F){if(F){var a=b.allowAdsPopup.querySelector(".fc-whitelist-dialog");F.width&&a.style.setProperty("width",F.width,"important");F.height&&a.style.setProperty("height",F.height,"important")}},!0);
b.allowAdsCrossPageChannel.connect()};
tZw.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10225_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var CG=window,gv=document,rdG=CG.location,cdo=function(){},RmW=/\[native code\]/,sw=function(b,h,y){return b[h]=b[h]||y},zmG=function(b){b=b.sort();
for(var h=[],y=void 0,S=0;S<b.length;S++){var F=b[S];F!=y&&h.push(F);y=F}return h},Yu=function(){var b;
if((b=Object.create)&&RmW.test(b))b=b(null);else{b={};for(var h in b)b[h]=void 0}return b},TS=sw(CG,"gapi",{});var GS={};GS=sw(CG,"___jsl",Yu());sw(GS,"I",0);sw(GS,"hel",10);var Dio=function(){var b=rdG.href;if(GS.dpo)var h=GS.h;else{h=GS.h;var y=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),S=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(b=b&&(y.exec(b)||S.exec(b)))try{h=decodeURIComponent(b[2])}catch(F){}}return h},I7W=function(b){var h=sw(GS,"PQ",[]);
GS.PQ=[];var y=h.length;if(y===0)b();else for(var S=0,F=function(){++S===y&&b()},a=0;a<y;a++)h[a](F)},BdM=function(b){return sw(sw(GS,"H",Yu()),b,Yu())};var ku=function(b){this.JSC$10227_obj_=b};
ku.prototype.value=function(){return this.JSC$10227_obj_};
ku.prototype.getWidth=function(){return this.JSC$10227_obj_.width};
ku.prototype.getHeight=function(){return this.JSC$10227_obj_.height};
ku.prototype.getStyle=function(){return this.JSC$10227_obj_.style};var Wm5=function(b){this.JSC$10230_obj_=b||{}};
_.d=Wm5.prototype;_.d.value=function(){return this.JSC$10230_obj_};
_.d.setUrl=function(b){this.JSC$10230_obj_.url=b;return this};
_.d.getUrl=function(){return this.JSC$10230_obj_.url};
_.d.getStyle=function(){return this.JSC$10230_obj_.style};
_.d.getId=function(){return this.JSC$10230_obj_.id};
_.d.getContext=function(){return this.JSC$10230_obj_.context};
var Ade=function(b){b.JSC$10230_obj_.attributes=b.JSC$10230_obj_.attributes||{};return new ku(b.JSC$10230_obj_.attributes)};var Ui7=function(){Wm5.apply(this,arguments)};
_.z(Ui7,Wm5);var pXG=sw(GS,"perf",Yu());sw(pXG,"g",Yu());var Jda=sw(pXG,"i",Yu());sw(pXG,"r",[]);Yu();Yu();var CFb=function(b,h,y){h&&h.length>0&&(h=em5(h),y&&y.length>0&&(h+="___"+em5(y)),h.length>28&&(h=h.substr(0,28)+(h.length-28)),y=h,h=sw(Jda,"_p",Yu()),sw(h,y,Yu())[b]=(new Date).getTime(),h=pXG.r,typeof h==="function"?h(b,"_p",y):h.push([b,"_p",y]))},em5=function(b){return b.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var g2W=Yu(),shb=[],VF=function(b){throw Error("Ua`"+b);};
shb.push(["jsl",function(b){for(var h in b)if(Object.prototype.hasOwnProperty.call(b,h)){var y=b[h];typeof y=="object"?GS[h]=sw(GS,h,[]).concat(y):sw(GS,h,y)}if(h=b.u)b=sw(GS,"us",[]),b.push(h),(h=/^https:(.*)$/.exec(h))&&b.push("http:"+h[1])}]);
var Yua=/^(\/[a-zA-Z0-9_\-]+)+$/,TdW=[/\/amp\//,/\/amp$/,/^\/amp$/],GEW=/^[a-zA-Z0-9\-_\.,!]+$/,kE8=/^gapi\.loaded_[0-9]+$/,VZ8=/^[a-zA-Z0-9,._-]+$/,wXw=function(b,h,y,S,F){var a=b.split(";"),P=a.shift(),K=g2W[P],n=null;K?n=K(a,h,y,S):VF("no hint processor for: "+P);n||VF("failed to generate load url");h=n;y=h.match(E2e);(S=h.match(iKe))&&S.length===1&&f7o.test(h)&&y&&y.length===1||VF("failed sanity: "+b);try{b="?";if(F&&F.length>0){e8j(F);var X=F.join(",");n=n+"?le="+X;b="&"}if(GS.rol){var u=GS.ol;
u&&u.length&&(n=""+n+b+"ol="+u.length)}}catch(O){}return n},xiw=function(b,h,y,S){b=l7G(b);
kE8.test(y)||VF("invalid_callback");h=quW(h);S=S&&S.length?quW(S):null;var F=function(a){return encodeURIComponent(a).replace(/%2C/g,",")};
return[encodeURIComponent(b.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",F(b.version),"/m=",F(h),S?"/exm="+F(S):"","/rt=j/sv=1/d=1/ed=1",b.activeMods?"/am="+F(b.activeMods):"",b.resourceSig?"/rs="+F(b.resourceSig):"",b.zcms?"/t="+F(b.zcms):"","/cb=",F(y)].join("")},l7G=function(b){b.charAt(0)!=="/"&&VF("relative path");
for(var h=b.substring(1).split("/"),y=[];h.length;){b=h.shift();if(!b.length||b.indexOf(".")==0)VF("empty/relative directory");else if(b.indexOf("=")>0){h.unshift(b);break}y.push(b)}b={};for(var S=0,F=h.length;S<F;++S){var a=h[S].split("="),P=decodeURIComponent(a[0]),K=decodeURIComponent(a[1]);a.length==2&&P&&K&&(b[P]=b[P]||K)}h="/"+y.join("/");Yua.test(h)||VF("invalid_prefix");y=0;for(S=TdW.length;y<S;++y)TdW[y].test(h)&&VF("invalid_prefix");y=Qh7(b,"k",!0);S=Qh7(b,"am");F=Qh7(b,"rs");b=Qh7(b,"t");
return{pathPrefix:h,version:y,activeMods:S,resourceSig:F,zcms:b}},quW=function(b){for(var h=[],y=0,S=b.length;y<S;++y){var F=b[y].replace(/\./g,"_").replace(/-/g,"_");
VZ8.test(F)&&h.push(F)}return h.join(",")},Qh7=function(b,h,y){b=b[h];
!b&&y&&VF("missing: "+h);if(b){if(GEW.test(b))return b;VF("invalid: "+h)}return null},f7o=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,iKe=/\/cb=/g,E2e=/\/\//g;
g2W.m=function(b,h,y,S){(b=b[0])||VF("missing_hint");return"https://apis.google.com"+xiw(b,h,y,S)};
var mi8=decodeURI("%73cript"),v2N=/^[-+_0-9\/A-Za-z]+={0,2}$/,bP5=function(b,h){for(var y=[],S=0;S<b.length;++S){var F=b[S],a;if(a=F){a:{for(a=0;a<h.length;a++)if(h[a]===F)break a;a=-1}a=a<0}a&&y.push(F)}return y},hLb=function(){var b=GS.nonce;
return b!==void 0?b&&b===String(b)&&b.match(v2N)?b:GS.nonce=null:gv.querySelector?(b=gv.querySelector("script[nonce]"))?(b=b.nonce||b.getAttribute("nonce")||"",b&&b===String(b)&&b.match(v2N)?GS.nonce=b:GS.nonce=null):null:null},FVe=function(b){if(gv.readyState!="loading")yR8(b);
else{var h=hLb(),y="";h!==null&&(y=' nonce="'+h+'"');b="<"+mi8+' src="'+encodeURI(b)+'"'+y+"></"+mi8+">";gv.write(SPw?SPw.createHTML(b):b)}},yR8=function(b){var h=gv.createElement(mi8);
h.setAttribute("src",SPw?SPw.createScriptURL(b):b);b=hLb();b!==null&&h.setAttribute("nonce",b);h.async="true";(b=gv.getElementsByTagName(mi8)[0])?b.parentNode.insertBefore(h,b):(gv.head||gv.body||gv.documentElement).appendChild(h)},dSM=function(b,h,y){aR5(function(){var S=h===Dio()?sw(TS,"_",Yu()):Yu();
S=sw(BdM(h),"_",S);b(S)},y)},Mpq=function(b,h){var y=h||{};
typeof h=="function"&&(y={},y.callback=h);var S=(h=y)&&h._c;if(S)for(var F=0;F<shb.length;F++){var a=shb[F][0],P=shb[F][1];P&&Object.prototype.hasOwnProperty.call(S,a)&&P(S[a],b,h)}h=[];b?h=b.split(":"):y.features&&(h=y.features);if(!(b=y.h)&&(b=Dio(),!b))throw Error("Va");jLW(h||[],y,b)},jLW=function(b,h,y){b=zmG(b)||[];
var S=h.callback,F=h.config,a=h.timeout,P=h.ontimeout,K=h.onerror,n=void 0;typeof K=="function"&&(n=K);var X=null,u=!1;if(a&&!P||!a&&P)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";K=sw(BdM(y),"r",[]).sort();var O=sw(BdM(y),"L",[]).sort(),N=GS.le||[],t=[].concat(K),R=function(E,Y){if(u)return 0;CG.clearTimeout(X);O.push.apply(O,I);var w=((TS||{}).config||{}).update;w?w(F):F&&sw(GS,"cu",[]).push(F);if(Y){CFb("me0",E,t);try{dSM(Y,y,n)}finally{CFb("me1",E,t)}}return 1};
a>0&&(X=CG.setTimeout(function(){u=!0;P()},a));
var I=bP5(b,O);if(I.length){I=bP5(b,K);var U=sw(GS,"CP",[]),p=U.length;U[p]=function(E){if(!E)return 0;CFb("ml1",I,t);var Y=function(x){U[p]=null;R(I,E)&&I7W(function(){S&&S();x()})},w=function(){var x=U[p+1];
x&&x()};
p>0&&U[p-1]?U[p]=function(){Y(w)}:Y(w)};
if(I.length){var e="loaded_"+GS.I++;TS[e]=function(E){U[p](E);TS[e]=null};
b=wXw(y,I,"gapi."+e,K,N);K.push.apply(K,I);CFb("ml0",I,t);h.sync||CG.___gapisync?FVe(b):yR8(b)}else U[p](cdo)}else R(I)&&S&&S()},$SN;
var LVa=null,PhW=_.S5.trustedTypes;if(PhW&&PhW.createPolicy){try{LVa=PhW.createPolicy("goog#gapi",{createHTML:aro,createScript:aro,createScriptURL:aro})}catch(b){_.S5.console&&_.S5.console.error(b.message)}$SN=LVa}else $SN=LVa;var SPw=$SN,aR5=function(b,h){if(GS.hee&&GS.hel>0)try{return b()}catch(y){h&&h(y),GS.hel--,Mpq("debug_error",function(){try{window.___jsl.hefn(y)}catch(S){throw y;}})}else try{return b()}catch(y){throw h&&h(y),y;
}},KVW=TS.load;
KVW&&sw(GS,"ol",[]).push(KVW);TS.load=function(b,h){return aR5(function(){return Mpq(b,h)})};var bz4;var oJe=function(b,h){var y=y||[];this.serviceId_=b;this.moduleId_=h||null;this.dependencies_=[];ZPW(this,y)};
oJe.prototype.toString=function(){return this.serviceId_};
oJe.prototype.getModuleId=function(){return this.moduleId_};
var ZPW=function(b,h){var y=!1;y=y===void 0?!1:y;b.dependencies_=b.dependencies_.concat(h);if(y){if(!b.moduleId_)throw Error("Wa`"+b.serviceId_);h.map(function(S){return S.getModuleId()}).forEach(function(S){hvI(function(F){F.addExtraEdge(b.moduleId_,S)})})}};var ff5=new oJe("MpJwZc","MpJwZc");var YEN=new _.JU("a"),lfU=new _.JU("c"),w_8=function(b,h,y){_.eW.call(this,b,h);this.node=h;this.kind=y};
_.z(w_8,_.eW);var MHb=function(){this.JSC$10243_keys_={};this.urlPrefix_="";this.JSC$10243_queryData_={}};
MHb.prototype.toString=function(){var b=this.urlPrefix_+nJ8(this),h=_.pn(this.JSC$10243_queryData_),y="";h!=""&&(y="?"+h);return b+y};
var Xoa=function(b){b=Ew(b,"md");return!!b&&b!=="0"},nJ8=function(b){var h=[],y=function(S){b.JSC$10243_keys_[S]!==void 0&&h.push(S+"="+b.JSC$10243_keys_[S])};
Xoa(b)?(y("md"),y("k"),y("ck"),y("am"),y("rs"),y("gssmodulesetproto"),y("slk"),y("dti")):(y("sdch"),y("k"),y("ck"),y("am"),y("amc"),y("rt"),"d"in b.JSC$10243_keys_||iD(b,"d","0"),y("d"),y("exm"),y("excm"),(b.JSC$10243_keys_.excm||b.JSC$10243_keys_.exm)&&h.push("ed=1"),y("im"),y("dg"),y("sm"),Ew(b,"br")!="1"&&Ew(b,"br")!="0"||y("br"),y("br-d"),Ew(b,"rb")=="1"&&y("rb"),Ew(b,"zs")!=="0"&&y("zs"),HPa(b)!==""&&y("wt"),y("gssmodulesetproto"),y("ujg"),y("sp"),y("rs"),y("cb"),y("ee"),y("slk"),y("dti"),y("m"));
return h.join("/")},Ew=function(b,h){return b.JSC$10243_keys_[h]?b.JSC$10243_keys_[h]:null},iD=function(b,h,y){y?b.JSC$10243_keys_[h]=y:delete b.JSC$10243_keys_[h]},uC5=function(b,h){b.urlPrefix_=h},OPW=function(b,h){h&&h.length>0?(h.sort(),iD(b,"exm",h.join(","))):iD(b,"exm",null)},N_a=function(b,h){h&&h.length>0?(h.sort(),iD(b,"excm",h.join(","))):iD(b,"excm",null)},tHa=function(b){return(b=Ew(b,"m"))?b.split(","):[]},HPa=function(b){switch(Ew(b,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},rR8=function(b,h){var y=Object.keys(h).filter(function(S){return!!Object.keys(h[S]).length}).map(function(S){var F=Object.keys(h[S]);
F.length>1&&F.sort();return S+":"+F.join(",")});
y.sort();iD(b,"ee",y.join(";"))},lBI=function(b){var h=Ew(b,"ee");
if(!h)return{};b={};h=_.L(h.split(";"));for(var y=h.next();!y.done;y=h.next()){var S=_.L(y.value.split(":"));y=S.next().value;S=S.next().value;b[y]={};S=_.L(S.split(","));for(var F=S.next();!F.done;F=S.next())b[y][F.value]=!0}return b},cRa=function(b){delete b.JSC$10243_keys_.m;
delete b.JSC$10243_keys_.exm;delete b.JSC$10243_keys_.ed};
MHb.prototype.clone=function(){var b=new MHb;b.JSC$10243_keys_=Object.assign({},this.JSC$10243_keys_);b.urlPrefix_=this.urlPrefix_;b.JSC$10243_queryData_=Object.assign({},this.JSC$10243_queryData_);return b};
var qvq=function(b,h){h=h===void 0?!0:h;var y=RLM(b),S=new MHb,F=_.Kn(y)[5];_.lR.forEach(zLb,function(P){var K=F.match("/"+P+"=([^/]+)");K&&iD(S,P,K[1])});
var a="";a=b.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";uC5(S,b.substr(0,b.indexOf(a)+a.length));if(!h)return S;(b=_.Kn(y)[6]||null)&&h9W(b,function(P,K){S.JSC$10243_queryData_[P]=K});
return S},izM=function(b){b=_.W9(RLM(b));
return b===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(b)?/\/k=/.test(b):!1},RLM=function(b){return b.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?b.substr(65):b},zLb={ROW_KEY:"k",
CSS_ROW_KEY:"ck",MODULES:"m",EXCLUDED_MODULES:"exm",EXCLUDED_CSS_MODULES:"excm",ACTIVE_MODS:"am",ALLOW_MISSING_CHUNKS:"amc",MASKED_MODS:"mm",RESPONSE_TYPE:"rt",INCLUDE_DEPS:"d",EXCLUDED_DEPS:"ed",SPEC_VERSION:"sv",DEOBFUSCATION_VERSION:"deob",CALLBACK:"cb",SIGNATURE:"rs",SDCH:"sdch",INSERT_MARKERS:"im",DEPENDENCY_GRAPH:"dg",ENABLE_BROTLI_ENCODING:"br",ENABLE_BROTLI_DICTIONARY_ENCODING:"br-d",ENABLE_RBROTLI_ENCODING:"rb",ZSTD_LEVEL:"zs",WRAP_IN_TRY:"wt",EXTRA_EDGES:"ee",SOURCE_MAP:"sm",METADATA:"md",
GSS_MODULE_SET_PROTO:"gssmodulesetproto",USE_JS_GRAPH_FOR_COMBINED_REQUESTS:"ujg",USE_INSTALL_CSS_PROTO:"sp",SIDELOADING_ROWKEY:"slk",DISABLE_TOGGLES_INIT:"dti"},DSP=RegExp("^(gapi\\.)?loaded(_g|_h)?(_[0-9a-z]+)+$");_.fG=function(b){this.JSC$10255_id_=b;this.opts={}};
_.fG.prototype.JSC$10257_setLabel=function(b){this.label_=b||void 0;return this};
_.fG.prototype.addUploadMetadata=function(b,h){var y=this.opts.data||{};y[b]=h;this.opts.data=y;return this};
var IR8=function(b){var h=_.lR.filter(b.opts,function(y){return y!==null});
h=_.lR.isEmpty(h)?null:h;b=[b.JSC$10255_id_,b.label_,h];h=WMF(b);return b=b.slice(0,h+1)};
_.fG.prototype.toString=function(){var b=IR8(this);return"("+_.qz(b,function(h){return JSON.stringify(h)}).join(",")+")"};
_.fG.prototype.getId=function(){return this.JSC$10255_id_};
_.fG.prototype.getOptions=function(){return _.lR.clone(this.opts)};var wv=function(){_.fG.call(this,"image-search")};
_.z(wv,_.fG);wv.prototype.setSize=function(b){this.opts.imgsz=b;return this};
wv.prototype.JSC$10257_setLabel=function(b){_.fG.prototype.JSC$10257_setLabel.call(this,b);return this};
wv.prototype.addUploadMetadata=function(b,h){_.fG.prototype.addUploadMetadata.call(this,b,h);return this};var lD=function(){_.fG.call(this,"maps")};
_.z(lD,_.fG);lD.prototype.setZoom=function(b){this.opts.zoom=b;return this};
lD.prototype.JSC$10257_setLabel=function(b){_.fG.prototype.JSC$10257_setLabel.call(this,b);return this};
lD.prototype.addUploadMetadata=function(b,h){_.fG.prototype.addUploadMetadata.call(this,b,h);return this};_.qI=function(){_.fG.call(this,"photos")};
_.z(_.qI,_.fG);_.qI.prototype.JSC$10257_setLabel=function(b){_.fG.prototype.JSC$10257_setLabel.call(this,b);return this};
_.qI.prototype.addUploadMetadata=function(b,h){_.fG.prototype.addUploadMetadata.call(this,b,h);return this};var xu=function(){_.fG.call(this,"url")};
_.z(xu,_.fG);var B_N=function(){var b=new xu;b.opts.type="video";b.opts.site="youtube.com";return b};
xu.prototype.JSC$10257_setLabel=function(b){_.fG.prototype.JSC$10257_setLabel.call(this,b);return this};
xu.prototype.addUploadMetadata=function(b,h){_.fG.prototype.addUploadMetadata.call(this,b,h);return this};var QF=function(){_.fG.call(this,"video-search")};
_.z(QF,_.fG);var WVG=function(){var b=new QF;b.opts.site="youtube.com";return b};
QF.prototype.JSC$10257_setLabel=function(b){_.fG.prototype.JSC$10257_setLabel.call(this,b);return this};
QF.prototype.addUploadMetadata=function(b,h){_.fG.prototype.addUploadMetadata.call(this,b,h);return this};var ARw=function(){_.fG.call(this,"web")};
_.z(ARw,_.fG);ARw.prototype.JSC$10257_setLabel=function(b){_.fG.prototype.JSC$10257_setLabel.call(this,b);return this};
ARw.prototype.addUploadMetadata=function(b,h){_.fG.prototype.addUploadMetadata.call(this,b,h);return this};var mW=function(){this.items_=[];this.opts={}},USa=function(b){switch(b){case "image-search":return new wv;
case "maps":return new lD;case "photos":return new _.qI;case "url":return new xu;case "video-search":return new QF;case "web":return new ARw}return new _.fG(b)};
mW.prototype.addView=function(b){this.items_.push(typeof b==="string"?USa(b):b);return this};
var poP=function(b){return"("+_.qz(b.items_,function(h){return h.toString()}).join(",")+")"};
mW.prototype.toString=function(){return poP(this)};
mW.prototype.getViews=function(b,h){h=h===void 0?[]:h;for(var y=this.items_,S=0;S<y.length;S++){var F=y[S];F instanceof mW?F.getViews(b,h):F.getId()==b&&h.push(F)}return h};
mW.prototype.getOptions=function(){return _.lR.clone(this.opts)};var Sh=function(b){this.basePickerUrl_=b||"https://docs.google.com/picker";this.nav_=new mW};
Sh.prototype.nav_=null;Sh.prototype.addView=function(b){this.nav_.addView(b);return this};
Sh.prototype.getBaseUrl=function(){return this.basePickerUrl_};
Sh.prototype.getViews=function(b){return this.nav_.getViews(b)};
_.JR8=function(b,h){b.callback_=h;return b};var eLa=new Map;eLa.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");eLa.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");eLa.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var Ch8=new Set;Ch8.add("application/vnd.google-apps.kix");Ch8.add("application/vnd.google-apps.ritz");Ch8.add("application/vnd.google-apps.punch");var lRN=function(b,h,y){var S=y&&_.gQ(y,1);y=gJ8(y);var F=b[0].getId();switch(_.sV(F,2)){case 13:return sLa(b,h,S,y);case 3:return YPw(b,h,S,y);case 10:return T_N(b,h,S,y);case 27:return T_N(b,h,S,y);case 12:return GU8(b,h);case 2:return kU8(b,h,S,y);case 5:return VHo(b,h,S,y);case 9:return EJw(b,h,S,y);case 6:return iP5(b,h,S,y);case 25:return fRW(b,h,S,y);case 1:return _.DN(b[0],Hqa,26)?woG(b,h,S,y):T_N(b,h,S,y);default:return{}}},iP5=function(b,h,y,S){b=b.map(function(F){return{id:F.getId().getId(),
serviceId:"youtube",name:F.getName(),description:_.gQ(F,3),type:vR(F),lastEditedUtc:_.X0M(_.cL(F,_.Cw,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:F.getUrl(),embedUrl:_.gQ(F,13),thumbnails:bc(Mk(F))}});
return{action:h,docs:b,viewToken:S,view:y||"youtube",v2Translated:!0}},kU8=function(b,h,y,S){var F=b.map(function(a){var P=a.getId().getId(),K=_.gQ(a,7),n=a.getName(),X=vR(a),u=_.X0M(_.cL(a,_.Cw,12)).getTime(),O=a.getUrl(),N=Number(c85(a)),t=_.gQ(a,3),R=_.gQ(a,11),I=bc(Mk(a));
var U=_.cL(a,nv,21);U=_.J1(U,1);var p=_.cL(a,nv,21);p=_.gQ(p,10);var e=_.gQ(a,13);var E=_.cL(a,nv,21);E=_.J1(E,9);var Y=_.cL(a,nv,21);Y=_.gQ(Y,11);P={id:P,serviceId:"docs",mimeType:K,name:n,type:X,lastEditedUtc:u,url:O,sizeBytes:N,description:t,iconUrl:R,thumbnails:I,isShared:U,downloadUrl:p,embedUrl:e,copyable:E,resourceKey:Y};K=_.cL(a,nv,21);_.J1(K,12)&&(P.uploadState="success",P.isNew=!0);K=_.cL(a,nv,21);_.DN(K,Kv,3)&&(a=_.cL(a,nv,21),a=_.cL(a,Kv,3),_.DN(a,Lv,2)&&(K=v0(a.getDuration().getSeconds()),
n=a.getDuration(),n=_.rB(n,2),P.duration=K+n/1E9),P.aspectRatio=a.getAspectRatio());return P});
return{action:h,docs:F,viewToken:S,view:y||"all",extraUserInputs:qPP(b),v2Translated:!0}},VHo=function(b,h,y,S){b=b.map(function(F){var a=_.cL(F,DKW,15);
a=_.cL(a,Pm,1);gd(F,10,Pm,a);return{id:F.getId().getId(),serviceId:"web",mimeType:_.gQ(F,7),name:F.getName(),type:vR(F),url:F.getUrl(),description:_.gQ(F,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:bc(Mk(F))}});
return{action:h,docs:b,viewToken:S,view:y||"image-search",v2Translated:!0}},EJw=function(b,h,y,S){b=b.map(function(F){return{serviceId:"url",
name:Mk(F)[0].getUrl().split("/").pop(),type:vR(F),mimeType:_.gQ(F,7),url:F.getUrl(),description:_.gQ(F,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:bc(Mk(F))}});
return{action:h,docs:b,viewToken:S,view:y||"url",v2Translated:!0}},woG=function(b,h,y,S){b=b.map(function(F){return{id:F.getId().getId(),
serviceId:"picasa",name:F.getName(),type:vR(F),description:_.gQ(F,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:bc(Mk(F))}});
return{action:h,docs:b,viewToken:S,view:y||"webcam",v2Translated:!0}},T_N=function(b,h,y,S){return{action:h,
docs:b.map(xSe),viewToken:S,view:QL8(y||"upload",b),extraUserInputs:qPP(b),v2Translated:!0}},QL8=function(b,h){return h.some(function(y){var S;
return((S=_.cL(y,Zy,30))==null?void 0:_.sV(S,3))===9})?b+"/gmailphotos":b},YPw=function(b,h,y,S){var F=b.map(function(a){var P={id:a.getId().getId(),
serviceId:"picasa",mimeType:_.gQ(a,7),name:a.getName(),type:vR(a),lastEditedUtc:_.X0M(_.cL(a,_.Cw,12)).getTime(),url:a.getUrl(),sizeBytes:Number(c85(a)),description:_.gQ(a,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:bc(Mk(a)),mediaKey:a.getId().getId(),parentId:_.gQ(a,4)},K,n=(K=_.cL(a,NBa,18))==null?void 0:_.cL(K,Oqo,3);n&&(P.latitude=CF(n,1),P.longitude=CF(n,2));var X;a=(X=_.cL(a,NBa,18))==null?void 0:ek(X,6);X=a!=null?v0(a):void 0;X&&(P.version=
X);return P});
return{action:h,docs:F,viewToken:S,view:y||"photos",extraUserInputs:qPP(b),v2Translated:!0}},sLa=function(b,h,y,S){b=b.map(function(F){return{id:F.getId().getId(),
serviceId:"et",name:Mk(F)[0].getUrl().split("/").pop(),description:_.gQ(F,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:bc(Mk(F),"etjpg")}});
return{action:h,docs:b,viewToken:S,view:y||"et",v2Translated:!0}},fRW=function(b,h,y,S){b=b.map(function(F){var a=F.getId().getId(),P=S["2"];
return{id:a,serviceId:P.type!=="gmail_themes"&&P.parent==="6226252643674576769"?"picasa":"static_themes",name:F.getName(),mimeType:_.gQ(F,7),type:vR(F),description:_.gQ(F,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:F.getUrl(),embedUrl:F.getUrl(),thumbnails:bc(Mk(F))}});
return{action:h,docs:b,viewToken:S,view:y||"photos",v2Translated:!0}},GU8=function(b,h){b=b.map(function(y){var S=_.cL(y,uRG,27);
S=_.mY(S,1,_.zq,_.tW())[0];return{id:y.getId().getId(),serviceId:"contacts",mimeType:_.gQ(y,7),name:y.getName(),description:_.gQ(y,3),url:"mailto:"+S,thumbnail:[{url:_.gQ(y,11)}],email:S}});
return{action:h,docs:b,view:"contacts",v2Translated:!0}},gJ8=function(b){if(!b)return{};
var h=_.gQ(b,3);h=h&&JSON.parse(h)||{};return{0:_.gQ(b,1),1:_.gQ(b,2),2:h}},bc=function(b,h){h=h===void 0?"":h;
if(!b.length)return null;h=="etjpg"&&(b=b.filter(function(y){return y.getUrl().includes("w1200-h300")}));
return b.map(function(y){return{url:y.getUrl(),height:y.getHeight(),width:y.getWidth(),type:h}})},qPP=function(b){return{isAttachment:b.some(function(h){return _.J1(h,31)})}},xSe=function(b){var h,y={id:(h=b.getId())==null?void 0:h.getId(),
serviceId:mSP(b),mimeType:_.gQ(b,7),name:b.getName(),type:vR(b),sizeBytes:Number(c85(b)),description:_.gQ(b,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:bc(Mk(b)),isNew:!0};if(h=_.cL(b,Zy,30)){y.dataUrl=_.gQ(h,1)||null;a:{var S=_.cL(b,Zy,30);switch(_.sV(S,3)){case 9:S=_.kY(S,R9M,2,o6);S={remoteRefs:S&&_.gQ(S,1)};break a;case 10:case 15:S=_.kY(S,cWW,4,o6);var F=Mk(b);S={photo_id:S&&_.gQ(S,1),media_key:b.getId().getId(),media_type:_.sV(b,6)===1?1:2,image_url:F&&
F[0].getUrl(),width:F&&String(F[0].getWidth()),height:F&&String(F[0].getHeight())};break a}S=null}y.uploadMetadata=S;y.uploadId=_.gQ(h,9)||null;y.uploadState=vJN(h)||null}(S=h&&_.kY(h,cWW,4,o6))&&(y.id=_.gQ(S,1));(S=h&&_.kY(h,z9a,5,o6))&&(y.contentId=_.gQ(S,1));(S=h&&_.kY(h,tGM,7,o6))&&(y.contentId=_.gQ(S,1));(S=h&&_.kY(h,rW5,6,o6))&&(y.contentId=_.gQ(S,1));(h==null?void 0:_.sV(h,3))===1&&(y.mediaKey=b.getId().getId());return y},mSP=function(b){var h;
switch(((h=_.cL(b,Zy,30))==null?void 0:_.sV(h,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},vR=function(b){switch(_.sV(b,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 _.gQ(b,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},vJN=function(b){switch(b==null?void 0:_.sV(b,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 Sb8,b28,hS8,ymP;_.Fdb=function(b,h){var y=h||{};h=y.document||document;var S=_.s_(b).toString(),F=(new GG(h)).createElement("SCRIPT"),a={script_:F,timeout_:void 0},P=new nG(b28,a),K=null,n=y.timeout!=null?y.timeout:5E3;n>0&&(K=window.setTimeout(function(){hS8(F,!0);P.errback(new ymP(1,"Timeout reached for loading script "+S))},n),a.timeout_=K);
F.onload=F.onreadystatechange=function(){F.readyState&&F.readyState!="loaded"&&F.readyState!="complete"||(hS8(F,y.cleanupWhenDone||!1,K),P.callback(null))};
F.onerror=function(){hS8(F,!0,K);P.errback(new ymP(0,"Error while loading script "+S))};
a=y.attributes||{};_.lR.extend(a,{type:"text/javascript",charset:"UTF-8"});$zW(F,a);_.ZF(F,b);Sb8(h).appendChild(F);return P};
Sb8=function(b){var h=T$("HEAD",b);return h&&h.length!==0?h[0]:b.documentElement};
b28=function(){if(this&&this.script_){var b=this.script_;b&&b.tagName=="SCRIPT"&&hS8(b,!0,this.timeout_)}};
hS8=function(b,h,y){y!=null&&_.S5.clearTimeout(y);b.onload=function(){};
b.onerror=function(){};
b.onreadystatechange=function(){};
h&&window.setTimeout(function(){_.sD(b)},0)};
ymP=function(b,h){var y="Jsloader error (code #"+b+")";h&&(y+=": "+h);_.bf.call(this,y);this.code=b};
_.Pv(ymP,_.bf);var afM=_.bm(["https://apis.google.com/js/api.js"]),dd5=_.Ra(afM),Pz5=function(b,h,y){y=y===void 0?{}:y;var S=!1,F=j0o(b,h,y).then(function(P){S=!0;return P}),a=_.UUa(5E3).then(function(){return S?j0o(b,h,y):$dW(h,y).then(function(P){return Ldo(P,b)})});
return Olw([F,a])},j0o=function(b,h,y){y=y===void 0?{}:y;
return KdW(h,y).then(function(S){return Ldo(S,b)})},Ldo=function(b,h){var y=_.aq(h,"gapi.")?h.slice(5):h;
return b[y]?_.$p(b[y]):new _.Uu(function(S,F){var a=qk(function(){F(Error("Ya"))},3E4);
b.load(h,{callback:function(){_.S5.clearTimeout(a);S(b[y])},
onerror:function(P){_.S5.clearTimeout(a);F(P)}})})},KdW=function(b,h){h=h===void 0?{}:h;
return b.gapi&&b.gapi.load?_.$p(b.gapi):$dW(b,h)},$dW=function(b,h){h=h===void 0?{}:h;
return _.Fdb(dd5,{document:b.document,attributes:h}).then(function(){return b.gapi})},Z27=function(){};
Z27.prototype.load=function(b,h,y){h=h===void 0?window:h;y=y===void 0?{}:y;var S=Date.now();return Pz5(b,h,y).then(function(F){var a=Date.now();return{library:F,loadStartMs:S,loadEndMs:a}},function(F){throw F instanceof Error?F:Error(String(F));
})};var MKN=function(){_.ED.call(this);this.gapiLoader_=new Z27;this.origin_=null;this.gapiPickerIframeResolver_=_.wS();this.gapiIframesResolver_=_.wS();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.z(MKN,_.ED);var o67=function(b,h){var y=y===void 0?{}:y;var S=_.hj("gapi.iframes",h);return S?(b=Date.now(),_.$p({library:S,loadStartMs:b,loadEndMs:b})):b.gapiLoader_.load("gapi.iframes",h,y)},MMG=function(b,h,y,S,F,a){var P=!1;
P=P===void 0?!1:P;o67(b,QX(h.ownerDocument)).then(function(K){var n=K.library;b.gapiIframesResolver_.resolve(n);K=b.gapiPickerIframeResolver_;var X=K.resolve,u=P;u=u===void 0?!1:u;var O={};O["host-message-handler"]=y;b.hostMessageHandlerInternal_=O;var N=_.La(S);N=_.La(N);N=_.RE(_.cR(_.rv(new _.lX,N.scheme_),N.JSC$10215_domain_),N.JSC$10215_port_).toString();b.origin_=N;N=(new Ui7).setUrl(S);N.JSC$10230_obj_.where=h;N.JSC$10230_obj_.allowPost=u;N.JSC$10230_obj_.messageHandlers=O;u=_.hj("makeWhiteListIframesFilter",
n)([b.origin_]);N.JSC$10230_obj_.messageHandlersFilter=u;F!=null&&(N.JSC$10230_obj_.id=F);a!=null&&(N.JSC$10230_obj_.rpctoken=a);u=Ade(N);u.JSC$10227_obj_.style={display:"block","min-width":"100%",width:"1px"};u.JSC$10227_obj_.height="100%";Ade(N).value().allow="camera 'src' "+b.origin_;n=n.getContext().openChild(N.value());X.call(K,n)},function(K){b.gapiIframesResolver_.reject(K);
b.gapiPickerIframeResolver_.reject(K)});
return b.gapiPickerIframeResolver_.promise},n6a=function(b,h){return _.wb([b.gapiIframesResolver_.promise,
b.gapiPickerIframeResolver_.promise]).then(function(y){var S=_.L(y);y=S.next().value;return(S=S.next().value)?S.send("picker-message-handler",h,void 0,_.hj("makeWhiteListIframesFilter",y)([b.origin_])):_.UQ(Error("Za"))})};
MKN.prototype.disposeInternal=function(){X_5(this);_.ED.prototype.disposeInternal.call(this)};
var X_5=function(b){b.gapiPickerIframeResolver_.promise.then(function(h){h&&(h.unregister("host-message-handler"),delete b.hostMessageHandlerInternal_["host-message-handler"])})};var H2G=function(){this.nextId=0};var O2M=function(b,h){switch(b.action){case "select-contacts":b=uua(b.contacts);break;case "visibility":b=b.visible;var y=new O6;b=_.EV(y,1,7).setVisible(b);y={};y["iframe-command"]=b.serialize();b=y;break;default:b=null}return b?n6a(h,b):_.$p()},uua=function(b){if(!b||b.length==0)return null;
var h=new O6;_.EV(h,1,11);var y=new H2G;b.forEach(function(S){if(S.email){var F=new UV;F=_.lq(F,2,S.name?S.name:S.email);var a=new uRG;S=_.EFk(a,1,_.cN,S.email,_.zq);S=_.U_(F,27,S);F=new nT7;a=":"+(y.nextId++).toString(36);F=_.lq(F,1,a);F=_.EV(F,2,12);S=_.U_(S,1,F)}else S=null;S&&gd(h,7,UV,S)});
b={};b["iframe-command"]=h.serialize();return b};_.Nk5=function(){if(sqe){var b=/Windows NT ([0-9.]+)/;return(b=b.exec(_.HF()))?b[1]:"0"}return _.gUG?(b=/1[0|1][_.][0-9_.]+/,(b=b.exec(_.HF()))?b[0].replace(/_/g,"."):"10"):hIf?(b=/Android\s+([^\);]+)(\)|;)/,(b=b.exec(_.HF()))?b[1]:""):TIa||GkP||kk7?(b=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(b=b.exec(_.HF()))?b[1].replace(/_/g,"."):""):""}();var hq;hq=function(b){return(b=b.exec(_.HF()))?b[1]:""};
_.tMa=function(){if(_.OV)return hq(/Firefox\/([0-9.]+)/);if(_.nF||nz||JYa)return qja;if(_.Nq){if(_.AY()||_.z8U()){var b=hq(/CriOS\/([0-9.]+)/);if(b)return b}return hq(/Chrome\/([0-9.]+)/)}if(_.h9&&!_.AY())return hq(/Version\/([0-9.]+)/);if(aU8||dmn){if(b=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.HF()))return b[1]+"."+b[2]}else if(bMG)return(b=hq(/Android\s+([0-9.]+)/))?b:hq(/Version\/([0-9.]+)/);return""}();var rmw=function(){};
_.$Y(rmw);rmw.prototype.nextId_=0;_.yR=function(b){return":"+(b.nextId_++).toString(36)};var S6=function(b){_.TI.call(this);this.JSC$10325_dom_=b||GP();this.JSC$10325_id_=null;this.inDocument_=!1;this.JSC$10325_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.Pv(S6,_.TI);S6.prototype.idGenerator_=rmw.getInstance();S6.prototype.getId=function(){return this.JSC$10325_id_||(this.JSC$10325_id_=_.yR(this.idGenerator_))};
S6.prototype.getElement=function(){return this.JSC$10325_element_};
var Fe=function(b){b.googUiComponentHandler_||(b.googUiComponentHandler_=new _.B_(b));return b.googUiComponentHandler_},cma=function(b,h){if(b==h)throw Error("$a");
var y;if(y=h&&b.parent_&&b.JSC$10325_id_){y=b.parent_;var S=b.JSC$10325_id_;y=y.childIndex_&&S?_.lR.get(y.childIndex_,S)||null:null}if(y&&b.parent_!=h)throw Error("$a");b.parent_=h;S6.superClass_.setParentEventTarget.call(b,h)};
S6.prototype.setParentEventTarget=function(b){if(this.parent_&&this.parent_!=b)throw Error("ab");S6.superClass_.setParentEventTarget.call(this,b)};
S6.prototype.JSC$10327_createDom=function(){this.JSC$10325_element_=this.JSC$10325_dom_.createElement("DIV")};
S6.prototype.render=function(b){RSN(this,b)};
var RSN=function(b,h,y){if(b.inDocument_)throw Error("bb");b.JSC$10325_element_||b.JSC$10327_createDom();h?h.insertBefore(b.JSC$10325_element_,y||null):b.JSC$10325_dom_.JSC$9509_document_.body.appendChild(b.JSC$10325_element_);b.parent_&&!b.parent_.inDocument_||b.enterDocument()};
_.d=S6.prototype;_.d.decorate=function(b){if(this.inDocument_)throw Error("bb");if(b&&this.canDecorate(b)){this.wasDecorated_=!0;var h=_.mQ(b);this.JSC$10325_dom_&&this.JSC$10325_dom_.JSC$9509_document_==h||(this.JSC$10325_dom_=GP(b));this.decorateInternal(b);this.enterDocument()}else throw Error("cb");};
_.d.canDecorate=function(){return!0};
_.d.decorateInternal=function(b){this.JSC$10325_element_=b};
_.d.enterDocument=function(){this.inDocument_=!0;zSW(this,function(b){!b.inDocument_&&b.getElement()&&b.enterDocument()})};
_.d.exitDocument=function(){zSW(this,function(b){b.inDocument_&&b.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.d.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);zSW(this,function(b){b.dispose()});
!this.wasDecorated_&&this.JSC$10325_element_&&_.sD(this.JSC$10325_element_);this.parent_=this.model_=this.JSC$10325_element_=this.childIndex_=this.children_=null;S6.superClass_.disposeInternal.call(this)};
_.d.getModel=function(){return this.model_};
_.d.addChild=function(b,h){var y=this.children_?this.children_.length:0;if(b.inDocument_&&(h||!this.inDocument_))throw Error("bb");if(y<0||y>(this.children_?this.children_.length:0))throw Error("db");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);b.parent_==this?(_.lR.set(this.childIndex_,b.getId(),b),_.Gk(this.children_,b)):_.lR.add(this.childIndex_,b.getId(),b);cma(b,this);_.JYk(this.children_,y,0,b);b.inDocument_&&this.inDocument_&&b.parent_==this?(h=this.getContentElement(),
(h.childNodes[y]||null)!=b.getElement()&&(b.getElement().parentElement==h&&h.removeChild(b.getElement()),y=h.childNodes[y]||null,h.insertBefore(b.getElement(),y))):h?(this.JSC$10325_element_||this.JSC$10327_createDom(),y=this.children_?this.children_[y+1]||null:null,RSN(b,this.getContentElement(),y?y.JSC$10325_element_:null)):this.inDocument_&&!b.inDocument_&&b.JSC$10325_element_&&b.JSC$10325_element_.parentNode&&b.JSC$10325_element_.parentNode.nodeType==1&&b.enterDocument()};
_.d.getContentElement=function(){return this.JSC$10325_element_};
var zSW=function(b,h){b.children_&&b.children_.forEach(h,void 0)};
S6.prototype.removeChild=function(b,h){if(b){var y=typeof b==="string"?b:b.getId();b=this.childIndex_&&y?_.lR.get(this.childIndex_,y)||null:null;y&&b&&(_.lR.remove(this.childIndex_,y),_.Gk(this.children_,b),h&&(b.exitDocument(),b.JSC$10325_element_&&_.sD(b.JSC$10325_element_)),cma(b,null))}if(!b)throw Error("eb");return b};_.Pv(FB5,SvF);_.Pv(aBM,SvF);var Dd5;_.lR.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var Ife=function(b,h){h?b.setAttribute("role",h):b.removeAttribute("role")},aG=function(b,h,y){Array.isArray(y)&&(y=y.join(" "));
var S="aria-"+h;y===""||y==void 0?(Dd5||(y={},Dd5=(y.atomic=!1,y.autocomplete="none",y.dropeffect="none",y.haspopup=!1,y.live="off",y.multiline=!1,y.multiselectable=!1,y.orientation="vertical",y.readonly=!1,y.relevant="additions text",y.required=!1,y.sort="none",y.busy=!1,y.disabled=!1,y.hidden=!1,y.invalid="false",y)),y=Dd5,h in y?b.setAttribute(S,y[h]):b.removeAttribute(S)):b.setAttribute(S,y)};var Bk7;_.d4=function(b,h,y){_.TI.call(this);this.target=b;this.handle=h||b;this.limits=y||new mL(NaN,NaN,NaN,NaN);this.JSC$10330_document_=_.mQ(b);this.JSC$10330_eventHandler_=new _.B_(this);_.pq(this,this.JSC$10330_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;_.W3(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=Bk7};
_.Pv(_.d4,_.TI);Bk7=_.S5.document&&_.S5.document.documentElement&&!!_.S5.document.documentElement.setCapture&&!!_.S5.document.releaseCapture;_.Wd8=function(b,h){b.hysteresisDistanceSquared_=Math.pow(h,2)};
_.d=_.d4.prototype;_.d.setEnabled=function(b){this.enabled_=b};
_.d.disposeInternal=function(){_.d4.superClass_.disposeInternal.call(this);_.Yy(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10330_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10330_document_.releaseCapture();this.handle=this.target=null};
_.d.startDrag=function(b){var h=b.type=="mousedown";if(!this.enabled_||this.dragging_||h&&(!b.isButton(0)||_.gUG&&b.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new j6("start",this,b.clientX,b.clientY,b)))this.dragging_=!0,h&&b.preventDefault();else return;else h&&b.preventDefault();h=this.JSC$10330_document_;var y=h.documentElement,S=!this.useSetCapture_;this.JSC$10330_eventHandler_.listen(h,["touchmove","mousemove"],this.handleMove_,
{capture:S,passive:!1});this.JSC$10330_eventHandler_.listen(h,["touchend","mouseup"],this.endDrag,S);this.useSetCapture_?(y.setCapture(!1),this.JSC$10330_eventHandler_.listen(y,"losecapture",this.endDrag)):this.JSC$10330_eventHandler_.listen(QX(h),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10330_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,S);this.clientX=this.startX=b.clientX;this.clientY=this.startY=b.clientY;this.screenX=b.screenX;this.screenY=b.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=TP(GP(this.JSC$10330_document_))}};
_.d.endDrag=function(b,h){this.JSC$10330_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10330_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new j6("end",this,b.clientX,b.clientY,b,AmM(this,this.deltaX),UdN(this,this.deltaY),h||b.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.d.handleMove_=function(b){if(this.enabled_){var h=b.clientX-this.clientX,y=b.clientY-this.clientY;this.clientX=b.clientX;this.clientY=b.clientY;this.screenX=b.screenX;this.screenY=b.screenY;if(!this.dragging_){var S=this.startX-this.clientX,F=this.startY-this.clientY;if(S*S+F*F>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new j6("start",this,b.clientX,b.clientY,b)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(b);return}}y=p_G(this,h,y);h=y.x;y=y.y;this.dragging_&&this.dispatchEvent(new j6("beforedrag",
this,b.clientX,b.clientY,b,h,y))&&(Jmo(this,b,h,y),b.preventDefault())}};
var p_G=function(b,h,y){var S=TP(GP(b.JSC$10330_document_));h+=S.x-b.pageScroll.x;y+=S.y-b.pageScroll.y;b.pageScroll=S;b.deltaX+=h;b.deltaY+=y;return new _.xb(AmM(b,b.deltaX),UdN(b,b.deltaY))};
_.d4.prototype.onScroll_=function(b){var h=p_G(this,0,0);b.clientX=this.clientX;b.clientY=this.clientY;Jmo(this,b,h.x,h.y)};
var Jmo=function(b,h,y,S){b.target.style.left=y+"px";b.target.style.top=S+"px";b.dispatchEvent(new j6("drag",b,h.clientX,h.clientY,h,y,S))},AmM=function(b,h){var y=b.limits;
b=isNaN(y.left)?null:y.left;y=isNaN(y.width)?0:y.width;return Math.min(b!=null?b+y:Infinity,Math.max(b!=null?b:-Infinity,h))},UdN=function(b,h){var y=b.limits;
b=isNaN(y.top)?null:y.top;y=isNaN(y.height)?0:y.height;return Math.min(b!=null?b+y:Infinity,Math.max(b!=null?b:-Infinity,h))};
_.d4.prototype.isDragging=function(){return this.dragging_};
var j6=function(b,h,y,S,F,a,P){_.eW.call(this,b);this.clientX=y;this.clientY=S;this.browserEvent=F;this.left=a!==void 0?a:h.deltaX;this.top=P!==void 0?P:h.deltaY};
_.Pv(j6,_.eW);var $R=function(b){this.JSC$10337_map_=new Map;var h=arguments.length;if(h>1){if(h%2)throw Error("ma");for(var y=0;y<h;y+=2)this.set(arguments[y],arguments[y+1])}else b&&this.addAll(b)};
_.d=$R.prototype;_.d.getCount=function(){return this.JSC$10337_map_.size};
_.d.getValues=function(){return Array.from(this.JSC$10337_map_.values())};
_.d.getKeys=function(){return Array.from(this.JSC$10337_map_.keys())};
_.d.containsKey=function(b){return this.JSC$10337_map_.has(b)};
_.d.containsValue=function(b){return this.getValues().some(function(h){return h==b})};
_.d.equals=function(b,h){var y=this;h=h===void 0?function(S,F){return S===F}:h;
return this===b?!0:this.JSC$10337_map_.size!=b.getCount()?!1:this.getKeys().every(function(S){return h(y.JSC$10337_map_.get(S),b.get(S))})};
_.d.isEmpty=function(){return this.JSC$10337_map_.size==0};
_.d.clear=function(){this.JSC$10337_map_.clear()};
_.d.remove=function(b){return this.JSC$10337_map_.delete(b)};
_.d.get=function(b,h){return this.JSC$10337_map_.has(b)?this.JSC$10337_map_.get(b):h};
_.d.set=function(b,h){this.JSC$10337_map_.set(b,h);return this};
_.d.addAll=function(b){if(b instanceof $R){b=_.L(b.JSC$10337_map_);for(var h=b.next();!h.done;h=b.next()){var y=_.L(h.value);h=y.next().value;y=y.next().value;this.JSC$10337_map_.set(h,y)}}else if(b)for(b=_.L(Object.entries(b)),h=b.next();!h.done;h=b.next())y=_.L(h.value),h=y.next().value,y=y.next().value,this.JSC$10337_map_.set(h,y)};
_.d.forEach=function(b,h){var y=this;h=h===void 0?this:h;this.JSC$10337_map_.forEach(function(S,F){return b.call(h,S,F,y)})};
_.d.clone=function(){return new $R(this)};(function(){for(var b=["ms","moz","webkit","o"],h,y=0;h=b[y]&&!_.S5.requestAnimationFrame;++y)_.S5.requestAnimationFrame=_.S5[h+"RequestAnimationFrame"],_.S5.cancelAnimationFrame=_.S5[h+"CancelAnimationFrame"]||_.S5[h+"CancelRequestAnimationFrame"];if(!_.S5.requestAnimationFrame){var S=0;_.S5.requestAnimationFrame=function(F){var a=(new Date).getTime(),P=Math.max(0,16-(a-S));S=a+P;return _.S5.setTimeout(function(){F(a+P)},P)};
_.S5.cancelAnimationFrame||(_.S5.cancelAnimationFrame=function(F){clearTimeout(F)})}})();
var eSW=[[],[]],Czb=0,g6e=!1,s0G=0,Tk7=function(b,h){var y=s0G++,S={measureTask:{id:y,fn:b.measure,context:h},mutateTask:{id:y,fn:b.mutate,context:h},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(S.args||(S.args=[]),S.args.length=0,S.args.push.apply(S.args,arguments),S.args.push(S.state)):S.args&&S.args.length!=0?(S.args[0]=S.state,S.args.length=1):S.args=[S.state];S.isScheduled||(S.isScheduled=!0,eSW[Czb].push(S));g6e||(g6e=!0,window.requestAnimationFrame(YbW))}},YbW=
function(){g6e=!1;
var b=eSW[Czb],h=b.length;Czb=(Czb+1)%2;for(var y,S=0;S<h;++S){y=b[S];var F=y.measureTask;y.isScheduled=!1;F.fn&&F.fn.apply(F.context,y.args)}for(S=0;S<h;++S)y=b[S],F=y.mutateTask,y.isScheduled=!1,F.fn&&F.fn.apply(F.context,y.args),y.state={};b.length=0};var GNa=_.bm(["about:blank"]),kNW=_.bm(["javascript:undefined"]),VMo=_.Ra(GNa);_.s_(VMo);var E68=_.Ra(kNW);_.s_(E68);var LH=function(b){_.TI.call(this);this.JSC$10343_element_=b;this.listenKeyIn_=_.W3(this.JSC$10343_element_,"focus",this,!0);this.listenKeyOut_=_.W3(this.JSC$10343_element_,"blur",this,!0)};
_.Pv(LH,_.TI);LH.prototype.handleEvent=function(b){var h=new _.Cv(b.event_);h.type=b.type=="focusin"||b.type=="focus"?"focusin":"focusout";this.dispatchEvent(h)};
LH.prototype.disposeInternal=function(){LH.superClass_.disposeInternal.call(this);D1(this.listenKeyIn_);D1(this.listenKeyOut_);delete this.JSC$10343_element_};var i2a=function(b,h){this.JSC$10346_element_=b;this.JSC$10346_dom_=h};var Pa=function(b,h){S6.call(this,h);this.useIframeMask_=!!b;this.lastFocus_=null;this.resizeBackgroundTask_=Tk7({mutate:this.resizeBackground_},this);Tk7({mutate:this.updateModalAndBackground_},this)};
_.Pv(Pa,S6);_.d=Pa.prototype;_.d.focusHandler_=null;_.d.visible_=!1;_.d.bgEl_=null;_.d.bgIframeEl_=null;_.d.tabCatcherElement_=null;_.d.backwardTabWrapInProgress_=!1;_.d.getCssClass=function(){return"goog-modalpopup"};
_.d.getBackgroundElement=function(){return this.bgEl_};
_.d.JSC$10327_createDom=function(){Pa.superClass_.JSC$10327_createDom.call(this);var b=this.getElement(),h=My(this.getCssClass()).split(" ");oE(b,h);b.tabIndex=0;_.ZC(b,!1);ffe(this);w_w(this)};
var ffe=function(b){if(b.useIframeMask_&&!b.bgIframeEl_){var h=b.JSC$10325_dom_.JSC$9511_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.Fg(h,VMo);b.bgIframeEl_=h;b.bgIframeEl_.className=b.getCssClass()+"-bg";_.ZC(b.bgIframeEl_,!1);sa8(b.bgIframeEl_,0)}b.bgEl_||(b.bgEl_=b.JSC$10325_dom_.JSC$9511_createDom("DIV",b.getCssClass()+"-bg"),_.ZC(b.bgEl_,!1))},w_w=function(b){b.tabCatcherElement_||(b.tabCatcherElement_=b.JSC$10325_dom_.createElement("SPAN"),_.ZC(b.tabCatcherElement_,
!1),b.tabCatcherElement_.tabIndex=0,b.tabCatcherElement_.style.position="absolute")};
_.d=Pa.prototype;_.d.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.d.canDecorate=function(b){return!!b&&b.tagName=="DIV"};
_.d.decorateInternal=function(b){Pa.superClass_.decorateInternal.call(this,b);b=My(this.getCssClass()).split(" ");oE(this.getElement(),b);ffe(this);w_w(this);this.getElement().tabIndex=0;_.ZC(this.getElement(),!1)};
_.d.enterDocument=function(){this.bgIframeEl_&&_.l4(this.bgIframeEl_,this.getElement());_.l4(this.bgEl_,this.getElement());Pa.superClass_.enterDocument.call(this);_.qM(this.tabCatcherElement_,this.getElement());this.focusHandler_=new LH(this.JSC$10325_dom_.JSC$9509_document_);Fe(this).listen(this.focusHandler_,"focusin",this.onFocus);lfW(this,!1)};
_.d.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.nq(this.focusHandler_);Pa.superClass_.exitDocument.call(this);_.sD(this.bgIframeEl_);_.sD(this.bgEl_);_.sD(this.tabCatcherElement_)};
_.d.setVisible=function(b){if(b!=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_&&lfW(this,b),b){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10325_dom_.JSC$9509_document_.activeElement}catch(F){}this.updateModalAndBackground_();Fe(this).listen(this.JSC$10325_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10325_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);qbN(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)zK(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){Fe(this).unlisten(this.JSC$10325_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10325_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)zK(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var h=this.JSC$10325_dom_,y=h.JSC$9509_document_.body,S=h.JSC$9509_document_.activeElement||y;if(!this.lastFocus_||this.lastFocus_==y){this.lastFocus_=null;break a}(S==y||h.contains(this.getElement(),S))&&this.lastFocus_.focus()}catch(F){}this.lastFocus_=
null}}};
var lfW=function(b,h){b.modalAriaVisibilityHelper_||(b.modalAriaVisibilityHelper_=new i2a(b.JSC$10325_element_,b.JSC$10325_dom_));b=b.modalAriaVisibilityHelper_;if(h){b.hiddenElements_||(b.hiddenElements_=[]);h=b.JSC$10346_dom_.getChildren(b.JSC$10346_dom_.JSC$9509_document_.body);for(var y=0;y<h.length;y++){var S=h[y],F;if(F=S!=b.JSC$10346_element_)F=S.getAttribute("aria-hidden"),F=!(F==null||F==void 0?0:String(F));F&&(aG(S,"hidden",!0),b.hiddenElements_.push(S))}}else if(b.hiddenElements_){for(h=
0;h<b.hiddenElements_.length;h++)b.hiddenElements_[h].removeAttribute("aria-hidden");b.hiddenElements_=null}};
Pa.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var qbN=function(b,h){b.bgIframeEl_&&_.ZC(b.bgIframeEl_,h);b.bgEl_&&_.ZC(b.bgEl_,h);_.ZC(b.getElement(),h);_.ZC(b.tabCatcherElement_,h)};
_.d=Pa.prototype;_.d.onShow=function(){this.dispatchEvent("show")};
_.d.onHide=function(){qbN(this,!1);this.dispatchEvent("hide")};
_.d.isVisible=function(){return this.visible_};
_.d.focus=function(){this.focusElement_()};
_.d.resizeBackground_=function(){this.bgIframeEl_&&_.ZC(this.bgIframeEl_,!1);this.bgEl_&&_.ZC(this.bgEl_,!1);var b=this.JSC$10325_dom_.JSC$9509_document_;var h=_.sS(QX(this.JSC$10325_dom_.JSC$9509_document_)||window);var y=Math.max(h.width,Math.max(b.body.scrollWidth,b.documentElement.scrollWidth));b=Math.max(h.height,Math.max(b.body.scrollHeight,b.documentElement.scrollHeight));this.bgIframeEl_&&(_.ZC(this.bgIframeEl_,!0),_.Jg7(this.bgIframeEl_,y,b));this.bgEl_&&(_.ZC(this.bgEl_,!0),_.Jg7(this.bgEl_,
y,b))};
_.d.reposition=function(){var b;if(_.pBo(this.getElement())=="fixed")var h=b=0;else h=TP(this.JSC$10325_dom_),b=h.x,h=h.y;var y=CR8(this.getElement());var S=_.sS(QX(this.JSC$10325_dom_.JSC$9509_document_)||window);b=Math.max(b+S.width/2-y.width/2,0);h=Math.max(h+S.height/2-y.height/2,0);hU(this.getElement(),b,h);hU(this.tabCatcherElement_,b,h)};
_.d.onFocus=function(b){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():b.target==this.tabCatcherElement_&&qk(this.focusElement_,0,this)};
_.d.focusElement_=function(){try{this.getElement().focus()}catch(b){}};
_.d.disposeInternal=function(){_.nq(this.popupShowTransition_);this.popupShowTransition_=null;_.nq(this.popupHideTransition_);this.popupHideTransition_=null;_.nq(this.bgShowTransition_);this.bgShowTransition_=null;_.nq(this.bgHideTransition_);this.bgHideTransition_=null;Pa.superClass_.disposeInternal.call(this)};var hr=function(b,h,y){Pa.call(this,h,y);this.JSC$10356_class_=b||"modal-dialog";this.buttons_=(new KH).addButton(xda,!0).addButton(Q05,!1,!0)};
_.Pv(hr,Pa);_.d=hr.prototype;_.d.escapeToCancel_=!0;_.d.hasTitleCloseButton_=!0;_.d.modal_=!0;_.d.draggable_=!0;_.d.backgroundElementOpacity_=.5;_.d.title_="";_.d.JSC$10358_dragger_=null;_.d.JSC$10358_disposeOnHide_=!1;_.d.titleEl_=null;_.d.titleTextEl_=null;_.d.titleTextId_=null;_.d.titleCloseEl_=null;_.d.contentEl_=null;_.d.buttonEl_=null;_.d.getCssClass=function(){return this.JSC$10356_class_};
_.d.setTitle=function(b){this.title_=b;this.titleTextEl_&&_.Qw(this.titleTextEl_,b)};
_.d.getTitle=function(){return this.title_};
_.d.getContent=function(){return""};
_.d.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var md7=function(b){b.getElement()||b.render();return b.getElement()};
hr.prototype.getBackgroundElement=function(){this.getElement()||this.render();return hr.superClass_.getBackgroundElement.call(this)};
var v65=function(b,h){b.backgroundElementOpacity_=h;b.getElement()&&(h=b.getBackgroundElement())&&sa8(h,b.backgroundElementOpacity_)};
hr.prototype.setDraggable=function(b){this.draggable_=b;bx5(this,b&&this.inDocument_)};
hr.prototype.handleDrag=function(){};
var bx5=function(b,h){var y=My(b.JSC$10356_class_+"-title-draggable").split(" ");b.getElement()&&(h?oE(b.titleEl_,y):IBP(b.titleEl_,y));h&&!b.JSC$10358_dragger_?(h=new _.d4(b.getElement(),b.titleEl_),b.JSC$10358_dragger_=h,oE(b.titleEl_,y),_.W3(b.JSC$10358_dragger_,"start",b.setDraggerLimits_,!1,b),_.W3(b.JSC$10358_dragger_,"drag",b.handleDrag,!1,b)):!h&&b.JSC$10358_dragger_&&(b.JSC$10358_dragger_.dispose(),b.JSC$10358_dragger_=null)};
_.d=hr.prototype;
_.d.JSC$10327_createDom=function(){hr.superClass_.JSC$10327_createDom.call(this);var b=this.getElement(),h=this.JSC$10325_dom_;this.titleTextId_=this.getId();var y=this.getId()+".contentEl";this.titleEl_=h.JSC$9511_createDom("DIV",this.JSC$10356_class_+"-title",this.titleTextEl_=h.JSC$9511_createDom("SPAN",{className:this.JSC$10356_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=h.JSC$9511_createDom("SPAN",this.JSC$10356_class_+"-title-close"));obo(b,this.titleEl_,this.contentEl_=
h.JSC$9511_createDom("DIV",{className:this.JSC$10356_class_+"-content",id:y}),this.buttonEl_=h.JSC$9511_createDom("DIV",this.JSC$10356_class_+"-buttons"));Ife(this.titleTextEl_,"heading");Ife(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;aG(this.titleCloseEl_,"label","Close");Ife(b,"dialog");aG(b,"labelledby",this.titleTextId_||"");_.ZC(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(b=this.buttons_,b.JSC$10359_element_=this.buttonEl_,b.render());_.ZC(this.buttonEl_,!!this.buttons_);
v65(this,this.backgroundElementOpacity_)};
_.d.decorateInternal=function(b){hr.superClass_.decorateInternal.call(this,b);b=this.getElement();var h=this.JSC$10356_class_+"-content";this.contentEl_=kB(document,null,h,b)[0];this.contentEl_||(this.contentEl_=this.JSC$10325_dom_.JSC$9511_createDom("DIV",h),b.appendChild(this.contentEl_));h=this.JSC$10356_class_+"-title";var y=this.JSC$10356_class_+"-title-text",S=this.JSC$10356_class_+"-title-close";(this.titleEl_=kB(document,null,h,b)[0])?(this.titleTextEl_=kB(document,null,y,this.titleEl_)[0],
this.titleCloseEl_=kB(document,null,S,this.titleEl_)[0]):(this.titleEl_=this.JSC$10325_dom_.JSC$9511_createDom("DIV",h),b.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=IKW(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.Ee("SPAN",{className:y,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;aG(b,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10325_dom_.JSC$9511_createDom("SPAN",S),this.titleEl_.appendChild(this.titleCloseEl_));_.ZC(this.titleCloseEl_,this.hasTitleCloseButton_);h=this.JSC$10356_class_+"-buttons";(this.buttonEl_=kB(document,null,h,b)[0])?(this.buttons_=new KH(this.JSC$10325_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10325_dom_.JSC$9511_createDom("DIV",h),b.appendChild(this.buttonEl_),this.buttons_&&(b=this.buttons_,b.JSC$10359_element_=this.buttonEl_,b.render()),_.ZC(this.buttonEl_,
!!this.buttons_));v65(this,this.backgroundElementOpacity_)};
_.d.enterDocument=function(){hr.superClass_.enterDocument.call(this);Fe(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);Fe(this).listen(this.buttonEl_,"click",this.onButtonClick_);bx5(this,this.draggable_);Fe(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var b=this.getElement();Ife(b,"dialog");this.titleTextEl_.id!==""&&aG(b,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){b=this.JSC$10325_dom_;
var h=this.getBackgroundElement();b.removeNode(this.bgIframeEl_);b.removeNode(h)}this.isVisible()&&lfW(this,!1)}};
_.d.exitDocument=function(){this.isVisible()&&this.setVisible(!1);bx5(this,!1);hr.superClass_.exitDocument.call(this)};
_.d.setVisible=function(b){b!=this.isVisible()&&(this.inDocument_||this.render(),hr.superClass_.setVisible.call(this,b))};
_.d.onShow=function(){hr.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.d.onHide=function(){hr.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10358_disposeOnHide_&&this.dispose()};
_.d.setDraggerLimits_=function(){var b=this.JSC$10325_dom_.JSC$9509_document_,h=_.sS(QX(b)||window),y=Math.max(b.body.scrollWidth,h.width);b=Math.max(b.body.scrollHeight,h.height);var S=CR8(this.getElement());_.pBo(this.getElement())=="fixed"?this.JSC$10358_dragger_.limits=new mL(0,0,Math.max(0,h.width-S.width),Math.max(0,h.height-S.height)):this.JSC$10358_dragger_.limits=new mL(0,0,y-S.width,b-S.height)};
_.d.onTitleCloseClick_=function(){hYb(this)};
var hYb=function(b){if(b.hasTitleCloseButton_){var h=b.buttons_,y=h&&h.cancelButton_;y?(h=h.get(y),b.dispatchEvent(new Z6(y,h))&&b.setVisible(!1)):b.setVisible(!1)}},ye8=function(b){b.hasTitleCloseButton_=!1;
b.titleCloseEl_&&_.ZC(b.titleCloseEl_,b.hasTitleCloseButton_)};
hr.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;hr.superClass_.disposeInternal.call(this)};
hr.prototype.onButtonClick_=function(b){a:{for(b=b.target;b!=null&&b!=this.buttonEl_;){if(b.tagName=="BUTTON")break a;b=b.parentNode}b=null}if(b&&!b.disabled){b=b.name;var h=this.buttons_.get(b);this.dispatchEvent(new Z6(b,h))&&this.setVisible(!1)}};
hr.prototype.onKey_=function(b){var h=!1,y=!1,S=this.buttons_,F=b.target;if(b.type=="keydown")if(this.escapeToCancel_&&b.keyCode==27){var a=S&&S.cancelButton_;F=F.tagName=="SELECT"&&!F.disabled;a&&!F?(y=!0,h=S.get(a),h=this.dispatchEvent(new Z6(a,h))):F||(h=!0)}else{if(b.keyCode==9&&b.shiftKey&&F==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(u){}qk(this.resetBackwardTabWrap_,0,this)}}else if(b.keyCode==13){if(F.tagName=="BUTTON"&&!F.disabled)a=F.name;
else if(F==this.titleCloseEl_)hYb(this);else if(S){var P=S.defaultButton_,K;if(K=P)a:{K=T$("BUTTON",S.JSC$10359_element_);for(var n,X=0;n=K[X];X++)if(n.name==P||n.id==P){K=n;break a}K=null}F=(F.tagName=="TEXTAREA"||F.tagName=="SELECT"||F.tagName=="A")&&!F.disabled;!K||K.disabled||F||(a=P)}a&&S&&(y=!0,h=this.dispatchEvent(new Z6(a,String(S.get(a)))))}else F!=this.titleCloseEl_||b.keyCode!=32&&b.key!=" "||hYb(this);if(h||y)b.stopPropagation(),b.preventDefault();h&&this.setVisible(!1)};
var Z6=function(b,h){this.type="dialogselect";this.key=b;this.caption=h};
_.Pv(Z6,_.eW);var KH=function(b){$R.call(this);b||GP();this.cancelButton_=this.JSC$10359_element_=this.defaultButton_=null};
_.Pv(KH,$R);_.d=KH.prototype;_.d.clear=function(){$R.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.d.set=function(b,h,y,S){$R.prototype.set.call(this,b,h);y&&(this.defaultButton_=b);S&&(this.cancelButton_=b);return this};
_.d.addButton=function(b,h,y){return this.set(b.key,b.caption,h,y)};
_.d.render=function(){if(this.JSC$10359_element_){_.M5(this.JSC$10359_element_,ulq);var b=GP(this.JSC$10359_element_);this.forEach(function(h,y){h=b.JSC$9511_createDom("BUTTON",{name:y},h);y==this.defaultButton_&&(h.className="goog-buttonset-default");this.JSC$10359_element_.appendChild(h)},this)}};
_.d.decorate=function(b){if(b&&b.nodeType==1){this.JSC$10359_element_=b;b=T$("BUTTON",this.JSC$10359_element_);for(var h,y,S,F=0;h=b[F];F++)if(y=h.name||h.id,S=IKW(h)||h.value,y){var a=F==0;this.set(y,S,a,h.name=="cancel");a&&_.xS(h,"goog-buttonset-default")}}};
_.d.getElement=function(){return this.JSC$10359_element_};
var xda={key:"ok",caption:"OK"},Q05={key:"cancel",caption:"Cancel"},SE7={key:"yes",caption:"Yes"},Fpa={key:"no",caption:"No"},anP={key:"save",caption:"Save"},dQb={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new KH).addButton(xda,!0,!0),(new KH).addButton(xda,!0).addButton(Q05,!1,!0),(new KH).addButton(SE7,!0).addButton(Fpa,!1,!0),(new KH).addButton(SE7).addButton(Fpa,!0).addButton(Q05,!1,!0),(new KH).addButton(dQb).addButton(anP).addButton(Q05,!0,!0));_.Pv(dON,hr);_.Pv(j2F,Sh);var jH8=_.bm(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),$Qo=_.bm(["//apis.google.com/js/rpc.js"]),HzY=_.Ra(jH8),XLM=_.Ra($Qo),LB5=null;var Fk=function(b,h){_.TI.call(this);this.JSC$10368_element_=b;b=_.nK(this.JSC$10368_element_)?this.JSC$10368_element_:this.JSC$10368_element_?this.JSC$10368_element_.body:null;this.isRtl_=!!b&&_.YSa(b);this.listenKey_=_.W3(this.JSC$10368_element_,_.XW?"DOMMouseScroll":"mousewheel",this,h)};
_.Pv(Fk,_.TI);Fk.prototype.handleEvent=function(b){var h=0,y=0,S=b.event_;S.type=="mousewheel"?(b=LpW(-S.wheelDelta),S.wheelDeltaX!==void 0?(h=LpW(-S.wheelDeltaX),y=LpW(-S.wheelDeltaY)):y=b):(b=S.detail,b>100?b=3:b<-100&&(b=-3),S.axis!==void 0&&S.axis===S.HORIZONTAL_AXIS?h=b:y=b);typeof this.maxDeltaX_==="number"&&(h=_.Y7(h,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(y=_.Y7(y,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(h=-h);h=new PX7(b,S,h,y);this.dispatchEvent(h)};
var LpW=function(b){return _.Hv&&(_.gUG||Yjb)&&b%40!=0?b:b/40};
Fk.prototype.disposeInternal=function(){Fk.superClass_.disposeInternal.call(this);D1(this.listenKey_);this.listenKey_=null};
var PX7=function(b,h,y,S){_.Cv.call(this,h);this.type="mousewheel";this.detail=b;this.deltaX=y;this.deltaY=S};
_.Pv(PX7,_.Cv);_.Fo=function(b){var h="instance_";if(b.instance_&&b.hasOwnProperty(h))return b.instance_;h=new b;return b.instance_=h};var nP5;var Kp8=_.bm(["https://about:blank"]),ZxW=_.bm(['javascript:""']),oj7=_.bm(["about:blank"]);_.Pv(o4,dON);_.d=o4.prototype;_.d.JSC$10376_url_="";_.d.JSC$10376_iframe_=null;_.d.iframeLoaded_=!1;_.d.loadedFired_=!1;_.d.callback_=function(){};
_.d.enterDocument=function(){o4.superClass_.enterDocument.call(this);Zzy(this.getBackgroundElement(),Fe(this))};
_.d.render=function(b){var h=this;o4.superClass_.render.call(this,b);this.useGapi_?o67(this.iframeManager_,window).then(function(){return M3o(h)}).then(null,function(){h.callback_({action:"error"})}):nj8(this)};
var M3o=function(b){var h=b.JSC$10325_dom_.JSC$9511_createDom("div",["picker-dialog-content","picker-frame"]);_.ZC(h,!1);b.getContentElement().appendChild(h);return MMG(b.iframeManager_,h,function(y){var S=AWa(y["iframe-command"]);switch(S.getCommand()){case 1:y=b.callback_;S=_.cL(S,ue,2);var F="";switch(S.getStatus()){case 2:F="cancel";break;case 1:F="picked";break;case 3:F="error"}var a=_.NK(S,UV,2,_.tW(L55));S=a.length===0?{action:F}:lRN(a,F,_.cL(S,I9W,7));y.call(b,S);b.setVisible(!1);break;case 4:ye8(b);
b.callback_({action:"loaded"});break;case 7:case 8:y=b.callback_;a:{F=S.getCommand();a=_.cL(S,ue,2);switch(F){case 7:F="uploadScheduled";break;case 8:F="uploadStateChange";break;default:S={};break a}S=_.NK(a,UV,2,_.tW(L55));if(S.length===0)S={action:F};else{var P=_.cL(a,I9W,7);a=P&&_.gQ(P,1);P=gJ8(P);S=T_N(S,F,a,P)}}y.call(b,S)}},b.JSC$10376_url_,b.targetId_,b.rpcToken_).then(function(y){b.JSC$10376_iframe_=y.getIframeEl();
X5a(b);_.ZC(b.JSC$10376_iframe_.parentElement,!0);_.xS(b.getElement(),"picker-dialog");HxG(b);return y})},nj8=function(b){b.JSC$10376_iframe_=b.JSC$10325_dom_.JSC$9511_createDom("IFRAME",{id:b.targetId_,
name:b.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.Fg(b.JSC$10376_iframe_,uNa(b));_.xS(b.getElement(),"picker-dialog");b.getContentElement().appendChild(b.JSC$10376_iframe_);Fe(b).listen(b.JSC$10376_iframe_,"load",function(){return void X5a(b)});
b.JSC$10376_iframe_.src=b.JSC$10376_url_;HxG(b)},NOW=function(b){Oxa(b,(0,_.i5)(function(h){h.setAuthToken(this.targetId_,this.rpcToken_)},b))},HxG=function(b){var h=_.Ps(_.La(b.JSC$10376_url_),"title");
h&&b.setTitle(h)},uNa=function(b){return _.rYI("Internet Explorer")>=7&&_.aq(b.JSC$10376_url_,"https")?_.Ra(Kp8):_.nF?_.Ra(ZxW):_.Ra(oj7)},X5a=function(b){NOW(b);
b.iframeLoaded_=!0;b.JSC$10376_iframe_.tabIndex=0;b.isVisible()&&b.focus()};
o4.prototype.handleKeydown_=function(b){b.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),b.stopPropagation(),b.preventDefault())};
var Oxa=function(b,h){var y=b.JSC$10374_gadgetsDomHelper_;Pj5(function(){h(y.getWindow().gadgets.rpc)},y)};
o4.prototype.setUrl=function(b){b=_.Ka(new _.lX(b),"rpcService",this.targetId_);_.Ka(b,"rpctoken",this.rpcToken_);_.IE(b,"rpctoken="+this.rpcToken_);_.rv(b,"https");this.JSC$10376_url_=b.toString();this.JSC$10376_iframe_&&(this.JSC$10376_iframe_.src=this.JSC$10376_url_)};
var t3N=function(b,h){b.callback_=h;Oxa(b,(0,_.i5)(function(y){y.register(this.targetId_,(0,_.i5)(this.handlePickerAction_,this))},b))};
o4.prototype.handlePickerAction_=function(b){var h=b.action;h=="loaded"&&(this.loadedFired_=!0,re5(this,new aBM(this.isVisible())),cea(this),ye8(this),Fe(this).unlisten(this.JSC$10325_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10376_iframe_.tabIndex=0);h!="picked"&&h!="cancel"||this.setVisible(!1);this.callback_(b)};
var cea=function(b){b.JSC$10376_appId_&&re5(b,new FB5(b.JSC$10376_appId_,window.location.protocol+"//"+window.location.host))};
o4.prototype.setRelayUrl=function(b){Oxa(this,(0,_.i5)(function(h){h.setRelayUrl(this.targetId_,b)},this))};
var re5=function(b,h){b.useGapi_&&O2M(h,b.iframeManager_).then(null,function(){b.callback_({action:"error"})});
Oxa(b,(0,_.i5)(function(y){y.call(this.targetId_,"picker",null,h)},b))};
o4.prototype.resizePicker_=function(){var b=QX(this.JSC$10325_dom_.JSC$9509_document_)||window;if(_.Ps(_.La(this.JSC$10376_url_),"ignoreLimits")=="true")b=new _.g1(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.Ps(_.La(this.JSC$10376_url_),"shadeDialog")=="true"){var h=md7(this);h=T1b(h);var y=_.sS(b);b=y.width-80;y=y.height-40;h&&(b-=h.left?h.left:0,b-=h.right?h.right:0,y-=h.top?h.top:0,y-=h.bottom?h.bottom:0);b=new _.g1(b>0?b:0,y>0?y:0)}else(h=this.preferredDialogWidth_)?(h=Math.max(320,
Math.min(1051,h)),(y=this.preferredDialogHeight_)||(y=_.sS(b).height*.85),y=Math.max(480,Math.min(650,y))):(h=_.sS(b),y=h.width*.618,y=y<h.height?Math.round(Math.max(480,Math.min(650,y*.85))):Math.round(Math.max(480,Math.min(650,h.height*.85))),h=Math.round(y/.618)),b=_.sS(b),h=Math.min(h,Math.max(b.width,320)),y=Math.min(y,Math.max(b.height,480)),b=new _.g1(h,y);_.Jg7(this.getContentElement(),b);this.reposition()};
o4.prototype.reposition=function(){if(_.Ps(_.La(this.JSC$10376_url_),"shadeDialog")=="true"){var b=CR8(this.getElement()),h=_.sS(this.JSC$10325_dom_.getWindow());b=Math.floor(h.width/2-b.width/2);h=md7(this);if(h=T1b(h)){var y=h.left?h.left:0;y+=h.right?h.right:0;b=Math.floor(b-y/2)}b=b>0?b:0;h=TP(this.JSC$10325_dom_).y;hU(this.getElement(),b,h)}else o4.superClass_.reposition.call(this)};
o4.prototype.setVisible=function(b){if(b!=this.isVisible()&&this.autoSizeDialog_){var h=this.JSC$10325_dom_.getWindow();b?(this.resizePicker_(),Fe(this).listen(h,"resize",this.resizePicker_),this.iframeLoaded_||Fe(this).listen(h,"keydown",this.handleKeydown_)):(Fe(this).unlisten(h,"resize",this.resizePicker_),this.iframeLoaded_||Fe(this).unlisten(h,"keydown",this.handleKeydown_))}o4.superClass_.setVisible.call(this,b);re5(this,new aBM(b))};
o4.prototype.focus=function(){o4.superClass_.focus.call(this);if(this.JSC$10376_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10376_iframe_.focus()}catch(b){}};var R3=function(b,h){h=h===void 0?o4:h;Sh.call(this,b);this.pickerConstructor=h;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(b=window.location.origin)||(b=window.location.protocol+"//"+window.location.host);b&&this.urlParamMap_.set("origin",b);this.postProcessors_=[]};
_.z(R3,j2F);R3.prototype.JSC$10381_disposeOnHide_=!1;
R3.prototype.build=function(){this.JSC$10282_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10282_appId_);this.getRelayUrl()||this.setRelayUrl(_.zS(_.IE(_.Dl(_.La(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("gb");var b=new this.pickerConstructor(RY7(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);b.JSC$10358_disposeOnHide_=this.JSC$10381_disposeOnHide_;
b.JSC$10376_appId_=this.JSC$10282_appId_;b.loadedFired_&&cea(b);t3N(b,this.callback_);return b};
var zY8=function(b){b.urlParamMap_.set("multiselectEnabled","true");return b};
_.d=R3.prototype;_.d.getHeight=function(){return this.dialogHeight_};
_.d.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.d.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.d.getTitle=function(){return this.urlParamMap_.get("title")};
_.d.getWidth=function(){return this.dialogWidth_};
var DQw=function(b){b.JSC$10381_disposeOnHide_=void 0;return b};
R3.prototype.setRelayUrl=function(b){this.urlParamMap_.set("parent",b);return this};
var InN=function(b,h){b.urlParamMap_.set("selectButtonLabel",h);return b};
R3.prototype.setSize=function(b,h){this.dialogWidth_=b;this.dialogHeight_=h;return this};
R3.prototype.setTitle=function(b){this.urlParamMap_.set("title",b);return this};
var RY7=function(b){b.postProcessors_.length&&b.urlParamMap_.set("pp",JSON.stringify(b.postProcessors_));b.urlParamMap_.set("nav",poP(b.nav_));var h=new _.lX(b.getBaseUrl());b.urlParamMap_.forEach(function(y,S){_.Ka(h,S,y)});
return h};var AeM=function(b,h){b.name!==void 0?(this.name=b.name,this.code=BOG[b.name]):(this.code=b=b.code,this.name=Wpo(b));_.bf.call(this,m9o("%s %s",this.name,h))};
_.Pv(AeM,_.bf);var Wpo=function(b){var h=_.lR.findKey(BOG,function(y){return b==y});
if(h===void 0)throw Error("ib`"+b);return h},oG={},BOG=(oG.AbortError=3,oG.EncodingError=5,oG.InvalidModificationError=9,oG.InvalidStateError=7,oG.NotFoundError=1,oG.NotReadableError=4,oG.NoModificationAllowedError=6,oG.PathExistsError=12,oG.QuotaExceededError=10,oG.SecurityError=2,oG.SyntaxError=8,oG.TypeMismatchError=11,oG);var UQP=function(b,h){_.eW.call(this,b.type,h);this.event_=b};
_.Pv(UQP,_.eW);var p57=function(b,h,y){y===void 0&&(y=b.size);return b.slice?b.slice(h,y):null};var NwN=new WeakMap,OzY=function(b,h){b=[b];for(var y=h.length-1;y>=0;--y)b.push(typeof h[y],h[y]);return b.join("\v")};_.r9M(function(){if(!_.S5.Blob)return!1;var b=new Uint8Array(100);try{var h=new Blob([b])}catch(y){return!1}return h.size!=100?!1:!0});
var Je8=_.r9M(function(){if(!_.S5.Blob)return!1;var b=new Uint8Array(100);try{var h=new Blob([b])}catch(y){return!1}return p57(h,0,1)===null?!1:!0});_.S5.U3bHHf!=null||(_.S5.U3bHHf=0);_.S5.U3bHHf++;_.eYP=new WeakMap;_.CXa=new WeakMap;var RvF={};var Xk=void 0;var DOy=Symbol("qb");var Twy=O5("WizInjectionContext_Dispatcher");var un=Symbol("rb");var Ai,sW;Ai=function(){this.afterRenderCallbacks=null};
_.UQy=Symbol("sb");sW=function(b){this.props=b;this.__unmounted=!1};
sW.prototype.didPatch=function(){};
sW.prototype.didMount=function(){};
sW.prototype.didUnmount=function(){};
sW.prototype.didUpdate=function(){};_.ev4=O5("WizInjectionContext_RootElement");var gPf=O5("WizInjectionContext_AppContext"),CjU=O5("WizInjectionContext_ModelRootElement"),s2j=O5("WizInjectionContext_RendererData"),Yv4=O5("WizInjectionContext_InjectingConstructor"),J9k=O5("WizInjectionContext_AsyncDeps"),G6U={};var wL5=!1;var Q2Y={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:AYo,enableContextPerComponent:AYo,enableLazyTsx:Uya,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:WMb,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var tr=Object.assign({},{attributes:{},handleError:function(b){throw b;}},Q2Y);var gj8=Symbol("wb"),fa=Symbol("xb"),bPM=Symbol("yb"),mir=Symbol("zb"),jLN=s7(function(b){return U5(b)&&gj8 in b});var rs=null,R4=!1,DC=1,Ws=Symbol("Db"),gs={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 M8=Symbol("Eb"),nH=Symbol("Fb"),Bs=Symbol("Gb"),Kmr=Object.assign({},gs,{value:M8,dirty:!0,error:null,equal:ydk,kind:"computed",producerMustRecompute:function(b){return b.value===M8||b.value===nH},
producerRecomputeValue:function(b){if(b.value===nH)throw Error("Z");var h=b.value;b.value=nH;var y=$if(b),S=!1;try{var F=b.computation();cs(null);S=h!==M8&&h!==Bs&&F!==Bs&&b.equal(h,F)}catch(a){F=Bs,b.error=a}finally{cs(y),b&&PFn(b)}S?b.value=h:(b.value=F,b.version++)}});var sHa=Object.assign({},gs,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});var n2j=function(){throw Error();};var HKY=null,o2N=Object.assign({},gs,{equal:ydk,value:void 0,kind:"signal"});var upU=Object.assign({},gs,{value:M8,dirty:!0,error:null,equal:ydk,kind:"linkedSignal",producerMustRecompute:function(b){return b.value===M8||b.value===nH},
producerRecomputeValue:function(b){if(b.value===nH)throw Error("Z");var h=b.value;b.value=nH;var y=$if(b);try{var S=b.source();var F=b.computation(S,h===M8||h===Bs?void 0:{source:b.sourceValue,value:h});b.sourceValue=S}catch(a){F=Bs,b.error=a}finally{cs(y),b&&PFn(b)}h!==M8&&F!==Bs&&b.equal(h,F)?b.value=h:(b.value=F,b.version++)}});Object.assign({},gs,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(b){b.schedule!==null&&b.schedule(b.ref)},
cleanupFn:function(){}});var zmI=Symbol("Hb"),Xe={},rdI=(Xe[zmI]=!0,Xe.debugName="[component]",Xe.getComponentStack=function(){for(var b=[],h=this;h;)Dif(h)&&b.push(h.debugName),h=h.parent;return b},Xe.registerSignal=function(){},Xe.registerEffect=function(){},Xe);var I7U=Symbol("Ib"),Jr=Symbol("Jb");var eh=Array.isArray;var g2N;var YEW={},Yun=CFF(Object.assign({},{consumerAllowSignalWrites:!0},YEW)),pl=CFF(Object.assign({},{consumerAllowSignalWrites:!0},YEW));var Gr=Symbol("Ob");var Tr=null,kEY,VZY=null,E25;var ws=0,l_=!1,Ha=function(){this.queue=new Set};
Ha.prototype.schedule=function(b){this.queue.add(b)};
Ha.prototype.remove=function(b){this.queue.delete(b)};
Ha.prototype.clear=function(){this.queue.clear()};
var l7I=Symbol("Pb"),f7f=Symbol("Qb"),uc=function(){Ha.apply(this,arguments)};
_.z(uc,Ha);uc.prototype.flush=function(){if(this.queue.size){l_=!0;for(var b=_.L(this.queue),h=b.next();!h.done;h=b.next()){h=h.value;this.queue.delete(h);try{h.run()}catch(y){TO7(y)}}l_=!1}};
var GtP=function(){uc.apply(this,arguments)};
_.z(GtP,uc);var wX8=new GtP,kte=function(){uc.apply(this,arguments)};
_.z(kte,uc);kte.prototype.schedule=function(b){return _.Z(function(h){if(h.nextAddress==1)return h.yield(Promise.resolve(),2);b.run();_.g3(h)})};
kte.prototype.enqueue=function(b){this.queue.add(b)};
var quN=new kte,O$=function(){Ha.apply(this,arguments)};
_.z(O$,Ha);O$.prototype.flush=function(){this.queue.size&&$Sq(this.queue)};
var V3W=function(){O$.apply(this,arguments)};
_.z(V3W,O$);V3W.prototype.schedule=function(b){b.version===0?b.run():this.queue.add(b)};
V3W.prototype.flush=function(){if(this.queue.size)if(tr.flushRenderEffectsDuringRender){var b=this.queue;this.queue=new Set;$Sq(b)}else $Sq(this.queue)};
var Qhj=new V3W,Ejb=function(){O$.apply(this,arguments)};
_.z(Ejb,O$);Ejb.prototype.schedule=function(b){return _.Z(function(h){if(h.nextAddress==1)return h.yield(Promise.resolve(),2);b.run();_.g3(h)})};
Ejb.prototype.enqueue=function(b){this.queue.add(b)};
var hLF=new Ejb,ixG=function(){O$.apply(this,arguments)};
_.z(ixG,O$);var v2q=new ixG,SP8=[Qhj,wX8,v2q],dS4=[quN,hLF],fnW=[Qhj,v2q,hLF],LVn=[].concat(_.f$(SP8),_.f$(dS4)),w55=[];HKY=function(){aRM();for(var b=_.L(w55),h=b.next();!h.done;h=b.next())h=h.value,h()};
var TO7=Fn;var N8={},lnM=Object.assign({},sHa,(N8[gj8]=!0,N8.effectType=fa,N8.isResettableContext=!0,N8.consumerMarkedDirty=yRr,N8.run=function(){KVN(this)},N8.cleanup=function(){pLN(this)},N8.componentStack=void 0,N8.debugName="[effect]",N8.destroy=function(){if(zr(this))for(var b=this.producers;b!==void 0;)b=Lm8(b);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;b=_.L(fnW);for(var h=b.next();!h.done;h=b.next())h.value.remove(this);UOY(this)},N8[Symbol.dispose]=function(){this.destroy()},N8)),qEo=Object.assign({},lnM,{version:1,
dirty:!1});var ZPN=Object.assign({},lnM,{effectType:fa});var oJ5=Object.assign({},lnM,{effectType:bPM});var Xok=Symbol("Sb");var X_M=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 OPU={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},uCM=
{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}]}},Aqr={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},kUY=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],GUr={"*":{async:1,dir:0,loading:2,target:3}};var xQ7=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,tq={},EJ8=(tq[1]=null,tq[2]=function(b,h){return h instanceof bZ?Sw(h):wf.toString()},tq[3]=function(b,h){return VD(h)?_.E_(h):xQ7.test(String(h))?String(h):wf.toString()},tq[4]=function(b,h){return h instanceof Cc?_.s_(h):wf.toString()},tq[5]=function(b,h){return String(h)},tq[7]=null,tq[8]=null,tq[10]=null,tq);var grq=Symbol("Vb");var hRN=function(b){var h=QHa,y=b,S="",F="",a=1;b<0&&(b=-b);if(b===Infinity)b=(Infinity*Math.sign(y)).toString();else{for(var P=0;P<mQ5.length;P++){var K=mQ5[P];a=h[K];if(b>=a||a<=1&&b>.1*a){S=K;break}}S?(S+="B",F=" "):a=1;b=Math.round(y/a*10)/10+F+S}return b},mQ5="Y Z E P T G M K  m u n".split(" "),QHa={"":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};_.vj7=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 Re={};RegExp.prototype.hasOwnProperty("sticky");var uuk=function(b){b=String(b);for(var h=function(S,F,a){for(var P=Math.min(F.length-a,S.length),K=0;K<P;K++){var n=F[a+K];if(S[K]!==("A"<=n&&n<="Z"?n.toLowerCase():n))return!1}return!0},y=0;(y=b.indexOf("<",y))!=-1;){if(h("\x3c/script",b,y)||h("\x3c!--",b,y))return"zSoyz";
y+=1}return b};var F5={default:"__default"};var xS5=Object.prototype.hasOwnProperty;woI.prototype=Object.create(null);var XC=vJq();var MU=null;var KdU=function(b){this.created=[];this.deleted=[];this.node=b};var Z2j=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var b=this,h=b;b;)h=b,b=b.parentNode;return h};var hSr=function(b,h){this._attrsArr=null;this.nameOrCtor=b;this.key=h;this.text=void 0};var Ll=null,P4=null,jY=null,Zb=null,j0f=[],ddM=FdF,oe=[],CMf=function(b){return o6j(function(h,y,S){jY=P4=h;P4=null;y(S);af4(null);P4=jY;jY=jY.parentNode;return h},b)}(),eTn=function(b){return o6j(function(h,y,S){var F={nextSibling:h};
P4=F;y(S);jY&&af4(h.nextSibling);return F===P4?null:P4},b)}();var nl=[],s7I=0;var Ho=new woI;var bIe=vJq(),tMn=bIe[F5.default],NkM=bIe.style,H2I=["focusin","focusout"],RSq="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var PXj=function(){},v6M=function(){},njr=function(){},ZxN=function(){};var H4=Symbol("cc");var WdY,Bkj=If5;var Ie=Symbol("dc");var M3f=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(" ")),
ojj=new Set(["a","font","script","style","title"]);_.Db={setUp:VMf,tearDown:VMf,log:VMf,logNodeRange:VMf,graft:function(b,h){h()}};var eY={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var Cl=null,gg=function(b,h){sW.call(this,b);var y=this;this.functionComponent=h;this.hooks=[];this.hookCounter=0;this.disposeEffects=vs(function(S){y.effectContext=S;_.m2(function(){SEj(y,y.el)})},tr.alwaysTrackContexts||!!Xk)};
_.z(gg,sW);gg.prototype.render=function(b){var h=Cl;Cl=this;this.hookCounter=0;var y=cs(pl),S=_.Hs(this.effectContext);try{return vPN("render",this.componentName),this.functionComponent(b)}finally{bKF("render",this.componentName),_.Hs(S),cs(y),Cl=h}};
_.tm.Object.defineProperties(gg.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return TdN(this.functionComponent)}}});var X5n=Symbol("rc"),$Qf=function(b,h,y){this.afterRenderCallbacks=null;this.kind=b;this.props=h;this.children=y};
_.z($Qf,Ai);$Qf.prototype.render=function(){var b=jHY(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var h=_.L(this.afterRenderCallbacks),y=h.next();!y.done;y=h.next())y=y.value,b=y(b);return b};
$Qf.prototype.getChildren=function(){return this.children};var uNk=[];n2j=function(b){throw Error("pb`"+b.debugName);};
(function(){var b=MU;MU=function(h){b==null||b(h);Oxk(h)}})();Object.assign({},qEo,{effectType:fa,elementRef:null,attributes:null,fn:function(){var b=this.elementRef;var h;b.element!=null||(b.element=(h=b.document.getElementById(b.value))!=null?h:void 0);b=b.element;for(h=this.attributes;h;){var y=h.signal();y!==h.prevValue&&(h.prevValue=y,h.namespace===1?b[h.name]=y:X_M.has(h.name)?SY(b,h.name,y?"":null):SY(b,h.name,y));h=h.next}}});_.YZ.debugName="tbhMcf";_.Tw.debugName="zyMFzb";Object.assign({},qEo,{effectType:fa});_.H.debugName="RlDudd";var NOU={nonNullableCondIsNull:function(){return Error("vc")}};var Inq=function(){this.map=new Map};
Inq.prototype.push=function(b,h){var y=this.map;y.has(b)&&(this.multi||(this.multi=new Map),this.multi.set(h,y.get(b)));y.set(b,h)};
Inq.prototype.pop=function(b){var h=this.map,y=h.get(b),S;y!==void 0&&((S=this.multi)==null?0:S.has(y))?(h.set(b,this.multi.get(y)),this.multi.delete(y)):h.delete(b);return y};_.Gw.debugName="nsTGHd";_.kZ.debugName="vI1rtf";_.Jer={OUT_OF_ORDER_HOOK_CALL:function(b){return Error("wc`"+b)},
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(b,h){return Error("Ac`"+((h===void 0?0:h)?"IDOM":"Reactive")+"`"+(VC(b)?b.description:b))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(b,h){return Error("Bc`"+(VC(b)?b.description:b)+"`"+h)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(b){return Error("Cc`"+(VC(b)?b.description:b))},
USE_ELEMENT_NOT_ASSIGNED:function(b){return Error("Dc`"+(VC(b)?b.description:b))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(b){return Error("Ec`"+(VC(b)?b.description:b))}};WdY=LpN;var TOj=Symbol("Fc");hYF({beforeRender:function(b){var h=_.Hs(b.effectContext);try{var y;((y=b.__syncEffects)==null?0:y.length)&&V3N(b.__syncEffects)}finally{_.Hs(h)}},
didPatch:function(b){var h=_.Hs(b.effectContext);try{var y;((y=b.__syncEffects)==null?0:y.length)&&V3N(b.__syncEffects)}finally{_.Hs(h)}},
didUnmount:function(b){var h;((h=b.hooks)==null?0:h.length)&&b.hooks.forEach(kt5)}});var hbW,yL8,Saw;hbW=_.S5.window;_.qU=(hbW==null?void 0:(yL8=hbW.yt)==null?void 0:yL8.config_)||(hbW==null?void 0:(Saw=hbW.ytcfg)==null?void 0:Saw.data_)||{};_.HL("yt.config_",_.qU);var Fya={},ln4=[];_.Gn=function(b){var h=_.x$.apply(1,arguments);var y=Error.call(this,b);this.message=y.message;"stack"in y&&(this.stack=y.stack);this.args=[].concat(_.f$(h));Object.setPrototypeOf(this,this.constructor.prototype)};
_.z(_.Gn,Error);var oLq=function(b,h,y){this.actionName=b;this.optionalAction=h===void 0?!1:h;this.args=y===void 0?null:y;this.returnValue=[]};_.r4=function(b){this.name=b};_.aL=new _.r4("signalAction");var aWI=/^[\w.]*$/,vjj={q:!0,search_query:!0},mQM=String(QHn);var uN;uN=Symbol("Gc");_.ca=function(b){this.name=b};
_.ca.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var dtr=function(b){this.key=b},KyI=function(b){this.deferredKey=b},$t8=function(){var b=this;
this.providers=new Map;this.JSC$10676_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(b.providers)}}};
$t8.prototype.addProvider=function(b){this.providers.set(b.provide,b);var h=this.JSC$10676_deferred.get(b.provide);if(h)try{h.resolver(this.resolve(b.provide))}catch(y){h.rejector(y)}};
$t8.prototype.resolve=function(b){return b instanceof KyI?aWG(this,b):b instanceof dtr?dt8(this,b.key,[],!0):dt8(this,b,[])};
var aWG=function(b,h){h=h.deferredKey;if(b.JSC$10676_deferred.has(h))return b.JSC$10676_deferred.get(h).promise;var y={};y.promise=new Promise(function(S,F){y.resolver=S;y.rejector=F});
b.JSC$10676_deferred.set(h,y);return y.promise},dt8=function(b,h,y,S){S=S===void 0?!1:S;
if(y.indexOf(h)>-1)throw Error("Hc`"+h);if(b.cachedValues.has(h))return b.cachedValues.get(h);if(!b.providers.has(h)){if(S)return;throw Error("Ic`"+h);}S=b.providers.get(h);y.push(h);if(S.useValue!==void 0)var F=S.useValue;else if(S.useFactory)F=S[uN]?jwW(b,S[uN],y):[],F=S.useFactory.apply(S,_.f$(F));else if(S.useClass){F=S.useClass;var a=F[uN]?jwW(b,F[uN],y):[];F=new (Function.prototype.bind.apply(F,[null].concat(_.f$(a))))}else throw Error("Jc`"+h);y.pop();S.skipCache||b.cachedValues.set(h,F);return F},
jwW=function(b,h,y){return h?h.map(function(S){return S instanceof dtr?dt8(b,S.key,y,!0):dt8(b,S,y)}):[]};var jwN;var d_=new _.ca("ENDPOINT_HANDLER_TOKEN");_.jH=new _.r4("urlEndpoint");var $tw=function(){this.data=[];this.cachedPackedInt52=-1};
$tw.prototype.set=function(b,h){h=h===void 0?!0:h;0<=b&&b<52&&Number.isInteger(b)&&this.data[b]!==h&&(this.data[b]=h,this.cachedPackedInt52=-1)};
$tw.prototype.get=function(b){return!!this.data[b]};
var Ly8=function(b){b.cachedPackedInt52===-1&&(b.cachedPackedInt52=b.data.reduce(function(h,y,S){return h+(y?Math.pow(2,S):0)},0));
return b.cachedPackedInt52};var zbI=function(b){var h=PEM;b=b===void 0?_.hj("yt.ads.biscotti.lastId_")||"":b;var y=Object,S=y.assign,F={};F.dt=dOW;F.flash="0";a:{try{var a=h.JSC$10682_win_.top.location.href}catch(q){a=2;break a}a=a?a===h.doc_.location.href?0:1:2}F=(F.frm=a,F);try{F.u_tz=-(new Date).getTimezoneOffset();try{var P=PR.history.length}catch(q){P=0}F.u_his=P;var K;F.u_h=(K=PR.screen)==null?void 0:K.height;var n;F.u_w=(n=PR.screen)==null?void 0:n.width;var X;F.u_ah=(X=PR.screen)==null?void 0:X.availHeight;var u;F.u_aw=
(u=PR.screen)==null?void 0:u.availWidth;var O;F.u_cd=(O=PR.screen)==null?void 0:O.colorDepth}catch(q){}P=h.JSC$10682_win_;try{var N=P.screenX;var t=P.screenY}catch(q){}try{var R=P.outerWidth;var I=P.outerHeight}catch(q){}try{var U=P.innerWidth;var p=P.innerHeight}catch(q){}try{var e=P.screenLeft;var E=P.screenTop}catch(q){}try{U=P.innerWidth,p=P.innerHeight}catch(q){}try{var Y=P.screen.availWidth;var w=P.screen.availTop}catch(q){}N=[e,E,N,t,Y,w,R,I,U,p];t=JWy(!1,h.JSC$10682_win_.top);R={};var x=x===
void 0?_.S5:x;I=new $tw;"SVGElement"in x&&"createElementNS"in x.document&&I.set(0);U=hX7();U["allow-top-navigation-by-user-activation"]&&I.set(1);U["allow-popups-to-escape-sandbox"]&&I.set(2);x.crypto&&x.crypto.subtle&&I.set(3);"TextDecoder"in x&&"TextEncoder"in x&&I.set(4);x=Ly8(I);h=(R.bc=x,R.bih=t.height,R.biw=t.width,R.brdim=N.join(),R.vis=RrY(h.doc_),R.wgl=!!PR.WebGLRenderingContext,R);y=S.call(y,F,h);y.ca_type="image";b&&(y.bid=b);return y},PEM=new function(){var b=window.document;
this.JSC$10682_win_=window;this.doc_=b};
_.HL("yt.ads_.signals_.getAdSignalsString",function(b){return bI5(zbI(b))});_.LF();navigator.userAgent.indexOf(" (CrKey ");var XTU="XMLHttpRequest"in _.S5?function(){return new XMLHttpRequest}:null;var KyG="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),ZIb=[].concat(_.f$(KyG),["client_dev_set_cookie"]);var Rbf={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"},OIN="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(_.f$(KyG)),ebI=!1,txN=_.Dtq,Ut8=cLy;var yBN=[{messageFn:function(b){return"Cannot read property '"+b.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(b){return"Cannot call '"+b.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(b){return b.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var ope={messageWeights:[],callbackWeights:[{callback:Ya5,weight:500},{callback:ThY,weight:500}]};var Mx5=function(){this.callbackWeights=[];this.messageWeights=[]},npW,hTM=function(){if(!npW){var b=npW=new Mx5;
b.messageWeights.length=0;b.callbackWeights.length=0;mVM(b,ope)}return npW},mVM=function(b,h){h.messageWeights&&b.messageWeights.push.apply(b.messageWeights,h.messageWeights);
h.callbackWeights&&b.callbackWeights.push.apply(b.callbackWeights,h.callbackWeights)};_.Pv(_.Jj,_.ED);_.Jj.prototype.subscribe=function(b,h,y){var S=this.topics_[b];S||(S=this.topics_[b]=[]);var F=this.JSC$10705_key_;this.subscriptions_[F]=b;this.subscriptions_[F+1]=h;this.subscriptions_[F+2]=y;this.JSC$10705_key_=F+3;S.push(F);return F};
var XTW=function(b){var h=yy,y=!1,S=h.subscribe("handleError",function(F){y||(y=!0,this.unsubscribeByKey(S),b.apply(void 0,arguments))},h)};
_.Jj.prototype.unsubscribe=function(b,h,y){if(b=this.topics_[b]){var S=this.subscriptions_;if(b=b.find(function(F){return S[F+1]==h&&S[F+2]==y}))return this.unsubscribeByKey(b)}return!1};
_.Jj.prototype.unsubscribeByKey=function(b){var h=this.subscriptions_[b];if(h){var y=this.topics_[h];this.publishDepth_!=0?(this.pendingKeys_.push(b),this.subscriptions_[b+1]=function(){}):(y&&_.Gk(y,b),delete this.subscriptions_[b],delete this.subscriptions_[b+1],delete this.subscriptions_[b+2])}return!!h};
_.Jj.prototype.publish=function(b,h){var y=this.topics_[b];if(y){var S=Array(arguments.length-1),F=arguments.length,a;for(a=1;a<F;a++)S[a-1]=arguments[a];if(this.async_)for(a=0;a<y.length;a++)F=y[a],HI5(this.subscriptions_[F+1],this.subscriptions_[F+2],S);else{this.publishDepth_++;try{for(a=0,F=y.length;a<F&&!this.isDisposed();a++){var P=y[a];this.subscriptions_[P+1].apply(this.subscriptions_[P+2],S)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;y=this.pendingKeys_.pop();)this.unsubscribeByKey(y)}}return a!=
0}return!1};
var HI5=function(b,h,y){_.fv(function(){b.apply(h,y)})};
_.Jj.prototype.clear=function(b){if(b){var h=this.topics_[b];h&&(h.forEach(this.unsubscribeByKey,this),delete this.topics_[b])}else this.subscriptions_.length=0,this.topics_={}};
_.Jj.prototype.getCount=function(b){if(b){var h=this.topics_[b];return h?h.length:0}b=0;for(h in this.topics_)b+=this.getCount(h);return b};
_.Jj.prototype.disposeInternal=function(){_.Jj.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var yy=new _.Jj;var DB=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(DB,_.ZL);DB.prototype.getColdHashData=function(){return _.gQ(this,3)};
DB.prototype.getHotHashData=function(){return _.gQ(this,5)};
DB.prototype.setHotHashData=function(b){return _.kb(this,5,b)};var mm5=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(mm5,_.ZL);var DGM=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(DGM,_.ZL);_.d=DGM.prototype;_.d.getDeviceId=function(){return _.gQ(this,6)};
_.d.getExperimentIds=function(b){var h=_.mY(this,9,_.ZE,3,!0);vUr(h,b);return h[b]};
_.d.getPlayerType=function(){return _.sV(this,36)};
_.d.setHomeGroupInfo=function(b){return _.U_(this,81,b)};
_.d.clearLocationPlayabilityToken=function(){return _.z6(this,89)};var eZ=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(eZ,_.ZL);eZ.prototype.setKey=function(b){return _.kb(this,1,b)};
eZ.prototype.getValue=function(){return G4(this,2,BSr)};
var BSr=[2,3,4,5,6];var u8a=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(u8a,_.ZL);u8a.prototype.setTrackingParams=function(b){return _.z6(this,1,_.ee(b,!1))};var Ivn=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(Ivn,_.ZL);var hgM=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(hgM,_.ZL);hgM.prototype.getExperimentIds=function(b){var h=_.mY(this,5,_.c8M,3,!0);vUr(h,b);return h[b]};var TE=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(TE,_.ZL);TE.prototype.getToken=function(){return _.Cq(this,2)};
TE.prototype.setToken=function(b){return _.kb(this,2,b)};var su=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(su,_.ZL);su.prototype.setSafetyMode=function(b){return _.R2(this,5,b)};var Jd=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(Jd,_.ZL);Jd.prototype.setClient=function(b){return _.U_(this,1,b)};var bRj={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 v8F;_.ik=function(){var b=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.S5.addEventListener("beforeinstallprompt",function(h){h.preventDefault();b.deferredInstallPrompt=h});
_.S5.addEventListener("appinstalled",function(){b.appInstalledEventFired=!0},{once:!0})};
v8F=function(){if(!_.S5.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.S5.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.S5.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.S5.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.S5.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(b){return"WEB_DISPLAY_MODE_UNKNOWN"}};var FiN=function(){this.syncHeaders=!0},aTU=function(b){var h={},y=[];
"USER_SESSION_ID"in _.qU&&y.push({key:"u",value:_.QC("USER_SESSION_ID")});if(y=_.Dhf(y))h.Authorization=y,y=b=b==null?void 0:b.sessionIndex,y===void 0&&(y=Number(_.QC("SESSION_INDEX",0)),y=isNaN(y)?0:y),_.r("voice_search_auth_header_removal")||(h["X-Goog-AuthUser"]=y.toString()),"INNERTUBE_HOST_OVERRIDE"in _.qU||(h["X-Origin"]=window.location.origin),b===void 0&&"DELEGATED_SESSION_ID"in _.qU&&(h["X-Goog-PageId"]=_.QC("DELEGATED_SESSION_ID"));return h};var OIW={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var RG=_.hj("ytglobal.prefsUserPrefsPrefs_")||{},Nh8;_.HL("ytglobal.prefsUserPrefsPrefs_",RG);_.zy=function(){this.cookieName=_.QC("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.QC("ALT_PREF_COOKIE_DOMAIN","youtube.com");var b=_.Cn.get(this.cookieName,void 0);b&&this.parse(b)};
_.HT=function(){Nh8||(Nh8=new _.zy);return Nh8};
_.zy.prototype.get=function(b,h){txW(b);rL7(b);b=RG[b]!==void 0?RG[b].toString():null;return b!=null?b:h?h:""};
_.zy.prototype.set=function(b,h){txW(b);rL7(b);if(h==null)throw Error("Mc");RG[b]=h.toString()};
_.zy.prototype.getFlag=function(b){return!!((cLP("f"+(Math.floor(b/31)+1))||0)&1<<b%31)};
_.uE=function(b,h,y){b="f"+(Math.floor(h/31)+1);h=1<<h%31;var S=cLP(b)||0;S=y?S|h:S&~h;S===0?delete RG[b]:(y=S.toString(16),RG[b]=y.toString())};
_.zy.prototype.remove=function(b){txW(b);rL7(b);delete RG[b]};
_.zy.prototype.save=function(){var b=!0;_.r("web_secure_pref_cookie_killswitch")&&(b=!1);_.gH(this.cookieName,this.dump(),63072E3,this.cookieDomain,b)};
_.zy.prototype.clear=function(){_.lR.clear(RG)};
_.zy.prototype.dump=function(){var b=[],h;for(h in RG)RG.hasOwnProperty(h)&&b.push(h+"="+encodeURIComponent(String(RG[h])));return b.join("&")};
var rL7=function(b){if(/^f([1-9][0-9]*)$/.test(b))throw Error("Nc`"+b);},txW=function(b){if(!/^\w+$/.test(b))throw Error("Oc`"+b);
},cLP=function(b){b=RG[b]!==void 0?RG[b].toString():null;
return b!=null&&/^[A-Fa-f0-9]+$/.test(b)?parseInt(b,16):null};
_.zy.prototype.parse=function(b){b=decodeURIComponent(b).split("&");for(var h=0;h<b.length;h++){var y=b[h].split("="),S=y[0];(y=y[1])&&(RG[S]=y.toString())}};var qa5={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"},yPN={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},S0j={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},Qwy={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var dS;_.D6=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.VT=function(b,h,y){return b.addJob(h,0,y)};
_.D6.prototype.addLowPriorityJob=function(b,h){return this.addJob(b,1,h)};
_.I7=function(b,h,y){return b.addJob(h,2,y)};
_.N$=function(b,h,y){return b.addJob(h,3,y)};
_.js=function(b,h,y){return b.addJob(h,4,y)};
dS=function(b){var h=_.hj("yt.scheduler.instance.addImmediateJob");h?h(b):b()};
_.D6.prototype.debounce=function(b,h,y){var S=this,F=0,a=function(){F&&S.cancelJob(F);F=S.addJob(b,h,y);S.cancelDebouncedJobMap.set(a,F)};
return a};
_.D6.prototype.cancelThrottle=function(b){(b=this.cancelThrottledJobMap.get(b))&&b()};var IG=function(){_.D6.apply(this,arguments)},Rbo;
_.z(IG,_.D6);_.J_=function(){IG.instance||(IG.instance=new IG);return IG.instance};
IG.prototype.addJob=function(b,h,y){y!==void 0&&Number.isNaN(Number(y))&&(y=void 0);var S=_.hj("yt.scheduler.instance.addJob");return S?S(b,h,y):y===void 0?(b(),NaN):_.zn(b,y||0)};
IG.prototype.cancelJob=function(b){if(b===void 0||!Number.isNaN(Number(b))){var h=_.hj("yt.scheduler.instance.cancelJob");h?h(b):_.B9(b)}};
IG.prototype.start=function(){var b=_.hj("yt.scheduler.instance.start");b&&b()};
IG.prototype.pause=function(){var b=_.hj("yt.scheduler.instance.pause");b&&b()};
Rbo=function(){_.J_();var b=_.hj("yt.scheduler.instance.setPriorityThreshold");b&&b(4)};
_.xP=_.J_();_.k0.prototype.set=function(b,h){h===void 0?this.mechanism.remove(b):this.mechanism.set(b,(0,_.Q4)(h))};
_.k0.prototype.get=function(b){try{var h=this.mechanism.get(b)}catch(y){return}if(h!==null)try{return JSON.parse(h)}catch(y){throw"Storage: Invalid value was encountered";}};
_.k0.prototype.remove=function(b){this.mechanism.remove(b)};var Ba=function(b){this.mechanism=b};
_.Pv(Ba,_.k0);var zbG=function(b){this.data=b},DtN=function(b){return b===void 0||b instanceof zbG?b:new zbG(b)};
Ba.prototype.set=function(b,h){Ba.superClass_.set.call(this,b,DtN(h))};
Ba.prototype.getWrapper=function(b){b=Ba.superClass_.get.call(this,b);if(b===void 0||b instanceof Object)return b;throw"Storage: Invalid value was encountered";};
Ba.prototype.get=function(b){if(b=this.getWrapper(b)){if(b=b.data,b===void 0)throw"Storage: Invalid value was encountered";}else b=void 0;return b};_.Pv(Vb,Ba);_.IW8=function(b){var h=b.creation;b=b.expiration;return!!b&&b<_.LF()||!!h&&h>_.LF()};
Vb.prototype.set=function(b,h,y){if(h=DtN(h)){if(y){if(y<_.LF()){Vb.prototype.remove.call(this,b);return}h.expiration=y}h.creation=_.LF()}Vb.superClass_.set.call(this,b,h)};
Vb.prototype.getWrapper=function(b,h){var y=Vb.superClass_.getWrapper.call(this,b);if(y)if(!h&&_.IW8(y))Vb.prototype.remove.call(this,b);else return y};var Wa=function(){};
Wa.prototype.next=function(){return Aq};
var Aq={done:!0,value:void 0},U$=function(b){return{value:b,done:!1}};
Wa.prototype.__iterator__=function(){return this};
_.Bha=function(b){if(b instanceof Wa)return b;if(typeof b.__iterator__=="function")return b.__iterator__(!1);if(_.f4(b)){var h=0,y=new Wa;y.next=function(){for(;;){if(h>=b.length)return Aq;if(h in b)return U$(b[h++]);h++}};
return y}throw Error("Pc");};var WyW=function(b){if(b instanceof pH||b instanceof Jq||b instanceof e6)return b;if(typeof b.next=="function")return new pH(function(){return b});
if(typeof b[Symbol.iterator]=="function")return new pH(function(){return b[Symbol.iterator]()});
if(typeof b.__iterator__=="function")return new pH(function(){return b.__iterator__()});
throw Error("Qc");},pH=function(b){this.func_=b};
pH.prototype.__iterator__=function(){return new Jq(this.func_())};
pH.prototype[Symbol.iterator]=function(){return new e6(this.func_())};
pH.prototype.toEs6=function(){return new e6(this.func_())};
var Jq=function(b){this.JSC$10790_iter_=b};
_.z(Jq,Wa);Jq.prototype.next=function(){return this.JSC$10790_iter_.next()};
Jq.prototype[Symbol.iterator]=function(){return new e6(this.JSC$10790_iter_)};
Jq.prototype.toEs6=function(){return new e6(this.JSC$10790_iter_)};
var e6=function(b){pH.call(this,function(){return b});
this.JSC$10793_iter_=b};
_.z(e6,pH);e6.prototype.next=function(){return this.JSC$10793_iter_.next()};var ALN=function(){};var CH=function(){};
_.Pv(CH,ALN);CH.prototype.getCount=function(){for(var b=0,h=_.L(this),y=h.next();!y.done;y=h.next())b++;return b};
CH.prototype[Symbol.iterator]=function(){return WyW(this.__iterator__(!0)).toEs6()};
CH.prototype.clear=function(){var b=Array.from(this);b=_.L(b);for(var h=b.next();!h.done;h=b.next())this.remove(h.value)};_.Pv(EM,CH);_.d=EM.prototype;_.d.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var b=this.storage_;if(b)try{b.setItem("__sak","1");b.removeItem("__sak");var h=!0}catch(y){h=y instanceof DOMException&&(y.name==="QuotaExceededError"||y.code===22||y.code===1014||y.name==="NS_ERROR_DOM_QUOTA_REACHED")&&b&&b.length!==0}else h=!1;this.cachedIsStorageAvailable_=h}return this.cachedIsStorageAvailable_};
_.d.set=function(b,h){g4(this);try{this.storage_.setItem(b,h)}catch(y){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.d.get=function(b){g4(this);b=this.storage_.getItem(b);if(typeof b!=="string"&&b!==null)throw"Storage mechanism: Invalid value was encountered";return b};
_.d.remove=function(b){g4(this);this.storage_.removeItem(b)};
_.d.getCount=function(){g4(this);return this.storage_.length};
_.d.__iterator__=function(b){g4(this);var h=0,y=this.storage_,S=new Wa;S.next=function(){if(h>=y.length)return Aq;var F=y.key(h++);if(b)return U$(F);F=y.getItem(F);if(typeof F!=="string")throw"Storage mechanism: Invalid value was encountered";return U$(F)};
return S};
_.d.clear=function(){g4(this);this.storage_.clear()};
_.d.key=function(b){g4(this);return this.storage_.key(b)};
var g4=function(b){if(b.storage_==null)throw Error("Rc");b.isAvailable()||Fn(Error("Rc"))};_.Pv(vpN,EM);_.Pv(bi5,EM);_.Pv(iN,CH);iN.prototype.set=function(b,h){this.mechanism_.set(this.JSC$10808_prefix_+b,h)};
iN.prototype.get=function(b){return this.mechanism_.get(this.JSC$10808_prefix_+b)};
iN.prototype.remove=function(b){this.mechanism_.remove(this.JSC$10808_prefix_+b)};
iN.prototype.__iterator__=function(b){var h=this.mechanism_[Symbol.iterator](),y=this,S=new Wa;S.next=function(){var F=h.next();if(F.done)return F;for(F=F.value;F.slice(0,y.JSC$10808_prefix_.length)!=y.JSC$10808_prefix_;){F=h.next();if(F.done)return F;F=F.value}return U$(b?F.slice(y.JSC$10808_prefix_.length):y.mechanism_.get(F))};
return S};_.SZ=function(b){this.expiringStorage_=(b=_.fn(b))?new Vb(b):null;this.JSC$10812_domain_=document.domain||window.location.hostname};
_.d=_.SZ.prototype;_.d.hasLocalStorage=function(){return!!this.expiringStorage_};
_.d.set=function(b,h,y,S){y=y||31104E3;this.remove(b);if(this.hasLocalStorage())try{this.expiringStorage_.set(b,h,Date.now()+y*1E3);return}catch(a){}var F="";if(S)try{F=escape((0,_.Q4)(h))}catch(a){return}else F=escape(h);_.gH(b,F,y,this.JSC$10812_domain_)};
_.d.get=function(b,h){var y=void 0,S=!this.hasLocalStorage();if(!S)try{y=this.expiringStorage_.get(b)}catch(F){S=!0}if(S&&(y=_.Cn.get(b,void 0))&&(y=unescape(y),h))try{y=JSON.parse(y)}catch(F){this.remove(b),y=void 0}return y};
_.d.remove=function(b){this.hasLocalStorage()&&this.expiringStorage_.remove(b);_.fW8(b,"/",this.JSC$10812_domain_)};
_.d.getCreationTime=function(b){return this.hasLocalStorage()&&(b=(this.expiringStorage_.getWrapper(b)||{}).creation,typeof b==="number")?b:null};var ytn=function(){var b;return function(){b||(b=new _.SZ("ytidb"));return b}}();var FkN;_.lN=[];FkN=!1;var rt5=aU8||dmn;var s$={},Utw=(s$.AUTH_INVALID="No user identifier specified.",s$.EXPLICIT_ABORT="Transaction was explicitly aborted.",s$.IDB_NOT_SUPPORTED="IndexedDB is not supported.",s$.MISSING_INDEX="Index not created.",s$.MISSING_OBJECT_STORES="Object stores not created.",s$.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",s$.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",s$.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",s$.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",s$.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",s$.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",s$.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",s$),YR={},pTa=(YR.AUTH_INVALID="ERROR",YR.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",YR.EXPLICIT_ABORT="IGNORED",
YR.IDB_NOT_SUPPORTED="ERROR",YR.MISSING_INDEX="WARNING",YR.MISSING_OBJECT_STORES="ERROR",YR.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",YR.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",YR.QUOTA_EXCEEDED="WARNING",YR.QUOTA_MAYBE_EXCEEDED="WARNING",YR.UNKNOWN_ABORT="WARNING",YR.INCOMPATIBLE_DB_VERSION="WARNING",YR),Ty={},JL7=(Ty.AUTH_INVALID=!1,Ty.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,Ty.EXPLICIT_ABORT=!1,Ty.IDB_NOT_SUPPORTED=!1,Ty.MISSING_INDEX=!1,Ty.MISSING_OBJECT_STORES=!1,Ty.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,Ty.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,Ty.QUOTA_EXCEEDED=!1,Ty.QUOTA_MAYBE_EXCEEDED=!0,Ty.UNKNOWN_ABORT=!0,Ty.INCOMPATIBLE_DB_VERSION=!1,Ty),bj=function(b,h,y,S,F){h=h===void 0?{}:h;y=y===void 0?Utw[b]:y;S=S===void 0?pTa[b]:S;F=F===void 0?JL7[b]:F;_.Gn.call(this,y,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:b},h));this.type=b;this.message=y;this.level=S;this.retryable=F;Object.setPrototypeOf(this,bj.prototype)};
_.z(bj,_.Gn);var ebG=function(b,h){bj.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:h,foundObjectStores:b},Utw.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,ebG.prototype)};
_.z(ebG,bj);var $mr=function(b,h){var y=Error.call(this);this.message=y.message;"stack"in y&&(this.stack=y.stack);this.index=b;this.objectStore=h;Object.setPrototypeOf(this,$mr.prototype)};
_.z($mr,Error);var Lkq=["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 a2=function(b){this.executor=b},Fl=function(b){var h=this;
this.state={status:"PENDING"};this.JSC$10840_onFulfilled=[];this.JSC$10840_onRejected=[];b=b.executor;var y=function(F){if(h.state.status==="PENDING"){h.state={status:"FULFILLED",value:F};F=_.L(h.JSC$10840_onFulfilled);for(var a=F.next();!a.done;a=F.next())a=a.value,a()}},S=function(F){if(h.state.status==="PENDING"){h.state={status:"REJECTED",
reason:F};F=_.L(h.JSC$10840_onRejected);for(var a=F.next();!a.done;a=F.next())a=a.value,a()}};
try{b(y,S)}catch(F){S(F)}};
Fl.all=function(b){return new Fl(new a2(function(h,y){var S=[],F=b.length;F===0&&h(S);for(var a={i$jscomp$469:0};a.i$jscomp$469<b.length;a={i$jscomp$469:a.i$jscomp$469},++a.i$jscomp$469)Fl.resolve(b[a.i$jscomp$469]).then(function(P){return function(K){S[P.i$jscomp$469]=K;F--;F===0&&h(S)}}(a)).catch(function(P){y(P)})}))};
Fl.resolve=function(b){return new Fl(new a2(function(h,y){b instanceof Fl?b.then(h,y):h(b)}))};
Fl.reject=function(b){return new Fl(new a2(function(h,y){y(b)}))};
Fl.prototype.then=function(b,h){var y=this,S=b!=null?b:Zif,F=h!=null?h:KkY;return new Fl(new a2(function(a,P){y.state.status==="PENDING"?(y.JSC$10840_onFulfilled.push(function(){CEw(y,y,S,a,P)}),y.JSC$10840_onRejected.push(function(){gp7(y,y,F,a,P)})):y.state.status==="FULFILLED"?CEw(y,y,S,a,P):y.state.status==="REJECTED"&&gp7(y,y,F,a,P)}))};
Fl.prototype.catch=function(b){return this.then(void 0,b)};
var CEw=function(b,h,y,S,F){try{if(b.state.status!=="FULFILLED")throw Error("Uc");var a=y(b.state.value);a instanceof Fl?swP(b,h,a,S,F):S(a)}catch(P){F(P)}},gp7=function(b,h,y,S,F){try{if(b.state.status!=="REJECTED")throw Error("Vc");
var a=y(b.state.reason);a instanceof Fl?swP(b,h,a,S,F):S(a)}catch(P){F(P)}},swP=function(b,h,y,S,F){h===y?F(new TypeError("Wc")):y.then(function(a){a instanceof Fl?swP(b,h,a,S,F):S(a)},function(a){F(a)})};var Gy;Gy=window;_.NO=Gy.ytcsi&&Gy.ytcsi.now?Gy.ytcsi.now:Gy.performance&&Gy.performance.timing&&Gy.performance.now&&Gy.performance.timing.navigationStart?function(){return Gy.performance.timing.navigationStart+Gy.performance.now()}:function(){return(new Date).getTime()};var jK=function(b,h){this.JSC$10852_wrapped=b;this.options=h;this.transactionCount=0;this.startedMs=Math.round((0,_.NO)());this.hasUnknownAbortedTransaction=!1},kR=function(){return _.r("idb_immediate_commit")},GY8,kYW,ic,iIM;
jK.prototype.add=function(b,h,y){return _.ZB(this,[b],{mode:"readwrite",enableRetries:!0,commit:kR()},function(S){return S.objectStore(b).add(h,y)})};
jK.prototype.clear=function(b){return _.ZB(this,[b],{mode:"readwrite",enableRetries:!0},function(h){return h.objectStore(b).clear()})};
jK.prototype.close=function(){this.JSC$10852_wrapped.close();var b;((b=this.options)==null?0:b.closed)&&this.options.closed()};
jK.prototype.count=function(b,h){return _.ZB(this,[b],{mode:"readonly",enableRetries:!0,commit:kR()},function(y){return y.objectStore(b).count(h)})};
var ah=function(b,h,y){b=b.JSC$10852_wrapped.createObjectStore(h,y);return new VR(b)};
jK.prototype.delete=function(b,h){return _.ZB(this,[b],{mode:"readwrite",enableRetries:!0,commit:kR()&&!(h instanceof IDBKeyRange)},function(y){return y.objectStore(b).delete(h)})};
var Yae=function(b,h){return _.ZB(b,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(y){return y.objectStore("ResponseStore").index("byInterface").delete(h)})};
jK.prototype.get=function(b,h){return _.ZB(this,[b],{mode:"readonly",enableRetries:!0,commit:kR()},function(y){return y.objectStore(b).get(h)})};
jK.prototype.getAll=function(b,h,y){return _.ZB(this,[b],{mode:"readonly",enableRetries:!0},function(S){return S.objectStore(b).getAll(h,y)})};
jK.prototype.put=function(b,h,y){return _.ZB(this,[b],{mode:"readwrite",enableRetries:!0,commit:kR()},function(S){return S.objectStore(b).put(h,y)})};
jK.prototype.objectStoreNames=function(){return Array.from(this.JSC$10852_wrapped.objectStoreNames)};
_.ZB=function(b,h,y,S){var F,a,P,K,n,X,u,O,N,t,R,I;return _.Z(function(U){switch(U.nextAddress){case 1:var p={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof y==="string"?p.mode=y:Object.assign(p,y);F=p;b.transactionCount++;a=F.enableRetries?3:1;P=0;case 2:if(K){U.jumpTo(4);break}P++;n=Math.round((0,_.NO)());_.WE(U,5);X=b.JSC$10852_wrapped.transaction(h,F.mode);p=U.yield;var e=!!F.commit;var E=new $P(X);e=Th8(E,S,e);return p.call(U,e,7);case 7:return u=U.yieldResult,O=Math.round((0,_.NO)()),
GY8(b,n,O,P,void 0,h.join(),F),U.return(u);case 5:N=_.C$(U);t=Math.round((0,_.NO)());R=PSU(N,b.JSC$10852_wrapped.name,h.join(),b.JSC$10852_wrapped.version);if((I=R instanceof bj&&!R.retryable)||P>=a)GY8(b,n,t,P,R,h.join(),F),K=R;U.jumpTo(2);break;case 4:return U.return(Promise.reject(K))}})};
GY8=function(b,h,y,S,F,a,P){h=y-h;F?(F instanceof bj&&(F.type==="QUOTA_EXCEEDED"||F.type==="QUOTA_MAYBE_EXCEEDED")&&x0("QUOTA_EXCEEDED",{dbName:mw(b.JSC$10852_wrapped.name),objectStoreNames:a,transactionCount:b.transactionCount,transactionMode:P.mode}),F instanceof bj&&F.type==="UNKNOWN_ABORT"&&(y-=b.startedMs,y<0&&y>=2147483648&&(y=0),x0("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:a,transactionDuration:h,transactionCount:b.transactionCount,dbDuration:y}),b.hasUnknownAbortedTransaction=!0),
kYW(b,!1,S,a,h,P.tag),_.ql(F)):kYW(b,!0,S,a,h,P.tag)};
kYW=function(b,h,y,S,F,a){x0("TRANSACTION_ENDED",{objectStoreNames:S,connectionHasUnknownAbortedTransaction:b.hasUnknownAbortedTransaction,duration:F,isSuccessful:h,tryCount:y,tag:a===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":a})};
jK.prototype.getName=function(){return this.JSC$10852_wrapped.name};
var VR=function(b){this.JSC$10867_wrapped=b};
VR.prototype.add=function(b,h){return dw(this.JSC$10867_wrapped.add(b,h))};
VR.prototype.autoIncrement=function(){return this.JSC$10867_wrapped.autoIncrement};
VR.prototype.clear=function(){return dw(this.JSC$10867_wrapped.clear()).then(function(){})};
var dd=function(b,h,y){b.JSC$10867_wrapped.createIndex(h,y,{unique:!1})};
VR.prototype.count=function(b){return dw(this.JSC$10867_wrapped.count(b))};
var Vxa=function(b,h){return MO(b,{query:h},function(y){return y.delete().then(function(){return y.continue()})}).then(function(){})};
VR.prototype.delete=function(b){return b instanceof IDBKeyRange?Vxa(this,b):dw(this.JSC$10867_wrapped.delete(b))};
VR.prototype.get=function(b){return dw(this.JSC$10867_wrapped.get(b))};
VR.prototype.getAll=function(b,h){return"getAll"in IDBObjectStore.prototype?dw(this.JSC$10867_wrapped.getAll(b,h)):Epw(this,b,h)};
var Epw=function(b,h,y){var S=[];return MO(b,{query:h},function(F){if(!(y!==void 0&&S.length>=y))return S.push(F.getValue()),F.continue()}).then(function(){return S})};
VR.prototype.index=function(b){try{return new E$(this.JSC$10867_wrapped.index(b))}catch(h){if(h instanceof Error&&h.name==="NotFoundError")throw new $mr(b,this.JSC$10867_wrapped.name);throw h;}};
VR.prototype.getName=function(){return this.JSC$10867_wrapped.name};
VR.prototype.keyPath=function(){return this.JSC$10867_wrapped.keyPath};
VR.prototype.put=function(b,h){return dw(this.JSC$10867_wrapped.put(b,h))};
var MO=function(b,h,y){b=b.JSC$10867_wrapped.openCursor(h.query,h.direction);return iIM(b).then(function(S){return n8U(S,y)})},$P=function(b){var h=this;
this.JSC$10875_wrapped=b;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(y,S){h.JSC$10875_wrapped.addEventListener("complete",function(){y()});
h.JSC$10875_wrapped.addEventListener("error",function(F){F.currentTarget===F.target&&S(h.JSC$10875_wrapped.error)});
h.JSC$10875_wrapped.addEventListener("abort",function(){var F=h.JSC$10875_wrapped.error;if(F)S(F);else if(!h.aborted){F=bj;for(var a=h.JSC$10875_wrapped.objectStoreNames,P=[],K=0;K<a.length;K++){var n=a.item(K);if(n===null)throw Error("Xc");P.push(n)}F=new F("UNKNOWN_ABORT",{objectStoreNames:P.join(),dbName:h.JSC$10875_wrapped.db.name,mode:h.JSC$10875_wrapped.mode});S(F)}})})},Th8=function(b,h,y){var S=new Promise(function(F,a){try{var P=h(b);
y&&b.commit();P.then(function(K){F(K)}).catch(a)}catch(K){a(K),b.abort()}});
return Promise.all([S,b.done]).then(function(F){return _.L(F).next().value})};
$P.prototype.abort=function(){this.JSC$10875_wrapped.abort();this.aborted=!0;throw new bj("EXPLICIT_ABORT");};
$P.prototype.commit=function(){if(!this.aborted){var b,h;(h=(b=this.JSC$10875_wrapped).commit)==null||h.call(b)}};
$P.prototype.objectStore=function(b){b=this.JSC$10875_wrapped.objectStore(b);var h=this.objectStoreCache.get(b);h||(h=new VR(b),this.objectStoreCache.set(b,h));return h};
var E$=function(b){this.JSC$10877_wrapped=b};
E$.prototype.count=function(b){return dw(this.JSC$10877_wrapped.count(b))};
E$.prototype.delete=function(b){return _.t9(this,{query:b},function(h){return h.delete().then(function(){return h.continue()})})};
E$.prototype.get=function(b){return dw(this.JSC$10877_wrapped.get(b))};
E$.prototype.getAll=function(b,h){return"getAll"in IDBIndex.prototype?dw(this.JSC$10877_wrapped.getAll(b,h)):fWw(this,b,h)};
var fWw=function(b,h,y){var S=[];return _.t9(b,{query:h},function(F){if(!(y!==void 0&&S.length>=y))return S.push(F.getValue()),F.continue()}).then(function(){return S})};
E$.prototype.keyPath=function(){return this.JSC$10877_wrapped.keyPath};
E$.prototype.unique=function(){return this.JSC$10877_wrapped.unique};
_.t9=function(b,h,y){b=b.JSC$10877_wrapped.openCursor(h.query===void 0?null:h.query,h.direction===void 0?"next":h.direction);return iIM(b).then(function(S){return n8U(S,y)})};
ic=function(b,h){this.request=b;this.cursor=h};
iIM=function(b){return dw(b).then(function(h){return h?new ic(b,h):null})};
ic.prototype.continue=function(b){this.cursor.continue(b);return iIM(this.request)};
ic.prototype.delete=function(){return dw(this.cursor.delete()).then(function(){})};
ic.prototype.getValue=function(){return this.cursor.value};
ic.prototype.update=function(b){return dw(this.cursor.update(b))};var fH=function(b,h){this.name=b;this.options=h;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},wTo;
fH.prototype.openDb=function(b,h,y){y=y===void 0?{}:y;return Hij(b,h,y)};
fH.prototype.delete=function(b){b=b===void 0?{}:b;return _.PL(this.name,b)};
wTo=function(b,h){return new bj("INCOMPATIBLE_DB_VERSION",{dbName:b.name,oldVersion:b.options.version,newVersion:h})};
_.Kz=function(b,h){if(!h)throw yV("openWithToken",mw(b.name));return b.open()};
fH.prototype.open=function(){var b=this;if(!this.isCompatible)throw wTo(this);if(this.connectionPromise)return this.connectionPromise;var h,y=function(){b.connectionPromise===h&&(b.connectionPromise=void 0)},S={blocking:function(a){a.close()},
closed:y,terminated:y,upgrade:this.options.upgrade},F=function(){var a,P,K,n,X,u,O,N,t,R;return _.Z(function(I){switch(I.nextAddress){case 1:return P=(a=Error().stack)!=null?a:"",_.WE(I,2),I.yield(b.openDb(b.name,b.options.version,S),4);case 4:for(var U=K=I.yieldResult,p=b.options,e=[],E=_.L(Object.keys(p.objectStores)),Y=E.next();!Y.done;Y=E.next()){Y=Y.value;var w=p.objectStores[Y],x=w.removedAtVersion===void 0?Number.MAX_VALUE:w.removedAtVersion;!(U.JSC$10852_wrapped.version>=w.addedAtVersion)||
U.JSC$10852_wrapped.version>=x||U.JSC$10852_wrapped.objectStoreNames.contains(Y)||e.push(Y)}n=e;if(n.length===0){I.jumpTo(5);break}X=Object.keys(b.options.objectStores);u=K.objectStoreNames();if(b.timesReopenedToFixMissingObjectStore<_.tj("ytidb_reopen_db_retries",0))return b.timesReopenedToFixMissingObjectStore++,K.close(),_.ql(new bj("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:b.name,expectedObjectStores:X,foundObjectStores:u})),I.return(F());if(!(b.timesDeletedToFixMissingObjectStore<_.tj("ytidb_remake_db_retries",
1))){I.jumpTo(6);break}b.timesDeletedToFixMissingObjectStore++;return I.yield(b.delete(),7);case 7:return _.ql(new bj("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:b.name,expectedObjectStores:X,foundObjectStores:u})),I.return(F());case 6:throw new ebG(u,X);case 5:return I.return(K);case 2:O=_.C$(I);if(O instanceof DOMException?O.name!=="VersionError":"DOMError"in self&&O instanceof DOMError?O.name!=="VersionError":!(O instanceof Object&&"message"in O)||O.message!=="An attempt was made to open a database using a lower version than the existing version."){I.jumpTo(8);
break}return I.yield(b.openDb(b.name,void 0,Object.assign({},S,{upgrade:void 0})),9);case 9:N=I.yieldResult;t=N.JSC$10852_wrapped.version;if(b.options.version!==void 0&&t>b.options.version+1)throw N.close(),b.isCompatible=!1,wTo(b,t);return I.return(N);case 8:throw y(),O instanceof Error&&!_.r("ytidb_async_stack_killswitch")&&(O.stack=O.stack+"\n"+P.substring(P.indexOf("\n")+1)),PSU(O,b.name,"",(R=b.options.version)!=null?R:-1);}})};
return this.connectionPromise=h=F()};var uFU=new fH("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(b,h){h(1)&&ah(b,"databases",{keyPath:"actualName"})}});var zOj,ctF=new function(){}(new function(){});new _.MC;var lWM=function(b,h){fH.call(this,b,h);this.options=h;Qb(b)};
_.z(lWM,fH);var CSN=function(b,h){var y;return function(){y||(y=new lWM(b,h));return y}};
lWM.prototype.openDb=function(b,h,y){y=y===void 0?{}:y;return(this.options.shared?At8:Wk4)(b,h,Object.assign({},y))};
lWM.prototype.delete=function(b){b=b===void 0?{}:b;return(this.options.shared?eOI:Umf)(this.name,b)};var qae={},g85=Ov("ytGcfConfig",{objectStores:(qae.coldConfigStore={addedAtVersion:1},qae.hotConfigStore={addedAtVersion:1},qae),shared:!1,upgrade:function(b,h){h(1)&&(dd(ah(b,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),dd(ah(b,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var xtw=function(){_.ED.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var b=_.hj("yt.gcf.config.hotUpdateCallbacks");b?(this.localHotConfigJobQueue=[].concat(_.f$(b)),this.sharedHotConfigJobQueue=b):(this.sharedHotConfigJobQueue=[],_.HL("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.z(xtw,_.ED);xtw.prototype.disposeInternal=function(){for(var b=_.L(this.localHotConfigJobQueue),h=b.next();!h.done;h=b.next()){var y=this.sharedHotConfigJobQueue;h=y.indexOf(h.value);h>=0&&y.splice(h,1)}this.localHotConfigJobQueue.length=0;_.ED.prototype.disposeInternal.call(this)};var Eu=function(){var b=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new xtw;this.TEST_ONLY={initializeConfigDb:function(){b.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return b.coldGlobalConfigGroup},
setHotConfigGroup:function(h){QwP(b,h)},
setHotHashData:function(h){b.setHotHashData(h)},
setColdConfigGroup:function(h){mto(b,h)},
getColdHashData:function(){return b.coldHashData},
getHotHashData:function(){return b.hotHashData},
getHotConfigGroup:function(){return b.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return vpW()},
getExportedHotConfigGroup:function(){return w4()},
getExportedColdHashData:function(){return _.hj("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.hj("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){bie(b)},
resetInstance:function(){b.setHotHashData(void 0);hOM(b);delete Eu.instance},
setDebounceTimer:function(h){b.debounceTimer=h},
getDebounceTimer:function(){return b.debounceTimer}}},yta=function(){if(!Eu.instance){var b=new Eu;
Eu.instance=b}return Eu.instance},aUw=function(b){var h;
_.Z(function(y){if(y.nextAddress==1)return _.r("start_client_gcf")||_.r("delete_gcf_config_db")?_.r("start_client_gcf")?y.yield(_.uj(),3):y.jumpTo(2):y.return();y.nextAddress!=2&&((h=y.yieldResult)&&_.Tn()&&!_.r("delete_gcf_config_db")?(b.isConfigDbInitialized=!0,bie(b)):(SnW(b),FkW(b)));return _.r("delete_gcf_config_db")?y.yield(V7M(),0):y.jumpTo(0)})},iF=function(){var b;
return(b=w4())!=null?b:_.QC("RAW_HOT_CONFIG_GROUP")},dma=function(b){var h,y,S,F,a,P;
return _.Z(function(K){switch(K.nextAddress){case 1:if(b.hotGlobalConfigGroup)return K.return(w4());if(!b.isConfigDbInitialized)return h=yV("getHotConfig IDB not initialized"),_.yb(h),K.return(Promise.reject(h));y=Xl();S=_.QC("TIME_CREATED_MS");if(!y){F=yV("getHotConfig token error");_.yb(F);K.jumpTo(2);break}return K.yield(kDy(y),3);case 3:if((a=K.yieldResult)&&a.timestamp>S)return QwP(b,a.config),b.setHotHashData(a.hashData),K.return(w4());case 2:FkW(b);if(!(y&&b.hotGlobalConfigGroup&&b.hotHashData)){K.jumpTo(4);
break}return K.yield(Yn8(b.hotGlobalConfigGroup,b.hotHashData,y,S),4);case 4:return b.hotGlobalConfigGroup?K.return(w4()):(P=new _.Gn("Config not available in ytConfig"),_.yb(P),K.return(Promise.reject(P)))}})},$m8=function(b){var h,y,S,F,a,P;
return _.Z(function(K){switch(K.nextAddress){case 1:if(b.coldGlobalConfigGroup)return K.return(vpW());if(!b.isConfigDbInitialized)return h=yV("getColdConfig IDB not initialized"),_.yb(h),K.return(Promise.reject(h));y=Xl();S=_.QC("TIME_CREATED_MS");if(!y){F=yV("getColdConfig");_.yb(F);K.jumpTo(2);break}return K.yield(GDk(y),3);case 3:if((a=K.yieldResult)&&a.timestamp>S)return mto(b,a.config),jUe(b,a.configData),hOM(b,a.hashData),K.return(vpW());case 2:SnW(b);if(!(y&&b.coldGlobalConfigGroup&&b.coldHashData&&
b.configData)){K.jumpTo(4);break}return K.yield(TR4(b.coldGlobalConfigGroup,b.coldHashData,b.configData,y,S),4);case 4:return b.coldGlobalConfigGroup?K.return(vpW()):(P=new _.Gn("Config not available in ytConfig"),_.yb(P),K.return(Promise.reject(P)))}})},bie=function(b){if(!b.hotGlobalConfigGroup||!b.coldGlobalConfigGroup){if(!Xl()){var h=yV("scheduleGetConfigs");
_.yb(h)}b.initJob||(b.initJob=_.xP.addLowPriorityJob(function(){return _.Z(function(y){switch(y.nextAddress){case 1:return _.WE(y,2),y.yield(dma(b),4);case 4:_.Lz(y,3);break;case 2:_.C$(y);case 3:return _.WE(y,5),y.yield($m8(b),7);case 7:_.Lz(y,6);break;case 5:_.C$(y);case 6:b.initJob&&(b.initJob=0),_.g3(y)}})},100))}},TSj=function(b,h,y){var S,F,a;
return _.Z(function(P){switch(P.nextAddress){case 1:if(!_.r("start_client_gcf")){P.jumpTo(0);break}y&&QwP(b,y);b.setHotHashData(h);S=Xl();if(!S){P.jumpTo(3);break}if(y){P.jumpTo(4);break}return P.yield(kDy(S),5);case 5:F=P.yieldResult,y=(a=F)==null?void 0:a.config;case 4:return P.yield(Yn8(y,h,S),3);case 3:if(y)for(var K=y,n=_.L(b.configUpdateService.sharedHotConfigJobQueue),X=n.next();!X.done;X=n.next())X=X.value,X(K);_.g3(P)}})},GAM=function(b,h,y){var S,F,a,P;
return _.Z(function(K){if(K.nextAddress==1){if(!_.r("start_client_gcf"))return K.jumpTo(0);hOM(b,h);return(S=Xl())?y?K.jumpTo(4):K.yield(GDk(S),5):K.jumpTo(0)}K.nextAddress!=4&&(F=K.yieldResult,y=(a=F)==null?void 0:a.config);if(!y)return K.jumpTo(0);P=y.configData;return K.yield(TR4(y,h,P,S),0)})},j3I=function(){var b=yta(),h=(0,_.NO)()-b.debounceTimer;
if(!(b.debounceTimer!==0&&h<_.tj("send_config_hash_timer"))){h=_.hj("yt.gcf.config.coldConfigData");var y=_.hj("yt.gcf.config.hotHashData"),S=_.hj("yt.gcf.config.coldHashData");h&&y&&S&&(b.debounceTimer=(0,_.NO)());return{coldConfigData:h,hotHashData:y,coldHashData:S}}},SnW=function(b){mto(b,_.QC("RAW_COLD_CONFIG_GROUP"));
hOM(b,_.QC("SERIALIZED_COLD_HASH_DATA"));var h;jUe(b,(h=b.coldGlobalConfigGroup)==null?void 0:h.configData)},FkW=function(b){QwP(b,_.QC("RAW_HOT_CONFIG_GROUP"));
b.setHotHashData(_.QC("SERIALIZED_HOT_HASH_DATA"))},QwP=function(b,h){b.hotGlobalConfigGroup=h;
_.HL("yt.gcf.config.hotConfigGroup",b.hotGlobalConfigGroup||null)},mto=function(b,h){b.coldGlobalConfigGroup=h;
_.HL("yt.gcf.config.coldConfigGroup",b.coldGlobalConfigGroup||null)};
Eu.prototype.setHotHashData=function(b){this.hotHashData=b;_.HL("yt.gcf.config.hotHashData",this.hotHashData||null)};
var hOM=function(b,h){b.coldHashData=h;_.HL("yt.gcf.config.coldHashData",b.coldHashData||null)},jUe=function(b,h){b.configData=h;
_.HL("yt.gcf.config.coldConfigData",b.configData||null)},w4=function(){return _.hj("yt.gcf.config.hotConfigGroup")},vpW=function(){return _.hj("yt.gcf.config.coldConfigGroup")};var Uv={},LkN=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";Uv.assign=function(b){for(var h=Array.prototype.slice.call(arguments,1);h.length;){var y=h.shift();if(y){if(typeof y!=="object")throw new TypeError("$c`"+y);for(var S in y)Object.prototype.hasOwnProperty.call(y,S)&&(b[S]=y[S])}}return b};
Uv.shrinkBuf=function(b,h){if(b.length===h)return b;if(b.subarray)return b.subarray(0,h);b.length=h;return b};
var PSW={arraySet:function(b,h,y,S,F){if(h.subarray&&b.subarray)b.set(h.subarray(y,y+S),F);else for(var a=0;a<S;a++)b[F+a]=h[y+a]},
flattenChunks:function(b){var h,y;var S=y=0;for(h=b.length;S<h;S++)y+=b[S].length;var F=new Uint8Array(y);S=y=0;for(h=b.length;S<h;S++){var a=b[S];F.set(a,y);y+=a.length}return F}},Kk8={arraySet:function(b,h,y,S,F){for(var a=0;a<S;a++)b[F+a]=h[y+a]},
flattenChunks:function(b){return[].concat.apply([],b)}};
Uv.setTyped=function(){LkN?(Uv.Buf8=Uint8Array,Uv.Buf16=Uint16Array,Uv.Buf32=Int32Array,Uv.assign(Uv,PSW)):(Uv.Buf8=Array,Uv.Buf16=Array,Uv.Buf32=Array,Uv.assign(Uv,Kk8))};
Uv.setTyped();var Zio=!0;try{new Uint8Array(1)}catch(b){Zio=!1}
var kM8=function(b){var h,y,S=b.length,F=0;for(h=0;h<S;h++){var a=b.charCodeAt(h);if((a&64512)===55296&&h+1<S){var P=b.charCodeAt(h+1);(P&64512)===56320&&(a=65536+(a-55296<<10)+(P-56320),h++)}F+=a<128?1:a<2048?2:a<65536?3:4}var K=new Uv.Buf8(F);for(h=y=0;y<F;h++)a=b.charCodeAt(h),(a&64512)===55296&&h+1<S&&(P=b.charCodeAt(h+1),(P&64512)===56320&&(a=65536+(a-55296<<10)+(P-56320),h++)),a<128?K[y++]=a:(a<2048?K[y++]=192|a>>>6:(a<65536?K[y++]=224|a>>>12:(K[y++]=240|a>>>18,K[y++]=128|a>>>12&63),K[y++]=
128|a>>>6&63),K[y++]=128|a&63);return K};var BqI={};BqI=function(b,h,y,S){var F=b&65535|0;b=b>>>16&65535|0;for(var a;y!==0;){a=y>2E3?2E3:y;y-=a;do F=F+h[S++]|0,b=b+F|0;while(--a);F%=65521;b%=65521}return F|b<<16|0};for(var ij={},lc,o8o=[],M7M=0;M7M<256;M7M++){lc=M7M;for(var n8W=0;n8W<8;n8W++)lc=lc&1?3988292384^lc>>>1:lc>>>1;o8o[M7M]=lc}ij=function(b,h,y,S){y=S+y;for(b^=-1;S<y;S++)b=b>>>8^o8o[(b^h[S])&255];return b^-1};var Cz={};Cz={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 HRI=[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],OR5=[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],GM4=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],DCn=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],T6=Array(576);I2(T6);var G6=Array(60);I2(G6);var J9=Array(512);I2(J9);var pz=Array(256);I2(pz);var udF=Array(29);I2(udF);var Nqq=Array(30);I2(Nqq);var s34,Y05,TqF,ggr=!1;var qO;
qO=[new lj(0,0,0,0,function(b,h){var y=65535;for(y>b.pending_buf_size-5&&(y=b.pending_buf_size-5);;){if(b.lookahead<=1){fz(b);if(b.lookahead===0&&h===0)return 1;if(b.lookahead===0)break}b.strstart+=b.lookahead;b.lookahead=0;var S=b.block_start+y;if(b.strstart===0||b.strstart>=S)if(b.lookahead=b.strstart-S,b.strstart=S,kP(b,!1),b.strm.avail_out===0)return 1;if(b.strstart-b.block_start>=b.w_size-262&&(kP(b,!1),b.strm.avail_out===0))return 1}b.insert=0;if(h===4)return kP(b,!0),b.strm.avail_out===0?3:
4;b.strstart>b.block_start&&kP(b,!1);return 1}),
new lj(4,4,8,4,WiF),new lj(4,5,16,8,WiF),new lj(4,6,32,32,WiF),new lj(4,4,16,16,ww),new lj(8,16,32,32,ww),new lj(8,16,128,128,ww),new lj(8,32,128,256,ww),new lj(32,128,258,1024,ww),new lj(32,258,258,4096,ww)];var Ckf={};Ckf=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 VIN=Object.prototype.toString;
egr.prototype.push=function(b,h){var y=this.strm,S=this.options.chunkSize;if(this.ended)return!1;var F=h===~~h?h:h===!0?4:0;typeof b==="string"?y.input=kM8(b):VIN.call(b)==="[object ArrayBuffer]"?y.input=new Uint8Array(b):y.input=b;y.next_in=0;y.avail_in=y.input.length;do{y.avail_out===0&&(y.output=new Uv.Buf8(S),y.next_out=0,y.avail_out=S);b=JP8(y,F);if(b!==1&&b!==0)return Xi8(this,b),this.ended=!0,!1;if(y.avail_out===0||y.avail_in===0&&(F===4||F===2))if(this.options.to==="string"){var a=Uv.shrinkBuf(y.output,
y.next_out);h=a;a=a.length;if(a<65537&&(h.subarray&&Zio||!h.subarray))h=String.fromCharCode.apply(null,Uv.shrinkBuf(h,a));else{for(var P="",K=0;K<a;K++)P+=String.fromCharCode(h[K]);h=P}this.chunks.push(h)}else h=Uv.shrinkBuf(y.output,y.next_out),this.chunks.push(h)}while((y.avail_in>0||y.avail_out===0)&&b!==1);if(F===4)return(y=this.strm)&&y.state?(S=y.state.status,S!==42&&S!==69&&S!==73&&S!==91&&S!==103&&S!==113&&S!==666?b=gw(y,-2):(y.state=null,b=S===113?gw(y,-3):0)):b=-2,Xi8(this,b),this.ended=
!0,b===0;F===2&&(Xi8(this,0),y.avail_out=0);return!0};
var Xi8=function(b,h){h===0&&(b.result=b.options.to==="string"?b.chunks.join(""):Uv.flattenChunks(b.chunks));b.chunks=[];b.err=h;b.msg=b.strm.msg};var Hi7=typeof TextEncoder!=="undefined"?new TextEncoder:null,uf8=Hi7?function(b){return Hi7.encode(b)}:function(b){b=_.VY(b);
for(var h=new Uint8Array(b.length),y=0;y<h.length;y++)h[y]=b[y];return h};var aen={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},jkn={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var q8=function(b,h){this.version=b;this.args=h};
q8.prototype.serialize=function(){return{version:this.version,args:this.args}};var lTN=function(b,h){this.topic=b;this.dataClass=h};
lTN.prototype.toString=function(){return this.topic};var uFW=_.hj("ytPubsub2Pubsub2Instance")||new _.Jj;_.Jj.prototype.subscribe=_.Jj.prototype.subscribe;_.Jj.prototype.unsubscribeByKey=_.Jj.prototype.unsubscribeByKey;_.Jj.prototype.publish=_.Jj.prototype.publish;_.Jj.prototype.clear=_.Jj.prototype.clear;_.HL("ytPubsub2Pubsub2Instance",uFW);var wdr=_.hj("ytPubsub2Pubsub2SubscribedKeys")||{};_.HL("ytPubsub2Pubsub2SubscribedKeys",wdr);var xCf=_.hj("ytPubsub2Pubsub2TopicToKeys")||{};_.HL("ytPubsub2Pubsub2TopicToKeys",xCf);
var q0k=_.hj("ytPubsub2Pubsub2IsAsync")||{};_.HL("ytPubsub2Pubsub2IsAsync",q0k);_.HL("ytPubsub2Pubsub2SkipSubKey",null);var dhF=void 0,Fck=void 0;var MCk=_.tj("max_body_size_to_compress",5E5),nxy=_.tj("min_body_size_to_compress",500),mB=!0,tCn=0,hd=0,Nyr=_.tj("compression_performance_threshold_lr",250),coF=_.tj("slow_compressions_before_abandon_count",4),Lc4=!1,P3r=new Map,HZn=1,Xlj=!0;_.Pv(yT,zqj);yT.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 Oio=function(b,h,y){y||(y=0);var S=b.W_;if(typeof h==="string")for(var F=0;F<16;F++)S[F]=h.charCodeAt(y)<<24|h.charCodeAt(y+1)<<16|h.charCodeAt(y+2)<<8|h.charCodeAt(y+3),y+=4;else for(F=0;F<16;F++)S[F]=h[y]<<24|h[y+1]<<16|h[y+2]<<8|h[y+3],y+=4;for(h=16;h<80;h++)y=S[h-3]^S[h-8]^S[h-14]^S[h-16],S[h]=(y<<1|y>>>31)&4294967295;h=b.chain_[0];y=b.chain_[1];F=b.chain_[2];for(var a=b.chain_[3],P=b.chain_[4],K,n,X=0;X<80;X++)X<40?X<20?(K=a^y&(F^a),n=1518500249):(K=y^F^a,n=1859775393):X<60?(K=y&F|a&(y|F),
n=2400959708):(K=y^F^a,n=3395469782),K=(h<<5|h>>>27)+K+P+n+S[X]&4294967295,P=a,a=F,F=(y<<30|y>>>2)&4294967295,y=h,h=K;b.chain_[0]=b.chain_[0]+h&4294967295;b.chain_[1]=b.chain_[1]+y&4294967295;b.chain_[2]=b.chain_[2]+F&4294967295;b.chain_[3]=b.chain_[3]+a&4294967295;b.chain_[4]=b.chain_[4]+P&4294967295};
yT.prototype.update=function(b,h){if(b!=null){h===void 0&&(h=b.length);for(var y=h-this.blockSize,S=0,F=this.buf_,a=this.inbuf_;S<h;){if(a==0)for(;S<=y;)Oio(this,b,S),S+=this.blockSize;if(typeof b==="string")for(;S<h;){if(F[a]=b.charCodeAt(S),++a,++S,a==this.blockSize){Oio(this,F);a=0;break}}else for(;S<h;)if(F[a]=b[S],++a,++S,a==this.blockSize){Oio(this,F);a=0;break}}this.inbuf_=a;this.total_+=h}};
yT.prototype.digest=function(){var b=[],h=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var y=this.blockSize-1;y>=56;y--)this.buf_[y]=h&255,h/=256;Oio(this,this.buf_);for(y=h=0;y<5;y++)for(var S=24;S>=0;S-=8)b[h]=this.chain_[y]>>S&255,++h;return b};var ByY;var QR=function(b){var h=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(u){h.databaseToken=u},
triggerThrottle:function(){h.throttledSend()},
cancelThrottle:function(){h.cancelThrottledSend()},
immediateSend:function(u){return _.Z(function(O){return O.yield(h.immediateSend(u),0)})},
requestWithinAgeLimit:function(u,O){return h.requestWithinAgeLimit(u,O)},
retryQueuedRequests:function(){h.retryQueuedRequests()}};
var y;this.throttleTimeout=(y=b.throttleTimeout)!=null?y:100;var S;this.retryMaxAttempts=(S=b.retryMaxAttempts)!=null?S:1;var F;this.requestAgeLimitMs=(F=b.requestAgeLimitMs)!=null?F:2592E6;var a;this.queuedRequestAgeLimitMs=(a=b.queuedRequestAgeLimitMs)!=null?a:12E4;var P;this.retryDelayMs=(P=b.retryDelayMs)!=null?P:5E3;var K;this.databaseToken=(K=b.databaseToken)!=null?K:void 0;this.enableCleaning=!!b.enableCleaning;var n;this.cleaningRate=(n=b.cleaningRate)!=null?n:.1;var X;this.potentialEsfErrorLimit=
(X=b.potentialEsfErrorLimit)!=null?X:10;b.handleError&&(this.handleError=b.handleError);b.handleWarning&&(this.handleWarning=b.handleWarning);b.disableYtIdbTransactions&&(this.disableYtIdbTransactions=b.disableYtIdbTransactions);b.bypassDbTokenDependency&&(this.bypassDbTokenDependency=b.bypassDbTokenDependency);this.getBooleanFlag=b.getBooleanFlag;this.jobManager=b.jobManager;this.logsStore=b.logsStore;this.networkManager=b.networkManager;this.sendFn=b.sendFn;this.onlineEvent=b.onlineEvent;this.offlineEvent=
b.offlineEvent;xR(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&NR8(this)},NR8=function(b){xR(b)&&!b.disableYtIdbTransactions&&(b.initialized=!0,b.enableCleaning&&Math.random()<=b.cleaningRate&&b.logsStore.cleanLogsStore(b.databaseToken),b.retryQueuedRequests(),b.networkManager.isNetworkAvailable()&&b.throttledSend(),b.networkManager.listen(b.onlineEvent,b.throttledSend.bind(b)),b.networkManager.listen(b.offlineEvent,b.cancelThrottledSend.bind(b)))};
_.d=QR.prototype;_.d.writeThenSend=function(b,h){var y=this;h=h===void 0?{}:h;if(xR(this)&&this.initialized){var S={url:b,options:h,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(S,this.databaseToken).then(function(F){S.id=F;y.networkManager.isNetworkAvailable()&&y.immediateSend(S)}).catch(function(F){y.immediateSend(S);
t75(y,F)})}else this.sendFn(b,h)};
_.d.sendThenWrite=function(b,h,y){var S=this;h=h===void 0?{}:h;if(xR(this)&&this.initialized){var F={url:b,options:h,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(F.skipRetry=y);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!F.skipRetry){if(!F.skipRetry){var a=h.onError?h.onError:function(){};
h.onError=function(P,K){return _.Z(function(n){if(n.nextAddress==1)return n.yield(S.logsStore.set(F,S.databaseToken).catch(function(X){t75(S,X)}),2);
a(P,K);_.g3(n)})}}this.sendFn(b,h,F.skipRetry)}else this.logsStore.set(F,this.databaseToken).catch(function(P){S.sendFn(b,h,F.skipRetry);
t75(S,P)})}else this.sendFn(b,h,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&y)};
_.d.sendAndWrite=function(b,h){var y=this;h=h===void 0?{}:h;if(xR(this)&&this.initialized){var S={url:b,options:h,timestamp:this.now(),status:"NEW",sendCount:0},F=!1,a=h.onSuccess?h.onSuccess:function(){};
S.options.onSuccess=function(P,K){S.id!==void 0?y.logsStore.deleteRequest(S.id,y.databaseToken):F=!0;y.networkManager.networkStatusHint&&y.getBooleanFlag&&y.getBooleanFlag("vss_network_hint")&&y.networkManager.networkStatusHint(!0);a(P,K)};
this.sendFn(S.url,S.options,void 0,!0);this.logsStore.set(S,this.databaseToken).then(function(P){S.id=P;F&&y.logsStore.deleteRequest(S.id,y.databaseToken)}).catch(function(P){t75(y,P)})}else this.sendFn(b,h,void 0,!0)};
_.d.throttledSend=function(){var b=this;if(!xR(this))throw Error("cd");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var h;return _.Z(function(y){if(y.nextAddress==1)return y.yield(b.logsStore.getMostRecentByStatus("NEW",b.databaseToken),2);if(y.nextAddress!=3)return h=y.yieldResult,h?y.yield(b.immediateSend(h),3):(b.cancelThrottledSend(),y.return());b.intervalJob&&(b.intervalJob=0,b.throttledSend());_.g3(y)})},this.throttleTimeout))};
_.d.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.d.immediateSend=function(b){var h=this,y;return _.Z(function(S){switch(S.nextAddress){case 1:if(!xR(h))throw Error("dd");if(b.id===void 0){S.jumpTo(2);break}return S.yield(h.logsStore.markAsQueued(b.id,h.databaseToken),3);case 3:(y=S.yieldResult)||h.handleWarning(Error("ed"));case 2:if(h.requestWithinAgeLimit(b,h.requestAgeLimitMs)){S.jumpTo(4);break}h.handleWarning(Error("fd"));if(b.id===void 0){S.jumpTo(5);break}return S.yield(h.logsStore.deleteRequest(b.id,h.databaseToken),5);case 5:return S.return();
case 4:b.skipRetry||(b=rte(h,b));if(!b){S.jumpTo(0);break}if(!b.skipRetry||b.id===void 0){S.jumpTo(8);break}return S.yield(h.logsStore.deleteRequest(b.id,h.databaseToken),8);case 8:h.sendFn(b.url,b.options,!!b.skipRetry),_.g3(S)}})};
var rte=function(b,h){if(!xR(b))throw Error("gd");var y=h.options.onError?h.options.onError:function(){};
h.options.onError=function(F,a){var P,K,n,X;return _.Z(function(u){switch(u.nextAddress){case 1:P=Jor(a);(K=eqr(a))&&b.getBooleanFlag&&b.getBooleanFlag("web_enable_error_204")&&b.handleError(Error("hd"),h.url,a);if(!(b.getBooleanFlag&&b.getBooleanFlag("nwl_consider_error_code")&&P||b.getBooleanFlag&&!b.getBooleanFlag("nwl_consider_error_code")&&b.potentialEsfErrorCounter<=b.potentialEsfErrorLimit)){u.jumpTo(2);break}if(!b.networkManager.sendNetworkCheckRequest){u.jumpTo(3);break}return u.yield(b.networkManager.sendNetworkCheckRequest(),
3);case 3:if(b.networkManager.isNetworkAvailable()){u.jumpTo(2);break}y(F,a);if(!b.getBooleanFlag||!b.getBooleanFlag("nwl_consider_error_code")||((n=h)==null?void 0:n.id)===void 0){u.jumpTo(6);break}return u.yield(b.logsStore.resetRequest(h.id,b.databaseToken,!1),6);case 6:return u.return();case 2:if(b.getBooleanFlag&&b.getBooleanFlag("nwl_consider_error_code")&&!P&&b.potentialEsfErrorCounter>b.potentialEsfErrorLimit)return u.return();b.potentialEsfErrorCounter++;if(((X=h)==null?void 0:X.id)===void 0){u.jumpTo(8);
break}return h.sendCount<b.retryMaxAttempts?u.yield(b.logsStore.resetRequest(h.id,b.databaseToken,!0,K?!1:void 0),12):u.yield(b.logsStore.deleteRequest(h.id,b.databaseToken),8);case 12:b.jobManager.addLowPriorityJob(function(){b.networkManager.isNetworkAvailable()&&b.throttledSend()},b.retryDelayMs);
case 8:y(F,a),_.g3(u)}})};
var S=h.options.onSuccess?h.options.onSuccess:function(){};
h.options.onSuccess=function(F,a){var P;return _.Z(function(K){if(K.nextAddress==1)return((P=h)==null?void 0:P.id)===void 0?K.jumpTo(2):K.yield(b.logsStore.deleteRequest(h.id,b.databaseToken),2);b.networkManager.networkStatusHint&&b.getBooleanFlag&&b.getBooleanFlag("vss_network_hint")&&b.networkManager.networkStatusHint(!0);S(F,a);_.g3(K)})};
return h};
QR.prototype.requestWithinAgeLimit=function(b,h){b=b.timestamp;return this.now()-b>=h?!1:!0};
QR.prototype.retryQueuedRequests=function(){var b=this;if(!xR(this))throw Error("id");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(h){h&&!b.requestWithinAgeLimit(h,b.queuedRequestAgeLimitMs)?b.jobManager.addLowPriorityJob(function(){return _.Z(function(y){if(y.nextAddress==1)return h.id===void 0?y.jumpTo(2):y.yield(b.logsStore.resetRequest(h.id,b.databaseToken),2);b.retryQueuedRequests();_.g3(y)})}):b.networkManager.isNetworkAvailable()&&b.throttledSend()})};
var t75=function(b,h){b.writeError&&!b.networkManager.isNetworkAvailable()?b.writeError(h):b.handleError(h)},xR=function(b){return!!b.databaseToken||b.bypassDbTokenDependency};var C3I;var EEF={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationPlayablesMetrics:533,liveCreationStreamWebrtcStats:288,liveCreationWebrtcError:526,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,
visualElementShown:72,visualElementHidden:73,visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,
spacecastSummaryRequested:88,spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,
vrCopresencePartyStats:153,vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,
buyFlowStarted:136,mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,
buyFlowEvent:167,kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,
transactionFlowPaymentCallBackReceived:387,transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,
outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,
ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,
watchTimeSegment:219,appWidthLayoutError:221,accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,
deviceContextEvent:244,templateResolutionException:245,musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,
ytbFileOpened:268,tfliteModelError:269,apiTest:270,yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,
watchRestoreAttempt:294,liteAccountSignIn:296,notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,
tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,
tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,
activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,
browseThumbnailPreloadEvent:379,finalPayload:380,mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,
gelDebuggingEvent:399,webLinkTtsPlayEnd:400,clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,
sfvEffectGlThreadBlockedEvent:420,mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,
musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,
embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,
getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,
unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,
connectedSessionMisattributionEvent:514,producerProjectElementModified:515,adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527,watchZoomStateChange:528,metadataEditorEvent:529,kidsPrismaDeeplinksEvent:530,creationOrchestrationEvent:531,coordinatedSamplingTriggered:532,dnaRecapScreenshotEvent:534};var ctb={},fmf=Ov("ServiceWorkerLogsDatabase",{objectStores:(ctb.SWHealthLog={addedAtVersion:1},ctb),shared:!0,upgrade:function(b,h){h(1)&&dd(ah(b,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var btM={},vxf=0;var FIr;var mD=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},KK=function(){if(!mD.instance){var b=_.hj("yt.networkRequestMonitor.instance")||new mD;
_.HL("yt.networkRequestMonitor.instance",b);mD.instance=b}return mD.instance};
mD.prototype.requestComplete=function(b,h){h&&(this.anyRequestHasSucceeded=!0);b=this.removeParams(b);this.requestMap.get(b)||this.requestMap.set(b,h)};
mD.prototype.isEndpointCFR=function(b){b=this.removeParams(b);return(b=this.requestMap.get(b))?!1:b===!1&&this.anyRequestHasSucceeded?!0:null};
mD.prototype.removeParams=function(b){return b.split("?")[0]};
mD.prototype.removeParams=mD.prototype.removeParams;mD.prototype.isEndpointCFR=mD.prototype.isEndpointCFR;mD.prototype.requestComplete=mD.prototype.requestComplete;mD.getInstance=KK;var va=function(b){_.TI.call(this);var h=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=b!=null?b:{addLowPriorityJob:function(F,a){return setTimeout(F,a)},
cancelJob:function(F){clearTimeout(F)}};
var y,S;this.isOnline=(S=(y=window.navigator)==null?void 0:y.onLine)!=null?S:!0;this.onNavigatorChange=function(){return _.Z(function(F){return F.yield(RO8(h),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||zO7(this)};
_.z(va,_.TI);va.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete va.instance};
va.prototype.isNetworkAvailable=function(){return this.isOnline};
var zO7=function(b){b.pollingJob=b.jobManager.addLowPriorityJob(function(){var h;return _.Z(function(y){if(y.nextAddress==1)return b.isOnline?((h=window.navigator)==null?0:h.onLine)?y.jumpTo(3):y.yield(RO8(b),3):y.yield(RO8(b),3);zO7(b);_.g3(y)})},3E4)},RO8=function(b,h){return b.networkRequestPromise?b.networkRequestPromise:b.networkRequestPromise=new Promise(function(y){var S,F,a,P;
return _.Z(function(K){switch(K.nextAddress){case 1:return S=window.AbortController?new window.AbortController:void 0,a=(F=S)==null?void 0:F.signal,P=!1,_.WE(K,2,3),S&&(b.abortTimeoutKey=b.jobManager.addLowPriorityJob(function(){S.abort()},h||2E4)),K.yield(fetch("/generate_204",{method:"HEAD",
signal:a}),5);case 5:P=!0;case 3:_.U3(K);b.networkRequestPromise=void 0;b.abortTimeoutKey&&(b.jobManager.cancelJob(b.abortTimeoutKey),b.abortTimeoutKey=0);P!==b.isOnline&&(b.isOnline=P,b.isOnline?b.dispatchEvent("networkstatus-online"):b.dispatchEvent("networkstatus-offline"));y(P);_.Jk(K,0);break;case 2:_.C$(K),P=!1,K.jumpTo(3)}})})};var bY=function(){_.TI.call(this);var b=this;this.shouldFlushErrors=!1;va.instance||(va.instance=new va(_.xP));this.sharedNetworkStatusManager=va.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(b.shouldFlushErrors&&_.r("offline_error_handling")){var h=a15().get("errors",!0);if(h){for(var y in h)if(h[y]){var S=new _.Gn(y,"sent via offline_errors");S.name=h[y].name;S.stack=h[y].stack;S.level=h[y].level;_.v4(S)}a15().set("errors",{},2592E3,!0)}}})};
_.z(bY,_.TI);var DmN=function(){if(!bY.instance){var b=_.hj("yt.networkStatusManager.instance")||new bY;_.HL("yt.networkStatusManager.instance",b);bY.instance=b}return bY.instance};
_.d=bY.prototype;_.d.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.d.networkStatusHint=function(b){this.sharedNetworkStatusManager.isOnline=b};
_.d.getWindowStatus=function(){var b=window.navigator.onLine;return b===void 0?!0:b};
_.d.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.d.listen=function(b,h){return this.sharedNetworkStatusManager.listen(b,h)};
_.d.sendNetworkCheckRequest=function(b){b=RO8(this.sharedNetworkStatusManager,b);b.then(function(h){_.r("use_cfr_monitor")&&KK().requestComplete("generate_204",h)});
return b};
bY.prototype.sendNetworkCheckRequest=bY.prototype.sendNetworkCheckRequest;bY.prototype.listen=bY.prototype.listen;bY.prototype.enableErrorFlushing=bY.prototype.enableErrorFlushing;bY.prototype.getWindowStatus=bY.prototype.getWindowStatus;bY.prototype.networkStatusHint=bY.prototype.networkStatusHint;bY.prototype.isNetworkAvailable=bY.prototype.isNetworkAvailable;bY.getInstance=DmN;_.PX=function(b){b=b===void 0?{}:b;_.TI.call(this);var h=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=DmN();var y=_.hj("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);y&&(b.rateLimit?(this.rateLimit=b.rateLimit,y("networkstatus-online",function(){IU7(h,"publicytnetworkstatus-online")}),y("networkstatus-offline",function(){IU7(h,"publicytnetworkstatus-offline")})):(y("networkstatus-online",function(){h.dispatchEvent("publicytnetworkstatus-online")}),y("networkstatus-offline",
function(){h.dispatchEvent("publicytnetworkstatus-offline")})))};
_.z(_.PX,_.TI);_.PX.prototype.isNetworkAvailable=function(){var b=_.hj("yt.networkStatusManager.instance.isNetworkAvailable");return b?b.bind(this.nsmInstance)():!0};
_.PX.prototype.networkStatusHint=function(b){var h=_.hj("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);h&&h(b)};
_.PX.prototype.sendNetworkCheckRequest=function(b){var h=this,y;return _.Z(function(S){y=_.hj("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(h.nsmInstance);return _.r("skip_network_check_if_cfr")&&KK().isEndpointCFR("generate_204")?S.return(new Promise(function(F){var a;h.networkStatusHint(((a=window.navigator)==null?void 0:a.onLine)||!0);F(h.isNetworkAvailable())})):y?S.return(y(b)):S.return(!0)})};
var IU7=function(b,h){b.rateLimit?b.lastJobTime?(_.xP.cancelJob(b.schedulerJob),b.schedulerJob=_.xP.addLowPriorityJob(function(){b.lastPublicSignalSent!==h&&(b.dispatchEvent(h),b.lastPublicSignalSent=h,b.lastJobTime=(0,_.NO)())},b.rateLimit-((0,_.NO)()-b.lastJobTime))):(b.dispatchEvent(h),b.lastPublicSignalSent=h,b.lastJobTime=(0,_.NO)()):b.dispatchEvent(h)};var Pir,hD=function(){QR.call(this,{logsStore:{cleanLogsStore:ExY,deleteRequest:VCU,getMostRecentByStatus:Tyj,markAsQueued:Gjr,resetRequest:kj8,set:YBy},networkManager:_.KIr(),handleError:function(b,h,y){var S,F=y==null?void 0:(S=y.error)==null?void 0:S.code;if(F===400||F===415){var a;b=new _.Gn(b.message,h,y==null?void 0:(a=y.error)==null?void 0:a.code);_.yb(b,void 0,void 0,void 0,!0)}else _.v4(b)},
handleWarning:_.yb,sendFn:$JY,now:_.NO,writeError:dJ5,jobManager:_.J_(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.tj("potential_esf_error_limit",10),getBooleanFlag:_.r,disableYtIdbTransactions:!(_.Tn()&&_.ZtF())});this.initializationPromise=new _.MC;_.r("networkless_immediately_drop_all_requests")&&iZf();eOI("LogsDatabaseV2")};
_.z(hD,QR);_.WkM=function(){var b=_.hj("yt.networklessRequestController.instance");b||(b=new hD,_.HL("yt.networklessRequestController.instance",b),_.r("networkless_logging")&&_.uj().then(function(h){b.databaseToken=h;NR8(b);b.initializationPromise.resolve();b.enableCleaning&&Math.random()<=b.cleaningRate&&b.databaseToken&&lm5(b.databaseToken);_.r("networkless_immediately_drop_sw_health_store")&&BRP(b)}));
return b};
hD.prototype.writeThenSend=function(b,h){h||(h={});h=LIq(b,h);_.Tn()||(this.initialized=!1);QR.prototype.writeThenSend.call(this,b,h)};
hD.prototype.sendThenWrite=function(b,h,y){h||(h={});h=LIq(b,h);_.Tn()||(this.initialized=!1);QR.prototype.sendThenWrite.call(this,b,h,y)};
hD.prototype.sendAndWrite=function(b,h){h||(h={});h=LIq(b,h);_.Tn()||(this.initialized=!1);QR.prototype.sendAndWrite.call(this,b,h)};
hD.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var BRP=function(b){var h;_.Z(function(y){if(!b.databaseToken)throw h=yV("clearSWHealthLogsDb"),h;return y.return(qBY(b.databaseToken).catch(function(S){b.handleError(S)}))})};_.MjF=!1;_.oSn=_.S5.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.MjF};_.HL("ytNetworklessLoggingInitializationOptions",_.oSn);var lF=function(b){var h=this;this.config_=null;b?this.config_=b:E8k()&&(this.config_=_.rw());_.VT(_.xP,function(){ply(h)},5E3)};
lF.prototype.isReady=function(){!this.config_&&E8k()&&(this.config_=_.rw());return!!this.config_};
var UhN=function(b,h,y,S){!_.QC("VISITOR_DATA")&&h!=="visitor_id"&&Math.random()<.01&&_.yb(new _.Gn("Missing VISITOR_DATA when sending innertube request.",h,y,S));if(!b.isReady()){var F=new _.Gn("innertube xhrclient not ready",h,y,S);_.v4(F);throw F;}var a={headers:S.headers||{},method:"POST",postParams:y,postBody:S.postBody,postBodyFormat:S.postBodyFormat||"JSON",onTimeout:function(){S.onTimeout()},
onFetchTimeout:S.onTimeout,onSuccess:function(O,N){if(S.onSuccess)S.onSuccess(N)},
onFetchSuccess:function(O){if(S.onSuccess)S.onSuccess(O)},
onProgress:function(O){if(S.onProgress)S.onProgress(O)},
onError:function(O,N){if(S.onError)S.onError(N)},
onFetchError:function(O){if(S.onError)S.onError(O)},
timeout:S.timeout,withCredentials:!0,compress:S.compress};a.headers["Content-Type"]||(a.headers["Content-Type"]="application/json");var P="";(F=b.config_.innertubeHostOverride)&&(P=F);var K=b.config_.innertubeUseThirdPartyAuth||!1,n=_.dCq(K,P,S);Object.assign(a.headers,n);a.headers.Authorization&&!P&&K&&(a.headers["x-origin"]=window.location.origin);var X=_.Ln(P+("/youtubei/"+b.config_.innertubeApiVersion+"/"+h),{alt:"json"}),u=function(O){O=O===void 0?!1:O;var N;if(S.retry&&P!="www.youtube-nocookie.com"&&
(O||_.r("skip_ls_gel_retry")||a.headers["Content-Type"]!=="application/json"||(N=WcI(h,y,n,K)),N)){var t=a.onSuccess,R=a.onFetchSuccess;a.onSuccess=function(p,e){Ao4(N);t(p,e)};
y.onFetchSuccess=function(p,e){Ao4(N);R(p,e)}}try{if(O&&S.retry&&!S.networklessOptions.bypassNetworkless)a.method="POST",S.networklessOptions.writeThenSend?_.WkM().writeThenSend(X,a):_.WkM().sendAndWrite(X,a);
else if(S.compress){var I=!S.networklessOptions.writeThenSend;if(a.postBody){var U=a.postBody;typeof U!=="string"&&(U=JSON.stringify(a.postBody));OZN(X,U,a,_.Aj,I)}else OZN(X,JSON.stringify(a.postParams),a,IWr,I)}else IWr(X,a)}catch(p){if(p.name==="InvalidAccessError")N&&(Ao4(N),N=0),_.yb(Error("jd"));else throw p;}N&&_.VT(_.xP,function(){ply(b)},5E3)};
_.nSI()?Dmq().then(function(O){u(O)}):u(!1)};var CVF=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(CVF,_.ZL);var Atw=0,Ht5=_.Hv?"webkit":_.XW?"moz":_.nF?"ms":JYa?"o":"";_.HL("ytDomDomGetNextId",_.hj("ytDomDomGetNextId")||function(){return++Atw});var Umo={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},HX=function(b){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(b=
b||window.event){this.event=b;for(var h in b)h in Umo||(this[h]=b[h]);this.scale=b.scale;this.rotation=b.rotation;var y=b.target||b.srcElement;y&&y.nodeType==3&&(y=y.parentNode);this.target=y;var S=b.relatedTarget;if(S)try{S=S.nodeName?S:null}catch(F){S=null}else this.type=="mouseover"?S=b.fromElement:this.type=="mouseout"&&(S=b.toElement);this.relatedTarget=S;this.clientX=b.clientX!=void 0?b.clientX:b.pageX;this.clientY=b.clientY!=void 0?b.clientY:b.pageY;this.keyCode=b.keyCode?b.keyCode:b.which;
this.charCode=b.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=b.altKey;this.ctrlKey=b.ctrlKey;this.shiftKey=b.shiftKey;this.metaKey=b.metaKey;this.pageX_=b.pageX;this.pageY_=b.pageY}}catch(F){}},pib=function(b){if(document.body&&document.documentElement){var h=document.body.scrollTop+document.documentElement.scrollTop;
b.pageX_=b.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);b.pageY_=b.clientY+h}};
HX.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
HX.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
HX.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Xp=_.S5.ytEventsEventsListeners||{};_.HL("ytEventsEventsListeners",Xp);var c6F=_.S5.ytEventsEventsCounter||{count:0};_.HL("ytEventsEventsCounter",c6F);var RkF=_.gX(function(){var b=!1;try{var h=Object.defineProperty({},"capture",{get:function(){b=!0}});
window.addEventListener("test",null,h)}catch(y){}return b});_.Pv(Ou,_.ED);Ou.prototype.onMouseMove_=function(b){b.pageX_===void 0&&pib(b);var h=b.pageX_;b.pageY_===void 0&&pib(b);this.position_=new _.xb(h,b.pageY_)};
Ou.prototype.checkPosition_=function(){if(this.position_){var b=(0,_.NO)();if(this.previousTime_!=0){var h=this.previousPosition_,y=this.position_,S=h.x-y.x;h=h.y-y.y;S=Math.sqrt(S*S+h*h)/(b-this.previousTime_);this.cycles_[this.index_]=Math.abs((S-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(y=h=0;y<4;y++)h+=this.cycles_[y]||0;h>=3&&this.callback_();this.previousVelocity_=S}this.previousTime_=b;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
Ou.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.zk5(this.mouseListenerKey_)};var A6N={};var YkM=new _.r4("rawColdConfigGroup");var sF8=new _.r4("rawHotConfigGroup");var JtW=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(JtW,_.ZL);var eI4=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(eI4,_.ZL);var k2=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b,500)};
_.z(k2,_.ZL);k2.prototype.getPayloadCase=function(){return _.Wv(this,eOG)};
k2.prototype.getContext=function(){return _.cL(this,eI4,33)};
var eOG=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525,526,527,528,529,530,531];var UGq=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(UGq,_.ZL);var jF8=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(jF8,_.ZL);jF8.prototype.setVideoId=function(b){return pK(this,1,$Gr,RP(b))};
jF8.prototype.getPlaylistId=function(){return _.Cq(this,Y2(this,$Gr,2))};
var $Gr=[1,2];var zzY=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(zzY,_.ZL);zzY.prototype.getContext=function(){return _.cL(this,Jd,1)};
zzY.prototype.getTier=function(){return _.sV(this,7)};var CSW,cX,Rh;CSW=_.S5.ytPubsubPubsubInstance||new _.Jj;cX=_.S5.ytPubsubPubsubSubscribedKeys||{};Rh=_.S5.ytPubsubPubsubTopicToKeys||{};_.UJy=_.S5.ytPubsubPubsubIsSynchronous||{};_.Jj.prototype.subscribe=_.Jj.prototype.subscribe;_.Jj.prototype.unsubscribeByKey=_.Jj.prototype.unsubscribeByKey;_.Jj.prototype.publish=_.Jj.prototype.publish;_.Jj.prototype.clear=_.Jj.prototype.clear;_.HL("ytPubsubPubsubInstance",CSW);_.HL("ytPubsubPubsubTopicToKeys",Rh);_.HL("ytPubsubPubsubIsSynchronous",_.UJy);
_.HL("ytPubsubPubsubSubscribedKeys",cX);var D7=window;var y8=_.r("web_enable_lifecycle_monitoring")&&gSj()!==0,g8e=_.r("web_enable_lifecycle_monitoring");var sU5=function(b){var h=this;var y=y===void 0?0:y;var S=S===void 0?_.J_():S;this.JSC$11073_defaultPriority=y;this.scheduler=S;this.completedResolver=new _.MC;this.scheduledPayloads=b;for(b={i$jscomp$493:0};b.i$jscomp$493<this.scheduledPayloads.length;b={payload$jscomp$20:void 0,i$jscomp$493:b.i$jscomp$493},b.i$jscomp$493++)b.payload$jscomp$20=this.scheduledPayloads[b.i$jscomp$493],y=function(F){return function(){F.payload$jscomp$20.job();h.scheduledPayloads[F.i$jscomp$493].processed=!0;h.scheduledPayloads.every(function(a){return a.processed===
!0})&&h.completedResolver.resolve()}}(b),S=this.getPriority(b.payload$jscomp$20),S=this.scheduler.addJob(y,S),this.scheduledPayloads[b.i$jscomp$493]=Object.assign({},b.payload$jscomp$20,{job:y,
jobId:S})};
sU5.prototype.flushJobs=function(){var b=this,h=Array.from(this.scheduledPayloads.keys()).sort(function(S,F){return b.getPriority(b.scheduledPayloads[F])-b.getPriority(b.scheduledPayloads[S])});
h=_.L(h);for(var y=h.next();!y.done;y=h.next())y=this.scheduledPayloads[y.value],y.jobId===void 0||y.processed||(this.scheduler.cancelJob(y.jobId),this.scheduler.addJob(y.job,10))};
sU5.prototype.cancel=function(){for(var b=_.L(this.scheduledPayloads),h=b.next();!h.done;h=b.next())h=h.value,h.jobId===void 0||h.processed||this.scheduler.cancelJob(h.jobId),h.processed=!0;this.completedResolver.resolve()};
sU5.prototype.getPriority=function(b){var h;return(h=b.priority)!=null?h:this.JSC$11073_defaultPriority};var Sy=function(b){this.state=b;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};y8&&s_U(this.state)};
Sy.prototype.install=function(b){this.plugins.push(b);return this};
Sy.prototype.uninstall=function(){var b=this;_.x$.apply(0,arguments).forEach(function(h){h=b.plugins.indexOf(h);h>-1&&b.plugins.splice(h,1)})};
Sy.prototype.transition=function(b,h){var y=this;y8&&YQN(this.state);var S=this.transitions.find(function(a){return Array.isArray(a.from)?a.from.find(function(P){return P===y.state&&a.to===b}):a.from===y.state&&a.to===b});
if(S){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);Ynw(this,b,h);this.state=b;y8&&s_U(this.state);S=S.action.bind(this);var F=this.plugins.filter(function(a){return a[b]}).map(function(a){return a[b]});
S(TRM(this,F),h)}else throw Error("kd`"+this.state+"`"+b);};
var TRM=function(b,h){var y=h.filter(function(F){return GDa(b,F)===10}),S=h.filter(function(F){return GDa(b,F)!==10});
return b.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var F=_.x$.apply(0,arguments);return _.Z(function(a){if(a.nextAddress==1)return a.yield(b.runImmediateJobsAsync.apply(b,[y].concat(_.f$(F))),2);b.setJobSetWithScheduledJobs.apply(b,[S].concat(_.f$(F)));_.g3(a)})}:function(){var F=_.x$.apply(0,arguments);
b.runImmediateJobsSync.apply(b,[y].concat(_.f$(F)));b.setJobSetWithScheduledJobs.apply(b,[S].concat(_.f$(F)))}};
Sy.prototype.runImmediateJobsSync=function(b){var h=_.x$.apply(1,arguments);_.J_();for(var y=_.L(b),S=y.next(),F={};!S.done;F={lifecycle$jscomp$2:void 0},S=y.next())F.lifecycle$jscomp$2=S.value,dS(function(a){return function(){kDP(a.lifecycle$jscomp$2.name);GK4(function(){return a.lifecycle$jscomp$2.callback.apply(a.lifecycle$jscomp$2,_.f$(h))});
F3(a.lifecycle$jscomp$2.name)}}(F))};
Sy.prototype.runImmediateJobsAsync=function(b){var h=_.x$.apply(1,arguments),y,S,F,a;return _.Z(function(P){P.nextAddress==1&&(_.J_(),y=_.L(b),S=y.next(),F={});if(P.nextAddress!=3){if(S.done)return P.jumpTo(0);F.lifecycle$jscomp$3=S.value;F.asyncJobCompletion=void 0;a=function(K){return function(){kDP(K.lifecycle$jscomp$3.name);var n=GK4(function(){return K.lifecycle$jscomp$3.callback.apply(K.lifecycle$jscomp$3,_.f$(h))});
K5e(n)?K.asyncJobCompletion=_.r("web_lifecycle_error_handling_killswitch")?n.then(function(){F3(K.lifecycle$jscomp$3.name)}):n.then(function(){F3(K.lifecycle$jscomp$3.name)},function(X){TU5(X);
F3(K.lifecycle$jscomp$3.name)}):F3(K.lifecycle$jscomp$3.name)}}(F);
dS(a);return F.asyncJobCompletion?P.yield(F.asyncJobCompletion,3):P.jumpTo(3)}F={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};S=y.next();return P.jumpTo(2)})};
Sy.prototype.setJobSetWithScheduledJobs=function(b){var h=_.x$.apply(1,arguments),y=this,S=b.map(function(F){return{job:function(){kDP(F.name);GK4(function(){return F.callback.apply(F,_.f$(h))});
F3(F.name)},
priority:GDa(y,F)}});
S.length&&(this.jobSet=new sU5(S))};
var GDa=function(b,h){var y,S;return(S=(y=b.overridePriority)!=null?y:h.priority)!=null?S:0},kDP=function(b){y8&&b&&s_U(b)},F3=function(b){y8&&b&&YQN(b)},Ynw=function(b,h,y){g8e&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+b.constructor.name+"] '"+b.state+"' to '"+h+"'"),console.log("with message: ",y),console.groupEnd())};
_.tm.Object.defineProperties(Sy.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var V75=function(b){Sy.call(this,b===void 0?"none":b);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(){}}]},E8a;
_.z(V75,Sy);V75.prototype.runApplicationNavigationBegin=function(b,h){var y=this;this.navigationTimer=_.VT(_.xP,function(){y.currentState==="application_navigating"&&y.transition("none")},5E3);
b(h==null?void 0:h.event)};
V75.prototype.runApplicationNavigationEnd=function(b,h){this.navigationTimer&&(_.xP.cancelJob(this.navigationTimer),this.navigationTimer=null);b(h==null?void 0:h.event)};
_.gEj=function(){E8a||(E8a=new V75);return E8a};var Cp8=[];_.HL("yt.logging.transport.getScrapedGelPayloads",function(){return Cp8});var Ih=function(){var b=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return b.totalEntries}}};
Ih.prototype.storePayload=function(b,h){b=kKf(b);this.store[b]?this.store[b].push(h):(this.memoizedKeySequences={},this.store[b]=[h]);this.totalEntries++;_.r("more_accurate_gel_parser")&&(h=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(h));return b};
Ih.prototype.smartExtractMatchingEntries=function(b){if(!b.keys.length)return[];for(var h=iio(this,b.keys.splice(0,1)[0]),y=[],S=0;S<h.length;S++)this.store[h[S]]&&b.sizeLimit&&(this.store[h[S]].length<=b.sizeLimit?(y.push.apply(y,_.f$(this.store[h[S]])),delete this.store[h[S]]):y.push.apply(y,_.f$(this.store[h[S]].splice(0,b.sizeLimit))));this.totalEntries-=y.length;(b==null?0:b.sizeLimit)&&y.length<(b==null?void 0:b.sizeLimit)&&(b.sizeLimit-=y.length,y.push.apply(y,_.f$(this.smartExtractMatchingEntries(b))));
return y};
Ih.prototype.extractMatchingEntries=function(b){b=iio(this,b);for(var h=[],y=0;y<b.length;y++)this.store[b[y]]&&(h.push.apply(h,_.f$(this.store[b[y]])),delete this.store[b[y]]);this.totalEntries-=h.length;return h};
Ih.prototype.getSequenceCount=function(b){b=iio(this,b);for(var h=0,y=0;y<b.length;y++){var S=void 0;h+=((S=this.store[b[y]])==null?void 0:S.length)||0}return h};
var iio=function(b,h){var y=kKf(h);if(b.memoizedKeySequences[y])return b.memoizedKeySequences[y];var S=Object.keys(b.store)||[];if(S.length<=1&&kKf(h)===S[0])return S;for(var F=[],a=0;a<S.length;a++){var P=S[a].split("/");if(fUa(h.auth,P[0])){var K=h.isJspb;fUa(K===void 0?"undefined":K?"true":"false",P[1])&&fUa(h.cttAuthInfo,P[2])&&(K=h.tier,K=K===void 0?"undefined":JSON.stringify(K),fUa(K,P[3])&&F.push(S[a]))}}return b.memoizedKeySequences[y]=F},fUa=function(b,h){return b===void 0||b==="undefined"?
!0:b===h};
Ih.prototype.getSequenceCount=Ih.prototype.getSequenceCount;Ih.prototype.extractMatchingEntries=Ih.prototype.extractMatchingEntries;Ih.prototype.smartExtractMatchingEntries=Ih.prototype.smartExtractMatchingEntries;Ih.prototype.storePayload=Ih.prototype.storePayload;var H9q,nEj,uv8,Ad,wiW,Vsq,kAI,Msq,oEY,y4U,X2I,J4I,Ppr;H9q=_.tj("initial_gel_batch_timeout",2E3);nEj=_.tj("gel_queue_timeout_max_ms",6E4);uv8=_.tj("gel_min_batch_size",5);Ad=void 0;wiW=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
Vsq=new wiW;kAI=new wiW;Msq=new wiW;oEY=new wiW;X2I=!0;J4I=1;_.p2N=new Map;Ppr=_.S5.ytLoggingTransportTokensToCttTargetIds_||{};_.HL("ytLoggingTransportTokensToCttTargetIds_",Ppr);var Lff=_.S5.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.HL("ytLoggingTransportTokensToJspbCttTargetIds_",Lff);var WX={};var fK=_.S5.ytLoggingGelSequenceIdObj_||{};_.HL("ytLoggingGelSequenceIdObj_",fK);var fvY=[];var Flf=new Set,QFj=0,j7N=0,dnM=0,vEn=[],mGF=[],$nk=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var taq=function(){};
taq.prototype.getUrl=function(b,h){h=h===void 0?!1:h;return b.hasOwnProperty("shareEndpoint")?null:_.Zh4(b,null,h)};
var KhU=function(b,h,y){b={endpoint:h,actions:[]};y=(y.path?y.path[0]:y.target).icon||"";h=y.indexOf(":");h>0&&(y=y.substr(h+1));y&&b.actions.push(y);return b};var uQn=/Command$/,Hhj=/Endpoint$/,Maj=new Map;var lUG,qn8;lUG=1;_.$J=function(){this.actionRoutingMap=new Map};
_.$J.prototype.triggerAction=function(b){var h=new oLq(b,!1,_.x$.apply(1,arguments));this.handleAction(h);return h.returnValue};
_.$J.prototype.triggerOptionalAction=function(b){var h=new oLq(b,!0,_.x$.apply(1,arguments));this.handleAction(h);return h.returnValue};
_.aO=function(b,h,y){h.forEach(function(S){var F=XCM(S);F&&b.triggerOptionalAction(F,S,y,void 0)})};
_.$J.prototype.handleAction=function(b){var h=this.actionRoutingMap.get(b.actionName);h&&qn8(b,h);b.optionalAction||b.returnValue.length!==0||(b=new _.Gn("Unhandled action",b.actionName),_.yb(b))};
qn8=function(b,h){h.forEach(function(y){var S=null;y?S=y.apply(null,b.args):(y=Error("ld"),y.params=b.actionName,_.v4(y));b.returnValue.push(S)})};
_.LP=function(b,h,y){y||(y=lUG++);for(var S=_.L(Object.keys(h)),F=S.next();!F.done;F=S.next()){F=F.value;var a=b.actionRoutingMap.get(F);a||(a=new Map,b.actionRoutingMap.set(F,a));b.registerActionHandler(y,F,h[F],a)}return y};
_.$J.prototype.registerActionHandler=function(b,h,y,S){S.set(b,_.bN(y))};
_.Po=function(b,h,y){h=_.L(Object.keys(h));for(var S=h.next();!S.done;S=h.next())(S=b.actionRoutingMap.get(S.value))&&S.delete(y)};
_.$Y(_.$J);var RTn=function(b,h){var y=_.$J.getInstance();_.wg(function(){var S={},F=_.LP(y,(S[b]=h,S));_.m2(function(){var a={};_.Po(y,(a[b]="",a),F)})})};var Hsn=Symbol("nd");WdY=LpN;var Vaf=new Set(["For","If","Match","Watch"]),xmW={},QUb=(xmW[F5.default]=function(){return rm8},xmW.style=function(){return rm8},xmW),mme;
for(mme in QUb)tr.attributes[mme]=QUb[mme](tr.attributes[mme]);var tR=new _.ca("VISIBILITY_OBSERVER");var vrM={retrieve:function(b){return this.id.\u0275prov.token===b.\u0275prov.token?this.contextValue:this?_.u_(this,this.id):DOy}};var TMq=function(b,h,y){if(b!==Wl4)return!1;b=CMf(document.createElement("div"),function(){var S=NU(!1);try{y[0]()}finally{NU(S)}});
b=Array.from(b.childNodes);b.length===1&&(b=b[0]);return b};WdY=LpN;var v8b=typeof AbortController==="function";if(typeof DOMException==="function")try{new DOMException}catch(b){}var bR7=typeof WeakRef==="function";var hg5=function(b){this.value=b};
hg5.prototype.deref=function(){return this.value};
var yPW=bR7?WeakRef:hg5,S07=function(b){this.newKeyHandler=b;this.map=new WeakMap};
S07.prototype.add=function(b,h){this.map.has(b)||(this.newKeyHandler(b),this.map.set(b,[]));this.map.get(b).push(new yPW(h))};
S07.prototype.get=function(b){var h=this;return function S(){var F,a,P,K,n,X,u,O,N,t,R;return _.nW(S,function(I){switch(I.nextAddress){case 1:_.p$(I,2);F=h.map.get(b);if(!F)return I.return();a=0;P=_.L(F);K=P.next();case 4:if(K.done){I.jumpTo(6);break}n=K.value;X=n.deref();if(!X){I.jumpTo(5);break}a++;u=_.Xo;return I.yield(X,8);case 8:u(I.yieldResult);case 5:K=P.next();I.jumpTo(4);break;case 6:if(2*a<F.length){O=0;N=_.L(F);for(t=N.next();!t.done;t=N.next())R=t.value,R.deref()&&(F[O++]=R);F.length=
O}case 2:_.U3(I),_.Jk(I,0)}})}()};var FiW=document.createDocumentFragment?function(){return document.createDocumentFragment()}:function(){return document.createElement("div")},dDk=new S07(function(b){b.addEventListener("abort",$Dr,{once:!0})}),aAj=new WeakMap,aTW=function(b){b=b===void 0?d$:b;
this.signal=new b};
aTW.prototype.abort=function(b){this.signal.aborted||(this.signal.aborted=!0,this.signal.reason=b,b=new Event("abort"),this.signal.dispatchEvent(b))};
var d$=function(){this.target=FiW();this.aborted=!1;this.onabort=null};
d$.prototype.throwIfAborted=function(){Fof.call(this)};
d$.prototype.addEventListener=function(b,h,y){this.target.addEventListener(b,h,y)};
d$.prototype.removeEventListener=function(b,h,y){this.target.removeEventListener(b,h,y)};
d$.prototype.dispatchEvent=function(b){if(this.onabort&&b.type==="abort")this.onabort(b);return this.target.dispatchEvent(b)};
d$.abort=SoM;d$.timeout=LoM;d$.any=jrU;var yFF=v8b?AbortController:aTW,jy=v8b?AbortSignal:d$;typeof jy.abort!=="function"&&(jy.abort=SoM);typeof jy.prototype.throwIfAborted!=="function"&&(jy.prototype.throwIfAborted=Fof);typeof jy.any!=="function"&&(jy.any=jrU);typeof jy.timeout!=="function"&&(jy.timeout=LoM);var co=null,Ko5=new Map;var dCN=function(b){b=b.clone();cRa(b);iD(b,"dg",null);iD(b,"d","0");OPW(b,null);N_a(b,null);return b},j3G=!0,$C8=function(b,h,y){var S=y===void 0?{}:y;
y=S.cssRowKey===void 0?void 0:S.cssRowKey;var F=S.combinedSignature===void 0?void 0:S.combinedSignature;var a=S.extraEdges===void 0?void 0:S.extraEdges;S=S.callback===void 0?void 0:S.callback;iD(b,"m",h.join(","));a&&rR8(b,a);y&&(iD(b,"ck",y),F?iD(b,"rs",F):j3G&&(j3G=!1));if(S){if(S!=null&&!DSP.test(S))throw Error("Xa`"+S);iD(b,"cb",S)}b=b.toString();_.aq(b,"/")&&(b=vb8(document.location.href)+b);return _.gf(b)};var PkN=function(b){return Lie(b).then(function(h){return JSON.parse(h.responseText)})},Lie=function(b){var h={},y=h.xmlHttpFactory?h.xmlHttpFactory.createInstance():YWN.createInstance();
return(new _.Uu(function(S,F){var a;try{y.open("GET",b,!0)}catch(n){F(new $e("Error opening XHR: "+n.message,b,y))}y.onreadystatechange=function(){if(y.readyState==4){_.S5.clearTimeout(a);var n;!(n=se8(y.status))&&(n=y.status===0)&&(n=mza(b),n=!(n=="http"||n=="https"||n==""));n?S(y):F(new KiW(y.status,b,y))}};
y.onerror=function(){F(new $e("Network error",b,y))};
if(h.headers)for(var P in h.headers){var K=h.headers[P];K!=null&&y.setRequestHeader(P,K)}h.withCredentials&&(y.withCredentials=h.withCredentials);h.responseType&&(y.responseType=h.responseType);h.mimeType&&y.overrideMimeType(h.mimeType);h.timeoutMs>0&&(a=_.S5.setTimeout(function(){y.onreadystatechange=function(){};
y.abort();F(new ZRo(b,y))},h.timeoutMs));
try{y.send(null)}catch(n){y.onreadystatechange=function(){},_.S5.clearTimeout(a),F(new $e("Error sending XHR: "+n.message,b,y))}})).thenCatch(function(S){S instanceof _.GR&&y.abort();
throw S;})},$e=function(b,h,y){_.bf.call(this,b+", url="+h);
this.url=h;this.xhr=y};
_.Pv($e,_.bf);$e.prototype.name="XhrError";var KiW=function(b,h,y){$e.call(this,"Request Failed, status="+b,h,y);this.status=b};
_.Pv(KiW,$e);KiW.prototype.name="XhrHttpError";var ZRo=function(b,h){$e.call(this,"Request timed out",b,h)};
_.Pv(ZRo,$e);ZRo.prototype.name="XhrTimeoutError";jk=jk||{};var Lp=function(){_.ED.call(this)};
_.Pv(Lp,_.ED);Lp.prototype.initialize=function(){};var ogW=function(b,h){this.fn_=b;this.handler_=h};
ogW.prototype.execute=function(b){this.fn_&&(this.fn_.call(this.handler_||null,b),this.fn_=this.handler_=null)};
ogW.prototype.abort=function(){this.handler_=this.fn_=null};var PH=function(b,h){_.ED.call(this);this.deps_=b;this.JSC$11228_id_=h;this.onloadCallbacks_=[];this.onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.Pv(PH,_.ED);PH.prototype.moduleConstructor_=Lp;PH.prototype.module_=null;PH.prototype.getId=function(){return this.JSC$11228_id_};
PH.prototype.registerCallback=function(b,h){return Kp(this.onloadCallbacks_,b,h)};
var MIo=function(b,h){Kp(b.onErrorCallbacks_,h)},Kp=function(b,h,y){h=new ogW(h,y);
b.push(h);return h};
PH.prototype.isLoaded=function(){return!!this.module_};
PH.prototype.onLoad=function(b){var h=new this.moduleConstructor_;h.initialize(b());this.module_=h;h=(h=nga(this.earlyOnloadCallbacks_,b()))||nga(this.onloadCallbacks_,b());h||(this.onErrorCallbacks_.length=0);return h};
PH.prototype.onError=function(b){(b=nga(this.onErrorCallbacks_,b))&&Fn(Error("sd`"+b));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var nga=function(b,h){for(var y=[],S=0;S<b.length;S++)try{b[S].execute(h)}catch(F){Fn(F),y.push(F)}b.length=0;return y.length?y:null};
PH.prototype.disposeInternal=function(){PH.superClass_.disposeInternal.call(this);_.nq(this.module_)};var XdW,rPa,NqN,tIM,udb,ORe,ITM,zgW,DCa;
_.zU=function(b,h,y,S,F){S=S===void 0?!1:S;F=F===void 0?!1:F;var a=a===void 0?!0:a;this.scsReferenceUrl_=qvq(_.s_(b).toString(),a);this.cssRowKey_=h;this.combinedSignature_=y;this.useNegativeLoading_=S;this.requestedModuleMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(b=Ew(this.scsReferenceUrl_,"excm"))?b.split(","):[];this.shouldScanForCss_=F;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=document.head||document.documentElement;
this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;xOY();_.Z$(this,tHa(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
XdW=function(b,h){if(h.href||h.getAttribute("data-href"))if(h=h.href||h.getAttribute("data-href"),izM(h)&&!qvq(h).urlPrefix_.endsWith("_/js/")){h=tHa(qvq(h));h=_.L(h);for(var y=h.next();!y.done;y=h.next())y=y.value,b.loadedCssModuleList_.includes(y)||b.loadedCssModuleList_.push(y)}};
_.zU.prototype.JSC$11233_loadModules=function(b,h,y){var S=y===void 0?{}:y;h=S.extraEdges;y=S.onError;var F=S.onSuccess;S=S.forceReload;if(!b)throw Error("td");if(this.shouldScanForCss_){for(var a=_.L(document.getElementsByTagName("style")),P=a.next();!P.done;P=a.next())XdW(this,P.value);a=_.L(document.getElementsByTagName("link"));for(P=a.next();!P.done;P=a.next())XdW(this,P.value)}HRG(this,udb(this,b),h,y,F,S)};
var HRG=function(b,h,y,S,F,a){S=S===void 0?function(){}:S;
F=F===void 0?function(){}:F;
a=a===void 0?!1:a;ORe(b,h,function(P,K,n){n=n===void 0?K:n;b.enableFallbackFetch&&a?b.loadWithFetch(P,K,S,F,n):b.load(P,K,S,F,n,y)},y)||S(-1)};
_.zU.prototype.loadWithFetch=function(){_.Z(function(){throw Error("ud");})};
_.zU.prototype.maybeSetAdditionalFields=function(){};
rPa=function(b,h,y){if(b.useNegativeLoading_){var S=b.scsReferenceUrl_;b={cssRowKey:b.cssRowKey_,combinedSignature:b.combinedSignature_,extraEdges:y,requestedModuleIds:NqN(b),requestedCssModuleIds:tIM(b)};var F=b===void 0?{}:b;b=F.requestedModuleIds===void 0?[]:F.requestedModuleIds;y=F.requestedCssModuleIds===void 0?[]:F.requestedCssModuleIds;var a=F.cssRowKey===void 0?void 0:F.cssRowKey;var P=F.combinedSignature===void 0?void 0:F.combinedSignature;var K=F.extraEdges===void 0?void 0:F.extraEdges;
F=F.callback===void 0?void 0:F.callback;S=dCN(S);iD(S,"d","1");OPW(S,b);N_a(S,y);h=$C8(S,h,{cssRowKey:a,combinedSignature:P,extraEdges:K,callback:F})}else S=b.scsReferenceUrl_,b={cssRowKey:b.cssRowKey_,combinedSignature:b.combinedSignature_,requestedModuleIds:NqN(b),requestedCssModuleIds:tIM(b)},K=b===void 0?{}:b,b=K.requestedCssModuleIds===void 0?[]:K.requestedCssModuleIds,y=K.cssRowKey===void 0?void 0:K.cssRowKey,a=K.combinedSignature===void 0?void 0:K.combinedSignature,P=K.extraEdges===void 0?
void 0:K.extraEdges,K=K.callback===void 0?void 0:K.callback,S=dCN(S),N_a(S,b),h=$C8(S,h,{cssRowKey:y,combinedSignature:a,extraEdges:P,callback:K});return h};
_.Z$=function(b,h){for(var y=!1,S=[],F=0;F<h.length;++F){var a=h[F];b.requestedModuleMap_[a]||(b.requestedModuleMap_[a]=!0,b.requestedModuleList_.push(a),y=!0,S.push(a))}y&&(b.requestedModuleListSorted_=!1)};
_.oO=function(b,h){for(var y=[],S=0;S<h.length;++S){var F=h[S];b.requestedModuleMap_[F]&&(delete b.requestedModuleMap_[F],_.Gk(b.requestedModuleList_,F),y.push(F))}};
_.zU.prototype.load=function(b,h,y,S,F){F=F===void 0?h:F;_.s_(b);var a=this.useCors_,P=this.corsMode_,K=this.fetchPriority,n=_.gB("SCRIPT");_.ZF(n,b);a&&(n.crossOrigin=P);n.async=!1;K&&n.setAttribute("fetchpriority",K);_.Z$(this,h);_.cPa(this,b,n,h,y,S,F)};
_.cPa=function(b,h,y,S,F,a,P){P=P===void 0?S:P;b.lastScript_=y;b.insertPos.insertBefore(y,b.insertPos.firstChild);_.Rge(y,S,function(){y.parentElement.removeChild(y);b.lastScript_==y&&(b.lastScript_=null);a()},function(K){y.parentElement.removeChild(y);
b.lastScript_==y&&(b.lastScript_=null);_.oO(b,K);b.pendingModuleGraphUpdate_?b.pendingModuleGraphUpdate_.then(function(){F(-1,h)}):F(-1,h)},P)};
_.Rge=function(b,h,y,S,F){F=F===void 0?h:F;var a=h.length,P=function(){a=0;b.onload=null;b.onerror=null;K=function(){}},K=function(){P();
var X=F.filter(function(u){return!xT().getModuleInfo(u).isLoaded()});
X.length!==0?S(X,"Response was successful but was missing module(s) "+X+"."):y()},n=function(){a--;
a==0&&K()};
h.forEach(function(X){X=xT().getModuleInfo(X);X.isLoaded()?n():(Kp(X.earlyOnloadCallbacks_,n),MIo(X,n))});
b.onload=function(){return K()};
b.onerror=function(){P();S(h)}};
NqN=function(b){b.requestedModuleListSorted_||(b.requestedModuleListSorted_=!0,b.requestedModuleList_.sort());return b.requestedModuleList_};
tIM=function(b){b=b.loadedCssModuleList_;b.sort();return b};
udb=function(b,h){return h.filter(function(y){return!b.requestedModuleMap_[y]})};
ORe=function(b,h,y,S){if(b.pendingModuleGraphUpdate_)return b.pendingModuleGraphUpdate_.then(function(){ORe(b,h,y,S)}),!0;
if(!b.useNegativeLoading_){var F=[],a=Object.assign({},b.requestedModuleMap_);zgW(b,h,function(u){F.push(u.getId())},S,function(u){return!u.isLoaded()},a);
h=F}for(a=0;a<h.length;){for(var P=h.length-a,K=a==0?h:h.slice(a,h.length),n=rPa(b,K,S),X=_.s_(n).toString();X.length>b.urlMaxLength;)if(P>1)P-=Math.ceil((X.length-b.urlMaxLength)/6),P=Math.max(P,1),K=h.slice(a,a+P),n=rPa(b,K,S),X=_.s_(n).toString();else return b.useNegativeLoading_?(b.useNegativeLoading_=!1,b.pendingModuleGraphUpdate_=DCa(b).then(function(u){ITM(b,u,S)}),ORe(b,h.slice(a),y,S)):!1;
a+=P;b.useNegativeLoading_?y(n,K):y(n,K,a===h.length?h:[])}return!0};
ITM=function(b,h,y){xT().setAllModuleInfoString((h||{}).moduleGraph);zgW(b,NqN(b),function(S){_.Z$(b,[S.getId()])},y);
b.pendingModuleGraphUpdate_=null};
zgW=function(b,h,y,S,F,a){a=a===void 0?{}:a;var P=xT();h=_.L(h);for(var K=h.next();!K.done;K=h.next()){K=K.value;var n=P.getModuleInfo(K);if(!(a[K]||F&&!F(n))){a[K]=!0;var X=n.deps_||[];if(S){var u=[];S[K]&&(u=Object.keys(S[K]));X=X.concat(u)}zgW(b,X,y,S,F,a);y(n)}}};
DCa=function(b){b=b.scsReferenceUrl_.clone();cRa(b);iD(b,"dg",null);iD(b,"md","1");return PkN(b.toString())};var oGj=new Uint8Array(123);var BqG=[];var Wib=function(){this.JSC$10237_loader_=null};
_.d=Wib.prototype;_.d.setBatchModeEnabled=function(){};
_.d.setAllModuleInfoString=function(){};
_.d.addExtraEdge=function(){throw Error("vd");};
_.d.removeExtraEdge=function(){throw Error("wd");};
_.d.getModuleContext=function(){return null};
_.d.isActive=function(){return!1};
_.d.isUserActive=function(){return!1};
_.d.registerInitializationCallback=function(){};
_.d.registerCallback=function(){};var ME=function(b,h,y,S,F){var a=Error.call(this);this.message=a.message;"stack"in a&&(this.stack=a.stack);this.name="ModuleLoadFailure";this.type=b;this.status=h;this.requestedModuleIds=y;this.url=S;this.cause=F;this.message=this.toString()};
_.z(ME,Error);ME.prototype.toString=function(){return APW(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var APW=function(b){switch(b.type){case ME.Type.UNAUTHORIZED:return"Unauthorized";case ME.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case ME.Type.TIMEOUT:return"Timed out";case ME.Type.OLD_CODE_GONE:return"Out of date module id";case ME.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+b.type}};
jk.ModuleLoadFailure=ME;jk.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var np=function(){this.moduleIds_=this.JSC$10237_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$11246_extraEdges_={};this.JSC$11246_callbackMap_={};this.JSC$11246_currentlyLoadingModule_=this.baseModuleInfo_=new PH([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new nG;this.isDisposed_=this.userLastActive_=this.lastActive_=this.batchModeEnabled_=
!1};
_.Pv(np,Wib);var UCM=function(b,h){_.bf.call(this,"Error loading "+b+": "+h)};
_.Pv(UCM,_.bf);np.prototype.setBatchModeEnabled=function(b){this.batchModeEnabled_=b};
np.prototype.setAllModuleInfoString=function(b,h){if(!(this instanceof np))this.setAllModuleInfoString(b,h);else if(typeof b==="string"){if(b.startsWith("d$")){b=b.substring(2);for(var y=[],S=0,F=b.indexOf("/"),a=0,P=!1,K=0;;){var n=P?b.substring(a):b.substring(a,F);if(n.length===0)S++,a="sy"+S.toString(36),n=[];else{var X=n.indexOf(":");if(X<0)a=n,n=[];else if(X===n.length-1)a=n.substring(0,X),n=Array(y[K-1]);else{a=n.substring(0,X);n=n.substring(X+1).split(",");X=K;for(var u=0;u<n.length;u++)X-=
n[u].length===0?1:Number(n[u]),n[u]=y[X]}X=0;if(a.length===0)X=1;else if(a.charAt(0)==="+"||a.charAt(0)==="-")X=Number(a);X!==0&&(S+=X,a="sy"+S.toString(36))}y.push(a);pd7(this,a,n);if(P)break;a=F+1;F=b.indexOf("/",a);F===-1&&(P=!0);K++}this.moduleIds_=y}else if(b.startsWith("p$"))JPw(this,b);else{b=b.split("/");y=[];for(S=0;S<b.length;S++){K=b[S].split(":");F=K[0];P=[];if(K[1])for(P=K[1].split(","),K=0;K<P.length;K++)P[K]=y[parseInt(P[K],36)];y.push(F);pd7(this,F,P)}this.moduleIds_=y}h&&h.length?
(_.wI(this.loadingModuleIds_,h),this.lastInitialModuleId_=_.Uj(h)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$11246_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$11246_currentlyLoadingModule_=null,(h=this.baseModuleInfo_.onLoad((0,_.i5)(this.getModuleContext,this)))&&h.length&&eg8(this,new jk.ModuleLoadFailure(jk.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,h[0])),X3(this))}};
var JPw=function(b,h){var y=h.substring(2);for(h=0;h<64;h++)oGj["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(h)]=h;var S={buf:y,pos:0};RL(S);var F=RL(S),a=RL(S)+1;h=Array(F);var P=Array(F),K=Array(F);a=Array(a);var n=0,X=0,u=S.pos,O=S.buf.indexOf("|",S.pos);S.pos=O+1;for(O=0;O<F;O++){var N=RL(S),t=N&2,R=N&1;N>>>=2;R?(n+=N>>>1^-(N&1),N="sy"+n.toString(36)):(R=u,u+=N,N=y.substring(R,u));h[O]=N;t&&(a[X++]=N)}a[X]="";S.pos++;X=F&-2;y=F&1;for(n=0;n<X;n+=2)u=MDN(S),K[n]=
u&7,K[n+1]=u>>>3&7;y&&(y=MDN(S),K[X]=y&7);S.pos++;for(X=0;X<F;X++)K[X]===7&&(K[X]=RL(S));S.pos++;for(y=X=0;y<F;y++){n=K[y];u=n===0?BqG:Array(n);P[y]=u;O=X;for(t=0;t<n;t++)O-=RL(S),u[t]=a[O];a[X]===h[y]&&X++}for(S=0;S<h.length;S++)pd7(b,h[S],P[S]);b.moduleIds_=h};
_.d=np.prototype;_.d.getModuleInfo=function(b){return this.moduleInfoMap[b]};
_.d.addExtraEdge=function(b,h){var y=this.getModuleInfo(b);y&&y.isLoaded()?this.load(h):(this.JSC$11246_extraEdges_[b]||(this.JSC$11246_extraEdges_[b]={}),this.JSC$11246_extraEdges_[b][h]=!0)};
_.d.removeExtraEdge=function(b,h){if(this.JSC$11246_extraEdges_[b]){delete this.JSC$11246_extraEdges_[b][h];for(var y in this.JSC$11246_extraEdges_[b])return;delete this.JSC$11246_extraEdges_[b]}};
_.d.isActive=function(){return this.loadingModuleIds_.length>0};
_.d.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var X3=function(b){var h=b.lastActive_,y=b.isActive();y!=h&&(b.executeCallbacks_(y?"active":"idle"),b.lastActive_=y);h=b.isUserActive();h!=b.userLastActive_&&(b.executeCallbacks_(h?"userActive":"userIdle"),b.userLastActive_=h)},pd7=function(b,h,y){b.moduleInfoMap[h]?(b=b.moduleInfoMap[h].deps_,b!=y&&b.splice.apply(b,[0,
b.length].concat(_.f$(y)))):b.moduleInfoMap[h]=new PH(y,h)},gg8=function(b,h,y){var S=[];
e8j(h,S);h=[];for(var F={},a=0;a<S.length;a++){var P=S[a],K=b.getModuleInfo(P);if(!K)throw Error("xd`"+P);var n=new nG;F[P]=n;K.isLoaded()?n.callback(null):(Cko(b,P,K,!!y,n),b.isModuleLoading(P)||h.push(P))}h.length>0&&(b.loadingModuleIds_.length===0?b.loadModules_(h):(b.requestedModuleIdsQueue_.push(h),X3(b)));return F},Cko=function(b,h,y,S,F){y.registerCallback(F.callback,F);
MIo(y,function(a){F.errback(new UCM(h,a))});
b.isModuleLoading(h)?S&&(s3M(b,h),X3(b)):S&&s3M(b,h)};
np.prototype.loadModules_=function(b,h,y){var S=this;h=h===void 0?0:h;var F=Y0e(this,b);this.loadingModuleIds_=F;this.requestedLoadingModuleIds_=this.batchModeEnabled_?b:_.Ej(F);X3(this);if(F.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,F);b=this.JSC$10237_loader_;if(!b)throw Error("yd");if(Object.keys(this.JSC$11246_extraEdges_).length>0&&!b.supportsExtraEdges)throw Error("zd");y=(0,_.i5)(b.JSC$11233_loadModules,b,_.Ej(F),this.moduleInfoMap,{extraEdges:this.JSC$11246_extraEdges_,
forceReload:!!y,onError:function(a,P,K){var n=S.requestedLoadingModuleIds_;a=a!=null?a:void 0;var X=h;K=K===void 0?!1:K;K=(K===void 0?0:K)?0:(X===void 0?0:X)+1;X=_.Ej(F);S.requestedLoadingModuleIds_=n;F.forEach(_.X8(_.Gk,S.requestedModuleIds_),S);a==401?(eg8(S,new jk.ModuleLoadFailure(jk.ModuleLoadFailure.Type.UNAUTHORIZED,a)),S.requestedModuleIdsQueue_.length=0):a==410?(Tqb(S,new jk.ModuleLoadFailure(jk.ModuleLoadFailure.Type.OLD_CODE_GONE,a)),GMM(S)):K>=3?(Tqb(S,new jk.ModuleLoadFailure(jk.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
a,X,P)),GMM(S)):S.loadModules_(S.requestedLoadingModuleIds_,K,a==8001||!1)},
onTimeout:(0,_.i5)(this.handleLoadTimeout_,this)});(b=Math.pow(h,2)*5E3)?_.S5.setTimeout(y,b):y()}};
var Y0e=function(b,h){h=h.filter(function(F){return b.moduleInfoMap[F].isLoaded()?(_.S5.setTimeout(function(){return Error("Ad`"+F)},0),!1):!0});
for(var y=[],S=0;S<h.length;S++)y=y.concat(kMw(b,h[S]));e8j(y);return!b.batchModeEnabled_&&y.length>1?(h=y.shift(),b.requestedModuleIdsQueue_=y.map(function(F){return[F]}).concat(b.requestedModuleIdsQueue_),[h]):y},kMw=function(b,h){var y=_.lR.createSet(b.requestedModuleIds_),S=[];
y[h]||S.push(h);h=[h];for(var F=0;F<h.length;F++)for(var a=b.getModuleInfo(h[F]).deps_,P=a.length-1;P>=0;P--){var K=a[P];b.getModuleInfo(K).isLoaded()||y[K]||(S.push(K),h.push(K))}S.reverse();e8j(S);return S};
np.prototype.JSC$11241_setLoaded=function(){if(this.JSC$11246_currentlyLoadingModule_){var b=this.JSC$11246_currentlyLoadingModule_.getId(),h=[];if(this.JSC$11246_extraEdges_[b]){for(var y=_.L(Object.keys(this.JSC$11246_extraEdges_[b])),S=y.next();!S.done;S=y.next()){S=S.value;var F=this.getModuleInfo(S);F&&!F.isLoaded()&&(this.removeExtraEdge(b,S),h.push(S))}this.loadMultiple(h)}this.isDisposed()||((h=this.moduleInfoMap[b].onLoad((0,_.i5)(this.getModuleContext,this)))&&h.length&&eg8(this,new jk.ModuleLoadFailure(jk.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,h[0])),_.Gk(this.userInitiatedLoadingModuleIds_,b),_.Gk(this.loadingModuleIds_,b),this.loadingModuleIds_.length===0&&GMM(this),this.lastInitialModuleId_&&b==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),X3(this),this.JSC$11246_currentlyLoadingModule_=null)}};
np.prototype.isModuleLoading=function(b){if(_.sj(this.loadingModuleIds_,b))return!0;for(var h=0;h<this.requestedModuleIdsQueue_.length;h++)if(_.sj(this.requestedModuleIdsQueue_[h],b))return!0;return!1};
np.prototype.load=function(b,h){return gg8(this,[b],h)[b]};
np.prototype.loadMultiple=function(b){return gg8(this,b)};
var s3M=function(b,h){_.sj(b.userInitiatedLoadingModuleIds_,h)||b.userInitiatedLoadingModuleIds_.push(h)};
np.prototype.beforeLoadModuleCode=function(b){var h=this;this.JSC$11246_currentlyLoadingModule_&&this.JSC$11246_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$11241_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[b]&&VIW(this,this.moduleInfoMap[b].deps_||[],function(y){y.module_=new Lp;_.Gk(h.loadingModuleIds_,y.getId())},function(y){return!y.isLoaded()});
this.JSC$11246_currentlyLoadingModule_=this.getModuleInfo(b)};
np.prototype.registerInitializationCallback=function(b){this.JSC$11246_currentlyLoadingModule_||(this.moduleInfoMap.synthetic_module_overhead=new PH([],"synthetic_module_overhead"),this.JSC$11246_currentlyLoadingModule_=this.moduleInfoMap.synthetic_module_overhead);Kp(this.JSC$11246_currentlyLoadingModule_.earlyOnloadCallbacks_,b)};
np.prototype.handleLoadTimeout_=function(){Tqb(this,new jk.ModuleLoadFailure(jk.ModuleLoadFailure.Type.TIMEOUT));GMM(this)};
var Tqb=function(b,h){b.requestedLoadingModuleIds_.length>1?b.requestedModuleIdsQueue_=b.requestedLoadingModuleIds_.map(function(y){return[y]}).concat(b.requestedModuleIdsQueue_):eg8(b,h)},eg8=function(b,h){var y=b.requestedLoadingModuleIds_;
b.loadingModuleIds_.length=0;for(var S=[],F=0;F<b.requestedModuleIdsQueue_.length;F++){var a=b.requestedModuleIdsQueue_[F].filter(function(n){var X=kMw(this,n);return Z7(y,function(u){return _.sj(X,u)})},b);
_.wI(S,a)}for(F=0;F<y.length;F++)_.AYf(S,y[F]);for(F=0;F<S.length;F++){for(a=0;a<b.requestedModuleIdsQueue_.length;a++)_.Gk(b.requestedModuleIdsQueue_[a],S[F]);_.Gk(b.userInitiatedLoadingModuleIds_,S[F])}if(F=b.JSC$11246_callbackMap_.error)for(a=0;a<F.length;a++)for(var P=F[a],K=0;K<S.length;K++)P("error",S[K],h);for(S=0;S<y.length;S++)if(b.moduleInfoMap[y[S]])b.moduleInfoMap[y[S]].onError(h);b.requestedLoadingModuleIds_.length=0;X3(b)},GMM=function(b){for(;b.requestedModuleIdsQueue_.length;){var h=
b.requestedModuleIdsQueue_.shift().filter(function(y){return!this.getModuleInfo(y).isLoaded()},b);
if(h.length>0){b.loadModules_(h);return}}X3(b)};
np.prototype.registerCallback=function(b,h){Array.isArray(b)||(b=[b]);for(var y=0;y<b.length;y++){var S=b[y],F=h,a=this.JSC$11246_callbackMap_;a[S]||(a[S]=[]);a[S].push(F)}};
np.prototype.executeCallbacks_=function(b){for(var h=this.JSC$11246_callbackMap_[b],y=0;h&&y<h.length;y++)h[y](b)};
var VIW=function(b,h,y,S,F){S=S===void 0?function(){return!0}:S;
F=F===void 0?{}:F;h=_.L(h);for(var a=h.next();!a.done;a=h.next()){a=a.value;var P=b.getModuleInfo(a);!F[a]&&S(P)&&(F[a]=!0,VIW(b,P.deps_||[],y,S,F),y(P))}};
np.prototype.dispose=function(){_.H0(_.lR.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$11246_callbackMap_={};this.isDisposed_=!0};
np.prototype.isDisposed=function(){return this.isDisposed_};
_.qK=function(){return new np};var Ega=[5E3,2E4],RC5=function(){this.JSC$10237_loader_=null;this.JSC$11254_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$11254_queue_=[];this.JSC$11254_extraEdges_=Object.create(null);this.JSC$11254_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.z(RC5,Wib);_.d=RC5.prototype;_.d.setAllModuleInfoString=function(){this.JSC$11254_currentlyLoadingModule_&&this.JSC$11254_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$11241_setLoaded()};
_.d.getModuleInfo=function(b){var h=this.JSC$11254_moduleInfoMap_[b];h||(h=new PH([],b),this.JSC$11254_moduleInfoMap_[b]=h);return h};
_.d.addExtraEdge=function(b,h){this.getModuleInfo(b).isLoaded()?this.load(h):(this.JSC$11254_extraEdges_[b]||(this.JSC$11254_extraEdges_[b]={}),this.JSC$11254_extraEdges_[b][h]=!0)};
_.d.removeExtraEdge=function(b,h){if(this.JSC$11254_extraEdges_[b]){delete this.JSC$11254_extraEdges_[b][h];for(var y in this.JSC$11254_extraEdges_[b])return;delete this.JSC$11254_extraEdges_[b]}};
_.d.isModuleLoading=function(b){return!!this.loadingModules_[b]};
_.d.load=function(b){iRb(this,[b]);return fTM(this,b)};
_.d.loadMultiple=function(b){var h=this,y=Object.create(null),S=[];b.forEach(function(F){y[F]||(y[F]=fTM(h,F),S.push(F))});
iRb(this,S);return y};
_.d.beforeLoadModuleCode=function(b){var h;((h=this.JSC$11254_currentlyLoadingModule_)==null?void 0:h.getId())==="synthetic_module_overhead"&&this.JSC$11241_setLoaded();var y,S;wd8(this,(S=(y=this.JSC$11254_moduleInfoMap_[b])==null?void 0:y.deps_)!=null?S:[],function(F){F.module_=new Lp},function(F){return!F.isLoaded()});
this.JSC$11254_currentlyLoadingModule_=this.getModuleInfo(b)};
_.d.JSC$11241_setLoaded=function(){if(this.JSC$11254_currentlyLoadingModule_){var b=this.JSC$11254_currentlyLoadingModule_.getId(),h=[];if(this.JSC$11254_extraEdges_[b]){for(var y=_.L(Object.keys(this.JSC$11254_extraEdges_[b])),S=y.next();!S.done;S=y.next())S=S.value,this.getModuleInfo(S).isLoaded()||(this.removeExtraEdge(b,S),h.push(S));this.loadMultiple(h)}this.JSC$11254_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$11254_currentlyLoadingModule_=null;(!this.isModuleLoading(b)&&/^sy[0-9a-z]{0,4}$/.test(b)||b==="synthetic_module_overhead")&&delete this.JSC$11254_moduleInfoMap_[b];this.unsetModulesAsLoading(b)}};
_.d.registerInitializationCallback=function(b){this.JSC$11254_currentlyLoadingModule_||(this.JSC$11254_moduleInfoMap_.synthetic_module_overhead=new PH([],"synthetic_module_overhead"),this.JSC$11254_currentlyLoadingModule_=this.JSC$11254_moduleInfoMap_.synthetic_module_overhead);Kp(this.JSC$11254_currentlyLoadingModule_.earlyOnloadCallbacks_,b)};
_.d.setModulesAsLoading=function(){var b=this;_.x$.apply(0,arguments).forEach(function(h){b.loadingModules_[h]=!0})};
_.d.unsetModulesAsLoading=function(){var b=this;_.x$.apply(0,arguments).forEach(function(h){delete b.loadingModules_[h]})};
var fTM=function(b,h){return new _.Uu(function(y,S){var F=b.getModuleInfo(h);F.isLoaded()?y(null):(F.registerCallback(function(){y(null)}),MIo(F,function(a){var P="Error loading "+h+": "+a;
a instanceof jk.ModuleLoadFailure&&a.url&&(P=P+", requested url: "+a.url.toString());S(Error(P))}))})},iRb=function(b,h){h=h.filter(function(y){return!b.isModuleLoading(y)&&!b.getModuleInfo(y).isLoaded()});
h.length>0&&(b.setModulesAsLoading.apply(b,_.f$(h)),b.JSC$11254_queue_.push(h),lTW(b))},lTW=function(b){for(var h={};b.activeLoads_<Infinity&&b.JSC$11254_queue_.length>0;h={finishLoad:void 0,
ids$jscomp$37:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})h.ids$jscomp$37=b.JSC$11254_queue_.shift().filter(function(y){return!b.getModuleInfo(y).isLoaded()}),h.ids$jscomp$37.length>0&&(b.activeLoads_++,h.finishLoad=function(y){return function(){b.activeLoads_--;
lTW(b);y.finishLoad=function(){}}}(h),_.wb(h.ids$jscomp$37.map(function(y){return fTM(b,y)})).then(function(y){return function(){(0,y.finishLoad)()}}(h)),h.attempt$jscomp$6=0,h.load$jscomp$1=function(y){return function(){if(Object.keys(b.JSC$11254_extraEdges_).length>0&&!b.JSC$10237_loader_.supportsExtraEdges)throw Error("zd");
b.JSC$10237_loader_.JSC$11233_loadModules(y.ids$jscomp$37,b.JSC$11254_moduleInfoMap_,{extraEdges:b.JSC$11254_extraEdges_,onError:function(S,F){var a=Ega[y.attempt$jscomp$6++];a!==void 0?setTimeout(function(){(0,y.load$jscomp$1)()},a):(b.unsetModulesAsLoading.apply(b,_.f$(y.ids$jscomp$37)),(0,y.finishLoad)(),y.ids$jscomp$37.forEach(function(P){P=b.getModuleInfo(P);
if(!P.isLoaded())P.onError(new jk.ModuleLoadFailure(jk.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,S,y.ids$jscomp$37,F))}))}})}}(h),(0,h.load$jscomp$1)())},wd8=function(b,h,y,S,F){S=S===void 0?function(){return!0}:S;
F=F===void 0?{}:F;h=_.L(h);for(var a=h.next();!a.done;a=h.next()){a=a.value;var P=b.getModuleInfo(a);!F[a]&&S(P)&&(F[a]=!0,wd8(b,P.deps_||[],y,S,F),y(P))}};var q0a=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var Hwk=Symbol("Cd");window.JSCompiler_renameProperty=function(b){return b};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var xCo=!q0a||HTMLElement.es5Shimmed||_.S5.Reflect===void 0||_.S5.customElements===void 0||_.S5.customElements.polyfillWrapFlushCallback||!1,Q38,IsI=function(){var b=HTMLElement;if(xCo)return b;if(Q38!==void 0)return Q38;var h=_.S5.Reflect,y=function(){return h.construct(b,[],this.constructor)};
y.prototype=b.prototype;y.prototype.constructor=y;y.es5Shimmed=!0;Object.setPrototypeOf(y,b);return Q38=y},mCP=!1;xCo||mCP||(mCP=!0,_.S5.HTMLElement=IsI());/*

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 rF4=/(url\()([^)]*)(\))/g,Nxf=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,tD8,IL;var dk=!window.ShadyDOM||!window.ShadyDOM.inUse,vg7=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),bZ7=!window.customElements.polyfillWrapFlushCallback,hqa;if(hqa=dk&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var yoM=new CSSStyleSheet;yoM.replaceSync("");var SBW=document.createElement("div");SBW.attachShadow({mode:"open"});SBW.shadowRoot.adoptedStyleSheets=[yoM];hqa=SBW.shadowRoot.adoptedStyleSheets[0]===yoM}catch(b){hqa=!1}
var Fca=hqa,amG=window.Polymer&&window.Polymer.rootPath||RlY(document.baseURI||window.location.href),kJ=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,pfq=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,Zf=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,dhb=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,a0=window.Polymer&&window.Polymer.legacyOptimizations||!1,K2=window.Polymer&&window.Polymer.legacyWarnings||!1,jc8=window.Polymer&&window.Polymer.syncInitialRender||
!1,EP=window.Polymer&&window.Polymer.legacyUndefined||!1,$ha=window.Polymer&&window.Polymer.orderedComputed||!1,HH=window.Polymer&&window.Polymer.removeNestedTemplates||!1,uY=window.Polymer&&window.Polymer.fastDomIf||!1,OY=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,LcM=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,P38=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var NE={},Kca={},fP=function(){return HTMLElement.apply(this,arguments)||this};
_.z(fP,HTMLElement);fP.import=function(b,h){return b?(b=NE[b]||Kca[b.toLowerCase()])&&h?b.querySelector(h):b:null};
fP.prototype.attributeChangedCallback=function(b,h,y){h!==y&&this.register()};
fP.prototype.register=function(b){if(b=b||this.id){if(Zf&&(NE[b]||Kca[b.toLowerCase()])!==void 0)throw NE[b]=Kca[b.toLowerCase()]=null,Error("Dd`"+b);this.id=b;NE[b]=Kca[b.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.tm.Object.defineProperties(fP.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var b=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;b=_.Bo(this.getAttribute("assetpath")||"",b.baseURI);this.__assetpath=RlY(b)}return this.__assetpath}}});
_.tm.Object.defineProperties(fP,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
fP["import"]=fP.import;fP.prototype.modules=NE;customElements.define("dom-module",fP);var ZZG=0,DDF=0,Wo=[],oxa=0,zlI=!1,MCa=document.createTextNode(""),nxP,SM;(new window.MutationObserver(IAn)).observe(MCa,{characterData:!0});_.tD={after:function(b){return{run:function(h){return window.setTimeout(h,b)},
cancel:function(h){window.clearTimeout(h)}}},
run:function(b,h){return window.setTimeout(b,h)},
cancel:function(b){window.clearTimeout(b)}};
_.A6={run:function(b){return window.requestAnimationFrame(b)},
cancel:function(b){window.cancelAnimationFrame(b)}};
nxP={run:function(b){return window.requestIdleCallback?window.requestIdleCallback(b):window.setTimeout(b,16)},
cancel:function(b){window.cancelIdleCallback?window.cancelIdleCallback(b):window.clearTimeout(b)}};
SM={run:function(b){zlI||(zlI=!0,MCa.textContent=oxa++);Wo.push(b);return ZZG++},
cancel:function(b){var h=b-DDF;if(h>=0){if(!Wo[h])throw Error("Ed`"+b);Wo[h]=null}}};var Xl7=0,r$=function(b){var h=b.__mixinApplications;h||(h=new WeakMap,b.__mixinApplications=h);var y=Xl7++;return function(S){var F=S.__mixinSet;if(F&&F[y])return S;var a=h,P=a.get(S);P||(P=b(S),a.set(S,P),S=Object.create(P.__mixinSet||F||null),S[y]=!0,P.__mixinSet=S);return P}};_.GU=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(b){return ShadyDOM.patch(b)}:function(b){return b};var HZa=r$(function(b){var h=function(){var y=b.call(this)||this;y.__dataEnabled=!1;y.__dataReady=!1;y.__dataInvalid=!1;y.__data={};y.__dataPending=null;y.__dataOld=null;y.__dataInstanceProps=null;y.__dataCounter=0;y.__serializing=!1;y._initializeProperties();return y};
_.z(h,b);h.createProperties=function(y){var S=this.prototype,F;for(F in y)F in S||S._createPropertyAccessor(F)};
h.attributeNameForProperty=function(y){return y.toLowerCase()};
h.typeForProperty=function(){};
h.prototype._createPropertyAccessor=function(y,S){this._addPropertyToAttributeMap(y);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[y]||(this.__dataHasAccessor[y]=!0,this._definePropertyAccessor(y,S))};
h.prototype._addPropertyToAttributeMap=function(y){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var S=this.__dataAttributes[y];S||(S=this.constructor.attributeNameForProperty(y),this.__dataAttributes[S]=y);return S};
h.prototype._definePropertyAccessor=function(y,S){Object.defineProperty(this,y,{get:function(){return this.__data[y]},
set:S?function(){}:function(F){this._setPendingProperty(y,F,!0)&&this._invalidateProperties()}})};
h.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
h.prototype._initializeProperties=function(){for(var y in this.__dataHasAccessor)this.hasOwnProperty(y)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[y]=this[y],delete this[y])};
h.prototype._initializeInstanceProperties=function(y){Object.assign(this,y)};
h.prototype._setProperty=function(y,S){this._setPendingProperty(y,S)&&this._invalidateProperties()};
h.prototype._getProperty=function(y){return this.__data[y]};
h.prototype._setPendingProperty=function(y,S){var F=this.__data[y],a=this._shouldPropertyChange(y,S,F);a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||y in this.__dataOld||(this.__dataOld[y]=F),this.__data[y]=S,this.__dataPending[y]=S);return a};
h.prototype._isPropertyPending=function(y){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(y))};
h.prototype._invalidateProperties=function(){var y=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,SM.run(function(){y.__dataInvalid&&(y.__dataInvalid=!1,y._flushProperties())}))};
h.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
h.prototype._flushProperties=function(){this.__dataCounter++;var y=this.__data,S=this.__dataPending,F=this.__dataOld;this._shouldPropertiesChange(y,S,F)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(y,S,F));this.__dataCounter--};
h.prototype._shouldPropertiesChange=function(y,S){return!!S};
h.prototype._propertiesChanged=function(){};
h.prototype._shouldPropertyChange=function(y,S,F){return F!==S&&(F===F||S===S)};
h.prototype.attributeChangedCallback=function(y,S,F,a){S!==F&&this._attributeToProperty(y,F);b.prototype.attributeChangedCallback&&b.prototype.attributeChangedCallback.call(this,y,S,F,a)};
h.prototype._attributeToProperty=function(y,S,F){if(!this.__serializing){var a=this.__dataAttributes;y=a&&a[y]||y;this[y]=this._deserializeValue(S,F||this.constructor.typeForProperty(y))}};
h.prototype._propertyToAttribute=function(y,S,F){this.__serializing=!0;F=arguments.length<3?this[y]:F;this._valueToNodeAttribute(this,F,S||this.constructor.attributeNameForProperty(y));this.__serializing=!1};
h.prototype._valueToNodeAttribute=function(y,S,F){S=this._serializeValue(S);if(F==="class"||F==="name"||F==="slot")y=(0,_.GU)(y);S===void 0?y.removeAttribute(F):y.setAttribute(F,S===""&&window.trustedTypes?window.trustedTypes.emptyScript:S)};
h.prototype._serializeValue=function(y){switch(typeof y){case "boolean":return y?"":void 0;default:return y!=null?y.toString():void 0}};
h.prototype._deserializeValue=function(y,S){switch(S){case Boolean:return y!==null;case Number:return Number(y);default:return y}};
return h});var ufw=0,Bx5=[];var OZW=r$(function(b){function h(a){a=Object.getPrototypeOf(a);return a.prototype instanceof F?a:null}
function y(a){if(!a.hasOwnProperty("__ownProperties")){var P=null;if(a.hasOwnProperty("properties")){var K=a.properties;if(K){P={};for(var n in K){var X=K[n];P[n]=typeof X==="function"?{type:X}:X}}}a.__ownProperties=P}return a.__ownProperties}
var S=HZa(b),F=function(){return S.apply(this,arguments)||this};
_.z(F,S);F.finalize=function(){if(!this.hasOwnProperty("__finalized")){var a=h(this);a&&a.finalize();this.__finalized=!0;this._finalizeClass()}};
F._finalizeClass=function(){var a=y(this);a&&this.createProperties(a)};
F.typeForProperty=function(a){return(a=this._properties[a])&&a.type};
F.prototype._initializeProperties=function(){ufw++;this.constructor.finalize();S.prototype._initializeProperties.call(this)};
F.prototype.connectedCallback=function(){S.prototype.connectedCallback&&S.prototype.connectedCallback.call(this);this._enableProperties()};
F.prototype.disconnectedCallback=function(){S.prototype.disconnectedCallback&&S.prototype.disconnectedCallback.call(this)};
_.tm.Object.defineProperties(F,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var a=this;if(!this.hasOwnProperty("__observedAttributes")){Won(this.prototype);var P=this._properties;this.__observedAttributes=P?Object.keys(P).map(function(K){return a.prototype._addPropertyToAttributeMap(K)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var a=h(this);this.__properties=Object.assign({},a&&a._properties,y(this))}return this.__properties}}});
return F});var AFF={},UDU=/-[a-z]/g,pV8=/([A-Z])/g;for(var Ny8={},tCa=HTMLElement.prototype;tCa;){for(var roG=Object.getOwnPropertyNames(tCa),cob=0;cob<roG.length;cob++)Ny8[roG[cob]]=!0;tCa=Object.getPrototypeOf(tCa)}var RqW=window.trustedTypes?function(b){return trustedTypes.isHTML(b)||trustedTypes.isScript(b)||trustedTypes.isScriptURL(b)}:function(){return!1},zq7=r$(function(b){var h=HZa(b);
b=function(){return h.apply(this,arguments)||this};
_.z(b,h);b.createPropertiesForAttributes=function(){for(var y=this.observedAttributes,S=0;S<y.length;S++)this.prototype._createPropertyAccessor(AR(y[S]))};
b.attributeNameForProperty=function(y){return UP(y)};
b.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);h.prototype._initializeProperties.call(this)};
b.prototype._initializeProtoProperties=function(y){for(var S in y)this._setProperty(S,y[S])};
b.prototype._ensureAttribute=function(y,S){this.hasAttribute(y)||this._valueToNodeAttribute(this,S,y)};
b.prototype._serializeValue=function(y){switch(typeof y){case "object":if(y instanceof Date)return y.toString();if(y){if(RqW(y))return y;try{return JSON.stringify(y)}catch(S){return""}}default:return h.prototype._serializeValue.call(this,y)}};
b.prototype._deserializeValue=function(y,S){switch(S){case Object:try{var F=JSON.parse(y)}catch(a){F=y}break;case Array:try{F=JSON.parse(y)}catch(a){F=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+y)}break;case Date:F=isNaN(y)?String(y):Number(y);F=new Date(F);break;default:F=h.prototype._deserializeValue.call(this,y,S)}return F};
b.prototype._definePropertyAccessor=function(y,S){if(!Ny8[y]){var F=this[y];F!==void 0&&(this.__data?this._setPendingProperty(y,F):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[y]=F))}h.prototype._definePropertyAccessor.call(this,y,S)};
b.prototype._hasAccessor=function(y){return this.__dataHasAccessor&&this.__dataHasAccessor[y]};
b.prototype._isPropertyPending=function(y){return!!(this.__dataPending&&y in this.__dataPending)};
return b});var Dho={"dom-if":!0,"dom-repeat":!0},ImP=!1,By8=!1,WcG=function(){var b=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(h){return h}});
return function(h,y,S){y=y.getAttribute(S);b&&S.startsWith("on-")?h.setAttribute(S,b.createScript(y,S)):h.setAttribute(S,y)}}(),AoM=r$(function(b){var h=function(){return b.apply(this,arguments)||this};
_.z(h,b);h._parseTemplate=function(y,S){if(!y._templateInfo){var F=y._templateInfo={};F.nodeInfoList=[];F.nestedTemplate=!!S;F.stripWhiteSpace=S&&S.stripWhiteSpace||y.hasAttribute&&y.hasAttribute("strip-whitespace");this._parseTemplateContent(y,F,{parent:null})}return y._templateInfo};
h._parseTemplateContent=function(y,S,F){return this._parseTemplateNode(y.content,S,F)};
h._parseTemplateNode=function(y,S,F){var a=!1;y.localName!="template"||y.hasAttribute("preserve-content")?y.localName==="slot"&&(S.hasInsertionPoint=!0):a=this._parseTemplateNestedTemplate(y,S,F)||a;if(!ImP){ImP=!0;var P=document.createElement("textarea");P.placeholder="a";By8=P.placeholder===P.textContent}By8&&y.localName==="textarea"&&y.placeholder&&y.placeholder===y.textContent&&(y.textContent=null);y.firstChild&&this._parseTemplateChildNodes(y,S,F);y.hasAttributes&&y.hasAttributes()&&(a=this._parseTemplateNodeAttributes(y,
S,F)||a);return a||F.noted};
h._parseTemplateChildNodes=function(y,S,F){if(y.localName!=="script"&&y.localName!=="style")for(var a=y.firstChild,P=0,K;a;a=K){if(a.localName=="template"){var n=a.getAttribute("is");if(n&&Dho[n])for(K=a,K.removeAttribute("is"),a=K.ownerDocument.createElement(n),K.parentNode.replaceChild(a,K),a.appendChild(K);K.attributes.length;)n=K.attributes[0].name,WcG(a,K,n),K.removeAttribute(n)}K=a.nextSibling;if(a.nodeType===Node.TEXT_NODE){for(n=K;n&&n.nodeType===Node.TEXT_NODE;)a.textContent+=n.textContent,
K=n.nextSibling,y.removeChild(n),n=K;if(S.stripWhiteSpace&&!a.textContent.trim()){y.removeChild(a);continue}}n={parentIndex:P,parentInfo:F};this._parseTemplateNode(a,S,n)&&(n.infoIndex=S.nodeInfoList.push(n)-1);a.parentNode&&P++}};
h._parseTemplateNestedTemplate=function(y,S,F){S=this._parseTemplate(y,S);(S.content=y.content.ownerDocument.createDocumentFragment()).appendChild(y.content);F.templateInfo=S;return!0};
h._parseTemplateNodeAttributes=function(y,S,F){for(var a=!1,P=Array.from(y.attributes),K=P.length-1,n;n=P[K];K--)a=this._parseTemplateNodeAttribute(y,S,F,n.name,n.value)||a;return a};
h._parseTemplateNodeAttribute=function(y,S,F,a,P){return a.slice(0,3)==="on-"?(y.removeAttribute(a),F.events=F.events||[],F.events.push({name:a.slice(3),value:P}),!0):a==="id"?(F.id=P,!0):!1};
h._contentForTemplate=function(y){var S=y._templateInfo;return S&&S.content||y.content};
h.prototype._stampTemplate=function(y,S){y&&!y.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(y);S=S||this.constructor._parseTemplate(y);var F=S.nodeInfoList;y=document.importNode(S.content||y.content,!0);y.__noInsertionPoint=!S.hasInsertionPoint;var a=y.nodeList=Array(F.length);y.$={};for(var P=0,K=F.length,n=void 0;P<K&&(n=F[P]);P++){var X=a[P]=JFF(y,n);n.id&&(y.$[n.id]=X);var u=X,O=n,N=S;O.templateInfo&&(u._templateInfo=O.templateInfo,u._parentTemplateInfo=
N);if(n.events&&n.events.length)for(u=0,O=n.events,N=void 0;u<O.length&&(N=O[u]);u++)this._addMethodEventListenerToNode(X,N.name,N.value,this)}return y};
h.prototype._addMethodEventListenerToNode=function(y,S,F,a){F=elN(a||y,F);this._addEventListenerToNode(y,S,F);return F};
h.prototype._addEventListenerToNode=function(y,S,F){y.addEventListener(S,F)};
h.prototype._removeEventListenerFromNode=function(y,S,F){y.removeEventListener(S,F)};
return h});var YJ=0,Vy=[],UhW={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},plP=/[A-Z]/,Jo8=function(b,h,y,S,F){var a=F?JR(b):b;if(h=h[a])for(a=0;a<h.length;a++){var P=h[a];if(P.info.lastRun!==YJ&&(!F||GRq(b,P.trigger))){P.info.lastRun=YJ;P=P.info;for(var K=y,n=S,X=0,u=K.length-1,O=-1;X<=u;){var N=X+u>>1,t=n.get(K[N].methodInfo)-n.get(P.methodInfo);if(t<0)X=N+1;else if(t>0)u=N-1;else{O=N;break}}O<
0&&(O=u+1);K.splice(O,0,P)}}},y_I=[],eq8=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"),RO=r$(function(b){var h=AoM(zq7(b));
b=function(){var y=h.call(this)||this;y.__isPropertyEffectsClient=!0;return y};
_.z(b,h);b.prototype._initializeProperties=function(){h.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};
b.prototype._registerHost=function(){if(cH.length){var y=cH[cH.length-1];y._enqueueClient(this);this.__dataHost=y}};
b.prototype._initializeProtoProperties=function(y){this.__data=Object.create(y);this.__dataPending=Object.create(y);this.__dataOld={}};
b.prototype._initializeInstanceProperties=function(y){var S=this.__readOnly,F;for(F in y)S&&S[F]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[F]=this.__dataPending[F]=y[F])};
b.prototype._addPropertyEffect=function(y,S,F){this._createPropertyAccessor(y,S=="__readOnly");var a=Tx4(this,S,!0)[y];a||(a=this[S][y]=[]);a.push(F)};
b.prototype._removePropertyEffect=function(y,S,F){y=Tx4(this,S,!0)[y];F=y.indexOf(F);F>=0&&y.splice(F,1)};
b.prototype._hasPropertyEffect=function(y,S){S=this[S];return!(!S||!S[y])};
b.prototype._hasReadOnlyEffect=function(y){return this._hasPropertyEffect(y,"__readOnly")};
b.prototype._hasNotifyEffect=function(y){return this._hasPropertyEffect(y,"__notifyEffects")};
b.prototype._hasReflectEffect=function(y){return this._hasPropertyEffect(y,"__reflectEffects")};
b.prototype._hasComputedEffect=function(y){return this._hasPropertyEffect(y,"__computeEffects")};
b.prototype._setPendingPropertyOrPath=function(y,S,F,a){if(a||JR(Array.isArray(y)?y[0]:y)!==y){if(!a&&(a=sP(this,y),y=Yoq(this,y,S),!y||!h.prototype._shouldPropertyChange.call(this,y,S,a)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(y,S,F)){if(F=this.__dataLinkedPaths)for(var P in F)a=F[P],eH(P,y)?(a=CP(P,a,y),this._setPendingPropertyOrPath(a,S,!0,!0)):eH(a,y)&&(a=CP(a,P,y),this._setPendingPropertyOrPath(a,S,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[y])return this._setPendingProperty(y,
S,F);this[y]=S}return!1};
b.prototype._setUnmanagedPropertyToNode=function(y,S,F){if(F!==y[S]||typeof F=="object")S==="className"&&(y=(0,_.GU)(y)),y[S]=F};
b.prototype._setPendingProperty=function(y,S,F){var a=this.__dataHasPaths&&pP(y);if(this._shouldPropertyChange(y,S,(a?this.__dataTemp:this.__data)[y])){this.__dataPending||(this.__dataPending={},this.__dataOld={});y in this.__dataOld||(this.__dataOld[y]=this.__data[y]);a?this.__dataTemp[y]=S:this.__data[y]=S;this.__dataPending[y]=S;if(a||this.__notifyEffects&&this.__notifyEffects[y])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[y]=F;return!0}return!1};
b.prototype._setProperty=function(y,S){this._setPendingProperty(y,S,!0)&&this._invalidateProperties()};
b.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
b.prototype._enqueueClient=function(y){this.__dataPendingClients=this.__dataPendingClients||[];y!==this&&this.__dataPendingClients.push(y)};
b.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
b.prototype.__enableOrFlushClients=function(){var y=this.__dataPendingClients;if(y){this.__dataPendingClients=null;for(var S=0;S<y.length;S++){var F=y[S];F.__dataEnabled?F.__dataPending&&F._flushProperties():F._enableProperties()}}};
b.prototype._readyClients=function(){this.__enableOrFlushClients()};
b.prototype.setProperties=function(y,S){for(var F in y)!S&&this.__readOnly&&this.__readOnly[F]||this._setPendingPropertyOrPath(F,y[F],!0);this._invalidateProperties()};
b.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
b.prototype._propertiesChanged=function(y,S,F){y=this.__dataHasPaths;this.__dataHasPaths=!1;var a;if(a=this.__computeEffects)if($ha){YJ++;var P=wVF(this),K=[],n;for(n in S)Jo8(n,a,K,P,y);for(;n=K.shift();)qoU(this,"",S,F,n)&&Jo8(n.methodInfo,a,K,P,y);Object.assign(F,this.__dataOld);Object.assign(S,this.__dataPending);this.__dataPending=null}else for(P=S;TU(this,a,P,F,y);)Object.assign(F,this.__dataOld),Object.assign(S,this.__dataPending),P=this.__dataPending,this.__dataPending=null;a=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(S,F,y);this._flushClients();TU(this,this.__reflectEffects,S,F,y);TU(this,this.__observeEffects,S,F,y);if(a){P=this.__notifyEffects;K=YJ++;for(var X in a)if(a[X]){if(n=P){var u=P;n=K;var O=X,N=S,t=F,R=y,I=!1,U=R?JR(O):O;if(u=u[U]){U=0;for(var p=u.length,e=void 0;U<p&&(e=u[U]);U++)e.info&&e.info.lastRun===n||R&&!GRq(O,e.trigger)||(e.info&&(e.info.lastRun=n),e.fn(this,O,N,t,e.info,R,void 0),I=!0)}n=I}if(n)var E=!0;else{if(n=y)n=X,O=S,N=JR(n),N!==
n?(N=UP(N)+"-changed",VD8(this,N,O[n],n),n=!0):n=!1;n&&(E=!0)}}var Y;E&&(Y=this.__dataHost)&&Y._invalidateProperties&&Y._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
b.prototype._propagatePropertyChanges=function(y,S,F){this.__propagateEffects&&TU(this,this.__propagateEffects,y,S,F);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,y,S,F)};
b.prototype._runEffectsForTemplate=function(y,S,F,a){var P=this,K=function(n,X){TU(P,y.propertyEffects,n,F,X,y.nodeList);for(var u=y.firstChild;u;u=u.nextSibling)P._runEffectsForTemplate(u,n,F,X)};
y.runEffects?y.runEffects(K,S,a):K(S,a)};
b.prototype.linkPaths=function(y,S){y=g_(y);S=g_(S);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[y]=S};
b.prototype.unlinkPaths=function(y){y=g_(y);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[y]};
b.prototype.notifySplices=function(y,S){var F={path:""};y=sP(this,y,F);d$M(this,y,F.path,S)};
b.prototype.get=function(y,S){return sP(S||this,y)};
b.prototype.set=function(y,S,F){F?Yoq(F,y,S):this.__readOnly&&this.__readOnly[y]||this._setPendingPropertyOrPath(y,S,!0)&&this._invalidateProperties()};
b.prototype.push=function(y){var S=_.x$.apply(1,arguments),F={path:""},a=sP(this,y,F),P=a.length,K=a.push.apply(a,_.f$(S));S.length&&ih(this,a,F.path,P,S.length,[]);return K};
b.prototype.pop=function(y){var S={path:""};y=sP(this,y,S);var F=!!y.length,a=y.pop();F&&ih(this,y,S.path,y.length,0,[a]);return a};
b.prototype.splice=function(y,S,F){var a=_.x$.apply(3,arguments),P={path:""},K=sP(this,y,P);S<0?S=K.length-Math.floor(-S):S&&(S=Math.floor(S));var n=arguments.length===2?K.splice(S):K.splice.apply(K,[S,F].concat(_.f$(a)));(a.length||n.length)&&ih(this,K,P.path,S,a.length,n);return n};
b.prototype.shift=function(y){var S={path:""};y=sP(this,y,S);var F=!!y.length,a=y.shift();F&&ih(this,y,S.path,0,0,[a]);return a};
b.prototype.unshift=function(y){var S=_.x$.apply(1,arguments),F={path:""},a=sP(this,y,F),P=a.unshift.apply(a,_.f$(S));S.length&&ih(this,a,F.path,0,S.length,[]);return P};
b.prototype.notifyPath=function(y,S){if(arguments.length==1){var F={path:""};S=sP(this,y,F);F=F.path}else F=Array.isArray(y)?g_(y):y;this._setPendingPropertyOrPath(F,S,!0,!0)&&this._invalidateProperties()};
b.prototype._createReadOnlyProperty=function(y,S){this._addPropertyEffect(y,"__readOnly");S&&(this["_set"+(y[0].toUpperCase()+y.substring(1))]=function(F){this._setProperty(y,F)})};
b.prototype._createPropertyObserver=function(y,S,F){var a={property:y,method:S,dynamicFn:!!F};this._addPropertyEffect(y,"__observeEffects",{fn:kRM,info:a,trigger:{name:y}});F&&this._addPropertyEffect(S,"__observeEffects",{fn:kRM,info:a,trigger:{name:S}})};
b.prototype._createMethodObserver=function(y,S){var F=Fgk(y);if(!F)throw Error("Fd`"+y);bWF(this,F,"__observeEffects",lA4,null,S)};
b.prototype._createNotifyingProperty=function(y){this._addPropertyEffect(y,"__notifyEffects",{fn:EGq,info:{eventName:UP(y)+"-changed",property:y}})};
b.prototype._createReflectedProperty=function(y){var S=this.constructor.attributeNameForProperty(y);S[0]==="-"?console.warn("Property "+y+" cannot be reflected to attribute "+S+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(y,"__reflectEffects",{fn:iwM,info:{attrName:S}})};
b.prototype._createComputedProperty=function(y,S,F){var a=Fgk(S);if(!a)throw Error("Gd`"+S);S=bWF(this,a,"__computeEffects",qoU,y,F);Tx4(this,"__computeInfo")[y]=S};
b.prototype._marshalArgs=function(y,S,F){for(var a=this.__data,P=[],K=0,n=y.length;K<n;K++){var X=y[K],u=X.name,O=X.structured,N=X.wildcard,t=X.value;X.literal||(N?(X=eH(u,S),O=aaf(a,F,X?S:u),t={path:X?S:u,value:O,base:X?sP(a,u):O}):t=O?aaf(a,F,u):a[u]);if(EP&&!this._overrideLegacyUndefined&&t===void 0&&y.length>1)return Vy;P[K]=t}return P};
b.addPropertyEffect=function(y,S,F){this.prototype._addPropertyEffect(y,S,F)};
b.createPropertyObserver=function(y,S,F){this.prototype._createPropertyObserver(y,S,F)};
b.createMethodObserver=function(y,S){this.prototype._createMethodObserver(y,S)};
b.createNotifyingProperty=function(y){this.prototype._createNotifyingProperty(y)};
b.createReadOnlyProperty=function(y,S){this.prototype._createReadOnlyProperty(y,S)};
b.createReflectedProperty=function(y){this.prototype._createReflectedProperty(y)};
b.createComputedProperty=function(y,S,F){this.prototype._createComputedProperty(y,S,F)};
b.bindTemplate=function(y){return this.prototype._bindTemplate(y)};
b.prototype._bindTemplate=function(y,S){var F=this.constructor._parseTemplate(y),a=this.__preBoundTemplateInfo==F;if(!a)for(var P in F.propertyEffects)this._createPropertyAccessor(P);S?(F=Object.create(F),F.wasPreBound=a,this.__templateInfo?(y=y._parentTemplateInfo||this.__templateInfo,S=y.lastChild,F.parent=y,y.lastChild=F,(F.previousSibling=S)?S.nextSibling=F:y.firstChild=F):this.__templateInfo=F):this.__preBoundTemplateInfo=F;return F};
b._addTemplatePropertyEffect=function(y,S,F){(y.hostProps=y.hostProps||{})[S]=!0;y=y.propertyEffects=y.propertyEffects||{};(y[S]=y[S]||[]).push(F)};
b.prototype._stampTemplate=function(y,S){S=S||this._bindTemplate(y,!0);cH.push(this);y=h.prototype._stampTemplate.call(this,y,S);cH.pop();S.nodeList=y.nodeList;if(!S.wasPreBound)for(var F=S.childNodes=[],a=y.firstChild;a;a=a.nextSibling)F.push(a);y.templateInfo=S;F=S.nodeList;a=S.nodeInfoList;if(a.length)for(var P=0;P<a.length;P++){var K=F[P],n=a[P].bindings;if(n)for(var X=0;X<n.length;X++){var u=n[X],O=K,N=u;if(N.isCompound){for(var t=O.__dataCompoundStorage||(O.__dataCompoundStorage={}),R=N.parts,
I=Array(R.length),U=0;U<R.length;U++)I[U]=R[U].literal;R=N.target;t[R]=I;N.literal&&N.kind=="property"&&(R==="className"&&(O=(0,_.GU)(O)),O[R]=N.literal)}vG5(K,this,u)}K.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(S,this.__data,null,!1),this._flushClients());return y};
b.prototype._removeBoundDom=function(y){y=y.templateInfo;var S=y.previousSibling,F=y.nextSibling,a=y.parent;S?S.nextSibling=F:a&&(a.firstChild=F);F?F.previousSibling=S:a&&(a.lastChild=S);y.nextSibling=y.previousSibling=null;y=y.childNodes;for(S=0;S<y.length;S++)F=y[S],(0,_.GU)((0,_.GU)(F).parentNode).removeChild(F)};
b._parseTemplateNode=function(y,S,F){var a=h._parseTemplateNode.call(this,y,S,F);if(y.nodeType===Node.TEXT_NODE){var P=this._parseBindings(y.textContent,S);P&&(y.textContent=hN4(P)||" ",mDn(this,S,F,"text","textContent",P),a=!0)}return a};
b._parseTemplateNodeAttribute=function(y,S,F,a,P){var K=this._parseBindings(P,S);if(K){P=a;var n="property";plP.test(a)?n="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),n="attribute");var X=hN4(K);X&&n=="attribute"&&(a=="class"&&y.hasAttribute("class")&&(X+=" "+y.getAttribute(a)),y.setAttribute(a,X));n=="attribute"&&P=="disable-upgrade$"&&y.setAttribute(a,"");y.localName==="input"&&P==="value"&&y.setAttribute(P,"");y.removeAttribute(P);n==="property"&&(a=AR(a));mDn(this,S,F,n,a,K,X);return!0}return h._parseTemplateNodeAttribute.call(this,
y,S,F,a,P)};
b._parseTemplateNestedTemplate=function(y,S,F){var a=h._parseTemplateNestedTemplate.call(this,y,S,F),P=y.parentNode,K=F.templateInfo,n=P.localName==="dom-if",X=P.localName==="dom-repeat";HH&&(n||X)&&(P.removeChild(y),F=F.parentInfo,F.templateInfo=K,F.noted=!0,a=!1);y=K.hostProps;if(uY&&n)y&&(S.hostProps=Object.assign(S.hostProps||{},y),HH||(F.parentInfo.noted=!0));else for(var u in y)mDn(this,S,F,"property","_host_"+u,[{mode:"{",source:u,dependencies:[u],hostProp:!0}]);return a};
b._parseBindings=function(y,S){for(var F=[],a=0,P;(P=eq8.exec(y))!==null;){P.index>a&&F.push({literal:y.slice(a,P.index)});a=P[1][0];var K=!!P[2];P=P[3].trim();var n=!1,X="",u=-1;a=="{"&&(u=P.indexOf("::"))>0&&(X=P.substring(u+2),P=P.substring(0,u),n=!0);u=Fgk(P);var O=[];if(u){var N=u,t=N.args;N=N.methodName;for(var R=0;R<t.length;R++){var I=t[R];I.literal||O.push(I)}if((t=S.dynamicFns)&&t[N]||u.static)O.push(N),u.dynamicFn=!0}else O.push(P);F.push({source:P,mode:a,negate:K,customEvent:n,signature:u,
dependencies:O,event:X});a=eq8.lastIndex}a&&a<y.length&&(y=y.substring(a))&&F.push({literal:y});return F.length?F:null};
b._evaluateBinding=function(y,S,F,a,P,K){y=S.signature?lA4(y,F,a,P,S.signature):F!=S.source?sP(y,S.source):K&&pP(F)?sP(y,F):y.__data[F];S.negate&&(y=!y);return y};
_.tm.Object.defineProperties(b.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return UhW}}});
return b}),cH=[];var C3G=window.ShadyCSS&&window.ShadyCSS.cssBuild,zQ=r$(function(b){function h(S,F,a,P){if(!C3G){for(var K=F.content.querySelectorAll("style"),n=PGf(F),X=Kgf(a),u=F.content.firstElementChild,O=0;O<X.length;O++){var N=X[O];N.textContent=S._processStyleText(N.textContent,P);F.content.insertBefore(N,u)}for(u=X=0;u<n.length;u++)O=n[u],N=K[X],N!==O?(O=O.cloneNode(!0),N.parentNode.insertBefore(O,N)):X++,O.textContent=S._processStyleText(O.textContent,P)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(F,
a);if(P38&&C3G&&Fca&&(F=F.content.querySelectorAll("style"))){var t="";Array.from(F).forEach(function(R){t+=R.textContent;R.parentNode.removeChild(R)});
S._styleSheet=new CSSStyleSheet;S._styleSheet.replaceSync(t)}}
var y=OZW(RO(b));b=function(){return y.call(this)||this};
_.z(b,y);b._finalizeClass=function(){y._finalizeClass.call(this);var S;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(S=this.__ownObservers)&&this.createObservers(S,this._properties);this._prepareTemplate()};
b._prepareTemplate=function(){var S=this.template;S&&(typeof S==="string"?(console.error("template getter must return HTMLTemplateElement"),S=null):a0||(S=S.cloneNode(!0)));this.prototype._template=S};
b.createProperties=function(S){for(var F in S){var a=this.prototype,P=F,K=S[F],n=S;K.computed&&(K.readOnly=!0);K.computed&&(a._hasReadOnlyEffect(P)?console.warn("Cannot redefine computed property '"+P+"'."):a._createComputedProperty(P,K.computed,n));K.readOnly&&!a._hasReadOnlyEffect(P)?a._createReadOnlyProperty(P,!K.computed):K.readOnly===!1&&a._hasReadOnlyEffect(P)&&console.warn("Cannot make readOnly property '"+P+"' non-readOnly.");K.reflectToAttribute&&!a._hasReflectEffect(P)?a._createReflectedProperty(P):
K.reflectToAttribute===!1&&a._hasReflectEffect(P)&&console.warn("Cannot make reflected property '"+P+"' non-reflected.");K.notify&&!a._hasNotifyEffect(P)?a._createNotifyingProperty(P):K.notify===!1&&a._hasNotifyEffect(P)&&console.warn("Cannot make notify property '"+P+"' non-notify.");K.observer&&a._createPropertyObserver(P,K.observer,n[K.observer]);a._addPropertyToAttributeMap(P)}};
b.createObservers=function(S,F){for(var a=this.prototype,P=0;P<S.length;P++)a._createMethodObserver(S[P],F)};
b.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);y.prototype._initializeProperties.call(this);this.rootPath=amG;this.importPath=this.constructor.importPath;var S=this.constructor;if(!S.hasOwnProperty("__propertyDefaults")){S.__propertyDefaults=null;var F=S._properties,a;for(a in F){var P=F[a];"value"in P&&(S.__propertyDefaults=S.__propertyDefaults||{},S.__propertyDefaults[a]=P)}}if(S=S.__propertyDefaults)for(var K in S)F=S[K],
this._canApplyPropertyDefault(K)&&(F=typeof F.value=="function"?F.value.call(this):F.value,this._hasAccessor(K)?this._setPendingProperty(K,F,!0):this[K]=F)};
b.prototype._canApplyPropertyDefault=function(S){return!this.hasOwnProperty(S)};
b._processStyleText=function(S,F){return cFF(S,F)};
b._finalizeTemplate=function(S){var F=this.prototype._template;if(F&&!F.__polymerFinalized){F.__polymerFinalized=!0;var a=this.importPath;a=a?_.Bo(a):"";h(this,F,S,a);this.prototype._bindTemplate(F)}};
b.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);y.prototype.connectedCallback.call(this)};
b.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);y.prototype.ready.call(this)};
b.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));y.prototype._readyClients.call(this)};
b.prototype._attachDom=function(S){var F=(0,_.GU)(this);if(F.attachShadow)return S?(F.shadowRoot||(F.attachShadow({mode:"open",shadyUpgradeFragment:S}),F.shadowRoot.appendChild(S),this.constructor._styleSheet&&(F.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),jc8&&window.ShadyDOM&&window.ShadyDOM.flushInitial(F.shadowRoot),F.shadowRoot):null;throw Error("Id");};
b.prototype.updateStyles=function(S){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,S)};
b.prototype.resolveUrl=function(S,F){!F&&this.importPath&&(F=_.Bo(this.importPath));return _.Bo(S,F)};
b._parseTemplateContent=function(S,F,a){F.dynamicFns=F.dynamicFns||this._properties;return y._parseTemplateContent.call(this,S,F,a)};
b._addTemplatePropertyEffect=function(S,F,a){!K2||F in this._properties||a.info.part.signature&&a.info.part.signature.static||a.info.part.hostProp||S.nestedTemplate||console.warn("Property '"+F+"' used in template but not declared in 'properties'; attribute will not be observed.");return y._addTemplatePropertyEffect.call(this,S,F,a)};
_.tm.Object.defineProperties(b,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var S=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof S==="function"&&(S=S());if(S===void 0){if(S=this.hasOwnProperty("is")){S=this.is;var F=null;if(S&&(!Zf||dhb)&&(F=fP.import(S,"template"),Zf&&!F))throw Error("Hd`"+S);S=F}S=S||Object.getPrototypeOf(this.prototype).constructor.template}this._template=S}return this._template},
set:function(S){this._template=S}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var S=this.importMeta;S?this._importPath=RlY(S.url):this._importPath=(S=fP.import(this.is))&&S.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return b});var gxM=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(b){return b}}),uoF=function(b,h){scW(b,h);
this.value=h.reduce(function(y,S,F){return y+OW4(S)+b[F+1]},b[0]).toString()},scW;
uoF.prototype.toString=function(){return this.value};
_.YBP=function(b){var h=_.x$.apply(1,arguments);scW(b,h);var y=document.createElement("template");h=h.reduce(function(S,F,a){if(F instanceof HTMLTemplateElement)F=F.innerHTML;else if(F instanceof uoF)F=OW4(F);else throw Error("Kd`"+F);return S+F+b[a+1]},b[0]);
gxM&&(h=gxM.createHTML(h));y.innerHTML=h;return y};
scW=function(b,h){if(!Array.isArray(b)||!Array.isArray(b.raw)||h.length!==b.length-1)throw new TypeError("Ld");};var D$=zQ(HTMLElement);var Ty7=r$(function(b){var h=zQ(b);b=function(){var y=h.call(this)||this;y.__lastItems=null;y.__lastMulti=null;y.__selectedMap=null;return y};
_.z(b,h);b.prototype.__updateSelection=function(y,S){var F=S.path;F=="items"?(S=S.base||[],F=this.__lastItems,y!==this.__lastMulti&&this.clearSelection(),F&&(F=HW4(S,F),this.__applySplices(F)),this.__lastItems=S,this.__lastMulti=y):S.path=="items.splices"?this.__applySplices(S.value.indexSplices):(y=F.slice(6),S=parseInt(y,10),y.indexOf(".")<0&&y==S&&this.__deselectChangedIdx(S))};
b.prototype.__applySplices=function(y){for(var S=this,F=this.__selectedMap,a={},P=0;P<y.length;a={s$jscomp$109:void 0},P++){a.s$jscomp$109=y[P];F.forEach(function(u){return function(O,N){O<u.s$jscomp$109.index||(O>=u.s$jscomp$109.index+u.s$jscomp$109.removed.length?F.set(N,O+u.s$jscomp$109.addedCount-u.s$jscomp$109.removed.length):F.set(N,-1))}}(a));
for(var K=0;K<a.s$jscomp$109.addedCount;K++){var n=a.s$jscomp$109.index+K;F.has(this.items[n])&&F.set(this.items[n],n)}}this.__updateLinks();var X=0;F.forEach(function(u,O){u<0?(S.multi?S.splice("selected",X,1):S.selected=S.selectedItem=null,F.delete(O)):X++})};
b.prototype.__updateLinks=function(){var y=this;this.__dataLinkedPaths={};if(this.multi){var S=0;this.__selectedMap.forEach(function(F){F>=0&&y.linkPaths("items."+F,"selected."+S++)})}else this.__selectedMap.forEach(function(F){y.linkPaths("selected","items."+F);
y.linkPaths("selectedItem","items."+F)})};
b.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
b.prototype.isSelected=function(y){return this.__selectedMap.has(y)};
b.prototype.isIndexSelected=function(y){return this.isSelected(this.items[y])};
b.prototype.__deselectChangedIdx=function(y){var S=this,F=this.__selectedIndexForItemIndex(y);if(F>=0){var a=0;this.__selectedMap.forEach(function(P,K){F==a++&&S.deselect(K)})}};
b.prototype.__selectedIndexForItemIndex=function(y){if(y=this.__dataLinkedPaths["items."+y])return parseInt(y.slice(9),10)};
b.prototype.deselect=function(y){var S=this.__selectedMap.get(y);if(S>=0){this.__selectedMap.delete(y);var F;this.multi&&(F=this.__selectedIndexForItemIndex(S));this.__updateLinks();this.multi?this.splice("selected",F,1):this.selected=this.selectedItem=null}};
b.prototype.deselectIndex=function(y){this.deselect(this.items[y])};
b.prototype.select=function(y){this.selectIndex(this.items.indexOf(y))};
b.prototype.selectIndex=function(y){var S=this.items[y];this.isSelected(S)?this.toggle&&this.deselectIndex(y):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(S,y),this.__updateLinks(),this.multi?this.push("selected",S):this.selected=this.selectedItem=S)};
_.tm.Object.defineProperties(b,{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 b}),Gj8=Ty7(D$),IO=function(){return Gj8.apply(this,arguments)||this};
_.z(IO,Gj8);_.tm.Object.defineProperties(IO,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(IO.is,IO);var kjw=window.Polymer;window.Polymer=function(b){return window.Polymer._polymerFn(b)};
kjw&&Object.assign(Polymer,kjw);Polymer._polymerFn=function(){throw Error("Md");};/*

Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
Polymer.ResolveUrl={resolveCss:cFF,resolveUrl:_.Bo,pathFromUrl:RlY};Polymer.DomModule=fP;Polymer.Async={timeOut:_.tD,animationFrame:_.A6,idlePeriod:nxP,microTask:SM};Polymer.dedupingMixin=r$;Polymer.wrap=_.GU;Polymer.PropertiesChanged=HZa;Polymer.telemetry={instanceCount:ufw,incrementInstanceCount:function(){ufw++},
registrations:Bx5,register:Won,dumpRegistrations:function(){Bx5.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=OZW;Polymer.CaseMap={dashToCamelCase:AR,camelToDashCase:UP};Polymer.PropertyAccessors=zq7;Polymer.TemplateStamp=AoM;Polymer.Path={isPath:pP,root:JR,isAncestor:Cqn,isDescendant:eH,translate:CP,matches:gGI,normalize:g_,split:srU,get:sP,set:Yoq,isDeep:pP};Polymer.Settings={useShadow:dk,useNativeCSSProperties:vg7,useNativeCustomElements:bZ7,get rootPath(){return amG},setRootPath:function(b){amG=b},
get sanitizeDOMValue(){return kJ},setSanitizeDOMValue:function(b){kJ=b},
get passiveTouchGestures(){return pfq},setPassiveTouchGestures:function(b){pfq=b},
get strictTemplatePolicy(){return Zf},setStrictTemplatePolicy:function(b){Zf=b},
get allowTemplateFromDomModule(){return dhb},setAllowTemplateFromDomModule:function(b){dhb=b},
get legacyOptimizations(){return a0},setLegacyOptimizations:function(b){a0=b},
get syncInitialRender(){return jc8},setSyncInitialRender:function(b){jc8=b},
get legacyUndefined(){return EP},setLegacyUndefined:function(b){EP=b},
get legacyWarnings(){return K2},setLegacyWarnings:function(b){K2=b},
get orderedComputed(){return $ha},setOrderedComputed:function(b){$ha=b},
get fastDomIf(){return uY},setFastDomIf:function(b){uY=b},
get removeNestedTemplates(){return HH},setRemoveNestedTemplates:function(b){HH=b},
get suppressTemplateNotifications(){return OY},setSuppressTemplateNotifications:OY};Polymer.rootPath!==void 0&&(amG=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(kJ=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(pfq=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(Zf=Polymer.strictTemplatePolicy);dhb=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(a0=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(jc8=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(EP=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(K2=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&($ha=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(uY=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(HH=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(OY=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return kJ},
set:function(b){kJ=b}});Polymer.PropertyEffects=RO;Polymer.StyleGather={stylesFromModules:Lgj,stylesFromModule:$$U,stylesFromTemplate:PGf,stylesFromModuleImports:Kgf,cssFromModules:o7n,cssFromModule:ZWM,cssFromTemplate:M4M,cssFromModuleImports:function(b){return(b=fP.import(b))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(b):""}};Polymer.ElementMixin=zQ;Polymer.updateStyles=function(b){window.ShadyCSS&&window.ShadyCSS.styleDocument(b)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:HW4};Polymer.html=_.YBP;Polymer.htmlLiteral=function(b){return new uoF(b,_.x$.apply(1,arguments))};Polymer.Element=D$;Polymer.ArraySelectorMixin=Ty7;Polymer.ArraySelector=IO;var VCW=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,Ex8=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,vYN=/@media\s(.*)/;var c_F=null,r_N=window.HTMLImports&&window.HTMLImports.whenReady||null,RNk;var iZo=null,BH=null,WH=function(){this.customStyles=[];this.enqueued=!1;zNk(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},fmo=function(b){!b.enqueued&&BH&&(b.enqueued=!0,zNk(BH))};
WH.prototype.addCustomStyle=function(b){b.__seenByShadyCSS||(b.__seenByShadyCSS=!0,this.customStyles.push(b),fmo(this))};
WH.prototype.getStyleForCustomStyle=function(b){if(b.__shadyCSSCachedStyle)return b.__shadyCSSCachedStyle;var h;b.getStyle?h=b.getStyle():h=b;return h};
WH.prototype.processStyles=function(){for(var b=this.customStyles,h=0;h<b.length;h++){var y=b[h];if(!y.__shadyCSSCachedStyle){var S=this.getStyleForCustomStyle(y);S&&(S=S.__appliedElement||S,iZo&&iZo(S),y.__shadyCSSCachedStyle=S)}}return b};
WH.prototype.addCustomStyle=WH.prototype.addCustomStyle;WH.prototype.getStyleForCustomStyle=WH.prototype.getStyleForCustomStyle;WH.prototype.processStyles=WH.prototype.processStyles;Object.defineProperties(WH.prototype,{transformCallback:{get:function(){return iZo},
set:function(b){iZo=b}},
validateCallback:{get:function(){return BH},
set:function(b){var h=!1;BH||(h=!0);BH=b;h&&fmo(this)}}});var IaU=!(window.ShadyDOM&&window.ShadyDOM.inUse),D$I,Nd;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(Nd=window.ShadyCSS.cssBuild);var wlw=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?D$I=window.ShadyCSS.nativeCss:window.ShadyCSS?(BeM(window.ShadyCSS),window.ShadyCSS=void 0):BeM(window.WebComponents&&window.WebComponents.flags);var xqY=D$I;var lme=new WH;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(b,h){lme.processStyles();NeU(b,h)},
styleElement:function(){lme.processStyles()},
styleDocument:function(b){lme.processStyles();NeU(document.body,b)},
getComputedStyleValue:function(b,h){return t48(b,h)},
flushCustomStyles:function(){},
nativeCss:xqY,nativeShadow:IaU,cssBuild:Nd,disableRuntime:wlw});window.ShadyCSS.CustomStyleInterface=lme;var qB8=window.ShadyCSS.CustomStyleInterface,AD=function(){var b=HTMLElement.call(this)||this;b._style=null;qB8.addCustomStyle(b);return b};
_.z(AD,HTMLElement);AD.prototype.getStyle=function(){if(this._style)return this._style;var b=this.querySelector("style");if(!b)return null;this._style=b;var h=b.getAttribute("include");h&&(b.removeAttribute("include"),b.textContent=o7n(h)+b.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
AD.prototype.getStyle=AD.prototype.getStyle;window.customElements.define("custom-style",AD);Polymer.CustomStyle=AD;var UY=function(){this._timer=this._callback=this._asyncModule=null},pp,Qca;
UY.prototype.setConfig=function(b,h){var y=this;this._asyncModule=b;this._callback=h;this._timer=this._asyncModule.run(function(){y._timer=null;pp.delete(y);y._callback()})};
UY.prototype.cancel=function(){this.isActive()&&(xha(this),pp.delete(this))};
var xha=function(b){b.isActive()&&(b._asyncModule.cancel(b._timer),b._timer=null)};
UY.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
UY.prototype.isActive=function(){return this._timer!=null};
_.JD=function(b,h,y){b instanceof UY?xha(b):b=new UY;b.setConfig(h,y);return b};
pp=new Set;_.ey=function(b){pp.add(b)};
Qca=function(){var b=!!pp.size;pp.forEach(function(h){try{h.flush()}catch(y){setTimeout(function(){throw y;})}});
return b};var A_I=typeof document.head.style.touchAction==="string",WgU=["mousedown","mousemove","mouseup","click"],Tek=[0,1,4,2],mh7;try{mh7=(new MouseEvent("test",{buttons:1})).buttons===1}catch(b){mh7=!1}var Y9M=mh7,U$5=!1;(function(){try{var b=Object.defineProperty({},"passive",{get:function(){U$5=!0}});
window.addEventListener("test",null,b);window.removeEventListener("test",null,b)}catch(h){}})();
var eN4=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),CGk=[],vxo={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},m$M={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},g7f=function(b){var h=b.sourceCapabilities;if(!h||h.firesTouchEvents)if(b.__polymerGesturesHandled={skip:!0},b.type==="click"){h=!1;for(var y=E7q(b),S=0;S<y.length;S++){if(y[S].nodeType===Node.ELEMENT_NODE)if(y[S].localName==="label")CGk.push(y[S]);
else if(vxo[y[S].localName]){var F=y[S];var a=Array.prototype.slice.call(F.labels||[]);if(!a.length){a=[];try{var P=F.getRootNode();if(F.id){var K=P.querySelectorAll("label[for = '"+F.id+"']");for(F=0;F<K.length;F++)a.push(K[F])}}catch(n){}}for(F=0;F<a.length;F++)h=h||CGk.indexOf(a[F])>-1}if(y[S]===bt5)return}h||(b.preventDefault(),b.stopPropagation())}},bt5=null,Cp=null,faY=0,wfU=0,iWM=-1,laM=!1;
document.addEventListener("touchend",function(b){Cp||s8I(!0);bt5=E7q(b)[0];Cp=_.JD(Cp,_.tD.after(2500),function(){s8I();Cp=bt5=null})},U$5?{passive:!0}:!1);
var E7q=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(b){return b.composedPath&&b.composedPath()||[]},mV={},xJ=[];
q9r({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){qS(this.info)},
mousedown:function(b){if(lh(b)){var h=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(b),y=this;kfj(this.info,function(S){lh(S)||(Fu("up",h,S),qS(y.info))},function(S){lh(S)&&Fu("up",h,S);
qS(y.info)});
Fu("down",h,b)}},
touchstart:function(b){Fu("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(b),b.changedTouches[0],b)},
touchend:function(b){Fu("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(b),b.changedTouches[0],b)}});
q9r({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(b){this.moves.length>2&&this.moves.shift();this.moves.push(b)},
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;qS(this.info)},
mousedown:function(b){if(lh(b)){var h=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(b),y=this,S=function(F){var a=F.clientX,P=F.clientY;x$F(y.info,a,P)&&(y.info.state=y.info.started?F.type==="mouseup"?"end":"track":"start",y.info.state==="start"&&Qy("tap"),y.info.addMove({x:a,y:P}),lh(F)||(y.info.state="end",qS(y.info)),h&&Q8f(y.info,h,F),y.info.started=!0)};
kfj(this.info,S,function(F){y.info.started&&S(F);qS(y.info)});
this.info.x=b.clientX;this.info.y=b.clientY}},
touchstart:function(b){b=b.changedTouches[0];this.info.x=b.clientX;this.info.y=b.clientY},
touchmove:function(b){var h=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(b);b=b.changedTouches[0];var y=b.clientX,S=b.clientY;x$F(this.info,y,S)&&(this.info.state==="start"&&Qy("tap"),this.info.addMove({x:y,y:S}),Q8f(this.info,h,b),this.info.state="track",this.info.started=!0)},
touchend:function(b){var h=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(b);b=b.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:b.clientX,y:b.clientY}),Q8f(this.info,h,b))}});
q9r({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(b){lh(b)&&(this.info.x=b.clientX,this.info.y=b.clientY)},
click:function(b){lh(b)&&v75(this.info,b)},
touchstart:function(b){b=b.changedTouches[0];this.info.x=b.clientX;this.info.y=b.clientY},
touchend:function(b){v75(this.info,b.changedTouches[0],b)}});var hkW=r$(function(b){var h=function(){return b.apply(this,arguments)||this};
_.z(h,b);h.prototype._addEventListenerToNode=function(y,S,F){bz(y,S,F)||b.prototype._addEventListenerToNode.call(this,y,S,F)};
h.prototype._removeEventListenerFromNode=function(y,S,F){hm(y,S,F)||b.prototype._removeEventListenerFromNode.call(this,y,S,F)};
return h});var g$=r$(function(b){var h=function(){return b.apply(this,arguments)||this};
_.z(h,b);h.prototype._shouldPropertyChange=function(y,S,F){return bFN(this,y,S,F,!0)};
return h}),y6b=r$(function(b){var h=function(){return b.apply(this,arguments)||this};
_.z(h,b);h.prototype._shouldPropertyChange=function(y,S,F){return bFN(this,y,S,F,this.mutableData)};
_.tm.Object.defineProperties(h,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return h});
g$._mutablePropertyChange=bFN;var hyY=!1;var SQw=hkW(y6b(RO(HTMLElement))),sY=function(){var b=SQw.call(this)||this;if(Zf)throw Error("Nd");b.root=null;b.$=null;b.__children=null;return b};
_.z(sY,SQw);_.d=sY.prototype;_.d.attributeChangedCallback=function(){this.mutableData=!0};
_.d.connectedCallback=function(){y1n()||(this.style.display="none");this.render()};
_.d.disconnectedCallback=function(){this.__removeChildren()};
_.d.__insertChildren=function(){(0,_.GU)((0,_.GU)(this).parentNode).insertBefore(this.root,this)};
_.d.__removeChildren=function(){if(this.__children)for(var b=0;b<this.__children.length;b++)this.root.appendChild(this.__children[b])};
_.d.render=function(){var b=this;if(!this.__children){var h=h||this.querySelector("template");if(!h){var y=new MutationObserver(function(){if(h=b.querySelector("template"))y.disconnect(),b.render();else throw Error("Od");});
y.observe(this,{childList:!0});return}this.root=this._stampTemplate(h);this.$=this.root.$;this.__children=[];for(var S=this.root.firstChild;S;S=S.nextSibling)this.__children[this.__children.length]=S;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.tm.Object.defineProperties(sY,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",sY);Polymer.Debouncer=UY;Polymer.Gestures={gestures:mV,recognizers:xJ,deepTargetFind:V4y,addListener:bz,removeListener:hm,register:q9r,setTouchAction:_.yn,prevent:Qy,resetMouseCanceller:function(){Cp&&Cp.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:bz,remove:hm};Polymer.GestureEventListeners=hkW;Polymer.MutableData=g$;Polymer.OptionalMutableData=y6b;Polymer.DomBind=sY;_.Ye=function(){do{var b=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var h=Qca()}while(b||h)};var SVr=null;FPF.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:FPF,writable:!0}});var ZF4=RO(FPF),KPj=g$(ZF4),FI8=RO(function(){}),jM=function(b){var h=FI8.call(this)||this;
h._configureProperties(b);h.root=h._stampTemplate(h.__dataHost);var y=[];h.children=y;for(var S=h.root.firstChild;S;S=S.nextSibling)y.push(S),S.__templatizeInstance=h;h.__templatizeOwner&&h.__templatizeOwner.__hideTemplateChildren__&&h._showHideChildren(!0);y=h.__templatizeOptions;(b&&y.instanceProps||!y.instanceProps)&&h._enableProperties();return h};
_.z(jM,FI8);_.d=jM.prototype;_.d._configureProperties=function(b){if(this.__templatizeOptions.forwardHostProp)for(var h in this.__hostProps)this._setPendingProperty(h,this.__dataHost["_host_"+h]);for(var y in b)this._setPendingProperty(y,b[y])};
_.d.forwardHostProp=function(b,h){this._setPendingPropertyOrPath(b,h,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.d._addEventListenerToNode=function(b,h,y){var S=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(b,h,function(a){a.model=S;y(a)});
else{var F=this.__dataHost.__dataHost;F&&F._addEventListenerToNode(b,h,y)}};
_.d._showHideChildren=function(b){dq4(b,this.children)};
_.d._setUnmanagedPropertyToNode=function(b,h,y){b.__hideTemplateChildren__&&b.nodeType==Node.TEXT_NODE&&h=="textContent"?b.__polymerTextContent__=y:FI8.prototype._setUnmanagedPropertyToNode.call(this,b,h,y)};
_.d.dispatchEvent=function(){return!0};
_.tm.Object.defineProperties(jM.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var b=this.__parentModel;if(!b){var h;b=this;do b=b.__dataHost.__dataHost;while((h=b.__templatizeOptions)&&!h.parentModel);this.__parentModel=b}return b}}});
var $q5=g$(jM);var TQ=function(){var b=D$.call(this)||this;b.__renderDebouncer=null;b._lastIf=!1;b.__hideTemplateChildren__=!1;return b};
_.z(TQ,D$);_.d=TQ.prototype;_.d.__debounceRender=function(){var b=this;this.__renderDebouncer=_.JD(this.__renderDebouncer,SM,function(){return b.__render()});
_.ey(this.__renderDebouncer)};
_.d.disconnectedCallback=function(){D$.prototype.disconnectedCallback.call(this);var b=(0,_.GU)(this).parentNode;b&&(b.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.GU)(b).host)||this.__teardownInstance()};
_.d.connectedCallback=function(){D$.prototype.connectedCallback.call(this);y1n()||(this.style.display="none");this.if&&this.__debounceRender()};
_.d.__ensureTemplate=function(){var b=this;if(!this.__template){var h=this._templateInfo?this:(0,_.GU)(this).querySelector("template");if(!h){var y=new MutationObserver(function(){if((0,_.GU)(b).querySelector("template"))y.disconnect(),b.__render();else throw Error("Rd");});
y.observe(this,{childList:!0});return!1}this.__template=h}return!0};
_.d.__ensureInstance=function(){var b=(0,_.GU)(this).parentNode;if(this.__hasInstance()){var h=this.__getInstanceNodes();if(h&&h.length&&(0,_.GU)(this).previousSibling!==h[h.length-1])for(var y=0,S=void 0;y<h.length&&(S=h[y]);y++)(0,_.GU)(b).insertBefore(S,this)}else{if(!b||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(b)}return!0};
_.d.render=function(){_.Ye()};
_.d.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();OY&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.d.__hasInstance=function(){};
_.d.__getInstanceNodes=function(){};
_.d.__createAndInsertInstance=function(){};
_.d.__teardownInstance=function(){};
_.d._showHideChildren=function(){};
_.tm.Object.defineProperties(TQ,{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:TQ.prototype.__debounceRender},restamp:{type:Boolean,observer:TQ.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var a1e=function(){var b=TQ.call(this)||this;b.__instance=null;b.__syncInfo=null;return b};
_.z(a1e,TQ);_.d=a1e.prototype;_.d.__hasInstance=function(){return!!this.__instance};
_.d.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.d.__createAndInsertInstance=function(b){var h=this,y=this.__dataHost||this;if(Zf&&!this.__dataHost)throw Error("Pd");var S=y._bindTemplate(this.__template,!0);S.runEffects=function(F,a,P){var K=h.__syncInfo;if(h.if)K&&(h.__syncInfo=null,h._showHideChildren(),a=Object.assign(K.changedProps,a)),F(a,P);else if(h.__instance)if(K||(K=h.__syncInfo={runEffects:F,changedProps:{}}),P)for(var n in a)F=JR(n),K.changedProps[F]=h.__dataHost[F];else Object.assign(K.changedProps,a)};
this.__instance=y._stampTemplate(this.__template,S);(0,_.GU)(b).insertBefore(this.__instance,this)};
_.d.__syncHostProperties=function(){var b=this.__syncInfo;b&&(this.__syncInfo=null,b.runEffects(b.changedProps,!1))};
_.d.__teardownInstance=function(){var b=this.__dataHost||this;this.__instance&&(b._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.d._showHideChildren=function(){var b=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==b&&(this.__instance.__hidden=b,dq4(b,this.__instance.templateInfo.childNodes));b||this.__syncHostProperties()};
var dJe=function(){var b=TQ.call(this)||this;b.__ctor=null;b.__instance=null;b.__invalidProps=null;return b};
_.z(dJe,TQ);_.d=dJe.prototype;_.d.__hasInstance=function(){return!!this.__instance};
_.d.__getInstanceNodes=function(){return this.__instance.children};
_.d.__createAndInsertInstance=function(b){this.__ctor||(this.__ctor=P_(this.__template,this,{mutableData:!0,forwardHostProp:function(h,y){this.__instance&&(this.if?this.__instance.forwardHostProp(h,y):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[JR(h)]=!0))}}));
this.__instance=new this.__ctor;(0,_.GU)(b).insertBefore(this.__instance.root,this)};
_.d.__teardownInstance=function(){if(this.__instance){var b=this.__instance.children;if(b&&b.length){var h=(0,_.GU)(b[0]).parentNode;if(h){h=(0,_.GU)(h);for(var y=0,S=void 0;y<b.length&&(S=b[y]);y++)h.removeChild(S)}}this.__instance=this.__invalidProps=null}};
_.d.__syncHostProperties=function(){var b=this.__invalidProps;if(b){this.__invalidProps=null;for(var h in b)this.__instance._setPendingProperty(h,this.__dataHost[h]);this.__instance._flushProperties()}};
_.d._showHideChildren=function(){var b=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==b&&(this.__instance.__hidden=b,this.__instance._showHideChildren(b));b||this.__syncHostProperties()};
_.eC=uY?a1e:dJe;customElements.define(_.eC.is,_.eC);Polymer.enqueueDebouncer=_.ey;Polymer.flush=_.Ye;Polymer.Templatize={templatize:P_,modelForElement:uWI};Polymer.TemplateInstanceBase=jM;Polymer.DomIf=_.eC;var j_e=y6b(D$),Jo=function(){var b=j_e.call(this)||this;b.__instances=[];b.__renderDebouncer=null;b.__itemsIdxToInstIdx={};b.__chunkCount=null;b.__renderStartTime=null;b.__itemsArrayChanged=!1;b.__shouldMeasureChunk=!1;b.__shouldContinueChunking=!1;b.__chunkingId=0;b.__sortFn=null;b.__filterFn=null;b.__observePaths=null;b.__ctor=null;b.__isDetached=!0;b.template=null;return b};
_.z(Jo,j_e);_.d=Jo.prototype;_.d.disconnectedCallback=function(){j_e.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var b=0;b<this.__instances.length;b++)this.__detachInstance(b);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.d.connectedCallback=function(){j_e.prototype.connectedCallback.call(this);y1n()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var b=(0,_.GU)((0,_.GU)(this).parentNode),h=0;h<this.__instances.length;h++)this.__attachInstance(h,b);this.__chunkingId&&this.__render()}};
_.d.__ensureTemplatized=function(){var b=this;if(!this.__ctor){var h=this.template=this._templateInfo?this:this.querySelector("template");if(!h){var y=new MutationObserver(function(){if(b.querySelector("template"))y.disconnect(),b.__render();else throw Error("Sd");});
y.observe(this,{childList:!0});return!1}var S={};S[this.as]=!0;S[this.indexAs]=!0;S[this.itemsIndexAs]=!0;this.__ctor=P_(h,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:S,forwardHostProp:function(F,a){for(var P=this.__instances,K=0,n=void 0;K<P.length&&(n=P[K]);K++)n.forwardHostProp(F,a)},
notifyInstanceProp:function(F,a,P){gGI(this.as,a)&&(F=F[this.itemsIndexAs],a==this.as&&(this.items[F]=P),a=CP(this.as,"items."+F,a),this.notifyPath(a,P))}})}return!0};
_.d.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.d.__functionFromPropertyValue=function(b){if(typeof b==="string"){var h=this.__getMethodHost();return function(){return h[b].apply(h,arguments)}}return b};
_.d.__sortChanged=function(b){this.__sortFn=this.__functionFromPropertyValue(b);this.items&&this.__debounceRender(this.__render)};
_.d.__filterChanged=function(b){this.__filterFn=this.__functionFromPropertyValue(b);this.items&&this.__debounceRender(this.__render)};
_.d.__computeFrameTime=function(b){return Math.ceil(1E3/b)};
_.d.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.d.__handleObservedPaths=function(b){if(this.__sortFn||this.__filterFn)if(!b)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var h=this.__observePaths,y=0;y<h.length;y++)b.indexOf(h[y])===0&&this.__debounceRender(this.__render,this.delay)};
_.d.__itemsChanged=function(b){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(b.path,b.value)||(b.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.d.__debounceRender=function(b,h){h=h===void 0?0:h;this.__renderDebouncer=_.JD(this.__renderDebouncer,h>0?_.tD.after(h):SM,b.bind(this));_.ey(this.__renderDebouncer)};
_.d.render=function(){this.__debounceRender(this.__render);_.Ye()};
_.d.__render=function(){var b=this;if(this.__ensureTemplatized()){var h=this.items||[],y=this.__sortAndFilterItems(h),S=this.__calculateLimit(y.length);this.__updateInstances(h,S,y);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){b.__chunkingId=null;b.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);OY&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.d.__sortAndFilterItems=function(b){for(var h=this,y=Array(b.length),S=0;S<b.length;S++)y[S]=S;this.__filterFn&&(y=y.filter(function(F,a,P){return h.__filterFn(b[F],a,P)}));
this.__sortFn&&y.sort(function(F,a){return h.__sortFn(b[F],b[a])});
return y};
_.d.__calculateLimit=function(b){var h=b,y=this.__instances.length;if(this.initialCount){var S;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(h=Math.min(b,this.initialCount),this.__chunkCount=(S=Math.max(h-y,0))||1):(S=Math.min(Math.max(b-y,0),this.__chunkCount),h=Math.min(y+S,b));this.__shouldMeasureChunk=S===this.__chunkCount;this.__shouldContinueChunking=h<b;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return h};
_.d.__continueChunking=function(){if(this.__shouldMeasureChunk){var b=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/b*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.d.__updateInstances=function(b,h,y){var S=this.__itemsIdxToInstIdx={},F;for(F=0;F<h;F++){var a=this.__instances[F],P=y[F],K=b[P];S[P]=F;a?(a._setPendingProperty(this.as,K),a._setPendingProperty(this.indexAs,F),a._setPendingProperty(this.itemsIndexAs,P),a._flushProperties()):this.__insertInstance(K,F,P)}for(b=this.__instances.length-1;b>=F;b--)this.__detachAndRemoveInstance(b)};
_.d.__detachInstance=function(b){b=this.__instances[b];for(var h=(0,_.GU)(b.root),y=0;y<b.children.length;y++)h.appendChild(b.children[y]);return b};
_.d.__attachInstance=function(b,h){h.insertBefore(this.__instances[b].root,this)};
_.d.__detachAndRemoveInstance=function(b){this.__detachInstance(b);this.__instances.splice(b,1)};
_.d.__stampInstance=function(b,h,y){var S={};S[this.as]=b;S[this.indexAs]=h;S[this.itemsIndexAs]=y;return new this.__ctor(S)};
_.d.__insertInstance=function(b,h,y){b=this.__stampInstance(b,h,y);y=(y=this.__instances[h+1])?y.children[0]:this;(0,_.GU)((0,_.GU)(this).parentNode).insertBefore(b.root,y);return this.__instances[h]=b};
_.d._showHideChildren=function(b){for(var h=0;h<this.__instances.length;h++)this.__instances[h]._showHideChildren(b)};
_.d.__handleItemPath=function(b,h){var y=b.slice(6),S=y.indexOf(".");b=S<0?y:y.substring(0,S);if(b==parseInt(b,10)){y=S<0?"":y.substring(S+1);this.__handleObservedPaths(y);if(b=this.__instances[this.__itemsIdxToInstIdx[b]])b._setPendingPropertyOrPath(this.as+(y?"."+y:""),h,!1,!0),b._flushProperties();return!0}};
_.d.itemForElement=function(b){return(b=this.modelForElement(b))&&b[this.as]};
_.d.indexForElement=function(b){return(b=this.modelForElement(b))&&b[this.indexAs]};
_.d.modelForElement=function(b){return uWI(this.template,b)};
_.tm.Object.defineProperties(Jo,{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:Jo.prototype.__sortChanged},filter:{type:Function,observer:Jo.prototype.__filterChanged},observe:{type:String,observer:Jo.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!OY,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.*)"]}}});
Jo.prototype._setRenderedItemCount=function(){};
customElements.define(Jo.is,Jo);Polymer.DomRepeat=Jo;var $J8=function(b,h){var y=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=b;this.callback=h;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){y._schedule()};
this.connect();this._schedule()},LIN=function(b){var h=(0,_.GU)(b);
if(o0(b))return h.assignedNodes({flatten:!0});b=[];for(var y=0;y<h.childNodes.length;y++){var S=h.childNodes[y];o0(S)?b.push.apply(b,_.f$((0,_.GU)(S).assignedNodes({flatten:!0}))):b.push(S)}return b};
_.d=$J8.prototype;_.d.connect=function(){var b=this;o0(this._target)?this._listenSlots([this._target]):(0,_.GU)(this._target).children&&(this._listenSlots((0,_.GU)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(h){b._processMutations(h)}):(this._nativeChildrenObserver=new MutationObserver(function(h){b._processMutations(h)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.d.disconnect=function(){o0(this._target)?this._unlistenSlots([this._target]):(0,_.GU)(this._target).children&&(this._unlistenSlots((0,_.GU)(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};
_.d._schedule=function(){var b=this;this._scheduled||(this._scheduled=!0,SM.run(function(){return b.flush()}))};
_.d._processMutations=function(b){this._processSlotMutations(b);this.flush()};
_.d._processSlotMutations=function(b){if(b)for(var h=0;h<b.length;h++){var y=b[h];y.addedNodes&&this._listenSlots(y.addedNodes);y.removedNodes&&this._unlistenSlots(y.removedNodes)}};
_.d.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 b={target:this._target,addedNodes:[],removedNodes:[]},h=LIN(this._target),y=HW4(h,this._effectiveNodes),S=0,F=void 0;S<y.length&&(F=y[S]);S++)for(var a=0,P=void 0;a<F.removed.length&&(P=F.removed[a]);a++)b.removedNodes.push(P);
S=0;for(F=void 0;S<y.length&&(F=y[S]);S++)for(a=F.index;a<F.index+F.addedCount;a++)b.addedNodes.push(h[a]);this._effectiveNodes=h;h=!1;if(b.addedNodes.length||b.removedNodes.length)h=!0,this.callback.call(this._target,b);return h};
_.d._listenSlots=function(b){for(var h=0;h<b.length;h++){var y=b[h];o0(y)&&y.addEventListener("slotchange",this._boundSchedule)}};
_.d._unlistenSlots=function(b){for(var h=0;h<b.length;h++){var y=b[h];o0(y)&&y.removeEventListener("slotchange",this._boundSchedule)}};var GQ=Element.prototype,Pi8=GQ.matches||GQ.matchesSelector||GQ.mozMatchesSelector||GQ.msMatchesSelector||GQ.oMatchesSelector||GQ.webkitMatchesSelector,KI8=function(b,h){return Pi8.call(b,h)},Md=function(b){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(b);
this.node=b},nSG;
_.d=Md.prototype;_.d.observeNodes=function(b){return new $J8(this.node,b)};
_.d.unobserveNodes=function(b){b.disconnect()};
_.d.notifyObserver=function(){};
_.d.deepContains=function(b){if((0,_.GU)(this.node).contains(b))return!0;var h=b;for(b=b.ownerDocument;h&&h!==b&&h!==this.node;)h=(0,_.GU)(h).parentNode||(0,_.GU)(h).host;return h===this.node};
_.d.getOwnerRoot=function(){return(0,_.GU)(this.node).getRootNode()};
_.d.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.GU)(this.node).assignedNodes({flatten:!0}):[]};
_.d.getDestinationInsertionPoints=function(){for(var b=[],h=(0,_.GU)(this.node).assignedSlot;h;)b.push(h),h=(0,_.GU)(h).assignedSlot;return b};
_.d.importNode=function(b,h){return(0,_.GU)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(b,h)};
_.d.getEffectiveChildNodes=function(){return LIN(this.node)};
_.d.queryDistributedElements=function(b){for(var h=this.getEffectiveChildNodes(),y=[],S=0,F=h.length,a=void 0;S<F&&(a=h[S]);S++)a.nodeType===Node.ELEMENT_NODE&&KI8(a,b)&&y.push(a);return y};
_.tm.Object.defineProperties(Md.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var b=this.node;return b._activeElement!==void 0?b._activeElement:b.activeElement}}});
var ke=function(b){this.event=b};
_.tm.Object.defineProperties(ke.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 Ztb=Md;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var oSa=window.ShadyDOM.Wrapper,Mjb=function(){return oSa.apply(this,arguments)||this};
_.z(Mjb,oSa);Object.getOwnPropertyNames(Md.prototype).forEach(function(b){b!="activeElement"&&b!="constructor"&&(Mjb.prototype[b]=Md.prototype[b])});
NQY(Mjb.prototype,["classList"]);Ztb=Mjb;Object.defineProperties(ke.prototype,{localTarget:{get:function(){var b=this.event.currentTarget;b=b&&_.rO(b).getOwnerRoot();for(var h=this.path,y=0;y<h.length;y++){var S=h[y];if(_.rO(S).getOwnerRoot()===b)return S}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else OFq(),NQY(Md.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),tkr();nSG=Ztb;_.rO=function(b){b=b||document;if(b instanceof Ztb)return b;if(b instanceof ke)return b;var h=b.__domApi;h||(b instanceof Event?h=new ke(b):h=new Ztb(b),b.__domApi=h);return h};var X35=/:host\(:dir\((ltr|rtl)\)\)/g,Hte=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,ub8=/:dir\((?:ltr|rtl)\)/,OtP=!(!window.ShadyDOM||!window.ShadyDOM.inUse),Xu=[],V8=null,n2="",NUe=r$(function(b){OtP||V8||(n2=document.documentElement.getAttribute("dir"),V8=new MutationObserver(r1I),V8.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var h=zq7(b);b=function(){var y=h.call(this)||this;y.__autoDirOptOut=!1;return y};
_.z(b,h);b._processStyleText=function(y,S){y=h._processStyleText.call(this,y,S);!OtP&&ub8.test(y)&&(y=this._replaceDirInCssText(y),this.__activateDir=!0);return y};
b._replaceDirInCssText=function(y){y=y.replace(X35,':host([dir="$1"])');return y=y.replace(Hte,':host([dir="$2"]) $1')};
b.prototype.ready=function(){h.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
b.prototype.connectedCallback=function(){h.prototype.connectedCallback&&h.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(V8&&V8.takeRecords().length&&r1I(),Xu.push(this),this.__autoDirOptOut||this.setAttribute("dir",n2))};
b.prototype.disconnectedCallback=function(){h.prototype.disconnectedCallback&&h.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var y=Xu.indexOf(this);y>-1&&Xu.splice(y,1)}};
b.__activateDir=!1;return b});var tje=function(b){for(;b;){var h=Object.getOwnPropertyDescriptor(b,"observedAttributes");if(h)return h.get;b=Object.getPrototypeOf(b.prototype).constructor}return function(){return[]}};
r$(function(b){var h=zQ(b),y=tje(h);b=function(){return h.call(this)||this};
_.z(b,h);b.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:h.prototype._initializeProperties.call(this)};
b.prototype._enableProperties=function(){this.__isUpgradeDisabled||h.prototype._enableProperties.call(this)};
b.prototype._canApplyPropertyDefault=function(S){return h.prototype._canApplyPropertyDefault.call(this,S)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(S))};
b.prototype.attributeChangedCallback=function(S,F,a,P){S=="disable-upgrade"?this.__isUpgradeDisabled&&a==null&&(h.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.GU)(this).isConnected&&h.prototype.connectedCallback.call(this)):h.prototype.attributeChangedCallback.call(this,S,F,a,P)};
b.prototype.connectedCallback=function(){this.__isUpgradeDisabled||h.prototype.connectedCallback.call(this)};
b.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||h.prototype.disconnectedCallback.call(this)};
_.tm.Object.defineProperties(b,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return y.call(this).concat("disable-upgrade")}}});
return b});var H_=!1,RyY=[],uz=[];var BQj=window.ShadyDOM,WPq=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",UqY):document.readyState==="interactive"||document.readyState==="complete"?UqY():window.addEventListener("DOMContentLoaded",UqY);var eyN=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=""},pvy=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,J1F=/@import[^;]*;/gim,G4M=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,k4U=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,Vkj=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,EYr=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,YVM=/^@[^\s]*keyframes/,
sXj=/\s+/g;var iF5={};var lNf=Promise.resolve();var r67=new Set;var c6b=/;\s*/m,Rkb=/^\s*(initial)|(inherit)\s*$/,zke=/\s*!important/,DJ7=function(){this._map={}};
DJ7.prototype.set=function(b,h){b=b.trim();this._map[b]={properties:h,dependants:{}}};
DJ7.prototype.get=function(b){b=b.trim();return this._map[b]||null};
var I18=null,EY=function(){this._measureElement=this._currentElement=null;this._map=new DJ7};
_.d=EY.prototype;_.d.detectMixin=function(b){b=Ex8.test(b)||VCW.test(b);Ex8.lastIndex=0;VCW.lastIndex=0;return b};
_.d.transformTemplate=function(b,h){if(b._gatheredStyle===void 0){var y=[];for(var S=b.content.querySelectorAll("style"),F=0;F<S.length;F++){var a=S[F];if(a.hasAttribute("shady-unscoped")){if(!IaU){var P=a.textContent;if(!r67.has(P)){r67.add(P);var K=document.createElement("style");K.setAttribute("shady-unscoped","");K.textContent=P;document.head.appendChild(K)}a.parentNode.removeChild(a)}}else y.push(a.textContent),a.parentNode.removeChild(a)}(y=y.join("").trim())?(S=document.createElement("style"),
S.textContent=y,b.content.insertBefore(S,b.content.firstChild),y=S):y=null;b._gatheredStyle=y}return(b=b._gatheredStyle)?this.JSC$11454_transformStyle(b,h):null};
_.d.JSC$11454_transformStyle=function(b,h){h=h===void 0?"":h;var y=mqU(b);this.transformRules(y,h);b.textContent=QXM(y);return y};
_.d.transformCustomStyle=function(b){var h=this,y=mqU(b);b8k(y,function(S){S.selector===":root"&&(S.selector="html");h.transformRule(S)});
b.textContent=QXM(y);return y};
_.d.transformRules=function(b,h){var y=this;this._currentElement=h;b8k(b,function(S){y.transformRule(S)});
this._currentElement=null};
_.d.transformRule=function(b){b.cssText=BUG(this,b.parsedCssText,b);b.selector===":root"&&(b.selector=":host > *")};
var BUG=function(b,h,y){h=h.replace(VCW,function(S,F,a,P){return b._produceCssProperties(S,F,a,P,y)});
return b._consumeCssProperties(h,y)};
_.d=EY.prototype;_.d._getInitialValueForProperty=function(b){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(b)};
_.d._fallbacksFromPreviousRules=function(b){for(var h=this,y=b;y.parent;)y=y.parent;var S={},F=!1;b8k(y,function(a){(F=F||a===b)||a.selector===b.selector&&Object.assign(S,h._cssTextToMap(a.parsedCssText))});
return S};
_.d._consumeCssProperties=function(b,h){for(var y;y=Ex8.exec(b);){var S=y[0],F=y[1];y=y.index;var a=y+S.indexOf("@apply"),P=y+S.length;S=b.slice(0,a);b=b.slice(P);a=h?this._fallbacksFromPreviousRules(h):{};Object.assign(a,this._cssTextToMap(S));F=this._atApplyToCssProperties(F,a);b=S+F+b;Ex8.lastIndex=y+F.length}return b};
_.d._atApplyToCssProperties=function(b,h){b=b.replace(c6b,"");var y=[],S=this._map.get(b);S||(this._map.set(b,{}),S=this._map.get(b));if(S){this._currentElement&&(S.dependants[this._currentElement]=!0);var F,a=S.properties;for(F in a){var P=h&&h[F];S=[F,": var(",b,"_-_",F];P&&S.push(",",P.replace(zke,""));S.push(")");zke.test(a[F])&&S.push(" !important");y.push(S.join(""))}}return y.join("; ")};
_.d._replaceInitialOrInherit=function(b,h){var y=Rkb.exec(h);y&&(h=y[1]?this._getInitialValueForProperty(b):"apply-shim-inherit");return h};
_.d._cssTextToMap=function(b,h){h=h===void 0?!1:h;b=b.split(";");for(var y,S,F={},a=0;a<b.length;a++)if(y=b[a])S=y.split(":"),S.length>1&&(y=S[0].trim(),S=S.slice(1).join(":"),h&&(S=this._replaceInitialOrInherit(y,S)),F[y]=S);return F};
_.d._invalidateMixinEntry=function(b){if(I18)for(var h in b.dependants)h!==this._currentElement&&I18(h)};
_.d._produceCssProperties=function(b,h,y,S,F){var a=this;y&&hok(y,function(R,I){I&&a._map.get(I)&&(S="@apply "+I+";")});
if(!S)return b;var P=this._consumeCssProperties(""+S,F);F=b.slice(0,b.indexOf("--"));var K=P=this._cssTextToMap(P,!0),n=this._map.get(h),X=n&&n.properties;X?K=Object.assign(Object.create(X),P):this._map.set(h,K);var u=[],O,N=!1;for(O in K){var t=P[O];t===void 0&&(t="initial");!X||O in X||(N=!0);u.push(h+"_-_"+O+": "+t)}N&&this._invalidateMixinEntry(n);n&&(n.properties=K);y&&(F=b+";"+F);return F+u.join("; ")+";"};
EY.prototype.detectMixin=EY.prototype.detectMixin;EY.prototype.transformStyle=EY.prototype.JSC$11454_transformStyle;EY.prototype.transformCustomStyle=EY.prototype.transformCustomStyle;EY.prototype.transformRules=EY.prototype.transformRules;EY.prototype.transformRule=EY.prototype.transformRule;EY.prototype.transformTemplate=EY.prototype.transformTemplate;EY.prototype._separator="_-_";Object.defineProperty(EY.prototype,"invalidCallback",{get:function(){return I18},
set:function(b){I18=b}});var iY=new EY,WIw=function(){this.customStyleInterface=null;iY.invalidCallback=fNU},fp=function(b){!b.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(b.customStyleInterface=window.ShadyCSS.CustomStyleInterface,b.customStyleInterface.transformCallback=function(h){iY.transformCustomStyle(h)},b.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){b.customStyleInterface.enqueued&&b.flushCustomStyles()})})};
_.d=WIw.prototype;_.d.prepareTemplate=function(b,h){fp(this);y2k(b)===""&&(iF5[h]=b,h=iY.transformTemplate(b,h),b._styleAst=h)};
_.d.flushCustomStyles=function(){fp(this);if(this.customStyleInterface){var b=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var h=0;h<b.length;h++){var y=this.customStyleInterface.getStyleForCustomStyle(b[h]);y&&iY.transformCustomStyle(y)}this.customStyleInterface.enqueued=!1}}};
_.d.styleSubtree=function(b,h){fp(this);h&&NeU(b,h);if(b.shadowRoot)for(this.styleElement(b),b=b.shadowRoot.children||b.shadowRoot.childNodes,h=0;h<b.length;h++)this.styleSubtree(b[h]);else for(b=b.children||b.childNodes,h=0;h<b.length;h++)this.styleSubtree(b[h])};
_.d.styleElement=function(b){fp(this);var h=b.localName,y;h?h.indexOf("-")>-1?y=h:y=b.getAttribute&&b.getAttribute("is")||"":y=b.is;h=iF5[y];if(!(h&&y2k(h)!==""||!h||wvn(h))){if(wvn(h)||h._applyShimValidatingVersion!==h._applyShimNextVersion)this.prepareTemplate(h,y),qVF(h);if(b=b.shadowRoot)if(b=b.querySelector("style"))b.__cssRules=h._styleAst,b.textContent=QXM(h._styleAst)}};
_.d.styleDocument=function(b){fp(this);this.styleSubtree(document.body,b)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var w$=new WIw,A6W=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(b,h){w$.flushCustomStyles();w$.prepareTemplate(b,h)},
prepareTemplateStyles:function(b,h,y){window.ShadyCSS.prepareTemplate(b,h,y)},
prepareTemplateDom:function(){},
styleSubtree:function(b,h){w$.flushCustomStyles();w$.styleSubtree(b,h)},
styleElement:function(b){w$.flushCustomStyles();w$.styleElement(b)},
styleDocument:function(b){w$.flushCustomStyles();w$.styleDocument(b)},
getComputedStyleValue:function(b,h){return t48(b,h)},
flushCustomStyles:function(){w$.flushCustomStyles()},
nativeCss:xqY,nativeShadow:IaU,cssBuild:Nd,disableRuntime:wlw};A6W&&(window.ShadyCSS.CustomStyleInterface=A6W)}window.ShadyCSS.ApplyShim=iY;var UJP;UJP=window.ShadyCSS;_.lY=r$(function(b){b=hkW(zQ(b));var h=C3G?b:NUe(b),y=tje(h),S={x:"pan-x",y:"pan-y",none:"none",all:"auto"};b=function(){return h.call(this)||this};
_.z(b,h);b.prototype.created=function(){};
b.prototype.__attributeReaction=function(F,a,P){(this.__dataAttributes&&this.__dataAttributes[F]||F==="disable-upgrade")&&this.attributeChangedCallback(F,a,P,null)};
b.prototype.setAttribute=function(F,a){if(LcM&&!this._legacyForceObservedAttributes){var P=this.getAttribute(F);h.prototype.setAttribute.call(this,F,a);this.__attributeReaction(F,P,String(a))}else h.prototype.setAttribute.call(this,F,a)};
b.prototype.removeAttribute=function(F){if(LcM&&!this._legacyForceObservedAttributes){var a=this.getAttribute(F);h.prototype.removeAttribute.call(this,F);this.__attributeReaction(F,a,null)}else h.prototype.removeAttribute.call(this,F)};
b.prototype._enableProperties=function(){this.__isUpgradeDisabled||h.prototype._enableProperties.call(this)};
b.prototype._canApplyPropertyDefault=function(F){return h.prototype._canApplyPropertyDefault.call(this,F)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(F))};
b.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(h.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
b.prototype.attached=function(){};
b.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(h.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
b.prototype.detached=function(){};
b.prototype.attributeChangedCallback=function(F,a,P,K){a!==P&&(F=="disable-upgrade"?this.__isUpgradeDisabled&&P==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.GU)(this).isConnected&&this.connectedCallback()):(h.prototype.attributeChangedCallback.call(this,F,a,P,K),this.attributeChanged(F,a,P)))};
b.prototype.attributeChanged=function(){};
b.prototype._initializeProperties=function(){if(a0&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var F=Object.getPrototypeOf(this);F.hasOwnProperty("__hasRegisterFinished")||(this._registered(),F.__hasRegisterFinished=!0);h.prototype._initializeProperties.call(this);this.root=this;this.created();LcM&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
b.prototype._takeAttributes=function(){for(var F=this.attributes,a=0,P=F.length;a<P;a++){var K=F[a];this.__attributeReaction(K.name,null,K.value)}};
b.prototype._registered=function(){};
b.prototype.ready=function(){this._ensureAttributes();h.prototype.ready.call(this)};
b.prototype._ensureAttributes=function(){};
b.prototype._applyListeners=function(){};
b.prototype.serialize=function(F){return this._serializeValue(F)};
b.prototype.deserialize=function(F,a){return this._deserializeValue(F,a)};
b.prototype.reflectPropertyToAttribute=function(F,a,P){this._propertyToAttribute(F,a,P)};
b.prototype.serializeValueToAttribute=function(F,a,P){this._valueToNodeAttribute(P||this,F,a)};
b.prototype.extend=function(F,a){if(!F||!a)return F||a;for(var P=Object.getOwnPropertyNames(a),K=0,n=void 0;K<P.length&&(n=P[K]);K++){var X=Object.getOwnPropertyDescriptor(a,n);X&&Object.defineProperty(F,n,X)}return F};
b.prototype.mixin=function(F,a){for(var P in a)F[P]=a[P];return F};
b.prototype.chainObject=function(F,a){F&&a&&F!==a&&(F.__proto__=a);return F};
b.prototype.instanceTemplate=function(F){F=this.constructor._contentForTemplate(F);return document.importNode(F,!0)};
b.prototype.fire=function(F,a,P){P=P||{};a=a===null||a===void 0?{}:a;F=new Event(F,{bubbles:P.bubbles===void 0?!0:P.bubbles,cancelable:!!P.cancelable,composed:P.composed===void 0?!0:P.composed});F.detail=a;(0,_.GU)(P.node||this).dispatchEvent(F);return F};
b.prototype.listen=function(F,a,P){F=F||this;var K=this.__boundListeners||(this.__boundListeners=new WeakMap),n=K.get(F);n||(n={},K.set(F,n));K=a+P;n[K]||(n[K]=this._addMethodEventListenerToNode(F,a,P,this))};
b.prototype.unlisten=function(F,a,P){F=F||this;var K=this.__boundListeners&&this.__boundListeners.get(F);P=a+P;var n=K&&K[P];n&&(this._removeEventListenerFromNode(F,a,n),K[P]=null)};
b.prototype.setScrollDirection=function(F,a){_.yn(a||this,S[F]||"auto")};
b.prototype.$$=function(F){return this.root.querySelector(F)};
b.prototype.distributeContent=function(){var F=_.rO(this);window.ShadyDOM&&F.shadowRoot&&ShadyDOM.flush()};
b.prototype.getEffectiveChildNodes=function(){return _.rO(this).getEffectiveChildNodes()};
b.prototype.queryDistributedElements=function(F){return _.rO(this).queryDistributedElements(F)};
b.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(F){return F.nodeType===Node.ELEMENT_NODE})};
b.prototype.getEffectiveTextContent=function(){for(var F=this.getEffectiveChildNodes(),a=[],P=0,K;K=F[P];P++)K.nodeType!==Node.COMMENT_NODE&&a.push(K.textContent);return a.join("")};
b.prototype.queryEffectiveChildren=function(F){return(F=this.queryDistributedElements(F))&&F[0]};
b.prototype.queryAllEffectiveChildren=function(F){return this.queryDistributedElements(F)};
b.prototype.getContentChildNodes=function(F){return(F=this.root.querySelector(F||"slot"))?_.rO(F).getDistributedNodes():[]};
b.prototype.getContentChildren=function(F){return this.getContentChildNodes(F).filter(function(a){return a.nodeType===Node.ELEMENT_NODE})};
b.prototype.isLightDescendant=function(F){return this!==F&&(0,_.GU)(this).contains(F)&&(0,_.GU)(this).getRootNode()===(0,_.GU)(F).getRootNode()};
b.prototype.isLocalDescendant=function(F){return this.root===(0,_.GU)(F).getRootNode()};
b.prototype.scopeSubtree=function(F,a){return A1r(F,a===void 0?!1:a)};
b.prototype.getComputedStyleValue=function(F){return UJP.getComputedStyleValue(this,F)};
b.prototype.debounce=function(F,a,P){this._debouncers=this._debouncers||{};return this._debouncers[F]=_.JD(this._debouncers[F],P>0?_.tD.after(P):SM,a.bind(this))};
b.prototype.isDebouncerActive=function(F){this._debouncers=this._debouncers||{};F=this._debouncers[F];return!(!F||!F.isActive())};
b.prototype.flushDebouncer=function(F){this._debouncers=this._debouncers||{};(F=this._debouncers[F])&&F.flush()};
b.prototype.cancelDebouncer=function(F){this._debouncers=this._debouncers||{};(F=this._debouncers[F])&&F.cancel()};
b.prototype.async=function(F,a){return a>0?_.tD.run(F.bind(this),a):~SM.run(F.bind(this))};
b.prototype.cancelAsync=function(F){F<0?SM.cancel(~F):_.tD.cancel(F)};
b.prototype.create=function(F,a){F=document.createElement(F);if(a)if(F.setProperties)F.setProperties(a);else for(var P in a)F[P]=a[P];return F};
b.prototype.elementMatches=function(F,a){return KI8(a||this,F)};
b.prototype.toggleAttribute=function(F,a){var P=this;arguments.length===3&&(P=arguments[2]);arguments.length==1&&(a=!P.hasAttribute(F));if(a)return(0,_.GU)(P).setAttribute(F,""),!0;(0,_.GU)(P).removeAttribute(F);return!1};
b.prototype.toggleClass=function(F,a,P){P=P||this;arguments.length==1&&(a=!P.classList.contains(F));a?P.classList.add(F):P.classList.remove(F)};
b.prototype.transform=function(F,a){a=a||this;a.style.webkitTransform=F;a.style.transform=F};
b.prototype.translate3d=function(F,a,P,K){this.transform("translate3d("+F+","+a+","+P+")",K||this)};
b.prototype.arrayDelete=function(F,a){if(Array.isArray(F)){if(a=F.indexOf(a),a>=0)return F.splice(a,1)}else if(a=sP(this,F).indexOf(a),a>=0)return this.splice(F,a,1);return null};
b.prototype._logger=function(F,a){Array.isArray(a)&&a.length===1&&Array.isArray(a[0])&&(a=a[0]);switch(F){case "log":case "warn":case "error":console[F].apply(console,_.f$(a))}};
b.prototype._log=function(){this._logger("log",_.x$.apply(0,arguments))};
b.prototype._warn=function(){this._logger("warn",_.x$.apply(0,arguments))};
b.prototype._error=function(){this._logger("error",_.x$.apply(0,arguments))};
b.prototype._logf=function(F){return["[%s::%s]",this.is,F].concat(_.f$(_.x$.apply(1,arguments)))};
_.tm.Object.defineProperties(b.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var F=(0,_.GU)(this).getRootNode();return F instanceof DocumentFragment?F.host:F}}});
_.tm.Object.defineProperties(b,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return LcM&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],Won(this.prototype)),this.__observedAttributes):y.call(this).concat("disable-upgrade")}}});
b.prototype.is="";return b});Polymer.FlattenedNodesObserver=$J8;Polymer.DomApi=nSG;Polymer.EventApi=ke;Polymer.dom=_.rO;Polymer.dom.matchesSelector=KI8;Polymer.dom.flush=_.Ye;Polymer.dom.addDebouncer=_.ey;Polymer.DirMixin=NUe;Polymer.RenderStatus={beforeNextRender:_.INM,afterNextRender:_.Ob,flush:function(){for(;RyY.length||uz.length;)c1q(RyY),c1q(uz);H_=!1}};Polymer.LegacyElementMixin=_.lY;var p3w;p3w=g$._mutablePropertyChange;var J6G={properties:{mutableData:Boolean},_shouldPropertyChange:function(b,h,y){return p3w(this,b,h,y,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(b,h,y){return p3w(this,b,h,y,!0)}};
Polymer.OptionalMutableDataBehavior=J6G;var Ser={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},$Mk={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},jyk=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},$Mk),ekM=(0,_.lY)(HTMLElement),bN5=function(b,h){b||console.warn("Polymer.Class requires `info` argument");h=h?h(ekM):ekM;h=LLU(b,h,b.behaviors);h.is=h.prototype.is=
b.is;return h};Polymer.Class=bN5;Polymer.mixinBehaviors=function(b,h){return LLU({},(0,_.lY)(h),b)};
Polymer.GenerateClassFromInfo=LLU;_.pZ=function(b){var h=typeof b==="function"?b:_.pZ.Class(b);b._legacyForceObservedAttributes&&(h.prototype._legacyForceObservedAttributes=b._legacyForceObservedAttributes);customElements.define(h.is,h);return h};
_.pZ.Class=bN5;Polymer._polymerFn=_.pZ;var Cia=window.onLegacyPolymerFunctionDefinedCallback;Cia&&Cia();var yf4={templatize:function(b,h){this._templatizerTemplate=b;this.ctor=P_(b,this,{mutableData:!!h,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(b){return new this.ctor(b)},
modelForElement:function(b){return uWI(this._templatizerTemplate,b)}};Polymer.Templatizer=yf4;_.qE=(0,_.lY)(HTMLElement).prototype;Polymer.Base=_.qE;var KLF=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.rk=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.z(_.rk,PolymerFakeBaseClass);var c_=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.z(c_,PolymerFakeBaseClass);var Z8r=Symbol("Td"),NXn=[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 gS7=gS7||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},s_W;(function(b){function h(Y,w,x){var q=E.get(Y);if(!q){if(!x)return;q=new p;E.set(Y,q)}Y=q.get(w);if(!Y){if(!x)return;Y=new p;q.set(w,Y)}return Y}
function y(Y,w,x){if(S(Y,w,x))return!0;w=N(w);return w!==null?y(Y,w,x):!1}
function S(Y,w,x){w=h(w,x,!1);return w===void 0?!1:!!w.has(Y)}
function F(Y,w,x){if(S(Y,w,x))return a(Y,w,x);w=N(w);if(w!==null)return F(Y,w,x)}
function a(Y,w,x){w=h(w,x,!1);if(w!==void 0)return w.get(Y)}
function P(Y,w){var x=K(Y,w);Y=N(Y);if(Y===null)return x;var q=P(Y,w);if(q.length<=0)return x;if(x.length<=0)return q;w=new e;Y=[];x=_.L(x);for(var dI=x.next();!dI.done;dI=x.next())dI=dI.value,w.has(dI)||(w.add(dI),Y.push(dI));x=_.L(q);for(q=x.next();!q.done;q=x.next())q=q.value,w.has(q)||(w.add(q),Y.push(q));return Y}
function K(Y,w){Y=h(Y,w,!1);var x=[];Y&&Y.forEach(function(q,dI){return x.push(dI)});
return x}
function n(Y){return Y===void 0}
function X(Y){return typeof Y==="object"?Y!==null:typeof Y==="function"}
function u(Y){return typeof Y==="function"}
function O(Y){return typeof Y==="symbol"?Y:String(Y)}
function N(Y){var w=Object.getPrototypeOf(Y);if(typeof Y!=="function"||Y===U||w!==U)return w;var x=Object.getPrototypeOf(Y.prototype);if(x==null||x===Object.prototype)return w;x=x.constructor;return typeof x!=="function"||x===Y?w:x}
function t(){function Y(){this._keys=[];this._values=[];this._cache=w}
var w={};Y.prototype={get size(){return this._keys.length},has:function(x){return x===this._cache?!0:this._find(x)>=0?(this._cache=x,!0):!1},
get:function(x){var q=this._find(x);if(q>=0)return this._cache=x,this._values[q]},
set:function(x,q){this.delete(x);this._keys.push(x);this._values.push(q);this._cache=x;return this},
delete:function(x){x=this._find(x);return x>=0?(this._keys.splice(x,1),this._values.splice(x,1),this._cache=w,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=w},
forEach:function(x){for(var q=this.size,dI=0;dI<q;++dI){var L4=this._keys[dI],Rq=this._values[dI];this._cache=L4;x.call(this,Rq,L4,this)}},
_find:function(x){for(var q=this._keys,dI=q.length,L4=0;L4<dI;++L4)if(q[L4]===x)return L4;return-1}};
return Y}
function R(){function Y(){this._map=new p}
Y.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,x){this._map.forEach(w,x)}};
return Y}
function I(){function Y(){this._key=x()}
function w(Ny,gI){for(var YU=0;YU<gI;++YU)Ny[YU]=Math.random()*255|0}
function x(){do{if(dI)var Ny=dI.randomBytes(16);else typeof Uint8Array==="function"?(Ny=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(Ny):w(Ny,16)):(Ny=Array(16),w(Ny,16));Ny[6]=Ny[6]&79|64;Ny[8]=Ny[8]&191|128;for(var gI="",YU=0;YU<16;++YU){var VN=Ny[YU];if(YU===4||YU===6||YU===8)gI+="-";VN<16&&(gI+="0");gI+=VN.toString(16).toLowerCase()}Ny="@@WeakMap@@"+gI}while(L4.call(Rq,Ny));Rq[Ny]=!0;return Ny}
function q(Ny,gI){if(!L4.call(Ny,Xn)){if(!gI)return;Object.defineProperty(Ny,Xn,{value:Object.create(null)})}return Ny[Xn]}
var dI=typeof global!=="undefined"&&typeof gS7==="object"&&typeof require==="function"&&require("crypto"),L4=Object.prototype.hasOwnProperty,Rq={},Xn=x();Y.prototype={has:function(Ny){return(Ny=q(Ny,!1))?this._key in Ny:!1},
get:function(Ny){if(Ny=q(Ny,!1))return Ny[this._key]},
set:function(Ny,gI){q(Ny,!0)[this._key]=gI;return this},
delete:function(Ny){return(Ny=q(Ny,!1))&&this._key in Ny?delete Ny[this._key]:!1},
clear:function(){this._key=x()}};
return Y}
var U=Object.getPrototypeOf(Function),p=typeof Map==="function"?Map:t(),e=typeof Set==="function"?Set:R(),E=new (typeof WeakMap==="function"?WeakMap:I());b.decorate=function(Y,w,x,q){if(n(q)){if(n(x)){if(!Array.isArray(Y))throw new TypeError;if(!u(w))throw new TypeError;for(x=Y.length-1;x>=0;--x)if(q=(0,Y[x])(w),!n(q)){if(!u(q))throw new TypeError;w=q}return w}if(!Array.isArray(Y))throw new TypeError;if(!X(w))throw new TypeError;x=O(x);for(q=Y.length-1;q>=0;--q)(0,Y[q])(w,x)}else{if(Array.isArray(Y))if(X(w)){if(n(x))throw new TypeError;
if(!X(q))throw new TypeError;}else throw new TypeError;else throw new TypeError;x=O(x);for(var dI=Y.length-1;dI>=0;--dI){var L4=(0,Y[dI])(w,x,q);if(!n(L4)){if(!X(L4))throw new TypeError;q=L4}}return q}};
b.metadata=function(Y,w){return function(x,q){if(n(q)){if(!u(x))throw new TypeError;h(x,void 0,!0).set(Y,w)}else{if(!X(x))throw new TypeError;q=O(q);h(x,q,!0).set(Y,w)}}};
b.defineMetadata=function(Y,w){var x;if(X(w))n(x)||(x=O(x));else throw new TypeError;h(w,x,!0).set("parameters",Y)};
b.hasMetadata=function(Y,w,x){if(X(w))n(x)||(x=O(x));else throw new TypeError;return y(Y,w,x)};
b.hasOwnMetadata=function(Y,w,x){if(X(w))n(x)||(x=O(x));else throw new TypeError;return S(Y,w,x)};
b.getMetadata=function(Y,w,x){if(X(w))n(x)||(x=O(x));else throw new TypeError;return F(Y,w,x)};
b.getOwnMetadata=function(Y,w,x){if(X(w))n(x)||(x=O(x));else throw new TypeError;return a(Y,w,x)};
b.getMetadataKeys=function(Y,w){if(X(Y))n(w)||(w=O(w));else throw new TypeError;return P(Y,w)};
b.getOwnMetadataKeys=function(Y,w){if(X(Y))n(w)||(w=O(w));else throw new TypeError;return K(Y,w)};
b.deleteMetadata=function(Y,w,x){if(X(w))n(x)||(x=O(x));else throw new TypeError;var q=h(w,x,!1);if(!n(q)){if(!q.delete(Y))return!1;if(q.size>0)return!0;Y=E.get(w);Y.delete(x);if(Y.size>0)return!0;E.delete(w);return!0}};
(function(Y){if(typeof Y.Reflect!=="undefined"){if(Y.Reflect!==b)for(var w in b)Y.Reflect[w]=b[w]}else Y.Reflect=b})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(s_W||(s_W={}));var Wzk=self;var YQW=[0,_.h2,_.FH,_.h2];var TUe=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(TUe,_.ZL);var GKM=_.IR(TUe,[0,_.K8,_.L8,YQW,_.FH,_.oy]);var VjM=[0,_.ZS,-3,_.oy,_.K8,_.h2,_.KYo,_.ZS,oFb,$AM,Q7,_.yw,_.h2,function(){return kKo},
_.FH],kKo=[0,_.L8,function(){return VjM},
_.K8,14,_.ZS];_.Pv(_.R0,_.ED);_.d=_.R0.prototype;_.d.start=function(){this.stop();this.usingListeners_=!1;var b=ESW(this),h=ito(this);b&&!h&&this.JSC$11497_win_.mozRequestAnimationFrame?(this.JSC$11497_id_=_.W3(this.JSC$11497_win_,"MozBeforePaint",this.callback_),this.JSC$11497_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11497_id_=b&&h?b.call(this.JSC$11497_win_,this.callback_):this.JSC$11497_win_.setTimeout(pEN(this.callback_),20)};
_.d.stop=function(){if(this.isActive()){var b=ESW(this),h=ito(this);b&&!h&&this.JSC$11497_win_.mozRequestAnimationFrame?D1(this.JSC$11497_id_):b&&h?h.call(this.JSC$11497_win_,this.JSC$11497_id_):this.JSC$11497_win_.clearTimeout(this.JSC$11497_id_)}this.JSC$11497_id_=null};
_.d.fire=function(){this.stop();this.JSC$11499_doAction_()};
_.d.isActive=function(){return this.JSC$11497_id_!=null};
_.d.JSC$11499_doAction_=function(){this.usingListeners_&&this.JSC$11497_id_&&D1(this.JSC$11497_id_);this.JSC$11497_id_=null;this.JSC$11497_listener_.call(this.handler_,_.LF())};
_.d.disposeInternal=function(){this.stop();_.R0.superClass_.disposeInternal.call(this)};
var ESW=function(b){b=b.JSC$11497_win_;return b.requestAnimationFrame||b.webkitRequestAnimationFrame||b.mozRequestAnimationFrame||b.oRequestAnimationFrame||b.msRequestAnimationFrame||null},ito=function(b){b=b.JSC$11497_win_;
return b.cancelAnimationFrame||b.cancelRequestAnimationFrame||b.webkitCancelRequestAnimationFrame||b.mozCancelRequestAnimationFrame||b.oCancelRequestAnimationFrame||b.msCancelRequestAnimationFrame||null};_.MG=function(b,h,y){_.ED.call(this);this.JSC$11500_listener_=y!=null?b.bind(y):b;this.JSC$11500_interval_=h;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11500_timer_=null};
_.z(_.MG,_.ED);_.d=_.MG.prototype;_.d.fire=function(b){this.args_=arguments;this.JSC$11500_timer_||this.pauseCount_?this.shouldFire_=!0:f15(this)};
_.d.stop=function(){this.JSC$11500_timer_&&(_.S5.clearTimeout(this.JSC$11500_timer_),this.JSC$11500_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.d.pause=function(){this.pauseCount_++};
_.d.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11500_timer_||(this.shouldFire_=!1,f15(this))};
_.d.disposeInternal=function(){_.ED.prototype.disposeInternal.call(this);this.stop()};
var f15=function(b){b.JSC$11500_timer_=qk(function(){b.JSC$11500_timer_=null;b.shouldFire_&&!b.pauseCount_&&(b.shouldFire_=!1,f15(b))},b.JSC$11500_interval_);
var h=b.args_;b.args_=null;b.JSC$11500_listener_.apply(null,h)};var w3P=function(b,h){this.childIterator_=b[_.S5.Symbol.iterator]();this.mapFn_=h};
w3P.prototype[Symbol.iterator]=function(){return this};
w3P.prototype.next=function(){var b=this.childIterator_.next();return{value:b.done?void 0:this.mapFn_.call(void 0,b.value),done:b.done}};
var l1W=function(b,h){return new w3P(b,h)};var qQW={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 HCU=function(b){var h=xJa(b);if(!h)throw Error("Xd`"+b);return h},xJa=function(b){var h={};
b=String(b);var y=b.charAt(0)=="#"?b:"#"+b;if(Q_8.test(y))return h.hex=jnI(y),h.type="hex",h;y=tNN(b);return y.length?(h.hex=wQI(y[0],y[1],y[2]),h.type="rgb",h):qQW&&(b=qQW[b.toLowerCase()])?(h.hex=b,h.type="named",h):null},mJa=/#(.)(.)(.)/,jnI=function(b){if(!Q_8.test(b))throw Error("Zd`"+b);
b.length==4&&(b=b.replace(mJa,"#$1$1$2$2$3$3"));return b.toLowerCase()},u74=function(b){b=jnI(b);
b=parseInt(b.slice(1),16);return[b>>16,b>>8&255,b&255]},wQI=function(b,h,y){b=Number(b);
h=Number(h);y=Number(y);if(b!=(b&255)||h!=(h&255)||y!=(y&255))throw Error("$d`"+b+"`"+h+"`"+y);h=b<<16|h<<8|y;return b<16?"#"+(16777216|h).toString(16).slice(1):"#"+h.toString(16)},Q_8=/^#(?:[0-9a-f]{3}){1,2}$/i,vSM=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,tNN=function(b){var h=b.match(vSM);
if(h){b=Number(h[1]);var y=Number(h[2]);h=Number(h[3]);if(b>=0&&b<=255&&y>=0&&y<=255&&h>=0&&h<=255)return[b,y,h]}return[]};var b9W={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},HV=b9W;HV=b9W;var TKj,hzW,y4W;TKj=function(b,h){switch(h){case 1:return b%4!=0||b%100==0&&b%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
hzW=function(b,h,y,S,F){b=new Date(b,h,y);F=F||0;return b.valueOf()+(((S!==void 0?S:3)-F+7)%7-((b.getDay()+6)%7-F+7)%7)*864E5};
_.xe=function(b,h,y){typeof b==="number"?(this.date=y4W(b,h||0,y||1),SkM(this,y||1)):_.lf(b)?(this.date=y4W(b.getFullYear(),b.getMonth(),b.getDate()),SkM(this,b.getDate())):(this.date=new Date(_.LF()),b=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),SkM(this,b))};
y4W=function(b,h,y){h=new Date(b,h,y);b>=0&&b<100&&h.setFullYear(h.getFullYear()-1900);return h};
_.d=_.xe.prototype;_.d.firstDayOfWeek_=HV.FIRSTDAYOFWEEK;_.d.firstWeekCutOffDay_=HV.FIRSTWEEKCUTOFFDAY;_.d.clone=function(){var b=new _.xe(this.date);b.firstDayOfWeek_=this.firstDayOfWeek_;b.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return b};
_.d.getFullYear=function(){return this.date.getFullYear()};
_.d.getYear=function(){return this.getFullYear()};
_.d.getMonth=function(){return this.date.getMonth()};
_.d.getDate=function(){return this.date.getDate()};
_.d.getTime=function(){return this.date.getTime()};
_.d.getDay=function(){return this.date.getDay()};
_.d.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.d.getUTCMonth=function(){return this.date.getUTCMonth()};
_.d.getUTCDate=function(){return this.date.getUTCDate()};
_.d.getUTCDay=function(){return this.date.getDay()};
_.d.getUTCHours=function(){return this.date.getUTCHours()};
_.d.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.d.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.d.set=function(b){this.date=new Date(b.getFullYear(),b.getMonth(),b.getDate())};
_.d.setFullYear=function(b){this.date.setFullYear(b)};
_.d.setYear=function(b){this.setFullYear(b)};
_.d.setMonth=function(b){this.date.setMonth(b)};
_.d.setDate=function(b){this.date.setDate(b)};
_.d.setTime=function(b){this.date.setTime(b)};
_.d.setUTCFullYear=function(b){this.date.setUTCFullYear(b)};
_.d.setUTCMonth=function(b){this.date.setUTCMonth(b)};
_.d.setUTCDate=function(b){this.date.setUTCDate(b)};
_.d.add=function(b){if(b.years||b.months){var h=this.getMonth()+b.months+b.years*12,y=this.getYear()+Math.floor(h/12);h%=12;h<0&&(h+=12);var S=Math.min(TKj(y,h),this.getDate());this.setDate(1);this.setFullYear(y);this.setMonth(h);this.setDate(S)}b.days&&(y=this.getYear(),h=y>=0&&y<=99?-1900:0,b=new Date((new Date(y,this.getMonth(),this.getDate(),12)).getTime()+b.days*864E5),this.setDate(1),this.setFullYear(b.getFullYear()+h),this.setMonth(b.getMonth()),this.setDate(b.getDate()),SkM(this,b.getDate()))};
_.d.JSC$11513_toIsoString=function(b){var h=this.getFullYear(),y=h<0?"-":h>=1E4?"+":"";return[y+_.NM(Math.abs(h),y?6:4),_.NM(this.getMonth()+1,2),_.NM(this.getDate(),2)].join(b?"-":"")};
_.d.equals=function(b){return!(!b||this.getYear()!=b.getYear()||this.getMonth()!=b.getMonth()||this.getDate()!=b.getDate())};
_.d.toString=function(){return this.JSC$11513_toIsoString()};
var SkM=function(b,h){b.getDate()!=h&&b.date.setUTCHours(b.date.getUTCHours()+(b.getDate()<h?1:-1))};
_.xe.prototype.valueOf=function(){return this.date.valueOf()};var mb=function(b,h,y,S,F){this.reversed=!!h;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!y;b&&Q8(this,b,S);this.depth=F!=void 0?F:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.Pv(mb,Wa);var Q8=function(b,h,y,S){if(b.node=h)b.tagType=typeof y==="number"?y:b.node.nodeType!=1?0:b.reversed?-1:1;typeof S==="number"&&(b.depth=S)};
_.d=mb.prototype;_.d.JSC$11528_copyFrom=function(b){this.node=b.node;this.tagType=b.tagType;this.depth=b.depth;this.reversed=b.reversed;this.constrained=b.constrained};
_.d.clone=function(){return new mb(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.d.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return Aq;var b=this.node;var h=this.reversed?-1:1;if(this.tagType==h){var y=this.reversed?b.lastChild:b.firstChild;y?Q8(this,y):Q8(this,b,h*-1)}else(y=this.reversed?b.previousSibling:b.nextSibling)?Q8(this,y):Q8(this,b.parentNode,h*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(b=this.node)?U$(b):Aq};
_.d.equals=function(b){return b.node==this.node&&(!this.node||b.tagType==this.tagType)};
_.d.splice=function(b){var h=this.node,y=this.reversed?1:-1;this.tagType==y&&(this.tagType=y*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;mb.prototype.next.call(this);this.reversed=!this.reversed;y=_.f4(arguments[0])?arguments[0]:arguments;for(var S=y.length-1;S>=0;S--)_.qM(y[S],h);_.sD(h)};var FfN=function(){},vH=function(b){for(var h=[],y=b.getTextRangeCount(),S=0;S<y;S++)h.push(b.getTextRange(S));
return h};
FfN.prototype.isReversed=function(){return!1};
FfN.prototype.getWindow=function(){return QX(_.mQ(this.JSC$11530_getStartNode()))};
var avb=function(b,h){mb.call(this,b,h,!0)};
_.Pv(avb,mb);var bt=function(b,h,y,S,F){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!F;if(b){this.startNode_=b;this.startOffset_=h;this.endNode_=y;this.endOffset_=S;if(b.nodeType==1&&b.tagName!="BR")if(b=b.childNodes,h=b[h])this.startNode_=h,this.startOffset_=0;else{b.length&&(this.startNode_=_.Uj(b));var a=!0}y.nodeType==1&&((this.endNode_=y.childNodes[S])?this.endOffset_=0:this.endNode_=y)}mb.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);a&&this.next()};
_.Pv(bt,avb);_.d=bt.prototype;_.d.JSC$11536_getStartNode=function(){return this.startNode_};
_.d.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)};
_.d.next=function(){return this.isLast()?Aq:bt.superClass_.next.call(this)};
_.d.JSC$11528_copyFrom=function(b){this.startNode_=b.startNode_;this.endNode_=b.endNode_;this.startOffset_=b.startOffset_;this.endOffset_=b.endOffset_;this.isReversed_=b.isReversed_;bt.superClass_.JSC$11528_copyFrom.call(this,b)};
_.d.clone=function(){var b=new bt(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);b.JSC$11528_copyFrom(this);return b};var dGM=function(){};
dGM.prototype.__iterator__=function(){return new bt(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var hV=function(b){this.range_=b};
_.Pv(hV,dGM);var jFw=function(b){var h=_.mQ(b).createRange();if(b.nodeType==3)h.setStart(b,0),h.setEnd(b,b.length);else if(f8(b)||b.nodeType==3){for(var y,S=b;(y=S.firstChild)&&(f8(y)||y.nodeType==3);)S=y;h.setStart(S,0);for(S=b;(y=S.lastChild)&&(f8(y)||y.nodeType==3);)S=y;h.setEnd(S,S.nodeType==1?S.childNodes.length:S.length)}else y=b.parentNode,b=Array.prototype.indexOf.call(y.childNodes,b),h.setStart(y,b),h.setEnd(y,b+1);return h},$G8=function(b,h,y,S){var F=_.mQ(b).createRange();
F.setStart(b,h);F.setEnd(y,S);return F};
_.d=hV.prototype;_.d.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.d.getContainer=function(){return this.range_.commonAncestorContainer};
_.d.compareBrowserRangeEndpoints=function(b,h,y){return this.range_.compareBoundaryPoints(y==1?h==1?_.S5.Range.START_TO_START:_.S5.Range.START_TO_END:h==1?_.S5.Range.END_TO_START:_.S5.Range.END_TO_END,b)};
_.d.isCollapsed=function(){return this.range_.collapsed};
_.d.select=function(b){this.selectInternal(QX(_.mQ(this.range_.startContainer)).getSelection(),b)};
_.d.selectInternal=function(b){b.removeAllRanges();b.addRange(this.range_)};
_.d.insertNode=function(b,h){var y=this.range_.cloneRange();y.collapse(h);y.insertNode(b);y.detach();return b};
_.d.collapse=function(b){this.range_.collapse(b)};_.Pv(zN,hV);zN.prototype.selectInternal=function(b,h){!h||this.isCollapsed()?zN.superClass_.selectInternal.call(this,b,h):(b.collapse(this.range_.endContainer,this.range_.endOffset),b.extend(this.range_.startContainer,this.range_.startOffset))};_.Pv(Df,hV);Df.prototype.compareBrowserRangeEndpoints=function(b,h,y){return Df.superClass_.compareBrowserRangeEndpoints.call(this,b,h,y)};
Df.prototype.selectInternal=function(b,h){h?b.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):b.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var Lfo=function(b){return _.Hv?new Df(b):_.XW?new zN(b):new hV(b)};var y0=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},Pp8;
_.Pv(y0,FfN);Pp8=function(b,h){var y=new y0;y.browserRangeWrapper_=b;y.isReversed_=!!h;return y};
_.Kfw=function(b){b=_.Hv?new Df(jFw(b)):_.XW?new zN(jFw(b)):new hV(jFw(b));return Pp8(b)};
_.SQ=function(b,h,y,S){var F=new y0;F.isReversed_=Z95(b,h,y,S);if(_.nK(b)&&!f8(b)){var a=b.parentNode;h=Array.prototype.indexOf.call(a.childNodes,b);b=a}_.nK(y)&&!f8(y)&&(a=y.parentNode,S=Array.prototype.indexOf.call(a.childNodes,y),y=a);F.isReversed_?(F.startNode_=y,F.startOffset_=S,F.endNode_=b,F.endOffset_=h):(F.startNode_=b,F.startOffset_=h,F.endNode_=y,F.endOffset_=S);return F};
_.d=y0.prototype;_.d.clone=function(){var b=new y0;b.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();b.startNode_=this.startNode_;b.startOffset_=this.startOffset_;b.endNode_=this.endNode_;b.endOffset_=this.endOffset_;b.isReversed_=this.isReversed_;return b};
_.d.JSC$11530_getType=function(){return"text"};
_.d.getBrowserRangeObject=function(){return FK(this).range_};
_.d.getTextRangeCount=function(){return 1};
_.d.getTextRange=function(){return this};
var FK=function(b){var h;if(!(h=b.browserRangeWrapper_)){h=b.JSC$11530_getStartNode();var y=b.JSC$11530_getStartOffset(),S=b.JSC$11530_getEndNode(),F=b.JSC$11530_getEndOffset();h=_.Hv?new Df($G8(h,y,S,F)):_.XW?new zN($G8(h,y,S,F)):new hV($G8(h,y,S,F));h=b.browserRangeWrapper_=h}return h};
_.d=y0.prototype;_.d.getContainer=function(){return FK(this).getContainer()};
_.d.JSC$11530_getStartNode=function(){return this.startNode_||(this.startNode_=FK(this).range_.startContainer)};
_.d.JSC$11530_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=FK(this).range_.startOffset};
_.d.JSC$11530_getEndNode=function(){return this.endNode_||(this.endNode_=FK(this).range_.endContainer)};
_.d.JSC$11530_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=FK(this).range_.endOffset};
_.d.isReversed=function(){return this.isReversed_};
_.d.JSC$11530_containsRange=function(b,h){if(b.JSC$11530_getType()=="text"){var y=FK(this);b=FK(b);h=h&&!b.isCollapsed();b=b.range_;y=h?y.compareBrowserRangeEndpoints(b,0,1)>=0&&y.compareBrowserRangeEndpoints(b,1,0)<=0:y.compareBrowserRangeEndpoints(b,0,0)>=0&&y.compareBrowserRangeEndpoints(b,1,1)<=0}else y=!1;return y};
_.d.isCollapsed=function(){return FK(this).isCollapsed()};
_.d.JSC$11530_getText=function(){return FK(this).range_.toString()};
_.d.__iterator__=function(){return new bt(this.JSC$11530_getStartNode(),this.JSC$11530_getStartOffset(),this.JSC$11530_getEndNode(),this.JSC$11530_getEndOffset())};
_.d.select=function(){FK(this).select(this.isReversed_)};
_.d.JSC$11530_removeContents=function(){var b=FK(this).range_;b.extractContents();if(b.startContainer.hasChildNodes()&&(b=b.startContainer.childNodes[b.startOffset])){var h=b.previousSibling;B1W(b)==""&&_.sD(b);h&&B1W(h)==""&&_.sD(h)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.d.insertNode=function(b,h){b=FK(this).insertNode(b,h);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return b};
_.d.collapse=function(b){b=this.isReversed()?!b:b;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(b);b?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var oE8=function(){};
_.Pv(oE8,FfN);oE8.prototype.JSC$11530_containsRange=function(b,h){var y=vH(this);b=vH(b);return(h?Z7:_.liF)(b,function(S){return Z7(y,function(F){return F.JSC$11530_containsRange(S,h)})})};
oE8.prototype.insertNode=function(b,h){h?_.l4(b,this.JSC$11530_getStartNode()):_.qM(b,this.JSC$11530_getEndNode());return b};var MsN,nE7=GP().JSC$9509_document_.documentElement;MsN=nE7.requestFullscreen?"fullscreenchange":nE7.webkitRequestFullscreen?"webkitfullscreenchange":nE7.mozRequestFullScreen?"mozfullscreenchange":nE7.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var X2G=function(){var b=GP().JSC$9509_document_;return!!(b.webkitIsFullScreen||b.mozFullScreen||b.msFullscreenElement||b.fullscreenElement)};var aB=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.Pv(aB,oE8);_.d=aB.prototype;_.d.clone=function(){var b=new aB;b.browserRanges_=_.Ej(this.browserRanges_);return b};
_.d.JSC$11530_getType=function(){return"mutli"};
_.d.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.d.getTextRangeCount=function(){return this.browserRanges_.length};
_.d.getTextRange=function(b){this.ranges_[b]||(this.ranges_[b]=Pp8(Lfo(this.browserRanges_[b])));return this.ranges_[b]};
_.d.getContainer=function(){if(!this.container_){for(var b=[],h=this.getTextRangeCount(),y=0;y<h;y++)b.push(this.getTextRange(y).getContainer());this.container_=tFo.apply(null,b)}return this.container_};
var d5=function(b){b.sortedRanges_||(b.sortedRanges_=vH(b),b.sortedRanges_.sort(function(h,y){var S=h.JSC$11530_getStartNode();h=h.JSC$11530_getStartOffset();var F=y.JSC$11530_getStartNode();y=y.JSC$11530_getStartOffset();return S==F&&h==y?0:Z95(S,h,F,y)?1:-1}));
return b.sortedRanges_};
_.d=aB.prototype;_.d.JSC$11530_getStartNode=function(){return d5(this)[0].JSC$11530_getStartNode()};
_.d.JSC$11530_getStartOffset=function(){return d5(this)[0].JSC$11530_getStartOffset()};
_.d.JSC$11530_getEndNode=function(){return _.Uj(d5(this)).JSC$11530_getEndNode()};
_.d.JSC$11530_getEndOffset=function(){return _.Uj(d5(this)).JSC$11530_getEndOffset()};
_.d.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.d.JSC$11530_getText=function(){return vH(this).map(function(b){return b.JSC$11530_getText()}).join("")};
_.d.__iterator__=function(){return new jQ(this)};
_.d.select=function(){var b=this.getWindow().getSelection();b.removeAllRanges();for(var h=this.getTextRangeCount(),y=0;y<h;y++)b.addRange(this.getTextRange(y).getBrowserRangeObject())};
_.d.JSC$11530_removeContents=function(){vH(this).forEach(function(b){b.JSC$11530_removeContents()})};
_.d.collapse=function(b){if(!this.isCollapsed()){var h=b?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;h.collapse(b);this.ranges_=[h];this.sortedRanges_=[h];this.browserRanges_=[h.getBrowserRangeObject()]}};
var jQ=function(b){this.iterators_=null;this.currentIdx_=0;b&&(this.iterators_=d5(b).map(function(h){return _.Bha(h)}));
mb.call(this,b?this.JSC$11536_getStartNode():null,!1,!0)};
_.Pv(jQ,avb);_.d=jQ.prototype;_.d.JSC$11536_getStartNode=function(){return this.iterators_[0].JSC$11536_getStartNode()};
_.d.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.d.next=function(){for(;this.currentIdx_<this.iterators_.length;){var b=this.iterators_[this.currentIdx_],h=b.next();if(h.done)this.currentIdx_++;else return Q8(this,b.node,b.tagType,b.depth),h}return Aq};
_.d.JSC$11528_copyFrom=function(b){this.iterators_=_.Ej(b.iterators_);jQ.superClass_.JSC$11528_copyFrom.call(this,b)};
_.d.clone=function(){var b=new jQ(null);b.JSC$11528_copyFrom(this);return b};var H9N,Z95;_.ZA=function(){var b=window.getSelection();return b&&H9N(b)};
H9N=function(b){var h=!1;if(b.createRange)try{var y=b.createRange()}catch(F){return null}else if(b.rangeCount){if(b.rangeCount>1){y=new aB;h=b.rangeCount;for(var S=0;S<h;S++)y.browserRanges_.push(b.getRangeAt(S));return y}y=b.getRangeAt(0);h=Z95(b.anchorNode,b.anchorOffset,b.focusNode,b.focusOffset)}else return null;return Pp8(Lfo(y),h)};
_.$q=function(b,h){return _.SQ(b,h,b,h)};
_.LT=function(b,h,y,S){return _.SQ(b,h,y,S)};
Z95=function(b,h,y,S){if(b==y)return S<h;var F;if(b.nodeType==1&&h)if(F=b.childNodes[h])b=F,h=0;else if(_.ds(b,y))return!0;if(y.nodeType==1&&S)if(F=y.childNodes[S])y=F,S=0;else if(_.ds(y,b))return!1;return(N1a(b,y)||h-S)>0};var PI=function(){_.TI.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.i5)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.i5)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.i5)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.i5)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.i5)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.i5)(this.dispatchProgressEvent_,this)};
_.Pv(PI,_.TI);PI.prototype.abort=function(){try{this.reader_.abort()}catch(b){throw new AeM(b,"aborting read");}};
PI.prototype.getError=function(){return this.reader_.error&&new AeM(this.reader_.error,"reading file")};
PI.prototype.dispatchProgressEvent_=function(b){this.dispatchEvent(new UQP(b,this))};
PI.prototype.disposeInternal=function(){PI.superClass_.disposeInternal.call(this);delete this.reader_};
var O9W=function(b){var h=new PI,y=uvw(h);h.reader_.readAsArrayBuffer(b);return y},NSw=function(b){var h=new PI,y=uvw(h);
h.reader_.readAsDataURL(b);return y},uvw=function(b){var h=new nG;
b.listen("loadend",_.X8(function(y,S){var F=S.reader_.result,a=S.getError();F==null||a?y.errback(a):y.callback(F);S.dispose()},h,b));
return h};var KT=function(){_.TI.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11570_eventHandler_=new _.B_(this);this.JSC$11570_isInitialized_=!1};
_.Pv(KT,_.TI);var tsw=new _.JU("d"),r4W=new _.JU("beforedragstart"),c4e=new _.JU("dragstart"),Rz7=new _.JU("beforedragmove"),zz8=new _.JU("dragmove"),DG5=new _.JU("beforedragend"),Iva=new _.JU("dragend"),BS8=new _.JU("e");KT.prototype.isDragging=function(){return!!this.JSC$11570_dragger_};
var Wf5=function(b,h){h.dlgGrowthDirection_=0;h.dlgDragHoverClass_=void 0;h.dlgDragPermission=0;b.dragLists_.push(h)},A4o=function(b,h){b.getHandleForDragItem_=h};
KT.prototype.init=function(){if(!this.JSC$11570_isInitialized_){for(var b=this.dragLists_.length,h=0;h<b;h++)for(var y=_.xB(this.dragLists_[h]),S=y.length,F=0;F<S;++F){var a=y[F],P=this.getHandleForDragItem_(a),K=_.mM(P);this.dragItemForHandle_[K]=a;this.dragItemHoverClasses_&&(this.JSC$11570_eventHandler_.listen(a,"mouseover",this.handleDragItemMouseover_),this.JSC$11570_eventHandler_.listen(a,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11570_eventHandler_.listen(P,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11570_eventHandler_.listen(P,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(a);this.JSC$11570_eventHandler_.listen(P,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11570_isInitialized_=!0}};
KT.prototype.disposeInternal=function(){this.JSC$11570_eventHandler_.dispose();for(var b=this.dragLists_.length,h=0;h<b;h++){var y=this.dragLists_[h];y.dlgGrowthDirection_=void 0;y.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;UGN(this);KT.superClass_.disposeInternal.call(this)};
var p2W=function(b,h){for(var y=b.dragLists_.length,S=0;S<y;S++){var F=b.dragLists_[S];F.dlgBounds_=DMI(F)}y=b.dragItems_.length;for(S=0;S<y;S++)F=b.dragItems_[S],F!=h&&(F.dlgBounds_=DMI(F))};
_.d=KT.prototype;
_.d.handlePotentialDragStart_=function(b){var h=_.mM(b.currentTarget);h=this.dragItemForHandle_[h];if(h.parentElement.dlgDragPermission!=2){this.currDragItem_=h;a:{h=this.currDragItem_;for(var y=h.cloneNode(!0),S=T$("TEXTAREA",h),F=T$("TEXTAREA",y),a=0;a<S.length;a++)F[a].value=S[a].value;switch(h.tagName){case "TR":h=_.Ee("TABLE",null,_.Ee("TBODY",null,y));break a;case "TD":case "TH":h=_.Ee("TABLE",null,_.Ee("TBODY",null,_.Ee("TR",null,y)));break a;case "TEXTAREA":y.value=h.value;default:h=y;break a}h=
void 0}this.draggerEl_=h;this.draggerElClasses_&&oE(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.mQ(this.currDragItem_).body.appendChild(this.draggerEl_);y=_.vB(this.currDragItem_);h=this.draggerEl_;S=_.vB(h);if(y instanceof _.xb){var P=y.y;y=y.x}hU(h,h.offsetLeft+(y-S.x),h.offsetTop+(Number(P)-S.y));this.JSC$11570_dragger_=new _.d4(this.draggerEl_);_.Wd8(this.JSC$11570_dragger_,this.hysteresisDistance_);
_.W3(this.JSC$11570_dragger_,"start",this.handleDragStart_,!1,this);_.W3(this.JSC$11570_dragger_,"end",this.handleDragEnd_,!1,this);_.W3(this.JSC$11570_dragger_,"earlycancel",this.JSC$11572_cleanup_,!1,this);this.dispatchEvent(new ZX(tsw,this,b,this.currDragItem_,this.draggerEl_,this.JSC$11570_dragger_));this.JSC$11570_dragger_.startDrag(b)}};
_.d.handleDragStart_=function(b){if(this.dispatchEvent(new ZX(r4W,this,b.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.HDa(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?oE(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var h=eXb(this.draggerEl_);this.draggerEl_.halfWidth=h.width/2;this.draggerEl_.halfHeight=h.height/2;h=this.draggerEl_.getBoundingClientRect();
var y=b.clientY,S=AmM(this.JSC$11570_dragger_,b.clientX);if(S>h.right){var F=this.currDragItem_.getBoundingClientRect();this.JSC$11570_dragger_.deltaX=S-(S-F.left)/F.width*h.width}y=UdN(this.JSC$11570_dragger_,y);y>h.bottom&&(this.JSC$11570_dragger_.deltaY+=y-h.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";p2W(this,this.currDragItem_);this.currDragItem_.style.display="";_.W3(this.JSC$11570_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new ZX(c4e,
this,b.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11570_dragger_))}else b.preventDefault(),this.JSC$11572_cleanup_()};
_.d.handleDragMove_=function(b){var h=_.vB(this.draggerEl_);h=new _.xb(h.x+this.draggerEl_.halfWidth,h.y+this.draggerEl_.halfHeight);a:{var y=null;if(this.currDragItem_.style.display!="none"){y=this.currDragItem_.parentNode;var S=DMI(y);if(J4G(h,S))break a}S=this.dragLists_.length;for(var F=0;F<S;F++){var a=this.dragLists_[F];if(a!=y&&J4G(h,a.dlgBounds_)){y=a;break a}}y=null}if(y){if(y==null)throw Error("ae");S=0;F=!1;a=void 0;switch(y.dlgGrowthDirection_){case 0:S=h.y;var P=ez7;var K=Cpw;break;case 4:F=
!0;case 2:S=h.x;P=gE7;K=Cpw;break;case 5:F=!0;case 3:S=h.x,P=sFw,K=Yk5}for(var n=null,X,u=_.xB(y),O=u.length,N=0;N<O;N++){var t=u[N];if(t!=this.currDragItem_){var R=P(t.dlgBounds_);if(F){var I=TS7(t,h);a===void 0&&(a=I);K(S,R)&&(X==void 0||I<a||I==a&&(K(R,X)||R==X))&&(n=t,X=R);I<a&&(a=I)}else K(S,R)&&(X==void 0||K(R,X))&&(n=t,X=R)}}P=n!==null&&TS7(n,h)>a?null:n}else P=null;if(!this.dispatchEvent(new ZX(Rz7,this,b,this.currDragItem_,this.draggerEl_,this.JSC$11570_dragger_,h,y,P)))return!1;if(y&&y.dlgDragPermission!=
1)this.currDragItem_.parentNode==y&&_.HDa(this.currDragItem_)==P||y.insertBefore(this.currDragItem_,P),this.currDragItem_.style.display="",y.dlgDragHoverClass_&&_.xS(y,y.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",K=this.dragLists_.length,X=0;X<K;X++)S=this.dragLists_[X],S.dlgDragHoverClass_&&_.qJ(S,S.dlgDragHoverClass_);y!=this.currHoverList_&&(this.currHoverList_=y,p2W(this,this.currDragItem_));this.dispatchEvent(new ZX(zz8,this,b,this.currDragItem_,this.draggerEl_,this.JSC$11570_dragger_,
h,y,P));return!1};
_.d.JSC$11572_cleanup_=function(){UGN(this);this.JSC$11570_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var b=this.dragLists_.length,h=0;h<b;h++)this.dragLists_[h].dlgBounds_=null;b=this.dragItems_.length;for(h=0;h<b;h++)this.dragItems_[h].dlgBounds_=null};
_.d.handleDragEnd_=function(b){if(!this.dispatchEvent(new ZX(DG5,this,b,this.currDragItem_,this.draggerEl_,this.JSC$11570_dragger_)))return!1;UGN(this);this.dispatchEvent(new ZX(Iva,this,b,this.currDragItem_,this.draggerEl_,this.JSC$11570_dragger_));this.JSC$11572_cleanup_();return!0};
var UGN=function(b){_.nq(b.JSC$11570_dragger_);var h=b.draggerEl_&&b.draggerEl_.parentElement;b.draggerEl_&&_.sD(b.draggerEl_);b.currDragItem_&&b.currDragItem_.style.display=="none"&&(b.origList_.insertBefore(b.currDragItem_,b.origNextItem_),b.currDragItem_.style.display="");b.currDragItemClasses_&&b.currDragItem_?IBP(b.currDragItem_,b.currDragItemClasses_||[]):b.currDragItem_&&(b.currDragItem_.style.visibility="");for(var y=b.dragLists_.length,S=0;S<y;S++){var F=b.dragLists_[S];F.dlgDragHoverClass_&&
_.qJ(F,F.dlgDragHoverClass_)}h&&b.dispatchEvent(new ZX(BS8,b,null,b.currDragItem_,b.draggerEl_,b.JSC$11570_dragger_))};
_.d=KT.prototype;_.d.getHandleForDragItem_=function(b){return b};
_.d.handleDragItemMouseover_=function(b){oE(b.currentTarget,this.dragItemHoverClasses_||[])};
_.d.handleDragItemMouseout_=function(b){IBP(b.currentTarget,this.dragItemHoverClasses_||[])};
_.d.handleDragItemHandleMouseover_=function(b){oE(b.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.d.handleDragItemHandleMouseout_=function(b){IBP(b.currentTarget,this.dragItemHandleHoverClasses_||[])};
var J4G=function(b,h){return b.x>h.left&&b.x<h.left+h.width&&b.y>h.top&&b.y<h.top+h.height},TS7=function(b,h){b=b.dlgBounds_;
return Math.abs(h.y-(b.top+(b.height-1)/2))},ez7=function(b){return b.top+b.height-1},gE7=function(b){return b.left+b.width-1},sFw=function(b){return b.left||0},Cpw=function(b,h){return b<h},Yk5=function(b,h){return b>h},ZX=function(b,h,y,S,F,a){_.eW.call(this,b);
this.event=y;this.currDragItem=S;this.draggerEl=F;this.JSC$11574_dragger=a};
_.Pv(ZX,_.eW);_.Pv(W_,_.ED);var GA5=new _.xb(0,0);W_.prototype.JSC$11578_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
W_.prototype.JSC$11578_onMouseMove=function(b){var h=this.containerIsActuallyContent_?GA5:TP(GP(this.containerNode_)),y=this.horizontalScrolling_?this.calculateScrollDelta(b.clientX+h.x,this.scrollBounds_.left,this.scrollBounds_.width):0,S=this.calculateScrollDelta(b.clientY+h.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=y;this.scrollDelta_.y=S;!(y=!y&&!S)&&(y=this.constrainScroll_)&&(y=b.clientX+h.x,b=b.clientY+h.y,h=this.containerBounds_,y=!(h.left<=y&&h.left+h.width>=
y&&h.top<=b&&h.top+h.height>=b));y?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
W_.prototype.calculateScrollDelta=function(b,h,y){var S=0;b<h?S=-8:b>h+y&&(S=8);return S};
W_.prototype.disposeInternal=function(){W_.superClass_.disposeInternal.call(this);this.JSC$11576_eventHandler_.dispose();this.scrollTimer_.dispose()};var kAG={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"}}},oB=kAG;oB=kAG;var MB={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 VsN=function(){},x8=function(b){if(typeof b=="number"){var h=new VsN;
h.standardOffset_=b;var y=b;if(y==0)y="Etc/GMT";else{var S=["Etc/GMT",y<0?"-":"+"];y=Math.abs(y);S.push(Math.floor(y/60)%100);y%=60;y!=0&&S.push(":",_.NM(y,2));y=S.join("")}h.timeZoneId_=y;y=b;y==0?y="UTC":(S=["UTC",y<0?"+":"-"],y=Math.abs(y),S.push(Math.floor(y/60)%100),y%=60,y!=0&&S.push(":",y),y=S.join(""));b=EEb(b);h.tzNames_=[y,y];h.tzNamesExt_={STD_LONG_NAME_GMT:b,STD_GENERIC_LOCATION:b};h.transitions_=[];return h}h=new VsN;h.timeZoneId_=b.id;h.standardOffset_=-b.std_offset;h.tzNames_=b.names;
h.tzNamesExt_=b.names_ext;h.transitions_=b.transitions;return h},EEb=function(b){var h=["GMT"];
h.push(b<=0?"+":"-");b=Math.abs(b);h.push(_.NM(Math.floor(b/60)%100,2),":",_.NM(b%60,2));return h.join("")},i9o=function(b,h){h=Date.UTC(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate(),h.getUTCHours(),h.getUTCMinutes())/36E5;
for(var y=0;y<b.transitions_.length&&h>=b.transitions_[y];)y+=2;return y==0?0:b.transitions_[y-1]},fv8=function(b,h){b=b.standardOffset_-i9o(b,h);
return b===-1440?0:b};var QE=function(b,h){this.patternParts_=[];this.JSC$11589_dateTimeSymbols_=h||HV;typeof b=="number"?w2W(this,b):lv7(this,b)},qkG=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],nT=function(b){return b.getHours?b.getHours():0},lv7=function(b,h){for(W0r&&(h=h.replace(/\u200f/g,""));h;){for(var y=h,S=0;S<qkG.length;++S){var F=h.match(qkG[S]);
if(F){var a=F[0];h=h.substring(a.length);S==0&&(a=="''"?a="'":(a=a.substring(1,F[1]=="'"?a.length-1:a.length),a=a.replace(/''/g,"'")));b.patternParts_.push({text:a,type:S});break}}if(y===h)throw Error("be`"+h);}};
QE.prototype.format=function(b,h){if(!b)throw Error("ce");var y=h?(b.getTimezoneOffset()-fv8(h,b))*6E4:0,S=y?new Date(b.getTime()+y):b,F=S;h&&S.getTimezoneOffset()!=b.getTimezoneOffset()&&(S=new Date(S.getTime()+(S.getTimezoneOffset()-b.getTimezoneOffset())*6E4),F=new Date(b.getTime()+(y+(y>0?-864E5:864E5))));y=[];for(var a=0;a<this.patternParts_.length;++a){var P=this.patternParts_[a].text;1==this.patternParts_[a].type?y.push(xGW(this,P,b,S,F,h)):y.push(P)}return y.join("")};
var w2W=function(b,h){if(h<4)var y=b.JSC$11589_dateTimeSymbols_.DATEFORMATS[h];else if(h<8)y=b.JSC$11589_dateTimeSymbols_.TIMEFORMATS[h-4];else if(h<12)y=b.JSC$11589_dateTimeSymbols_.DATETIMEFORMATS[h-8],y=y.replace("{1}",b.JSC$11589_dateTimeSymbols_.DATEFORMATS[h-8]),y=y.replace("{0}",b.JSC$11589_dateTimeSymbols_.TIMEFORMATS[h-8]);else if(h===12)y=b.JSC$11589_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(h===13)y=b.JSC$11589_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{w2W(b,10);return}lv7(b,y)},XK=function(b,h){h=String(h);
b=b.JSC$11589_dateTimeSymbols_||HV;if(b.ZERODIGIT!==void 0&&!Bay){for(var y=[],S=0;S<h.length;S++){var F=h.charCodeAt(S);y.push(48<=F&&F<=57?String.fromCharCode(b.ZERODIGIT+F-48):h.charAt(S))}h=y.join("")}return h},Bay=!1,W0r=!1,mGb=function(b,h,y,S){y=y.getFullYear();
y<=0&&S&&(y=1-y);return XK(b,QF7(y,h))},QF7=function(b,h){h==2&&(b%=100);
b<0&&h++;return _.NM(b,h)},HI=function(b){if(!(b.getHours&&b.getSeconds&&b.getMinutes))throw Error("de");
},vEa=function(b,h){HI(h);
h=nT(h);return b.JSC$11589_dateTimeSymbols_.AMPMS[h>=12&&h<24?1:0]},xGW=function(b,h,y,S,F,a){var P=h.length;
switch(h.charAt(0)){case "G":return y=S.getFullYear()>0?1:0,P>=4?b.JSC$11589_dateTimeSymbols_.ERANAMES[y]:b.JSC$11589_dateTimeSymbols_.ERAS[y];case "y":return mGb(b,P,S,!0);case "Y":return y=(new Date(hzW(S.getFullYear(),S.getMonth(),S.getDate(),b.JSC$11589_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,b.JSC$11589_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),P==2&&(y%=100),XK(b,QF7(y,P));case "u":return mGb(b,P,S,!1);case "M":a:switch(y=S.getMonth(),P){case 5:P=b.JSC$11589_dateTimeSymbols_.NARROWMONTHS[y];
break a;case 4:P=b.JSC$11589_dateTimeSymbols_.MONTHS[y];break a;case 3:P=b.JSC$11589_dateTimeSymbols_.SHORTMONTHS[y];break a;default:P=XK(b,_.NM(y+1,P))}return P;case "k":return HI(F),XK(b,_.NM(nT(F)||24,P));case "S":return XK(b,(F.getMilliseconds()/1E3).toFixed(Math.min(3,P)).slice(2)+(P>3?_.NM(0,P-3):""));case "E":return y=S.getDay(),P>=4?b.JSC$11589_dateTimeSymbols_.WEEKDAYS[y]:b.JSC$11589_dateTimeSymbols_.SHORTWEEKDAYS[y];case "a":return vEa(b,F);case "b":return vEa(b,F);case "B":return vEa(b,
F);case "h":return HI(F),XK(b,_.NM(nT(F)%12||12,P));case "K":return HI(F),XK(b,_.NM(nT(F)%12,P));case "H":return HI(F),XK(b,_.NM(nT(F),P));case "c":a:switch(y=S.getDay(),P){case 5:P=b.JSC$11589_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[y];break a;case 4:P=b.JSC$11589_dateTimeSymbols_.STANDALONEWEEKDAYS[y];break a;case 3:P=b.JSC$11589_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[y];break a;default:P=XK(b,_.NM(y,1))}return P;case "L":a:switch(y=S.getMonth(),P){case 5:P=b.JSC$11589_dateTimeSymbols_.STANDALONENARROWMONTHS[y];
break a;case 4:P=b.JSC$11589_dateTimeSymbols_.STANDALONEMONTHS[y];break a;case 3:P=b.JSC$11589_dateTimeSymbols_.STANDALONESHORTMONTHS[y];break a;default:P=XK(b,_.NM(y+1,P))}return P;case "Q":return y=Math.floor(S.getMonth()/3),P<4?b.JSC$11589_dateTimeSymbols_.SHORTQUARTERS[y]:b.JSC$11589_dateTimeSymbols_.QUARTERS[y];case "d":return XK(b,_.NM(S.getDate(),P));case "m":return HI(F),XK(b,_.NM(F.getMinutes?F.getMinutes():0,P));case "s":return HI(F),XK(b,_.NM(F.getSeconds(),P));case "v":return(a||x8(y.getTimezoneOffset())).timeZoneId_;
case "V":return b=a||x8(y.getTimezoneOffset()),P<=2?b.timeZoneId_:i9o(b,y)>0?b.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?b.tzNamesExt_.DST_GENERIC_LOCATION:b.tzNamesExt_.DST_GENERIC_LOCATION:b.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?b.tzNamesExt_.STD_GENERIC_LOCATION:b.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return y=hzW(F.getFullYear(),F.getMonth(),F.getDate(),b.JSC$11589_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,b.JSC$11589_dateTimeSymbols_.FIRSTDAYOFWEEK),XK(b,_.NM(Math.floor(Math.round((y-(new Date((new Date(y)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,P));case "z":return b=a||x8(y.getTimezoneOffset()),P<4?b.tzNames_[i9o(b,y)>0?2:0]:b.tzNames_[i9o(b,y)>0?3:1];case "Z":return h=a||x8(y.getTimezoneOffset()),P<4?(P=-fv8(h,y),b=[P<0?"-":"+"],P=Math.abs(P),b.push(_.NM(Math.floor(P/60)%100,2),_.NM(P%60,2)),P=b.join("")):P=XK(b,EEb(fv8(h,y))),P;default:return""}};var bh8=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,hT5=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,K7y=function(b){this.patternParts_=[];this.JSC$11598_dateTimeSymbols_=HV;if(typeof b=="number"){b>11&&(b=10);if(b<4)var h=this.JSC$11598_dateTimeSymbols_.DATEFORMATS[b];else b<8?h=this.JSC$11598_dateTimeSymbols_.TIMEFORMATS[b-4]:(h=this.JSC$11598_dateTimeSymbols_.DATETIMEFORMATS[b-8],h=h.replace("{1}",this.JSC$11598_dateTimeSymbols_.DATEFORMATS[b-8]),h=h.replace("{0}",this.JSC$11598_dateTimeSymbols_.TIMEFORMATS[b-
8]));yBW(this,h)}else yBW(this,b)},yBW=function(b,h){for(var y=!1,S="",F=0;F<h.length;F++){var a=h.charAt(F);
if(bh8.test(a))for(S.length>0&&(b.patternParts_.push({text:S,count:0,abutStart:!1,numeric:!1}),S=""),b.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});F<h.length-1&&h.charAt(F+1)==" ";)F++;else if(y)a=="'"?F+1<h.length&&h.charAt(F+1)=="'"?(S+="'",F++):y=!1:S+=a;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(a)>=0){S.length>0&&(b.patternParts_.push({text:S,count:0,abutStart:!1,numeric:!1}),S="");for(var P=h.charAt(F),K=F+1;K<h.length&&h.charAt(K)==P;)K++;P=K-F;P<=0?K=!1:(K="MydhHmsSDkK".indexOf(a),
K=K>0||K==0&&P<3);b.patternParts_.push({text:a,count:P,abutStart:!1,numeric:K});F+=P-1}else a=="'"?F+1<h.length&&h.charAt(F+1)=="'"?(S+="'",F++):y=!0:S+=a}S.length>0&&b.patternParts_.push({text:S,count:0,abutStart:!1,numeric:!1});h=!1;for(y=0;y<b.patternParts_.length;y++)b.patternParts_[y].numeric?!h&&y+1<b.patternParts_.length&&b.patternParts_[y+1].numeric&&(h=!0,b.patternParts_[y].abutStart=!0):h=!1};
K7y.prototype.parse=function(b,h,y){var S=!1,F=!1;y&&(S=y.predictive||!1,F=y.validate||!1);if(S)for(y=0;y<this.patternParts_.length;y++){var a=this.patternParts_[y];if(a.count>0&&("abBhHkKm".indexOf(a.text.charAt(0))<0||a.count>2||a.abutStart))throw Error("ee`"+a.text.charAt(0));}a=new SF8;y=[0];a.dayPeriodIndex=-1;for(var P=0;P<this.patternParts_.length&&!(S&&y[0]>=b.length);P++){if(this.patternParts_[P].count==0){a:{var K=b;var n=y,X=this.patternParts_[P],u=S;if(X.text.match(bh8)!=null){if(X=n[0],
Flo(K,n),n[0]>X){K=!0;break a}}else{if(K.indexOf(X.text,n[0])==n[0]){n[0]+=X.text.length;K=!0;break a}if(u&&X.text.indexOf(K.substring(n[0]))==0){n[0]+=K.length-n[0];K=!0;break a}}K=!1}if(K)continue;return 0}if(this.patternParts_[P].abutStart){a:{n=b;X=y;u=P;var O=X[0],N=0;for(K=u;K<this.patternParts_.length;K++){var t=this.patternParts_[K],R=t.count;if(R===0)break;if(K==u&&(R-=N,N++,R==0)){K=0;break a}var I=K>u&&t.numeric,U=X[0];if(!a5G(this,n,X,t,R,a,!1)||I&&X[0]-U<R)K=u-1,X[0]=O}K-=u}if(K<=0)return 0;
P+=K-1}else if(!a5G(this,b,y,this.patternParts_[P],0,a,S))return 0}a:{b=F;if(h==null)throw Error("fe");a.era!=void 0&&a.year!=void 0&&a.era==0&&a.year>0&&(a.year=-(a.year-1));a.year!=void 0&&h.setFullYear(a.year);S=h.getDate();h.setDate(1);a.month!=void 0&&h.setMonth(a.month);a.day!=void 0?h.setDate(a.day):(F=TKj(h.getFullYear(),h.getMonth()),h.setDate(S>F?F:S));typeof h.setHours==="function"&&(a.hours==void 0&&(a.hours=h.getHours()),a.hours<12&&(a.ampm!=void 0&&a.ampm>0?a.hours+=12:a.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(a.dayPeriodName)||["night1","night2"].includes(a.dayPeriodName)&&a.hours>=6)&&(a.hours+=12)),h.setHours(a.hours));typeof h.setMinutes==="function"&&a.minutes!=void 0&&h.setMinutes(a.minutes);typeof h.setSeconds==="function"&&a.seconds!=void 0&&h.setSeconds(a.seconds);typeof h.setMilliseconds==="function"&&a.milliseconds!=void 0&&h.setMilliseconds(a.milliseconds);if(b&&(a.year&&a.year!=h.getFullYear()||a.month&&a.month!=
h.getMonth()||a.day&&a.day!=h.getDate()||a.hours&&a.hours>=24||a.minutes&&a.minutes>=60||a.seconds&&a.seconds>=60||a.milliseconds&&a.milliseconds>=1E3))h=!1;else{a.tzOffset!=void 0&&h.setTime(h.getTime()+(a.tzOffset-h.getTimezoneOffset())*60*1E3);a.ambiguousYear&&(b=new Date,b.setFullYear(b.getFullYear()-80),h.getTime()<b.getTime()&&h.setFullYear(b.getFullYear()+100));if(a.dayOfWeek!=void 0)if(a.day==void 0)a=(7+a.dayOfWeek-h.getDay())%7,a>3&&(a-=7),b=h.getMonth(),h.setDate(h.getDate()+a),h.getMonth()!=
b&&h.setDate(h.getDate()+(a>0?-7:7));else if(a.dayOfWeek!=h.getDay()){h=!1;break a}h=!0}}return h?y[0]:0};
var a5G=function(b,h,y,S,F,a,P){Flo(h,y);if(S.numeric&&F>0&&y[0]+F>h.length)return!1;switch(S.text.charAt(0)){case "G":return ut(h,y,[b.JSC$11598_dateTimeSymbols_.ERAS],function(K){return a.era=K}),!0;
case "M":case "L":return dn5(b,h,y,F,S,a);case "E":return ut(h,y,[b.JSC$11598_dateTimeSymbols_.WEEKDAYS,b.JSC$11598_dateTimeSymbols_.SHORTWEEKDAYS],function(K){return a.dayOfWeek=K});
case "B":case "b":return F=[],b=[[].concat(b.JSC$11598_dateTimeSymbols_.AMPMS)],F.push("isAm"),F.push("isPm"),h=ut(h,y,b,function(K){return a.dayPeriodIndex=K},P),a.dayPeriodName=F[a.dayPeriodIndex],P?h:!0;
case "a":return h=ut(h,y,[b.JSC$11598_dateTimeSymbols_.AMPMS],function(K){return a.ampm=K},P),P?h:!0;
case "y":return j7W(b,h,y,S,F,a);case "Q":return ut(h,y,[b.JSC$11598_dateTimeSymbols_.QUARTERS,b.JSC$11598_dateTimeSymbols_.SHORTQUARTERS],function(K){a.month=K*3;a.day=1});
case "d":return OR(b,h,y,S,F,function(K){a.day=K}),!0;
case "S":return $na(b,h,y,F,a);case "h":case "K":case "H":case "k":return h=OR(b,h,y,S,F,function(K){a.hours=S.text.charAt(0)==="h"&&K===12?0:K},P),P?h:!0;
case "m":return h=OR(b,h,y,S,F,function(K){a.minutes=K},P),P?h:!0;
case "s":return OR(b,h,y,S,F,function(K){a.seconds=K}),!0;
case "z":case "Z":case "v":return LlW(b,h,y,a);default:return!1}},j7W=function(b,h,y,S,F,a){var P=y[0];
F=NB(b,h,y,F);F===null&&(F=NB(b,h,y,0,!0));if(F===null)return!1;F>=0&&y[0]-P==2&&S.count==2?(b=F,h=(new Date).getFullYear()-80,y=h%100,a.ambiguousYear=b==y,b+=Math.floor(h/100)*100+(b<y?100:0),a.year=b):a.year=F;return!0},dn5=function(b,h,y,S,F,a){return F.numeric&&OR(b,h,y,F,S,function(P){a.month=P-1})?!0:ut(h,y,[b.JSC$11598_dateTimeSymbols_.MONTHS,
b.JSC$11598_dateTimeSymbols_.STANDALONEMONTHS,b.JSC$11598_dateTimeSymbols_.SHORTMONTHS,b.JSC$11598_dateTimeSymbols_.STANDALONESHORTMONTHS],function(P){a.month=P})},$na=function(b,h,y,S,F){var a=y[0];
b=NB(b,h,y,S);if(b===null)return!1;y=y[0]-a;F.milliseconds=y<3?b*Math.pow(10,3-y):Math.round(b/Math.pow(10,y-3));return!0},LlW=function(b,h,y,S){h.indexOf("GMT",y[0])==y[0]&&(y[0]+=3);
if(y[0]>=h.length)return S.tzOffset=0,!0;var F=y[0],a=NB(b,h,y,0,!0);if(a===null)return!1;if(y[0]<h.length&&h.charAt(y[0])==":"){var P=a*60;y[0]++;a=NB(b,h,y,0);if(a===null)return!1;P+=a}else P=a,P=P<24&&y[0]-F<=3?P*60:P%100+P/100*60;S.tzOffset=-P;return!0},OR=function(b,h,y,S,F,a,P){P=P||!1;
var K=y[0];b=NB(b,h,y,F);if(b===null)return!1;if(P&&y[0]-K<S.count){if(y[0]<h.length)return!1;b*=Math.pow(10,S.count-(y[0]-K))}a(b);return!0},ut=function(b,h,y,S,F){F=F||!1;
for(var a,P=0;P<y.length;P++){a=h;for(var K=y[P],n=F,X=0,u=null,O=b.substring(a[0]).toLowerCase(),N=0;N<K.length;N++){var t=K[N].toLowerCase();if(n&&t.indexOf(O)==0){X=O.length;u=N;break}K[N].length>X&&O.indexOf(t)==0&&(X=K[N].length,u=N)}u!==null&&(a[0]+=X);a=u;if(a!==null)return S(a),!0}return!1},Flo=function(b,h){(b=b.substring(h[0]).match(hT5))&&(h[0]+=b[0].length)},NB=function(b,h,y,S,F){h=S>0?h.substring(0,y[0]+S):h;
F=F||!1;if(b.JSC$11598_dateTimeSymbols_.ZERODIGIT){S=[];for(var a=y[0];a<h.length;a++){var P=h.charCodeAt(a)-b.JSC$11598_dateTimeSymbols_.ZERODIGIT;S.push(0<=P&&P<=9?String.fromCharCode(P+48):h.charAt(a))}h=S.join("")}else h=h.substring(y[0]);b=h.match(new RegExp("^"+(F?"[+-]?":"")+"\\d+"));if(!b)return null;y[0]+=b[0].length;return parseInt(b[0],10)},SF8=function(){};
SF8.prototype.ambiguousYear=!1;var PMW;
PMW={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 Kl8={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}"]};
Kl8={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 ZhM=function(){var b={type:"unit",style:"narrow"};this.listType_=b&&b.type?b.type:"conjunction";this.listStyle_=b&&b.style?b.style:"long";this.listSymbols_=Kl8;b=0;switch(this.listStyle_){case "short":b=1;break;case "narrow":b=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[b];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[b];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[b];this.listEndPattern_=
this.listSymbols_.AND_END[b];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[b];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[b];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[b];this.listEndPattern_=this.listSymbols_.OR_END[b];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[b],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[b],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[b],this.listEndPattern_=this.listSymbols_.UNIT_END[b]}};
ZhM.prototype.format=function(b){return orG(this,b)};
var orG=function(b,h){var y=h.length;switch(y){case 0:return"";case 1:return String(h[0]);case 2:return b.listTwoPattern_.replace("{0}",String(h[0])).replace("{1}",String(h[1]))}for(var S=b.listStartPattern_.replace("{0}",String(h[0])).replace("{1}",String(h[1])),F=2;F<y-1;++F)S=b.listMiddlePattern_.replace("{0}",S).replace("{1}",String(h[F]));return b.listEndPattern_.replace("{0}",S).replace("{1}",String(h[y-1]))};var Ma7={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"},nrN=Ma7,XC5=Ma7;XC5=nrN=Ma7;var uQa,tV,cI,xRM,r5,Hh7;
_.wR=function(b,h,y,S){var F;if(F=h){a:if(h&&h.length===3){for(F=0;F<3;F++){var a=h[F];if(a<"A"||a>"Z"&&a<"a"||a>"z"){F=!1;break a}}F=!0}else F=!1;F=!F}if(F)throw new TypeError("ge");this.intlCurrencyCode_=h?h.toUpperCase():null;this.currencyStyle_=y||0;this.overrideNumberFormatSymbols_=S||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_=tV(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof b==="number")switch(b){case 1:r5(this,tV(this).DECIMAL_PATTERN);break;case 2:r5(this,tV(this).SCIENTIFIC_PATTERN);break;case 3:r5(this,tV(this).PERCENT_PATTERN);break;case 4:b=tV(this).CURRENCY_PATTERN;h=["0"];if(y=
MB[cI(this)]){y=y[0]&7;if(y>0)for(h.push("."),S=0;S<y;S++)h.push("0");b=b.replace(/0.00/g,h.join(""))}r5(this,b);break;case 5:Hh7(this,1);break;case 6:Hh7(this,2);break;default:throw Error("je");}else r5(this,b)};
uQa=!1;tV=function(b){return b.overrideNumberFormatSymbols_||(uQa?XC5:nrN)};
cI=function(b){return b.intlCurrencyCode_||tV(b).DEF_CURRENCY_CODE};
xRM=function(b,h){if(h>308)throw Error("ie`"+h);b.maximumFractionDigits_=h;return b};
r5=function(b,h){var y=[0];b.positivePrefix_=OhG(b,h,y);for(var S=y[0],F=-1,a=0,P=0,K=0,n=-1,X=h.length,u=!0;y[0]<X&&u;y[0]++)switch(h.charAt(y[0])){case "#":P>0?K++:a++;n>=0&&F<0&&n++;break;case "0":if(K>0)throw Error("pe`"+h);P++;n>=0&&F<0&&n++;break;case ",":n>0&&b.groupingArray_.push(n);n=0;break;case ".":if(F>=0)throw Error("qe`"+h);F=a+P+K;break;case "E":if(b.useExponentialNotation_)throw Error("re`"+h);b.useExponentialNotation_=!0;b.minExponentDigits_=0;y[0]+1<X&&h.charAt(y[0]+1)=="+"&&(y[0]++,
b.useSignForPositiveExponent_=!0);for(;y[0]+1<X&&h.charAt(y[0]+1)=="0";)y[0]++,b.minExponentDigits_++;if(a+P<1||b.minExponentDigits_<1)throw Error("se`"+h);u=!1;break;default:y[0]--,u=!1}P==0&&a>0&&F>=0&&(P=F,P==0&&P++,K=a-P,a=P-1,P=1);if(F<0&&K>0||F>=0&&(F<a||F>a+P)||n==0)throw Error("te`"+h);K=a+P+K;b.maximumFractionDigits_=F>=0?K-F:0;F>=0&&(b.minimumFractionDigits_=a+P-F,b.minimumFractionDigits_<0&&(b.minimumFractionDigits_=0));b.minimumIntegerDigits_=(F>=0?F:K)-a;b.useExponentialNotation_&&(b.maximumIntegerDigits_=
a+b.minimumIntegerDigits_,b.maximumFractionDigits_==0&&b.minimumIntegerDigits_==0&&(b.minimumIntegerDigits_=1));b.groupingArray_.push(Math.max(0,n));b.decimalSeparatorAlwaysShown_=F==0||F==K;S=y[0]-S;b.positiveSuffix_=OhG(b,h,y);y[0]<h.length&&h.charAt(y[0])==";"?(y[0]++,b.multiplier_!=1&&(b.negativePercentSignExpected_=!0),b.negativePrefix_=OhG(b,h,y),y[0]+=S,b.negativeSuffix_=OhG(b,h,y)):(b.negativePrefix_+=b.positivePrefix_,b.negativeSuffix_+=b.positiveSuffix_)};
Hh7=function(b,h){b.compactStyle_=h;r5(b,tV(b).DECIMAL_PATTERN);b.minimumFractionDigits_=0;xRM(b,2);if(b.minimumFractionDigits_>0)throw Error("he");b.significantDigits_=2};
_.wR.prototype.parse=function(b,h){h=h||[0];if(this.compactStyle_!==0)throw Error("ke");b=b.replace(/ |\u202f/g,"\u00a0");var y=b.indexOf(this.positivePrefix_,h[0])==h[0],S=b.indexOf(this.negativePrefix_,h[0])==h[0];y&&S&&(this.positivePrefix_.length>this.negativePrefix_.length?S=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(y=!1));y?h[0]+=this.positivePrefix_.length:S&&(h[0]+=this.negativePrefix_.length);if(b.indexOf(tV(this).INFINITY,h[0])==h[0]){h[0]+=tV(this).INFINITY.length;var F=
Infinity}else{F=b;var a=!1,P=!1,K=!1,n=-1,X=1,u=tV(this).DECIMAL_SEP,O=tV(this).GROUP_SEP,N=tV(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("le");O=O.replace(/\u202f/g,"\u00a0");for(var t="";h[0]<F.length;h[0]++){var R=F.charAt(h[0]),I=NCM(this,R);if(I>=0&&I<=9)t+=I,K=!0;else if(R==u.charAt(0)){if(a||P)break;t+=".";a=!0}else if(R==O.charAt(0)&&("\u00a0"!=O.charAt(0)||h[0]+1<F.length&&NCM(this,F.charAt(h[0]+1))>=0)){if(a||P)break}else if(R==N.charAt(0)){if(P)break;t+="E";P=!0;n=h[0]}else if(R==
"+"||R=="-"){if(K&&n!=h[0]-1)break;t+=R}else if(this.multiplier_==1&&R==tV(this).PERCENT.charAt(0)){if(X!=1)break;X=100;if(K){h[0]++;break}}else if(this.multiplier_==1&&R==tV(this).PERMILL.charAt(0)){if(X!=1)break;X=1E3;if(K){h[0]++;break}}else break}this.multiplier_!=1&&(X=this.multiplier_);F=parseFloat(t)/X}if(y){if(b.indexOf(this.positiveSuffix_,h[0])!=h[0])return NaN;h[0]+=this.positiveSuffix_.length}else if(S){if(b.indexOf(this.negativeSuffix_,h[0])!=h[0])return NaN;h[0]+=this.negativeSuffix_.length}return S?
-F:F};
_.wR.prototype.format=function(b){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("me");if(isNaN(b))return tV(this).NAN;var h=[];var y=b;if(this.compactStyle_==0)y=RB;else{y=Math.abs(y);var S=taN(this,y<=1?0:rBG(y)).divisorBase;y=taN(this,S+rBG(cBP(this,z9(y,-S)).intValue))}b=z9(b,-y.divisorBase);(S=b<0||b==0&&1/b<0)?y.negative_prefix?h.push(y.negative_prefix):(h.push(y.prefix),h.push(this.negativePrefix_)):(h.push(y.prefix),h.push(this.positivePrefix_));if(isFinite(b))if(b*=
S?-1:1,b*=this.multiplier_,this.useExponentialNotation_){var F=b;if(F==0)RTa(this,F,this.minimumIntegerDigits_,h),zTW(this,0,h);else{var a=Math.floor(Math.log(F)/Math.log(10)+2E-15);F=z9(F,-a);var P=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(P=a%this.maximumIntegerDigits_,P<0&&(P=this.maximumIntegerDigits_+P),F=z9(F,P),a-=P,P=1):this.minimumIntegerDigits_<1?(a++,F=z9(F,-1)):(a-=this.minimumIntegerDigits_-1,F=z9(F,this.minimumIntegerDigits_-
1));RTa(this,F,P,h);zTW(this,a,h)}}else RTa(this,b,this.minimumIntegerDigits_,h);else h.push(tV(this).INFINITY);S?y.negative_suffix?h.push(y.negative_suffix):(isFinite(b)&&h.push(y.suffix),h.push(this.negativeSuffix_)):(isFinite(b)&&h.push(y.suffix),h.push(this.positiveSuffix_));return h.join("")};
var cBP=function(b,h){var y=z9(h,b.maximumFractionDigits_);b.significantDigits_>0&&(y=Dnw(y,b.significantDigits_,b.maximumFractionDigits_));y=Math.round(y);if(isFinite(y)){var S=Math.floor(z9(y,-b.maximumFractionDigits_));y=Math.floor(y-z9(S,b.maximumFractionDigits_));if(y<0||y>=z9(1,b.maximumFractionDigits_))S=Math.round(h),y=0}else S=h,y=0;return{intValue:S,fracValue:y}},RTa=function(b,h,y,S){if(b.minimumFractionDigits_>b.maximumFractionDigits_)throw Error("me");
S||(S=[]);h=cBP(b,h);var F=h.intValue,a=h.fracValue,P=b.minimumFractionDigits_>0||a>0||!1;h=b.minimumFractionDigits_;P&&(h=b.minimumFractionDigits_);for(var K="",n=F;n>1E20;)K="0"+K,n=Math.round(z9(n,-1));K=n+K;var X=tV(b).DECIMAL_SEP;n=tV(b).ZERO_DIGIT.codePointAt(0);var u=K.length,O=0;if(F>0||y>0){for(F=u;F<y;F++)S.push(String.fromCodePoint(n));if(b.groupingArray_.length>=2)for(y=1;y<b.groupingArray_.length;y++)O+=b.groupingArray_[y];y=u-O;if(y>0){F=b.groupingArray_;O=u=0;for(var N,t=tV(b).GROUP_SEP,
R=K.length,I=0;I<R;I++)if(S.push(String.fromCodePoint(n+Number(K.charAt(I)))),R-I>1)if(N=F[O],I<y){var U=y-I;(N===1||N>0&&U%N===1)&&S.push(t)}else O<F.length&&(I===y?O+=1:N===I-y-u+1&&(S.push(t),u+=N,O+=1))}else{y=K;K=b.groupingArray_;F=tV(b).GROUP_SEP;N=y.length;t=[];for(u=K.length-1;u>=0&&N>0;u--){O=K[u];for(R=0;R<O&&N-R-1>=0;R++)t.push(String.fromCodePoint(n+Number(y.charAt(N-R-1))));N-=O;N>0&&t.push(F)}S.push.apply(S,t.reverse())}}else P||S.push(String.fromCodePoint(n));(b.decimalSeparatorAlwaysShown_||
P)&&S.push(X);a=String(a);P=a.split("e+");P.length==2&&(a=String(Dnw(parseFloat(P[0]),b.significantDigits_,1)),a=a.replace(".",""),a+=(0,_.ykG)("0",parseInt(P[1],10)-a.length+1));b.maximumFractionDigits_+1>a.length&&(a="1"+(0,_.ykG)("0",b.maximumFractionDigits_-a.length)+a);for(b=a.length;a.charAt(b-1)=="0"&&b>h+1;)b--;for(h=1;h<b;h++)S.push(String.fromCodePoint(n+Number(a.charAt(h))))},zTW=function(b,h,y){y.push(tV(b).EXP_SYMBOL);
h<0?(h=-h,y.push(tV(b).MINUS_SIGN)):b.useSignForPositiveExponent_&&y.push(tV(b).PLUS_SIGN);h=""+h;for(var S=tV(b).ZERO_DIGIT,F=h.length;F<b.minExponentDigits_;F++)y.push(S);b=S.codePointAt(0)-I5W;for(S=0;S<h.length;S++)y.push(String.fromCodePoint(b+h.codePointAt(S)))},NCM=function(b,h){h=h.codePointAt(0);
if(48<=h&&h<58)return h-48;b=tV(b).ZERO_DIGIT.codePointAt(0);return b<=h&&h<b+10?h-b:-1},I5W="0".codePointAt(0),OhG=function(b,h,y){for(var S="",F=!1,a=h.length;y[0]<a;y[0]++){var P=h.charAt(y[0]);
if(P=="'")y[0]+1<a&&h.charAt(y[0]+1)=="'"?(y[0]++,S+="'"):F=!F;else if(F)S+=P;else switch(P){case "#":case "0":case ",":case ".":case ";":return S;case "\u00a4":if(y[0]+1<a&&h.charAt(y[0]+1)=="\u00a4")y[0]++,S+=cI(b);else switch(b.currencyStyle_){case 0:P=cI(b);S+=P in MB?MB[P][1]:P;break;case 2:P=cI(b);var K=MB[P];S+=K?P==K[1]?P:P+" "+K[1]:P;break;case 1:P=cI(b),S+=P in MB?MB[P][2]:P}break;case "%":if(!b.negativePercentSignExpected_&&b.multiplier_!=1)throw Error("ne");if(b.negativePercentSignExpected_&&
b.multiplier_!=100)throw Error("oe");b.multiplier_=100;b.negativePercentSignExpected_=!1;S+=tV(b).PERCENT;break;case "\u2030":if(!b.negativePercentSignExpected_&&b.multiplier_!=1)throw Error("ne");if(b.negativePercentSignExpected_&&b.multiplier_!=1E3)throw Error("oe");b.multiplier_=1E3;b.negativePercentSignExpected_=!1;S+=tV(b).PERMILL;break;default:S+=P}}return S},RB={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},taN=function(b,h){b=b.compactStyle_==1?oB.COMPACT_DECIMAL_SHORT_PATTERN:oB.COMPACT_DECIMAL_LONG_PATTERN;b==null&&(b=oB.COMPACT_DECIMAL_SHORT_PATTERN);if(h<3)return RB;h=Math.min(14,h);var y=b[z9(1,h)];for(--h;!y&&h>=3;)y=b[z9(1,h)],h--;if(!y)return RB;y=y.other;var S=b="",F=y.indexOf(";");F>=0&&(y=y.substring(0,F),F=y.substring(F+1))&&(S=/([^0]*)(0+)(.*)/.exec(F),b=S[1],S=S[3]);return y&&y!="0"?(y=/([^0]*)(0+)(.*)/.exec(y))?{divisorBase:h+
1-(y[2].length-1),negative_prefix:b,negative_suffix:S,prefix:y[1],suffix:y[3]}:RB:RB},rBG=function(b){if(!isFinite(b))return b>0?b:0;
for(var h=0;(b/=10)>=1;)h++;return h},z9=function(b,h){if(!b||!isFinite(b)||h==0)return b;
b=String(b).split("e");return parseFloat(b[0]+"e"+(parseInt(b[1]||0,10)+h))},BC8=function(b,h){return b&&isFinite(b)?z9(Math.round(z9(b,h)),-h):b},Dnw=function(b,h,y){if(!b)return b;
h=h-rBG(b)-1;return h<-y?BC8(b,-y):BC8(b,h)};var WlM=function(b){return b%10==1&&b%100!=11?"one":b%10==2&&b%100!=12?"two":b%10==3&&b%100!=13?"few":"other"},ABa=WlM;
ABa=WlM;var Una=function(b,h){var y=b|0;if(void 0===h){h=Math;var S=h.min,F=b+"",a=F.indexOf(".");h=S.call(h,a===-1?0:F.length-a-1,3)}S=Math.pow(10,h);b={v:h,f:(b*S|0)%S};return y==1&&b.v==0?"one":"other"},fi=Una;
fi=Una;var CMo=function(b){this.JSC$11641_pattern_=b;this.parsedPattern_=this.literals_=this.initialLiterals_=null;b=nrN;var h=oB;if(pCa!==b||JBM!==h)pCa=b,JBM=h,eTa=new _.wR(1);this.numberFormatter_=eTa},pCa=null,JBM=null,eTa=null,grN=RegExp("'([{}#].*?)'","g"),s7G=RegExp("''","g");
CMo.prototype.format=function(b){if(this.JSC$11641_pattern_){this.initialLiterals_=[];var h=YFe(this,this.JSC$11641_pattern_);this.parsedPattern_=TCG(this,h);this.JSC$11641_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.Ej(this.initialLiterals_),h=[],Gow(this,this.parsedPattern_,b,!1,h),b=h.join("");this.literals_.length>0;)b=b.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else b="";return b};
var Gow=function(b,h,y,S,F){for(var a=0;a<h.length;a++)switch(h[a].type){case 4:F.push(h[a].value);break;case 3:var P=h[a].value;var K=b,n=F,X=y[P];X===void 0?n.push("Undefined parameter - "+P):(K.literals_.push(X),n.push(K.buildPlaceholder_(K.literals_)));break;case 2:P=h[a].value;K=b;n=y;X=S;var u=F,O=P.argumentIndex;n[O]===void 0?u.push("Undefined parameter - "+O):(O=P[n[O]],O===void 0&&(O=P.other),Gow(K,O,n,X,u));break;case 0:P=h[a].value;koG(b,P,y,fi,S,F);break;case 1:P=h[a].value,koG(b,P,y,
ABa,S,F)}},koG=function(b,h,y,S,F,a){var P=h.argumentIndex,K=h.argumentOffset,n=+y[P];
isNaN(n)?a.push("Undefined or invalid parameter - "+P):(K=n-K,P=h[y[P]],P===void 0&&(S=S(Math.abs(K)),P=h[S],P===void 0&&(P=h.other)),h=[],Gow(b,P,y,F,h),y=h.join(""),F?a.push(y):(b=b.numberFormatter_.format(K),a.push(y.replace(/#/g,b))))},YFe=function(b,h){var y=b.initialLiterals_,S=b.buildPlaceholder_.bind(b);
h=h.replace(s7G,function(){y.push("'");return S(y)});
return h=h.replace(grN,function(F,a){y.push(a);return S(y)})},Vao=function(b){var h=0,y=[],S=[],F=/[{}]/g;
F.lastIndex=0;for(var a;a=F.exec(b);){var P=a.index;a[0]=="}"?(y.pop(),y.length==0&&(a={type:1},a.value=b.substring(h,P),S.push(a),h=P+1)):(y.length==0&&(h=b.substring(h,P),h!=""&&S.push({type:0,value:h}),h=P+1),y.push("{"))}b=b.substring(h);b!=""&&S.push({type:0,value:b});return S},Er8=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,ihN=/^\s*(\w+)\s*,\s*selectordinal\s*,/,f5o=/^\s*(\w+)\s*,\s*select\s*,/,TCG=function(b,h){var y=[];
h=Vao(h);for(var S=0;S<h.length;S++){var F={};if(0==h[S].type)F.type=4,F.value=h[S].value;else if(1==h[S].type){var a=h[S].value;switch(Er8.test(a)?0:ihN.test(a)?1:f5o.test(a)?2:/^\s*\w+\s*/.test(a)?3:5){case 2:F.type=2;F.value=wC8(b,h[S].value);break;case 0:F.type=0;F.value=l5e(b,h[S].value);break;case 1:F.type=1;F.value=qFP(b,h[S].value);break;case 3:F.type=3,F.value=h[S].value}}y.push(F)}return y},wC8=function(b,h){var y="";
h=h.replace(f5o,function(K,n){y=n;return""});
var S={};S.argumentIndex=y;h=Vao(h);for(var F=0;F<h.length;){var a=h[F].value;F++;var P=void 0;1==h[F].type&&(P=TCG(b,h[F].value));S[a.replace(/\s/g,"")]=P;F++}return S},l5e=function(b,h){var y="",S=0;
h=h.replace(Er8,function(n,X,u){y=X;u&&(S=parseInt(u,10));return""});
var F={};F.argumentIndex=y;F.argumentOffset=S;h=Vao(h);for(var a=0;a<h.length;){var P=h[a].value;a++;var K=void 0;1==h[a].type&&(K=TCG(b,h[a].value));F[P.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=K;a++}return F},qFP=function(b,h){var y="";
h=h.replace(ihN,function(K,n){y=n;return""});
var S={};S.argumentIndex=y;S.argumentOffset=0;h=Vao(h);for(var F=0;F<h.length;){var a=h[F].value;F++;var P=void 0;1==h[F].type&&(P=TCG(b,h[F].value));S[a.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=P;F++}return S};
CMo.prototype.buildPlaceholder_=function(b){return"\ufddf_"+(b.length-1).toString(10)+"_"};var XPY=function(){var b={style:1},h=xnW;this.style_=(b==null?void 0:b.style)||0;this.durationSymbols_=h||PMW},Q7W=function(b,h){switch(h){default:case "years":return b.durationSymbols_.YEAR;
case "months":return b.durationSymbols_.MONTH;case "weeks":return b.durationSymbols_.WEEK;case "days":return b.durationSymbols_.DAY;case "hours":return b.durationSymbols_.HOUR;case "minutes":return b.durationSymbols_.MINUTE;case "seconds":return b.durationSymbols_.SECOND}},DX=function(b,h,y){a:{y=Q7W(b,y);
switch(b.style_){case 1:if(y.LONG!=void 0){b=y.LONG;break a}case 2:if(y.NARROW!=void 0){b=y.NARROW;break a}default:b=y.SHORT;break a}b=void 0}return b?(new CMo("{DURATION_VALUE,plural,"+b+"}")).format({DURATION_VALUE:h}):""};
XPY.prototype.format=function(b){var h=[],y=b.years,S=b.months,F=b.weeks,a=b.days,P=b.hours,K=b.minutes;b=b.seconds;y!=null&&h.push(DX(this,y,"years"));S!=null&&h.push(DX(this,S,"months"));F!=null&&h.push(DX(this,F,"weeks"));a!=null&&h.push(DX(this,a,"days"));P!=null&&h.push(DX(this,P,"hours"));K!=null&&h.push(DX(this,K,"minutes"));b!=null&&h.push(DX(this,b,"seconds"));return(new ZhM).format(h)};var mna;
mna={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 U1y=function(){this.rdtfSymbols_=vr5||mna;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
U1y.prototype.format=function(b,h){a:{h=bwN(this,h);switch(this.style_){case 2:if(h.NARROW!=void 0){h=h.NARROW;break a}case 1:if(h.SHORT!=void 0){h=h.SHORT;break a}default:h=h.LONG;break a}h=void 0}if(!this.alwaysNumeric_&&h&&h.R&&h.R[""+b])b=h.R[""+b];else if(h){var y=Math.abs(b);b=(new CMo("{N,plural,"+(b>0||b==0&&1/b==Infinity?h.F:h.P)+"}")).format({N:y})}else b="";return b};
var bwN=function(b,h){switch(h){default:case 0:return b.rdtfSymbols_.YEAR;case 1:return b.rdtfSymbols_.QUARTER;case 2:return b.rdtfSymbols_.MONTH;case 3:return b.rdtfSymbols_.WEEK;case 4:return b.rdtfSymbols_.DAY;case 5:return b.rdtfSymbols_.HOUR;case 6:return b.rdtfSymbols_.MINUTE;case 7:return b.rdtfSymbols_.SECOND}};var hl8=function(b,h,y,S,F,a,P,K){this.x0=b;this.y0=h;this.x1=y;this.y1=S;this.x2=F;this.y2=a;this.x3=P;this.y3=K};
hl8.prototype.clone=function(){return new hl8(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
hl8.prototype.equals=function(b){return this.x0==b.x0&&this.y0==b.y0&&this.x1==b.x1&&this.y1==b.y1&&this.x2==b.x2&&this.y2==b.y2&&this.x3==b.x3&&this.y3==b.y3};
var yFb=function(b,h){if(h==0)return b.x0;if(h==1)return b.x3;var y=TG(b.x0,b.x1,h),S=TG(b.x1,b.x2,h);b=TG(b.x2,b.x3,h);y=TG(y,S,h);S=TG(S,b,h);return TG(y,S,h)},So5=function(b,h){var y=(h-b.x0)/(b.x3-b.x0);
if(y<=0)return 0;if(y>=1)return 1;for(var S=0,F=1,a=0,P=0;P<8;P++){a=yFb(b,y);var K=(yFb(b,y+1E-6)-a)/1E-6;if(Math.abs(a-h)<1E-6)return y;if(Math.abs(K)<1E-6)break;else a<h?S=y:F=y,y-=(a-h)/K}for(P=0;Math.abs(a-h)>1E-6&&P<8;P++)a<h?(S=y,y=(y+F)/2):(F=y,y=(y+S)/2),a=yFb(b,y);return y};var IB=function(){_.TI.call(this);this.JSC$11662_name_="closure_frame"+Foo++;this.iframesForDisposal_=[];aA7[this.JSC$11662_name_]=this},BI;
_.Pv(IB,_.TI);var aA7={},Foo=0,dDa=function(b,h){var y=GP(b);$io(h,function(S,F){Array.isArray(S)||(S=[S]);_.FS(S,function(a){a=y.JSC$9511_createDom("INPUT",{type:"hidden",name:F,value:a});b.appendChild(a)})})};
_.d=IB.prototype;_.d.JSC$11664_form_=null;_.d.JSC$11664_iframe_=null;_.d.iframeName_=null;_.d.nextIframeId_=0;_.d.JSC$11664_active_=!1;_.d.complete_=!1;_.d.success_=!1;_.d.lastContent_=null;_.d.JSC$11664_lastErrorCode_=0;_.d.iframeDisposalTimer_=null;
_.d.send=function(b,h,y,S){if(this.JSC$11664_active_)throw Error("ue");b=new _.lX(b);h=h?h.toUpperCase():"GET";y&&_.Uw(b);BI||(BI=_.Ee("FORM"),BI.acceptCharset="utf-8",y=BI.style,y.position="absolute",y.visibility="hidden",y.top=y.left="-10px",y.width=y.height="10px",y.overflow="hidden",document.body.appendChild(BI));this.JSC$11664_form_=BI;h=="GET"&&dDa(this.JSC$11664_form_,b.JSC$10215_queryData_);S&&dDa(this.JSC$11664_form_,S);y=b.toString();y=xl8(y);S=this.JSC$11664_form_;y=_.QD(k$(y));y!==void 0&&
(S.action=y);this.JSC$11664_form_.method=h;jrW(this);$D8(this)};
_.d.abort=function(b){if(this.JSC$11664_active_){var h=WI(this);if(h)if(gb(h))h.removeAllListeners(void 0);else if(h=s6(h)){var y=0,S;for(S in h.listeners)for(var F=h.listeners[S].concat(),a=0;a<F.length;++a)D1(F[a])&&++y}this.success_=this.JSC$11664_active_=this.complete_=!1;this.JSC$11664_lastErrorCode_=b||7;this.dispatchEvent("abort");Lo5(this)}};
_.d.disposeInternal=function(){this.JSC$11664_active_&&this.abort();IB.superClass_.disposeInternal.call(this);this.JSC$11664_iframe_&&Pqa(this);$D8(this);this.JSC$11664_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11664_form_=null;this.JSC$11664_lastErrorCode_=0;delete aA7[this.JSC$11662_name_]};
_.d.isComplete=function(){return this.complete_};
_.d.isSuccess=function(){return this.success_};
_.d.isActive=function(){return this.JSC$11664_active_};
_.d.getResponseText=function(){return this.lastContent_};
_.d.getLastError=function(){return _.gZG(this.JSC$11664_lastErrorCode_)};
var jrW=function(b){b.JSC$11664_active_=!0;b.complete_=!1;b.JSC$11664_lastErrorCode_=0;b.iframeName_=b.JSC$11662_name_+"_"+(b.nextIframeId_++).toString(36);b.JSC$11664_iframe_=GP(b.JSC$11664_form_).JSC$9511_createDom("IFRAME",{name:b.iframeName_,id:b.iframeName_});var h=b.JSC$11664_iframe_.style;h.visibility="hidden";h.width=h.height="10px";h.display="none";_.Hv?h.marginTop=h.marginLeft="-10px":(h.position="absolute",h.top=h.left="-10px");GP(b.JSC$11664_form_).JSC$9509_document_.body.appendChild(b.JSC$11664_iframe_);
h=b.iframeName_+"_inner";var y=rge(b.JSC$11664_iframe_);if(document.baseURI){var S=PC(h);S='<head><base href="'+PC(document.baseURI)+'"></head><body><iframe id="'+S+'" name="'+S+'"></iframe>';S=yx(S)}else S=PC(h),S=yx('<body><iframe id="'+S+'" name="'+S+'"></iframe>');y.write(Sw(S));_.W3(y.getElementById(h),"load",b.onIframeLoaded_,!1,b);S=T$("TEXTAREA",b.JSC$11664_form_);for(var F=0,a=S.length;F<a;F++){var P=S[F].value;B1W(S[F])!=P&&(_.Qw(S[F],P),S[F].value=P)}S=y.importNode(b.JSC$11664_form_,!0);
S.target=h;S.action=b.JSC$11664_form_.action;y.body.appendChild(S);F=T$("SELECT",b.JSC$11664_form_);a=T$("SELECT",S);P=0;for(var K=F.length;P<K;P++)for(var n=T$("OPTION",F[P]),X=T$("OPTION",a[P]),u=0,O=n.length;u<O;u++)X[u].selected=n[u].selected;F=T$("INPUT",b.JSC$11664_form_);a=T$("INPUT",S);P=0;for(K=F.length;P<K;P++)if(F[P].type=="file"&&F[P].value!=a[P].value){b.JSC$11664_form_.target=h;S=b.JSC$11664_form_;break}try{b.errorHandled_=!1,S.submit(),y.close(),_.XW&&setTimeout(b.testForFirefoxSilentError_.bind(b),
250)}catch(N){_.Yy(y.getElementById(h),"load",b.onIframeLoaded_,!1,b),y.close(),AV(b,2)}};
IB.prototype.onIframeLoaded_=function(){_.Yy(WI(this),"load",this.onIframeLoaded_,!1,this);try{var b=this.JSC$11664_iframe_?rge(WI(this)):null;this.complete_=!0;this.JSC$11664_active_=!1;try{var h=b.body;this.lastContent_=h.textContent||h.innerText}catch(F){var y=1}var S;y||typeof this.errorChecker_!="function"||(S=this.errorChecker_(b))&&(y=4);y?AV(this,y):(this.success_=!0,this.JSC$11664_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),Lo5(this))}catch(F){AV(this,1)}};
var AV=function(b,h){b.errorHandled_||(b.success_=!1,b.JSC$11664_active_=!1,b.complete_=!0,b.JSC$11664_lastErrorCode_=h,b.dispatchEvent("complete"),b.dispatchEvent("error"),Lo5(b),b.errorHandled_=!0)},Lo5=function(b){Pqa(b);
$D8(b);b.JSC$11664_form_=null;b.dispatchEvent("ready")},Pqa=function(b){var h=b.JSC$11664_iframe_;
h&&(h.onreadystatechange=null,h.onload=null,h.onerror=null,b.iframesForDisposal_.push(h));b.iframeDisposalTimer_&&(clearTimeout(b.iframeDisposalTimer_),b.iframeDisposalTimer_=null);_.XW?b.iframeDisposalTimer_=setTimeout(b.disposeIframes_.bind(b),2E3):b.disposeIframes_();b.JSC$11664_iframe_=null;b.iframeName_=null};
IB.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var b=this.iframesForDisposal_.pop();_.sD(b)}};
var $D8=function(b){b.JSC$11664_form_&&b.JSC$11664_form_==BI&&_.wX(b.JSC$11664_form_)},WI=function(b){return b.JSC$11664_iframe_?rge(b.JSC$11664_iframe_).getElementById(b.iframeName_+"_inner"):null};
IB.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11664_active_){var b=this.JSC$11664_iframe_?rge(WI(this)):null;b&&!VFM(b,"documentUri")?(_.Yy(WI(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?AV(this,3):AV(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.UR=function(b){return b=="\r"||b=="\n"||b==" "||b=="\t"};var Koe;_.pT=function(b){this.errorMessage_=null;this.result_=[];this.JSC$11666_buffer_="";this.stack_=[];this.JSC$11666_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!b||!b.deliverMessageAsRawString)};
Koe={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};_.pT.prototype.isInputValid=function(){return this.streamState_!=3};
_.pT.prototype.done=function(){return this.streamState_===2};
var JV=function(b,h,y){b.streamState_=3;b.errorMessage_="The stream is broken @"+b.JSC$11666_pos_+"/"+y+". With input:\n"+h;throw Error(b.errorMessage_);};
_.pT.prototype.acceptsBinaryInput=function(){return!1};
_.pT.prototype.parse=function(b){function h(){for(;N<b.length;)if(_.UR(b[N]))N++,a.JSC$11666_pos_++;else break;return N<X}
function y(){for(var R;;){R=b[N++];if(!R)break;a.JSC$11666_pos_++;switch(a.state_){case n.INIT:R==="{"?a.state_=n.OBJECT_OPEN:R==="["?a.state_=n.ARRAY_OPEN:_.UR(R)||JV(a,b,N);continue;case n.KEY_START:case n.OBJECT_OPEN:if(_.UR(R))continue;if(a.state_===n.KEY_START)P.push(n.KEY_END);else if(R==="}"){F("{}");a.state_=S();continue}else P.push(n.OBJECT_END);R==='"'?a.state_=n.STRING:JV(a,b,N);continue;case n.KEY_END:case n.OBJECT_END:if(_.UR(R))continue;R===":"?(a.state_===n.OBJECT_END&&(P.push(n.OBJECT_END),
a.depth_++),a.state_=n.VALUE):R==="}"?(a.depth_--,F(),a.state_=S()):R===","?(a.state_===n.OBJECT_END&&P.push(n.OBJECT_END),a.state_=n.KEY_START):JV(a,b,N);continue;case n.ARRAY_OPEN:case n.VALUE:if(_.UR(R))continue;if(a.state_===n.ARRAY_OPEN)if(a.depth_++,a.state_=n.VALUE,R==="]"){a.depth_--;if(a.depth_===0){a.state_=n.ARRAY_END;return}F("[]");a.state_=S();continue}else P.push(n.ARRAY_END);R==='"'?a.state_=n.STRING:R==="{"?a.state_=n.OBJECT_OPEN:R==="["?a.state_=n.ARRAY_OPEN:R==="t"?a.state_=n.TRUE1:
R==="f"?a.state_=n.FALSE1:R==="n"?a.state_=n.NULL1:R!=="-"&&("0123456789".indexOf(R)!==-1?a.state_=n.NUM_DIGIT:JV(a,b,N));continue;case n.ARRAY_END:if(R===",")P.push(n.ARRAY_END),a.state_=n.VALUE,a.depth_===1&&(O=N);else if(R==="]"){a.depth_--;if(a.depth_===0)return;F();a.state_=S()}else if(_.UR(R))continue;else JV(a,b,N);continue;case n.STRING:var I=N;a:for(;;){for(;a.unicodeCount_>0;)if(R=b[N++],a.unicodeCount_===4?a.unicodeCount_=0:a.unicodeCount_++,!R)break a;if(R==='"'&&!a.slashed_){a.state_=
S();break}if(R==="\\"&&!a.slashed_&&(a.slashed_=!0,R=b[N++],!R))break;if(a.slashed_)if(a.slashed_=!1,R==="u"&&(a.unicodeCount_=1),R=b[N++])continue;else break;K.lastIndex=N;R=K.exec(b);if(!R){N=b.length+1;break}N=R.index+1;R=b[R.index];if(!R)break}a.JSC$11666_pos_+=N-I;continue;case n.TRUE1:if(!R)continue;R==="r"?a.state_=n.TRUE2:JV(a,b,N);continue;case n.TRUE2:if(!R)continue;R==="u"?a.state_=n.TRUE3:JV(a,b,N);continue;case n.TRUE3:if(!R)continue;R==="e"?a.state_=S():JV(a,b,N);continue;case n.FALSE1:if(!R)continue;
R==="a"?a.state_=n.FALSE2:JV(a,b,N);continue;case n.FALSE2:if(!R)continue;R==="l"?a.state_=n.FALSE3:JV(a,b,N);continue;case n.FALSE3:if(!R)continue;R==="s"?a.state_=n.FALSE4:JV(a,b,N);continue;case n.FALSE4:if(!R)continue;R==="e"?a.state_=S():JV(a,b,N);continue;case n.NULL1:if(!R)continue;R==="u"?a.state_=n.NULL2:JV(a,b,N);continue;case n.NULL2:if(!R)continue;R==="l"?a.state_=n.NULL3:JV(a,b,N);continue;case n.NULL3:if(!R)continue;R==="l"?a.state_=S():JV(a,b,N);continue;case n.NUM_DECIMAL_POINT:R===
"."?a.state_=n.NUM_DIGIT:JV(a,b,N);continue;case n.NUM_DIGIT:if("0123456789.eE+-".indexOf(R)!==-1)continue;else N--,a.JSC$11666_pos_--,a.state_=S();continue;default:JV(a,b,N)}}}
function S(){var R=P.pop();return R!=null?R:n.VALUE}
function F(R){a.depth_>1||(R||(R=O===-1?a.JSC$11666_buffer_+b.substring(u,N):b.substring(O,N)),a.deliverMessageAsRawString_?a.result_.push(R):a.result_.push(JSON.parse(R)),O=N)}
for(var a=this,P=a.stack_,K=a.stringInputPattern_,n=Koe,X=b.length,u=0,O=-1,N=0;N<X;)switch(a.streamState_){case 3:return JV(a,b,N),null;case 2:return h()&&JV(a,b,N),null;case 0:if(h()){var t=b[N++];a.JSC$11666_pos_++;if(t==="["){a.streamState_=1;u=N;a.state_=n.ARRAY_OPEN;continue}else JV(a,b,N)}return null;case 1:return y(),a.depth_===0&&a.state_==n.ARRAY_END?(a.streamState_=2,a.JSC$11666_buffer_=b.substring(N)):a.JSC$11666_buffer_=O===-1?a.JSC$11666_buffer_+b.substring(u):b.substring(O),a.result_.length>
0?(t=a.result_,a.result_=[],t):null}return null};_.Pv(_.Am,Vb);Ub.prototype.getValue=function(){return this.JSC$11674_value_};
Ub.prototype.clone=function(){return new Ub(this.JSC$11674_key_,this.JSC$11674_value_)};var eQ=function(b){this.nodes_=[];if(b)a:{if(b instanceof eQ){var h=b.getKeys();b=b.getValues();if(this.getCount()<=0){for(var y=this.nodes_,S=0;S<h.length;S++)y.push(new Ub(h[S],b[S]));break a}}else h=_.lR.getKeys(b),b=_.lR.getValues(b);for(y=0;y<h.length;y++)this.insert(h[y],b[y])}};
_.d=eQ.prototype;_.d.insert=function(b,h){var y=this.nodes_;y.push(new Ub(b,h));b=y.length-1;h=this.nodes_;for(y=h[b];b>0;){var S=b-1>>1;if(h[S].JSC$11674_key_>y.JSC$11674_key_)h[b]=h[S],b=S;else break}h[b]=y};
_.d.remove=function(){var b=this.nodes_,h=b.length,y=b[0];if(!(h<=0)){if(h==1)b.length=0;else{b[0]=b.pop();b=0;h=this.nodes_;for(var S=h.length,F=h[b];b<S>>1;){var a=b*2+1,P=b*2+2;a=P<S&&h[P].JSC$11674_key_<h[a].JSC$11674_key_?P:a;if(h[a].JSC$11674_key_>F.JSC$11674_key_)break;h[b]=h[a];b=a}h[b]=F}return y.getValue()}};
_.d.peek=function(){var b=this.nodes_;if(b.length!=0)return b[0].getValue()};
_.d.getValues=function(){for(var b=this.nodes_,h=[],y=b.length,S=0;S<y;S++)h.push(b[S].getValue());return h};
_.d.getKeys=function(){for(var b=this.nodes_,h=[],y=b.length,S=0;S<y;S++)h.push(b[S].JSC$11674_key_);return h};
_.d.containsValue=function(b){return this.nodes_.some(function(h){return h.getValue()==b})};
_.d.containsKey=function(b){return this.nodes_.some(function(h){return h.JSC$11674_key_==b})};
_.d.clone=function(){return new eQ(this)};
_.d.getCount=function(){return this.nodes_.length};
_.d.isEmpty=function(){return this.nodes_.length===0};
_.d.clear=function(){this.nodes_.length=0};_.CT=function(b,h){this.JSC$11680_map_={};this.JSC$11680_keys_=[];this.version_=this.size=0;var y=arguments.length;if(y>1){if(y%2)throw Error("ma");for(var S=0;S<y;S+=2)this.set(arguments[S],arguments[S+1])}else b&&this.addAll(b)};
_.d=_.CT.prototype;_.d.getCount=function(){return this.size};
_.d.getValues=function(){g5(this);for(var b=[],h=0;h<this.JSC$11680_keys_.length;h++)b.push(this.JSC$11680_map_[this.JSC$11680_keys_[h]]);return b};
_.d.getKeys=function(){g5(this);return this.JSC$11680_keys_.concat()};
_.d.containsKey=function(b){return this.has(b)};
_.d.has=function(b){return sR(this.JSC$11680_map_,b)};
_.d.containsValue=function(b){for(var h=0;h<this.JSC$11680_keys_.length;h++){var y=this.JSC$11680_keys_[h];if(sR(this.JSC$11680_map_,y)&&this.JSC$11680_map_[y]==b)return!0}return!1};
_.d.equals=function(b,h){if(this===b)return!0;if(this.size!=b.getCount())return!1;h=h||Zwa;g5(this);for(var y,S=0;y=this.JSC$11680_keys_[S];S++)if(!h(this.get(y),b.get(y)))return!1;return!0};
var Zwa=function(b,h){return b===h};
_.CT.prototype.isEmpty=function(){return this.size==0};
_.CT.prototype.clear=function(){this.JSC$11680_map_={};this.version_=this.size=this.JSC$11680_keys_.length=0};
_.CT.prototype.remove=function(b){return this.delete(b)};
_.CT.prototype.delete=function(b){return sR(this.JSC$11680_map_,b)?(delete this.JSC$11680_map_[b],--this.size,this.version_++,this.JSC$11680_keys_.length>2*this.size&&g5(this),!0):!1};
var g5=function(b){if(b.size!=b.JSC$11680_keys_.length){for(var h=0,y=0;h<b.JSC$11680_keys_.length;){var S=b.JSC$11680_keys_[h];sR(b.JSC$11680_map_,S)&&(b.JSC$11680_keys_[y++]=S);h++}b.JSC$11680_keys_.length=y}if(b.size!=b.JSC$11680_keys_.length){h={};for(S=y=0;y<b.JSC$11680_keys_.length;){var F=b.JSC$11680_keys_[y];sR(h,F)||(b.JSC$11680_keys_[S++]=F,h[F]=1);y++}b.JSC$11680_keys_.length=S}};
_.d=_.CT.prototype;_.d.get=function(b,h){return sR(this.JSC$11680_map_,b)?this.JSC$11680_map_[b]:h};
_.d.set=function(b,h){sR(this.JSC$11680_map_,b)||(this.size+=1,this.JSC$11680_keys_.push(b),this.version_++);this.JSC$11680_map_[b]=h};
_.d.addAll=function(b){if(b instanceof _.CT)for(var h=b.getKeys(),y=0;y<h.length;y++)this.set(h[y],b.get(h[y]));else for(h in b)this.set(h,b[h])};
_.d.forEach=function(b,h){for(var y=this.getKeys(),S=0;S<y.length;S++){var F=y[S],a=this.get(F);b.call(h,a,F,this)}};
_.d.clone=function(){return new _.CT(this)};
_.d.transpose=function(){for(var b=new _.CT,h=0;h<this.JSC$11680_keys_.length;h++){var y=this.JSC$11680_keys_[h];b.set(this.JSC$11680_map_[y],y)}return b};
_.d.keys=function(){return WyW(this.__iterator__(!0)).toEs6()};
_.d.values=function(){return WyW(this.__iterator__(!1)).toEs6()};
_.d.entries=function(){var b=this;return l1W(this.keys(),function(h){return[h,b.get(h)]})};
_.d.__iterator__=function(b){g5(this);var h=0,y=this.version_,S=this,F=new Wa;F.next=function(){if(y!=S.version_)throw Error("ve");if(h>=S.JSC$11680_keys_.length)return Aq;var a=S.JSC$11680_keys_[h++];return U$(b?a:S.JSC$11680_map_[a])};
return F};
var sR=function(b,h){return Object.prototype.hasOwnProperty.call(b,h)};var MDW=function(){this.JSC$11683_map_=new _.CT;this.JSC$11683_head_=new oG7("");this.JSC$11683_head_.next=this.JSC$11683_head_.prev=this.JSC$11683_head_},nG5=function(b,h){if(h=b.JSC$11683_map_.get(h))h.remove(),b.insert_(h);
return h};
_.d=MDW.prototype;_.d.get=function(b,h){return(b=nG5(this,b))?b.value:h};
_.d.set=function(b,h){var y=nG5(this,b);y?y.value=h:(y=new oG7(b,h),this.JSC$11683_map_.set(b,y),this.insert_(y))};
_.d.peek=function(){return this.JSC$11683_head_.next.value};
_.d.shift=function(){return XV8(this,this.JSC$11683_head_.next)};
_.d.pop=function(){return XV8(this,this.JSC$11683_head_.prev)};
_.d.remove=function(b){return(b=this.JSC$11683_map_.get(b))?(this.removeNode(b),!0):!1};
_.d.removeNode=function(b){b.remove();this.JSC$11683_map_.remove(b.key)};
_.d.getCount=function(){return this.JSC$11683_map_.getCount()};
_.d.isEmpty=function(){return this.JSC$11683_map_.isEmpty()};
_.d.getKeys=function(){return this.map(function(b,h){return h})};
_.d.getValues=function(){return this.map(function(b){return b})};
_.d.contains=function(b){return this.some(function(h){return h==b})};
_.d.containsKey=function(b){return this.JSC$11683_map_.containsKey(b)};
_.d.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11683_head_.prev)};
_.d.forEach=function(b,h){for(var y=this.JSC$11683_head_.next;y!=this.JSC$11683_head_;y=y.next)b.call(h,y.value,y.key,this)};
_.d.map=function(b,h){for(var y=[],S=this.JSC$11683_head_.next;S!=this.JSC$11683_head_;S=S.next)y.push(b.call(h,S.value,S.key,this));return y};
_.d.some=function(b,h){for(var y=this.JSC$11683_head_.next;y!=this.JSC$11683_head_;y=y.next)if(b.call(h,y.value,y.key,this))return!0;return!1};
_.d.every=function(b,h){for(var y=this.JSC$11683_head_.next;y!=this.JSC$11683_head_;y=y.next)if(!b.call(h,y.value,y.key,this))return!1;return!0};
_.d.insert_=function(b){b.next=this.JSC$11683_head_.next;b.prev=this.JSC$11683_head_;this.JSC$11683_head_.next=b;for(b.next.prev=b;this.getCount()>100;)this.removeNode(this.JSC$11683_head_.prev)};
var XV8=function(b,h){b.JSC$11683_head_!=h&&b.removeNode(h);return h.value},oG7=function(b,h){this.key=b;
this.value=h};
oG7.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var Hwa=function(){eQ.apply(this,arguments)};
_.z(Hwa,eQ);Hwa.prototype.enqueue=function(b,h){this.insert(b,h)};var us5=function(){var b=Error();b.name="SecurityError";throw b;},oc5=function(){return{get opener(){return null},
get closed(){return!0},get location(){us5()},get document(){us5()},postMessage:function(){},
close:function(){},
focus:function(){}}};var ISU={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 A2I={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 OwG={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(A2I).join("|");var Nxo=function(){function b(K){K.substr(-1)!==";"&&(K+=";");return P(K)}
for(var h=Object.keys(OwG).sort(WLI),y=Object.keys(A2I).sort(WLI),S=0,F=0;S<y.length;S++)h[F]===y[S]?(y[S]+=";?",F++):y[S]+=";";var a=new RegExp("&(?:"+y.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),P=UMj();return function(K){return String(K).replace(a,b)}}();/*

 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 tDw={};var rFM=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"),cFb=/[\\&]/,Rl8=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),zlG=RegExp('[&<>"]',"g"),DDb=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),IAa=function(b){return b.charCodeAt(0)===92?b.charAt(1):Nxo(b)},Bxe=function(b){return cFb.test(b)?b.replace(Rl8,IAa):b},Woa=function(b){try{var h,y="";
if(typeof F!=="string"){var S=F;var F=";/?:@&=+$,-_.!~*'()#"}typeof S==="undefined"&&(S=!0);var a,P=tDw[F];if(P)var K=P;else{P=tDw[F]=[];for(a=0;a<128;a++){var n=String.fromCharCode(a);/^[0-9a-z]$/i.test(n)?P.push(n):P.push("%"+("0"+a.toString(16).toUpperCase()).slice(-2))}for(a=0;a<F.length;a++)P[F.charCodeAt(a)]=F[a];K=P}var X=0;for(h=b.length;X<h;X++){var u=b.charCodeAt(X);if(S&&u===37&&X+2<h&&/^[0-9a-f]{2}$/i.test(b.slice(X+1,X+3)))y+=b.slice(X,X+3),X+=2;else if(u<128)y+=K[u];else if(u>=55296&&
u<=57343){if(u>=55296&&u<=56319&&X+1<h){var O=b.charCodeAt(X+1);if(O>=56320&&O<=57343){y+=encodeURIComponent(b[X]+b[X+1]);X++;continue}}y+="%EF%BF%BD"}else y+=encodeURIComponent(b[X])}return y}catch(N){return b}},AFb=function(b){switch(b){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return b}},Yq=function(b,h){return zlG.test(b)?h?b.replace(DDb,AFb):b.replace(zlG,AFb):b};/*

 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 T9;if(String.fromCodePoint)T9=function(b){try{return String.fromCodePoint(b)}catch(h){if(h instanceof RangeError)return String.fromCharCode(65533);throw h;}};
else{var UDW=String.fromCharCode,pVw=Math.floor;T9=function(){var b=[],h=-1,y=arguments.length;if(!y)return"";for(var S="";++h<y;){var F=Number(arguments[h]);if(!isFinite(F)||F<0||F>1114111||pVw(F)!==F)return String.fromCharCode(65533);if(F<=65535)b.push(F);else{F-=65536;var a=(F>>10)+55296;F=F%1024+56320;b.push(a,F)}if(h+1===y||b.length>16384)S+=UDW.apply(null,b),b.length=0}return S}};var JFb=function(b){this.root=this.current=b;this.entering=!0};
JFb.prototype.next=function(){var b=this.current,h=this.entering;if(b===null)return null;a:switch(b._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 y=!0;break a;default:y=!1}h&&y?b._firstChild?(this.current=b._firstChild,this.entering=!0):this.entering=!1:b===this.root?this.current=null:b._next===null?(this.current=
b._parent,this.entering=!1):(this.current=b._next,this.entering=!0);return{entering:h,node:b}};
var C2=function(b,h){this._type=b;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=h;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};
C2.prototype.appendChild=function(b){b.unlink();b._parent=this;this._lastChild?(this._lastChild._next=b,b._prev=this._lastChild):this._firstChild=b;this._lastChild=b};
C2.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 elW=function(b,h){h.unlink();h._next=b._next;h._next&&(h._next._prev=h);h._prev=b;b._next=h;h._parent=b._parent;h._next||(h._parent._lastChild=h)};
C2.prototype.insertBefore=function(b){b.unlink();b._prev=this._prev;b._prev&&(b._prev._next=b);b._next=this;this._prev=b;b._parent=this._parent;b._prev||(b._parent._firstChild=b)};
_.tm.Object.defineProperties(C2.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(b){this._literal=b}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(b){this._destination=b}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(b){this._title=b}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(b){this._info=b}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(b){this._level=b}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(b){this._listData.type=b}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(b){this._listData.tight=b}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(b){this._listData.start=b}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(b){this._onEnter=b}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(b){this._onExit=b}}});var pq4=/[ \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,
J2j={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 Cqa=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]/),
gGG=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),srW=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),YoN=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),TxM=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),GRN=/`+/,kR5=/^`+/,VDw=/\.\.\./g,EGN=/--+/g,iw5=/^<([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])?)*)>/,
fAM=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,wVb=/^ *(?:\n *)?/,lAM=/^[ \t\n\x0b\x0c\x0d]/,qoW=/[ \t\n\x0b\x0c\x0d]+/g,xDb=/^\s/,Qra=/ *$/,mDa=/^ */,vGe=/^ *(?:\n|$)/,bWb=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),hNM=/^[^\n`\[\]\\!<&*_'"]+/m,G9=function(b){var h=new C2("text");h._literal=b;return h},kq=function(b){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=b||{}};
kq.prototype.match=function(b){b=b.exec(this.subject.slice(this.pos));if(b===null)return null;this.pos+=b.index+b[0].length;return b[0]};
kq.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var V0=function(b){b.match(wVb);return!0},y_G=function(b,h,y){var S=0;
var F=b.pos;if(h===39||h===34)S++,b.pos++;else for(;b.peek()===h;)S++,b.pos++;if(S===0)S=null;else{var a=F===0?"\n":b.subject.charAt(F-1);var P=b.peek();P=P===-1?"\n":T9(P);var K=xDb.test(P);P=Cqa.test(P);var n=xDb.test(a);var X=Cqa.test(a);a=!K&&!(P&&!n&&!X);K=!n&&!(X&&!K&&!P);h===95?(n=a&&(!K||X),P=K&&(!a||P)):(n=h===39||h===34?a&&!K:a,P=K);b.pos=F;S={numdelims:S,can_open:n,can_close:P}}if(!S)return!1;F=S.numdelims;P=b.pos;b.pos+=F;P=h===39?"\u2019":h===34?"\u201c":b.subject.slice(P,b.pos);P=G9(P);
y.appendChild(P);b.delimiters={cc:h,numdelims:F,origdelims:F,node:P,previous:b.delimiters,next:null,can_open:S.can_open,can_close:S.can_close};b.delimiters.previous!==null&&(b.delimiters.previous.next=b.delimiters);return!0},S9a=function(b,h){h.previous!==null&&(h.previous.next=h.next);
h.next===null?b.delimiters=h.previous:h.next.previous=h.previous},Fga=function(b,h){var y,S,F=[],a=!1;
F[95]=h;F[42]=h;F[39]=h;F[34]=h;for(y=b.delimiters;y!==null&&y.previous!==h;)y=y.previous;for(;y!==null;){var P=y.cc;if(y.can_close){var K=y.previous;for(S=!1;K!==null&&K!==h&&K!==F[P];){a=(y.can_open||K.can_close)&&(K.origdelims+y.origdelims)%3===0;if(K.cc===y.cc&&K.can_open&&!a){S=!0;break}K=K.previous}var n=y;if(P===42||P===95)if(S){var X=y.numdelims>=2&&K.numdelims>=2?2:1;var u=K.node;var O=y.node;K.numdelims-=X;y.numdelims-=X;u._literal=u._literal.slice(0,u._literal.length-X);O._literal=O._literal.slice(0,
O._literal.length-X);var N=new C2(X===1?"emph":"strong");for(X=u._next;X&&X!==O;){var t=X._next;X.unlink();N.appendChild(X);X=t}elW(u,N);X=K;t=y;X.next!==t&&(X.next=t,t.previous=X);K.numdelims===0&&(u.unlink(),S9a(b,K));y.numdelims===0&&(O.unlink(),K=y.next,S9a(b,y),y=K)}else y=y.next;else P===39?(y.node._literal="\u2019",S&&(K.node._literal="\u2018"),y=y.next):P===34&&(y.node._literal="\u201d",S&&(K.node.literal="\u201c"),y=y.next);S||a||(F[P]=n.previous,n.can_open||S9a(b,n))}else y=y.next}for(;b.delimiters!==
null&&b.delimiters!==h;)S9a(b,b.delimiters)},aao=function(b){b=b.match(gGG);
return b===null?null:Bxe(b.substr(1,b.length-2))},d$5=function(b){var h=b.match(srW);
if(h===null){h=b.pos;for(var y=0,S;(S=b.peek())!==-1;)if(S===92)b.pos+=1,b.peek()!==-1&&(b.pos+=1);else if(S===40)b.pos+=1,y+=1;else if(S===41)if(y<1)break;else b.pos+=1,--y;else if(lAM.exec(T9(S))!==null)break;else b.pos+=1;h=b.subject.substr(h,b.pos-h);return Woa(Bxe(h))}return Woa(Bxe(h.substr(1,h.length-2)))},j8W=function(b){b=b.match(bWb);
return b===null||b.length>1001?0:b.length},$$W=function(b,h,y,S){b.brackets!==null&&(b.brackets.bracketAfter=!0);
b.brackets={node:h,previous:b.brackets,previousDelimiter:b.delimiters,index:y,image:S,active:!0}},Lg7=function(b,h){var y;
return(y=b.match(hNM))?(b.options.smart?h.appendChild(G9(y.replace(VDw,"\u2026").replace(EGN,function(S){var F=0,a=0;S.length%3===0?a=S.length/3:S.length%2===0?F=S.length/2:S.length%3===2?(F=1,a=(S.length-2)/3):(F=2,a=(S.length-4)/3);S="";var P;for(P=0;P<a;P++)S+="\u2014";for(P=0;P<F;P++)S+="\u2013";return S}))):h.appendChild(G9(y)),!0):!1},PGo=function(b,h,y){b.subject=h;
b.pos=0;h=b.pos;var S=j8W(b);if(S===0)return 0;var F=b.subject.substr(0,S);if(b.peek()===58)b.pos++;else return b.pos=h,0;V0(b);S=d$5(b);if(S===null||S.length===0)return b.pos=h,0;var a=b.pos;V0(b);var P=aao(b);P===null&&(P="",b.pos=a);var K=!0;b.match(vGe)===null&&(P===""?K=!1:(P="",b.pos=a,K=b.match(vGe)!==null));if(!K)return b.pos=h,0;F=eor(F);if(F==="")return b.pos=h,0;y[F]||(y[F]={destination:S,title:P});return b.pos-h},Kgo=function(b,h){var y,S=b.peek();
if(S===-1)return!1;switch(S){case 10:b.pos+=1;if((y=h._lastChild)&&y.type==="text"&&y._literal[y._literal.length-1]===" "){var F=y._literal[y._literal.length-2]===" ";y._literal=y._literal.replace(Qra,"");h.appendChild(new C2(F?"linebreak":"softbreak"))}else h.appendChild(new C2("softbreak"));b.match(mDa);y=!0;break;case 92:y=b.subject;b.pos+=1;b.peek()===10?(b.pos+=1,y=new C2("linebreak"),h.appendChild(y)):YoN.test(y.charAt(b.pos))?(h.appendChild(G9(y.charAt(b.pos))),b.pos+=1):h.appendChild(G9("\\"));
y=!0;break;case 96:a:if(y=b.match(kR5),y===null)y=!1;else{F=b.pos;for(var a;(a=b.match(GRN))!==null;)if(a===y){a=new C2("code");a._literal=b.subject.slice(F,b.pos-y.length).trim().replace(qoW," ");h.appendChild(a);y=!0;break a}b.pos=F;h.appendChild(G9(y));y=!0}break;case 42:case 95:y=y_G(b,S,h);break;case 39:case 34:y=b.options.smart&&y_G(b,S,h);break;case 91:y=b.pos;b.pos+=1;F=G9("[");h.appendChild(F);$$W(b,F,y,!1);y=!0;break;case 33:y=b.pos;b.pos+=1;b.peek()===91?(b.pos+=1,F=G9("!["),h.appendChild(F),
$$W(b,F,y+1,!0)):h.appendChild(G9("!"));y=!0;break;case 93:var P,K=!1,n;b.pos+=1;var X=b.pos;F=b.brackets;if(F===null)h.appendChild(G9("]"));else if(F.active){y=F.image;var u=b.pos;b.peek()===40&&(b.pos++,V0(b)&&(a=d$5(b))!==null&&V0(b)&&(lAM.test(b.subject.charAt(b.pos-1))&&(P=aao(b)),1)&&V0(b)&&b.peek()===41?(b.pos+=1,K=!0):b.pos=u);if(!K){var O=b.pos,N=j8W(b);N>2?n=b.subject.slice(O,O+N):F.bracketAfter||(n=b.subject.slice(F.index,X));N===0&&(b.pos=u);n&&(n=b.refmap[eor(n)])&&(a=n.destination,P=
n.title,K=!0)}if(K){X=new C2(y?"image":"link");X._destination=a;X._title=P||"";for(a=F.node._next;a;)P=a._next,a.unlink(),X.appendChild(a),a=P;h.appendChild(X);Fga(b,F.previousDelimiter);b.brackets=b.brackets.previous;F.node.unlink();if(!y)for(F=b.brackets;F!==null;)F.image||(F.active=!1),F=F.previous}else b.brackets=b.brackets.previous,b.pos=X,h.appendChild(G9("]"))}else h.appendChild(G9("]")),b.brackets=b.brackets.previous;y=!0;break;case 60:(y=b.match(iw5))?(y=y.slice(1,y.length-1),F=new C2("link"),
F._destination=Woa("mailto:"+y),F._title="",F.appendChild(G9(y)),h.appendChild(F),y=!0):(y=b.match(fAM))?(y=y.slice(1,y.length-1),F=new C2("link"),F._destination=Woa(y),F._title="",F.appendChild(G9(y)),h.appendChild(F),y=!0):y=!1;y||(y=b.match(rFM),y===null?y=!1:(F=new C2("html_inline"),F._literal=y,h.appendChild(F),y=!0));break;case 38:(y=b.match(TxM))?(h.appendChild(G9(Nxo(y))),y=!0):y=!1;break;default:y=Lg7(b,h)}y||(b.pos+=1,h.appendChild(G9(T9(S))));return!0};
kq.prototype.parseInlines=function(b){this.subject=b._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;Kgo(this,b););b._string_content=null;Fga(this,null)};
kq.prototype.parse=kq.prototype.parseInlines;var ZW5=[/./,/^<(?: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")],o7a=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],M45=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,n75=/^[#`~*+_=<>0-9-\|]|\|/,Xf5=/[^ \t\f\v\r\n]/,HWM=/^[*+-]/,uob=/^(\d{1,9})([.)])/,OWM=/^#{1,6}(?:[ \t]+|$)/,NeW=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,t4w=/^(?:`{3,}|~{3,})(?= *$)/,r_W=/^(?:=+|-+)[ \t]*$/,c_b=/\r\n|\n|\r/,gBI=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,syI=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,RNa={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(b){return b!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(b,h){for(b=h._firstChild;b;){if(C4j(b)&&b._next){h._listData.tight=!1;break}for(var y=b._firstChild;y;){if(C4j(y)&&(b._next||y._next)){h._listData.tight=!1;break}y=y._next}b=b._next}},
canContain:function(b){return b==="item"},
acceptsLines:!1},block_quote:{continue:function(b){var h=b.currentLine;if(b.indented||Jm(h,b.nextNonspace)!==62)return 1;ER(b);w5(b,1,!1);p2(Jm(h,b.offset))&&w5(b,1,!0);return 0},
finalize:function(){},
canContain:function(b){return b!=="item"},
acceptsLines:!1},item:{continue:function(b,h){if(b.blank){if(h._firstChild==null)return 1;ER(b)}else if(b.indent>=h._listData.markerOffset+h._listData.padding)w5(b,h._listData.markerOffset+h._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(b){return b!=="item"&&!YeY(b)},
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(b,h){var y=b.currentLine,S=b.indent;if(h._isFenced){if((S=S<=3&&y.charAt(b.nextNonspace)===h._fenceChar&&y.slice(b.nextNonspace).match(t4w))&&S[0].length>=h._fenceLength)return b.finalize(h,b.lineNumber),2;for(h=h._fenceOffset;h>0&&p2(Jm(y,b.offset));)w5(b,1,!0),h--}else if(S>=4)w5(b,4,!0);else if(b.blank)ER(b);else return 1;return 0},
finalize:function(b,h){if(h._isFenced){var y=h._string_content,S=y.indexOf("\n");b=y.slice(0,S);y=y.slice(S+1);h.info=Bxe(b.trim());h._literal=y}else h._literal=h._string_content.replace(/(\n *)+$/,"\n");h._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(b,h){return!b.blank||h._htmlBlockType!==6&&h._htmlBlockType!==7?0:1},
finalize:function(b,h){h._literal=h._string_content.replace(/(\n *)+$/,"");h._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(b){return b.blank?1:0},
finalize:function(b,h){for(var y,S=!1;Jm(h._string_content,0)===91&&(y=PGo(b.inlineParser,h._string_content,b.refmap));)h._string_content=h._string_content.slice(y),S=!0;S&&!Xf5.test(h._string_content)&&h.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(b){return eM(b.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(b){return b=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(b,h){if(!h._rowIsDelimiter){b=h._isHeader?"th":"td";for(var y=h._parent._tableColumns,S=h._string_content,F=0,a="",P,K=h._sourcepos[0][0];F<S.length;){switch(S[F]){case "|":P&&(P._string_content=a.trim(),a="",P=null,y--,y<=0&&(F=S.length));break;default:if(!P){P=new C2(b,[[K,F],[K,F]]);var n=h._parent._columnAlignment,X=h._parent._tableColumns-y;n&&X<=n.length&&X>=0&&(P._alignment=n[X]);h.appendChild(P)}a+=S[F];P._sourcepos[1][1]=F}F++}P&&(P._string_content=a.trim());h._string_content=
""}},
canContain:function(b){return b!=="row"},
acceptsLines:!1}},zNa=[function(b){if(b.indented||Jm(b.currentLine,b.nextNonspace)!==62)return 0;ER(b);w5(b,1,!1);p2(Jm(b.currentLine,b.offset))&&w5(b,1,!0);lt(b);b.addChild("block_quote",b.nextNonspace);return 1},
function(b){var h;if(!b.indented&&(h=b.currentLine.slice(b.nextNonspace).match(OWM))){ER(b);w5(b,h[0].length,!1);lt(b);var y=b.addChild("heading",b.nextNonspace);y.level=h[0].trim().length;y._string_content=b.currentLine.slice(b.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");w5(b,b.currentLine.length-b.offset);return 2}return 0},
function(b){var h;if(!b.indented&&(h=b.currentLine.slice(b.nextNonspace).match(NeW))){var y=h[0].length;lt(b);var S=b.addChild("code_block",b.nextNonspace);S._isFenced=!0;S._fenceLength=y;S._fenceChar=h[0][0];S._fenceOffset=b.indent;ER(b);w5(b,y,!1);return 2}return 0},
function(b,h){if(!b.indented&&Jm(b.currentLine,b.nextNonspace)===60){var y=b.currentLine.slice(b.nextNonspace),S;for(S=1;S<=7;S++)if(ZW5[S].test(y)&&(S<7||h.type!=="paragraph"))return lt(b),b.addChild("html_block",b.offset)._htmlBlockType=S,2}return 0},
function(b,h){var y;if(!b.indented&&h.type==="paragraph"&&(y=b.currentLine.slice(b.nextNonspace).match(r_W))){lt(b);var S=new C2("heading",h.sourcepos);S.level=y[0][0]==="="?1:2;S._string_content=h._string_content;elW(h,S);h.unlink();b.tip=S;w5(b,b.currentLine.length-b.offset,!1);return 2}return 0},
function(b){return!b.indented&&M45.test(b.currentLine.slice(b.nextNonspace))?(lt(b),b.addChild("thematic_break",b.nextNonspace),w5(b,b.currentLine.length-b.offset,!1),2):0},
function(b,h){var y,S;if(!(S=b.indented&&h.type!=="list")){a:{var F=h,a=b.currentLine.slice(b.nextNonspace);S={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:b.indent};if(y=a.match(HWM))S.type="bullet",S.bulletChar=y[0][0];else{if(!(y=a.match(uob))||F.type==="paragraph"&&y[1]!=="1"){y=null;break a}S.type="ordered";S.start=parseInt(y[1],10);S.delimiter=y[2]}var P=Jm(b.currentLine,b.nextNonspace+y[0].length);if(P!==-1&&P!==9&&P!==32||F.type==="paragraph"&&!b.currentLine.slice(b.nextNonspace+
y[0].length).match(Xf5))y=null;else{ER(b);w5(b,y[0].length,!0);F=b.column;a=b.offset;do w5(b,1,!0),P=Jm(b.currentLine,b.offset);while(b.column-F<5&&p2(P));P=Jm(b.currentLine,b.offset)===-1;var K=b.column-F;K>=5||K<1||P?(S.padding=y[0].length+1,b.column=F,b.offset=a,p2(Jm(b.currentLine,b.offset))&&w5(b,1,!0)):S.padding=y[0].length+K;y=S}}S=!y}if(S)return 0;lt(b);(S=b.tip.type!=="list")||(h=h._listData,S=!(h.type===y.type&&h.delimiter===y.delimiter&&h.bulletChar===y.bulletChar));S&&(h=b.addChild("list",
b.nextNonspace),h._listData=y);h=b.addChild("item",b.nextNonspace);h._listData=y;return 1},
function(b){var h;return((h=b.options.shouldParseIndentAsCodeBlock)!=null?h:1)&&b.indented&&b.tip.type!=="paragraph"&&!b.blank?(w5(b,4,!0),lt(b),b.addChild("code_block",b.offset),2):0},
function(b,h){var y=eM(b.currentLine),S=eM(b.lookahead);if(y!==0&&S<0&&Math.abs(y)==Math.abs(S)&&!YeY(h.type)){lt(b);h=b.addChild("table",b.nextNonspace);h._tableRows=1;h._tableColumns=Math.abs(y);y=b.lookahead;if(syI.test(y)){S=[];for(var F=0,a=!1,P=0,K=void 0;F<y.length;){var n=P>=3;switch(y[F]){case "-":P++;break;case "|":a&&(S.push(K),K=void 0,P=0);a=!0;break;case ":":K||n||(K="left"),!K&&n&&(K="right"),K==="left"&&n&&(K="center")}F++}y=S}else y=void 0;h._columnAlignment=y;h=b.addChild("row",
b.nextNonspace);h._isHeader=!0;w5(b,b.currentLine.length-b.offset,!1);h._string_content=b.currentLine;return 1}return 0},
function(b,h){if(h.type=="table"&&eM(b.currentLine)!==0){lt(b);var y=h;h=b.addChild("row",b.nextNonspace);eM(b.currentLine)<0?h._rowIsDelimiter=!0:y._tableRows+=1;w5(b,b.currentLine.length-b.offset,!1);h._string_content=b.currentLine;return 2}return 0}],KFI=function(){var b={shouldParseIndentAsCodeBlock:!1};
b=b===void 0?{}:b;this.lastMatchedContainer=this.doc=TX8();this.refmap={};this.lastLineLength=0;this.inlineParser=new kq(b);this.options=b;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=RNa;this.blockStarts=zNa},D$G=function(b){b.partiallyConsumedTab&&(b.offset+=1,b.tip._string_content+=" ".repeat(4-b.column%
4));
b.tip._string_content+=b.currentLine.slice(b.offset)+"\n"};
KFI.prototype.addChild=function(b,h){for(;!this.blocks[this.tip.type].canContain(b);)this.finalize(this.tip,this.lineNumber-1);b=new C2(b,[[this.lineNumber,h+1],[0,0]]);b._string_content="";this.tip.appendChild(b);return this.tip=b};
var lt=function(b){if(!b.allClosed){for(;b.oldtip!==b.lastMatchedContainer;){var h=b.oldtip._parent;b.finalize(b.oldtip,b.lineNumber-1);b.oldtip=h}b.allClosed=!0}},w5=function(b,h,y){for(var S=b.currentLine,F,a;h>0&&(a=S[b.offset]);)a==="\t"?(F=4-b.column%4,y?(b.partiallyConsumedTab=F>h,F=F>h?h:F,b.column+=F,b.offset+=b.partiallyConsumedTab?0:1,h-=F):(b.partiallyConsumedTab=!1,b.column+=F,b.offset+=1,--h)):(b.partiallyConsumedTab=!1,b.offset+=1,b.column+=1,--h)},ER=function(b){b.offset=b.nextNonspace;
b.column=b.nextNonspaceColumn;b.partiallyConsumedTab=!1},IaW=function(b){for(var h=b.currentLine,y=b.offset,S=b.column,F;(F=h.charAt(y))!=="";)if(F===" ")y++,S++;
else if(F==="\t")y++,S+=4-S%4;else break;b.blank=F==="\n"||F==="\r"||F==="";b.nextNonspace=y;b.nextNonspaceColumn=S;b.indent=b.nextNonspaceColumn-b.column;b.indented=b.indent>=4};
KFI.prototype.finalize=function(b,h){var y=b._parent;b._open=!1;b.sourcepos[1]=[h,this.lastLineLength];this.blocks[b.type].finalize(this,b);this.tip=y};
KFI.prototype.parse=function(b){this.tip=this.doc=TX8();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!b)return this.doc;this.options.time&&console.time("preparing input");var h=b.split(c_b),y=h.length;b.charCodeAt(b.length-1)===10&&--y;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(b=0;b<y;b++)a:{var S=void 0,F=h[b],a=h[b+1],P=!0,K=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;F.indexOf("\x00")!==-1&&(F=F.replace(/\0/g,"\ufffd"));this.currentLine=F;for(this.lookahead=a;(S=K._lastChild)&&S._open;){K=S;IaW(this);switch(this.blocks[K.type].continue(this,K)){case 0:break;case 1:P=!1;break;case 2:this.lastLineLength=F.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!P){K=K._parent;break}}this.allClosed=K===this.oldtip;this.lastMatchedContainer=
K;S=K.type!=="paragraph"&&RNa[K.type].acceptsLines;a=this.blockStarts;for(P=a.length;!S;){IaW(this);if(!this.indented&&!n75.test(F.slice(this.nextNonspace))){ER(this);break}for(var n=0;n<P;){var X=a[n](this,K);if(X===1){K=this.tip;break}else if(X===2){K=this.tip;S=!0;break}else n++}if(n===P){ER(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){lt(this);this.blank&&K.lastChild&&(K.lastChild._lastLineBlank=!0);S=K.type;a=this.blank&&!(S==="block_quote"||S==="code_block"&&K._isFenced||
S==="item"&&!K._firstChild&&K.sourcepos[0][0]===this.lineNumber);for(P=K;P;)P._lastLineBlank=a,P=P._parent;this.blocks[S].acceptsLines?(D$G(this),S==="html_block"&&K._htmlBlockType>=1&&K._htmlBlockType<=5&&o7a[K._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(K,this.lineNumber)):this.offset<F.length&&!this.blank&&(this.addChild("paragraph",this.offset),ER(this),D$G(this))}else D$G(this);this.lastLineLength=F.length}for(;this.tip;)this.finalize(this.tip,y);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");F=new JFb(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;y=F.next();)h=y.node,b=h.type,y.entering||b!=="paragraph"&&b!=="heading"&&b!=="th"&&b!="td"||this.inlineParser.parse(h);this.options.time&&console.timeEnd("inline parsing");return this.doc};GGf.prototype.render=function(b){b=new JFb(b);var h;this.buffer="";for(this.lastOut="\n";h=b.next();){var y=h.node.type;if(this[y])this[y](h.node,h.entering)}return this.buffer};
GGf.prototype.out=function(b){qB(this,b)};
var qB=function(b,h){b.buffer+=h;b.lastOut=h};
GGf.prototype.cr=function(){this.lastOut!=="\n"&&qB(this,"\n")};var Be5=/^javascript:|vbscript:|file:|data:/i,WgW=/^data:image\/(?:png|gif|jpeg|webp)/i,A_G=function(b){return Be5.test(b)&&!WgW.test(b)};
gk.prototype=Object.create(GGf.prototype);_.d=gk.prototype;_.d.text=function(b){this.out(b.literal)};
_.d.html_inline=function(b){this.options.safe?qB(this,"\x3c!-- raw HTML omitted --\x3e"):qB(this,b.literal)};
_.d.html_block=function(b){this.cr();this.options.safe?qB(this,"\x3c!-- raw HTML omitted --\x3e"):qB(this,b.literal);this.cr()};
_.d.softbreak=function(){qB(this,this.options.softbreak)};
_.d.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.d.link=function(b,h){var y=this.attrs(b);h?(this.options.safe&&A_G(b.destination)||y.push(["href",Yq(b.destination,!0)]),b.title&&y.push(["title",Yq(b.title,!0)]),this.tag("a",y)):this.tag("/a")};
_.d.image=function(b,h){h?(this.disableTags===0&&(this.options.safe&&A_G(b.destination)?qB(this,'<img src="" alt="'):qB(this,'<img src="'+Yq(b.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(b.title&&qB(this,'" title="'+Yq(b.title,!0)),qB(this,'" />')))};
_.d.emph=function(b,h){this.tag(h?"em":"/em")};
_.d.strong=function(b,h){this.tag(h?"strong":"/strong")};
_.d.paragraph=function(b,h){var y=b.parent.parent;b=this.attrs(b);y!==null&&y.type==="list"&&y.listTight||(h?(this.cr(),this.tag("p",b)):(this.tag("/p"),this.cr()))};
_.d.heading=function(b,h){var y="h"+b.level;b=this.attrs(b);h?(this.cr(),this.tag(y,b)):(this.tag("/"+y),this.cr())};
_.d.code=function(b){this.tag("code");this.out(b.literal);this.tag("/code")};
_.d.code_block=function(b){var h=b.info?b.info.split(/\s+/):[],y=this.attrs(b);h.length>0&&h[0].length>0&&y.push(["class","language-"+Yq(h[0],!0)]);this.cr();this.tag("pre");this.tag("code",y);this.out(b.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.d.thematic_break=function(b){b=this.attrs(b);this.cr();this.tag("hr",b,!0);this.cr()};
_.d.block_quote=function(b,h){b=this.attrs(b);h?(this.cr(),this.tag("blockquote",b)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.d.list=function(b,h){var y=b.listType==="bullet"?"ul":"ol",S=this.attrs(b);h?(b=b.listStart,b!==null&&b!==1&&S.push(["start",b.toString()]),this.cr(),this.tag(y,S)):(this.cr(),this.tag("/"+y));this.cr()};
_.d.item=function(b,h){b=this.attrs(b);h?this.tag("li",b):(this.tag("/li"),this.cr())};
_.d.custom_inline=function(b,h){h&&b.onEnter?qB(this,b.onEnter):!h&&b.onExit&&qB(this,b.onExit)};
_.d.custom_block=function(b,h){this.cr();h&&b.onEnter?qB(this,b.onEnter):!h&&b.onExit&&qB(this,b.onExit);this.cr()};
_.d.table=function(b,h){b=this.attrs(b);h?(this.cr(),this.tag("table",b)):(this.tag("/table"),this.cr())};
_.d.row=function(b,h){b._rowIsDelimiter||(b=this.attrs(b),h?this.tag("tr",b):this.tag("/tr"))};
_.d.td=function(b,h){var y=this.attrs(b);b._alignment&&y.push(["align",b._alignment]);h?this.tag("td",y):this.tag("/td")};
_.d.th=function(b,h){var y=this.attrs(b);b._alignment&&y.push(["align",b._alignment]);h?this.tag("th",y):this.tag("/th")};
_.d.out=function(b){qB(this,Yq(b,!1))};
_.d.tag=function(b,h,y){if(!(this.disableTags>0)){this.buffer+="<"+b;if(h&&h.length>0){b=0;for(var S;(S=h[b])!==void 0;)this.buffer+=" "+S[0]+'="'+S[1]+'"',b++}y&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.d.attrs=function(b){var h=[];this.options.sourcepos&&(b=b.sourcepos)&&h.push(["data-sourcepos",String(b[0][0])+":"+String(b[0][1])+"-"+String(b[1][0])+":"+String(b[1][1])]);return h};
gk.prototype.text=gk.prototype.text;gk.prototype.html_inline=gk.prototype.html_inline;gk.prototype.html_block=gk.prototype.html_block;gk.prototype.softbreak=gk.prototype.softbreak;gk.prototype.linebreak=gk.prototype.linebreak;gk.prototype.link=gk.prototype.link;gk.prototype.image=gk.prototype.image;gk.prototype.emph=gk.prototype.emph;gk.prototype.strong=gk.prototype.strong;gk.prototype.paragraph=gk.prototype.paragraph;gk.prototype.heading=gk.prototype.heading;gk.prototype.code=gk.prototype.code;
gk.prototype.code_block=gk.prototype.code_block;gk.prototype.thematic_break=gk.prototype.thematic_break;gk.prototype.block_quote=gk.prototype.block_quote;gk.prototype.list=gk.prototype.list;gk.prototype.item=gk.prototype.item;gk.prototype.custom_inline=gk.prototype.custom_inline;gk.prototype.custom_block=gk.prototype.custom_block;gk.prototype.table=gk.prototype.table;gk.prototype.row=gk.prototype.row;gk.prototype.td=gk.prototype.td;gk.prototype.th=gk.prototype.th;gk.prototype.out=gk.prototype.out;
gk.prototype.tag=gk.prototype.tag;gk.prototype.attrs=gk.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 U$e,pfN,N0M;(function(){function b(J,A){return J<A?-1:J>A?1:J>=A?0:NaN}
function h(J){return function(A,G){return b(J(A),G)}}
function y(){for(var J=0,A=arguments.length,G={},yN;J<A;++J){if(!(yN=arguments[J]+"")||yN in G)throw Error("xe`"+yN);G[yN]=[]}return new S(G)}
function S(J){this._=J}
function F(J,A){return J.trim().split(/^|\s+/).map(function(G){var yN="",K4=G.indexOf(".");K4>=0&&(yN=G.slice(K4+1),G=G.slice(0,K4));if(G&&!A.hasOwnProperty(G))throw Error("ye`"+G);return{type:G,name:yN}})}
function a(J,A,G){for(var yN=0,K4=J.length;yN<K4;++yN)if(J[yN].name===A){J[yN]=cZY;J=J.slice(0,yN).concat(J.slice(yN+1));break}G!=null&&J.push({name:A,value:G});return J}
function P(J){var A=J,G=A.indexOf(":");G>=0&&(A=J.slice(0,G))!=="xmlns"&&(J=J.slice(G+1));return Za.hasOwnProperty(A)?{space:Za[A],local:J}:J}
function K(J){return function(){var A=this.ownerDocument,G=this.namespaceURI;return G==="http://www.w3.org/1999/xhtml"&&A.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?A.createElement(J):A.createElementNS(G,J)}}
function n(J){return function(){return this.ownerDocument.createElementNS(J.space,J.local)}}
function X(J){J=P(J);return(J.local?n:K)(J)}
function u(){}
function O(J){return J==null?u:function(){return this.querySelector(J)}}
function N(J){return Array(J.length)}
function t(J,A){this.ownerDocument=J.ownerDocument;this.namespaceURI=J.namespaceURI;this._next=null;this._parent=J;this.__data__=A}
function R(J){return function(){return J}}
function I(J,A,G,yN,K4,Oj){for(var Dr=0,JY,LM=A.length,aN=Oj.length;Dr<aN;++Dr)(JY=A[Dr])?(JY.__data__=Oj[Dr],yN[Dr]=JY):G[Dr]=new t(J,Oj[Dr]);for(;Dr<LM;++Dr)if(JY=A[Dr])K4[Dr]=JY}
function U(J,A,G,yN,K4,Oj,Dr){var JY,LM,aN={},KM=A.length,t8=Oj.length,ba=Array(KM),e2;for(JY=0;JY<KM;++JY)if(LM=A[JY])ba[JY]=e2="$"+Dr.call(LM,LM.__data__,JY,A),e2 in aN?K4[JY]=LM:aN[e2]=LM;for(JY=0;JY<t8;++JY)e2="$"+Dr.call(J,Oj[JY],JY,Oj),(LM=aN[e2])?(yN[JY]=LM,LM.__data__=Oj[JY],aN[e2]=null):G[JY]=new t(J,Oj[JY]);for(JY=0;JY<KM;++JY)(LM=A[JY])&&aN[ba[JY]]===LM&&(K4[JY]=LM)}
function p(J,A){return J<A?-1:J>A?1:J>=A?0:NaN}
function e(J){return function(){this.removeAttribute(J)}}
function E(J){return function(){this.removeAttributeNS(J.space,J.local)}}
function Y(J,A){return function(){this.setAttribute(J,A)}}
function w(J,A){return function(){this.setAttributeNS(J.space,J.local,A)}}
function x(J,A){return function(){var G=A.apply(this,arguments);G==null?this.removeAttribute(J):this.setAttribute(J,G)}}
function q(J,A){return function(){var G=A.apply(this,arguments);G==null?this.removeAttributeNS(J.space,J.local):this.setAttributeNS(J.space,J.local,G)}}
function dI(J){return function(){this.style.removeProperty(J)}}
function L4(J,A,G){return function(){this.style.setProperty(J,A,G)}}
function Rq(J,A,G){return function(){var yN=A.apply(this,arguments);yN==null?this.style.removeProperty(J):this.style.setProperty(J,yN,G)}}
function Xn(J,A){return J.style.getPropertyValue(A)||(J.ownerDocument&&J.ownerDocument.defaultView||J.document&&J||J.defaultView).getComputedStyle(J,null).getPropertyValue(A)}
function Ny(J){return function(){delete this[J]}}
function gI(J,A){return function(){this[J]=A}}
function YU(J,A){return function(){var G=A.apply(this,arguments);G==null?delete this[J]:this[J]=G}}
function VN(){this.textContent=""}
function Hb(J){return function(){this.textContent=J}}
function vF(J){return function(){var A=J.apply(this,arguments);this.textContent=A==null?"":A}}
function xU(){this.innerHTML=""}
function Xa(J){return function(){this.innerHTML=J}}
function rG(J){return function(){var A=J.apply(this,arguments);this.innerHTML=A==null?"":A}}
function Wb(){return null}
function Xx(){var J=this.parentNode;J&&J.removeChild(this)}
function Bb(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function oq(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function kU(J,A,G){J=O7(J,A,G);return function(yN){var K4=yN.relatedTarget;K4&&(K4===this||K4.compareDocumentPosition(this)&8)||J.call(this,yN)}}
function O7(J,A,G){return function(){J.call(this,this.__data__,A,G)}}
function io(J){return J.trim().split(/^|\s+/).map(function(A){var G="",yN=A.indexOf(".");yN>=0&&(G=A.slice(yN+1),A=A.slice(0,yN));return{type:A,name:G}})}
function cb(J){return function(){var A=this.__on;if(A){for(var G=0,yN=-1,K4=A.length,Oj;G<K4;++G)(Oj=A[G],J.type&&Oj.type!==J.type||Oj.name!==J.name)?A[++yN]=Oj:this.removeEventListener(Oj.type,Oj.listener,Oj.capture);++yN?A.length=yN:delete this.__on}}}
function QW(J,A,G){var yN=rpM.hasOwnProperty(J.type)?kU:O7;return function(K4,Oj,Dr){K4=this.__on;var JY;Oj=yN(A,Oj,Dr);if(K4){Dr=0;for(var LM=K4.length;Dr<LM;++Dr)if((JY=K4[Dr]).type===J.type&&JY.name===J.name){this.removeEventListener(JY.type,JY.listener,JY.capture);this.addEventListener(JY.type,JY.listener=Oj,JY.capture=G);JY.value=A;return}}this.addEventListener(J.type,Oj,G);JY={type:J.type,name:J.name,value:A,listener:Oj,capture:G};K4?K4.push(JY):this.__on=[JY]}}
function vM(J,A,G){var yN=J.ownerDocument&&J.ownerDocument.defaultView||J.document&&J||J.defaultView,K4=yN.CustomEvent;typeof K4==="function"?K4=new K4(A,G):(K4=yN.document.createEvent("Event"),G?(K4.initEvent(A,G.bubbles,G.cancelable),K4.detail=G.detail):K4.initEvent(A,!1,!1));J.dispatchEvent(K4)}
function wG(J,A){return function(){return vM(this,J,A)}}
function oN(J,A){return function(){return vM(this,J,A.apply(this,arguments))}}
function uo(J,A){this._groups=J;this._parents=A}
function dA(){return new uo([[document.documentElement]],RfP)}
function QN(){this._="@"+(++zfX).toString(36)}
function vb(J,A,G){J.prototype=A.prototype=G;G.constructor=J}
function fA(J,A){J=Object.create(J.prototype);for(var G in A)J[G]=A[G];return J}
function bJ(){}
function ua(J){var A;J=(J+"").trim().toLowerCase();return(A=DYA.exec(J))?(A=parseInt(A[1],16),new IP(A>>8&15|A>>4&240,A>>4&15|A&240,(A&15)<<4|A&15,1)):(A=Iiq.exec(J))?kF(parseInt(A[1],16)):(A=BEq.exec(J))?new IP(A[1],A[2],A[3],1):(A=Wzq.exec(J))?new IP(A[1]*255/100,A[2]*255/100,A[3]*255/100,1):(A=AZN.exec(J))?oa(A[1],A[2],A[3],A[4]):(A=UYx.exec(J))?oa(A[1]*255/100,A[2]*255/100,A[3]*255/100,A[4]):(A=pQf.exec(J))?Jg(A[1],A[2]/100,A[3]/100,1):(A=JZA.exec(J))?Jg(A[1],A[2]/100,A[3]/100,A[4]):cpM.hasOwnProperty(J)?
kF(cpM[J]):J==="transparent"?new IP(NaN,NaN,NaN,0):null}
function kF(J){return new IP(J>>16&255,J>>8&255,J&255,1)}
function oa(J,A,G,yN){yN<=0&&(J=A=G=NaN);return new IP(J,A,G,yN)}
function PB(J){J instanceof bJ||(J=ua(J));if(!J)return new IP;J=J.rgb();return new IP(J.r,J.g,J.b,J.opacity)}
function lo(J,A,G,yN){return arguments.length===1?PB(J):new IP(J,A,G,yN==null?1:yN)}
function IP(J,A,G,yN){this.r=+J;this.g=+A;this.b=+G;this.opacity=+yN}
function j2(J){J=Math.max(0,Math.min(255,Math.round(J)||0));return(J<16?"0":"")+J.toString(16)}
function Jg(J,A,G,yN){yN<=0?J=A=G=NaN:G<=0||G>=1?J=A=NaN:A<=0&&(J=NaN);return new B0(J,A,G,yN)}
function uR(J){if(J instanceof B0)return new B0(J.h,J.s,J.l,J.opacity);J instanceof bJ||(J=ua(J));if(!J)return new B0;if(J instanceof B0)return J;J=J.rgb();var A=J.r/255,G=J.g/255,yN=J.b/255,K4=Math.min(A,G,yN),Oj=Math.max(A,G,yN),Dr=NaN,JY=Oj-K4,LM=(Oj+K4)/2;JY?(Dr=A===Oj?(G-yN)/JY+(G<yN)*6:G===Oj?(yN-A)/JY+2:(A-G)/JY+4,JY/=LM<.5?Oj+K4:2-Oj-K4,Dr*=60):JY=LM>0&&LM<1?0:Dr;return new B0(Dr,JY,LM,J.opacity)}
function Yb(J,A,G,yN){return arguments.length===1?uR(J):new B0(J,A,G,yN==null?1:yN)}
function B0(J,A,G,yN){this.h=+J;this.s=+A;this.l=+G;this.opacity=+yN}
function Vx(J,A,G){return(J<60?A+(G-A)*J/60:J<180?G:J<240?A+(G-A)*(240-J)/60:A)*255}
function vL(J){if(J instanceof BF)return new BF(J.l,J.a,J.b,J.opacity);if(J instanceof U7){if(isNaN(J.h))return new BF(J.l,0,0,J.opacity);var A=J.h*RE8;return new BF(J.l,Math.cos(A)*J.c,Math.sin(A)*J.c,J.opacity)}J instanceof IP||(J=PB(J));var G=rA(J.r),yN=rA(J.g),K4=rA(J.b);A=Tk(.2225045*G+.7168786*yN+.0606169*K4);if(G===yN&&yN===K4)var Oj=G=A;else Oj=Tk((.4360747*G+.3850649*yN+.1430804*K4)/.96422),G=Tk((.0139322*G+.0971045*yN+.7141733*K4)/.82521);return new BF(116*A-16,500*(Oj-A),200*(A-G),J.opacity)}
function BF(J,A,G,yN){this.l=+J;this.a=+A;this.b=+G;this.opacity=+yN}
function Tk(J){return J>efX?Math.pow(J,1/3):J/zEa+Dpa}
function qy(J){return J>YA?J*J*J:zEa*(J-Dpa)}
function za(J){return 255*(J<=.0031308?12.92*J:1.055*Math.pow(J,1/2.4)-.055)}
function rA(J){return(J/=255)<=.04045?J/12.92:Math.pow((J+.055)/1.055,2.4)}
function zp(J){if(J instanceof U7)return new U7(J.h,J.c,J.l,J.opacity);J instanceof BF||(J=vL(J));if(J.a===0&&J.b===0)return new U7(NaN,0,J.l,J.opacity);var A=Math.atan2(J.b,J.a)*IPW;return new U7(A<0?A+360:A,Math.sqrt(J.a*J.a+J.b*J.b),J.l,J.opacity)}
function BN(J,A,G,yN){return arguments.length===1?zp(J):new U7(J,A,G,yN==null?1:yN)}
function U7(J,A,G,yN){this.h=+J;this.c=+A;this.l=+G;this.opacity=+yN}
function D8(J,A,G,yN){if(arguments.length===1){var K4=J;if(K4 instanceof Vf)K4=new Vf(K4.h,K4.s,K4.l,K4.opacity);else{K4 instanceof IP||(K4=PB(K4));var Oj=K4.g/255,Dr=K4.b/255,JY=(B7a*Dr+K4.r/255*-1.7884503806-3.5172982438*Oj)/(B7a+-1.7884503806-3.5172982438);Dr-=JY;var LM=(1.97294*(Oj-JY)- -.29227*Dr)/-.90649;Dr=(Oj=Math.sqrt(LM*LM+Dr*Dr)/(1.97294*JY*(1-JY)))?Math.atan2(LM,Dr)*IPW-120:NaN;K4=new Vf(Dr<0?Dr+360:Dr,Oj,JY,K4.opacity)}}else K4=new Vf(J,A,G,yN==null?1:yN);return K4}
function Vf(J,A,G,yN){this.h=+J;this.s=+A;this.l=+G;this.opacity=+yN}
function Lc(J,A,G,yN,K4){var Oj=J*J,Dr=Oj*J;return((1-3*J+3*Oj-Dr)*A+(4-6*Oj+3*Dr)*G+(1+3*J+3*Oj-3*Dr)*yN+Dr*K4)/6}
function NP(J){return function(){return J}}
function eF(J,A){return function(G){return J+G*A}}
function i_(J,A,G){return J=Math.pow(J,G),A=Math.pow(A,G)-J,G=1/G,function(yN){return Math.pow(J+yN*A,G)}}
function Y$(J,A){var G=A-J;return G?eF(J,G>180||G<-180?G-360*Math.round(G/360):G):NP(isNaN(J)?A:J)}
function u5(J){return(J=+J)===1?SK:function(A,G){return G-A?i_(A,G,J):NP(isNaN(A)?G:A)}}
function SK(J,A){var G=A-J;return G?eF(J,G):NP(isNaN(J)?A:J)}
function IA(J){return function(A){var G=A.length,yN=Array(G),K4=Array(G),Oj=Array(G),Dr;for(Dr=0;Dr<G;++Dr){var JY=lo(A[Dr]);yN[Dr]=JY.r||0;K4[Dr]=JY.g||0;Oj[Dr]=JY.b||0}yN=J(yN);K4=J(K4);Oj=J(Oj);JY.opacity=1;return function(LM){JY.r=yN(LM);JY.g=K4(LM);JY.b=Oj(LM);return JY+""}}}
function b_(J,A){return J=+J,A-=J,function(G){return J+A*G}}
function DW(J){return function(){return J}}
function iK(J){return function(A){return J(A)+""}}
function bF(J,A){var G=UTj.lastIndex=pgq.lastIndex=0,yN,K4,Oj,Dr=-1,JY=[],LM=[];J+="";for(A+="";(yN=UTj.exec(J))&&(K4=pgq.exec(A));)(Oj=K4.index)>G&&(Oj=A.slice(G,Oj),JY[Dr]?JY[Dr]+=Oj:JY[++Dr]=Oj),(yN=yN[0])===(K4=K4[0])?JY[Dr]?JY[Dr]+=K4:JY[++Dr]=K4:(JY[++Dr]=null,LM.push({i:Dr,x:b_(yN,K4)})),G=pgq.lastIndex;G<A.length&&(Oj=A.slice(G),JY[Dr]?JY[Dr]+=Oj:JY[++Dr]=Oj);return JY.length<2?LM[0]?iK(LM[0].x):DW(A):(A=LM.length,function(aN){for(var KM=0,t8;KM<A;++KM)JY[(t8=LM[KM]).i]=t8.x(aN);return JY.join("")})}
function GI(J,A,G,yN,K4,Oj){var Dr,JY,LM;if(Dr=Math.sqrt(J*J+A*A))J/=Dr,A/=Dr;if(LM=J*G+A*yN)G-=J*LM,yN-=A*LM;if(JY=Math.sqrt(G*G+yN*yN))G/=JY,yN/=JY,LM/=JY;J*yN<A*G&&(J=-J,A=-A,LM=-LM,Dr=-Dr);return{translateX:K4,translateY:Oj,rotate:Math.atan2(A,J)*Wqo,skewX:Math.atan(LM)*Wqo,scaleX:Dr,scaleY:JY}}
function oL(J,A,G,yN){function K4(aN){return aN.length?aN.pop()+" ":""}
function Oj(aN,KM,t8,ba,e2,DL){aN!==t8||KM!==ba?(e2=e2.push("translate(",null,A,null,G),DL.push({i:e2-4,x:b_(aN,t8)},{i:e2-2,x:b_(KM,ba)})):(t8||ba)&&e2.push("translate("+t8+A+ba+G)}
function Dr(aN,KM,t8,ba){aN!==KM?(aN-KM>180?KM+=360:KM-aN>180&&(aN+=360),ba.push({i:t8.push(K4(t8)+"rotate(",null,yN)-2,x:b_(aN,KM)})):KM&&t8.push(K4(t8)+"rotate("+KM+yN)}
function JY(aN,KM,t8,ba){aN!==KM?ba.push({i:t8.push(K4(t8)+"skewX(",null,yN)-2,x:b_(aN,KM)}):KM&&t8.push(K4(t8)+"skewX("+KM+yN)}
function LM(aN,KM,t8,ba,e2,DL){aN!==t8||KM!==ba?(e2=e2.push(K4(e2)+"scale(",null,",",null,")"),DL.push({i:e2-4,x:b_(aN,t8)},{i:e2-2,x:b_(KM,ba)})):t8===1&&ba===1||e2.push(K4(e2)+"scale("+t8+","+ba+")")}
return function(aN,KM){var t8=[],ba=[];aN=J(aN);KM=J(KM);Oj(aN.translateX,aN.translateY,KM.translateX,KM.translateY,t8,ba);Dr(aN.rotate,KM.rotate,t8,ba);JY(aN.skewX,KM.skewX,t8,ba);LM(aN.scaleX,aN.scaleY,KM.scaleX,KM.scaleY,t8,ba);aN=KM=null;return function(e2){for(var DL=-1,xf=ba.length,ew;++DL<xf;)t8[(ew=ba[DL]).i]=ew.x(e2);return t8.join("")}}}
function cE(J){return function(A,G){var yN=J((A=Yb(A)).h,(G=Yb(G)).h),K4=SK(A.s,G.s),Oj=SK(A.l,G.l),Dr=SK(A.opacity,G.opacity);return function(JY){A.h=yN(JY);A.s=K4(JY);A.l=Oj(JY);A.opacity=Dr(JY);return A+""}}}
function t6(J){return function(A,G){var yN=J((A=BN(A)).h,(G=BN(G)).h),K4=SK(A.c,G.c),Oj=SK(A.l,G.l),Dr=SK(A.opacity,G.opacity);return function(JY){A.h=yN(JY);A.c=K4(JY);A.l=Oj(JY);A.opacity=Dr(JY);return A+""}}}
function iq(J){return function yN(G){function K4(Oj,Dr){var JY=J((Oj=D8(Oj)).h,(Dr=D8(Dr)).h),LM=SK(Oj.s,Dr.s),aN=SK(Oj.l,Dr.l),KM=SK(Oj.opacity,Dr.opacity);return function(t8){Oj.h=JY(t8);Oj.s=LM(t8);Oj.l=aN(Math.pow(t8,G));Oj.opacity=KM(t8);return Oj+""}}
G=+G;K4.gamma=yN;return K4}(1)}
function fw(){return ZY||(ApW(f0),ZY=Bp.now()+N_n)}
function f0(){ZY=0}
function T4(){this._call=this._time=this._next=null}
function ky(J,A,G){var yN=new T4;yN.restart(J,A,G);return yN}
function V4(){ZY=(tHn=Bp.now())+N_n;TC=Wp=0;try{fw();++TC;for(var J=rRY,A;J;)(A=ZY-J._time)>=0&&J._call.call(null,A),J=J._next;--TC}finally{TC=0;J=rRY;for(var G=Infinity;J;)if(J._call){G>J._time&&(G=J._time);var yN=J;J=J._next}else A=J._next,J._next=null,J=yN?yN._next=A:rRY=A;AH=yN;E6(G);ZY=0}}
function vo(){var J=Bp.now(),A=J-tHn;A>1E3&&(N_n-=A,tHn=J)}
function E6(J){TC||(Wp&&(Wp=clearTimeout(Wp)),J-ZY>24?(J<Infinity&&(Wp=setTimeout(V4,J-Bp.now()-N_n)),U4&&(U4=clearInterval(U4))):(U4||(tHn=Bp.now(),U4=setInterval(vo,1E3)),TC=1,ApW(V4)))}
function wc(J,A,G){var yN=new T4;A=A==null?0:+A;yN.restart(function(K4){yN.stop();J(K4+A)},A,G);
return yN}
function Se(J,A,G,yN,K4,Oj){var Dr=J.__transition;if(!Dr)J.__transition={};else if(G in Dr)return;BB(J,G,{name:A,index:yN,group:K4,on:CHx,tween:gw2,time:Oj.time,delay:Oj.delay,duration:Oj.duration,ease:Oj.ease,timer:null,state:0})}
function LA(J,A){J=F9(J,A);if(J.state>0)throw Error("ze");return J}
function DE(J,A){J=F9(J,A);if(J.state>2)throw Error("Ae");return J}
function F9(J,A){J=J.__transition;if(!J||!(J=J[A]))throw Error("Be");return J}
function BB(J,A,G){function yN(LM){var aN,KM;if(G.state!==1)return Oj();for(ba in Dr){var t8=Dr[ba];if(t8.name===G.name){if(t8.state===3)return wc(yN);t8.state===4?(t8.state=6,t8.timer.stop(),t8.on.call("interrupt",J,J.__data__,t8.index,t8.group),delete Dr[ba]):+ba<A&&(t8.state=6,t8.timer.stop(),delete Dr[ba])}}wc(function(){G.state===3&&(G.state=4,G.timer.restart(K4,G.delay,G.time),K4(LM))});
G.state=2;G.on.call("start",J,J.__data__,G.index,G.group);if(G.state===2){G.state=3;JY=Array(KM=G.tween.length);var ba=0;for(aN=-1;ba<KM;++ba)if(t8=G.tween[ba].value.call(J,J.__data__,G.index,G.group))JY[++aN]=t8;JY.length=aN+1}}
function K4(LM){LM=LM<G.duration?G.ease.call(null,LM/G.duration):(G.timer.restart(Oj),G.state=5,1);for(var aN=-1,KM=JY.length;++aN<KM;)JY[aN].call(null,LM);G.state===5&&(G.on.call("end",J,J.__data__,G.index,G.group),Oj())}
function Oj(){G.state=6;G.timer.stop();delete Dr[A];for(var LM in Dr)return;delete J.__transition}
var Dr=J.__transition,JY;Dr[A]=G;G.timer=ky(function(LM){G.state=1;G.timer.restart(yN,G.delay,G.time);G.delay<=LM&&yN(LM-G.delay)},0,G.time)}
function FR(J,A){var G,yN;return function(){var K4=DE(this,J),Oj=K4.tween;if(Oj!==G){yN=G=Oj;Oj=0;for(var Dr=yN.length;Oj<Dr;++Oj)if(yN[Oj].name===A){yN=yN.slice();yN.splice(Oj,1);break}}K4.tween=yN}}
function yi(J,A,G){var yN,K4;if(typeof G!=="function")throw Error();return function(){var Oj=DE(this,J),Dr=Oj.tween;if(Dr!==yN){K4=(yN=Dr).slice();Dr={name:A,value:G};for(var JY=0,LM=K4.length;JY<LM;++JY)if(K4[JY].name===A){K4[JY]=Dr;break}JY===LM&&K4.push(Dr)}Oj.tween=K4}}
function VE(J,A,G){var yN=J._id;J.each(function(){var K4=DE(this,yN);(K4.value||(K4.value={}))[A]=G.apply(this,arguments)});
return function(K4){return F9(K4,yN).value[A]}}
function jV(J,A){var G;return(typeof A==="number"?b_:A instanceof ua?Upb:(G=ua(A))?(A=G,Upb):bF)(J,A)}
function pQ(J){return function(){this.removeAttribute(J)}}
function cRk(J){return function(){this.removeAttributeNS(J.space,J.local)}}
function JH(J,A,G){var yN,K4;return function(){var Oj=this.getAttribute(J);return Oj===G?null:Oj===yN?K4:K4=A(yN=Oj,G)}}
function e8(J,A,G){var yN,K4;return function(){var Oj=this.getAttributeNS(J.space,J.local);return Oj===G?null:Oj===yN?K4:K4=A(yN=Oj,G)}}
function RL4(J,A,G){var yN,K4,Oj;return function(){var Dr=G(this);if(Dr==null)return void this.removeAttribute(J);var JY=this.getAttribute(J);return JY===Dr?null:JY===yN&&Dr===K4?Oj:Oj=A(yN=JY,K4=Dr)}}
function sQd(J,A,G){var yN,K4,Oj;return function(){var Dr=G(this);if(Dr==null)return void this.removeAttributeNS(J.space,J.local);var JY=this.getAttributeNS(J.space,J.local);return JY===Dr?null:JY===yN&&Dr===K4?Oj:Oj=A(yN=JY,K4=Dr)}}
function YXd(J,A){function G(){var yN=this,K4=A.apply(yN,arguments);return K4&&function(Oj){yN.setAttributeNS(J.space,J.local,K4(Oj))}}
G._value=A;return G}
function TEF(J,A){function G(){var yN=this,K4=A.apply(yN,arguments);return K4&&function(Oj){yN.setAttribute(J,K4(Oj))}}
G._value=A;return G}
function GBq(J,A){return function(){LA(this,J).delay=+A.apply(this,arguments)}}
function kBx(J,A){return A=+A,function(){LA(this,J).delay=A}}
function VUY(J,A){return function(){DE(this,J).duration=+A.apply(this,arguments)}}
function Ewq(J,A){return A=+A,function(){DE(this,J).duration=A}}
function ir2(J,A){if(typeof A!=="function")throw Error();return function(){DE(this,J).ease=A}}
function fia(J){return(J+"").trim().split(/^|\s+/).every(function(A){var G=A.indexOf(".");G>=0&&(A=A.slice(0,G));return!A||A==="start"})}
function wQA(J,A,G){var yN,K4,Oj=fia(A)?LA:DE;return function(){var Dr=Oj(this,J),JY=Dr.on;if(JY!==yN)(K4=(yN=JY).copy()).on(A,G);Dr.on=K4}}
function liN(J){return function(){var A=this.parentNode,G;for(G in this.__transition)if(+G!==J)return;A&&A.removeChild(this)}}
function qXY(J,A){var G,yN,K4;return function(){var Oj=Xn(this,J),Dr=(this.style.removeProperty(J),Xn(this,J));return Oj===Dr?null:Oj===G&&Dr===yN?K4:K4=A(G=Oj,yN=Dr)}}
function xYq(J){return function(){this.style.removeProperty(J)}}
function QQX(J,A,G){var yN,K4;return function(){var Oj=Xn(this,J);return Oj===G?null:Oj===yN?K4:K4=A(yN=Oj,G)}}
function mYf(J,A,G){var yN,K4,Oj;return function(){var Dr=Xn(this,J),JY=G(this);JY==null&&(JY=(this.style.removeProperty(J),Xn(this,J)));return Dr===JY?null:Dr===yN&&JY===K4?Oj:Oj=A(yN=Dr,K4=JY)}}
function vwd(J,A,G){function yN(){var K4=this,Oj=A.apply(K4,arguments);return Oj&&function(Dr){K4.style.setProperty(J,Oj(Dr),G)}}
yN._value=A;return yN}
function b1q(J){return function(){this.textContent=J}}
function hxf(J){return function(){var A=J(this);this.textContent=A==null?"":A}}
function lg(J,A,G,yN){this._groups=J;this._parents=A;this._name=G;this._id=yN}
function JvF(J){return{type:J}}
function ecN(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function zLF(){}
function pDW(J,A){var G=new zLF;if(J instanceof zLF)J.each(function(Dr,JY){G.set(JY,Dr)});
else if(Array.isArray(J)){var yN=-1,K4=J.length,Oj;if(A==null)for(;++yN<K4;)G.set(yN,J[yN]);else for(;++yN<K4;)G.set(A(Oj=J[yN],yN,J),Oj)}else if(J)for(yN in J)G.set(yN,J[yN]);return G}
function DSy(){}
function Jpe(J){return function(A){for(var G={},yN=0;yN<J.length;yN++)G[J[yN]]=A[yN]||"";return G}}
function yCx(J,A){var G=Jpe(J);return function(yN,K4){return A(G(yN),K4,J)}}
function Sh2(J){var A=Object.create(null),G=[];J.forEach(function(yN){for(var K4 in yN)K4 in A||G.push(A[K4]=K4)});
return G}
function eEP(J){function A(Dr,JY){function LM(){if(DL)return Cw5;if(xf)return xf=!1,CUW;var uh,ae=t8,gh;if(Dr.charCodeAt(ae)===34){for(;t8++<KM&&Dr.charCodeAt(t8)!==34||Dr.charCodeAt(++t8)===34;);(uh=t8)>=KM?DL=!0:(gh=Dr.charCodeAt(t8++))===10?xf=!0:gh===13&&(xf=!0,Dr.charCodeAt(t8)===10&&++t8);return Dr.slice(ae+1,uh-1).replace(/""/g,'"')}for(;t8<KM;){if((gh=Dr.charCodeAt(uh=t8++))===10)xf=!0;else if(gh===13)xf=!0,Dr.charCodeAt(t8)===10&&++t8;else if(gh!==Oj)continue;return Dr.slice(ae,uh)}return DL=
!0,Dr.slice(ae,KM)}
var aN=[],KM=Dr.length,t8=0,ba=0,e2,DL=KM<=0,xf=!1;Dr.charCodeAt(KM-1)===10&&--KM;for(Dr.charCodeAt(KM-1)===13&&--KM;(e2=LM())!==Cw5;){for(var ew=[];e2!==CUW&&e2!==Cw5;)ew.push(e2),e2=LM();JY&&(ew=JY(ew,ba++))==null||aN.push(ew)}return aN}
function G(Dr){return Dr.map(yN).join(J)}
function yN(Dr){return Dr==null?"":K4.test(Dr)?'"'+Dr.replace(/"/g,'""')+'"':Dr}
var K4=new RegExp('["'+J+"\n\r]"),Oj=J.charCodeAt(0);return{parse:function(Dr,JY){var LM,aN;Dr=A(Dr,function(KM,t8){if(LM)return LM(KM,t8-1);aN=KM;LM=JY?yCx(KM,JY):Jpe(KM)});
Dr.columns=aN||[];return Dr},
parseRows:A,format:function(Dr,JY){JY==null&&(JY=Sh2(Dr));return[JY.map(yN).join(J)].concat(Dr.map(function(LM){return JY.map(function(aN){return yN(LM[aN])}).join(J)})).join("\n")},
formatRows:function(Dr){return Dr.map(G).join("\n")}}}
function FCA(J){if(!J.ok)throw Error("Ce`"+J.status+"`"+J.statusText);return J.text()}
function goa(J){return function(A,G,yN){arguments.length===2&&typeof G==="function"&&(yN=G,G=void 0);return fetch(A,G).then(FCA).then(function(K4){return J(K4,yN)})}}
function sxG(J,A,G,yN){if(isNaN(A)||isNaN(G))return J;var K4,Oj=J._root;yN={data:yN};var Dr=J._x0,JY=J._y0,LM=J._x1,aN=J._y1,KM,t8,ba,e2,DL;if(!Oj)return J._root=yN,J;for(;Oj.length;)if((ba=A>=(KM=(Dr+LM)/2))?Dr=KM:LM=KM,(e2=G>=(t8=(JY+aN)/2))?JY=t8:aN=t8,K4=Oj,!(Oj=Oj[DL=e2<<1|ba]))return K4[DL]=yN,J;var xf=+J._x.call(null,Oj.data);var ew=+J._y.call(null,Oj.data);if(A===xf&&G===ew)return yN.next=Oj,K4?K4[DL]=yN:J._root=yN,J;do K4=K4?K4[DL]=Array(4):J._root=Array(4),(ba=A>=(KM=(Dr+LM)/2))?Dr=KM:LM=
KM,(e2=G>=(t8=(JY+aN)/2))?JY=t8:aN=t8;while((DL=e2<<1|ba)===(ba=(ew>=t8)<<1|xf>=KM));return K4[ba]=Oj,K4[DL]=yN,J}
function LZ(J,A,G,yN,K4){this.node=J;this.x0=A;this.y0=G;this.x1=yN;this.y1=K4}
function a0f(J){return J[0]}
function dxA(J){return J[1]}
function gd4(J,A,G,yN,K4,Oj){this._x=J;this._y=A;this._x0=G;this._y0=yN;this._x1=K4;this._y1=Oj;this._root=void 0}
function YzP(J){for(var A={data:J.data},G=A;J=J.next;)G=G.next={data:J.data};return A}
function IRr(J,A){if((A=(J=A?J.toExponential(A-1):J.toExponential()).indexOf("e"))<0)return null;var G=J.slice(0,A);return[G.length>1?G[0]+G.slice(2):G,+J.slice(A+1)]}
function ji2(J){return J=IRr(Math.abs(J)),J?J[1]:NaN}
function $xx(J,A){return function(G,yN){for(var K4=G.length,Oj=[],Dr=0,JY=J[0],LM=0;K4>0&&JY>0;){LM+JY+1>yN&&(JY=Math.max(1,yN-LM));Oj.push(G.substring(K4-=JY,K4+JY));if((LM+=JY+1)>yN)break;JY=J[Dr=(Dr+1)%J.length]}return Oj.reverse().join(A)}}
function LCf(J){return function(A){return A.replace(/[0-9]/g,function(G){return J[+G]})}}
function sp5(J){return new YAr(J)}
function YAr(J){if(!(A=Plq.exec(J)))throw Error("De`"+J);var A;this.fill=A[1]||" ";this.align=A[2]||">";this.sign=A[3]||"-";this.symbol=A[4]||"";this.zero=!!A[5];this.width=A[6]&&+A[6];this.comma=!!A[7];this.precision=A[8]&&+A[8].slice(1);this.trim=!!A[9];this.type=A[10]||""}
function T7a(J,A){A=IRr(J,A);if(!A)return J+"";J=A[0];A=A[1];return A<0?"0."+Array(-A).join("0")+J:J.length>A+1?J.slice(0,A+1)+"."+J.slice(A+1):J+Array(A-J.length+2).join("0")}
function G_G(J){return J}
function KCE(J){function A(JY){function LM(hk){var CK=gh,Qf=XQ,RR,oR;if(ae==="c")Qf=dg(hk)+Qf,hk="";else{hk=+hk;var gA=hk<0;hk=dg(Math.abs(hk),ew);if(uh){var jR=hk.length,$6=1,OP=-1;a:for(;$6<jR;++$6)switch(hk[$6]){case ".":OP=RR=$6;break;case "0":OP===0&&(OP=$6);RR=$6;break;default:if(!+hk[$6])break a;OP>0&&(OP=0)}hk=OP>0?hk.slice(0,OP)+hk.slice(RR+1):hk}gA&&+hk===0&&(gA=!1);CK=(gA?t8==="("?t8:"-":t8==="-"||t8==="("?"":t8)+CK;Qf=(ae==="s"?k_8[8+V98/3]:"")+Qf+(gA&&t8==="("?")":"");if(W0)for(gA=-1,
RR=hk.length;++gA<RR;)if(oR=hk.charCodeAt(gA),48>oR||oR>57){Qf=(oR===46?K4+hk.slice(gA+1):hk.slice(gA))+Qf;hk=hk.slice(0,gA);break}}xf&&!e2&&(hk=G(hk,Infinity));oR=CK.length+hk.length+Qf.length;gA=oR<DL?Array(DL-oR+1).join(aN):"";xf&&e2&&(hk=G(gA+hk,gA.length?DL-Qf.length:Infinity),gA="");switch(KM){case "<":hk=CK+hk+Qf+gA;break;case "=":hk=CK+gA+hk+Qf;break;case "^":hk=gA.slice(0,oR=gA.length>>1)+CK+hk+Qf+gA.slice(oR);break;default:hk=gA+CK+hk+Qf}return Oj(hk)}
JY=sp5(JY);var aN=JY.fill,KM=JY.align,t8=JY.sign,ba=JY.symbol,e2=JY.zero,DL=JY.width,xf=JY.comma,ew=JY.precision,uh=JY.trim,ae=JY.type;ae==="n"?(xf=!0,ae="g"):EoP[ae]||(ew==null&&(ew=12),uh=!0,ae="g");if(e2||aN==="0"&&KM==="=")e2=!0,aN="0",KM="=";var gh=ba==="$"?yN[0]:ba==="#"&&/[boxX]/.test(ae)?"0"+ae.toLowerCase():"",XQ=ba==="$"?yN[1]:/[%p]/.test(ae)?Dr:"",dg=EoP[ae],W0=/[defgprs%]/.test(ae);ew=ew==null?6:/[gprs]/.test(ae)?Math.max(1,Math.min(21,ew)):Math.max(0,Math.min(20,ew));LM.toString=function(){return JY+
""};
return LM}
var G=J.grouping&&J.thousands?$xx(J.grouping,J.thousands):G_G,yN=J.currency,K4=J.decimal,Oj=J.numerals?LCf(J.numerals):G_G,Dr=J.percent||"%";return{format:A,formatPrefix:function(JY,LM){var aN=A((JY=sp5(JY),JY.type="f",JY));JY=Math.max(-8,Math.min(8,Math.floor(ji2(LM)/3)))*3;var KM=Math.pow(10,-JY),t8=k_8[8+JY/3];return function(ba){return aN(KM*ba)+t8}}}}
function $B(){this.reset()}
function ikb(J,A,G){var yN=J.s=A+G,K4=yN-A;J.t=A-(yN-K4)+(G-K4)}
function B_q(J){return J>1?o8:J<-1?-o8:Math.asin(J)}
function Z1f(){}
function fPw(J){var A=J[0];J=J[1];var G=M$(J);return[G*M$(A),G*En(A),En(J)]}
function wDP(J,A){return[J[1]*A[2]-J[2]*A[1],J[2]*A[0]-J[0]*A[2],J[0]*A[1]-J[1]*A[0]]}
function lPN(J){var A=WVI(J[0]*J[0]+J[1]*J[1]+J[2]*J[2]);J[0]/=A;J[1]/=A;J[2]/=A}
function oIa(){var J=[],A;return{point:function(G,yN){A.push([G,yN])},
lineStart:function(){J.push(A=[])},
lineEnd:Z1f,rejoin:function(){J.length>1&&J.push(J.pop().concat(J.shift()))},
result:function(){var G=J;J=[];A=null;return G}}}
function AR8(J,A,G,yN){this.x=J;this.z=A;this.o=G;this.e=yN;this.v=!1;this.n=this.p=null}
function MiA(J,A,G,yN,K4){var Oj=[],Dr=[];J.forEach(function(t8){if(!((ba=t8.length-1)<=0)){var ba,e2=t8[0],DL=t8[ba],xf=e2;if(qb(xf[0]-DL[0])<1E-6&&qb(xf[1]-DL[1])<1E-6){K4.lineStart();for(JY=0;JY<ba;++JY)K4.point((e2=t8[JY])[0],e2[1]);K4.lineEnd()}else Oj.push(ba=new AR8(e2,t8,null,!0)),Dr.push(ba.o=new AR8(e2,null,ba,!1)),Oj.push(ba=new AR8(DL,t8,null,!1)),Dr.push(ba.o=new AR8(DL,null,ba,!0))}});
if(Oj.length){Dr.sort(A);qza(Oj);qza(Dr);var JY=0;for(J=Dr.length;JY<J;++JY)Dr[JY].e=G=!G;G=Oj[0];for(var LM;;){for(var aN=G,KM=!0;aN.v;)if((aN=aN.n)===G)return;A=aN.z;K4.lineStart();do{aN.v=aN.o.v=!0;if(aN.e){if(KM)for(JY=0,J=A.length;JY<J;++JY)K4.point((LM=A[JY])[0],LM[1]);else yN(aN.x,aN.n.x,1,K4);aN=aN.n}else{if(KM)for(A=aN.p.z,JY=A.length-1;JY>=0;--JY)K4.point((LM=A[JY])[0],LM[1]);else yN(aN.x,aN.p.x,-1,K4);aN=aN.p}aN=aN.o;A=aN.z;KM=!KM}while(!aN.v);K4.lineEnd()}}}
function qza(J){if(A=J.length){for(var A,G=0,yN=J[0],K4;++G<A;)yN.n=K4=J[G],K4.p=yN,yN=K4;yN.n=K4=J[0];K4.p=yN}}
function nI2(J){return J.length>1}
function X8F(J,A){return((J=J.x)[0]<0?J[1]-o8-1E-6:o8-J[1])-((A=A.x)[0]<0?A[1]-o8-1E-6:o8-A[1])}
function TP5(){}
function xp7(J){return function(A,G){var yN=M$(A),K4=M$(G);yN=J(yN*K4);return[yN*K4*En(A),yN*En(G)]}}
function CQ(J){return function(A,G){var yN=WVI(A*A+G*G),K4=J(yN),Oj=En(K4);K4=M$(K4);return[Qxw(A*Oj,yN*K4),B_q(yN&&G*Oj/yN)]}}
function H1P(J){var A=0,G=J.children,yN=G&&G.length;if(yN)for(;--yN>=0;)A+=G[yN].value;else A=1;J.value=A}
function mpW(J,A){var G=new gL(J);J=+J.value&&(G.value=J.value);var yN,K4=[G],Oj,Dr,JY,LM;for(A==null&&(A=uLF);yN=K4.pop();)if(J&&(yN.value=+yN.data.value),(Dr=A(yN.data))&&(LM=Dr.length))for(yN.children=Array(LM),JY=LM-1;JY>=0;--JY)K4.push(Oj=yN.children[JY]=new gL(Dr[JY])),Oj.parent=yN,Oj.depth=yN.depth+1;return G.eachBefore(O1X)}
function uLF(J){return J.children}
function NnX(J){J.data=J.data.data}
function O1X(J){var A=0;do J.height=A;while((J=J.parent)&&J.height<++A)}
function gL(J){this.data=J;this.depth=this.height=0;this.parent=null}
function px(J,A,G,yN){function K4(Oj){return J(Oj=new Date(+Oj)),Oj}
K4.floor=K4;K4.ceil=function(Oj){return J(Oj=new Date(Oj-1)),A(Oj,1),J(Oj),Oj};
K4.round=function(Oj){var Dr=K4(Oj),JY=K4.ceil(Oj);return Oj-Dr<JY-Oj?Dr:JY};
K4.offset=function(Oj,Dr){return A(Oj=new Date(+Oj),Dr==null?1:Math.floor(Dr)),Oj};
K4.range=function(Oj,Dr,JY){var LM=[],aN;Oj=K4.ceil(Oj);JY=JY==null?1:Math.floor(JY);if(!(Oj<Dr&&JY>0))return LM;do LM.push(aN=new Date(+Oj)),A(Oj,JY),J(Oj);while(aN<Oj&&Oj<Dr);return LM};
K4.filter=function(Oj){return px(function(Dr){if(Dr>=Dr)for(;J(Dr),!Oj(Dr);)Dr.setTime(Dr-1)},function(Dr,JY){if(Dr>=Dr)if(JY<0)for(;++JY<=0;)for(;A(Dr,-1),!Oj(Dr););
else for(;--JY>=0;)for(;A(Dr,1),!Oj(Dr););})};
G&&(K4.count=function(Oj,Dr){GOk.setTime(+Oj);kOy.setTime(+Dr);J(GOk);J(kOy);return Math.floor(G(GOk,kOy))},K4.every=function(Oj){Oj=Math.floor(Oj);
return isFinite(Oj)&&Oj>0?Oj>1?K4.filter(yN?function(Dr){return yN(Dr)%Oj===0}:function(Dr){return K4.count(0,Dr)%Oj===0}):K4:null});
return K4}
function o9(J){return px(function(A){A.setDate(A.getDate()-(A.getDay()+7-J)%7);A.setHours(0,0,0,0)},function(A,G){A.setDate(A.getDate()+G*7)},function(A,G){return(G-A-(G.getTimezoneOffset()-A.getTimezoneOffset())*6E4)/6048E5})}
function Mj(J){return px(function(A){A.setUTCDate(A.getUTCDate()-(A.getUTCDay()+7-J)%7);A.setUTCHours(0,0,0,0)},function(A,G){A.setUTCDate(A.getUTCDate()+G*7)},function(A,G){return(G-A)/6048E5})}
function tiY(J){if(0<=J.y&&J.y<100){var A=new Date(-1,J.m,J.d,J.H,J.M,J.S,J.L);A.setFullYear(J.y);return A}return new Date(J.y,J.m,J.d,J.H,J.M,J.S,J.L)}
function USn(J){if(0<=J.y&&J.y<100){var A=new Date(Date.UTC(-1,J.m,J.d,J.H,J.M,J.S,J.L));A.setUTCFullYear(J.y);return A}return new Date(Date.UTC(J.y,J.m,J.d,J.H,J.M,J.S,J.L))}
function s4(J){return{y:J,m:0,d:1,H:0,M:0,S:0,L:0}}
function rCY(J){function A(Qf,RR){return function(oR){var gA=[],jR=-1,$6=0,OP=Qf.length,UM,fT;for(oR instanceof Date||(oR=new Date(+oR));++jR<OP;)if(Qf.charCodeAt(jR)===37){gA.push(Qf.slice($6,jR));($6=voW[UM=Qf.charAt(++jR)])!=null?UM=Qf.charAt(++jR):$6=UM==="e"?" ":"0";if(fT=RR[UM])UM=fT(oR,$6);gA.push(UM);$6=jR+1}gA.push(Qf.slice($6,jR));return gA.join("")}}
function G(Qf,RR){return function(oR){var gA=s4(1900);if(yN(gA,Qf,oR,0)!=oR.length)return null;if("Q"in gA)return new Date(gA.Q);"p"in gA&&(gA.H=gA.H%12+gA.p*12);if("V"in gA){if(gA.V<1||gA.V>53)return null;"w"in gA||(gA.w=1);if("Z"in gA){oR=USn(s4(gA.y));var jR=oR.getUTCDay();oR=jR>4||jR===0?Vbn.ceil(oR):Vbn(oR);oR=brw.offset(oR,(gA.V-1)*7);gA.y=oR.getUTCFullYear();gA.m=oR.getUTCMonth();gA.d=oR.getUTCDate()+(gA.w+6)%7}else oR=RR(s4(gA.y)),jR=oR.getDay(),oR=jR>4||jR===0?EdY.ceil(oR):EdY(oR),oR=hfN.offset(oR,
(gA.V-1)*7),gA.y=oR.getFullYear(),gA.m=oR.getMonth(),gA.d=oR.getDate()+(gA.w+6)%7}else if("W"in gA||"U"in gA)"w"in gA||(gA.w="u"in gA?gA.u%7:"W"in gA?1:0),jR="Z"in gA?USn(s4(gA.y)).getUTCDay():RR(s4(gA.y)).getDay(),gA.m=0,gA.d="W"in gA?(gA.w+6)%7+gA.W*7-(jR+5)%7:gA.w+gA.U*7-(jR+6)%7;return"Z"in gA?(gA.H+=gA.Z/100|0,gA.M+=gA.Z%100,USn(gA)):RR(gA)}}
function yN(Qf,RR,oR,gA){for(var jR=0,$6=RR.length,OP=oR.length,UM;jR<$6;){if(gA>=OP)return-1;UM=RR.charCodeAt(jR++);if(UM===37){if(UM=RR.charAt(jR++),UM=CK[UM in voW?RR.charAt(jR++):UM],!UM||(gA=UM(Qf,oR,gA))<0)return-1}else if(UM!=oR.charCodeAt(gA++))return-1}return gA}
var K4=J.dateTime,Oj=J.date,Dr=J.time,JY=J.periods,LM=J.days,aN=J.shortDays,KM=J.months,t8=J.shortMonths,ba=Y5(JY),e2=TV(JY),DL=Y5(LM),xf=TV(LM),ew=Y5(aN),uh=TV(aN),ae=Y5(KM),gh=TV(KM),XQ=Y5(t8),dg=TV(t8),W0={a:function(Qf){return aN[Qf.getDay()]},
A:function(Qf){return LM[Qf.getDay()]},
b:function(Qf){return t8[Qf.getMonth()]},
B:function(Qf){return KM[Qf.getMonth()]},
c:null,d:yZa,e:yZa,f:cCY,H:Rxf,I:zxY,j:DxY,L:SX7,m:I02,M:BnF,p:function(Qf){return JY[+(Qf.getHours()>=12)]},
Q:FzG,s:aiw,S:WCE,u:AC2,U:Uxf,V:p8f,w:JCx,W:exa,x:null,X:null,y:ClE,Y:gIF,Z:siA,"%":dYw},hk={a:function(Qf){return aN[Qf.getUTCDay()]},
A:function(Qf){return LM[Qf.getUTCDay()]},
b:function(Qf){return t8[Qf.getUTCMonth()]},
B:function(Qf){return KM[Qf.getUTCMonth()]},
c:null,d:jQa,e:jQa,f:YhA,H:TnA,I:GdN,j:kd2,L:$YW,m:Viq,M:EIf,p:function(Qf){return JY[+(Qf.getUTCHours()>=12)]},
Q:FzG,s:aiw,S:i1X,u:f0d,U:w8P,V:l0x,w:qhY,W:xxf,x:null,X:null,y:QiF,Y:mxf,Z:vIq,"%":dYw},CK={a:function(Qf,RR,oR){return(RR=ew.exec(RR.slice(oR)))?(Qf.w=uh[RR[0].toLowerCase()],oR+RR[0].length):-1},
A:function(Qf,RR,oR){return(RR=DL.exec(RR.slice(oR)))?(Qf.w=xf[RR[0].toLowerCase()],oR+RR[0].length):-1},
b:function(Qf,RR,oR){return(RR=XQ.exec(RR.slice(oR)))?(Qf.m=dg[RR[0].toLowerCase()],oR+RR[0].length):-1},
B:function(Qf,RR,oR){return(RR=ae.exec(RR.slice(oR)))?(Qf.m=gh[RR[0].toLowerCase()],oR+RR[0].length):-1},
c:function(Qf,RR,oR){return yN(Qf,K4,RR,oR)},
d:LzP,e:LzP,f:bXA,H:PHW,I:PHW,j:hQa,L:yaf,m:SHA,M:FZE,p:function(Qf,RR,oR){return(RR=ba.exec(RR.slice(oR)))?(Qf.p=e2[RR[0].toLowerCase()],oR+RR[0].length):-1},
Q:aYa,s:djA,S:j9P,u:$jN,U:LZq,V:PQA,w:KZf,W:ZXx,x:function(Qf,RR,oR){return yN(Qf,Oj,RR,oR)},
X:function(Qf,RR,oR){return yN(Qf,Dr,RR,oR)},
y:oMx,Y:Mqd,Z:nMf,"%":XxA};W0.x=A(Oj,W0);W0.X=A(Dr,W0);W0.c=A(K4,W0);hk.x=A(Oj,hk);hk.X=A(Dr,hk);hk.c=A(K4,hk);return{format:function(Qf){var RR=A(Qf,W0);RR.toString=function(){return Qf};
return RR},
parse:function(Qf){var RR=G(Qf,tiY);RR.toString=function(){return Qf};
return RR},
utcFormat:function(Qf){var RR=A(Qf,hk);RR.toString=function(){return Qf};
return RR},
utcParse:function(Qf){var RR=G(Qf,USn);RR.toString=function(){return Qf};
return RR}}}
function Ji(J,A,G){var yN=J<0?"-":"";J=(yN?-J:J)+"";var K4=J.length;return yN+(K4<G?Array(G-K4+1).join(A)+J:J)}
function HXF(J){return J.replace(u1A,"\\$&")}
function Y5(J){return new RegExp("^(?:"+J.map(HXF).join("|")+")","i")}
function TV(J){for(var A={},G=-1,yN=J.length;++G<yN;)A[J[G].toLowerCase()]=G;return A}
function KZf(J,A,G){return(A=sa.exec(A.slice(G,G+1)))?(J.w=+A[0],G+A[0].length):-1}
function $jN(J,A,G){return(A=sa.exec(A.slice(G,G+1)))?(J.u=+A[0],G+A[0].length):-1}
function LZq(J,A,G){return(A=sa.exec(A.slice(G,G+2)))?(J.U=+A[0],G+A[0].length):-1}
function PQA(J,A,G){return(A=sa.exec(A.slice(G,G+2)))?(J.V=+A[0],G+A[0].length):-1}
function ZXx(J,A,G){return(A=sa.exec(A.slice(G,G+2)))?(J.W=+A[0],G+A[0].length):-1}
function Mqd(J,A,G){return(A=sa.exec(A.slice(G,G+4)))?(J.y=+A[0],G+A[0].length):-1}
function oMx(J,A,G){return(A=sa.exec(A.slice(G,G+2)))?(J.y=+A[0]+(+A[0]>68?1900:2E3),G+A[0].length):-1}
function nMf(J,A,G){return(A=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(A.slice(G,G+6)))?(J.Z=A[1]?0:-(A[2]+(A[3]||"00")),G+A[0].length):-1}
function SHA(J,A,G){return(A=sa.exec(A.slice(G,G+2)))?(J.m=A[0]-1,G+A[0].length):-1}
function LzP(J,A,G){return(A=sa.exec(A.slice(G,G+2)))?(J.d=+A[0],G+A[0].length):-1}
function hQa(J,A,G){return(A=sa.exec(A.slice(G,G+3)))?(J.m=0,J.d=+A[0],G+A[0].length):-1}
function PHW(J,A,G){return(A=sa.exec(A.slice(G,G+2)))?(J.H=+A[0],G+A[0].length):-1}
function FZE(J,A,G){return(A=sa.exec(A.slice(G,G+2)))?(J.M=+A[0],G+A[0].length):-1}
function j9P(J,A,G){return(A=sa.exec(A.slice(G,G+2)))?(J.S=+A[0],G+A[0].length):-1}
function yaf(J,A,G){return(A=sa.exec(A.slice(G,G+3)))?(J.L=+A[0],G+A[0].length):-1}
function bXA(J,A,G){return(A=sa.exec(A.slice(G,G+6)))?(J.L=Math.floor(A[0]/1E3),G+A[0].length):-1}
function XxA(J,A,G){return(J=OXF.exec(A.slice(G,G+1)))?G+J[0].length:-1}
function aYa(J,A,G){return(A=sa.exec(A.slice(G)))?(J.Q=+A[0],G+A[0].length):-1}
function djA(J,A,G){return(A=sa.exec(A.slice(G)))?(J.Q=+A[0]*1E3,G+A[0].length):-1}
function yZa(J,A){return Ji(J.getDate(),A,2)}
function Rxf(J,A){return Ji(J.getHours(),A,2)}
function zxY(J,A){return Ji(J.getHours()%12||12,A,2)}
function DxY(J,A){return Ji(1+hfN.count(GC(J),J),A,3)}
function SX7(J,A){return Ji(J.getMilliseconds(),A,3)}
function cCY(J,A){return SX7(J,A)+"000"}
function I02(J,A){return Ji(J.getMonth()+1,A,2)}
function BnF(J,A){return Ji(J.getMinutes(),A,2)}
function WCE(J,A){return Ji(J.getSeconds(),A,2)}
function AC2(J){J=J.getDay();return J===0?7:J}
function Uxf(J,A){return Ji(Npf.count(GC(J),J),A,2)}
function p8f(J,A){var G=J.getDay();J=G>=4||G===0?ifq(J):ifq.ceil(J);return Ji(ifq.count(GC(J),J)+(GC(J).getDay()===4),A,2)}
function JCx(J){return J.getDay()}
function exa(J,A){return Ji(EdY.count(GC(J),J),A,2)}
function ClE(J,A){return Ji(J.getFullYear()%100,A,2)}
function gIF(J,A){return Ji(J.getFullYear()%1E4,A,4)}
function siA(J){J=J.getTimezoneOffset();return(J>0?"-":(J*=-1,"+"))+Ji(J/60|0,"0",2)+Ji(J%60,"0",2)}
function jQa(J,A){return Ji(J.getUTCDate(),A,2)}
function TnA(J,A){return Ji(J.getUTCHours(),A,2)}
function GdN(J,A){return Ji(J.getUTCHours()%12||12,A,2)}
function kd2(J,A){return Ji(1+brw.count(kA(J),J),A,3)}
function $YW(J,A){return Ji(J.getUTCMilliseconds(),A,3)}
function YhA(J,A){return $YW(J,A)+"000"}
function Viq(J,A){return Ji(J.getUTCMonth()+1,A,2)}
function EIf(J,A){return Ji(J.getUTCMinutes(),A,2)}
function i1X(J,A){return Ji(J.getUTCSeconds(),A,2)}
function f0d(J){J=J.getUTCDay();return J===0?7:J}
function w8P(J,A){return Ji(tqA.count(kA(J),J),A,2)}
function l0x(J,A){var G=J.getUTCDay();J=G>=4||G===0?fV8(J):fV8.ceil(J);return Ji(fV8.count(kA(J),J)+(kA(J).getUTCDay()===4),A,2)}
function qhY(J){return J.getUTCDay()}
function xxf(J,A){return Ji(Vbn.count(kA(J),J),A,2)}
function QiF(J,A){return Ji(J.getUTCFullYear()%100,A,2)}
function mxf(J,A){return Ji(J.getUTCFullYear()%1E4,A,4)}
function vIq(){return"+0000"}
function dYw(){return"%"}
function FzG(J){return+J}
function aiw(J){return Math.floor(+J/1E3)}
function Nz(J){for(var A=J.length/6|0,G=Array(A),yN=0;yN<A;)G[yN]="#"+J.slice(yN*6,++yN*6);return G}
function $0(J){return ra2(J[J.length-1])}
function poy(J){var A=J.length;return function(G){return J[Math.max(0,Math.min(A-1,Math.floor(G*A)))]}}
function KzN(J){this._context=J}
function Zr5(J){this._curve=J}
function owW(J,A,G){var yN=J._x1-J._x0;A-=J._x1;var K4=(J._y1-J._y0)/(yN||A<0&&-0);J=(G-J._y1)/(A||yN<0&&-0);return((K4<0?-1:1)+(J<0?-1:1))*Math.min(Math.abs(K4),Math.abs(J),.5*Math.abs((K4*A+J*yN)/(yN+A)))||0}
function MUP(J,A){var G=J._x1-J._x0;return G?(3*(J._y1-J._y0)/G-A)/2:A}
function wg8(J,A,G){var yN=J._x0,K4=J._x1,Oj=J._y1,Dr=(K4-yN)/3;J._context.bezierCurveTo(yN+Dr,J._y0+Dr*A,K4-Dr,Oj-Dr*G,K4,Oj)}
function lVj(J){this._context=J}
function nwG(J){this._context=J}
function GV(J,A,G){this.k=J;this.x=A;this.y=G}
(function(J){J.length===1&&(J=h(J));return{left:function(A,G,yN,K4){yN==null&&(yN=0);K4==null&&(K4=A.length);for(;yN<K4;){var Oj=yN+K4>>>1;J(A[Oj],G)<0?yN=Oj+1:K4=Oj}return yN},
right:function(A,G,yN,K4){yN==null&&(yN=0);K4==null&&(K4=A.length);for(;yN<K4;){var Oj=yN+K4>>>1;J(A[Oj],G)>0?K4=Oj:yN=Oj+1}return yN}}})(b);
var cZY={value:function(){}};
S.prototype=y.prototype={constructor:S,on:function(J,A){var G=this._,yN=F(J+"",G),K4,Oj=-1,Dr=yN.length;if(arguments.length<2)for(;++Oj<Dr;){var JY;if(JY=K4=(J=yN[Oj]).type){a:{JY=G[K4];for(var LM=0,aN=JY.length;LM<aN;++LM)if((K4=JY[LM]).name===J.name){K4=K4.value;break a}K4=void 0}JY=K4}if(JY)return K4}else{if(A!=null&&typeof A!=="function")throw Error("Ee`"+A);for(;++Oj<Dr;)if(K4=(J=yN[Oj]).type)G[K4]=a(G[K4],J.name,A);else if(A==null)for(K4 in G)G[K4]=a(G[K4],J.name,null);return this}},
copy:function(){var J={},A=this._,G;for(G in A)J[G]=A[G].slice();return new S(J)},
call:function(J,A){if((K4=arguments.length-2)>0)for(var G=Array(K4),yN=0,K4,Oj;yN<K4;++yN)G[yN]=arguments[yN+2];if(!this._.hasOwnProperty(J))throw Error("ye`"+J);Oj=this._[J];yN=0;for(K4=Oj.length;yN<K4;++yN)Oj[yN].value.apply(A,G)},
apply:function(J,A,G){if(!this._.hasOwnProperty(J))throw Error("ye`"+J);J=this._[J];for(var yN=0,K4=J.length;yN<K4;++yN)J[yN].value.apply(A,G)}};
var Za={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/"},XQo=function(J){return function(){return this.matches(J)}};
if(typeof document!=="undefined"){var k5=document.documentElement;if(!k5.matches){var caA=k5.webkitMatchesSelector||k5.msMatchesSelector||k5.mozMatchesSelector||k5.oMatchesSelector;XQo=function(J){return function(){return caA.call(this,J)}}}}var HrW=XQo;
t.prototype={constructor:t,appendChild:function(J){return this._parent.insertBefore(J,this._next)},
insertBefore:function(J,A){return this._parent.insertBefore(J,A)},
querySelector:function(J){return this._parent.querySelector(J)},
querySelectorAll:function(J){return this._parent.querySelectorAll(J)}};
var rpM={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(rpM={mouseenter:"mouseover",mouseleave:"mouseout"}));var RfP=[null];uo.prototype=dA.prototype={constructor:uo,select:function(J){typeof J!=="function"&&(J=O(J));for(var A=this._groups,G=A.length,yN=Array(G),K4=0;K4<G;++K4)for(var Oj=A[K4],Dr=Oj.length,JY=yN[K4]=Array(Dr),LM,aN,KM=0;KM<Dr;++KM)(LM=Oj[KM])&&(aN=J.call(LM,LM.__data__,KM,Oj))&&("__data__"in LM&&(aN.__data__=LM.__data__),JY[KM]=aN);return new uo(yN,
this._parents)},
filter:function(J){typeof J!=="function"&&(J=HrW(J));for(var A=this._groups,G=A.length,yN=Array(G),K4=0;K4<G;++K4)for(var Oj=A[K4],Dr=Oj.length,JY=yN[K4]=[],LM,aN=0;aN<Dr;++aN)(LM=Oj[aN])&&J.call(LM,LM.__data__,aN,Oj)&&JY.push(LM);return new uo(yN,this._parents)},
data:function(J,A){if(!J)return e2=Array(this.size()),aN=-1,this.each(function(ae){e2[++aN]=ae}),e2;
var G=A?U:I,yN=this._parents,K4=this._groups;typeof J!=="function"&&(J=R(J));for(var Oj=K4.length,Dr=Array(Oj),JY=Array(Oj),LM=Array(Oj),aN=0;aN<Oj;++aN){var KM=yN[aN],t8=K4[aN],ba=t8.length,e2=J.call(KM,KM&&KM.__data__,aN,yN),DL=e2.length,xf=JY[aN]=Array(DL),ew=Dr[aN]=Array(DL);ba=LM[aN]=Array(ba);G(KM,t8,xf,ew,ba,e2,A);t8=KM=0;for(var uh;KM<DL;++KM)if(ba=xf[KM]){for(KM>=t8&&(t8=KM+1);!(uh=ew[t8])&&++t8<DL;);ba._next=uh||null}}Dr=new uo(Dr,yN);Dr._enter=JY;Dr._exit=LM;return Dr},
enter:function(){return new uo(this._enter||this._groups.map(N),this._parents)},
exit:function(){return new uo(this._exit||this._groups.map(N),this._parents)},
merge:function(J){var A=this._groups;J=J._groups;for(var G=A.length,yN=Math.min(G,J.length),K4=Array(G),Oj=0;Oj<yN;++Oj)for(var Dr=A[Oj],JY=J[Oj],LM=Dr.length,aN=K4[Oj]=Array(LM),KM,t8=0;t8<LM;++t8)if(KM=Dr[t8]||JY[t8])aN[t8]=KM;for(;Oj<G;++Oj)K4[Oj]=A[Oj];return new uo(K4,this._parents)},
order:function(){for(var J=this._groups,A=-1,G=J.length;++A<G;)for(var yN=J[A],K4=yN.length-1,Oj=yN[K4],Dr;--K4>=0;)if(Dr=yN[K4])Oj&&Oj!==Dr.nextSibling&&Oj.parentNode.insertBefore(Dr,Oj),Oj=Dr;return this},
sort:function(J){function A(t8,ba){return t8&&ba?J(t8.__data__,ba.__data__):!t8-!ba}
J||(J=p);for(var G=this._groups,yN=G.length,K4=Array(yN),Oj=0;Oj<yN;++Oj){for(var Dr=G[Oj],JY=Dr.length,LM=K4[Oj]=Array(JY),aN,KM=0;KM<JY;++KM)if(aN=Dr[KM])LM[KM]=aN;LM.sort(A)}return(new uo(K4,this._parents)).order()},
call:function(){var J=arguments[0];arguments[0]=this;J.apply(null,arguments);return this},
nodes:function(){var J=Array(this.size()),A=-1;this.each(function(){J[++A]=this});
return J},
node:function(){for(var J=this._groups,A=0,G=J.length;A<G;++A)for(var yN=J[A],K4=0,Oj=yN.length;K4<Oj;++K4){var Dr=yN[K4];if(Dr)return Dr}return null},
size:function(){var J=0;this.each(function(){++J});
return J},
empty:function(){return!this.node()},
each:function(J){for(var A=this._groups,G=0,yN=A.length;G<yN;++G)for(var K4=A[G],Oj=0,Dr=K4.length,JY;Oj<Dr;++Oj)(JY=K4[Oj])&&J.call(JY,JY.__data__,Oj,K4);return this},
attr:function(J,A){var G=P(J);if(arguments.length<2){var yN=this.node();return G.local?yN.getAttributeNS(G.space,G.local):yN.getAttribute(G)}return this.each((A==null?G.local?E:e:typeof A==="function"?G.local?q:x:G.local?w:Y)(G,A))},
style:function(J,A,G){return arguments.length>1?this.each((A==null?dI:typeof A==="function"?Rq:L4)(J,A,G==null?"":G)):Xn(this.node(),J)},
property:function(J,A){return arguments.length>1?this.each((A==null?Ny:typeof A==="function"?YU:gI)(J,A)):this.node()[J]},
text:function(J){return arguments.length?this.each(J==null?VN:(typeof J==="function"?vF:Hb)(J)):this.node().textContent},
html:function(J){return arguments.length?this.each(J==null?xU:(typeof J==="function"?rG:Xa)(J)):this.node().innerHTML},
append:function(J){var A=typeof J==="function"?J:X(J);return this.select(function(){return this.appendChild(A.apply(this,arguments))})},
insert:function(J,A){var G=typeof J==="function"?J:X(J),yN=A==null?Wb:typeof A==="function"?A:O(A);return this.select(function(){return this.insertBefore(G.apply(this,arguments),yN.apply(this,arguments)||null)})},
remove:function(){return this.each(Xx)},
clone:function(J){return this.select(J?oq:Bb)},
datum:function(J){return arguments.length?this.property("__data__",J):this.node().__data__},
on:function(J,A,G){var yN=io(J+""),K4=yN.length,Oj;if(arguments.length<2){var Dr=this.node().__on;if(Dr)for(var JY=0,LM=Dr.length,aN;JY<LM;++JY){var KM=0;for(aN=Dr[JY];KM<K4;++KM)if((Oj=yN[KM]).type===aN.type&&Oj.name===aN.name)return aN.value}}else{Dr=A?QW:cb;G==null&&(G=!1);for(KM=0;KM<K4;++KM)this.each(Dr(yN[KM],A,G));return this}},
dispatch:function(J,A){return this.each((typeof A==="function"?oN:wG)(J,A))}};
var zfX=0;QN.prototype=function(){return new QN}.prototype={constructor:QN,
get:function(J){for(var A=this._;!(A in J);)if(!(J=J.parentNode))return;return J[A]},
set:function(J,A){return J[this._]=A},
remove:function(J){return this._ in J&&delete J[this._]},
toString:function(){return this._}};
var V_=1/.7,DYA=/^#([0-9a-f]{3})$/,Iiq=/^#([0-9a-f]{6})$/,BEq=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),Wzq=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),AZN=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),UYx=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*\\)$"),
pQf=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),JZA=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*\\)$"),cpM={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};
vb(bJ,ua,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
vb(IP,lo,fA(bJ,{brighter:function(J){J=J==null?V_:Math.pow(V_,J);return new IP(this.r*J,this.g*J,this.b*J,this.opacity)},
darker:function(J){J=J==null?.7:Math.pow(.7,J);return new IP(this.r*J,this.g*J,this.b*J,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"#"+j2(this.r)+j2(this.g)+j2(this.b)},
toString:function(){var J=this.opacity;J=isNaN(J)?1:Math.max(0,Math.min(1,J));return(J===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))+(J===1?")":", "+J+")")}}));
vb(B0,Yb,fA(bJ,{brighter:function(J){J=J==null?V_:Math.pow(V_,J);return new B0(this.h,this.s,this.l*J,this.opacity)},
darker:function(J){J=J==null?.7:Math.pow(.7,J);return new B0(this.h,this.s,this.l*J,this.opacity)},
rgb:function(){var J=this.h%360+(this.h<0)*360,A=this.l,G=A+(A<.5?A:1-A)*(isNaN(J)||isNaN(this.s)?0:this.s);A=2*A-G;return new IP(Vx(J>=240?J-240:J+120,A,G),Vx(J,A,G),Vx(J<120?J+240:J-120,A,G),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 RE8=Math.PI/180,IPW=180/Math.PI,Dpa=4/29,YA=6/29,zEa=3*YA*YA,efX=YA*YA*YA;vb(BF,function(J,A,G,yN){return arguments.length===1?vL(J):new BF(J,A,G,yN==null?1:yN)},fA(bJ,{brighter:function(J){return new BF(this.l+18*(J==null?1:J),this.a,this.b,this.opacity)},
darker:function(J){return new BF(this.l-18*(J==null?1:J),this.a,this.b,this.opacity)},
rgb:function(){var J=(this.l+16)/116,A=isNaN(this.a)?J:J+this.a/500,G=isNaN(this.b)?J:J-this.b/200;A=.96422*qy(A);J=1*qy(J);G=.82521*qy(G);return new IP(za(3.1338561*A-1.6168667*J-.4906146*G),za(-.9787684*A+1.9161415*J+.033454*G),za(.0719453*A-.2289914*J+1.4052427*G),this.opacity)}}));
vb(U7,BN,fA(bJ,{brighter:function(J){return new U7(this.h,this.c,this.l+18*(J==null?1:J),this.opacity)},
darker:function(J){return new U7(this.h,this.c,this.l-18*(J==null?1:J),this.opacity)},
rgb:function(){return vL(this).rgb()}}));
var B7a=1.78277*-.29227-.1347134789;vb(Vf,D8,fA(bJ,{brighter:function(J){J=J==null?V_:Math.pow(V_,J);return new Vf(this.h,this.s,this.l*J,this.opacity)},
darker:function(J){J=J==null?.7:Math.pow(.7,J);return new Vf(this.h,this.s,this.l*J,this.opacity)},
rgb:function(){var J=isNaN(this.h)?0:(this.h+120)*RE8,A=+this.l,G=isNaN(this.s)?0:this.s*A*(1-A),yN=Math.cos(J);J=Math.sin(J);return new IP(255*(A+G*(-.14861*yN+1.78277*J)),255*(A+G*(-.29227*yN+-.90649*J)),255*(A+1.97294*yN*G),this.opacity)}}));
var Upb=function G(A){function yN(Oj,Dr){var JY=K4((Oj=lo(Oj)).r,(Dr=lo(Dr)).r),LM=K4(Oj.g,Dr.g),aN=K4(Oj.b,Dr.b),KM=SK(Oj.opacity,Dr.opacity);return function(t8){Oj.r=JY(t8);Oj.g=LM(t8);Oj.b=aN(t8);Oj.opacity=KM(t8);return Oj+""}}
var K4=u5(A);yN.gamma=G;return yN}(1),ra2=IA(function(A){var G=A.length-1;
return function(yN){var K4=yN<=0?yN=0:yN>=1?(yN=1,G-1):Math.floor(yN*G),Oj=A[K4],Dr=A[K4+1];return Lc((yN-K4/G)*G,K4>0?A[K4-1]:2*Oj-Dr,Oj,Dr,K4<G-1?A[K4+2]:2*Dr-Oj)}});
IA(function(A){var G=A.length;return function(yN){var K4=Math.floor(((yN%=1)<0?++yN:yN)*G);return Lc((yN-K4/G)*G,A[(K4+G-1)%G],A[K4%G],A[(K4+1)%G],A[(K4+2)%G])}});
var UTj=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,pgq=new RegExp(UTj.source,"g"),Wqo=180/Math.PI,qA4={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},VK,xTI,uww,JRr,RQ2=oL(function(A){if(A==="none")return qA4;VK||(VK=document.createElement("DIV"),xTI=document.documentElement,uww=document.defaultView);VK.style.transform=A;A=uww.getComputedStyle(xTI.appendChild(VK),null).getPropertyValue("transform");xTI.removeChild(VK);A=A.slice(7,-1).split(",");return GI(+A[0],+A[1],+A[2],+A[3],
+A[4],+A[5])},"px, ","px)","deg)"),zQY=oL(function(A){if(A==null)return qA4;
JRr||(JRr=document.createElementNS("http://www.w3.org/2000/svg","g"));JRr.setAttribute("transform",A);if(!(A=JRr.transform.baseVal.consolidate()))return qA4;A=A.matrix;return GI(A.a,A.b,A.c,A.d,A.e,A.f)},", ",")",")");
cE(Y$);cE(SK);t6(Y$);t6(SK);iq(Y$);var Qp5=iq(SK),TC=0,Wp=0,U4=0,rRY,AH,tHn=0,ZY=0,N_n=0,Bp=typeof performance==="object"&&performance.now?performance:Date,ApW=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(A){setTimeout(A,17)};
T4.prototype=ky.prototype={constructor:T4,restart:function(A,G,yN){if(typeof A!=="function")throw new TypeError("Fe");yN=(yN==null?fw():+yN)+(G==null?0:+G);this._next||AH===this||(AH?AH._next=this:rRY=this,AH=this);this._call=A;this._time=yN;E6()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,E6())}};
var CHx=y("start","end","interrupt"),gw2=[],DjF=dA.prototype.constructor,Oro=0,EJ=dA.prototype;lg.prototype=function(A){return dA().transition(A)}.prototype={constructor:lg,
select:function(A){var G=this._name,yN=this._id;typeof A!=="function"&&(A=O(A));for(var K4=this._groups,Oj=K4.length,Dr=Array(Oj),JY=0;JY<Oj;++JY)for(var LM=K4[JY],aN=LM.length,KM=Dr[JY]=Array(aN),t8,ba,e2=0;e2<aN;++e2)(t8=LM[e2])&&(ba=A.call(t8,t8.__data__,e2,LM))&&("__data__"in t8&&(ba.__data__=t8.__data__),KM[e2]=ba,Se(KM[e2],G,yN,e2,KM,F9(t8,yN)));return new lg(Dr,this._parents,G,yN)},
filter:function(A){typeof A!=="function"&&(A=HrW(A));for(var G=this._groups,yN=G.length,K4=Array(yN),Oj=0;Oj<yN;++Oj)for(var Dr=G[Oj],JY=Dr.length,LM=K4[Oj]=[],aN,KM=0;KM<JY;++KM)(aN=Dr[KM])&&A.call(aN,aN.__data__,KM,Dr)&&LM.push(aN);return new lg(K4,this._parents,this._name,this._id)},
merge:function(A){if(A._id!==this._id)throw Error();var G=this._groups;A=A._groups;for(var yN=G.length,K4=Math.min(yN,A.length),Oj=Array(yN),Dr=0;Dr<K4;++Dr)for(var JY=G[Dr],LM=A[Dr],aN=JY.length,KM=Oj[Dr]=Array(aN),t8,ba=0;ba<aN;++ba)if(t8=JY[ba]||LM[ba])KM[ba]=t8;for(;Dr<yN;++Dr)Oj[Dr]=G[Dr];return new lg(Oj,this._parents,this._name,this._id)},
selection:function(){return new DjF(this._groups,this._parents)},
transition:function(){for(var A=this._name,G=this._id,yN=++Oro,K4=this._groups,Oj=K4.length,Dr=0;Dr<Oj;++Dr)for(var JY=K4[Dr],LM=JY.length,aN,KM=0;KM<LM;++KM)if(aN=JY[KM]){var t8=F9(aN,G);Se(aN,A,yN,KM,JY,{time:t8.time+t8.delay+t8.duration,delay:0,duration:t8.duration,ease:t8.ease})}return new lg(K4,this._parents,A,yN)},
call:EJ.call,nodes:EJ.nodes,node:EJ.node,size:EJ.size,empty:EJ.empty,each:EJ.each,on:function(A,G){var yN=this._id;return arguments.length<2?F9(this.node(),yN).on.on(A):this.each(wQA(yN,A,G))},
attr:function(A,G){var yN=P(A),K4=yN==="transform"?zQY:jV;return this.attrTween(A,typeof G==="function"?(yN.local?sQd:RL4)(yN,K4,VE(this,"attr."+A,G)):G==null?(yN.local?cRk:pQ)(yN):(yN.local?e8:JH)(yN,K4,G+""))},
attrTween:function(A,G){var yN="attr."+A;if(arguments.length<2)return(yN=this.tween(yN))&&yN._value;if(G==null)return this.tween(yN,null);if(typeof G!=="function")throw Error();var K4=P(A);return this.tween(yN,(K4.local?YXd:TEF)(K4,G))},
style:function(A,G,yN){var K4=A==="transform"?RQ2:jV;return G==null?this.styleTween(A,qXY(A,K4)).on("end.style."+A,xYq(A)):this.styleTween(A,typeof G==="function"?mYf(A,K4,VE(this,"style."+A,G)):QQX(A,K4,G+""),yN)},
styleTween:function(A,G,yN){var K4="style."+A;if(arguments.length<2)return(K4=this.tween(K4))&&K4._value;if(G==null)return this.tween(K4,null);if(typeof G!=="function")throw Error();return this.tween(K4,vwd(A,G,yN==null?"":yN))},
text:function(A){return this.tween("text",typeof A==="function"?hxf(VE(this,"text",A)):b1q(A==null?"":A+""))},
remove:function(){return this.on("end.remove",liN(this._id))},
tween:function(A,G){var yN=this._id;if(arguments.length<2){yN=F9(this.node(),yN).tween;for(var K4=0,Oj=yN.length,Dr;K4<Oj;++K4)if((Dr=yN[K4]).name===A)return Dr.value;return null}return this.each((G==null?FR:yi)(yN,A,G))},
delay:function(A){var G=this._id;return arguments.length?this.each((typeof A==="function"?GBq:kBx)(G,A)):F9(this.node(),G).delay},
duration:function(A){var G=this._id;return arguments.length?this.each((typeof A==="function"?VUY:Ewq)(G,A)):F9(this.node(),G).duration},
ease:function(A){var G=this._id;return arguments.length?this.each(ir2(G,A)):F9(this.node(),G).ease}};
var mTq={time:null,delay:0,duration:250,ease:function(A){return((A*=2)<=1?A*A*A:(A-=2)*A*A+2)/2}};
dA.prototype.transition=function(A){var G;if(A instanceof lg){var yN=A._id;A=A._name}else yN=++Oro,(G=mTq).time=fw(),A=A==null?null:A+"";for(var K4=this._groups,Oj=K4.length,Dr=0;Dr<Oj;++Dr)for(var JY=K4[Dr],LM=JY.length,aN,KM=0;KM<LM;++KM)if(aN=JY[KM]){var t8=aN,ba=A,e2=yN,DL=KM,xf=JY,ew;if(!(ew=G))a:{ew=void 0;for(var uh=yN;!(ew=aN.__transition)||!(ew=ew[uh]);)if(!(aN=aN.parentNode)){ew=(mTq.time=fw(),mTq);break a}}Se(t8,ba,e2,DL,xf,ew)}return new lg(K4,this._parents,A,yN)};
["e","w"].map(JvF);["n","s"].map(JvF);"n e s w nw ne se sw".split(" ").map(JvF);ecN.prototype=function(){return new ecN}.prototype={constructor:ecN,
moveTo:function(A,G){this._+="M"+(this._x0=this._x1=+A)+","+(this._y0=this._y1=+G)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(A,G){this._+="L"+(this._x1=+A)+","+(this._y1=+G)},
bezierCurveTo:function(A,G,yN,K4,Oj,Dr){this._+="C"+ +A+","+ +G+","+ +yN+","+ +K4+","+(this._x1=+Oj)+","+(this._y1=+Dr)},
rect:function(A,G,yN,K4){this._+="M"+(this._x0=this._x1=+A)+","+(this._y0=this._y1=+G)+"h"+ +yN+"v"+ +K4+"h"+-yN+"Z"},
toString:function(){return this._}};
zLF.prototype=pDW.prototype={constructor:zLF,has:function(A){return" "+A in this},
get:function(A){return this[" "+A]},
set:function(A,G){this[" "+A]=G;return this},
remove:function(A){A=" "+A;return A in this&&delete this[A]},
clear:function(){for(var A in this)A[0]===" "&&delete this[A]},
keys:function(){var A=[],G;for(G in this)G[0]===" "&&A.push(G.slice(1));return A},
values:function(){var A=[],G;for(G in this)G[0]===" "&&A.push(this[G]);return A},
entries:function(){var A=[],G;for(G in this)G[0]===" "&&A.push({key:G.slice(1),value:this[G]});return A},
size:function(){var A=0,G;for(G in this)G[0]===" "&&++A;return A},
empty:function(){for(var A in this)if(A[0]===" ")return!1;return!0},
each:function(A){for(var G in this)G[0]===" "&&A(this[G],G.slice(1),this)}};
var nX=pDW.prototype;DSy.prototype=function(A,G){var yN=new DSy;if(A instanceof DSy)A.each(function(Dr){yN.add(Dr)});
else if(A){var K4=-1,Oj=A.length;if(G==null)for(;++K4<Oj;)yN.add(A[K4]);else for(;++K4<Oj;)yN.add(G(A[K4],K4,A))}return yN}.prototype={constructor:DSy,
has:nX.has,add:function(A){this[" "+A]=A;return this},
remove:nX.remove,clear:nX.clear,values:nX.keys,size:nX.size,empty:nX.empty,each:nX.each};var CUW={},Cw5={},IYX=eEP(",").parse,BpA=eEP("\t").parse;goa(IYX);goa(BpA);var Pl=function(A,G,yN){G=new gd4(G==null?a0f:G,yN==null?dxA:yN,NaN,NaN,NaN,NaN);return A==null?G:G.addAll(A)}.prototype=gd4.prototype;
Pl.copy=function(){var A=new gd4(this._x,this._y,this._x0,this._y0,this._x1,this._y1),G=this._root,yN,K4;if(!G)return A;if(!G.length)return A._root=YzP(G),A;for(yN=[{source:G,target:A._root=Array(4)}];G=yN.pop();)for(var Oj=0;Oj<4;++Oj)if(K4=G.source[Oj])K4.length?yN.push({source:K4,target:G.target[Oj]=Array(4)}):G.target[Oj]=YzP(K4);return A};
Pl.add=function(A){var G=+this._x.call(null,A),yN=+this._y.call(null,A);return sxG(this.cover(G,yN),G,yN,A)};
Pl.addAll=function(A){var G,yN,K4=A.length,Oj,Dr,JY=Array(K4),LM=Array(K4),aN=Infinity,KM=Infinity,t8=-Infinity,ba=-Infinity;for(yN=0;yN<K4;++yN)isNaN(Oj=+this._x.call(null,G=A[yN]))||isNaN(Dr=+this._y.call(null,G))||(JY[yN]=Oj,LM[yN]=Dr,Oj<aN&&(aN=Oj),Oj>t8&&(t8=Oj),Dr<KM&&(KM=Dr),Dr>ba&&(ba=Dr));t8<aN&&(aN=this._x0,t8=this._x1);ba<KM&&(KM=this._y0,ba=this._y1);this.cover(aN,KM).cover(t8,ba);for(yN=0;yN<K4;++yN)sxG(this,JY[yN],LM[yN],A[yN]);return this};
Pl.cover=function(A,G){if(isNaN(A=+A)||isNaN(G=+G))return this;var yN=this._x0,K4=this._y0,Oj=this._x1,Dr=this._y1;if(isNaN(yN))Oj=(yN=Math.floor(A))+1,Dr=(K4=Math.floor(G))+1;else if(yN>A||A>Oj||K4>G||G>Dr){var JY=Oj-yN,LM=this._root,aN;switch(aN=(G<(K4+Dr)/2)<<1|A<(yN+Oj)/2){case 0:do{var KM=Array(4);KM[aN]=LM;LM=KM}while(JY*=2,Oj=yN+JY,Dr=K4+JY,A>Oj||G>Dr);break;case 1:do KM=Array(4),KM[aN]=LM,LM=KM;while(JY*=2,yN=Oj-JY,Dr=K4+JY,yN>A||G>Dr);break;case 2:do KM=Array(4),KM[aN]=LM,LM=KM;while(JY*=
2,Oj=yN+JY,K4=Dr-JY,A>Oj||K4>G);break;case 3:do KM=Array(4),KM[aN]=LM,LM=KM;while(JY*=2,yN=Oj-JY,K4=Dr-JY,yN>A||K4>G)}this._root&&this._root.length&&(this._root=LM)}else return this;this._x0=yN;this._y0=K4;this._x1=Oj;this._y1=Dr;return this};
Pl.data=function(){var A=[];this.visit(function(G){if(!G.length){do A.push(G.data);while(G=G.next)}});
return A};
Pl.extent=function(A){return arguments.length?this.cover(+A[0][0],+A[0][1]).cover(+A[1][0],+A[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
Pl.find=function(A,G,yN){var K4=this._x0,Oj=this._y0,Dr,JY,LM,aN,KM=this._x1,t8=this._y1,ba=[],e2=this._root,DL;e2&&ba.push(new LZ(e2,K4,Oj,KM,t8));yN==null?yN=Infinity:(K4=A-yN,Oj=G-yN,KM=A+yN,t8=G+yN,yN*=yN);for(;DL=ba.pop();)if(!(!(e2=DL.node)||(Dr=DL.x0)>KM||(JY=DL.y0)>t8||(LM=DL.x1)<K4||(aN=DL.y1)<Oj))if(e2.length){DL=(Dr+LM)/2;var xf=(JY+aN)/2;ba.push(new LZ(e2[3],DL,xf,LM,aN),new LZ(e2[2],Dr,xf,DL,aN),new LZ(e2[1],DL,JY,LM,xf),new LZ(e2[0],Dr,JY,DL,xf));if(e2=(G>=xf)<<1|A>=DL)DL=ba[ba.length-
1],ba[ba.length-1]=ba[ba.length-1-e2],ba[ba.length-1-e2]=DL}else if(DL=A-+this._x.call(null,e2.data),xf=G-+this._y.call(null,e2.data),DL=DL*DL+xf*xf,DL<yN){var ew=Math.sqrt(yN=DL);K4=A-ew;Oj=G-ew;KM=A+ew;t8=G+ew;ew=e2.data}return ew};
Pl.remove=function(A){if(isNaN(aN=+this._x.call(null,A))||isNaN(KM=+this._y.call(null,A)))return this;var G,yN=this._root,K4,Oj=this._x0,Dr=this._y0,JY=this._x1,LM=this._y1,aN,KM,t8,ba,e2,DL,xf;if(!yN)return this;if(yN.length)for(;;){(e2=aN>=(t8=(Oj+JY)/2))?Oj=t8:JY=t8;(DL=KM>=(ba=(Dr+LM)/2))?Dr=ba:LM=ba;if(!(G=yN,yN=yN[xf=DL<<1|e2]))return this;if(!yN.length)break;if(G[xf+1&3]||G[xf+2&3]||G[xf+3&3]){var ew=G;var uh=xf}}for(;yN.data!==A;)if(!(K4=yN,yN=yN.next))return this;(A=yN.next)&&delete yN.next;
if(K4)return A?K4.next=A:delete K4.next,this;if(!G)return this._root=A,this;A?G[xf]=A:delete G[xf];(yN=G[0]||G[1]||G[2]||G[3])&&yN===(G[3]||G[2]||G[1]||G[0])&&!yN.length&&(ew?ew[uh]=yN:this._root=yN);return this};
Pl.removeAll=function(A){for(var G=0,yN=A.length;G<yN;++G)this.remove(A[G]);return this};
Pl.root=function(){return this._root};
Pl.size=function(){var A=0;this.visit(function(G){if(!G.length){do++A;while(G=G.next)}});
return A};
Pl.visit=function(A){var G=[],yN,K4=this._root,Oj,Dr,JY,LM,aN;for(K4&&G.push(new LZ(K4,this._x0,this._y0,this._x1,this._y1));yN=G.pop();)if(!A(K4=yN.node,Dr=yN.x0,JY=yN.y0,LM=yN.x1,aN=yN.y1)&&K4.length){yN=(Dr+LM)/2;var KM=(JY+aN)/2;(Oj=K4[3])&&G.push(new LZ(Oj,yN,KM,LM,aN));(Oj=K4[2])&&G.push(new LZ(Oj,Dr,KM,yN,aN));(Oj=K4[1])&&G.push(new LZ(Oj,yN,JY,LM,KM));(Oj=K4[0])&&G.push(new LZ(Oj,Dr,JY,yN,KM))}};
Pl.visitAfter=function(A){var G=[],yN=[],K4;for(this._root&&G.push(new LZ(this._root,this._x0,this._y0,this._x1,this._y1));K4=G.pop();){var Oj=K4.node;if(Oj.length){var Dr,JY=K4.x0,LM=K4.y0,aN=K4.x1,KM=K4.y1,t8=(JY+aN)/2,ba=(LM+KM)/2;(Dr=Oj[0])&&G.push(new LZ(Dr,JY,LM,t8,ba));(Dr=Oj[1])&&G.push(new LZ(Dr,t8,LM,aN,ba));(Dr=Oj[2])&&G.push(new LZ(Dr,JY,ba,t8,KM));(Dr=Oj[3])&&G.push(new LZ(Dr,t8,ba,aN,KM))}yN.push(K4)}for(;K4=yN.pop();)A(K4.node,K4.x0,K4.y0,K4.x1,K4.y1);return this};
Pl.x=function(A){return arguments.length?(this._x=A,this):this._x};
Pl.y=function(A){return arguments.length?(this._y=A,this):this._y};
var Plq=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;sp5.prototype=YAr.prototype;YAr.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 V98,EoP={"%":function(A,G){return(A*100).toFixed(G)},
b:function(A){return Math.round(A).toString(2)},
c:function(A){return A+""},
d:function(A){return Math.round(A).toString(10)},
e:function(A,G){return A.toExponential(G)},
f:function(A,G){return A.toFixed(G)},
g:function(A,G){return A.toPrecision(G)},
o:function(A){return Math.round(A).toString(8)},
p:function(A,G){return T7a(A*100,G)},
r:T7a,s:function(A,G){var yN=IRr(A,G);if(!yN)return A+"";var K4=yN[0];yN=yN[1];yN=yN-(V98=Math.max(-8,Math.min(8,Math.floor(yN/3)))*3)+1;var Oj=K4.length;return yN===Oj?K4:yN>Oj?K4+Array(yN-Oj+1).join("0"):yN>0?K4.slice(0,yN)+"."+K4.slice(yN):"0."+Array(1-yN).join("0")+IRr(A,Math.max(0,G+yN-1))[0]},
X:function(A){return Math.round(A).toString(16).toUpperCase()},
x:function(A){return Math.round(A).toString(16)}},k_8="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),WZd;
(function(A){return WZd=KCE(A)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});$B.prototype={constructor:$B,reset:function(){this.s=this.t=0},
add:function(A){ikb(eLn,A,this.t);ikb(this,eLn.s,this.s);this.s?this.t+=eLn.t:this.s=eLn.t},
valueOf:function(){return this.s}};
var eLn=new $B,L2=Math.PI,o8=L2/2,NEG=L2/4,AaF=L2*2,vdk=L2/180,qb=Math.abs,bkY=Math.atan,Qxw=Math.atan2,M$=Math.cos,En=Math.sin,WVI=Math.sqrt;new $B;new $B;new $B;var hEM=new $B;(function(A,G,yN,K4){return function(Oj){function Dr(dg,W0){A(dg,W0)&&Oj.point(dg,W0)}
function JY(dg,W0){e2.point(dg,W0)}
function LM(){XQ.point=JY;e2.lineStart()}
function aN(){XQ.point=Dr;e2.lineEnd()}
function KM(dg,W0){gh.push([dg,W0]);xf.point(dg,W0)}
function t8(){xf.lineStart();gh=[]}
function ba(){KM(gh[0][0],gh[0][1]);xf.lineEnd();var dg=xf.clean(),W0=DL.result(),hk=W0.length,CK;gh.pop();uh.push(gh);gh=null;if(hk)if(dg&1){if(hk=W0[0],(W0=hk.length-1)>0){ew||(Oj.polygonStart(),ew=!0);Oj.lineStart();for(dg=0;dg<W0;++dg)Oj.point((CK=hk[dg])[0],CK[1]);Oj.lineEnd()}}else hk>1&&dg&2&&W0.push(W0.pop().concat(W0.shift())),ae.push(W0.filter(nI2))}
var e2=G(Oj),DL=oIa(),xf=G(DL),ew=!1,uh,ae,gh,XQ={point:Dr,lineStart:LM,lineEnd:aN,polygonStart:function(){XQ.point=KM;XQ.lineStart=t8;XQ.lineEnd=ba;ae=[];uh=[]},
polygonEnd:function(){XQ.point=Dr;XQ.lineStart=LM;XQ.lineEnd=aN;var dg=ae,W0=dg.length;var hk=-1;for(var CK=0,Qf,RR;++hk<W0;)CK+=dg[hk].length;for(Qf=Array(CK);--W0>=0;)for(RR=dg[W0],hk=RR.length;--hk>=0;)Qf[--CK]=RR[hk];ae=Qf;dg=uh;W0=K4[0];CK=K4[1];var oR=En(CK);hk=[En(W0),-M$(W0),0];RR=Qf=0;hEM.reset();oR===1?CK=o8+1E-6:oR===-1&&(CK=-o8-1E-6);oR=0;for(var gA=dg.length;oR<gA;++oR)if($6=(jR=dg[oR]).length){var jR,$6,OP=jR[$6-1],UM=OP[0],fT=OP[1]/2+NEG,Chr=En(fT),tUa=M$(fT);for(fT=0;fT<$6;++fT,UM=
ypk,Chr=rZa,tUa=E4,OP=gJr){var gJr=jR[fT],ypk=gJr[0];E4=gJr[1]/2+NEG;var rZa=En(E4),E4=M$(E4),i$=ypk-UM,Sz8=i$>=0?1:-1,Fq8=Sz8*i$,sLk=Fq8>L2;Chr*=rZa;hEM.add(Qxw(Chr*Sz8*En(Fq8),tUa*E4+Chr*M$(Fq8)));Qf+=sLk?i$+Sz8*AaF:i$;sLk^UM>=W0^ypk>=W0&&(OP=wDP(fPw(OP),fPw(gJr)),lPN(OP),UM=wDP(hk,OP),lPN(UM),UM=(sLk^i$>=0?-1:1)*B_q(UM[2]),CK>UM||CK===UM&&(OP[0]||OP[1]))&&(RR+=sLk^i$>=0?1:-1)}}dg=(Qf<-1E-6||Qf<1E-6&&hEM<-1E-6)^RR&1;ae.length?(ew||(Oj.polygonStart(),ew=!0),MiA(ae,X8F,dg,yN,Oj)):dg&&(ew||(Oj.polygonStart(),
ew=!0),Oj.lineStart(),yN(null,null,1,Oj),Oj.lineEnd());ew&&(Oj.polygonEnd(),ew=!1);ae=uh=null},
sphere:function(){Oj.polygonStart();Oj.lineStart();yN(null,null,1,Oj);Oj.lineEnd();Oj.polygonEnd()}};
return XQ}})(function(){return!0},function(A){var G=NaN,yN=NaN,K4=NaN,Oj;
return{lineStart:function(){A.lineStart();Oj=1},
point:function(Dr,JY){var LM=Dr>0?L2:-L2,aN=qb(Dr-G);if(qb(aN-L2)<1E-6)A.point(G,yN=(yN+JY)/2>0?o8:-o8),A.point(K4,yN),A.lineEnd(),A.lineStart(),A.point(LM,yN),A.point(Dr,yN),Oj=0;else if(K4!==LM&&aN>=L2){qb(G-K4)<1E-6&&(G-=K4*1E-6);qb(Dr-LM)<1E-6&&(Dr-=LM*1E-6);aN=G;var KM=yN,t8=Dr,ba,e2,DL=En(aN-t8);yN=qb(DL)>1E-6?bkY((En(KM)*(e2=M$(JY))*En(t8)-En(JY)*(ba=M$(KM))*En(aN))/(ba*e2*DL)):(KM+JY)/2;A.point(K4,yN);A.lineEnd();A.lineStart();A.point(LM,yN);Oj=0}A.point(G=Dr,yN=JY);K4=LM},
lineEnd:function(){A.lineEnd();G=yN=NaN},
clean:function(){return 2-Oj}}},function(A,G,yN,K4){A==null?(yN*=o8,K4.point(-L2,yN),K4.point(0,yN),K4.point(L2,yN),K4.point(L2,0),K4.point(L2,-yN),K4.point(0,-yN),K4.point(-L2,-yN),K4.point(-L2,0),K4.point(-L2,yN)):qb(A[0]-G[0])>1E-6?(A=A[0]<G[0]?L2:-L2,yN=yN*A/2,K4.point(-A,yN),K4.point(0,yN),K4.point(A,yN)):K4.point(G[0],G[1])},[-L2,
-o8]);new $B;new $B;new $B;new $B;TP5.prototype={constructor:TP5,point:function(A,G){this.stream.point(A,G)},
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()}};
M$(30*vdk);(function(A){return function(G){var yN=new TP5,K4;for(K4 in A)yN[K4]=A[K4];yN.stream=G;return yN}})({point:function(A,G){this.stream.point(A*vdk,G*vdk)}});
xp7(function(A){return WVI(2/(1+A))}).invert=CQ(function(A){return 2*B_q(A/2)});
xp7(function(A){return(A=A>1?0:A<-1?L2:Math.acos(A))&&A/En(A)}).invert=CQ(function(A){return A});
WVI(3);CQ(bkY);CQ(B_q);CQ(function(A){return 2*bkY(A)});
gL.prototype=mpW.prototype={constructor:gL,count:function(){return this.eachAfter(H1P)},
each:function(A){var G,yN=[this],K4;do{var Oj=yN.reverse();for(yN=[];G=Oj.pop();)if(A(G),G=G.children){var Dr=0;for(K4=G.length;Dr<K4;++Dr)yN.push(G[Dr])}}while(yN.length);return this},
eachAfter:function(A){for(var G,yN=[this],K4=[],Oj,Dr;G=yN.pop();)if(K4.push(G),G=G.children)for(Oj=0,Dr=G.length;Oj<Dr;++Oj)yN.push(G[Oj]);for(;G=K4.pop();)A(G);return this},
eachBefore:function(A){for(var G,yN=[this],K4;G=yN.pop();)if(A(G),G=G.children)for(K4=G.length-1;K4>=0;--K4)yN.push(G[K4]);return this},
sum:function(A){return this.eachAfter(function(G){for(var yN=+A(G.data)||0,K4=G.children,Oj=K4&&K4.length;--Oj>=0;)yN+=K4[Oj].value;G.value=yN})},
sort:function(A){return this.eachBefore(function(G){G.children&&G.children.sort(A)})},
path:function(A){var G=this;var yN=G;var K4=A;if(yN!==K4){var Oj=yN.ancestors(),Dr=K4.ancestors(),JY=null;yN=Oj.pop();for(K4=Dr.pop();yN===K4;)JY=yN,yN=Oj.pop(),K4=Dr.pop();yN=JY}for(K4=[G];G!==yN;)G=G.parent,K4.push(G);for(G=K4.length;A!==yN;)K4.splice(G,0,A),A=A.parent;return K4},
ancestors:function(){for(var A=this,G=[A];A=A.parent;)G.push(A);return G},
links:function(){var A=this,G=[];A.each(function(yN){yN!==A&&G.push({source:yN.parent,target:yN})});
return G},
copy:function(){return mpW(this).eachBefore(NnX)}};
(function(A,G){this._=A;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=G}).prototype=Object.create(gL.prototype);
var GOk=new Date,kOy=new Date,cZ5=px(function(){},function(A,G){A.setTime(+A+G)},function(A,G){return G-A});
cZ5.every=function(A){A=Math.floor(A);return isFinite(A)&&A>0?A>1?px(function(G){G.setTime(Math.floor(G/A)*A)},function(G,yN){G.setTime(+G+yN*A)},function(G,yN){return(yN-G)/A}):cZ5:null};
px(function(A){A.setTime(Math.floor(A/1E3)*1E3)},function(A,G){A.setTime(+A+G*1E3)},function(A,G){return(G-A)/1E3},function(A){return A.getUTCSeconds()});
px(function(A){A.setTime(Math.floor(A/6E4)*6E4)},function(A,G){A.setTime(+A+G*6E4)},function(A,G){return(G-A)/6E4},function(A){return A.getMinutes()});
px(function(A){var G=A.getTimezoneOffset()*6E4%36E5;G<0&&(G+=36E5);A.setTime(Math.floor((+A-G)/36E5)*36E5+G)},function(A,G){A.setTime(+A+G*36E5)},function(A,G){return(G-A)/36E5},function(A){return A.getHours()});
var hfN=px(function(A){A.setHours(0,0,0,0)},function(A,G){A.setDate(A.getDate()+G)},function(A,G){return(G-A-(G.getTimezoneOffset()-A.getTimezoneOffset())*6E4)/864E5},function(A){return A.getDate()-1}),Npf=o9(0),EdY=o9(1);
o9(2);o9(3);var ifq=o9(4);o9(5);o9(6);px(function(A){A.setDate(1);A.setHours(0,0,0,0)},function(A,G){A.setMonth(A.getMonth()+G)},function(A,G){return G.getMonth()-A.getMonth()+(G.getFullYear()-A.getFullYear())*12},function(A){return A.getMonth()});
var GC=px(function(A){A.setMonth(0,1);A.setHours(0,0,0,0)},function(A,G){A.setFullYear(A.getFullYear()+G)},function(A,G){return G.getFullYear()-A.getFullYear()},function(A){return A.getFullYear()});
GC.every=function(A){return isFinite(A=Math.floor(A))&&A>0?px(function(G){G.setFullYear(Math.floor(G.getFullYear()/A)*A);G.setMonth(0,1);G.setHours(0,0,0,0)},function(G,yN){G.setFullYear(G.getFullYear()+yN*A)}):null};
px(function(A){A.setUTCSeconds(0,0)},function(A,G){A.setTime(+A+G*6E4)},function(A,G){return(G-A)/6E4},function(A){return A.getUTCMinutes()});
px(function(A){A.setUTCMinutes(0,0,0)},function(A,G){A.setTime(+A+G*36E5)},function(A,G){return(G-A)/36E5},function(A){return A.getUTCHours()});
var brw=px(function(A){A.setUTCHours(0,0,0,0)},function(A,G){A.setUTCDate(A.getUTCDate()+G)},function(A,G){return(G-A)/864E5},function(A){return A.getUTCDate()-1}),tqA=Mj(0),Vbn=Mj(1);
Mj(2);Mj(3);var fV8=Mj(4);Mj(5);Mj(6);px(function(A){A.setUTCDate(1);A.setUTCHours(0,0,0,0)},function(A,G){A.setUTCMonth(A.getUTCMonth()+G)},function(A,G){return G.getUTCMonth()-A.getUTCMonth()+(G.getUTCFullYear()-A.getUTCFullYear())*12},function(A){return A.getUTCMonth()});
var kA=px(function(A){A.setUTCMonth(0,1);A.setUTCHours(0,0,0,0)},function(A,G){A.setUTCFullYear(A.getUTCFullYear()+G)},function(A,G){return G.getUTCFullYear()-A.getUTCFullYear()},function(A){return A.getUTCFullYear()});
kA.every=function(A){return isFinite(A=Math.floor(A))&&A>0?px(function(G){G.setUTCFullYear(Math.floor(G.getUTCFullYear()/A)*A);G.setUTCMonth(0,1);G.setUTCHours(0,0,0,0)},function(G,yN){G.setUTCFullYear(G.getUTCFullYear()+yN*A)}):null};
var voW={"-":"",_:" ",0:"0"},sa=/^\s*\d+/,OXF=/^%/,u1A=/[\\^$*+?|[\]().{}]/g,YP8;(function(A){YP8=rCY(A);U$e=YP8.utcFormat;pfN=YP8.utcParse;return YP8})({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||U$e("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||pfN("%Y-%m-%dT%H:%M:%S.%LZ");Nz("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
Nz("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");Nz("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");Nz("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");Nz("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");Nz("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");Nz("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
Nz("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");Nz("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");Nz("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");Nz("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");Nz("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var Ujf=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Nz);$0(Ujf);var pxA=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Nz);$0(pxA);var JaX=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Nz);$0(JaX);var eQf=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Nz);
$0(eQf);var CQP=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Nz);$0(CQP);var gMa=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Nz);$0(gMa);var s9P=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Nz);$0(s9P);var YHA=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Nz);$0(YHA);var Tpq=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Nz);$0(Tpq);var GeF=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Nz);$0(GeF);var kea=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Nz);$0(kea);var Vqd=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Nz);$0(Vqd);var EMd=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Nz);$0(EMd);var iXY=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Nz);$0(iXY);var fYx=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Nz);$0(fYx);var wxN=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Nz);$0(wxN);var lYx=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Nz);$0(lYx);var qHE=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Nz);$0(qHE);var xjf=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Nz);$0(xjf);var Q9q=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Nz);$0(Q9q);var mjA=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Nz);$0(mjA);var vMY=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Nz);$0(vMY);var bN2=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Nz);$0(bN2);var h3f=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Nz);$0(h3f);var yfA=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Nz);$0(yfA);var ScA=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Nz);$0(ScA);var Frd=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Nz);$0(Frd);Qp5(D8(300,.5,0),D8(-240,.5,1));Qp5(D8(-100,.75,.35),D8(80,1.5,.8));Qp5(D8(260,.75,.35),D8(80,1.5,.8));D8();lo();poy(Nz("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
poy(Nz("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
poy(Nz("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
poy(Nz("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
KzN.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(A,G){A=+A;G=+G;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(A,G):this._context.moveTo(A,G);break;case 1:this._point=2;default:this._context.lineTo(A,G)}}};
(function(A){function G(yN){return new Zr5(A(yN))}
G._curve=A;return G})(function(A){return new KzN(A)});
Zr5.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(A,G){this._curve.point(G*Math.sin(A),G*-Math.cos(A))}};
lVj.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:wg8(this,this._t0,MUP(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(A,G){var yN=NaN;A=+A;G=+G;if(A!==this._x1||G!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(A,G):this._context.moveTo(A,G);break;case 1:this._point=2;break;case 2:this._point=3;wg8(this,MUP(this,yN=owW(this,A,G)),yN);break;default:wg8(this,this._t0,yN=owW(this,A,G))}this._x0=this._x1;this._x1=A;this._y0=this._y1;this._y1=G;this._t0=yN}}};
(function(A){this._context=new nwG(A)}.prototype=Object.create(lVj.prototype)).point=function(A,G){lVj.prototype.point.call(this,G,A)};
nwG.prototype={moveTo:function(A,G){this._context.moveTo(G,A)},
closePath:function(){this._context.closePath()},
lineTo:function(A,G){this._context.lineTo(G,A)},
bezierCurveTo:function(A,G,yN,K4,Oj,Dr){this._context.bezierCurveTo(G,A,K4,yN,Dr,Oj)}};
GV.prototype={constructor:GV,scale:function(A){return A===1?this:new GV(this.k*A,this.x,this.y)},
translate:function(A,G){return A===0&G===0?this:new GV(this.k,this.x+this.k*A,this.y+this.k*G)},
apply:function(A){return[A[0]*this.k+this.x,A[1]*this.k+this.y]},
invert:function(A){return[(A[0]-this.x)/this.k,(A[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new GV(1,0,0);N0M=ua;Za.svg=Za.svg;Za.xhtml=Za.xhtml;Za.xlink=Za.xlink;Za.xml=Za.xml;Za.xmlns=Za.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 J_W="hammer_"+(Math.random()*1E6|0),eNM=function(){var b=document||document;if(!b[J_W]){var h=function(){(function(y,S,F,a){function P(BF,Tk,qy){return setTimeout(N(BF,qy),Tk)}
function K(BF,Tk,qy){return Array.isArray(BF)?(n(BF,qy[Tk],qy),!0):!1}
function n(BF,Tk,qy){var za;if(BF)if(BF.forEach)BF.forEach(Tk,qy);else if(BF.length!==a){var rA=0;for(za=BF.length;rA<za;rA++)Tk.call(qy,BF[rA],rA,BF)}else for(rA in BF)BF.hasOwnProperty(rA)&&Tk.call(qy,BF[rA],rA,BF)}
function X(BF,Tk,qy){for(var za=Object.keys(Tk),rA=0,zp=za.length;rA<zp;rA++)if(!qy||qy&&BF[za[rA]]===a)BF[za[rA]]=Tk[za[rA]];return BF}
function u(BF,Tk){return X(BF,Tk,!0)}
function O(BF,Tk,qy){Tk=Tk.prototype;var za=BF.prototype=Object.create(Tk);za.constructor=BF;za._super=Tk;qy&&X(za,qy)}
function N(BF,Tk){return function(){return BF.apply(Tk,arguments)}}
function t(BF,Tk){return typeof BF=="function"?BF.apply(Tk?Tk[0]||a:a,Tk):BF}
function R(BF,Tk,qy){n(U(Tk),function(za){BF.addEventListener(za,qy,!1)})}
function I(BF,Tk,qy){n(U(Tk),function(za){BF.removeEventListener(za,qy,!1)})}
function U(BF){return BF.trim().split(/\s+/g)}
function p(BF,Tk,qy){if(BF.indexOf&&!qy)return BF.indexOf(Tk);for(var za=0,rA=BF.length;za<rA;za++)if(qy&&BF[za][qy]==Tk||!qy&&BF[za]===Tk)return za;return-1}
function e(BF,Tk,qy){for(var za=[],rA=[],zp=0,BN=BF.length;zp<BN;zp++){var U7=Tk?BF[zp][Tk]:BF[zp];p(rA,U7)<0&&za.push(BF[zp]);rA[zp]=U7}qy&&(za=Tk?za.sort(function(D8,Vf){return D8[Tk]>Vf[Tk]}):za.sort());
return za}
function E(BF,Tk){for(var qy,za=Tk[0].toUpperCase()+Tk.slice(1),rA=0,zp=oN.length;rA<zp;rA++)if(qy=(qy=oN[rA])?qy+za:Tk,qy in BF)return qy;return a}
function Y(BF,Tk){var qy=this;this.manager=BF;this.callback=Tk;this.element=BF.element;this.target=BF.options.inputTarget;this.domHandler=function(za){t(BF.options.enable,[BF])&&qy.handler(za)};
this.evEl&&R(this.element,this.evEl,this.domHandler);this.evTarget&&R(this.target,this.evTarget,this.domHandler);this.evWin&&R(y,this.evWin,this.domHandler)}
function w(BF){var Tk;kF?Tk=gI:oa?Tk=YU:ua?Tk=VN:Tk=Ny;return new Tk(BF,x)}
function x(BF,Tk,qy){var za=qy.pointers.length,rA=qy.changedPointers.length,zp=Tk&1&&za-rA===0;qy.isFirst=!!zp;qy.isFinal=!!(Tk&12&&za-rA===0);zp&&(BF.session={});qy.eventType=Tk;Tk=BF.session;za=qy.pointers;rA=za.length;Tk.firstInput||(Tk.firstInput=q(qy));rA>1&&!Tk.firstMultiple?Tk.firstMultiple=q(qy):rA===1&&(Tk.firstMultiple=!1);zp=Tk.firstInput;var BN=(rA=Tk.firstMultiple)?rA.center:zp.center,U7=qy.center=dI(za);qy.timeStamp=vb();qy.deltaTime=qy.timeStamp-zp.timeStamp;qy.angle=Xn(BN,U7);qy.distance=
Rq(BN,U7);zp=qy.center;BN=Tk.offsetDelta||{};U7=Tk.prevDelta||{};var D8=Tk.prevInput||{};if(qy.eventType===1||D8.eventType===4)U7=Tk.prevDelta={x:D8.deltaX||0,y:D8.deltaY||0},BN=Tk.offsetDelta={x:zp.x,y:zp.y};qy.deltaX=U7.x+(zp.x-BN.x);qy.deltaY=U7.y+(zp.y-BN.y);qy.offsetDirection=L4(qy.deltaX,qy.deltaY);rA?(zp=rA.pointers,zp=Rq(za[0],za[1],lo)/Rq(zp[0],zp[1],lo)):zp=1;qy.scale=zp;rA?(rA=rA.pointers,za=Xn(za[1],za[0],lo)-Xn(rA[1],rA[0],lo)):za=0;qy.rotation=za;BN=Tk.lastInterval||qy;za=qy.timeStamp-
BN.timeStamp;qy.eventType!=8&&(za>25||BN.velocity===a)?(zp=BN.deltaX-qy.deltaX,BN=BN.deltaY-qy.deltaY,U7=zp/za||0,D8=BN/za||0,za=U7,rA=D8,U7=QN(U7)>QN(D8)?U7:D8,zp=L4(zp,BN),Tk.lastInterval=qy):(U7=BN.velocity,za=BN.velocityX,rA=BN.velocityY,zp=BN.direction);qy.velocity=U7;qy.velocityX=za;qy.velocityY=rA;qy.direction=zp;Tk=BF.element;a:{for(za=qy.srcEvent.target;za;){if(za==Tk){za=!0;break a}za=za.parentNode}za=!1}za&&(Tk=qy.srcEvent.target);qy.target=Tk;BF.emit("hammer.input",qy);BF.recognize(qy);
BF.session.prevInput=qy}
function q(BF){for(var Tk=[],qy=0;qy<BF.pointers.length;qy++)Tk[qy]={clientX:dA(BF.pointers[qy].clientX),clientY:dA(BF.pointers[qy].clientY)};return{timeStamp:vb(),pointers:Tk,center:dI(Tk),deltaX:BF.deltaX,deltaY:BF.deltaY}}
function dI(BF){var Tk=BF.length;if(Tk===1)return{x:dA(BF[0].clientX),y:dA(BF[0].clientY)};for(var qy=0,za=0,rA=0;rA<Tk;rA++)qy+=BF[rA].clientX,za+=BF[rA].clientY;return{x:dA(qy/Tk),y:dA(za/Tk)}}
function L4(BF,Tk){return BF===Tk?1:QN(BF)>=QN(Tk)?BF>0?2:4:Tk>0?8:16}
function Rq(BF,Tk,qy){qy||(qy=PB);var za=Tk[qy[0]]-BF[qy[0]];BF=Tk[qy[1]]-BF[qy[1]];return Math.sqrt(za*za+BF*BF)}
function Xn(BF,Tk,qy){qy||(qy=PB);return Math.atan2(Tk[qy[1]]-BF[qy[1]],Tk[qy[0]]-BF[qy[0]])*180/Math.PI}
function Ny(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;Y.apply(this,arguments)}
function gI(){this.evEl=uR;this.evWin=Yb;Y.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function YU(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};Y.apply(this,arguments)}
function VN(){Y.apply(this,arguments);var BF=N(this.handler,this);this.touch=new YU(this.manager,BF);this.mouse=new Ny(this.manager,BF)}
function Hb(BF,Tk){this.manager=BF;this.set(Tk)}
function vF(BF){if(BF.indexOf("none")>-1)return"none";var Tk=BF.indexOf("pan-x")>-1,qy=BF.indexOf("pan-y")>-1;return Tk&&qy?"pan-x pan-y":Tk||qy?Tk?"pan-x":"pan-y":BF.indexOf("manipulation")>-1?"manipulation":"auto"}
function xU(BF){this.id=fA++;this.manager=null;this.options=u(BF||{},this.defaults);BF=this.options.enable;this.options.enable=BF===a?!0:BF;this.state=1;this.simultaneous={};this.requireFail=[]}
function Xa(BF){return BF==16?"down":BF==8?"up":BF==2?"left":BF==4?"right":""}
function rG(BF,Tk){return(Tk=Tk.manager)?Tk.get(BF):BF}
function Wb(){xU.apply(this,arguments)}
function Xx(){Wb.apply(this,arguments);this.pY=this.pX=null}
function Bb(){Wb.apply(this,arguments)}
function oq(){xU.apply(this,arguments);this._input=this._timer=null}
function kU(){Wb.apply(this,arguments)}
function O7(){Wb.apply(this,arguments)}
function io(){xU.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function cb(BF,Tk){Tk=Tk||{};var qy=Tk.recognizers;Tk.recognizers=qy===a?cb.defaults.preset:qy;return new QW(BF,Tk)}
function QW(BF,Tk){Tk=Tk||{};this.options=u(Tk,cb.defaults);this.options.inputTarget=this.options.inputTarget||BF;this.handlers={};this.session={};this.recognizers=[];this.element=BF;this.input=w(this);this.touchAction=new Hb(this,this.options.touchAction);vM(this,!0);n(Tk.recognizers,function(qy){var za=this.add(new qy[0](qy[1]));qy[2]&&za.recognizeWith(qy[2]);qy[3]&&za.requireFailure(qy[2])},this)}
function vM(BF,Tk){var qy=BF.element;n(BF.options.cssProps,function(za,rA){qy.style[E(qy.style,rA)]=Tk?za:""})}
function wG(BF,Tk){var qy=S.createEvent("Event");qy.initEvent(BF,!0,!0);qy.gesture=Tk;Tk.target.dispatchEvent(qy)}
var oN=" webkit moz MS ms o".split(" "),uo=S.createElement("div"),dA=Math.round,QN=Math.abs,vb=Date.now,fA=1,bJ=/mobile|tablet|ip(ad|hone|od)|android/i,ua="ontouchstart"in y,kF=E(y,"PointerEvent")!==a,oa=ua&&bJ.test(navigator.userAgent),PB=["x","y"],lo=["clientX","clientY"];Y.prototype={handler:function(){},
destroy:function(){this.evEl&&I(this.element,this.evEl,this.domHandler);this.evTarget&&I(this.target,this.evTarget,this.domHandler);this.evWin&&I(y,this.evWin,this.domHandler)}};
var IP={mousedown:1,mousemove:2,mouseup:4};O(Ny,Y,{handler:function(BF){var Tk=IP[BF.type];Tk&1&&BF.button===0&&(this.pressed=!0);Tk&2&&BF.which!==1&&(Tk=4);this.pressed&&this.allow&&(Tk&4&&(this.pressed=!1),this.callback(this.manager,Tk,{pointers:[BF],changedPointers:[BF],pointerType:"mouse",srcEvent:BF}))}});
var j2={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Jg={2:"touch",3:"pen",4:"mouse",5:"kinect"},uR="pointerdown",Yb="pointermove pointerup pointercancel";y.MSPointerEvent&&(uR="MSPointerDown",Yb="MSPointerMove MSPointerUp MSPointerCancel");O(gI,Y,{handler:function(BF){var Tk=this.store,qy=!1,za=BF.type.toLowerCase().replace("ms","");za=j2[za];var rA=Jg[BF.pointerType]||BF.pointerType;za&1&&(BF.button===0||rA=="touch")?Tk.push(BF):za&12&&(qy=!0);var zp=p(Tk,BF.pointerId,"pointerId");
zp<0||(Tk[zp]=BF,this.callback(this.manager,za,{pointers:Tk,changedPointers:[BF],pointerType:rA,srcEvent:BF}),qy&&Tk.splice(zp,1))}});
var B0={touchstart:1,touchmove:2,touchend:4,touchcancel:8};O(YU,Y,{handler:function(BF){var Tk=B0[BF.type];var qy=Array.prototype.slice.call(BF.touches,0);var za=this.targetIds;if(Tk&3&&qy.length===1)za[qy[0].identifier]=!0,za=[qy,qy];else{var rA,zp=Array.prototype.slice.call(BF.targetTouches,0),BN=Array.prototype.slice.call(BF.changedTouches,0),U7=[];if(Tk===1)for(qy=0,rA=zp.length;qy<rA;qy++)za[zp[qy].identifier]=!0;qy=0;for(rA=BN.length;qy<rA;qy++)za[BN[qy].identifier]&&U7.push(BN[qy]),Tk&12&&
delete za[BN[qy].identifier];za=U7.length?[e(zp.concat(U7),"identifier",!0),U7]:void 0}za&&this.callback(this.manager,Tk,{pointers:za[0],changedPointers:za[1],pointerType:"touch",srcEvent:BF})}});
O(VN,Y,{handler:function(BF,Tk,qy){var za=qy.pointerType=="mouse";if(qy.pointerType=="touch")this.mouse.allow=!1;else if(za&&!this.mouse.allow)return;Tk&12&&(this.mouse.allow=!0);this.callback(BF,Tk,qy)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var Vx=E(uo.style,"touchAction"),vL=Vx!==a;Hb.prototype={set:function(BF){BF=="compute"&&(BF=this.compute());vL&&(this.manager.element.style[Vx]=BF);this.actions=BF.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var BF=[];n(this.manager.recognizers,function(Tk){t(Tk.options.enable,[Tk])&&(BF=BF.concat(Tk.getTouchAction()))});
return vF(BF.join(" "))},
preventDefaults:function(BF){if(!vL){var Tk=BF.srcEvent;BF=BF.offsetDirection;if(this.manager.session.prevented)Tk.preventDefault();else{var qy=this.actions,za=qy.indexOf("none")>-1,rA=qy.indexOf("pan-y")>-1;qy=qy.indexOf("pan-x")>-1;if(za||rA&&qy||rA&&BF&6||qy&&BF&24)return this.preventSrc(Tk)}}},
preventSrc:function(BF){this.manager.session.prevented=!0;BF.preventDefault()}};
xU.prototype={defaults:{},set:function(BF){X(this.options,BF);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(BF){if(K(BF,"recognizeWith",this))return this;var Tk=this.simultaneous;BF=rG(BF,this);Tk[BF.id]||(Tk[BF.id]=BF,BF.recognizeWith(this));return this},
dropRecognizeWith:function(BF){if(K(BF,"dropRecognizeWith",this))return this;BF=rG(BF,this);delete this.simultaneous[BF.id];return this},
requireFailure:function(BF){if(K(BF,"requireFailure",this))return this;var Tk=this.requireFail;BF=rG(BF,this);p(Tk,BF)===-1&&(Tk.push(BF),BF.requireFailure(this));return this},
dropRequireFailure:function(BF){if(K(BF,"dropRequireFailure",this))return this;BF=rG(BF,this);BF=p(this.requireFail,BF);BF>-1&&this.requireFail.splice(BF,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(BF){return!!this.simultaneous[BF.id]},
emit:function(BF){function Tk(rA){qy.manager.emit(qy.options.event+(rA?za&16?"cancel":za&8?"end":za&4?"move":za&2?"start":"":""),BF)}
var qy=this,za=this.state;za<8&&Tk(!0);Tk();za>=8&&Tk(!0)},
tryEmit:function(BF){if(this.canEmit())return this.emit(BF);this.state=32},
canEmit:function(){for(var BF=0;BF<this.requireFail.length;BF++)if(!(this.requireFail[BF].state&33))return!1;return!0},
recognize:function(BF){BF=X({},BF);t(this.options.enable,[this,BF])?(this.state&56&&(this.state=1),this.state=this.process(BF),this.state&30&&this.tryEmit(BF)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
O(Wb,xU,{defaults:{pointers:1},attrTest:function(BF){var Tk=this.options.pointers;return Tk===0||BF.pointers.length===Tk},
process:function(BF){var Tk=this.state,qy=BF.eventType,za=Tk&6;BF=this.attrTest(BF);return za&&(qy&8||!BF)?Tk|16:za||BF?qy&4?Tk|8:Tk&2?Tk|4:2:32}});
O(Xx,Wb,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var BF=this.options.direction;if(BF===30)return["none"];var Tk=[];BF&6&&Tk.push("pan-y");BF&24&&Tk.push("pan-x");return Tk},
directionTest:function(BF){var Tk=this.options,qy=!0,za=BF.distance,rA=BF.direction,zp=BF.deltaX,BN=BF.deltaY;rA&Tk.direction||(Tk.direction&6?(rA=zp===0?1:zp<0?2:4,qy=zp!=this.pX,za=Math.abs(BF.deltaX)):(rA=BN===0?1:BN<0?8:16,qy=BN!=this.pY,za=Math.abs(BF.deltaY)));BF.direction=rA;return qy&&za>Tk.threshold&&rA&Tk.direction},
attrTest:function(BF){return Wb.prototype.attrTest.call(this,BF)&&(this.state&2||!(this.state&2)&&this.directionTest(BF))},
emit:function(BF){this.pX=BF.deltaX;this.pY=BF.deltaY;var Tk=Xa(BF.direction);Tk&&this.manager.emit(this.options.event+Tk,BF);this._super.emit.call(this,BF)}});
O(Bb,Wb,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(BF){return this._super.attrTest.call(this,BF)&&(Math.abs(BF.scale-1)>this.options.threshold||this.state&2)},
emit:function(BF){this._super.emit.call(this,BF);BF.scale!==1&&this.manager.emit(this.options.event+(BF.scale<1?"in":"out"),BF)}});
O(oq,xU,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(BF){var Tk=this.options,qy=BF.pointers.length===Tk.pointers,za=BF.distance<Tk.threshold,rA=BF.deltaTime>Tk.time;this._input=BF;if(!za||!qy||BF.eventType&12&&!rA)this.reset();else if(BF.eventType&1)this.reset(),this._timer=P(function(){this.state=8;this.tryEmit()},Tk.time,this);
else if(BF.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(BF){this.state===8&&(BF&&BF.eventType&4?this.manager.emit(this.options.event+"up",BF):(this._input.timeStamp=vb(),this.manager.emit(this.options.event,this._input)))}});
O(kU,Wb,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(BF){return this._super.attrTest.call(this,BF)&&(Math.abs(BF.rotation)>this.options.threshold||this.state&2)}});
O(O7,Wb,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return Xx.prototype.getTouchAction.call(this)},
attrTest:function(BF){var Tk=this.options.direction;if(Tk&30)var qy=BF.velocity;else Tk&6?qy=BF.velocityX:Tk&24&&(qy=BF.velocityY);return this._super.attrTest.call(this,BF)&&Tk&BF.direction&&QN(qy)>this.options.velocity&&BF.eventType&4},
emit:function(BF){var Tk=Xa(BF.direction);Tk&&this.manager.emit(this.options.event+Tk,BF);this.manager.emit(this.options.event,BF)}});
O(io,xU,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(BF){var Tk=this.options,qy=BF.pointers.length===Tk.pointers,za=BF.distance<Tk.threshold,rA=BF.deltaTime<Tk.time;this.reset();if(BF.eventType&1&&this.count===0)return this.failTimeout();if(za&&rA&&qy){if(BF.eventType!=4)return this.failTimeout();qy=this.pTime?BF.timeStamp-this.pTime<Tk.interval:!0;za=!this.pCenter||Rq(this.pCenter,BF.center)<Tk.posThreshold;this.pTime=BF.timeStamp;this.pCenter=BF.center;za&&qy?this.count+=1:this.count=1;this._input=BF;if(this.count%Tk.taps===0)return this.hasRequireFailures()?
(this._timer=P(function(){this.state=8;this.tryEmit()},Tk.interval,this),2):8}return 32},
failTimeout:function(){this._timer=P(function(){this.state=32},this.options.interval,this);
return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(){this.state==8&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});
cb.VERSION="2.0.2";cb.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[kU,{enable:!1}],[Bb,{enable:!1},["rotate"]],[O7,{direction:6}],[Xx,{direction:6},["swipe"]],[io],[io,{event:"doubletap",taps:2},["tap"]],[oq]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};QW.prototype={set:function(BF){X(this.options,BF);return this},
stop:function(BF){this.session.stopped=BF?2:1},
recognize:function(BF){var Tk=this.session;if(!Tk.stopped){this.touchAction.preventDefaults(BF);var qy=this.recognizers,za=Tk.curRecognizer;if(!za||za&&za.state&8)za=Tk.curRecognizer=null;for(var rA=0,zp=qy.length;rA<zp;rA++){var BN=qy[rA];Tk.stopped===2||za&&BN!=za&&!BN.canRecognizeWith(za)?BN.reset():BN.recognize(BF);!za&&BN.state&14&&(za=Tk.curRecognizer=BN)}}},
get:function(BF){if(BF instanceof xU)return BF;for(var Tk=this.recognizers,qy=0;qy<Tk.length;qy++)if(Tk[qy].options.event==BF)return Tk[qy];return null},
add:function(BF){if(K(BF,"add",this))return this;var Tk=this.get(BF.options.event);Tk&&this.remove(Tk);this.recognizers.push(BF);BF.manager=this;this.touchAction.update();return BF},
remove:function(BF){if(K(BF,"remove",this))return this;var Tk=this.recognizers;BF=this.get(BF);Tk.splice(p(Tk,BF),1);this.touchAction.update();return this},
on:function(BF,Tk){var qy=this.handlers;n(U(BF),function(za){qy[za]=qy[za]||[];qy[za].push(Tk)});
return this},
off:function(BF,Tk){var qy=this.handlers;n(U(BF),function(za){Tk?qy[za].splice(p(qy[za],Tk),1):delete qy[za]});
return this},
emit:function(BF,Tk){this.options.domEvents&&wG(BF,Tk);var qy=this.handlers[BF]&&this.handlers[BF].slice();if(qy&&qy.length){Tk.type=BF;Tk.preventDefault=function(){Tk.srcEvent.preventDefault()};
BF=0;for(var za=qy.length;BF<za;BF++)qy[BF](Tk)}},
destroy:function(){this.element&&vM(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
X(cb,{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:QW,Input:Y,TouchAction:Hb,Recognizer:xU,AttrRecognizer:Wb,Tap:io,Pan:Xx,Swipe:O7,Pinch:Bb,Rotate:kU,Press:oq,on:R,off:I,each:n,merge:u,extend:X,inherit:O,bindFn:N,prefixed:E});
y[F]=cb})(window,document,"Hammer");
return window.Hammer}.call({});
h.DOCUMENT=b;b[J_W]=h}return b[J_W]};/*

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

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

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 HJ,pqM,J27;HJ=Element.prototype;pqM=HJ.matches||HJ.matchesSelector||HJ.mozMatchesSelector||HJ.msMatchesSelector||HJ.oMatchesSelector||HJ.webkitMatchesSelector;J27=function(){};
_.C47=function(b){var h=eo8,y=[];return h._collectTabbableNodes(b,y)?h._sortByTabIndex(y):y};
_.d=J27.prototype;_.d.isFocusable=function(b){return pqM.call(b,"input, select, textarea, button, object")?pqM.call(b,":not([disabled])"):pqM.call(b,"a[href], area[href], iframe, [tabindex], [contentEditable]")};
_.d._normalizedTabIndex=function(b){return this.isFocusable(b)?(b=b.getAttribute("tabindex")||0,Number(b)):-1};
_.d._collectTabbableNodes=function(b,h){if(b.nodeType!==Node.ELEMENT_NODE||!this._isVisible(b))return!1;var y=this._normalizedTabIndex(b),S=y>0;y>=0&&h.push(b);if(b.localName==="content"||b.localName==="slot")y=_.rO(b).getDistributedNodes();else{var F;y=((F=_.rO(b).shadowRoot)!=null?F:_.rO(b.root||b)).children}for(b=0;b<y.length;b++)S=this._collectTabbableNodes(y[b],h)||S;return S};
_.d._isVisible=function(b){var h=b.style;return h.visibility!=="hidden"&&h.display!=="none"?(h=window.getComputedStyle(b),h.visibility!=="hidden"&&h.display!=="none"):!1};
_.d._sortByTabIndex=function(b){var h=b.length;if(h<2)return b;var y=Math.ceil(h/2);h=this._sortByTabIndex(b.slice(0,y));b=this._sortByTabIndex(b.slice(y));return this._mergeSortByTabIndex(h,b)};
_.d._mergeSortByTabIndex=function(b,h){for(var y=[];b.length>0&&h.length>0;)this._hasLowerTabOrder(b[0],h[0])?y.push(h.shift()):y.push(b.shift());return y.concat(b,h)};
_.d._hasLowerTabOrder=function(b,h){b=Math.max(b.tabIndex,0);h=Math.max(h.tabIndex,0);return b===0||h===0?h>b:b>h};
var eo8=new J27;var gBG;var syG;_.pZ({_template:function(){if(syG!==void 0)return syG;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;gBG===void 0&&(gBG=document.createElement("template"));var S=gBG;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return syG=b},
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&&_.rO(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.rO(this.parentNode).removeChild(this)},
_onTransitionend:function(b){b&&b.target===this&&this.complete()},
_openedChanged:function(b){b?this.prepare():(b=window.getComputedStyle(this),b.transitionDuration!=="0s"&&b.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 uV=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;bz(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)};
uV.prototype._bringOverlayAtIndexToFront=function(b){var h=this._overlays[b];if(h){var y=this._overlays.length-1,S=this._overlays[y];S&&this._shouldBeBehindOverlay(h,S)&&y--;if(!(b>=y)){S=Math.max(this._getZ(_.Ye8(this)),this._minimumZ);for(this._getZ(h)<=S&&this._applyOverlayZ(h,S);b<y;)this._overlays[b]=this._overlays[b+1],b++;this._overlays[y]=h}}};
uV.prototype.addOverlay=function(b){var h=this._overlays.indexOf(b);if(h>=0)this._bringOverlayAtIndexToFront(h);else{h=this._overlays.length;var y=this._overlays[h-1],S=Math.max(this._getZ(y),this._minimumZ),F=this._getZ(b);y&&this._shouldBeBehindOverlay(b,y)&&(this._applyOverlayZ(y,S),h--,S=Math.max(this._getZ(this._overlays[h-1]),this._minimumZ));F<=S&&this._applyOverlayZ(b,S);this._overlays.splice(h,0,b)}this.trackBackdrop()};
uV.prototype.removeOverlay=function(b){b=this._overlays.indexOf(b);b!==-1&&(this._overlays.splice(b,1),this.trackBackdrop())};
_.Ye8=function(b){return b._overlays[b._overlays.length-1]};
_.d=uV.prototype;_.d.trackBackdrop=function(){var b=this._overlayWithBackdrop();if(b||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(b)-1,this.backdropElement.opened=!!b,this.backdropElement.prepare()};
_.d._overlayWithBackdrop=function(){for(var b=this._overlays.length-1;b>=0;b--)if(this._overlays[b].withBackdrop)return this._overlays[b]};
_.d._getZ=function(b){var h=this._minimumZ;if(b){var y,S,F=Number(((y=b.hostElement)!=null?y:b).style.zIndex||window.getComputedStyle((S=b.hostElement)!=null?S:b).zIndex);F===F&&(h=F)}return h};
_.d._setZ=function(b,h){var y;((y=b.hostElement)!=null?y:b).style.zIndex=h};
_.d._applyOverlayZ=function(b,h){this._setZ(b,h+2)};
_.d._overlayInPath=function(b){b=b||[];for(var h=0;h<b.length;h++){var y=void 0;if(((y=b[h].polymerController)!=null?y:b[h])._manager===this)return b[h]}};
_.d._onCaptureClick=function(b){var h=this._overlays.length-1;if(h!==-1)for(var y=_.rO(b).path,S,F;(S=this._overlays[h])&&this._overlayInPath(y)!==((F=S.hostElement)!=null?F:S);)if(S._onCaptureClick(b),S.allowClickThrough)h--;else break};
_.d._onCaptureFocus=function(b){var h=_.Ye8(this);h&&h._onCaptureFocus(b)};
_.d._onCaptureKeyDown=function(b){var h=_.Ye8(this);h&&(_.xq.keyboardEventMatchesKeys(b,"esc")?h._onCaptureEsc(b):_.xq.keyboardEventMatchesKeys(b,"tab")&&h._onCaptureTab(b))};
_.d._shouldBeBehindOverlay=function(b,h){return!b.alwaysOnTop&&h.alwaysOnTop&&!h.contains(b)};
_.tm.Object.defineProperties(uV.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 b=document.activeElement;b&&b instanceof Element!==!1||(b=document.body);for(;b.root&&_.rO(b.root).activeElement;)b=_.rO(b.root).activeElement;return b}}});
_.Op=new uV;var B$f=0,Wb8=0,ADq=null,UEj=[],c5=["wheel","mousewheel","DOMMouseScroll"],pHI;_.r("web_no_lock_on_touchstart_killswitch")&&(c5.push("touchstart"),c5.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;_.Ne={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:_.Op},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var b;return this._focusedChild||_.rO((b=this.hostElement)!=null?b:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var b;return _.C47((b=this.hostElement)!=null?b: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 b;this._observer=_.rO((b=this.hostElement)!=null?b:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var b;_.rO((b=this.hostElement)!=null?b:this).unobserveNodes(this._observer)}this._observer=null;for(var h in this.__rafs)this.__rafs[h]!==null&&cancelAnimationFrame(this.__rafs[h]);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(b){this.fire("iron-overlay-canceled",b,{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 b;((b=this.hostElement)!=null?b:this).style.outline="none";var h;((h=this.hostElement)!=null?h:this).style.display="none"}},
_openedChanged:function(b){if(b){var h;((h=this.hostElement)!=null?h:this).removeAttribute("aria-hidden")}else{var y;((y=this.hostElement)!=null?y: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 b;if(this.withBackdrop&&!((b=this.hostElement)!=null?b:this).hasAttribute("tabindex")){var h;((h=this.hostElement)!=null?h:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var y;((y=this.hostElement)!=null?y: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 b;((b=this.hostElement)!=null?b:this).style.display="none";var h;((h=this.hostElement)!=null?h:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var b,h;((b=this.hostElement)!=null?b:this).style.transition=((h=this.hostElement)!=null?h:this).style.webkitTransition="none";var y,S;((y=this.hostElement)!=null?y:this).style.transform=((S=this.hostElement)!=null?S:this).style.webkitTransform="none";var F;((F=this.hostElement)!=null?F:this).style.display=""},
_finishPositioning:function(){var b;((b=this.hostElement)!=null?b:this).style.display="none";this.scrollTop=this.scrollTop;var h,y;((h=this.hostElement)!=null?h:this).style.transition=((y=this.hostElement)!=null?y:this).style.webkitTransition="";var S,F;((S=this.hostElement)!=null?S:this).style.transform=((F=this.hostElement)!=null?F:this).style.webkitTransform="";var a;((a=this.hostElement)!=null?a:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var b=this._manager.deepActiveElement,h;if(!(h=b===document.body))a:{for(;b;b=b.assignedSlot||b.parentNode||b.host)if(b===this){h=!0;break a}h=!1}h&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(b){this.noCancelOnOutsideClick||this.cancel(b)},
_onCaptureFocus:function(b){if(this.withBackdrop){var h=_.rO(b).path;h.indexOf(this)===-1?(b.stopPropagation(),this._applyFocus()):this._focusedChild=h[0]}},
_onCaptureEsc:function(b){this.noCancelOnEscKey||this.cancel(b)},
_onCaptureTab:function(b){if(this.withBackdrop){this.__ensureFirstLastFocusables();var h=b.shiftKey,y=h?this.__firstFocusableNode:this.__lastFocusableNode;h=h?this.__lastFocusableNode:this.__firstFocusableNode;if(y===h)y=!0;else{var S=this._manager.deepActiveElement;y=S===y||S===this}y&&(b.preventDefault(),this._focusedChild=h,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 b=this._focusableNodes;this.__firstFocusableNode=b[0];this.__lastFocusableNode=b[b.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(b,h){var y=this.__rafs;y[b]!==null&&cancelAnimationFrame(y[b]);y[b]=requestAnimationFrame(function(){y[b]=null;h.call(this)}.bind(this))},
__updateScrollObservers:function(b,h,y){b&&h&&this.__isValidScrollAction(y)?(y==="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),pHI=_._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()):(b=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),b!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(b,1),pHI=_._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(dk)for(var b=this;b;)b.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&b.host&&this.__rootNodes.push(b),b=b.host||b.assignedSlot||b.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(h){h.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(b){b.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(b){return b==="lock"||b==="refit"||b==="cancel"},
__onCaptureScroll:function(b){if(!(this.__isAnimating||_.rO(b).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(b)}},
__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)}};
_.tQ=[UM7,_.ab,_.Ne];_.pZ({_template:function(){if(WLG!==void 0)return WLG;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;BXM===void 0&&(BXM=document.createElement("template"));var S=BXM;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return WLG=b},
is:"tp-yt-iron-dropdown",behaviors:[_.Q0,_.xq,_.tQ,v7e],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 b=_.rO(this.$.content).getDistributedNodes(),h=0,y=b.length;h<y;h++)if(b[h].nodeType===Node.ELEMENT_NODE)return b[h]},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(),_.Ne._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.Ne._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.Ne._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var b=this.containedElement,h=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),y=0;y<h.length;y++)h[y].node=b;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(b){this._readied&&(b?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var b=this.focusTarget||this.containedElement;b&&this.opened&&!this.noAutoFocus?b.focus():_.Ne._applyFocus.apply(this,arguments)}});var TXw;var GGo;/*

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 kGa=new _.hQ({type:"iconset"});
_.pZ({_template:function(){if(GGo!==void 0)return GGo;var b=document.createElement("template");_.D(b,"\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");b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;TXw===void 0&&(TXw=document.createElement("template"));
var S=TXw;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return GGo=b},
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(b){b=(b||"").split(":");this._iconName=b.pop();this._iconsetName=b.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&&_.rO(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=kGa.byKey(this._iconsetName)){var b=this._iconset.applyIcon(this,this._iconName,this.theme);b&&b.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,_.rO(this.root).appendChild(this._img)}});var VVa;var EBN;_.pZ({_template:function(){if(EBN!==void 0)return EBN;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);
var h=b.content,y=h.insertBefore;VVa===void 0&&(VVa=document.createElement("template"));var S=VVa;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return EBN=b},
is:"tp-yt-iron-input",behaviors:[_.Sp],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(){_.XV.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.rO(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.rO(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 b=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":b=/[0-9.,e-]/}return b},_bindValueChanged:function(b,h){h&&(b===void 0?h.value=null:b!==h.value&&(this.inputElement.value=b),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:b}))},
_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(b){var h=b.keyCode==19||b.keyCode==20||b.keyCode==45||b.keyCode==46||b.keyCode==144||b.keyCode==145||b.keyCode>32&&b.keyCode<41||b.keyCode>111&&b.keyCode<124;return!(b.keyCode==8||b.keyCode==9||b.keyCode==13||b.keyCode==27)&&!(b.charCode==0&&h)},
_onKeypress:function(b){if(this.allowedPattern||this.inputElement.type==="number"){var h=this._patternRegExp;if(h&&!(b.metaKey||b.ctrlKey||b.altKey)){this._patternAlreadyChecked=!0;var y=String.fromCharCode(b.charCode);this._isPrintable(b)&&!h.test(y)&&(b.preventDefault(),this._announceInvalidCharacter("Invalid character "+y+" not entered."))}}},
_checkPatternValidity:function(){var b=this._patternRegExp;if(!b)return!0;for(var h=0;h<this.inputElement.value.length;h++)if(!b.test(this.inputElement.value[h]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var b=this.inputElement.checkValidity();b&&(this.required&&this.bindValue===""?b=!1:this.hasValidator()&&(b=_.Sp.validate.call(this,this.bindValue)));this.invalid=!b;this.fire("iron-input-validate");return b},
_announceInvalidCharacter:function(b){this.fire("iron-announce",{text:b})},
_computeValue:function(b){return b}});var i8e;var fS8;var wqo=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),lS8=wqo&&wqo[1]>=8;
_.pZ({_template:function(){if(fS8!==void 0)return fS8;var b=document.createElement("template");_.D(b,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-list--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_list.tp.yt.iron.list.css.js--\x3e<array-selector id="selector" items="{{items}}" selected="{{selectedItems}}" selected-item="{{selectedItem}}" class="style-scope tp-yt-iron-list"></array-selector>\n\n<div aria-label="[[listAriaLabel]]" id="items" role="list" class="style-scope tp-yt-iron-list">\n  <slot class="style-scope tp-yt-iron-list"></slot>\n</div>\n');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;i8e===void 0&&(i8e=document.createElement("template"));var S=i8e;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return fS8=b},
is:"tp-yt-iron-list",properties:{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},selectedAs:{type:String,value:"selected"},grid:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_gridChanged"},selectionEnabled:{type:Boolean,value:!1},selectedItem:{type:Object,notify:!0},selectedItems:{type:Object,notify:!0},multiSelection:{type:Boolean,value:!1},scrollOffset:{type:Number,value:0},listAriaLabel:{type:String}},observers:["_itemsChanged(items.*)","_selectionEnabledChanged(selectionEnabled)",
"_multiSelectionChanged(multiSelection)","_setOverflow(scrollTarget, scrollOffset)"],behaviors:[yf4,_.ab,_.m$5,J6G],_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 _.rO(_.rO(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var b=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,b-this._physicalCount)},set _virtualStart(b){b=this._clamp(b,0,this._maxVirtualStart);this.grid&&(b-=b%this._itemsPerRow);this._virtualStartVal=b},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(b){b%=this._physicalCount;b<0&&(b=this._physicalCount+b);this.grid&&(b-=b%this._itemsPerRow);this._physicalStartVal=b},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(b){this._physicalCountVal=b},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 b=this._firstVisibleIndexVal;if(b==null){var h=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
b=this._iterateItems(function(y,S){h+=this._getPhysicalSizeIncrement(y);if(h>this._scrollPosition)return this.grid?S-S%this._itemsPerRow:S;if(this.grid&&this._virtualCount-1===S)return S-S%this._itemsPerRow})||0}return b},
get lastVisibleIndex(){var b=this._lastVisibleIndexVal;if(b==null){if(this.grid)b=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var h=this._physicalTop+this._scrollOffset;this._iterateItems(function(y,S){h<this._scrollBottom&&(b=S);h+=this._getPhysicalSizeIncrement(y)})}this._lastVisibleIndexVal=b}return b},
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,_.A6);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(b){this.style.webkitOverflowScrolling=b===this?"touch":"";this.style.overflowY=b===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.A6)},
updateViewportBoundaries:function(){var b=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(b["padding-top"],10);this._isRTL=b.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var b=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),h=b-this._scrollPosition,y=h>=0;this._scrollPosition=b;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(h)>this._physicalSize&&this._physicalSize>0?(h-=this._scrollOffset,y=Math.round(h/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=y,this._physicalStart+=y,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(b=this._getReusables(y),y?(this._physicalTop=b.physicalTop,this._virtualStart+=b.indexes.length,this._physicalStart+=b.indexes.length):(this._virtualStart=this._virtualStart-b.indexes.length,this._physicalStart=this._physicalStart-b.indexes.length),this._update(b.indexes,y?null:b.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),SM))},
_getReusables:function(b){var h=[],y=this._hiddenContentSize*this._ratio,S=this._virtualStart,F=this._virtualEnd,a=this._physicalCount,P=this._physicalTop+this._scrollOffset;var K=this._physicalBottom+this._scrollOffset;var n=this._scrollPosition,X=this._scrollBottom;if(b){var u=this._physicalStart;K=n-P}else u=this._physicalEnd,K-=X;for(;;){var O=this._getPhysicalSizeIncrement(u);K-=O;if(h.length>=a||K<=y)break;if(b){if(F+h.length+1>=this._virtualCount)break;if(P+O>=n-this._scrollOffset)break;h.push(u);
P+=O;u=(u+1)%a}else{if(S-h.length<=0)break;if(P+this._physicalSize-O<=X)break;h.push(u);P-=O;u=u===0?a-1:u-1}}return{indexes:h,physicalTop:P-this._scrollOffset}},
_update:function(b,h){if(!(b&&b.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(b);this._updateMetrics(b);if(h)for(;h.length;)b=h.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(b);this._positionItems();this._updateScrollerSize()}},
_createPool:function(b){this._ensureTemplatized();var h,y=Array(b);for(h=0;h<b;h++){var S=this.stamp(null);y[h]=S.root.querySelector("*");this._itemsParent.appendChild(S.root)}return y},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(b){b=this._clamp(this._physicalCount+b,3,this._virtualCount-this._virtualStart);b=this._convertIndexToCompleteRow(b);if(this.grid){var h=b%this._itemsPerRow;h&&b-h<=this._physicalCount&&(b+=this._itemsPerRow);b-=h}b-=this._physicalCount;h=Math.round(this._physicalCount*.5);if(!(b<0)){if(b>0){h=window.performance.now();[].push.apply(this._physicalItems,this._createPool(b));for(var y=0;y<b;y++)this._physicalSizes.push(0);this._physicalCount+=b;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=b);this._update();this._templateCost=(window.performance.now()-h)/b;h=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||h===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,h)),nxP):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,h),SM))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var b=this._getReusables(!0);this._physicalTop=b.physicalTop;this._virtualStart+=b.indexes.length;this._physicalStart+=b.indexes.length;this._update(b.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 b={__key__:!0};b[this.as]=!0;b[this.indexAs]=!0;b[this.selectedAs]=!0;b.tabIndex=!0;this._instanceProps=b;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(b,h){typeof h!=="undefined"&&(this.notifyResize(),_.Ye(),b&&this._updateGridMetrics())},
_itemsChanged:function(b){if(b.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,
_.A6);else if(b.path==="items.splices"){this._adjustVirtualIndex(b.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(b.value.indexSplices.some(function(y){return y.addedCount>0||y.removed.length>0})){var h=this._getActiveElement();
this.contains(h)&&h.blur()}b=b.value.indexSplices.some(function(y){return y.index+y.addedCount>=this._virtualStart&&y.index<=this._virtualEnd},this);
this._isClientFull()&&!b||this._debounce("_render",this._render,_.A6)}else b.path!=="items.length"&&this._forwardItemPath(b.path,b.value)},
_forwardItemPath:function(b,h){b=b.slice(6);var y=b.indexOf(".");y===-1&&(y=b.length);var S,F=this.modelForElement(this._offscreenFocusedItem),a=parseInt(b.substring(0,y),10);if(S=this._isIndexRendered(a)){var P=this._getPhysicalIndex(a);var K=this.modelForElement(this._physicalItems[P])}else F&&(K=F);K&&K[this.indexAs]===a&&(b=b.substring(y+1),b=this.as+(b?"."+b:""),K._setPendingPropertyOrPath(b,h,!1,!0),K._flushProperties&&K._flushProperties(),S&&(this._updateMetrics([P]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(b){b.forEach(function(h){h.removed.forEach(this._removeItem,this);h.index<this._virtualStart&&(h=Math.max(h.addedCount-h.removed.length,h.index-this._virtualStart),this._virtualStart+=h,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=h))},this)},
_removeItem:function(b){this.$.selector.deselect(b);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===b&&this._removeFocusedItem()},
_iterateItems:function(b,h){var y,S;if(arguments.length===2&&h)for(S=0;S<h.length;S++){var F=h[S];var a=this._computeVidx(F);if((y=b.call(this,F,a))!=null)return y}else{F=this._physicalStart;for(a=this._virtualStart;F<this._physicalCount;F++,a++)if((y=b.call(this,F,a))!=null)return y;for(F=0;F<this._physicalStart;F++,a++)if((y=b.call(this,F,a))!=null)return y}},
_computeVidx:function(b){return b>=this._physicalStart?this._virtualStart+(b-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+b},
_assignModels:function(b){this._iterateItems(function(h,y){var S=this._physicalItems[h],F=this.items&&this.items[y];if(F!=null){var a=this.modelForElement(S);a.__key__=null;this._forwardProperty(a,this.as,F);this._forwardProperty(a,this.selectedAs,this.$.selector.isSelected(F));this._forwardProperty(a,this.indexAs,y);this._forwardProperty(a,"tabIndex",this._focusedVirtualIndex===y?0:-1);this._physicalIndexForKey[a.__key__]=h;a._flushProperties&&a._flushProperties(!0);S.removeAttribute("hidden")}else S.setAttribute("hidden",
"")},b)},
_updateMetrics:function(b){_.Ye();var h=0,y=0,S=this._physicalAverageCount,F=this._physicalAverage;this._iterateItems(function(a){y+=this._physicalSizes[a];this._physicalSizes[a]=this._physicalItems[a].offsetHeight;h+=this._physicalSizes[a];this._physicalAverageCount+=this._physicalSizes[a]?1:0},b);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(y=this._itemsPerRow===1?y:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+h-y,this._itemsPerRow=1);this._physicalAverageCount!==S&&(this._physicalAverage=Math.round((F*S+h)/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 b=this._physicalTop;if(this.grid){var h=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(y,S){var F=Math.floor(S%this._itemsPerRow*this._itemWidth+h);this._isRTL&&(F*=-1);this.translate3d(F+"px",b+"px",0,this._physicalItems[y]);this._shouldRenderNextRow(S)&&(b+=this._rowHeight)})}else this._iterateItems(function(y){this.translate3d(0,b+"px",0,this._physicalItems[y]);
b+=this._physicalSizes[y]})},
_getPhysicalSizeIncrement:function(b){return this.grid?this._computeVidx(b)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[b]},
_shouldRenderNextRow:function(b){return b%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var b=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(b!==0){this._physicalTop=this._physicalTop-b;var h=this._scrollPosition;!lS8&&h>0&&this._resetScrollPosition(h-b)}},
_resetScrollPosition:function(b){this.scrollTarget&&b>=0&&(this._scrollPosition=this._scrollTop=b)},
_updateScrollerSize:function(b){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((b=(b=(b=b||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(b){return this.scrollToIndex(this.items.indexOf(b))},
scrollToIndex:function(b){if(!(typeof b!=="number"||b<0||b>this.items.length-1)&&(_.Ye(),this._physicalCount!==0)){b=this._clamp(b,0,this._virtualCount-1);if(!this._isIndexRendered(b)||b>=this._maxVirtualStart)this._virtualStart=this.grid?b-this._itemsPerRow*2:b-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var h=this._physicalStart,y=this._virtualStart,S=0,F=this._hiddenContentSize;y<b&&
S<=F;)S+=this._getPhysicalSizeIncrement(h),h=(h+1)%this._physicalCount,y++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+S);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)},_.A6)},
selectItem:function(b){return this.selectIndex(this.items.indexOf(b))},
selectIndex:function(b){if(!(b<0||b>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(b)){var h=this.modelForElement(this._physicalItems[this._getPhysicalIndex(b)]);h&&(h[this.selectedAs]=!0);this.updateSizeForIndex(b)}this.$.selector.selectIndex(b)}},
deselectItem:function(b){return this.deselectIndex(this.items.indexOf(b))},
deselectIndex:function(b){b<0||b>=this._virtualCount||(this._isIndexRendered(b)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(b)])[this.selectedAs]=!1,this.updateSizeForIndex(b)),this.$.selector.deselectIndex(b))},
toggleSelectionForItem:function(b){return this.toggleSelectionForIndex(this.items.indexOf(b))},
toggleSelectionForIndex:function(b){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(b):this.$.selector.isSelected(this.items[b]))?this.deselectIndex(b):this.selectIndex(b)},
clearSelection:function(){this._iterateItems(function(b){this.modelForElement(this._physicalItems[b])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(b){(b?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(b){var h=this.modelForElement(b.target);if(h){var y=_.rO(b).path[0];b=this._getActiveElement();var S=this._physicalItems[this._getPhysicalIndex(h[this.indexAs])];if(y.localName!=="input"&&y.localName!=="button"&&y.localName!=="select"){y=h.tabIndex;h.tabIndex=-100;var F=b?b.tabIndex:-1;h.tabIndex=y;b&&S!==b&&S.contains(b)&&F!==-100||this.toggleSelectionForItem(h[this.as])}}},
_multiSelectionChanged:function(b){this.clearSelection();this.$.selector.multi=b},
updateSizeForItem:function(b){return this.updateSizeForIndex(this.items.indexOf(b))},
updateSizeForIndex:function(b){if(!this._isIndexRendered(b))return null;this._updateMetrics([this._getPhysicalIndex(b)]);this._positionItems();return null},
_manageFocus:function(){var b=this._focusedVirtualIndex;b>=0&&b<this._virtualCount?this._isIndexRendered(b)?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(b){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(b/this._itemsPerRow)*this._itemsPerRow:b},
_isIndexRendered:function(b){return b>=this._virtualStart&&b<=this._virtualEnd},
_isIndexVisible:function(b){return b>=this.firstVisibleIndex&&b<=this.lastVisibleIndex},
_getPhysicalIndex:function(b){return(this._physicalStart+(b-this._virtualStart))%this._physicalCount},
focusItem:function(b){this._focusPhysicalItem(b)},
_focusPhysicalItem:function(b){if(!(b<0||b>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(b)||this.scrollToIndex(b);var h=this._physicalItems[this._getPhysicalIndex(b)],y=this.modelForElement(h),S;y.tabIndex=-100;h.tabIndex===-100&&(S=h);S||(S=_.rO(h).querySelector('[tabindex="-100"]'));y.tabIndex=0;this._focusedVirtualIndex=b;S&&S.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 b=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var h=this.stamp(null);this._focusBackfillItem=h.root.querySelector("*");this._itemsParent.appendChild(h.root)}this._offscreenFocusedItem=this._physicalItems[b];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[b]=this._focusBackfillItem;this._focusedPhysicalIndex=b;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var b=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),h=this._physicalItems[b];if(h){var y=this.modelForElement(h),S=this.modelForElement(this._offscreenFocusedItem);y[this.as]===S[this.as]?(this._focusBackfillItem=h,y.tabIndex=-1,this._physicalItems[b]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(b){b=this.modelForElement(b.target);var h=this.modelForElement(this._focusedItem),y=this._offscreenFocusedItem!==null,S=this._focusedVirtualIndex;b&&(h===b?this._isIndexVisible(S)||this.scrollToIndex(S):(this._restoreFocusedItem(),h&&(h.tabIndex=-1),b.tabIndex=0,this._focusedVirtualIndex=S=b[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(S),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],y&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(b){switch(b.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&b.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&&b.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(b)}},
_clamp:function(b,h,y){return Math.min(y,Math.max(h,b))},
_debounce:function(b,h,y){this._debouncers=this._debouncers||{};this._debouncers[b]=_.JD(this._debouncers[b],y,h.bind(this));_.ey(this._debouncers[b])},
_forwardProperty:function(b,h,y){b._setPendingProperty(h,y)},
_forwardHostPropV2:function(b,h){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(y){y&&this.modelForElement(y).forwardHostProp(b,h)},this)},
_notifyInstancePropV2:function(b,h,y){gGI(this.as,h)&&(b=b[this.indexAs],h==this.as&&(this.items[b]=y),this.notifyPath(CP(this.as,"items."+b,h),y))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(b,h,y){h.indexOf(this.as+".")===0&&this.notifyPath("items."+b.__key__+"."+h.slice(this.as.length+1),y)},
_forwardParentPath:function(b,h){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(y){y&&this.modelForElement(y).notifyPath(b,h)},this)},
_forwardParentProp:function(b,h){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(y){y&&(this.modelForElement(y)[b]=h)},this)},
_getActiveElement:function(){var b=this._itemsParent.node.domHost;return _.rO(b?b.root:document).activeElement},
_scrollTargetChanged:function(b,h){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(h)if(b==="document")this.scrollTarget=this._doc;else if(typeof b==="string"){var y,S;this.scrollTarget=(h=(S=(y=this.domHost)==null?void 0:y.polymerController)!=null?S:this.domHost)&&h.$?h.$[b]:_.rO(this.ownerDocument).querySelector("#"+b)}else this._isValidScrollTarget()&&(this._oldScrollTarget=b,this._toggleScrollListener(this._shouldHaveListener,b))}});var qeP;var xMe;var Qye=function(b,h,y,S){b-=y;h-=S;return Math.sqrt(b*b+h*h)},mM8=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
JD5.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var eZ4=function(b){b.maxRadius=0;b.mouseDownStart=0;b.mouseUpStart=0;b.xStart=0;b.yStart=0;b.xEnd=0;b.yEnd=0;b.containerMetrics=new JD5(b.element)};
CYY.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var b=mM8()-this.mouseDownStart;this.mouseUpStart&&(b-=this.mouseUpElapsed);return b},get mouseUpElapsed(){return this.mouseUpStart?mM8()-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 b=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(b*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-b/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 b=this.radius/(this.containerMetrics.size/2);var h=this.xNow-this.containerMetrics.width/2;var y=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+h+"px, "+y+"px)";this.waveContainer.style.transform="translate3d("+h+"px, "+y+"px, 0)";this.wave.style.webkitTransform="scale("+b+","+b+")";this.wave.style.transform="scale3d("+b+","+b+",1)"},
downAction:function(b){var h=this.containerMetrics.width/2,y=this.containerMetrics.height/2;eZ4(this);this.mouseDownStart=mM8();this.center?(this.xStart=h,this.yStart=y):(this.xStart=b?b.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=b?b.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=h,this.yEnd=y);b=this.containerMetrics;h=this.xStart;y=this.yStart;this.maxRadius=Math.max(Qye(h,y,0,0),Qye(h,y,
b.width,0),Qye(h,y,0,b.height),Qye(h,y,b.width,b.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=mM8())},
remove:function(){_.rO(_.rO(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.pZ({_template:function(){if(xMe!==void 0)return xMe;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;qeP===void 0&&(qeP=document.createElement("template"));var S=qeP;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return xMe=b},
is:"tp-yt-paper-ripple",behaviors:[_.xq],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(){_.rO(this).parentNode.nodeType==11?this.keyEventTarget=_.rO(this).getOwnerRoot().host:this.keyEventTarget=_.rO(this).parentNode;var b=this.keyEventTarget;this.listen(b,"up","uiUpAction");this.listen(b,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(b){b.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var b=0;b<this.ripples.length;++b)if(!this.ripples[b].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(b){this.noink||this.downAction(b)},
downAction:function(b){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(b),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(b){this.noink||this.upAction(b)},
upAction:function(b){this.holdDown||(this.ripples.forEach(function(h){h.upAction(b)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var b=0;b<this.ripples.length;++b){var h=this.ripples[b];h.isOpacityFullyDecayed&&!h.isRestingAtMaxRadius&&this.removeRipple(h)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var b=new CYY(this);_.rO(this.$.waves).appendChild(b.waveContainer);this.$.background.style.backgroundColor=b.color;this.ripples.push(b);this._setAnimating(!0);return b},
removeRipple:function(b){var h=this.ripples.indexOf(b);h<0||(this.ripples.splice(h,1),b.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var b;for(b=0;b<this.ripples.length;++b){var h=this.ripples[b];h.draw();this.$.background.style.opacity=h.outerOpacity;h.isOpacityFullyDecayed&&!h.isRestingAtMaxRadius&&this.removeRipple(h)}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(b,h){h!==void 0&&(b?this.downAction():this.upAction())}});var rJ={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(b){ms._downHandler.call(this,b);this.pressed&&this.ensureRipple(b)},
ensureRipple:function(b){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var h=this._rippleContainer||this.root;h&&_.rO(h).appendChild(this._ripple);if(b){h=_.rO(this._rippleContainer||this);var y=_.rO(b).rootTarget;h.deepContains(y)&&this._ripple.uiDownAction(b)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(b){this.hasRipple()&&(this._ripple.noink=b)}};var vBW={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 b=1;this.disabled?b=0:this.active||this.pressed?b=4:this.receivedFocusFromKeyboard&&(b=3);this._setElevation(b)},
_computeKeyboardClass:function(b){this.toggleClass("keyboard-focus",b)},
_spaceKeyDownHandler:function(b){ms._spaceKeyDownHandler.call(this,b);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(b){ms._spaceKeyUpHandler.call(this,b);this.hasRipple()&&this._ripple.uiUpAction()}},bvW=[Gfe,
_.Q0,rJ,vBW];_.hWa={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(b){b&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=b)},
_createRipple:function(){var b=rJ._createRipple();b.id="ink";b.setAttribute("center","");b.classList.add("circle");return b}};
_.yUa=[Gfe,_.Q0,rJ,_.hWa];_.S6e=[_.yUa,E7N,{_checkedChanged:function(){V4P._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){rJ._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var FXW;var ayb;var dkM=function(){};
_.d=dkM.prototype;_.d.registered=function(){};
_.d.addOwnKeyBinding=function(){};
_.d.removeOwnKeyBindings=function(){};
_.d.keyboardEventMatchesKeys=function(){};
_.d._collectKeyBindings=function(){};
_.d._prepKeyBindings=function(){};
_.d._addKeyBinding=function(){};
_.d._resetKeyEventListeners=function(){};
_.d._listenKeyEventListeners=function(){};
_.d._unlistenKeyEventListeners=function(){};
_.d._onKeyBindingEvent=function(){};
_.d._triggerKeyHandler=function(){};
_.d._tapHandler=function(){};
_.d._focusChanged=function(){};
_.d._detectKeyboardFocus=function(){};
_.d._userActivate=function(){};
_.d._upHandler=function(){};
_.d._asyncClick=function(){};
_.d._pressedChanged=function(){};
_.d._ariaActiveAttributeChanged=function(){};
_.d._activeChanged=function(){};
_.d._controlStateChanged=function(){};
_.d._changedButtonState=function(){};
_.d._focusBlurHandler=function(){};
_.d._disabledChanged=function(){};
_.d._changedControlState=function(){};
_.d._buttonStateChanged=function(){};
_.d._downHandler=function(){};
_.d.ensureRipple=function(){};
_.d.getRipple=function(){};
_.d.hasRipple=function(){};
_.d._createRipple=function(){};
_.d._noinkChanged=function(){};
_.d._computeKeyboardClass=function(){};
_.d._spaceKeyDownHandler=function(){};
_.d._spaceKeyUpHandler=function(){};
_.d._setPressed=function(){};
_.d._setPointerDown=function(){};
_.d._setReceivedFocusFromKeyboard=function(){};
_.d._setFocused=function(){};
_.d._setElevation=function(){};
dkM=_.pZ({_template:function(){if(ayb!==void 0)return ayb;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);
var h=b.content,y=h.insertBefore;FXW===void 0&&(FXW=document.createElement("template"));var S=FXW;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return ayb=b},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[bvW],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?vBW._calculateElevation.apply(this):this._setElevation(0)}});var j6o;var $ka;var LXG={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(b){_.r("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(b)},
_onDialogClickWrapped:function(b){_.r("dialog_behavior_no_tap_killswitch")||this._onDialogClick(b)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(b,h){h&&(b?(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(b){if(b){var h;((h=this.hostElement)!=null?h:this).setAttribute("aria-modal","true")}else{var y;((y=this.hostElement)!=null?y:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(b){this.closingReason=this.closingReason||{};this.closingReason.confirmed=b},
_onDialogClick:function(b){for(var h=_.rO(b).path,y=0,S,F=h.indexOf((S=this.hostElement)!=null?S:this);y<F;y++)if(S=h[y],S.hasAttribute&&(S.hasAttribute("dialog-dismiss")||S.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(S.hasAttribute("dialog-confirm"));this.close();b.stopPropagation();break}}},Pew=[_.tQ,
LXG];var KXb=document.createElement("template");_.D(KXb,'<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(KXb.content);var Zva=document.createElement("template");_.D(Zva,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(Zva.content);_.pZ({_template:function(){if($ka!==void 0)return $ka;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);
var h=b.content,y=h.insertBefore;j6o===void 0&&(j6o=document.createElement("template"));var S=j6o;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return $ka=b},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[Pew,v7e],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 oya;var MW7;_.pZ({_template:function(){if(MW7!==void 0)return MW7;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;oya===void 0&&(oya=document.createElement("template"));var S=oya;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return MW7=b},
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 b,h,y;if(((b=window.ShadyDOM)==null?void 0:b.noPatch)!==!0&&((h=window.ShadyDOM)==null?void 0:h.noPatch)!=="on-demand"||((y=this.__shady_parentNode)==null?void 0:y.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(LXG)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var ny7=_.bm(['<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>']),XmM=_.YBP(ny7);XmM.setAttribute("style","display: none;");document.head.appendChild(XmM.content);var Hv8;var u0M;var OvW;var Nba;_.pZ({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[dJ],configure:function(b){var h=b.node,y=h.getBoundingClientRect().height;return this._effect=new KeyframeEffect(h,[{height:y/2+"px"},{height:y+"px"}],this.timingFromConfig(b))}});
_.pZ({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[dJ],configure:function(b){var h=b.node,y=h.getBoundingClientRect().width;return this._effect=new KeyframeEffect(h,[{width:y/2+"px"},{width:y+"px"}],this.timingFromConfig(b))}});
_.pZ({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[dJ],configure:function(b){var h=b.node,y=h.getBoundingClientRect().width;return this._effect=new KeyframeEffect(h,[{width:y+"px"},{width:y-y/20+"px"}],this.timingFromConfig(b))}});
_.pZ({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[dJ],configure:function(b){var h=b.node,y=h.getBoundingClientRect().height;this.setPrefixedProperty(h,"transformOrigin","0 0");return this._effect=new KeyframeEffect(h,[{height:y+"px",transform:"translateY(0)"},{height:y/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(b))}});var cJ={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},tW7=function(){};
_.d=tW7.prototype;_.d.registered=function(){};
_.d.addOwnKeyBinding=function(){};
_.d.removeOwnKeyBindings=function(){};
_.d.keyboardEventMatchesKeys=function(){};
_.d._collectKeyBindings=function(){};
_.d._prepKeyBindings=function(){};
_.d._addKeyBinding=function(){};
_.d._resetKeyEventListeners=function(){};
_.d._listenKeyEventListeners=function(){};
_.d._unlistenKeyEventListeners=function(){};
_.d._onKeyBindingEvent=function(){};
_.d._triggerKeyHandler=function(){};
_.d._focusBlurHandler=function(){};
_.d._changedControlState=function(){};
_.d._setFocused=function(){};
tW7=_.pZ({_template:function(){if(Nba!==void 0)return Nba;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;OvW===void 0&&(OvW=document.createElement("template"));var S=OvW;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return Nba=b},
is:"tp-yt-paper-menu-button",behaviors:[_.xq,_.Q0],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:cJ.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:cJ.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:cJ.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 b=_.rO(this.$.content).getDistributedNodes(),h=0,y=b.length;h<y;h++)if(b[h].nodeType===Node.ELEMENT_NODE)return b[h]},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(b,h){b?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):h!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(b){_.Q0._disabledChanged.apply(this,arguments);b&&this.opened&&this.close()},
__onIronOverlayCanceled:function(b){var h=this.$.trigger;_.rO(b.detail).path.indexOf(h)>-1&&b.preventDefault()}});
Object.keys(cJ).forEach(function(b){tW7[b]=cJ[b]});var rUo=_.vI.IronButtonState,cUa=(0,_.lY)(HTMLElement);
_.pZ({_template:function(){if(u0M!==void 0)return u0M;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;Hv8===void 0&&(Hv8=document.createElement("template"));var S=Hv8;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return u0M=b},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[rUo,_.Q0,rJ,_.bV,_.Sp],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(b){var h=(0,_.GU)(this);h.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:b});h.shadowRoot.appendChild(b);return cUa.prototype._attachDom.call(this,b)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var b=this.contentElement;b&&b.selectedItem&&this._setSelectedItem(b.selectedItem)},
get contentElement(){for(var b=_.rO(this.$.content).getDistributedNodes(),h=0,y=b.length;h<y;h++)if(b[h].nodeType===Node.ELEMENT_NODE)return b[h]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(b){this._setSelectedItem(b.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(b){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(b)===this&&this.open()},
_selectedItemChanged:function(b){var h="";b?h=b.label||b.getAttribute("label")||b.textContent.trim():h="";this.value=h;this._setSelectedItemLabel(h)},
_computeMenuVerticalOffset:function(b,h){return h?h:b?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var b=this.opened?"true":"false",h=this.contentElement;h&&h.setAttribute("aria-expanded",b)},
_computeLabelClass:function(b,h,y){var S="label";if(b)y&&(S+=" label-is-hidden");else if(y||h)S+=" label-is-floating";return S},
_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 RWG;var zW8;_.pZ({is:"tp-yt-paper-icon-button",_template:function(){if(zW8!==void 0)return zW8;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;RWG===void 0&&(RWG=document.createElement("template"));var S=RWG;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return zW8=b},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.yUa],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(b,h){var y=this.getAttribute("aria-label");y&&h!=y||this.setAttribute("aria-label",b)}});var Dkb;var Iy7;_.Rb=[Gfe,_.Q0,{hostAttributes:{role:"option",tabindex:"0"}}];_.pZ({_template:function(){if(Iy7!==void 0)return Iy7;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;Dkb===void 0&&(Dkb=document.createElement("template"));var S=Dkb;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return Iy7=b},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.Rb]});var Bba;var WXa;var AUW={attached:function(){this.fire("addon-attached")},
update:function(){}};var UkG=1,pma=1,JUw=1,eW7=[_.Q0,_.xq,{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();!D$&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(b,h){b?b=b+" "+h:b=h;return b},
_onAddonAttached:function(b){b=_.rO(b).rootTarget;if(b.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,b.id);else{var h="paper-input-add-on-"+pma++;b.id=h;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,h)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(b){_.Q0._focusBlurHandler.call(this,b);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var b=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",b);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(b){try{var h=this.inputElement.selectionStart;this.value=b;this.inputElement.selectionStart=h;this.inputElement.selectionEnd=h}catch(y){this.value=b}},
_computeAlwaysFloatLabel:function(b,h){return h||b},
_updateAriaLabelledBy:function(){var b=_.rO(this.root).querySelector("label");if(b){if(b.id)var h=b.id;else h="paper-input-label-"+UkG++,b.id=h;this._ariaLabelledBy=h}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+JUw++)},
_onChange:function(b){this.shadowRoot&&this.fire(b.type,{sourceEvent:b},{node:this,bubbles:b.bubbles,cancelable:b.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var b=document.activeElement;b instanceof HTMLElement&&b!==document.body&&b!==document.documentElement||this._focusableElement.focus()}}}];var Cee;var gy8;_.pZ({_template:function(){if(gy8!==void 0)return gy8;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;Cee===void 0&&(Cee=document.createElement("template"));var S=Cee;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return gy8=b},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[AUW],properties:{_charCounterStr:{type:String,value:"0"}},update:function(b){if(b.inputElement){b.value=b.value||"";var h=b.value.toString().length.toString();b.inputElement.hasAttribute("maxlength")&&(h+="/"+b.inputElement.getAttribute("maxlength"));this._charCounterStr=h}}});var s6W;var Y6W;_.pZ({_template:function(){if(Y6W!==void 0)return Y6W;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;s6W===void 0&&(s6W=document.createElement("template"));var S=s6W;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return Y6W=b},
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 AR(this.attrForValue)},get _inputElement(){return _.rO(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(b){this._addons||(this._addons=[]);b=b.target;this._addons.indexOf(b)===-1&&(this._addons.push(b),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(b){this._handleValueAndAutoValidate(b.target)},
_onValueChanged:function(b){var h=b.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,h.value===void 0||h.value===""))return;this._handleValueAndAutoValidate(b.target)},
_handleValue:function(b){var h=this._inputElementValue;h||h===0||b.type==="number"&&!b.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:b,value:h,invalid:this.invalid})},
_handleValueAndAutoValidate:function(b){this.autoValidate&&b&&(this.invalid=!(b.validate?b.validate(this._inputElementValue):b.checkValidity()));this._handleValue(b)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(b){if(this._addons)for(var h,y=0;h=this._addons[y];y++)h.update(b)},
_computeInputContentClass:function(b,h,y,S,F){var a="input-content";b?(F&&(a+=" label-is-hidden"),S&&!this.noUnfloatedLabelError&&(a+=" is-invalid")):(b=this.querySelector("label"),h||F?(a+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",S?a+=" is-invalid":y&&(a+=" label-is-highlighted")):(b&&(this.$.labelAndInputContainer.style.position="relative"),S&&!this.noUnfloatedLabelError&&(a+=" is-invalid")));y&&(a+=" focused");return a},
_computeUnderlineClass:function(b,h){var y="underline";h?y+=" is-invalid":b&&(y+=" is-highlighted");return y},
_computeAddOnContentClass:function(b,h){var y="add-on-content";h?y+=" is-invalid":b&&(y+=" is-highlighted");return y}});var TbP;var GIN;_.pZ({_template:function(){if(GIN!==void 0)return GIN;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;TbP===void 0&&(TbP=document.createElement("template"));var S=TbP;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return GIN=b},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[AUW],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(b){this._setInvalid(b.invalid)}});_.pZ({is:"tp-yt-paper-input",_template:function(){if(WXa!==void 0)return WXa;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;Bba===void 0&&(Bba=document.createElement("template"));var S=Bba;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return WXa=b},
behaviors:[eW7,_.bV],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 kIM;var VWo;_.pZ({_template:function(){if(VWo!==void 0)return VWo;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=
b.content,y=h.insertBefore;kIM===void 0&&(kIM=document.createElement("template"));var S=kIM;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return VWo=b},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.Rb]});var EyW;var iv8;_.pZ({_template:function(){if(iv8!==void 0)return iv8;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);
var h=b.content,y=h.insertBefore;EyW===void 0&&(EyW=document.createElement("template"));var S=EyW;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return iv8=b},
is:"tp-yt-paper-item-body"});var fye;var wmG;var lyW=function(){};
_.d=lyW.prototype;_.d.indexOf=function(){};
_.d.selectPrevious=function(){};
_.d.selectNext=function(){};
_.d.selectIndex=function(){};
_.d.forceSynchronousItemUpdate=function(){};
_.d._checkFallback=function(){};
_.d._addListener=function(){};
_.d._removeListener=function(){};
_.d._activateEventChanged=function(){};
_.d._updateItems=function(){};
_.d._selectSelected=function(){};
_.d._filterItem=function(){};
_.d._valueToItem=function(){};
_.d._valueToIndex=function(){};
_.d._indexToValue=function(){};
_.d._valueForItem=function(){};
_.d._observeItems=function(){};
_.d._itemActivate=function(){};
_.d.multiChanged=function(){};
_.d._updateAttrForSelected=function(){};
_.d._updateSelected=function(){};
_.d._selectMulti=function(){};
_.d._selectionChange=function(){};
_.d._toggleSelected=function(){};
_.d._valuesToItems=function(){};
_.d.registered=function(){};
_.d.addOwnKeyBinding=function(){};
_.d.removeOwnKeyBindings=function(){};
_.d.keyboardEventMatchesKeys=function(){};
_.d._collectKeyBindings=function(){};
_.d._prepKeyBindings=function(){};
_.d._addKeyBinding=function(){};
_.d._resetKeyEventListeners=function(){};
_.d._listenKeyEventListeners=function(){};
_.d._unlistenKeyEventListeners=function(){};
_.d._onKeyBindingEvent=function(){};
_.d._triggerKeyHandler=function(){};
_.d.select=function(){};
_.d._resetTabindices=function(){};
_.d._updateMultiselectable=function(){};
_.d._focusWithKeyboardEvent=function(){};
_.d._clearSearchText=function(){};
_.d._focusPrevious=function(){};
_.d._focusNext=function(){};
_.d._applySelection=function(){};
_.d._focusedItemChanged=function(){};
_.d._onIronItemsChanged=function(){};
_.d._onShiftTabDown=function(){};
_.d._onFocus=function(){};
_.d._onUpKey=function(){};
_.d._onDownKey=function(){};
_.d._onEscKey=function(){};
_.d._onKeydown=function(){};
_.d._activateHandler=function(){};
_.d._disabledChanged=function(){};
_.d._setSelectedItem=function(){};
_.d._setItems=function(){};
_.d._setSelectedItems=function(){};
_.d._setFocusedItem=function(){};
lyW=_.pZ({_template:function(){if(wmG!==void 0)return wmG;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);
var h=b.content,y=h.insertBefore;fye===void 0&&(fye=document.createElement("template"));var S=fye;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return wmG=b},
is:"tp-yt-paper-listbox",behaviors:[la5],hostAttributes:{role:"listbox"}});var q6o;var xkM;var Q65={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(b,h){return[b||h?"active":"",h?"cooldown":""].join(" ")},
__activeChanged:function(b,h){this.__setAriaHidden(!b);this.__coolingDown=!b&&h},
__altChanged:function(b){this.setAttribute("aria-label",b||"loading")},
__setAriaHidden:function(b){b?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.pZ({_template:function(){if(xkM!==void 0)return xkM;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;q6o===void 0&&(q6o=document.createElement("template"));var S=q6o;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return xkM=b},
is:"tp-yt-paper-spinner",behaviors:[Q65]});var mka;var vyw;_.pZ({_template:function(){if(vyw!==void 0)return vyw;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;mka===void 0&&(mka=document.createElement("template"));var S=mka;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return vyw=b},
is:"tp-yt-paper-spinner-lite",behaviors:[Q65]});var bGN;var h0b;_.pZ({_template:function(){if(h0b!==void 0)return h0b;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;bGN===void 0&&(bGN=document.createElement("template"));var S=bGN;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return h0b=b},
is:"tp-yt-paper-tab",behaviors:[_.Q0,_.vI.IronButtonState,rJ],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 b=_.rO(this).parentNode;return!!b&&!!b.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(b){if(this.link){var h=this.queryEffectiveChildren("a");h&&b.target!==h&&h.click()}}});var y78;var Swa;var FWb=_.bm(['<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>']),alo=_.YBP(FWb);document.head.appendChild(alo.content);_.pZ({_template:function(){if(Swa!==void 0)return Swa;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;y78===void 0&&(y78=document.createElement("template"));var S=y78;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return Swa=b},
is:"tp-yt-paper-tabs",behaviors:[_.ab,_.x$b],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(b){_.rO(this).querySelectorAll("tp-yt-paper-tab").forEach(b?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(b){b.setAttribute("noink","")},
_removeNoinkAttribute:function(b){b.removeAttribute("noink")},
_computeScrollButtonClass:function(b,h,y,S){return!h||y?"hidden":b?S?"hidden":"not-visible":""},
_computeTabsContentClass:function(b,h){var y="tabs-content";b&&(y+=" scrollable");if(!b||h)y+=" fit-container";return y},
_computeSelectionBarClass:function(b,h){var y="selection-bar";b?y+=" hidden":h&&(y+=" align-bottom");return y},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(b){return""+b},
_onIronSelect:function(b){this._tabChanged(b.detail.item,this._previousTab);this._previousTab=b.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();_.FV._activateHandler.apply(this,arguments)},
_scheduleActivation:function(b,h){this._pendingActivationItem=b;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,h)},
_delayedActivationHandler:function(){var b=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;b.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(b){b.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(b,h){this.scrollable&&this._affectScroll(h&&-h.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(b){this.$.tabsContainer.scrollLeft+=b;b=this.$.tabsContainer.scrollLeft;this._leftHidden=b===0||this.hideScrollButtons;this._rightHidden=b===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(b,h){if(b){var y=this.$.tabsContent.getBoundingClientRect(),S=y.width,F=b.getBoundingClientRect();y=F.left-y.left;this._pos={width:this._calcPercent(F.width,S),left:this._calcPercent(y,S)};if(this.noSlide||h==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var a=h.getBoundingClientRect();h=this.items.indexOf(h);b=this.items.indexOf(b);this.$.selectionBar.classList.add("expand");
b=h<b;this._isRTL&&(b=!b);b?this._positionBar(this._calcPercent(F.left+F.width-a.left,S)-5,this._left):this._positionBar(this._calcPercent(a.left+a.width-F.left,S)-5,this._calcPercent(y,S)+5);this.scrollable&&this._scrollToSelectedIfNeeded(F.width,y)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(b,h){h-=this.$.tabsContainer.scrollLeft;h<0?this.$.tabsContainer.scrollLeft+=h:(h+=b-this.$.tabsContainer.offsetWidth,h>0&&(this.$.tabsContainer.scrollLeft+=h))},
_calcPercent:function(b,h){return 100*b/h},
_positionBar:function(b,h){b=b||0;h=h||0;this._width=b;this._left=h;this.transform("translateX("+h+"%) scaleX("+b/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var b=this.$.selectionBar.classList;b.contains("expand")?(b.remove("expand"),b.add("contract"),this._positionBar(this._pos.width,this._pos.left)):b.contains("contract")&&b.remove("contract")}});var dIo;var jEM;_.pZ({_template:function(){if(jEM!==void 0)return jEM;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;dIo===void 0&&(dIo=document.createElement("template"));var S=dIo;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return jEM=b},
is:"tp-yt-paper-textarea",behaviors:[eW7,_.bV],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(b){this.$.input.textarea.selectionStart=b},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(b){this.$.input.textarea.selectionEnd=b},_ariaLabelledByChanged:function(b){this._focusableElement.setAttribute("aria-labelledby",b)},
_ariaDescribedByChanged:function(b){this._focusableElement.setAttribute("aria-describedby",b)},
get _focusableElement(){return this.inputElement.textarea}});var $Iw;var LWW;/*

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 PDP=function(){};
_.d=PDP.prototype;_.d.addOwnKeyBinding=function(){};
_.d.removeOwnKeyBindings=function(){};
_.d.keyboardEventMatchesKeys=function(){};
_.d._collectKeyBindings=function(){};
_.d._prepKeyBindings=function(){};
_.d._addKeyBinding=function(){};
_.d._resetKeyEventListeners=function(){};
_.d._listenKeyEventListeners=function(){};
_.d._unlistenKeyEventListeners=function(){};
_.d._onKeyBindingEvent=function(){};
_.d._triggerKeyHandler=function(){};
_.d._tapHandler=function(){};
_.d._focusChanged=function(){};
_.d._detectKeyboardFocus=function(){};
_.d._userActivate=function(){};
_.d._upHandler=function(){};
_.d._spaceKeyDownHandler=function(){};
_.d._spaceKeyUpHandler=function(){};
_.d._asyncClick=function(){};
_.d._pressedChanged=function(){};
_.d._ariaActiveAttributeChanged=function(){};
_.d._activeChanged=function(){};
_.d._controlStateChanged=function(){};
_.d._changedButtonState=function(){};
_.d._focusBlurHandler=function(){};
_.d._disabledChanged=function(){};
_.d._changedControlState=function(){};
_.d._downHandler=function(){};
_.d.ensureRipple=function(){};
_.d.getRipple=function(){};
_.d.hasRipple=function(){};
_.d._noinkChanged=function(){};
_.d._focusedChanged=function(){};
_.d.registered=function(){};
_.d._invalidChanged=function(){};
_.d.hasValidator=function(){};
_.d.validate=function(){};
_.d._getValidity=function(){};
_.d._requiredChanged=function(){};
_.d._valueChanged=function(){};
_.d._checkedChanged=function(){};
_.d._buttonStateChanged=function(){};
_.d._setPressed=function(){};
_.d._setPointerDown=function(){};
_.d._setReceivedFocusFromKeyboard=function(){};
_.d._setFocused=function(){};
PDP=_.pZ({is:"tp-yt-paper-toggle-button",_template:function(){if(LWW!==void 0)return LWW;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;$Iw===void 0&&($Iw=document.createElement("template"));var S=$Iw;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return LWW=b},
behaviors:[_.S6e],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");_.Ob(this,function(){_.yn(this,"pan-y")})},
_ontrack:function(b){b=b.detail;b.state==="start"?this._trackStart(b):b.state==="track"?this._trackMove(b):b.state==="end"&&this._trackEnd(b)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(b){b=b.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+b:b)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+b:b));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 b=rJ._createRipple();b.id="ink";b.setAttribute("recenters","");b.classList.add("circle","toggle-ink");return b}});var KWe;var ZGb;_.pZ({_template:function(){if(ZGb!==void 0)return ZGb;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;KWe===void 0&&(KWe=document.createElement("template"));var S=KWe;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return ZGb=b},
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 b=_.rO(this).parentNode,h=_.rO(this).getOwnerRoot(),y;this.for?y=_.rO(h).querySelector("#"+this.for):y=b.nodeType==Node.DOCUMENT_FRAGMENT_NODE?h.host:b;return y},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(b){b==="entry"?this.show():b==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.rO(this).textContent.trim()===""){for(var b=!0,h=_.rO(this).getEffectiveChildNodes(),y=0;y<h.length;y++)if(h[y].textContent.trim()!==""){b=!1;break}if(b)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 b=this.offset;this.marginTop!=14&&this.offset==14&&(b=this.marginTop);var h=this.offsetParent.getBoundingClientRect(),y=this._target.getBoundingClientRect(),S=this.getBoundingClientRect(),F=(y.width-S.width)/2,a=(y.height-S.height)/2,P=y.left-h.left,K=y.top-h.top;switch(this.position){case "top":var n=P+F;var X=K-S.height-b;break;case "bottom":n=P+F;X=K+y.height+b;break;case "left":n=P-S.width-b;X=K+a;break;case "right":n=P+y.width+
b,X=K+a}this.fitToVisibleBounds?(h.left+n+S.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,n)+"px",this.style.right="auto"),h.top+X+S.height>window.innerHeight?(this.style.bottom=h.height+"px",this.style.top="auto"):(this.style.top=Math.max(-h.top,X)+"px",this.style.bottom="auto")):(this.style.left=n+"px",this.style.top=X+"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(b){b!==500&&this.updateStyles({"--paper-tooltip-delay-in":b+"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(b){if(b==="entry"&&this.animationEntry!=="")return this.animationEntry;if(b==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[b]&&typeof this.animationConfig[b][0].name==="string"){if(this.animationConfig[b][0].timing&&this.animationConfig[b][0].timing.delay&&this.animationConfig[b][0].timing.delay!==0){var h=this.animationConfig[b][0].timing.delay;b==="entry"?this.updateStyles({"--paper-tooltip-delay-in":h+"ms"}):b==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":h+
"ms"})}return this.animationConfig[b][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 ouW=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(ouW,_.ZL);var MAw=_.IR(ouW,[0,_.oy]);var zm=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(zm,_.ZL);var nu8=[3,4],XR5=[5,6];var HGM=[0,nu8,XR5,_.X0,-1,_.Pq,_.Hm,-1,t2a,rXN];var uiW=_.IR(zm,HGM),OGo=_.BM(HGM);var Nv8=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(Nv8,_.ZL);var tAN=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(tAN,_.ZL);var r7a=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(r7a,_.ZL);var c7G=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(c7G,_.ZL);var R0P=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(R0P,_.ZL);var DG=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(DG,_.ZL);DG.prototype.getSource=function(){return _.sV(this,1)};
DG.prototype.getMessage=function(){return _.gQ(this,4)};
DG.prototype.getData=function(){return _.cL(this,R0P,8)};var z0P=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(z0P,_.ZL);var Ib=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(Ib,_.ZL);var BJ=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(BJ,_.ZL);var WJ=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(WJ,_.ZL);WJ.prototype.getUrl=function(){return _.gQ(this,1)};
WJ.prototype.setUrl=function(b){return _.kb(this,1,b)};
WJ.prototype.hasUrl=function(){return _.zq(_.z4(this,1))!=null};var DI8=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(DI8,_.ZL);var IlW=[3];var BvM=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(BvM,_.ZL);var AQ=function(b){var h=new BvM;return _.R2(h,2,b)};
BvM.prototype.getLanguage=function(){return G4(this,4,Up)};
var WWG=function(b){var h=AQ(1);return _.pc(h,6,Up,b)},Up=[3,
4,5,6];var A7o=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(A7o,_.ZL);var pE=function(b){var h=new A7o;return _.R2(h,1,b)},JQ=function(b,h){return _.pc(b,2,UIb,h)},UIb=[2,
3,4,5];var pRM=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(pRM,_.ZL);var ep=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(ep,_.ZL);var J7P=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(J7P,_.ZL);var e0N=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(e0N,_.ZL);var CDG=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(CDG,_.ZL);var guN=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(guN,_.ZL);var sEb=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(sEb,_.ZL);var CE=function(b){return _.cL(b,BJ,5)};var YwP=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(YwP,_.ZL);YwP.prototype.getValue=function(){return ek(this,1)};var Tvo=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(Tvo,_.ZL);var gJ=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(gJ,_.ZL);gJ.prototype.getMetadata=function(){return _.kY(this,CDG,7,sp)};
gJ.prototype.hasMetadata=function(){return _.IX(this,CDG,7,sp)};
var GS7=_.hhk(gJ),sp=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var YL=function(b){this.JSC$12356_name_=b;this.files_=[];this.directories_=[];this.directoryMap_={}};
YL.prototype.getName=function(){return this.JSC$12356_name_};var Gm=function(b,h){this.callback_=h;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new YL("");kSW(this,b,this.rootDirectory_);Tm(this)},kSW=function(b,h,y){for(var S=0;S<h.length;S++){var F=h[S];
F.isFile?(b.fileOps_++,F.file((0,_.i5)(b.handleFileSuccess_,b,y),(0,_.i5)(b.handleFileError_,b))):b.unscannedDirectories_.push(new VA5(F,y))}},Tm=function(b){if(b.unscannedDirectories_.length>0&&b.directoryOps_<5&&!b.hasError_){b.directoryOps_++;
var h=b.unscannedDirectories_.shift(),y=h.entry,S=new YL(y.name);h=h.parent;h.directoryMap_[S.getName()]=S;h.directories_.push(S);y=y.createReader();y.readEntries((0,_.i5)(b.handleDirectorySuccess_,b,y,S),(0,_.i5)(b.handleDirectoryError_,b))}b.directoryOps_!=0||b.fileOps_!=0||b.unscannedDirectories_.length!=0&&!b.hasError_||b.callback_(b.rootDirectory_.files_,b.rootDirectory_.directories_,b.hasError_)};
Gm.prototype.handleDirectorySuccess_=function(b,h,y){kSW(this,y,h);y.length==0?(this.directoryOps_--,Tm(this)):b.readEntries((0,_.i5)(this.handleDirectorySuccess_,this,b,h),(0,_.i5)(this.handleDirectoryError_,this))};
Gm.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;Tm(this)};
Gm.prototype.handleFileSuccess_=function(b,h){b.files_.push(h);this.fileOps_--;Tm(this)};
Gm.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;Tm(this)};
var VA5=function(b,h){this.entry=b;this.parent=h};var kL=function(b){_.TI.call(this);_.W3(b,"drop",this.onObjectsDropped_,!1,this);_.W3(b,"dragenter",this.onFilesDragged_,!1,this);_.W3(b,"dragover",this.onFilesDragged_,!1,this);_.W3(b,"dragleave",this.onDragLeave_,!1,this);_.W3(b,"dragend",this.onDragLeave_,!1,this)};
_.Pv(kL,_.TI);var EuM=function(b,h){_.eW.call(this,"f");this.files=b;this.directories=h};
_.Pv(EuM,_.eW);var iGW=function(){_.eW.call(this,"h")};
_.Pv(iGW,_.eW);var flW=function(){_.eW.call(this,"i")};
_.Pv(flW,_.eW);var wRw=function(){_.eW.call(this,"g")};
_.Pv(wRw,_.eW);kL.prototype.onObjectsDropped_=function(b){var h=this;b.preventDefault();var y=b.event_.dataTransfer;if((b=y&&y.items)&&b.length>0&&b[0].webkitGetAsEntry){y=[];for(var S=[],F=0;F<b.length;F++){var a=b[F].webkitGetAsEntry();a?y.push(a):S.push(b[F])}new Gm(y,function(P,K,n){n?h.dispatchEvent(new wRw("Error occurred while reading from the file system.")):h.dispatchEvent(new EuM(P,K,S))})}else(b=y&&y.files)&&this.dispatchEvent(new EuM(Array.from(b),[]))};
kL.prototype.onFilesDragged_=function(b){b.type==="dragenter"&&this.dispatchEvent(new iGW);b.preventDefault()};
kL.prototype.onDragLeave_=function(){this.dispatchEvent(new flW)};var llG=function(b,h){this.JSC$12379_name_=b;this.inputElement_=h};
llG.prototype.getName=function(){return this.JSC$12379_name_};
llG.prototype.getInputElement=function(){return this.inputElement_};var Vj=function(b,h,y){h=h===void 0?"single_file":h;y=y===void 0?[]:y;_.TI.call(this);this.overlayTarget_=b;this.parentOverlay_=b!=null?b.parentNode:_.gB("scotty-overlay-parent");this.selectorType_=h;this.acceptTypes_=y;this.overlay_=qwM(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.z(Vj,_.TI);
var qwM=function(b,h,y,S){var F=document.createElement("input");F.setAttribute("type","file");F.setAttribute("name","Filedata");_.W3(F,"change",b.onFilesSelected_,!1,b);y==="multiple_file"&&(F.multiple="true");y==="single_directory"&&(F.webkitdirectory="true");S.length>0&&F.setAttribute("accept",S.join(","));F.style.position="absolute";F.style.overflow="hidden";F.style.height="0px";F.style.width="0px";F.style.opacity="0";F.setAttribute("aria-hidden","true");F.setAttribute("tabIndex",-1);if(b.overlayTarget_!=
null)return F.style.height=h.offsetHeight+"px",F.style.width=h.offsetWidth+"px",b.parentOverlay_&&(b.parentOverlay_.style.position="relative"),_.qM(F,h),hU(F,new _.xb(h.offsetLeft,h.offsetTop)),F;b.parentOverlay_.appendChild(F);return F};
Vj.prototype.click=function(){this.overlay_.click()};
Vj.prototype.onFilesSelected_=function(b){a:{try{var h=(new XMLHttpRequest).upload!==void 0;break a}catch(X){}h=!1}if(h){var y;b=Array.from((y=b.target.files)!=null?y:[]);y=[];if(this.selectorType_==="single_directory"&&(_.Hv||nz||_.XW)){y=new YL("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(h=0;h<b.length;h++)for(var S=b[h],F=S.webkitRelativePath.split("/"),a=y,P=0;P<F.length;P++){var K=F[P];if(P==F.length-1){K!="."&&a.files_.push(S);break}var n=a.directoryMap_[K];n==void 0&&(K=
n=new YL(K),a.directoryMap_[K.getName()]=K,a.directories_.push(K));a=n}y=y.directories_}this.dispatchEvent(new xIb(b,y,null))}else b=b.target.value,b.match(/^c:\\fakepath\\/i)&&(b=b.substring(12)),this.dispatchEvent(new xIb([],[],new llG(b,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=qwM(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var xIb=function(b,h){_.eW.call(this,"j");this.files=b;this.directories=h};
_.z(xIb,_.eW);var QE7=function(b){this.uploadUrl_=b};var mIa=function(){_.TI.call(this)};
_.Pv(mIa,_.TI);var Ep=function(b){_.eW.call(this,b)};
_.Pv(Ep,_.eW);var iV=function(b){_.eW.call(this,b)};
_.Pv(iV,_.eW);var vuw=function(b,h,y,S,F){_.TI.call(this);y=document.createElement("form");y.setAttribute("method",h);y.setAttribute("enctype","multipart/form-data");y.setAttribute("encoding","multipart/form-data");h=document.createElement("input");h.setAttribute("type","hidden");h.setAttribute("name","metadata");h.setAttribute("value",F);y.appendChild(h);y.appendChild(S);this.JSC$12396_form_=y;b=new _.lX(b);_.Ka(b,"upload_protocol","multipart");this.JSC$12396_url_=b.toString();this.JSC$12396_request_=new IB;this.state_=
"Ready";this.JSC$12396_errorDescription_=null;this.JSC$12396_eventHandler_=new _.B_(this);_.pq(this,this.JSC$12396_eventHandler_);this.JSC$12396_eventHandler_.listen(this.JSC$12396_request_,"success",this.onTransferSuccess_);this.JSC$12396_eventHandler_.listen(this.JSC$12396_request_,"error",this.onTransferError_)};
_.z(vuw,mIa);_.d=vuw.prototype;_.d.run=function(){this.state_="Transferring";var b=this.JSC$12396_request_,h=this.JSC$12396_form_;if(b.JSC$11664_active_)throw Error("ue");var y=new _.lX(this.JSC$12396_url_||h.action);b.JSC$11664_form_=h;h=b.JSC$11664_form_;y=_.QD(y.toString());y!==void 0&&(h.action=y);jrW(b)};
_.d.getResponseCode=function(){return null};
_.d.getResponseText=function(){return this.JSC$12396_request_&&this.JSC$12396_request_.getResponseText()||null};
_.d.JSC$30279_getErrorDescription=function(){return this.JSC$12396_errorDescription_};
_.d.cancel=function(){this.JSC$12396_request_&&this.JSC$12396_request_.abort();this.state_="Cancelled";this.dispatchEvent(new Ep("o"))};
_.d.pause=function(){};
_.d.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new Ep("l"))};
_.d.onTransferError_=function(){this.JSC$12396_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new Ep("n"))};var fE=function(){_.mX.call(this)};
_.z(fE,_.mX);fE.prototype.createXhr=function(){var b=_.mX.prototype.createXhr.call(this);b.upload&&(b.upload.onprogress=(0,_.i5)(this.onProgress_,this));return b};
fE.prototype.onProgress_=function(b){this.dispatchEvent(b)};var bH8=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},yq8=function(b,h){var y=b.attempt_+1;
if(b.maxAttempts_>0&&y>b.maxAttempts_)return!1;y==0?h():b.delayCallId_=qk(function(){b.delayCallId_=null;h()},hH5(b),b);
b.attempt_=y;return!0};
bH8.prototype.reset=function(){this.delayCallId_&&_.S5.clearTimeout(this.delayCallId_);this.attempt_=-1};
var hH5=function(b){var h=250*Math.pow(2,b.attempt_);b.maxDelayMs_>=0&&(h=Math.min(h,b.maxDelayMs_));return h};var sO8=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var wJ=function(){_.TI.call(this);this.JSC$12406_request_=this.state_=null;this.JSC$12406_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$12406_bytesTransferred_=0;this.retryIterator_=new bH8;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$12406_errorDescription_=null;this.JSC$12406_eventHandler_=new _.B_(this);_.pq(this,this.JSC$12406_eventHandler_);this.JSC$12406_url_=this.blob_=null;this.JSC$12406_method_=void 0;this.chunkSize_=this.JSC$12406_metadata_=
this.JSC$12406_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$12406_responseText_=this.JSC$12406_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.Pv(wJ,mIa);_.d=wJ.prototype;_.d.run=function(){lV(this)};
_.d.getResponseCode=function(){return this.JSC$12406_responseCode_};
_.d.getResponseText=function(){return this.JSC$12406_responseText_};
_.d.JSC$30279_getErrorDescription=function(){return this.JSC$12406_errorDescription_};
_.d.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$12406_eventHandler_.removeAll();this.JSC$12406_request_&&this.JSC$12406_request_.abort();this.retryIterator_.reset();var b=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(b==="Upload"||b==="Query")b=new fE,b.JSC$9979_withCredentials_=this.JSC$12406_withCredentials_,b.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$12406_bytesTransferred_=
0;this.dispatchEvent(new Ep("o"))}};
_.d.pause=function(){this.pauseRequested_=!0};
var lV=function(b){var h=b.state_;b.pauseRequested_?(b.pauseRequested_=!1,b.stateAfterUnpausing_=h,b.state_="Paused"):yq8(b.retryIterator_,function(){switch(b.state_){case "Start":b.JSC$12406_request_=new fE;var y=_.lR.clone(b.JSC$12406_headers_);b.blob_.size!=null&&(y["Content-Length"]=b.blob_.size);y=YYI(y);y["X-Goog-Upload-Protocol"]="resumable";y["X-Goog-Upload-Command"]="start";b.JSC$12406_eventHandler_.removeAll();b.JSC$12406_eventHandler_.listen(b.JSC$12406_request_,"complete",b.onStartComplete_);
b.JSC$12406_request_.JSC$9979_withCredentials_=b.JSC$12406_withCredentials_;b.JSC$12406_request_.send(b.JSC$12406_url_,b.JSC$12406_method_,b.JSC$12406_metadata_,y);b.lastCommandResponseCode_=null;b.dispatchEvent(new iV("q"));break;case "Upload":y=b.transferHandle_.uploadUrl_;var S=b.blob_.size;if(Je8()){var F=b.chunkSize_;var a=b.offset_+F>=S;S=p57(b.blob_,b.offset_,a?S:b.offset_+F)}else b.offset_=0,S=b.blob_,a=!0;b.JSC$12406_request_=new fE;b.JSC$12406_request_.JSC$9979_withCredentials_=b.JSC$12406_withCredentials_;
b.JSC$12406_eventHandler_.removeAll();b.JSC$12406_eventHandler_.listen(b.JSC$12406_request_,"progress",b.onUploadProgress_);F=(0,_.i5)(b.JSC$12408_onUploadComplete_,b,b.offset_+S.size,a);b.JSC$12406_eventHandler_.listen(b.JSC$12406_request_,"complete",F);b.lastCommandResponseCode_=null;b.dispatchEvent(new iV("q"));a=Object.assign({},b.JSC$12406_headers_||{},{"X-Goog-Upload-Command":"upload"+(a?", finalize":""),"X-Goog-Upload-Offset":b.offset_});b.JSC$12406_request_.send(y,"POST",S,a);break;case "Query":b.JSC$12406_request_=
new fE;b.JSC$12406_eventHandler_.removeAll();b.JSC$12406_eventHandler_.listen(b.JSC$12406_request_,"complete",b.onQueryComplete_);y=Object.assign({},b.JSC$12406_headers_||{},{"X-Goog-Upload-Command":"query"});b.JSC$12406_request_.send(b.transferHandle_.uploadUrl_,"POST","",y);b.lastCommandResponseCode_=null;b.dispatchEvent(new iV("q"));break;default:throw Error("mf");}})||qe(b,"Transfer encountered too many consecutive failures.")},qe=function(b,h){b.state_="Error";
b.JSC$12406_errorDescription_=h;b.dispatchEvent(new Ep("n"))};
wJ.prototype.onStartComplete_=function(b){var h=b.target;this.lastCommandResponseCode_=h.getStatus();this.dispatchEvent(new iV("r"));if(S$a(h))FDa(this,h);else if(a67(h)){b=na(b.target.getAllResponseHeaders());for(var y in b)_.aq(y.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new Ep("m"));y=RH(b,"X-Goog-Upload-URL");b=(b=RH(b,"X-Goog-Upload-Chunk-Granularity"))?parseInt(b,10):1;y===void 0||isNaN(b)||b<=0?qe(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
b)*b,this.transferHandle_=new QE7(y),this.dispatchEvent(new Ep("p")),this.state_="Upload",this.retryIterator_.reset(),lV(this))}else lV(this)};
wJ.prototype.onUploadProgress_=function(b){this.JSC$12406_bytesTransferred_=this.offset_+b.loaded;this.dispatchEvent(new Ep("k"))};
wJ.prototype.JSC$12408_onUploadComplete_=function(b,h,y){var S=this,F,a;return _.Z(function(P){switch(P.nextAddress){case 1:F=y.target;S.lastCommandResponseCode_=F.getStatus();S.dispatchEvent(new iV("r"));if(d88(F)||F.getStatus()==404)return S.JSC$12406_bytesTransferred_=b,FDa(S,F),P.return();if(a67(F)){P.jumpTo(2);break}if(!(a=S.detectCorruptedBlobEnabled_)){P.jumpTo(3);break}return P.yield(jGb(S),4);case 4:a=P.yieldResult;case 3:if(a)return qe(S,"Blob has been modified or corrupted."),P.return();
S.requireUploadRequestModification_=F.getStatus()==400;S.state_="Query";lV(S);return P.return();case 2:if(h)return qe(S,"Got a non-final success response after issuing a finalize command."),P.return();S.JSC$12406_bytesTransferred_=b;S.offset_=b;S.retryIterator_.reset();lV(S);return P.return()}})};
wJ.prototype.onQueryComplete_=function(b){var h=b.target;this.lastCommandResponseCode_=h.getStatus();this.dispatchEvent(new iV("r"));S$a(h)?(h.getStatus()===200&&(this.JSC$12406_bytesTransferred_=this.blob_.size),FDa(this,h)):a67(h)?(b=na(b.target.getAllResponseHeaders()),b=parseInt(RH(b,"X-Goog-Upload-Size-Received"),10),isNaN(b)?qe(this,"Server did not respond with current offset."):b<this.offset_?qe(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
b+"."):this.requireUploadRequestModification_&&this.offset_===b?qe(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<b&&this.retryIterator_.reset(),this.offset_=this.JSC$12406_bytesTransferred_=b,this.state_="Upload",lV(this))):lV(this)};
var FDa=function(b,h){b.JSC$12406_responseCode_=h.getStatus();var y=na(h.getAllResponseHeaders());T$k(y);b.JSC$12406_responseText_=h.getResponseText();b.state_="Response received";b.dispatchEvent(new Ep("l"))},a67=function(b){var h=b.getStatus();
b=na(b.getAllResponseHeaders());b=RH(b,"X-Goog-Upload-Status");return h===200&&b==="active"},d88=function(b){b=na(b.getAllResponseHeaders());
return RH(b,"X-Goog-Upload-Status")==="final"},S$a=function(b){if(d88(b))return!0;
b=b.getStatus();return b>=400&&b<500},jGb=function(b){var h;
return _.Z(function(y){if(y.nextAddress==1){if(!b.blob_||b.originalBlobSize_<=0)return y.return(!1);if(b.blob_.size!==b.originalBlobSize_)return y.return(!0);_.WE(y,2);if(h=p57(b.blob_,0,1)){var S=y.yield,F=new PI,a=uvw(F);F.reader_.readAsBinaryString(h);y=S.call(y,a,4)}else y=y.return(!0);return y}if(y.nextAddress!=2)return y.return(b.blob_.size!==b.originalBlobSize_);_.C$(y);return y.return(!0)})};var $8o=function(b,h,y,S,F,a){_.TI.call(this);this.payload_=S;this.JSC$12409_url_=b;this.JSC$12409_method_=h;this.JSC$12409_headers_=y;this.JSC$12409_metadata_=F;this.encoding_=a||"binary";b=new _.xe;this.boundary_="uploader-"+$H()+"-"+b.JSC$11513_toIsoString();this.JSC$12409_responseText_=this.JSC$12409_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$12409_errorDescription_=null;this.JSC$12409_eventHandler_=new _.B_(this);_.pq(this,this.JSC$12409_eventHandler_)};
_.z($8o,mIa);_.d=$8o.prototype;
_.d.run=function(){var b=_.lR.clone(this.JSC$12409_headers_);this.payload_.length!=null&&(b["Content-Length"]=this.payload_.length);b=YYI(b);b["X-Goog-Upload-Protocol"]="multipart";b["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new fE;this.JSC$12409_eventHandler_.removeAll();this.JSC$12409_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$12409_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$12409_url_,this.JSC$12409_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$12409_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",b)};
_.d.getResponseCode=function(){return this.JSC$12409_responseCode_};
_.d.getResponseText=function(){return this.JSC$12409_responseText_};
_.d.JSC$30279_getErrorDescription=function(){return this.JSC$12409_errorDescription_};
_.d.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$12409_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new Ep("o")))};
_.d.pause=function(){};
_.d.onTransferProgress_=function(){this.dispatchEvent(new Ep("k"))};
_.d.onTransferComplete_=function(b){var h=b.target.getStatus();h===void 0||h===-1?(this.JSC$12409_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new Ep("n"))):(this.JSC$12409_responseCode_=h,b=b.target,h=na(b.getAllResponseHeaders()),T$k(h),this.JSC$12409_responseText_=b.getResponseText(),this.state_="Complete",this.dispatchEvent(new Ep("l")))};_.LDb=function(b,h,y,S){S=S===void 0?!1:S;if(y instanceof llG)return new vuw(b,"POST",h,y.getInputElement(),"");if(typeof y==="string"||y instanceof String)return new $8o(b,"POST",h,y,"");var F=new wJ(void 0);F.JSC$12406_url_=b;F.JSC$12406_method_="POST";F.JSC$12406_headers_=h;F.blob_=y;F.originalBlobSize_=y.size;F.JSC$12406_metadata_="";S&&(F.JSC$12406_withCredentials_=S);F.state_="Start";return F};var xL=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(xL,_.ZL);_.d=xL.prototype;_.d.getEnableSsEngine=function(){return _.J1(this,2)};
_.d.getEnableAwr=function(){return _.J1(this,3)};
_.d.getAlohaAutoGaRollout=function(){return _.J1(this,5)};
_.d.getEnableConfigurator=function(){return _.J1(this,6)};
_.d.getEnableMweb=function(){return _.J1(this,7)};
var KD8=function(){var b=PcG();return _.IH(b,7,!0)};
xL.prototype.getEnableCtlConsentCheckbox=function(){return _.J1(this,8)};
xL.prototype.getEnableIframe=function(){return _.J1(this,9)};
var PcG=function(){var b=new xL;b=_.IH(b,5,!0);b=_.IH(b,2,!0);b=_.IH(b,4,!1);b=_.IH(b,8,!0);return _.IH(b,9,!0)};
xL.prototype.getEnableScreenshotNudge=function(){return _.J1(this,10)};
var ZHa=function(){var b=KD8();return _.IH(b,10,!0)};
xL.prototype.getEnableWebStartupConfigEndpoint=function(){return _.J1(this,11)};
xL.prototype.getEnableJunkNudge=function(){return _.J1(this,12)};
var aXq=function(){var b=ZHa();return _.IH(b,12,!0)};
_.d=xL.prototype;_.d.getEnableConfiguratorLocale=function(){return _.J1(this,13)};
_.d.getEnableTinyNoPointer=function(){return _.J1(this,14)};
_.d.getEnableSupportSessionLogging=function(){return _.J1(this,15)};
_.d.getEnableFileUploadForScreenshot=function(){return _.J1(this,16)};
_.d.getEnableDirectDeflectionForSingleCategory=function(){return _.J1(this,17)};
_.d.getEnableImageSanitization=function(){return _.J1(this,18)};
_.d.getEnableAlohaBinarySplit=function(){return _.J1(this,19)};
_.d.getEnableDbFeedbackIntents=function(){return _.J1(this,20)};
_.d.getEnableMarkMandatoryFieldsWithRequired=function(){return _.J1(this,21)};
_.d.getEnableFeedbackCategoryCustomUi=function(){return _.J1(this,22)};
_.d.getEnableRealtimeCtl=function(){return _.J1(this,23)};var Fsn=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(Fsn,_.ZL);var GQk=[/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 Vy5="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 EeY=_.bm(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),ipI=_.bm(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var zt=function(){var b=Error.call(this,"Form is either loading or already opened");this.message=b.message;"stack"in b&&(this.stack=b.stack);this.name="DuplicateFormError"};
_.z(zt,Error);var wHq,xEj,l$5,QOf;var Qj,oRM;
Qj=function(b,h,y){b.timeOfStartCall=(new Date).getTime();var S=y||_.S5,F=S.document,a=b.nonce||_.jw(S.document);a&&!b.nonce&&(b.nonce=a);if(b.flow=="help"){var P=_.hj("document.location.href",S);!b.helpCenterContext&&P&&(b.helpCenterContext=P.substring(0,1200));P=!0;if(h&&JSON&&JSON.stringify){var K=JSON.stringify(h);(P=K.length<=1200)&&(b.psdJson=K)}P||(h={invalidPsd:!0})}h=[b,h,y];S.GOOGLE_FEEDBACK_START_ARGUMENTS=h;y=b.feedbackServerUri||"//www.google.com/tools/feedback";if(P=S.GOOGLE_FEEDBACK_START)P.apply(S,h);
else{S=y+"/load.js?";for(var n in b)h=b[n],h==null||_.lf(h)||(S+=encodeURIComponent(n)+"="+encodeURIComponent(h)+"&");b=GP(F).createElement("SCRIPT");a&&b.setAttribute("nonce",a);_.ZF(b,_.gf(S));F.body.appendChild(b)}};
oRM=function(b,h,y,S){var F,a;return _.Z(function(P){F=y||_.S5;var K=b.serverEnvironment==="DEV",n=y||_.S5;n=b.nonce||_.jw(n.document);K={integrationKeys:{productId:b.productId,feedbackBucket:b.bucket,triggerId:b.triggerId},callbacks:{onClose:b.callback,onLoad:b.onLoadCallback},formContent:{locale:b.locale,disableScreenshot:b.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:b.abuseLink,additionalDataConsent:b.additionalDataConsent},initializationData:{isLocalServer:K,nonce:n,useNightlyRelease:K,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:b.feedbackServerUri,colorScheme:b.colorScheme},extraData:{productVersion:b.productVersion,authUser:b.authuser,configuratorId:b.configuratorId,customZIndex:b.customZIndex,tinyNoPointer:b.tinyNoPointer,
allowNonLoggedInFeedback:b.allowNonLoggedInFeedback,enableAnonymousFeedback:b.enableAnonymousFeedback}};h&&(n=new Map(Object.entries(h)),K.extraData.productSpecificData=n);a=K;return P.yield(hKI(a,S,F),0)})};
_.M6e=function(b,h,y){try{if(b.flow==="help"){var S=b.helpCenterPath.replace(/^\//,"");_.d3(y||window,"https://support.google.com/"+S)}else b.flow==="submit"?Qj(b,h,y):dBn(b.productId,b.feedbackServerUri).then(function(F){F=_.cL(F,xL,1);var a=!Cf8||(F==null?void 0:F.getEnableMweb()),P=!b.tinyNoPointer||(F==null?void 0:F.getEnableTinyNoPointer());!F||F.getAlohaAutoGaRollout()&&a&&P?oRM(b,h,y,F).catch(function(K){!K||K instanceof zt||Qj(b,h,y)}):Qj(b,h,y)},function(F){!F||F instanceof zt||Qj(b,h,y)})}catch(F){oRM(b,
h,y,null).catch(function(a){!a||a instanceof zt||Qj(b,h,y)})}};
_.HL("userfeedback.api.startFeedback",_.M6e);var jBY=/https?:\/\/\S+\.\S+/,$BY=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],Lsn=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var rMr=function(b){var h=b.split(""),y=[-263237435,15,h,function(S,F,a){var P=F.length;a.forEach(function(K,n,X){this.push(X[n]=F[(F.indexOf(K)-F.indexOf(this[n])+n+P--)%F.length])},S.split(""))},
function(S,F){S=(S%F.length+F.length)%F.length;F.splice(-S).reverse().forEach(function(a){F.unshift(a)})},
"response",function(){for(var S=64,F=[];++S-F.length-32;){switch(S){case 58:S-=14;case 91:case 92:case 93:continue;case 123:S=47;case 94:case 95:case 96:continue;case 46:S=95}F.push(String.fromCharCode(S))}return F},
null,12,1540023973,65941107,null,h,function(S,F){for(S=(S%F.length+F.length)%F.length;S--;)F.unshift(F.pop())},
695603893,function(S){for(var F=S.length;F;)S.push(S.splice(--F,1)[0])},
"'[;'[(",function(S,F){S.push(F)},
null,function(S,F,a,P,K){return F(a,P,K)},
"continuation",h,function(S,F){if(S.length!=0){F=(F%S.length+S.length)%S.length;var a=S[0];S[0]=S[F];S[F]=a}},
function(){for(var S=64,F=[];++S-F.length-32;){switch(S){case 91:S=44;continue;case 123:S=65;break;case 65:S-=18;continue;case 58:S=96;continue;case 46:S=95}F.push(String.fromCharCode(S))}return F},
'"),/]];'];y[7]=y;y[11]=y;y[18]=y;try{(((0,y[15])(y[21]),y[22])(y[11],y[9]),y[22])(y[new Date("1970-01-01T04:30:12.000+04:30")/1E3],y[1]),((0,y[22])(y[11],y[23]),y[4])(y[10],y[18]),(0,y[20])(y[21],y[14])<<(0,y[17])(y[18],y[1]),(0,y[4])(y[8],y[21]),(0,y[19])((0,y[19])((0,y[17])(y[7],y[9]),y[3],y[20],(0,y[6])(),y[2]),y[3],y[5],(0,y[15])(),y[2])}catch(S){return"aTlOUOubTO4AP____8P_"+b}return h.join("")};_.nRM=new _.r4("runAttestationCommand");var Xa5=new _.r4("verifyCommand");_.zR=new _.r4("accessibilityContext");var HHa=new _.r4("accessibilityData");var ueN=new _.r4("profileCardCommand");var HoM=new _.r4("signInEndpoint");var X1y=new _.r4("signOutEndpoint");var N4a;_.OH7=new _.r4("accountItemSectionRenderer");N4a=new _.r4("accountItemRenderer");_.t6N=new _.r4("saveCommandToSessionStorageAction");var rqb=new _.r4("crossAccountChannelTransferEndpoint");var P95=new _.r4("getAccountMenuEndpoint");_.K6n=new _.r4("getAccountSwitcherEndpoint");var L68=new _.r4("getAccountsListEndpoint");var cqo=new _.r4("getAccountsListInnertubeEndpoint");_.RH8=new _.r4("addToToastAction");var zH8=new _.r4("hideEnclosingAction");_.m8=new _.r4("replaceEnclosingAction");var D8W=new _.r4("buttonRefreshAction");var I6b=new _.r4("adsControlFlowOpportunityReceivedCommand");var B4e=new _.r4("openAdAllowlistInstructionCommand");var WDN=new _.r4("videoMastheadAdPrimaryVideoRenderer");var Aq8=new _.r4("displayAdRenderer");_.U8b=new _.r4("inFeedAdLayoutRenderer");var paw=new _.r4("sequenceItemInPlayerAdLayoutRenderer");_.Jqb=new _.r4("adSlotRenderer");var eHa=new _.r4("adAvatarViewModel");var Cca=new _.r4("adBadgeViewModel");var gRa=new _.r4("adButtonViewModel");var sG8=new _.r4("adImageViewModel");var UvU=new _.r4("reelsAdCardButtonedViewModel");var Y$N=new _.r4("reelsPlayerOverlayLayoutViewModel");var T4W=new _.r4("formDataDecoratorCommand");var GyM=new _.r4("updateConversationIdCommand");var kye=new _.r4("showSchedulingPanelCommand");var V6G=new _.r4("backstageCommentsRenderer");var ER5=new _.r4("backstageImageRenderer");var iH8=new _.r4("backstagePostRenderer");var f6a=new _.r4("backstageZeroStateRenderer");var wa5=new _.r4("postRenderer");var l6N=new _.r4("sharedPostRenderer");var q$W=new _.r4("createBackstagePostEndpoint");var x8W=new _.r4("getPostVideoPreviewEndpoint");var QGb=new _.r4("updateBackstagePostEndpoint");var m8M=new _.r4("filterChipTransformCommand");var vR7=new _.r4("insertRichSectionCommand");var ybj=new _.r4("talkToRecsDeselectCommand");var bpw=new _.r4("talkToRecsNextCommand");var hj4=new _.r4("talkToRecsSelectCommand");var U7M=new _.r4("talkToRecsUpdateTextCommand");_.O0=new _.r4("browseEndpoint");_.hZG=new _.r4("confirmDialogEndpoint");var yDM=new _.r4("expandOnHoverCardRenderer");var SY7=new _.r4("lumiereShelfDetailsRenderer");var Fba=new _.r4("revealBusinessEmailCommand");var a$P=new _.r4("validateChannelHandleCommand");var dEW=new _.r4("channelCreationFormEndpoint");var jO8=new _.r4("aboutChannelViewModel");var $EM=new _.r4("channelThumbnailWithLinkRenderer");var Lb7=new _.r4("channelCreationServiceEndpoint");var PYe=new _.r4("updateChannelPageSettingsEndpoint");var vJ=function(b){this.delegate=b},bC=function(){vJ.apply(this,arguments)};
_.z(bC,vJ);_.tm.Object.defineProperties(bC.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(b){this.delegate.entityMetadata=b}}});var Kb7=function(){bC.apply(this,arguments)};
_.z(Kb7,bC);Kb7.prototype.getAssociations=function(){return[]};
Kb7.prototype.getTypeName=function(){return"channelHandle"};var n3U=new _.r4("webThumbnailDetailsExtensionData");_.gC=new _.r4("commandContext");var ZpM=new _.r4("addVideoLinkAction");var oeM=new _.r4("banAuthorAction");var Myo=new _.r4("createCommentAction");var ne5=new _.r4("createCommentReplyAction");var XH7=new _.r4("createPollAction");var Hp8=new _.r4("hideIdentityChipAction");var u3o=new _.r4("openUpdateCommentDialogAction");var OpP=new _.r4("pinCommentAction");var N$7=new _.r4("removeCommentAction");var tyW=new _.r4("unpinCommentAction");var hT=new _.r4("updateBackstagePollAction");var rDb=new _.r4("updateCommentVoteAction");var cD7=new _.r4("commentThreadRenderer");var RZa=function(){bC.apply(this,arguments)};
_.z(RZa,bC);RZa.prototype.getAssociations=function(){return[]};
RZa.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var zZW=function(){bC.apply(this,arguments)};
_.z(zZW,bC);zZW.prototype.getAssociations=function(){return[]};
zZW.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.DEo=new _.r4("commentDialogRenderer");var I$7=new _.r4("reloadCommentsCommand");var B$o=new _.r4("updateCommentsSettingsEndpoint");var Wbw=new _.r4("commentViewModel");var ADN=new _.r4("triStateButtonViewModel");var UE7=new _.r4("voiceReplyContainerViewModel");_.LI=new _.r4("commandExecutorCommand");var Ct=new _.r4("emoji");var pHG=new _.r4("updateCreatorChannelInnertubeCommand");_.JDe=new _.r4("appendContinuationItemsAction");_.eZM=new _.r4("changeEngagementPanelVisibilityAction");_.sk=new _.r4("continuationCommand");var CY8=new _.r4("hideReportedCommentAction");var gea=new _.r4("listMutationCommand");_.yG=new _.r4("openPopupAction");var sOw=new _.r4("persistSubscriptionsDisplayPreferencesCommand");var f$G;_.YYG=new _.r4("playlistRemoveVideosAction");_.T$a=new _.r4("updatePlaylistAction");_.GQa=new _.r4("addToPlaylistCommand");_.kQ7=new _.r4("endPlaylistCommand");_.Vye=new _.r4("recoverPlaylistCommand");_.Ee8=new _.r4("refreshPlaylistCommand");_.ipG=new _.r4("refreshFormCommand");f$G=new _.r4("openOnePickAddVideoModalCommand");_.Hy5=new _.r4("reloadContinuationItemsCommand");_.wHN=new _.r4("scrollToEngagementPanelCommand");var l$e=new _.r4("selectCountryCommand");var qY5=new _.r4("showReloadUiCommand");var xE7=new _.r4("undoFeedbackAction");var QOo=new _.r4("updateButtonAction");var mE7=new _.r4("updateSubscribeButtonAction");var veP=new _.r4("updateToggleAction");var bT7=new _.r4("webNativeShareCommand");_.ZW=new _.r4("webCommandMetadata");_.Sg=new _.r4("webHandleServiceEndpointExtension");var RJq=new _.r4("webNavigationEndpointData");var hKG=new _.r4("backgroundAudioPlaybackCommand");var yVM=new _.r4("copyLinkCommand");var SRM=new _.r4("playlistVotingRefreshPopupCommand");var Fsa=new _.r4("selectChipCommand");var aXN=new _.r4("setCookieCommand");var dBa=new _.r4("setLocalStorageCommand");var jB8=new _.r4("setPrefStorageEntryCommand");var Ksa;_.$B8=new _.r4("settingsUpdateCheckboxCommand");_.Lsa=new _.r4("settingsUpdateTextCommand");_.Pt5=new _.r4("settingsUpdateOptionsCommand");Ksa=new _.r4("settingsUpdateSwitchCommand");_.ZTe=new _.r4("settingsUpdateConnectedAppRendererCommand");var oq8=new _.r4("showCreatorChatbotEngagementPanelCommand");var MQ7=new _.r4("updateTextInputFormFieldRendererCommand");var nqw=new _.r4("updateToggleButtonStateCommand");var XIb=new _.r4("updateUrlParamCommand");var HTb=new _.r4("webSubmitFormCommand");var uK8=new _.r4("channelSwitcherPageRenderer"),OTa=new _.r4("updateChannelSwitcherPageAction");_.yp=new _.r4("continuationItemRenderer");_.FI=new _.r4("richItemRenderer");var N5N=new _.r4("richSectionRenderer");_.tQ8=new _.r4("richShelfRenderer");_.rV7=new _.r4("metadataBadgeRenderer");_.cVG=new _.r4("multiPageMenuNotificationSectionRenderer");_.RK7=new _.r4("playlistLoopButtonStateRenderer");var zKa=new _.r4("claimLegacyYoutubeChannelEndpoint");var DBP=new _.r4("getNotificationMenuEndpoint");var IX8=new _.r4("getSearchInVideoCommand");_.B55=new _.r4("getTranscriptEndpoint");_.KI=new _.r4("signalServiceEndpoint");var Ws5=new _.r4("verifyAgeEndpoint");var zef=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(zef,_.ZL);zef.prototype.getPath=function(){return _.gQ(this,1)};
zef.prototype.getValue=function(){return _.gQ(this,2)};var AVa=[0,_.FH,-1];var UBa=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(UBa,_.ZL);var Ren=_.IR(UBa,[0,_.L8,AVa]);var pIW=new _.r4("dismissalEndpoint");var JV7=new _.r4("elementsCommand");_.sQ=new _.r4("innertubeCommand");var eKw=new _.r4("multipleInlinePlaybackCommand");var $Wr=new _.r4("loggingDirectives");var CtW=new _.r4("acknowledgeChannelTouStrikeCommand");var gqb=function(){bC.apply(this,arguments)};
_.z(gqb,bC);gqb.prototype.getAssociations=function(){return[]};
gqb.prototype.getTypeName=function(){return"booleanEntity"};var sBo=function(){bC.apply(this,arguments)};
_.z(sBo,bC);sBo.prototype.getAssociations=function(){return[]};
sBo.prototype.getTypeName=function(){return"stringEntity"};var qG=new _.r4("entityBatchUpdate");_.YR7=new _.r4("entityUpdateCommand");var T5W=function(){bC.apply(this,arguments)};
_.z(T5W,bC);T5W.prototype.getAssociations=function(){var b=[];this.delegate.alternateChannel&&b.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&b.push.apply(b,_.f$(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&b.push(this.delegate.oneofChannelEntity);return[].concat(_.f$(new Set(b)))};
T5W.prototype.getTypeName=function(){return"fakeChannel"};var G97=function(){bC.apply(this,arguments)};
_.z(G97,bC);G97.prototype.getAssociations=function(){var b=[];this.delegate.entryCollection&&b.push(this.delegate.entryCollection);return[].concat(_.f$(new Set(b)))};
G97.prototype.getTypeName=function(){return"fakePlaylist"};
var k98=function(){bC.apply(this,arguments)};
_.z(k98,bC);k98.prototype.getAssociations=function(){var b=[];this.delegate.parentPlaylist&&b.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var h=_.L(this.delegate.entries),y=h.next();!y.done;y=h.next())b.push.apply(b,_.f$((new VQb(y.value)).getAssociations()));return[].concat(_.f$(new Set(b)))};
k98.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var VQb=function(){vJ.apply(this,arguments)};
_.z(VQb,vJ);VQb.prototype.getAssociations=function(){var b=[];this.delegate.video&&b.push(this.delegate.video);return[].concat(_.f$(new Set(b)))};var Eqa=function(){bC.apply(this,arguments)};
_.z(Eqa,bC);Eqa.prototype.getAssociations=function(){var b=[];this.delegate.descriptionEntity&&b.push(this.delegate.descriptionEntity);this.delegate.creators&&b.push.apply(b,_.f$(this.delegate.creators));this.delegate.theBiggestFan&&b.push(this.delegate.theBiggestFan);return[].concat(_.f$(new Set(b)))};
Eqa.prototype.getTypeName=function(){return"fakeVideo"};
var iTo=function(){bC.apply(this,arguments)};
_.z(iTo,bC);iTo.prototype.getAssociations=function(){return[]};
iTo.prototype.getTypeName=function(){return"fakeVideoDescription"};var fXW=new _.r4("fantasyRosterViewModel");var wI8=new _.r4("addFollowUpSurveyCommand");var lXG=new _.r4("getSurveyCommand");var qRG=new _.r4("ratingSurveyOptionRenderer");_.s9=new _.r4("feedbackEndpoint");var xBa=new _.r4("reportHistoryTableCellRenderer"),QBG=new _.r4("reportHistoryTableTextCellRenderer"),mBa=new _.r4("reportHistoryTableReasonCellRenderer");_.vqM=new _.r4("flagEndpoint");var bE8=new _.r4("deleteFlowStepsCommand");_.hIo=new _.r4("flowNextStepCommand");_.yQ8=new _.r4("flowPrevStepCommand");var SpW=new _.r4("getFlowCommand");var F8e=new _.r4("submitFormWithValidationFlowCommand");_.aG8=new _.r4("updateFlowCommand");var deo=function(){bC.apply(this,arguments)};
_.z(deo,bC);deo.prototype.getAssociations=function(){return[]};
deo.prototype.getTypeName=function(){return"flowStateEntity"};var jbW=new _.r4("flowFormState");_.ak=new _.r4("flowStepRenderer");var $ee=new _.r4("gameCardRenderer");var L8W=new _.r4("accountLinkingStateChangedCommand");var PV7=function(){bC.apply(this,arguments)};
_.z(PV7,bC);PV7.prototype.getAssociations=function(){return[]};
PV7.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var K87=new _.r4("changeMiniAppPlayStateCommand");var ZE8=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(ZE8,_.ZL);var d2=[1,2,3];var oLN=[0,d2,uxN,_.dX,Pao];var MpN=_.IR(ZE8,oLN),nL8=_.BM(oLN);var XJ8=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(XJ8,_.ZL);var HEW=[0,_.mP,_.FH];var uVG=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(uVG,_.ZL);var OEG=[0,_.FH,_.mP,-1];var jg=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(jg,_.ZL);var NJ8=_.BM([0,1,HEW,_.oy,OEG,_.FH]);var tpa=new _.r4("miniAppScoreChallengeViewModel");var rQe=new _.r4("miniGameCardViewModel");var cQa=new _.r4("teaserCardViewModel");var RIw=function(){bC.apply(this,arguments)};
_.z(RIw,bC);RIw.prototype.getAssociations=function(){return[]};
RIw.prototype.getTypeName=function(){return"logoEntity"};var zIP=new _.r4("feedbackItemRenderer");var Dea=function(){bC.apply(this,arguments)};
_.z(Dea,bC);Dea.prototype.getAssociations=function(){return[]};
Dea.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.IG7=new _.r4("playerInterstitialRenderer");var BJM=new _.r4("getKidsBlocklistPickerCommand");_.W8G=new _.r4("updateKidsBlacklistEndpoint");_.$a=new _.r4("likeEndpoint");var AQ8,UeW,pJa;AQ8=new _.r4("addChatItemAction");UeW=new _.r4("removeChatItemAction");pJa=new _.r4("markChatItemAsDeletedAction");_.JQ8=new _.r4("setLiveChatCollapsedStateAction");var eIM=function(){bC.apply(this,arguments)};
_.z(eIM,bC);eIM.prototype.getAssociations=function(){return[]};
eIM.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var CVb=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(CVb,_.ZL);CVb.prototype.getPayloadCase=function(){return _.Wv(this,gLb)};
var gLb=[3,4];var sbG=[0,_.L8,[0,[1,2],_.dX,_.Pq,[0,_.ay,1,_.ay]]];var Yp7=[0,_.FH,-1];var TJa=[0,[1],_.dX];var Lj=[0,[1,2],_.dX,_.Pq,[0,_.oy]];var PA=[0,_.FH];var GmW=[0,[0,_.yw,_.h2,[0,_.ay,_.MM,_.ay]],1,[0,_.yw]];var kmW=[0,vv];var VpN=[0,vv];var ELa=[0,VpN,kmW];var iEN=[0,_.L8,[0,[1,2],_.dX,-1],_.yw];var fG5=[0,[2],1,_.Pq,[0,_.ay,-1,iEN]];var wJo=[0,[1],_.Pq,[0,_.ay,_.FH,_.MM,1,iEN]];var lG7=[0,_.h2,-1,LYW,_.oy];var qpN=[0,[0,Q7,-3],-4];var Kj=[0,_.yw,-3,_.FH,_.yw,_.X0,_.yw,sbG,_.yw,-2];var Ze=[0,_.L8,[0,[1,2],_.dX,-1],_.yw,_.FH];var xeG=[0,[3],Lj,[0,[2,3,4],cXN,_.dX,-2],_.Pq,[0,_.FH],_.mP];var Qb7=[0,[3,5],_.FH,_.b4,_.Pq,[0,1,_.mP,_.oy],_.oy,_.Pq,[0,_.oy,_.mP]];var mee=[0,2,_.b4,_.FH,-1];var vL5=[0,XN8];var bjG=[0,[3,4],2,ZAa,_.dX,_.FH];var hMP=[0,_.oy,-2,1,_.FH];var yTW=[0,_.FH,-1,_.oy];var SUN=[0,PA,function(){return ok},
PA,_.FH],FJ7=[0,_.oy,PA,Lj,function(){return ok},
_.FH],ok=[-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],PA,_.b4,[0,_.yw,1,_.yw,1,_.yw,1,_.oy,-1,PA],[0,1,_.yw,2,_.yw,_.oy,_.yw],1,_.b4,-1,_.FH,_.b4,2,Q7,[0,Q7,_.b4],_.FH,1,GmW,1,Lj,_.X0,1,[0,[0,_.L8,[0,_.FH,_.yw,_.oy]]],[0,_.yw,[0,_.mP,[0,_.MM]],_.mP,1,[0,M25,-1]],_.FH,[0,1,_.FH],76,_.Pq,[0,Lj,Ze,GmW,1,[0,_.L8,Ze]],1,_.Pq,[0,Lj,_.FH,_.yw],
_.Pq,[0,Lj,TJa],_.Pq,[0,Lj,TJa,_.b4],_.Pq,[0,Lj,TJa],_.Pq,[0,Lj,_.L8,PA,Lj,OAW],_.Pq,[0,Lj,PA,_.FH],_.Pq,[0,Lj,_.yw,Kj,-1,_.yw],4,_.Pq,[0,Lj,_.yw,_.b4,Kj,_.yw],_.Pq,[0,[4,9],Lj,_.oy,_.b4,_.dX,Ze,1,GmW,_.FH,_.dX,hMP],_.Pq,[0,Lj,PA,Lj,_.oy,_.FH],_.Pq,[0,_.yw,Lj,Kj,_.yw,_.FH],_.Pq,[0,Lj,PA,Lj,_.oy,_.FH],1,_.Pq,[0,Lj,_.oy,_.FH,Kj],_.Pq,[0,Lj,_.oy,[0,_.FH,_.b4],_.FH,_.b4,_.FH,_.ZS,-2,3,yTW,_.L8,yTW,yTW,hMP],_.Pq,[0,Lj,_.oy,wJo,_.L8,[0,VpN,fG5],PA,_.L8,ELa,_.FH,1,_.oy,lG7,qpN,$AM,-1],_.Pq,[0,Lj,[0,_.MM,
-1,wJo,_.L8,[0,VpN,fG5,kmW],[0,_.Hm],1,_.ay],PA,_.FH],_.Pq,[0,Lj,Ze,_.FH,[0,_.h2]],_.Pq,function(){return FJ7},
_.Pq,[0,Lj,_.b4,_.FH,-1,_.yw],_.Pq,[0,[6,7],Lj,_.L8,mee,_.oy,Ze,1,_.Pq,bjG,_.Pq,vL5],_.Pq,[0,_.L8,mee,_.oy,_.yw],_.Pq,[0,_.FH,NwW,-1],_.Pq,[0,PA,_.L8,ELa,_.FH],_.Pq,[0,Lj,PA,_.FH],_.Pq,[0,_.ZS,_.FH],_.Pq,[0,Yp7],_.Pq,[0,Yp7],_.Pq,[0,Ze],_.Pq,[0,PA,Ze],_.Pq,function(){return SUN},
_.Pq,[0,PA,_.FH],_.Pq,[0,PA,_.FH],1,_.Pq,[0,_.yw,Lj,Kj,_.yw,Kj],_.Pq,[0,_.Hm],1,_.Pq,[0],1,_.Pq,[0,PA,_.oy,Lj,_.oy],_.Pq,[0,[1,2],_.Pq,bjG,_.Pq,vL5,_.b4],_.Pq,[0,_.Hm,Ze,Qb7,_.FH,_.b4],_.Pq,[0,Qb7,_.FH,_.b4],_.Pq,[0,lG7,Ze,_.yw,qpN],_.Pq,xeG,_.Pq,[0],_.Pq,[0,_.FH,-1,_.mP],_.Pq,[0,PA,_.FH],_.Pq,[0,xeG,_.mP,_.FH],_.Pq,[0,Lj,Kj,_.yw],_.Pq,[0,Lj,Kj,_.yw],_.Pq,[0,lG7,qpN,Ze,_.X0,_.yw,$AM,-1],_.Pq,[0,Lj,Kj,_.yw]];var aea=[0,_.L8,ok];var duo=_.IR(CVb,[0,gLb,1,_.mP,_.Pq,[0,[18,22,24],aea,3,[0,aea],1,_.mP,[0,_.L8,[0,_.b4,Q7],_.b4],1,ok,-1,[0,_.SV,-2,_.X0,_.SV,-1,_.X0,_.SV,sbG,_.SV,-2],dAa,[!0,_.FH,[0,TJa,2,_.FH,_.b4,_.yw,2,_.FH,_.ZS]],[0,[1,2,3],[5,6],_.Pq,[0,_.ay],_.Pq,[0,_.ay,-1],_.Pq,[0,_.ay],1,_.Pq,Yp7,_.Pq,[0,_.FH]],[0,ok,-1],_.Hm,ok,_.Pq,ok,[0,aea],_.mP,ok,_.Pq,ok,_.FH,_.Pq,ok],_.Pq,kKo,_.mP]);var jka=new _.r4("liveChatEndpoint");var $ua=new _.r4("liveChatItemContextMenuEndpoint");var LJw=new _.r4("liveChatReplayEndpoint");_.PCW=new _.r4("emojiPickerRenderer");var KJo=new _.r4("liveChatAuthorBadgeViewModel");var Zja=new _.r4("deleteLiveChatMessageCommand");var oaM=new _.r4("liveChatActionEndpoint");var Mgw=new _.r4("createLiveChatPollEndpoint");var naW=new _.r4("manageLiveChatUserEndpoint");var XAw=new _.r4("moderateLiveChatEndpoint");_.Hj8=new _.r4("sendLiveChatMessageEndpoint");var uIa=new _.r4("sendLiveChatVoteEndpoint");var Oj8=new _.r4("clearLocationCommand");var N25=new _.r4("resolveLocationCommand");var tga=new _.r4("interactionLoggingCommandMetadata");var rTW=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(rTW,_.ZL);var cTW=function(b,h){return _.D9(b,1,h)};var RMa=[0,_.yw];var zMW=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(zMW,_.ZL);var Dua=function(b,h){return gd(b,1,rTW,h)};zMW.prototype.JSC$12505_serializeBinary=b$q([0,_.L8,RMa]);var UBk={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 Ie7={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"},
B2W={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 hwj={GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_CONTROL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_CONTROL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_TREATMENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_TREATMENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DISABLE_PLAYER_OPEN_ON_FULLSCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DISABLE_PLAYER_OPEN_ON_FULLSCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_MDX_RECONNECT_WITH_RETRY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_MDX_RECONNECT_WITH_RETRY"};_.xZN=new _.r4("logFlowLoggingEventCommand");_.c3=new _.r4("loggingContext");var WJ5=new _.r4("audioTrackSelectActionCommand");var ATb=new _.r4("captionLanguageSelectActionCommand");var Uua=new _.r4("showAudioTrackPickerActionCommand");var pAM=new _.r4("showCaptionLanguageSelectActionCommand");var JTo=new _.r4("dismissDialogEndpoint");var eMG=new _.r4("dismissPlayerOverlayCommand");var CCw=new _.r4("hideItemSectionVideosByIdCommand");var gaW=new _.r4("showMiniplayerCommand");var sk7=function(){bC.apply(this,arguments)};
_.z(sk7,bC);sk7.prototype.getAssociations=function(){return[]};
sk7.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var YUW=function(){bC.apply(this,arguments)};
_.z(YUW,bC);YUW.prototype.getAssociations=function(){return[]};
YUW.prototype.getTypeName=function(){return"downloadStatusEntity"};var T2G=function(){bC.apply(this,arguments)};
_.z(T2G,bC);T2G.prototype.getAssociations=function(){return[]};
T2G.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var GcN=function(){bC.apply(this,arguments)};
_.z(GcN,bC);GcN.prototype.getAssociations=function(){var b=[];this.delegate.downloadsList&&b.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&b.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&b.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&b.push(this.delegate.refresh);return[].concat(_.f$(new Set(b)))};
GcN.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var kca=function(){bC.apply(this,arguments)};
_.z(kca,bC);kca.prototype.getAssociations=function(){var b=[];this.delegate.refresh&&b.push(this.delegate.refresh);if(this.delegate.downloads)for(var h=_.L(this.delegate.downloads),y=h.next();!y.done;y=h.next())b.push.apply(b,_.f$((new VgP(y.value)).getAssociations()));return[].concat(_.f$(new Set(b)))};
kca.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var VgP=function(){vJ.apply(this,arguments)};
_.z(VgP,vJ);VgP.prototype.getAssociations=function(){var b=[];this.delegate.video&&b.push(this.delegate.video);this.delegate.playlist&&b.push(this.delegate.playlist);this.delegate.videoItem&&b.push(this.delegate.videoItem);this.delegate.playlistItem&&b.push(this.delegate.playlistItem);return[].concat(_.f$(new Set(b)))};var EaM=function(){bC.apply(this,arguments)};
_.z(EaM,bC);EaM.prototype.getAssociations=function(){var b=[];this.delegate.localImageEntities&&b.push.apply(b,_.f$(this.delegate.localImageEntities));return[].concat(_.f$(new Set(b)))};
EaM.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var ijN=function(){bC.apply(this,arguments)};
_.z(ijN,bC);ijN.prototype.getAssociations=function(){var b=[];this.delegate.playbackData&&b.push(this.delegate.playbackData);this.delegate.localImageEntities&&b.push.apply(b,_.f$(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&b.push(this.delegate.videoDownloadContextEntity);return[].concat(_.f$(new Set(b)))};
ijN.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var fea=function(){bC.apply(this,arguments)};
_.z(fea,bC);fea.prototype.getAssociations=function(){return[]};
fea.prototype.getTypeName=function(){return"offlineabilityEntity"};var wAP=function(){bC.apply(this,arguments)};
_.z(wAP,bC);wAP.prototype.getAssociations=function(){var b=[];this.delegate.fakeChildren&&b.push.apply(b,_.f$(this.delegate.fakeChildren));return[].concat(_.f$(new Set(b)))};
wAP.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var le5=function(){bC.apply(this,arguments)};
_.z(le5,bC);le5.prototype.getAssociations=function(){var b=[];this.delegate.video&&b.push(this.delegate.video);this.delegate.playbackData&&b.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&b.push(this.delegate.offlineVideoPolicy);return[].concat(_.f$(new Set(b)))};
le5.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var qUo=function(){bC.apply(this,arguments)};
_.z(qUo,bC);qUo.prototype.getAssociations=function(){return[]};
qUo.prototype.getTypeName=function(){return"continuationTokenEntity"};var xuP=function(){bC.apply(this,arguments)};
_.z(xuP,bC);xuP.prototype.getAssociations=function(){var b=[];this.delegate.channelOwner&&b.push(this.delegate.channelOwner);this.delegate.videos&&b.push.apply(b,_.f$(this.delegate.videos));this.delegate.collaboratorChannels&&b.push.apply(b,_.f$(this.delegate.collaboratorChannels));this.delegate.downloadState&&b.push(this.delegate.downloadState);this.delegate.refresh&&b.push(this.delegate.refresh);return[].concat(_.f$(new Set(b)))};
xuP.prototype.getTypeName=function(){return"mainPlaylistEntity"};var Qka=function(){bC.apply(this,arguments)};
_.z(Qka,bC);Qka.prototype.getAssociations=function(){var b=[];this.delegate.video&&b.push(this.delegate.video);this.delegate.channelContributor&&b.push(this.delegate.channelContributor);return[].concat(_.f$(new Set(b)))};
Qka.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var muN=function(){vJ.apply(this,arguments)};
_.z(muN,vJ);muN.prototype.getAssociations=function(){var b=[];this.delegate.recommendedVideoMetadata&&b.push.apply(b,_.f$((new vaW(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.f$(new Set(b)))};
var vaW=function(){vJ.apply(this,arguments)};
_.z(vaW,vJ);vaW.prototype.getAssociations=function(){var b=[];this.delegate.localImageEntities&&b.push.apply(b,_.f$(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&b.push(this.delegate.videoDownloadContextEntity);return[].concat(_.f$(new Set(b)))};var b0o=function(){vJ.apply(this,arguments)};
_.z(b0o,vJ);b0o.prototype.getAssociations=function(){var b=[];this.delegate.playbackPosition&&b.push(this.delegate.playbackPosition);return[].concat(_.f$(new Set(b)))};var hUP=function(){bC.apply(this,arguments)};
_.z(hUP,bC);hUP.prototype.getAssociations=function(){var b=[];this.delegate.owner&&b.push(this.delegate.owner);this.delegate.downloadState&&b.push(this.delegate.downloadState);this.delegate.userState&&b.push.apply(b,_.f$((new b0o(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&b.push.apply(b,_.f$((new muN(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.f$(new Set(b)))};
hUP.prototype.getTypeName=function(){return"mainVideoEntity"};var y0a=function(){bC.apply(this,arguments)};
_.z(y0a,bC);y0a.prototype.getAssociations=function(){var b=[];this.delegate.userChannelDetails&&b.push(this.delegate.userChannelDetails);return[].concat(_.f$(new Set(b)))};
y0a.prototype.getTypeName=function(){return"ytMainChannelEntity"};var SNo=function(){bC.apply(this,arguments)};
_.z(SNo,bC);SNo.prototype.getAssociations=function(){var b=[];this.delegate.channelOwner&&b.push(this.delegate.channelOwner);this.delegate.playbackPosition&&b.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&b.push.apply(b,_.f$(this.delegate.localImageEntities));this.delegate.downloadStatus&&b.push(this.delegate.downloadStatus);return[].concat(_.f$(new Set(b)))};
SNo.prototype.getTypeName=function(){return"ytMainVideoEntity"};var DbN=new _.r4("downloadsPageSmartDownloadsOptInBannerParams");var AJY=new _.r4("downloadsPageUpsellBannerParams");var F3a=function(){bC.apply(this,arguments)};
_.z(F3a,bC);F3a.prototype.getAssociations=function(){return[]};
F3a.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var ahW=function(){bC.apply(this,arguments)};
_.z(ahW,bC);ahW.prototype.getAssociations=function(){return[]};
ahW.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var dL8=function(){bC.apply(this,arguments)};
_.z(dL8,bC);dL8.prototype.getAssociations=function(){return[]};
dL8.prototype.getTypeName=function(){return"macroMarkerEntity"};var jzb=function(){bC.apply(this,arguments)};
_.z(jzb,bC);jzb.prototype.getAssociations=function(){return[]};
jzb.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var $LN=function(){bC.apply(this,arguments)};
_.z($LN,bC);$LN.prototype.getAssociations=function(){return[]};
$LN.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var L3o=function(){bC.apply(this,arguments)};
_.z(L3o,bC);L3o.prototype.getAssociations=function(){return[]};
L3o.prototype.getTypeName=function(){return"playerStateEntity"};var PKW=function(){bC.apply(this,arguments)};
_.z(PKW,bC);PKW.prototype.getAssociations=function(){return[]};
PKW.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var K3e=function(){bC.apply(this,arguments)};
_.z(K3e,bC);K3e.prototype.getAssociations=function(){return[]};
K3e.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var Z07=function(){bC.apply(this,arguments)};
_.z(Z07,bC);Z07.prototype.getAssociations=function(){return[]};
Z07.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.iG=new _.r4("dislikeButtonViewModel");_.E9=new _.r4("likeButtonViewModel");var oXa=new _.r4("videoSummaryContentViewModel");var M1a=new _.r4("videoSummaryParagraphViewModel");var nXN=new _.r4("changeTimelyActionVisibilityCommand");var Xye=new _.r4("hideEngagementPanelEndpoint");var H08=new _.r4("refreshPanelEndpoint");var uqM=new _.r4("scrollToSectionEndpoint");var O08=new _.r4("seekToVideoTimestampCommand");_.ge=new _.r4("showEngagementPanelEndpoint");var ND5=new _.r4("showTransientPlayerScrimOverlayCommand");var t1e=new _.r4("toggleEngagementPanelCommand");_.r0W=new _.r4("createBroadcastCommand");var c0a=new _.r4("metadataUpdateCommand");var RU8=function(){bC.apply(this,arguments)};
_.z(RU8,bC);RU8.prototype.getAssociations=function(){return[]};
RU8.prototype.getTypeName=function(){return"featuredProductsEntity"};var zUa=function(){bC.apply(this,arguments)};
_.z(zUa,bC);zUa.prototype.getAssociations=function(){return[]};
zUa.prototype.getTypeName=function(){return"pinnedProductEntity"};var DLa=function(){bC.apply(this,arguments)};
_.z(DLa,bC);DLa.prototype.getAssociations=function(){return[]};
DLa.prototype.getTypeName=function(){return"trendingOfferEntity"};_.Ih5=new _.r4("merchandiseShelfRenderer");var BDW=new _.r4("shoppingContentLineItemViewModel");var W3b=new _.r4("gridMovieRenderer");_.A0W=new _.r4("movieRenderer");var ULW=function(){bC.apply(this,arguments)};
_.z(ULW,bC);ULW.prototype.getAssociations=function(){return[]};
ULW.prototype.getTypeName=function(){return"compositeSourceEntity"};var pyM=function(){bC.apply(this,arguments)};
_.z(pyM,bC);pyM.prototype.getAssociations=function(){var b=[];this.delegate.compositeSourceKeys&&b.push.apply(b,_.f$(this.delegate.compositeSourceKeys));return[].concat(_.f$(new Set(b)))};
pyM.prototype.getTypeName=function(){return"multiviewStagingEntity"};var J0N=function(){bC.apply(this,arguments)};
_.z(J0N,bC);J0N.prototype.getAssociations=function(){var b=[];this.delegate.trackDownloadMetadatas&&b.push.apply(b,_.f$(this.delegate.trackDownloadMetadatas));return[].concat(_.f$(new Set(b)))};
J0N.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var eUe=function(){bC.apply(this,arguments)};
_.z(eUe,bC);
eUe.prototype.getAssociations=function(){var b=[];this.delegate.downloadedTracks&&b.push.apply(b,_.f$(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&b.push.apply(b,_.f$(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&b.push.apply(b,_.f$(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&b.push.apply(b,_.f$(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&b.push.apply(b,_.f$(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
b.push.apply(b,_.f$(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&b.push.apply(b,_.f$(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&b.push.apply(b,_.f$(this.delegate.metadataOnlyTracks));return[].concat(_.f$(new Set(b)))};
eUe.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var CKe=function(){bC.apply(this,arguments)};
_.z(CKe,bC);CKe.prototype.getAssociations=function(){var b=[];this.delegate.trackDownloadMetadatas&&b.push.apply(b,_.f$(this.delegate.trackDownloadMetadatas));return[].concat(_.f$(new Set(b)))};
CKe.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var gXe=function(){bC.apply(this,arguments)};
_.z(gXe,bC);gXe.prototype.getAssociations=function(){var b=[];this.delegate.playbackData&&b.push(this.delegate.playbackData);this.delegate.localImageEntities&&b.push.apply(b,_.f$(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&b.push(this.delegate.videoDownloadContextEntity);return[].concat(_.f$(new Set(b)))};
gXe.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var sz5=function(){bC.apply(this,arguments)};
_.z(sz5,bC);
sz5.prototype.getAssociations=function(){var b=[];this.delegate.musicLibraryStatusEntity&&b.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&b.push.apply(b,_.f$(this.delegate.primaryArtists));this.delegate.details&&b.push(this.delegate.details);this.delegate.userDetails&&b.push(this.delegate.userDetails);this.delegate.tracks&&b.push.apply(b,_.f$(this.delegate.tracks));this.delegate.share&&b.push(this.delegate.share);this.delegate.downloadMetadata&&b.push(this.delegate.downloadMetadata);this.delegate.refresh&&
b.push(this.delegate.refresh);return[].concat(_.f$(new Set(b)))};
sz5.prototype.getTypeName=function(){return"musicAlbumRelease"};
var YNb=function(){bC.apply(this,arguments)};
_.z(YNb,bC);YNb.prototype.getAssociations=function(){var b=[];this.delegate.albumRelease&&b.push(this.delegate.albumRelease);this.delegate.tracks&&b.push.apply(b,_.f$(this.delegate.tracks));return[].concat(_.f$(new Set(b)))};
YNb.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var TD8=function(){bC.apply(this,arguments)};
_.z(TD8,bC);TD8.prototype.getAssociations=function(){var b=[];this.delegate.albumRelease&&b.push(this.delegate.albumRelease);return[].concat(_.f$(new Set(b)))};
TD8.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var G28=function(){bC.apply(this,arguments)};
_.z(G28,bC);G28.prototype.getAssociations=function(){var b=[];this.delegate.details&&b.push(this.delegate.details);this.delegate.userDetails&&b.push(this.delegate.userDetails);return[].concat(_.f$(new Set(b)))};
G28.prototype.getTypeName=function(){return"musicArtist"};
var k27=function(){bC.apply(this,arguments)};
_.z(k27,bC);k27.prototype.getAssociations=function(){var b=[];this.delegate.parentArtist&&b.push(this.delegate.parentArtist);return[].concat(_.f$(new Set(b)))};
k27.prototype.getTypeName=function(){return"musicArtistDetail"};
var V1e=function(){bC.apply(this,arguments)};
_.z(V1e,bC);V1e.prototype.getAssociations=function(){var b=[];this.delegate.parentArtist&&b.push(this.delegate.parentArtist);return[].concat(_.f$(new Set(b)))};
V1e.prototype.getTypeName=function(){return"musicArtistUserDetail"};var EXa=function(){bC.apply(this,arguments)};
_.z(EXa,bC);EXa.prototype.getAssociations=function(){return[]};
EXa.prototype.getTypeName=function(){return"musicLibraryEdit"};var i0a=function(){bC.apply(this,arguments)};
_.z(i0a,bC);i0a.prototype.getAssociations=function(){return[]};
i0a.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var fhb=function(){bC.apply(this,arguments)};
_.z(fhb,bC);
fhb.prototype.getAssociations=function(){var b=[];this.delegate.tracks&&b.push.apply(b,_.f$(this.delegate.tracks));this.delegate.refresh&&b.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&b.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&b.push(this.delegate.details);this.delegate.downloadMetadata&&b.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&b.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&b.push(this.delegate.userDetails);this.delegate.entryCollection&&
b.push(this.delegate.entryCollection);this.delegate.share&&b.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&b.push.apply(b,_.f$((new wya(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.f$(new Set(b)))};
fhb.prototype.getTypeName=function(){return"musicPlaylist"};
var wya=function(){vJ.apply(this,arguments)};
_.z(wya,vJ);wya.prototype.getAssociations=function(){var b=[];this.delegate.creatorEntity&&b.push(this.delegate.creatorEntity);return[].concat(_.f$(new Set(b)))};var lhG=function(){bC.apply(this,arguments)};
_.z(lhG,bC);lhG.prototype.getAssociations=function(){return[]};
lhG.prototype.getTypeName=function(){return"musicShare"};var qNb=function(){bC.apply(this,arguments)};
_.z(qNb,bC);
qNb.prototype.getAssociations=function(){var b=[];this.delegate.musicLibraryStatusEntity&&b.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&b.push.apply(b,_.f$(this.delegate.artists));this.delegate.audioModeVersion&&b.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&b.push(this.delegate.videoModeVersion);this.delegate.userDetails&&b.push(this.delegate.userDetails);this.delegate.details&&b.push(this.delegate.details);this.delegate.albumRelease&&b.push(this.delegate.albumRelease);this.delegate.share&&
b.push(this.delegate.share);this.delegate.libraryEdit&&b.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&b.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&b.push(this.delegate.playbackPosition);this.delegate.lyrics&&b.push(this.delegate.lyrics);return[].concat(_.f$(new Set(b)))};
qNb.prototype.getTypeName=function(){return"musicTrack"};
var xLM=function(){bC.apply(this,arguments)};
_.z(xLM,bC);xLM.prototype.getAssociations=function(){var b=[];this.delegate.parentTrack&&b.push(this.delegate.parentTrack);return[].concat(_.f$(new Set(b)))};
xLM.prototype.getTypeName=function(){return"musicTrackDetail"};
var Qz8=function(){bC.apply(this,arguments)};
_.z(Qz8,bC);Qz8.prototype.getAssociations=function(){var b=[];this.delegate.parentTrack&&b.push(this.delegate.parentTrack);return[].concat(_.f$(new Set(b)))};
Qz8.prototype.getTypeName=function(){return"musicTrackUserDetail"};var vV=new _.r4("musicResponsiveListItemRenderer");var NNj=new _.r4("addToPlaylistEndpoint");var mLW=new _.r4("captionPickerEndpoint");var vXW=new _.r4("suggestStats");var bdW=new _.r4("backstageImageUploadEndpoint");var hG7=new _.r4("createBackstagePostDialogEndpoint");_.yJ5=new _.r4("createCommentReplyDialogEndpoint");_.SG8=new _.r4("updateCommentDialogEndpoint");_.Fx8=new _.r4("updateCommentReplyDialogEndpoint");var a4W=new _.r4("menuEndpoint");var tvY=new _.r4("modalEndpoint");var db5=new _.r4("playlistEditorEndpoint");var jDW=new _.r4("copyTextEndpoint");var $bb,LxP;$bb=new _.r4("shareEndpoint");LxP=new _.r4("shareEntityEndpoint");_.Pgo=new _.r4("shareEntityServiceEndpoint");_.Z_q=new _.r4("userFeedbackEndpoint");_.wO=new _.r4("watchEndpoint");var ZrM=new _.r4("watchPlaylistEndpoint");var Kxe=new _.r4("addUpcomingEventReminderEndpoint");_.Mu=new _.r4("getCommentsFromInboxCommand");var ZdG=new _.r4("notificationOptOutEndpoint");var oNP=new _.r4("recordNotificationInteractionsEndpoint");var MSw=new _.r4("removeUpcomingEventReminderEndpoint");_.Qd=new _.r4("getDownloadActionCommand");_.nNW=new _.r4("offlineOrchestrationActionCommand");var Xjo=function(){bC.apply(this,arguments)};
_.z(Xjo,bC);Xjo.prototype.getAssociations=function(){return[]};
Xjo.prototype.getTypeName=function(){return"captionTrack"};var Hdo=function(){bC.apply(this,arguments)};
_.z(Hdo,bC);Hdo.prototype.getAssociations=function(){return[]};
Hdo.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var ucN=function(){bC.apply(this,arguments)};
_.z(ucN,bC);ucN.prototype.getAssociations=function(){return[]};
ucN.prototype.getTypeName=function(){return"offlineVideoPolicy"};var Od8=function(){bC.apply(this,arguments)};
_.z(Od8,bC);Od8.prototype.getAssociations=function(){return[]};
Od8.prototype.getTypeName=function(){return"offlineVideoStreams"};var Ncw=function(){bC.apply(this,arguments)};
_.z(Ncw,bC);Ncw.prototype.getAssociations=function(){var b=[];this.delegate.transfer&&b.push(this.delegate.transfer);this.delegate.adsPlaybackData&&b.push.apply(b,_.f$(this.delegate.adsPlaybackData));this.delegate.drmLicense&&b.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&b.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&b.push(this.delegate.videoDownloadContextEntity);return[].concat(_.f$(new Set(b)))};
Ncw.prototype.getTypeName=function(){return"playbackData"};var tSW=function(){bC.apply(this,arguments)};
_.z(tSW,bC);tSW.prototype.getAssociations=function(){return[]};
tSW.prototype.getTypeName=function(){return"refresh"};var rJa=function(){bC.apply(this,arguments)};
_.z(rJa,bC);rJa.prototype.getAssociations=function(){var b=[];this.delegate.offlineVideoStreams&&b.push.apply(b,_.f$(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&b.push.apply(b,_.f$(this.delegate.captionTrack));return[].concat(_.f$(new Set(b)))};
rJa.prototype.getTypeName=function(){return"transfer"};var cJb=function(){bC.apply(this,arguments)};
_.z(cJb,bC);cJb.prototype.getAssociations=function(){return[]};
cJb.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var RGe=new _.r4("showMoreDrawerCommand");var zGb=new _.r4("updateEngagementPanelContentCommand");var DbW=new _.r4("getPdgBuyFlowCommand");var I45=new _.r4("liveChatPurchaseMessageEndpoint");var Bc8=new _.r4("openSuperStickerBuyFlowCommand");var Wxa=new _.r4("updatePdgFeatureEnablementCommand");var AJ8=function(){bC.apply(this,arguments)};
_.z(AJ8,bC);AJ8.prototype.getAssociations=function(){return[]};
AJ8.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var Ub5=function(){bC.apply(this,arguments)};
_.z(Ub5,bC);Ub5.prototype.getAssociations=function(){return[]};
Ub5.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.pjb=new _.r4("pdgCommentChipRenderer");_.JJ8=new _.r4("permissionRoleBottomBarRenderer");_.eGo=new _.r4("updatePermissionRoleCommand");var CgM=new _.r4("prefetchWatchCommand");var gNG=new _.r4("updatePlayerErrorMessageCommand");var ZyM=new _.r4("toggleCaptionsVisibilityCommand");var sD8=new _.r4("playerDisclosureViewModel");_.YGW=new _.r4("quickActionsViewModel");var Tc8=new _.r4("playerResponse");var Gve=new _.r4("playlistRenderer");_.kvw=new _.r4("playlistVideoListRenderer");_.nj=new _.r4("playlistEditEndpoint");var VSa=new _.r4("createImagePollCommand");var ENo=new _.r4("createQuizCommand");var idM=new _.r4("quizRenderer");var f4W=new _.r4("uploadedVideoRenderer");var wjw=new _.r4("decorateMessageEndpoint");var l4W=new _.r4("lpOfferCardOptionViewModel");var qGe=new _.r4("sfvAudioItemPlaybackCommand");var xbW=function(){bC.apply(this,arguments)};
_.z(xbW,bC);xbW.prototype.getAssociations=function(){return[]};
xbW.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.XI=new _.r4("reelNonVideoContentEndpoint");_.cd=new _.r4("reelWatchEndpoint");var QD5=new _.r4("reelActionBarViewModel");_.HA=new _.r4("reelItemRenderer");var mbw=new _.r4("reelMetapanelViewModel");_.uC=new _.r4("reelNonVideoContentRenderer");_.vNM=new _.r4("reelPlayerOverlayRenderer");var beG=new _.r4("shortsLockupViewModel");var h4W=new _.r4("sponsorButtonViewModel");var yKN=new _.r4("reelItemWatchResponse");var Stw=new _.r4("textBadgeRenderer");_.OU=new _.r4("buttonRenderer");_.Nu=new _.r4("toggleButtonRenderer");var cA5=new _.r4("switchButtonViewModel");_.F0w=new _.r4("confirmDialogRenderer");var aw5;aw5=new _.r4("menuRenderer");_.d1W=new _.r4("menuFlexibleItemRenderer");var j$o=new _.r4("pollRenderer");_.$1N=new _.r4("backgroundPromoRenderer");var PuN;_.L08=new _.r4("chipCloudRenderer");PuN=new _.r4("chipCloudChipRenderer");var K0G=new _.r4("dropdownRenderer");var Ze7=new _.r4("gridVideoRenderer");_.o9W=new _.r4("itemSectionRenderer");_.MmN=new _.r4("messageRenderer");var n97=new _.r4("sortFilterHeaderRenderer");_.tT=new _.r4("videoRenderer");var XP8=new _.r4("resolveUrlCommandMetadata");var Hee=function(){bC.apply(this,arguments)};
_.z(Hee,bC);Hee.prototype.getAssociations=function(){return[]};
Hee.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.uB8=new _.r4("getAnswerCommand");_.NC=new _.r4("searchEndpoint");var OeP=new _.r4("genAiRichTextViewModel");var uEj=new _.r4("overviewAnswerViewModel");var Naa=new _.r4("videoOverviewViewModel");var tmw=new _.r4("addToPlaylistServiceEndpoint");var rKG=new _.r4("clearSearchHistoryEndpoint");var cKw=new _.r4("clearWatchHistoryEndpoint");var R4P=new _.r4("webSerializedServiceEndpointExtension");_.z47=new _.r4("createCommentEndpoint");var D1M=new _.r4("createCommentReplyEndpoint");var Iwo=new _.r4("performCommentActionEndpoint");var BaP=new _.r4("updateCommentEndpoint");var W08=new _.r4("updateCommentReplyEndpoint");_.r2=new _.r4("createPlaylistServiceEndpoint");var AKG=new _.r4("deletePlaylistEndpoint");var U1P=new _.r4("deleteVideoEndpoint");var OyF=new _.r4("getReportFormEndpoint");var pPW=new _.r4("modifyChannelNotificationPreferenceEndpoint");var AyF;_.uM=new _.r4("offlinePlaylistEndpoint");AyF={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 Uwk;_.HC=new _.r4("offlineVideoEndpoint");Uwk={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 JKW=new _.r4("pingingEndpoint");_.e47=new _.r4("selectActiveIdentityEndpoint");var Cu7=new _.r4("setSettingEndpoint");var SdI=new _.r4("undoFeedbackEndpoint");var g98=new _.r4("unsubscribeEndpoint");_.s$W=new _.r4("updatedMetadataEndpoint");var YtG=function(){bC.apply(this,arguments)};
_.z(YtG,bC);YtG.prototype.getAssociations=function(){return[]};
YtG.prototype.getTypeName=function(){return"settingEntity"};_.Tao=new _.r4("updateLocalAppSettingCommand");var Gub=new _.r4("saveImageToDeviceEndpoint");var kuo=new _.r4("shareImageCommand");var VmM=new _.r4("sharingProviderDataCommand");var E9a=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(E9a,_.ZL);var ieP=[0,_.FH,-1];E9a.prototype.JSC$12712_serializeBinary=b$q(ieP);var fwW=_.BM(ieP);var wP8=new _.r4("userMentionSuggestionRenderer");var lwb=new _.r4("liveChatTunnelCommand");var qta=new _.r4("showSponsorshipsGiftOfferDialogCommand");var x1e=new _.r4("sponsorshipsScrollableShelfViewModel");var Q$W=new _.r4("updateUpcomingEventReminderButtonStateCommand");var m1e=new _.r4("upcomingEventReminderButtonStateRenderer");var v9W=new _.r4("subscribeEndpoint");var bfo=new _.r4("registerTasksCommand");var hca=new _.r4("hideSheetCommand");var yv5=new _.r4("hideSnackbarCommand");var SA8=new _.r4("showDialogCommand");_.zo=new _.r4("showSheetCommand");var FEb=new _.r4("showSnackbarCommand");var aVw=function(){bC.apply(this,arguments)};
_.z(aVw,bC);aVw.prototype.getAssociations=function(){return[]};
aVw.prototype.getTypeName=function(){return"chipEntity"};var dTo=function(){bC.apply(this,arguments)};
_.z(dTo,bC);dTo.prototype.getAssociations=function(){return[]};
dTo.prototype.getTypeName=function(){return"dismissState"};_.sF=new _.r4("avatarViewModel");var jp8=new _.r4("badgeViewModel");_.cA=new _.r4("buttonViewModel");_.Rk=new _.r4("chipViewModel");var $Ta=new _.r4("contentPreviewImageViewModel");var LEG=new _.r4("decoratedAvatarViewModel");_.ksy=new _.r4("engagementBarViewModel");_.Pwo=new _.r4("imageBannerViewModel");var KEa=new _.r4("lockupContentMetadataRowExtension");_.Zf7=new _.r4("lockupMetadataViewModel");_.odb=new _.r4("lockupViewModel");var Mbe=new _.r4("avatarStackViewModel");_.ndw=new _.r4("contentMetadataViewModel");var Xga=function(){bC.apply(this,arguments)};
_.z(Xga,bC);Xga.prototype.getAssociations=function(){return[]};
Xga.prototype.getTypeName=function(){return"pageHeaderEntity"};_.Hfo=new _.r4("pageHeaderViewModel");var uyP=new _.r4("snackbarViewModel");var OfM=new _.r4("thumbnailHoverOverlayToggleActionsViewModel");_.zc=new _.r4("toggleButtonViewModel");var NPW=function(){bC.apply(this,arguments)};
_.z(NPW,bC);NPW.prototype.getAssociations=function(){return[]};
NPW.prototype.getTypeName=function(){return"votingEntity"};_.V_U=new _.r4("votingViewModel");var tbb=new _.r4("sectionHeaderViewModel");var rva=new _.r4("notifyDropdownOptionSelectedCommand");var vkj=new _.r4("listViewModel");_.D5=new _.r4("listItemViewModel");var cva=new _.r4("dialogHeaderViewModel");var Rc8=function(){bC.apply(this,arguments)};
_.z(Rc8,bC);Rc8.prototype.getAssociations=function(){return[]};
Rc8.prototype.getTypeName=function(){return"dataFreshnessEntity"};var dvy=new _.r4("suspenseViewModel");var zcw=new _.r4("tooltipViewModel");var DTW=function(){bC.apply(this,arguments)};
_.z(DTW,bC);DTW.prototype.getAssociations=function(){return[]};
DTW.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var IV7=function(){bC.apply(this,arguments)};
_.z(IV7,bC);IV7.prototype.getAssociations=function(){return[]};
IV7.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var BP5=function(){bC.apply(this,arguments)};
_.z(BP5,bC);BP5.prototype.getAssociations=function(){return[]};
BP5.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.WEP=new _.r4("transcriptSubmitCaptionCorrectionCommand");var AvW=function(){bC.apply(this,arguments)};
_.z(AvW,bC);AvW.prototype.getAssociations=function(){return[]};
AvW.prototype.getTypeName=function(){return"buttonEntity"};var LK5=new _.r4("unpluggedStringRunImage");var UT7=new _.r4("tabViewModel");var pgN=new _.r4("tabbedViewModel");var Jvb=function(){bC.apply(this,arguments)};
_.z(Jvb,bC);Jvb.prototype.getAssociations=function(){return[]};
Jvb.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.ecW=new _.r4("updateDescriptionAction");var Cwe=new _.r4("updateToggleButtonTextAction");var gdM=new _.r4("showFullscreenPlayerControlsCommand");var spe=new _.r4("updateVideoMetadataCommand");_.YA8=new _.r4("autoplaySwitchButtonRenderer");var Tf;_.TPe=new _.r4("multiMarkersPlayerBarRenderer");Tf=new _.r4("chapterRenderer");var GOa=new _.r4("heatMarkerRenderer");var nvU=new _.r4("heatmapRenderer");var kOP=new _.r4("smartSkipPlayerScrimOverlayRenderer");var Vba=new _.r4("timedMarkerDecorationRenderer");var WFM=new _.r4("postWebToNativeMessageCommand");var gx=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(gx,_.ZL);gx.prototype.getMethodName=function(){return _.gQ(this,1)};var Ed8=[0,_.FH,-2];gx.prototype.JSC$12734_serializeBinary=b$q(Ed8);var ifN=_.IR(gx,Ed8);var fVw=new _.r4("whitelistEditEndpoint");var wgw=new _.r4("clearUrlParamCommand");var lV7=new _.r4("commerceActionCommand");_.qAM=new _.r4("getPaymentInstrumentsParamsCommand");var xTG=new _.r4("getPaymentsClientTokenCommand");var Qpe=new _.r4("googlePaymentBillingCommand");var mTN=new _.r4("googlePaymentPurchaseManagerCommand");_.vda=new _.r4("logGtmCommand");var bk8=new _.r4("updateCardItemOnClickCommand");_.hE5=new _.r4("ypcPauseSubscriptionCommand");_.ypa=new _.r4("ypcResumeSubscriptionCommand");var Szw=function(){bC.apply(this,arguments)};
_.z(Szw,bC);Szw.prototype.getAssociations=function(){return[]};
Szw.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var Fqw=function(){bC.apply(this,arguments)};
_.z(Fqw,bC);Fqw.prototype.getAssociations=function(){return[]};
Fqw.prototype.getTypeName=function(){return"commerceCartListEntity"};var aP8=function(){bC.apply(this,arguments)};
_.z(aP8,bC);aP8.prototype.getAssociations=function(){return[]};
aP8.prototype.getTypeName=function(){return"iconBadgeEntity"};var dpW=function(){bC.apply(this,arguments)};
_.z(dpW,bC);dpW.prototype.getAssociations=function(){return[]};
dpW.prototype.getTypeName=function(){return"pdpStateEntity"};var jx5=function(){bC.apply(this,arguments)};
_.z(jx5,bC);jx5.prototype.getAssociations=function(){return[]};
jx5.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var akI=new _.r4("ypcOffersEndpoint");var $po=new _.r4("cardItemRenderer"),LqN=new _.r4("cardItemTextRenderer");var PU8=new _.r4("commerceCartItemQuantityPickerRenderer");var KqG=new _.r4("linkCardRenderer");var rGU=new _.r4("quantityIncrementerButtonViewModel");var Zka=new _.r4("quantityIncrementerViewModel");var ooo=new _.r4("themedImageViewModel");_.M9a=new _.r4("ypcCancelRecurrenceEndpoint");var noG=new _.r4("ypcCompleteTransactionEndpoint");_.XDP=new _.r4("ypcGetCartEndpoint");_.Qe=new _.r4("ypcGetOffersEndpoint");_.De=new _.r4("ypcHandleTransactionEndpoint");var HkN=new _.r4("ypcLogWalletAnalyticDataEndpoint");_.u$G=new _.r4("ypcRedeemCodeEndpoint");var Oke=new _.r4("ypcUpdateFopEndpoint");JQ(pE(1),AQ(4));mA5((new MessageChannel).port2);var N75=function(){this.register=new Map},JVj=function(b,h,y){b=b+"_"+h;
Ik.register.has(b)?y=Ik.register.get(b):(y=y(),Ik.register.set(b,y));return y},t9a=function(b){b=_.L(b.register.values());
for(var h=b.next();!h.done;h=b.next())_.uG(h.value,"ABORTED")};
N75.prototype.clear=function(){t9a(this);this.register.clear()};
var Ik=new N75;var oqr=Date.now().toString();var XIF=nq8();var RKj={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 RfN;RfN=1;_.W5=function(b){this.veData=b};
_.I_=function(b){return new _.W5({trackingParams:b})};
_.Kh=function(b,h,y,S,F,a){var P=RfN++;return new _.W5({veType:b,veCounter:P,elementIndex:y,dataElement:h,youtubeData:S,jspbYoutubeData:F,loggingDirectives:a})};
_.d=_.W5.prototype;
_.d.getAsJson=function(){var b={};this.veData.trackingParams!==void 0?b.trackingParams=this.veData.trackingParams:(b.veType=this.veData.veType,this.veData.veCounter!==void 0&&(b.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(b.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(b.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(b.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(b.isCounterfactual=!0);
return b};
_.d.getAsJspb=function(){var b=new u8a;this.veData.trackingParams!==void 0?b.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.V7(b,2,this.veData.veType),this.veData.veCounter!==void 0&&_.V7(b,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.V7(b,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.D9(b,5,!0));if(this.veData.dataElement!==void 0){var h=this.veData.dataElement.getAsJspb();_.U_(b,7,h)}this.veData.youtubeData!==void 0&&_.U_(b,8,this.veData.jspbYoutubeData);
return b};
_.d.toString=function(){return JSON.stringify(this.getAsJson())};
_.d.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.d.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.HL("yt_logging_screen.getRootVeType",tQY);_.HL("yt_logging_screen.getCurrentCsn",_.UE);_.HL("yt_logging_screen.getCttAuthInfo",Je);_.HL("yt_logging_screen.setCurrentScreen",_.e3);var zf8=function(){this.events=new Map},DYG=function(b){var h=[];
b=_.L(b.events.values());for(var y=b.next();!y.done;y=b.next())h.push(y.value);return h};
zf8.prototype.clear=function(){this.events.clear()};var BEa=function(){this.logTransport=new Iia;this.loggedEventRegister=new zf8;this.unloggedEventRegister=new zf8;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12771_flushTimer=new _.I0(this.flushInterval);this.JSC$12771_flushTimer.listen("tick",this.flush,!1,this)};
BEa.prototype.flush=function(){if(this.eventsCount){var b={loggedEvents:DYG(this.loggedEventRegister),unloggedEvents:DYG(this.unloggedEventRegister)};if(_.r("export_player_version_to_ytconfig")){var h;(h=_.QC("PLAYER_CLIENT_VERSION"))?(h=h.split("-")[0].replace(/\./g,""),h=isNaN(Number(h))?"0":h):h="";var y=_.QC("PLAYER_CLIENT_VERSION");if(y){y=y.split("-");var S="";y.length>1&&(S=y[y.length-1]);y=ZT5(S.startsWith("canary_experiment")?"canary":S.startsWith("canary_control")?"control":"none")}else y=
"CLIENT_CANARY_STATE_UNKNOWN";b.dimensions={playerClientVersion:h,playerCanaryState:y}}this.logTransport.flush(b);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12771_flushTimer.enabled&&this.JSC$12771_flushTimer.stop()}};
var Wza=function(b){BA==null&&(BA=new BEa);var h=BA;var y=h.loggedEventRegister;b.dimensions=b.dimensions||{};b.dimensions.csn=_.UE()||"";var S=IXr(b.dimensions).join(";");if(b.records!=null)if(y.events.has(S)){var F;(F=y.events.get(S).records)==null||F.push.apply(F,_.f$(b.records))}else y.events.set(S,b);h.JSC$12771_flushTimer.enabled||h.JSC$12771_flushTimer.start();h.eventsCount++;h.eventsCount>=100&&h.flush()};var Iia=function(){};
Iia.prototype.flush=function(b,h){_.r("enable_client_sli_logging")&&_.qi("sliEventBatch",b,{sendIsolatedPayload:!!h})};var BA;var UYa;UYa=function(b){var h=AZb;b=b===void 0?{}:b;h=h.name;var y=pIU("SUCCESS");Wza({dimensions:b,records:[{name:h,state:"SLI_STATE_END",status:y}]})};
_.eK8=function(b,h,y,S){this.name=b;this.sliId=h;this.timeoutMs=y;this.statusOnTimeout=S;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.eK8.prototype.getId=function(){return this.sliId};
_.Hf=function(b,h){h=h===void 0?{}:h;b.ongoing||(b.ongoing=!0,b.dimensions=h,b.logSliId=yUk(),Wza({dimensions:b.dimensions,records:[{name:b.name,state:"SLI_STATE_START",sliId:b.logSliId}]}),b.timeoutMs>0&&(b.timeoutHandle=setTimeout(function(){_.uG(b,b.statusOnTimeout)},b.timeoutMs)))};
_.uG=function(b,h){b.ongoing&&(b.timeoutMs>0&&clearTimeout(b.timeoutHandle),b.ongoing=!1,h={dimensions:b.dimensions,records:[{name:b.name,status:pIU(h),state:"SLI_STATE_END",sliId:b.logSliId}]},Ik.register.delete(b.name+"_"+b.sliId),Wza(h))};var AZb=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var pQW=function(){bC.apply(this,arguments)};
_.z(pQW,bC);pQW.prototype.getAssociations=function(){return[]};
pQW.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var JZG=new _.r4("highlightTextDecoratorColorMapExtension");var ef8=new _.r4("styleRunColorMapExtension");var k9Y=_.bm(["data-"]),iTf={};var wIr={};var WA=function(b){this.wrappedPromise_=b===void 0?null:b;this.state_=0;this.JSC$12802_value_=null};
WA.prototype.then=function(b,h,y){return this.wrappedPromise_?this.wrappedPromise_.then(b,h,y):this.state_===1&&b?(b=b.call(y,this.JSC$12802_value_))&&typeof b.then==="function"?b:_.AT(b):this.state_===2&&h?(b=h.call(y,this.JSC$12802_value_))&&typeof b.then==="function"?b:_.CHa(b):this};
WA.prototype.getValue=function(){return this.JSC$12802_value_};
WA.prototype.isRejected=function(){return this.state_==2};
K$W(WA);_.CHa=function(b){var h=new WA;b=b===void 0?null:b;h.state_=2;h.JSC$12802_value_=b===void 0?null:b;return h};
_.AT=function(b){var h=new WA;b=b===void 0?null:b;h.state_=1;h.JSC$12802_value_=b===void 0?null:b;return h};var $e5="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var gwe=["load","abort","error"],UU=function(b,h,y){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12822_maxAspectRatio_=b;this.disableAnimation_=h===void 0?!1:h;this.disableExifRotation_=y===void 0?!1:y;this.JSC$12822_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12822_reject_=this.resolve_=null};
UU.prototype.transform=function(b){var h=this;this.mime_=b.type;HR(NSw(b),this.dataUrlRead_,this.readError_,this);HR(O9W(b.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(y,S){h.resolve_=y;h.JSC$12822_reject_=S})};
UU.prototype.dataUrlRead_=function(b){this.dataUrl_=b;this.angle_!=null&&sQw(this)};
UU.prototype.exifRead_=function(b){if(this.disableExifRotation_)this.angle_=0;else{a:if(b=new DataView(b),b.byteLength<2||b.getUint16(0)!==65496)b=-2;else{for(var h=2,y=b.byteLength;h<y;){var S=b.getUint16(h),F=b.getUint16(h+2);if(S===65505){h+=4;S=b.getUint32(h);F=b.getUint16(h+4);if(S!==1165519206||F!==0)break;h+=6;S=b.getUint16(h)===18761;h+=b.getUint32(h+4,S);F=b.getUint16(h,S);h+=2;for(var a=0;a<F;a++){if(b.getUint16(h,S)===274){h+=8;b=b.getUint16(h,S);break a}h+=12}}else if(S>>8!==255)break;
else h+=F+2}b=-1}switch(b){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&&sQw(this)};
UU.prototype.readError_=function(){this.JSC$12822_reject_()};
var sQw=function(b){zK(b.JSC$12822_image_,gwe,b.completeTransform_,!1,b);b.JSC$12822_image_.src=_.lJ(b.dataUrl_).toString();b.JSC$12822_image_.src!=wf.toString()&&b.JSC$12822_image_.src.substr(0,11)==="data:image/"||b.JSC$12822_reject_()};
UU.prototype.completeTransform_=function(){if(this.JSC$12822_image_.src!=wf.toString()){var b=_.lJ(this.dataUrl_),h=this.JSC$12822_image_.naturalHeight?this.JSC$12822_image_.naturalWidth/this.JSC$12822_image_.naturalHeight:null;this.invalidAspectRatio=h>this.JSC$12822_maxAspectRatio_||h<1/this.JSC$12822_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var y=this.JSC$12822_image_.naturalWidth,S=this.JSC$12822_image_.naturalHeight,F=h=0,a=this.JSC$12822_image_.naturalHeight?this.JSC$12822_image_.naturalWidth/
this.JSC$12822_image_.naturalHeight:null;a>this.JSC$12822_maxAspectRatio_?(y=this.JSC$12822_maxAspectRatio_*S,h=(y-this.JSC$12822_image_.naturalWidth)/2,this.cropped=!0):a<1/this.JSC$12822_maxAspectRatio_?(S=this.JSC$12822_maxAspectRatio_*y,F=(S-this.JSC$12822_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)a=y,y=S,S=a,a=h,h=F,F=a;switch(this.angle_){case 90:F-=y;break;case 180:h-=y;F-=S;break;case 270:h-=
S}this.cropped||this.angle_%360!==0?(b=document.createElement("canvas"),b.width=y||1,b.height=S||1,this.JSC$12822_image_.naturalWidth&&this.JSC$12822_image_.naturalHeight&&(y=b.getContext("2d"),y.rotate(Math.PI/180*this.angle_),y.drawImage(this.JSC$12822_image_,h,F,this.JSC$12822_image_.naturalWidth,this.JSC$12822_image_.naturalHeight)),this.transformedData=_.lJ(b.toDataURL(this.mime_))):this.transformedData=b}else this.transformedData=b;this.resolve_(this)}};var pj=function(b,h){_.eW.call(this,b);this.value=h};
_.z(pj,_.eW);
var JT=function(b,h,y,S,F,a,P){P=P===void 0?!1:P;_.TI.call(this);var K=this;this.JSC$12827_url_=b;this.channelId_=h;this.maxFileSizeMb_=y;this.JSC$12827_maxAspectRatio_=S;this.dropZoneEl_=F;this.rejectInvalidAspectRatio_=P;this.selectButtonEl_=a;this.JSC$12827_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new kL(this.dropZoneEl_);this.selectOverlay_=new Vj(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12827_image_=this.transfer_=null;this.handler_=new _.B_(this);_.pq(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(a,"click",function(){K.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.z(JT,_.TI);JT.prototype.disposeInternal=function(){for(var b=this.selectButtonEl_.nextSibling;b&&b.parentNode&&b.tagName=="INPUT";)b.parentNode.removeChild(b),b=this.selectButtonEl_.nextSibling;this.cancel();_.TI.prototype.disposeInternal.call(this)};
JT.prototype.uploadPromise=function(){if(this.JSC$12827_image_==null)return null;this.uploadPromise_||YXw(this);return this.uploadPromise_};
JT.prototype.cancel=function(){TEW(this);this.JSC$12827_image_=null};
var TEW=function(b){b.transfer_&&b.transfer_.cancel();b.transfer_=null;b.uploadPromise_=null;b.resolve_=null;b.JSC$12827_reject_=null},YXw=function(b){TEW(b);
b.transfer_=_.LDb(b.JSC$12827_url_,{"X-YouTube-ChannelId":b.channelId_},b.JSC$12827_image_);b.handler_.listenOnce(b.transfer_,"l",b.JSC$12829_onUploadComplete_);b.handler_.listenOnce(b.transfer_,"n",b.onUploadError_);b.transfer_.run();b.uploadPromise_=new Promise(function(h,y){b.resolve_=h;b.JSC$12827_reject_=y})};
_.d=JT.prototype;_.d.onChange_=function(b){b.files.length&&(this.JSC$12827_image_=b.files[0],this.JSC$12827_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12827_image_=null,this.dispatchEvent(new pj("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(YXw(this),(new UU(this.JSC$12827_maxAspectRatio_)).transform(this.JSC$12827_image_).then((0,_.i5)(this.onPreview_,this),(0,_.i5)(this.onPreviewError_,this))))};
_.d.onPreview_=function(b){if(b.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12827_image_=null),this.dispatchEvent(new pj("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;b.cropped&&this.dispatchEvent(new pj("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new pj("yt.comments.ImageUploadOverlay.CHANGE_EVENT",b.transformedData))};
_.d.onPreviewError_=function(){this.JSC$12827_image_=null;this.dispatchEvent(new pj("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.d.onHover_=function(b){b.stopPropagation();b.preventDefault();if(b.type==="dragover")b=!0;else if(b.type==="dragleave")b=!1;else return;this.dispatchEvent(new pj("yt.comments.ImageUploadOverlay.HOVER_EVENT",b))};
_.d.JSC$12829_onUploadComplete_=function(){var b=(0,_.CnP)(this.transfer_.getResponseText());this.resolve_(b.encryptedBlobId)};
_.d.onUploadError_=function(){this.JSC$12827_reject_();TEW(this)};var GBa=function(b){b=b||{};var h={},y={};this.url=b.url||"";this.args=b.args||_.lR.clone(h);this.assets=b.assets||{};this.attrs=b.attrs||_.lR.clone(y);this.fallback=b.fallback||null;this.fallbackMessage=b.fallbackMessage||null;this.html5=!!b.html5;this.disable=b.disable||{};this.loaded=!!b.loaded;this.messages=b.messages||{}};
GBa.prototype.clone=function(){var b=new GBa,h;for(h in this)if(this.hasOwnProperty(h)){var y=this[h];_.S2(y)=="object"?b[h]=_.lR.clone(y):b[h]=y}return b};var kBa,VU5,Ewa,mo,fio,wQG,lib,qX5,xYa,QQ8,mY7,vww,b1a,hx7,yCa,She,FCP,a07,dxP,jie,$xa,LC7,Pla,KC8,Z1W,oIo,MiP,nIe,X8W,sKY,H1N,uLW,O18,Nn8,ti5,rC5,cC5,RxW,zx5,Dx5,gK4,I0e,BnW,WC8,ACe,UxW,p87,JCa,exo,Cl8,gIW,siG,YhP,TnP,Gdb,kde,eg,Via,EI7,i18,f0w,w8N,l0a,qh5,xxW,QiW,mxW,vIa,bXM,hQo,yaW,SHP,FZ8,aYo,djG,j9N,eeq,$jb,LZa,PQG,KZ7,ZXa,oMa,Mqw,nM7,XxM,HXW,u1G,OXW,NpW,tqM,rae,caM,RQe,zQ5,DjW,IY8,BpM,WZw,AaW,Uj7,pxP;kBa=["account/accounts_list"];VU5=["acknowledge_channel_tou_strike"];Ewa=["notification/add_upcoming_event_reminder"];
_.ire=["att/get"];mo=["browse","music/browse","streaming_browse","unplugged/browse"];fio=["channel/claim_legacy_youtube_channel"];wQG=["history/clear_search_history"];lib=["history/clear_watch_history"];qX5=["comment/perform_comment_action"];xYa=["comment/get_comment_replies"];QQ8=["ypc/commerce_action"];mY7=["backstage/create_post"];vww=["live/create_broadcast"];b1a=["channel/create_channel"];hx7=["comment/create_comment_reply"];yCa=["comment/create_comment"];She=["live_chat/create_poll"];FCP=["playlist/create"];
a07=["decorate_message"];dxP=["live_chat/delete_message"];jie=["playlist/delete"];$xa=["video/delete"];LC7=["like/dislike"];Pla=["dismissal/dismiss"];KC8=["flag/flag"];Z1W=["flow"];oIo=["account/account_menu"];MiP=["playlist/get_add_to_playlist"];nIe=["get_answer"];X8W=["channel/get_channel_creation_form"];sKY=["offline/get_download_action"];H1N=["kids/get_kids_blocklist_picker"];uLW=["live_chat/get_item_context_menu"];O18=["live_chat/get_live_chat_message_buy_flow"];Nn8=["live_chat/get_live_chat_replay"];
ti5=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];rC5=["live_chat/get_live_chat_super_sticker_buy_flow"];cC5=["notification/get_notification_menu"];RxW=["playlist/get_settings_editor"];zx5=["backstage/get_post_video_preview"];Dx5=["account/get_profile_card"];gK4=["share/get_share_panel"];I0e=["share/get_sharing_provider_data"];BnW=["get_survey"];WC8=["notification/get_unseen_count"];ACe=["get_user_mention_suggestions"];UxW=["get_watch"];p87=["guide"];
JCa=["feedback"];exo=["kids/update_blacklist"];Cl8=["like/like"];gIW=["live_chat/live_chat_action"];siG=["live_chat/manage_user"];YhP=["video_manager/metadata_update"];TnP=["live_chat/moderate"];Gdb=["notification/modify_channel_preference"];kde=["notification/opt_out"];eg=["get_panel","get_posts_by_host_panel"];Via=["player"];EI7=["browse/edit_playlist"];i18=["notification/record_interactions"];f0w=["reel/reel_item_watch"];w8N=["reel/reel_watch_sequence"];l0a=["like/removelike"];qh5=["notification/remove_upcoming_event_reminder"];
xxW=["flag/get_form"];QiW=["miniapp/report_value"];mxW=["navigation/resolve_url"];vIa=["channel/reveal_business_email"];bXM=["in_video/search"];hQo=["search","sfv/search","unplugged/search"];yaW=["live_chat/send_message"];SHP=["live_chat/send_live_chat_vote"];FZ8=["account/set_setting"];aYo=["submit_caption_correction"];djG=["submit_form"];j9N=["subscription/subscribe"];eeq=["get_transcript"];$jb=["resolve_location","unplugged/resolve_location"];LZa=["subscription/unsubscribe"];PQG=["backstage/update_post"];
KZ7=["channel_edit/update_channel_page_settings"];ZXa=["comment/update_comment_reply"];oMa=["comment/update_comment"];Mqw=["comment/update_comments_settings"];nM7=["creator/update_creator_channel"];XxM=["pdg/update_enablement"];HXW=["updated_metadata"];u1G=["channel_edit/validate_channel_handle"];OXW=["verify_age"];NpW=["next","unplugged/watch_next"];tqM=["whitelist/edit"];rae=["ypc/cancel_recurrence"];caM=["ypc/complete_transaction"];RQe=["ypc/get_cart"];zQ5=["ypc/get_fix_instrument_params"];
DjW=["ypc/get_offers"];IY8=["ypc/get_payment_instruments_params"];BpM=["ypc/handle_transaction"];WZw=["ypc/log_payment_server_analytics"];AaW=["ypc/pause_subscription"];Uj7=["ypc/redeem_code"];pxP=["ypc/resume_subscription"];var Ja8=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,272018,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,276243,93911,274188,276651,106531,257234,252598,252597,252600,252599,252596,225031,
177843,27259,27262,27263,21759,283670,160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,273766,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,
180635,74610,45707,83962,83970,46713,166591,89711,74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,276200,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,
162711,235234,162712,80357,243315,86113,72598,168413,72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,273905,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,
197891,156655,156654,121692,211414,211411,211412,211413,211403,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,282159,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,
221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,281332,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,293324,32633,74858,271884,222932,279119,271886,213915,225216,251244,258251,218674,251266,258250,251265,251245,271885,156999,3945,16989,45520,25488,
25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,282181,278926,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,283898,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,
36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,279531,50663,36387,14908,37533,105443,61635,62274,161670,
133818,182119,65702,65703,65701,76256,263843,196075,194768,252201,194769,191885,281480,233634,265810,194770,195350,195349,194771,293041,293042,293043,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,272252,253833,253834,204574,191390,179556,238596,212661,191392,197826,191393,204573,36216,28237,241212,272049,173718,39553,192547,29222,26107,241211,38050,26108,275810,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,
198313,59149,181013,278306,282472,277848,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,294119,257268,63349,281127,240553,95101,75240,27039,68823,21537,83464,75707,252904,170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,282218,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,
11070,11074,17880,270560,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,271622,271813,261210,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,273960,282111,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,
254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,275869,271673,274637,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,282208,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,
273646,273647,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,267645,275782,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,268574,254884,
258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,269990,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,281302,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,279755,267693,267694,267578,262801,271218,266131,266132,267977,267579,262800,
262799,262802,267580,262798,267695,267581,273232,82039];var ow=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.HL("yt.msgs_",ow);var Cj=new _.ca("ACTION_ROUTER_TOKEN");_.g2=function(){this.autonavState_=_.r("kevlar_is_pupi_enabled")?2:NJY()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.g2.prototype.getState=function(){return this.autonavState_};
_.g2.prototype.pause=function(b){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=b):this.autonavState_==1&&(this.disabledAutonavPauseReason_=b)};
_.g2.prototype.setState=function(b,h,y){h&&(this.autoplayChangedByUser=!0);h=this.autonavState_===3||b===3;this.autonavState_!=b&&(this.autonavState_=b,b!=3&&_.tpk(b==2),b=_.r("kevlar_is_pupi_enabled")?y||h:!0,_.$J.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,b,y))};
_.g2.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.$Y(_.g2);var sU=function(){this.jp=!1};var Ya={},pJk=(Ya.auto_search="LATENCY_ACTION_AUTO_SEARCH",Ya.ad_to_ad="LATENCY_ACTION_AD_TO_AD",Ya.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",Ya.app_startup="LATENCY_ACTION_APP_STARTUP",Ya.browse="LATENCY_ACTION_BROWSE",Ya.cast_splash="LATENCY_ACTION_CAST_SPLASH",Ya.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",Ya.channels="LATENCY_ACTION_CHANNELS",Ya.chips="LATENCY_ACTION_CHIPS",Ya.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",Ya.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
Ya.editor="LATENCY_ACTION_EDITOR",Ya.embed="LATENCY_ACTION_EMBED",Ya.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",Ya.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",Ya.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",Ya.explore="LATENCY_ACTION_EXPLORE",Ya.favorites="LATENCY_ACTION_FAVORITES",Ya.home="LATENCY_ACTION_HOME",Ya.inboarding="LATENCY_ACTION_INBOARDING",Ya.landing="LATENCY_ACTION_LANDING",Ya.learning="LATENCY_ACTION_LEARNING",
Ya.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",Ya.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",Ya.library="LATENCY_ACTION_LIBRARY",Ya.live="LATENCY_ACTION_LIVE",Ya.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",Ya.management="LATENCY_ACTION_MANAGEMENT",Ya.mini_app="LATENCY_ACTION_MINI_APP_PLAY",Ya.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",Ya.onboarding="LATENCY_ACTION_ONBOARDING",Ya.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
Ya.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",Ya.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",Ya.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",Ya.prebuffer="LATENCY_ACTION_PREBUFFER",Ya.prefetch="LATENCY_ACTION_PREFETCH",Ya.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",Ya.profile_switcher="LATENCY_ACTION_LOGIN",Ya.projects="LATENCY_ACTION_PROJECTS",Ya.reel_watch="LATENCY_ACTION_REEL_WATCH",Ya.results="LATENCY_ACTION_RESULTS",Ya.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
Ya.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",Ya.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",Ya.review="LATENCY_ACTION_REVIEW",Ya.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",Ya.search_ui="LATENCY_ACTION_SEARCH_UI",Ya.search_suggest="LATENCY_ACTION_SUGGEST",Ya.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",Ya.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",Ya.seek="LATENCY_ACTION_PLAYER_SEEK",Ya.settings="LATENCY_ACTION_SETTINGS",Ya.store="LATENCY_ACTION_STORE",
Ya.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",Ya.tenx="LATENCY_ACTION_TENX",Ya.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",Ya.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",Ya.watch="LATENCY_ACTION_WATCH",Ya.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",Ya["watch,watch7"]="LATENCY_ACTION_WATCH",Ya["watch,watch7_html5"]="LATENCY_ACTION_WATCH",Ya["watch,watch7ad"]="LATENCY_ACTION_WATCH",Ya["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",Ya.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
Ya.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",Ya.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",Ya.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",Ya.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",Ya.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",Ya.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",Ya.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",Ya),eQW=0;var me5=function(b,h){q8.call(this,1,arguments);this.timer=h};
_.z(me5,q8);var Qbj=new lTN("aft-recorded",me5);var gLF=_.S5.ytLoggingGelSequenceIdObj_||{};_.HL("ytLoggingGelSequenceIdObj_",gLF);var Tc=_.S5.ytLoggingLatencyUsageStats_||{};_.HL("ytLoggingLatencyUsageStats_",Tc);var Gc=function(){this.cleanupJob=0},TJk=function(){Gc.instance||(Gc.instance=new Gc);
return Gc.instance};
_.d=Gc.prototype;_.d.baseline=function(b,h,y){ka(this,"baseline_"+b)||_.qi("latencyActionBaselined",{clientActionNonce:b},{timestamp:h,cttAuthInfo:y})};
_.d.tick=function(b,h,y,S){ka(this,"tick_"+b+"_"+h)||_.qi("latencyActionTicked",{tickName:b,clientActionNonce:h},{timestamp:y,cttAuthInfo:S})};
_.d.info=function(b,h,y){var S=Object.keys(b).join("");ka(this,"info_"+S+"_"+h)||(b=Object.assign({},b),b.clientActionNonce=h,_.qi("latencyActionInfo",b,{cttAuthInfo:y}))};
_.d.jspbInfo=function(b,h,y){for(var S="",F=0;F<sf(b).length;F++)sf(b)[F]!==void 0&&(S=F===0?S.concat(""+F):S.concat("_"+F));ka(this,"info_"+S+"_"+h)||(_.kb(b,2,h),h={cttAuthInfo:y},y=_.r("jspb_sparse_encoded_pivot")?new k2([{}]):new k2,_.pc(y,7,eOG,b),sbI("latencyActionInfo",y,h))};
_.d.span=function(b,h,y){var S=Object.keys(b).join("");ka(this,"span_"+S+"_"+h)||(b.clientActionNonce=h,_.qi("latencyActionSpan",b,{cttAuthInfo:y}))};
var ka=function(b,h){Tc[h]=Tc[h]||{count:0};var y=Tc[h];y.count++;y.time=(0,_.NO)();b.cleanupJob||(b.cleanupJob=_.VT(_.xP,function(){var S=(0,_.NO)(),F;for(F in Tc)Tc[F]&&S-Tc[F].time>6E4&&delete Tc[F];b&&(b.cleanupJob=0)},5E3));
return y.count>5?(y.count===6&&Math.random()*1E5<1&&(y=new _.Gn("CSI data exceeded logging limit with key",h.split("_")),h.indexOf("plev")>=0||_.vX(y)),!0):!1};var CQN,gMo;CQN=window;gMo=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.rh=CQN.performance||CQN.mozPerformance||CQN.msPerformance||CQN.webkitPerformance||new gMo;var xeI=!1,kmN=!1,vLM=(0,_.i5)(_.rh.clearResourceTimings||_.rh.webkitClearResourceTimings||_.rh.mozClearResourceTimings||_.rh.msClearResourceTimings||_.rh.oClearResourceTimings||_.C8,_.rh);var T8n=_.bN(function(b,h,y,S,F,a,P){if(!_.r("web_csi_action_sampling_enabled")||!_.Oa(a).actionDisabled){var K=P==null?void 0:P.spanStatus;P=P==null?void 0:P.rootSpanNonce;var n=_.Nt(a);if(n.gelSpans)n.gelSpans[b]=!0;else{var X={};n.gelSpans=(X[b]=!0,X)}eQW++;b={spanName:b,spanLengthUsec:String(Math.round(h*1E3)),spanNonce:eQW};P&&(b.rootSpanNonce=P);K&&(b.spanStatus=K);S&&(b.spanInfo=S);F&&(b.parentSpanNonce=F);y&&(b.spanStartTimeUsec=String(Math.round(y*1E3)));_.tL(a||"").span[String(b.spanName)]=
b;y=_.Nt(a);y.gelSpans||(y.gelSpans={});_.gO(y.gelSpans,b);y=BJ4(a);a=_.Oa(a).cttAuthInfo;TJk().span(b,y,a);return b.spanNonce}}),s9N=window;
s9N.ytcsi&&(s9N.ytcsi.infoGel=_.WT,s9N.ytcsi.tick=_.pI);var PCU=function(b){q8.call(this,1,arguments);this.csn=b};
_.z(PCU,q8);var vgj=new lTN("screen-created",PCU),Dun=[],LJ8=zMU,Iej=0,TY=new Map,KJf=new Map,Zjn=new Map;var etU=Symbol("Df"),Qh=new WeakMap;var VG=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},R_=function(){VG.instance||(VG.instance=new VG);
return VG.instance};
_.d=VG.prototype;_.d.setClient=function(b){this.client=b};
_.d.JSC$12911_newScreen=function(){this.clear();this.csn=_.UE()};
_.d.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.d.reportShown=function(b,h,y,S){var F=this.JSC$12911_getTrackingParams(b),a=b.visualElement?b.visualElement:F;h=this.shownElements.has(a);var P=this.visibleState.get(a);this.shownElements.add(a);this.visibleState.set(a,!0);b.impressionLog&&!h&&b.impressionLog();if(F||b.visualElement)if(y=YHP(this,b,y))if(a=Tpa(this,b),EU(this,b)||a){F=b.visualElement?b.visualElement:_.I_(F);var K=b.interactionLoggingClientData;a||h?EU(this,b)&4?P||N2M(this.client,y,F,K):EU(this,b)&1&&!h&&HjY(this.client,y,F,K,S):
HjY(this.client,y,F,K,S)}};
_.d.reportHidden=function(b,h,y,S){var F=this.JSC$12911_getTrackingParams(b),a=b.visualElement?b.visualElement:F;h=this.hiddenElements.has(a);var P=this.visibleState.get(a);this.hiddenElements.add(a);this.visibleState.set(a,!1);if(P===!1)return!0;if(!F&&!b.visualElement)return!1;y=YHP(this,b,y);if(!y||!EU(this,b)&&Tpa(this,b))return!1;F=b.visualElement?b.visualElement:_.I_(F);EU(this,b)&8?tgn(this.client,y,F,void 0,void 0,S):EU(this,b)&2&&!h&&(b=this.client,S=Yp({cttAuthInfo:Je(y)||void 0,automatedLogEventSource:S},
y),h={csn:y,ve:F.getAsJson(),eventType:2},y==="UNDEFINED_CSN"?kp("visualElementHidden",S,h):b?wd("visualElementHidden",h,b,S):_.qi("visualElementHidden",h,S));return!0};
_.d.JSC$12911_getTrackingParams=function(b){var h=this.getData(b),y,S;if(_.r("il_use_view_model_logging_context")&&(h==null?0:(y=h.context)==null?0:(S=y.loggingContext)==null?0:S.loggingDirectives))return h.context.loggingContext.loggingDirectives.trackingParams||"";var F,a;if(h==null?0:(F=h.rendererContext)==null?0:(a=F.loggingContext)==null?0:a.loggingDirectives)return h.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(h==null?0:h.loggingDirectives)return h.loggingDirectives.trackingParams||
"";var P;return((P=b.veContainer)==null?0:P.trackingParams)?b.veContainer.trackingParams:(h==null?void 0:h.trackingParams)||""};
_.d.JSC$12911_elementShouldLogGesture=function(b,h){b=this.getData(b);return!!((Math.floor(Number(b&&b.loggingDirectives&&b.loggingDirectives.gestures&&b.loggingDirectives.gestures.types||""))||0)&h)};
_.d.JSC$12911_getNearestParentVe=function(b){var h=this.JSC$12911_getTrackingParams(b);return b.visualElement?b.visualElement:h?_.I_(h):b.parentElement?this.JSC$12911_getNearestParentVe(b.parentElement):null};
var YHP=function(b,h,y){var S=_.UE(y);return b.csn===null||S===b.csn||y?S:(b=new _.Gn("VisibilityLogger called before newScreen",{caller:h.tagName,previous_csn:b.csn,current_csn:S}),_.vX(b),null)};
VG.prototype.getData=function(b){var h,y=b.data||((h=b.props)==null?void 0:h.data);if(!y||b.isWebComponentWrapper){var S;y=(S=Qh.get(b))==null?void 0:S[etU]}return y};
var Tpa=function(b,h){var y;return!((y=b.getData(h))==null||!y.loggingDirectives)},EU=function(b,h){b=b.getData(h);
return Math.floor(Number(b&&b.loggingDirectives&&b.loggingDirectives.visibility&&b.loggingDirectives.visibility.types||""))||1};var iC;iC=function(){};
_.OQ=function(){iC.instance||(iC.instance=new iC);return iC.instance};
iC.prototype.setClient=function(b){_.bN(R_().setClient).bind(R_())(b)};
_.GeW=function(){_.OQ();_.bN(R_().JSC$12911_newScreen).bind(R_())()};
iC.prototype.clear=function(){_.bN(R_().clear).bind(R_())()};
iC.prototype.reportShown=function(b,h,y,S){_.bN(R_().reportShown).bind(R_())(b,h,y,S)};
iC.prototype.reportHidden=function(b,h,y,S){return _.bN(R_().reportHidden).bind(R_())(b,h,y,S)};
var fDj=function(b,h){return _.bN(R_().JSC$12911_getTrackingParams).bind(R_())(h)},CTj=function(b,h){return _.bN(R_().JSC$12911_getNearestParentVe).bind(R_())(h)};var fj,keo;fj=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};
_.rU=function(){fj.instance||(fj.instance=new fj);return fj.instance};
fj.prototype.setClient=function(b){this.client=b};
keo=function(b,h,y){y=y===void 0?{}:y;_.bN(function(){var S,F,a,P=((S=_.c(h==null?void 0:h.commandMetadata,_.ZW))==null?void 0:S.rootVe)||((F=_.c(h==null?void 0:h.commandMetadata,tga))==null?void 0:(a=F.screenVisualElement)==null?void 0:a.uiType);if(P){S=_.c(h==null?void 0:h.commandMetadata,XP8);if(S==null?0:S.parentTrackingParams){var K=_.I_(S.parentTrackingParams);if(S.parentCsn)var n=S.parentCsn}else y.clickedVisualElement?K=y.clickedVisualElement:h.clickTrackingParams&&(K=_.I_(h.clickTrackingParams));
a:{S=_.c(h,_.wO);F=_.c(h,ZrM);if(S){if(F=rQ5(S,"VIDEO")){S={token:F,videoId:S.videoId};break a}}else if(F&&(S=rQ5(F,"PLAYLIST"))){S={token:S,playlistId:F.playlistId};break a}S=void 0}y=Object.assign({},{cttAuthInfo:S,parentCsn:n},y);if(_.r("expectation_logging")){var X;y.loggingExpectations=((X=_.c(h==null?void 0:h.commandMetadata,tga))==null?void 0:X.loggingExpectations)||void 0}_.w2(b,P,K,y)}else _.vX(new _.Gn("Error: Trying to create a new screen without a rootVeType",h))})()};
_.w2=function(b,h,y,S){S=S===void 0?{}:S;_.bN(function(){Ja8.includes(h)||(_.vX(new _.Gn("createClientScreen() called with a non-page VE",h)),h=83769);S.isHistoryNavigation||(b.forwardHistoryStack=[],b.backHistoryStack.push({rootVe:h,key:S.key||""}));b.graftQueue=[];b.stateChangedQueue=[];S.dataPromises?Vqw(b,h,y,S):EMw(b,h,y,S)})()};
_.iX5=function(b,h,y){y=y===void 0?0:y;_.bN(function(){h.then(function(S){b.pendingScreenCreation.has(y)&&b.pendingScreenFn&&b.pendingScreenFn();var F=_.UE(y),a=_.Ae(y);if(F&&a){var P={automatedLogEventSource:3},K;(S==null?0:(K=S.response)==null?0:K.trackingParams)&&GY(b.client,F,a,_.I_(S.response.trackingParams),!1,P);var n;(S==null?0:(n=S.playerResponse)==null?0:n.trackingParams)&&GY(b.client,F,a,_.I_(S.playerResponse.trackingParams),!1,P)}})})()};
fj.prototype.graftServerVe=function(b,h,y){var S=this;return _.bN(function(){var F=_.I_(b);_.lC(S,F,h,y);return F})()};
_.g_n=function(b,h,y,S){return _.r("enable_client_ve_spec")&&h.clientVeSpec?(h=_.Kh(h.clientVeSpec.uiType,void 0,h.clientVeSpec.elementIndex,h.clientVeSpec.clientYoutubeData,void 0,h),_.lC(b,h,y,S)?h:null):h.trackingParams?b.graftServerVe(h.trackingParams,y,S):null};
_.NJ=function(b,h,y,S){return _.bN(function(){if(!h.veType)return _.mm(new _.Gn("Error: Trying to graft a client VE without a veType.")),null;if(h.visibilityTypes){var F=h.visibilityTypes.reduce(function(a,P){return a|P});
F={visibility:{types:String(F)}}}F=_.Kh(h.veType,h.visualElement,h.elementIndex,h.clientYouTubeData,void 0,F);return _.lC(b,F,y,S)?F:null})()};
_.lC=function(b,h,y,S){S=S===void 0?0:S;return _.bN(function(){if(b.pendingScreenCreation.has(S))return b.graftQueue.push([h,y]),!0;var F=_.UE(S),a=y||_.Ae(S);if(F&&a){if(_.r("combine_ve_grafts")){var P=b.cachedVisualElements.get(a.toString());P?P.push(h):(b.cachedRootVisualElements.set(a.toString(),a),b.cachedVisualElements.set(a.toString(),[h]));b.attachTimeout||(b.attachTimeout=_.VT(_.xP,function(){fYa(b,F)},1200))}else GY(b.client,F,a,h);
return!0}return!1})()};
_.qu=function(b,h,y){y=y===void 0?0:y;var S=b.recurringGrafts.get(y)||new Map;if(_.r("smarter_ve_dedupping"))for(var F=Array.from(S.keys()),a=0;a<F.length;a++){var P=void 0,K=void 0;var n=h;var X=F[a];X.isClientVe()&&n.isClientVe()?(P=n.getAsJson(),K=X.getAsJson(),n=P.veType!==K.veType||P.elementIndex!==K.elementIndex||P.dataElement!==K.dataElement||n.getLoggingDirectives()!==X.getLoggingDirectives()?!1:!0):n=X.veData.trackingParams!==void 0&&n.veData.trackingParams!==void 0?((K=n.veData)==null?void 0:
K.trackingParams)===((P=X.veData)==null?void 0:P.trackingParams):!1;if(n)return}else if(S.has(h))return;S.set(h,void 0);b.recurringGrafts.set(y,S);_.UE(y)==="UNDEFINED_CSN"||b.pendingScreenCreation.has(y)||_.lC(b,h,void 0,y)};
_.xa=function(b,h,y,S){S=_.UE(S===void 0?0:S);if(!S)return!1;cTU(b.client,S,h,y);return!0};
_.QG=function(b,h,y,S){if(!h)return!1;S=_.UE(S===void 0?0:S);if(!S)return!1;cTU(b.client,S,_.I_(h),y);return!0};
_.Vd=function(b,h){var y=h.getScreenLayer&&h.getScreenLayer();if(h.visualElement)return _.xa(b,h.visualElement,void 0,y);h=fDj(_.OQ(),h);return _.QG(b,h,void 0,y)};
fj.prototype.clickCommand=function(b,h,y){return _.QG(this,b.clickTrackingParams,h,y===void 0?0:y)};
fj.prototype.stateChanged=function(b,h,y){this.visualElementStateChanged(_.I_(b),h,y===void 0?0:y)};
fj.prototype.visualElementStateChanged=function(b,h,y){y=y===void 0?0:y;y===0&&this.pendingScreenCreation.has(y)?this.stateChangedQueue.push([b,h]):this.logStateChanged(b,h,y)};
fj.prototype.logStateChanged=function(b,h,y){y=y===void 0?0:y;var S=_.UE(y);b=b||_.Ae(y);return S&&b?(RMk(this.client,S,b,h),!0):!1};
var Vqw=function(b,h,y,S){S=S===void 0?{}:S;b.pendingScreenCreation.add(S.layer||0);b.pendingScreenFn=function(){EMw(b,h,y,S);var P=_.Ae(S.layer);if(P){for(var K=_.L(b.graftQueue),n=K.next();!n.done;n=K.next())n=n.value,_.lC(b,n[0],n[1]||P,S.layer);P=_.L(b.stateChangedQueue);for(K=P.next();!K.done;K=P.next())K=K.value,b.logStateChanged(K[0],K[1])}};
y||_.UE(S.layer)||b.pendingScreenFn();if(S.dataPromises)for(var F=_.L(S.dataPromises),a=F.next();!a.done;a=F.next())_.iX5(b,a.value,S.layer);else _.QT(Error("Ef"))},EMw=function(b,h,y,S){S=S===void 0?{}:S;
var F=void 0;S.layer||(S.layer=0);F=S.parentLayer!==void 0?S.parentLayer:S.layer;var a=_.UE(F);F=_.Ae(F);var P=y||F,K;P&&(S.parentCsn!==void 0?K={clientScreenNonce:S.parentCsn,visualElement:P}:a&&a!=="UNDEFINED_CSN"&&(K={clientScreenNonce:a,visualElement:P}));var n,X=_.QC("EVENT_ID");a==="UNDEFINED_CSN"&&X&&(n={servletData:{serializedServletEventId:X}});_.r("combine_ve_grafts")&&a&&fYa(b,a);_.r("no_client_ve_attach_unless_shown")&&P&&a&&XA8(P,a);try{var u=_.oa4(b.client,h,K,S.csnToClone,S.cttAuthInfo,
n,S.implicitGestureType,void 0,S.loggingExpectations,S.automatedLogEventSource)}catch(t){_.bh(t,{rootVeType:h,rootVe:F,parentVisualElement:y,currentCsn:a,parentEl:K,csnToClone:S.csnToClone});_.QT(t);return}_.e3(u,h,S.layer,S.cttAuthInfo);a&&a!=="UNDEFINED_CSN"&&F&&!zKk(a)&&tgn(b.client,a,F,!0);b.backHistoryStack[b.backHistoryStack.length-1]&&!b.backHistoryStack[b.backHistoryStack.length-1].csn&&(b.backHistoryStack[b.backHistoryStack.length-1].csn=u||"");_.WT({clientScreenNonce:u});_.GeW();var O=_.Ae(S.layer);
a&&a!=="UNDEFINED_CSN"&&O&&_.r("music_web_mark_root_visible")&&_.iE(u,O);b.pendingScreenCreation.delete(S.layer||0);b.pendingScreenFn=void 0;var N;(N=b.recurringGrafts.get(S.layer))==null||N.forEach(function(t,R){t?_.lC(b,R,t,S.layer):O&&_.lC(b,R,O,S.layer)});
wxb(b)},wxb=function(b){for(var h=0;h<b.afterNewScreenOneOffJobs.length;h++){var y=b.afterNewScreenOneOffJobs[h];
try{y()}catch(S){_.QT(S)}}for(h=b.afterNewScreenOneOffJobs.length=0;h<b.afterNewScreenRecurringJobs.length;h++){y=b.afterNewScreenRecurringJobs[h];try{y()}catch(S){_.QT(S)}}},fYa=function(b,h){if(h===void 0)for(var y=cVI(),S=0;S<y.length;S++)y[S]!==void 0&&fYa(b,y[S]);
else b.cachedVisualElements.forEach(function(F,a){(a=b.cachedRootVisualElements.get(a))&&Mg8(b.client,h,a,F)}),b.cachedVisualElements.clear(),b.cachedRootVisualElements.clear(),b.attachTimeout=void 0};var mJ=function(b){b=b===void 0?{layer:0}:b;this.jp=!1;this.createScreenConfig=b;b={};this.qoO=(b.response=!1,b.playerResponse=!1,b)};
_.z(mJ,sU);mJ.prototype.validate=function(b){return!(!b.data||!b.data.response&&!b.data.playerResponse)};
mJ.prototype.handle=function(b){var h=_.rU(),y=this.createScreenConfig.layer;b.data.response&&b.data.response.trackingParams&&!this.qoO.response&&(h.graftServerVe(b.data.response.trackingParams,void 0,y),this.qoO.response=!0);b.data.playerResponse&&b.data.playerResponse.trackingParams&&!this.qoO.playerResponse&&(h.graftServerVe(b.data.playerResponse.trackingParams,void 0,y),this.qoO.playerResponse=!0)};var vA=function(){this.xx=_.wS();this.kY=[];this.kBZ=0};
vA.prototype.processChunk=function(b){if(b){for(var h=_.L(this.kY),y=h.next();!y.done;y=h.next())y=y.value,y.validate(b)&&(y.handle(b),y.jp=!0);_.pI("np"+this.kBZ);this.kBZ++}};var pA4=function(b,h,y){y=y===void 0?{}:y;this.name=b;this.id=my.nextSpanId++;this.sessionId=my.sessionId;this.attributes=h;this.status="SPAN_STATUS_UNSET";var S;this.startTime=(S=y.startTime)!=null?S:(0,_.NO)();this.isActiveSpan=y.active;if(b=my.stack[my.stack.length-1])this.parentId=b.id,b.children||(b.children=[]),b.children.push(this);b=_.L(my.processors);for(h=b.next();!h.done;h=b.next()){h=h.value;try{var F=S=void 0;(F=(S=h).onSpanStart)==null||F.call(S,this)}catch(a){_.vX(a)}}y.endTime!=null&&
(this.isActiveSpan=!1,this.end("SPAN_STATUS_OK",y.endTime))};
pA4.prototype.end=function(b,h){b=b===void 0?"SPAN_STATUS_OK":b;this.endTime=h=h===void 0?(0,_.NO)():h;this.duration=this.endTime-this.startTime;this.status=b;this.isActiveSpan!==!1&&(my.stack[my.stack.length-1]===this?my.stack.pop():_.vX(Error("Ff`"+String(this.name))));b=_.L(my.processors);for(h=b.next();!h.done;h=b.next()){h=h.value;try{var y=void 0,S=void 0;(S=(y=h).onSpanEnd)==null||S.call(y,this)}catch(F){_.vX(F)}}};
pA4.prototype.addAttributes=function(b){Object.assign(this.attributes,b)};
var JTf={end:function(){},
addAttributes:function(){}},my={initialized:!1,
nextSpanId:0,stack:[],sessionId:"",enabledSpans:void 0,processors:[],shouldSampleFn:function(){return!0}},Uun={rootSpan:function(){return my.stack[0]}};var ht={};var i5n=function(b){this.observers=[];this.value=b};
_.d=i5n.prototype;_.d.subscribe=function(b){var h=this;if(b.idx!=null)throw Error("Hf");b.idx=this.observers.length;this.observers.push(b);try{b(this.value)}catch(y){}return function(){var y=h.observers[h.observers.length-1];h.observers[b.idx]=y;y.idx=b.idx;h.observers.pop()}};
_.d.update=function(b){this.value=b(this.value);this.notify()};
_.d.mutate=function(b){b(this.value);this.notify()};
_.d.set=function(b){this.value=b;this.notify()};
_.d.notify=function(){for(var b=_.L(this.observers),h=b.next();!h.done;h=b.next()){h=h.value;try{h(this.value)}catch(y){}}};var FjN,lYa,Q9a;_.nt=function(b,h,y,S,F,a,P,K){P=P===void 0?[]:P;K=K===void 0?[]:K;this.buildCommandPayload=b;this.navigate=h;this.handleServiceRequest=y;this.sendAction=S;this.JSC$12960_screenManager=F;this.commandResolverMap=a;this.autoLogResolverAllowlist=P;this.metaCommandClickLoggingDenylist=K;this.pendingCommands=new Set;this.isTracingEnabled=!1;lYa(this)};
FjN=function(b,h,y){var S=[_.YR7,bpw],F=E_5,a=iJq,P=_.rU(),K=qH8;y=y===void 0?[]:y;S=S===void 0?[]:S;_.nt.instance=new _.nt(b,h,F,a,P,K,y,S)};
lYa=function(b){if(!b.isTracingEnabled&&vT("command")){var h=b.resolveCommand;b.resolveCommand=function(y,S){a:{for(F in y)if(Object.prototype.hasOwnProperty.call(y,F)){var F={commandType:F};break a}F={}}return bS("command",F,h.bind(this,y,S))};
b.isTracingEnabled=!0}};
Q9a=function(b,h,y){if(!b.commandResolverMap)return!1;var S=Gcq(h,b.commandResolverMap);return S?((b.autoLogResolverAllowlist.some(function(F){return!!_.c(h,F)})||(y==null?0:y.forceClickLogging))&&xjW(b,h,y),S instanceof Promise?S.then(function(F){F.resolve(h,y)}):S.resolve(h,y),!0):!1};
_.nt.prototype.resolveCommand=function(b,h){var y=this,S=mjM(b);if(Q9a(this,b,h))return!0;if(S)return vM5(this,b,h);if(!this.buildCommandPayload)return skj(b,"Unhandled command by buildCommandPayload"),!1;var F=this.buildCommandPayload(b,h);if(h==null?0:h.commandController)F.commandController=h.commandController;if(F.type===0){if(!this.navigate)return YUN(b,"navigate"),!1;if(!bNe(F.command))return skj(b,"Page requests need to specify a url"),!1;_.r("logging_avoid_blocking_during_navigation")&&_.gEj().transition("application_navigating");
b=this.navigate(F)||[];u5M(b).then(function(){y.pendingCommands.delete(F.command)});
return!0}if(F.type===1){if(!this.handleServiceRequest)return YUN(b,"handleServiceRequest"),!1;(h==null?0:h.forceClickLogging)&&xjW(this,F.command,h);b=this.handleServiceRequest(F);u5M(b).then(function(){y.pendingCommands.delete(F.command)});
return!0}if(F.type===2){if(!this.sendAction)return YUN(b,"sendAction"),!1;xjW(this,F.command,h);this.sendAction(F);return!0}return!1};
var xjW=function(b,h,y){if((y==null||!y.disableClickTracking)&&b.JSC$12960_screenManager)if(h.clickTrackingParams&&_.r("log_click_with_layer_from_element_in_command_handler")){var S;y=y==null?void 0:(S=y.form)==null?void 0:S.element;b.JSC$12960_screenManager.clickCommand(h,null,y&&y.getScreenLayer&&y.getScreenLayer())}else h.clickTrackingParams?b.JSC$12960_screenManager.clickCommand(h):!_.r("disable_clicked_visual_element_in_command_handler")&&(y==null?0:y.clickedVisualElement)&&_.xa(b.JSC$12960_screenManager,
y.clickedVisualElement)},mjM=function(b){var h=!!_.c(b,_.LI),y;
b=((y=_.c(b,_.KI))==null?void 0:y.signal)==="CLIENT_SIGNAL";return h||b},vM5=function(b,h,y){var S=_.c(h,_.LI);
if(S)var F=(S==null?void 0:S.commands)||[];else{var a;if(((a=_.c(h,_.KI))==null?void 0:a.signal)==="CLIENT_SIGNAL"){var P;F=((P=_.c(h,_.KI))==null?void 0:P.actions)||[]}}if(F){(S=h3W(b,F))&&xjW(b,h,y);h=_.L(F);for(F=h.next();!F.done;F=h.next()){F=F.value;try{var K=Object.assign({},y);S&&(K.disableClickTracking=!0);b.resolveCommand(F,K)}catch(n){n instanceof Error&&_.QT(n)}}return!0}skj(h,"Could not handle the meta command");return!1},h3W=function(b,h){return h.every(function(y){return b.metaCommandClickLoggingDenylist.some(function(S){return!!_.c(y,
S)})})},bNe=function(b){var h;
return!((h=_.c(b==null?void 0:b.commandMetadata,_.ZW))==null||!h.url)};var bK=function(){sU.apply(this,arguments)};
_.z(bK,sU);bK.prototype.validate=function(b){var h,y;return!this.jp&&!!((h=b.data.response)==null?0:(y=h.onResponseReceivedEndpoints)==null?0:y.length)};
bK.prototype.handle=function(b){var h=_.nt.instance;b=_.L(b.data.response.onResponseReceivedEndpoints);for(var y=b.next();!y.done;y=b.next())h.resolveCommand(y.value)};var yfM,ScM,yI;
yfM=function(){this.companionCanvasActivation=this.shortsPipActivation=this.watchWhileActivation=this.watchPipActivation=this.mediaSessionPipActivation=this.showMiniplayerCommandActivation=this.lockupActivation=this.playlistSuggestionsShelfActivation=this.playablesDestPageActivation=this.miniAppPageActivation=this.productDetailsPageActivation=this.playlistWatchPageActivation=this.userActivation=this.miniplayerButtonActivation=!1;this.navigationFinishPromise=_.$p();this.navigatingAwayFromWatchDeletedVideo=!1;
this.currentEndpoint=null;this.isVideoPlaying=!1};
_.h0=function(){ScM||(ScM=new yfM);return ScM};
yI=function(){var b=_.h0();b.miniplayerButtonActivation=!1;b.userActivation=!1;b.playlistWatchPageActivation=!1;b.productDetailsPageActivation=!1;b.miniAppPageActivation=!1;b.playablesDestPageActivation=!1;b.lockupActivation=!1;b.showMiniplayerCommandActivation=!1;b.playlistSuggestionsShelfActivation=!1;b.mediaSessionPipActivation=!1;b.watchPipActivation=!1;b.watchWhileActivation=!1;b.shortsPipActivation=!1;b.companionCanvasActivation=!1};
_.Frw=function(){var b=_.h0(),h=b.mediaSessionPipActivation,y=b.watchPipActivation,S=b.watchWhileActivation,F=b.playlistWatchPageActivation,a=b.lockupActivation,P=b.showMiniplayerCommandActivation,K=b.navigatingAwayFromWatchDeletedVideo,n=b.shortsPipActivation,X=b.playlistSuggestionsShelfActivation,u=b.productDetailsPageActivation,O=b.miniAppPageActivation,N=b.playablesDestPageActivation,t=b.companionCanvasActivation;return!b.miniplayerButtonActivation&&!F&&!X&&!u&&!O&&!N&&!a&&!P&&!h&&!y&&!S&&!n&&
!t||K};var JnM;_.S1=_.S7("FEwhat_to_watch","/",3854);_.eB4=_.S7("FEdownloads","/feed/downloads",42352);JnM=_.S7("FEmusic_offline","browse/FEmusic_offline",42352);var bk=function(b,h){h=h===void 0?[]:h;var y=y===void 0?[]:y;h=S65.apply(null,[FXU.apply(null,_.f$(h))].concat(_.f$(y)));this.store=$kk(b,void 0,h)};
bk.prototype.getState=function(){return this.store.getState()};
bk.prototype.dispatch=function(b){return this.store.dispatch(b)};
bk.prototype.subscribe=function(b){return this.store.subscribe(b)};
bk.prototype.replaceReducer=function(b){return this.store.replaceReducer(b)};
bk.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.Fq=function(b,h,y){var S=h(b.getState());return b.subscribe(function(){var F=h(b.getState());if(F!==S){var a=S;S=F;y(F,a)}})};var ULU;_.R7=function(b,h,y){return _.$8({type:"REPLACE_ENTITY",payload:{entityPayload:y,entityType:b,key:h}})};
ULU=function(b){return _.$8({type:"REPLACE_ENTITIES",payload:b})};
_.eD=function(b,h,y,S){return _.$8({type:"UPDATE_ENTITY",payload:{entityPayload:y,entityType:b,key:h,mergeOption:S}})};var b0f=function(b){var h=this;b=b===void 0?[]:b;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;b.forEach(function(y){h.append(y)})};
_.d=b0f.prototype;_.d.getLength=function(){return this.totalLength};
_.d.append=function(b){var h=this.arrays.length===0?!1:(h=this.arrays[this.arrays.length-1])&&h.buffer===b.buffer&&h.byteOffset+h.length===b.byteOffset;h?(h=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(h.buffer,h.byteOffset,h.length+b.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(b);this.totalLength+=b.length};
_.d.split=function(b){for(var h=new b0f,y=new b0f,S=_.L(this.arrays),F=S.next();!F.done;F=S.next())F=F.value,b>=F.length?(h.append(F),b-=F.length):b?(h.append(new Uint8Array(F.buffer,F.byteOffset,b)),y.append(new Uint8Array(F.buffer,F.byteOffset+b,F.length-b)),b=0):y.append(F);return{headView:h,tailView:y}};
_.d.isFocused=function(b){return b>=this.arrayPos&&b<this.arrayPos+this.arrays[this.arrayIdx].length};
_.d.focus=function(b){if(!this.isFocused(b))for(b<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=b&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var a37=function(b,h){b.focus(h);return b.arrays[b.arrayIdx][h-b.arrayPos]};(function(){var b=function(S){return new Uint8Array(S)},h=function(S){for(var F=new Uint8Array(S.length),a=0;a<S.length;a++)F[a]=S[a];
return F},y=new Uint8Array([1]);
return y.length===1&&y[0]===1?b:h})();
var leM=Array(1024),wAy=window.TextDecoder?new TextDecoder:void 0,xuy=window.TextEncoder?new TextEncoder:void 0;var vaU=function(b){this.arrayView=b;this.pos=0;this.pendingTagAndType=-1},Li=function(b){var h=a37(b.arrayView,b.pos);
++b.pos;if(h<128)return h;for(var y=h&127,S=1;h>=128;)h=a37(b.arrayView,b.pos),++b.pos,S*=128,y+=(h&127)*S;return y},hUy=function(b,h){var y=b.pendingTagAndType;
for(b.pendingTagAndType=-1;b.pos+1<=b.arrayView.totalLength;){y<0&&(y=Li(b));var S=y>>3,F=y&7;if(S===h)return!0;if(S>h){b.pendingTagAndType=y;break}y=-1;switch(F){case 0:Li(b);break;case 1:b.pos+=8;break;case 2:S=Li(b);b.pos+=S;break;case 5:b.pos+=4}}return!1};var SNf=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=muq(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},ZU=function(b,h){h=b.pos+h;
if(!(b.buf.length>=h)){for(var y=b.buf.length*2;y<h;)y*=2;b.buf=muq(y,b.wasm,b.buf.subarray(0,b.pos));b.view=new DataView(b.buf.buffer,b.buf.byteOffset,b.buf.byteLength)}},Ki=function(b,h){if(h>268435455){ZU(b,4);
for(var y=h&1073741823,S=0;S<4;S++)b.view.setUint8(b.pos,y&127|128),y>>=7,b.pos+=1;h=Math.floor(h/268435456)}for(ZU(b,4);h>127;)b.view.setUint8(b.pos,h&127|128),h>>=7,b.pos+=1;b.view.setUint8(b.pos,h);b.pos+=1};for(var F3k={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},y0n={},dfW=_.L(Object.entries(F3k)),jlM=dfW.next();!jlM.done;jlM=dfW.next()){var $f8=_.L(jlM.value),Lr8=$f8.next().value,PyN=$f8.next().value,Kra=Lr8,ZNe=PyN;ZNe&&(y0n[ZNe]=Kra)};var dLY=function(b,h){b=b===void 0?{}:b;switch(h.type){case "ENTITY_LOADED":return h.payload.reduce(function(S,F){var a,P=(a=F.options)==null?void 0:a.persistenceOption;if(P&&P!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&P!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return S;if(!F.entityKey)return _.QT(Error("Jf")),S;if(F.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!F.payload)return F=new _.Gn("REPLACE entity mutation is missing a payload",{entityKey:F.entityKey}),_.QT(F),S;var K=(0,_.lR.getAnyKey)(F.payload);
return $Lq(S,K,F.entityKey,F.payload[K])}if(F.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{F=F.entityKey;try{var n=_.Pi(F).entityType;K=$Lq(S,n,F);break a}catch(O){if(O instanceof Error){F=new _.Gn("Failed to deserialize entity key",{entityKey:F,originalMessage:O.message});_.QT(F);K=S;break a}throw O;}K=void 0}return K}if(F.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!F.payload)return F=new _.Gn("UPDATE entity mutation is missing a payload",{entityKey:F.entityKey}),_.QT(F),S;K=(0,_.lR.getAnyKey)(F.payload);
var X,u;return L3f(S,K,F.entityKey,F.payload[K],(X=F.fieldMask)==null?void 0:(u=X.mergeOptions)==null?void 0:u.repeatedFieldsMergeOption)}return S},b);
case "REPLACE_ENTITY":var y=h.payload;return $Lq(b,y.entityType,y.key,y.entityPayload);case "REPLACE_ENTITIES":return Object.keys(h.payload).reduce(function(S,F){var a=h.payload[F];return Object.keys(a).reduce(function(P,K){return $Lq(P,F,K,a[K])},S)},b);
case "UPDATE_ENTITY":return y=h.payload,L3f(b,y.entityType,y.key,y.entityPayload,y.mergeOption);default:return b}};var PKU;var ol7=!1,az,dD,j1,$X,L0,Mla=function(b){_.ED.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!ol7){var h,y=new Uint8Array(256),S=new Uint8Array(256);var F=1;for(h=0;h<256;h++)y[F]=h,S[h]=F,F^=F<<1^(F>>7&&283);az=new Uint8Array(256);dD=ni(256);j1=ni(256);$X=ni(256);L0=ni(256);for(var a=0;a<256;a++){F=a?S[255^y[a]]:0;F^=F<<1^F<<2^F<<3^F<<4;F=F&255^F>>>8^99;az[a]=F;h=F<<1^(F>>7&&283);var P=h^F;dD[a]=h<<24|F<<16|F<<8|P;j1[a]=P<<24|dD[a]>>>8;$X[a]=F<<24|j1[a]>>>
8;L0[a]=F<<24|$X[a]>>>8}ol7=!0}F=ni(44);for(y=0;y<4;y++)F[y]=b[4*y]<<24|b[4*y+1]<<16|b[4*y+2]<<8|b[4*y+3];for(S=1;y<44;y++)b=F[y-1],y%4||(b=(az[b>>16&255]^S)<<24|az[b>>8&255]<<16|az[b&255]<<8|az[b>>>24],S=S<<1^(S>>7&&283)),F[y]=F[y-4]^b;this.key=F};
_.z(Mla,_.ED);
Mla.prototype.encrypt=function(b){var h=b.length;b=new Uint8Array(b.buffer.slice(b.byteOffset,b.byteOffset+h));for(var y=this.cipherBlock,S=0;S<h&&this.blockOffset<16;)b[S++]^=y[this.blockOffset++];for(var F=h-(h-S)%16;S<F;)nl8(this),b[S++]^=y[0],b[S++]^=y[1],b[S++]^=y[2],b[S++]^=y[3],b[S++]^=y[4],b[S++]^=y[5],b[S++]^=y[6],b[S++]^=y[7],b[S++]^=y[8],b[S++]^=y[9],b[S++]^=y[10],b[S++]^=y[11],b[S++]^=y[12],b[S++]^=y[13],b[S++]^=y[14],b[S++]^=y[15];if(S<h)for(nl8(this),this.blockOffset=0;S<h;)b[S++]^=
y[this.blockOffset++];return b};
var nl8=function(b){for(var h=b.key,y=b.counter[0]^h[0],S=b.counter[1]^h[1],F=b.counter[2]^h[2],a=b.counter[3]^h[3],P=3;P>=0&&!(b.counter[P]=-~b.counter[P]);P--);for(var K,n,X=4;X<40;)P=dD[y>>>24]^j1[S>>16&255]^$X[F>>8&255]^L0[a&255]^h[X++],K=dD[S>>>24]^j1[F>>16&255]^$X[a>>8&255]^L0[y&255]^h[X++],n=dD[F>>>24]^j1[a>>16&255]^$X[y>>8&255]^L0[S&255]^h[X++],a=dD[a>>>24]^j1[y>>16&255]^$X[S>>8&255]^L0[F&255]^h[X++],y=P,S=K,F=n;b=b.cipherBlock;P=h[40];b[0]=az[y>>>24]^P>>>24;b[1]=az[S>>16&255]^P>>16&255;b[2]=
az[F>>8&255]^P>>8&255;b[3]=az[a&255]^P&255;P=h[41];b[4]=az[S>>>24]^P>>>24;b[5]=az[F>>16&255]^P>>16&255;b[6]=az[a>>8&255]^P>>8&255;b[7]=az[y&255]^P&255;P=h[42];b[8]=az[F>>>24]^P>>>24;b[9]=az[a>>16&255]^P>>16&255;b[10]=az[y>>8&255]^P>>8&255;b[11]=az[S&255]^P&255;P=h[43];b[12]=az[a>>>24]^P>>>24;b[13]=az[y>>16&255]^P>>16&255;b[14]=az[S>>8&255]^P>>8&255;b[15]=az[F&255]^P&255};var XuW=!1;(function(){var b=function(S){return new Uint8Array(S)},h=function(S){for(var F=new Uint8Array(S.length),a=0;a<S.length;a++)F[a]=S[a];
return F},y=new Uint8Array([1]);
return y.length===1&&y[0]===1?b:h})();
var Py;var ONe=function(b){a:{if(!XuW&&!nz){if(Py){var h=Py;break a}Py=(h=window.crypto)==null?void 0:h.subtle;var y,S,F;if(((y=Py)==null?0:y.importKey)&&((S=Py)==null?0:S.sign)&&((F=Py)==null?0:F.encrypt)){h=Py;break a}Py=void 0}h=void 0}h&&(this.nativeEncryptor=new HNb(b,h));this.encryptorPolyfill=new u2b(b)};
ONe.prototype.encrypt=function(b,h){var y=this,S;return _.Z(function(F){switch(F.nextAddress){case 1:if(!y.nativeEncryptor){F.jumpTo(2);break}_.WE(F,3);return F.yield(y.nativeEncryptor.encrypt(b,h),5);case 5:return F.return(F.yieldResult);case 3:S=_.C$(F),_.vX(S),XuW=!0,y.nativeEncryptor=void 0;case 2:return F.return(y.encryptorPolyfill.encrypt(b,h))}})};
ONe.prototype.decrypt=function(b,h){return this.encrypt(b,h)};
var HNb=function(b,h){this.JSC$13033_aesKey=b;this.subtleCrypto=h};
HNb.prototype.encrypt=function(b,h){var y=this,S;return _.Z(function(F){if(F.nextAddress==1)return _.WE(F,2),F.yield(NmM(y,b,h),4);if(F.nextAddress!=2)return F.return(F.yieldResult);S=_.C$(F);_.vX(S);XuW=!0;throw S;})};
var NmM=function(b,h,y){var S,F;return _.Z(function(a){switch(a.nextAddress){case 1:if(b.cryptoKey){a.jumpTo(2);break}return a.yield(b.subtleCrypto.importKey("raw",b.JSC$13033_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:b.cryptoKey=a.yieldResult;case 2:return S={name:"AES-CTR",counter:y,length:128},a.yield(b.subtleCrypto.encrypt(S,b.cryptoKey,h),4);case 4:return F=a.yieldResult,a.return(new Uint8Array(F))}})},u2b=function(b){this.JSC$13036_aesKey=b};
u2b.prototype.encrypt=function(b,h){this.encryptor||(this.encryptor=new Mla(this.JSC$13036_aesKey));for(var y=this.encryptor,S=0;S<4;S++)y.counter[S]=h[S*4]<<24|h[S*4+1]<<16|h[S*4+2]<<8|h[S*4+3];y.blockOffset=16;return this.encryptor.encrypt(b)};
u2b.prototype.decrypt=function(b,h){return this.encrypt(b,h)};var tl8={},oXn=Ov("yt-idb-pref-storage",{objectStores:(tl8.prefs={addedAtVersion:1},tl8),shared:!1,upgrade:function(b,h){h(1)&&dd(ah(b,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.K0=function(b){this.token=b};
_.K0.getInstance=function(){return _.Z(function(b){return b.return(new Promise(function(h){_.uj().then(function(y){y?(_.K0.instance||(_.K0.instance=new _.K0(y)),h(_.K0.instance)):h(void 0)})}))})};
_.K0.prototype.get=function(b){var h=this,y,S,F;return _.Z(function(a){if(a.nextAddress==1)return a.yield(M1k(h.token),2);if(a.nextAddress!=3)return y=a.yieldResult,a.yield(y.get("prefs",b),3);S=a.yieldResult;if(!S)return a.return();F=(0,_.NO)();return S.expirationTimestampMs<=F?a.return():a.return(S.value)})};
_.K0.prototype.set=function(b,h,y){y=y===void 0?31536E3:y;var S=this,F,a,P;return _.Z(function(K){if(K.nextAddress==1)return F=(0,_.NO)(),a={key:b,value:h,expirationTimestampMs:F+y*1E3},K.yield(M1k(S.token),2);P=K.yieldResult;return K.yield(P.put("prefs",a),0)})};
_.K0.prototype.remove=function(b){var h=this,y;return _.Z(function(S){if(S.nextAddress==1)return S.yield(M1k(h.token),2);y=S.yieldResult;return S.yield(y.delete("prefs",b),0)})};var Zh={},rfo=(Zh.INVALID_ENCODER_VERSION="Invalid encoder version",Zh.KEY_CREATION_FAILED="Failed to create encoder key",Zh.UNKNOWN_DECODE_ERROR="Failed to decode PES data",Zh.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",Zh.WRONG_DATA_TYPE="Encoder cannot process the data type",Zh),XF=function(b,h){h=h===void 0?{}:h;_.Gn.call(this,rfo[b],Object.assign({},{name:"PESEncoderError",type:b},h));this.type=b;this.level="WARNING";Object.setPrototypeOf(this,XF.prototype)};
_.z(XF,_.Gn);var oz=function(){};
oz.prototype.encode=function(b,h){try{return this.encodeImpl(b,h)}catch(y){uq4(y,Xy5)}};
oz.prototype.decode=function(b,h){try{return this.decodeImpl(b,h)}catch(y){uq4(y,H0Y)}};
var cfN=function(b,h,y){var S;return _.Z(function(F){if(F.nextAddress==1)return _.WE(F,2),F.yield(b.decodeAsyncImpl(h,y),4);if(F.nextAddress!=2)return F.return(F.yieldResult);S=_.C$(F);uq4(S,H0Y);_.g3(F)})};
oz.prototype.decodeAsyncImpl=function(b,h){return Promise.resolve(this.decodeImpl(b,h))};var ML=function(b,h){this.aesEncryptor=b;this.aesEncryptorAsync=h};
_.z(ML,oz);ML.prototype.encodeImpl=function(b,h){h=O0Y(h);b=(new TextEncoder).encode(JSON.stringify(b));return this.aesEncryptor.encrypt(b,h)};
ML.prototype.decodeImpl=function(b,h){if(!(b instanceof Uint8Array))throw nXq(1);var y=new TextDecoder;h=O0Y(h);b=this.aesEncryptor.decrypt(b,h);return JSON.parse(y.decode(b))};
ML.prototype.decodeAsyncImpl=function(b,h){var y=this,S,F,a;return _.Z(function(P){if(P.nextAddress==1){if(!(b instanceof Uint8Array))throw nXq(1);S=new TextDecoder;F=O0Y(h);return P.yield(y.aesEncryptorAsync.decrypt(b,F),2)}a=P.yieldResult;return P.return(JSON.parse(S.decode(a)))})};var NDM={accountLinkStatusEntity:PV7,booleanEntity:gqb,buttonEntity:AvW,captionTrack:Xjo,channelHandle:Kb7,chipEntity:aVw,commerceAcquisitionClientPayloadEntity:Szw,commerceCartListEntity:Fqw,compositeSourceEntity:ULW,multiviewStagingEntity:pyM,contextNoteFeedEntityPayload:RZa,contextNoteUserRatingEntityPayload:zZW,continuationTokenEntity:qUo,downloadQualityPickerEntity:sk7,downloadsPageRefreshTokenEntity:T2G,downloadsPageViewConfigurationEntity:F3a,downloadStatusEntity:YUW,dismissState:dTo,sfvAudioItemCurrentlyPlayingEntity:xbW,
emojiFountainDataEntity:IV7,emojiCustomizationSetEntity:DTW,fakeChannel:T5W,fakePlaylist:G97,fakePlaylistEntryCollection:k98,fakeVideo:Eqa,fakeVideoDescription:iTo,featuredProductsEntity:RU8,flowStateEntity:deo,iconBadgeEntity:aP8,interstitialInteractionStateEntity:Dea,likeButtonAnimationEntity:ahW,liveChatPollStateEntity:eIM,dataFreshnessEntity:Rc8,liveViewerLeaderboardChatEntryPointStateEntity:AJ8,liveViewerLeaderboardPointsEntity:Ub5,liveReactionsDataEntity:BP5,logoEntity:RIw,macroMarkerEntity:dL8,
mainDownloadsLibraryEntity:GcN,mainDownloadsListEntity:kca,mainPlaylistDownloadStateEntity:EaM,mainPlaylistEntity:xuP,mainPlaylistVideoEntity:Qka,mainVideoDownloadStateEntity:ijN,mainVideoEntity:hUP,markersEngagementPanelSyncEntity:jzb,markersVisibilityOverrideEntity:$LN,musicAlbumReleaseDetail:YNb,musicAlbumReleaseDownloadMetadataEntity:J0N,musicAlbumRelease:sz5,musicAlbumReleaseUserDetail:TD8,musicArtistDetail:k27,musicArtist:G28,musicArtistUserDetail:V1e,musicDownloadsLibraryEntity:eUe,musicLibraryEdit:EXa,
musicLibraryStatusEntity:i0a,musicPlaylist:fhb,musicPlaylistDownloadMetadataEntity:CKe,musicShare:lhG,musicTrackDetail:xLM,musicTrackDownloadMetadataEntity:gXe,musicTrack:qNb,musicTrackUserDetail:Qz8,offlineOrchestrationActionWrapperEntity:Hdo,offlineVideoPolicy:ucN,offlineVideoStreams:Od8,offlineabilityEntity:fea,orchestrationWebSamplingEntity:wAP,pageHeaderEntity:Xga,pdpStateEntity:dpW,pinnedProductEntity:zUa,playbackData:Ncw,playerStateEntity:L3o,quantityIncrementerEntity:jx5,refresh:tSW,saveToPlaylistListEntity:Hee,
selectedChipIndexEntityPayload:PKW,settingEntity:YtG,stringEntity:sBo,suggestedFeedbackChipStateEntity:K3e,transfer:rJa,trendingOfferEntity:DLa,videoDownloadContextEntity:cJb,videoOverviewAsyncDataEntity:pQW,videoPlaybackPositionEntity:Jvb,votingEntity:NPW,ytMainChannelEntity:y0a,youchatPendingResponseEntity:Z07,ytMainDownloadedVideoEntity:le5,ytMainVideoEntity:SNo};var R3a,Df5,tt,BDN,W3F,Wra,Ufb,Af5,BmW;R3a=function(b,h){this.JSC$13055_wrapped=b;this.JSC$13055_encoderRegistry=h;this.changedKeys={}};
Df5=function(b,h){return z3M(b.JSC$13055_encoderRegistry,h.version).decode(h.data,h.key)};
_.I3G=function(b,h,y){return b.JSC$13055_wrapped.objectStore("EntityStore").get(h).then(function(S){if(S){if(y&&S.entityType!==y)throw Error("Kf");return Df5(b,S)}})};
tt=function(b,h,y){return y?(y=y.map(function(S){return _.I3G(b,S,h)}),Fl.all(y)):b.JSC$13055_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(h)).then(function(S){return S.map(function(F){return Df5(b,F)})})};
_.IhM=function(b,h,y){var S=ahU(h),F=z3M(b.JSC$13055_encoderRegistry,1),a=Object.assign({},h);return b.JSC$13055_wrapped.objectStore("EntityStore").get(S).then(function(P){if(P){if(P.entityType!==y)throw Error("Kf");a.entityMetadata||(P=Df5(b,P),a.entityMetadata=P.entityMetadata)}}).then(function(){var P={key:S,
entityType:y,data:F.encode(a,S),version:1};return Fl.all([b.JSC$13055_wrapped.objectStore("EntityStore").put(P),BmW(b,a,y)])}).then(function(){Wra(b,S,y);
return S})};
BDN=function(b,h){var y=_.Pi(h).entityType;return Fl.all([b.JSC$13055_wrapped.objectStore("EntityStore").delete(h),Af5(b,h)]).then(function(){Wra(b,h,y)})};
W3F=function(b,h,y,S){var F=z3M(b.JSC$13055_encoderRegistry,1);return _.I3G(b,h,S).then(function(a){if(a){a=fek(a,y);var P={key:h,entityType:S,data:F.encode(a,h),version:1};return Fl.all([b.JSC$13055_wrapped.objectStore("EntityStore").put(P),BmW(b,a,S)])}}).then(function(){Wra(b,h,S);
return h})};
Wra=function(b,h,y){var S=b.changedKeys[y];S||(S=new Set,b.changedKeys[y]=S);S.add(h)};
Ufb=function(b,h,y){var S=ahU(h);y=t15(y);if(!y)return Fl.resolve([]);y=new y(h);b=b.JSC$13055_wrapped.objectStore("EntityAssociationStore");h=[];y=_.L(y.getAssociations());for(var F=y.next();!F.done;F=y.next())h.push(b.put({parentEntityKey:S,childEntityKey:F.value}));return Fl.all(h).then(function(a){return a.map(function(P){return P[1]})})};
Af5=function(b,h){return b.JSC$13055_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(h))};
BmW=function(b,h,y){var S=ahU(h);return Af5(b,S).then(function(){return Ufb(b,h,y)})};var puW=function(){};
_.z(puW,oz);puW.prototype.encodeImpl=function(b){return b};
puW.prototype.decodeImpl=function(b){if(b instanceof Uint8Array)throw nXq(0);return b};var RUY=function(){this.cacheMap={};this.cacheMap[0]=new puW;if(!_.r("aes_pes_encoder_killswitch")){var b=this.cacheMap;try{var h=_.Y0();var y=O0Y(h);var S=new ML(new u2b(y),new ONe(y))}catch(F){throw b=F instanceof Error?new XF("KEY_CREATION_FAILED",{originalMessage:F.message}):new XF("KEY_CREATION_FAILED"),_.QT(b),b;}b[1]=S}},z3M=function(b,h){h=h===void 0?0:h;
b=b.cacheMap[h];if(!b)throw h=new XF("INVALID_ENCODER_VERSION",{encoderVersion:h}),_.QT(h),h;return b};var uS=function(b,h){_.ED.call(this);this.token=b;this.JSC$13069_encoderRegistry=h;this.observers=[];b=new _.S5.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.Y0());b.onmessage=this.JSC$13069_handleMessage.bind(this);this.channel=b};
_.z(uS,_.ED);_.Nm=function(b,h,y){var S,F,a,P;return _.Z(function(K){if(K.nextAddress==1)return K.yield(Z0j(b.token),2);if(K.nextAddress!=3)return S=K.yieldResult,K.yield(_.ZB(S,["EntityStore","EntityAssociationStore"],h,function(n){F=new R3a(n,b.JSC$13069_encoderRegistry);return y(F)}),3);
a=K.yieldResult;F&&(P=F.changedKeys,Object.keys(P).length>0&&(b.channel.postMessage(P),Jfa(b,P)));return K.return(a)})};
uS.prototype.observe=function(b){var h=this;this.observers.push(b);return function(){var y=h.observers.indexOf(b);y>=0&&h.observers.splice(y,1)}};
var SOU=function(b){var h;return _.Z(function(y){if(y.nextAddress==1)return y.yield(_.Nm(b,{mode:"readonly",enableRetries:!0},function(S){return S.JSC$13055_wrapped.objectStore("EntityStore").getAll()}),2);
h=y.yieldResult;return y.return(Promise.all(h.filter(function(S){return!!S}).map(function(S){var F,a;
return _.Z(function(P){if(P.nextAddress==1){F=S.key;a=S.entityType;var K=P.yield;var n=cfN(z3M(b.JSC$13069_encoderRegistry,S.version),S.data,S.key);return K.call(P,n,2)}return P.return({key:F,entityType:a,data:P.yieldResult})})})))})};
uS.prototype.JSC$13069_handleMessage=function(b){Jfa(this,b.data)};
var Jfa=function(b,h){b=_.L(b.observers);for(var y=b.next();!y.done;y=b.next())y=y.value,y(h)};
uS.prototype.disposeInternal=function(){this.channel.close()};
var r0U;var n0,Cyb,qNF;n0={};_.e3G=(n0.mainVideoEntity="mainVideoEntityActionMetadata",n0.mainPlaylistEntity="mainPlaylistEntityActionMetadata",n0.musicTrack="musicTrackEntityActionMetadata",n0.musicPlaylist="musicPlaylistEntityActionMetadata",n0);Cyb=new _.ca("DOWNLOADS_ENTITY_TYPE_MAP");_.Wi=_.oU("","downloadsPageViewConfigurationEntity");qNF=_.oU("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.Bcr=_.oU("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.oU("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.oU("SMART_DOWNLOADS_ENABLED","settingEntity");_.oU("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var eU5=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var k2j=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var gla={isLeaderTab:!0};var Xjf={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var Xq=window,iS=Xq.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US",n9j=Xq.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||fi,Nak=Xq.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||HV,vr5=Xq.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||mna,xnW=Xq.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||PMW,QIM=Xq.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||XC5;var Mmq;x8({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 JKN=tm8(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(b){return b}}}),uhn=tm8(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(b){return b}}}),z4j=new Map;var Cuj=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],AKI;var slW=function(b){return _.$8({type:"SET_EPHEMERAL_ACTION",payload:b})};var Yc8={ephemeralAction:null};var TmG=Y6({ephemeralAction:function(b,h){b=b===void 0?Yc8.ephemeralAction:b;switch(h.type){case "SET_EPHEMERAL_ACTION":return h.payload;default:return b}}});var GZo=function(b){return _.$8({type:"SET_SHARED_PERSISTENT_PANEL_VISIBLE",payload:b})};var kZW={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:"",persistentPanelVisible:!1};var Vle={sharedUi:kZW,a11y:Yc8,entities:{}},jpY={sharedUi:function(b,h){b=b===void 0?kZW:b;switch(h.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},b,{animatedThumbnailEnabled:h.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},b,{inlinePreviewEnabled:h.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},b,{currentPageType:h.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},b,{currentPageSubType:h.payload});
case "SET_SHARED_PERSISTENT_PANEL_VISIBLE":return Object.assign({},b,{persistentPanelVisible:h.payload});default:return b}},
a11y:TmG,entities:jzF};var kuf={playlistId:"",inviteLinkURL:""};var El8={continuationCommand:{}};var v9U=Y6({continuationCommand:function(b,h){b=b===void 0?El8.continuationCommand:b;switch(h.type){case "SET_CONTINUATION_COMMAND":return h.payload.continuationCommand;default:return b}}});var E9k={currentFormId:"",commandsMap:{}};var bff=Y6({isLeaderTab:function(b,h){b=b===void 0?gla.isLeaderTab:b;switch(h.type){case "SET_IS_LEADER_TAB":var y,S;return(S=h==null?void 0:(y=h.payload)==null?void 0:y.isLeaderTab)!=null?S:b;default:return b}}});var f37;_.iNo=function(b){return _.$8({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:b}})};
f37=function(b){return _.$8({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:b}})};var Hy={isDesktopSmallWidth:!1,isShortsActive:!1,isWatchWhileMode:!1,playerState:-1,isFullscreen:!1,isSmallScreenSqueezeback:!1,isPlaybackStarted:!1,isShortsPipActive:!1};var dTf=Y6({isDesktopSmallWidth:function(b,h){b=b===void 0?Hy.isDesktopSmallWidth:b;switch(h.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return h.payload.isDesktopSmallWidth;default:return b}},
isShortsActive:function(b,h){b=b===void 0?Hy.isShortsActive:b;switch(h.type){case "SET_IS_SHORTS_ACTIVE":return h.payload.isShortsActive;default:return b}},
isWatchWhileMode:function(b,h){b=b===void 0?Hy.isWatchWhileMode:b;switch(h.type){case "SET_IS_WATCH_WHILE_MODE":return h.payload.isWatchWhileMode;default:return b}},
playerState:function(b,h){b=b===void 0?Hy.playerState:b;switch(h.type){case "SET_PLAYER_STATE":return h.payload.playerState;default:return b}},
isFullscreen:function(b,h){b=b===void 0?Hy.isFullscreen:b;switch(h.type){case "SET_IS_FULLSCREEN":return h.payload.isFullscreen;default:return b}},
isSmallScreenSqueezeback:function(b,h){b=b===void 0?Hy.isSmallScreenSqueezeback:b;switch(h.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return h.payload.isSmallScreenSqueezeback;default:return b}},
isShortsPipActive:function(b,h){b=b===void 0?Hy.isShortsPipActive:b;switch(h.type){case "SET_IS_SHORTS_PIP_ACTIVE":return h.payload.isShortsPipActive;default:return b}},
isPlaybackStarted:function(b,h){b=b===void 0?Hy.isPlaybackStarted:b;switch(h.type){case "SET_IS_PLAYBACK_STARTED":return h.payload.isPlaybackStarted;default:return b}}});var fwN={currentMode:"canvas-hidden"};var LEI=function(){return function(b){return function(h){var y=b(h);_.F8(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[h],!0);return y}}};var wuo,ryq;wuo=new _.MC;_.ja=new _.ca("WATCH_PLAYER_PROMISE_TOKEN");_.l3W=new _.MC;_.qce=new _.ca("SHORTS_PLAYER_PROMISE_TOKEN");ryq=new _.ca("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var Pwf=function(){return function(b){return function(h){h.type==="ENTITY_LOADED"&&_.H9().resolve(_.ja).then(function(y){var S;(S=y.dispatchReduxAction)==null||S.call(y,h)});
return b(h)}}};var xf5={additionalContext:"",impersonatedChannelUrl:"",selectedVideoIds:{}};var hck=Y6({additionalContext:function(b,h){b=b===void 0?xf5.additionalContext:b;switch(h.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var y;return(y=h.payload)!=null?y:"";default:return b}},
impersonatedChannelUrl:function(b,h){b=b===void 0?xf5.impersonatedChannelUrl:b;switch(h.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var y;return(y=h.payload)!=null?y:"";default:return b}},
selectedVideoIds:function(b,h){b=b===void 0?xf5.selectedVideoIds:b;switch(h.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var y={};return Object.assign({},b,(y[h.payload]=!0,y));case "VIDEO_UNSELECTED":return h=h.payload,b=Object.assign({},b),delete b[h],b;default:return b}}});var Ql7={parentClickTrackingParams:""};var yvM=Y6({parentClickTrackingParams:function(b,h){b=b===void 0?Ql7.parentClickTrackingParams:b;switch(h.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return h.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return b}}});var mf5=function(b){return _.$8({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:b})},vlG=function(b){return _.$8({type:"TALK_TO_RECS_UPDATE_USER_QUERY",
payload:b})};var bbb={stepStates:{}};var SAr=Y6({stepStates:function(b,h){b=b===void 0?bbb.stepStates:b;switch(h.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var y=b,S=h.payload,F,a,P;b={};h={selectionStates:Object.assign({},(P=(F=y[S.stepId])==null?void 0:F.selectionStates)!=null?P:{},(b[S.token]={isSelected:S.isSelected},b)),userQuery:(a=y[S.stepId])==null?void 0:a.userQuery};F={};return Object.assign({},y,(F[S.stepId]=h,F));case "TALK_TO_RECS_UPDATE_USER_QUERY":return F=b,a=h.payload,P=
{selectionStates:Object.assign({},(S=(y=F[a.stepId])==null?void 0:y.selectionStates)!=null?S:{}),userQuery:{userQuery:a.userQuery,token:a.userQueryToken}},y={},Object.assign({},F,(y[a.stepId]=P,y));default:return b}}});var hD8,yEW,FH7;hD8=function(b){return _.$8({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:b})};
yEW=function(b){return _.$8({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:b})};
_.e4=function(b){return _.$8({type:"SET_CURRENT_PAGE_TYPE",payload:b})};
_.SCe=function(b){return _.$8({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:b})};
FH7=function(b){return _.$8({type:"SET_CHIP_BAR_IS_STICKY",payload:b})};var lwF={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"};_.axW=function(b){return _.$8({type:"SET_PLAYER_STATE",payload:{playerState:b}})};var uK={isWatchActive:!1,isLearningJourneyActive:!1,isSwatcherooActive:!1,isTheaterMode:x15(),isWatchFullscreen:!1,isWatchNarrowWidth:!1,isWatchRetroMode:!1,isLiveChatCollapsed:!1,openEngagementPanels:[],playerState:-1,watchScrollTop:0,watchWindowSize:{width:0,height:0}};var FEF=Y6({isTheaterMode:function(b,h){b=b===void 0?x15():b;switch(h.type){case "SET_IS_THEATER_MODE":return h.payload.isTheaterMode;default:return b}},
isWatchActive:function(b,h){b=b===void 0?uK.isWatchActive:b;switch(h.type){case "SET_IS_WATCH_ACTIVE":return h.payload.isWatchActive;default:return b}},
isLearningJourneyActive:function(b,h){b=b===void 0?uK.isLearningJourneyActive:b;switch(h.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return h.payload.isLearningJourneyActive;default:return b}},
isWatchFullscreen:function(b,h){b=b===void 0?uK.isWatchFullscreen:b;switch(h.type){case "SET_IS_WATCH_FULLSCREEN":return h.payload.isWatchFullscreen;default:return b}},
isWatchNarrowWidth:function(b,h){b=b===void 0?uK.isWatchNarrowWidth:b;switch(h.type){case "SET_IS_WATCH_NARROW_WIDTH":return h.payload.isWatchNarrowWidth;default:return b}},
isSwatcherooActive:function(b,h){b=b===void 0?uK.isSwatcherooActive:b;switch(h.type){case "SET_IS_SWATCHEROO_ACTIVE":return h.payload.isSwatcherooActive;default:return b}},
isWatchRetroMode:function(b,h){b=b===void 0?uK.isWatchRetroMode:b;switch(h.type){case "SET_IS_WATCH_RETRO_MODE":return h.payload.isWatchRetroMode;default:return b}},
isLiveChatCollapsed:function(b,h){b=b===void 0?uK.isLiveChatCollapsed:b;switch(h.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return h.payload.isLiveChatCollapsed;default:return b}},
openEngagementPanels:function(b,h){b=b===void 0?uK.openEngagementPanels:b;var y=[].concat(_.f$(b));switch(h.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return y.push(h.payload.panelToAdd),y;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return y.splice(y.indexOf(h.payload.panelToRemove),1),y;default:return b}},
playerState:function(b,h){b=b===void 0?uK.playerState:b;switch(h.type){case "SET_PLAYER_STATE":return h.payload.playerState;default:return b}},
watchScrollTop:function(b,h){b=b===void 0?uK.watchScrollTop:b;switch(h.type){case "SET_WATCH_SCROLL_TOP":return h.payload.watchScrollTop;default:return b}},
watchWindowSize:function(b,h){b=b===void 0?uK.watchWindowSize:b;switch(h.type){case "SET_WATCH_WINDOW_SIZE":return h.payload.watchWindowSize;default:return b}}});var drw={surveyFeedbackData:{feedbackTokens:[]}};var aV8=Y6({surveyFeedbackData:function(b,h){b=b===void 0?drw.surveyFeedbackData:b;switch(h.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return h.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},b,h.payload);default:return b}}});var Q$U={};var Zfj=void 0;_.r("web_enable_redux_store_on_demand")||(Zfj=KEn());var jvw=function(b,h,y){var S=this;this.listId=b;this.JSC$13213_updateCallback=h;this.isOfflineVideoCallback=y;_.hP().subscribe(function(){S.handleUpdate()})};
jvw.prototype.getPlaylistData=function(){var b=_.hP().getState().entities;if(this.listId&&this.listId!=="PPSV"){var h=a4N(b,this.listId,!0),y=_.oU(this.listId,"mainPlaylistEntity"),S,F;b=b==null?void 0:(S=b.mainPlaylistEntity)==null?void 0:(F=S[y])==null?void 0:F.title;return odF(h,b,this.listId)}h=_.V15(eGf(b));b=_.V15(_.At(b));b=h.concat(b);return odF(b)};
jvw.prototype.getPlaylistId=function(){return this.listId};
jvw.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$13213_updateCallback(this.listId,this.getPlaylistData(),{})};var ON=function(b,h,y,S){S=S===void 0?[]:S;this.JSC$13216_playlistNetworkManager=b;this.listId=h;this.JSC$13216_updateCallback=y;this.videoIds=S;this.pendingUpdates=[];this.currentIndex=0};
ON.prototype.JSC$13216_setCurrentIndex=function(b){this.currentIndex=b};
ON.prototype.setListId=function(b){this.listId=b};
var $rw=function(b,h){b.currentCreateRequest&&b.currentCreateRequest.cancel(h);b.currentUpdateRequest&&b.currentUpdateRequest.cancel(h);b.currentRefreshRequest&&b.currentRefreshRequest.cancel(h)};
ON.prototype.delete=function(){$rw(this,"PROXY DELETED")};
ON.prototype.addVideos=function(b,h,y){var S=this;y!==void 0?this.videoIds.splice.apply(this.videoIds,[y,0].concat(_.f$(b))):this.videoIds.push.apply(this.videoIds,_.f$(b));this.listId||this.currentCreateRequest?(b.forEach(function(F,a){F={addedVideoId:F,action:"ACTION_ADD_VIDEO"};y&&(F.addedVideoPosition=y+a);S.pendingUpdates.push(F)}),NL(this)):LHG(this,h.onCreateListCommand)};
var P0M=function(b,h,y,S,F){YjF(b.videoIds,h,y);h>b.currentIndex&&y<=b.currentIndex?b.JSC$13216_setCurrentIndex(b.currentIndex+1):h===b.currentIndex?b.JSC$13216_setCurrentIndex(y):h<b.currentIndex&&y>=b.currentIndex&&b.JSC$13216_setCurrentIndex(b.currentIndex-1);b.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:S,movedSetVideoIdPredecessor:F});NL(b)},LHG=function(b,h){$rw(b,"OBSOLETE");
b.currentCreateRequest=KH5(b.JSC$13216_playlistNetworkManager,h,b.videoIds);_.le(b.currentCreateRequest,function(){b.currentCreateRequest=void 0}).then(function(y){b.setListId(y.playlistId);
b.pendingUpdates.length>0?NL(b):Zba(b)})},NL=function(b){if(b.pendingUpdates.length!==0&&(b.currentRefreshRequest&&b.currentRefreshRequest.cancel("OBSOLETE"),!b.currentUpdateRequest&&!b.currentCreateRequest)){var h=b.pendingUpdates.splice(0,b.pendingUpdates.length);
b.currentUpdateRequest=b.JSC$13216_playlistNetworkManager.updatePlaylist(b.listId,h);_.le(b.currentUpdateRequest,function(){b.currentUpdateRequest=void 0}).then(function(){b.pendingUpdates.length>0?NL(b):Zba(b)}).thenCatch(function(){b.pendingUpdates.unshift.apply(b.pendingUpdates,_.f$(h))})}},Zba=function(b){b.currentRefreshRequest=_.oOo(b.JSC$13216_playlistNetworkManager,b.listId,b.currentIndex,b.videoIds[b.currentIndex]);
_.le(b.currentRefreshRequest,function(){b.currentRefreshRequest=void 0}).then(function(h){b.JSC$13216_updateCallback(h.playlistId,h.playlistPanelRenderer,h.autoplayRenderer)})};
ON.prototype.size=function(){return this.videoIds.length};var MdW=function(b,h,y,S){S=S===void 0?[]:S;ON.call(this,b,h,y,S);this.JSC$13216_playlistNetworkManager=b;this.listId=h;this.JSC$13216_updateCallback=y;this.videoIds=S};
_.z(MdW,ON);_.t0=function(b,h,y,S,F,a,P){F=F===void 0?[]:F;P=P===void 0?cm:P;ON.call(this,b,h,y,F);this.JSC$13216_playlistNetworkManager=b;this.listId=h;this.JSC$13216_updateCallback=y;this.onAuthChange=S;this.videoIds=F;this.storage=a;this.cookieReader=P;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.js(_.xP,this.checkLoggedInStatusChange.bind(this),1E3)};
_.z(_.t0,ON);_.d=_.t0.prototype;_.d.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.js(_.xP,this.checkLoggedInStatusChange.bind(this),1E3)};
_.d.JSC$13216_setCurrentIndex=function(b){ON.prototype.JSC$13216_setCurrentIndex.call(this,b);this.store()};
_.d.delete=function(){_.xP.cancelJob(this.queueSapisIdJob);ON.prototype.delete.call(this)};
_.d.setListId=function(b){ON.prototype.setListId.call(this,b);this.store()};
_.d.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var nOw=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],XeW=["playerResponse","videoDetails"],Hb5=["response","currentVideoEndpoint","watchEndpoint","videoId"],urW=["response","currentVideoEndpoint","watchEndpoint","playlistId"],Ob8=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],NjM=["response","contents","twoColumnWatchNextResults","playlist","playlist"],tdW=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
rE5=["response","contents","twoColumnWatchNextResults"];var rD={},uyy=(rD.WEB_UNPLUGGED="^unplugged/",rD.WEB_UNPLUGGED_ONBOARDING="^unplugged/",rD.WEB_UNPLUGGED_OPS="^unplugged/",rD.WEB_UNPLUGGED_PUBLIC="^unplugged/",rD.WEB_CREATOR="^creator/",rD.WEB_KIDS="^kids/",rD.WEB_EXPERIMENTS="^experiments/",rD.WEB_MUSIC="^music/",rD.WEB_REMIX="^music/",rD.WEB_MUSIC_EMBEDDED_PLAYER="^music/",rD.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",rD);var HrN,KH5;HrN=function(b,h){this.networkManager=b;this.innertubeTransportService=h};
KH5=function(b,h,y){if(!_.c(h,_.r2))return _.UQ(Error("Of"));_.c(h,_.r2).videoIds=y;y={create_playlist_title:_.Mt("QUEUE",void 0,"Queue")};return Xgn(_.f9(b.innertubeTransportService,h,y),Mb5)};
_.oOo=function(b,h,y,S){h={videoId:S,playlistId:h,playlistIndex:y};y=_.yk(NpW);return Xgn(_.cy(b.innertubeTransportService,h,y),Hff)};
HrN.prototype.updatePlaylist=function(b,h){return Xgn(_.f9(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:b,actions:h}}),nd8)};var cEG=function(b){this.storage=b},RDW;
cEG.prototype.store=function(b,h){h=h===void 0?0:h;if(this.storage&&b.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",b),this.storage.set("TLPQindex",String(h)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(y){}};
cEG.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
cEG.prototype.getPlaylistId=function(){if(!this.storage)return null;var b=null;try{b=this.storage.get("TLPQplaylist")}catch(h){}return b};var rvn=["navigationEndpoint","watchEndpoint","videoId"],tbF=["nextButtonVideo","watchEndpoint","videoId"];_.zM=new _.ca("NETWORK_TOKEN");_.bM=new _.ca("PAGE_TOKEN");_.Rz=new _.ca("PLAYLIST_TOKEN");var zDb;zDb=new _.ca("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.DT=new _.ca("INNERTUBE_TRANSPORT_TOKEN");var Drb,z2,Bje,WH5,Ur7,pee;Drb=new Set(["ci","cr","carml"]);z2=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$13263_parkedJobs=new Map;this.parkedProcessors=new Map};
_.Dh=function(){z2.instance||(z2.instance=new z2);return z2.instance};
z2.prototype.onAny=function(b){return _.IxW(this,b,2)};
z2.prototype.parkOrScheduleJob=function(b,h,y,S,F){_.Iz(this,y)?_.J_().addJob(b,h,S):(F&&(b=Bje(b),WH5(this,b,h,y,F)),F=this.JSC$13263_parkedJobs.get(y),F||(this.JSC$13263_parkedJobs.set(y,[]),F=this.JSC$13263_parkedJobs.get(y)),F.push({job:b,priority:h,delay:S}))};
z2.prototype.addListener=function(b,h,y){y&&(h=Bje(h),WH5(this,h,0,b,y));y=this.parkedProcessors.get(b);y||(this.parkedProcessors.set(b,[]),y=this.parkedProcessors.get(b));y.push(h)};
z2.prototype.processSignal=function(b){if(!_.Iz(this,b)){this.inProgressSignals.add(b);var h=this.JSC$13263_parkedJobs.get(b);if(h){h=_.L(h);for(var y=h.next();!y.done;y=h.next())y=y.value,_.J_().addJob(y.job,y.priority,y.delay);this.JSC$13263_parkedJobs.delete(b)}if(h=this.parkedProcessors.get(b)){h=_.L(h);for(y=h.next();!y.done;y=h.next())y=y.value,y();this.parkedProcessors.delete(b)}this.signals.push(b);this.inProgressSignals.delete(b)}};
_.Iz=function(b,h){return Drb.has(h)||_.m$("IS_HOMEPAGE_COLD")||_.m$("IS_RESULTS_PAGE_COLD")||_.m$("IS_WATCH_PAGE_COLD")?b.signals.indexOf(h)>=0:!0};
Bje=function(b){var h=!1;return function(){h||(h=!0,b())}};
WH5=function(b,h,y,S,F){if(AEP.has(S))_.J_().addJob(h,y,F);else{var a=b.compoundSignals.get(S);a&&_.J_().addJob(function(){_.Iz(b,S)||(a.isTimeoutConditionSatisfied?_.J_().addJob(h,y):a.timeoutConditionObservers.push(function(){_.J_().addJob(h,y)}))},y,F)}};
_.IxW=function(b,h,y){if(h.length>1){var S=[],F=Object.create(null);h=_.L(h);for(var a=h.next();!a.done;a=h.next())a=a.value,F[a]||(S.push(a),F[a]=!0);h=S}if(h.length===1)return h[0];a=h;S="";F=y===2?"|":"&";a.sort();a=_.L(a);for(var P=a.next();!P.done;P=a.next())S+=P.value+F;if(!b.compoundSignals.get(S)){F=0;a=[];P=_.L(h);for(var K=P.next();!K.done;K=P.next())K=K.value,F++,_.Iz(b,K)||a.push(K);(y=y===2)&&F>a.length||!y&&!a.length?b.signals.push(S):Ur7(b,S,y,h,a)}return S};
Ur7=function(b,h,y,S,F){var a=F.length,P=function(){y||--a===0?b.processSignal(h):pee(b,h)};
F=_.L(F);for(var K=F.next();!K.done;K=F.next())b.addListener(K.value,P);b.compoundSignals.set(h,{signals:S,isOnAny:y,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});pee(b,h)};
pee=function(b,h){if(!_.Iz(b,h)){var y=b.compoundSignals.get(h);if(y&&!y.isTimeoutConditionSatisfied){for(var S=!1,F=0,a=0,P=_.L(y.signals),K=P.next();!K.done;K=P.next()){var n=K.value;K=!_.Iz(b,n);AEP.has(n)?S=!0:(n=b.compoundSignals.get(n))?K&&!n.isTimeoutConditionSatisfied&&(a++,y.isInitialized||n.timeoutConditionObservers.push(function(){pee(b,h)})):K&&F++}y.isInitialized=!0;
y.isOnAny?S&&(y.isTimeoutConditionSatisfied=!0):F===0&&a===0&&(y.isTimeoutConditionSatisfied=!0);if(y.isTimeoutConditionSatisfied)for(y=_.L(y.timeoutConditionObservers),S=y.next();!S.done;S=y.next())S=S.value,S()}}};
z2.prototype.processSignal=z2.prototype.processSignal;z2.prototype.parkOrScheduleJob=z2.prototype.parkOrScheduleJob;z2.prototype.onAny=z2.prototype.onAny;_.HL("ytsignals.getInstance",_.Dh);z2.prototype.onAny=z2.prototype.onAny;z2.prototype.parkOrScheduleJob=z2.prototype.parkOrScheduleJob;z2.prototype.processSignal=z2.prototype.processSignal;var AEP=new Set(["eop","eocs","dl","pcl"]);_.Vp=new _.ca("MINIPLAYER_SERVICE");var By,JEa,eDa;By=function(b,h,y){var S=_.$J.getInstance();if(!RDW){var F=new bi5;var a=void 0,P=_.QC("ID_TOKEN");P&&F.isAvailable()&&(a=new iN(F,"yt-queue"+P));RDW=new cEG(a)}F=RDW;a=_.Dh();this.JSC$13270_actionRouter=S;this.JSC$13270_pageManager=b;this.playlistManager=h;this.JSC$13270_playlistNetworkManager=y;this.storage=F;this.signals=a;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.Wy=function(){if(!JEa){var b=_.H9(),h=b.resolve(_.XS(_.bM)),y=b.resolve(_.XS(_.zM)),S=b.resolve(_.XS(_.Rz));b=b.resolve(_.DT);JEa=new By(h,S,new HrN(y,b))}return JEa};
eDa=function(b,h,y){if(y){var S;if(((S=b.responsePlaylistData)==null?void 0:S.playlistId)!==y)return}b.responsePlaylistData&&(y=BPM(h,b.responsePlaylistData),b.responsePlaylistData=(0,_.lR.unsafeClone)(b.responsePlaylistData),AvN(b.responsePlaylistData,y));y=b.temporaryItems.findIndex(function(F){return F.videoId===h});
y>-1&&b.temporaryItems.splice(y,1);_.A0(b,_.UN(b,b.response?b.response.autoplayRenderer:void 0))};
_.C0o=function(b,h){if(b.responsePlaylistData){var y=WEy(h,b.responsePlaylistData);AvN(b.responsePlaylistData,y);if(b.queueProxy){var S=b.queueProxy;y<0||(S.videoIds.splice(y,1),y<S.currentIndex&&S.JSC$13216_setCurrentIndex(S.currentIndex-1),S.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:h}),NL(S))}}_.A0(b,_.UN(b,b.response?b.response.autoplayRenderer:void 0))};
By.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.A0(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
By.prototype.setPlaylistData=function(b,h,y){this.temporaryItems=[];this.listId=b;this.responsePlaylistData=h;_.A0(this,_.UN(this,y))};
var gON=function(b){return(b==null?0:b.playlistId)?b.playlistId:"PPSV"},svW=function(b){return b&&b.playlistId?b.playlistId==="PPSV"?!0:SGr(_.hP().getState().entities,b.playlistId):!1};
By.prototype.isPlayingOfflineVideo=function(){return this.response?svW(this.response):!1};
By.prototype.closeMiniplayer=function(b){var h=this.queueProxy&&this.queueProxy.size()<=1,y=_.H9().resolve(_.Vp);if(!this.queueProxy||h)this.queueProxy&&this.clearQueue(),y.close(!0);else{y.pipController.getWindow()&&window.focus();h=this.responsePlaylistData;var S=this.temporaryItems.length+(h&&h.contents?h.contents.length:0);h=_.Mt("QUEUE_CLEARED_UNPLURALIZED")||_.nI("QUEUE_CLEARED",S);h=_.Fd(h);y=_.Mt("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");S=_.Mt("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.nI("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",S);var F=_.Mt("MINIPLAYER_CLOSE",void 0,"Close"),a=_.Mt("CANCEL",void 0,"Cancel");_.aO(this.JSC$13270_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.mk(y),dialogMessages:[_.mk(S)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.mk(F),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
h]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.mk(a)}}}}}}],b)}};
_.UN=function(b,h){var y={},S=b.response;y.autoplayRenderer=h;if(!b.responsePlaylistData&&!b.temporaryItems.length)return!S||!S.hasRelatedVideoData&&_.r("kevlar_prefetch_data_augments_network_data")||(y.playerData={rvs:S.relatedVideoArgs,endScreenRenderer:S.endScreenRenderer}),y;y.playerData={};if(b.index===void 0)return _.QT(Error("Qf")),y;y.panel=b.responsePlaylistData?(0,_.lR.unsafeClone)(b.responsePlaylistData):{titleText:_.mk(_.Mt("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
h=y.panel;if(h.contents)for(var F=_.L(b.temporaryItems),a=F.next();!a.done;a=F.next())h.contents.push({playlistPanelVideoRenderer:a.value});b.queueProxy&&S&&S.playingVideo&&S.playingVideoId&&!IVj(S.playingVideoId,y.panel)&&(h=S.playingVideo,F=y.panel,a=b.index,F.contents&&F.contents.splice(a===void 0?0:a,0,{playlistPanelVideoRenderer:h}));S&&S.playingVideoId&&(h=b.index,F=y.panel,h=!F.contents||h>=F.contents.length?void 0:F.contents[h].playlistPanelVideoRenderer,h&&h.videoId===S.playingVideoId||(h=
BPM(S.playingVideoId,y.panel),b.index=h!==-1?h:b.index?b.index-1:0));h=DTU(b.index+1,y.panel);F=void 0;b.index>0&&(F=DTU(b.index-1,y.panel));if(F||h)y.autoplayRenderer=cvn(h,F,y.autoplayRenderer);!h&&(S==null?0:S.relatedVideoArgs)&&(y.playerData.rvs=S.relatedVideoArgs);S=S?S.playlistIndexOffset:0;b.queueProxy?jxM(y.panel,b.index,S,zc8,!0,!0,!0):jxM(y.panel,b.index,S);y.playerData.playlistPanelRenderer=y.panel;return y};
By.prototype.openToast=function(b){_.H9().resolve(_.Vp).openToast(b,_.Mt("ADDED_TO_QUEUE",void 0,"Added to queue"))};
By.prototype.isMiniplayerActive=function(){return _.H9().resolve(_.Vp).isMiniplayerActive()};
_.A0=function(b,h){b.playlistManager.setAutoplayRenderer(h.autoplayRenderer||null);b.playlistManager.setPlaylistData(h.panel||null);h.playerData&&b.playlistManager.setPlayerPlaybackControlData(h.playerData)};var Lqq="#";var YC7={},TjN={},GJP={},kJP={},VdM={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:(YC7.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",YC7),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:(TjN.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",TjN),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:(GJP.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",GJP),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:(kJP.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",kJP),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 fP8=[{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:VdM},{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:VdM}}];var CUU;_.o3=[[["b2VyeWtraW5kI2YwcnI1NDk=","c3ZhbHVlIzJsOGpoYjhwbWx2"],"aEFEX1BMQUNFTUVOVF9LSU5EX1NUQVJUIzdveDNnZjQ0NzV0"]];
CUU=[[["I21pa3U2c3R0ZWd5OHByaW1hcnk=",null,null],[null,["LXJlbmRlcmVyI29wN3JzMnltam5qM3l0ZC10d28tY29sdW1uLWJyb3dzZS1yZXN1bHRz","N3N0eWxlLXNjb3BlI3Iza2h0OGM2cXV5"],null],["YW1hc3RoZWFkLWFkI2N4dmU1cG5ucnQy",["OWRteXRkLXJpY2gtZ3JpZC1yZW5kZXJlciNvemVxY25lNXY="],null],[null,["MXkxeXRkLXJpY2gtZ3JpZC1yZW5kZXJlciNyejFwejNnNW4=","ZnN0eWxlLXNjb3BlI3E1bHdvNXd3cWc2"],null],[null,["LWJhbm5lci1wcm9tby1yZW5kZXJlciMzMXNzODBiN3FwZDZ5dGQ=","enN0eWxlLXNjb3BlI3VubDBlNWVwYmZk"],null],[null,["aWx6ZWs0dXl0ZC1hZC1zbG90LXJlbmRlcmVyI3VoYXJp"],
null]],[["OGJ2OXBsYXllci1hZHMjd2UxNjZ6aTM=",null,null]]];_.ZT=["YWNrcyM0YzdrNDZlY2VpdGlnbG9iYWxDYWxsYg==","eWpnMmZvbkFibm9ybWFsaXR5RGV0ZWN0ZWQjYXQzZjY5Mw==","bmt5YzRqdmoyNG9uQWRTa2lwIzRs","azFyNjF4dWN3cmF3X3BsYXllcl9yZXNwb25zZSN1ZGc=","I2lkZ2x1Y2drbWppZWFkU2xvdHM="];_.p0="YWNrcyM0YzdrNDZlY2VpdGlnbG9iYWxDYWxsYg== eWpnMmZvbkFibm9ybWFsaXR5RGV0ZWN0ZWQjYXQzZjY5Mw== bmt5YzRqdmoyNG9uQWRTa2lwIzRs azFyNjF4dWN3cmF3X3BsYXllcl9yZXNwb25zZSN1ZGc= bGVfc2tpcHNfa3MjOHprZ2V0Z2o1amN0d2ViX3BsYXlsaXN0X3F1ZXVlX211bHRpcA== cDBhYmtqbWt0ZWFiX3NhX2VmIzRr I2lkZ2x1Y2drbWppZWFkU2xvdHM=".split(" ");var J0;J0=function(b,h,y){this.sBJ=b;this.bZQ=h;this.igF=y};
_.FzI=[new J0("b.f_",!1,0),new J0("j.s_",!1,2),new J0("r.s_",!1,4),new J0("e.h_",!1,6),new J0("i.s_",!0,8),new J0("s.t_",!1,10),new J0("p.h_",!1,12),new J0("s.i_",!1,14),new J0("f.i_",!1,16),new J0("a.b_",!1,18),new J0("a.o_",!1),new J0("g.o_",!1,22),new J0("p.i_",!1,24),new J0("p.m_",!1),new J0("n.k_",!0,20),new J0("i.f_",!1),new J0("a.s_",!0),new J0("m.c_",!1),new J0("n.h_",!1,26),new J0("o.p_",!1),new J0("m.p_",!0,28),new J0("o.a_",!1),new J0("d.p_",!1),new J0("e.i_",!1)].reduce(function(b,h){b[h.sBJ]=
h;return b},{});var EOa=function(){};
EOa.prototype.flush=function(b,h){b=b===void 0?[]:b;h=h===void 0?!1:h;if(_.r("enable_client_streamz_web")){b=_.L(b);for(var y=b.next();!y.done;y=b.next())y=$oM(y.value),this.rootSpec&&_.U_(y,2,this.rootSpec),y={serializedIncrementBatch:_.CA(y.JSC$9790_serializeBinary())},_.qi("streamzIncremented",y,{sendIsolatedPayload:h})}};
var M9k=function(){};
_.z(M9k,EOa);var ibe=function(b){var h=new hu7;var y=new mKw;y=_.kb(y,1,"botguard");b=_.kb(y,2,b);this.rootSpec=_.pc(h,1,yra,b)};
_.z(ibe,EOa);var LR,fxa=new Map;var T7k,XDy,zEk,Ok5,rp4,Jp5,k_Y,UpF;T7k=2;XDy=2;zEk=2;Ok5=2;rp4=2;Jp5=2;k_Y=2;UpF=new FBe;var lxW,qCG;lxW=function(){this.ongoingFlowNonces=new Map};
_.Xd=function(){qCG||(qCG=new lxW);return qCG};
_.nR=function(b,h,y){return{eventType:{flowEventNamespace:b,flowEventType:h},metadata:y,statusCode:void 0,csn:void 0,can:void 0}};
_.dY8=function(b,h){var y=_.Xd(),S=xrM(y,h,!0);y.logFlowEvent(b,h,S,void 0)};
lxW.prototype.logFlowEvent=function(b,h,y,S){h={flowNonce:y||xrM(this,h),flowType:h,flowEventType:b.eventType};b.metadata&&(h.flowMetadata=b.metadata);b.statusCode!==void 0&&(h.flowEventStatus=b.statusCode);b.csn&&(h.csn=b.csn);b.can&&(h.can=b.can);_.qi("flowEvent",h,S)};
var xrM=function(b,h,y){y=y===void 0?!1:y;var S=b.ongoingFlowNonces.get(h);if(!S||y)S=B5(16),b.ongoingFlowNonces.set(h,S);return S};_.Qv8=new Svb;var Kzq={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 e1=function(b,h,y,S,F,a,P){y=y===void 0?!1:y;S=S===void 0?!1:S;a=a===void 0?_.Wy():a;this.jp=!1;this.qKX=b;this.qjP=h;this.xvd=y;this.fromHistory=S;this.previousVideoId=F;this.fGM=a;this.tempData=P;this.lGQ=new _.aB5};
_.z(e1,sU);e1.prototype.validate=function(b){return!(!b.data.playerResponse||b.data.page!=="watch"&&b.data.page!=="learning_journey_watch"&&b.data.page!=="shorts"||this.jp)};
e1.prototype.handle=function(b){var h=this,y=_.c(b.endpoint,_.wO),S=_.c(b.endpoint,_.cd);if(_.r("kevlar_continue_playback_without_player_response")&&(y==null?0:y.videoId)&&this.previousVideoId&&(y==null?void 0:y.videoId)===this.previousVideoId&&(y==null?0:y.continuePlayback)&&!this.fromHistory)this.qKX.resolve();else{var F={};y?F.watch_endpoint=y:S&&(F.watch_endpoint=S,S.endTimeSeconds&&(F.end=S.endTimeSeconds));b.data.page==="watch"?(b.data.filler||this.xvd||(_.JL("cfg"),_.$J.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(F,mrW(this,b.endpoint)),_.r("enable_masthead_quartile_ping_fix")&&Object.assign(F,vOW(this)),Object.assign(F,void 0),b.data.forceExternalPlaylist&&(F.external_list=!0)):b.data.page==="shorts"?_.$J.getInstance().triggerAction("yt-start-loading-shorts"):b.data.page==="learning_journey_watch"&&_.$J.getInstance().triggerAction("yt-start-loading-learning-journey");if(y=this.qjP()){try{y.loadVideoWithPlayerResponse(b.data.playerResponse,F),y.getPlayerPromise().then(this.qKX.resolve)}catch(a){_.QT(a),
this.qKX.resolve()}this.jp=!0;y.getPlayerPromise().then(function(a){a.addEventListener("onAbnormalityDetected",function(){var P=b.data.playerResponse,K=a.getVideoData().cpn;k_Y=0;_.wee=K;if(K=SXj(P))h.lGQ.increment("IN_PLAYER"),_.Hd(5),_.r("ab_st_vid_ks")?a.pauseVideo(!0):a.stopVideo(),P.playabilityStatus=Object.assign({},P.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:K}}),P.videoDetails=void 0,_.$J.getInstance().triggerOptionalAction("yt-updated-playability-status",
P.playabilityStatus)})})}else _.vX(Error("Tf"))}};
var mrW=function(b,h){var y=_.c(h,_.wO);if(h&&y&&y.playlistId&&y.videoId&&(b=b.fGM,b.queueProxy?(b=b.queueProxy,y=b.listId===y.playlistId?b.attributionData.get(y.videoId):void 0):y=void 0,y))return{queue_info:y}},vOW=function(b){var h;
if((h=b.tempData)==null?0:h.adpings)return{adpings:b.tempData.adpings}};var C0=function(b,h,y){this.jp=!1;this.uhr=b;this.y3Q=h;this.p2z=y};
_.z(C0,sU);C0.prototype.validate=function(b){return!!_.lR.getValueByKeys.apply(null,[b.data].concat(_.f$(rE5)))};
C0.prototype.handle=function(b){var h=this;this.uhr.promise.then(function(){var y=b.data;var S=_.lR.getValueByKeys.apply(null,[y].concat(_.f$(nOw))),F=_.lR.getValueByKeys.apply(null,[y].concat(_.f$(NjM))),a=_.lR.getValueByKeys.apply(null,[y].concat(_.f$(Hb5)));var P=(P=_.lR.getValueByKeys.apply(null,[y].concat(_.f$(XeW))))?{videoId:P.videoId,thumbnail:P.thumbnail,title:P.title?_.mk(P.title):void 0,shortBylineText:P.author?_.mk(P.author):void 0}:void 0;var K=void 0;_.r("web_get_playlist_id_from_current_endpoint_ks")||
(K=_.lR.getValueByKeys.apply(null,[y].concat(_.f$(urW))));var n=_.lR.getValueByKeys.apply(null,[y].concat(_.f$(tdW))),X=_.lR.getValueByKeys.apply(null,[y].concat(_.f$(Ob8))),u=!!n||!!X&&!!X.results&&X.results.length>0,O=0;F&&F.currentIndex&&F.localCurrentIndex&&(O=F.currentIndex-F.localCurrentIndex);F&&F.playlistId&&(K=F.playlistId);y={rawResponse:y,autoplayRenderer:S,hasRelatedVideoData:u,playingVideo:P,playingVideoId:a,playlistPanelRenderer:F,playlistId:K,playlistIndex:F&&F.currentIndex,relatedVideoArgs:n,
endScreenRenderer:X,playlistIndexOffset:O};a:{S=h.p2z;F=h.y3Q;S.response=y;if(svW(y))S.downloadPlaylistProxy&&S.downloadPlaylistProxy.getPlaylistId()===gON(y)||(S.downloadPlaylistProxy=new jvw(gON(y),S.setPlaylistData.bind(S),S.isPlayingOfflineVideo.bind(S))),S.responsePlaylistData=S.downloadPlaylistProxy.getPlaylistData(),S.listId=gON(y),S.index=0;else if(y.playlistPanelRenderer&&y.playlistId&&y.autoplayRenderer)y.playlistId.startsWith("TLPQ")?S.queueProxy?S.listId===y.playlistId?(S.index=y.playlistIndex,
S.responsePlaylistData=y.playlistPanelRenderer,S.queueProxy.JSC$13216_setCurrentIndex(S.index)):y.playingVideoId&&S.index!==void 0&&F.clientParams.autoSaveToQueue&&(S.index+=1,S.queueProxy.JSC$13216_setCurrentIndex(S.index),S.queueProxy.addVideos([y.playingVideoId],{},S.index)):(S.queueProxy=new _.t0(S.JSC$13270_playlistNetworkManager,y.playlistId,S.setPlaylistData.bind(S),S.clearQueue.bind(S),_.aPY(y.playlistPanelRenderer),S.storage),S.responsePlaylistData=y.playlistPanelRenderer,S.listId=y.playlistId,
S.index=y.playlistIndex):(S.index=y.playlistIndex,S.listId!==y.playlistId&&S.clearQueue(),S.responsePlaylistData=y.playlistPanelRenderer,S.listId=y.playlistId,S.playlistProxy=new MdW(S.JSC$13270_playlistNetworkManager,y.playlistId,S.setPlaylistData.bind(S),_.aPY(y.playlistPanelRenderer)));else if(!S.queueProxy)S.responsePlaylistData=void 0;else if(y.playingVideoId&&F.clientParams.autoSaveToQueue){if(S.index===void 0){_.QT(Error("Pf"));S.clearQueue();break a}S.queueProxy.videoIds.includes(y.playingVideoId)||
(S.index+=1,S.queueProxy.JSC$13216_setCurrentIndex(S.index),S.queueProxy.addVideos([y.playingVideoId],{},S.index))}_.A0(S,_.UN(S,S.response.autoplayRenderer))}})};var bUe=function(b,h){h=h===void 0?_.Wy():h;vA.call(this);this.kY.push(new C0(this.xx,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},h));this.kY.push(new e1(this.xx,b,!1,!1));_.r("web_response_commands_chunk_processor")&&this.kY.push(new bK)};
_.z(bUe,vA);bUe.prototype.processChunk=function(b){b&&b.data.player===void 0&&this.xx.resolve();vA.prototype.processChunk.call(this,b)};var gD=function(b,h){b=b===void 0?{layer:0}:b;this.jp=!1;this.createScreenConfig=b;this.vcM=h};
_.z(gD,sU);gD.prototype.validate=function(b){return!(this.jp||!b.endpoint)};
gD.prototype.handle=function(b){var h=_.rU(),y,S,F=(S=_.c((y=b.endpoint)==null?void 0:y.commandMetadata,_.ZW))==null?void 0:S.rootVe;this.vcM&&F?_.w2(h,F,this.vcM,this.createScreenConfig):keo(h,b.endpoint,this.createScreenConfig);this.jp=!0};var sN=function(b,h){this.jp=!1;this.bcM=b;this.previousVideoId=h};
_.z(sN,sU);sN.prototype.validate=function(b){return _.r("kevlar_continue_playback_without_player_response")&&(b=_.c(b.endpoint,_.wO),(b==null?0:b.videoId)&&this.previousVideoId&&(b==null?void 0:b.videoId)===this.previousVideoId&&(b==null?0:b.continuePlayback))?!1:this.bcM.kBZ===0};
sN.prototype.handle=function(b){_.$J.getInstance().triggerAction("yt-stop-old-player",b.data,!0)};var h6o=function(b){b=b===void 0?{layer:0}:b;vA.call(this);this.kY.push(new sN(this));this.kY.push(new gD(b));this.kY.push(new mJ(b))};
_.z(h6o,vA);var YX=function(){sU.apply(this,arguments)};
_.z(YX,sU);YX.prototype.validate=function(b){return!!b.data.preconnect};
YX.prototype.handle=function(b){_.pI("bc");b=_.L(b.data.preconnect);for(var h=b.next();!h.done;h=b.next())h=h.value,(new Image).src=h};var yNe=function(b,h,y,S,F,a,P){y=y===void 0?{layer:0}:y;a=a===void 0?_.Wy():a;vA.call(this);if(S)if(F){F=a;this.kY.push(new C0(this.xx,h,F));this.kY.push(new YX);var K,n;this.kY.push(new e1(this.xx,b,!1,!((K=h.clientParams)==null||!K.fromHistory),(n=h.clientParams)==null?void 0:n.previousVideoId,F,h.tempData));var X;this.kY.push(new sN(this,(X=h.clientParams)==null?void 0:X.previousVideoId));var u;(u=h.clientParams)!=null&&u.fromHistory||(y.layer||(y=Object.assign({},y,{layer:0})),this.kY.push(new gD(y,
P)),this.kY.push(new mJ(y)))}else this.kY.push(new C0(this.xx,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},a)),this.kY.push(new e1(this.xx,b,!1,!1));else this.kY.push(new sN(this)),this.kY.push(new gD(y)),this.kY.push(new mJ(y));_.r("web_response_commands_chunk_processor")&&S&&this.kY.push(new bK)};
_.z(yNe,vA);yNe.prototype.processChunk=function(b){b&&b.data.player===void 0&&this.xx.resolve();vA.prototype.processChunk.call(this,b)};var SIb=function(){this.jp=this.jp=!1};
_.z(SIb,sU);SIb.prototype.validate=function(b){return!this.jp&&!(!b.data.csn||!b.data.rootVe)};
SIb.prototype.handle=function(b){this.jp=!0;_.e3(b.data.csn,b.data.rootVe,3)};var Fuw=function(b,h,y){y=y===void 0?{layer:0}:y;vA.call(this);this.kY.push(new e1(this.xx,b));this.kY.push(new gD(y));this.kY.push(new mJ(y))};
_.z(Fuw,vA);var atM=function(b,h,y,S,F){y=y===void 0?{layer:0}:y;S=S===void 0?_.Wy():S;vA.call(this);var a=!!h&&!!h.clientParams&&!!h.clientParams.miniplayer;a&&this.kY.push(new SIb);this.kY.push(new C0(this.xx,h,S));this.kY.push(new YX);var P,K;this.kY.push(new e1(this.xx,b,a,!((P=h.clientParams)==null||!P.fromHistory),(K=h.clientParams)==null?void 0:K.previousVideoId,S,h.tempData));var n;this.kY.push(new sN(this,(n=h.clientParams)==null?void 0:n.previousVideoId));var X;(X=h.clientParams)!=null&&X.fromHistory||
(y.layer||(y=Object.assign({},y,{layer:a?3:0})),this.kY.push(new gD(y,F)),this.kY.push(new mJ(y)));_.r("web_response_commands_chunk_processor")&&this.kY.push(new bK)};
_.z(atM,vA);var T2,$3o;T2={};
_.d3W=(T2["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},T2["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},T2["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},T2["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},T2["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},T2["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},T2["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},T2);_.G2=new _.SZ("yt-edu");_.ju5=function(){this.JSC$13368_eduDisplayedThisLoad_={}};
$3o=function(b){var h=_.ju5.getInstance();var y=_.tj("kevlar_tooltip_impression_cap");h=y&&parseInt(_.G2.get(b+"-impression")||0,10)>=y||_.G2.get(b+"-dismissed")?!1:(y=_.d3W[b])&&!h.JSC$13368_eduDisplayedThisLoad_[y.setKey||b]&&(y.titleText&&_.Mt(y.titleText)||y.bodyText&&_.Mt(y.bodyText))?!0:!1;if(!h)return null;h=_.d3W[b];if(!h)return null;y=h.bodyText?_.Mt(h.bodyText):void 0;var S=h.titleText?_.Mt(h.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:h.position,popup:{bubbleHintRenderer:{text:S?
_.mk(S):void 0,detailsText:y?_.mk(y):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.mk(_.Mt("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:b}}]}}}}}}}},{eduImpressionAction:{key:b}}]};
_.$Y(_.ju5);var jQk=!1;for(var Lu8="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),P2M=[],kX=6;kX>=1;kX--)P2M.push({columnCount:kX,query:kX==1?0:kX*2*107-4+32,className:"grid-"+kX+"-columns",width:kX*2*107+"px"});_.VI=function(b){this.actionRouter_=b=b===void 0?_.$J.getInstance():b;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.KuW(this);this.persistentPanelVisible_=this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.KuW=function(b){var h=b.documentWidth_-(b.miniGuideVisible_?72:0)-(b.guidePersistentAndVisible_?240:0)-(b.persistentPanelVisible_?400:0);return P2M.find(function(y){return h>y.query})};
_.$Y(_.VI);var ZUG=function(){var b=this;this.JSC$13380_keyboardInUse=!1;document.addEventListener("keydown",function(){b.onKeydown()});
document.addEventListener("mousedown",function(){b.JSC$13380_keyboardInUse=!1})},oVW;
ZUG.prototype.isKeyBoardInUse=function(){return this.JSC$13380_keyboardInUse};
ZUG.prototype.onKeydown=function(){this.JSC$13380_keyboardInUse=!0};var ME7,lK;_.EN=new _.SZ("yt-mentions");_.wD=function(){};
ME7=function(b,h){return lK(h,"drag-to-reorder-edu-displayed")};
lK=function(b,h,y,S,F,a){y=y===void 0?"OPEN_POPUP_POSITION_TOP":y;if(h){if(_.EN.get(h))return;_.EN.set(h,!0,S)}if(F&&a!==void 0){h=Number(_.EN.get(F)||0);if(h>=a)return;_.EN.set(F,h+1)}return[{openPopupAction:{popupType:"HINT",position:y,popup:{bubbleHintRenderer:{detailsText:b,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.$Y(_.wD);var nVG,X$W,HU8;nVG=function(b,h,y,S){this.JSC$13390_taskManager_=b;this.onFulfilled_=typeof h==="function"?h:null;this.onRejected_=typeof y==="function"?y:null;this.JSC$13390_context_=S};
X$W=function(b,h){b.onFulfilled_&&_.I7(b.JSC$13390_taskManager_,function(){b.onFulfilled_.call(b.JSC$13390_context_,h)})};
HU8=function(b,h){b.onRejected_&&_.I7(b.JSC$13390_taskManager_,function(){b.onRejected_.call(b.JSC$13390_context_,h)})};
_.qL=function(b){this.JSC$13393_taskManager_=b;this.callbacks_=[]};
_.qL.prototype.then=function(b,h,y){this.callbacks_.push(new nVG(this.JSC$13393_taskManager_,b,h,y));return this};
_.qL.prototype.onSuccess=function(b){this.callbacks_.forEach(function(h){X$W(h,b)})};
_.qL.prototype.onFailure=function(b){this.callbacks_.forEach(function(h){HU8(h,b)})};
_.qL.prototype.cancel=function(){this.callbacks_.length=0};
K$W(_.qL);_.owN=null;_.rS=new _.ca("ACTIVITY_TOKEN");var uMb;_.A_=new _.ca("PAGE_REQUEST_TOKEN");uMb=new _.ca("FETCH_PBJ_TOKEN");_.OUa=function(b){if(b.validatedFragments_.length==0)return null;if(!b.mergedPrefetchedData_){for(var h=[],y=_.L(b.validatedFragments_),S=y.next();!S.done;S=y.next()){S=_.L(b.fragmentConfiguration_[S.value].graftedKeys);for(var F=S.next();!F.done;F=S.next())(F=b.prefetchedData_[F.value].trackingParams)&&h.push(F)}b.mergedPrefetchedData_={};Object.assign(b.mergedPrefetchedData_,b.prefetchedData_,{clientSideGrafts:h})}return b.mergedPrefetchedData_};var Ntw;_.xX=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
Ntw=function(b,h,y){if(_.MUy(h))return b.prefetchCache_.get(_.nwI(h,y))};_.QI=new _.ca("NAVIGATION_TOKEN");var tEo=function(b){var h=this;var y=y===void 0?uw8():y;var S=S===void 0?_.H9().resolve(_.QI):S;this.onePickCommand=b;this.JSC$13465_playlistNetworkManager=y;this.navigationManager=S;this.videoPickerBuilder=_.XQf("yt-addtoplaylist");_.JR8(DQw(InN(zY8(this.videoPickerBuilder.setTitle(b.modalTitle).setSize(1E3).addView(WVG()).addView(B_N())).addView("youtube"),b.selectButtonLabel)),function(F){h.handleAction(F)})};
tEo.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
tEo.prototype.handleAction=function(b){var h=this;if(b&&this.onePickCommand.listId&&b.action==="picked"&&b.docs){var y=[];b.docs.forEach(function(S){y.push({addedVideoId:S.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13465_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,y).then(function(){_.r("playlist_add_video_hard_reload_killswitch")?h.navigationManager.reload():rNo(h.navigationManager)})}};var cNa=function(){if(this.constructor===cNa)throw new TypeError("Vf");};
_.d=cNa.prototype;_.d.dispose=function(){};
_.d.disconnect=function(){};
_.d.reconnect=function(){};
_.d.observe=function(b,h,y){return{element:b,option:y}};
_.d.unobserveByKey=function(){};var Orf=function(b,h){h=h===void 0?0:h;cNa.call(this);this.viewroot=b;this.defaultPrescanHeight=h;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),b?{root:b,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.z(Orf,cNa);_.d=Orf.prototype;_.d.dispose=function(){this.disconnect();this.handlers.clear()};
_.d.disconnect=function(b){this.isConnected=!1;this.pauseObservingUntilReconnect=b===void 0?!1:b;this.observer.disconnect();b=_.L(this.prescanObservers.values());for(var h=b.next();!h.done;h=b.next())h.value.disconnect()};
_.d.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var b=_.L(this.handlers),h=b.next();!h.done;h=b.next()){var y=_.L(h.value);h=y.next().value;var S=y.next().value;y=!1;S=_.L(S.keys());for(var F=S.next();!F.done;F=S.next())if((F=F.value)&&F.state==="prescan"){y=!0;break}y&&R6o(this,h).observe(h);this.observer.observe(h)}}};
_.d.handleObserveEvent=function(b){b=_.L(b);for(var h=b.next();!h.done;h=b.next()){h=h.value;var y=this.handlers.get(h.target);if(y){var S=h.isIntersecting;y=_.L(y);for(var F=y.next();!F.done;F=y.next()){var a=_.L(F.value);F=a.next().value;a=a.next().value;F&&(F.state==="visible"&&S||F.state==="hidden"&&!S)&&(a(h.target,F.state),F.calledOnce&&this.unobserveByKey({element:h.target,option:F}))}}}};
_.d.handlePrescanEvent=function(b){b=_.L(b);for(var h=b.next();!h.done;h=b.next()){h=h.value;var y=this.handlers.get(h.target);if(y&&h.isIntersecting){y=_.L(y);for(var S=y.next();!S.done;S=y.next()){var F=_.L(S.value);S=F.next().value;F=F.next().value;S&&S.state==="prescan"&&(F(h.target,S.state),S.calledOnce&&this.unobserveByKey({element:h.target,option:S}))}}}};
_.d.observe=function(b,h,y){var S=(S=this.handlers.get(b))&&S.has(y)?{element:b,option:y}:void 0;if(S)return S;S={element:b,option:y};this.handlers.has(b)||this.handlers.set(b,new Map);var F=this.handlers.get(b);F&&!F.has(y)&&F.set(y,h);this.pauseObservingUntilReconnect||(y.state==="prescan"&&R6o(this,b).observe(b),this.observer.observe(b));return S};
_.d.unobserveByKey=function(b){var h=this.handlers.get(b.element);if(h&&h.has(b.option)){h.delete(b.option);if(b&&b.option.state==="prescan")for(var y=_.L(this.prescanObservers.values()),S=y.next();!S.done;S=y.next())S.value.unobserve(b.element);h.size===0&&(this.handlers.delete(b.element),this.observer.unobserve(b.element))}};
var R6o=function(b,h){var y=b.defaultPrescanHeight;h.hasAttribute("prescan-height")&&(h=Number(h.getAttribute("prescan-height")),isNaN(h)||(y=h));if(b.prescanObservers.has(y))return b.prescanObservers.get(y);h="-0.1px -0.1px "+y+"px -0.1px";h=new IntersectionObserver(b.handlePrescanEvent.bind(b),b.viewroot?{root:b.viewroot,rootMargin:h}:{rootMargin:h});b.prescanObservers.set(y,h);return h};var z67=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],D38=function(){var b,h=this;this.JSC$13482_actionRouter=b=b===void 0?_.$J.getInstance():b;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return h.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return h.visibilityObservedElementHandlerKeys}}},ItP,m3,ANN;
D38.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.r("kevlar_use_vimio_behavior")&&_.QC("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=NEI())};
D38.prototype.dispose=function(){this.visibilityMonitor&&_.Yy(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
D38.prototype.handleVisibilityRefreshed=function(){for(var b=_.L(this.targetMap.entries()),h=b.next();!h.done;h=b.next()){var y=_.L(h.value);h=y.next().value;y=y.next().value;_.BtP(this,h,y)}};
_.vy=function(b,h,y){m3(b,y);var S=_.Wub(b,h);S.element=y;b.targetedElements.set(y,h);_.BtP(b,h,S)};
m3=function(b,h){var y=b.targetedElements.get(h);if(y){var S=b.targetMap.get(y);S&&(delete S.element,b.targetMap.set(y,S));b.targetedElements.delete(h);b.visibilityObserver&&b.visibilityObservedElementHandlerKeys&&(y=b.visibilityObservedElementHandlerKeys.get(h))&&(b.visibilityObserver.unobserveByKey(y),b.visibilityObservedElementHandlerKeys.delete(h))}};
_.BtP=function(b,h,y){var S=y.action,F=y.element;F&&S&&(z67.includes(h)||_.QC("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||b.visibilityMonitor&&b.visibilityMonitor.isNodeVisible(F)?ANN(b,h,y):b.visibilityObserver&&(b.visibilityObservedElementHandlerKeys||(b.visibilityObservedElementHandlerKeys=new WeakMap),S=b.visibilityObserver.observe(F,function(){ANN(b,h,y);b.visibilityObservedElementHandlerKeys.delete(F)},{calledOnce:!0,
state:"visible"}),b.visibilityObservedElementHandlerKeys.set(F,S)))};
ANN=function(b,h,y){var S=y.action;(y=y.element)&&S&&(_.aO(b.JSC$13482_actionRouter,[S],y),b.targetMap.delete(h),b.targetedElements.delete(y),b.triggeredTargets.add(h))};
_.Wub=function(b,h){var y=b.targetMap.get(h);y||(y={},b.targetMap.set(h,y));return y};
_.bg=function(){ItP||(ItP=new D38);return ItP};var U3M=document.createElement("div");U3M.style.touchAction="pan-down";var tUn=U3M.style.touchAction==="pan-down";var p$e,JNo;p$e=function(){this.hammerFn=eNM();this.JSC$13490_screenManager=_.rU();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.Kh(83615);_.qu(this.JSC$13490_screenManager,this.ve);rZn()};
_.hJ=function(){JNo||(JNo=new p$e);return JNo};
p$e.prototype.registerTouchEvents=function(b,h,y){var S=_.x$.apply(3,arguments),F=this.hammerFn(b,{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}]]});y&&F.set({touchAction:y});this.nodeManagerMapping.set(b,F);var a=
cZM(h);S=_.L(S);for(var P=S.next();!P.done;P=S.next()){P=P.value;if(P.includes("swipe")||P.includes("pinch")||P.includes("pan"))P.includes("swipe")?F.get("swipe").set({enable:!0,direction:a,velocity:.2}):P.includes("pinch")?F.get("pinch").set({enable:!0}):P.includes("pan")&&(F.get("pan").set({enable:!0,direction:a}),F.get("swipe").set({enable:!0,direction:a,velocity:.2}),F.get("swipe").recognizeWith("pan"));e6P(this,b,F,P)}};
var e6P=function(b,h,y,S){y.on(S,function(F){if(S.includes("pinch"))b.lastPinchTime=Date.now();else if(S.includes("swipe")&&Date.now()-b.lastPinchTime<400)return;F.pointerType!=="mouse"&&(F=S==="doubletap"?{coordinates:F.center}:S.includes("pan")?F:S.includes("swipe")?{target:F.target}:{},h.dispatchEvent(new CustomEvent(S,{bubbles:!0,composed:!0,detail:F})))})};
p$e.prototype.unregisterTouchEvents=function(b){var h=_.x$.apply(1,arguments),y=this.nodeManagerMapping.get(b);if(y){h=_.L(h);for(var S=h.next();!S.done;S=h.next())y.off(S.value);this.nodeManagerMapping.delete(b);b.style.touchAction="unset"}};var C28=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var Rfq=null;_.I3={getLocalStorage:_.gX(function(){try{var b=new vpN;var h=b.isAvailable()?b:null}catch(y){return null}return h?new _.Am(h):null}),
getSessionStorage:_.gX(function(){var b=new bi5;return b.isAvailable()?new _.Am(b):null})};var gVa=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},VUM=function(){gVa.instance||(gVa.instance=new gVa);
return gVa.instance},Ewk=function(b){var h=b.networkEvents;
b.networkEvents=[];return _.r("enable_network_monitoring")?h:[]};var suN;suN={};_.YI8=Ov("yt-serviceworker-metadata",{objectStores:(suN.auth={addedAtVersion:1},suN["resource-manifest-assets"]={addedAtVersion:2},suN),shared:!0,upgrade:function(b,h){h(1)&&ah(b,"resource-manifest-assets");h(2)&&ah(b,"auth")},
version:2});var AZF=self.location.origin+"/";UYn([/^https:\/\/([\w-]*\.)*youtube\.com.*/,/^https:\/\/([\w-]*\.)*gstatic\.com.*/]);UYn([/\.css$/,/\.js$/,/\.webm$/,/\.png$/]);UYn([/\.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\//]);UYn([/purge_shell=1/]);var Tt8=void 0;Tt8=Tt8===void 0?[]:Tt8;
for(var GT5=[],kTa=_.L(ZIb),VEW=kTa.next();!VEW.done;VEW=kTa.next())GT5.push({key:VEW.value});for(var EVa=_.L(Tt8),iUM=EVa.next();!iUM.done;iUM=EVa.next())GT5.push(iUM.value);var ftb,U0=_.S5==null?void 0:(ftb=_.S5.performance)==null?void 0:ftb.memory,efY=!1,ir5={},sQ8={},pR={},JP=navigator;var y5=function(b){this.JSC$13535_expiringStorage=new Vb(b)};
y5.prototype.set=function(b,h,y){y=y!==void 0?Date.now()+y:void 0;this.JSC$13535_expiringStorage.set(b,h,y)};
y5.prototype.get=function(b){return this.JSC$13535_expiringStorage.get(b)};
y5.prototype.remove=function(b){this.JSC$13535_expiringStorage.remove(b)};var vw8=_.bm(["https://www.youtube.com/",""]),b1k=_.bm(["https://studio.youtube.com/",""]),a0j="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",yCn=null,Plk;var w$a=_.bm(["https://www.youtube.com/iframe_api"]),SS=function(){this.playerResolver_=_.wS();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.C8;this.playbackDurationSeconds_=0},lta=function(b){var h=function(){return window.YT&&typeof window.YT.ready==="function"};
if(h())return _.$p(window.YT);var y=_.wS(),S=_.gB("SCRIPT");S.onload=S.onreadystatechange=function(){S.readyState&&S.readyState!="loaded"&&S.readyState!="complete"||(S.onload=_.C8,S.onreadystatechange=_.C8,S.onerror=_.C8,h()?y.resolve(window.YT):y.reject(new _.Gn("Failed to load the iframe player library","script.onload",S.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
S.onerror=function(F){S.onload=_.C8;S.onreadystatechange=_.C8;S.onerror=_.C8;y.reject(new _.Gn("Failed to load the iframe player library","script.onerror",F&&F.target&&F.target.src))};
_.ZF(S,_.Ra(w$a));b.insertBefore(S,b.firstChild);return y.promise},qI7=function(b,h,y){var S,F;
_.Z(function(a){switch(a.nextAddress){case 1:return b.playbackEndedCallback_=y,_.WE(a,2),a.yield(lta(h.parentElement||null),4);case 4:S=a.yieldResult;_.Lz(a,3);break;case 2:return F=_.C$(a),F instanceof _.Gn&&F.args&&F.args[0]=="script.onerror"?_.vX(F):_.QT(F),a.return();case 3:S.ready(function(){return new S.Player(h,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:b.onPlayerReady_.bind(b),onStateChange:b.onPlayerStateChange_.bind(b),
onCueRangeExit:b.onCueRangeExit_.bind(b)}})}),_.g3(a)}})};
_.d=SS.prototype;_.d.getPlayerPromise=function(){return this.playerPromise_};
_.d.onPlayerReady_=function(b){this.playerResolver_.resolve(b.target)};
_.d.onPlayerStateChange_=function(b){if(b.data==YT.PlayerState.PLAYING){b=b.target;var h=b.getCurrentTime();b.addCueRange("playback",h,h+this.playbackDurationSeconds_)}};
_.d.onCueRangeExit_=function(b){b.data=="playback"&&(b.target.stopVideo(),this.playbackEndedCallback_())};
_.d.stopVideo=function(){this.playerPromise_.then(function(b){b.stopVideo()})};
var x3a=function(b){b.playerVars_&&b.playerPromise_.then(function(h){typeof h.cueVideoByPlayerVars!="function"?_.vX(new _.Gn("vmh: player API not ready","cueVideoByPlayerVars",typeof h.cueVideoByPlayerVars)):h.cueVideoByPlayerVars(b.playerVars_)})};
SS.prototype.playVideo=function(){var b=this;this.playerVars_&&this.playerPromise_.then(function(h){typeof h.loadVideoByPlayerVars!="function"?(h=new _.Gn("vmh: player API not ready","loadVideoByPlayerVars",typeof h.loadVideoByPlayerVars),_.QT(h)):h.loadVideoByPlayerVars(b.playerVars_)})};
var QuW=function(b,h,y,S,F){h&&(y===void 0&&(y=0),S===void 0&&(S=0),b.playbackDurationSeconds_=S/1E3,b.playerVars_={adformat:"17_8",videoId:h,suggestedQuality:"hd720",startSeconds:y/1E3,player_params:F})};
SS.prototype.mute=function(){this.playerPromise_.then(function(b){b.mute()})};
SS.prototype.unMute=function(){this.playerPromise_.then(function(b){b.unMute()})};var H1q=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var Fc;Fc=function(){this.tokenJars={};if(this.cookiesEnabled=_.sM()){var b=_.Cn.get("CONSISTENCY",void 0);b&&m37(this,{encryptedTokenJarContents:b})}};
_.O1Y=function(){Fc.instance||(Fc.instance=new Fc);return Fc.instance};
Fc.prototype.handleResponse=function(b,h){if(!h)throw Error("$f");var y,S;h=((y=h.innerTubeRequest.context)==null?void 0:(S=y.request)==null?void 0:S.consistencyTokenJars)||[];var F;(b=(F=b.responseContext)==null?void 0:F.consistencyTokenJar)&&this.replace(h,b)};
Fc.prototype.replace=function(b,h){b=_.L(b);for(var y=b.next();!y.done;y=b.next())delete this.tokenJars[y.value.encryptedTokenJarContents];m37(this,h)};
var m37=function(b,h){if(h.encryptedTokenJarContents&&(b.tokenJars[h.encryptedTokenJarContents]=h,typeof h.expirationSeconds==="string")){var y=Number(h.expirationSeconds);setTimeout(function(){delete b.tokenJars[h.encryptedTokenJarContents]},y*1E3);
b.cookiesEnabled&&_.gH("CONSISTENCY",h.encryptedTokenJarContents,y,void 0,!0)}};var vVW,aD;vVW=window.location.hostname.split(".").slice(-2).join(".");_.fR=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var b=_.QC("LOCATION_PLAYABILITY_TOKEN");_.QC("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=bCP(this))&&(b=this.localStorage.get("yt-location-playability-token"));b&&(this.locationPlayabilityToken=b,this.mostRecentPosition=void 0)};
_.fR.getInstance=function(){aD=_.hj("yt.clientLocationService.instance");aD||(aD=new _.fR,_.HL("yt.clientLocationService.instance",aD));return aD};
_.fR.prototype.setLocationOnInnerTubeContext=function(b){b.client||(b.client={});if(this.mostRecentPosition)b.client.locationInfo||(b.client.locationInfo={}),b.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),b.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),b.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),b.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)b.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.fR.prototype.handleResponse=function(b){var h;b=(h=b.responseContext)==null?void 0:h.locationPlayabilityToken;b!==void 0&&(this.locationPlayabilityToken=b,this.mostRecentPosition=void 0,_.QC("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=bCP(this))&&this.localStorage.set("yt-location-playability-token",b,15552E3):_.gH("YT_CL",JSON.stringify({loctok:b}),15552E3,vVW,!0))};
var bCP=function(b){return b.localStorage===void 0?new _.SZ("yt-client-location"):b.localStorage};
_.fR.prototype.clearLocationPlayabilityToken=function(b){b==="TVHTML5"?(this.localStorage=bCP(this))&&this.localStorage.remove("yt-location-playability-token"):_.fW8("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.fR.prototype.getCurrentPositionFromGeolocation=function(){var b=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("ag"));var h=!1,y=1E4;_.QC("INNERTUBE_CLIENT_NAME")==="MWEB"&&(h=!0,y=15E3);return new Promise(function(S,F){navigator.geolocation.getCurrentPosition(function(a){b.mostRecentPosition=a;S(a)},function(a){F(a)},{enableHighAccuracy:h,
maximumAge:0,timeout:y})})};
_.fR.prototype.createUnpluggedLocationInfo=function(b){var h={};b=b.coords;if(b==null?0:b.latitude)h.latitudeE7=Math.floor(b.latitude*1E7);if(b==null?0:b.longitude)h.longitudeE7=Math.floor(b.longitude*1E7);if(b==null?0:b.accuracy)h.locationRadiusMeters=Math.round(b.accuracy);return h};
_.fR.prototype.createLocationInfo=function(b){var h={};b=b.coords;if(b==null?0:b.latitude)h.latitudeE7=Math.floor(b.latitude*1E7);if(b==null?0:b.longitude)h.longitudeE7=Math.floor(b.longitude*1E7);return h};var hFW=function(b,h){var y=Yj();b||(b="unknown");h||(h="unknown");b="MAIN_APP_WEB_PAGE_TYPE_"+b.toUpperCase();b in Ie7||(b="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");h="MAIN_APP_WEB_REQUEST_TYPE_"+h.toUpperCase();h in B2W||(h="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.Hf(y,{mainAppWeb:{pageType:b,requestType:h,isShellLoad:_.m$("IS_SHELL_LOAD",!1)}})},yu8={start:function(){_.Hf(gqF(),{mainAppWeb:_.wq()})},
success:function(){_.uG(gqF(),"SUCCESS")},
failure:function(){_.uG(gqF(),"FAILURE")},
cancelled:function(){_.uG(gqF(),"CANCELLED")}};var SLW,FGo,RxN;SLW=_.bm(["/sw.js"]);FGo=_.bm(["/sw.js?0"]);_.aDe=_.Ra(SLW);RxN=_.Ra(FGo);var dZ8=function(){var b=Error.apply(this,arguments);this.message=b.message;"stack"in b&&(this.stack=b.stack)};
_.z(dZ8,Error);_.xg.prototype.load=function(b){this.megabloxUrl_=_.QC("YPC_MB_URL");_.Tt(this.megabloxUrl_,(0,_.i5)(function(){b&&b()},this))};
_.DVy=function(b,h,y,S,F,a,P,K,n,X,u){_.DxM(n);b.load((0,_.i5)(function(){try{var O=a?a:_.QC("HL"),N=_.QC("SESSION_INDEX");_.nLY("client",function(){Hz8("59",{helpCenterPath:"/youtube",locale:O,window:window}).JSC$10158_loadChatSupport({authuser:String(N)})})}catch(t){throw lk(10,u,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),F&&F(t),_.QT(t),t;
}jma(this,h,y,S,F,a,P,K,n,X,u)},b))};
_.xg.prototype.openFixFlowDialog=function(b,h,y,S){this.load((0,_.i5)(function(){try{$Zw(this,_.hj("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(b).withIntegratorCallback(h).load(y,S)}catch(F){throw _.QT(F),F;}},this))};
var $Zw=function(b,h,y,S){var F=h.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.r("enable_window_constrained_buy_flow_dialog")&&(F=F.usingPopupStyle(_.hj("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));S&&(F=F.usingCloseCallback(S));h.bootstrap.fromPaymentsUrl(b.megabloxUrl_);b=h.bootstrap.asMashupMode(F);y=y?y:_.QC("HL");b.usingGaiaIndex(_.QC("SESSION_INDEX")).usingLocale(y).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.r("enable_google_payments_buyflow_material2_style_web")?
b.usingStyle(":m2;pc=#444;ac=#065fd4"):b.usingStyle(":md;pc=#444;ac=#065fd4");return b},jma=function(b,h,y,S,F,a,P,K,n,X,u){try{var O=_.hj("payments.business.integration");
if(!O)throw new dZ8("payments.business.integration is undefined");var N=O.standaloneContextAuthId.forUserId(),t=$Zw(b,O,a,function(){BnU(!1);K&&K()});
P&&t.usingServerAnalyticsEventHandler(P);var R=t.inStandaloneContext(N).buyFlow(function(I){if(I&&(!I.integratorData||I.integratorData===""||I.error))if(I.error!=null)if(String(I.error)==="-1")_.I05(n);else{var U=String(I.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";lk(10,u,U,I.debugCode);_.qC(U,n,I.debugCode);U=new _.Gn("PAYMENT_ERROR_MESSAGE::"+I.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+I.internalErrorDetails);
_.QT(U)}else lk(10,u,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.qC("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",n,"EMPTY_INTEGRATOR_DATA"),_.QT(Error("cg"));y&&(BnU(!1),y(I))}).withEncryptedParameters(h);
X&&R.withClientParameters(oUW(_.cMr(X)));R.load(function(){lk(24,u);_.ex("ttc",void 0,"commerce_transaction");AL("commerce_transaction");S&&(S(),BnU(!0))},function(I){if(I==null?0:I.debugCode)var U=I==null?void 0:I.debugCode;
else if(!I||(I==null?0:I.debugCode))U="EMPTY_LOAD_FAILURE_ERROR",_.QT(Error(U));else{U="EMPTY_LOAD_FAILURE_DEBUG_CODE";var p=new _.Gn("LOAD_FAILURE:"+I.message," DEBUG_CODE:"+U);_.QT(p)}lk(10,u,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",U);_.qC("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",n,U);_.QT(I);F&&F(I)})}catch(I){throw I instanceof dZ8&&(lk(10,u,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),F&&F(I)),_.QT(I),I;
}};var LG8;LG8=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.cHN=function(b,h){h=h===void 0?!1:h;b=LG8.test(b)?_.gf(b):null;!h&&window.payments||!b?(b=_.wS(),h=b.promise,b.resolve()):h=_.Fdb(b,{attributes:{"data-payments-main":"",id:"payment-lib"}});return h};var P65;P65=_.bm(["//www.googletagmanager.com/gtm.js?id=",""]);_.dc=function(b,h){_.FQ(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:h}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.QC("GL")}),h=_.gB("SCRIPT"),h.async=!0,_.ZF(h,_.Ra(P65,b)),h.id="gtm",b=document.getElementsByTagName("script"),b.length==0?document.head.appendChild(h):(b=b[0],b.parentNode.insertBefore(h,b)))};
_.jS=function(b){if(b=JSON.parse(b))window.dataLayer=window.dataLayer||[],window.dataLayer.push(b)};var KGM,ZC7;KGM=_.bm(["https://clients2.google.com/gr/gr_sync.js"]);_.t8n=function(){};
_.t8n.prototype.init=function(){if(ZC7()){var b=_.wS();b.resolve();return b.promise}return _.Fdb(_.Ra(KGM)).then(function(){if(!ZC7())throw Error("dg");},function(){throw Error("eg");
})};
_.rHY=function(){if(!ZC7())return"";var b=window.google.gr;b.init({async:{schedule:"sync"},merchantId:"youtube"});b.start();b=b.finish();return b==null?"":b};
ZC7=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.g=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.z(_.g,PolymerFakeBaseClassWithoutHtml);_.cl=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.z(_.cl,PolymerFakeBaseClassWithoutHtml);var WCr=window.ShadyDOM;var oMn,KZj,nMj,Xx4,u1I,OXU,$N,jC;oMn=_.r("enable_shadydom_free_scoped_query_methods");KZj=_.r("enable_shadydom_free_scoped_node_methods");nMj=_.r("enable_shadydom_free_scoped_readonly_properties_batch_one");Xx4=_.r("enable_shadydom_free_parent_node");u1I=_.r("enable_shadydom_free_children");OXU=_.r("enable_shadydom_free_last_child");$N=window.ShadyDOM;_.Mh=$N&&$N.noPatch&&$N.wrap?$N.wrap:$N?function(b){return $N.patch(b)}:function(b){return b};
jC=function(b){if(b instanceof ShadowRoot)this.host=(0,_.Mh)(b.host),this.root=b;else if(b.$$){this.host=(0,_.Mh)(b);var h;this.root=(h=b.root)!=null?h:this.host}else if(b.polymerController){this.host=(0,_.Mh)(b);var y;this.root=(y=this.host.shadowRoot)!=null?y:this.host}else this.root=this.host=(0,_.Mh)(b)};
ZXn();Mq8();NpN();tq4();HXU();var oCW={querySelector:function(b,h){h=Vik(h,ho(b));return _.r("sunnydom_native_scoped_query_selectors")?UxN(b,h):UxN(_.yU(b),h)},
querySelectorAll:function(b,h){h=Vik(h,ho(b));return _.r("sunnydom_native_scoped_query_selectors")?Array.from(p8j(b,h)):p8j(_.yU(b),h)}},MNP={appendChild:function(b,h){var y=ho(b),S=_.b3(h);
return _.LZk(_.yU(b),y?_.ac(h,y,S):h)},
cloneNode:function(b,h){var y=_.b3(b);b=_.yU(b);h=vd(b).prototype.cloneNode.call(b,h);return y?dy(h,y):h},
contains:function(b,h){var y=ho(b),S=_.b3(h);return y!==S?!1:PQI(b,h)},
insertBefore:function(b,h,y){var S=ho(b),F=_.b3(h);b=_.yU(b);h=S?_.ac(h,S,F):h;return vd(b).prototype.insertBefore.call(b,h,y)},
removeChild:function(b,h){var y=ho(b);b=_.yU(b);h=y?dy(h,y):h;return vd(b).prototype.removeChild.call(b,h)},
replaceChild:function(b,h,y){var S=ho(b),F=_.b3(h);h=S?_.ac(h,S,F):F?dy(h,F):h;y=S?dy(y,S):y;b=_.yU(b);return vd(b).prototype.replaceChild.call(b,h,y)},
getRootNode:function(b,h){h=h===void 0?{composed:!0}:h;var y;if(((y=h)!=null?y:{}).composed)b=$jF(b);else{h=b;for(b=exf(b);b;)h=b,b=i1Y(b);b=h}return b}},ca4=nMj?{firstChild:yaN,
nextSibling:vIk,previousSibling:hQf,firstElementChild:SHy,lastElementChild:aYf,nextElementSibling:mxN,previousElementSibling:bX4,childNodes:djI}:{};Xx4&&(ca4.parentNode=QiU);u1I&&(ca4.children=j9q);OXU&&(ca4.lastChild=FZr);oMn&&ra5(oCW);KZj&&ra5(MNP);RQ5();var zQM=function(b){this.node=b instanceof ShadowRoot?b.host:b};
DjU();IYY();var AaU=new WeakMap;var pxy=Symbol("Cd");var s9q=new Set(["tap","track","down","up"]),YHy=_.r("pbcm_fi_query_decorators");var Ld=function(){return _.cl.apply(this,arguments)||this};
_.z(Ld,_.cl);_.d=Ld.prototype;_.d.getState=function(){return this.store.getState()};
_.d.dispatch=function(b){this.store.dispatch(b)};
_.d.beforeRegister=function(){if(this&&typeof this==="object"){var b;var h=!!this.useSignals||!((b=this.polymerController)==null||!b.useSignals)}else h=!1;if(!h&&this.properties)for(h=_.L(Object.keys(this.properties)),b=h.next();!b.done;b=h.next()){var y=b.value;b=this.properties[y];if(b.selector){if(b.computed)throw Error("lg");y=["reduxPropertiesRecomputeTrigger",'"'+y+'"'].concat(_.f$(b.selectorArgs||[])).join(",");b.computed="recomputeReduxSelector("+y+")"}}};
_.d.attached=function(){var b=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){b.reduxPropertiesRecomputeTrigger++}));
_.r("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.d.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.d.recomputeReduxSelector=function(b,h){var y=_.x$.apply(2,arguments),S=this.properties[h].selector;if(!S)throw Error("jg`"+h);return S.apply(null,[this.store.getState()].concat(_.f$(y)))};
_.d.select=function(b){var h=_.x$.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return b.apply(null,[this.store.getState()].concat(_.f$(h)))};
_.tm.Object.defineProperties(Ld.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("kg");}}});
Ld.prototype.recomputeReduxSelector=Ld.prototype.recomputeReduxSelector;_.V([_.C(),_.f("design:type",Number)],Ld.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.V([_.Rc()],Ld);var Pj=[],Vq8={},gy=function(){return c_.apply(this,arguments)||this};
_.z(gy,c_);gy.prototype._addPropertyEffect=function(b,h,y){if(h==="__observeEffects"&&y){var S,F=(S=y.info.method)!=null?S:y.info.methodName;if(F){var a=this[F];this[F]=function(){Pj.push(F);try{a==null||a.apply(this,arguments)}finally{Pj.pop()}}}}_.qE._addPropertyEffect.apply(this,[b,
h,y])};
gy.prototype._setPendingProperty=function(b,h,y){if(Pj.length){var S=Pj[Pj.length-1],F;(F=Vq8[this.is])!=null&&F.has(S)||(EM8(this.is,S),_.qi("polymerPropertyChangedInObserver",{componentName:this.is,observerName:S}))}return _.qE._setPendingProperty.apply(this,[b,h,y])};
_.V([MVn()],gy);var iXM=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),wxF,Ic={};_.r("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=Ic);var Ao=function(){return _.cl.apply(this,arguments)||this};
_.z(Ao,_.cl);Ao.prototype._setUnmanagedPropertyToNode=function(b,h,y){b.loggingStatus&&(b.loggingStatus.isDeclarativeExternal=!0);if(y!==b[h]||typeof y==="object")b[h]=y;b.is&&b.polymerController&&b.polymerController!==b&&Bl(b.is,h,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");b.loggingStatus&&(b.loggingStatus.isDeclarativeExternal=!1)};
_.V([_.Rc()],Ao);fYn()&&(jM.prototype._setUnmanagedPropertyToNode=(new Ao)._setUnmanagedPropertyToNode);_.jl4={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(b){},set polymerController(b){}}]};var CZ=function(){var b=c_.apply(this,arguments)||this;b.json=function(){};
return b};
_.z(CZ,c_);CZ.prototype.equals=function(b,h){return b===h};
CZ.prototype.isEmpty=function(b){var h;(h=!b)||(h=_.f4(b)&&b.length===0);return h};
_.V([MVn()],CZ);var nC7=function(b){b=Myf(b);Me.call(this,b)};
_.z(nC7,Me);nC7.prototype.addProvider=function(b){b=b.key?b:Myf([b])[0];var h=this.keyIdToIndex.get(b.key.id);if(h){if(mj4(b,this.providers[h]))throw Error("mg`"+b.key.displayName);}else Me.prototype.addProvider.call(this,b)};
var XWW=new nC7([]);var HCW=!1;var Fr8={};HCW||(Sc4(),HCW=!0);
Fr8.InjectBehavior={initializeInjection:function(){var b=this.provide;try{if((b=b!=null?b:[])&&b.length>0)for(var h=Myf(b),y=_.L(h),S=y.next();!S.done;S=y.next())XWW.addProvider(S.value);var F=new Set;vMM(this.behaviors||[],F);h={};for(var a=_.L(F),P=a.next();!P.done;P=a.next()){var K=P.value;K.inject&&Object.assign(h,K.inject)}this.inject&&Object.assign(h,this.inject);for(var n=_.L(Object.keys(h)),X=n.next();!X.done;X=n.next()){var u=X.value,O=h[u];try{this[u]=XWW.resolve(O)}catch(N){throw N;}}}catch(N){throw Error(N.message);
}}};var dfU;var $fY=/\bclass\b/.test(function(){}.toString()),Krk=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var u7M=function(b){this.wasDefined=!0;Array.isArray(b)||b instanceof Array?(this.JSC$13693_getImpl=b[0],this.JSC$13693_setImpl=b[1]):this.JSC$13693_getImpl=b};
_.d=u7M.prototype;_.d.getWithPath=function(b){return Mln(this.JSC$13693_getImpl(),b)};
_.d.setWithPath=function(b,h){var y=this;if(b.length)throw Error("ng");if(!this.JSC$13693_setImpl)throw Error("og");YH(function(){y.JSC$13693_setImpl(h)})};
_.d.notifyPath=function(){throw Error("pg");};
_.d.notifySplices=function(){throw Error("qg");};
_.d.getChangeRecordSignal=function(b,h){var y=this;if(b.length)throw Error("rg");return function(){var S=y.getWithPath(b);return{path:h!=null?h:"",base:S,value:S}}};
_.d.getSplicesSignal=function(){throw Error("sg");};
_.d.getPathMutationSignal=function(){throw Error("tg");};
_.d.pop=function(){throw Error("ug");};
_.d.push=function(){throw Error("vg");};
_.d.splice=function(){throw Error("wg");};
_.d.unshift=function(){throw Error("xg");};var Kd=function(b){var h=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(b)||b instanceof Array?(this.JSC$13698_getImpl=b[0],this.JSC$13698_setImpl=b[1]):this.JSC$13698_getImpl=b;this.wasDefined=!1;_.Ar(function(){h.wasDefined=h.JSC$13698_getImpl()!==void 0})};
Kd.prototype.getWithPath=function(b){return Mln(this.JSC$13698_getImpl(),b)};
Kd.prototype.setWithPath=function(b,h){var y=this;if(b[b.length-1]!=="*"&&b[b.length-1]!=="splices"){var S=_.Ar(function(){return y.getWithPath([])});
if(b.length===0){if(!this.JSC$13698_setImpl)throw Error("yg");if(S===h)return;this.wasDefined||(this.wasDefined=h!==void 0);YH(function(){y.JSC$13698_setImpl(h)})}else{for(var F=0;F<b.length-1;F++){if(!S)return;
S=S[b[F]]}F=b[b.length-1];S&&(S[F]=h);this.wasDefined||(this.wasDefined=b.length>1||h!==void 0)}OCw(this,b,{pathComponents:b,value:h})}};
Kd.prototype.notifyPath=function(b,h){b.length===0?h&&this.setWithPath(b,h.value):OCw(this,b,{pathComponents:b,value:h==null?void 0:h.value,fallbackWhenUndefined:h==null?void 0:h.value})};
var OCw=function(b,h,y,S){if(b.setMutationSignal){var F=++b.mutationIndex,a=[b.observedPath],P=b.observedPath,K;h.length===0&&(K=P);for(var n=0;n<h.length;n++){var X=P.subPaths[h[n]];if(!X)break;a.push(X);P=X;n===h.length-1&&(K=X)}for(h=!1;a.length;)P=a.shift(),P.data={index:F,mutation:y,spliceMutationIndex:S},h||(h=P===K),h&&a.push.apply(a,_.f$(Object.values(P.subPaths)));YH(function(){b.setMutationSignal(F)})}};
Kd.prototype.notifySplices=function(b,h){var y=this,S=_.Ar(function(){return y.getWithPath(b)}),F=[].concat(_.f$(b),["splices"]);
OCw(this,F,{pathComponents:F,value:{indexSplices:h}});if(S==null?0:S.length)h=this.mutationIndex,F=[].concat(_.f$(b),["length"]),OCw(this,F,{pathComponents:F,value:S.length},h)};
var N05=function(b,h,y,S,F,a){b.notifySplices(y,[{index:S,addedCount:F,removed:a,object:h,type:"splice"}])},tNW=function(b,h){b=b.observedPath;
for(var y=0;y<h.length;y++){var S=h[y],F=b.subPaths[S];F||(F={pathComponents:h.slice(0,y+1),subPaths:{}},b.subPaths[S]=F);b=F}},cuo=function(b,h,y){tNW(b,h);
if(!b.getMutationSignal){var S=_.L(_.pa(b.mutationIndex,void 0,"sNBMCd"));b.getMutationSignal=S.next().value;b.setMutationSignal=S.next().value}var F=b.getMutationSignal;return _.s5(function(){F();return y(ruP(b,h))},void 0,"zvsXEd")};
Kd.prototype.getChangeRecordSignal=function(b,h){var y=this,S=this.mutationIndex,F;return cuo(this,b,function(a){if(a&&a.index>S){var P=a.mutation;S=a.index;F=void 0}a=_.Ar(function(){return y.getWithPath(b)});
if(P){var K=P.pathComponents[P.pathComponents.length-1],n=[].concat(_.f$(P.pathComponents));if(K==="splices"||K==="length")return{base:a,path:(h?[h].concat(_.f$(n)):n).join("."),value:P.value};var X=b.length>n.length?b:n,u;return{base:a!=null?a:P.fallbackWhenUndefined,path:(h?[h].concat(_.f$(X)):X).join("."),value:(u=_.Ar(function(){return y.getWithPath(X)}))!=null?u:P.fallbackWhenUndefined}}F||(F={base:a,
path:(h?[h].concat(_.f$(b)):b).join("."),value:a});return F})};
Kd.prototype.getSplicesSignal=function(b){var h=this.mutationIndex,y;return cuo(this,b,function(S){if(S&&S.index>h&&S.spliceMutationIndex!==h){var F=S.mutation;h=S.index;y=void 0}return F&&F.pathComponents[F.pathComponents.length-1]==="splices"?y=S=F.value:y})};
Kd.prototype.getPathMutationSignal=function(b){var h=this;tNW(this,b);if(!this.getMutationSignal){var y=_.L(_.pa(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=y.next().value;this.setMutationSignal=y.next().value}var S=this.getMutationSignal,F=this.mutationIndex,a;return _.s5(function(){S();var P=ruP(h,b);if(P&&P.index>F&&P.mutation&&nlr(P.mutation.pathComponents,b)){var K=P.mutation;F=P.index}if(!a||F!==a.index){var n,X;P=(X=_.Ar(function(){return h.getWithPath(b)}))!=null?X:(n=K)==null?
void 0:n.fallbackWhenUndefined;
a={index:F,value:P}}return a},void 0,"RXYC9b")};
var ruP=function(b,h){b=b.observedPath;h=_.L(h);for(var y=h.next();!y.done;y=h.next())b=b.subPaths[y.value];return b.data};
Kd.prototype.pop=function(b){var h=this,y=_.Ar(function(){return h.getWithPath(b)});
if(!(y instanceof Array))throw Error("zg");var S=y.length>0,F=y.pop();S&&N05(this,y,b,y.length,0,[F]);return F};
Kd.prototype.push=function(b){var h=_.x$.apply(1,arguments),y=this,S=_.Ar(function(){return y.getWithPath(b)});
if(!(S instanceof Array))throw Error("Ag");var F=S.length,a=S.push.apply(S,_.f$(h));h.length&&N05(this,S,b,F,h.length,[]);return a};
Kd.prototype.splice=function(b,h,y){var S=_.x$.apply(3,arguments),F=this,a=_.Ar(function(){return F.getWithPath(b)});
if(!(a instanceof Array))throw Error("Bg");h<0?h=a.length-Math.floor(-h):h&&(h=Math.floor(h));var P=a.splice.apply(a,[h,y].concat(_.f$(S)));(S.length||P.length)&&N05(this,a,b,h,S.length,P);return P};
Kd.prototype.unshift=function(b){var h=_.x$.apply(1,arguments),y=this,S=_.Ar(function(){return y.getWithPath(b)});
if(!(S instanceof Array))throw Error("Cg");var F=S.unshift.apply(S,_.f$(h));h.length&&N05(this,S,b,0,h.length,[]);return F};var Z4=function(b,h,y){this.model=b;this.unknownSignalResolver=h;this.options=y;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];h=_.L(R3k());b=h.next().value;h=h.next().value;this.owner=b;this.disposeImpl=h};
Z4.prototype.dispose=function(){if(!this.isDisposed){for(var b=_.L(this.childSignalProxies),h=b.next();!h.done;h=b.next())h.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var RFw=function(b,h){b=_.Hs(b.owner);try{h()}finally{_.Hs(b)}};
Z4.prototype.effect=function(b){RFw(this,function(){_.xH(b,"h")})};
var zF8=function(b,h){b.options!=null||(b.options={});var y;(y=b.options).immutableProps!=null||(y.immutableProps=new Set);b.options.immutableProps.add(h)},xfM=function(b,h){h=""+h;
DZN(b,h);var y,S;if((y=b.options)==null?0:(S=y.immutableProps)==null?0:S.has(h))return!0;var F;if((F=b.model.__signalCache)==null?0:F.has(h))y=b.model.__signalCache.get(h),Array.isArray(y)&&zF8(b,h);var a,P,K;return(K=(a=b.options)==null?void 0:(P=a.immutableProps)==null?void 0:P.has(h))!=null?K:!1},IDa=function(b,h){var y;
b.unknownSignalResolver&&(y=b.unknownSignalResolver(h));var S,F;((S=b.options)==null?0:(F=S.immutableProps)==null?0:F.has(h))?y!=null||(y=new u7M(_.pa(b.model[h],void 0,"By5iP"))):y!=null||(y=new Kd(_.pa(b.model[h],void 0,"CXghNc")));var a=b.model.hostElement;Object.defineProperty(b.model,h,{get:function(){qHr(a,h);return y.getWithPath([])},
set:function(P){Wl(a,h);b.setWithPath([h],P)},
configurable:!0});return y},DZN=function(b,h){var y,S,F;
((y=b.model.__signalCache)==null||!y.has(h))&&((S=b.options)==null?0:(F=S.externalSignalProps)==null?0:F.has(h))&&b.model[h]},kx=function(b,h){h=""+h;
var y=b.signalCache[h];if(y!==void 0)return y;y=!1;DZN(b,h);var S;if((S=b.model.__signalCache)==null?0:S.has(h))if(y=b.model.__signalCache.get(h),Array.isArray(y))y=!0,zF8(b,h);else return b.signalCache[h]=b.model.__signalCache.get(h).signal,b.signalCache[h];var F,a;S=(a=(F=b.options)==null?void 0:F.reactivityMode)!=null?a:0;var P,K;if(!((P=b.options)==null?0:(K=P.reactiveProps)==null?0:K.has(h))&&!y&&S===1)throw Error("Dg`"+h);F=y?B0W(b,h):IDa(b,h);return b.signalCache[h]=F},B0W=function(b,h){var y=
Object.getOwnPropertyDescriptor(b.model.constructor.prototype,h),S=function(){return b.model[h]};
return new u7M(y&&y.get&&!y.set?S:[S,function(F){b.model[h]=F}])};
Z4.prototype.getWithPath=function(b){var h=_.L(b);b=h.next().value;h=Mo(h);qHr(this.model.hostElement,""+b);return kx(this,b).getWithPath(h)};
Z4.prototype.setWithPath=function(b,h){if(b.length){Wl(this.model.hostElement,b.join("."));var y=_.L(b);b=y.next().value;y=Mo(y);kx(this,b).setWithPath(y,h)}};
Z4.prototype.getPathMutationSignal=function(b){var h=_.L(b);b=h.next().value;h=Mo(h);return kx(this,b).getPathMutationSignal(h)};
Z4.prototype.notifyPath=function(b,h){var y=_.L(b);b=y.next().value;y=Mo(y);kx(this,b).notifyPath(y,h)};
var WG8=function(b,h){if(h.type==="literal")return function(){return{rootWasDefined:!0,value:h.value}};
var y=Tj(h.path),S=_.L(y),F=S.next().value;S=Mo(S);var a,P;if(h.type==="path"&&(y.length===1||((a=b.options)==null?0:(P=a.immutableProps)==null?0:P.has(F))))return function(){var O=b.getWithPath(y.slice(0,1));O=Mln(O,y.slice(1));return{rootWasDefined:kx(b,y[0]).wasDefined,value:O}};
var K=kx(b,F);if(h.type==="path"){var n=K.getPathMutationSignal(S);return function(){var O,N=(O=n())==null?void 0:O.value;return{rootWasDefined:K.wasDefined,value:N}}}if(h.type==="splices"){var X=K.getSplicesSignal(S);
return function(){var O=X();return{rootWasDefined:K.wasDefined,value:O}}}var u=K.getChangeRecordSignal(S,""+F);
return function(){var O=u();return{rootWasDefined:K.wasDefined,value:O}}},tlr=function(b,h,y){var S=y.map(function(K){return WG8(b,K)}),F=y.length===0,a=[],P=y.length!==1||y[0].type!=="path"?!1:!0;
b.effect(function(){for(var K=S.length,n=[],X=!!a.length,u=0;u<K;u++){var O=S[u](),N=O.rootWasDefined;O=O.value;F||(F=N);n[u]=O;P&&(n[u+K]=X?a[u]:n[u],a[u]=O)}F&&hi(b.owner,function(){return void h.apply(null,_.f$(n))})})},XuN=function(b,h,y,S,F){var a=kx(b,h);
F!==void 0&&a.setWithPath([],F);tlr(b,function(){var P=_.x$.apply(0,arguments);Wl(b.model.hostElement,h,!0);a.setWithPath([],y.apply(null,_.f$(P)))},S)};
Z4.prototype.arrayPush=function(b){var h=_.x$.apply(1,arguments),y=_.L(b),S=y.next().value;y=Mo(y);S=kx(this,S);return S.push.apply(S,[y].concat(_.f$(h)))};
Z4.prototype.arraySplice=function(b,h,y){var S=_.x$.apply(3,arguments),F=_.L(b),a=F.next().value;F=Mo(F);a=kx(this,a);return a.splice.apply(a,[F,h,y].concat(_.f$(S)))};
Z4.prototype.arrayUnshift=function(b){var h=_.x$.apply(1,arguments),y=_.L(b),S=y.next().value;y=Mo(y);S=kx(this,S);return S.unshift.apply(S,[y].concat(_.f$(h)))};
Z4.prototype.notifySplices=function(b,h){var y=_.L(b);b=y.next().value;y=Mo(y);kx(this,b).notifySplices(y,h)};var Au5=!0,UZN=!1,QvY=!1,pWw=!1,Juo=0;pWw=!1;Juo=0;Au5=!0;UZN=QvY=!1;var AfM=/([^\s]+?)\(([\s\S]*)\)/,I3I=/\.([^.]+)$/,puN=/\\,/g,z34=/&comma;/g,DfM=/\\(.)/g,UfF=[],BmN={"*":"wildcard",splices:"splices"};var Vl5=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"),Ycr=/[A-Z]/,eFe=["class","hidden","id","on-dom-change"],iNf=new Set([].concat(_.f$(eFe),
["if","notify-dom-change","restamp"])),f3j=new Set([].concat(_.f$(eFe),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),wuf=new Set(["restamp"]);var iU4=new Set(["className","id"]);var mfM=Symbol(),axN=window;var oOf=window;var Nj4=0,XeN=0,VU=[],Obr=0,nO8=!1,urN=document.createTextNode("");(new window.MutationObserver(HbM)).observe(urN,{characterData:!0});var i3=new Map,EB=0,C6e=function(b){this.mappedHandleId=b},rEM=function(b,h,y,S){this.mappedHandleId=b;
var F=this;this.mappedHandleId=b;this.callback=h;this.waitTime=y;this.schedulerPriority=S;this.handleId=_.xP.addJob(function(){F.callback();i3.delete(F.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.z(rEM,C6e);rEM.prototype.cancel=function(){_.xP.cancelJob(this.handleId);i3.delete(this.mappedHandleId)};
var cEI=function(b,h){this.mappedHandleId=b;var y=this;this.mappedHandleId=b;this.callback=h;this.handleId=tdN(function(){y.callback();i3.delete(y.mappedHandleId)})};
_.z(cEI,C6e);cEI.prototype.cancel=function(){var b=this.handleId-XeN;b<0||VU.length<=b||(VU[b]=null);i3.delete(this.mappedHandleId)};var IxU=function(){};
IxU.prototype.cancel=function(){this.jobHandle!==void 0&&(RDN(this.jobHandle),this.jobHandle=void 0)};
IxU.prototype.run=function(b,h,y){var S=this;this.cancel();this.callback=b;this.jobHandle=_.fZ(function(){b();S.callback=void 0},h,y)};
IxU.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var zDF=new WeakMap;var gC8=r$(function(b){for(var h=b,y=0;y<3;y++)h=Object.getPrototypeOf(h);delete h.prototype.connectedCallback;var S=function(){return b.apply(this,arguments)||this};
_.z(S,b);S.prototype._attachDom=function(F){if(!F)return null;var a=(0,_.Mh)(this.hostElement);a.attachShadow({mode:"open",shadyUpgradeFragment:F});a.shadowRoot.appendChild(F);return a.shadowRoot};
S.prototype._takeAttributes=function(){for(var F=this.hostElement.attributes,a=0;a<F.length;a++){var P=F[a],K=void 0,n=void 0;(n=(K=this).__attributeReaction)==null||n.call(K,P.name,null,P.value)}};
S.prototype._readyClients=function(){b.prototype._readyClients.call(this);this.root=this};
S.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);b.prototype.connectedCallback.call(this)};
_.tm.Object.defineProperties(S,{template:{configurable:!0,enumerable:!0,get:function(){return S.prototype._template}}});
return S}),smo=r$(function(b){var h=function(){return b.apply(this,arguments)||this};
_.z(h,b);h.prototype.created=function(){if(this.__notifyEffects)for(var y=_.L(Object.values(this.__notifyEffects)),S=y.next();!S.done;S=y.next()){S=_.L(S.value);for(var F=S.next();!F.done;F=S.next())F.value.fn=Urj}if(this.__reflectEffects)for(y=_.L(Object.values(this.__reflectEffects)),S=y.next();!S.done;S=y.next())for(S=_.L(S.value),F=S.next();!F.done;F=S.next())F.value.fn=pe5};
h.prototype._addEventListenerToNode=function(y,S,F){y=l3(y);bz(y,S,F)||b.prototype._addEventListenerToNode.call(this,y,S,F)};
h.prototype._removeEventListenerFromNode=function(y,S,F){y=l3(y);hm(y,S,F)||b.prototype._removeEventListenerFromNode.call(this,y,S,F)};
h.prototype._propertiesChanged=function(y,S,F){if(this.__dataToNotify&&this.__notifyEffects)for(var a=_.L(Object.keys(this.__dataToNotify)),P=a.next();!P.done;P=a.next()){P=P.value;var K=AEy(P);this.__notifyEffects[K]||delete this.__dataToNotify[P]}else this.__dataToNotify=null;b.prototype._propertiesChanged.call(this,y,S,F)};
h.prototype.fire=function(y,S,F){S=S===void 0?{}:S;var a;return _.Sx(l3((a=F==null?void 0:F.node)!=null?a:this),y,S,F)};
h.prototype._ensureAttribute=function(y,S){var F=l3(this);F.hasAttribute(y)||Gj(F,S,y)};
h.prototype.isLightDescendant=function(y){var S=l3(this);return l3(S)!==y&&_.$x(S).contains(y)&&_.$x(S).getRootNode()===_.$x(y).getRootNode()};
return h});
_.Q0.ready=function(){var b;((b=this.hostElement)!=null?b:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var h;((h=this.hostElement)!=null?h:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.ab._subscribeIronResize=function(b){var h;((h=b.hostElement)!=null?h:b).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.ab._unsubscribeIronResize=function(b){var h;((h=b.hostElement)!=null?h:b).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var C0f=[Array,Boolean,Date,Number,Object,String],xx=function(b,h,y,S){this.polySiInfo=b;this.polySiParams=h;this.polySiContext=y;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;S||this instanceof HTMLElement&&(S=this);if(!S)throw Error("Kg");this.allowedProps=h.allowedProps;this.hostElement=S;this.is=b.is;this.upgradeDisabled=!!h.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");b=new Set(h.reactiveSchemas.filter(function(F){return F.type!==
"observe"}).map(function(F){return F.propertyKey}));
this.signalProxy=new Z4(this,void 0,{reactiveProps:b,reactivityMode:h.reactivityMode});this.__dataHasAccessor={};h=_.L(h.reactiveSchemas);for(b=h.next();!b.done;b=h.next())b=b.value,b.type==="signal"&&(this.__dataHasAccessor[b.propertyKey]=!0);this.upgradeDisabled||YLW(this)};
xx.prototype.getExtraMethodsToForward=function(){return[]};
var YLW=function(b){b.polySiContext.didRegister||(b.registered(),b.polySiContext.didRegister=!0);b.polySiContext.finalizedTemplate||(b.polySiContext.finalizedTemplate={},b.polySiParams.templateGetter&&(b.polySiContext.finalizedTemplate.processedTemplate=MdN(b.polySiParams.templateGetter,b.polySiParams.is)));T0e(b);var h=b.hostElement;h.loggingStatus!=null||(h.loggingStatus={});h.loggingStatus.isInitializing=!0;_.Ar(function(){return void b.created()});
h.loggingStatus.isInitializing=!1;b.isPolySiElementConnected&&GlM(b)},GlM=function(b){b.didCallReady||(_.Ar(function(){return void b.ready()}),b.didCallReady=!0);
b.isAttached=!0;b.attached()};
_.d=xx.prototype;_.d.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||GlM(this)};
_.d.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.d.attributeChangedCallback=function(b,h,y){if(this.upgradeDisabled)b==="disable-upgrade"&&y===null&&(this.upgradeDisabled=!1,YLW(this));else if(h!==y){var S=_.nx(b),F=this.polySiContext.typesForSignals[S];if(F&&(!this.reflecting||_.r("polysi_attribute_changed_serializing_killswitch"))){switch(F){case Object:try{var a=JSON.parse(y)}catch(K){a=y}break;case Array:try{a=JSON.parse(y)}catch(K){a=null}break;case Date:a=isNaN(y)?String(y):Number(y);a=new Date(a);break;case Boolean:a=y!==null;break;case Number:a=
Number(y);break;default:a=y}this[S]=a}S=_.L(this.polySiParams.behaviors);for(F=S.next();!F.done;F=S.next())a=void 0,(a=F.value.attributeChanged)==null||a.call(this,b,h,y);var P;(P=this.attributeChanged)==null||P.call(this,b,h,y)}};
_.d.attributeChangedCallbackWrapper=function(b,h,y){this.attributeChangedCallback(b,h,y)};
_.d.setPropertiesFromInitialAttributeValues=function(){for(var b=0;b<this.hostElement.attributes.length;b++){var h=this.hostElement.attributes[b];(h.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(h.name))&&this.attributeChangedCallback(h.name,null,h.value)}};
_.d.created=function(){this.provide=this.polySiParams.provide;var b;(b=this.initializeInjection)==null||b.call(this);b=_.L(this.polySiParams.reactiveSchemas);for(var h=b.next();!h.done;h=b.next())h=h.value,h.type==="signal"&&(this.mutablePropNames.add(h.propertyKey),kx(this.signalProxy,h.propertyKey));eDk(this,this.polySiInfo,this.polySiParams.behaviors);b=_.L(this.polySiParams.reactiveSchemas);for(h=b.next();!h.done;h=b.next())h=h.value,h.type==="signal"&&h.value!==void 0&&(this.signalProxy.model[h.propertyKey]=
typeof h.value==="function"?h.value.call(this):h.value);if(this.polySiParams.signalProperties)for(b=_.L(this.polySiParams.signalProperties),h=b.next();!h.done;h=b.next()){h=h.value;var y=void 0;((y=this.__signalCache)==null?0:y.has(h))||(this.signalProxy.model[h]=void 0)}pWw||kla(this);JEk(this);b=_.L(this.polySiParams.behaviors);for(h=b.next();!h.done;h=b.next())y=void 0,(y=h.value.created)==null||y.call(this);var S;(S=this.polySiInfo.created)==null||S.call(this)};
_.d.registered=function(){var b=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var h=Object.getPrototypeOf(this);h.addReactiveSchema=function(K){b.polySiParams.reactiveSchemas.push(K)};
for(var y=_.L(this.polySiParams.behaviors),S=y.next();!S.done;S=y.next()){var F=void 0;(F=S.value.beforeRegister)==null||F.call(h)}var a;(a=this.polySiInfo.beforeRegister)==null||a.call(h);h.addReactiveSchema=svU;y=_.L(this.polySiParams.behaviors);for(S=y.next();!S.done;S=y.next())F=void 0,(F=S.value.registered)==null||F.call(h);var P;(P=this.polySiInfo.registered)==null||P.call(h)};
_.d.ready=function(){var b;(b=this.beforeReady)==null||b.call(this);pWw&&kla(this);var h;if(b=(h=this.polySiContext.finalizedTemplate)==null?void 0:h.processedTemplate){b=Zbn(b.template,b.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:b.hasInsertionPoint,thisCtx:this});h=b.nodesById;b=b.root;var y=this.hostElement;var S=S===void 0?!1:S;y=(0,_.Mh)(y);if(!y.attachShadow)throw Error("Id");if(!y.shadowRoot||S)y.attachShadow({mode:"open",shadyUpgradeFragment:b}),y.shadowRoot.appendChild(b);
this.root=y.shadowRoot;this.$=h}VNb(this);S=_.L(this.polySiParams.behaviors);for(h=S.next();!h.done;h=S.next())b=void 0,(b=h.value.ready)==null||b.call(this);var F;(F=this.polySiInfo.ready)==null||F.call(this)};
_.d.attached=function(){for(var b=_.L(this.polySiParams.behaviors),h=b.next();!h.done;h=b.next()){var y=void 0;(y=h.value.attached)==null||y.call(this)}var S;(S=this.polySiInfo.attached)==null||S.call(this)};
_.d.detached=function(){for(var b=_.L(this.polySiParams.behaviors),h=b.next();!h.done;h=b.next()){var y=void 0;(y=h.value.detached)==null||y.call(this)}var S;(S=this.polySiInfo.detached)==null||S.call(this)};
var T0e=function(b){for(var h=_.L(b.polySiParams.behaviors),y=h.next();!y.done;y=h.next())if(y=y.value,y.listeners)for(var S in y.listeners)KHM(b,b.hostElement,S,y.listeners[S]);if(b.polySiInfo.listeners)for(var F in b.polySiInfo.listeners)KHM(b,b.hostElement,F,b.polySiInfo.listeners[F])},KHM=function(b,h,y,S,F){b=olj(b,S,F);
bz(h,y,b)||h.addEventListener(y,b);return b},kla=function(b){for(var h=_.L(b.polySiParams.reactiveSchemas),y=h.next();!y.done;y=h.next())y=y.value,y.type==="compute"||y.type==="computeWithMethod"?HNF(b.signalProxy,y,b):y.type==="redux"?Nm4(b.signalProxy,y,b.store):y.type==="signal"&&y.readOnly&&ON5(b.signalProxy,y)},VNb=function(b){for(var h=_.L(b.polySiParams.reactiveSchemas),y=h.next(),S={};!y.done;S={schema$jscomp$12:void 0},y=h.next())S.schema$jscomp$12=y.value,S.schema$jscomp$12.type==="notify"?
rff(b.signalProxy,S.schema$jscomp$12,b.hostElement):S.schema$jscomp$12.type==="observe"?cfq(b.signalProxy,S.schema$jscomp$12,b):S.schema$jscomp$12.type==="reflect"&&b.signalProxy.effect(function(a){return function(){var P=b.signalProxy.getWithPath([a.schema$jscomp$12.propertyKey]);
b.reflecting=!0;e3I(b.hostElement,a.schema$jscomp$12.propertyKey,P,!0);b.reflecting=!1}}(S));
if(b.reflectedAttributes)for(h=_.L(Object.entries(b.reflectedAttributes)),S=h.next(),y={};!S.done;y={key$jscomp$938:void 0,value$jscomp$10269:void 0},S=h.next()){var F=_.L(S.value);S=F.next().value;F=F.next().value;y.key$jscomp$938=S;y.value$jscomp$10269=F;b.signalProxy.effect(function(a){return function(){b.reflecting=!0;e3I(b.hostElement,a.key$jscomp$938,(0,a.value$jscomp$10269)(),!0);b.reflecting=!1}}(y))}};
_.d=xx.prototype;_.d._setPendingProperty=function(b,h){this.set(b,h);return!1};
_.d._enableProperties=function(){};
_.d._setPendingPropertyOrPath=function(b,h){this.notifyPath(b,h);return!1};
_.d._addPropertyEffect=function(){};
_.d._stampTemplate=function(){throw Error("Lg");};
_.d.fire=function(b,h,y){h=h===void 0?{}:h;y=y===void 0?{}:y;var S,F,a={bubbles:(S=y.bubbles)!=null?S:!0,cancelable:!!y.cancelable,composed:(F=y.composed)!=null?F:!0},P;return _.Sx(YCj((P=y.node)!=null?P:this.hostElement),b,h,a)};
_.d.get=function(b,h){var y=Tj(b);return h?Mln(h,y):b==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(y)};
_.d.linkPaths=function(){};
_.d.listen=function(b,h,y){b=YCj(b);this.boundListeners!=null||(this.boundListeners=new WeakMap);var S=this.boundListeners.get(b);S||(S={},this.boundListeners.set(b,S));var F=h+y;S[F]||(S[F]=KHM(this,b,h,y))};
_.d.notifyPath=function(b,h){this.signalProxy.notifyPath(Tj(b),arguments.length===2?{value:h}:void 0)};
_.d.canNotifyPath=function(b){return this.mutablePropNames.has(b)&&!xfM(this.signalProxy,b)};
_.d.notifySplices=function(b,h){this.signalProxy.notifySplices(Tj(b),h)};
_.d.pop=function(b){var h=this.signalProxy;b=Tj(b);var y=_.L(b);b=y.next().value;y=Mo(y);return kx(h,b).pop(y)};
_.d.push=function(b){var h=_.x$.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[Tj(b)].concat(_.f$(h)))};
_.d.set=function(b,h,y){if(y)throw Error("Mg");b==="hidden"?this.hostElement.hidden=!!h:this.signalProxy.setWithPath(Tj(b),h)};
_.d.setProperties=function(b){b=_.L(Object.entries(b));for(var h=b.next();!h.done;h=b.next()){var y=_.L(h.value);h=y.next().value;y=y.next().value;this[h]=y}};
_.d.splice=function(b,h,y){var S=_.x$.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[Tj(b),h,y].concat(_.f$(S)))};
_.d.unlinkPaths=function(){};
_.d.unlisten=function(b,h,y){b=YCj(b);if(this.boundListeners){var S=this.boundListeners.get(b);if(S){y=h+y;var F=S[y];F&&(hm(b,h,F)||b.removeEventListener(h,F),delete S[y])}}};
_.d.unshift=function(b){var h=_.x$.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[Tj(b)].concat(_.f$(h)))};
_.tm.Object.defineProperties(xx.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 xr4=[Array,Boolean,Date,Number,Object,String];var vOU=!1;var oD=function(){var b=HTMLElement.apply(this,arguments)||this;b.restamp=!1;b.notifyDomChange=!1;b.JSC$13806_didCallConnected=!1;b.JSC$13806_renderDebouncer=null;b.disableTemplateUpdateSignalImpl=QU()?void 0:_.pa(!1,void 0,"Ofhkwb");var h;b.getDisableTemplateUpdate=(h=b.disableTemplateUpdateSignalImpl)==null?void 0:h[0];var y;b.setDisableTemplateUpdate=(y=b.disableTemplateUpdateSignalImpl)==null?void 0:y[1];return b};
_.z(oD,HTMLElement);var ECo=function(b){b.conditionSignalImpl!=null||(b.conditionSignalImpl=new Kd(_.pa(!1,void 0,"gE52Fb")));return b.conditionSignalImpl};
_.d=oD.prototype;_.d.showHideChildren=function(b){iCG(this,b,this.if)};
_.d.attributeChangedCallback=function(b,h,y){if(this.JSC$13806_didCallConnected)throw Error("Qg`"+b);b==="notify-dom-change"?this.notifyDomChange=y!==null:b==="restamp"&&(this.restamp=y!==null)};
_.d.debounceRender=function(){this.JSC$13806_renderDebouncer=_.JD(this.JSC$13806_renderDebouncer,SM,this.JSC$13806_renderImpl.bind(this));_.ey(this.JSC$13806_renderDebouncer)};
_.d.disconnectedCallback=function(){var b=(0,_.Mh)(this).parentNode;(!b||b.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in b&&!b.host)&&fD7(this)};
_.d.connectedCallback=function(){var b=this;this.JSC$13806_didCallConnected=!0;Au5?bU5():this.style.display="none";this.parentSignalProxy.isDisposed&&!_.r("ps_dom_if_check_disposed_in_connected_killswitch")||this.parentSignalProxy.effect(function(){ECo(b).getWithPath([]);b.debounceRender()})};
_.d.render=function(){_.Ye()};
_.d.JSC$13806_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var b=this.if,h=!1;if(b){this.hasInstance()||(wWW(this),h=!0);a:{var y=(0,_.Mh)(this).parentNode;if(this.hasInstance()){var S=this.instance.children;if((S==null?0:S.length)&&(0,_.Mh)(this).previousSibling!==S[S.length-1])for(var F=0;F<S.length;F++)(0,_.Mh)(y).insertBefore(S[F],this)}else{if(!y){y=!1;break a}lDo(this,y)}y=!0}if(!y)return}else this.restamp&&fD7(this);iCG(this,!1,b);b&&!h&&wWW(this);UZN&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.d.hasInstance=function(){return!!this.instance};
var lDo=function(b,h){var y=b.parentSignalProxy;if(QU()){var S=_.L(_.pa(!0,void 0,"dkzufd"));var F=S.next().value;S=S.next().value;y=b.parentSignalProxy}else{var a;var P=new Z4((a=qL7(b))!=null?a:{},function(n){var X=kx(b.parentSignalProxy,n).getChangeRecordSignal([]);n=_.pa(void 0,void 0,"iG8Uwe");var u=new Kd(n);P.effect(function(){if(b.getDisableTemplateUpdate&&!b.getDisableTemplateUpdate()){var O=X();u.notifyPath(Tj(O.path),{value:O.value})}});
return u});
b.parentSignalProxy.childSignalProxies.push(P);var K=y=P}y=Zbn(b.templateInfo,b.templateInfo.nodeInfoList,y,{eventListenerHost:b.eventListenerHost,hasInsertionPoint:b.templateInfo.hasInsertionPoint,thisCtx:b.eventListenerHost,enabledSignal:QU()?F:void 0,getModel:function(){return qL7(b)}}).root;
b.instance={root:y,children:[],hidden:!1,signalProxy:K,getTemplateUpdatesEnabled:F,setTemplateUpdatesEnabled:S};K=_.L(y.childNodes);for(F=K.next();!F.done;F=K.next())b.instance.children.push(F.value);(0,_.Mh)(h).insertBefore(b.instance.root,b)},qL7=function(b){if((b=b.parentSignalProxy.model)&&!b.hostElement){var h={},y;
for(y in b)b.hasOwnProperty(y)&&(h[y]=b[y]);return h}},fD7=function(b){if(b.instance){var h=b.instance.children;
if(h.length){var y=(0,_.Mh)(h[0]).parentNode;if(y){y=(0,_.Mh)(y);for(var S=0;S<h.length;S++)y.removeChild(h[S])}}QU()?b.instance.setTemplateUpdatesEnabled(!1):b.instance.signalProxy.dispose();b.instance=void 0}},iCG=function(b,h,y){h=h||!y;
b.instance&&b.instance.hidden!==h&&(b.instance.hidden=h,mrN(h,b.instance.children))},wWW=function(b){if(QU()){var h=b.instance;
h&&hi(b.parentSignalProxy.owner,function(){return!h.getTemplateUpdatesEnabled()})&&h.setTemplateUpdatesEnabled(!0)}else b.setDisableTemplateUpdate(!1)};
_.tm.Object.defineProperties(oD.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var b=this;return hi(this.parentSignalProxy.owner,function(){return ECo(b).getWithPath([])})},
set:function(b){b||(QU()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));ECo(this).setWithPath([],!!b)}}});
_.tm.Object.defineProperties(oD,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",oD);var xZW=[],Mb=function(){var b=HTMLElement.apply(this,arguments)||this;b.as="item";b.indexAs="index";b.itemsIndexAs="itemsIndex";b.targetFramerate=20;b.notifyDomChange=!1;b.isDetached=!1;b.JSC$13813_renderDebouncer=null;b.instances=[];b.chunkingId=null;b.chunkCount=null;b.shouldMeasureChunk=!1;b.shouldContinueChunking=!1;b.renderStartTime=null;b.JSC$13813_didCallConnected=!1;return b};
_.z(Mb,HTMLElement);var Qmw=function(b){b.itemSignalImpl!=null||(b.itemSignalImpl=new Kd(_.pa(xZW,void 0,"YBrqgf")));return b.itemSignalImpl},mZa=function(b,h){Array.isArray(h)||(h=xZW);
Qmw(b).setWithPath([],h)};
_.d=Mb.prototype;_.d.showHideChildren=function(b){for(var h=_.L(this.instances),y=h.next();!y.done;y=h.next())mrN(b,y.value.children)};
_.d.notifyPath=function(b,h){b=Tj(b);b[0]==="items"&&(b.length===1?mZa(this,h):Qmw(this).setWithPath(b.slice(1),h))};
_.d.canNotifyPath=function(b){return b==="items"};
_.d.attributeChangedCallback=function(b,h,y){if(this.JSC$13813_didCallConnected)throw Error("Rg`"+b);b==="as"?this.as=y:b==="index-as"?this.indexAs=y:b==="items-index-as"?this.itemsIndexAs=y:b==="initial-count"?this.initialCount=Number(y):b==="notify-dom-change"?this.notifyDomChange=y!==null:b==="target-framerate"&&(this.targetFramerate=Number(y))};
_.d.disconnectedCallback=function(){this.isDetached=!0;for(var b=0;b<this.instances.length;b++)vC5(this,b);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.d.connectedCallback=function(){var b=this,h=Qmw(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var F=h(),a=Tj(F.path);if(a[0]===void 0||a[0]==="splices"||a[0]==="length")b.debounceRender();else{var P=a[0];if(P=b.instances[typeof P==="string"?Math.floor(Number(P)):P])a=[b.as].concat(_.f$(a.slice(1))),P.signalProxy.notifyPath(a,F)}});
this.JSC$13813_didCallConnected=!0;Au5?bU5():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var y=(0,_.Mh)((0,_.Mh)(this).parentNode),S=0;S<this.instances.length;S++)y.insertBefore(this.instances[S].root,this);this.chunkingId&&this.render()}};
_.d.debounceRender=function(){this.JSC$13813_renderDebouncer=_.JD(this.JSC$13813_renderDebouncer,SM,this.JSC$13813_renderImpl.bind(this));_.ey(this.JSC$13813_renderDebouncer)};
_.d.render=function(){this.debounceRender();_.Ye()};
_.d.JSC$13813_renderImpl=function(){var b=this;if(!this.parentSignalProxy.isDisposed){var h=this.items,y=bgP(this,h.length);hJM(this,h,y);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){b.chunkingId=null;if(b.shouldMeasureChunk){var S=performance.now()-b.renderStartTime;b.chunkCount=Math.round(Math.ceil(1E3/b.targetFramerate)/S*b.chunkCount)||1}b.shouldContinueChunking&&b.debounceRender()}));
UZN&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var bgP=function(b,h){var y=h,S=b.instances.length;if(b.initialCount){if(b.chunkCount){var F=Math.min(Math.max(h-S,0),b.chunkCount);y=Math.min(S+F,h)}else y=Math.min(h,b.initialCount),F=Math.max(y-S,0),b.chunkCount=F||1;b.shouldMeasureChunk=F===b.chunkCount;b.shouldContinueChunking=y<h;b.renderStartTime=performance.now()}return y},hJM=function(b,h,y){for(var S=0;S<y;S++){var F=b.instances[S],a=h[S];
F?(F.signalProxy.setWithPath([b.as],a),F.signalProxy.setWithPath([b.indexAs],S)):yso(b,a,S)}for(h=b.instances.length-1;h>=S;h--)y=b,F=h,vC5(y,F),_.L(y.instances.splice(F,1)).next().value.signalProxy.dispose()},vC5=function(b,h){b=b.instances[h];
h=(0,_.Mh)(b.root);for(var y=0;y<b.children.length;y++)h.appendChild(b.children[y])},yso=function(b,h,y){var S={};
h=Object.assign({},S2a(b),(S[b.as]=h,S[b.indexAs]=y,S[b.itemsIndexAs]=y,S));var F=new Z4(h,function(P){if(P!==b.as&&P!==b.indexAs){if(P===b.itemsIndexAs)return kx(F,b.indexAs);var K=kx(b.parentSignalProxy,P).getChangeRecordSignal([]);P=_.pa(void 0,void 0,"T21Pqc");var n=new Kd(P);F.effect(function(){var X=K();n.notifyPath(Tj(X.path),{value:X.value})});
return n}});
b.parentSignalProxy.childSignalProxies.push(F);S=Zbn(b.templateInfo,b.templateInfo.nodeInfoList,F,{eventListenerHost:b.eventListenerHost,getModel:function(){var P={};return Object.assign({},S2a(b),(P[b.as]=F.model[b.as],P[b.indexAs]=F.model[b.indexAs],P[b.itemsIndexAs]=F.model[b.indexAs],P))},
hasInsertionPoint:b.templateInfo.hasInsertionPoint,thisCtx:b.eventListenerHost,methodInvocationRequirement:Juo,enabledSignal:b.stampingEnabled}).root;h={root:S,children:[],signalProxy:F};S=_.L(S.childNodes);for(var a=S.next();!a.done;a=S.next())h.children.push(a.value);S=(S=b.instances[y+1])?S.children[0]:b;(0,_.Mh)((0,_.Mh)(b).parentNode).insertBefore(h.root,S);b.instances[y]=h},S2a=function(b){if((b=b.parentSignalProxy.model)&&!b.hostElement){var h={},y;
for(y in b)b.hasOwnProperty(y)&&(h[y]=b[y]);return h}};
Mb.prototype.itemForElement=function(b){var h=this,y=this.instances.find(function(S){return S.children.includes(b)});
if(y)return hi(this.parentSignalProxy.owner,function(){return y.signalProxy.getWithPath([h.as])})};
Mb.prototype.indexForElement=function(b){var h=this.instances.findIndex(function(y){return y.children.includes(b)});
return h>=0?h:void 0};
_.tm.Object.defineProperties(Mb.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var b=this;return hi(this.parentSignalProxy.owner,function(){return Qmw(b).getWithPath([])})},
set:function(b){mZa(this,b)}},
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}}});
_.tm.Object.defineProperties(Mb,{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",Mb);var FKN,apo;_.nd=new _.ca("STATE_STORE_TOKEN");FKN=new _.ca("SELECT_TOKEN");apo=new _.ca("DISPATCH_TOKEN");var d3N={getSelectFn:function(){var b;return(b=_.H9().resolve(_.XS(FKN)))!=null?b:h6f},
getDispatchFn:function(){var b;return(b=_.H9().resolve(_.XS(apo)))!=null?b:_.mc().dispatch.bind(_.mc())},
getAppStore:function(){return _.H9().resolve(_.nd)}},yN5,at4=!1;var oVU=function(){};var P24=void 0;var dWw=function(){};
dWw.prototype.hasAttribute=function(b){if(b==="dir")return!1;if(b==="disable-upgrade"){var h,y;return(y=(h=this.hostElement)==null?void 0:h.hasAttribute("disable-upgrade"))!=null?y:!1}throw Error("Sg`"+b);};
dWw.prototype.attributeChangedCallbackWrapper=function(b,h,y){if(b==="disable-upgrade"&&this.__isUpgradeDisabled&&y===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var S;((S=this.hostElement)!=null?S:this).isConnected&&this.connectedCallback()}else h===y||this.__isReflecting||this.attributeChangedCallback(b,h,y)};
dWw.prototype.getExtraMethodsToForward=function(){for(var b=this,h=[],y=_.L(jnG),S=y.next(),F={};!S.done;F={tagName$jscomp$67:void 0,name$jscomp$630:void 0},S=y.next())F.name$jscomp$630=S.value,S=void 0,F.name$jscomp$630==="_setPendingProperty"?(F.tagName$jscomp$67=this.hostElement.tagName.toLowerCase(),S=function(a){return function(P,K,n){Bl(a.tagName$jscomp$67,P,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return b._setPendingProperty(P,K,n)}}(F)):S=function(a){return function(){return b[a.name$jscomp$630].apply(b,
_.f$(_.x$.apply(0,arguments)))}}(F),h.push([F.name$jscomp$630,
S]);return h};
for(var X$U=smo(gC8((0,_.lY)(dWw))),Nt8=["disabled","disable-upgrade"],$W8=(0,_.lY)(function(){}),LKe=new Set(Object.getOwnPropertyNames($W8.prototype)),z6j=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.f$(LKe))),rNf=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),jnG=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),Psw=new Set([].concat(_.f$(rNf),_.f$(jnG),_.f$(LKe))),KKM=_.L(Psw),Zgw=KKM.next();!Zgw.done;Zgw=KKM.next())iXM.add(Zgw.value);var R6f={created:function(){JEk(this);this.initializeInjection()}};var e6y=!1,dU=window.ShadyDOM,VEU=["appendChild","insertBefore","removeChild","replaceChild"],kTk=[Node];dU&&kTk.push(dU.Wrapper);var x3k,QuN,bCy={};var jj,aD5=new WeakMap,yuY=new Set;var P6M=new Set("context didCallReady is info params signalProxy".split(" ")),ZCj="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),oCU="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var o1W=Y6({entities:jzF}),Mv5=new bk(o1W);var n1b=function(){return _.cl.apply(this,arguments)||this};
_.z(n1b,_.cl);_.tm.Object.defineProperties(n1b.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return Mv5}}});
_.V([_.Rc()],n1b);_.Xc=[Ld.prototype,n1b.prototype];_.Hj={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var b=this,h={};setTimeout(function(){var y;return _.Sx((y=b.hostElement)!=null?y:b,"yt-live-chat-add-tooltip-target",h)},0);
this.handler_=h.handler},
detached:function(){if(this.handler_){var b;this.handler_.removeElementFromSupportingTooltips((b=this.hostElement)!=null?b:this)}this.handler_=null}}};_.MJ=new _.ca("ICON_MANAGER_TOKEN");var X75=[48,20,18,16,15,13,12],Juf=new Map,WGY=new Set,DZq=new Set,B0N=new Set,zFY=new Set,IDn=new Set,UZq=new Promise(function(b){var h=!1,y=!1,S=!1,F=[],a=function(P){if("detail"in P)if(P=P.detail,P.name==="yt-icons")AuM(P),h=!0;else if(P.name==="yt-sys-icons")AuM(P),y=!0;else{var K;((K=P.name)==null?0:K.includes("yt-sys-icons"))&&P.size!==24&&(AuM(P,!0),F.push(P.size),F.length===X75.length&&(S=!0))}h&&y&&S&&(window.removeEventListener("iron-iconset-added",a),b())};
window.addEventListener("iron-iconset-added",a)}),Hgb=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"]]);_.ug={};_.ug.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.vi,computeHref_:function(b,h){h=h===void 0?!1:h;if(!b||b.commandExecutorCommand)return null;var y=rBI(b,h);return h||y!==null?y?_.r("enable_polymer_resin")?_.lJ(y).toString():y:null:(_.vX(new _.Gn("computeHref was null",this.is,b)),null)},
computeOptionalHref_:function(b){return this.computeHref_(b,!0)},
computeNofollow_:function(b){return b?orI(b)?"nofollow":null:null},
computeIcon_:function(b){return b&&b.iconType?_.o_(b.iconType):""},
resolveCommand:function(b,h,y){h=h===void 0?{}:h;return _.Xb(b,this.hostElement,h,y===void 0?!1:y)}};var OgW,OG;_.uJG={};OgW=null;
OG={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_=NEI(this.viewroot));_.fZ(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var b=this;this.unobserve_();if(_.r("kevlar_vimio_use_shared_monitor"))ui(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 h=[];this.visibilityOptionVisible_&&h.push(this.visibilityObserver.observe(this.hostElement,function(){return b.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&h.push(this.visibilityObserver.observe(this.hostElement,function(){return b.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&h.push(this.visibilityObserver.observe(this.hostElement,function(){return b.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=h}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){eF5(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 b=_.b5(this.parentNode,function(y){var S,F=(S=y.polymerController)!=null?S:y;return!!F.getVisibilityObserverForChild&&F.getVisibilityObserverForChild()},!0);
if(b){var h;this.localVisibilityObserver_=((h=b.polymerController)!=null?h:b).getVisibilityObserverForChild()}else OgW||(OgW=NEI()),this.localVisibilityObserver_=OgW;return this.localVisibilityObserver_},visibilityCallback:function(b){b?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.r("kevlar_use_vimio_behavior")||(OG={});OG&&!_.r("kevlar_use_vimio_behavior")&&(delete OG.attached,delete OG.detached);_.uJG.YtVisibilityObserverBehavior=[OG];var N67={};N67.YtVisualElementBehavior=[_.uJG.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.r("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.r("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var b=this.getScreenLayer&&this.getScreenLayer(),h=this.getVisibilityLogger();h&&h.reportShown(this,void 0,b)}},
onHidden:function(){if(_.r("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.r("kevlar_vimio_use_shared_monitor")){var b=this.getScreenLayer&&this.getScreenLayer(),h=this.getVisibilityLogger();h&&h.reportHidden(this,void 0,b)}},
getVisibilityLogger:function(){return _.r("kevlar_use_vimio_behavior")?_.OQ():null},
shouldSkipLogging:function(){if(_.QC("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var b=this.getParentRenderer&&this.getParentRenderer();if(!b)return!1;var h,y=(h=b.polymerController)!=null?h:b;if(!y.data)return!1;b=this.data.trackingParams;b=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:b;var S;h=(S=y.data)==null?void 0:S.trackingParams;var F,a;h=((F=y.data)==null?0:F.loggingDirectives)?(a=y.data)==null?void 0:a.loggingDirectives.trackingParams:h;return b&&h&&b===
h}}];var Gl4=new Map,B3;var JIk=function(b){this.layer=b},O9=function(b){return b.layer!==void 0?b.layer:b.parent?O9(b.parent):b.layer=0};var wWN;_.Q={};wWN=0;_.Q.YtRendererBehavior=[_.ug.YtComponentBehavior,N67.YtVisualElementBehavior,{_noAccessors:!0,properties:{data:Object},observers:["ytRendererBehaviorDataObserver_(data)","ytRendererBehaviorTargetIdObserver_(data.targetId)"],childCache_:null,parentComponent:null,wasVisible:!1,wasPrescan:!1,lastHandledScroll_:0,isRenderer_:!0,screenLayer:null,veFromLoggingDirective_:!1,useVimio_:_.r("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var b,h;(h=(b=this.monitorScrollElement)!=null?b:this.hostElement)==null||h.removeEventListener("scroll",_.Hl(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();YLN(this.hostElement);m3(_.bg(),this.hostElement);Qh.delete(this.hostElement)},
registerRenderer:function(b){var h;((h=b.polymerController)!=null?h:b).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(b),this.markDirty())},
unregisterRenderer_:function(b){this.useVimio_||(this.childCache_.delete(b),this.markDirty())},
attached:function(){var b=this,h=this.getParentRenderer();if(h){var y,S,F;(S=(y=(F=h.polymerController)!=null?F:h).registerRenderer)==null||S.call(y,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var a,P;(P=(a=this.monitorScrollElement)!=null?a:this.hostElement)==null||P.addEventListener("scroll",_.Hl(this,this.onScroll))}_.xP.addJob(function(){klk(b.hostElement)},8);
y=new JIk(this.screenLayer||void 0);(h=Qh.get(h))&&h.layerNode&&(y.parent=h.layerNode);h={};B2N(this.hostElement,(h.isRenderer=!0,h.layerNode=y,h[etU]=this.data,h))},
getParentRenderer:function(){for(var b=this.hostElement.parentNode,h,y;b&&((h=Qh.get(b))==null||!h.isRenderer)&&!((y=b.polymerController)!=null?y:b).isRenderer_;)b=b.parentNode||b.host;return b},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.r("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.m$("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.r("debug_web_ve_data")&&this.data.trackingParams){var b="";try{b=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(y){_.QT(y)}if(b){var h=kYN(b,1);h!==void 0&&(this.hostElement.dataset.veIndex=String(h));b=kYN(b,2);
b!==void 0&&(this.hostElement.dataset.ve=String(b))}}this.veFromLoggingDirective_&&(this.dataElement=this.clientYouTubeData=this.veType=this.visualElement=void 0,this.veFromLoggingDirective_=!1);!this.visualElement&&this.data.loggingDirectives&&this.data.loggingDirectives.clientVeSpec&&this.data.loggingDirectives.clientVeSpec.uiType&&(this.veType=this.data.loggingDirectives.clientVeSpec.uiType,this.clientYouTubeData=this.data.loggingDirectives.clientVeSpec.clientYoutubeData,_.r("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.I_(this.data.loggingDirectives.trackingParams)),this.visualElement=_.NJ(_.rU(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var b=this.data.targetId;_.vy(_.bg(),b,this.hostElement)}else m3(_.bg(),this.hostElement)},
onScroll:function(){var b=Date.now();b-this.lastHandledScroll_<50||(this.lastHandledScroll_=b,this.markDirty())},
markDirty:function(){_.r("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():lDf(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var b=this.getParentRenderer();if(b&&(b=Qh.get(b))&&b.layerNode)return O9(b.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.f$(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var b=0;b<this.data.impressionEndpoints.length;b++)this.sendImpression(this.data.impressionEndpoints[b]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(b){b.clickTrackingParams&&delete b.clickTrackingParams;var h,y;(b==null?0:(h=b.commandMetadata)==null?0:(y=h.webCommandMetadata)==null?0:y.sendPost)?_.dh(this.hostElement,[b,{impression:!0}]):_.jx(this.hostElement,[b],this.hostElement)},
logExplicitClick:function(b){var h=_.UE(this.getScreenLayer());if(h){var y,S=(y=b.polymerController)!=null?y:b;b=S.visualElement;S=S.trackingParams||S.clickTrackingParams;!b&&S&&(b=_.I_(S));b&&_.lE(h,b)}}}];var tv8={},Nb=function(){return _.cl.apply(this,arguments)||this};
_.z(Nb,_.cl);Nb.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Nb.prototype.onPdgItemBehaviorClick=Nb.prototype.onPdgItemBehaviorClick;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Nb.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Nb.prototype,"data",void 0);_.V([_.u3("click"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],Nb.prototype,"onPdgItemBehaviorClick",null);_.V([_.Rc()],Nb);tv8.YtPdgLiveChatItemBehavior=[Nb.prototype,_.Q.YtRendererBehavior];var rs7;var csG;_.tJ={};_.tJ.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var rc=function(){var b=c_.apply(this,arguments)||this;b.switchTemplateAtRegistration=!1;return b};
_.z(rc,c_);rc.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||mZk(this),_.Bj5(this,"doRender"),this.doRender())};
rc.prototype.debounceRender=function(){this.templatingFn&&_.wy(this,"doRender",this.doRender)};
rc.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.QT(Error("bh"))};
rc.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.V([MVn()],rc);var RJN=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,cj={},ysf=(cj[1]={filterString:null,isUnwrappable:null,unwrap:null},cj[2]={filterString:function(b,h,y){return PC(y)},
isUnwrappable:function(b){return b instanceof bZ},
unwrap:function(b){return Sw(b)}},cj[3]={filterString:function(b,h,y){return RJN.test(y)?y:wf.toString()},
isUnwrappable:function(b){return VD(b)},
unwrap:function(b){return _.E_(b)}},cj[4]={filterString:function(){return wf.toString()},
isUnwrappable:function(b){return b instanceof Cc},
unwrap:function(b){return _.s_(b).toString()}},cj[5]={filterString:function(b,h,y){return y},
isUnwrappable:function(b){return typeof b==="string"},
unwrap:function(b){return b.toString()}},cj[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(b){return b instanceof _.$f},
unwrap:function(b){return PE(b)}},cj[8]={filterString:function(b,h,y){y=String(y).toLowerCase();
return VHf(b,h,y)?y:"zClosurez"},
isUnwrappable:null,unwrap:null},cj[10]={filterString:null,isUnwrappable:null,unwrap:null},cj);XC[F5["default"]]=FKq;var apf=[];(function(){var b=MU;MU=function(h){b==null||b(h);pt(function(){for(var y=0;y<h.length;y++)dW8(h[y])})}})();var zJa=function(){var b=_.cl.apply(this,arguments)||this;b.hasUnmounted=!1;return b};
_.z(zJa,_.cl);_.d=zJa.prototype;_.d.beforeRegister=function(){var b=this.doIdomRender;this.templatingFn?_.QT(Error("ah")):(this.templatingFn=b,this.switchTemplateAtRegistration=!0,hJ4(this))};
_.d.attached=function(){};
_.d.detached=function(){dW8(this.hostElement)};
_.d.renderIdom=function(){throw Error("dh");};
_.d.doIdomRender=function(){var b=this;CMf(this.hostElement,function(){b.renderIdom()})};
_.V([_.Rc()],zJa);var DWa=[rc.prototype,zJa.prototype];var IpN,B6a=function(){return IpN!==void 0?IpN:IpN=document.createElement("template")};
document.head.appendChild(B6a().content);var WK7;var Ase,UWa=function(){return Ase!==void 0?Ase:Ase=document.createElement("template")};
document.head.appendChild(UWa().content);var p7W;var JsW=document.head,eJa=JsW.appendChild,CsN;if(p7W===void 0){var g18=document.createElement("template");_.D(g18,"\x3c!--css-build:shady--\x3e");g18.content.insertBefore(UWa().content.cloneNode(!0),g18.content.firstChild);p7W=g18}CsN=p7W;eJa.call(JsW,CsN.content);var snN,Y25=function(){return snN!==void 0?snN:snN=document.createElement("template")};
document.head.appendChild(Y25().content);var T68;var G15=document.head,k18=G15.appendChild,VvM;if(T68===void 0){var E1W=document.createElement("template");_.D(E1W,"\x3c!--css-build:shady--\x3e");E1W.content.insertBefore(Y25().content.cloneNode(!0),E1W.content.firstChild);T68=E1W}VvM=T68;k18.call(G15,VvM.content);var igM=document.head,fp8=igM.appendChild,w7G;if(WK7===void 0){var lpW=document.createElement("template");_.D(lpW,"\x3c!--css-build:shady--\x3e");lpW.content.insertBefore(B6a().content.cloneNode(!0),lpW.content.firstChild);WK7=lpW}w7G=WK7;fp8.call(igM,w7G.content);var q2N,xWP=function(){return q2N!==void 0?q2N:q2N=document.createElement("template")};
document.head.appendChild(xWP().content);var Qna;_.cC=new _.ca("DARK_THEME_TOKEN");var mWW=new _.r4("accessibilityProperties");var v15=new _.r4("layoutProperties");var bsM=new _.r4("imageType");var h1o={};if("ytAttributedStringLinkHoverColor"in h1o)throw Error("gh`ytAttributedStringLinkHoverColor");(function(b,h){h1o[b]="value"in h&&"unit"in h?KK4(b,h):function(y){try{return h(y)}catch(S){throw Error("eh`"+b+"`"+S.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var yl8=function(b){var h=this;this.holdTime=b===void 0?500:b;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(y){var S=new CustomEvent("LONG_PRESS"),F;(F=y.changedTouches[0].target)==null||F.dispatchEvent(S)};
this.ontouchstart=function(y){h.longPressTimeout=_.N$(_.xP,function(){h.onlongpress(y);h.longPressOccurred=!0},h.holdTime)};
this.ontouchmove=function(){_.xP.cancelJob(h.longPressTimeout);h.longPressTimeout=NaN;h.longPressOccurred=!1;h.moveOccurred=!0};
this.ontouchend=function(y){if(h.longPressTimeout&&!h.longPressOccurred&&!h.moveOccurred){var S;(S=y.changedTouches[0].target)==null||S.dispatchEvent(new Event("click"))}_.xP.cancelJob(h.longPressTimeout);h.longPressTimeout=NaN;h.longPressOccurred=!1;h.moveOccurred=!1}};var WKj=function(b,h){yl8.call(this,h);var y=this;this.callback=b;this.onlongpress=function(S){var F;(F=y.callback)==null||F.call(y,S)}};
_.z(WKj,yl8);var As5=function(b,h){var y=Object.assign({},h);b=_.L(new Map([["ontouchstart",b.ontouchstart],["ontouchend",b.ontouchend],["ontouchmove",b.ontouchmove]]));for(var S=b.next(),F={};!S.done;F={eventName$jscomp$103:void 0,eventHandler$jscomp$2:void 0},S=b.next()){var a=_.L(S.value);S=a.next().value;a=a.next().value;F.eventName$jscomp$103=S;F.eventHandler$jscomp$2=a;h[F.eventName$jscomp$103]=function(P){return function(K){var n;(n=y[P.eventName$jscomp$103])==null||n.call(y,K);(0,P.eventHandler$jscomp$2)(K)}}(F)}};_.OM=new _.ca("COMMAND_HANDLER_TOKEN");var o1N=new _.r4("parallelCommand");var X7M=new _.r4("performOnceCommand");var n1F=new _.r4("serialCommand");var HgF=void 0;var SKN=function(){this.data=[];this.consumer=null};
SKN.prototype.push=function(b){this.consumer?this.consumer(b):this.data.push(b)};var xr={};_.pa(xr,void 0,"sgPmTd");_.pa(null,void 0,"jypsq");_.pa(null,void 0,"mWiOof");var DRF=new SKN;var zJk=[Gpa,kpP,VPe,icG,E$w,TfN,fLw,wM5];var F17=new _.r4("bracketTextDecorator");var ft=new _.r4("highlightTextDecorator");_.fh=new _.ca("APP_DIRECTION_TOKEN");var T6r={calledOnce:!1,state:"visible"},Y2M={calledOnce:!1,state:"hidden"};var asb=new _.ca("ICON_WIZ_COMPONENT_TOKEN");_.Xv=_.T(function(b){var h=b.icon;var y=b.active;var S=b.className;var F=b.style;var a=b.dataSelected;var P=b.dataDisabled;var K=b.role;var n=b.animateIcon;var X=b.themeOverride;var u=b.ariaHidden;var O=b.ariaExpanded;var N=b.ariaLabel;var t=b.tabindex;var R=b.id;var I=b.size;var U=b.iconFilter;var p=b.gradientColor;var e=b.onKeydown;var E=b.title;return _.M(_.H,{cond:h,then:function(){var Y=_.H9().resolve(asb);return _.M(Y,{icon:h,dataSelected:a,dataDisabled:P,animateIcon:n,themeOverride:X,ariaExpanded:O,
tabindex:t,id:R,active:y,size:I,role:K,className:S,ariaHidden:u,ariaLabel:N,style:function(){return F!=null&&F()||I==null||!I()?F==null?void 0:F():"width: "+(I==null?void 0:I())+"px;height: "+((I==null?void 0:I())+"px;")},
title:E,iconFilter:U,gradientColor:p,onKeydown:e})}})},"n");
_.Xv.idomCompat={callbacks:{onKeydown:!0}};var xWy=new _.r4("borderImageProcessor");var v1M=window.devicePixelRatio||1;var SKq=new Map([["yt_outline_bag_black_24","bag"]]);var RD=function(b){var h=this;this.margin=.1;this.whenInViewportWithMargin=b;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){h.requestScan()});
window.addEventListener("touchend",function(){h.requestScan()});
window.addEventListener("updateui",function(){h.requestScan()});
var y=new _.MG((0,_.i5)(this.requestScan,this),100);window.addEventListener("scroll",function(){y.fire()},!0);
window.addEventListener("resize",(0,_.i5)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){h.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.i5)(this.requestScan,this))};
RD.prototype.observe=function(b){this.observationTargets.includes(b)||this.observationTargets.push(b)};
RD.prototype.unobserve=function(b){this.observationTargets=this.observationTargets.filter(function(h){return h!==b})};
RD.prototype.requestScan=function(){var b=this;this.scanRequested||(pt(function(){dcM(b)}),this.scanRequested=!0)};
var dcM=function(b){var h=(1+b.margin)*(document.documentElement.clientHeight||window.innerHeight);b.observationTargets=b.observationTargets.filter(function(y){var S=y.getBoundingClientRect();(S=h>S.top&&!!S.height)&&b.whenInViewportWithMargin(y);return!S&&y.parentNode});
b.scanRequested=!1};
RD.prototype.disconnect=function(){this.observationTargets=[]};var jW5,L1a;jW5=_.L(_.pa($cf(),void 0,"O3X2wd"));_.$co=jW5.next().value;L1a=jW5.next().value;window.addEventListener("resize",function(){L1a($cf())});var P77={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},K1e=void 0,ZsG=window.innerWidth,o3a=window.innerHeight;window.addEventListener("resize",function(){K1e=void 0});var Mt8;if("IntersectionObserver"in window)Mt8=K15();else{if(K1e===void 0){var n3W;n3W="matchMedia"in window?window.matchMedia(P77.landscape+","+P77.portrait).matches:void 0;K1e=n3W!==void 0?n3W:ZsG>=930&&o3a>=550||ZsG>=550&&o3a>=930}Mt8=K1e?{observe:function(b){pt(function(){var h;(h=b.onViewportEntered)==null||h.call(b)})},
unobserve:function(){}}:new RD(function(b){pt(function(){var h;
(h=b.onViewportEntered)==null||h.call(b)})})}var L1k=Mt8;var XZo=_.T(function(b){var h=!1,y=_.ZR("img",function(S){_.m2(function(){h=!0;S.onload=null})});
_.Qi(function(){var S,F=(S=b.data)==null?void 0:S.call(b),a,P=(a=b.getSrc)==null?void 0:a.call(b).cb,K;S=(K=b.config)==null?void 0:K.call(b);if(K=y.value)if(a=function(X,u){if(!h)return P?P(X,u):X},Mtr(K,S),_.r("web_image_dont_reload_same_src")&&o3k(K,F,a))_.r("web_image_dont_reload_same_src_simulate_load")&&K.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var n;ZsI(K,F||null,a,S,(n=b.lazy)==null?void 0:n.call(b))}},"zS0jKb");
return _.M("img",{el:y})},"p");
XZo.idomCompat=!0;_.mI=_.T(function(b){var h=function(){var y,S=b.data(),F,a,P,K,n,X,u,O,N,t,R,I,U,p,e,E,Y,w,x,q,dI,L4,Rq,Xn,Ny,gI,YU,VN,Hb;var vF={contentMode:(F=b.contentMode)==null?void 0:F.call(b),loadedClass:(a=b.loadedClass)==null?void 0:a.call(b),isPreloaded:(P=b.isPreloaded)==null?void 0:P.call(b),notifyOnLoaded:(K=b.notifyOnLoaded)==null?void 0:K.call(b),notifyOnUnloaded:(n=b.notifyOnUnloaded)==null?void 0:n.call(b),preferredThumbnail:(X=b.preferredThumbnail)==null?void 0:X.call(b),preserveHeight:(u=b.preserveHeight)==
null?void 0:u.call(b),preserveWidth:(O=b.preserveWidth)==null?void 0:O.call(b),objectPosition:(N=b.objectPosition)==null?void 0:N.call(b),targetWidth:(t=b.targetWidth)==null?void 0:t.call(b),targetHeight:(R=b.targetHeight)==null?void 0:R.call(b),shouldShowPlaceholder:(I=b.shouldShowPlaceholder)==null?void 0:I.call(b),useWidth:(U=b.useWidth)==null?void 0:U.call(b),isToggled:(p=b.isToggled)==null?void 0:p.call(b),alt:(e=b.alt)==null?void 0:e.call(b),className:(E=b.className)==null?void 0:E.call(b),
onerror:b.onerror,onload:b.onload,style$:((Y=b.style$)==null?void 0:Y.call(b))||((w=b.style)==null?void 0:w.call(b)),color:(x=b.color)==null?void 0:x.call(b),width:(q=b.width)==null?void 0:q.call(b),height:(dI=b.height)==null?void 0:dI.call(b),"aria-hidden$":(VN=(L4=b["aria-hidden$"])==null?void 0:L4.call(b))!=null?VN:(Rq=b.ariaHidden)==null?void 0:Rq.call(b),draggable:(Xn=b.draggable)==null?void 0:Xn.call(b),"data-disabled$":(Hb=(Ny=b["data-disabled$"])==null?void 0:Ny.call(b))!=null?Hb:(gI=b.dataDisabled)==
null?void 0:gI.call(b),size:(YU=b.size)==null?void 0:YU.call(b)};return XZf(S,vF,(y=b.hideOn404)==null?void 0:y.call(b))};
return _.M(_.kZ,null,_.M(_.YZ,{when:function(){var y;return((y=h())==null?void 0:y.type)==="image"}},function(){return _.M(XZo,{data:function(){return h().image},
getSrc:{cb:function(y,S){var F=h().image.sources,a=h().config.isPreloaded,P=h().config.useWidth,K=h().config.targetWidth,n=h().config.targetHeight,X=h().config.preferredThumbnail;return _.bs4(S,F,a,P,K,n,X)||""}},
config:function(){var y=h().config,S;for(S in y)y[S]===void 0&&delete y[S];return y},
lazy:b.renderLazy})}),_.M(_.YZ,{when:function(){var y;
return((y=h())==null?void 0:y.type)==="icon"}},function(){return _.M(_.Xv,{icon:function(){return h().iconName},
role:function(){return h().config.role},
className:function(){return h().config.className},
style:function(){return h().config.style$+";width: "+(h().config.width+"px;height: ")+(h().config.height+"px;color: ")+(h().config.color+";")},
ariaLabel:function(){return h().config["aria-label$"]},
ariaHidden:function(){return h().config["aria-hidden$"]},
dataDisabled:function(){return h().config["data-disabled$"]},
active:function(){return h().config.isToggled},
size:function(){return h().config.size}})}))},"q");
_.mI.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var Hsa=_.T(function(b){var h=function(F){var a,P,K=_.Qa(function(t){a=F();P=vs(function(){for(var R=_.L(O()),I=R.next();!I.done;I=R.next()){I=Nln(I.value);I=typeof I==="string"?document.createTextNode(I):I;if(!(I instanceof Node)){R=new _.Gn("Part is not a node",I,typeof I);_.QT(R);break}t.appendChild(I)}})}),n=_.bi(b.config),X=function(){var t,R=F();
return!((t=n())==null||!t.ariaLabel)||!(R.commandRuns&&R.commandRuns.length!==0||R.paragraphStyleRuns&&R.paragraphStyleRuns.length!==0)},u=utU(n,{isEqual:rlU}),O=function(){var t=F(),R=u(),I=[],U=t.content.length,p,e=(p=_.H9().resolve(_.XS(_.cC)))==null?void 0:p();
if(t.paragraphStyleRuns)for(var E=_.L(t.paragraphStyleRuns),Y=E.next();!Y.done;Y=E.next()){var w=I.push,x=w.apply;var q=void 0,dI=Y.value;if((q=dI.listGroup)!=null&&q.listItems){var L4=[];b:switch(dI.listGroup.listType){case "LIST_TYPE_BULLET":var Rq="ul";break b;default:Rq="span"}L4.push(EQ({run:dI,textLength:U,tag:Rq,config:{className:"yt-core-attributed-string__list-group"},startIndex:dI.startIndex,length:dI.length}));for(var Xn=_.L(dI.listGroup.listItems),Ny=Xn.next();!Ny.done;Ny=Xn.next()){var gI=
Ny.value;b:switch(dI.listGroup.listType){case "LIST_TYPE_BULLET":var YU="li";break b;default:YU="span"}L4.push(EQ({run:dI,textLength:U,tag:YU,startIndex:gI.startIndex,length:gI.length}))}var VN=L4}else VN=[];x.call(w,I,_.f$(VN))}if(t.styleRuns&&(R==null||!R.noStyleRuns))for(var Hb=_.L(t.styleRuns),vF=Hb.next();!vF.done;vF=Hb.next()){var xU=vF.value,Xa=xU,rG=e,Wb=R,Xx=JsN({extension:_.c(Xa.styleRunExtensions,ef8),isDarkTheme:rG===void 0?!1:rG,runColor:Xa.fontColor}),Bb=void 0,oq=Xa,kU=[];Xx&&kU.push("yt-core-attributed-string--link-inherit-color");
oq.italic&&kU.push("yt-core-attributed-string--italicized");oq.underline&&oq.strikethrough?kU.push("yt-core-attributed-string--underline-strikethrough",Csq(oq.underline)):oq.underline?kU.push("yt-core-attributed-string--underlined",Csq(oq.underline)):oq.strikethrough&&kU.push("yt-core-attributed-string--strikethrough",Csq(oq.strikethrough));if(oq.baselineOffset){a:switch(oq.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":Bb="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":Bb=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:Bb="yt-core-attributed-string--baseline-offset-unknown"}kU.push(Bb)}var O7=kU.join(" ");var io=Xa,cb=Xx,QW={};if(io.weight||io.weightLabel)QW.fontWeight=eJn(io,Wb==null?void 0:Wb.isHeadline).toString();cb&&(QW.color=cb);I.push(EQ({run:xU,textLength:U,tag:"span",config:{className:O7,style:QW},startIndex:xU.startIndex,length:xU.length}))}if(t.decorationRuns)for(var vM=_.L(t.decorationRuns),wG=vM.next();!wG.done;wG=vM.next()){var oN=
wG.value,uo={};if(oN.textDecorator){var dA=oN.textDecorator,QN=e===void 0?!1:e,vb=[],fA=_.c(dA,ft),bJ=_.c(dA,F17);if(fA){var ua=vb,kF=ua.concat,oa=[],PB=JsN({extension:_.c(fA.highlightTextDecoratorExtensions,JZG),isDarkTheme:QN,runColor:fA.backgroundColor});PB&&oa.push("background-color: "+PB+";");fA.backgroundCornerRadius!==void 0&&oa.push("border-radius: "+fA.backgroundCornerRadius+"px;");fA.leftPadding!==void 0&&oa.push("padding-left: "+fA.leftPadding+"px;");fA.rightPadding!==void 0&&oa.push("padding-right: "+
fA.rightPadding+"px;");fA.topPadding!==void 0&&oa.push("padding-top: "+fA.topPadding+"px;");fA.bottomPadding!==void 0&&oa.push("padding-bottom: "+fA.bottomPadding+"px;");vb=kF.call(ua,oa)}else if(bJ){var lo=vb,IP=lo.concat,j2=QN?"#2ba640":"#107516",Jg=bJ.color?p7U(bJ.color):j2;vb=IP.call(lo,["padding: 2px;","border-top: solid "+Jg+" 2px;","border-bottom: solid "+Jg+" 2px;","background: linear-gradient(135deg, "+Jg+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+Jg+" 3px, rgba(0, 0, 0, 0) 3px);"])}var uR=
vb.join(" ");uo.style$=uR;var Yb=oN.textDecorator,B0=[],Vx=_.c(Yb,F17);_.c(Yb,ft)?B0.push("yt-core-attributed-string--highlight-text-decorator"):Vx&&B0.push("yt-core-attributed-string--bracket-text-decorator");var vL=B0.join(" ");uo.className=vL;uo.dir="auto"}var BF=_.c(oN.textDecorator,ft),Tk=_.c(oN.textDecorator,F17),qy=_.c(oN.textDecorator,ft),za=_.c(oN.textDecorator,F17);I.push(EQ({run:oN,textLength:U,tag:"span",config:uo,startIndex:(BF==null?void 0:BF.startIndex)||(Tk==null?void 0:Tk.startIndex)||
0,length:(qy==null?void 0:qy.length)||(za==null?void 0:za.length)||0}))}if(t.commandRuns&&(R==null||!R.noEndpoints))for(var rA=_.L(t.commandRuns),zp=rA.next();!zp.done;zp=rA.next()){var BN=zp.value,U7=UWn(BN,R);I.push(EQ({run:BN,textLength:U,tag:"a",config:U7,startIndex:BN.startIndex,length:BN.length}))}if(t.attachmentRuns)for(var D8=_.L(t.attachmentRuns),Vf=D8.next();!Vf.done;Vf=D8.next()){var Lc=Vf.value,NP=void 0,eF=void 0,i_={className:"yt-core-attributed-string--inline-block-mod"};if((eF=Lc.element)==
null?0:eF.properties){var Y$=(NP=Lc.element)==null?void 0:NP.properties,u5=[],SK=_.c(Y$,v15);if(SK==null?0:SK.margin){var IA=SK.margin;IA.left&&u5.push("margin-left: "+gU(IA.left)+";");IA.right&&u5.push("margin-right: "+gU(IA.right)+";");IA.top&&u5.push("margin-top: "+gU(IA.top)+";");IA.bottom&&u5.push("margin-bottom: "+gU(IA.bottom)+";")}var b_=u5.length!==0?u5.join(" "):void 0;i_.style$=b_}var DW=i_,iK=void 0,bF={alt:"",preserveHeight:!0,preserveWidth:!0},GI=["yt-core-attributed-string__image-element"];
if(Lc.alignment){a:switch(Lc.alignment){case "ALIGNMENT_BASELINE":var oL="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":oL="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:oL="yt-core-attributed-string__image-element--image-alignment-bottom"}GI.push(oL)}if((iK=Lc.element)==null?0:iK.properties){var cE=[],t6=_.c(Lc.element.properties,v15);(t6==null?0:t6.height)&&cE.push("height: "+gU(t6.height)+
";");(t6==null?0:t6.width)&&cE.push("width: "+gU(t6.width)+";");var iq=cE.length!==0?cE.join(" "):void 0;bF.style$=iq;var fw=void 0;var f0=((fw=_.c(Lc.element.properties,mWW))==null?void 0:fw.label)||"";bF.alt=f0}bF.className=GI.join(" ");var T4=bF,ky=void 0;var V4=void 0,vo=void 0;var E6=((vo=Lc.element)==null?0:vo.type)?(V4=_.c(Lc.element.type,bsM))==null?void 0:V4.image:void 0;I.push(EQ({run:Lc,textLength:U,tag:"img",image:E6,imageConfig:T4,imageWrapperConfig:DW,startIndex:Lc.startIndex,length:(ky=
Lc.length)!=null?ky:0}))}if(R==null?0:R.headerRuns)for(var wc=_.L(R.headerRuns),Se=wc.next();!Se.done;Se=wc.next()){var LA=Se.value;if(LA.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(LA.headerMapping)){a:{switch(LA.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":var DE="yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":DE=
"yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":DE="yt-core-attributed-string--heading-3";break a}DE=void 0}I.push(EQ({run:LA,textLength:U,tag:"span",config:DE?{className:DE}:void 0,startIndex:LA.startIndex,length:LA.length}))}}var F9=u();if(F9==null?0:F9.userInput)for(var BB=_.L(I),FR=BB.next();!FR.done;FR=BB.next()){var yi=FR.value;if(yi.tag!=="a"&&yi.tag!=="li"){var VE=void 0;(VE=yi).config||(VE.config={});yi.config.dir=yi.tag==="ul"?_.H9().resolve(_.fh):
"auto"}}if(F().content){var jV=F().content;ig4(I);for(var pQ={data:null,start:0,end:jV.length,parts:[]},cRk=_.L(I),JH=cRk.next();!JH.done;JH=cRk.next()){var e8=JH.value;Vv4(pQ,e8.startIndex,e8.endIndex,e8)}E1N(jV,pQ);var RL4=pQ.parts}else RL4=[];return RL4},N=!0;
_.Qi(function(){F();u();if(N&&(N=!1,OsY(F(),a)))return;var t=O();Promise.resolve().then(function(){var R=K.value;if(R){R.innerText="";var I;(I=P)==null||I();P=_.EW(R,function(){return _.M(ttj,{parts:t})},"r")}})},"Dfzccf");
return _.M("span",{el:K,class:function(){var t;if(t=F()){t=F();var R=n(),I=[];I.push("yt-core-attributed-string");(R==null?0:R.className)&&I.push(R==null?void 0:R.className);(R==null?0:R.ellipsisTruncate)?I.push("yt-core-attributed-string--ellipsis-truncate"):(R==null?0:R.noWrap)?I.push("yt-core-attributed-string--white-space-no-wrap"):(R==null?0:R.noPreWrap)||I.push("yt-core-attributed-string--white-space-pre-wrap");(R==null?0:R.linkInheritColor)&&I.push("yt-core-attributed-string--link-inherit-color");
t.alignment&&I.push(g1r(t.alignment));t.lineBreakMode&&I.push("yt-core-attributed-string--word-wrapping");t=I.join(" ")}return t},
dir:function(){var t;return((t=n())==null?0:t.userInput)?"auto":void 0},
"aria-label":function(){var t;return X()?(t=n())==null?void 0:t.ariaLabel:void 0},
role:function(){return X()?"text":void 0}})},y=utU(function(){var F,a=(F=b.text)==null?void 0:F.call(b);
if(a)return F=_.li(a)?a:_.ej(a),(F==null?0:F.content)?F:void 0},{isEqual:OsY}),S;
return((S=b.config)==null?0:S.contentAsserted)?h(y):_.M(_.H,{cond:y,then:h})},"t");
Hsa.idomCompat=!0;_.zv=_.T(function(b){var h=_.bi(b.text),y=clN(b);b.contentAsserted!==void 0&&(y.contentAsserted=!0);return _.M(Hsa,{text:h,config:y})},"u");
_.zv.idomCompat=!0;var R1F=function(b,h,y){h=h===void 0?"unknown":h;y=y===void 0?{}:y;_.Gn.call(this,b+" ("+h+")",Object.assign({},{name:"YtWcwError",tagName:h},y));Object.setPrototypeOf(this,this.constructor.prototype)};
_.z(R1F,_.Gn);_.h4=new WeakMap;_.bp=!1;var W1Y,AlF,Blr;_.D4=Symbol("ih");_.v3=Symbol("jh");W1Y=Symbol("kh");AlF=new Set(Object.getOwnPropertyNames(Element.prototype));Blr=Symbol("lh");var utW=_.T(function(b){return _.M("yt-attributed-string",{"aria-label":b.ariaLabel,hidden:b.hidden,id:b.id,class:b.className,"force-default-style":b.forceDefaultStyle},_.M(_.zv,{text:b.data,ariaLabel:b.ariaLabel,ellipsisTruncate:b.ellipsisTruncate,isOverlay:b.isOverlay,linkInheritColor:b.linkInheritColor,noPreWrap:b.noPreWrap,noWrap:b.noWrap,userInput:b.userInput,noEndpoints:b.noEndpoints,headerRuns:b.headerRuns,isHeadline:b.isHeadline}))},"v");
_.r("web_wiz_attributed_string")&&_.yd(utW,"yt-attributed-string",{props:{ariaHidden:_.D4,ariaLabel:_.D4,className:_.D4,ellipsisTruncate:_.D4,isOverlay:_.D4,linkInheritColor:_.D4,noEndpoints:_.D4,noStyleRuns:_.D4,noLinkColor:_.D4,noPreWrap:_.D4,noWrap:_.D4,skipOnClick:_.D4,userInput:_.D4,headerRuns:_.D4,isHeadline:_.D4,id:_.D4,data:_.D4,hidden:_.D4,forceDefaultStyle:_.D4,text:_.v3,disableUpgrade:_.v3,disable:_.v3,slot:_.v3}});var ID=function(){return _.g.apply(this,arguments)||this};
_.z(ID,_.g);ID.prototype.renderIdom=function(){if(this.data&&!this.disable){this.config={ariaLabel:this.hostElement.ariaLabel,ellipsisTruncate:this.ellipsisTruncate,isOverlay:this.isOverlay,linkInheritColor:this.linkInheritColor,noPreWrap:this.noPreWrap,noWrap:this.noWrap,userInput:this.userInput,noEndpoints:this.noEndpoints,headerRuns:this.headerRuns};var b=this.data,h=this.config;b&&(b=_.li(b)?b:_.ej(b),b!=null&&b.content&&(h=h||{},h.contentAsserted=!0,jWM(Hsa)({text:b,config:h})))}};
_.V([_.B(DWa),_.f("design:type",Object)],ID.prototype,"ytIdomTemplatingBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],ID.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],ID.prototype,"ariaLabel",void 0);_.V([_.C(),_.f("design:type",Boolean)],ID.prototype,"disable",void 0);_.V([_.C(),_.f("design:type",Boolean)],ID.prototype,"ellipsisTruncate",void 0);_.V([_.C(),_.f("design:type",Boolean)],ID.prototype,"isOverlay",void 0);
_.V([_.C(),_.f("design:type",Boolean)],ID.prototype,"linkInheritColor",void 0);_.V([_.C(),_.f("design:type",Boolean)],ID.prototype,"noPreWrap",void 0);_.V([_.C(),_.f("design:type",Boolean)],ID.prototype,"noWrap",void 0);_.V([_.C(),_.f("design:type",Boolean)],ID.prototype,"userInput",void 0);_.V([_.C(),_.f("design:type",Boolean)],ID.prototype,"noEndpoints",void 0);_.V([_.C(),_.f("design:type",Array)],ID.prototype,"headerRuns",void 0);
_.V([_.sB({is:"yt-attributed-string",disableElementRegistration:!0})],ID);
_.r("web_wiz_attributed_string")||_.k(ID,"yt-attributed-string",function(){if(Qna===void 0){var b=document.createElement("template");_.D(b,"\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");b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);
b.content.insertBefore(xWP().content.cloneNode(!0),b.content.firstChild);Qna=b}b=Qna;return b},{mode:2});var Os8,Nla,sWk;Os8=function(){this.firstThumbnailLoaded=!1};
_.tt7=function(){Nla||(Nla=new Os8);return Nla};
sWk=function(b){var h=_.tt7();h.firstThumbnailLoaded||(h.firstThumbnailLoaded=!0,_.pI("ftl",b))};
Os8.prototype.reset=function(){this.firstThumbnailLoaded=!1};var pZj=0,g35=new WeakMap,e1q=0,aF=new Set;var rlW,clW=function(){return rlW!==void 0?rlW:rlW=document.createElement("template")};
document.head.appendChild(clW().content);var R1b;var kWr,E34,Bj;_.$E=_.S5.caches;Bj=function(){};
Bj.prototype.open=function(b){return _.$E.open(z1M(b))};
Bj.prototype.has=function(b){return _.$E.has(z1M(b))};
Bj.prototype.delete=function(b){return _.$E.delete(z1M(b))};
Bj.prototype.match=function(b,h){var y=this,S,F,a,P,K,n;return _.Z(function(X){switch(X.nextAddress){case 1:return X.yield(y.keys(),2);case 2:S=X.yieldResult,F=_.L(S),a=F.next();case 3:if(a.done){X.jumpTo(5);break}P=a.value;return X.yield(y.open(P),6);case 6:return K=X.yieldResult,X.yield(K.match(b,h),7);case 7:if(n=X.yieldResult)return X.return(n);a=F.next();X.jumpTo(3);break;case 5:return X.return()}})};
var isF=function(){};
_.z(isF,Bj);var z1M=function(b){if(b.includes(":"))throw Error("oh`"+b);return b+":"+_.Y0("CacheStorage get")};
isF.prototype.keys=function(){var b,h,y,S,F,a,P,K,n;return _.Z(function(X){if(X.nextAddress==1)return b=[],h=_.Y0("CacheStorage keys"),X.yield(_.$E.keys(),2);y=X.yieldResult;S=_.L(y);for(F=S.next();!F.done;F=S.next())a=F.value,P=_.GWk(a),K=P.originalName,n=P.datasyncId,n===h&&b.push(K);return X.return(b)})};var Wj=function(){var b=_.g.apply(this,arguments)||this;b.objectURL=null;b.loadTime=Infinity;return b};
_.z(Wj,_.g);_.d=Wj.prototype;
_.d.renderIdom=function(){TlY(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("rh");this.setConfig();if(this.config){var b=this.config,h=this.shouldRenderLazy;jWM(_.mI)({contentMode:b.contentMode,loadedClass:b.loadedClass,isPreloaded:b.isPreloaded,notifyOnLoaded:b.notifyOnLoaded,notifyOnUnloaded:b.notifyOnUnloaded,preferredThumbnail:b.preferredThumbnail,preserveHeight:b.preserveHeight,preserveWidth:b.preserveWidth,objectPosition:b.objectPosition,targetWidth:b.targetWidth,
targetHeight:b.targetHeight,shouldShowPlaceholder:b.shouldShowPlaceholder,useWidth:b.useWidth,isToggled:b.isToggled,alt:b.alt,className:b.className,onerror:b.onerror,onload:b.onload,style$:b.style$,color:b.color,width:b.width,height:b.height,"aria-hidden$":b["aria-hidden$"],draggable:b.draggable,"data-disabled$":b["data-disabled$"],data:this.data,callback:void 0,renderLazy:h===void 0?!0:h,hideOn404:!1})}}};
_.d.objectFitToContentMode=function(b){switch(b){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.d.logThumbnailFailureVe=function(){var b=_.Kh(197497);_.lC(_.rU(),b);var h=_.UE();h&&b&&h&&_.fI(h,[b])};
_.d.loadImageFromCacheIfExists=function(b){var h=this,y=b.target;(y==null?0:y.src)&&wZq(y.src).then(function(S){h.objectURL=_.q9(S).toString();h.setSrc(y,h.objectURL)}).catch(function(){})};
_.d.onError=function(b){var h=this;if(_.r("web_use_cache_for_image_fallback")){var y=b.target;y&&wZq(y.src).then(function(S){h.objectURL=_.q9(S).toString();h.setSrc(y,h.objectURL)}).catch(function(){_.r("kevlar_woffle_log_thumbnail_failure_ve")&&h.logThumbnailFailureVe();
_.r("kevlar_woffle_fallback_image")&&h.setSrc(y,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.d.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.d.setConfig=function(){var b=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(h){b.loadImageFromCacheIfExists(h);b.revokeObjectURL();YKN(b.hostElement)},
onerror:function(h){b.onError(h)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.r("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.d.setSrc=function(b,h){h&&(b.src=h)};
_.V([_.B(DWa),_.f("design:type",Object)],Wj.prototype,"ytIdomTemplatingBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Wj.prototype,"data",void 0);_.V([_.C(),_.f("design:type",String)],Wj.prototype,"alt",void 0);_.V([_.C(),_.f("design:type",Boolean)],Wj.prototype,"ftlEligible",void 0);_.V([_.C(),_.f("design:type",Number)],Wj.prototype,"height",void 0);_.V([_.C(),_.f("design:type",Boolean)],Wj.prototype,"notifyOnLoaded",void 0);
_.V([_.C(),_.f("design:type",Boolean)],Wj.prototype,"notifyOnUnloaded",void 0);_.V([_.C(),_.f("design:type",String)],Wj.prototype,"objectFit",void 0);_.V([_.C(),_.f("design:type",String)],Wj.prototype,"objectPosition",void 0);_.V([_.C(),_.f("design:type",String)],Wj.prototype,"preferredThumbnail",void 0);_.V([_.C(),_.f("design:type",Boolean)],Wj.prototype,"preserveHeight",void 0);_.V([_.C(),_.f("design:type",Boolean)],Wj.prototype,"preserveWidth",void 0);
_.V([_.C({value:!0}),_.f("design:type",Boolean)],Wj.prototype,"useWidth",void 0);_.V([_.C({value:function(){return!_.m$("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.f("design:type",Boolean)],Wj.prototype,"shouldRenderLazy",void 0);_.V([_.C(),_.f("design:type",Number)],Wj.prototype,"width",void 0);_.V([_.sB({is:"yt-image",disableElementRegistration:!0})],Wj);
_.k(Wj,"yt-image",function(){if(R1b===void 0){var b=document.createElement("template");_.D(b,"\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");b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);b.content.insertBefore(clW().content.cloneNode(!0),b.content.firstChild);
R1b=b}b=R1b;return b},{mode:2});var AJ=function(){return _.g.apply(this,arguments)||this};
_.z(AJ,_.g);AJ.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var b=_.YS(this.data.onVisibleCommand);b&&this.ytComponentBehavior.resolveCommand(b)}};
_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],AJ.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],AJ.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.tJ.YtVisibilityBehavior),_.f("design:type",Object)],AJ.prototype,"ytVisibilityBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],AJ.prototype,"data",void 0);_.V([_.sB({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],AJ);
_.k(AJ,"yt-bumper-user-edu-content-view-model",function(){if(csG===void 0){var b=document.createElement("template");_.D(b,'\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>');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;rs7===void 0&&(rs7=document.createElement("template"));var S=rs7;y.call(h,S.content.cloneNode(!0),b.content.firstChild);csG=b}b=csG;return b},{mode:0});var Dc8;var IsG,Bl8=function(){if(IsG!==void 0)return IsG;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;Dc8===void 0&&(Dc8=document.createElement("template"));var S=Dc8;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return IsG=b};var W18;_.UG={};W18=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"]);_.UG.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var b=this.getContext_();return b?b.getTaskManager():_.xP},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var b=_.Sx(this.hostElement,"yt-get-context-provider",{});b.detail&&b.detail.contextProvider?this.cachedProviderNode_=b.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return W18.has(this.hostElement.localName)},
getNetworkManager:function(){var b=this.getContext_();if(b)return b.getNetworkManager()}};var v3Y,Alb,pZ7,Uc8;_.pd=function(b){var h=Alb.get(b);if(h&&(h=h.pop()))return Uc8++,h;pZ7++;try{var y=document.createElement(b)}catch(S){throw new _.Gn("ElementPool failed to create element",b,S.message);}return y};
v3Y=function(b){var h=b.is;if(h){var y=Alb.get(h);y||(y=[],Alb.set(h,y));var S=_.QC("ELEMENT_POOL_CONFIG")||{};y.length>=(S[h]!==void 0?S[h]:_.QC("ELEMENT_POOL_DEFAULT_CAP",0))||y.push(b)}else _.vX(new _.Gn("Element pool should only handle custom elements:",b.nodeName))};
Alb=new Map;pZ7=0;Uc8=0;var L9=new WeakMap,mcI=new WeakMap;var e1N;_.JJ=function(b,h,y){y=y===void 0?_.J_():y;this.JSC$14080_defaultPriority=b;this.signal=h;this.scheduler=y;this.nextJobDescriptor=0;this.JSC$14080_parkedJobs=[];this.scheduledJobs=new Map};
_.eS=function(b,h){if(h){var y=_.Dh();b.signal&&!_.Iz(y,b.signal)?(y.addListener(b.signal,function(){b.processSignal()}),b.JSC$14080_parkedJobs.push({job:h,
priority:void 0})):JlN(b,h)}};
e1N=function(b,h){if(h!==b.JSC$14080_defaultPriority){b.JSC$14080_defaultPriority=h;for(var y=_.L(b.scheduledJobs.values()),S=y.next();!S.done;S=y.next())S=S.value,b.scheduler.cancelJob(S.jobId),S.jobId=b.scheduler.addJob(S.jobWrapper,h)}};
_.JJ.prototype.flushJobs=function(){e1N(this,10);this.processSignal()};
_.JJ.prototype.cancel=function(){for(var b=_.L(this.scheduledJobs),h=b.next();!h.done;h=b.next()){var y=_.L(h.value);h=y.next().value;y=y.next().value;this.scheduler.cancelJob(y.jobId);this.scheduledJobs.delete(h)}this.JSC$14080_parkedJobs=[]};
_.JJ.prototype.processSignal=function(){for(var b=_.L(this.JSC$14080_parkedJobs),h=b.next();!h.done;h=b.next())h=h.value,JlN(this,h.job,h.priority);this.JSC$14080_parkedJobs=[]};
var JlN=function(b,h,y){y=y||b.JSC$14080_defaultPriority;if(y===10)dS(h);else{var S=b.nextJobDescriptor++,F=function(){h();b.scheduledJobs.delete(S)},a=b.scheduler.addJob(F,y);
b.scheduledJobs.set(S,{jobWrapper:F,jobId:a,priority:y})}};var C7w;_.Cd={};C7w={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.Cd.YtRendererstamperBehavior=[_.UG.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 b in this.stampDom){var h=this.stampDom[b];h&&h.id&&this.addReactiveSchema({type:"observe",method:{methodName:qKj(h.id),args:[{type:"wildcard",path:b}]}})}else{(b=(this.constructor.generatedFrom||this).observers)||(b=[]);for(h in this.stampDom){var y=this.stampDom[h];y&&y.id&&b.push(qKj(y.id)+"("+h+".*)")}this.constructor.generatedFrom.observers=b}},
addStampDomObserverFns_:function(){for(var b in this.stampDom){var h=this.stampDom[b];h.id?(this[qKj(h.id)]=this.rendererStamperObserver_.bind(this,b,h.id),this.hasDataPath_[b]=!1):(h=new _.Gn("Bad rendererstamper config",this.is+":"+b),_.QT(h))}},
rendererStamperObserver_:function(b,h,y){if(y.path==b){if(y.value===void 0&&!this.hasDataPath_[b])return;this.hasDataPath_[b]=y.value!==void 0}this.rendererStamperApplyChangeRecord_(b,h,y)},
rendererStamperApplyChangeRecord_:function(b,h,y){var S=this.renderJobsMap_[h],F=null;b==y.path?(y=y.value,_.f4(y)||(y=y===void 0||y===null?[]:[y]),b=this.stampDom[b],b.mapping&&(F=this.stampDomArray_.bind(this,y,h,b.mapping,b.reuseComponents,b.events,b.stamperStableList)),S&&S.cancel(),y=b.usePageScheduler?this.getTaskManager():void 0,S||b.initialRenderPriority==void 0)?b.renderPriority==void 0||S||(S=new _.JJ(b.renderPriority,b.waitForSignal,y),this.renderJobsMap_[h]=S):(S=new _.JJ(b.initialRenderPriority,
b.waitForSignal,y),this.renderJobsMap_[h]=S,F=function(a,P){a();e1N(P,10)}.bind(this,F,S)):F=b+".splices"==y.path?this.stampDomArraySplices_.bind(this,b,h,y.value):this.forwardRendererStamperChanges_.bind(this,b,h,y);
S?_.eS(S,F):F()},
forwardRendererStamperChanges_:function(b,h,y){var S=y.path.slice(b.length+1),F=this.getStampContainer_(h),a=S.indexOf("."),P=S.substring(0,a),K=!1,n=0,X=parseInt(P,0);if(P[0]=="#"){K=parseInt(P.substring(1),0);X=this.get(b);var u=this.get([b,P]);X[K]==u?n=K:n=X.indexOf(u);K=!0}else isNaN(X)||(n=X,K=!0);K&&(S=S.substring(P.length+1),a=S.indexOf("."));P=this.polymerDom(F).children[n];var O;if(F=(O=P==null?void 0:P.polymerController)!=null?O:P)S="data"+S.slice(a),typeof F.notifyPath!=="function"?_.vX(new _.Gn("notifyPath missing",
this.is+": "+b+", "+h)):y.value?F.notifyPath(S,y.value):F.notifyPath(S)},
stampDomArraySplices_:function(b,h,y){if(y&&y.indexSplices){var S=this.getStampContainer_(h);if(S){for(var F=this.polymerDom(S),a=QW8(this.stampDom[b].reuseComponents),P=y.indexSplices.length,K=0;K<P;K++){for(var n=y.indexSplices[K],X=F.children[n.index],u=n.removed.length;u>0;u--)X&&X.parentElement&&(this.polymerDom(X.parentElement).removeChild(X),a&&v3Y(X),X=F.children[n.index]);u=this.stampDom[b].mapping;for(var O=n.index+n.addedCount,N=document.createDocumentFragment(),t=a,R=n.index;R<O;R++){var I=
n.object[R],U=ls4(u,I);if(U){var p=u[U];I=I[U];U=this.getComponentName_(p,I);var e=X?L9.has(X):!1;t&&X&&X.is==U&&e?(U=X,this.telemetry_.reuse++,X=X.nextElementSibling):t&&X&&e?(U=this.createComponent_(p,I,a),e=this.polymerDom(X).nextElementSibling,F.insertBefore(U,e),hn5(this.is,F,X,a),X=e):(t=!1,U=this.createComponent_(p,I,a),N.appendChild(U));this.deferRenderStamperBinding_(U,p,I)}else p=new _.Gn("Unimplemented type",b,h,S.tagName,Object.keys(I)[0]),_.QT(p)}F.insertBefore(N,X)}this.flushRenderStamperComponentBindings_();
this.stampDom[b].events&&_.Sx(this.hostElement,"yt-rendererstamper-finished",{container:S})}else b=new _.Gn("Container object not found",h,this.hostElement?this.hostElement.is:""),_.QT(b)}},
stampDomArray_:function(b,h,y,S,F,a){var P=this.getStampContainer_(h);if(P)if(h=this.polymerDom(P),S=QW8(S),b){var K=0,n=0,X;if(a=a===void 0?_.m$("STAMPER_STABLE_LIST",!1):a||!1)for(X=h.firstElementChild;X&&!L9.has(X)&&b.length>n;){a=b[n];var u=ls4(y,a);if(u){if(this.getComponentName_(y[u],a[u])!=X.is){var O=this.createComponent_(y[u],a[u],S),N=this.polymerDom(X).nextElementSibling;N?h.insertBefore(O,N):h.appendChild(O);hn5(this.is,h,X,S);X=O}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(X,
y[u],a[u]);K++;n++;X=this.polymerDom(X).nextElementSibling}else n++}y54(this.is,h,K,S);K=X;if(b.length>n){a=document.createDocumentFragment();for(u=b.length;n<u;n++)if(O=b[n],N=ls4(y,O))X=this.createComponent_(y[N],O[N],S),this.deferRenderStamperBinding_(X,y[N],O[N]),a.appendChild(X);K&&this.polymerDom(K).parentNode&&X&&!L9.has(X)?h.insertBefore(a,K):h.appendChild(a)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();F&&_.Sx(this.hostElement,"yt-rendererstamper-finished",
{container:P})}else y54(this.is,h,0,S);else b=new _.Gn("Container object not found",h,this.hostElement?this.hostElement.is:""),_.QT(b)},
polymerDom:function(b){return this.minimizePipBreakages?b:_.rO(b)},
getStampContainer_:function(b){return this.$&&this.$[b]||_.$x(this.hostElement).querySelector("#"+b)},
getComponentName_:function(b,h){return typeof b==="string"?b:b.matcher?b.matcher.call(this,h):b.component},
createComponent_:function(b,h,y){b=this.getComponentName_(b,h);try{var S=yuY.has(b);if(y&&!S){var F=_.pd(b);try{_.nZ(F)}catch(a){y="Failed to clear styles for "+b+".",a.message&&(y+=" Original error: "+a.message),_.vX(new _.Gn(y))}}else F=document.createElement(b)}catch(a){return F="YtRendererStamperBehavior failed to create "+b+".",a.message&&(F+=" Original description: "+a.message),a.message="YtRendererStamperBehavior failed to create element",_.bh(a,F),C7w.hasOwnProperty(b)?_.vX(a):_.QT(a),document.createElement("SPAN")}this.telemetry_.create++;
return F},
deferRenderStamperBinding_:function(b,h,y){this.deferredBindingTasks_.push({component:b,typeOrConfig:h,data:y})},
flushRenderStamperComponentBindings_:function(){for(var b=0,h=this.deferredBindingTasks_.length;b<h;b++){var y=this.deferredBindingTasks_[b];if(!y)break;var S=void 0,F=void 0,a=void 0,P=void 0,K=y.component,n=y.typeOrConfig;y=y.data;var X=(P=K.polymerController)!=null?P:K;P=K.loggingStatus;try{P&&(P.isRendererStamper=!0);if(typeof n!=="string"){for(a in n.attributes)n.attributes[a]===!0?K.setAttribute(a,""):n.attributes[a]===!1?K.removeAttribute(a):K.setAttribute(a,n.attributes[a]);for(F in n.params)X[F]=
n.params[F],K!==X&&Bl(K.localName,F,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(S in n.properties){var u=n.properties[S];if(u){var O=xck(u);X[S]=this.get(O);K!==X&&Bl(K.localName,S,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(S==="on-tap"||S==="on-click"){var N=this.get(O);K.addEventListener("click",N);mcI.set(K,{property:S,listener:{type:"element",eventName:"click",handler:N}})}}else{var t=new _.Gn("Undefined property binding",S);_.QT(t)}}}if(n.classListBinding){var R=xck(n.classListBinding),
I=R?this[R]:null;if(I)for(S=0;S<I.length;S++)_.Zm(K,I[S],!0)}X.data=y}finally{P&&(P.isRendererStamper=!1)}if(S=L9.get(K))K.hidden=!1,L9.delete(K),_.xP.cancelJob(S)}this.deferredBindingTasks_.length=0}}];_.yd(_.T(function(b){function h(){y().seconds&&a(K0I({seconds:Number(y().seconds)-Date.now()/1E3}))}
var y=b.targetTimestamp;b=b.className;var S=_.L(_.pa("",void 0,"U1Q8Ae")),F=S.next().value,a=S.next().value;_.fl(function(){h();var P=setInterval(function(){h()},1E3);
_.m2(function(){clearInterval(P)})});
return _.M("yt-countdown",{class:_.P2("ytCountDownHost",b)},_.M("div",null,F))},"x"),"yt-countdown",{props:{targetTimestamp:_.D4,
className:_.v3}});_.sG=new _.ca("KEY_MANAGER_TOKEN");var P$q={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"};_.YN=_.T(function(b){var h=_.ZR("a",b.ref),y=b.aTagConfig?b.aTagConfig:_.s5(function(){var S,F,a,P,K;var n=(K=_.YS((a=b.command)==null?void 0:a.call(b)))!=null?K:(P=b.command)==null?void 0:P.call(b);return _.GK({innertubeCommand:n,skipOnClick:(S=b.skipOnClick)==null?void 0:S.call(b),defaultTarget:(F=b.target)==null?void 0:F.call(b)})||{}},void 0,"TAvz0");
_.Qi(function(){_.r("mweb_get_endpoint_from_atag_command")||(h.value._data=y()._data,h.value.params=y().params)},"dcjvAe");
return _.M("a",{el:h,href:function(){return y().href$},
rel:function(){return y().rel$},
class:function(){var S,F;return(F=y().className)!=null?F:(S=b.className)==null?void 0:S.call(b)},
style:function(){var S;if((S=b.style)==null?0:S.call(b))return b.style();var F;return((F=b.disabled)==null?0:F.call(b))?"pointer-events:none":""},
"aria-haspopup":function(){return!!y()["aria-haspopup$"]},
"force-new-state":oF(function(){return y()["force-new-state$"]}),
title:oF(function(){var S,F;return(F=y().title$)!=null?F:(S=b.title)==null?void 0:S.call(b)}),
role:oF(function(){var S;return((S=b.role)==null?void 0:S.call(b))||y().role$}),
target:oF(function(){return y().target$}),
dir:oF(function(){var S;return((S=b.dir)==null?void 0:S.call(b))||y().dir}),
tabindex:function(){var S;return y().tabindex$?Number(y().tabindex$):(S=b.tabIndex)==null?void 0:S.call(b)},
"aria-hidden":function(){var S,F;return(F=y()["aria-hidden$"])!=null?F:(S=b.ariaHidden)==null?void 0:S.call(b)},
"aria-label":function(){var S,F;return(F=y()["aria-label$"])!=null?F:(S=b.ariaLabel)==null?void 0:S.call(b)},
"aria-current":b.ariaCurrent,"aria-disabled":b.disabled,"aria-labelledby":b.ariaLabelledby,"aria-describedby":b.ariaDescribedby,"aria-selected":b.ariaSelected,"tab-identifier":b.tabIdentifier,"on:pointerdown":_.Zv(function(S){var F,a;return void((a=(F=y()).onpointerdown)==null?void 0:a.call(F,S))}),
"on:click":_.Zv(function(S){var F,a;(a=(F=y()).onclick)==null||a.call(F,S);var P;(P=b.onClick)==null||P.call(b,S)}),
"on:focusin":_.Zv(function(S){var F;(F=b.onFocusin)==null||F.call(b,S)}),
"on:focusout":_.Zv(function(S){var F;(F=b.onFocusout)==null||F.call(b,S)})},b.children)},"z");var uUy={duration:1E3,easing:"ease",fill:"forwards"};HLj.componentType=Gr;var tcY={duration:1E3,easing:"ease",fill:"forwards"},YKW=_.T(function(b){var h=_.ZR("animated-rolling-character"),y=void 0,S=function(){var K,n;return qQ((K=b.character)==null?void 0:K.call(b))||qQ((n=b.previousCharacter)==null?void 0:n.call(b))},F=_.L(_.pa(0,void 0,"CYT8Ob")),a=F.next().value,P=F.next().value;
_.fl(function(){if(window.ResizeObserver&&_.r("web_fix_rolling_numbers_zoom_safari")){var K=new _.MG(function(){var X,u,O=Math.round(((u=(X=h.value.querySelector("div"))==null?void 0:X.getBoundingClientRect().height)!=null?u:0)*100)/100;O&&P(O)},500),n=new ResizeObserver(function(){K.fire()});
n.observe(h.value);_.m2(function(){n.disconnect();K.dispose()})}});
_.Qi(function(){var K=_.r("web_fix_rolling_numbers_zoom_safari")?a:b.marginMultiplier;if(K()){var n;(n=y)==null||n.cancel();if(S()){var X;n=((X=b.previousCharacter)==null?0:X.call(b))?Number(b.previousCharacter())+10:b.rollUp()?0:30;var u;if((u=b.shouldAnimate)==null||!u.call(b)){var O,N;n-=NzI((O=b.character)==null?void 0:O.call(b),(N=b.previousCharacter)==null?void 0:N.call(b),b.rollUp(),n)}}else{n=b.rollUp()?0:2;var t;(t=b.shouldAnimate)!=null&&t.call(b)||(X=n,u=b.rollUp()?-1:1,n=X-u)}h.value.style.marginTop=
"-"+n*K()+"px";var R;if((R=b.shouldAnimate)==null?0:R.call(b)){var I,U;y=r5f(h.value,(I=b.character)==null?void 0:I.call(b),(U=b.previousCharacter)==null?void 0:U.call(b),b.rollUp(),n,S(),K())}else{var p;h.value.style.display=((p=b.character)==null?0:p.call(b))?"":"none"}}},"CA6Pmf");
return _.M("animated-rolling-character",{el:h,class:"animatedRollingCharacterHost"},_.M(_.H,{cond:S,then:function(){return _.M(g3e,null)},
else:function(){return _.M(sWa,{character:b.character})}}))},"C");
YKW.idomCompat=!0;var c5F=_.r("web_enable_sink_animated_rolling_character_and_number")?YKW:HLj,Tl8=_.r("web_enable_sink_animated_rolling_character_and_number")?YKW:OL4(HLj),g3e=_.T(function(){for(var b=[],h=1;h<30;h++)b.push(_.M("div",null,h%10));return _.M(_.OW,null,_.M("div",null,"\u00a0"),b,_.M("div",null,"\u00a0"))},"D"),sWa=_.T(function(b){var h=b.character;
return _.M(_.OW,null,_.M("div",null,"\u00a0"),_.M(_.H,{cond:function(){return!(h==null?0:h())||_.$U(h==null?void 0:h())},
then:function(){return _.M("div",null,"\u00a0")},
else:function(){return _.M("div",null,h)}}),_.M("div",null,"\u00a0"))},"E");RnY.componentType=Gr;var GWa=_.T(function(b){var h=void 0,y=void 0,S=function(){var a;return((a=b.fontSizeMultiplier)==null?0:a.call(b))?b.heightPx()*b.fontSizeMultiplier():b.heightPx()},F=_.s5(function(){if(!b.numberText())return[];
var a,P,K=((a=b.forceRollUp)==null?void 0:a.call(b))||!y||!((P=b.numberValue)==null?0:P.call(b))||y<b.numberValue(),n,X=b.numberText();a=S();P=!((n=b.shouldAnimate)==null||!n.call(b));n=[];var u=0,O=0,N=(h?h.replace(/\D/g,"").length:0)-(X?X.replace(/\D/g,"").length:0),t=h?h.split(/(\d)/).filter(Boolean):[];for(X=X.split(/(\d)/).filter(Boolean);N<0;){var R=X[O];n.push({character:R,rollUp:K,marginMultiplier:a,shouldAnimate:P});O++;qQ(R)&&N++}for(;u<N;)R=t[u],n.push({previousCharacter:R,rollUp:K,marginMultiplier:a,
shouldAnimate:P}),u++,qQ(R)||N++;for(;O<X.length;)N=X[O],R=t[u],qQ(N)===qQ(R)?(O++,u++):qQ(N)?(u++,N=void 0):qQ(R)&&(O++,R=void 0),n.push({character:N,previousCharacter:R,rollUp:K,marginMultiplier:a,shouldAnimate:P});h=b.numberText();var I;y=(I=b.numberValue)==null?void 0:I.call(b);return n},void 0,"kWiBv");
return _.M("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:function(){return b.numberText()?["height: "+S()+"px;","line-height: "+b.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.M(_.Gw,{each:F,keyBy:"INDEX"},function(a){return _.M(Tl8,{character:function(){return a().character},
previousCharacter:function(){return a().previousCharacter},
marginMultiplier:function(){return a().marginMultiplier},
rollUp:function(){return a().rollUp},
shouldAnimate:function(){return a().shouldAnimate}})}))},"F");
GWa.idomCompat=!0;_.kW8=_.r("web_enable_sink_animated_rolling_character_and_number")?GWa:OL4(RnY);var VtP=function(b,h){this.fillAnimation=new Animation(BzY(b),document.timeline);this.strokeAnimation=new Animation(W45(h),document.timeline)};
VtP.prototype.play=function(){var b,h;(h=(b=this.fillAnimation).play)==null||h.call(b);var y,S;(S=(y=this.strokeAnimation).play)==null||S.call(y)};
VtP.prototype.cancel=function(){var b,h;(h=(b=this.fillAnimation).cancel)==null||h.call(b);var y,S;(S=(y=this.strokeAnimation).cancel)==null||S.call(y)};_.Tv=_.T(function(b){var h=b.model;var y=b.pointerDownEvent;var S=b.pointerUpEvent;var F=b.pointerLeaveEvent;var a=b.hovered;b=_.ZR("yt-touch-feedback-shape");var P=_.ZR("div"),K=_.ZR("div"),n=_.L(_.ya(function(){return(S==null?0:S())||(F==null?0:F())?!1:!(y==null||!y())||!1})),X=n.next().value,u=n.next().value,O=void 0,N=function(){!O&&K.value&&P.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(O=new VtP(K.value,P.value));
var e;(e=O)==null||e.play()},t=function(){var e;
(e=O)==null||e.cancel()},R=function(){var e;
(e=O)==null||e.cancel()};
_.Qi(function(){(S==null?0:S())&&N()},"bg756c");
_.Qi(function(){(y==null?0:y())&&t()},"QAes8c");
_.Qi(function(){(F==null?0:F())&&R()},"YaFbrc");
n=_.Zv(function(){N();u(!1)});
var I=_.Zv(function(){t();u(!0)}),U=_.Zv(function(){R();
u(!1)});
_.m2(function(){if(O){var e;(e=O)==null||e.cancel();O=void 0}});
var p={};X=_.P2("yt-spec-touch-feedback-shape",function(){return A5f(h().color)},function(){return UFn(h().thumbnailSize,!!h().isExtended)},(p["yt-spec-touch-feedback-shape--focused"]=function(){return!!h().focused&&!h().disabled},p["yt-spec-touch-feedback-shape--circular"]=function(){return!!h().circular},p["yt-spec-touch-feedback-shape--down"]=X,p["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!h().triggerEvents},p["yt-spec-touch-feedback-shape--hovered"]=function(){return a==
null?void 0:a()},p));
return _.M("yt-touch-feedback-shape",{el:b,class:X,style:_.n9({"margin-top":function(){return h().customTopExtend?"-"+h().customTopExtend+"px":void 0}}),
"on:mousedown":I,"on:mouseup":n,"on:pointerleave":U,"on:touchstart":I,"on:touchend":n,"aria-hidden":!0},_.M(_.H,{cond:function(){return!!h().hoverEffect},
then:function(){return _.M("div",{class:"yt-spec-touch-feedback-shape__hover-effect",style:_.n9({"border-radius":function(){return h().borderRadius},
background:function(){var e;if(e=h().hoverEffect){for(var E=[],Y=_.L((e==null?void 0:e.lightingTechniques)||[]),w=Y.next();!w.done;w=Y.next())switch(w.value){case 2:var x=w=void 0,q=void 0,dI=void 0;E.push("linear-gradient(180deg, "+((w=e)==null?void 0:(x=w.palette)==null?void 0:x.keyLight)+", "+((q=e)==null?void 0:(dI=q.palette)==null?void 0:dI.background)+")")}var L4,Rq;E.push((L4=h().hoverEffect)==null?void 0:(Rq=L4.palette)==null?void 0:Rq.background);e=E.join(", ")}else e=void 0;return e}})})}}),
_.M("div",{class:"yt-spec-touch-feedback-shape__stroke",
style:_.n9({"border-radius":function(){return h().borderRadius},
"border-color":function(){var e,E;return(e=h().touchEffect)==null?void 0:(E=e.palette)==null?void 0:E.background}}),
el:P}),_.M("div",{class:"yt-spec-touch-feedback-shape__fill",style:_.n9({"border-radius":function(){return h().borderRadius},
"background-color":function(){var e,E;return(e=h().touchEffect)==null?void 0:(E=e.palette)==null?void 0:E.background}}),
el:K}))},"J");
_.Tv.idomCompat=!0;var E3M={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 Gv=_.HF();Gv=Gv.toLowerCase();if(_.PF(Gv,"android")){var isb=Gv.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);isb&&parseFloat(isb[1])<100||Gv.match("("+Object.keys(E3M).join("|")+")")};var fs7=_.T(function(b){return _.M(_.H,{cond:b.aTagConfig,then:function(h){return _.M(_.YN,{aTagConfig:h,disabled:b.disabled,className:b.className,style:b.style,title:b.title,ariaLabel:b.ariaLabel,ariaCurrent:function(){var y,S;return((y=b.toggleable)==null?void 0:y.call(b))&&((S=b.toggled)==null?void 0:S.call(b))},
ref:b.ref},b.children)},
else:function(){return _.M("button",{el:_.Qa(b.ref),"on:click":_.Zv(function(h){var y;return(y=b.onClick)==null?void 0:y.call(b,h)}),
class:b.className,title:b.title,style:b.style,disabled:b.disabled,"aria-pressed":function(){var h,y;return((h=b.toggleable)==null?0:h.call(b))?!((y=b.toggled)==null||!y.call(b)):void 0},
"aria-label":b.ariaLabel,"aria-disabled":b.visiblyDisabled,"aria-hidden":b.ariaHidden,tabindex:b.tabIndex},b.children)}})},"K"),lsM=_.T(function(b){var h=b.data;
var y=b.hasIconLeading;var S=b.hasIconLeadingTrailing;var F=b.hasIconTrailing;var a=b.iconButton;var P=b.iconClassName;var K=b.secondaryIconClassName;var n=b.icon;var X=b.secondaryIcon;var u=b.textContentClassName;return _.M(kN,{className:"",style:"display: inherit; justify-content: center"},_.M(_.H,{debugInstance:"V4z1Uc",cond:function(){return n&&(y()||S()||(a==null?void 0:a()))},
then:function(){return _.M(kN,null,_.M("div",{class:P,"aria-hidden":"true"},n==null?void 0:n()))}}),_.M(_.H,{debugInstance:"ok3btb",
cond:function(){return(h().buttonText||h().animatedTextProps||h().formattedButtonText)&&!(a==null?0:a())},
then:function(){return _.M(kN,null,_.M(wZN,{className:u,iconPosition:function(){return h().iconPosition},
text:function(){return h().buttonText},
oneOffCustomTextWrap:function(){return h().oneOffCustomTextWrap},
formattedButtonText:function(){return h().formattedButtonText},
animatedTextProps:function(){return h().animatedTextProps}}))}}),_.M(_.H,{debugInstance:"DO5Rz",
cond:F,then:function(){return _.M(kN,null,_.M("div",{class:P},n==null?void 0:n()))}}),_.M(_.H,{debugInstance:"bnojSc",
cond:S,then:function(){return _.M(kN,null,_.M("div",{class:K},X==null?void 0:X()))}}),_.M(_.H,{debugInstance:"HN3kad",
cond:function(){return!h().disabled&&!0},
then:function(){return _.M(_.Tv,{model:function(){var O=h();return{color:O.style==="overlay-dark"?4:O.style==="overlay"?O.type==="filled"?4:3:O.type==="filled"||O.style==="call-to-action-inverse"||O.style==="mono-inverse"?2:1}}})}}))},"L"),wZN=_.T(function(b){var h=function(){var y,S;
return((y=b.iconPosition)==null?void 0:y.call(b))==="icon-with-label"||((S=b.oneOffCustomTextWrap)==null?void 0:S.call(b))};
return _.M("div",{class:b.className,"aria-hidden":function(){var y,S,F;return((y=b.ariaHidden)==null?void 0:y.call(b))&&(!((S=b.animatedTextProps)==null||!S.call(b))||!((F=b.formattedButtonText)==null||!F.call(b)))}},_.M(_.kZ,null,_.M(_.YZ,{when:function(){var y;
return(y=b.animatedTextProps)==null?void 0:y.call(b)}},function(){return _.M(_.kW8,{numberText:function(){return b.animatedTextProps().numberText},
numberValue:function(){return b.animatedTextProps().numberValue},
heightPx:function(){return b.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return b.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return b.animatedTextProps().shouldAnimate},
forceRollUp:function(){return b.animatedTextProps().forceRollUp}})}),_.M(_.YZ,{when:function(){var y;
return(y=b.formattedButtonText)==null?void 0:y.call(b)}},function(){return _.M(_.zv,{text:function(){return Object.assign({},b.formattedButtonText(),{lineBreakMode:h()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":b.formattedButtonText().lineBreakMode,
alignment:h()?"TEXT_ALIGNMENT_CENTER":b.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!h()}})}),_.M(_.YZ,{when:function(){var y,S;
return((y=b.iconPosition)==null?void 0:y.call(b))==="icon-with-label"&&((S=b.text)==null?void 0:S.call(b))}},function(){return _.M(_.zv,{text:function(){return{content:b.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.M(_.Tw,null,function(){return b.text})))},"M"),qK7=_.T(function(b){return _.M(_.H,{debugInstance:"kM7Sgc",
cond:b.hasLabel,then:function(){var h;return _.M("label",{class:b.className},b.children,(h=b.textContent)==null?void 0:h.call(b))},
else:function(){return b.children}})},"N"),kN=_.T(function(b){return b.children},"O");var xca=_.T(function(b){function h(){a(void 0);K(void 0);X(void 0)}
var y=_.Qa(),S=_.L(_.pa(void 0,void 0,"Ug77pc")),F=S.next().value,a=S.next().value;S=_.L(_.pa(void 0,void 0,"XGf7Zb"));var P=S.next().value,K=S.next().value,n=_.L(_.pa(void 0,void 0,"w55oqd"));S=n.next().value;var X=n.next().value;n=_.L(_.pa(0,void 0,"rBgpzc"));var u=n.next().value,O=n.next().value;n=_.Zv(function(){switch(u()){case 1:O(2);break;case 3:var t,R;(R=(t=y.value).hidePopover)==null||R.call(t);O(0);h()}});
_.Qi(function(){if(b.show()){var t;a((t=b.children)==null?void 0:t.call(b));var R;K((R=b.location)==null?void 0:R.call(b));var I;X((I=b.classNames)==null?void 0:I.call(b));switch(u()){case 0:var U,p;(p=(U=y.value).showPopover)==null||p.call(U);O(1);break;case 3:O(1);var e,E;(E=(e=y.value).hidePopover)==null||E.call(e);var Y,w;(w=(Y=y.value).showPopover)==null||w.call(Y)}}else switch(u()){case 2:O(3);break;case 1:var x,q;(q=(x=y.value).hidePopover)==null||q.call(x);h();O(0)}},"Z8V4Qb");
_.wg(function(){});
var N={};return _.M("yt-popover",{popover:"manual",el:y,style:_.n9({left:function(){var t;return(t=P())==null?void 0:t.left},
top:function(){var t;return(t=P())==null?void 0:t.top},
bottom:function(){var t;return(t=P())==null?void 0:t.bottom},
right:function(){var t;return(t=P())==null?void 0:t.right}}),
class:_.P2("ytPopoverComponentHost",S,(N.ytPopoverComponentHostClosing=function(){return u()===3},N.ytPopoverComponentHostSeeThrough=function(){var t;
return((t=b.seeThrough)==null?void 0:t.call(b))===!0},N)),
"on:animationend":n},F)},"Q");var QWw={left:"0px",right:"auto",top:"0px",bottom:"auto"},mcG=function(){var b=this;this.registerTooltipElement=function(y){var S;b.tooltipElement=(S=y.querySelector("yt-popover"))!=null?S:void 0};
var h=_.L(_.pa(void 0,void 0,"EIh5sc"));this.state=h.next().value;this.setState=h.next().value;h=_.L(_.pa(void 0,void 0,"PC1M0b"));this.schedulerJobID=h.next().value;this.setSchedulerJobID=h.next().value},GCU=function(b,h){var y=up,S=_.xP.addJob(function(){var F=v38(y,b,h);
y.currentConfig=h;y.setState({text:h.text,location:_.r("web_tooltip_location_fix")?void 0:F,anchor:b,offset:h.offset,style:h.style})},4,h.delay);
y.setSchedulerJobID(S)},kCf=function(){var b=up,h=b.schedulerJobID();
h&&(_.xP.cancelJob(h),b.setSchedulerJobID(void 0));b.setState(void 0);b.currentConfig=void 0};
mcG.prototype.notify=function(b,h){var y;((y=this.state())==null?void 0:y.anchor)===b&&(y=v38(this,b,h),this.currentConfig=h,this.setState({text:h.text,location:_.r("web_tooltip_location_fix")?void 0:y,anchor:b,offset:h.offset,style:h.style}))};
var v38=function(b,h,y){var S=h.getBoundingClientRect();h=window.innerWidth;var F=window.innerHeight,a=y.location,P=y.offset;y=y.text;if(b=b.tooltipElement){var K=getComputedStyle(b);b=K.font;var n=H2(K.lineHeight),X=H2(K.paddingLeft),u=H2(K.paddingRight),O=H2(K.paddingTop);K=H2(K.paddingBottom);var N=document.createElement("canvas").getContext("2d");N.font=b;y={width:N.measureText(y).width+X+u,height:n+O+K}}else y=void 0;b=y;if(!b)return QWw;y=b.width;b=b.height;X=P+b;O=P+y;n=S.top>=X;X=F-S.bottom>=
X;u=S.left>=O;O=h-S.right>=O;K=a;switch(a){case "top":!n&&X&&(K="bottom");break;case "bottom":!X&&n&&(K="top");break;case "left":!u&&O&&(K="right");break;case "right":!O&&u&&(K="left")}switch(K){case "top":a=S.left+S.width/2-y/2;S=S.top-b-P;break;case "bottom":a=S.left+S.width/2-y/2;S=S.bottom+P;break;case "left":a=S.left-y-P;S=S.top+S.height/2-b/2;break;case "right":a=S.right+P;S=S.top+S.height/2-b/2;break;default:a=S.left+S.width/2-y/2,S=S.bottom+P}P=Object.assign({},QWw);a+y>h?(P.right="0px",P.left=
"auto"):(P.left=Math.round(Math.max(0,a)+window.scrollX)+"px",P.right="auto");S+b>F?(P.bottom="0px",P.top="auto"):(P.top=Math.round(Math.max(0,S)+window.scrollY)+"px",P.bottom="auto");return P};var up;up=new mcG;_.bL5=_.T(function(){var b=_.s5(function(){var F;return(F=up.state())==null?void 0:F.anchor},void 0,"tiGUn"),h=_.s5(function(){var F;
return(F=up.state())==null?void 0:F.text},void 0,"TA2GQe"),y=_.s5(function(){var F;
return(F=up.state())==null?void 0:F.style},void 0,"ucvFsf"),S=_.r("web_tooltip_location_fix")?_.s5(function(){var F=b();
var a=up.currentConfig;if(F&&a)return v38(up,F,a)},void 0,"EpDz6"):_.s5(function(){var F;
return(F=up.state())==null?void 0:F.location},void 0,"aRJtfd");
return _.M("yt-tooltip",{class:"ytTooltipContainerHost",el:_.Qa(up.registerTooltipElement),"aria-hidden":"true"},_.M(xca,{classNames:function(){switch(y()){case "TOOLTIP_VIEW_MODEL_STYLE_PLAYER":return"ytTooltipContainerPlayerTooltipContent";default:return"ytTooltipContainerDefaultTooltipContent"}},
location:S,show:function(){return!!h()&&!!S()},
seeThrough:!0},h))},"R");var qFy=O5("stamper-context");_.V5=_.T(function(b){var h=b.data;var y=b.icon;var S=b.iconName;var F=b.animateIcon;var a=b.secondaryIcon;var P=b.secondaryIconName;var K=b.focusedOverride;var n=b.clientOnlyWizTooltipsEnabled;EAq();var X=pzn(h),u=X.size,O=X.style;b=X.disabled;var N=X.onTap,t=X.alignByText,R=X.aTagConfig,I=X.customColors,U=X.segmentedPosition,p=X.toggled,e=X.toggleable,E=X.accessibilityLabel,Y=X.onToggle,w=X.iconPosition,x=X.oneOffCustomTextWrap,q=X.disableTextEllipsis,dI=X.disableBackdropFilter,L4=X.tooltipText,
Rq=X.ariaHidden,Xn=X.tabIndex,Ny=X.buttonText,gI=X.formattedButtonText,YU=X.animatedTextProps,VN=X.onClickRateLimitMs,Hb=gAy(h,y,a,S,P,K,F),vF=Hb.type;y=Hb.shouldFocus;S=Hb.hasIconLeading;F=Hb.hasIconTrailing;var xU=Hb.hasIconLeadingTrailing,Xa=Hb.hasIconOnly;a=Hb.hasIconOnly40;var rG=Hb.hasIconWithLabel;P=Hb.iconButton;var Wb=Hb.visiblyDisabled;K=Hb.overrideSmallSizeIcon;var Xx=Hb.iconToRender;Hb=Hb.secondaryIconToRender;var Bb=_.L(Vcr(L4,X.tooltipShape)).next().value,oq=function(cb){N==null||N(cb);
e()&&(Y==null||Y(cb))},kU=_.s5(function(){return VN==null?void 0:VN()},void 0,"siKywb"),O7=_.s5(function(){return kU()?JkN(oq,kU()):oq},void 0,"wDTcN");
X={};var io={};return _.M(qK7,{className:_.P2("yt-spec-button-shape-with-label",(X["yt-spec-button-shape-with-label--is-overlay"]=function(){return O()==="overlay"||O()==="overlay-dark"},X)),
hasLabel:rG,textContent:function(){return _.M(wZN,{text:Ny,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:x,iconPosition:w,formattedButtonText:gI,animatedTextProps:YU})}},_.M(fs7,{aTagConfig:R,
className:_.P2("yt-spec-button-shape-next",function(){return sZf(vF())},function(){return Wb()?void 0:YJk(O())},function(){return TzI(u())},(io["yt-spec-button-shape-next--disabled"]=Wb,io["yt-spec-button-shape-next--focused"]=y,io["yt-spec-button-shape-next--icon-trailing"]=F,io["yt-spec-button-shape-next--icon-leading"]=S,io["yt-spec-button-shape-next--icon-leading-trailing"]=xU,io["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return xU()&&!(Ny()||gI())},io["yt-spec-button-shape-next--icon-button"]=
function(){return Xa()||rG()},io["yt-spec-button-shape-next--icon-only-default"]=a,io["yt-spec-button-shape-next--align-by-text"]=t,io["yt-spec-button-shape-next--segmented-start"]=function(){return U()==="start"},io["yt-spec-button-shape-next--segmented-end"]=function(){return U()==="end"},io["yt-spec-button-shape-next--override-small-size-icon"]=K,io["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=x,io["yt-spec-button-shape-next--disable-text-ellipsis"]=q,io["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!dI()&&!_.r("web_disable_backdrop_filter")},io)),
style:function(){var cb=I();if(cb){var QW=cb.color;var vM=cb.backgroundColor;cb=cb.borderColor;var wG="";QW&&(wG+="color: "+QW+";");vM&&(wG+="background-color: "+vM+";");cb&&(wG+="border-color: "+cb+";");QW={style:wG}}else QW={};return QW.style},
onClick:function(cb){O7()(cb)},
disabled:b,ariaLabel:E,toggleable:e,toggled:p,title:function(){return(n==null?0:n())||!L4()?"":L4()},
visiblyDisabled:Wb,ariaHidden:Rq,tabIndex:Xn,ref:function(cb){(n==null?0:n())&&Bb(cb)}},_.M(lsM,{data:h,
hasIconLeading:S,hasIconLeadingTrailing:xU,hasIconTrailing:F,iconButton:P,icon:Xx,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:Hb})))},"T");
_.V5.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.EG=_.T(function(b){var h=b.data;var y=b.className;var S=b.style;var F=b.useOutlinedIcon;var a=b.buttonOverrides;var P=b.animatedTextProps;var K=b.onClick;var n=b.target;var X=_.ZR("button-view-model",function(Y){Y.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var w=h().targetId;w&&_.vy(_.bg(),w,Y);return function(){m3(_.bg(),Y)}}),u=function(){return h().iconName},O=_.NG(function(Y){a:{var w=h().entityKey,x=h().buttonEntitySelectorType;
if(x&&w)switch(x){case "BUTTON_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":Y=(Y=_.K9(Y,w))?{isHidden:Y.adsState==="ADS_STATE_NONE"||Y.adsState==="ADS_STATE_UNKNOWN"}:{isHidden:!0};break a;default:Y={isHidden:!1};break a}Y=void 0}return Y}),N,t=(N=_.H9().resolve(_.XS(_.cC)))==null?void 0:N(),R=function(){var Y=h();
var w=a==null?void 0:a(),x=P==null?void 0:P(),q=n==null?void 0:n();if(Y){var dI=mFI(Y.type);var L4=!!Y.title||!!Y.titleFormatted;var Rq=!(!Y.iconName&&!Y.iconImage);L4=Rq&&!L4?"icon-only":Rq?Y.iconTrailing||Y.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;L4==="icon-only-40"&&(dI="text");var Xn;Rq=(Xn=w==null?void 0:w.state)!=null?Xn:vAN(Y.state);var Ny,gI=(Ny=w==null?void 0:w.disabled)!=null?Ny:Y.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||Y.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";
if(_.r("web_button_vm_refactor_disabled")){var YU;gI=(YU=w==null?void 0:w.disabled)!=null?YU:Rq==="disabled"}x=x&&x.numberText&&!isNaN(Number(x.numberValue))?x:void 0;Ny=Object;YU=Ny.assign;Xn=Y.title;var VN=Y.titleFormatted,Hb=Y.accessibilityText,vF=QZn(Y.style),xU=b_q(Y.buttonSize);q=xFf(Y,X,gI,K,q);gI=gI&&!Y.onDisabledTap;var Xa=lM5(Y,X),rG=Y.customFontColor,Wb=Y.customBackgroundColor;var Xx=Y.customBorderColor;var Bb=Y.customDarkThemeFontColor,oq=Y.customDarkThemeBackgroundColor,kU=Y.customDarkThemeBorderColor;
rG=t&&Bb?Bb:rG;Wb=t&&oq?oq:Wb;Xx=t&&kU?kU:Xx;Xx={color:rG?_.CR(rG):void 0,backgroundColor:Wb?_.CR(Wb):void 0,borderColor:Xx?_.CR(Xx):void 0};if(kU=_.c(Y.tooltipData,zcw)){var O7;Wb={text:(O7=kU.tooltipText)!=null?O7:"",location:fMr(kU.placement),style:kU.style}}else Wb=void 0;Y=YU.call(Ny,{},{buttonText:Xn,formattedButtonText:VN,animatedTextProps:x,accessibilityLabel:Hb,style:vF,type:dI,state:Rq,size:xU,iconPosition:L4,onTap:q,disabled:gI,aTagConfig:Xa,customColors:Xx,tooltipText:Y.tooltip,tooltipShape:Wb},
w)}else Y={style:"mono",type:"text",state:"active",size:"M"};Y.focused=p();return Y},I=function(){return enY(R(),!!h().iconName)};
b=_.L(_.pa(!1,void 0,"yZ8hab"));N=b.next().value;var U=b.next().value,p=N;b=_.Zv(function(){var Y=_.H9().resolve(_.XS(_.sG));Y&&U(Y.isKeyBoardInUse());return!1});
N=_.Zv(function(){U(!1);return!1});
_.Qi(function(){var Y,w=_.c(h==null?void 0:(Y=h())==null?void 0:Y.onVisible,_.sQ);w&&_.TK(w,{disableClickTracking:!0})},"G9MlKd");
var e=function(){var Y;return(h==null?0:(Y=h())==null?0:Y.iconImage)?{sources:[h().iconImage]}:void 0},E=_.r("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
return _.M("button-view-model",{el:X,class:_.P2("ytSpecButtonViewModelHost",y),"on:focusin":b,"on:focusout":N},_.M(_.H,{cond:function(){var Y,w;return!((w=h().entityKey&&h().buttonEntitySelectorType&&((Y=O())==null?void 0:Y.isHidden))!=null&&w)},
then:function(){return _.M(_.H,{cond:e,then:function(Y){return _.M(_.V5,{data:R,icon:function(){return _.M(_.mI,{data:Y,alt:"",targetWidth:I,targetHeight:I,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:E})},
else:function(){return _.M(_.V5,{data:R,icon:function(){return _.M(_.Xv,{icon:u,active:function(){return(F==null?0:F())?!1:R().toggled},
animateIcon:function(){var Y;return!!(S==null?0:(Y=S())==null?0:Y.animateIcon)},
size:I})},
clientOnlyWizTooltipsEnabled:E})}})}}))},"V");
_.EG.idomCompat={callbacks:{onClick:!0}};_.yd(_.T(function(b){return _.M("yt-button-view-model",{id:b.id,class:_.P2(b.scopingClassName,b.classes),icon:function(){var h;return(h=b.icon)==null?void 0:h.call(b)},
"dialog-dismiss":function(){var h;return((h=b.dialogDismiss)==null?0:h.call(b))?"":void 0}},_.M(_.EG,{data:function(){var h;
return(h=b.data)==null?void 0:h.call(b)},
className:function(){var h;return(h=b.className)==null?void 0:h.call(b)},
style:function(){var h;return(h=b.style)==null?void 0:h.call(b)},
useOutlinedIcon:function(){var h;return(h=b.useOutlinedIcon)==null?void 0:h.call(b)},
buttonOverrides:function(){var h;return(h=b.buttonOverrides)==null?void 0:h.call(b)},
animatedTextProps:function(){var h;return(h=b.animatedTextProps)==null?void 0:h.call(b)},
onClick:function(h){var y;return(y=b.onClick)==null?void 0:y.call(b,h)}}))},"W"),"yt-button-view-model",{props:{data:_.D4,
className:_.D4,style:_.D4,useOutlinedIcon:_.D4,buttonOverrides:_.D4,animatedTextProps:_.D4,onClick:_.v3,scopingClassName:_.D4,id:_.D4,icon:_.D4,dialogDismiss:_.D4,classes:_.D4,target:_.v3}});_.yd(_.T(function(b){var h=b.data;var y=b.id;var S=b.className;var F=b.iconName;var a=b.animateIcon;var P=b.secondaryIconName;b=_.L(_.pa(!1,void 0,"TtJl8"));var K=b.next().value,n=b.next().value,X=function(){var O=_.H9().resolve(_.XS(_.sG));O&&n(O.isKeyBoardInUse())},u=function(){n(!1)};
b=_.ZR("yt-button-shape",function(O){if(_.H9().resolve(_.XS(_.sG)))return O.addEventListener("focusin",X),O.addEventListener("focusout",u),function(){O.removeEventListener("focusin",X);O.removeEventListener("focusout",u)}});
return _.M("yt-button-shape",{el:b,id:y,class:S},_.M(_.H,{cond:h,then:function(){return _.M(_.V5,{data:h,iconName:F,secondaryIconName:P,focusedOverride:K,animateIcon:a})}}))},"X"),"yt-button-shape",{props:{data:_.D4,
id:_.D4,className:_.D4,iconName:_.D4,animateIcon:_.D4,secondaryIconName:_.D4,clientOnlyWizTooltipsEnabled:_.D4,disableUpgrade:_.D4},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var ig=function(){var b=_.g.apply(this,arguments)||this;b.isGoalActive=!0;return b};
_.z(ig,_.g);ig.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
ig.prototype.progressBarChanged=function(){var b=_.$x(this.hostElement).querySelector("#progress-bar-progress"),h,y,S,F=(S=Number((h=this.creatorGoalState)==null?void 0:h.currentGoalCount)/Number((y=this.creatorGoalState)==null?void 0:y.totalGoalCount)*100)!=null?S:0,a;b.style.width=((a=Math.min(F,100))!=null?a:0)+"%"};
ig.prototype.goalStateChanged=function(){var b;this.isGoalActive=((b=this.creatorGoalState)==null?void 0:b.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var h;b={"--yt-progress-bar-color":qLj((h=this.creatorGoalState)==null?void 0:h.progressBarColor)};_.nZ(this.hostElement,b)};
ig.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.tm.Object.defineProperties(ig.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var b;return this.isGoalActive&&!((b=this.creatorGoalState)==null||!b.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var b;if((b=this.creatorGoalState)==null?0:b.endTimestampMs){var h;b=Number((h=this.creatorGoalState)==null?void 0:h.endTimestampMs)/1E3;return{seconds:String(b)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var b;if((b=this.creatorGoalState)==null?0:b.themedTargetImage){var h;b=_.c((h=this.creatorGoalState)==null?void 0:h.themedTargetImage,ooo);return this.isAppDarkTheme()?b==null?void 0:b.imageDark:b==null?void 0:b.imageLight}}}});
_.tm.Object.defineProperties(ig,{template:{configurable:!0,enumerable:!0,get:function(){return Bl8()}}});
ig.prototype.goalStateChanged=ig.prototype.goalStateChanged;ig.prototype.progressBarChanged=ig.prototype.progressBarChanged;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],ig.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Xc),_.f("design:type",Object)],ig.prototype,"ytLiveChatReduxBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],ig.prototype,"ytRendererBehavior",void 0);
_.V([_.C({selectorArgs:["data.creatorGoalEntityKey"],selector:function(b,h){return _.Mm(b.entities,"creatorGoalEntity",h)}}),
_.f("design:type",Object)],ig.prototype,"creatorGoalState",void 0);_.V([_.C(),_.f("design:type",Object)],ig.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],ig.prototype,"isGoalActive",void 0);_.V([_.W("creatorGoalState","isGoalActive"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],ig.prototype,"shouldShowCountdown",null);_.V([_.W("creatorGoalState"),_.f("design:type",Object),_.f("design:paramtypes",[])],ig.prototype,"endTimestamp",null);
_.V([_.W("creatorGoalState"),_.f("design:type",Object),_.f("design:paramtypes",[])],ig.prototype,"targetIconThemedImage",null);_.V([_.OB("creatorGoalState.currentGoalCount"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],ig.prototype,"progressBarChanged",null);_.V([_.OB("creatorGoalState.creatorGoalState"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],ig.prototype,"goalStateChanged",null);
_.V([_.sB({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],ig);_.k(ig,"yt-creator-goal-progress-flow-view-model",function(){return Bl8()},{mode:0});var hne;var y5M;var fd=function(){return _.g.apply(this,arguments)||this};
_.z(fd,_.g);fd.prototype.attached=function(){var b,h,y;if(this==null?0:(b=this.data)==null?0:(h=b.pdgPurchasedBumperLoggingDirectives)==null?0:(y=h.loggingDirectives)==null?0:y.trackingParams){var S,F,a;S8y(this==null?void 0:(S=this.data)==null?void 0:(F=S.pdgPurchasedBumperLoggingDirectives)==null?void 0:(a=F.loggingDirectives)==null?void 0:a.trackingParams)}};
fd.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],fd.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],fd.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],fd.prototype,"data",void 0);_.V([_.sB({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],fd);
_.k(fd,"yt-live-chat-item-bumper-view-model",function(){if(y5M===void 0){var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;hne===void 0&&(hne=document.createElement("template"));var S=hne;y.call(h,S.content.cloneNode(!0),b.content.firstChild);y5M=b}b=y5M;return b},{mode:0});var SJb;var F4a;_.xE=function(b,h){this.data=b;this.actions=h;this.data=b;this.actions=h};
_.kE=function(){};_.xN={};_.xN.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(b,h){Fhy(this.hostElement,b,h)},
getNavigationEndpointPopupAction:function(b){return aH5(b,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(b,h){dgj(this.hostElement,b,h,this.openPopupConfig)}};var Xkk=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.Q5={};
_.Q5.YtEndpointBehavior=[_.xN.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.QC("openPopupConfig");(this.useClickHandler=_.m$("useClickHandler",!1))?this.hostElement.addEventListener("click",Xf(this,this.onEndpointClick_)):(bz(this.hostElement,"tap",Xf(this,this.onEndpointTap_)),bz(this.hostElement,"touchend",Xf(this,this.onEndpointTouchEnd_)));bz(this.hostElement,"touchstart",Xf(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
Xf(this,this.onEndpointTapStart_))},
onEndpointClick_:function(b){Lh4(this.hostElement,b,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(b){var h=this.hostElement,y=this.openPopupConfig,S=this.disableCommandHandlerOverride;S=S===void 0?!1:S;var F=j5y(b);if(F){F.href&&TM(F.href);var a=b.detail;var P=a.sourceEvent;a=a.preventer;P=P.button!==void 0?P.button===0&&!t4(P):a?!t4(a):!0;F.data&&P&&$gq(h,F,b,y,S)}},
onEndpointTouchEnd_:function(b){t4(b)||j5y(b)&&b.preventDefault()},
onEndpointTapStart_:function(b){M$F(b)}}];_.mx={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(b){for(var h=_.$J.getInstance(),y=_.L(Object.keys(b)),S=y.next();!S.done;S=y.next()){var F=S.value;S=b[F];if(this&&this[S]){var a=h.actionRoutingMap.get(F);a||(a=new Map,h.actionRoutingMap.set(F,a));h.registerActionHandler(this,F,this[S].bind(this),a)}else F=Error("md"),F.params=S,_.v4(F)}},
unregisterActionMap:function(b){_.Po(_.$J.getInstance(),b,this)}}]};var RF=new Map([["FACE_HAPPY",{name:"animated_face_happy_light",nameDarkTheme:"animated_face_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_HAPPY",totalFrames:121,lazyLoad:!1}],["FACE_MEH",{name:"animated_face_meh_light",nameDarkTheme:"animated_face_meh_dark",
path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_meh.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_meh.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_MEH",totalFrames:121,lazyLoad:!1}],["FACE_SAD",{name:"animated_face_sad_light",nameDarkTheme:"animated_face_sad_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_sad.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_sad.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_SAD",totalFrames:121,lazyLoad:!1}],["FACE_UNHAPPY",{name:"animated_face_unhappy_light",nameDarkTheme:"animated_face_unhappy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_unhappy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_unhappy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_UNHAPPY",totalFrames:121,
lazyLoad:!1}],["FACE_VERY_HAPPY",{name:"animated_face_very_happy_light",nameDarkTheme:"animated_face_very_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_very_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_very_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_VERY_HAPPY",totalFrames:121,lazyLoad:!1}],["LIKE",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_"+(_.r("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.r("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.r("enable_web_delhi_icons")?120:60,lazyLoad:!0}],["LIKE_DELHI_PLAYER",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v5.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_DELHI_PLAYER",totalFrames:120,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:_.r("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light_v4.json":
"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",pathDarkTheme:_.r("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark_v4.json":"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:_.r("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var c2;var zA=new Map;var rOn=window.matchMedia("(forced-colors: active)").matches;var aMe;var dFW;var jZW=new _.ca("LOTTIE_LOADER_TOKEN");_.vj=_.T(function(b){var h=b.data;var y=b.className;var S=b.animationName;var F=b.animationRef;var a=b.elRefForInterop;var P=_.MS("lottie-component"),K;_.m2(function(){var X;return void((X=K)==null?void 0:X.destroy())});
var n;_.Qi(function(){var X=_.bn(S);if(X!==n){n=X;var u=Object.assign({},{animationName:X,animationRef:_.bn(F)},_.bn(h));try{_.H9().resolve(jZW)().then(function(t){var R;(R=K)==null||R.destroy();var I,U;R=(U=a==null?void 0:(I=a())==null?void 0:I.value)!=null?U:P.value;I=u.animationRef;U=u.listeners;t=t.loadAnimation(Object.assign({},{container:R},u.animationConfig));I&&(I.lottieEl=t);if(U)for(R=_.L(Object.entries(U)),I=R.next();!I.done;I=R.next())U=_.L(I.value),I=U.next().value,(U=U.next().value)&&
t.addEventListener(I,U);K=t})}catch(t){X=t;
var O="LottieComponent error.";X.message&&(O+=" Original description: "+X.message);_.bh(X,O);_.vX(X);var N;((N=u.listeners)==null?0:N.error)&&u.listeners.error(X)}}},"nrJISd");
return _.M(t3q,{cond:function(){return!(a==null?0:a())},
then:function(){return _.M("lottie-component",{class:_.P2("ytLottieComponentHost",y),el:P})}})},"Z");_.yd(_.T(function(b){return _.M("ytd-lottie-player",{id:b.id,hidden:b.hidden,class:b.className,"aria-label":b.ariaLabel,style:"display: block;"},_.M(_.vj,{data:b.data,animationName:function(){var h;return((h=b.data().animationConfig)==null?void 0:h.name)||""},
animationRef:function(){return b.data().animationRef}}))},"$"),"ytd-lottie-player",{props:{data:_.D4,
id:_.D4,hidden:_.D4,className:_.D4,ariaLabel:_.D4}});var bu=function(){var b=_.g.apply(this,arguments)||this;b.animationRef={};b.delhiIconsEnabled=_.r("enable_web_delhi_icons");return b};
_.z(bu,_.g);_.d=bu.prototype;
_.d.handlePropertyChange=function(){var b=this.animatedIcon,h=this.active,y=this.isDarkTheme;if(b){var S=this.previousActive!==h;this.previousActive=h;this.animationRef.lottieEl?S?this.toggleAnimation(h,b.totalFrames):_.r("web_enable_animated_icon_active_state_fix")&&this.setAnimationState(h,b.totalFrames):h?this.initializeAnimationAsToggled(b.lottiePlayerProps,b.totalFrames):this.initializeAnimationAsUntoggled(b.lottiePlayerProps);b.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=
b.type;this.lottiePlayerProps=this.computeLottiePlayerProps(b,y)}};
_.d.computeLottiePlayerProps=function(b,h){var y=this.deepCloneLottiePlayerProps(b);h?(h=b.nameDarkTheme,b=b.pathDarkTheme):(h=b.name,b=b.path);y.animationConfig.name=h;(h=zA.get(b))?y.animationConfig.animationData=h:y.animationConfig.path=b;return y};
_.d.initializeAnimationAsToggled=function(b,h){b.animationConfig.initialSegment=[h-1,h]};
_.d.initializeAnimationAsUntoggled=function(b){b.animationConfig.initialSegment=void 0};
_.d.toggleAnimation=function(b,h){if(b){var y;(y=this.animationRef.lottieEl)==null||y.playSegments([0,h],!0)}else{var S;(S=this.animationRef.lottieEl)==null||S.playSegments([0,1],!0)}};
_.d.setAnimationState=function(b,h){this.animationRef.lottieEl&&this.animationRef.lottieEl.goToAndStop(b?h-1:0,!0)};
_.d.deepCloneLottiePlayerProps=function(b){var h=Object.assign({},b.lottiePlayerProps.animationConfig);b=Object.assign({},b.lottiePlayerProps);b.animationConfig=h;return b};
bu.prototype.handlePropertyChange=bu.prototype.handlePropertyChange;_.V([_.C(),_.f("design:type",Object)],bu.prototype,"animatedIcon",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],bu.prototype,"active",void 0);_.V([_.C(),_.f("design:type",Boolean)],bu.prototype,"isDarkTheme",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",String)],bu.prototype,"animatedIconType",void 0);_.V([_.C(),_.f("design:type",Boolean)],bu.prototype,"previousActive",void 0);
_.V([_.C(),_.f("design:type",Object)],bu.prototype,"lottiePlayerProps",void 0);_.V([_.C(),_.f("design:type",Object)],bu.prototype,"animationRef",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],bu.prototype,"delhiIconsEnabled",void 0);_.V([_.OB("animatedIcon","active","isDarkTheme"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],bu.prototype,"handlePropertyChange",null);_.V([_.sB({is:"yt-animated-icon",disableElementRegistration:!0})],bu);
_.k(bu,"yt-animated-icon",function(){if(dFW===void 0){var b=document.createElement("template");_.D(b,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-animated-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_animated_icon.yt.animated.icon.css.js--\x3e<ytd-lottie-player class="lottie-player style-scope yt-animated-icon" data="[[lottiePlayerProps]]"></ytd-lottie-player>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;aMe===void 0&&(aMe=document.createElement("template"));var S=aMe;y.call(h,S.content.cloneNode(!0),b.content.firstChild);dFW=b}b=dFW;return b},{mode:2});var $FW;var L4b;_.Dv=_.T(function(b){var h={value:null,cancelled:!1};_.m2(function(){h.cancelled=!0});
var y=_.s5(b.data,{equals:function(S,F){return S.iconName===F.iconName&&S.iconStyle===F.iconStyle&&S.iconSize===F.iconSize&&S.iconSetName===F.iconSetName&&S.iconSelected===F.iconSelected}},"ck24jb");
return _.M("span",{class:"yt-icon-shape",el:_.Qa(function(S){_.Qi(function(){var F,a=(F=b.options)==null?void 0:F.call(b);F=y();IHY(S,h,F,a)},"v878Je")})})},"ba");
_.Dv.idomCompat=!0;var fdk=["youtube_fill","youtube_outline"];var P$N=new _.hQ({type:"iconset",value:void 0}),hK=function(){var b=_.g.apply(this,arguments)||this;b.isDarkTheme=document.documentElement.hasAttribute("dark");b.iconName="";b.iconsetName="yt-icons";b.iconset=null;b.missingIconSet=!1;b.iconType=null;b.iconShapeDataSignal=_.pa(void 0,void 0,"TaEgXd");b.renderingOptionsSignal=_.pa({iconWidth:"100%",iconHeight:"100%",iconFilter:b.iconFilter,iconColor:b.gradientColor},void 0,"a1vqYe");b.wizHasRendered=!1;b.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return b};
_.z(hK,_.g);hK.prototype.onDarkModeToggledAction=function(b){b!==this.isDarkTheme&&(this.isDarkTheme=b)};
hK.prototype.handlePropertyChange=function(){var b=this,h,y,S,F,a,P,K,n,X,u,O,N,t,R,I,U,p;return _.Z(function(e){switch(e.nextAddress){case 1:if(h=!b.icon&&!b.iconName||!b.isAttached)return e.return();y=b;S=y.icon;F=y.size;a=y.defaultToFilled;P=y.active;K=y.targetContainer;b.toggleContainerClass(K);_.r("kevlar_use_wil_icons")&&S&&(n=RF8(S),b.iconType=n.length?n[1]:null);if(S){e.jumpTo(2);break}b.iconsetName="";b.iconName="";return e.yield(b.renderIcon(K,S),3);case 3:return e.return();case 2:X=K48(S);
u=RF8(X);u.length&&(b.iconsetName=u[0],b.iconName=u[1]);if(!_.r("kevlar_use_wil_icons")){e.jumpTo(4);break}O=hK;N=ZLG;t=b.iconType;R=b.active;I=b.defaultToFilled;U=b.size;p=b.iconsetName;return e.yield(oAM(),6);case 6:return e.yield(N.call(O,t,R,I,U,p,e.yieldResult),5);case 5:b.iconShapeData=e.yieldResult;case 4:if(b.shouldRenderIconShape(K)){e.jumpTo(7);break}return e.yield(b.determineIconSet(X,P,a,F,K),7);case 7:return e.yield(b.renderIcon(K,S),0)}})};
hK.prototype.toggleContainerClass=function(b){b?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var K48=function(b){return!_.r("default_to_innertube_icon")||b.indexOf(":")>0?b:_.o_(b)};
_.d=hK.prototype;_.d.determineIconSet=function(b,h,y,S){var F=this;return _.Z(function(a){return a.nextAddress==1?_.r("kevlar_system_icons")||_.QC("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.QC("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?a.yield(F.switchToYtSysIconset(b,h,y,S),3):a.jumpTo(2):a.nextAddress!=2?a.return():a.yield(F.useYtSysIconsetForMissingIcons(b,h,y,S),0)})};
_.d.switchToYtSysIconset=function(b,h,y,S){var F=this,a,P,K,n,X,u,O;return _.Z(function(N){switch(N.nextAddress){case 1:if(!b||F.iconsetName!=="yt-icons"&&F.iconsetName!=="yt-sys-icons"){N.jumpTo(0);break}a=RF8(b);P=a[1];var t=P;if(pW8(t))P=t;else{var R=t=t.toLowerCase();(t=Hgb.get(t))&&(R=t);P=R}_.r("enable_polymer_icons_replace_underscores_dash")&&P.includes("_filled")&&(P=P.replace(/_filled/g,"-filled"));return N.yield(Z1(P,!0),3);case 3:return K=N.yieldResult,N.yield(Z1(P,!1),4);case 4:if((n=
N.yieldResult)||h&&K)F.iconsetName="yt-sys-icons";F.iconName=F.getIconName(P,h,y,n,K);if(S===24){N.jumpTo(0);break}X="yt-sys-icons"+S+":"+F.iconName;return N.yield(Z1(X,!1,!0),6);case 6:return u=N.yieldResult,N.yield(Z1(X,!0,!0),7);case 7:O=N.yieldResult;F.iconName=F.getIconName(P,h,y,u,O);if(!h&&u||h&&O)F.iconsetName="yt-sys-icons"+S;_.g3(N)}})};
_.d.getIconName=function(b,h,y,S,F){b.includes("-filled")&&(b=b.replace("-filled",""));return F&&(h||y)?b+"-filled":b};
_.d.useYtSysIconsetForMissingIcons=function(b,h,y,S){var F=this,a,P;return _.Z(function(K){if(K.nextAddress==1)return F.iconsetName!=="yt-icons"?K.jumpTo(0):K.yield(Z1(F.iconName,!1,!1,!0),3);if(K.nextAddress!=4)return a=K.yieldResult,K.yield(Z1(F.iconName,!1),4);P=K.yieldResult;if(a||!P)return K.jumpTo(0);F.iconsetName="yt-sys-icons";return K.yield(F.switchToYtSysIconset(b,h,y,S),0)})};
_.d.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var oAM=function(){return _.Z(function(b){try{return b.return(_.H9().resolve(_.MJ))}catch(h){return b.return(new Promise(function(y){_.Dh().parkOrScheduleJob(function(){y(_.H9().resolve(_.MJ))},2,"ci")}))}})},ZLG=function(b,h,y,S,F,a){S=S===void 0?24:S;
if(b){b=b.toLowerCase();var P=b.endsWith("_filled")||b.endsWith("-filled");h={iconName:b,iconStyle:(h===void 0?0:h)||(y===void 0?0:y)||P?"youtube_fill":"youtube_outline",iconSize:S,iconSetName:F===void 0?"yt-icons":F};y=!!a.resolveIcon(h);y||(h.iconSize=void 0,y=!!a.resolveIcon(h));!y&&P&&(h.iconName=b.substring(0,b.length-7),h.iconSize=S,y=!!a.resolveIcon(h),y||(h.iconSize=void 0,y=!!a.resolveIcon(h)));y||(h.iconStyle=void 0,y=!!a.resolveIcon(h));y||_.vX(new _.Gn("Icon not supported",{iconName:h.iconName,
iconStyle:h.iconStyle,iconSize:h.iconSize,iconType:b}));return y?h:void 0}};
_.d=hK.prototype;_.d.shouldRenderIconShape=function(b){if(!_.r("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;b=this.getContainer(b);return!cOj(b,this.icon)};
_.d.renderIcon=function(b,h){var y=this,S,F,a,P,K,n,X,u;return _.Z(function(O){switch(O.nextAddress){case 1:if(h&&y.icon!==h)return O.return();S=y.getContainer(b);F=cOj(S,y.icon);if(y.shouldRenderIconShape(b)&&y.iconType)return y.applyIconShape(F,S),O.return();y.removeIconShape();if(!S)return O.return();y.iconName===""&&y.iconset&&S&&(y.removeStaticIcon(y.iconset,S),F&&y.removeAnimatedIcon(S));if(y.iconName===""&&y.iconset||!y.iconsetName||!P$N)return O.return();y.iconset=P$N.byKey(y.iconsetName);
if(!y.iconset)return y.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.Hl(y,y.onIconsetAdded)),O.return();y.missingIconSet&&(y.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.Hl(y,y.onIconsetAdded)));P=(a=F||y.isAnimatedIcon?NF5(y.icon):void 0)&&!a.lazyLoad;n=a&&((K=a)==null?void 0:K.lazyLoad)&&(a.lottiePlayerProps.animationConfig.animationData?!0:zA.get(y.isDarkTheme?a.pathDarkTheme:a.path)?!0:!1);if(P||n)return y.applyAnimatedIcon(S,a,y.iconset),O.return();if(n||
(X=a)==null||!X.lazyLoad){O.jumpTo(2);break}u=zsr(a,y.isDarkTheme);y.applyStaticIcon(y.iconset,S,y.iconName,b,F);return O.yield(u,3);case 3:return O.yield(y.renderIcon(y.targetContainer,y.icon),4);case 4:return O.return();case 2:y.applyStaticIcon(y.iconset,S,y.iconName,b,F),_.g3(O)}})};
_.d.getContainer=function(b){var h,y=(h=$jF(this.hostElement))==null?void 0:h.host;h=!!y&&!!y.polymerController;if(!b||h)return b?this.getTargetContainer(b,y):this.hostElement};
_.d.getTargetContainer=function(b,h){var y=_.$x(h).querySelector("#"+b);y||(b=new _.Gn("yt-icon container missing",h.is,b),_.QT(b));return y};
_.d.applyStaticIcon=function(b,h,y,S,F){F&&this.removeAnimatedIcon(h);this.removeIconShape();F=F&&!!this.iconType&&!!this.iconShapeData&&_.r("kevlar_use_wil_icons");try{F?this.applyIconShape(!1,h):b.applyIcon(h,y)}catch(a){this.handleError(a,S,h)}};
_.d.applyIconShape=function(b,h){this.iconset&&h&&(this.removeStaticIcon(this.iconset,h),b&&this.removeAnimatedIcon(h));b={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter,iconColor:this.gradientColor};var y=_.L(this.iconShapeDataSignal);h=y.next().value;y=y.next().value;var S=_.L(this.renderingOptionsSignal),F=S.next().value;S=S.next().value;y(this.iconShapeData);S(b);if(!this.wizHasRendered)for(this.wizHasRendered=!0,b=_.L(BF4(h,F)).next().value;b.firstChild;)_.$x(this.hostElement).appendChild(b.firstChild)};
_.d.removeIconShape=function(){if(_.r("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.d.removeStaticIcon=function(b,h){b.removeIcon(h)};
_.d.applyAnimatedIcon=function(b,h,y){this.removeStaticIcon(y,b);this.removeIconShape();var S;y=this.animatedIconElement&&((S=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:S.type)===h.type;if(this.animatedIconElement&&y){this.animatedIconElement.polymerController.animatedIcon=h;var F;((F=this.animatedIconElement)==null?void 0:F.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(b),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=h,this.animatedIconElement.polymerController.active=this.active,_.r("delhi_modern_web_player_icons")?(h=t$k(b,this.icon)&&b.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=h?h.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.r("kevlar_use_wil_icons")?
b.insertBefore(this.animatedIconElement,b.childNodes[0]):(b=_.$x(b),b.insertBefore(this.animatedIconElement,b.childNodes[0]))};
_.d.removeAnimatedIcon=function(b){_.r("kevlar_use_wil_icons")?this.animatedIconElement&&b.contains(this.animatedIconElement)&&b.removeChild(this.animatedIconElement):(b=_.$x(b),this.animatedIconElement&&b.contains(this.animatedIconElement)&&b.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.d.handleError=function(b,h,y){_.bh(b,this.iconName,h,y);h=cOj(y,this.icon);var S=!1;window.location.href.includes("JpymaW6Lh2w")?S=!0:y._svgIcon&&(y=(y=y._svgIcon.parentNode)?y.tagName:"unknown",_.bh(b,y),y==="YT-ICON"&&b.name==="NotFoundError"?S=!0:b.name==="NotFoundError"&&h&&(S=!0));S?_.vX(b):_.QT(b)};
_.tm.Object.defineProperties(hK,{template:{configurable:!0,enumerable:!0,get:function(){if(L4b===void 0){var b=document.createElement("template");_.D(b,"\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");b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;
$FW===void 0&&($FW=document.createElement("template"));var S=$FW;y.call(h,S.content.cloneNode(!0),b.content.firstChild);L4b=b}b=L4b;return b}}});
hK.prototype.handlePropertyChange=hK.prototype.handlePropertyChange;_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],hK.prototype,"actionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",String)],hK.prototype,"icon",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],hK.prototype,"active",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],hK.prototype,"defaultToFilled",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],hK.prototype,"isAnimatedIcon",void 0);
_.V([_.C({value:24}),_.f("design:type",Number)],hK.prototype,"size",void 0);_.V([_.C({value:""}),_.f("design:type",String)],hK.prototype,"targetContainer",void 0);_.V([_.C(),_.f("design:type",Object)],hK.prototype,"animatedIconElement",void 0);_.V([_.C(),_.f("design:type",Object)],hK.prototype,"isDarkTheme",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],hK.prototype,"ariaHidden",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",String)],hK.prototype,"ariaLabel",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",String)],hK.prototype,"role",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",String)],hK.prototype,"tabindex",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",String)],hK.prototype,"title",void 0);_.V([_.C(),_.f("design:type",String)],hK.prototype,"style",void 0);_.V([_.C(),_.f("design:type",String)],hK.prototype,"iconFilter",void 0);_.V([_.C(),_.f("design:type",String)],hK.prototype,"gradientColor",void 0);
_.V([_.OB("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme","gradientColor","iconFilter"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype",Promise)],hK.prototype,"handlePropertyChange",null);_.V([_.sB({is:"yt-icon",noInjection:!0})],hK);var WhF="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),UgU=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var McN={};McN.YtPlaintextBehavior=[_.xq,{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(b){b.preventDefault();b=b.clipboardData.getData("text/plain");document.execCommand("insertText",!1,b)},
preventRichTextFormatting_:function(b){_.Nq&&(b=b.detail.keyboardEvent,b.stopImmediatePropagation(),b.preventDefault())}}];var nAo;var Xza;var yg=function(){var b=_.g.apply(this,arguments)||this;b.ignoreShadyDom=!1;b.hasChange_=!1;b.hasSetTitle_=!1;b.useIOObserverForVisibilityLogging_=_.r("kevlar_use_vimio_behavior")&&_.QC("INNERTUBE_CLIENT_NAME")==="WEB";b.ytFormattedStringObserverHandlerKeys_=void 0;return b};
_.z(yg,_.g);_.d=yg.prototype;_.d.created=function(){this.useIOObserverForVisibilityLogging_=_.r("kevlar_use_vimio_behavior")&&_.QC("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.d.ready=function(){_.QC("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_()};
_.d.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.d.detached=function(){this.unobserveIOObservers_()};
_.d.clearContents_=function(){for(var b=this.getRoot(),h=b.lastChild;h&&h.tagName!=="STYLE";){try{b.removeChild(h)}catch(y){break}h=b.lastChild}};
_.d.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var b=_.L(this.ytFormattedStringObserverHandlerKeys_),h=b.next();!h.done;h=b.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(h.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.d.resetForAttributedString=function(){var b=this.getRoot();!b.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),b.appendChild(this.ytAttributedStringElementRef))};
_.d.resetForFormattedString=function(){var b=this.getRoot(),h=b.querySelector("yt-attributed-string");h&&(this.ytAttributedStringElementRef=b.removeChild(h))};
_.d.textChanged=function(){this.textChanged_(this.text)};
_.d.textChanged_=function(b){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!b||!b.runs&&!b.simpleText;if(_.r("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var h=this.hostElement.firstChild;h&&h.nodeName==="FONT";){var y=h;h=h.nextSibling;this.hostElement.removeChild(y)}h=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
y=b.simpleText;var S;!y&&((S=b.runs)==null?void 0:S.length)===1&&this.isSimpleString_(b.runs[0])&&(y=b.runs[0].text);y!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.QC("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(y!==void 0){try{h.textContent=y}catch(F){}h.textContent||(this.isEmpty=!0)}else b=b.runs,y!==void 0&&(b=[{text:y}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),b&&this.updateText_(b),
h.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.d.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)};
_.d.computeAriaLabel_=function(b){return b};
_.d.computeEllipsisTruncateStyling=function(b,h){return b&&!h};
_.d.computeUseAttributedString=function(b){return _.r("web_replace_formatted_with_attributed_string")&&Ps8(b)&&!this.disableAttributedString&&!this.enableContentEditable};
_.d.setNodeStyle_=function(b,h){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.r("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?h.removeAttribute("dir"):h.setAttribute("dir","auto");h.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");h.style.color="";var y=null;this.noStyles||(b.bold&&(h.classList.add("bold"),y="bold"),b.deemphasize&&(h.classList.add("deemphasize"),y="deemphasize"),b.italics&&h.classList.add("italic"),
b.strikethrough&&h.classList.add("strikethrough"),b.errorUnderline&&(h.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),b.bracket&&h.classList.add("bracket"),b.textColor&&(h.style.color=_.eI(b.textColor)));y!==h.getAttribute("style-target")&&(y?h.setAttribute("style-target",y):h.removeAttribute("style-target"))};
_.d.setUpVisibilityLogging_=function(b,h){var y=this;this.setNodeTrackingParams_(b,h);var S;((S=h.data)==null?0:S.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(b=this.ytRendererBehavior.visibilityObserver.observe(h,function(F){var a=y.ytRendererBehavior.getVisibilityLogger();a&&a.reportShown(F)},this.ytRendererBehavior.visibilityOptionVisible_),h=this.ytRendererBehavior.visibilityObserver.observe(h,function(F){var a=y.ytRendererBehavior.getVisibilityLogger();
a&&a.reportHidden(F)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(b),this.ytFormattedStringObserverHandlerKeys_.push(h))};
_.d.setNodeTrackingParams_=function(b,h){h.data||(h.data={});if((b=b.loggingDirectives?b.loggingDirectives.trackingParams:null)||h.data.trackingParams)h.data.trackingParams=b};
_.d.computeHasLinkOnly_=function(b){return!(!b||b.length!==1||this.noEndpoints||!b[0].navigationEndpoint)};
_.d.getRoot=function(){var b=this.buildScopeDomOptions();return this.enableContentEditable?_.$x(_.$x(this.hostElement,b).querySelector("[contenteditable]")):_.$x(this.hostElement,b)};
_.d.fixContenteditableScope=function(){var b=function(h){h&&(h.nodeType===1&&h.classList&&(h.classList.add("style-scope"),h.classList.add("yt-formatted-string")),h.childNodes&&h.childNodes.forEach(function(y){b(y)}))};
b(this.getRoot())};
_.d.updateText_=function(b){for(var h=b.length,y=this.getRoot(),S=y.firstChild;S&&S.nodeName==="STYLE";)S=S.nextSibling;for(var F=0;F<h&&S;){var a=b[F],P=_.r("remove_cr_char")&&a.text?a.text.replace("\r",""):a.text;if(this.isSimpleString_(a)&&!this.useMixedDirectionFormattedStrings)if(S.nodeName==="#text"){S.textContent!=P&&(S.textContent=P);F++;S=S.nextSibling;continue}else break;if(_.c(a,Ct))break;else if(!this.noEndpoints&&a.navigationEndpoint){if(S.nodeName!=="A")break;this.setDataOnAnchor_(S,
a.navigationEndpoint)}else if(S.nodeName!=="SPAN")break;this.setNodeStyle_(a,S);this.setUpVisibilityLogging_(a,S);S.textContent!=P&&(S.textContent=P);F++;S=S.nextSibling}if(S)for(a=y.lastChild,S=F?S.previousSibling:null;a&&a!=S;){try{y.removeChild(a)}catch(K){break}a=y.lastChild}F!==h&&this.addTextNodes_(b,F)};
_.d.addTextNodes_=function(b,h){for(var y=document.createDocumentFragment(),S=b.length;h<S;h++){var F=b[h],a=_.r("remove_cr_char")&&F.text?F.text.replace("\r",""):F.text;if(this.isSimpleString_(F)&&!this.useMixedDirectionFormattedStrings)y.appendChild(document.createTextNode(a));else{var P=_.c(F,Ct);if(P){if(P.image){var K=document.createElement("img");P.isCustomEmoji||K.classList.add("small-emoji");K.classList.add("emoji");P.isCustomEmoji&&(K.dataset.emojiId=P.emojiId);K.src=_.Ss(P.image.thumbnails,
this.emojiSize);(F=this.get("image.accessibility.accessibilityData.label",P))?K.alt=F:P.shortcuts&&P.shortcuts.length>0?K.alt=P.shortcuts[0]:P.emojiId&&(K.alt=P.emojiId);y.appendChild(K);this.hasEmoji=!0}}else!this.noEndpoints&&F.navigationEndpoint?(K=document.createElement("a"),K.classList.add("yt-simple-endpoint"),K.setAttribute("spellcheck","false"),this.setDataOnAnchor_(K,F.navigationEndpoint)):K=document.createElement("span"),this.setNodeStyle_(F,K),this.setUpVisibilityLogging_(F,K),K.appendChild(document.createTextNode(a)),
y.appendChild(K)}}this.getRoot().appendChild(y)};
_.d.isSimpleString_=function(b){return(this.noEndpoints||!b.navigationEndpoint)&&!_.c(b,Ct)&&(this.noStyles||!(b.bold||b.deemphasize||b.italics||b.strikethrough||b.errorUnderline||b.bracket||b.textColor))&&!b.loggingDirectives};
_.d.getRawText=function(){return _.vi(this.text)};
_.d.getFirstRunText=function(){var b;if(((b=this.text)==null?0:b.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.d.setFirstRunText=function(b){var h;((h=this.text)==null?0:h.runs)&&this.text.runs[0]&&(this.text.runs[0].text=b,this.textChanged_(this.text))};
_.d.setDataOnAnchor_=function(b,h){var y=this;!_.r("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(h)||this.isSignalServiceEndpoint_(h)?(b.onclick=this.serviceEndpointHandler_(h),mA(b,"#")):KlY({text:this.text,command:h},function(){cBy(b,h,y.target)})};
_.d.isServiceEndpoint_=function(b){var h;return!((h=_.c(b==null?void 0:b.commandMetadata,_.ZW))==null||!h.sendPost)};
_.d.isSignalServiceEndpoint_=function(b){return!!_.c(b,_.KI)};
_.d.serviceEndpointHandler_=function(b){var h=this;return function(y){_.dh(h.hostElement,[b]);y.preventDefault()}};
_.d.overrideAriaLabelChanged_=function(){var b=this.getRoot();this.enableContentEditable&&b&&b.setAttribute("aria-label",this.overrideAriaLabel)};
_.d.enableContentEditableChanged_=function(){var b=this,h=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),h=_.$x(this.hostElement,h),!h.lastChild||h.lastChild instanceof HTMLElement&&h.lastChild.id!=="contenteditable-root"){var y=document.createElement("div");y.id="contenteditable-root";y.setAttribute("contenteditable","true");y.setAttribute("dir","auto");y.onfocus=function(){b.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
h.appendChild(y);this.overrideAriaLabel&&y.setAttribute("aria-label",this.overrideAriaLabel)}}else y=_.KZ(this.hostElement).firstChild,y instanceof HTMLElement&&y.id==="contenteditable-root"&&_.$x(this.hostElement,h).removeChild(y)};
_.d.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.d.getNodesForVisibilityLogging_=function(){return _.oX(this.getRoot().childNodes,function(b){var h;return!((h=b.data)==null||!h.trackingParams)})};
_.d.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.d.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var b=this.ytRendererBehavior.getVisibilityLogger();b&&this.getNodesForVisibilityLogging_().forEach(function(h){b.reportShown(h)})}};
_.d.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var b=this.ytRendererBehavior.getVisibilityLogger();b&&this.getNodesForVisibilityLogging_().forEach(function(h){b.reportHidden(h)})}};
_.tm.Object.defineProperties(yg.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.r("enable_mixed_direction_formatted_strings")}}});
yg.prototype.enableContentEditableChanged_=yg.prototype.enableContentEditableChanged_;yg.prototype.overrideAriaLabelChanged_=yg.prototype.overrideAriaLabelChanged_;yg.prototype.ellipsisTruncateChanged_=yg.prototype.ellipsisTruncateChanged_;yg.prototype.textChanged=yg.prototype.textChanged;_.V([_.B(McN.YtPlaintextBehavior),_.f("design:type",Object)],yg.prototype,"ytPlaintextBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],yg.prototype,"ytComponentBehavior",void 0);
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],yg.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],yg.prototype,"text",void 0);_.V([_.C(),_.f("design:type",Boolean)],yg.prototype,"noEndpoints",void 0);_.V([_.C(),_.f("design:type",Boolean)],yg.prototype,"noStyles",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],yg.prototype,"isDarkTheme",void 0);
_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],yg.prototype,"splitLines",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],yg.prototype,"forceDefaultStyle",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],yg.prototype,"ellipsisTruncate",void 0);_.V([_.C(),_.f("design:type",Object)],yg.prototype,"ignoreShadyDom",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.f("design:type",Boolean)],yg.prototype,"ellipsisTruncateStyling",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.f("design:type",String)],yg.prototype,"ariaLabel",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],yg.prototype,"isEmpty",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.f("design:type",Boolean)],yg.prototype,"hasLinkOnly_",void 0);_.V([_.C(),_.f("design:type",Boolean)],yg.prototype,"hasEmoji",void 0);_.V([_.C(),_.f("design:type",Boolean)],yg.prototype,"disableAttributedString",void 0);_.V([_.C(),_.f("design:type",Boolean)],yg.prototype,"isOverlay",void 0);_.V([_.C(),_.f("design:type",Boolean)],yg.prototype,"linkInheritColor",void 0);
_.V([_.C(),_.f("design:type",Boolean)],yg.prototype,"noPreWrap",void 0);_.V([_.C(),_.f("design:type",Boolean)],yg.prototype,"userInput",void 0);_.V([_.C({value:16}),_.f("design:type",Number)],yg.prototype,"emojiSize",void 0);_.V([_.C(),_.f("design:type",String)],yg.prototype,"target",void 0);_.V([_.C(),_.f("design:type",Boolean)],yg.prototype,"enableContentEditable",void 0);_.V([_.C(),_.f("design:type",String)],yg.prototype,"overrideAriaLabel",void 0);
_.V([_.C(),_.f("design:type",Boolean)],yg.prototype,"respectHtmlDir",void 0);_.V([_.C(),_.f("design:type",Boolean)],yg.prototype,"respectLangDir",void 0);_.V([_.W("plaintextOnly"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],yg.prototype,"useMixedDirectionFormattedStrings",null);_.V([_.C({computed:"computeUseAttributedString(text)"}),_.f("design:type",Boolean)],yg.prototype,"useYtAttributedString",void 0);
_.V([_.OB("text"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],yg.prototype,"textChanged",null);_.V([_.OB("ellipsisTruncate"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],yg.prototype,"ellipsisTruncateChanged_",null);_.V([_.OB("overrideAriaLabel"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],yg.prototype,"overrideAriaLabelChanged_",null);
_.V([_.OB("enableContentEditable"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],yg.prototype,"enableContentEditableChanged_",null);_.V([_.sB({is:"yt-formatted-string",disableElementRegistration:!0})],yg);
_.k(yg,"yt-formatted-string",function(){if(Xza===void 0){var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;nAo===void 0&&(nAo=document.createElement("template"));var S=nAo;y.call(h,S.content.cloneNode(!0),b.content.firstChild);Xza=b}b=Xza;return b});var HL7;var uUP;var OLM;var NzG;var Sm=function(){var b=_.g.apply(this,arguments)||this;b.focused=!1;b.disabled=!1;b.isOverlay=!1;return b};
_.z(Sm,_.g);Sm.prototype.triggerDown=function(){if(!this.disabled){_.Zm(this.hostElement,"down",!0);var b;(b=this.currentAnimation)==null||b.cancel()}};
Sm.prototype.triggerUp=function(){if(!this.disabled){_.Zm(this.hostElement,"down",!1);var b=this.fillElement;var h=this.strokeElement;typeof GroupEffect==="function"?(b=new GroupEffect([BzY(b),W45(h)]),b=new Animation(b,document.timeline)):b=new VtP(b,h);this.currentAnimation=b;var y;(y=this.currentAnimation)==null||y.play()}};
_.V([_.to(".stroke"),_.f("design:type",HTMLElement)],Sm.prototype,"strokeElement",void 0);_.V([_.to(".fill"),_.f("design:type",HTMLElement)],Sm.prototype,"fillElement",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Sm.prototype,"focused",void 0);_.V([_.C(),_.f("design:type",Object)],Sm.prototype,"disabled",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Sm.prototype,"isOverlay",void 0);_.V([_.sB({is:"yt-interaction",disableElementRegistration:!0})],Sm);
_.k(Sm,"yt-interaction",function(){if(NzG===void 0){var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;OLM===void 0&&(OLM=document.createElement("template"));var S=OLM;y.call(h,S.content.cloneNode(!0),b.content.firstChild);NzG=b}b=NzG;return b},{mode:2});var FB=function(){return _.g.apply(this,arguments)||this};
_.z(FB,_.g);_.d=FB.prototype;_.d.ready=function(){var b=this,h=_.$x(this.hostElement).querySelector("#button");h.addEventListener("focus",function(){oVW||(oVW=new ZUG);b.keyboardFocused=oVW.isKeyBoardInUse()});
h.addEventListener("blur",function(){b.keyboardFocused=!1;b.rippleUp_()})};
_.d.computeTabIndex_=function(b){return b?-1:0};
_.d.computeButtonAriaPressed_=function(b){if(this.toggleable)return b?"true":"false"};
_.d.rippleDown_=function(){_.$x(this.hostElement).querySelector("#interaction").triggerDown()};
_.d.rippleUp_=function(){_.$x(this.hostElement).querySelector("#interaction").triggerUp()};
_.d.onPressedChanged_=function(){var b=_.KZ(_.$x(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.KZ(_.$x(this.hostElement).querySelector("#button")).children[0];b&&(b.active=this.pressed)};
FB.prototype.onPressedChanged_=FB.prototype.onPressedChanged_;FB.prototype.rippleUp_=FB.prototype.rippleUp_;FB.prototype.rippleDown_=FB.prototype.rippleDown_;_.V([_.C(),_.f("design:type",String)],FB.prototype,"label",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],FB.prototype,"disabled",void 0);_.V([_.C(),_.f("design:type",Boolean)],FB.prototype,"pressed",void 0);_.V([_.C(),_.f("design:type",Object)],FB.prototype,"toggleable",void 0);
_.V([_.C(),_.f("design:type",Boolean)],FB.prototype,"untabbable",void 0);_.V([_.C(),_.f("design:type",Boolean)],FB.prototype,"keyboardFocused",void 0);_.V([_.u3("down"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],FB.prototype,"rippleDown_",null);_.V([_.u3("up"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],FB.prototype,"rippleUp_",null);
_.V([_.OB("pressed"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],FB.prototype,"onPressedChanged_",null);_.V([_.sB({is:"yt-icon-button",disableElementRegistration:!0})],FB);
_.k(FB,"yt-icon-button",function(){if(uUP===void 0){var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;HL7===void 0&&(HL7=document.createElement("template"));var S=HL7;y.call(h,S.content.cloneNode(!0),b.content.firstChild);uUP=b}b=uUP;return b},{mode:2});var tc8;var r5o=function(){var b=document.body,h=b.appendChild;if(tc8===void 0){var y=document.createElement("template");_.D(y,'\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>');
tc8=y}y=tc8;h.call(b,y.content)};
document.body?r5o():window.addEventListener("DOMContentLoaded",r5o);var c5b=_.bm(["aria-"]),a$={};a$.YtRenderButtonBehavior=[_.Q.YtRendererBehavior,_.Q5.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!!_.H9().resolve(_.XS(_.sG))&&_.r("kevlar_keyboard_button_focus")},
reflectToAttribute:!0},keyboardFocused:{type:Boolean,value:!1,reflectToAttribute:!0},startJustified:{type:Boolean,value:!1,reflectToAttribute:!0},forceIconButton:{type:Boolean,value:!1},forceIconOnly:{type:Boolean,value:!1},styleActionButton:{type:Boolean,reflectToAttribute:!0},verticallyAligned:{type:Boolean,value:!1,reflectToAttribute:!0},noink:{type:Boolean,value:!1},showTooltips:{type:Boolean,value:!1},buttonRaised:{type:Boolean,value:!1},disabled:{type:Boolean,observer:"disabledChanged_",reflectToAttribute:!0},
sendServiceEndpointWhenDisabled:{type:Boolean,value:!1},sendCommandWhenDisabled:{type:Boolean,value:!1},ellipsisTruncate:Boolean,buttonTooltipPosition:{type:String,value:"bottom"},buttonSize:{type:String,reflectToAttribute:!0},endpoint:{type:Object,readOnly:!0},serviceEndpoint:{type:Object,readOnly:!0},command:{type:Object,readOnly:!0},buttonIcon:{type:String,readOnly:!0,observer:"buttonIconChanged_"},buttonText:{type:Object,readOnly:!0},buttonAccessibility:{type:Object,readOnly:!0},buttonTooltip:{type:String,
readOnly:!0},buttonClass:{type:String,readOnly:!0,observer:"buttonClassChanged_"},iconPositionType:{type:String,readOnly:!0,observer:"iconPositionTypeChanged_"},iconSize:{type:Number},stampType_:{type:String,computed:"computeStampType_(forceIconButton, buttonText, buttonIcon, endpoint)",observer:"stampTypeChanged_"},componentReady_:Boolean},listeners:{focusin:"onFocus_",focusout:"onBlur_",mouseenter:"addTooltips_",tap:"onYtButtonTap_"},observers:["isDisabledChanged_(data.isDisabled)","observeBasicPalette_(data.colorData.basicColorPaletteData)",
"dataChanged_(data, componentReady_)","isSelectedChanged_(data)"],created:function(){this.elements_={};this.hasChange_=!1},
attached:function(){this.hasChange_&&this.stampTypeChanged_(this.stampType_);this.keyboardFocused=!1},
get container(){return this.root},onYtButtonTapHandler:function(){},
ytButtonServiceEndpointHandler:function(){},
updateRenderedElements:function(){if(this.elements_.endpoint){this.elements_.endpoint.data=this.endpoint;var b=this.computeHref_(this.endpoint,!0);b?mA(this.elements_.endpoint,b):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){b=this.buttonClass.split(" ");b=_.L(b);for(var h=b.next();!h.done;h=b.next())h=h.value,_.Zm(this.hostElement,h,!0),this.elements_.button&&_.Zm(this.elements_.button,h,!0),this.elements_.text&&_.Zm(this.elements_.text,h,!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&&(b=null,this.buttonAccessibility&&(b=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=b:b?_.n$([_.r1(c5b)],this.elements_.button,"aria-label",b):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var b=_.H9().resolve(_.XS(_.sG));b&&(this.keyboardFocused=b.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.pd("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,_.rO(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.rO(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(b,h){if(h)for(b=h.split(" "),b=_.L(b),h=b.next();!h.done;h=b.next())h=h.value,_.Zm(this.hostElement,h,!1),this.elements_.button&&_.Zm(this.elements_.button,h,!1),this.elements_.text&&_.Zm(this.elements_.text,h,!1)},
buttonIconChanged_:function(b){this.elements_.icon?b?(this.elements_.icon.icon=b,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.rO(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.oc(this.hostElement,"is-paper-button-with-icon",!1)):b&&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"&&_.rO(this.elements_.button).appendChild(this.elements_.icon):_.rO(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.oc(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(b){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,b){var h=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(b){case "yt_icon_button_with_label":h=!0;_.Zm(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();b=_.rO(this.elements_.button).firstElementChild;
this.elements_.icon=b;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.rO(this.elements_.endpoint).appendChild(this.elements_.button);_.rO(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.pd("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;_.rO(this.elements_.button).appendChild(this.elements_.text);_.rO(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":h=!0,this.elements_.button=this.getYtIconButton_(),b=_.rO(this.elements_.button).firstElementChild,this.elements_.icon=b,this.setIconActive_(this.elements_.icon),
_.rO(this.elements_.endpoint).appendChild(this.elements_.button)}_.oc(this.hostElement,"is-icon-button",h);_.oc(this.hostElement,"is-paper-button",!h);_.oc(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 y;_.$x((y=this.container.hostElement)!=null?y:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.rO(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(b){if(b!=void 0||this.disabled)this.disabled=b,this.elements_.button&&(this.elements_.button.disabled=b)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(b){_.r("kevlar_system_icons")&&b&&this.data&&(this.data.isSelected!==void 0?b.active=this.data.isSelected:this.data.isToggled!==void 0&&(b.active=this.data.isToggled))},
observeBasicPalette_:function(b){_.IF(this.hostElement,b)},
disabledChanged_:function(b){this.data&&this.set("data.isDisabled",b)},
onYtButtonTap_:function(b){if(this.disabled)b.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.dh(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(b=this.disableCommandHandlerOverride,!this.data||!this.data.command||b||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.r("handle_service_request_actions")||_.dh(this.hostElement,[this.serviceEndpoint]),
_.Sx(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.r("handle_service_request_actions")?(b=[],this.serviceEndpoint&&b.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&b.push(this.data.command),b.length&&_.jx(this.hostElement,b,this.hostElement)):this.data&&this.data.command&&(b=this.data.command,b.accountUnlinkCommand||b.accountLinkCommand||b.insertAdCommand||b.insertHighlightMarkerCommand||
b.createLivestreamHighlightClipCommand||b.getVideoUploadFeedbackCommand||b.musicDeletePrivatelyOwnedEntityCommand||b.ypcCancelRecurrenceEndpoint||b.getMultiSelectCommandEndpoint?_.dh(this.hostElement,[b]):_.jx(this.hostElement,[b],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 b,h=_.$x((b=this.container.hostElement)!=null?b:this.container);h.lastChild&&h.lastChild.tagName!="STYLE";)try{h.removeChild(h.lastChild)}catch(y){break}},
getYtIconButton_:function(){var b=this.reuseEnabled_()?_.pd("yt-icon-button"):document.createElement("yt-icon-button"),h=_.rO(b).firstElementChild;if(h&&h.is!="yt-icon"){for(h=_.rO(b);h.lastChild;)h.removeChild(h.lastChild);h=null}h||(h=this.getIcon_(),this.setIconActive_(h),_.rO(b).appendChild(h));return b},
reuseEnabled_:function(){return _.r("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.pd("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.pd("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.Rn8={};
_.Rn8.YtButtonBehavior=[a$.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var b=this.data;b&&(this._setEndpoint(this.computeEndpoint_(b)),this._setServiceEndpoint(this.computeServiceEndpoint_(b)),this._setCommand(this.computeCommand_(b)),this._setButtonIcon(this.computeButtonIcon_(b)),this._setButtonText(this.computeButtonText_(b,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(b)),this._setButtonTooltip(this.computeTooltip_(b)),this._setButtonClass(this.computeButtonClass_(b)),this._setIconPositionType(this.computeIconPositionType_(b)),this.updateRenderedElements())},
setPressedState:function(b){var h;if((h=this.elements_)==null?0:h.button)this.elements_.button.pressed=!!b},
computeIconPositionType_:function(b){return b&&b.iconPosition||null},
computeEndpoint_:function(b){var h=b&&b.navigationEndpoint,y=this.get("data.command.commandMetadata.webCommandMetadata.url"),S=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return h?h:b&&b.command&&b.command.modalEndpoint?b.command:y&&!S&&b.command?b.command:null},
computeServiceEndpoint_:function(b){var h=b&&b.serviceEndpoint,y=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return h?h:y&&b.command?b.command:null},
computeCommand_:function(b){return b&&b.command||null},
computeButtonIcon_:function(b){return b&&b.icon&&b.icon.iconType?_.o_(b.icon.iconType):null},
computeButtonText_:function(b,h){return!h&&b&&b.text||null},
computeAccessibility_:function(b){return this.get("accessibilityData.accessibilityData",b)||b&&b.accessibility||(b&&b.text?{label:this.getSimpleString(b.text)}:null)},
computeTooltip_:function(b){return b?b.isDisabled&&b.disabledTooltip||b.tooltip||null:null},
computeButtonClass_:function(b){var h=b&&b.style?b.style.toLowerCase().replace(/_/g,"-")+" ":"";h+=b&&b.size?b.size.toLowerCase().replace(/_/g,"-")+" ":"";b.colorData&&b.colorData.basicColorPaletteData&&b.colorData.basicColorPaletteData.borderColor&&(h+="palette-with-border");return h.trim()}}];var B2={};var znM;var DFo;var IMW,Bz8=function(){return IMW!==void 0?IMW:IMW=document.createElement("template")};
document.head.appendChild(Bz8().content);var W4e;var A5o,UFa=function(){return A5o!==void 0?A5o:A5o=document.createElement("template")};
document.head.appendChild(UFa().content);var pza;var J5a,en8=function(){return J5a!==void 0?J5a:J5a=document.createElement("template")};
document.head.appendChild(en8().content);var C$7;var gAP=document.head,sZo=gAP.appendChild,YJa;if(C$7===void 0){var TzG=document.createElement("template");_.D(TzG,"\x3c!--css-build:shady--\x3e");TzG.content.insertBefore(en8().content.cloneNode(!0),TzG.content.firstChild);C$7=TzG}YJa=C$7;sZo.call(gAP,YJa.content);var GCW=document.head,kCo=GCW.appendChild,Vc8;if(pza===void 0){var EAN=document.createElement("template");_.D(EAN,"\x3c!--css-build:shady--\x3e");EAN.content.insertBefore(UFa().content.cloneNode(!0),EAN.content.firstChild);pza=EAN}Vc8=pza;kCo.call(GCW,Vc8.content);var iLo=document.head,fM8=iLo.appendChild,wzG;if(W4e===void 0){var lMe=document.createElement("template");_.D(lMe,"\x3c!--css-build:shady--\x3e");lMe.content.insertBefore(Bz8().content.cloneNode(!0),lMe.content.firstChild);W4e=lMe}wzG=W4e;fM8.call(iLo,wzG.content);var qJW;_.W2("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");qJW=_.r("web_button_rework")&&_.m$("BUTTON_REWORK")||_.r("web_button_rework_with_live");_.da=function(){return _.g.apply(this,arguments)||this};
_.z(_.da,_.g);_.da.prototype.created=function(){this.openPopupConfig=_.QC("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.da.prototype.onYtNavigate_=function(b){var h=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(b.detail.endpoint);h&&(this.ytOpenPopupBehavior.openPopup(h),b.stopPropagation(),b.preventDefault())};
_.tm.Object.defineProperties(_.da,{template:{configurable:!0,enumerable:!0,get:function(){if(DFo===void 0){var b=document.createElement("template");_.D(b,"\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");b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);
var h=b.content,y=h.insertBefore;znM===void 0&&(znM=document.createElement("template"));var S=znM;y.call(h,S.content.cloneNode(!0),b.content.firstChild);DFo=b}b=DFo;return b}}});
_.da.prototype.onYtNavigate_=_.da.prototype.onYtNavigate_;_.V([_.B(_.xN.YtOpenPopupBehavior),_.f("design:type",Object)],_.da.prototype,"ytOpenPopupBehavior",void 0);_.V([_.B(_.Rn8.YtButtonBehavior),_.f("design:type",Object)],_.da.prototype,"ytButtonBehavior",void 0);_.V([_.u3("yt-navigate"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],_.da.prototype,"onYtNavigate_",null);
_.V([_.sB({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:qJW})],_.da);var xFo;var QZa=_.r("web_button_rework")&&_.m$("BUTTON_REWORK")||_.r("web_button_rework_with_live"),jm=function(){var b=_.g.apply(this,arguments)||this;b.isPressed=!1;b.forceIconButton=!1;b.forceIconOnly=!1;b.forceModernIconButton=!1;b.skipCommandHandling=!1;b.alignByText=!1;b.fitToVisibleBounds=!0;b.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};b.onTap=function(h){_.Sx(b.hostElement,"yt-service-request-sent-button-renderer",h)};
return b};
_.z(jm,_.g);_.d=jm.prototype;_.d.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.d.onClick=function(b){var h,y=this.disabled||((h=this.data)==null?void 0:h.isDisabled);h=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");y&&h&&b.stopPropagation()};
_.d.computeIcon=function(){var b,h,y=(b=this.data)==null?void 0:(h=b.icon)==null?void 0:h.iconType;if(y)return _.o_(y)};
_.d.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.d.handleUpdateButtonAction=function(b){b=_.c(b,QOo);var h=_.c(b==null?void 0:b.updatedButton,_.OU);if(this.data&&b&&h){var y=this.data;y.targetId&&b.targetId&&y.targetId===b.targetId&&(this.data=h)}};
_.tm.Object.defineProperties(jm.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var b=this;if(this.data){var h=s55({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.Sx(b.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.Sx(b.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});h.alignByText=this.alignByText;return h}}}});
_.tm.Object.defineProperties(jm,{template:{configurable:!0,enumerable:!0,get:function(){if(xFo===void 0){var b=document.createElement("template");_.D(b,'\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>');xFo=b}b=xFo;return b}}});
jm.prototype.onClick=jm.prototype.onClick;_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],jm.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],jm.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],jm.prototype,"ytActionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],jm.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],jm.prototype,"isPressed",void 0);
_.V([_.C(),_.f("design:type",Object)],jm.prototype,"forceIconButton",void 0);_.V([_.C(),_.f("design:type",Object)],jm.prototype,"forceIconOnly",void 0);_.V([_.C(),_.f("design:type",Object)],jm.prototype,"forceModernIconButton",void 0);_.V([_.C(),_.f("design:type",Object)],jm.prototype,"skipCommandHandling",void 0);_.V([_.C(),_.f("design:type",Object)],jm.prototype,"alignByText",void 0);_.V([_.C(),_.f("design:type",Object)],jm.prototype,"buttonTooltipPosition",void 0);
_.V([_.C(),_.f("design:type",Object)],jm.prototype,"fitToVisibleBounds",void 0);_.V([_.C({computed:"computeTooltip(data)"}),_.f("design:type",Object)],jm.prototype,"tooltip",void 0);_.V([_.C(),_.f("design:type",Object)],jm.prototype,"overrides",void 0);_.V([_.C(),_.f("design:type",Boolean)],jm.prototype,"disabled",void 0);_.V([_.u3("click"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],jm.prototype,"onClick",null);
_.V([_.W("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.f("design:type",Object),_.f("design:paramtypes",[])],jm.prototype,"computedButtonShape",null);_.V([_.sB({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!QZa,cssBuildOptOut:!0}),_.sB({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!QZa,cssBuildOptOut:!0})],jm);var mFG;var vAW;var $9=function(){var b=_.g.apply(this,arguments)||this;b.empty_=!0;b.loadTime=Infinity;b.pendingPaint=!1;b.hasChange_=!1;b.oldThumbnail_=null;b.oldDelayedSrc_="";b.objectURL_=null;return b};
_.z($9,_.g);_.d=$9.prototype;_.d.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.d.ready=function(){var b=this.shouldShowPlaceholder_();_.Zm(this.hostElement,"no-transition",!0);b&&this.hostElement.classList.add("with-placeholder")};
_.d.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.d.isThumbPreloaded_=function(b){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",b)};
_.d.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||b_N};
_.d.computeThumbnailSrc_=function(b){return b&&b.thumbnails?_.Ss(b.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.d.computeAlt_=function(){var b=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&b||""};
_.d.thumbnailChanged_=function(){var b=_.L([this.thumbnail,this.oldThumbnail_]),h=b.next().value;b=b.next().value;this.oldThumbnail_=h;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(b=this.computeThumbnailSrc_(b),this.computeThumbnailSrc_(h)===b))return;_.r("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(h)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):h&&_.m$("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.Ob(this,this.onReload_):_.Ob(this,this.onShow_):this.resetImage_();h&&(this.hostElement.style.opacity=""+h.opacity)}};
_.d.delayedSrcChanged_=function(){var b=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===b||this.resetImage_()};
_.d.setSrc_=function(b){b?(_.$x(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.$x(this.hostElement).querySelector("#img").src=b):(_.$x(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.d.resetImage_=function(){TlY(this.hostElement);this.empty_=!0;this.setSrc_(b_N);this.ytRendererBehavior.invalidate(!1)};
_.d.observePlaceholderColor_=function(){var b=this.thumbnail&&this.thumbnail.placeholderColor;b?this.hostElement.style.backgroundColor=_.eI(b):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.d.onLoad_=function(){_.$x(this.hostElement).querySelector("#img").src&&_.$x(this.hostElement).querySelector("#img").src!==b_N&&(YKN(this.hostElement),this.notifyOnLoaded&&_.Sx(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.d.onError_=function(){var b=this;if(_.r("web_use_cache_for_image_fallback"))wZq(_.$x(this.hostElement).querySelector("#img").src).then(function(h){b.objectURL_=_.q9(h).toString();b.setSrc_(b.objectURL_)}).catch(function(){_.r("kevlar_woffle_fallback_image")&&b.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.d.onPrescanVisible=function(){this.onShow_()};
_.d.onVisible=function(){if(_.r("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.d.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var b=this.computeSrc_();b!==_.$x(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(b))}};
_.d.onReload_=function(){this.empty_=!1;var b=this.computeSrc_();b!==_.$x(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(b))};
_.d.shouldShowPlaceholder_=function(){return _.r("kevlar_thumbnail_bg")};
$9.prototype.observePlaceholderColor_=$9.prototype.observePlaceholderColor_;$9.prototype.delayedSrcChanged_=$9.prototype.delayedSrcChanged_;$9.prototype.thumbnailChanged_=$9.prototype.thumbnailChanged_;_.V([_.C({reflectToAttribute:!0}),_.f("design:type",String)],$9.prototype,"alt",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],$9.prototype,"ariaHidden",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",String)],$9.prototype,"ariaLabel",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],$9.prototype,"hidden",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",String)],$9.prototype,"id",void 0);_.V([_.B(_.tJ.YtVisibilityBehavior),_.f("design:type",Object)],$9.prototype,"ytVisibilityBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],$9.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",String)],$9.prototype,"delayedSrc",void 0);
_.V([_.C(),_.f("design:type",Object)],$9.prototype,"thumbnail",void 0);_.V([_.C({value:!1,reflectToAttribute:!0}),_.f("design:type",Boolean)],$9.prototype,"loaded",void 0);_.V([_.C(),_.f("design:type",Boolean)],$9.prototype,"notifyOnLoaded",void 0);_.V([_.C(),_.f("design:type",Number)],$9.prototype,"height",void 0);_.V([_.C(),_.f("design:type",Number)],$9.prototype,"width",void 0);_.V([_.C({value:function(){return"width"}}),
_.f("design:type",String)],$9.prototype,"dimension",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],$9.prototype,"fit",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],$9.prototype,"fitHeight",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],$9.prototype,"fitWidth",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",String)],$9.prototype,"objectFit",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",String)],$9.prototype,"objectPosition",void 0);_.V([_.C(),_.f("design:type",String)],$9.prototype,"preferredThumbnail",void 0);_.V([_.C({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.f("design:type",String)],$9.prototype,"alt_",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",String)],$9.prototype,"sharedTooltipText",void 0);
_.V([_.C(),_.f("design:type",Boolean)],$9.prototype,"ftlEligible",void 0);_.V([_.C({value:void 0}),_.f("design:type",String)],$9.prototype,"observeHiddenOption",void 0);_.V([_.C({value:"observe_once"}),_.f("design:type",String)],$9.prototype,"observePrescanOption",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],$9.prototype,"roundedContainer",void 0);
_.V([_.zj("thumbnail"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],$9.prototype,"thumbnailChanged_",null);_.V([_.zj("delayedSrc"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],$9.prototype,"delayedSrcChanged_",null);_.V([_.OB("thumbnail.placeholderColor"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],$9.prototype,"observePlaceholderColor_",null);
_.V([_.sB({is:"yt-img-shadow",disableElementRegistration:!0})],$9);var b_N=_.m$("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.$S()($9,"yt-img-shadow",function(){if(vAW===void 0){var b=document.createElement("template");_.D(b,'\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">');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;mFG===void 0&&(mFG=document.createElement("template"));var S=mFG;y.call(h,S.content.cloneNode(!0),b.content.firstChild);vAW=b}b=vAW;return b},{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 xaY;_.Le=new _.ca("SCREEN_MANAGER_TOKEN");xaY=new _.ca("LOG_INITIAL_SCREEN_TOKEN");var hs7=Uk({entities:{}});_.PP=p9(hs7)(hs7.entities,{selectSfvAudioItemPlaybackState:function(b,h){var y,S;b=(S=_.Mm(b,"sfvAudioItemCurrentlyPlayingEntity",h))!=null?S:void 0;return(y=b==null?void 0:b.sfvAudioItemPlaybackState)!=null?y:void 0},
playlistLoopStateEntitySelector:G75,toggleMenuServiceItemEntitySelector:k7I});_.Ke=_.T(function(b){function h(q){return _.c(q,_.cA)}
function y(){var q=S().isTogglingDisabled||I()&&S().toggledIsTogglingDisabled,dI=q||N()?I():!I();U(dI);e(!1);if(!q){var L4;(L4=P)==null||L4(!!dI)}var Rq;((Rq=a)==null?0:Rq())||_.QG(_.H9().resolve(_.Le),S().trackingParams);var Xn;if(!dI||!h(S().defaultButtonViewModel)||(Xn=a)!=null&&Xn()){var Ny;!h(S().toggledButtonViewModel)||((Ny=a)==null?0:Ny())||_.QG(_.H9().resolve(_.Le),h(S().toggledButtonViewModel).trackingParams)}else _.QG(_.H9().resolve(_.Le),h(S().defaultButtonViewModel).trackingParams)}
var S=b.data,F=b.buttonShapeOverrides,a=b.disableExplicitClickLogging,P=b.onToggle,K=b.style,n=b.useOutlinedIcon,X=b.className,u=function(){var q,dI;return I()?(q=b.animatedTextPropsToggled)==null?void 0:q.call(b):(dI=b.animatedTextPropsDefault)==null?void 0:dI.call(b)},O=_.s5(function(){return u()?Object.assign({},u(),{shouldAnimate:p()}):void 0},void 0,"Zp4uoe"),N=function(){var q;
return((q=w())==null?void 0:q.isToggled)!==void 0},t=_.L(_.ya(function(){var q,dI,L4;
return N()?(q=w())==null?void 0:q.isToggled:(L4=F==null?void 0:(dI=F())==null?void 0:dI.toggled)!=null?L4:S().isToggled})),R=t.next().value;
t=t.next().value;var I=R,U=t;t=_.L(_.ya(function(){var q,dI;return(q=b.animatedTextPropsToggled)==null?void 0:(dI=q.call(b))==null?void 0:dI.shouldAnimate}));
R=t.next().value;t=t.next().value;var p=R,e=t;R=_.L(_.pa(!1,void 0,"mq3Zfe"));var E=R.next().value,Y=R.next().value,w=_.NG(function(q){a:{var dI=S().entityKey,L4=S().toggledStateEntitySelectorType;if(L4)switch(L4){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!dI)break;q=_.PP.selectSfvAudioItemPlaybackState(q,dI);if(q==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){q={isToggled:!0};break a}if(q){q={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":q={isToggled:_.fHk(q).includes("engagement-panel-comments-section")};
break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":q={isToggled:_.fHk(q).includes("engagement-panel-live-chat-item-section")};break a;default:_.vX(new _.Gn("Error: entitySelectorType defined but not matched in selector.",q,L4))}q=void 0}return q}),x=function(){return Object.assign({},F==null?void 0:F(),{onToggle:y,
toggleable:!0,toggled:I(),focused:E()})};
return _.M("toggle-button-view-model",{"on:focusin":_.Zv(function(){var q=_.H9().resolve(_.XS(_.sG));q&&Y(q.isKeyBoardInUse());return!1}),
"on:focusout":_.Zv(function(){Y(!1);return!1})},_.M(_.H,{cond:function(){return I()?h(S().toggledButtonViewModel):h(S().defaultButtonViewModel)},
then:function(q){return _.M(_.EG,{data:q,className:X,style:K,useOutlinedIcon:n,buttonOverrides:x,animatedTextProps:O})}}))},"da");
_.Ke.idomCompat={callbacks:{onToggle:!0}};_.yd(_.T(function(b){return _.M("yt-toggle-button-view-model",{class:function(){var h;return(h=b.scopingClassName)==null?void 0:h.call(b)}},_.M(_.Ke,{data:function(){var h;
return(h=b.data)==null?void 0:h.call(b)},
buttonShapeOverrides:function(){var h;return(h=b.overrides)==null?void 0:h.call(b)},
animatedTextPropsDefault:function(){var h;return(h=b.animatedTextPropsDefault)==null?void 0:h.call(b)},
animatedTextPropsToggled:function(){var h;return(h=b.animatedTextPropsToggled)==null?void 0:h.call(b)},
disableExplicitClickLogging:function(){var h;return(h=b.disableExplicitClickLogging)==null?void 0:h.call(b)},
onToggle:function(h){var y;return(y=b.onToggle)==null?void 0:y.call(b,h)},
style:function(){var h;return(h=b.style)==null?void 0:h.call(b)},
useOutlinedIcon:function(){var h;return(h=b.useOutlinedIcon)==null?void 0:h.call(b)},
className:function(){var h;return(h=b.className)==null?void 0:h.call(b)}}))},"ea"),"yt-toggle-button-view-model",{props:{data:_.D4,
buttonShapeOverrides:_.D4,overrides:_.D4,animatedTextPropsDefault:_.D4,animatedTextPropsToggled:_.D4,disableExplicitClickLogging:_.D4,onToggle:_.v3,style:_.D4,useOutlinedIcon:_.D4,className:_.D4,scopingClassName:_.D4}});var Zw=function(){return _.g.apply(this,arguments)||this};
_.z(Zw,_.g);Zw.prototype.onTap=function(b){b.stopPropagation();b=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.eD("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:b})):this.ytLiveChatReduxBehavior.dispatch(_.R7("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:b}))};
_.tm.Object.defineProperties(Zw.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.engagementState)==null?void 0:b.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var b=_.c(this.data.toggleButton,_.zc),h;if(Number(((h=this.likeCountState)==null?void 0:h.likeCountIfIndifferentNumber)||"0")===0){var y;h=((y=this.data.likeCountPlaceholder)==null?void 0:y.content)||""}else{var S,F,a;h=((S=this.likeCountState)==null?void 0:(F=S.likeCountIfIndifferent)==null?void 0:F.content)||((a=this.data.likeCountPlaceholder)==null?void 0:a.content)||""}var P,K;y=((P=this.likeCountState)==null?void 0:(K=
P.likeCountIfLiked)==null?void 0:K.content)||"1";P=_.c(b.toggledButtonViewModel,_.cA);return Object.assign({},b,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.c(b.defaultButtonViewModel,_.cA),{title:h})},toggledButtonViewModel:{buttonViewModel:Object.assign({},P,{title:y})}})}}}});
Zw.prototype.onTap=Zw.prototype.onTap;_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],Zw.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Zw.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Xc),_.f("design:type",Object)],Zw.prototype,"ytLiveChatReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Zw.prototype,"data",void 0);
_.V([_.C({selectorArgs:["data.likeCountEntityKey"],selector:wk4}),_.f("design:type",Object)],Zw.prototype,"likeCountState",void 0);_.V([_.C({selectorArgs:["data.engagementStateKey"],selector:hsj}),_.f("design:type",Object)],Zw.prototype,"engagementState",void 0);_.V([_.W("data","engagementState"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Zw.prototype,"isLiked",null);
_.V([_.W("data","likeCountState","isLiked"),_.f("design:type",Object),_.f("design:paramtypes",[])],Zw.prototype,"toggleButton",null);_.V([_.u3("tap"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],Zw.prototype,"onTap",null);_.V([_.sB({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],Zw);
_.k(Zw,"yt-live-chat-like-button-view-model",function(){if(F4a===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;SJb===void 0&&(SJb=document.createElement("template"));var S=SJb;y.call(h,S.content.cloneNode(!0),b.content.firstChild);F4a=b}b=F4a;return b},{mode:0});var yOb;var S8P;var o$=function(){return _.g.apply(this,arguments)||this};
_.z(o$,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],o$.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],o$.prototype,"data",void 0);_.V([_.sB({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],o$);
_.k(o$,"yt-live-chat-paid-message-footer-renderer",function(){if(S8P===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;yOb===void 0&&(yOb=document.createElement("template"));var S=yOb;y.call(h,S.content.cloneNode(!0),b.content.firstChild);S8P=b}b=S8P;return b},{mode:0});var FhP;var aHe;var dg7;var j5P,$gN=function(){if(j5P!==void 0)return j5P;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;dg7===void 0&&(dg7=document.createElement("template"));var S=dg7;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return j5P=b};var M1=function(){return _.g.apply(this,arguments)||this};
_.z(M1,_.g);M1.prototype.onTap=function(b){b.stopPropagation()};
_.tm.Object.defineProperties(M1.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var b=_.c(this.data.replyButton,_.cA),h,y,S,F,a,P,K,n=Number(((h=this.replyCountState)==null?void 0:h.replyCountNumber)||"0")===0?(y=this.data)==null?void 0:(S=y.replyCountPlaceholder)==null?void 0:S.content:((F=this.replyCountState)==null?void 0:(a=F.replyCount)==null?void 0:a.content)||((P=this.data)==null?void 0:(K=P.replyCountPlaceholder)==null?void 0:K.content)||"",X;return Object.assign({},
b,{title:n,accessibilityText:(X=this.replyCountState)==null?void 0:X.replyButtonAccessibilityText})}}}});
_.tm.Object.defineProperties(M1,{template:{configurable:!0,enumerable:!0,get:function(){return $gN()}}});
M1.prototype.onTap=M1.prototype.onTap;_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],M1.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],M1.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Xc),_.f("design:type",Object)],M1.prototype,"ytLiveChatReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],M1.prototype,"data",void 0);
_.V([_.C({selectorArgs:["data.replyCountEntityKey"],selector:function(b,h){return _.Mm(b.entities,"replyCountEntity",h)}}),
_.f("design:type",Object)],M1.prototype,"replyCountState",void 0);_.V([_.W("data","replyCountState"),_.f("design:type",Object),_.f("design:paramtypes",[])],M1.prototype,"buttonViewModel",null);_.V([_.u3("tap"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],M1.prototype,"onTap",null);_.V([_.sB({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],M1);_.k(M1,"yt-live-chat-reply-button-view-model",function(){return $gN()},{mode:0});var LhM;var Pr8;var ne=function(){var b=_.g.apply(this,arguments)||this;b.ariaLabel="";return b};
_.z(ne,_.g);
ne.prototype.dataChanged=function(){for(var b=(0,_.Mh)(_.$x(this.hostElement).querySelector("#image"));b.firstChild;)b.removeChild(b.firstChild);if(this.data)if(this.data.icon){var h=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(h.polymerController.icon="yt-sys-icons:shield_empty",h.polymerController.defaultToFilled=!0):h.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();b.appendChild(h)}else if(this.data.customThumbnail){h=document.createElement("img");
var y=_.UcY(this.data.customThumbnail.thumbnails,16);y?(h.src=y,b.appendChild(h),h.setAttribute("alt",this.hostElement.ariaLabel||"")):_.vX(new _.Gn("Could not compute URL for thumbnail",this.data.customThumbnail))}};
ne.prototype.identity=function(b){return b};
ne.prototype.computeType=function(b){return P3(b||void 0)};
ne.prototype.dataChanged=ne.prototype.dataChanged;_.V([_.C(),_.f("design:type",Object)],ne.prototype,"data",void 0);_.V([_.C({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.f("design:type",Object)],ne.prototype,"ariaLabel",void 0);_.V([_.C({computed:"computeType(data)",reflectToAttribute:!0}),_.f("design:type",String)],ne.prototype,"type",void 0);
_.V([_.C({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.f("design:type",String)],ne.prototype,"sharedTooltipText",void 0);_.V([_.C({reflectToAttribute:!0,value:function(){return _.r("enable_new_shield_moderator_badge")}}),
_.f("design:type",Boolean)],ne.prototype,"enableNewModeratorBadge",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],ne.prototype,"dataChanged",null);_.V([_.sB({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],ne);
_.k(ne,"yt-live-chat-author-badge-renderer",function(){if(Pr8===void 0){var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;LhM===void 0&&(LhM=document.createElement("template"));var S=LhM;y.call(h,S.content.cloneNode(!0),b.content.firstChild);Pr8=b}b=Pr8;return b},{mode:0});var KhW;var Z_N;var XB=function(){return _.g.apply(this,arguments)||this};
_.z(XB,_.g);_.d=XB.prototype;_.d.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"}}}}};
_.d.computeBadgesInsideChip=function(b){return b?b.filter(function(h){return P3(h.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.d.computeBadgesOutsideChip=function(b){return this.prependChatBadges||!b?[]:b.filter(function(h){h=P3(h.liveChatAuthorBadgeRenderer);return h!=="verified"&&h!=="owner"})};
_.d.computeBadgesBeforeChip=function(b){return this.prependChatBadges&&b?b.filter(function(h){h=P3(h.liveChatAuthorBadgeRenderer);return h!=="verified"&&h!=="owner"}):[]};
_.d.computeIsHighlighted=function(b,h){var y=!!XWN(b,"owner"),S=!!XWN(b,"verified");b=!!XWN(b,"moderator");return(y||S&&!b)&&!h};
_.d.computeAuthorType=function(b){return nCj(b)};
_.d.computeAuthorClass=function(b,h){return h?(b?b+" ":"")+"single-line":b};
_.d.onSeedColorChanged=function(){_.r("live_chat_author_name_color_usernames")||_.r("live_chat_seed_color_usernames")||_.r("live_chat_colored_usernames")?!this.authorNameColor||this.authorType||this.isHighlighted||this.hostElement.classList.contains("yt-live-chat-paid-message-renderer")||this.hostElement.classList.contains("yt-live-chat-paid-sticker-renderer")||(this.username.style.color=this.authorNameColor):_.r("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
XB.prototype.onSeedColorChanged=XB.prototype.onSeedColorChanged;_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],XB.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],XB.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],XB.prototype,"authorName",void 0);_.V([_.C(),_.f("design:type",Array)],XB.prototype,"authorBadges",void 0);
_.V([_.C({computed:"computeAuthorType(authorBadges)"}),_.f("design:type",String)],XB.prototype,"authorType",void 0);_.V([_.C({computed:"computeAuthorClass(authorType, singleLine)"}),_.f("design:type",String)],XB.prototype,"authorClass",void 0);_.V([_.C({computed:"computeBadgesInsideChip(authorBadges)"}),_.f("design:type",Array)],XB.prototype,"badgesInsideChip",void 0);_.V([_.C({computed:"computeBadgesOutsideChip(authorBadges)"}),_.f("design:type",Array)],XB.prototype,"badgesOutsideChip",void 0);
_.V([_.C({computed:"computeBadgesBeforeChip(authorBadges)"}),_.f("design:type",Array)],XB.prototype,"badgesBeforeChip",void 0);_.V([_.C({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.f("design:type",Boolean)],XB.prototype,"isHighlighted",void 0);_.V([_.C({reflectToAttribute:!0,value:function(){return _.r("enable_new_shield_moderator_badge")}}),
_.f("design:type",Boolean)],XB.prototype,"enableNewModeratorTextColor",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],XB.prototype,"singleLine",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],XB.prototype,"disableHighlighting",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],XB.prototype,"dashboardMoneyFeed",void 0);_.V([_.C({value:_.r("live_chat_prepend_badges"),reflectToAttribute:!0}),_.f("design:type",Boolean)],XB.prototype,"prependChatBadges",void 0);
_.V([_.C(),_.f("design:type",String)],XB.prototype,"authorNameColor",void 0);_.V([_.to("#author-name"),_.f("design:type",HTMLDivElement)],XB.prototype,"username",void 0);_.V([_.OB("authorNameColor"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],XB.prototype,"onSeedColorChanged",null);_.V([_.sB({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],XB);
_.k(XB,"yt-live-chat-author-chip",function(){if(Z_N===void 0){var b=document.createElement("template");_.D(b,'\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>');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;KhW===void 0&&(KhW=document.createElement("template"));var S=KhW;y.call(h,S.content.cloneNode(!0),b.content.firstChild);Z_N=b}b=Z_N;return b},{mode:0});var os8;var M$b;var HP=function(){var b=_.g.apply(this,arguments)||this;b.debounceCommand=_.se(function(h){b.ytComponentBehavior.resolveCommand(h)},1500);
return b};
_.z(HP,_.g);HP.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var b=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",h,y,S=this.isHearted?(h=this.data)==null?void 0:h.unheartCommand:(y=this.data)==null?void 0:y.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.eD("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:b}));(b=_.YS(S))&&this.debounceCommand(b)}};
_.tm.Object.defineProperties(HP.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var b,h;if(!((b=this.data)==null?0:(h=b.creatorThumbnail)==null?0:h.sources))return{};b={thumbnails:[]};h={};h.url=this.data.creatorThumbnail.sources[0].url;b.thumbnails.push(h);return b}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var b,h;return((b=this.engagementState)==null?void 0:b.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((h=this.engagementState)==null?void 0:h.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var b,h;return((b=this.engagementState)==null?void 0:b.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((h=this.engagementState)==null?void 0:h.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.engagementState)==null?void 0:b.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var b,h,y;return((b=this.engagementState)==null?void 0:b.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((h=this.engagementState)==null?void 0:h.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((y=this.engagementState)==null?void 0:y.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}}});
HP.prototype.onTap=HP.prototype.onTap;_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],HP.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],HP.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Xc),_.f("design:type",Object)],HP.prototype,"ytLiveChatReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],HP.prototype,"data",void 0);
_.V([_.C({selectorArgs:["data.engagementStateKey"],selector:hsj}),_.f("design:type",Object)],HP.prototype,"engagementState",void 0);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],HP.prototype,"thumbnailDetails",null);_.V([_.W("data","engagementState"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],HP.prototype,"isHearted",null);_.V([_.W("data","engagementState"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],HP.prototype,"isEditable",null);
_.V([_.W("data","engagementState"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],HP.prototype,"showCreatorView",null);_.V([_.W("data","engagementState"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],HP.prototype,"showButton",null);_.V([_.W("data","isHearted"),_.f("design:type",String),_.f("design:paramtypes",[])],HP.prototype,"label",null);_.V([_.W("data","isHearted"),_.f("design:type",Object),_.f("design:paramtypes",[])],HP.prototype,"heartHoverText",null);
_.V([_.u3("tap"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],HP.prototype,"onTap",null);_.V([_.sB({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],HP);
_.k(HP,"yt-live-chat-creator-heart-view-model",function(){if(M$b===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;os8===void 0&&(os8=document.createElement("template"));var S=os8;y.call(h,S.content.cloneNode(!0),b.content.firstChild);M$b=b}b=M$b;return b},{mode:0});var uu=function(b,h){this.serviceId=new oJe(b,h)};
uu.prototype.toString=function(){return this.serviceId.toString()};var nsa=function(){this.internalMap={}};
_.d=nsa.prototype;_.d.contains=function(b){return Object.prototype.hasOwnProperty.call(this.internalMap,b)};
_.d.get=function(b){if(this.contains(b))return this.internalMap[b]};
_.d.set=function(b,h){this.internalMap[b]=h};
_.d.getKeys=function(){return Object.keys(this.internalMap)};
_.d.remove=function(b){delete this.internalMap[b]};var Ot=function(){this.mappings=new nsa;this.errorCallbacks=new Set};
Ot.prototype.getModuleId=function(b){return b.serviceId.getModuleId()};
Ot.prototype.get=function(b){var h=this.mappings.get(b.toString());return Xka(this,h,b)};
Ot.prototype.getMultipleAsync=function(){var b=_.x$.apply(0,arguments),h=this,y=b.map(function(n){return h.getModuleId(n)}),S=b.map(function(n){return h.mappings.get(n.toString())}).filter(function(n){return n});
if(S.length===b.length)return _.$p(S.map(function(n,X){return Xka(h,n,b[X])}));
var F=xT().loadMultiple(y);S=_.wb(y.map(function(n){return F[n]}));
var a=document.hidden,P=-1,K=_.tj("get_async_timeout_ms",-1);K>-1&&(P=setTimeout(function(){_.vX(new _.Gn("Module timeout.",y,a,document.hidden))},K));
return _.le(S.then(function(){return b.map(function(n){return Xka(h,h.mappings.get(n.toString()),n)})}).thenCatch(function(n){for(var X=_.L(h.errorCallbacks),u=X.next();!u.done;u=X.next())u=u.value,u(n);
throw n;}),function(){clearTimeout(P)})};
Ot.prototype.registerService=function(b,h){this.mappings.set(b.toString(),{type:"mapping",value:h});return b};
var Xka=function(b,h,y){switch(h.type){case "mapping":return h.value;case "factory":return h=h.value(),b.mappings.set(y.toString(),{type:"mapping",value:h}),h;default:return _.m5(h)}};
Ot.prototype.onLoadError=function(b){var h=this;this.errorCallbacks.add(b);return function(){h.errorCallbacks.delete(b)}};
_.N1=new Ot;var H_e=function(){};
_.d=H_e.prototype;
_.d.JSC$14356_getRequest=function(b,h,y){h=h===void 0?{}:h;y=y===void 0?OIW:y;var S=h;if(this.isNavigationCommand()){var F,a=(F=_.c(b==null?void 0:b.commandMetadata,_.ZW))==null?void 0:F.url;S=_.NnY(b.clickTrackingParams,!0,!1,a,this.JSC$14356_getClientScreen(S))}else S=_.NnY(b.clickTrackingParams,!1,this.includeCsn);S={context:S};if(F=this.getExtension(b))return this.JSC$14356_buildRequest(S,F,h),F=this.getApiUrl(b),a=Object.assign({},{command:b},this.getRequestConfig(b,h)),S={input:F,requestShell:iX(F),
innerTubeRequest:S,config:a},S.config.authStrategy?S.config.authStrategy.identity=y:S.config.authStrategy={identity:y},(b=this.JSC$14356_getRequestKey(b,h))&&!S.config.requestKey&&(S.config.requestKey=b),S;b=new _.Gn("Error: Failed to create Request from Command.",b);_.QT(b)};
_.d.getApiUrl=function(b){var h=_.yk(this.getApiPaths(b)),y;(b=(y=_.c(b.commandMetadata,_.ZW))==null?void 0:y.apiUrl)&&(h=b);return mBk(QBI(h))};
_.d.isNavigationCommand=function(){return!1};
_.d.JSC$14356_getClientScreen=function(){};
_.d.JSC$14356_getRequestKey=function(){};
_.d.getRequestConfig=function(){};
_.tm.Object.defineProperties(H_e.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var tK=function(){};
_.z(tK,H_e);tK.prototype.JSC$14363_getStoreKey=function(){};
tK.prototype.JSC$14356_getRequestKey=function(b,h){h=h===void 0?{}:h;return this.JSC$14363_getStoreKey(b,h)};var ra=function(){};
_.z(ra,tK);ra.prototype.JSC$14356_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:iX("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
ra.prototype.getApiPaths=function(){return[]};
ra.prototype.getExtension=function(){};
ra.prototype.JSC$14356_buildRequest=function(){};var uzo={},O_G=(uzo.GET_DATASYNC_IDS=YE(ra),uzo);var NFe,t$a,rOa,BFM,cP,DgN,cO7,zs8,Rso;NFe="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");t$a=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PanelResponse"];
_.Ek=function(b,h,y,S,F,a,P,K,n){this.endpointMap=b;this.networkManager=h;this.authService=y;this.responseProcessorMap=S;this.innertubeResponseStore=F;this.contextProcessors=a;this.asyncContextProcessors=P;this.localInnertubeRouter=K;this.requestSequencer=n;this.inflightRequests=new Map;b.signalEndpointMap||(b.signalEndpointMap={});b.signalEndpointMap=Object.assign({},O_G,b.signalEndpointMap)};
rOa=function(b,h,y,S,F,a,P,K,n){if(_.Ek.instance!==void 0){if(S=_.Ek.instance,b=[b!==S.endpointMap,h!==S.networkManager,y!==S.authService,F!==S.innertubeResponseStore,a!==S.contextProcessors,P!==S.asyncContextProcessors,K!==S.localInnertubeRouter],b.some(function(X){return X}))throw new _.Gn("InnerTubeTransportService is already initialized",b);
}else _.Ek.instance=new _.Ek(b,h,y,S,F,a,P,K,n)};
_.f9=function(b,h,y){var S=S===void 0?OIW:S;var F=cO7(b,h);return F?new _.Uu(function(a,P){var K,n,X,u,O;return _.Z(function(N){switch(N.nextAddress){case 1:return N.yield(F,2);case 2:K=N.yieldResult;n=K.JSC$14356_getRequest(h,y,S);if(!n){P(new _.Gn("Error: Failed to build request for command.",h));N.jumpTo(0);break}TM(n.input);u=((X=n.requestShell)==null?void 0:X.mode)==="cors"?"cors":void 0;if(b.authService.syncHeaders){O=Rso(n.config,u);N.jumpTo(4);break}return N.yield(zs8(n.config,u),5);case 5:O=
N.yieldResult;case 4:a(DgN(b,n,O)),_.g3(N)}})}):_.UQ(new _.Gn("Error: No request builder found for command.",h))};
BFM=function(b,h,y,S){var F=F===void 0?OIW:F;var a,P,K,n,X,u,O,N,t,R,I,U,p,e,E,Y,w,x;return _.Z(function(q){switch(q.nextAddress){case 1:a=Q5I(h,b.endpointMap);if(!a)throw new _.Gn("Error: No streaming request builder found for command",h);P=a.JSC$14356_getRequest(h,y,F);if(!P)throw new _.Gn("Failed to build YtRequest for streaming Command",h);if((K=b.localInnertubeRouter)==null||!K.shouldPreferLocalResponse(P.input,P.innerTubeRequest)){q.jumpTo(2);break}return q.yield(b.localInnertubeRouter.localInnertubeResponse(P.input,
P.innerTubeRequest),3);case 3:return n=q.yieldResult,X={},n.playerResponse&&(cP(b,n.playerResponse,P),X.player=n.playerResponse,(u=S)==null||u(X,n)),n.watchNextResponse&&(cP(b,n.watchNextResponse,P),X.content=n.watchNextResponse,(O=S)==null||O(X,n)),q.return(X);case 2:t=((N=P.requestShell)==null?void 0:N.mode)==="cors"?"cors":void 0;if(b.authService.syncHeaders){R=Rso(P.config,t);q.jumpTo(4);break}return q.yield(zs8(P.config,t),5);case 5:R=q.yieldResult;case 4:return p=(U=(I=P.requestShell)==null?
void 0:I.headers)!=null?U:{},P.requestShell=Object.assign({},P.requestShell,{headers:Object.assign({},p,R)}),e=Object.assign({},P.requestShell),E=JSON.stringify(P.innerTubeRequest),P.requestShell.method==="POST"&&(e=Object.assign({},e,{body:E})),Y=function(dI,L4){cP(b,L4.playerResponse||L4.watchNextResponse||L4.reelItemWatchResponse||L4.reelWatchSequenceResponse,P);S==null||S(dI,L4);_.r("web_watch_stop_scheduler_on_player_response")&&L4.playerResponse&&Rbo()},w={},q.yield(IH8(b.networkManager,P.input,
e,Y),6);
case 6:return w=q.yieldResult,((x=P.config)==null?0:x.responseTick)&&_.pI(P.config.responseTick),q.return(w)}})};
_.cy=function(b,h,y,S,F){F=F===void 0?{authStrategy:{identity:OIW}}:F;var a=a===void 0?!0:a;var P=function(){};
P=$un(duf(y));h.context||(h.context=_.NnY(S,a));return new _.Uu(function(K){var n,X,u,O,N;return _.Z(function(t){if(t.nextAddress==1)return n=QBI(y),X=_.EE(n),b.authService.syncHeaders?(u=Rso(F,X),t.jumpTo(2)):t.yield(zs8(F,X),3);t.nextAddress!=2&&(u=t.yieldResult);O=mBk(QBI(y));N={input:O,requestShell:iX(O),innerTubeRequest:h,config:F};K(DgN(b,N,u,P));_.g3(t)})})};
cP=function(b,h,y){var S;if(h&&!(h==null?0:(S=h.sequenceMetaData)==null?0:S.skipProcessing)&&b.responseProcessorMap){S=_.L(NFe);for(var F=S.next();!F.done;F=S.next())F=F.value,b.responseProcessorMap[F]&&b.responseProcessorMap[F].handleResponse(h,y)}};
DgN=function(b,h,y,S){S=S===void 0?function(){}:S;
var F,a,P,K,n,X,u,O,N,t,R,I,U,p,e,E,Y,w,x,q,dI,L4,Rq,Xn,Ny,gI,YU,VN,Hb,vF,xU,Xa,rG,Wb,Xx,Bb,oq,kU,O7,io;return _.Z(function(cb){switch(cb.nextAddress){case 1:P=(F=h.config)==null?void 0:(a=F.storeStrategy)==null?void 0:a.storeKey;if(!(P&&b.innertubeResponseStore&&b.innertubeResponseStore.has(P))||((K=h.config)==null?0:(n=K.storeStrategy)==null?0:n.disableCache)){cb.jumpTo(2);break}return cb.yield(b.innertubeResponseStore.get(P),3);case 3:if((X=cb.yieldResult)&&!X.isExpired())return cb.return(Promise.resolve(_.de(X)));
case 2:if(!((u=h)==null?0:(O=u.innerTubeRequest)==null?0:O.context)){cb.jumpTo(4);break}N=h.innerTubeRequest.context;if(!(b.asyncContextProcessors&&b.asyncContextProcessors.length>0)){cb.jumpTo(5);break}t=[];R=_.L(b.asyncContextProcessors);for(I=R.next();!I.done;I=R.next())U=I.value,p=U.processContext(h),p.wrappedPromise_&&t.push(p.wrappedPromise_);if(!(t.length>0)){cb.jumpTo(5);break}return cb.yield(Promise.all(t),5);case 5:e=_.L(b.contextProcessors||[]),E=e.next();case 8:if(E.done){cb.jumpTo(4);
break}Y=E.value;return cb.yield(Y.processContext(N),9);case 9:E=e.next();cb.jumpTo(8);break;case 4:if((w=b.localInnertubeRouter)==null||!w.shouldPreferLocalResponse(h.input,h.innerTubeRequest)){cb.jumpTo(12);break}return cb.yield(b.localInnertubeRouter.localInnertubeResponse(h.input,h.innerTubeRequest),13);case 13:return x=cb.yieldResult,cP(b,x,h),cb.return(x);case 12:return(L4=(dI=h.config)==null?void 0:dI.requestKey)&&b.inflightRequests.has(L4)?q=b.inflightRequests.get(L4):(Rq=JSON.stringify(h.innerTubeRequest),
gI=(Ny=(Xn=h.requestShell)==null?void 0:Xn.headers)!=null?Ny:{},h.requestShell=Object.assign({},h.requestShell,{headers:Object.assign({},gI,y)}),YU=Object.assign({},h.requestShell),h.requestShell.method==="POST"&&(YU=Object.assign({},YU,{body:Rq})),((VN=h.config)==null?0:VN.requestTick)&&_.pI(h.config.requestTick),Hb=function(){return b.networkManager.fetch(h.input,YU,h.config)},q=b.requestSequencer?Whb(b.requestSequencer,h,Hb):Hb(),L4&&b.inflightRequests.set(L4,q)),cb.yield(q,14);
case 14:(vF=cb.yieldResult)&&_.r("web_streaming_player")&&Array.isArray(vF)&&(vF=vF[0].playerResponse);if(vF&&"error"in vF&&((xU=vF)==null?0:(Xa=xU.error)==null?0:Xa.details))for(rG=vF.error.details,Wb=_.L(rG),Xx=Wb.next();!Xx.done;Xx=Wb.next())Bb=Xx.value,(oq=Bb["@type"])&&t$a.indexOf(oq)>-1&&(delete Bb["@type"],vF=Bb);L4&&b.inflightRequests.has(L4)&&b.inflightRequests.delete(L4);((kU=h.config)==null?0:kU.responseTick)&&_.pI(h.config.responseTick);if(vF||(O7=b.localInnertubeRouter)==null||!O7.canProvideFallbackResponse(h.input,
h.innerTubeRequest)){cb.jumpTo(15);break}return cb.yield(b.localInnertubeRouter.localFallbackInnertubeResponse(h.input,h.innerTubeRequest),16);case 16:vF=cb.yieldResult;case 15:return cP(b,vF,h),((io=h.config)==null?0:io.processorTick)&&_.pI(h.config.processorTick),S(),cb.return(vF||void 0)}})};
_.ip=function(b,h){return xgF(h,b.endpointMap)};
cO7=function(b,h){b=mgn(h,b.endpointMap);if(b!==void 0)return Promise.resolve(b)};
zs8=function(b,h){var y,S,F,a;return _.Z(function(P){if(P.nextAddress==1){F=(y=b)==null?void 0:(S=y.authStrategy)==null?void 0:S.sessionIndex;var K=P.yield;var n=_.$p(aTU({sessionIndex:F}));return K.call(P,n,2)}a=P.yieldResult;return P.return(Promise.resolve(Object.assign({},vsN(h),a)))})};
Rso=function(b,h){var y;b=b==null?void 0:(y=b.authStrategy)==null?void 0:y.sessionIndex;y=aTU({sessionIndex:b});return Object.assign({},vsN(h),y)};var AOw,UgW,pka,JO7,esW,Cra,Y8W,TFG,Dw,G7e,k7G,s5e,V$W;AOw=0;UgW=/tone[1-5]/;pka=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");JO7="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
esW=Number.MAX_SAFE_INTEGER;Cra=RegExp("\ufe0f","g");_.R$=function(b){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;b&&_.gs5(this,b)};
_.gs5=function(b,h){try{_.Aj(h,{context:b,onSuccess:function(S,F){Array.isArray(F)?b.load(F):(S=new _.Gn("Emoji manager JSON response was not an array!",{response:F}),_.QT(S))},
onError:function(S){S=new _.Gn("Failed to retrieve emoji manager initial JSON data!",{url:h,statusCode:_.RA(S).toString()});_.vX(S)}})}catch(S){var y=new _.Gn("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:h});
_.vX(y)}};
_.R$.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.R$.prototype.load=function(b,h){if(h)if(b.length)b=b.concat(h.emojis);else{this.emojis=h.emojis;this.emojiMap=h.emojiMap;this.emojiShortcutMap=h.emojiShortcutMap;this.emojiShortcutCharMap=s5e(h);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=h.emojiRegex;return}this.emojis=[].concat(_.f$(new Set(this.emojis.concat(b))));this.hasInitializedShortcutCharMap=!1;b=Array(this.emojis.length);for(h=0;h<this.emojis.length;h++){var y=this.emojis[h];if(y.emojiId){this.emojiMap[y.emojiId]=y;this.emojiMap[y.emojiId].index=
h;for(var S=0;y.shortcuts&&S<y.shortcuts.length;S++)this.emojiShortcutMap[y.shortcuts[S].toLocaleLowerCase()]=y;b[h]=y.isCustomEmoji&&y.shortcuts?y.shortcuts[0]:y.emojiId}}b.sort(function(F,a){return a.length-F.length});
if(b.length)try{this.emojiRegex=new RegExp(b.join("|").replace("*","\\*"),"gi")}catch(F){this.emojiRegex=/$./}else this.emojiRegex=/$./};
Y8W=function(b,h){h=_.L(h);for(var y=h.next();!y.done;y=h.next()){var S=y.value;if(S.emojiId&&b.emojiMap[S.emojiId]){y=Object.assign({},b.emojiMap[S.emojiId],S);b.emojiMap[S.emojiId]=y;var F=void 0;y.index&&((F=b.emojis[y.index])==null?void 0:F.emojiId)===S.emojiId&&(b.emojis[y.index]=y);S=void 0;if((S=y.shortcuts)==null?0:S.length)for(b.hasInitializedShortcutCharMap=!1,S=_.L(y.shortcuts),F=S.next();!F.done;F=S.next())b.emojiShortcutMap[F.value.toLocaleLowerCase()]=y}}};
TFG=function(b){var h,y;_.Z(function(S){if(S.nextAddress==1)return S.yield(_.K0.getInstance(),2);if(S.nextAddress!=3)return(h=S.yieldResult)?S.yield(h.get("ytlc-emoji-pref"),3):S.return();(y=S.yieldResult)&&Y8W(b,Object.keys(y).map(function(F){return{emojiId:F,stickyPrefId:y[F]}}).filter(function(F){return!!F.emojiId&&!!F.stickyPrefId}));
_.g3(S)})};
_.zu=function(b,h,y){return(b=b.emojiMap[h])&&(!b.isLocked||y!==void 0&&y)?b:void 0};
Dw=function(b,h,y){y=_.zu(b,h,y===void 0?!1:y);var S=h.match("\u200d");y&&b.skinTone!==0&&(b=(S==null?void 0:S.length)===1?_.zu(b,h.replace("\u200d",pka[b.skinTone]+"\u200d")):_.zu(b,h+pka[b.skinTone]))&&(y=b);return y};
G7e=function(b,h){var y=b.emojiMap[h];return(y==null?0:y.stickyPrefId)?b.emojiMap[y.stickyPrefId]:Dw(b,h)};
_.PV=function(b,h){b=b.emojiShortcutMap[h.toLocaleLowerCase()];return!b||b.isLocked?null:b};
k7G=function(b,h,y){return s5e(b,y===void 0?!1:y)[h]||{}};
s5e=function(b,h){h=h===void 0?!1:h;if(!b.hasInitializedShortcutCharMap){b.hasInitializedShortcutCharMap=!0;for(var y=0;y<b.emojis.length;y++){var S=b.emojis[y];if(!(S.isLocked||h&&S.isCustomEmoji&&S.emojiId&&!b.pickerCustomEmojiIds.includes(S.emojiId)))for(var F=0;S.shortcuts&&F<S.shortcuts.length;F++){var a=S.shortcuts[F];a.startsWith(":_")&&S.isCustomEmoji&&(b.emojiShortcutCharMap[":_"]==null&&(b.emojiShortcutCharMap[":_"]=Object.create(null)),b.emojiShortcutCharMap[":_"][a]=S);if(!(a.length<3||
!S.isCustomEmoji&&UgW.test(a))){var P=a.substr(0,3).toLocaleLowerCase();b.emojiShortcutCharMap[P]==null&&(b.emojiShortcutCharMap[P]=Object.create(null));b.emojiShortcutCharMap[P][a]=S}}}}return b.emojiShortcutCharMap};
_.R$.prototype.createEmoji=function(b,h){h=h===void 0?!0:h;var y=document.createElement("img");b.isCustomEmoji||y.classList.add("small-emoji");y.classList.add("emoji");y.classList.add("yt-formatted-string");y.src=b.image?_.Ss(b.image.thumbnails,this.emojiSize)||"":"";var S=void 0;b.image&&b.image.accessibility&&b.image.accessibility.accessibilityData&&(S=b.image.accessibility.accessibilityData.label);y.alt=S?S:(b.isCustomEmoji&&b.shortcuts?b.shortcuts[0]:b.emojiId)||"";b.isCustomEmoji&&(y.dataset.emojiId=
b.emojiId);_.nF&&(y.setAttribute("contenteditable","false"),y.setAttribute("unselectable","on"));h&&(b.shortcuts&&b.shortcuts.length&&y.setAttribute("shared-tooltip-text",b.shortcuts[0]),y.id="emoji-"+AOw++);return y};
_.R$.prototype.createDocumentFragment=function(b,h,y,S){h=h===void 0?!1:h;y=y===void 0?!0:y;S=S===void 0?!1:S;b=b.replace(Cra,"");for(var F=document.createDocumentFragment(),a=0,P,K=0;(P=this.emojiRegex.exec(b))!=null;){var n=_.zu(this,P[0])||_.PV(this,P[0]);!n||n.isCustomEmoji&&!h||(n=this.createEmoji(n,y),a!==P.index&&F.appendChild(document.createTextNode(b.substring(a,P.index))),F.appendChild(n),a=P.index+P[0].length,K++)}if(!S||K)return F.appendChild(document.createTextNode(b.substr(a))),F};
V$W=function(b,h,y){var S,F,a,P,K,n,X,u,O;return _.Z(function(N){if(N.nextAddress==1){if(!h.emojiId||!b.emojiMap[h.emojiId])return N.return();S=Object.assign({},b.emojiMap[h.emojiId],{stickyPrefId:y});b.emojiMap[h.emojiId]=S;h.index&&((F=b.emojis[h.index])==null?void 0:F.emojiId)===h.emojiId&&(b.emojis[h.index]=S);if((a=h.shortcuts)==null?0:a.length)for(b.hasInitializedShortcutCharMap=!1,P=_.L(h.shortcuts),K=P.next();!K.done;K=P.next())n=K.value,b.emojiShortcutMap[n.toLocaleLowerCase()]=S;return N.yield(_.K0.getInstance(),
2)}if(N.nextAddress!=4)return(X=N.yieldResult)?N.yield(X.get("ytlc-emoji-pref"),4):N.jumpTo(0);O=(u=N.yieldResult)!=null?u:{};O[h.emojiId]=y;return N.yield(X.set("ytlc-emoji-pref",O,esW),0)})};
_.I$=new _.R$;var fHa;_.BP={};
fHa={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.r("web_context_menu_a11y_opacity_visibility"),reflectToAttribute:!0},timestampString:{type:String,computed:"computeTimestampString(data)"},popupPositionTarget:{type:Object,computed:"identity(menuButton)"},menuButton:Object,menuVisible:{type:Boolean,
computed:"computeMenuVisible_(menuOpen, menuFocused)",reflectToAttribute:!0},menuOpen:{type:Boolean,value:!1},menuFocused:{type:Boolean,value:!1},emojiManager:Object,participantsManager:Object,isDeleted:{type:Boolean,value:!1,computed:"truthy(data.deletedStateMessage)",reflectToAttribute:!0},hasOriginalContent:{type:Boolean,value:!1,computed:"truthy(data.showOriginalContentMessage)"},hasInlineActionButtons:{type:Boolean,computed:"computeHasInlineActionButtons(data)",reflectToAttribute:!0},modern:{type:Boolean,
reflectToAttribute:!0,value:_.r("web_button_rework_with_live")},filledButtonOverrides:{type:Object,value:{type:"filled",style:"overlay"}}},supportsInlineActionButtons:!1,listeners:{"yt-popup-opened":"onYtPopupOpened_","yt-popup-closed":"onYtPopupClosedOrCanceled_","yt-popup-canceled":"onYtPopupClosedOrCanceled_",tap:"onItemTap"},TIME_FORMATTER:new QE(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 b=_.$x(this.hostElement||this).querySelector("#inline-action-button-container");b&&b.setAttribute("aria-hidden","true");this.menuButton=_.$x(this.hostElement).querySelector("#menu-button")},
attached:function(){var b=this.menuButton;b&&(b.addEventListener("focusin",_.Hl(this,this.onMenuButtonFocus_)),b.addEventListener("focusout",_.Hl(this,this.onMenuButtonBlur_)))},
detached:function(){var b=this.menuButton;b&&(b.removeEventListener("focusin",_.Hl(this,this.onMenuButtonFocus_)),b.removeEventListener("focusout",_.Hl(this,this.onMenuButtonBlur_)))},
identity:_.e5,truthy:function(b){return!!b},
computeTimestampString:function(b){return b?b.timestampText?this.getSimpleString(b.timestampText):this.TIME_FORMATTER.format(new Date(b.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(b){return b},
computeMenuVisible_:function(b,h){return b||h},
computeHasInlineActionButtons:function(b){if(!b)return!1;var h,y;return!((h=b.inlineActionButtons)==null||!h.length)||!((y=b.additionalInlineActionButtons)==null||!y.length)},
createDocumentFragmentFromString:function(b){var h=_.I$.createDocumentFragment.bind(_.I$),y;if((y=this.participantsManager)==null||!y.viewerRegex)return h(b);y=document.createDocumentFragment();for(var S=0,F;(F=this.participantsManager.viewerRegex.exec(b))!=null;){if(F.index>0){var a=":"+F[0]+":";if((_.zu(_.I$,a)||_.PV(_.I$,a))&&b.indexOf(a)===F.index-1)continue}y.appendChild(h(b.substring(S,F.index)));S=document.createElement("span");S.appendChild(h(F[0]));S.classList.add("mention");y.appendChild(S);
S=F.index+F[0].length}y.appendChild(h(b.substring(S)));return y},
createDocumentFragment:function(b){var h=document.createDocumentFragment();if(b.simpleText)return h.appendChild(this.createDocumentFragmentFromString(b.simpleText)),h;if(!b.runs)return h;for(var y=0;y<b.runs.length;y++){var S=b.runs[y];if(S.emoji)h.appendChild(_.I$.createEmoji(S.emoji));else if(S.text)if(S.navigationEndpoint){var F=document.createElement("a");F.classList.add("yt-simple-endpoint");cBy(F,S.navigationEndpoint);_.$x(F).appendChild(this.createDocumentFragmentFromString(S.text));h.appendChild(F)}else h.appendChild(this.createDocumentFragmentFromString(S.text))}return h},
hasModerationOverlayVisible:function(){var b;return((b=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:b.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(b){b.composedPath().some(function(h){return(h=h instanceof Element?h:null)?h.tagName&&(h.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||h.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.r("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(b)},
colorFromDecimal:function(b){return qLj(b)},
markAsDeleted:function(b,h){this.set("data.deletedStateMessage",b);this.set("data.showOriginalContentMessage",h)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(b){if(this.data.contextMenuEndpoint){var h=_.H9().resolve(_.zM),y=this.data.contextMenuEndpoint,S;(S=_.Ek.instance)&&_.ip(S,y)?(h=Esb(h,y),S=_.cy(S,{},h)):S=_.i_a(h,y);S.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);b&&b.stopPropagation()}},
handleGetContextMenuResponse_:function(b){var h=_.Ek.instance;h&&_.ip(h,{liveChatEndpoint:{}})||(b=b.response);b.liveChatItemContextMenuSupportedRenderers&&b.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(b.liveChatItemContextMenuSupportedRenderers.menuRenderer);b.actions&&_.F8(this.hostElement,"yt-live-chat-actions",[b.actions])},
handleGetContextMenuError:function(b){if(b instanceof Error||b instanceof Object||b instanceof String)var h=b;_.QT(new _.Gn("Error encountered calling GetLiveChatItemContextMenu",h))},
showContextMenu_:function(b){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:b}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.Sx(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.Sx(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.BP.YtLiveChatItemBehavior=[fHa,_.ug.YtComponentBehavior,_.xN.YtOpenPopupBehavior];_.WP=function(){};var wkM;var lHa;var q8N;var xgb;var AK=function(){var b=_.g.apply(this,arguments)||this;b.active=!1;b.identity=_.e5;return b};
_.z(AK,_.g);AK.prototype.dataChanged=function(){this.active=!1};
AK.prototype.onClick=function(){_.Sx(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
AK.prototype.dataChanged=AK.prototype.dataChanged;_.V([_.C(),_.f("design:type",Object)],AK.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],AK.prototype,"active",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],AK.prototype,"dataChanged",null);_.V([_.sB({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],AK);
_.k(AK,"yt-live-chat-text-input-field-suggestion",function(){if(xgb===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;q8N===void 0&&(q8N=document.createElement("template"));var S=q8N;y.call(h,S.content.cloneNode(!0),b.content.firstChild);xgb=b}b=xgb;return b},{mode:0});_.Ut=function(b,h,y){return CustomEvent.call(this,b,{detail:{value:h,path:y}})||this};
_.z(_.Ut,CustomEvent);_.pe=function(){var b=_.g.apply(this,arguments)||this;b.viewerName=null;b.actionMap={"yt-live-chat-actions":"onChatMessage_"};b.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];b.PARTICIPANT_TIME_USEC_=3E8;return b};
_.z(_.pe,_.g);_.d=_.pe.prototype;_.d.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.d.addParticipant=function(b){var h=_.gUI(this.participants,b,function(S,F){S=S[Object.keys(S)[0]];F=F[Object.keys(F)[0]];S=String(_.vi(S.authorName)).toLowerCase();F=String(_.vi(F.authorName)).toLowerCase();return S<F?-1:S==F?0:1}.bind(this));
if(h>=0){var y=this.participants[h];y[Object.keys(y)[0]].timestampUsec&&this.splice("participants",h,1,b)}else this.splice("participants",-h-1,0,b);b=b[Object.keys(b)[0]];h=_.vi(b.authorName).toLocaleLowerCase();y=h.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(y)||(this.allParticipantsCharMap_[y]={});this.allParticipantsCharMap_[y][h]=b};
_.d.getAuthorsFromPrefix=function(b){return this.allParticipantsCharMap_.hasOwnProperty(b)?this.allParticipantsCharMap_[b]:null};
_.d.computeViewerRegex_=function(b){if(!b)return null;b=b.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var h=b.indexOf("@")===0&&_.r("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(h+b.replace(/ /g,"\\s*")+"|^"+b.replace(/ /g,"\\s*")+"$|^"+b.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+b.replace(/ /g,"\\s*")+"$|(?<=\\s)"+b.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.d.checkForStaleParticipants_=function(){var b=this;this.trimOldParticipants_();this.asyncHandle_&&RDN(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.fZ(function(){b.checkForStaleParticipants_()},3E4))};
_.d.onChatMessage_=function(b){var h=this,y=Date.now()*1E3;b.forEach(function(S){if(S=_.c(S,AQ8)){S=S.item;var F=Object.keys(S)[0];h.SUPPORTED_ITEM_TYPES_.indexOf(F)!=-1&&S[F].timestampUsec>=y-h.PARTICIPANT_TIME_USEC_&&h.addParticipant(S)}},this);
this.checkForStaleParticipants_()};
_.d.trimOldParticipants_=function(){for(var b=Date.now()*1E3,h=this.participants.length-1;h>=0;h--){var y=this.participants[h];y=y[Object.keys(y)[0]];y.timestampUsec&&y.timestampUsec<b-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",h,1)}};
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],_.pe.prototype,"ytActionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],_.pe.prototype,"viewerName",void 0);_.V([_.C({computed:"computeViewerRegex_(viewerName)"}),_.f("design:type",Object)],_.pe.prototype,"viewerRegex",void 0);_.V([_.C({value:function(){return[]},
notify:!0}),_.f("design:type",Array)],_.pe.prototype,"participants",void 0);_.V([_.sB({is:"yt-live-chat-participants-manager",noInjection:!0})],_.pe);var Q5G=/.*([:@#].*?)$/,JK=/\u00a0/g,mga=String.fromCharCode(160),vsW={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"},em=function(){var b=_.g.apply(this,arguments)||this;b.disabled=!1;b.liveChatRichMessageInput=null;b.messageInput=null;b.isValidWithNoInputText=!1;b.suggestions=[];b.emojiManager=_.I$;b.inputMethodEditorActive=
!1;b.suggestionIndex=-1;b.JSC$14414_lastSuggestionRange=null;return b};
_.z(em,_.g);_.d=em.prototype;_.d.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.d.attached=function(){_.XW&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.d.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.d.dataChanged=function(){if(!this.ignoreColorMapping){var b=!1,h={},y;for(y in vsW)this.data&&this.data.hasOwnProperty(y)&&(h[vsW[y]]=this.colorFromDecimal(this.data[y]),b=!0);b&&_.nZ(this.hostElement,h)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.d.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.d.colorFromDecimal=function(b){b=Math.floor(Number(b));return"rgba("+[b>>16&255,b>>8&255,b&255,(b>>24&255)/255].join()+")"};
_.d.preventDrag=function(b){b.dataTransfer&&(b.dataTransfer.dropEffect="none");b.preventDefault()};
_.d.preventResize=function(b){b.returnValue=!1};
_.d.onInputChange=function(){var b=this.characterCount,h=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&h&&h.remove();if(!h&&this.characterCount>this.maxCharacterLimit){var y=window.getSelection();if(y){var S=y.getRangeAt(0);y.removeAllRanges();y.addRange(S)}}if(y=this.getCurrentRange())S=this.calculateTextBeforeRange(y),this.completeEmojisInRange(y,S,!0)||this.updateSuggestions(y,S);S=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(S);
_.Sx(this.hostElement,"yt-live-chat-message-input-change",S);h&&this.characterCount===0&&h.remove();y&&y.commonAncestorContainer.parentElement.id==="input"&&y.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>b):y&&!y.collapsed&&y.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(b=this.input.childNodes.length-1;b>=0;b--)this.input.childNodes[b].nodeName==="BR"&&this.input.childNodes[b].remove()};
_.d.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.d.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var b=this.getCurrentRange();b&&b.commonAncestorContainer.parentElement.id==="input"&&b.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.d.mergeOverflowText=function(b){if(b){var h=document.createRange();h.selectNodeContents(b);h=h.extractContents();this.input.insertBefore(h,b)}};
_.d.checkRangeAtEndOfInput=function(){var b=this.getCurrentRange();if(b){var h=_.$x(this.hostElement).querySelector("#overflow-text"),y=document.createRange();h&&h.previousSibling?h.previousSibling instanceof HTMLImageElement?y.selectNode(h.previousSibling):y.selectNodeContents(h.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?y.selectNode(this.input.lastChild):y.selectNodeContents(this.input.lastChild));y.collapse(!1);return y.isPointInRange(b.startContainer,
b.startOffset)}return!1};
_.d.handleOverflowText=function(b){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var h=_.$x(this.hostElement).querySelector("#overflow-text"),y=this.getCurrentRange();this.input.normalize();b=this.checkRangeAtEndOfInput()&&b;this.mergeOverflowText(h);for(var S,F=0,a=0,P,K=this.input.childNodes,n=0;n<K.length;n++){var X=K[n];X instanceof Text?(a+=X.textContent.length,a>this.maxCharacterLimit&&(S=X,F=this.maxCharacterLimit+X.textContent.length-a)):X instanceof HTMLImageElement&&
(S=void 0,a=X.dataset.emojiId&&((S=this.data)==null?0:S.emojiCharacterCount)?a+this.data.emojiCharacterCount:a+X.alt.length,S=this.input,F=n);if(a>this.maxCharacterLimit&&S){P=document.createRange();P.collapse(!1);h?(a=this.input.lastChild.previousSibling,a instanceof Text?P.setEnd(this.input.lastChild.previousSibling,a.textContent.length):a instanceof HTMLImageElement&&P.setEnd(this.input,this.input.childNodes.length-1)):P.selectNodeContents(this.input);P.setStart(S,F);break}}P&&(S=!1,y&&(b=P.isPointInRange(y.startContainer,
y.startOffset-1)),h||(h=document.createElement("span"),h.id="overflow-text",h.textContent="",h.setAttribute("contenteditable","true"),_.$x(_.$x(this.hostElement).querySelector("#input")).appendChild(h),S=!0),h&&(y=P.extractContents(),h.insertBefore(y,h.firstChild),b&&h.firstChild&&(y=document.createRange(),S?y.setStartAfter(h.lastChild):y.setStartAfter(h.firstChild),y.collapse(!0),h=window.getSelection(),h.removeAllRanges(),h.addRange(y))))}};
_.d.checkForDuplicateSpans=function(){for(var b=0;b<this.input.childNodes.length;b++){var h=this.input.childNodes[b];if(h.nodeName==="SPAN"){var y=document.createRange();y.selectNodeContents(h);y=y.extractContents();this.input.insertBefore(y,h);h.remove()}}this.handleOverflowText(!0)};
_.d.getCurrentRange=function(){var b=window.getSelection();return b&&b.rangeCount?b.getRangeAt(0).cloneRange():null};
_.d.getInputRange=function(){var b=this.getCurrentRange();if(b){for(var h=b.commonAncestorContainer,y=!1,S=_.$x(this.hostElement).querySelector("#input");h;){if(h===S){y=!0;break}h=h.parentNode}y||(b=null)}b||(b=this.getRangeAtEnd());return b};
_.d.getRangeAtEnd=function(){var b=document.createRange(),h=_.$x(this.hostElement).querySelector("#input").lastChild;!h||h.nodeName!=="#text"&&h.nodeName!=="SPAN"?(b.selectNodeContents(_.$x(this.hostElement).querySelector("#input")),b.collapse(!1)):h.nodeName==="#text"?b.setStart(h,h.textContent.length):b.setStart(h,h.childNodes.length);return b};
_.d.getChatParticipantSuggestions=function(b,h,y,S){var F=_.r("live_chat_enable_handles_web_text_input_update");if(h)for(var a in h)if(a.indexOf(b)===0||F&&a.indexOf(y+b)===0){var P=h[a],K=_.vi(P.authorName);S.push({suggestion:{author:!0,authorType:y,image:P.authorPhoto,alt:K,text:K}});if(S.length>=64)break}};
_.d.getSuggestions=function(b){var h=[],y=b.substring(0,3),S=k7G(_.I$,y,!0);if(S)for(var F in S)if(F.toLocaleLowerCase().indexOf(b)===0){var a=S[F];if(a&&a.emojiId){if(a=G7e(_.I$,a.emojiId)){var P=void 0,K=void 0,n=void 0,X=void 0,u=((P=a.image)==null?0:(K=P.accessibility)==null?0:(n=K.accessibilityData)==null?0:n.label)||a.isCustomEmoji?(X=a.shortcuts)==null?void 0:X[0]:a.emojiId;h.push({suggestion:{emoji:!0,image:a.image,alt:u,text:F,textToInsertWhenSelected:a.isCustomEmoji?F:u}})}if(h.length>=
64)break}}if(!this.participantsManager)return null;if(y.indexOf("@")===0||y.indexOf("#")===0)S=y.charAt(0),b=b.substring(1),F=_.r("live_chat_enable_handles_web_text_input_update"),y.indexOf("@")===0&&F&&(F=this.participantsManager.getAuthorsFromPrefix(y.substring(0,2)),this.getChatParticipantSuggestions(b,F,S,h)),y=y.substring(1),y=this.participantsManager.getAuthorsFromPrefix(y),this.getChatParticipantSuggestions(b,y,S,h);return h?h.sort(function(O,N){return N.suggestion.text<O.suggestion.text?-1:
N.suggestion.text===O.suggestion.text?0:1}):null};
_.d.insertSuggestion=function(b){var h=_.r("live_chat_enable_handles_web_text_input_update"),y=b.authorType;h=b.text.indexOf(y)===0&&h?b.text+mga:y+b.text+mga;b.emoji?this.insertTextAtRange(this.JSC$14414_lastSuggestionRange,b.textToInsertWhenSelected||""):b.author&&this.insertTextAtRange(this.JSC$14414_lastSuggestionRange,h)};
_.d.updateSuggestionsAtCaret=function(){var b=this.getCurrentRange();b&&this.updateSuggestions(b,this.calculateTextBeforeRange(b))};
_.d.offsetStartOfRangeBy=function(b,h){for(;h>0;)if(b.startOffset-h>=0){b.setStart(b.startContainer,b.startOffset-h);break}else{h=b.startContainer instanceof HTMLImageElement?h-b.startContainer.alt.length:h-b.startOffset;var y=b.startContainer.previousSibling;if(!y){b.setStart(b.startContainer,0);break}if(_.r("live_chat_require_space_for_autocomplete_emoji")){var S=void 0,F=void 0;b.setStart(y,((S=y)==null?void 0:(F=S.textContent)==null?void 0:F.length)||0)}else b.setStart(y,y.childNodes.length||
0)}};
_.d.updateSuggestions=function(b,h){var y=this;this.JSC$14414_lastSuggestionRange&&(this.JSC$14414_lastSuggestionRange.detach(),this.JSC$14414_lastSuggestionRange=null);if((h=Q5G.exec(h))&&h.length&&(h=h[h.length-1].toLocaleLowerCase(),h.length>2&&(this.offsetStartOfRangeBy(b,h.length),this.JSC$14414_lastSuggestionRange=b,(b=this.getSuggestions(h))&&b.length))){this.suggestions=b;_.Ob(this,function(){_.$x(y.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(b.length-1);return}this.dropdown.opened=!1};
_.d.completeEmojisInRange=function(b,h,y){var S=h.replace(/[\s\xa0]+$/,"");h=h.length-S.length;S=S.split(" ");S=S[S.length-1].trim().toLocaleLowerCase();var F=S.lastIndexOf(":");if(y&&!h&&F!==S.length-1)return!1;F!==-1&&(y=S.lastIndexOf(":",F-1),y!==-1&&(S=S.substring(y)));if((y=_.PV(_.I$,S))&&y.emojiId){y=G7e(_.I$,y.emojiId)||null;this.offsetStartOfRangeBy(b,S.length+h);var a,P,K,n;S=(((a=y)==null?0:a.isCustomEmoji)?(P=y)==null?void 0:(K=P.shortcuts)==null?void 0:K[0]:(n=y)==null?void 0:n.emojiId)||
"";h&&(S+=mga);this.insertTextAtRange(b,S);this.dropdown.opened=!1;return!0}return!1};
_.d.onSuggestion=function(b){this.insertSuggestion(b.detail);this.dropdown.opened=!1};
_.d.onKeyPress=function(b){b.keyCode===13&&(b.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.Sx(this.hostElement,"yt-live-chat-send-message"))};
_.d.completeEmojis=function(){var b=document.createRange(),h=_.$x(this.hostElement).querySelector("#input").lastChild;h?b.setStart(h,h.childNodes.length):(b.selectNodeContents(_.$x(this.hostElement).querySelector("#input")),b.collapse(!1));this.completeEmojisInRange(b,this.calculateTextBeforeRange(b),_.r("live_chat_require_space_for_autocomplete_emoji"))};
_.d.maybePreventTextFormatting=function(b){!_.Nq||!b.ctrlKey&&!b.metaKey||b.keyCode!==66&&b.keyCode!==73||(b.stopImmediatePropagation(),b.preventDefault())};
_.d.onKeyDown=function(b){this.maybePreventTextFormatting(b);if(this.dropdown.opened)switch(b.keyCode){case 27:this.dropdown.opened=!1;b.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;b.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);b.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),b.preventDefault()}};
_.d.onKeyUp=function(b){switch(b.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.nF)this.onInputChange()};
_.d.changeSuggestionIndex=function(b){if(this.dropdown.opened){var h=_.$x(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<h.children.length&&(h.children[this.suggestionIndex].active=!1);var y=this.suggestions.length;this.suggestionIndex=(b+y)%y;b=h.children[this.suggestionIndex];b.active=!0;h.scrollTop=b.offsetTop}};
_.d.onInputPaste=function(b){b.preventDefault();(b=b.clipboardData)&&b.types&&(b=b.getData("text/plain")||"",b=b.replace(/\n/g,""),this.insertText(b));(b=this.getCurrentRange())&&b.commonAncestorContainer.parentElement.id==="input"&&b.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.d.onFocus=function(){this._setFocused(!0)};
_.d.onBlur=function(){this._setFocused(!1)};
_.d.insertText=function(b){this.insertTextAtRange(this.getInputRange(),b)};
_.d.insertTextAtRange=function(b,h){if(b&&(b.collapsed||b.deleteContents(),h=_.I$.createDocumentFragment(h,!0,!1))){for(var y=_.L((h==null?void 0:h.childNodes)||[]),S=y.next();!S.done;S=y.next()){S=S.value;var F=void 0,a=void 0,P=void 0,K=void 0,n=void 0;(P=(F=window)==null?void 0:(a=F.ShadyCSS)==null?void 0:a.ScopingShim)==null||(n=(K=P).scopeNode)==null||n.call(K,S,this.hostElement.localName)}y=h.lastChild;b.insertNode(h);this.focused||this.input.focus();if(this.focused){b=b.cloneRange();b.selectNodeContents(y);
b.collapse(!1);if(h=window.getSelection())h.removeAllRanges(),h.addRange(b);b.commonAncestorContainer.parentElement.id==="input"&&b.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}b=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(b);_.Sx(this.hostElement,"yt-live-chat-message-input-change",b)}};
_.d.setLiveChatRichMessageInput=function(b){_.$x(_.$x(this.hostElement).querySelector("#input")).textContent="";if(b&&b.textSegments){for(var h=0;h<b.textSegments.length;h++){var y=b.textSegments[h];y.text?_.$x(_.$x(this.hostElement).querySelector("#input")).appendChild(_.I$.createDocumentFragment(y.text,!0,!1)):y.emojiId&&(y=_.zu(_.I$,y.emojiId))&&_.$x(_.$x(this.hostElement).querySelector("#input")).appendChild(_.I$.createEmoji(y,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.d.setText=function(b){this.setLiveChatRichMessageInput(b?{textSegments:[{text:b}]}:null)};
_.d.calculateTextBeforeRange=function(b){var h="",y=b.startContainer;if(y&&y instanceof Text){var S;h=((S=y.textContent)==null?void 0:S.substring(0,b.startOffset))||"";y=y.previousSibling}for(;y&&y instanceof Text;)h=y.textContent+h,y=y.previousSibling;return h.replace(JK," ")};
_.d.calculateLiveChatRichMessageInput=function(){for(var b=[],h="",y=_.$x(_.$x(this.hostElement).querySelector("#input")).childNodes,S=0;S<y.length;S++){var F=y[S];F instanceof Text?h+=F.textContent:F instanceof HTMLImageElement&&(F.dataset.emojiId?(h&&(b.push({text:h.replace(JK," ")}),h=""),b.push({emojiId:F.dataset.emojiId})):h+=F.alt)}h&&b.push({text:h.replace(JK," ")});if(y=_.$x(this.hostElement).querySelector("#overflow-text")){h="";y=y.childNodes;for(S=0;S<y.length;S++)F=y[S],F instanceof Text?
h+=F.textContent:F instanceof HTMLImageElement&&(F.dataset.emojiId?(h&&(b.push({text:h.replace(JK," ")}),h=""),b.push({emojiId:F.dataset.emojiId})):h+=F.alt);h&&b.push({text:h.replace(JK," ")})}return{textSegments:b}};
_.d.computeCharacterCount=function(b){if(!b||!b.textSegments)return 0;for(var h=0,y=0;y<b.textSegments.length;y++){var S=b.textSegments[y];if(S.text)h+=S.text.length;else if(S.emojiId){var F=void 0;if((F=this.data)==null?0:F.emojiCharacterCount)h+=this.data.emojiCharacterCount;else{var a=F=void 0,P=void 0;h+=((a=_.zu(_.I$,(F=S)==null?void 0:F.emojiId))==null?void 0:(P=a.shortcuts)==null?void 0:P[0].length)||0}}}return h};
_.d.characterCountChanged=function(){_.Sx(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.d.focusedChanged=function(){this.hostElement.dispatchEvent(new _.Ut("focused-changed",this.focused))};
_.d.focus=function(){this.setFocus(!1)};
_.d.focusAtEnd=function(){this.setFocus(!0)};
_.d.setFocus=function(b){b=b?this.getRangeAtEnd():this.getInputRange();_.$x(this.hostElement).querySelector("#input").focus();var h=window.getSelection();h&&(h.removeAllRanges(),h.addRange(b))};
_.d.insertEmoji=function(b){var h,y=((b==null?0:b.isCustomEmoji)?(h=b.shortcuts)==null?void 0:h[0]:b==null?void 0:b.emojiId)||"";this.insertText(y)};
_.d.computeText=function(b){if(!b||!b.textSegments)return"";for(var h="",y=0;y<b.textSegments.length;y++){var S=b.textSegments[y];if(S.text)h+=S.text;else if(S.emojiId){var F=void 0,a=void 0,P=void 0;h+=((a=_.zu(_.I$,(F=S)==null?void 0:F.emojiId))==null?void 0:(P=a.shortcuts)==null?void 0:P[0])||""}}return h};
_.d.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.tm.Object.defineProperties(em.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.data)==null?void 0:b.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}}});
em.prototype.focusedChanged=em.prototype.focusedChanged;em.prototype.characterCountChanged=em.prototype.characterCountChanged;em.prototype.onSuggestion=em.prototype.onSuggestion;em.prototype.onMessageSet=em.prototype.onMessageSet;em.prototype.dataChanged=em.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],em.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],em.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],em.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],em.prototype,"disabled",void 0);_.V([_.W("disabled"),_.f("design:type",Number),_.f("design:paramtypes",[])],em.prototype,"inputTabIndex",null);_.V([_.W("data.maxCharacterLimit"),_.C({readOnly:!0,notify:!0}),_.f("design:type",Number),_.f("design:paramtypes",[])],em.prototype,"maxCharacterLimit",null);
_.V([_.W("liveChatRichMessageInput"),_.C({readOnly:!0,notify:!0}),_.f("design:type",Number),_.f("design:paramtypes",[])],em.prototype,"characterCount",null);_.V([_.W("maxCharacterLimit, characterCount"),_.C({readOnly:!0,notify:!0}),_.f("design:type",Number),_.f("design:paramtypes",[])],em.prototype,"remainingCharacterCount",null);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],em.prototype,"isChatMessageInput",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],em.prototype,"inputExpanded",void 0);_.V([_.C({readOnly:!0,notify:!0}),_.f("design:type",Object)],em.prototype,"liveChatRichMessageInput",void 0);_.V([_.C(),_.f("design:type",Object)],em.prototype,"messageInput",void 0);_.V([_.C(),_.f("design:type",Boolean)],em.prototype,"ignoreColorMapping",void 0);_.V([_.W("characterCount"),_.C({reflectToAttribute:!0}),_.f("design:type",Boolean),_.f("design:paramtypes",[])],em.prototype,"hasText",null);
_.V([_.C(),_.f("design:type",Object)],em.prototype,"isValidWithNoInputText",void 0);_.V([_.W("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.C(),_.f("design:type",Boolean),_.f("design:paramtypes",[])],em.prototype,"isInputValid",null);_.V([_.C({readOnly:!0,value:!1,reflectToAttribute:!0}),_.f("design:type",Boolean)],em.prototype,"focused",void 0);_.V([_.C(),_.f("design:type",Array)],em.prototype,"suggestions",void 0);
_.V([_.C(),_.f("design:type",_.R$)],em.prototype,"emojiManager",void 0);_.V([_.C(),_.f("design:type",_.pe)],em.prototype,"participantsManager",void 0);_.V([_.C(),_.f("design:type",Boolean)],em.prototype,"noUnderline",void 0);_.V([_.C(),_.f("design:type",Object)],em.prototype,"inputMethodEditorActive",void 0);_.V([_.to("#dropdown"),_.f("design:type",Object)],em.prototype,"dropdown",void 0);_.V([_.to("#input"),_.f("design:type",HTMLElement)],em.prototype,"input",void 0);
_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],em.prototype,"dataChanged",null);_.V([_.OB("messageInput"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],em.prototype,"onMessageSet",null);_.V([_.u3("yt-live-chat-select-suggestion"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],em.prototype,"onSuggestion",null);
_.V([_.OB("characterCount"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],em.prototype,"characterCountChanged",null);_.V([_.OB("focused"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],em.prototype,"focusedChanged",null);_.V([_.sB({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],em);
_.byb=_.k(em,"yt-live-chat-text-input-field-renderer",function(){if(lHa===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;wkM===void 0&&(wkM=document.createElement("template"));var S=wkM;y.call(h,S.content.cloneNode(!0),b.content.firstChild);lHa=b}b=lHa;return b},{mode:0});var Ce=function(){var b=_.g.apply(this,arguments)||this;b.buttonOverrides={style:"overlay",type:"filled"};b.allowAnimations=!1;b.modern=_.r("web_button_rework_with_live");b.noPadding=!1;return b};
_.z(Ce,_.g);_.d=Ce.prototype;_.d.shouldSupportInlineActionButtons=function(){return!0};
_.d.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"}}}}};
_.d.ready=function(){var b=document.querySelector("yt-live-chat-app");b&&b.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.d.attached=function(){this.allowAnimations=!1};
_.d.dataChanged=function(){if(this.data){var b={"--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)};_.nZ(this.hostElement,b);this.allowAnimations=!0}};
_.d.messageChanged=function(){var b,h=(b=this.data)==null?void 0:b.message;b=_.$x(_.$x(this.hostElement).querySelector("#message"));b.textContent="";h&&b.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(h))};
_.d.computeShowOnlyHeader=function(b,h){return!b||b.pdgLikeButton||b.replyButton||b.buyFlowButton?!1:this.isEmpty(b,h)&&!b.footer};
_.d.computeShowFooterDivider=function(b,h,y){return b?!!b.footer&&!this.isEmpty(b,h)&&!y:!1};
_.d.computeIsUserEditable=function(b){return!!b.inputField};
_.d.computeHasHeartButton=function(b){return(b==null?void 0:b.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(b==null?void 0:b.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(b==null?void 0:b.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.d.computeNoveltyImage=function(b){if(b.headerOverlayImage&&b.headerOverlayImage.thumbnails.length){var h=b.headerOverlayImage.thumbnails[0],y,S;if((y=b.pdgPurchasedNoveltyLoggingDirectives)==null?0:(S=y.loggingDirectives)==null?0:S.trackingParams){var F,a;S8y((F=b.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(a=F.loggingDirectives)==null?void 0:a.trackingParams)}return h.width||0}return 0};
_.d.computeAuthorPhotoSize=function(b){return(b==null?0:b.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.d.inputFocus=function(){var b=_.$x(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");b&&b.focus()};
_.d.inputInsertEmoji=function(b){var h=_.$x(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");h&&h.insertEmoji(b)};
_.d.inputMessage=function(){var b=_.$x(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),h;return b&&((h=this.data)==null?0:h.inputField)?(b.completeEmojis(),_.GA(b.liveChatRichMessageInput)):null};
_.d.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.d.isEmpty=function(b,h){return b?b.empty||!(b.message||b.inputField||h):!0};
_.d.onLowerBuyButtonClick=function(){var b,h=_.c((b=this.data)==null?void 0:b.buyButton,_.OU);h&&h.trackingParams&&!Qm8(h.command)&&(b=_.I_(h.trackingParams))&&(h=_.UE())&&_.lE(h,b)};
_.d.shouldSupportWholeItemClick=function(){return!0};
_.tm.Object.defineProperties(Ce.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.data)==null?0:b.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
Ce.prototype.isDeletedChanged=Ce.prototype.isDeletedChanged;Ce.prototype.messageChanged=Ce.prototype.messageChanged;Ce.prototype.dataChanged=Ce.prototype.dataChanged;_.V([_.B(tv8.YtPdgLiveChatItemBehavior),_.f("design:type",Object)],Ce.prototype,"ytPdgLiveChatItemBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Ce.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Xc),_.f("design:type",Object)],Ce.prototype,"ytLiveChatReduxBehavior",void 0);
_.V([_.B(_.BP.YtLiveChatItemBehavior),_.f("design:type",_.WP)],Ce.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Ce.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Ce.prototype,"data",void 0);_.V([_.C({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:hsj}),_.f("design:type",Object)],Ce.prototype,"engagementState",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.f("design:type",Boolean)],Ce.prototype,"isUserEditable",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.f("design:type",Boolean)],Ce.prototype,"hasHeartButton",void 0);_.V([_.C({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.f("design:type",Boolean)],Ce.prototype,"showOnlyHeader",void 0);
_.V([_.C({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.f("design:type",Boolean)],Ce.prototype,"showFooterDivider",void 0);_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Object)],Ce.prototype,"allowAnimations",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],Ce.prototype,"dashboardMoneyFeed",void 0);_.V([_.C({computed:"computeNoveltyImage(data)"}),_.f("design:type",Number)],Ce.prototype,"noveltyWidth",void 0);
_.V([_.C({computed:"computeAuthorPhotoSize(data)"}),_.f("design:type",Number)],Ce.prototype,"authorPhotoSize",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Ce.prototype,"modern",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Ce.prototype,"noPadding",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Ce.prototype,"dataChanged",null);
_.V([_.OB("data.message"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Ce.prototype,"messageChanged",null);_.V([_.W("data","dashboardMoneyFeed"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Ce.prototype,"hideLowerBumper",null);_.V([_.OB("isDeleted"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Ce.prototype,"isDeletedChanged",null);
_.V([_.Yx({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],Ce);
_.k(Ce,"yt-live-chat-paid-message-renderer",function(){if(aHe===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;FhP===void 0&&(FhP=document.createElement("template"));var S=FhP;y.call(h,S.content.cloneNode(!0),b.content.firstChild);aHe=b}b=aHe;return b},{mode:0});var h7W;var yza;var st=function(){var b=_.cl.apply(this,arguments)||this;b._noAccessors=!0;return b};
_.z(st,_.cl);st.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.QC("openPopupConfig")};
_.V([_.B(_.xN.YtOpenPopupBehavior),_.f("design:type",Object)],st.prototype,"ytOpenPopupBehavior",void 0);_.V([_.Rc()],st);_.Y9=[_.xN.YtOpenPopupBehavior,st.prototype];var SgW;var lp=[_.O0,dEW,_.s9,_.uB8,_.Qd,_.B55,_.nj,_.cd,_.NC,_.s$W,_.wO];lp.push(_.sk);_.r("web_show_ep_endpoint_response_received")&&lp.push(_.ge);var tX5=new _.ca("RESPONSE_RECEIVED_COMMANDS"),nzk=new _.ca("RESPONSE_RECEIVED_COMMANDS");var $H4="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),jTM=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],dHN=["GET_UNSEEN_NOTIFICATION_COUNT"];var Tu=function(){var b=_.cl.apply(this,arguments)||this;b._noAccessors=!0;b.serviceEndpointHandlers=[];return b};
_.z(Tu,_.cl);Tu.prototype.created=function(){var b=this;this.endpointHandlerActionMap={"yt-service-request":function(h,y,S,F){var a;return aqU(b.hostElement,h,y,S,F,b.serviceEndpointHandlers,(a=b.onEntitiesUpdated)==null?void 0:a.bind(b))}}};
Tu.prototype.attached=function(){_.LP(_.$J.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
Tu.prototype.detached=function(){_.Po(_.$J.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.V([_.Rc()],Tu);_.F6a=[Tu.prototype];var aqW,dHW=function(){return aqW!==void 0?aqW:aqW=document.createElement("template")};
document.head.appendChild(dHW().content);var jT5;var $HM=document.head,L6w=$HM.appendChild,P9e;if(jT5===void 0){var K6a=document.createElement("template");_.D(K6a,"\x3c!--css-build:shady--\x3e");K6a.content.insertBefore(dHW().content.cloneNode(!0),K6a.content.firstChild);jT5=K6a}P9e=jT5;L6w.call($HM,P9e.content);var Zy5,ozw=function(){return Zy5!==void 0?Zy5:Zy5=document.createElement("template")};
document.head.appendChild(ozw().content);var Mz8;var nza=document.head,Xwe=nza.appendChild,Hye;if(Mz8===void 0){var uE7=document.createElement("template");_.D(uE7,"\x3c!--css-build:shady--\x3e");uE7.content.insertBefore(ozw().content.cloneNode(!0),uE7.content.firstChild);Mz8=uE7}Hye=Mz8;Xwe.call(nza,Hye.content);var Oyb;_.W2("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.W2("sharingRendererButtons","buttonRenderer","ytd-button-renderer");Oyb=_.r("web_button_rework")&&_.m$("BUTTON_REWORK")||_.r("web_button_rework_with_live");_.Gu=function(){var b=_.g.apply(this,arguments)||this;b.isPressed=!1;b.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return b};
_.z(_.Gu,_.g);_.d=_.Gu.prototype;_.d.created=function(){this.showTooltips=!0};
_.d.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.d.onHintIdChanged=function(){var b=this,h,y,S=(h=this.ytButtonBehavior.data)==null?void 0:(y=h.hint)==null?void 0:y.hintRenderer;if(S&&S.hintId){h=_.aw(this.hostElement,"yt-get-opened-popups-action");h=(h&&h.length===1?h[0]:[]).length>0;var F=null;S.hintId!=="sponsor-pre-purchase"||h?S.hintId.startsWith("sponsor-post-purchase")&&!h?F=$3o("membership-manage"):S.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!h&&(F=$3o("membership-freebie-join")):F=$3o("membership-join");F&&_.xP.addLowPriorityJob(function(){for(var a=
_.L(F),P=a.next();!P.done;P=a.next())b.ytComponentBehavior.resolveCommand(P.value)})}};
_.d.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.d.onYtNavigate=function(b){var h=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(b.detail.endpoint);h&&(b.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(h))};
_.d.onYtServiceRequestSent=function(b,h){this.handleServiceRequestActions(h);_.Sx(this.hostElement,"yt-service-request-sent-button-renderer")};
_.d.onServiceRequestCompleted=function(b,h){this.handleServiceRequestActions(h);_.Sx(this.hostElement,"yt-service-request-completed-button-renderer")};
_.d.updateButton=function(b){var h;if(b=(h=_.c(b,QOo))==null?void 0:h.updatedButton)this.ytButtonBehavior.data=_.c(b,_.OU)};
_.d.handleUpdateButtonAction=function(b){var h=this.ytButtonBehavior.data;h.targetId&&b.updateButtonAction.targetId&&h.targetId===b.updateButtonAction.targetId&&this.updateButton(b)};
_.d.handleServiceRequestActions=function(b){if(b=b.actions)for(var h=0;h<b.length;h++)this.updateButton(b[h])};
_.tm.Object.defineProperties(_.Gu,{template:{configurable:!0,enumerable:!0,get:function(){if(SgW===void 0){var b=document.createElement("template");_.D(b,"\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");b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);SgW=b}b=SgW;return b}}});
_.Gu.prototype.onServiceRequestCompleted=_.Gu.prototype.onServiceRequestCompleted;_.Gu.prototype.onYtServiceRequestSent=_.Gu.prototype.onYtServiceRequestSent;_.Gu.prototype.onYtNavigate=_.Gu.prototype.onYtNavigate;_.Gu.prototype.onPressedStateChanged=_.Gu.prototype.onPressedStateChanged;_.Gu.prototype.onHintIdChanged=_.Gu.prototype.onHintIdChanged;_.V([_.C(),_.f("design:type",Object)],_.Gu.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],_.Gu.prototype,"isPressed",void 0);
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],_.Gu.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.Rn8.YtButtonBehavior),_.f("design:type",Object)],_.Gu.prototype,"ytButtonBehavior",void 0);_.V([_.B(_.Y9),_.f("design:type",Object)],_.Gu.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],_.Gu.prototype,"ytComponentBehavior",void 0);
_.V([_.B(a$.YtRenderButtonBehavior),_.f("design:type",Object)],_.Gu.prototype,"ytRenderButtonBehavior",void 0);_.V([_.OB("data.hint.hintRenderer"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],_.Gu.prototype,"onHintIdChanged",null);_.V([_.OB("isPressed"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],_.Gu.prototype,"onPressedStateChanged",null);
_.V([_.u3("yt-navigate"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],_.Gu.prototype,"onYtNavigate",null);_.V([_.u3("yt-service-request-sent"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,_.kE]),_.f("design:returntype")],_.Gu.prototype,"onYtServiceRequestSent",null);
_.V([_.u3("yt-service-request-completed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,_.xE]),_.f("design:returntype")],_.Gu.prototype,"onServiceRequestCompleted",null);_.V([_.Yx({is:"ytd-button-renderer",disableElementRegistration:Oyb})],_.Gu);var k9=function(){var b=_.g.apply(this,arguments)||this;b.modern=_.r("web_button_rework_with_live");b.buttonOverrides={style:"overlay",type:"filled"};return b};
_.z(k9,_.g);_.d=k9.prototype;_.d.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"}}}}};
_.d.ready=function(){var b=document.querySelector("yt-live-chat-app");b&&b.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.d.dataChanged=function(){if(this.data&&this.data.sticker){var b=_.Ss(this.data.sticker.thumbnails,this.stickerWidth);b||_.tz4(b).thenCatch(function(){_.vX(new _.Gn("Failed to load Super Sticker with url",b))})}};
_.d.computeAuthorPhotoSize=function(b){return(b==null?0:b.isV2Style)?32:40};
_.d.computeIsV2Style=function(b){return(b==null?0:b.isV2Style)?!0:!1};
_.d.onStickerLoaded=function(b){var h,y,S;(h=_.mi(b))==null||(y=h.parentNode)==null||(S=y.classList)==null||S.add("sticker-loaded")};
_.d.computeNoveltyImageWidth=function(b){var h,y;if(b==null?0:(h=b.headerOverlayImage)==null?0:(y=h.thumbnails)==null?0:y.length){h=b.headerOverlayImage.thumbnails[0];var S,F;if((S=b.pdgPurchasedNoveltyLoggingDirectives)==null?0:(F=S.loggingDirectives)==null?0:F.trackingParams){var a,P;S8y((a=b.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(P=a.loggingDirectives)==null?void 0:P.trackingParams)}return h.width||0}return 0};
_.d.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.d.updateStickerStyles=function(){var b=this.data;b&&(b={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(b.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(b.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(b.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(b.authorNameTextColor)},
_.nZ(this.hostElement,b))};
_.d.onBuyButtonClick=function(){var b,h=_.c((b=this.data)==null?void 0:b.buyButton,_.OU);h&&!Qm8(h.command)&&this.ytRendererBehavior.logExplicitClick(h)};
_.d.shouldSupportWholeItemClick=function(){return!0};
_.tm.Object.defineProperties(k9.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 b;return((b=this.data)==null?0:b.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
k9.prototype.updateStickerStyles=k9.prototype.updateStickerStyles;k9.prototype.isDeletedChanged=k9.prototype.isDeletedChanged;k9.prototype.onStickerLoaded=k9.prototype.onStickerLoaded;k9.prototype.dataChanged=k9.prototype.dataChanged;_.V([_.B(tv8.YtPdgLiveChatItemBehavior),_.f("design:type",Object)],k9.prototype,"ytPdgLiveChatItemBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],k9.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],k9.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.BP.YtLiveChatItemBehavior),_.f("design:type",_.WP)],k9.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],k9.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],k9.prototype,"data",void 0);
_.V([_.C({computed:"computeAuthorPhotoSize(data)"}),_.f("design:type",Number)],k9.prototype,"authorPhotoSize",void 0);_.V([_.C(),_.f("design:type",Boolean)],k9.prototype,"isDeleted",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],k9.prototype,"dashboardMoneyFeed",void 0);_.V([_.C({computed:"computeNoveltyImageWidth(data)"}),_.f("design:type",Number)],k9.prototype,"noveltyWidth",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],k9.prototype,"modern",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.f("design:type",Boolean)],k9.prototype,"isV2Style",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],k9.prototype,"dataChanged",null);_.V([_.u3("yt-img-shadow-loaded"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],k9.prototype,"onStickerLoaded",null);
_.V([_.W("data"),_.f("design:type",Number),_.f("design:paramtypes",[])],k9.prototype,"stickerWidth",null);_.V([_.W("data"),_.f("design:type",Number),_.f("design:paramtypes",[])],k9.prototype,"stickerHeight",null);_.V([_.C({reflectToAttribute:!0}),_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],k9.prototype,"hasHeartButton",null);_.V([_.W("data","dashboardMoneyFeed"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],k9.prototype,"hideLowerBumper",null);
_.V([_.OB("isDeleted"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],k9.prototype,"isDeletedChanged",null);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],k9.prototype,"updateStickerStyles",null);_.V([_.sB({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],k9);
_.k(k9,"yt-live-chat-paid-sticker-renderer",function(){if(yza===void 0){var b=document.createElement("template");_.D(b,'\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>');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;h7W===void 0&&(h7W=document.createElement("template"));var S=h7W;y.call(h,S.content.cloneNode(!0),b.content.firstChild);yza=b}b=yza;return b},{mode:0});var NN7;var tzM;var rz7,czo=function(){return rz7!==void 0?rz7:rz7=document.createElement("template")};
document.head.appendChild(czo().content);var R7e,z7e=function(){return R7e!==void 0?R7e:R7e=document.createElement("template")};
document.head.appendChild(z7e().content);var DHM;var IqW,BNa=function(){return IqW!==void 0?IqW:IqW=document.createElement("template")};
document.head.appendChild(BNa().content);var W6M;var Az5=document.head,UHw=Az5.appendChild,pwN;if(W6M===void 0){var JzN=document.createElement("template");_.D(JzN,"\x3c!--css-build:shady--\x3e");JzN.content.insertBefore(BNa().content.cloneNode(!0),JzN.content.firstChild);W6M=JzN}pwN=W6M;UHw.call(Az5,pwN.content);var e7a=document.head,C9o=e7a.appendChild,gzw;if(DHM===void 0){var Vg=document.createElement("template");_.D(Vg,"\x3c!--css-build:shady--\x3e");Vg.content.insertBefore(z7e().content.cloneNode(!0),Vg.content.firstChild);Vg.content.insertBefore(czo().content.cloneNode(!0),Vg.content.firstChild);DHM=Vg}gzw=DHM;C9o.call(e7a,gzw.content);var Et=function(){var b=_.cl.apply(this,arguments)||this;b.focusedIndex=0;b.verticalOffset=0;b.verticalAlign="top";b.dynamicAlign=!0;return b};
_.z(Et,_.cl);Et.prototype.emojiUrl=function(b){b=_.zu(this.emojiManager,b);if(!b)return"";var h;b=(h=b.image)==null?void 0:h.thumbnails;return _.Ss(b,24)||""};
var sTa=function(b){var h;b.emojiVariants&&(h=b.data)!=null&&h.target&&_.Ob(b,function(){b.set("verticalOffset",-1*b.hostElement.clientHeight);var y=_.$x(b.hostElement).querySelector("img");y&&y.focus()})};
_.d=Et.prototype;_.d.onKeyboardEnter=function(){};
_.d.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.d.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.d.onKeyDown=function(b){switch(b.keyCode){case 13:this.onKeyboardEnter();b.preventDefault();break;case 40:this.changeFocus(1);b.preventDefault();break;case 38:this.changeFocus(-1);b.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.d.onYtEmojiSelect=function(b){var h=this,y,S,F,a,P,K,n,X;return _.Z(function(u){if(u.nextAddress==1)return S=(y=h.data)==null?void 0:y.emoji,P=((F=S)==null?void 0:F.stickyPrefId)||((a=S)==null?void 0:a.emojiId),n=(K=b.detail)==null?void 0:K.emojiId,P&&n&&P!==n?u.yield((X=h.emojiManager)==null?void 0:V$W(X,S,n),2):u.return();_.F8(h.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[S,n]);_.g3(u)})};
_.d.changeFocus=function(b){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+b+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(b=_.$x(this.hostElement).querySelector("#variants"))&&b.children[this.focusedIndex].focus())};
_.tm.Object.defineProperties(Et.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.data)==null?void 0:b.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
Et.prototype.onYtEmojiSelect=Et.prototype.onYtEmojiSelect;Et.prototype.onKeyDown=Et.prototype.onKeyDown;Et.prototype.onEmojiVariantsChanged=Et.prototype.onEmojiVariantsChanged;Et.prototype.onVerticalOffsetOrPositionTargetChanged=Et.prototype.onVerticalOffsetOrPositionTargetChanged;_.V([_.B(_.tQ),_.f("design:type",Object)],Et.prototype,"ironOverlayBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Et.prototype,"data",void 0);_.V([_.C(),_.f("design:type",_.R$)],Et.prototype,"emojiManager",void 0);
_.V([_.C(),_.f("design:type",Object)],Et.prototype,"emojiVariants",void 0);_.V([_.C(),_.f("design:type",Object)],Et.prototype,"focusedIndex",void 0);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],Et.prototype,"positionTarget",null);_.V([_.C({reflectToAttribute:!0}),_.W("verticalOffset","data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Et.prototype,"isPositioned",null);_.V([_.C(),_.f("design:type",Object)],Et.prototype,"verticalOffset",void 0);
_.V([_.C(),_.f("design:type",Object)],Et.prototype,"verticalAlign",void 0);_.V([_.C(),_.f("design:type",Object)],Et.prototype,"dynamicAlign",void 0);_.V([_.OB("verticalOffset","positionTarget"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Et.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.V([_.OB("emojiVariants"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Et.prototype,"onEmojiVariantsChanged",null);
_.V([_.u3("keydown"),_.f("design:type",Function),_.f("design:paramtypes",[KeyboardEvent]),_.f("design:returntype")],Et.prototype,"onKeyDown",null);_.V([_.u3("yt-emoji-select"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype",Promise)],Et.prototype,"onYtEmojiSelect",null);_.V([_.Rc()],Et);var YgW=[Et.prototype];var TNN;var Giw;var ki7=/medium-light|medium-dark|light|medium|dark/,Vz5=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,Ez8=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),iu=function(){var b=_.g.apply(this,arguments)||this;b.userSelection={left:null,right:null};b.scrollAction="lock";b.isEmojiDraftInProgress=!1;return b};
_.z(iu,_.g);_.d=iu.prototype;_.d.onClick=function(b){b=_.mi(b);b instanceof HTMLImageElement&&this.selectOrUpdateEmoji(b)};
_.d.selectOrUpdateEmoji=function(b){var h=b.getAttribute("selection");h&&(h==="default"?_.Sx(this.hostElement,"yt-emoji-select",_.zu(this.emojiManager,b.id)):h==="left"?this.userSelection=Object.assign({},this.userSelection,{left:b.src}):h==="right"?this.userSelection=Object.assign({},this.userSelection,{right:b.src}):h==="user"&&this.userSelection.left&&this.userSelection.right&&_.Sx(this.hostElement,"yt-emoji-select",_.zu(this.emojiManager,b.id)))};
_.d.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.d.onMultiSelectorThumbnailRowChanged=function(){var b,h,y;((b=this.data)==null?0:(h=b.emoji)==null?0:(y=h.multiSelectorThumbnailRow)==null?0:y.length)&&this.openSelector()};
_.d.getThumbnailFromEmojiRow=function(b){var h,y;return(b==null?void 0:(h=b.thumbnails)==null?void 0:(y=h[0])==null?void 0:y.url)||""};
_.d.getEmojiAltTextForPartialSelector=function(b){var h;return((h=this.getThumbnailFromEmojiRow(b).match(Vz5))==null?void 0:h[0])||""};
_.d.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.d.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.d.getRowSelection=function(b){return["left","right"][b]};
_.d.getIdFromComposedEmoji=function(b){return(b==null?void 0:b.emojiId)||""};
_.d.getEmojiFromPartialSelections=function(b,h){if(!b&&!h)return null;var y,S,F=(y=this.data)==null?void 0:(S=y.emoji)==null?void 0:S.variantIds;if(!F||!F.length)return null;var a;b=(a=b.match(ki7))==null?void 0:a[0];var P;h=(P=h.match(ki7))==null?void 0:P[0];if(!b||!h)return null;var K=Ez8.get(b);P=Ez8.get(h);if(K===P){P=Array.from(Ez8.values()).filter(function(X){return X!==K}).join("|");
var n=new RegExp("^((?!("+P+")).)*"+K+"$")}else n=new RegExp(K+".*"+P);return(F=F.find(function(X){return n.test(X)}))&&_.zu(this.emojiManager,F)||null};
_.d.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var b,h=this.ytEmojiSelectorBehavior.emojiUrl(((b=this.data.emoji)==null?void 0:b.emojiId)||"");_.$x(this.hostElement).querySelector('[selection="user"]').src.includes(h)||(this.isEmojiDraftInProgress=!0)}};
_.d.onDomChange=function(){sTa(this.ytEmojiSelectorBehavior)};
_.d.getFocusableElements=function(){return _.$x(this.hostElement).querySelectorAll("img").filter(function(b){return b.getAttribute("role")==="option"})};
_.d.changeFocus=function(b){var h=this.getFocusableElements();h!=null&&h.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+b+h.length)%h.length,this.ytEmojiSelectorBehavior.focusedIndex<h.length&&(b=h[this.ytEmojiSelectorBehavior.focusedIndex])&&b.focus())};
_.d.onKeyboardEnter=function(){var b=this.getFocusableElements();b!=null&&b.length&&(b=b[this.ytEmojiSelectorBehavior.focusedIndex])&&b instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(b),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.tm.Object.defineProperties(iu.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var b=this,h,y,S;return this.emojiManager&&((h=this.data)==null?0:(y=h.emoji)==null?0:(S=y.variantIds)==null?0:S.length)?this.data.emoji.variantIds.map(function(F){return!!F&&_.zu(b.emojiManager,F)}).filter(function(F){return!!F}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var b,h=(b=this.userSelection)==null?void 0:b.left,y;b=(y=this.userSelection)==null?void 0:y.right;return h&&b?this.getEmojiFromPartialSelections(h,b):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var b;if((b=this.composedEmojiSelection)==null?0:b.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var h;b=(h=this.userSelection)==null?void 0:h.left;var y;h=(y=this.userSelection)==null?void 0:y.right;if(!b&&!h){var S;return this.ytEmojiSelectorBehavior.emojiUrl(((S=this.data.emoji)==null?void 0:S.emojiId)||"")}return b&&!h?b:!b&&h?h:""}}});
iu.prototype.onMultiSelectorThumbnailRowChanged=iu.prototype.onMultiSelectorThumbnailRowChanged;iu.prototype.onClick=iu.prototype.onClick;_.V([_.B(_.tQ),_.f("design:type",Object)],iu.prototype,"ironOverlayBehavior",void 0);_.V([_.B(YgW),_.f("design:type",Object)],iu.prototype,"ytEmojiSelectorBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],iu.prototype,"data",void 0);_.V([_.C(),_.f("design:type",_.R$)],iu.prototype,"emojiManager",void 0);
_.V([_.C(),_.f("design:type",Object)],iu.prototype,"userSelection",void 0);_.V([_.C(),_.f("design:type",Object)],iu.prototype,"scrollAction",void 0);_.V([_.C(),_.f("design:type",Object)],iu.prototype,"isEmojiDraftInProgress",void 0);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],iu.prototype,"emojiVariants",null);_.V([_.W("data","userSelection"),_.f("design:type",Object),_.f("design:paramtypes",[])],iu.prototype,"composedEmojiSelection",null);
_.V([_.u3("click"),_.f("design:type",Function),_.f("design:paramtypes",[MouseEvent]),_.f("design:returntype")],iu.prototype,"onClick",null);_.V([_.OB("data.emoji.multiSelectorThumbnailRow"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],iu.prototype,"onMultiSelectorThumbnailRowChanged",null);_.V([_.W("data","userSelection","composedEmojiSelection"),_.f("design:type",String),_.f("design:paramtypes",[])],iu.prototype,"draftEmojiUrl",null);
_.V([_.sB({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],iu);
_.k(iu,"yt-emoji-multi-person-selector",function(){if(Giw===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;TNN===void 0&&(TNN=document.createElement("template"));var S=TNN;y.call(h,S.content.cloneNode(!0),b.content.firstChild);Giw=b}b=Giw;return b},{mode:2});var iyP;var fq7;var fe=function(){var b=_.g.apply(this,arguments)||this;b.tooltip_=null;return b};
_.z(fe,_.g);_.d=fe.prototype;_.d.dataChanged_=function(){var b;if((b=this.data)==null?0:b.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.$x(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.Mh)(this.tooltip_).textContent=this.data.tooltip};
_.d.computeTargetId=function(){var b;return((b=this.data)==null?void 0:b.targetId)||""};
_.d.computeId_=function(b){return b};
_.d.computeIcon_=function(b){return _.o_(b)};
_.d.onTap_=function(){this.active=!this.active;_.Sx(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.d.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ut("active-changed",this.active))};
_.tm.Object.defineProperties(fe.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var b,h;if((b=this.data)==null?0:(h=b.icon)==null?0:h.iconType)return this.data.icon.iconType==="SUPER_STICKER";var y,S;return((y=this.data)==null?void 0:(S=y.icon)==null?void 0:S.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
fe.prototype.activeChangedForBinding=fe.prototype.activeChangedForBinding;fe.prototype.dataChanged_=fe.prototype.dataChanged_;_.V([_.B(_.Hj.YtLiveChatTooltipTargetingBehavior),_.f("design:type",Object)],fe.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],fe.prototype,"data",void 0);_.V([_.C({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.f("design:type",String)],fe.prototype,"id",void 0);
_.V([_.C({computed:"computeTargetId(data.targetId)"}),_.f("design:type",String)],fe.prototype,"targetId",void 0);_.V([_.C({value:!1,reflectToAttribute:!0}),_.f("design:type",Boolean)],fe.prototype,"active",void 0);_.V([_.C({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.f("design:type",String)],fe.prototype,"icon",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],fe.prototype,"dataChanged_",null);
_.V([_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],fe.prototype,"iconFilled",null);_.V([_.OB("active"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],fe.prototype,"activeChangedForBinding",null);_.V([_.sB({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],fe);
_.k(fe,"yt-emoji-picker-category-button-renderer",function(){if(fq7===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;iyP===void 0&&(iyP=document.createElement("template"));var S=iyP;y.call(h,S.content.cloneNode(!0),b.content.firstChild);fq7=b}b=fq7;return b},{mode:2});var ww5;var lqM;var wa=function(){var b=_.g.apply(this,arguments)||this;b.ariaLabel=null;b.ariaActivedescendant=null;b.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};b.JSC$14479_ignoreNextFocus_=!1;b.longPressTimeoutId=-1;return b};
_.z(wa,_.g);_.d=wa.prototype;_.d.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.d.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.d.emojiChanged_=function(){this.changeFocus_(0,!1);for(var b=_.rU(),h=0;h<this.emoji.length;h++){var y={veType:88013,elementIndex:h},S=this.emoji[h];S.isCustomEmoji&&(S=document.querySelector(("#"+S.emojiId).replace("/","\\/")))&&(y=_.NJ(b,y))&&(S.visualElement=y)}};
_.d.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.d.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.d.emojiSkinToneChanged_=function(b){this.skinTone=b};
_.d.dataChanged=function(){this.data&&this.data.emojiData&&Y8W(this.emojiManager,this.data.emojiData)};
_.d.emojiUrl=function(b){b=this.getEmoji(b);if(!b)return"";var h;b=(h=b.image)==null?void 0:h.thumbnails;return _.Ss(b,24)||""};
_.d.emojiAlt=function(b){var h=this.get("image.accessibility.accessibilityData.label",b);return h?h:b.isCustomEmoji?b.shortcuts[0]:b.emojiId};
_.d.emojiAriaLabel=function(b){return b.shortcuts?b.shortcuts[0]:""};
_.d.emojiAriaSelected=function(b,h,y){return b&&y==h?"true":"false"};
_.d.getEmoji=function(b){if(this.emojiManager)return this.shouldUseStickyPreferences?G7e(this.emojiManager,b):Dw(this.emojiManager,b)};
_.d.computeId_=function(b){return b.categoryId||""};
_.d.computeEmoji=function(b){var h=this;return this.emojiManager?b.emojiIds?b.emojiIds.map(function(y){return y?_.zu(h.emojiManager,y):null}).filter(rzj):b.emojiData?b.emojiData.map(function(y){var S=!!y.emojiId&&_.zu(h.emojiManager,y.emojiId);
return S?Object.assign({},S,y):null}).filter(rzj):[]:[]};
_.d.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.d.computeAriaLabel_=function(b){return _.vi(b)};
_.d.computeAriaActivedescendant_=function(b,h){return b&&b[h]?b[h].emojiId||"":""};
_.d.handleLongPressEmojiWithVariants=function(b,h){this.changeFocusToEmoji(b.emojiId,!1);this.openVariantSelector(b,h)};
_.d.onMouseDown=function(b){var h=this;this.hostElement!==document.activeElement&&(this.JSC$14479_ignoreNextFocus_=!0);if(b.button===0){var y=_.mi(b);if(y instanceof HTMLImageElement){var S=_.$x(this.hostElement).querySelector("#repeat").itemForElement(y);this.emojiContainsVariants(S)&&(this.longPressTimeoutId=setTimeout(function(){h.handleLongPressEmojiWithVariants(S,y)},500))}}};
_.d.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.d.onFocus=function(){this.JSC$14479_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14479_ignoreNextFocus_=!1};
_.d.onBlur_=function(){this.showFocus=!1};
_.d.emojiContainsVariants=function(b){return!!(b&&b.variantIds&&b.variantIds.length)};
_.d.onClick=function(b){clearTimeout(this.longPressTimeoutId);b=_.mi(b);if(b instanceof HTMLImageElement){var h=b.id;this.changeFocusToEmoji(h,!1);var y=this.getEmoji(h),S;if(S=this.shouldUseStickyPreferences&&this.emojiContainsVariants(y)){var F;S=!((F=this.emojiManager.emojiMap[h])!=null&&F.stickyPrefId)}S?(F=_.$x(this.hostElement).querySelector("#repeat").itemForElement(b),this.openVariantSelector(F,b)):_.Sx(this.hostElement,"yt-emoji-select",y)}};
_.d.isActiveEmojiWithVariants=function(b,h){return b&&h?h.stickyPrefId?b===h.stickyPrefId:b===h.emojiId:!1};
_.d.onCloseEmojiVariantSelector=function(b){this.activeEmojiWithVariantsId===b&&(this.activeEmojiWithVariantsId="")};
_.d.onMouseOver_=function(b){b=_.mi(b);b instanceof HTMLImageElement&&_.Sx(this.hostElement,"yt-emoji-hover",_.zu(this.emojiManager,b.id))};
_.d.changeFocus_=function(b,h){this.focusedIndex=(this.focusedIndex+b+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(b=this.emoji[this.focusedIndex],h&&(this.showFocus=!0,_.$x(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.Sx(this.hostElement,"yt-emoji-hover",b)))};
_.d.changeFocusToEmoji=function(b,h){if(b){var y=this.emoji.findIndex(function(S){return S.emojiId===b});
y!==-1&&this.changeFocus_(y-this.focusedIndex,h)}};
_.d.onKeyDown_=function(b){switch(b.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var h=this.emoji[this.focusedIndex];if(h&&h.emojiId){if(this.emojiContainsVariants(h)){var y=_.$x(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(h,y)}else _.Sx(this.hostElement,"yt-emoji-select",Dw(this.emojiManager,h.emojiId)),this.hostElement.focus();b.preventDefault()}}break;case 40:this.changeFocus_(1,!0);b.preventDefault();break;case 38:this.changeFocus_(-1,!0),
b.preventDefault()}};
_.d.onEmojiStickyPreferenceChanged=function(b,h){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&b.emojiId&&b.variantIds&&b.variantIds.includes(h)&&this.activeEmojiWithVariantsId!==h&&this.setStickyEmojiPreference(b.emojiId,h)};
_.d.openVariantSelector=function(b,h){this.activeEmojiWithVariantsId=b.stickyPrefId||b.emojiId||"";_.Sx(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:b,target:h})};
_.d.setStickyEmojiPreference=function(b,h){if(this.data){var y=this.emoji.findIndex(function(F){return F.emojiId===b});
if(y!==-1){var S=this.emoji[y];S.stickyPrefId=h;this.set("emoji."+y,Object.assign({},S));this.activeEmojiWithVariantsId=h}}};
wa.prototype.onKeyDown_=wa.prototype.onKeyDown_;wa.prototype.onMouseOver_=wa.prototype.onMouseOver_;wa.prototype.onClick=wa.prototype.onClick;wa.prototype.onBlur_=wa.prototype.onBlur_;wa.prototype.onFocus=wa.prototype.onFocus;wa.prototype.onMouseUp=wa.prototype.onMouseUp;wa.prototype.onMouseDown=wa.prototype.onMouseDown;wa.prototype.dataChanged=wa.prototype.dataChanged;wa.prototype.disableIncrementalLoadingChanged_=wa.prototype.disableIncrementalLoadingChanged_;wa.prototype.emojiManagerChanged_=wa.prototype.emojiManagerChanged_;
wa.prototype.emojiChanged_=wa.prototype.emojiChanged_;_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],wa.prototype,"ytActionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],wa.prototype,"data",void 0);_.V([_.C({computed:"computeId_(data)"}),_.f("design:type",String)],wa.prototype,"id",void 0);_.V([_.C({computed:"computeEmoji(data)"}),_.f("design:type",Array)],wa.prototype,"emoji",void 0);_.V([_.C(),_.f("design:type",Number)],wa.prototype,"skinTone",void 0);
_.V([_.C(),_.f("design:type",_.R$)],wa.prototype,"emojiManager",void 0);_.V([_.C(),_.f("design:type",Boolean)],wa.prototype,"disableIncrementalLoading",void 0);_.V([_.C({value:0}),_.f("design:type",Number)],wa.prototype,"focusedIndex",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],wa.prototype,"showFocus",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.f("design:type",Object)],wa.prototype,"ariaLabel",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.f("design:type",Object)],wa.prototype,"ariaActivedescendant",void 0);_.V([_.C({value:60}),_.f("design:type",Number)],wa.prototype,"domRepeatTargetFramerate",void 0);_.V([_.C({value:1}),_.f("design:type",Number)],wa.prototype,"domRepeatInitialCount",void 0);_.V([_.C({value:""}),_.f("design:type",String)],wa.prototype,"activeEmojiWithVariantsId",void 0);
_.V([_.C({value:!1}),_.f("design:type",Boolean)],wa.prototype,"shouldUseStickyPreferences",void 0);_.V([_.OB("emoji"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],wa.prototype,"emojiChanged_",null);_.V([_.OB("emojiManager"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],wa.prototype,"emojiManagerChanged_",null);
_.V([_.OB("disableIncrementalLoading"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],wa.prototype,"disableIncrementalLoadingChanged_",null);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],wa.prototype,"dataChanged",null);_.V([_.u3("mousedown"),_.f("design:type",Function),_.f("design:paramtypes",[Object]),_.f("design:returntype")],wa.prototype,"onMouseDown",null);
_.V([_.u3("mouseup"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],wa.prototype,"onMouseUp",null);_.V([_.u3("focus"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],wa.prototype,"onFocus",null);_.V([_.u3("blur"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],wa.prototype,"onBlur_",null);
_.V([_.u3("click"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],wa.prototype,"onClick",null);_.V([_.u3("mouseover"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],wa.prototype,"onMouseOver_",null);_.V([_.u3("keydown"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],wa.prototype,"onKeyDown_",null);
_.V([_.sB({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],wa);
_.k(wa,"yt-emoji-picker-category-renderer",function(){if(lqM===void 0){var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;ww5===void 0&&(ww5=document.createElement("template"));var S=ww5;y.call(h,S.content.cloneNode(!0),b.content.firstChild);lqM=b}b=lqM;return b},{mode:2});var qg7;var xHw;var QTa;var mH8;var lu=function(){var b=_.g.apply(this,arguments)||this;b.ariaLabel=null;b.ariaActivedescendant=null;b.getFormattedStringRawText=_.vi;b.JSC$14485_ignoreNextFocus_=!1;return b};
_.z(lu,_.g);_.d=lu.prototype;_.d.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")};
_.d.emojiUrl=function(b){var h,y;b=(h=Dw(this.emojiManager,b,!0))==null?void 0:(y=h.image)==null?void 0:y.thumbnails;return _.Ss(b,24)||""};
_.d.emojiAlt=function(b){var h=this.get("image.accessibility.accessibilityData.label",b);return h?h:b.isCustomEmoji?b.shortcuts[0]:b.emojiId};
_.d.emojiId=function(b){return"emoji"+b};
_.d.computeId_=function(b){return b.categoryId||""};
_.d.computeAriaActivedescendant_=function(b){return this.emoji&&b<this.emoji.length?this.emojiId(b):""};
_.d.emojiChanged_=function(){this.changeFocus_(0,!1);for(var b=_.rU(),h=0;h<this.emoji.length;h++){var y={veType:88013,elementIndex:h},S=this.emoji[h];S.isCustomEmoji&&(S=document.querySelector(("#"+S.emojiId).replace("/","\\/")))&&(y=_.NJ(b,y))&&(S.visualElement=y)}};
_.d.computeEmoji_=function(b){var h=this;return this.emojiManager?b.emojiIds.map(function(y){return _.zu(h.emojiManager,y,!0)}).filter(czf):[]};
_.d.titleOffsetChanged_=function(){var b=this.hostElement.getBoundingClientRect(),h=_.$x(this.hostElement).querySelector("#title").getBoundingClientRect();b=Math.max(0,Math.min(this.titleOffset,b.height-h.height));_.$x(this.hostElement).querySelector("#title").style.top=b+"px"};
_.d.onEmojiMouseOver_=function(b){_.Sx(this.hostElement,"yt-emoji-hover",b.model.item)};
_.d.onEmojiTap_=function(b){this.data.command&&(b=KhU(_.H9().resolve(_.XS(d_)),this.data.command,b),_.Sx(this.hostElement,"yt-navigate",b))};
_.d.emojiAriaLabel=function(b){return b.shortcuts[0]};
_.d.emojiAriaSelected=function(b,h,y){return b&&y==h?"true":"false"};
_.d.changeFocus_=function(b,h){var y=this.emoji.length;this.focusedIndex=(this.focusedIndex+b+y)%y;b=this.emoji[this.focusedIndex];if(h){var S;(S=_.$x(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||S.scrollIntoView(!1);_.Sx(this.hostElement,"yt-emoji-hover",b)}};
_.d.onMouseDown_=function(){this.JSC$14485_ignoreNextFocus_=!0};
_.d.onFocus_=function(){this.JSC$14485_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14485_ignoreNextFocus_=!1};
_.d.onBlur_=function(){this.showFocus=!1};
_.d.onKeyDown_=function(b){switch(b.keyCode){case 13:this.onEmojiTap_(b);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);b.preventDefault();break;case 38:this.changeFocus_(-1,!0),b.preventDefault()}};
lu.prototype.onKeyDown_=lu.prototype.onKeyDown_;lu.prototype.onBlur_=lu.prototype.onBlur_;lu.prototype.onFocus_=lu.prototype.onFocus_;lu.prototype.onMouseDown_=lu.prototype.onMouseDown_;lu.prototype.onEmojiTap_=lu.prototype.onEmojiTap_;lu.prototype.titleOffsetChanged_=lu.prototype.titleOffsetChanged_;lu.prototype.emojiChanged_=lu.prototype.emojiChanged_;_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],lu.prototype,"ytComponentBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],lu.prototype,"data",void 0);_.V([_.C({computed:"computeId_(data)"}),_.f("design:type",String)],lu.prototype,"id",void 0);_.V([_.C({computed:"computeEmoji_(data)"}),_.f("design:type",Array)],lu.prototype,"emoji",void 0);_.V([_.C({value:0}),_.f("design:type",Number)],lu.prototype,"titleOffset",void 0);_.V([_.C({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.f("design:type",Object)],lu.prototype,"ariaLabel",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.f("design:type",Object)],lu.prototype,"ariaActivedescendant",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],lu.prototype,"showFocus",void 0);_.V([_.C({value:0}),_.f("design:type",Number)],lu.prototype,"focusedIndex",void 0);_.V([_.C(),_.f("design:type",_.R$)],lu.prototype,"emojiManager",void 0);
_.V([_.OB("emoji"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],lu.prototype,"emojiChanged_",null);_.V([_.OB("titleOffset"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],lu.prototype,"titleOffsetChanged_",null);_.V([_.u3("click"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],lu.prototype,"onEmojiTap_",null);
_.V([_.u3("mousedown"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],lu.prototype,"onMouseDown_",null);_.V([_.u3("focus"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],lu.prototype,"onFocus_",null);_.V([_.u3("blur"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],lu.prototype,"onBlur_",null);
_.V([_.u3("keydown"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],lu.prototype,"onKeyDown_",null);_.V([_.sB({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],lu);
_.k(lu,"yt-emoji-picker-upsell-category-renderer",function(){if(mH8===void 0){var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;QTa===void 0&&(QTa=document.createElement("template"));var S=QTa;y.call(h,S.content.cloneNode(!0),b.content.firstChild);mH8=b}b=mH8;return b},{mode:2});var vzo;var boa;var q1=function(){var b=_.g.apply(this,arguments)||this;b.scrollAction="lock";b.verticalAlign="top";return b};
_.z(q1,_.g);_.d=q1.prototype;_.d.onClick=function(b){b=_.mi(b);b instanceof HTMLImageElement&&_.Sx(this.hostElement,"yt-emoji-select",_.zu(this.emojiManager,b.id))};
_.d.openSelector=function(){this.ironOverlayBehavior.open()};
_.d.onDomChange=function(){sTa(this.ytEmojiSelectorBehavior)};
_.d.computeIsFamilySelector=function(b){var h;return(b==null?void 0:(h=b.emoji)==null?void 0:h.emojiId)==="\ud83d\udc6a"};
_.d.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var b=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];b&&b.emojiId&&(_.Sx(this.hostElement,"yt-emoji-select",_.zu(this.emojiManager,b.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.tm.Object.defineProperties(q1.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var b=this,h,y,S;return this.emojiManager&&((h=this.data)==null?0:(y=h.emoji)==null?0:(S=y.variantIds)==null?0:S.length)?this.data.emoji.variantIds.map(function(F){return!!F&&_.zu(b.emojiManager,F)}).filter(function(F){return!!F}):[]}}});
q1.prototype.onClick=q1.prototype.onClick;_.V([_.B(_.tQ),_.f("design:type",Object)],q1.prototype,"ironOverlayBehavior",void 0);_.V([_.B(YgW),_.f("design:type",Object)],q1.prototype,"ytEmojiSelectorBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],q1.prototype,"data",void 0);_.V([_.C(),_.f("design:type",_.R$)],q1.prototype,"emojiManager",void 0);_.V([_.C(),_.f("design:type",Object)],q1.prototype,"scrollAction",void 0);_.V([_.C(),_.f("design:type",Object)],q1.prototype,"verticalAlign",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.f("design:type",Boolean)],q1.prototype,"isFamilySelector",void 0);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],q1.prototype,"emojiVariants",null);_.V([_.u3("click"),_.f("design:type",Function),_.f("design:paramtypes",[MouseEvent]),_.f("design:returntype")],q1.prototype,"onClick",null);_.V([_.sB({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],q1);
_.k(q1,"yt-emoji-variant-selector",function(){if(boa===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;vzo===void 0&&(vzo=document.createElement("template"));var S=vzo;y.call(h,S.content.cloneNode(!0),b.content.firstChild);boa=b}b=boa;return b},{mode:2});var hiG=/:/g,yyo=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],x9=function(){var b=_.g.apply(this,arguments)||this;b.emojiVariantSelector=null;b.emojiMultiPersonSelector=null;b.identity=_.e5;b.lastAnimationTime_=0;b.animationStart_=null;b.animationEnd_=null;return b};
_.z(x9,_.g);_.d=x9.prototype;
_.d.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}}};
_.d.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.I$)};
_.d.attached=function(){_.nF&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&TFG(this.emojiManager)};
_.d.dataChanged=function(){var b;if((b=this.data)==null?0:b.categories){b=this.emojiManager;var h=this.getCustomEmojiIds();b.pickerCustomEmojiIds=[].concat(_.f$(JO7),_.f$(h))}};
_.d.getCustomEmojiIds=function(){var b,h=(b=this.data.categories)==null?void 0:b.find(function(a){var P;return((P=a.emojiPickerCategoryRenderer)==null?void 0:P.categoryId)&&yyo.includes(a.emojiPickerCategoryRenderer.categoryId)}),y;
b=(y=this.data.categories)==null?void 0:y.find(function(a){return a.emojiPickerUpsellCategoryRenderer});
var S,F;return[h==null?void 0:(S=h.emojiPickerCategoryRenderer)==null?void 0:S.emojiIds,b==null?void 0:(F=b.emojiPickerUpsellCategoryRenderer)==null?void 0:F.emojiIds].flat().filter(function(a){return!!a})};
_.d.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.d.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.d.updateCategoriesAndPlaceholderInternal=function(b,h){var y=this;b&&h&&(this.categories=b.categories||[],this.categoryButtons=b.categoryButtons||[],this.resetPlaceholder(),this.search="",_.fZ(function(){y.updateButtons_()}))};
_.d.computeId_=function(b){return b.id||""};
_.d.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(b){return b.emojiPickerCategoryRenderer&&b.emojiPickerCategoryRenderer.emojiData}):!1};
_.d.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.d.onShowEmojiVariantSelector=function(b){var h=b.detail.emojiData;h.variantIds&&h.variantIds.length&&(h.multiSelectorThumbnailRow&&h.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:h,target:b.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:h,target:b.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.d.onIronOverlayClosed=function(b){var h=G7e(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");h&&b.composedPath&&(b.composedPath().includes(_.$x(this.hostElement).querySelector("#emoji-variant-selector"))||b.composedPath().includes(_.$x(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.F8(this.hostElement,"yt-close-emoji-variant-selector",[h.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.d.onEmojiVariantSelectorMouseup=function(b){var h=b.target.firstChild;this.variantSelectorOpened&&h&&_.fZ(function(){h.noCancelOnOutsideClick=!1},100)};
_.d.onEmojiVariantSelectorMousedown=function(b){b=b.target.firstChild;this.variantSelectorOpened&&b&&(b.noCancelOnOutsideClick=!1)};
_.d.onSelectCategory_=function(b){var h=this.search!="";this.search="";for(var y=_.$x(this.hostElement).querySelector("#categories").children,S=0;S<y.length;S++){var F=y[S];if(F.id==b.detail.categoryId){h?(_.$x(this.hostElement).querySelector("#categories").scrollTop=F.offsetTop,this.updateButtons_()):(this.animationStart_=_.$x(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=F.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.d.onEmojiHover_=function(b){this.placeholder=b.detail.shortcuts?b.detail.shortcuts[0]:""};
_.d.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.d.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.d.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.d.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.d.computeSearchCategory_=function(b){b=b.replace(hiG,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();b=b.split(" ");for(var h=[],y=this.emojiManager.emojis,S=0;S<y.length;S++){var F=y[S];if(F.searchTerms)for(var a=0;a<F.searchTerms.length;a++){for(var P=F.searchTerms[a].toLocaleLowerCase(),K=!1,n=0;n<b.length;n++)if(P.indexOf(b[n])!=-1){K=!0;break}if(K&&(!F.isCustomEmoji||!F.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(F.emojiId))){h.push(F.emojiId);
break}}}return{categoryId:-1,emojiIds:h}};
_.d.computeSearchEmptyMessage_=function(b,h){return b&&h&&h.emojiIds&&h.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.d.computeSearching_=function(b){return this.emojiManager&&b.replace(hiG,"").length>1};
_.d.computeSkinToneHidden=function(){var b;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((b=this.data)==null||!b.hideSkinTonePicker)};
_.d.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.d.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.d.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.d.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.d.selectSkinTone_=function(b){b=Number(b.target.getAttribute("tone"));this.set("emojiManager.skinTone",b);_.F8(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[b]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.d.skinToneChanged_=function(){_.$x(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var b=_.$x(this.hostElement).querySelector("#dropdown-content").children,h=0;h<b.length;h++)h===this.skinTone?b[h].setAttribute("selected",""):b[h].removeAttribute("selected")};
_.d.animateScroll_=function(b){this.lastAnimationTime_||(this.lastAnimationTime_=b);b-=this.lastAnimationTime_;b<200?(_.$x(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*b/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.$x(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.d.searchChanged_=function(){this.updateButtons_()};
_.d.updateButtons_=function(){var b=null;if(!this.search)for(var h=_.$x(this.hostElement).querySelector("#categories").scrollTop,y=_.$x(this.hostElement).querySelector("#categories").children,S=0;S<y.length;S++){var F=y[S];F.offsetTop<=h&&(b=F.id)}h=_.$x(this.hostElement).querySelector("#category-buttons").children;for(y=0;y<h.length;y++)S=h[y],S.active=S.id===b};
x9.prototype.searchChanged_=x9.prototype.searchChanged_;x9.prototype.skinToneChanged_=x9.prototype.skinToneChanged_;x9.prototype.onEmojiHover_=x9.prototype.onEmojiHover_;x9.prototype.onSelectCategory_=x9.prototype.onSelectCategory_;x9.prototype.onShowEmojiVariantSelector=x9.prototype.onShowEmojiVariantSelector;x9.prototype.updateCategoriesAndPlaceholder_=x9.prototype.updateCategoriesAndPlaceholder_;x9.prototype.dataChanged=x9.prototype.dataChanged;
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],x9.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],x9.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],x9.prototype,"data",void 0);_.V([_.C({value:function(){return[]}}),
_.f("design:type",Array)],x9.prototype,"categories",void 0);_.V([_.C({value:function(){return[]}}),
_.f("design:type",Array)],x9.prototype,"categoryButtons",void 0);_.V([_.C({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.f("design:type",Boolean)],x9.prototype,"disableScroll",void 0);_.V([_.C({computed:"computeId_(data)",reflectToAttribute:!0}),_.f("design:type",String)],x9.prototype,"id",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],x9.prototype,"selected",void 0);
_.V([_.C({value:!1}),_.f("design:type",Boolean)],x9.prototype,"disableIncrementalLoading",void 0);_.V([_.C(),_.f("design:type",String)],x9.prototype,"placeholder",void 0);_.V([_.C({value:""}),_.f("design:type",String)],x9.prototype,"search",void 0);_.V([_.C({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.f("design:type",Boolean)],x9.prototype,"searching",void 0);_.V([_.C({computed:"computeSearchCategory_(search)"}),_.f("design:type",Object)],x9.prototype,"searchCategory",void 0);
_.V([_.C({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.f("design:type",Object)],x9.prototype,"searchEmptyMessage",void 0);_.V([_.C({computed:"identity(emojiManager.skinTone)"}),_.f("design:type",Number)],x9.prototype,"skinTone",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],x9.prototype,"skinToneOpened",void 0);_.V([_.C({value:!1,reflectToAttribute:!0}),_.f("design:type",Boolean)],x9.prototype,"variantSelectorOpened",void 0);
_.V([_.C({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.f("design:type",Boolean)],x9.prototype,"skinToneHidden",void 0);_.V([_.C(),_.f("design:type",_.R$)],x9.prototype,"emojiManager",void 0);_.V([_.C(),_.f("design:type",Object)],x9.prototype,"emojiVariantSelector",void 0);_.V([_.C(),_.f("design:type",Object)],x9.prototype,"emojiMultiPersonSelector",void 0);
_.V([_.C({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.f("design:type",Boolean)],x9.prototype,"shouldUseStickyPreferences",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],x9.prototype,"dataChanged",null);_.V([_.OB("data","selected"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],x9.prototype,"updateCategoriesAndPlaceholder_",null);
_.V([_.u3("yt-show-emoji-variant-selector"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],x9.prototype,"onShowEmojiVariantSelector",null);_.V([_.u3("yt-emoji-picker-select-category"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],x9.prototype,"onSelectCategory_",null);_.V([_.u3("yt-emoji-hover"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],x9.prototype,"onEmojiHover_",null);
_.V([_.OB("skinTone"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],x9.prototype,"skinToneChanged_",null);_.V([_.OB("search"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],x9.prototype,"searchChanged_",null);_.V([_.sB({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],x9);
_.k(x9,"yt-emoji-picker-renderer",function(){if(xHw===void 0){var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;qg7===void 0&&(qg7=document.createElement("template"));var S=qg7;y.call(h,S.content.cloneNode(!0),b.content.firstChild);xHw=b}b=xHw;return b},{mode:2});var Qg=function(){var b=_.g.apply(this,arguments)||this;b.emojiManager=_.I$;b.isDarkTheme=document.documentElement.hasAttribute("dark");b.selectedIndex=1;b.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return b};
_.z(Qg,_.g);_.d=Qg.prototype;_.d.handleEmojiCustomizationVisible=function(b){this.emojiPickerRenderer.selected=b;this.selectedIndex=1;b?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.d.emojiCustomizationSetChanged=function(){var b;(b=this.data)!=null&&b.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.bo(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.d.updateSaveButtonState=function(b){var h;(h=this.data)!=null&&h.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.R7("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:b}))};
_.d.emojiUrl=function(b){b=_.zu(this.emojiManager,b);if(!b)return"";var h;b=(h=b.image)==null?void 0:h.thumbnails;return _.Ss(b,24)||""};
_.d.emojiAlt=function(b){var h=_.zu(this.emojiManager,b);if(!h)return b;var y,S,F,a=(h==null?void 0:(y=h.image)==null?void 0:(S=y.accessibility)==null?void 0:(F=S.accessibilityData)==null?void 0:F.label)||"";return a?a:h.isCustomEmoji?h.shortcuts[0]:h.emojiId||b};
_.d.emojiAriaLabel=function(b){var h,y;return((h=_.zu(this.emojiManager,b))==null?void 0:(y=h.shortcuts)==null?void 0:y[0])||b};
_.d.onEmojiClick=function(b){b.model.index!==0&&(this.selectedIndex=b.model.index)};
_.d.onEmojiSelect=function(b){b=b.detail;var h,y;((h=this.data)==null?0:h.emojiCustomizationSetEntityKey)&&((y=this.emojiCustomizationSet)==null?0:y.emojiId)&&b.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,b.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.R7("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,b.emojiId,this.selectedIndex)}))};
_.d.canEditEmoji=function(b,h,y){b=b.indexOf(h);return b===y||b===0||y===0?!1:!0};
_.d.getUpdatedEmojiIdList=function(b,h,y){var S=b.indexOf(h);b=[].concat(_.f$(b));S>=0&&(b[S]=b[y]);b[y]=h;return b};
_.tm.Object.defineProperties(Qg,{template:{configurable:!0,enumerable:!0,get:function(){if(tzM===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;NN7===void 0&&(NN7=document.createElement("template"));var S=NN7;y.call(h,S.content.cloneNode(!0),b.content.firstChild);tzM=b}b=tzM;return b}}});
Qg.prototype.onEmojiSelect=Qg.prototype.onEmojiSelect;_.V([_.B(_.Xc),_.f("design:type",Object)],Qg.prototype,"ytLiveChatReduxBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],Qg.prototype,"ytActionHandlerBehavior",void 0);_.V([_.to("yt-emoji-picker-renderer"),_.f("design:type",Object)],Qg.prototype,"emojiPickerRenderer",void 0);
_.V([_.C({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(b,h){return _.Mm(b.entities,"emojiCustomizationSetEntity",h)},
observer:"emojiCustomizationSetChanged"}),_.f("design:type",Object)],Qg.prototype,"emojiCustomizationSet",void 0);_.V([_.C(),_.f("design:type",Object)],Qg.prototype,"originalEmojiSet",void 0);_.V([_.C(),_.f("design:type",_.R$)],Qg.prototype,"emojiManager",void 0);_.V([_.C(),_.f("design:type",Object)],Qg.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Qg.prototype,"isDarkTheme",void 0);_.V([_.C(),_.f("design:type",Object)],Qg.prototype,"selectedIndex",void 0);
_.V([_.u3("yt-emoji-select"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],Qg.prototype,"onEmojiSelect",null);_.V([_.sB({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],Qg);var SyG;var FOM;var a_W;var dwM;var m0=function(){var b=_.g.apply(this,arguments)||this;b.authorBadges=[];return b};
_.z(m0,_.g);_.d=m0.prototype;_.d.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.d.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]]"}}}}}};
_.d.dataChanged=function(){var b=nCj(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",b)};
_.d.updateMessage=function(){var b=this.data.message,h=_.$x(_.$x(this.hostElement).querySelector("#message"));h.textContent="";b&&h.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(b))};
_.d.shouldSupportWholeItemClick=function(){return!0};
_.d.onShowOriginalClick=function(b){b.preventDefault();this.showOriginal=!0};
_.d.computeShowBar=function(b,h,y){return b&&h||y};
_.d.computeAuthorBadges=function(b){return b.authorBadges||[]};
_.d.computeAuthorIsOwner=function(b){return!!XWN(b.authorBadges,"owner")};
_.d.computeAuthorNameColor=function(b){var h;if(_.r("live_chat_author_name_color_usernames")&&(b==null?0:(h=b.authorName)==null?0:h.simpleText))return _.ruy(_.cuf(b.authorName.simpleText));if(_.r("live_chat_seed_color_usernames")&&(b==null?0:b.authorSeedColorArgb))return _.ruy(_.Kt(b.authorSeedColorArgb));if(_.r("live_chat_colored_usernames"))return"#cc0000";var y;return _.r("live_chat_simple_color_usernames")&&(b==null?0:(y=b.authorName)==null?0:y.simpleText)&&(b==null?0:b.authorUsernameColorLight)&&
(b==null?0:b.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.Kt(b.authorUsernameColorDark):_.Kt(b.authorUsernameColorLight):""};
m0.prototype.updateMessage=m0.prototype.updateMessage;m0.prototype.dataChanged=m0.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],m0.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.BP.YtLiveChatItemBehavior),_.f("design:type",_.WP)],m0.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],m0.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],m0.prototype,"data",void 0);
_.V([_.C({value:!1,reflectToAttribute:!0}),_.f("design:type",Boolean)],m0.prototype,"showOriginal",void 0);_.V([_.C({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.f("design:type",Boolean)],m0.prototype,"isDimmed",void 0);_.V([_.C({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.f("design:type",Boolean)],m0.prototype,"showBar",void 0);
_.V([_.C({computed:"computeAuthorBadges(data)"}),_.f("design:type",Array)],m0.prototype,"authorBadges",void 0);_.V([_.C({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.f("design:type",Boolean)],m0.prototype,"authorIsOwner",void 0);_.V([_.C({value:!1,reflectToAttribute:!0}),_.f("design:type",Boolean)],m0.prototype,"inCollapsedBanner",void 0);_.V([_.C({value:!1,reflectToAttribute:!0}),_.f("design:type",Boolean)],m0.prototype,"inBanner",void 0);
_.V([_.C({value:_.r("live_chat_hide_avatars"),reflectToAttribute:!0}),_.f("design:type",Boolean)],m0.prototype,"avatarHidden",void 0);_.V([_.C({computed:"computeAuthorNameColor(data)"}),_.f("design:type",String)],m0.prototype,"authorNameColor",void 0);_.V([_.C(),_.f("design:type",_.pe)],m0.prototype,"participantsManager",void 0);_.V([_.C({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.f("design:type",Object)],m0.prototype,"filledButtonOverrides",void 0);
_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],m0.prototype,"dataChanged",null);_.V([_.OB("data.message"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],m0.prototype,"updateMessage",null);_.V([_.sB({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],m0);
_.k(m0,"yt-live-chat-text-message-renderer",function(){if(dwM===void 0){var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;a_W===void 0&&(a_W=document.createElement("template"));var S=a_W;y.call(h,S.content.cloneNode(!0),b.content.firstChild);dwM=b}b=dwM;return b},{mode:0});var vP=function(){var b=_.g.apply(this,arguments)||this;b.tonalButtonOverrides={type:"tonal",style:"overlay"};return b};
_.z(vP,_.g);
vP.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]]"}}}}}};
vP.prototype.shouldSupportInlineActionButtons=function(){return!0};
vP.prototype.shouldSupportWholeItemClick=function(){return!0};
_.tm.Object.defineProperties(vP.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],vP.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.BP.YtLiveChatItemBehavior),_.f("design:type",_.WP)],vP.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],vP.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],vP.prototype,"data",void 0);_.V([_.C(),_.f("design:type",_.pe)],vP.prototype,"participantsManager",void 0);
_.V([_.C(),_.f("design:type",Object)],vP.prototype,"tonalButtonOverrides",void 0);_.V([_.C({reflectToAttribute:!0}),_.W("data.infoDialogButton"),_.f("design:type",Object),_.f("design:paramtypes",[])],vP.prototype,"hasInfoDialogButton",null);_.V([_.sB({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],vP);
_.k(vP,"yt-live-chat-auto-mod-message-renderer",function(){if(FOM===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;SyG===void 0&&(SyG=document.createElement("template"));var S=SyG;y.call(h,S.content.cloneNode(!0),b.content.firstChild);FOM=b}b=FOM;return b},{mode:0});var jV8;var $wW;var LOe;var PLG=function(){return _.g.apply(this,arguments)||this};
_.z(PLG,_.g);_.V([_.C(),_.f("design:type",Object)],PLG.prototype,"data",void 0);_.V([_.Yx({is:"ytd-factoid-renderer",disableElementRegistration:!0})],PLG);
_.k(PLG,"ytd-factoid-renderer",function(){if(LOe!==void 0)return LOe;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return LOe=b},{mode:1});var bw=function(){return _.g.apply(this,arguments)||this};
_.z(bw,_.g);bw.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.V([_.C(),_.f("design:type",Object)],bw.prototype,"data",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],bw.prototype,"ytRendererstamperBehavior",void 0);_.V([_.sB({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],bw);
_.k(bw,"yt-live-chat-channel-activity-reputation-renderer",function(){if($wW===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;jV8===void 0&&(jV8=document.createElement("template"));var S=jV8;y.call(h,S.content.cloneNode(!0),b.content.firstChild);$wW=b}b=$wW;return b},{mode:0});var KOb;var Zoa;var hv=function(){return _.g.apply(this,arguments)||this};
_.z(hv,_.g);hv.prototype.ready=function(){var b=document.querySelector("yt-live-chat-app");b&&b.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],hv.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Boolean)],hv.prototype,"menuFocused",void 0);_.V([_.C(),_.f("design:type",Object)],hv.prototype,"data",void 0);_.V([_.B(_.BP.YtLiveChatItemBehavior),_.f("design:type",_.WP)],hv.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.sB({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],hv);
_.k(hv,"yt-live-chat-donation-announcement-renderer",function(){if(Zoa===void 0){var b=document.createElement("template");_.D(b,'\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>');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;KOb===void 0&&(KOb=document.createElement("template"));var S=KOb;y.call(h,S.content.cloneNode(!0),b.content.firstChild);Zoa=b}b=Zoa;return b},{mode:0});var oce;var MLa,ncW=function(){if(MLa!==void 0)return MLa;var b=document.createElement("template");_.D(b,'\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>');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;oce===void 0&&(oce=document.createElement("template"));var S=oce;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return MLa=b};var yQ=function(){return _.g.apply(this,arguments)||this};
_.z(yQ,_.g);_.tm.Object.defineProperties(yQ,{template:{configurable:!0,enumerable:!0,get:function(){return ncW()}}});
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],yQ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],yQ.prototype,"data",void 0);_.V([_.sB({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],yQ);_.k(yQ,"yt-live-chat-empty-feed-view-model",function(){return ncW()},{mode:0});var X1P;var Ho5;var Sb=function(){return _.g.apply(this,arguments)||this};
_.z(Sb,_.g);Sb.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"}}}}}};
_.tm.Object.defineProperties(Sb.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var b,h;return{runs:[{text:(b=this.data)==null?void 0:(h=b.channelName)==null?void 0:h.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var b=[],h;if((h=this.data)==null||!h.channelBadges)return b;var y;h=_.L((y=this.data)==null?void 0:y.channelBadges);for(y=h.next();!y.done;y=h.next()){y=_.c(y.value,KJo);var S=void 0,F=void 0;if((S=y)==null?0:(F=S.badgeImage)==null?0:F.sources)S=void 0,F={liveChatAuthorBadgeRenderer:{tooltip:y.tooltip,accessibility:{accessibilityData:{label:(S=_.c(y.rendererContext,_.zR))==null?void 0:S.label}}}},y.badgeImage.sources[0].clientResource?F.liveChatAuthorBadgeRenderer.icon=
{iconType:y.badgeImage.sources[0].clientResource.imageName}:F.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:y.badgeImage.sources},b.push(F)}return b}}});
_.V([_.C(),_.f("design:type",Object)],Sb.prototype,"data",void 0);_.V([_.W("data.channelName"),_.f("design:type",Object),_.f("design:paramtypes",[])],Sb.prototype,"channelName",null);_.V([_.W("data.channelBadges"),_.f("design:type",Array),_.f("design:paramtypes",[])],Sb.prototype,"channelBadges",null);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Sb.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.sB({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],Sb);
_.k(Sb,"yt-live-chat-identity-view-model",function(){if(Ho5===void 0){var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;X1P===void 0&&(X1P=document.createElement("template"));var S=X1P;y.call(h,S.content.cloneNode(!0),b.content.firstChild);Ho5=b}b=Ho5;return b},{mode:0});var uYo;var OoN;var NTM;var tLo;var Fy=function(){var b=_.g.apply(this,arguments)||this;b.hidden=!1;b.supportsInlineActionButtons=!0;return b};
_.z(Fy,_.g);Fy.prototype.ready=function(){var b;((b=document.querySelector("yt-live-chat-app"))==null?0:b.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
Fy.prototype.dataChanged=function(b){var h=(0,_.Mh)(_.$x(this.hostElement).querySelector("#detail-text"));h.textContent="";(b==null?0:b.detailText)&&h.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(b.detailText))};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Fy.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.BP.YtLiveChatItemBehavior),_.f("design:type",_.WP)],Fy.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Fy.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C({observer:"dataChanged"}),_.f("design:type",Object)],Fy.prototype,"data",void 0);
_.V([_.C({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.f("design:type",Object)],Fy.prototype,"hidden",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],Fy);
_.k(Fy,"yt-live-chat-legacy-paid-message-renderer",function(){if(tLo===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;NTM===void 0&&(NTM=document.createElement("template"));var S=NTM;y.call(h,S.content.cloneNode(!0),b.content.firstChild);tLo=b}b=tLo;return b},{mode:0});var ryN;var cyb;var Rie={},ap=function(){return _.cl.apply(this,arguments)||this};
_.z(ap,_.cl);ap.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
ap.prototype.onLiveChatMembershipItemBehaviorClick=ap.prototype.onLiveChatMembershipItemBehaviorClick;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],ap.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],ap.prototype,"data",void 0);_.V([_.u3("click"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],ap.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.V([_.Rc()],ap);
Rie.YtLiveChatMembershipItemBehavior=[ap.prototype,_.Q.YtRendererBehavior];var dP=function(){var b=_.g.apply(this,arguments)||this;b.supportsInlineActionButtons=!0;b.hasPrimaryHeaderText=!1;b.showOnlyHeader=!1;b.authorBadges=[];b.modern=_.r("web_button_rework_with_live");b.buttonOverrides={style:"overlay",type:"filled"};return b};
_.z(dP,_.g);_.d=dP.prototype;_.d.shouldSupportInlineActionButtons=function(){return!0};
_.d.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.d.ready=function(){var b=document.querySelector("yt-live-chat-app");b&&b.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.d.messageChanged=function(){var b=this.data.message,h=(0,_.Mh)(_.$x(this.hostElement).querySelector("#message"));h.textContent="";b&&h.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(b))};
_.d.computeHasPrimaryHeaderText=function(b){return!(!b||!b.headerPrimaryText)};
_.d.computeShowOnlyHeader=function(b,h){return this.isMessageEmpty(b,h)};
_.d.computeAuthorBadges=function(b){return b.authorBadges||[]};
_.d.isMessageEmpty=function(b,h){return!b||b.empty?!0:!b.message&&!b.inputField&&!h};
_.d.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.d.getInputElement=function(){return _.$x(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.d.inputFocus=function(){var b=this.getInputElement();b&&b.focus()};
_.d.inputInsertEmoji=function(b){var h=this.getInputElement();h&&h.insertEmoji(b)};
_.d.inputMessage=function(){var b=this.getInputElement();return b&&this.data.inputField?(b.completeEmojis(),_.GA(b.liveChatRichMessageInput)):null};
_.d.onFooterButtonClick=function(){this.data.footerButton&&_.Sx(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.d.shouldSupportWholeItemClick=function(){return!0};
dP.prototype.isDeletedChanged=dP.prototype.isDeletedChanged;dP.prototype.messageChanged=dP.prototype.messageChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],dP.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.BP.YtLiveChatItemBehavior),_.f("design:type",_.WP)],dP.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.B(Rie.YtLiveChatMembershipItemBehavior),_.f("design:type",Object)],dP.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],dP.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],dP.prototype,"data",void 0);_.V([_.C({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.f("design:type",Object)],dP.prototype,"hasPrimaryHeaderText",void 0);_.V([_.C({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.f("design:type",Object)],dP.prototype,"showOnlyHeader",void 0);
_.V([_.C({computed:"computeAuthorBadges(data)"}),_.f("design:type",Array)],dP.prototype,"authorBadges",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],dP.prototype,"modern",void 0);_.V([_.OB("data.message"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],dP.prototype,"messageChanged",null);_.V([_.OB("isDeleted"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],dP.prototype,"isDeletedChanged",null);
_.V([_.sB({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],dP);
_.k(dP,"yt-live-chat-membership-item-renderer",function(){if(cyb===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;ryN===void 0&&(ryN=document.createElement("template"));var S=ryN;y.call(h,S.content.cloneNode(!0),b.content.firstChild);cyb=b}b=cyb;return b},{mode:0});var ziN;var Dwe;var jb=function(){return _.g.apply(this,arguments)||this};
_.z(jb,_.g);jb.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],jb.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],jb.prototype,"data",void 0);_.V([_.sB({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],jb);
_.k(jb,"yt-live-chat-mode-change-message-renderer",function(){if(Dwe===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;ziN===void 0&&(ziN=document.createElement("template"));var S=ziN;y.call(h,S.content.cloneNode(!0),b.content.firstChild);Dwe=b}b=Dwe;return b},{mode:0});var I_7;var BTM;var $d=function(){return _.g.apply(this,arguments)||this};
_.z($d,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],$d.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.BP.YtLiveChatItemBehavior),_.f("design:type",_.WP)],$d.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],$d.prototype,"data",void 0);_.V([_.sB({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],$d);
_.k($d,"yt-live-chat-moderation-message-renderer",function(){if(BTM===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;I_7===void 0&&(I_7=document.createElement("template"));var S=I_7;y.call(h,S.content.cloneNode(!0),b.content.firstChild);BTM=b}b=BTM;return b},{mode:0});var WOw;var Ayb;var Lf=function(){return _.g.apply(this,arguments)||this};
_.z(Lf,_.g);Lf.prototype.onClick=function(){var b;if((b=this.data)!=null&&b.onClickCommand){var h;_.nt.instance.resolveCommand((h=this.data)==null?void 0:h.onClickCommand)}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Lf.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Xc),_.f("design:type",Object)],Lf.prototype,"ytLiveChatReduxBehavior",void 0);_.V([_.B(_.BP.YtLiveChatItemBehavior),_.f("design:type",_.WP)],Lf.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Lf.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Lf.prototype,"data",void 0);
_.V([_.sB({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],Lf);
_.k(Lf,"yt-live-chat-offer-click-count-message-renderer",function(){if(Ayb===void 0){var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;WOw===void 0&&(WOw=document.createElement("template"));var S=WOw;y.call(h,S.content.cloneNode(!0),b.content.firstChild);Ayb=b}b=Ayb;return b},{mode:0});var Uwa;var p1P=function(){return _.g.apply(this,arguments)||this};
_.z(p1P,_.g);_.V([_.C(),_.f("design:type",Object)],p1P.prototype,"data",void 0);_.V([_.sB({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],p1P);
_.k(p1P,"yt-live-chat-placeholder-item-renderer",function(){if(Uwa===void 0){var b=document.createElement("template");_.D(b,"\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");b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);Uwa=b}b=Uwa;return b},{mode:0});var JyP;var eiM;var CLP=new QE(7),Pg=function(){var b=_.g.apply(this,arguments)||this;b.data={};return b};
_.z(Pg,_.g);Pg.prototype.dataChanged=function(){var b;((b=this.data)==null?0:b.class)&&_.Zm(this.hostElement,this.data.class,!0);var h;((h=this.oldData)==null?0:h.class)&&_.Zm(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
Pg.prototype.computeTimestampString=function(b){return CLP.format(new Date(b/1E3))};
Pg.prototype.dataChanged=Pg.prototype.dataChanged;_.V([_.C(),_.f("design:type",Object)],Pg.prototype,"data",void 0);_.V([_.C({computed:"computeTimestampString(data.timestampUsec)"}),_.f("design:type",String)],Pg.prototype,"timestampString",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Pg.prototype,"dataChanged",null);_.V([_.sB({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],Pg);
_.k(Pg,"yt-live-chat-server-error-message",function(){if(eiM===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;JyP===void 0&&(JyP=document.createElement("template"));var S=JyP;y.call(h,S.content.cloneNode(!0),b.content.firstChild);eiM=b}b=eiM;return b},{mode:0});var gcM;var sVb;var Kf=function(){var b=_.g.apply(this,arguments)||this;b.defaultToFilledIcon=!1;return b};
_.z(Kf,_.g);Kf.prototype.computeHasPrimaryColorIcon=function(b){return b==="SPARK"||b==="SPONSORSHIP_STAR"};
Kf.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Kf.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.BP.YtLiveChatItemBehavior),_.f("design:type",_.WP)],Kf.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Kf.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Kf.prototype,"defaultToFilledIcon",void 0);_.V([_.C(),_.f("design:type",Object)],Kf.prototype,"data",void 0);
_.V([_.C({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.f("design:type",Boolean)],Kf.prototype,"hasPrimaryColorIcon",void 0);_.V([_.sB({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],Kf);
_.k(Kf,"yt-live-chat-viewer-engagement-message-renderer",function(){if(sVb===void 0){var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;gcM===void 0&&(gcM=document.createElement("template"));var S=gcM;y.call(h,S.content.cloneNode(!0),b.content.firstChild);sVb=b}b=sVb;return b},{mode:0});var YyP;var ZV=function(){var b=_.g.apply(this,arguments)||this;b.modernUpdate=!1;b.buttonStyle="overlay";b.buttonType="filled";return b};
_.z(ZV,_.g);ZV.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
ZV.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],ZV.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],ZV.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],ZV.prototype,"modernUpdate",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",String)],ZV.prototype,"buttonStyle",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",String)],ZV.prototype,"buttonType",void 0);
_.V([_.Yx({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],ZV);
_.k(ZV,"ytd-ad-hover-text-button-renderer",function(){if(YyP!==void 0)return YyP;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return YyP=b},{mode:1});var TTG;var op=function(){var b=_.g.apply(this,arguments)||this;b.buttonOverrides={size:"XS"};return b};
_.z(op,_.g);op.prototype.onHelpTap=function(b){this.data&&this.data.informationDialog&&(_.Sx(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),b.preventDefault(),b.stopPropagation())};
_.V([_.C(),_.f("design:type",Object)],op.prototype,"buttonOverrides",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],op.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],op.prototype,"data",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],op);
_.k(op,"ytd-live-chat-purchased-product-message-renderer",function(){if(TTG!==void 0)return TTG;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return TTG=b},{mode:1});var G3N;var k3G;var MT=function(){var b=_.g.apply(this,arguments)||this;b.isContainerDeleted=!1;return b};
_.z(MT,_.g);MT.prototype.onContextMenuClick=function(b){this.ytLiveChatItemBehavior.showContextMenu(b)};
MT.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))};
MT.prototype.isContainerDeletedChanged=MT.prototype.isContainerDeletedChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],MT.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.BP.YtLiveChatItemBehavior),_.f("design:type",_.WP)],MT.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],MT.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],MT.prototype,"isContainerDeleted",void 0);
_.V([_.C(),_.f("design:type",String)],MT.prototype,"deletedStateMessage",void 0);_.V([_.OB("isContainerDeleted"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],MT.prototype,"isContainerDeletedChanged",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],MT);
_.k(MT,"ytd-sponsorships-live-chat-header-renderer",function(){if(k3G!==void 0)return k3G;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return k3G=b},{mode:1});var nf=function(){var b=_.g.apply(this,arguments)||this;b.modern=_.r("web_button_rework_with_live");b.buttonOverrides={style:"overlay",type:"filled"};return b};
_.z(nf,_.g);nf.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]]"}}}}}};
nf.prototype.onCtaButtonClick=function(){var b,h=_.c((b=this.data)==null?void 0:b.optInPrompt,_.OU);if(b=this.maybeGetButtonCommand(h)){var y;(y=_.rU())==null||y.clickCommand(b)}};
nf.prototype.maybeGetButtonCommand=function(b){return!b||!b.command||_.c(b.command,qta)===void 0&&_.c(b.command,lwb)===void 0?null:b.command};
nf.prototype.shouldHideOptinPrompt=function(b,h){return!b||h};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],nf.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.BP.YtLiveChatItemBehavior),_.f("design:type",_.WP)],nf.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],nf.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],nf.prototype,"modern",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],nf);
_.k(nf,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(G3N!==void 0)return G3N;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return G3N=b},{mode:1});var VLw;var Xy=function(){return _.g.apply(this,arguments)||this};
_.z(Xy,_.g);Xy.prototype.onContextMenuClick=function(b){this.ytLiveChatItemBehavior.showContextMenu(b)};
Xy.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))};
Xy.prototype.isDeletedChanged=Xy.prototype.isDeletedChanged;_.V([_.B(_.BP.YtLiveChatItemBehavior),_.f("design:type",_.WP)],Xy.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Xy.prototype,"data",void 0);_.V([_.OB("isDeleted"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Xy.prototype,"isDeletedChanged",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],Xy);
_.k(Xy,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(VLw!==void 0)return VLw;var b=document.createElement("template");_.D(b,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-redemption-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-img-shadow id="author-photo" height="24" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-img-shadow>\n</template>\n<template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon id="author-photo" class="no-photo style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer" icon="yt-sys-icons:account_circle"></yt-icon>\n</template>\n<div id="content" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <span id="timestamp" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[timestampString]]\n  \n  </span><template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    </yt-live-chat-author-chip>\n  </template>\n  <yt-formatted-string id="message" hidden$="[[isDeleted]]" text="[[data.message]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-formatted-string>\n  <yt-icon id="gift-icon" default-to-filled="true" hidden$="[[isDeleted]]" icon="star_circle_ribbon" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  <div id="deleted-message" hidden$="[[!isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[getSimpleString(data.deletedStateMessage)]]\n  </div>\n</div>\n<div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return VLw=b},{mode:1});var Hg=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return b};
_.z(Hg,_.g);_.d=Hg.prototype;
_.d.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"}}}};
_.d.handleLiveChatAction=function(b){_.c(b,pJa)?this.handleMarkChatItemAsDeletedAction(_.c(b,pJa)):_.c(b,UeW)&&this.handleRemoveChatItemAction(_.c(b,UeW))};
_.d.handleLiveChatActions=function(b){b.forEach(this.handleLiveChatAction,this)};
_.d.handleMarkChatItemAsDeletedAction=function(b){var h=this,y;((y=this.data)==null?0:y.items)&&this.data.items.forEach(function(S,F){var a=Object.keys(S)[0];Object.values(S)[0].id===b.targetItemId&&h.markAsDeleted("data.items",F,a,b.deletedStateMessage,b.showOriginalContentMessage)})};
_.d.handleRemoveChatItemAction=function(b){var h=this,y;((y=this.data)==null?0:y.items)&&this.data.items.forEach(function(S,F){Object.values(S)[0].id===b.targetItemId&&h.splice("data.items",F,1)})};
_.d.markAsDeleted=function(b,h,y,S,F){b=[b,h,y].join(".");this.set(b+".deletedStateMessage",S);this.set(b+".showOriginalContentMessage",F)};
_.V([_.C(),_.f("design:type",Object)],Hg.prototype,"data",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Hg.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],Hg.prototype,"ytActionHandlerBehavior",void 0);_.V([_.sB({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],Hg);
_.k(Hg,"yt-live-chat-item-display-list-renderer",function(){if(OoN===void 0){var b=document.createElement("template");_.D(b,'\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>');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;uYo===void 0&&(uYo=document.createElement("template"));var S=uYo;y.call(h,S.content.cloneNode(!0),b.content.firstChild);OoN=b}b=OoN;return b},{mode:0});var Ecw;var iow,f_o=function(){if(iow!==void 0)return iow;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;Ecw===void 0&&(Ecw=document.createElement("template"));var S=Ecw;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return iow=b};var uw=function(){var b=_.g.apply(this,arguments)||this;b.isHeader=!1;return b};
_.z(uw,_.g);uw.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.tm.Object.defineProperties(uw,{template:{configurable:!0,enumerable:!0,get:function(){return f_o()}}});
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],uw.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],uw.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],uw.prototype,"isHeader",void 0);_.V([_.sB({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],uw);_.k(uw,"yt-live-chat-item-display-renderer",function(){return f_o()},{mode:0});var w15,l_b,vc5,mwG;
w15={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}};l_b={home:"eohps",search:"eosps",watch:"eowps"};_.qyW=["watch","search","home"];
_.OA=function(){this.JSC$14596_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14596_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.QC("PRECONSTRUCTION_DELAY",0);this.signals_=_.Dh();this.targetPage_=""};
_.OA.prototype.init=function(b,h){b=b===void 0?"":b;h=h===void 0?null:h;if(this.JSC$14596_isInitialized_)this.abort();else if(this.JSC$14596_isInitialized_=!0,b&&_.xwW(this,b),h){var y=_.Iz(this.signals_,"pcl")?0:10,S=function(){for(var F=0,a;a=_.qyW[F++];)a!=b&&a!=h&&this.pendingPages_.push(a);_.QVa(this)}.bind(this);
this.signals_.parkOrScheduleJob(S,y,"pcl")}};
_.OA.prototype.abort=function(){this.fragmentJobId_&&(_.xP.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);mwG(this)};
_.xwW=function(b,h){b.JSC$14596_isInitialized_&&!b.targetPage_&&(b.targetPage_=h,vc5(b,h),b.isInitialPass_=!1,vc5(b,h),b.signals_.processSignal(l_b[b.targetPage_]),mwG(b),_.QVa(b))};
_.QVa=function(b){b.pendingPages_.length&&!b.pagePreparerJobId_&&(b.pagePreparerJobId_=_.VT(_.xP,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.xwW(this,this.pendingPages_.shift())}.bind(b),b.DEFAULT_DELAY_))};
vc5=function(b,h){if(h=w15[h])for(var y in h){var S=!1,F=y;y.charAt(0)=="~"&&(S=!0,F=y.substring(1));var a=h[y];a=typeof a=="object"?a:{count:a};h[y]=a;a.componentName=F;a.count>0&&(b.isInitialPass_?S||b.isSeenDuringInitialPass_[F]||(b.JSC$14596_queue_.push({componentName:F,count:1,signals:a.signals}),b.isSeenDuringInitialPass_[F]=!0,a.count--):b.JSC$14596_queue_.push(a))}};
mwG=function(b){b.JSC$14596_queue_.length=0;b.targetPage_="";b.isInitialPass_=!0;b.signals_.processSignal("eop")};
_.OA.getInstance=function(){return _.Fo(_.OA)};var bYG=function(){this.signals=_.Dh();this.init()};
bYG.prototype.startPreconstruction=function(){_.OA.getInstance().init(_.m$("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
bYG.prototype.init=function(){hVN(this);window.Polymer&&Fya&&$YN();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var b=_.S5.ytcsi;if(b&&b.gt&&(b=b.gt())&&b.tick&&(b.tick.aft>0||b.tick.pbs>0)&&(_.m$("IS_HOMEPAGE_COLD")||_.m$("IS_RESULTS_PAGE_COLD")||_.m$("IS_WATCH_PAGE_COLD"))){ySa(this);break a}Q3r(Qbj,this.onNotifications,this)}};
var hVN=function(b){var h=function(){b.signals.processSignal("dl")};
document.readyState==="complete"?(_.yb(Error("uh"),"WARNING"),h()):_.DJj(window,"load",h)};
bYG.prototype.onNotifications=function(b){b.timer||(_.m$("IS_HOMEPAGE_COLD")||_.m$("IS_RESULTS_PAGE_COLD")||_.m$("IS_WATCH_PAGE_COLD"))&&ySa(this)};
var ySa=function(b){b.signals.parkOrScheduleJob(function(){b.signals.processSignal("eocs")},10,"eor")};
new bYG;var S1w=function(){return _.cl.apply(this,arguments)||this};
_.z(S1w,_.cl);_.tm.Object.defineProperties(S1w.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.r("enable_entity_store_from_dependency_injection")?_.mc():_.hP()}}});
_.V([_.Rc()],S1w);_.NT=[Ld.prototype,S1w.prototype];var F_e=["ytd-rich-shelf-renderer"],tv=function(){var b=_.cl.apply(this,arguments)||this;b._noAccessors=!0;b.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";b.followUpDialogPromise=null;b.followUpDialogPromiseResolve=null;b.followUpDialogPromiseReject=null;return b};
_.z(tv,_.cl);_.d=tv.prototype;_.d.dismissibleItemIsDismissedChanged_=function(b){_.r("kevlar_fluid_dismiss")&&(b?_.Sx(this.hostElement,"yt-dismissible-item-dismissed"):_.Sx(this.hostElement,"yt-dismissible-item-undismissed"))};
_.d.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.d.dismissibleItemReset_=function(){var b=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 _.Uu(function(h,y){b.followUpDialogPromiseResolve=h;b.followUpDialogPromiseReject=y});
_.Sx(this.hostElement,"yt-enable-lockup-interaction")};
_.d.dismissibleItemOnYtServiceRequestSent_=function(b,h){h.actions&&this.dismissibleItemProcessActions(h.actions,b)};
_.d.dismissibleItemOnRequestSent=function(b){for(var h=_.L(b.detail),y=h.next();!y.done;y=h.next()){var S=void 0;(y=(S=_.c(y.value,_.KI))==null?void 0:S.actions)&&this.dismissibleItemProcessActions(y,b)}};
_.d.dismissibleItemOnCommandSent=function(b,h){h&&this.dismissibleItemProcessActions(h,b)};
_.d.setAndGetDismissedContentId=function(b){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+b};
_.d.replayDismissAction=function(b){this.dismissibleItemProcessActions([b])};
_.d.dismissibleItemProcessActions=function(b,h){for(var y=0;y<b.length;y++){var S=b[y],F=void 0;((F=_.c(S,_.LI))==null?0:F.commands)&&this.dismissibleItemProcessActions(_.c(S,_.LI).commands,h);if(_.c(S,_.m8)){if(F=_.c(S,_.m8),!F.replaceParentSection||F_e.includes(this.hostElement.nodeName.toLowerCase()))F.groupDismissal&&R75(this,F.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(F),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.R7("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:S})),S=void 0,(S=h)==null||S.stopPropagation()}else if(_.c(S,zH8))this.dismissibleItemHandleHideEnclosingAction_(),S=void 0,(S=h)==null||S.stopPropagation();else if(_.c(S,xE7))S=_.c(S,xE7),F=void 0,((F=S)==null?0:F.targetGroupId)&&R75(this,{targetGroupId:S.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.R7("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
S=void 0,(S=h)==null||S.stopPropagation();else if(_.c(S,_.KI))(S=_.c(S,_.KI).actions)&&_.jx(this.hostElement,S,this.hostElement),S=void 0,(S=h)==null||S.stopPropagation();else{var a=F=void 0;((F=_.c(S,_.aL))==null?void 0:F.signal)!=="TELL_US_WHY"||((a=_.c(S,_.aL))==null?0:a.targetId)&&_.r("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),S=void 0,(S=h)==null||S.stopPropagation())}}};
_.d.dismissibleItemOnYtServiceRequestCompleted_=function(b,h){var y=this.get("feedbackResponses.0.followUpDialog",h.data);y?this.followUpDialogPromiseResolve(y):h.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(h.actions,b)};
_.d.dismissibleItemHandleReplaceEnclosingAction_=function(b){this.dismissedRenderer=b.item;this.isDismissed=!0;var h=null;(h=_.$x(this.hostElement).querySelector("#dismissed"))&&_.Ob(this,function(){_.Mi(h)});
_.Sx(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.d.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.d.dismissibleItemHandleUndoFeedbackAction_=function(){_.Sx(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.d.dismissibleItemHandleTellUsWhySignalAction_=function(){var b=this;this.followUpDialogPromise.then(function(h){b.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:h}})})};
tv.prototype.dismissibleItemOnYtServiceRequestCompleted_=tv.prototype.dismissibleItemOnYtServiceRequestCompleted_;tv.prototype.dismissibleItemOnCommandSent=tv.prototype.dismissibleItemOnCommandSent;tv.prototype.dismissibleItemOnRequestSent=tv.prototype.dismissibleItemOnRequestSent;tv.prototype.dismissibleItemOnYtServiceRequestSent_=tv.prototype.dismissibleItemOnYtServiceRequestSent_;tv.prototype.dismissibleItemDataChanged_=tv.prototype.dismissibleItemDataChanged_;
tv.prototype.dismissibleItemIsDismissedChanged_=tv.prototype.dismissibleItemIsDismissedChanged_;_.V([_.B(_.Y9),_.f("design:type",Object)],tv.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],tv.prototype,"ytdReduxBehavior",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],tv.prototype,"isDismissed",void 0);_.V([_.C(),_.f("design:type",Object)],tv.prototype,"dismissedRenderer",void 0);
_.V([_.OB("isDismissed"),_.f("design:type",Function),_.f("design:paramtypes",[Boolean]),_.f("design:returntype")],tv.prototype,"dismissibleItemIsDismissedChanged_",null);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],tv.prototype,"dismissibleItemDataChanged_",null);
_.V([_.u3("yt-service-request-sent"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,_.kE]),_.f("design:returntype")],tv.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.V([_.u3("yt-service-request-sent-button-renderer"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],tv.prototype,"dismissibleItemOnRequestSent",null);
_.V([_.u3("yt-dismissible-item-action"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,Array]),_.f("design:returntype")],tv.prototype,"dismissibleItemOnCommandSent",null);_.V([_.u3("yt-service-request-completed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,_.xE]),_.f("design:returntype")],tv.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.V([_.Rc()],tv);_.rP=[_.Y9,_.NT,tv.prototype];var cg=function(){var b=_.cl.apply(this,arguments)||this;b.disableGridStateAware=!1;b.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};b.currentGridClass="";return b};
_.z(cg,_.cl);cg.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.Ob(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var b=this.gridStateAwareGetElement();_.Zm(b,"grid",!0)}};
cg.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
cg.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.$x(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
cg.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var b="grid-disabled";else{b=_.VI.getInstance();var h=this.get("pageSubtype");b=h&&Lu8.includes(h)?"grid-disabled":b.currentSnapState_?b.currentSnapState_.className:null}(h=this.gridStateAwareGetElement())&&b!==this.currentGridClass&&(b&&_.Zm(h,b,!0),this.currentGridClass&&_.Zm(h,this.currentGridClass,!1),this.currentGridClass=b)};
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],cg.prototype,"ytActionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",String)],cg.prototype,"gridStateAwareSizingElementSelector",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],cg.prototype,"disableGridStateAware",void 0);_.V([_.Rc()],cg);_.Rp=[cg.prototype,_.mx.YtActionHandlerBehavior];_.zO=new _.ca("GUIDE_TOKEN");var Ip;_.DV={};Ip=function(){var b=_.cl.apply(this,arguments)||this;b.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 b};
_.z(Ip,_.cl);_.d=Ip.prototype;_.d.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.d.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var b=_.H9().resolve(_.XS(_.zO));b&&(this.guidePersistentAndVisible=b.getGuidePersistentAndVisible(),this.activeEndpoint=b.getActiveEndpoint(),this.guideOpened=b.getGuideOpened(),this.miniGuideVisible=b.getMiniGuideVisible())};
_.d.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.d.handleGuideStateAction=function(b){this.guidePersistentAndVisible=b};
_.d.handleMiniGuideStateAction=function(b){this.miniGuideVisible=b};
_.d.handleGuideOpenedAction=function(b){this.guideOpened=b};
_.d.handleActiveEndpointAction=function(b){this.activeEndpoint=b};
Ip.prototype.onActiveEndpointChange=Ip.prototype.onActiveEndpointChange;_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],Ip.prototype,"ytActionHandlerBehavior",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],Ip.prototype,"guidePersistentAndVisible",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],Ip.prototype,"miniGuideVisible",void 0);_.V([_.C(),_.f("design:type",Object)],Ip.prototype,"activeEndpoint",void 0);
_.V([_.OB("activeEndpoint"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Ip.prototype,"onActiveEndpointChange",null);_.V([_.C(),_.f("design:type",Boolean)],Ip.prototype,"guideOpened",void 0);_.V([_.Rc()],Ip);_.DV.YtdGuideStateAwareBehavior=[];_.DV.YtdGuideStateAwareBehavior.push(Ip.prototype,_.mx.YtActionHandlerBehavior);var aQ5=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],Bg=function(){var b=_.cl.apply(this,arguments)||this;b.hoverJobId=0;b.JSC$14623_touched=!1;return b};
_.z(Bg,_.cl);_.d=Bg.prototype;_.d.created=function(){this.useExpandableTooltip=!aQ5.includes(this.is)};
_.d.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.d.detached=function(){this.useExpandableTooltip=!1};
_.d.lockupOnDown=function(b){this.interactionElement&&!_.mf(_.Qk(b),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.d.lockupOnUp=function(b){this.interactionElement&&!_.mf(_.Qk(b),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.d.onTouchStart=function(){this.JSC$14623_touched=!0};
_.d.lockupOnMouseEnter=function(){var b=this,h=_.tj("kevlar_lockup_hover_delay",-1);this.JSC$14623_touched&&h>=0?(_.xP.cancelJob(this.hoverJobId),this.hoverJobId=_.xP.addJob(function(){b.lockupIsHovered=!0},8,h),this.JSC$14623_touched=!1):this.lockupIsHovered=!0};
_.d.lockupOnMouseLeave=function(){this.hoverJobId&&(_.xP.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.d.lockupOnPopupClosed=function(b,h){var y;((y=h.popupRenderer)==null?void 0:y.is)==="ytd-menu-popup-renderer"&&(b=h.popupRenderer.veData,h=_.UE(),b&&h&&_.wh(h,[b]))};
_.d.lockupOnLockupRequested=function(b){var h=b.detail.videoIds[0],y;b.detail&&h===((y=this.data)==null?void 0:y.videoId)&&(b.detail.returnValue=[this.data])};
_.d.lockupOnYtServiceRequestSent=function(b,h){if(b=h.actions)for(var y=0;y<b.length;y++){var S=b[y];if(S.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&h.ajaxPromise){var F=void 0,a=(F=_.c(h.endpoint,_.nj))==null?void 0:F.playlistId;F=void 0;S=(F=S.removedVideoId)!=null?F:"";eDa(_.Wy(),S,a)}else S.action==="ACTION_REMOVE_VIDEO"&&h.ajaxPromise&&(a=void 0,S=(a=S.setVideoId)!=null?a:"",_.C0o(_.Wy(),S))}};
_.d.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.d.lockupOnLockupEnabled=function(){if(!this.$){var b=_.H9().resolve(_.bM).getCurrentPage(),h=this.getParentRenderer?this.getParentRenderer():void 0;_.vX(new _.Gn("component not ready",this.is,this.isAttached,b==null?void 0:b.is,h==null?void 0:h.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
Bg.prototype.lockupOnLockupEnabled=Bg.prototype.lockupOnLockupEnabled;Bg.prototype.lockupOnLockupDisabled=Bg.prototype.lockupOnLockupDisabled;Bg.prototype.lockupOnYtServiceRequestSent=Bg.prototype.lockupOnYtServiceRequestSent;Bg.prototype.lockupOnLockupRequested=Bg.prototype.lockupOnLockupRequested;Bg.prototype.lockupOnPopupClosed=Bg.prototype.lockupOnPopupClosed;Bg.prototype.lockupOnMouseLeave=Bg.prototype.lockupOnMouseLeave;Bg.prototype.lockupOnMouseEnter=Bg.prototype.lockupOnMouseEnter;
Bg.prototype.onTouchStart=Bg.prototype.onTouchStart;Bg.prototype.lockupOnUp=Bg.prototype.lockupOnUp;Bg.prototype.lockupOnDown=Bg.prototype.lockupOnDown;_.V([_.C(),_.f("design:type",Object)],Bg.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Boolean)],Bg.prototype,"lockupIsHovered",void 0);_.V([_.C(),_.f("design:type",Boolean)],Bg.prototype,"lockupTouchTriggered",void 0);_.V([_.C(),_.f("design:type",Boolean)],Bg.prototype,"useExpandableTooltip",void 0);
_.V([_.to("#interaction"),_.f("design:type",Object)],Bg.prototype,"interactionElement",void 0);_.V([_.u3("down"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],Bg.prototype,"lockupOnDown",null);_.V([_.u3("up"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],Bg.prototype,"lockupOnUp",null);
_.V([_.u3("touchstart"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Bg.prototype,"onTouchStart",null);_.V([_.u3("mouseenter"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Bg.prototype,"lockupOnMouseEnter",null);_.V([_.u3("mouseleave"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Bg.prototype,"lockupOnMouseLeave",null);
_.V([_.u3("yt-popup-closed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,Object]),_.f("design:returntype")],Bg.prototype,"lockupOnPopupClosed",null);_.V([_.u3("yt-lockup-requested"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],Bg.prototype,"lockupOnLockupRequested",null);
_.V([_.u3("yt-service-request-sent"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,_.kE]),_.f("design:returntype")],Bg.prototype,"lockupOnYtServiceRequestSent",null);_.V([_.u3("yt-disable-lockup-interaction"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Bg.prototype,"lockupOnLockupDisabled",null);
_.V([_.u3("yt-enable-lockup-interaction"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Bg.prototype,"lockupOnLockupEnabled",null);_.V([_.Rc()],Bg);_.Wg=[Bg.prototype];_.d6G={YtdReduxBehavior:[]};_.d6G.YtdReduxBehavior.push.apply(_.d6G.YtdReduxBehavior,_.NT);var Av=function(){var b=_.cl.apply(this,arguments)||this;b._noAccessors=!0;b.disableNowPlaying=!1;b.disableTooltips=!1;b.useHoveredProperty=!1;b.hovered=!1;b.isThumbnailHovered_=!1;b.addBackground=_.r("kevlar_thumbnail_bg");b.nowPlaying=!1;b.disableRounding=!1;b.size="small";return b};
_.z(Av,_.cl);_.d=Av.prototype;_.d.computeThumbnailOverlaySidePanelWidth_=function(b,h){return b-h};
_.d.computeSize=function(b,h){if(!this.disableRounding){if(!b&&!h)return"small";b=Math.max(b||0,h||0);return b>=256?"large":b>=96?"medium":"small"}};
_.d.computeFinalHoveredState_=function(b,h,y){return this.nowPlaying?!1:_.r("kevlar_thumbnail_fluid")&&b?h:y};
_.d.computeHoverOverlays_=function(b,h){return b&&h?h:void 0};
_.d.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.d.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.d.checkMiniplayer_=function(){var b;if(((b=this.data)==null?0:b.playlistSetVideoId)&&_.r("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{b=_.h0();var h=b.currentEndpoint;!this.disableNowPlaying&&h&&_.c(h,_.wO)&&this.data?(h=_.c(h,_.wO),this.nowPlaying=this.data.playlistId?h.playlistId===this.data.playlistId:h.videoId===this.data.videoId,this.isVideoPlaying=b==null?void 0:b.isVideoPlaying):this.nowPlaying=!1}};
Av.prototype.checkMiniplayer_=Av.prototype.checkMiniplayer_;Av.prototype.onMouseLeave_=Av.prototype.onMouseLeave_;Av.prototype.onMouseEnter_=Av.prototype.onMouseEnter_;Av.prototype.computeHoverOverlays_=Av.prototype.computeHoverOverlays_;Av.prototype.computeFinalHoveredState_=Av.prototype.computeFinalHoveredState_;Av.prototype.computeSize=Av.prototype.computeSize;Av.prototype.computeThumbnailOverlaySidePanelWidth_=Av.prototype.computeThumbnailOverlaySidePanelWidth_;
_.V([_.B(_.NT),_.f("design:type",Object)],Av.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Av.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Number)],Av.prototype,"height",void 0);_.V([_.C(),_.f("design:type",Boolean)],Av.prototype,"bottomSidePanel",void 0);_.V([_.C(),_.f("design:type",Number)],Av.prototype,"width",void 0);_.V([_.C(),_.f("design:type",Object)],Av.prototype,"disableNowPlaying",void 0);
_.V([_.C({selector:_.Ci}),_.f("design:type",Boolean)],Av.prototype,"miniplayerIsActive",void 0);_.V([_.C(),_.f("design:type",Object)],Av.prototype,"disableTooltips",void 0);_.V([_.C(),_.f("design:type",Object)],Av.prototype,"useHoveredProperty",void 0);_.V([_.C(),_.f("design:type",Object)],Av.prototype,"hovered",void 0);_.V([_.C(),_.f("design:type",Object)],Av.prototype,"isThumbnailHovered_",void 0);
_.V([_.C({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.f("design:type",Boolean)],Av.prototype,"finalHoveredState_",void 0);_.V([_.C({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.f("design:type",Number)],Av.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Av.prototype,"addBackground",void 0);
_.V([_.C({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.f("design:type",Object)],Av.prototype,"hoverOverlays_",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Av.prototype,"nowPlaying",void 0);_.V([_.C(),_.f("design:type",Boolean)],Av.prototype,"isVideoPlaying",void 0);_.V([_.C(),_.f("design:type",Object)],Av.prototype,"disableRounding",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.f("design:type",Object)],Av.prototype,"size",void 0);_.V([_.u3("mouseenter"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Av.prototype,"onMouseEnter_",null);_.V([_.u3("mouseleave"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Av.prototype,"onMouseLeave_",null);
_.V([_.OB("data","disableNowPlaying","miniplayerIsActive"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Av.prototype,"checkMiniplayer_",null);_.V([_.Rc()],Av);var jJb=[Av.prototype];_.UA={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(b,h){return b+":"+_.mM(h)},
getPlayerListener_:function(b,h,y){b=this.getPlayerListenerKey_(b,h);h=this.playerListeners_.get(b);y&&this.playerListeners_.delete(b);return h},
savePlayerListener_:function(b,h){var y=h.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(b,h),y);return y},
listenToPlayerEvent:function(b,h,y){y=this.savePlayerListener_(h,y);b.addEventListener(h,y)},
listenToPlayerEvents:function(b,h){h.forEach(function(y,S){this.listenToPlayerEvent(b,S,y)}.bind(this))},
unlistenFromPlayerEvent:function(b,h,y){y=this.getPlayerListener_(h,y,!0);b.removeEventListener(h,y)},
unlistenFromPlayerEvents:function(b,h){h.forEach(function(y,S){this.unlistenFromPlayerEvent(b,S,y)}.bind(this))}}};
_.pf=function(){};_.$6a=new _.ca("PLAYER_API_TOKEN");var BNk=!1,pwq,AzM=!1,e7k;var a7=function(b,h,y,S,F){_.ED.call(this);var a=this;this.playerId=h;this.webPlayerContextConfig=S;this.bGF=F;this.xVI=!1;this.api={};this.sEW=this.l2i=null;this.jwi=new _.Jj;this.yo={};this.bqS=this.z1F=this.elementId=this.dXt=this.config=null;this.gdF=!1;this.wx=this.dCy=null;this.tHg={};this.zlk=["onReady"];this.lastError=null;this.a0Q=NaN;this.pfy={};this.pzg=0;this.nn=this.targetElement=b;_.pq(this,this.jwi);L_P(this);y?this.pzg=setTimeout(function(){a.loadNewVideoConfig(y)},0):S&&(Px5(this),
K_W(this))};
_.z(a7,_.ED);a7.prototype.getId=function(){return this.playerId};
a7.prototype.loadNewVideoConfig=function(b){if(!this.isDisposed()){this.pzg&&(clearTimeout(this.pzg),this.pzg=0);var h=b||{};h instanceof GBa||(h=new GBa(h));this.config=h;this.setConfig(b);K_W(this);this.isReady()&&ZYN(this)}};
var Px5=function(b){var h;b.webPlayerContextConfig?h=b.webPlayerContextConfig.rootElementId:h=b.config.attrs.id;b.elementId=h||b.elementId;b.elementId==="video-player"&&(b.elementId=b.playerId,b.webPlayerContextConfig?b.webPlayerContextConfig.rootElementId=b.playerId:b.config.attrs.id=b.playerId);var y;((y=b.nn)==null?void 0:y.id)===b.elementId&&(b.elementId+="-player",b.webPlayerContextConfig?b.webPlayerContextConfig.rootElementId=b.elementId:b.config.attrs.id=b.elementId)};
a7.prototype.setConfig=function(b){this.dXt=b;this.config=okW(b);Px5(this);if(!this.z1F){var h;this.z1F=MuN(this,((h=this.config.args)==null?void 0:h.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var y;if((y=this.config)==null?0:y.attrs)b=this.config.attrs,(h=b.width)&&this.nn&&(this.nn.style.width=be(Number(h)||h,!0)),(b=b.height)&&this.nn&&(this.nn.style.height=be(Number(b)||b,!0))};
a7.prototype.getConfig=function(){return this.dXt};
var ZYN=function(b){if(b.config&&b.config.loaded!==!0)if(b.config.loaded=!0,!b.config.args||b.config.args.autoplay!=="0"&&b.config.args.autoplay!==0&&b.config.args.autoplay!==!1){var h;b.api.loadVideoByPlayerVars((h=b.config.args)!=null?h:null)}else b.api.cueVideoByPlayerVars(b.config.args)},XnN=function(b){var h=!0,y=b.getPlayerElement();
y&&b.config&&(h=y.dataset.version===nkG(b));return h&&!!_.hj("yt.player.Application.create")},K_W=function(b){if(!b.isDisposed()&&!b.gdF){var h=XnN(b);
if(h&&(b.getPlayerElement()?"html5":null)==="html5")b.bqS="html5",b.isReady()||HYo(b);else if(u4a(b),b.bqS="html5",h&&b.wx&&b.targetElement)b.targetElement.appendChild(b.wx),HYo(b);else{b.config&&(b.config.loaded=!0);var y=!1;b.dCy=function(){y=!0;var S=OYW(b,"player_bootstrap_method")?_.hj("yt.player.Application.createAlternate")||_.hj("yt.player.Application.create"):_.hj("yt.player.Application.create");var F=b.config?okW(b.config):void 0;S&&S(b.targetElement,F,b.webPlayerContextConfig,b.bGF);HYo(b)};
b.gdF=!0;h?b.dCy():(_.Tt(nkG(b),b.dCy),(h=NoN(b))&&OEI(h||""),tu8(b)&&!y&&_.HL("yt.player.Application.create",null))}}};
a7.prototype.getPlayerElement=function(){var b=_.FQ(document,this.elementId);!b&&this.nn&&this.nn.querySelector&&(b=this.nn.querySelector("#"+this.elementId));return b};
var HYo=function(b){if(!b.isDisposed()){var h=b.getPlayerElement(),y=!1;h&&h.getApiInterface&&h.getApiInterface()&&(y=!0);if(y){b.gdF=!1;if(!OYW(b,"html5_remove_not_servable_check_killswitch")){var S;if((h==null?0:h.isNotServable)&&b.config&&(h==null?0:h.isNotServable((S=b.config.args)==null?void 0:S.video_id)))return}rSa(b)}else b.a0Q=setTimeout(function(){HYo(b)},50)}},rSa=function(b){L_P(b);
b.xVI=!0;var h=b.getPlayerElement();if(h){b.l2i=cSW(b,h,"addEventListener");b.sEW=cSW(b,h,"removeEventListener");var y=h.getApiInterface();y=y.concat(h.getInternalApiInterface());for(var S=b.api,F=0;F<y.length;F++){var a=y[F];S[a]||(S[a]=cSW(b,h,a))}}for(var P in b.yo)b.yo.hasOwnProperty(P)&&b.l2i&&b.l2i(P,b.yo[P]);ZYN(b);b.z1F&&b.z1F(b.api);b.jwi.publish("onReady",b.api)},cSW=function(b,h,y){var S=h[y];
return function(){var F=_.x$.apply(0,arguments);try{return b.lastError=null,S.apply(h,F)}catch(a){if(y!=="sendAbandonmentPing")throw a.params=y,b.lastError=a,F=new _.Gn("PlayerProxy error in method call",{error:a,method:y,playerId:b.playerId}),F.level="WARNING",F;}}},L_P=function(b){b.xVI=!1;
if(b.sEW)for(var h in b.yo)b.yo.hasOwnProperty(h)&&b.sEW(h,b.yo[h]);for(var y in b.pfy)b.pfy.hasOwnProperty(y)&&clearTimeout(Number(y));b.pfy={};b.l2i=null;b.sEW=null;h=b.api;for(var S in h)h.hasOwnProperty(S)&&(h[S]=null);h.addEventListener=function(F,a){b.addEventListener(F,a)};
h.removeEventListener=function(F,a){b.removeEventListener(F,a)};
h.destroy=function(){b.dispose()};
h.getLastError=function(){return b.getLastError()};
h.getPlayerType=function(){return b.getPlayerType()};
h.getCurrentVideoConfig=function(){return b.getConfig()};
h.loadNewVideoConfig=function(F){b.loadNewVideoConfig(F)};
h.isReady=function(){return b.isReady()}};
a7.prototype.isReady=function(){return this.xVI};
a7.prototype.addEventListener=function(b,h){var y=this;this.isDisposed();var S=MuN(this,h);S&&(_.sj(this.zlk,b)||this.yo[b]||(h=RV5(this,b),this.l2i&&this.l2i(b,h)),this.jwi.subscribe(b,S),b==="onReady"&&this.isReady()&&setTimeout(function(){S(y.api)},0))};
a7.prototype.removeEventListener=function(b,h){this.isDisposed()||(h=MuN(this,h))&&this.jwi.unsubscribe(b,h)};
var MuN=function(b,h){var y=h;if(typeof h==="string"){if(b.tHg[h])return b.tHg[h];y=function(){var S=_.x$.apply(0,arguments),F=_.hj(h);if(F)try{F.apply(_.S5,S)}catch(a){throw S=new _.Gn("PlayerProxy error when executing callback",{error:a}),S.level="ERROR",S;}};
b.tHg[h]=y}return y?y:null},RV5=function(b,h){var y=function(S){var F=function(){b.isDisposed();
if(!b.isDisposed())try{b.jwi.publish(h,S!=null?S:void 0)}catch(K){var P=new _.Gn("PlayerProxy error when creating global callback",{error:K.message,event:h,playerId:b.playerId,data:S,originalStack:K.stack,componentStack:K.componentStack});P.level="WARNING";throw P;}};
if(OYW(b,"web_player_publish_events_immediately"))F();else{var a=setTimeout(function(){F();_.lR.remove(b.pfy,String(a))},0);
_.lR.add(b.pfy,String(a),!0)}};
return b.yo[h]=y};
a7.prototype.getPlayerType=function(){return this.bqS||(this.getPlayerElement()?"html5":null)};
a7.prototype.getLastError=function(){return this.lastError};
var u4a=function(b){b.cancel();L_P(b);b.bqS=null;b.config&&(b.config.loaded=!1);var h=b.getPlayerElement();h&&(XnN(b)||!tu8(b)?b.wx=h:(h&&h.destroy&&h.destroy(),b.wx=null));b.targetElement&&_.wX(b.targetElement)};
a7.prototype.cancel=function(){this.dCy&&_.lXI(nkG(this),this.dCy);clearTimeout(this.a0Q);this.gdF=!1};
a7.prototype.disposeInternal=function(){u4a(this);if(this.wx&&this.config&&this.wx.destroy)try{this.wx.destroy()}catch(h){var b=new _.Gn("PlayerProxy error during disposal",{error:h});b.level="ERROR";throw b;}this.tHg=null;for(b in this.yo)this.yo.hasOwnProperty(b)&&delete this.yo[b];this.dXt=this.config=this.api=null;delete this.targetElement;delete this.nn;_.ED.prototype.disposeInternal.call(this)};
var tu8=function(b){var h,y;b=(h=b.config)==null?void 0:(y=h.args)==null?void 0:y.fflags;return!!b&&b.indexOf("player_destroy_old_version=true")!==-1},nkG=function(b){return b.webPlayerContextConfig?b.webPlayerContextConfig.jsUrl:(b=b.config.assets)?b.js:""},NoN=function(b){return b.webPlayerContextConfig?b.webPlayerContextConfig.cssUrl:(b=b.config.assets)?b.css:""},OYW=function(b,h){if(b.webPlayerContextConfig)var y=b.webPlayerContextConfig.serializedExperimentFlags;
else{var S;if((S=b.config)==null?0:S.args)y=b.config.args.fflags}return(y||"").split("&").includes(h+"=true")},okW=function(b){for(var h={},y=_.L(Object.keys(b)),S=y.next();!S.done;S=y.next()){S=S.value;
var F=b[S];h[S]=typeof F==="object"?_.lR.clone(F):F}return h};var TNq={},YgN="player_uid_"+(Math.random()*1E9>>>0);var Jv=function(b,h,y,S,F,a){h=h===void 0?document.createElement("div"):h;this.webPlayerContextConfig=b;this.container=h;this.commandResolver=y;this.apiResolver=VzM();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.MC;S||a?zVP(this):D6o(this);this.pendingPlayerResponse=S;this.pendingWatchNextResponse=F;this.pendingPlayerVars=a;IQ8(this)};
Jv.prototype.loadVideoWithPlayerResponse=function(b,h,y){this.loadVideo(b,h,y)};
Jv.prototype.loadVideoWithPlayerVars=function(b){return this.loadVideo(void 0,void 0,b)};
Jv.prototype.destroy=function(b){if(b=_.FQ(document,b))b=YgN+"_"+_.mM(b),(b=TNq[b])&&b.dispose()};
var W_N=function(b,h){var y;_.Z(function(S){if(S.nextAddress==1)return b.pendingWatchNextResponse=h,b.synchronousApi?(y=b.synchronousApi,S.jumpTo(2)):S.yield(b.api,3);S.nextAddress!=2&&(y=S.yieldResult);if(!BoM(b,y))return S.return();b.pendingWatchNextResponse&&(y.updateVideoData({raw_watch_next_response:b.pendingWatchNextResponse}),b.pendingWatchNextResponse=void 0);_.g3(S)})},BoM=function(b,h){var y;
if(!(h==null?0:(y=h.isReady)==null?0:y.call(h))){var S;_.vX(new _.Gn("playerApi is falsey",{synchronousApi:b.synchronousApi,apiResolved:b.apiResolver.resolved,playerApiUndefined:h===void 0,playerApiNull:h===null,playerApiReady:(h==null?void 0:(S=h.isReady)==null?void 0:S.call(h))===!0,playerApiMethods:h?Object.keys(h):[]}));return!1}return!0},ASo=function(b,h){if(typeof b[h]==="function")return b[h]()},U6N=function(b){var h=window,y,S=(y=h.ytplayer)==null?void 0:y.bootstrapPlayerContainer;
if((y=S==null?void 0:S.firstElementChild)&&_.Zl(y,"html5-video-player")){var F,a,P=(F=h.ytplayer)==null?void 0:(a=F.bootstrapWebPlayerContextConfig)==null?void 0:a.contextId;F=b.webPlayerContextConfig.contextId;if(P&&P===F){S!==b.container&&(S=!1,ASo(y,"getPlayerState")===2&&(S=!0),b.container.appendChild(y),S||ASo(y,"playVideo"));var K;if((K=h.ytplayer)==null?0:K.bootstrapPlayerResponse)b.bootstrapPlayerResponse=h.ytplayer.bootstrapPlayerResponse}}},IQ8=function(b){var h,y,S,F,a;
_.Z(function(P){if(P.nextAddress==1)return b.pageReadyOrDataAvailable?P.jumpTo(2):P.yield(b.pageReadyOrDataAvailableResolver.promise,2);if(P.nextAddress!=4)return!_.r("kevlar_player_unified_player_loading")||W64()&&UH8()?P.jumpTo(4):P.yield(gz8(),4);U6N(b);if(b.pendingPlayerResponse||b.pendingPlayerVars)h=sTk(b.pendingPlayerResponse,b.pendingWatchNextResponse,b.pendingPlayerVars),b.pendingPlayerResponse&&b.pendingPlayerResponse===b.bootstrapPlayerResponse&&(h.loaded=!0),b.bootstrapPlayerResponse=
void 0;y=kij(b.container,h,b.webPlayerContextConfig);((S=h)==null?0:S.loaded)&&b.pendingWatchNextResponse?(W_N(b,b.pendingWatchNextResponse),b.pendingPlayerResponse=void 0,b.pendingPlayerVars=void 0):pno(b);F=function(K){y.removeEventListener("onReady",F);b.synchronousApi=K;b.apiResolver.resolve(K)};
y.addEventListener("onReady",F);b.commandResolver!==void 0&&(a=b.commandResolver,y.addEventListener("innertubeCommand",function(K){a(K)}));
_.g3(P)})};
Jv.prototype.loadVideo=function(b,h,y){var S=this,F,a,P,K,n,X,u,O,N;return _.Z(function(t){if(t.nextAddress==1)return S.pendingPlayerResponse=b,S.pendingWatchNextResponse=h,S.pendingPlayerVars=y,zVP(S),S.synchronousApi?(F=S.synchronousApi,t.jumpTo(2)):t.yield(S.api,3);t.nextAddress!=2&&(F=t.yieldResult);if(!BoM(S,F))return t.return(new Promise(function(){}));
P=new Promise(function(R){a=R});
K=function(){var R=F.getPlayerResponse();R&&(F.removeEventListener("onVideoDataChange",K),a(R))};
F.addEventListener("onVideoDataChange",K);if(S.pendingPlayerResponse||S.pendingPlayerVars)S.pendingPlayerResponse&&S.pendingPlayerResponse===S.bootstrapPlayerResponse?(a(S.pendingPlayerResponse),S.pendingWatchNextResponse&&W_N(S,S.pendingWatchNextResponse)):(n=sTk(S.pendingPlayerResponse,S.pendingWatchNextResponse,S.pendingPlayerVars),(N=(X=S.pendingPlayerResponse)==null?void 0:(u=X.playerConfig)==null?void 0:(O=u.playbackStartConfig)==null?void 0:O.startPaused)?F.cueVideoByPlayerVars(n.args):F.loadVideoByPlayerVars(n.args)),
pno(S),S.bootstrapPlayerResponse=void 0;return t.return(P)})};
var D6o=function(b){if(document.readyState==="complete"||document.readyState==="interactive")zVP(b);else{var h=function(){document.removeEventListener("DOMContentLoaded",h);zVP(b)};
document.addEventListener("DOMContentLoaded",h)}},zVP=function(b){b.pageReadyOrDataAvailable=!0;
b.pageReadyOrDataAvailableResolver.resolve()},pno=function(b){b.pendingPlayerResponse=void 0;
b.pendingWatchNextResponse=void 0;b.pendingPlayerVars=void 0};
_.tm.Object.defineProperties(Jv.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var eb=function(b){Sy.call(this,b===void 0?"document_active":b);var h=this;this.overridePriority=10;this.JSC$14656_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(y){h.transition("document_disposed",{event:y})});
window.addEventListener("beforeunload",function(y){h.transition("document_disposed_preventable",{event:y})});
window.addEventListener("unload",function(y){h.transition("document_disposed",{event:y});h.JSC$14656_hasRun=new Map})};
_.z(eb,Sy);
eb.prototype.runPreventableDispose=function(b,h){if(!this.JSC$14656_hasRun.get("document_disposed_preventable")){b(h==null?void 0:h.event);var y,S;if((h==null?0:(y=h.event)==null?0:y.defaultPrevented)||(h==null?0:(S=h.event)==null?0:S.returnValue)){h.event.returnValue||(h.event.returnValue=!0);h.event.defaultPrevented||h.event.preventDefault();this.JSC$14656_hasRun=new Map;this.transition("document_active");return}}this.JSC$14656_hasRun.set("document_disposed_preventable",!0);this.JSC$14656_hasRun.get("document_disposed")?this.transition("flush_logs"):
this.transition("document_disposed")};
eb.prototype.runDispose=function(b,h){this.JSC$14656_hasRun.get("document_disposed")?this.transition("document_active"):(b(h==null?void 0:h.event),this.JSC$14656_hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
eb.prototype.runFlush=function(b,h){b(h==null?void 0:h.event);this.transition("document_active")};
eb.prototype.runActive=function(){};var Cf=function(b){Sy.call(this,b===void 0?"document_visibility_unknown":b);var h=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(y){document.visibilityState==="visible"?h.transition("document_visible",{event:y}):h.transition("document_hidden",
{event:y})});
_.r("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(y){h.transition("document_backgrounded",{event:y})}),window.addEventListener("focus",function(y){h.transition("document_foregrounded",{event:y})}))};
_.z(Cf,Sy);Cf.prototype.runVisible=function(b,h){b(h==null?void 0:h.event);_.r("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
Cf.prototype.runHidden=function(b,h){b(h==null?void 0:h.event);_.r("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
Cf.prototype.runBackgrounded=function(b,h){b(h==null?void 0:h.event)};
Cf.prototype.runForegrounded=function(b,h){b(h==null?void 0:h.event)};var gP=function(){this.teardownLifecycle=new eb;this.visibilityLifecycle=new Cf};
gP.prototype.install=function(){var b=_.x$.apply(0,arguments),h=this;b.forEach(function(y){h.teardownLifecycle.install(y)});
b.forEach(function(y){h.visibilityLifecycle.install(y)})};var sA=function(){gP.call(this);var b={};this.install((b.document_disposed={callback:this.abortSlisAndFlush},b));_.r("combine_ve_grafts")&&(b={},this.install((b.document_disposed={callback:this.flushInteractionLoggingAttachVes},b)));b={};this.install((b.flush_logs={callback:this.logFinalPayload},b));_.r("web_log_cfg_cee_ks")||_.VT(_.xP,JSG)};
_.z(sA,gP);var EzY=function(){sA.loggingInstance||(sA.loggingInstance=new sA);return sA.loggingInstance};
sA.prototype.logFinalPayload=function(){if(_.r("web_fp_via_jspb")){var b=new JtW,h=_.UE();h&&_.kb(b,1,h);h=_.r("jspb_sparse_encoded_pivot")?new k2([{}]):new k2;_.pc(h,380,eOG,b);sbI("finalPayload",h);_.r("web_fp_via_jspb_and_json")&&_.qi("finalPayload",{csn:_.UE()})}else _.qi("finalPayload",{csn:_.UE()})};
sA.prototype.abortSlisAndFlush=function(){t9a(Ik);BA!=null&&BA.flush()};
sA.prototype.flushInteractionLoggingAttachVes=function(){fYa(_.rU())};
var JSG=function(){var b=_.QC("CLIENT_EXPERIMENT_EVENTS");if(b){var h=y8j();b=_.L(b);for(var y=b.next();!y.done;y=b.next())y=y.value,h(y)&&_.qi("genericClientExperimentEvent",{eventType:y});delete _.qU.CLIENT_EXPERIMENT_EVENTS}};var eVe={};
eVe.YtPlayerBehavior=[_.UA.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 b=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.MC;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;iyy(function(){b.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.yn(this,"pan-down"),_.r("kevlar_pinch_fullscreen")&&_.hJ().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.r("kevlar_pinch_fullscreen")&&_.hJ().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(b,h,y){var S=this;dC(this.useUnifiedPlayer_());if(this.mainAppPlayer_)dC(!1,"MainAppPlayer already created.");else{var F=_.r("kevlar_player_container_query_killswitch")?this.$.container:_.$x(this.hostElement).querySelector("#container");this.mainAppPlayer_=new Jv(this.getWebPlayerContextConfig_(),F,function(a){return _.Xb(a,S.hostElement)},b,h,y);
this.mainAppPlayer_.api.then(function(a){S.player_=a;S.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&wuo.resolve(a)})}},
loadVideoWithPlayerResponse:function(b,h){var y=this;if(this.useUnifiedPlayer_()){var S=this.watchNextData,F,a=(F=b.videoDetails)==null?void 0:F.videoId,P,K,n;(F=(P=this.watchNextData)==null?void 0:(K=P.currentVideoEndpoint)==null?void 0:(n=K.watchEndpoint)==null?void 0:n.videoId)&&a!=F&&(S=void 0,_.r("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(b,S,h):this.createMainAppPlayer_(b,S,h);this.mainAppPlayer_.api.then(function(){_.Sx(y.hostElement,
"yt-player-updated")})}else this.update(z75(b,h))},
loadVideoWithPlayerVars:function(b){var h=this;this.useUnifiedPlayer_()?(_.r("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(b):this.createMainAppPlayer_(void 0,void 0,b),this.mainAppPlayer_.api.then(function(){_.Sx(h.hostElement,"yt-player-updated")})):this.update({args:b})},
update:function(b){var h=this;if(this.useUnifiedPlayer_())dC(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(b);var y=SpN(b.args);y&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==y&&Object.assign(b.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(b).then(function(S){_.Sx(h.hostElement,"yt-player-updated",_.r("kevlar_player_updated_obsolete_player_killswitch")?
S:void 0)})}_.mm(new _.Gn("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(b){var h=this,y;return _.Z(function(S){if(S.nextAddress==1)return S.yield(h.getPlayerPromise(),2);y=S.yieldResult;if(!y)throw Error("wh");b&&h.updatePlayerPlaylist_(b);_.g3(S)})},
acquireApi_:function(b){var h=this;if(this.useUnifiedPlayer_())dC(!1,"Invalid method call in kevlar_unified_player.");else return _.xP.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(dC(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(y){h.shouldAutoplay_(b)?y.loadVideoByPlayerVars(b.args):y.cueVideoByPlayerVars(b.args)})):this.initPlayerPromise_=this.initPlayerContainer_(b),this.initPlayerPromise_},
initPlayerContainer_:function(b){var h=this;if(this.useUnifiedPlayer_())dC(!1,"Invalid method call in kevlar_unified_player.");else return dC(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.vX(Error("xh")),dC(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.r("kevlar_player_container_query_killswitch")?this.$.container:_.$x(this.hostElement).querySelector("#container"),gz8().then(function(){var y=h.initPlayer_(b);h.playerResolver_.resolve(y);
return y})},
onPlayerReady_:function(b,h){this.useUnifiedPlayer_()?dC(!1,"Invalid method call in kevlar_unified_player."):(b.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&wuo.resolve(b),h(b))},
maybeCallApiMethodOnElement_:function(b,h){if(typeof b[h]==="function")return b[h]()},
maybeAdoptBootstrapPlayer_:function(){var b=window,h,y=(h=b.ytplayer)==null?void 0:h.bootstrapPlayerContainer;if((h=y==null?void 0:y.firstElementChild)&&h.classList.contains("html5-video-player")){var S,F,a=(S=b.ytplayer)==null?void 0:(F=S.bootstrapWebPlayerContextConfig)==null?void 0:F.contextId;S=this.getWebPlayerContextConfig_().contextId;if(a&&a===S){y!==this.playerContainer_&&(y=!1,this.maybeCallApiMethodOnElement_(h,"getPlayerState")===2&&(y=!0),this.playerContainer_.appendChild(h),y||this.maybeCallApiMethodOnElement_(h,
"playVideo"));var P;if((P=b.ytplayer)==null?0:P.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=b.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(b){var h=this;if(this.useUnifiedPlayer_())dC(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(y){h.maybeAdoptBootstrapPlayer_();var S=b?DH4(b):void 0;S&&S==h.bootstrapPlayerResponse_&&(b.loaded=!0);S=h.playerContainer_;var F=h.getWebPlayerContextConfig_();S=kij(S,b,F);h.player_=S;h.onPlayerReadyEvent_=h.onPlayerReady_.bind(h,h.player_,y);h.player_.addEventListener("onReady",h.onPlayerReadyEvent_);h.player_.addEventListener("innertubeCommand",
h.onPlayerInnerTubeCommand_.bind(h))})},
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(b){b.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(b){b.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var b=_.H9().resolve(_.bM).getCurrentPage();b&&b.getScrollTop()<=0?_.yn(this,"pan-down"):_.yn(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(b){b.isFullscreen()||b.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(b){b.isFullscreen()&&b.toggleFullscreen()})},
updatePlayerPlaylist_:function(b){var h=this,y,S,F;return _.Z(function(a){if(a.nextAddress==1)return y=_.H9().resolve(_.XS(_.Rz)),S=!!(y&&y.playlistComponent&&y.playlistComponent.loopOn),a.yield(h.getPlayerPromise(),2);var P=F=a.yieldResult,K=P.updatePlaylist,n=[];if(_.r("kevlar_player_playlist_use_local_index")){var X,u;var O=(u=(X=b.localCurrentIndex)!=null?X:b.currentIndex)!=null?u:0}else{var N;O=(N=b.currentIndex)!=null?N:0}if(b.contents)for(X=0;X<b.contents.length;X++)if((u=b.contents[X])&&u.playlistPanelVideoRenderer)if(RcY(u)){u=
u.playlistPanelVideoRenderer;N="";u.shortBylineText&&(N=_.vi(u.shortBylineText));var t="";u.title?t=_.vi(u.title):u.unplayableText&&(t=_.vi(u.unplayableText));n.push({author:N,title:t,encrypted_id:u.videoId})}else X<O&&--O;K.call(P,{index:O,list:b.playlistId?b.playlistId:"",loop:S,playlist_title:b.title,playlist_length:n.length,video:n,fetch:0,external_list:"1",title:b.title?b.title:"",playlist_author:b.ownerName?_.vi(b.ownerName):void 0});_.g3(a)})},
focusOnPlayer:function(){_.Ob(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var b=this.playerContainer_.querySelector(".html5-video-player");b&&(_.Yd(_.H9().resolve(_.rS)),b.focus())}})},
preparePlayer:function(){var b=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(h){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")h();else{var y=function(){document.removeEventListener("DOMContentLoaded",y);h()};
document.addEventListener("DOMContentLoaded",y)}})).then(function(){return gz8()}).then(function(){b.initPlayerPromise_||b.preparePlayerJobId_||(b.preparePlayerJobId_=_.VT(_.xP,function(){b.initPlayerPromise_||(b.initPlayerPromise_=b.initPlayerContainer_())}))}):_.mm(new _.Gn("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(b){this.useUnifiedPlayer_()?dC(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(b)||(b.args.autoplay="0")},
shouldAutoplay_:function(b){if(this.useUnifiedPlayer_())dC(!1,"Invalid method call in kevlar_unified_player.");else{var h=this.get("args.el",b);return h&&h!="detailpage"&&this.isMiniplayerActive_()||h&&(h=="sponsorshipsoffer"||h=="handlesclaiming")&&this.get("args.autoplay",b)=="0"?!1:(b=DH4(b))&&this.get("playerConfig.playbackStartConfig.startPaused",b)?!1:!0}},
isMiniplayerActive_:function(){return _.H9().resolve(_.Vp).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var b=this.getPlayer();if(b){var h=b.getPlayerState();_.r("kevlar_player_check_ad_state_on_stop")&&(h=b.getPlayerState(b.getPresentingPlayerType()));h!=5&&b.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(b,h,y){y=y===void 0?!1:y;var S=this,F,a,P,K;return _.Z(function(n){if(n.nextAddress==1)return h||(h=S.hostElement),F=S.useUnifiedPlayer_()?!!S.mainAppPlayer_:!!S.initPlayerPromise_,F?n.yield(S.getPlayerPromise(),2):(y?b.insertBefore(h,b.firstChild):b.appendChild(h),n.return());a=n.yieldResult;P=a.getPlayerState(a.getPresentingPlayerType());K=!1;if(P==-1||P==1||P==3)K=!0;y?b.insertBefore(h,b.firstChild):b.appendChild(h);K&&a.playVideo();a.setSize(NaN,NaN);_.g3(n)})},
watchNextDataChanged_:function(b){var h=this;b&&(this.useUnifiedPlayer_()&&_.r("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&W_N(this.mainAppPlayer_,b):this.getPlayerPromise().then(function(y){y.updateVideoData(h.computeWatchNextPlayerVars_(b))}))},
computeWatchNextPlayerVars_:function(b){if(this.useUnifiedPlayer_()&&_.r("kevlar_unified_player_update_watch_next_killswitch"))dC(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:b}},
maybeSendAbandonmentPing_:function(){var b=this.getPlayer();b&&b.getPlayerState()!=5&&b.getPlayerState()!=0&&b.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var b=_.QC("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(b=Object.assign({},b),b.rootElementId=this.playerId);b.serializedExperimentIds&&b.serializedExperimentFlags||_.vX(Error("yh"));return b},
hasWebPlayerContextConfig_:function(){return!!_.QC("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(b){this.useUnifiedPlayer_()?dC(!1,"Invalid method call in kevlar_unified_player."):_.Xb(b,this.hostElement)},
useUnifiedPlayer_:function(){var b=_.r("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.r("kevlar_unified_player")||b}}];var Cxw={};Cxw.YtPlaylistPanelBehavior=[_.Q.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(b){b=b.detail;if(b.actions.loop!=void 0||b.actions["yt-icons:loop"]!=void 0)this.loopOn=b.actions.loop||b.actions["yt-icons:loop"];if(b.actions.shuffle!=void 0||b.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=b.actions.shuffle||b.actions["yt-icons:shuffle"]},
setMenuData_:function(b){if(!b||!b.playlistButtons||b.isInfinite)return null;for(var h=b.playlistButtons.menuRenderer.topLevelButtons,y=h.length,S=0;S<y;S++)if(h[S].toggleButtonRenderer){var F=h[S].toggleButtonRenderer;F.defaultIcon.iconType=="LOOP"&&this.loopOn?F.isToggled=this.loopOn:F.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(F.isToggled=this.shuffleOn)}return b.playlistButtons}}];_.TO={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(b,h,y){var S=this.getClickTarget_(h);if(S&&this.isClickAllowed_(S)){h.preventDefault();b=(0,_.lR.unsafeClone)(b);var F=this.getContainerBoundingRect();h=this.getRelativeClickXy_(h,F);this.expandEndpointUrlMacros_(b,{NX:h[0],NY:h[1],NB:S.code});y&&this.truncateWebCommendMetadataUrl_(b);_.Sx(this.hostElement,"yt-navigate",{endpoint:b})}},
getClickTarget_:function(b){if(!this.clickTargetMap)return null;b=_.Qk(b)||[];b=_.L(b);for(var h=b.next();!h.done;h=b.next()){h=h.value;if(h===_.$x(this.hostElement).querySelector("#menu"))break;if(h=this.clickTargetMap.get(h.id))return h}return null},
getRelativeClickXy_:function(b,h){var y=Math.round(b.detail.x-h.left);b=Math.round(b.detail.y-h.top);return y<0||b<0?[null,null]:[y,b]},
getContainerBoundingRect:function(){return _.$x(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(b,h){for(var y=_.L(b.loggingUrls||[]),S=y.next();!S.done;S=y.next())S=S.value,S.baseUrl&&(S.baseUrl=Oa4(S.baseUrl,h));b.urlEndpoint&&b.urlEndpoint.url&&(b.urlEndpoint.url=Oa4(b.urlEndpoint.url,h));b.commandMetadata&&b.commandMetadata.webCommandMetadata&&b.commandMetadata.webCommandMetadata.url&&(b.commandMetadata.webCommandMetadata.url=Oa4(b.commandMetadata.webCommandMetadata.url,h))},
truncateWebCommendMetadataUrl_:function(b){if(b.commandMetadata&&b.commandMetadata.webCommandMetadata&&b.commandMetadata.webCommandMetadata.url){var h=b.commandMetadata.webCommandMetadata.url,y=h.indexOf("&pp=");if(y>0){var S=h.indexOf("&",y+1);b.commandMetadata.webCommandMetadata.url=S>y&&S<h.length?h.slice(0,y)+h.slice(S):h.slice(0,y)}}},
configureClickTargets:function(b,h,y){this.containerId=b;this.clickTargetMap=new Map;b=_.L(h);for(h=b.next();!h.done;h=b.next())if(h=h.value,h.location){var S=y.get(h.location);S&&(_.Zm(_.$x(this.hostElement).querySelector("#"+S),"yt-simple-endpoint",this.isClickAllowed_(h)),this.clickTargetMap.set(S,h))}},
isClickAllowed_:function(b){return b.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||b.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||b.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||b.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.GO={};
_.GO.YtLazyListBehavior=[_.UG.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 b=(this.constructor.generatedFrom||this).observers;b||(b=[]);b.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
b}},
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 b=this.renderElementsOutsideVisibleArea_;b&&(e1N(b,4),b.processSignal())},
deepLazyListObserver_:function(b){var h=this;if(b){var y=b.value||[];if(this.itemsPath==b.path){var S=this.nonDeferredItemCount;b=0;S>-1&&y.length>S&&(b=_.QC("REMAINING_DOVA_DEFERRED_CHUNKS",-1));b>0?(S>0&&(S=y.slice(0,S),this.setInitialItemsOnDataChanged(S)),(S=this.renderElementsOutsideVisibleArea_)?S.cancel():(S=this.renderElementsOutsideVisibleArea_=new _.JJ(2,"eocs"),_.DJj(window,"scroll",function(){return h.renderDeferredElements()})),_.eS(S,function(){h.setInitialItemsOnDataChanged(y)}),_.xZ("REMAINING_DOVA_DEFERRED_CHUNKS",
b-1)):this.setInitialItemsOnDataChanged(y)}else if(this.itemsPath+".splices"==b.path)this.onItemsUpdated_(y);
else S="shownItems"+b.path.substr(this.itemsPath.length),this.useSignals&&S==="shownItems.length"||this.notifyPath(S,b.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(b){b&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(b),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(b){b=b.indexSplices;for(var h=0,y=b.length;h<y;h++){var S=b[h];if(S.index<this.shownCount&&(S.removed&&this.splice("shownItems",S.index,S.removed.length),S.addedCount)){var F=S.object.slice(S.index,S.index+S.addedCount);S=["shownItems",S.index,0];S.push.apply(S,F);this.splice.apply(this,S)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(b){this.cancelPendingTasks_();b||(b=[]);this.items_=b;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&&(_.m$("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.Ob(this,this.tryRenderChunk_)))},
fillRange_:function(b,h){this.canShowMore&&this.items_&&(b=this.items_.slice(b,h),b.unshift("shownItems"),this.push.apply(this,b),this.shownCount=h,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var b=this;this.canShowMore&&_.wy(this,"renderChunk",function(){b.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.m$("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.I7(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var b=this.renderElementsOutsideVisibleArea_;b&&(b.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var b=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(b-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=b;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(b){return Math.ceil(1E3/b)},
onCanShowMoreUpdated_:function(b){this.data&&this.items_!==null&&(b?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(b){!this.shouldUseTaskManager()&&this.data&&(!b&&this.canShowMore?(_.Bj5(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):b&&this.partiallyRenderedItems_.has(this.items_)&&(_.r("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var EA;_.kd={};
EA=function(){var b=_.cl.apply(this,arguments)||this;b.atStart=!0;b.atEnd=!0;b.startIndex=0;b.endIndex=0;b.scrollCount=0;b.initialStartIndex=0;b.disableScrollEventListener=!1;b.useFloorScrolling=!1;b.isSearch=!1;b.dragging=!1;b.dragMouseStart=0;b.dragOffsetStart=0;b.disableWheelScroll=!1;b.centerListItems=!1;b.offset=0;b.minComponentWidth=0;b.marginWidthRight=0;b.marginWidthLeft=0;b.setButtonsStateRequested=!1;b.itemsVisibilityObserver=null;b.fullyVisibleItemsIndices=[];b.JSC$14685_onWheelScroll=function(h){if(b.isSearch&&
!b.disableWheelScroll&&_.r("desktop_enable_dmpanel_wheel_scroll")){var y=h.shiftKey?Math.abs(h.deltaY)>Math.abs(h.deltaX)?h.deltaY:h.deltaX:h.deltaX;y!==0&&(h.preventDefault(),b.ytLazyListBehavior.fillRemainingListItems(),b.offset+=y,VQ(b),b.reposition_())}};
b.onPointerDown=function(h){gkw(b)&&(b.dragMouseStart=h.clientX,b.dragOffsetStart=b.offset,b.dragging=!0)};
b.onPointerMove=function(h){gkw(b)&&b.dragging&&(b.ytLazyListBehavior.fillRemainingListItems(),b.offset=b.dragOffsetStart-(h.clientX-b.dragMouseStart),VQ(b),b.reposition_())};
b.onPointerUp=function(){gkw(b)&&(b.dragging=!1)};
return b};
_.z(EA,_.cl);var sJa=function(b){var h=_.$x(b.hostElement).querySelector("#items").children;if(!h)return 0;var y=0;b=_.L(b.fullyVisibleItemsIndices);for(var S=b.next();!S.done;S=b.next())y+=h[S.value].clientWidth;return y},gkw=function(b){return b.isSearch&&_.r("desktop_enable_dmpanel_click_drag_scroll")};
EA.prototype.created=function(){this.cachedViewportWidth=_.QC("initialInnerWidth")||window.innerWidth;this.JSC$14685_cachedViewportHeight=_.QC("initialInnerHeight")||window.innerHeight;_.QC("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.xZ("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
EA.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.r("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();Y1e(this)};
EA.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.r("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var b;(b=this.itemsVisibilityObserver)==null||b.disconnect();this.itemsVisibilityObserver=null;var h;(h=this.itemsObserver)==null||h.disconnect()};
var Y1e=function(b){var h=_.$x(b.hostElement).querySelector("#scroll-container");if(h){if(!b.itemsVisibilityObserver){var y=window.getComputedStyle(h).marginRight;b.itemsVisibilityObserver=new IntersectionObserver(function(S){To8(b,S)},{root:h,
rootMargin:y,threshold:.98})}if(h=_.$x(b.hostElement).querySelector("#items"))b.itemsObserver=new $J8(h,function(S){GLM(b,S)})}},GLM=function(b,h){kLN(b)&&(Array.from(h.addedNodes).filter(function(y){return y.nodeType===Node.ELEMENT_NODE}).forEach(function(y){b.itemsVisibilityObserver&&b.itemsVisibilityObserver.observe(y)}),Array.from(h.removedNodes).filter(function(y){return y.nodeType===Node.ELEMENT_NODE}).forEach(function(y){b.itemsVisibilityObserver&&b.itemsVisibilityObserver.unobserve(y)}))},
To8=function(b,h){var y=new Set(b.fullyVisibleItemsIndices);
h=_.L(h);for(var S=h.next();!S.done;S=h.next()){S=S.value;var F=S.target.parentElement;F?(F=Array.from(F.children).indexOf(S.target),S.isIntersecting?y.add(F):y.has(F)&&y.delete(F)):_.vX(new _.Gn("Parent element not found",S.target.nodeName))}b.fullyVisibleItemsIndices=Array.from(y).sort(function(a,P){return a-P});
y.size===0?_.vX(new _.Gn("No visible entries in horizontal list")):(b.startIndex=b.fullyVisibleItemsIndices[0],b.endIndex=b.fullyVisibleItemsIndices[b.fullyVisibleItemsIndices.length-1])},kLN=function(b){b.data?b=(b=b.data)&&b.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===b.itemSizeConstraint:!1:b=!1;
return b};
_.d=EA.prototype;_.d.addScrollEventListeners=function(){var b=_.$x(this.hostElement).querySelector("#scroll-container");b.style.touchAction="pan-y";b.addEventListener("wheel",this.JSC$14685_onWheelScroll);b.addEventListener("pointerdown",this.onPointerDown);b.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.d.removeScrollEventListeners=function(){var b=_.$x(this.hostElement).querySelector("#scroll-container");b.removeEventListener("wheel",this.JSC$14685_onWheelScroll);b.removeEventListener("pointerdown",this.onPointerDown);b.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.d.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.Ob(this,this.setStartIndex,[this.initialStartIndex])};
_.d.reposition_=function(){var b=_.QC("HTML_DIR")=="rtl"?"":"-",h=_.$x(this.hostElement).querySelector("#items");h&&(h.style.transform="translateX("+b+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.d.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.Ob(this,this.setButtonsState_))};
_.d.setButtonsState_=function(){this.setButtonsStateRequested=!1;var b=_.$x(this.hostElement).querySelector("#items").firstElementChild;if(b){this.minComponentWidth||(this.minComponentWidth=Vua(this,b));b=_.$x(this.hostElement).querySelector("#scroll-container").clientWidth;var h=_.$x(this.hostElement).querySelector("#items");h=_.r("kevlar_horizontal_list_scroll_width_killswitch")?h.clientWidth:h.scrollWidth;var y=this.get(this.ytLazyListBehavior.itemsPath,this);if(y){var S=Math.round(b/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+S,y.length)-1)}this.ytLazyListBehavior.canShowMore?h+this.minComponentWidth>=this.offset+b&&(this.atEnd=!1):this.atEnd=this.offset+b>=h-20?!0:!1;this.atStart=this.offset<=20}};
_.d.setStartIndex=function(b){if(!this.minComponentWidth){var h=_.$x(this.hostElement).querySelector("#items").firstElementChild;if(!h)return;this.minComponentWidth=Vua(this,h)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*b;VQ(this);this.reposition_()};
_.d.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.Ye();var b=_.$x(this.hostElement).querySelector("#scroll-container").clientWidth;_.r("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=Vua(this,_.$x(this.hostElement).querySelector("#items").firstElementChild));b=this.useFloorScrolling?Math.floor(b/this.minComponentWidth)||1:Math.round(b/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&EkM(this);this.offset+=kLN(this)?
sJa(this):b*this.minComponentWidth;VQ(this);this.reposition_();this.scrollCount++};
_.d.prevClick_=function(){var b=_.$x(this.hostElement).querySelector("#scroll-container").clientWidth;b=this.useFloorScrolling?Math.floor(b/this.minComponentWidth)||1:Math.round(b/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=kLN(this)?sJa(this):this.minComponentWidth*this.scrollCount-1):this.offset-=kLN(this)?sJa(this):b*this.minComponentWidth;this.centerListItems&&EkM(this);VQ(this);this.reposition_()};
_.d.onIronResize_=function(){this.resizeSupportEnabled&&_.Ob(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.d.onItemsTransitionEnd_=function(b){_.mi(b)===_.$x(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.d.onChildElementFocus_=function(b){b=b.target.closest("#items > *");var h=_.$x(this.hostElement).querySelector("#scroll-container");if(h.contains(b)){if(_.r("web_horizontal_list_behavior_focus_killswitch"))if(b.offsetLeft<this.offset)this.offset=Math.abs(b.offsetLeft)<b.clientWidth?0:b.offsetLeft;else if(b.offsetLeft+b.clientWidth>this.offset+h.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.Ye(),this.offset=b.offsetLeft+b.clientWidth-h.clientWidth;else return;else{var y=_.$x(this.hostElement).querySelector("#items"),
S=_.QC("HTML_DIR")==="rtl",F=S?y.clientWidth-b.offsetLeft:b.offsetLeft;y=S?y.clientWidth-(b.offsetLeft+b.clientWidth):b.offsetLeft+b.clientWidth;var a=S?F>this.offset+h.clientWidth:F<this.offset,P=S?y<this.offset:y>this.offset+h.clientWidth,K=S?a:P;if(S?P:a)h=S?y:F,this.offset=Math.abs(h)<b.clientWidth?0:h;else if(K)this.ytLazyListBehavior.fillRemainingListItems(),_.Ye(),this.offset=(S?F:y)-h.clientWidth;else return}VQ(this);this.reposition_()}};
_.d.observeShownItems_=function(){this.reset()};
_.d.checkComponentWidthResize=function(){var b=_.$x(this.hostElement).querySelector("#items").firstElementChild;b&&(b=Vua(this,b),this.centerListItems||b!==this.minComponentWidth)&&(this.minComponentWidth=b,this.offset=b*this.scrollCount,this.centerListItems&&EkM(this),VQ(this),this.reposition_())};
var Vua=function(b,h){var y=window.getComputedStyle(h).marginRight;y=Math.floor(Number(y.replace("px","")));var S=window.getComputedStyle(h).marginLeft;S=Math.floor(Number(S.replace("px","")));b.centerListItems&&!b.marginWidthRight&&(b.marginWidthRight=y,b.marginWidthLeft=S);return b.resizeSupportEnabled?h.getBoundingClientRect().width+y:h.offsetWidth+y},VQ=function(b){var h=_.$x(b.hostElement).querySelector("#scroll-container").clientWidth,y=_.$x(b.hostElement).querySelector("#items").clientWidth;
b.offset<0?b.offset=0:b.offset+h>=y&&(b.offset=y-h)},EkM=function(b){b.offset-=(_.$x(b.hostElement).querySelector("#scroll-container").clientWidth+b.marginWidthRight-b.minComponentWidth)/2-b.marginWidthLeft};
_.tm.Object.defineProperties(EA.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var b=_.QC("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(b==-1)b=this.JSC$14685_cachedViewportHeight,b=b>1320?5:b>1020?4:b>730?3:b>430?2:1;else if(b==0)return 0;_.xZ("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",b-1);b=_.QC("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(b>-1)return b;b=this.cachedViewportWidth;b=b>1600?6:b>1400?5:b>1300?4:b>1090?5:b>870?4:b>660?3:2;_.xZ("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
b);return b},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.r("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
EA.prototype.observeShownItems_=EA.prototype.observeShownItems_;EA.prototype.onChildElementFocus_=EA.prototype.onChildElementFocus_;EA.prototype.onItemsTransitionEnd_=EA.prototype.onItemsTransitionEnd_;EA.prototype.onIronResize_=EA.prototype.onIronResize_;EA.prototype.prevClick_=EA.prototype.prevClick_;EA.prototype.nextClick_=EA.prototype.nextClick_;EA.prototype.setButtonsState_=EA.prototype.setButtonsState_;EA.prototype.requestButtonsStateUpdate_=EA.prototype.requestButtonsStateUpdate_;
EA.prototype.reposition_=EA.prototype.reposition_;EA.prototype.reset=EA.prototype.reset;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],EA.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.GO.YtLazyListBehavior),_.f("design:type",Object)],EA.prototype,"ytLazyListBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],EA.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],EA.prototype,"atStart",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],EA.prototype,"atEnd",void 0);_.V([_.C(),_.f("design:type",Object)],EA.prototype,"startIndex",void 0);_.V([_.C(),_.f("design:type",Object)],EA.prototype,"endIndex",void 0);_.V([_.C({value:6}),_.f("design:type",Number)],EA.prototype,"initialCount",void 0);_.V([_.C(),_.f("design:type",Object)],EA.prototype,"scrollCount",void 0);_.V([_.C(),_.f("design:type",Object)],EA.prototype,"initialStartIndex",void 0);
_.V([_.C(),_.f("design:type",Object)],EA.prototype,"disableScrollEventListener",void 0);_.V([_.C(),_.f("design:type",Object)],EA.prototype,"supportComponentResize",void 0);_.V([_.C({value:function(){var b=this;return function(){return b.prevClick_()}}}),
_.f("design:type",Function)],EA.prototype,"boundPrevClick",void 0);_.V([_.C({value:function(){var b=this;return function(){return b.nextClick_()}}}),
_.f("design:type",Function)],EA.prototype,"boundNextClick",void 0);_.V([_.C(),_.f("design:type",Object)],EA.prototype,"useFloorScrolling",void 0);_.V([_.C(),_.f("design:type",Object)],EA.prototype,"isSearch",void 0);_.V([_.C(),_.f("design:type",Object)],EA.prototype,"dragging",void 0);_.V([_.C(),_.f("design:type",Object)],EA.prototype,"dragMouseStart",void 0);_.V([_.C(),_.f("design:type",Object)],EA.prototype,"dragOffsetStart",void 0);
_.V([_.C(),_.f("design:type",Object)],EA.prototype,"disableWheelScroll",void 0);_.V([_.C(),_.f("design:type",Object)],EA.prototype,"centerListItems",void 0);_.V([_.u3("iron-resize"),_.OB("guideOpened"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],EA.prototype,"onIronResize_",null);_.V([_.u3("transitionend"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],EA.prototype,"onItemsTransitionEnd_",null);
_.V([_.u3("focusin"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],EA.prototype,"onChildElementFocus_",null);_.V([_.OB("shownItems"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],EA.prototype,"observeShownItems_",null);_.V([_.Rc()],EA);_.kd.YtdHorizontalListBehavior=[];_.kd.YtdHorizontalListBehavior.push(_.ab,_.Q.YtRendererBehavior,_.GO.YtLazyListBehavior,_.DV.YtdGuideStateAwareBehavior,EA.prototype);var wwM=["APP_STATE","PI"];var iw,ff=function(b){this.hostElement=b},wP=function(b,h){if(h&&(QTn(h.viewableCommands)||QTn(h.endOfSessionCommands))){var y=vzf(h.viewableCommands);
h=vzf(h.endOfSessionCommands);if(!iw){var S=_.tj("custom_active_view_tos_timeout_ms");iw=S>0&&S!==36E5?new tfy(mHr(),S):new tfy(mHr())}ccF(iw,b.hostElement);R5N(iw,b.hostElement,y,h)}},lw=function(b){iw&&ccF(iw,b.hostElement)};var iYb=_.bm(["about:blank"]),fQa={pushState:window.history.pushState,replaceState:window.history.replaceState};var qT=function(b){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=b;this.internalPushState=b.pushState.bind(b);this.internalReplaceState=b.replaceState.bind(b)};
qT.prototype.init=function(){this.initialized=!0};
qT.prototype.pushState=function(b,h){this.initialized||this.init();this.internalPushState&&this.internalPushState(b,"",h)};
qT.prototype.replaceState=function(b,h){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(b,"",h)};
qT.prototype.getState=function(){return this.history&&this.history.state};var wnW=function(b){var h=function(){var y=b.apply(this,arguments)||this;y.boundHistoryPushState=!1;y.boundHistoryReplaceState=!1;y.debugInfo={};return y};
_.z(h,b);h.prototype.init=function(){var y=_.gB("IFRAME");_.Fg(y,_.Ra(iYb));y.sandbox="allow-same-origin";y.style.display="none";this.iframe=y;document.body.appendChild(y);this.bindHistoryStateFunctions();b.prototype.init.call(this)};
h.prototype.bindHistoryStateFunctions=function(){var y=this,S=[],F;this.iframe&&((F=this.iframe.contentWindow)==null?0:F.history)&&(F=this.iframe.contentWindow.history)&&(S.push(F),Object.getPrototypeOf(F)&&S.push(Object.getPrototypeOf(F)));window.history&&S.push(window.history);F=window.history;Object.getPrototypeOf(F)&&S.push(Object.getPrototypeOf(F));S.push(fQa);F=function(P){for(var K=null,n=0;n<S.length;n++){var X=S[n][P];if(typeof X==="function"){K=X.bind(window.history);y.debugInfo[P]=n;break}}return K};
if(!this.boundHistoryReplaceState){var a=F("replaceState");a&&(this.internalReplaceState=a,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(F=F("pushState"))&&(this.internalPushState=F,this.boundHistoryPushState=!0)};
return h}(qT),lQa=function(){return wnW.call(this,window.history)||this};
_.z(lQa,wnW);lQa.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var xd=function(b){this.browserHistory=b;this.initialized=!1};
xd.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
xd.prototype.pushState=function(b,h){this.initialized||this.init();this.browserHistory.pushState(b,h)};
xd.prototype.replaceState=function(b,h){this.initialized||this.init();this.browserHistory.replaceState(b,h)};
xd.prototype.handlePopstate=function(b){return b.state};_.q1e=function(b,h,y,S,F){this.endpoint=b;this.forward=h;this.historyEntry=y;this.JSC$30976_savedComponentState=S;this.legacyBorder=F===void 0?!1:F};var x67=function(b,h){this.rootData=b;this.scrollTop=h};_.QQ=new _.ca("EPHEMERAL_STORE_TOKEN");_.mE=function(b){this.data=Object.assign({},b);var h;(h=this.data.innertubeResponse)==null||delete h.frameworkUpdates};
_.mE.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.NO)()};
_.de=function(b){return Object.assign({},b.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var QJ7=function(){this.maxSize=100;this.timeToDataCache=new Map};
QJ7.prototype.get=function(b){var h=this.timeToDataCache.get(b);h&&(this.timeToDataCache.delete(b),this.timeToDataCache.set(b,h));if(h&&h.rootData&&(_.r("web_use_response_store_for_history_cache")||_.r("mweb_use_new_history_manager"))){var y=_.H9().resolve(_.QQ),S=m67(h),F=!!S;if(S){if(S.content){var a=vg(y,S.content);F&&a?h.rootData.response=_.de(a):F=!1}S.player&&(a=vg(y,S.player),F&&a?h.rootData.playerResponse=_.de(a):F=!1);S.reelSequence&&(y=vg(y,S.reelSequence),F&&y?h.rootData.reelWatchSequenceResponse=
_.de(y):F=!1)}F||(this.timeToDataCache.delete(b),h=void 0)}return h};
QJ7.prototype.set=function(b,h){if(h.rootData&&(_.r("web_use_response_store_for_history_cache")||_.r("mweb_use_new_history_manager"))){var y=m67(h),S=Object.assign({},h.rootData);y&&(y.content&&h.rootData.response&&(vk7(this,y.content,h.rootData.response),S.response=null),y.player&&h.rootData.playerResponse&&(vk7(this,y.player,h.rootData.playerResponse),S.playerResponse=null),y.reelSequence&&h.rootData.reelWatchSequenceResponse&&(vk7(this,y.reelSequence,h.rootData.reelWatchSequenceResponse),S.reelWatchSequenceResponse=
null));h=new x67(S,h.scrollTop)}this.timeToDataCache.has(b)?this.timeToDataCache.delete(b):this.timeToDataCache.size>=this.maxSize&&(y=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(y.value));this.maxSize!==0&&this.timeToDataCache.set(b,h)};
QJ7.prototype.clear=function(){this.timeToDataCache.clear()};
var m67=function(b){var h=_.H9().resolve(_.XS(_.A_)),y;if((y=b.rootData)==null?0:y.endpoint)return h==null?void 0:nmn(h,b.rootData.endpoint);var S;_.vX(new _.Gn("History snapshot response data does not contain endpoint",(S=b.rootData)==null?void 0:S.url));return null},vk7=function(b,h,y){if(b.maxSize>0){var S;
(b=(S=y.responseContext)==null?void 0:S.maxAgeSeconds)&&Number(b)>0&&(S=_.H9().resolve(_.QQ),y=Lh(y,b),S.put(h,new _.mE(y)))}};var bVP=function(b,h,y){this.endpoint=h;this.JSC$30982_savedComponentState=y===void 0?null:y;this.entryTime=b};var yyf=1;var bU=function(b){var h=function(){var y=b.apply(this,[].concat(_.f$(_.x$.apply(0,arguments))))||this;y.historyEntryTime=0;y.historySnapshotCache=y.createHistoryCache();return y};
_.z(h,b);h.prototype.createHistoryCache=function(){return new QJ7};
h.prototype.saveAndReplace=function(y,S,F){var a=window.location.href;var P=P===void 0?{}:P;var K=(K=this.browserHistory.getState())&&K.entryTime?K.entryTime:SyI();y=this.createNewHistoryEntry(y,P,K);this.saveSnapshot(K,S,F);this.replaceState(y,a||window.location.href)};
h.prototype.saveAndPush=function(y,S,F,a,P){P=P===void 0?{}:P;this.saveSnapshot(this.historyEntryTime,F,a);F=this.historySnapshotCache;a=this.historyEntryTime;var K=F.timeToDataCache.keys();K=_.L(K);for(var n=K.next();!n.done;n=K.next())n=n.value,n>a&&F.timeToDataCache.delete(n);S=this.createNewHistoryEntry(S,P);this.pushState(S,y)};
h.prototype.saveSnapshot=function(y,S,F){this.historySnapshotCache.set(y,new x67(S,F))};
h.prototype.createNewHistoryEntry=function(y,S,F){F=F===void 0?SyI():F;return new bVP(F,y,S)};
h.prototype.handlePopstate=function(y){var S=b.prototype.handlePopstate.call(this,y),F=null,a=null,P=!1,K=null;S&&S.entryTime&&(K=this.historySnapshotCache.get(S.entryTime)||null,P=S.entryTime>this.historyEntryTime,this.historyEntryTime=S.entryTime,F=S.endpoint,a=S.JSC$30982_savedComponentState);this.handleHistoryCacheLoad(new _.q1e(F,P,K,a),y);return S};
h.prototype.pushState=function(y,S){Number(y==null?void 0:y.entryTime)>=0&&(this.historyEntryTime=y.entryTime);b.prototype.pushState.call(this,y,S)};
h.prototype.replaceState=function(y,S){Number(y==null?void 0:y.entryTime)>=0&&(this.historyEntryTime=y.entryTime);b.prototype.replaceState.call(this,y,S)};
h.prototype.handleHistoryCacheLoad=function(){};
return h}(xd),ha7=function(){var b=bU.call(this,new lQa)||this;
b.dispatchElement=null;b.entryIndex=0;return b};
_.z(ha7,bU);_.d=ha7.prototype;_.d.init=function(b){b=b===void 0?!0:b;bU.prototype.init.call(this);this.initialized||(b||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.d.handlePopstate=function(b){var h=null;b.state||(h="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return bU.prototype.handlePopstate.call(this,b);var y=new CustomEvent("yt-history-pop",{cancelable:!0});_.F8(this.dispatchElement,"yt-history-pop",[y,{errorMsg:h}]);_.aw(this.dispatchElement,"yt-close-all-popups-action");if(!y.defaultPrevented){y=_.H9().resolve(_.bM);h=y.getCurrentData();var S=y.getCurrentPage();y=0;S?(S=_.F8(this.dispatchElement,"yt-get-page-offset",
[S]),S.length>0&&(y=S[0])):_.vX(new _.Gn("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:h?h.page:"undefined"}));h&&(h.csn=_.UE());this.saveSnapshot(this.historyEntryTime,h,y)}return bU.prototype.handlePopstate.call(this,b)};
_.d.handleHistoryCacheLoad=function(b,h){b.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.L(_.aw(this.dispatchElement,"yt-history-will-navigate",[h])).next().value||_.F8(this.dispatchElement,"yt-history-load",[h,b]))};
_.d.pushState=function(b,h){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var y=new _.Gn("history.pushState is not a function",this.getDebugString());_.QT(y)}bU.prototype.pushState.call(this,b,h)};
_.d.replaceState=function(b,h){if(!this.browserHistory.boundHistoryReplaceState){var y=new _.Gn("history.replaceState is not a function",this.getDebugString());_.QT(y)}bU.prototype.replaceState.call(this,b,h)};
_.d.saveAndPush=function(b,h,y,S,F){F=F===void 0?{}:F;y&&(y.csn=_.UE());bU.prototype.saveAndPush.call(this,b,h,y,S,F)};
_.d.getDebugString=function(){var b=[];this.initialized&&b.push("i");this.browserHistory.boundHistoryReplaceState&&b.push("bhr");this.browserHistory.boundHistoryPushState&&b.push("bhs");"replaceState"in this.browserHistory.debugInfo&&b.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&b.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&b.push("ei:"+String(this.entryIndex));return b.join(",")};
_.hp=function(b,h){b.init(!0);var y=b.browserHistory.getState();b.replaceState(y,$r(h))};
ha7.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.y$=new _.ca("DESKTOP_HISTORY_MANAGER_TOKEN");var yw5=[10,20,30,40,50,60],S9=function(){this.currentPartitionIndex=0},Ssb=function(b){UYa({mainAppWeb:_.wq(),
survivalSli:{partitionMinute:b,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},FRP=function(b){UYa({mainAppWeb:_.wq(),
survivalSli:{partitionMinute:b,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},ajw=function(b){return b.currentPartitionIndex>=0&&b.currentPartitionIndex<yw5.length?yw5[b.currentPartitionIndex]:-1},dNa=function(b){return b.currentPartitionIndex>0&&b.currentPartitionIndex-1<yw5.length?yw5[b.currentPartitionIndex-1]:-1};
S9.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var b=dNa(this);b>0&&FRP(b);b=ajw(this);b>0&&Ssb(b);jtP(this)}};
var jtP=function(b){var h=ajw(b);if(h>0){var y=dNa(b);y<0&&(y=0);b.intervalId=_.xP.addJob(function(){var S=dNa(b);S>0&&FRP(S);S=ajw(b);S>0&&Ssb(S);jtP(b)},3,(h-y)*6E4);
b.currentPartitionIndex+=1}else b.currentPartitionIndex=-1};var $NW=function(b){W_.call(this,b,132);this.isDocument=b===document.documentElement};
_.z($NW,W_);$NW.prototype.calculateScrollDelta=function(b,h,y){var S=0;b<h?S=b<h-100?-48:-8:b>h+y&&(S=b>h+y+100?48:8);return S};
$NW.prototype.JSC$11578_onMouseMove=function(b){this.isDocument||(b.clientX=b.event_.pageX,b.clientY=b.event_.pageY);W_.prototype.JSC$11578_onMouseMove.call(this,b)};_.LRW=function(b,h){var y=this;this.scrollElement=document.documentElement;this.dragScrollSupport=this.JSC$14739_dragListGroup=null;this.onDraggerCreated=function(S){var F=S.JSC$11574_dragger;F.scrollTarget_=y.scrollElement;S=S.draggerEl;F&&S.menuOpened&&F.setEnabled(!1)};
this.onDragStart=function(S){var F=S.draggerEl;S=S.currDragItem;var a=Object.assign({},S==null?void 0:S.data);a.trackingParams=void 0;F.data=a;F.style.position="absolute";F.style.width=(S==null?void 0:S.clientWidth)+"px";F.style.zIndex="2030";F.onDrag&&F.onDrag();S=_.mQ(F);(a=S.querySelector("ytd-app"))?_.$x(a).appendChild(F):S.body.appendChild(F);y.dragScrollSupport=new $NW(y.scrollElement);y.dragScrollSupport.horizontalScrolling_=!1;F=y.dragScrollSupport;F.constrainScroll_=!!F.margin_&&!1};
this.onDrop=function(S){y.handleDrop(S);y.dragScrollSupport&&(_.nq(y.dragScrollSupport),y.dragScrollSupport=null)};
this.onReorderableScroll=function(){if(y.JSC$14739_dragListGroup){var S=y.JSC$14739_dragListGroup;p2W(S,S.currDragItem_)}};
this.handleDrop=h};
_.F$=function(b){b.JSC$14739_dragListGroup&&(_.Yy(b.JSC$14739_dragListGroup,c4e,b.onDragStart),_.Yy(b.JSC$14739_dragListGroup,Iva,b.onDragStart),b.JSC$14739_dragListGroup.dispose(),b.JSC$14739_dragListGroup=null);b.dragScrollSupport&&(_.nq(b.dragScrollSupport),b.dragScrollSupport=null);b.scrollElement.removeEventListener("scroll",b.onReorderableScroll)};
_.PP8=function(b,h,y,S){S=S===void 0?"":S;_.F$(b);y&&(b.scrollElement=y);b.JSC$14739_dragListGroup=new KT;b.JSC$14739_dragListGroup.hysteresisDistance_=2;Wf5(b.JSC$14739_dragListGroup,h);b.JSC$14739_dragListGroup.draggerElClasses_=My("dragging").split(" ");S&&A4o(b.JSC$14739_dragListGroup,function(F){var a=F||document,P=null;a.getElementsByClassName?P=a.getElementsByClassName(S)[0]:P=aKe("*",S,F);return P||F});
_.W3(b.JSC$14739_dragListGroup,tsw,b.onDraggerCreated);_.W3(b.JSC$14739_dragListGroup,c4e,b.onDragStart);_.W3(b.JSC$14739_dragListGroup,Iva,b.onDrop);b.JSC$14739_dragListGroup.init();b.scrollElement.addEventListener("scroll",b.onReorderableScroll,{passive:!0})};
_.tm.Object.defineProperties(_.LRW.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});var KRN=function(){this.skipNextNavigation=!1},ZV8=function(b,h,y){if(!h)return!1;
if(b.skipNextNavigation)return b.skipNextNavigation=!1;if(_.c(y,_.jH))return!1;var S,F,a;if((S=_.c(y,_.O0))==null?0:(F=S.browseEndpointContextSupportedConfigs)==null?0:(a=F.browseEndpointContextMainConfig)==null?0:a.skipConfirmation)return!1;var P;return((P=_.c(h.commandMetadata,_.ZW))==null?void 0:P.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
KRN.prototype.showConfirmationDialog=function(b,h){this.navigateParams=h;this.customConfirmationCommand?_.H9().resolve(_.OM).resolveCommand(this.customConfirmationCommand):(h={openPopupAction:{popup:{confirmDialogRenderer:{title:_.mk(_.Mt("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.mk(_.Mt("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.mk(_.Mt("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.mk(_.Mt("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.$J.getInstance().triggerAction("yt-open-popup-action",h,b))};
KRN.prototype.cancelPendingNavigation=function(){var b;((b=this.navigateParams)==null?void 0:b.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var oio=function(){},niM=function(b,h,y,S,F,a,P){y=y===void 0?{}:y;
P=P===void 0?{}:P;var K=_.H9().resolve(_.A_),n,X=(n=_.c(h,_.jH))==null?void 0:n.url;return X?lZY(K,X,y,window.location.href,function(u,O){M08(b,u,O,!1,!0,y,a,S)},function(){return!1}):lG(K,h,y,window.location.href,tP(h),function(u,O){M08(b,u,O,!1,!0,y,a,S)},F,P)},M08=function(b,h,y,S,F,a,P,K){if(!b.JSC$14754_chunkHandler)if(y.page==="learning_journey_watch"&&_.r("web_enable_canvas_on_learning_journey")){var n=!_.c(K,_.O0);
F=F||S;if(n)if(F){if(_.r("kevlar_continue_playback_without_player_response")){var X;var u=(X=_.c(K,_.wO))==null?void 0:X.videoId}S={clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:S,previousVideoId:u},tempData:a}}else S={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};else S={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};b.JSC$14754_chunkHandler=new yNe(_.ye,S,P,n,F)}else if(y.page==="watch"||y.page==="learning_journey_watch")if(F||S){if(_.r("kevlar_continue_playback_without_player_response")){var O;
n=(O=_.c(K,_.wO))==null?void 0:O.videoId}b.JSC$14754_chunkHandler=new atM(_.ye,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:S,previousVideoId:n},tempData:a},P)}else b.JSC$14754_chunkHandler=new bUe(_.ye);else y.page==="shorts"&&F&&!S?b.JSC$14754_chunkHandler=new Fuw(_.ye,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:a},P):b.JSC$14754_chunkHandler=new h6o(P);b.JSC$14754_chunkHandler.processChunk({endpoint:h,data:y});return b.JSC$14754_chunkHandler.xx.promise},
XKW=function(b,h,y,S,F){(y=_.OUa(y))&&M08(b,h,y,!1,!0,S,void 0,F)};_.HVo=new _.ca("NAVIGATION_SERVICE_TOKEN");var uha=function(){this.pendingNavigationPromise=null};
_.d=uha.prototype;_.d.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.d.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.d.addEventListener=function(){throw Error("zh");};
_.d.dispatchEvent=function(){throw Error("zh");};
_.d.removeEventListener=function(){throw Error("zh");};var OVo=new _.ca("APP_ROOT");var a_N=null;var Nra=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],ax=function(){_.TI.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];t05(this)};
_.z(ax,_.TI);ax.prototype.verifyUser=function(){var b=t05(this),h=b.logout;if(!b.sessionChange)return!0;this.dispatchEvent("ytsessionchange");h&&this.dispatchEvent("ytuserinvalid");return!1};
var t05=function(b){var h=Nra.map(function(F){var a;return(a=_.Cn.get(F))!=null?a:""}),y=h.some(function(F,a){return b.sessionCookies&&b.sessionCookies[a]!==""&&F===""}),S=h.some(function(F,a){return b.sessionCookies&&b.sessionCookies[a]!==F});
b.sessionCookies=h;return{logout:y,sessionChange:S}};
ax.prototype.clearTimeout=function(){this.scheduledJobId&&(_.xP.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var KOF=new _.ca("POSTMESSAGE_TUNNEL_TOKEN");var $wN=["/parent_tools","/file_download","/artist_roster"],MLk=[Gpa,kpP,VPe,icG,E$w,TfN,fLw,wM5];var d7=new _.ca("NAVIGATION_CONFIRMATION_SERVICE");var rwN="/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(" "),cwb=[{url:"/podcasts",
expFlag:"enable_polymer_navigation_for_podcasts_destination_page"},{url:"/companion_canvas",expFlag:"enable_ai_companion"}],j9=function(b,h){this.pendingNavigationPromise=null;this.JSC$14777_clientRoot=b;this.historyManager=h;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 oio;this.debugString=b.is;b={"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};_.LP(_.$J.getInstance(),b,this.JSC$14777_clientRoot)},Bra,WRo,Awe,UNa,Ij8;
_.z(j9,uha);j9.prototype.reload=function(){_.GM(window.location.href)};
var rNo=function(b){b.currentEndpoint&&_.c(b.currentEndpoint,_.cd)?b.reload():b.currentEndpoint&&b.navigate(b.currentEndpoint,!0,void 0,{disableCache:!0})};
j9.prototype.navigate=function(b,h,y,S,F,a,P,K){h=h===void 0?!1:h;y=y===void 0?{}:y;S=S===void 0?{}:S;var n=_.H9().resolve(d7),X;if(!P&&ZV8(n,(X=this.currentEndpoint)!=null?X:void 0,b))return n.showConfirmationDialog(this.JSC$14777_clientRoot.parentElement,{endpoint:b,reload:h,params:y,tempData:S,requestType:F,createScreenConfig:a}),!1;var u=_.Dh();_.Iz(u,"eocs")||u.parkOrScheduleJob(function(){u.processSignal("eocs")},10,"eor");
dw4();P=tP(b);n=S.autonav==="1";X=_.UE();ax.instance||(ax.instance=new ax);var O=ax.instance.verifyUser(),N;if(_.r("enable_dark_theme_only_on_shorts")){var t=document.documentElement.hasAttribute("dark"),R=_.Vk(!0)==="USER_INTERFACE_THEME_DARK";if(P==="shorts"){if(!t)if(_.r("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var I;_.GM((I=_.c(b==null?void 0:b.commandMetadata,_.ZW))==null?void 0:I.url,void 0,void 0,window.top)}}else{var U;_.GM(_.Ln((U=_.c(b==
null?void 0:b.commandMetadata,_.ZW))==null?void 0:U.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.r("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!t){var p;_.GM(_.Ln((p=_.c(b==null?void 0:b.commandMetadata,_.ZW))==null?void 0:p.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(R!==t){var e;_.GM(_.Ln((e=_.c(b==null?void 0:b.commandMetadata,_.ZW))==null?void 0:e.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(P==="watch"){if(Ra5(_.H9().resolve(_.Vp),
b)&&(O||_.r("fix_miniplayer_navigation_killswitch")))return!1;_.r("block_all_player_prefetch_requests")||(N=Ntw(_.Fo(_.xX),b,n))}else{var E,Y=(E=_.c(this.currentEndpoint,_.wO))==null?void 0:E.videoId;Y&&_.K0.getInstance().then(function(gI){gI&&gI.set("yt-miniplayer-shown-video-id",Y)})}N&&(y.frags=N.missingFragments_.join(","));
I=null;var w;U=(w=_.c(b==null?void 0:b.commandMetadata,_.ZW))==null?void 0:w.ignoreNavigation;if(!U)if(_.r("kevlar_command_url")){var x;I=(x=_.c(b==null?void 0:b.commandMetadata,_.ZW))==null?void 0:x.url}else I=_.Zh4(b,y);if(I&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&I==this.lastNavigationUrl)return _.WT({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.uG(Yj(),"CANCELLED")}I&&(this.lastNavigationUrl=I);ai8();_.xZ("IS_HOMEPAGE_COLD",
!1);_.xZ("IS_RESULTS_PAGE_COLD",!1);_.xZ("IS_WATCH_PAGE_COLD",!1);b.loggingUrls&&b.loggingUrls.forEach(function(gI){gI.baseUrl&&_.$2(gI.baseUrl)});
_.uYf(b,a?a.layer:0)&&_.r("kevlar_flush_logs_on_away_navigation")&&_.x2();if(ncN(b))return!1;hFW(P,F);if(!I)return U||_.vX(new _.Gn("Can't construct url for endpoint",b)),_.uG(Yj(),"FAILURE"),!1;_.jVr();w=b&&_.c(b,_.O0)&&_.c(b,_.O0).browseId.startsWith("UC");y=(x=_.r("enable_dark_theme_only_on_shorts")&&P==="shorts"?!1:_.E0()&&document.documentElement.hasAttribute("dark")!==_.kg())?{themeRefresh:1}:{};x&&!_.sM()&&_.Vk()==="USER_INTERFACE_THEME_DARK"&&(y.theme="dark");w=x||za8(I)&&!w&&!_.r("kevlar_disable_url_allowlist");
O||(w=!0);if(w||_.QC("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var q;var dI=(q=window.top)==null?void 0:q.location.href}catch(gI){var L4;dI=(L4=gI)==null?void 0:L4.message}_.vX(new _.Gn("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:dI}))}b=_.r("kevlar_redirect_on_window_killswitch")?window.top:window;TM(I);_.GM(_.Ln(I,y),void 0,void 0,b);_.uG(Yj(),"ABORTED");return!1}_.r("kevlar_early_popup_close")&&_.F8(this.JSC$14777_clientRoot,"yt-close-all-popups-action",
[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14754_chunkHandler=void 0;var Rq;dI=tP((Rq=this.currentEndpoint)!=null?Rq:void 0);(Rq=P==="shorts"&&dI==="shorts")||_.hMy();_.bN(Vpq)("nr",void 0);n&&_.WT({webInfo:{navigationReason:"an"}});b.clickTrackingParams&&(S.itct=b.clickTrackingParams,S.csn=X);FCy(S);S.endpoint=JSON.stringify(b);_.r("enable_unknown_lact_fix_on_html5")&&(_.H9().resolve(_.rS),S.lact=_.td());_.lR.isEmpty(S)||_.QB(I,S);!_.r("disable_miniplayer_expansion_log")&&this.isMiniplayerExpansion&&
(a=Object.assign({},{layer:0},a,{parentLayer:3}));this.pendingNavigationPromise=a=niM(this.pageFetcher,b,S,this.currentEndpoint,this.JSC$14777_isNetworkPromiseStale.bind(this),a,K);a=a.then(this.handleNavigateSuccess.bind(this,a,b,N,S),this.handleNavigateFail.bind(this,a,b));_.h0().navigationFinishPromise=a;h={endpoint:b,pageType:P,url:$r(I),reload:!!h,noProgressBar:Rq};F&&(h.type=F);var Xn;F=_.uk((Xn=this.currentEndpoint)!=null?Xn:null);Xn=_.uk(b!=null?b:null);this.fireEvent("yt-navigate-start",
h);var Ny;(Ny=_.H9().resolve(_.XS(_.HVo)))==null||Ny.publish("navigation-start",{sourcePageSubtype:F,destinationPageSubtype:Xn});N&&XKW(this.pageFetcher,b,N,S,this.currentEndpoint);return!0};
j9.prototype.JSC$14777_isNetworkPromiseStale=function(b){return b!=this.pendingNavigationPromise};
var DN8=function(b,h,y,S,F){var a=tP(h);h={endpoint:h,pageType:a};F&&(h.errorMessage=F);_.vX(y);h.navigationDoneMs=_.pI("nd");h.navigationErrorReason=S;b.fireEvent("yt-navigate-error",h)};
j9.prototype.handleNavigateFail=function(b,h,y){var S=void 0;y instanceof _.GR&&(S=y,PMN(y));if(this.JSC$14777_isNetworkPromiseStale(b))return _.UQ(S);_.uG(Yj(),"FAILURE");DN8(this,h,y,"101");return _.UQ(y)};
j9.prototype.handleNavigateSuccess=function(b,h,y,S,F){if(this.JSC$14777_isNetworkPromiseStale(b))return _.$p();this.pendingNavigationPromise=null;if(!F)return h=new _.Gn("Missing data in response for navigation endpoint",h),_.UQ(h);if(F.reload)return window.location.reload(!0),_.$p();y&&(b={},_.lR.extend(b,_.OUa(y),F),F=b);var a,P;y=(a=F)==null?void 0:(P=a.timing)==null?void 0:P.responseStart;y!=null&&_.pI("srt",y);_.pI("pdc");var K,n;a=(K=F)==null?void 0:(n=K.timing)==null?void 0:n.info;a!=null&&
(K=_.bN(_.wJf)(a),_.WT(K));_.uG(Yj(),"SUCCESS");Ij8(this,h,F,1,S);return _.$p()};
var za8=function(b){var h=b;_.r("kevlar_no_redirect_to_classic_2_ks")||(h=(new _.lX(b)).getPath());if(h==="/"||h==="/red")return!1;var y=!0;rwN.forEach(function(S){b.indexOf(S)===0&&(y=!1)});
cwb.forEach(function(S){var F=S.url;_.r(S.expFlag)&&b.indexOf(F)===0&&(y=!1)});
return y};
j9.prototype.publishPageData=function(b){this.fireEvent("yt-page-data-fetched",{pageData:b})};
Bra=function(b,h,y,S,F,a){var P=null;h.page!=="watch"&&h.page!=="learning_journey_watch"||S?h.filler||_.F8(b.JSC$14777_clientRoot,"yt-stop-old-player",[h]):P=M08(b.pageFetcher,F,h,y,!1,a,void 0,b.currentEndpoint);if(P)return P.then(b.publishPageData.bind(b,h));b.publishPageData(h);return _.$p()};
WRo=function(b,h,y){var S=null;if(!y)return S=new _.Gn("Empty data",b.debugString,h);var F=y.response;if(!F)return S;var a={endpointType:tP(h)||"unknown"};F.responseContext?(F=F.responseContext.errors)&&(S=new _.Gn("Errors in response context",b.debugString,h,F,a)):S=F.error||F.errorMetadata?new _.Gn("Errors in response",b.debugString,h,F.error,F.errorMetadata,a):new _.Gn("responseContext missing",b.debugString,h,Object.keys(F).sort().join(","),a);var P,K,n,X;if(b=y==null?void 0:(P=y.response)==null?
void 0:(K=P.responseContext)==null?void 0:(n=K.webResponseContextExtensionData)==null?void 0:(X=n.webResponseContextDebugData)==null?void 0:X.debugErrorMessages)for(P=0;P<b.length;P++);return S};
Awe=function(b){var h,y,S,F;return b==null?void 0:(h=b.response)==null?void 0:(y=h.responseContext)==null?void 0:(S=y.errors)==null?void 0:(F=S.error)==null?void 0:F["0"]};
UNa=function(b,h){var y;if(y=h.url&&!h.url.startsWith("/clip"))y=h.url,y=!_.r("webfe_parse_debug_param_in_resolveurl_service")&&b.searchDebugUrlMatcher.test(y)||Nhr(y)?!0:!1;if(y)Nhr(h.url)&&_.dH(window.location.href).themeRefresh?(h=_.mp(h.url,"themeRefresh"),_.hp(b.historyManager,h)):h.url&&!bon(h.url)&&_.hp(b.historyManager,h.url);else if(h.endpoint){var S,F,a;(y=(S=h.endpoint)==null?void 0:(F=S.commandMetadata)==null?void 0:(a=F.webCommandMetadata)==null?void 0:a.url)&&!bon(y)&&_.hp(b.historyManager,
y);y&&h.url&&y!=h.url&&!h.url.match("playnext=1")&&new _.Gn("Response url mismatch in response data",b.debugString,y,h.url)}};
_.pKG=function(b,h,y,S,F,a,P,K){a=a===void 0?!1:a;var n=_.H9().resolve(d7),X;if(!K&&ZV8(n,(X=b.currentEndpoint)!=null?X:void 0,h))return n.showConfirmationDialog(b.JSC$14777_clientRoot.parentElement,{endpoint:h,data:y,navigationType:S,tempData:F,isMiniplayer:a,isForwardHistoryNavigation:P==null?void 0:P.forward}),_.$p();b.pageFetcher.JSC$14754_chunkHandler=void 0;return Ij8(b,h,y,S,F,a)};
Ij8=function(b,h,y,S,F,a){a=a===void 0?!1:a;b.isMiniplayerExpansion=a;var P=S===2;b.currentEndpoint=h;b.numNavigations++;b.numNavigations&&(ir5.navigationCount=b.numNavigations);_.xZ("NUM_NAV",b.numNavigations);var K=WRo(b,h,y);if(K)return DN8(b,h,K,"102",Awe(y)),_.UQ(K);var n,X,u,O;K=y.rootVe||(y==null?void 0:(n=y.response)==null?void 0:(X=n.responseContext)==null?void 0:(u=X.webResponseContextExtensionData)==null?void 0:(O=u.ytConfigData)==null?void 0:O.rootVisualElementType);!P&&y&&UNa(b,y);var N,
t;n=y==null?void 0:(N=y.response)==null?void 0:(t=N.responseContext)==null?void 0:t.maxAgeSeconds;if(!P&&!isNaN(n)){var R;_.r("kevlar_use_response_ttl_to_invalidate_cache")?R=(0,_.NO)()+1E3*n:_.r("kevlar_always_invalidate_cache")&&(R=0);isNaN(R)||(y.expirationTime=R)}_.Fo(_.xX).prefetchCache_.clear();P||y.page!=="watch"||S!==1?S=Bra(b,y,P,!!a,h,F):(b.publishPageData(y),S=_.$p());F=S.then(function(){var I=tP(h);I={endpoint:h,pageType:I,fromHistory:P,response:y};I.navigationDoneMs=_.pI("nd");b.fireEvent("yt-navigate-finish",
I);var U;(U=_.H9().resolve(_.XS(_.HVo)))==null||U.publish("navigation-end")});
y.csn&&K&&y.clientSideGrafts&&S.then(b.attachClientSideGrafts.bind(b,y,_.Ae()));return F};
_.d=j9.prototype;_.d.attachClientSideGrafts=function(b,h){b.clientSideGrafts&&h&&b.clientSideGrafts.forEach(function(y){if(h&&y){var S=_.I_(y);_.r("combine_ve_grafts")?_.rU().graftServerVe(y,h):_.Vh(b.csn,h,S)}})};
_.d.handleSignalActionHistoryBack=function(){window.history.back()};
_.d.handleSignalActionCloseWindow=function(){window.close()};
_.d.handleSignalActionReloadPage=function(){this.reload()};
_.d.handleSignalActionSoftReloadPage=function(){rNo(this)};
_.d.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.d.fireEvent=function(b,h){b=new CustomEvent(b,{bubbles:!0,cancelable:!1,composed:!0,detail:h});this.dispatchEvent(b)};
_.d.addEventListener=function(b,h){this.JSC$14777_clientRoot.addEventListener(b,h)};
_.d.dispatchEvent=function(b){return this.JSC$14777_clientRoot.dispatchEvent(b)};
_.d.removeEventListener=function(b,h){this.JSC$14777_clientRoot.removeEventListener(b,h)};
j9[uN]=[OVo,_.y$];_.bOq=new uu("browse","h8y2qb");_.hCf=new uu("search","JzFVk");_.yhY=new uu("shorts","xwEKAe");_.STI=new uu("watchFixie","nmfa2d");_.FUN=new uu("watchFlexy","CF909");_.a2U=new uu("watchGrid","Tm0L3c");_.dsN=new uu("watchLearningJourney","L3n37");var JwP;var eae=function(){return _.g.apply(this,arguments)||this};
_.z(eae,_.g);_.tm.Object.defineProperties(eae,{template:{configurable:!0,enumerable:!0,get:function(){if(JwP===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);JwP=b}b=JwP;return b}}});
_.V([_.B(eVe.YtPlayerBehavior),_.f("design:type",Object)],eae.prototype,"ytPlayerBehavior",void 0);_.V([_.Yx({is:"ytd-player"})],eae);var CP7;var giM;var sto;var $o=function(){var b=_.g.apply(this,arguments)||this;b.forceModernIconButton=!1;b.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return b};
_.z($o,_.g);$o.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]]"}}}}}};
$o.prototype.handleAccountLinkingStateChangedCommand=function(b){if(b=_.c(b,L8W)){var h,y=(h=this.data)==null?void 0:h.providerKey;h=b.providerKey;y&&h&&y.id===h.id&&y.subject===h.subject&&(b=b.linked,b!==void 0&&(this.set("data.linked",b),this.notifyPath("data.linked"),_.r("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(b)))}};
$o.prototype.setPlayerAccountLinkState=function(b){var h=new zMW;Dua(h,cTW(new rTW,b));var y=_.ye();y&&y.getPlayerPromise().then(function(S){S.setAccountLinkState(_.CA(h.JSC$12505_serializeBinary(),4));S.updateAccountLinkingConfig(b)})};
$o.prototype.handleShowAccountLinkDialog=function(){var b=this.get("button.buttonRenderer.command");b&&_.PT([b],this.hostElement)};
_.tm.Object.defineProperties($o.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}}}});
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],$o.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],$o.prototype,"ytRendererBehavior",void 0);_.V([_.B([_.mx.YtActionHandlerBehavior]),_.f("design:type",Object)],$o.prototype,"actionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],$o.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],$o.prototype,"overrides",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],$o.prototype,"forceModernIconButton",void 0);_.V([_.C({value:"bottom"}),_.f("design:type",String)],$o.prototype,"buttonTooltipPosition",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],$o.prototype,"forceIconButton",void 0);_.V([_.C(),_.f("design:type",Boolean)],$o.prototype,"disableTextTransform",void 0);
_.V([_.W("data","data.linked","data.isWarning"),_.f("design:type",Object),_.f("design:paramtypes",[])],$o.prototype,"button",null);_.V([_.Yx({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],$o);
_.k($o,"ytd-account-link-button-renderer",function(){if(sto!==void 0)return sto;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return sto=b},{mode:1});var Ysw;var Tr7=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],Lk=function(){return _.g.apply(this,arguments)||this};
_.z(Lk,_.g);Lk.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
Lk.prototype.updateButtonActiveState=function(){var b=this,h=!!Tr7.find(function(y){return b.currentState===y});
this.currentState==="PLAYLIST_LOOP_STATE_ONE"&&_.r("enable_web_delhi_icons")&&(h=!1);this.button&&(this.button.isPressed=h)};
_.tm.Object.defineProperties(Lk.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var b,h;return((b=this.playlistLoopStateEntity)==null?void 0:b.state)||((h=this.data)==null?void 0:h.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var b=void 0,h;if(this.currentState&&((h=this.data)==null?0:h.states)){h=_.L(this.data.states);for(var y=h.next();!y.done;y=h.next()){y=_.c(y.value,_.RK7);var S=void 0;if(((S=y)==null?void 0:S.state)===this.currentState){b=y;break}}}return b}}});
Lk.prototype.updateButtonActiveState=Lk.prototype.updateButtonActiveState;_.V([_.B(_.NT),_.f("design:type",Object)],Lk.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Lk.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Lk.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.C({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.PP.playlistLoopStateEntitySelector}),_.f("design:type",Object)],Lk.prototype,"playlistLoopStateEntity",void 0);_.V([_.C(),_.f("design:type",Object)],Lk.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Boolean)],Lk.prototype,"forceIconOnly",void 0);_.V([_.to("ytd-button-renderer"),_.f("design:type",_.Gu)],Lk.prototype,"button",void 0);
_.V([_.W("data","playlistLoopStateEntity"),_.f("design:type",Object),_.f("design:paramtypes",[])],Lk.prototype,"currentState",null);_.V([_.OB("currentButtonStateRenderer"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Lk.prototype,"updateButtonActiveState",null);_.V([_.W("currentState"),_.f("design:type",Object),_.f("design:paramtypes",[])],Lk.prototype,"currentButtonStateRenderer",null);
_.V([_.Yx({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],Lk);
_.k(Lk,"ytd-playlist-loop-button-renderer",function(){if(Ysw!==void 0)return Ysw;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return Ysw=b},
{mode:1});var G0W;var k0W=_.Mt("DOWNLOAD",{},"Download"),V0e=_.Mt("DOWNLOADING",{},"Downloading"),Eib=_.Mt("DOWNLOADED",{},"Downloaded"),iVW=_.Mt("RETRY",{},"Retry"),PD=function(){var b=_.g.apply(this,arguments)||this;b.forceIconButton=!1;b.forceIconOnly=!1;b.overrides=!1;b.buttonTooltipPosition=!1;b.styleActionButton=!1;b.disableTextTransform=!1;b.downloadProgress=0;b.isDownloadComplete=!1;b.isHidden=!0;b.transferState="TRANSFER_STATE_UNKNOWN";b.isVideoDeletedByUser=!1;b.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return b};
_.z(PD,_.g);_.d=PD.prototype;_.d.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.d.dataChanged=function(){var b;(b=this.data)!=null&&b.text||(b=_.Y8(_.hP().getState(),this.videoId),this.updateButtonState(b))};
_.d.computeVideoId=function(b){return b};
_.d.computePlayerStateEntityKey=function(b){return b};
_.d.showHideButton=function(){this.updateButtonVisibility()};
_.d.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;var b;((b=this.playerStateEntity)==null?void 0:b.adsState)==="ADS_STATE_PLAYING"?this.isHidden=!0:this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0};
_.d.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.d.updateButtonState=function(b){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==V0e||!_.ci(b))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(b){case "TRANSFER_STATE_UNKNOWN":b=k0W;var h="OFFLINE_DOWNLOAD";var y="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":b=iVW;h="OFFLINE_DOWNLOAD";y="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":b=Eib;h="OFFLINE_PIN";y="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":b=
V0e;h="OFFLINE_DOWNLOADING_ZERO";y="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":b=iVW;h="OFFLINE_DOWNLOAD";y="ACTION_RETRY";break;default:b=k0W,h="OFFLINE_DOWNLOAD",y="ACTION_ADD"}this.isVideoDeletedByUser&&(b=k0W,h="OFFLINE_DOWNLOAD",y="ACTION_ADD");var S=Object.assign({},this.data);S.text=_.mk(b);S.tooltip=b;S.icon={iconType:h};S.size="SIZE_DEFAULT";S.style="STYLE_DEFAULT";_.c(S.command,_.HC)&&(_.c(S.command,_.HC).action=y);this.set("data",S)}};
_.d.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var b="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?b="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?b="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?b="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?b="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?b="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(b="OFFLINE_PIN",this.isDownloadComplete=!0);var h;b!==((h=this.data.icon)==null?void 0:h.iconType)&&(h=Object.assign({},this.data),h.text=_.mk(V0e),h.tooltip=V0e,h.icon={iconType:b},_.c(h.command,_.HC)&&(_.c(h.command,_.HC).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",h))}};
PD.prototype.updateProgress=PD.prototype.updateProgress;PD.prototype.onTransferStateChanged=PD.prototype.onTransferStateChanged;PD.prototype.showHideButton=PD.prototype.showHideButton;PD.prototype.dataChanged=PD.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],PD.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],PD.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],PD.prototype,"forceIconButton",void 0);
_.V([_.C(),_.f("design:type",Object)],PD.prototype,"forceIconOnly",void 0);_.V([_.C(),_.f("design:type",Object)],PD.prototype,"overrides",void 0);_.V([_.C(),_.f("design:type",Object)],PD.prototype,"buttonTooltipPosition",void 0);_.V([_.C(),_.f("design:type",Object)],PD.prototype,"styleActionButton",void 0);_.V([_.C(),_.f("design:type",Object)],PD.prototype,"disableTextTransform",void 0);
_.V([_.C({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.f("design:type",String)],PD.prototype,"videoId",void 0);_.V([_.C({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.f("design:type",String)],PD.prototype,"playerStateEntityKey",void 0);_.V([_.C(),_.f("design:type",Object)],PD.prototype,"data",void 0);_.V([_.C({selector:GD,selectorArgs:["videoId"]}),_.f("design:type",Object)],PD.prototype,"downloadProgress",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],PD.prototype,"isDownloadComplete",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],PD.prototype,"isHidden",void 0);_.V([_.C({selector:_.Y8,selectorArgs:["videoId"]}),_.f("design:type",String)],PD.prototype,"transferState",void 0);_.V([_.C({selector:_.d1U,selectorArgs:["videoId"]}),_.f("design:type",Object)],PD.prototype,"isVideoDeletedByUser",void 0);
_.V([_.C({selector:beI,selectorArgs:["videoId"]}),_.f("design:type",Object)],PD.prototype,"offlineabilityState",void 0);_.V([_.C({selector:_.K9,selectorArgs:["playerStateEntityKey"]}),_.f("design:type",Object)],PD.prototype,"playerStateEntity",void 0);_.V([_.C({value:!0}),_.f("design:type",Boolean)],PD.prototype,"showTooltips",void 0);_.V([_.C({value:!0}),_.f("design:type",Boolean)],PD.prototype,"sendCommandWhenDisabled",void 0);
_.V([_.C({value:!1}),_.f("design:type",Boolean)],PD.prototype,"disabled",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],PD.prototype,"dataChanged",null);_.V([_.zj("offlineabilityState","playerStateEntity"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],PD.prototype,"showHideButton",null);
_.V([_.zj("transferState","isVideoDeletedByUser"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],PD.prototype,"onTransferStateChanged",null);_.V([_.zj("downloadProgress"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],PD.prototype,"updateProgress",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],PD);
_.k(PD,"ytd-download-button-renderer",function(){if(G0W!==void 0)return G0W;var b=document.createElement("template");_.D(b,'\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>');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return G0W=b},{mode:2});var fja;var wKW,lja=function(){if(wKW!==void 0)return wKW;var b=document.createElement("template");_.D(b,'\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 wKW=b};var qse=_.r("web_button_rework")&&_.m$("BUTTON_REWORK")||_.r("web_button_rework_with_live"),xNM=_.tj("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,Kk=function(){var b=_.g.apply(this,arguments)||this;b.isPressed=!1;b.forceIconButton=!1;b.forceIconOnly=!1;b.forceModernIconButton=!1;b.alignByText=!1;b.isShorts=!1;b.animatedText=!1;b.shouldAnimate=!1;b.JSC$14815_browserSupportsAnimation=_.r("web_supports_animations_api");b.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};b.onTap=function(){var h;if((h=b.data)==null||!h.defaultNavigationEndpoint){var y;h=!((y=b.data)==null?0:y.isToggled);var S;if((S=b.data)==null||!S.preventAutoToggle){b.shouldAnimate=!1;b.disableTextUpdateJobId&&_.xP.cancelJob(b.disableTextUpdateJobId);b.disableTextUpdateJobId=_.xP.addLowPriorityJob(function(){b.disableTextUpdateJobId=void 0},xNM);
var F;b.set("data.isToggled",!((F=b.data)==null?0:F.isToggled));y=b.getInnertubeIcon();S={toggled:h,actions:{}};y&&(S.actions[y.toLowerCase()]=h);_.Sx(b.hostElement,"yt-toggle-button",S)}}};
return b};
_.z(Kk,_.g);_.d=Kk.prototype;_.d.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.xP.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.d.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.d.toggle=function(b){var h;this.set("data.isToggled",b!==void 0?b:!((h=this.data)==null?0:h.isToggled))};
_.d.handleUpdateToggleButtonStateCommand=function(b){if(this.data){b=_.c(b,nqw);var h,y,S,F=(h=this.data)==null?void 0:(y=h.toggleButtonSupportedData)==null?void 0:(S=y.toggleButtonIdData)==null?void 0:S.id;F&&b&&F===(b==null?void 0:b.buttonId)&&this.set("data.isToggled",b.toggled)}};
_.d.handleUpdateToggleButtonTextAction=function(b){if(this.data){b=_.c(b,Cwe);var h,y,S,F=(h=this.data)==null?void 0:(y=h.toggleButtonSupportedData)==null?void 0:(S=y.toggleButtonIdData)==null?void 0:S.id;F&&b&&F===(b==null?void 0:b.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=b.defaultNumericalValue,this.set("data.defaultText",b.defaultText),this.set("data.toggledText",b.toggledText),this.shouldAnimate=!1)}};
_.d.getInnertubeIcon=function(){var b=this.data;if(b){var h,y,S=((h=b.defaultIcon)==null?0:h.iconType)?(y=b.defaultIcon)==null?void 0:y.iconType:null,F,a;h=((F=b.toggledIcon)==null?0:F.iconType)?(a=b.toggledIcon)==null?void 0:a.iconType:S;return b.isToggled?h:S}};
_.d.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.tm.Object.defineProperties(Kk.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var b={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$14815_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var h=b.renderer;var y=b.element;var S=b.toggled;var F=b.onTapCallback;var a=b.commandClientArgs;var P=b.overrides;var K=b.forceIcon;var n=b.forceModernIconButton;var X=b.forceDisabled;var u=b.useAnimatedText;var O=b.animatedTextProps;b=tLf(h,S);K=!h.defaultIcon||!K&&h.defaultText?h.defaultIcon?"leading":void 0:n?"icon-only":"icon-only-40";K==="icon-only-40"&&(b.type="text");var N;n=Object;var t=n.assign,R;a:switch((R=
h.style)==null?void 0:R.styleType){case "STYLE_COMPACT_GRAY":R={size:"S"};break a;default:R={size:"M"}}var I=!!S;var U=(U=S&&h.toggledText||h.defaultText)?_.ej(U):void 0;u?(u=_.vi(S&&h.toggledText||h.defaultText))&&O&&!isNaN(Number(O.numberValue))?(O.numberText=u,S&&(O.numberValue+=1),u=O):u=void 0:u=void 0;var p,e,E,Y;var w=(O=((e=S?h.toggledAccessibilityData||((w=h.toggledText)==null?void 0:w.accessibility):h.accessibilityData||((p=h.defaultText)==null?void 0:p.accessibility))==null?void 0:(E=e.accessibilityData)==
null?void 0:E.label)||((Y=h.accessibility)==null?void 0:Y.label))?O:_.vi(S&&h.toggledText||h.defaultText);X=X===void 0?h.isDisabled:X;y=NT4(h,S,F,y,a);S=Ooq(h,S);S!=null&&S.length?(S=_.GK({innertubeCommand:csI(S),forceNewState:!0}),S=kS(S)?S:void 0):S=void 0;h=t.call(n,{},b,R,{iconPosition:K},P,{focused:!1,toggled:I,toggleable:!0,formattedButtonText:U,animatedTextProps:u,accessibilityLabel:w,disabled:X,onTap:y,aTagConfig:S},pkn((N=h.colorData)==null?void 0:N.basicColorPaletteData));h.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(h.type="filled");return h}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var b=this.getInnertubeIcon();if(b)return _.o_(b)}}});
Kk.prototype.resetAnimation=Kk.prototype.resetAnimation;_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],Kk.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Kk.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],Kk.prototype,"ytActionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Kk.prototype,"data",void 0);
_.V([_.C(),_.f("design:type",Object)],Kk.prototype,"isPressed",void 0);_.V([_.C(),_.f("design:type",Object)],Kk.prototype,"forceIconButton",void 0);_.V([_.C(),_.f("design:type",Object)],Kk.prototype,"forceIconOnly",void 0);_.V([_.C(),_.f("design:type",Object)],Kk.prototype,"forceModernIconButton",void 0);_.V([_.C(),_.f("design:type",Object)],Kk.prototype,"alignByText",void 0);_.V([_.C(),_.f("design:type",Object)],Kk.prototype,"overrides",void 0);
_.V([_.C(),_.f("design:type",Boolean)],Kk.prototype,"disabled",void 0);_.V([_.C(),_.f("design:type",Object)],Kk.prototype,"isShorts",void 0);_.V([_.C(),_.f("design:type",Object)],Kk.prototype,"buttonTooltipPosition",void 0);_.V([_.C(),_.f("design:type",Object)],Kk.prototype,"animatedText",void 0);_.V([_.C(),_.f("design:type",String)],Kk.prototype,"textNumberValue",void 0);_.V([_.C({computed:"computeTooltip(data, data.isToggled)"}),_.f("design:type",Object)],Kk.prototype,"tooltip",void 0);
_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Kk.prototype,"resetAnimation",null);_.V([_.W("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.f("design:type",Object),_.f("design:paramtypes",[])],Kk.prototype,"computedButtonShape",null);_.V([_.W("data.*"),_.f("design:type",Object),_.f("design:paramtypes",[])],Kk.prototype,"computedIcon",null);
_.V([_.Yx({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],Kk);qse&&_.k(Kk,"ytd-toggle-button-renderer",lja,{mode:_.Lt("kevlar_poly_si_batch_j081")?1:2});var Qta=_.T(function(b){function h(X){var u;return _.Z(function(O){if(O.nextAddress==1)return(u=!cyF(X,K())||!K().enabled)?O.jumpTo(2):O.yield(BT4(),3);O.nextAddress!=2&&(u=O.yieldResult);if(u)return O.return();y();setTimeout(function(){P(!1)},1500);
_.g3(O)})}
function y(){setTimeout(function(){P(!0);var X;(X=S.lottieEl)==null||X.goToAndPlay(0)},150)}
var S=_.Mn(),F=_.L(_.pa(!1,void 0,"UfUosc")),a=F.next().value,P=F.next().value,K=_.bi(b.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.wg(function(){var X,u;((X=b.settings)==null?void 0:(u=X.call(b))==null?void 0:u.uniqueId)==="this is not intended behavior"&&_.vX(new _.Gn("Smartimation Settings is undefined"))});
_.Qi(function(){K().experimentEnabled&&(K().enabled?Ri5(h):(P(!1),ziq(h)),_.m2(function(){ziq(h)}))},"IHhVmc");
_.Qi(function(){K().timings.join("");K().experimentEnabled&&(Dw5(K()),_.m2(function(){I_j(K())}))},"fsfhOe");
var n=_.s5(function(){var X=S,u=K().uniqueId+"-border",O,N;var t="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((N=(O=_.H9().resolve(_.XS(_.cC)))==null?void 0:O())!=null&&N?"dark":"light")+"_v2.json";return{animationRef:X,animationConfig:{name:u,autoplay:!1,loop:!1,path:t}}},void 0,"UWvUGe");
F={};return _.M("yt-smartimation",{class:_.P2(b.className,"smartimation",(F["smartimation--experiment-enabled"]=function(){return K().experimentEnabled},F["smartimation--active-border"]=a,F["smartimation--enable-masking"]=WO8(),F))},_.M(_.H,{cond:function(){return K().experimentEnabled},
then:function(){return _.M("div",{class:"smartimation__border"},_.M(_.vj,{className:"smartimation__border-gradient",data:n,animationName:function(){return n().animationConfig.name}}))}}),_.M("div",{class:"smartimation__content"},b.children))},"ha");
Qta.idomCompat=!0;_.yd(Qta,"yt-smartimation",{props:{className:_.D4,settings:_.D4}});var ZP=function(){var b=_.g.apply(this,arguments)||this;b.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};b.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};b.shouldEnableSmartimation=!1;return b};
_.z(ZP,_.g);ZP.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
ZP.prototype.onDataChanged=function(){var b,h;this.shouldEnableSmartimation=(((b=this.data)==null?void 0:(h=b.timedAnimationData)==null?void 0:h.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
ZP.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var b=_.c(this.data.likeButton,_.Nu),h=_.c(this.data.dislikeButton,_.Nu);return!!((b==null?0:b.isToggled)||(h==null?0:h.isToggled))};
ZP.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]]"}}}}}};
_.tm.Object.defineProperties(ZP.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var b,h,y=((b=this.data)==null?void 0:(h=b.timedAnimationData)==null?void 0:h.animationTiming)||[];return{uniqueId:"like-dislike",timings:y,enabled:this.shouldEnableSmartimation,experimentEnabled:y.length>0}}}});
ZP.prototype.onDataChanged=ZP.prototype.onDataChanged;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],ZP.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],ZP.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],ZP.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],ZP.prototype,"likeButtonOverride",void 0);_.V([_.C(),_.f("design:type",Object)],ZP.prototype,"dislikeButtonOverride",void 0);
_.V([_.W("shouldEnableSmartimation"),_.f("design:type",Object),_.f("design:paramtypes",[])],ZP.prototype,"smartimationSettings",null);_.V([_.OB("data"),_.u3("yt-toggle-button"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],ZP.prototype,"onDataChanged",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],ZP);
_.k(ZP,"ytd-segmented-like-dislike-button-renderer",function(){if(fja!==void 0)return fja;var b=document.createElement("template");_.D(b,'\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>');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return fja=b},{mode:1});var mNG;var viG;(viG=document.body)==null||viG.setAttribute("rounded-container","");var b6b={};b6b.YtToggleButtonBehavior=[_.mx.YtActionHandlerBehavior,a$.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 b=this.data.isToggled;if(!this.isModal_(b)){if(!this.data.preventAutoToggle){this.toggle();var h={toggled:this.data.isToggled,actions:{}};h.actions[this.buttonIcon]=this.data.isToggled;_.Sx(this.hostElement,"yt-toggle-button",h)}h=this.data.defaultServiceEndpoint||null;var y=this.data.toggledServiceEndpoint||null;if(h&&y||h&&this.data.preventAutoToggle)b=b?y:h,h=this.disableCommandHandlerOverride,_.r("killswitch_toggle_button_behavior_resolve_command")||h?_.dh(this.hostElement,
[b]):_.Xb(b,this.hostElement),_.Sx(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:b})}},
stateChanged_:function(){var b=this.data;if(b){var h=b.isToggled;this._setEndpoint(this.computeEndpoint_(b));this._setServiceEndpoint(this.computeServiceEndpoint_(b));this._setButtonIcon(this.computeButtonIcon_(b,h));this._setButtonText(this.computeButtonText_(b,h));this._setButtonAccessibility(this.computeAccessibility_(b,h));this._setButtonTooltip(this.computeTooltip_(b,h));this._setButtonClass(this.computeButtonClass_(b,h));this._setIconPositionType(this.computeIconPositionType_(b));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=h):this.elements_.button.setAttribute("aria-pressed",h));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=h)}},
shouldSetIconActiveState_:function(){return _.r("kevlar_system_icons")},
toggle:function(b){this.set("data.isToggled",b!==void 0?b:!this.data.isToggled);_.r("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(b){if(b){var h,y;return!!((h=this.data)==null?0:(y=h.toggledServiceEndpoint)==null?0:y.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(b){return b&&b.defaultNavigationEndpoint||null},
computeButtonIcon_:function(b,h){var y=b&&b.defaultIcon?_.o_(b.defaultIcon.iconType):null;b=b&&b.toggledIcon?_.o_(b.toggledIcon.iconType):y;return h?b:y},
handleUpdateToggleButtonStateCommand_:function(b){b=b.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==b.buttonId&&this.toggle(b.toggled)},
computeButtonText_:function(b,h){return b?h&&b.toggledText||b.defaultText||null:null},
computeAccessibility_:function(b,h){return b?(h?this.get("toggledAccessibilityData.accessibilityData",b):this.get("accessibilityData.accessibilityData",b))||b.accessibility||null:null},
computeTooltip_:function(b,h){return b?h&&b.toggledTooltip||b.defaultTooltip||null:null},
computeButtonClass_:function(b,h){if(!b)return"";var y="",S=b.toggledStyle||b.style;if(h=h?S:b.style){h.styleType&&(h=h.styleType);try{y+=h.toLowerCase().replace(/_/g,"-")+" "}catch(F){_.bh(F,h,typeof h),_.vX(F)}}if(b=b.size){b.sizeType&&(b=b.sizeType);try{y+=b.toLowerCase().replace(/_/g,"-")+" "}catch(F){_.bh(F,b,typeof b),_.vX(F)}}return y.trim()},
computeIconPositionType_:function(b){return b&&b.iconPosition||null},
computeServiceEndpoint_:function(b){var h=b&&b.serviceEndpoint,y=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return h?h:y&&b.command?b.command:null},
handleUpdateToggleButtonTextAction_:function(b){b=b.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==b.buttonId&&(this.set("data.defaultText",b.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",b.toggledText),this.notifyPath("data.toggledText"))}}];_.W2("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var h_o=_.r("web_button_rework")&&_.m$("BUTTON_REWORK")||_.r("web_button_rework_with_live"),ox=function(){var b=_.g.apply(this,arguments)||this;b.systemIcons=_.r("kevlar_system_icons");b.roundedContainer=!0;return b};
_.z(ox,_.g);ox.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
ox.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var b=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var h={toggled:!!this.data.isToggled,actions:{}};h.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var y,S;h.actions.playlistId=(y=this.data.defaultServiceEndpoint)==null?void 0:(S=y.playlistEditEndpoint)==null?void 0:S.playlistId;_.Sx(this.hostElement,"yt-toggle-button",h)}(b=b?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(b)}};
ox.prototype.onYtNavigate=function(b){var h=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(b.detail.endpoint);h&&(b.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(h))};
_.tm.Object.defineProperties(ox,{template:{configurable:!0,enumerable:!0,get:function(){if(mNG===void 0){var b=document.createElement("template");_.D(b,"\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");b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);mNG=b}b=mNG;return b}}});
ox.prototype.onYtNavigate=ox.prototype.onYtNavigate;_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],ox.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],ox.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Y9),_.f("design:type",Object)],ox.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.B(b6b.YtToggleButtonBehavior),_.f("design:type",Object)],ox.prototype,"ytToggleButtonBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],ox.prototype,"data",void 0);_.V([_.C({value:!0}),_.f("design:type",Boolean)],ox.prototype,"showTooltips",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],ox.prototype,"systemIcons",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],ox.prototype,"roundedContainer",void 0);_.V([_.u3("yt-navigate"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],ox.prototype,"onYtNavigate",null);
_.V([_.Yx({is:"ytd-toggle-button-renderer",disableElementRegistration:h_o})],ox);var y$W,Sr5;_.Mp=new _.ca("PANEL_CONTROLLER_TOKEN");_.nk=new _.ca("SHEET_CONTROLLER_TOKEN");_.X$=new _.ca("DIALOG_CONTROLLER_TOKEN");y$W=new _.ca("DIALOG_CONTAINER_TOKEN");Sr5=new _.ca("ENGAGEMENT_PANEL_ELEMENT_TOKEN");_.HD=new _.ca("PERSISTENT_PANEL_CONTROLLER_TOKEN");var Yyy=_.Mt("DOWNLOAD",{},"Download"),TTI=_.Mt("DOWNLOADING",{},"Downloading"),G3q=_.Mt("DOWNLOADED",{},"Downloaded"),k3I=_.Mt("RETRY",{},"Retry");var F9e=_.T(function(b){var h=w1M,y=function(){return""},S=VL8(b.data),F=Ec8(b.data),a=io8(b.data),P=f_f(b.data);
h=function(){var K=b.data(),n=gc4(K,S(),F(),a(),P()),X=!!K.videoId,u=n.text;return{title:X?u:void 0,tooltip:X?void 0:u,accessibilityText:u,onTap:n.onTap,iconName:n.iconType,style:K.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:n.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:K.buttonSize}};
y={};y=_.P2("ytDownloadButtonViewModelHost",(y.ytDownloadButtonViewModelIsHidden=function(){var K=b.data(),n=P();return K.playlistId||n()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||n()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},y));
return _.M("download-button-view-model",{class:y},_.M(_.EG,{data:h}))},"ia");
F9e.idomCompat=!0;var ySn=new _.ca("SUBMIT_API_SERVICE_TOKEN");var vcM,bYI,S18={submitAction:"SUBMIT_ACTION_SUBMISSION",allFields:!0};var tur=new _.ca("RENDERER_LOGGER_TOKEN");var HYf=new _.ca("RENDERER_STAMPER_OPTIONS_TOKEN");var aQM;_.tB=new MDW;aQM=new Map;var u4k="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),Noq=["notificationTextRenderer","notificationMultiActionRenderer"],
OYN="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),Xnq=d6I(function(b){return _.bn(b==null?void 0:b.targetId)}).useUpdatableData;var nkI=0,okU=new Set;_.rC.debugName="EjJbCe";var azN=_.T(function(b){var h=b.data;b=b.className;_.fl(function(){h().formId||_.QT(Error("Dh"))});
var y=_.mwI(function(){return h().formId},function(){return h().beforeSubmitCommand},function(){return h().afterSubmitCommand}),S=y.submitForm,F=y.isValid,a=y.isSubmitting,P=function(){return{state:h().isDisabled||!F()||a()?"disabled":"active"}};
return _.M("yt-submit-button-view-model",{class:_.P2("ytSubmitButtonViewModelHost",b)},_.M(_.rC,{data:function(){return h().button}},{buttonViewModel:function(K){return _.M(_.EG,{data:K.data,
buttonOverrides:P,onClick:S})}}))},"la");var jCa=_.T(function(b){var h=b.backgroundLottieRef;var y=b.foregroundLottieRef;var S=b.children;var F=b.wrapperClass;var a=b.disableAnimation;b=function(){return(_.r("web_animated_actions")||_.r("web_animated_actions_v2"))&&!(a==null?0:a())};
return _.M("yt-animated-action",{class:_.P2("ytAnimatedActionHost",F)},_.M("div",{class:"ytAnimatedActionContentWithBackground"},_.M(_.H,{cond:b,then:function(){return _.M(d2a,{wrapperClass:"ytAnimatedActionBackgroundContainer",lottieClass:"ytAnimatedActionBackground",lottiePlayerProps:function(){return{animationRef:h==null?void 0:h(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(rSn()?"dark":"light")+"_v5.json"}}}})}}),S),_.M(_.H,{cond:b,
then:function(){return _.M(d2a,{lottiePlayerProps:function(){return{animationRef:y==null?void 0:y(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(rSn()?"dark":"light")+"_v4.json"}}}})}}))},"ma");
jCa.idomCompat=!0;var d2a=_.T(function(b){var h=b.wrapperClass;var y=b.lottieClass;var S=b.lottiePlayerProps;return _.M("div",{class:_.P2("ytAnimatedActionLottie",h),"aria-hidden":"true"},_.M(_.vj,{className:y,data:S,animationName:function(){return S().animationConfig.name}}))},"na");var cSU={isOpen:!1};var zVy={isAllowed:!1};var IQr={errorMessage:"",title:"",privacy:"",isDisabled:!0};var W_q={isOpen:!1};var U6q={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var $28={response:void 0};var JSI=function(b,h){b=b===void 0?$28:b;switch(h.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},b,{response:h.payload});default:return b}};var L9o={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var eV5=function(b,h){b=b===void 0?L9o:b;switch(h.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},b,{nextDisabled:h.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},b,{nextCommand:h.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},b,{footerSubmissionData:h.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},b,{isImpersonationValid:h.payload});default:return b}};var P1o={reportFormData:void 0,reportDetailsFormData:void 0};var Cx8=function(b,h){b=b===void 0?P1o:b;switch(h.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},b,{reportFormData:h.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},b,{reportDetailsFormData:h.payload});default:return b}};var K9G=void 0;_.r("mweb_enable_redux_store_on_demand")||(K9G=new bk(gk8()));var uU=_.r("enable_web_delhi_icons");var Z6W=_.T(function(b){b=_.h6(b,{themeOverride:void 0,animationRef:{}});var h=b.animatedIconType,y=b.active,S=b.themeOverride,F=b.animationRef;b=b.staticIconFn;var a=_.L(_.pa(void 0,void 0,"l48agc")),P=a.next().value,K=a.next().value,n=function(){a:{var U=h();var p=S==null?void 0:S();var e;p=(p==null?void 0:p.useDarkTheme)||((e=_.H9().resolve(_.XS(_.cC)))==null?void 0:e());switch(U){case "LIKE":K9G||(K9G=new bk(gk8()));U=(U=L4F(K9G.getState()))&&U.animationLightUrl&&U.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:p?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:p?U.animationDarkUrl:U.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(U){p=U;break a}p="animated_like_icon_"+(p?"dark":"light")+"_"+(uU?"v5":"v4");p={lottiePlayerProps:{animationConfig:{name:p,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+p+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(uU?" animated-like-icon-delhi":"")}}},totalFrames:uU?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":p={lottiePlayerProps:{animationConfig:{name:p?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(p?"dark":"light")+(uU?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(uU?" animated-subscribe-icon-delhi":"")}}},totalFrames:uU?120:79,lazyLoad:!1};break a}p=
void 0}return p},X=function(){var U,p;
return(p=(U=n())==null?void 0:U.lottiePlayerProps.animationConfig.name)!=null?p:""},u=function(){if(n()){var U=n().lottiePlayerProps.animationConfig.path;
return zA.get(U)||P()}};
a=_.L(_.pa(!1,void 0,"sDrGId"));var O=a.next().value;a=a.next().value;var N=Y15(a),t=function(){var U=n(),p,e,E;return(E=U==null?void 0:(p=U.lottiePlayerProps.animationConfig)==null?void 0:(e=p.rendererSettings)==null?void 0:e.className)!=null?E:""},R=void 0,I=void 0;
_.Qi(function(){var U=n(),p=X(),e=u(),E=O(),Y=y();if(U&&(I!==p&&(I=p,R=Y,p=F(),N.animationConfig=U.lottiePlayerProps.animationConfig,N.animationRef=p,e&&(N.animationConfig.animationData=e,N.animationConfig.path=void 0),p=U.lottiePlayerProps.animationConfig.path,!zA.get(p)&&U.lazyLoad&&p&&sJn(p,K)),!(E||U.lazyLoad&&!e))){if(e=!F().lottieEl)Y?(E=U.totalFrames,N.animationConfig.initialSegment=[E-1,E]):N.animationConfig.initialSegment=void 0;if(R!==Y&&!e)if(e=F(),Y){var w;(w=e.lottieEl)==null||w.playSegments([0,
U.totalFrames],!0)}else{var x;(x=e.lottieEl)==null||x.playSegments([0,1],!0)}R=Y}},"RQVZ1d");
return _.M("animated-icon",{class:"ytAnimatedIconHost"},_.M(_.H,{cond:function(){var U,p;return!((U=n())==null||!U.lottiePlayerProps.animationConfig.path||((p=n())==null?0:p.lazyLoad)&&!u()||O())},
then:function(){return _.M(_.vj,{data:N,animationName:X,className:t,animationRef:F})},
else:b}))},"pa");_.Oz=_.T(function(b){var h=_.ZR("yt-subscribe-button-view-model"),y=_.ZR("div"),S=_.ZR("div"),F=_.Mn(),a=_.Mn(),P=_.Mn(),K=_.OF(Vuk,function(){return b.data().stateEntityStoreKey}),n=_.OF(Ek4,function(){var xU,Xa;
return(Xa=(xU=b.data().notificationStateEntityStoreKeys)==null?void 0:xU.subsNotificationStateKey)!=null?Xa:""}),X=function(){return!b.data().enableSubscribeButtonPostClickAnimation},u=_.L(_.pa(0,void 0,"YtsSKb")),O=u.next().value,N=u.next().value;
u=_.L(_.pa(0,void 0,"V6JxRe"));var t=u.next().value,R=u.next().value;u=_.L(_.pa(!1,void 0,"JUCSZ"));var I=u.next().value,U=u.next().value;u=_.L(_.pa(!1,void 0,"oV6jwf"));var p=u.next().value,e=u.next().value;u=_.L(_.pa(!1,void 0,"hK1Whe"));var E=u.next().value,Y=u.next().value,w;u=_.L(_.pa(!1,void 0,"Asaolf"));var x=u.next().value,q=u.next().value,dI=function(){e(!0);_.I7(_.xP,function(){e(!1)},1500)};
_.Qi(function(){var xU=p();_.Ar(function(){xU&&!X()&&K()&&SsF(F,a,P)})},"Qq6Hsf");
_.Qi(function(){var xU=K();_.Ar(function(){if(!X()&&xU){var Xa;((Xa=b.animateWidth)==null?0:Xa.call(b))&&ywM(h.value,!!xU.subscribed,O(),t());var rG,Wb;((rG=w)==null?0:rG.subscribed)||!xU.subscribed||xU.key!==((Wb=w)==null?void 0:Wb.key)||dI();w=xU}})},"hog8te");
u=_.s5(function(){var xU,Xa,rG,Wb=b.data(),Xx=!((xU=K())==null||!xU.subscribed);xU=!((Xa=b.isOverlay)==null||!Xa.call(b));Xa=I()?h:void 0;var Bb=(rG=n())==null?void 0:rG.state;rG=x();haj(Wb,Bb);return kLq({model:Wb,subscribed:Xx,isOverlay:xU,element:Xa,notificationState:Bb,disableTextEllipsis:!0,focused:rG})},void 0,"hc1PRd");
var L4=function(){var xU;if(!X()&&((xU=b.animateWidth)==null?0:xU.call(b))&&(y==null?0:y.value)&&(S==null?0:S.value)&&!E()){xU=K();var Xa=_.L((xU==null?0:xU.subscribed)?[y,S]:[S,y]),rG=Xa.next().value;Xa=Xa.next().value;rG=Math.ceil(rG.value.getBoundingClientRect().width);Xa=Math.ceil(Xa.value.getBoundingClientRect().width);N(rG);R(Xa);ywM(h.value,!(xU==null||!xU.subscribed),rG,Xa);Y(!0)}},Rq=_.Zv(function(xU){L4();
var Xa=K();Xa&&(xU.detail.endpoint.subscribeEndpoint||xU.detail.endpoint.unsubscribeEndpoint)&&m6j(h.value,!Xa.subscribed,Xa)}),Xn=function(){var xU=_.H9().resolve(_.XS(_.sG));
xU&&q(xU.isKeyBoardInUse())},Ny=function(){q(!1)};
_.KP("yt-player-subscribe",function(xU){var Xa=K();Xa&&xU===b.data().channelId&&m6j(h.value,!0,Xa)});
_.KP("yt-player-unsubscribe",function(xU){var Xa=K();Xa&&xU===b.data().channelId&&m6j(h.value,!1,Xa)});
_.KP("yt-update-subscribe-button-action",function(xU){xU=_.c(xU,mE7);var Xa=K();Xa&&xU&&xU.channelId===b.data().channelId&&m6j(h.value,!!xU.subscribed,Xa)});
_.wg(function(){h.value&&(h.value.addEventListener("focusin",Xn),h.value.addEventListener("focusout",Ny));var xU=_.VT(_.xP,function(){L4()});
U(!0);_.m2(function(){_.xP.cancelJob(xU);h.value&&(h.value.removeEventListener("focusin",Xn),h.value.removeEventListener("focusout",Ny))})});
var gI=function(){var xU,Xa,rG;if(rG=!((xU=K())==null||!xU.subscribed))xU=!!b.data().disableNotificationBell,rG=(Xa=n())==null?void 0:Xa.state,rG=!xU&&!!rG;return rG},YU=function(){var xU;
return!((xU=K())==null?0:xU.subscribed)},VN=function(){var xU,Xa;
if(Xa=YU()){Xa=!!b.data().disableNotificationBell;var rG=(xU=n())==null?void 0:xU.state;Xa=!Xa&&!!rG}return Xa},Hb={},vF={};
return _.M("yt-subscribe-button-view-model",{class:_.P2(b.className,"ytSubscribeButtonViewModelHost",(Hb.ytSubscribeButtonViewModelHostCanAnimateWidth=function(){var xU,Xa;return!((xU=K())==null||!xU.subscribed)&&((Xa=b.animateWidth)==null?void 0:Xa.call(b))&&p()},Hb.ytSubscribeButtonViewModelHostHidden=function(){var xU;
return!((xU=K())==null?0:xU.subscribed)&&b.data().hideWhenUnsubscribed},Hb)),
el:h,"on:yt-service-request-sent":Rq},_.M(jCa,{backgroundLottieRef:F,foregroundLottieRef:a,wrapperClass:_.P2("ytSubscribeButtonViewModelAnimatedActionWrapper",(vF.ytSubscribeButtonViewModelAnimatedActionWrapperIsAnimating=function(){var xU;return((xU=b.animateWidth)==null?void 0:xU.call(b))&&p()},vF.ytSubscribeButtonViewModelStaticWidth=function(){var xU;
return!((xU=b.animateWidth)==null?0:xU.call(b))},vF)),
disableAnimation:X},_.M("div",{el:y,class:"ytSubscribeButtonViewModelContainer"},_.M(_.V5,{data:u,icon:function(){return _.M(_.H,{cond:gI,then:function(){var xU=function(){var Xa;return QJj((Xa=n())==null?void 0:Xa.state)};
return _.M(_.H,{cond:function(){return X()||xU()!=="NOTIFICATIONS_NONE"},
then:function(){return _.M(_.Xv,{icon:xU})},
else:function(){return _.M(Z6W,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:P})}})}})},
secondaryIconName:function(){return gI()?"EXPAND":void 0}}))),_.M("div",{el:S,
class:"ytSubscribeButtonViewModelInvisible"},_.M(_.H,{cond:function(){var xU;return((xU=b.animateWidth)==null?void 0:xU.call(b))&&!X()&&!E()},
then:function(){return _.M(_.V5,{data:_.s5(function(){var xU;return kLq({model:b.data(),subscribed:YU(),isOverlay:!((xU=b.isOverlay)==null||!xU.call(b)),element:h,disableTextEllipsis:!0})},void 0,"L4sKmd"),
iconName:function(){var xU;return VN()?QJj((xU=n())==null?void 0:xU.state):void 0},
secondaryIconName:function(){return VN()?"EXPAND":void 0}})}})))},"sa");
_.Oz.idomCompat=!0;var otM=_.T(function(b){var h=b.data;var y=_.OF(Vuk,function(){return h().subscriptionStateEntityKey});
return _.M(_.H,{cond:function(){var S=h(),F=y();return!S.hideWhenUnsubscribed||(F==null?0:F.subscribed)?_.c(h().button,_.cA):void 0},
then:function(S){return _.M("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.M(_.EG,{data:S,buttonOverrides:function(){return{toggled:!0}}}))}})},"ta");
otM.idomCompat=!0;var MB7,Np;MB7=_.T(function(b){return _.M(_.rC,{data:function(){return b.actionRow().actions}},{buttonViewModel:function(h){var y=h.data;
return _.M(Np,{isRow:b.isRow,isIconOnlyButton:function(){return FRy(y())},
useIntrinsicWidth:b.useIntrinsicWidth},_.M(_.EG,{data:y}))},
subscribeButtonViewModel:function(h){return _.M(Np,{isRow:b.isRow},_.M(_.Oz,{data:h.data,isOverlay:!1,animateWidth:function(){return!b.isRow()}}))},
downloadButtonViewModel:function(h){var y=h.data;return _.M(Np,{isRow:b.isRow,isIconOnlyButton:function(){return!!y().playlistId}},_.M(F9e,{data:y}))},
submitButtonViewModel:function(h){var y=h.data;return _.M(Np,{isRow:b.isRow,isIconOnlyButton:function(){var S=y();return FRy(_.c(S==null?void 0:S.button,_.cA))}},_.M(azN,{data:y}))},
toggleButtonViewModel:function(h){var y=h.data;return _.M(Np,{isRow:b.isRow,isIconOnlyButton:function(){var S=y();return FRy(_.c(S.isToggled?S.toggledButtonViewModel:S.defaultButtonViewModel,_.cA))}},_.M(_.Ke,{data:y}))},
subscribePlusButtonViewModel:function(h){return _.M(Np,{isRow:b.isRow},_.M(otM,{data:h.data}))}})},"ua");
Np=_.T(function(b){var h={};return _.M("div",{class:_.P2("ytFlexibleActionsViewModelAction",(h.ytFlexibleActionsViewModelActionRowAction=b.isRow,h.ytFlexibleActionsViewModelActionIntrinsicWidth=b.useIntrinsicWidth,h.ytFlexibleActionsViewModelActionRowActionFeaturePhone=!1,h.ytFlexibleActionsViewModelActionIconOnlyButton=b.isIconOnlyButton,h))},b.children)},"va");
_.tp=_.T(function(b){var h=function(){var S;return((S=b.layout)==null?void 0:S.call(b))===1},y={};
return _.M("yt-flexible-actions-view-model",{class:_.P2("ytFlexibleActionsViewModelHost",b.className,(y.ytFlexibleActionsViewModelInline=function(){return!h()},y.ytFlexibleActionsViewModelScrollable=function(){return b.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},y))},_.M(_.Gw,{each:function(){return b.data().actionsRows||[]}},function(S){return _.M(_.H,{cond:h,
then:function(){return _.M("div",{class:"ytFlexibleActionsViewModelActionRow"},_.M(MB7,{actionRow:S,isRow:h,useIntrinsicWidth:function(){return!!b.data().respectActionIntrinsicWidth}}))},
else:function(){return _.M(MB7,{actionRow:S,isRow:h})}})}))},"wa");_.yd(_.tp,"yt-flexible-actions-view-model",{props:{data:_.D4,layout:_.D4,justifyContentOverride:_.D4,className:_.D4}});_.r7=_.T(function(b){var h=_.OF(_.gS,function(){var F;return(F=b.data().dislikeEntityKey)!=null?F:""}),y=_.s5(function(){var F=h();
return F?F.likeStatus==="DISLIKE":_.c(b.data().toggleButtonViewModel,_.zc).isToggled},void 0,"fNr9he"),S=_.s5(function(){return Object.assign({},_.c(b.data().toggleButtonViewModel,_.zc),{isToggled:y()})},void 0,"AezoCc");
return _.M("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.M(_.Ke,{data:S,buttonShapeOverrides:b.buttonShapeOverrideables,onToggle:function(F){var a=h();a&&F!==(a.likeStatus==="DISLIKE")&&a.key&&_.vl(_.eD("likeStatusEntity",a.key,{likeStatus:F?"DISLIKE":"INDIFFERENT",hadUserInteraction:F}))}}))},"xa");
_.r7.idomCompat=!0;_.cD=_.T(function(b){var h=_.r("web_supports_animations_api"),y=utU(function(N){var t=X();if(!N){var R,I;return{numberText:(I=t==null?void 0:(R=t.likeCountIfIndifferent)==null?void 0:R.content)!=null?I:"",numberValue:Number(t==null?void 0:t.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var U;R=(t==null?void 0:(U=t.likeCountIfIndifferent)==null?void 0:U.content)!==N.numberText;if(K()||!R)return N;var p;return{numberText:(t==null?void 0:(p=t.likeCountIfIndifferent)==null?void 0:p.content)||
"",numberValue:Number(t==null?void 0:t.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!t}}),S=utU(function(N){var t=X();
if(!N){var R,I;return{numberText:(I=t==null?void 0:(R=t.likeCountIfLiked)==null?void 0:R.content)!=null?I:"",numberValue:Number(t==null?void 0:t.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var U;R=(t==null?void 0:(U=t.likeCountIfIndifferent)==null?void 0:U.content)!==N.numberText;if(K()||!R)return N;var p;return{numberText:(t==null?void 0:(p=t.likeCountIfLiked)==null?void 0:p.content)||"",numberValue:Number(t==null?void 0:t.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!t}}),F=_.L(_.pa(void 0,
void 0,"xYSlUe")),a=F.next().value,P=F.next().value,K=a,n=_.OF(_.gS,function(){var N,t;
return(t=(N=b.data())==null?void 0:N.likeStatusEntityKey)!=null?t:""}),X=_.OF(wk4,function(){var N,t;
return((N=b.likeCountEntity)==null?void 0:(t=N.call(b))==null?void 0:t.key)||""}),u=_.s5(function(){var N;
return((N=n())==null?void 0:N.likeStatus)==="LIKE"},void 0,"DG5Osd"),O=function(){var N;
return h&&!((N=b.likeCountEntity)==null||!N.call(b))};
return _.M("like-button-view-model",{class:_.P2("ytLikeButtonViewModelHost",b.className)},_.M(_.Ke,{data:function(){var N=Object,t=N.assign,R;var I=_.c((R=b.data())==null?void 0:R.toggleButtonViewModel,_.zc);return t.call(N,{},I||{},{isToggled:u()})},
buttonShapeOverrides:b.buttonShapeOverrideables,animatedTextPropsDefault:function(){return O()?y():void 0},
animatedTextPropsToggled:function(){return O()?S():void 0},
onToggle:function(N){aj8(N,n(),K(),P)},
style:function(){var N;return((N=b.disableIconAnimation)==null?0:N.call(b))?void 0:{animateIcon:"true"}}}))},"ya");
_.cD.idomCompat=!0;var ntW=_.T(function(b){var h=function(){return _.c(b.data().likeButtonViewModel,_.E9)},y=function(){var F;
return((F=h())==null?void 0:F.likeStatusEntityKey)||""},S=_.s5(function(){var F,a;
var P=(a=_.OF(_.gS,y)())!=null?a:(F=h())==null?void 0:F.likeStatusEntity;F=b.data();var K;F=(F==null?void 0:(K=F.timedAnimationData)==null?void 0:K.animationTiming)||[];return{uniqueId:"like-dislike",timings:F,enabled:(P==null?void 0:P.likeStatus)==="INDIFFERENT"&&F.length>0,experimentEnabled:F.length>0}},void 0,"zZ3GQb");
return _.M("segmented-like-dislike-button-view-model",{class:_.P2("ytSegmentedLikeDislikeButtonViewModelHost",b.className),"button-renderer":!0},_.M(Qta,{settings:S},_.M("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.M(_.H,{cond:h,then:function(F){return _.M(_.cD,{data:F,likeCountEntity:function(){return b.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start",onClickRateLimitMs:_.r("web_enable_like_button_click_debouncing")?500:void 0}})}}),_.M(_.H,{cond:function(){return _.c(b.data().dislikeButtonViewModel,_.iG)},
then:function(F){return _.M(_.r7,{data:F,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"za");
ntW.idomCompat=!0;_.yd(ntW,"segmented-like-dislike-button-view-model",{props:{data:_.D4,className:_.D4}});var Xh5=_.T(function(b){var h=b.data;var y=b.className;var S=b.setMinWidth;var F=b.forceIconOnly;var a=_.ZR("account-link-button-view-model"),P=_.OF(_.dNn,function(){var N;return(N=h().accountLinkStatusEntityKey)!=null?N:""}),K=_.OF(_.dNn,function(){var N;
return(N=h().accountLinkStatusSecondaryEntityKey)!=null?N:""}),n=function(){if(!_.r("web_account_link_secondary_killswitch")){var N,t;
return((N=P())==null?void 0:N.linked)||((t=K())==null?void 0:t.linked)}var R;return(R=P())==null?void 0:R.linked};
_.Qi(function(){var N=P();if(N){var t=Dua(new zMW,cTW(new rTW,!!N.linked));_.Z5().then(function(R){R&&(R.setAccountLinkState(_.CA(t.JSC$12505_serializeBinary(),4)),R.updateAccountLinkingConfig(!!N.linked))})}},"IvZF7");
var X=function(){return _.c(h().toggleButtonViewModel,_.zc)};
_.KP("yt-signal-action-show-account-link-dialog",function(){if(X()){var N=n()?X().toggledButtonViewModel:X().defaultButtonViewModel;N=_.c(N,_.cA);var t;if((t=P())==null?0:t.isWarning){t=_.c(h().warningButtonViewModel,_.cA);if(!t){_.yb(Error("Eh"));return}N=t}var R;(t=_.YS((R=N)==null?void 0:R.onTap))&&_.PT([t],a.value)}else _.yb(Error("Fh"))});
var u=function(){var N=X();return Object.assign({},N,{isToggled:n()})},O=function(){return(F==null?0:F())?{iconPosition:"icon-only"}:{}};
return _.M("account-link-button-view-model",{class:_.P2("ytwAccountLinkButtonViewModelHost",y,function(){return(S==null?0:S())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:a,"button-renderer":!0},_.M("div",null,_.M(_.H,{cond:function(){var N;if((N=P())==null?0:N.isWarning)return(N=_.c(h().warningButtonViewModel,_.cA))||_.yb(Error("Eh")),N},
then:function(N){return _.M(_.EG,{data:N,buttonOverrides:O})},
else:function(){return _.M(_.Ke,{data:u,buttonShapeOverrides:O})}})))},"Ba");_.yd(Xh5,"account-link-button-view-model",{props:{data:_.D4,className:_.v3,setMinWidth:_.v3,forceIconOnly:_.v3}});_.W2("menuRenderer","menuRenderer","ytd-menu-renderer");
var H6M={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"}},
uGa=_.r("web_fix_missing_action_buttons")?100:200,Rx=function(){var b=_.g.apply(this,arguments)||this;b.safeArea=!_.r("kevlar_flex_menu_safe_area_killswitch");b.tonalOverride=!1;b.threeDotSize="M";b.isOverlay=!1;b.useOverlayDark=!1;b.topLevelIconsOnly=!1;b.JSC$14949_lastWidth=0;b.maybeUpdateFlexibleMenu=function(){_.r("web_fix_missing_action_buttons")?requestAnimationFrame(b.maybeUpdateFlexibleMenuImpl):b.maybeUpdateFlexibleMenuImpl()};
b.maybeUpdateFlexibleMenuImpl=function(){var h;if((h=b.data)!=null&&h.flexibleItems){b.maybeFlushDebouncer();h=b.hostElement.clientWidth;var y=h>b.JSC$14949_lastWidth,S,F=((S=b.topLevelButtonsContainer)==null?void 0:S.scrollHeight)||0,a;S=((a=b.flexibleItemButtonsContainer)==null?void 0:a.scrollHeight)||0;a=b.hostElement.scrollHeight>Math.max(F,S)+8;y?(b.resetFlexibleItems(),b.JSC$14949_lastWidth=b.hostElement.clientWidth,b.maybeUpdateFlexibleMenu()):a&&(b.shrinkFlexibleMenu(),b.JSC$14949_lastWidth=
h)}};
b.computeThreeDotButtonShape=function(){if(b.tonalOverride)return Object.assign({},{onTap:function(){b.onOverflowTap()},
iconPosition:"icon-only",style:b.isOverlay?b.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:b.threeDotSize,state:"active",accessibilityLabel:b.computeAccessibilityLabel(b.data)},b.threeDotButtonOverride)};
b.onOverflowTap=function(){var h,y,S,F,a,P;_.Z(function(K){switch(K.nextAddress){case 1:if(b.data.fetchMenuCommand)return h=_.H9().resolve(_.OM),h.resolveCommand(b.data.fetchMenuCommand,{form:{element:b.hostElement}}),K.return();if(b.data.isDisabled&&b.data.disabledCommand)return _.Xb(b.data.disabledCommand,b.hostElement),K.return();y=b.createMenuRendererVe();S={items:b.items};b.data.menuPopupAccessibility&&(S.menuPopupAccessibility=b.data.menuPopupAccessibility);b.data.footer&&(S.footer=b.data.footer);
F={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:S},veData:y}};a=_.H9().resolve(_.nk);if(!_.r("ytd-menu-singleton-sheet-killswitch")){K.jumpTo(2);break}return K.yield(a.openSheet({openPopupActionCommand:F},b.hostElement),3);case 3:return K.return();case 2:return K.yield(a.isSheetOpen(),4);case 4:return(P=K.yieldResult)?K.yield(a.closeSheet(),0):K.yield(a.openSheet({openPopupActionCommand:F},b.hostElement),0)}})};
return b};
_.z(Rx,_.g);_.d=Rx.prototype;_.d.updateButtonOverrides=function(){if(!_.r("menu_renderer_label_update_upkillswitch")){var b=_.$x(this.hostElement).querySelector("yt-button-view-model");b&&(b.buttonOverrides=this.buttonOverrides)}};
_.d.computeHasItems=function(){var b;return((b=this.topLevelButtonData)==null?void 0:b.length)||this.hasFlexibleItems};
_.d.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.d.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.nZ(this.hostElement,{"--ytd-menu-renderer-button-color":_.eI(this.data.iconColor)}))};
_.d.onStamperFinished=function(){this.JSC$14949_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.d.setupFlexibleMenu=function(){var b=this,h;(h=this.data)!=null&&h.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.MG(this.maybeUpdateFlexibleMenu,uGa,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){b.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))};
_.d.maybeFlushDebouncer=function(){if(_.r("web_replace_formatted_with_attributed_string")){var b;(b=this.topLevelButtons)==null||b.forEach(function(y){var S;(y=(S=y.getElementsByTagName("yt-attributed-string"))==null?void 0:S[0])&&WHM(y)});
var h;(h=this.flexibleItemButtons)==null||h.forEach(function(y){var S;(y=(S=y.getElementsByTagName("yt-attributed-string"))==null?void 0:S[0])&&WHM(y)})}};
_.d.resetFlexibleItems=function(){var b;if((b=this.data)!=null&&b.flexibleItems){_.r("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var h;this.flexAsTopLevelButtons=(h=this.data.flexibleItems)==null?void 0:h.map(function(y){return _.c(y,_.d1W).topLevelButton});
_.r("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.d.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.d.shrinkFlexibleMenu=function(){var b;(b=this.flexAsTopLevelButtons)!=null&&b.length&&(this.flexAsTopLevelButtons=[].concat(_.f$(this.flexAsTopLevelButtons.slice(0,-1))))};
_.d.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:H6M,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:H6M,events:!0}}};
_.d.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.d.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.d.detached=function(){this.icon="MORE_VERT"};
_.d.computeTopLevelButtonData=function(b){if(!b)return[];var h;b=(h=b==null?void 0:b.topLevelButtons)!=null?h:[];return _.lR.unsafeClone([].concat(_.f$(b)))};
_.d.computeItems=function(b,h){if(!b)return[];var y=[];if(h){var S=(b.flexibleItems||[]).map(function(P){return _.c(P,_.d1W)});
S=_.L(S);for(var F=S.next();!F.done;F=S.next())F=F.value,h.includes(F.topLevelButton)||(F=F.menuItem)&&y.push(F)}var a;b=(a=b==null?void 0:b.items)!=null?a:[];return[].concat(_.f$(y),_.f$(b))};
_.d.computeMenuActive=function(b,h){return b||h};
_.d.onPopupOpened=function(){this.overlayOpen=!0;_.Sx(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.d.onPopupClosed=function(){this.overlayOpen=!1;_.Sx(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.d.onPopupCanceled=function(){this.overlayOpen=!1;_.Sx(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.d.computeAccessibilityLabel=function(b){return this.get("accessibility.accessibilityData.label",b)};
_.d.isHidden=function(b,h){return this.tonalOverride||!b?!0:b.fetchMenuCommand||b.isDisabled&&b.disabledCommand?!1:!(h==null?0:h.length)};
_.d.isModernOverflowHidden=function(b,h){return this.tonalOverride&&b?b.fetchMenuCommand?!1:!(h==null?0:h.length):!0};
_.d.createMenuRendererVe=function(){var b=this.data.trackingParams,h=_.UE(),y=_.Ae();return b&&h&&y?(b=_.I_(b),y=_.Kh(7591),_.r("combine_ve_grafts")?_.lC(_.rU(),y,b):_.Vh(h,b,y),y):null};
_.tm.Object.defineProperties(Rx.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.flexAsTopLevelButtons)==null||!b.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
Rx.prototype.onPopupCanceled=Rx.prototype.onPopupCanceled;Rx.prototype.onPopupClosed=Rx.prototype.onPopupClosed;Rx.prototype.onPopupOpened=Rx.prototype.onPopupOpened;Rx.prototype.tonalOverrideChanged=Rx.prototype.tonalOverrideChanged;Rx.prototype.resetFlexibleItems=Rx.prototype.resetFlexibleItems;Rx.prototype.setupFlexibleMenu=Rx.prototype.setupFlexibleMenu;Rx.prototype.iconButtonColorChanged=Rx.prototype.iconButtonColorChanged;Rx.prototype.updateButtonOverrides=Rx.prototype.updateButtonOverrides;
_.V([_.B(_.Y9),_.f("design:type",Object)],Rx.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Rx.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Rx.prototype,"ytRendererstamperBehavior",void 0);_.V([_.to("#button-shape"),_.f("design:type",HTMLElement)],Rx.prototype,"buttonShape",void 0);_.V([_.to("#button"),_.f("design:type",Object)],Rx.prototype,"button",void 0);
_.V([_.C(),_.f("design:type",Object)],Rx.prototype,"data",void 0);_.V([_.C({computed:"computeTopLevelButtonData(data)"}),_.f("design:type",Array)],Rx.prototype,"topLevelButtonData",void 0);_.V([_.C(),_.f("design:type",Array)],Rx.prototype,"flexAsTopLevelButtons",void 0);_.V([_.C({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.f("design:type",Array)],Rx.prototype,"items",void 0);_.V([_.C({value:"MORE_VERT"}),_.f("design:type",String)],Rx.prototype,"icon",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Rx.prototype,"safeArea",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.f("design:type",Boolean)],Rx.prototype,"menuActive",void 0);_.V([_.C(),_.f("design:type",Boolean)],Rx.prototype,"menuFocused",void 0);_.V([_.C({value:"bottom"}),_.f("design:type",String)],Rx.prototype,"buttonTooltipPosition",void 0);_.V([_.C(),_.f("design:type",Boolean)],Rx.prototype,"overlayOpen",void 0);
_.V([_.C({value:!0}),_.f("design:type",Boolean)],Rx.prototype,"forceIconButton",void 0);_.V([_.C(),_.f("design:type",Boolean)],Rx.prototype,"styleActionButton",void 0);_.V([_.C(),_.f("design:type",Boolean)],Rx.prototype,"disableTextTransformOnButtons",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Rx.prototype,"tonalOverride",void 0);_.V([_.C(),_.f("design:type",Object)],Rx.prototype,"threeDotSize",void 0);
_.V([_.C(),_.f("design:type",Object)],Rx.prototype,"threeDotButtonOverride",void 0);_.V([_.C(),_.f("design:type",Object)],Rx.prototype,"isOverlay",void 0);_.V([_.C(),_.f("design:type",Object)],Rx.prototype,"useOverlayDark",void 0);_.V([_.C({computed:"computeButtonOverride(tonalOverride)"}),_.f("design:type",Object)],Rx.prototype,"buttonOverride",void 0);_.V([_.C(),_.f("design:type",Boolean)],Rx.prototype,"minimizePipBreakages",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],Rx.prototype,"hasCustomIconColor",void 0);_.V([_.C({reflectToAttribute:!0}),_.W("flexAsTopLevelButtons"),_.f("design:type",Object),_.f("design:paramtypes",[])],Rx.prototype,"hasFlexibleItems",null);_.V([_.C({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.f("design:type",Boolean)],Rx.prototype,"hasItems",void 0);_.V([_.C(),_.f("design:type",Object)],Rx.prototype,"topLevelIconsOnly",void 0);
_.V([_.OB("topLevelIconsOnly"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Rx.prototype,"updateButtonOverrides",null);_.V([_.W("topLevelIconsOnly"),_.f("design:type",Object),_.f("design:paramtypes",[])],Rx.prototype,"buttonOverrides",null);_.V([_.to("#top-level-buttons-computed"),_.f("design:type",HTMLElement)],Rx.prototype,"topLevelButtonsContainer",void 0);_.V([_.ry(".top-level-buttons > *"),_.f("design:type",Array)],Rx.prototype,"topLevelButtons",void 0);
_.V([_.to("#flexible-item-buttons"),_.f("design:type",HTMLElement)],Rx.prototype,"flexibleItemButtonsContainer",void 0);_.V([_.ry("#flexible-item-buttons > *"),_.f("design:type",Array)],Rx.prototype,"flexibleItemButtons",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Rx.prototype,"iconButtonColorChanged",null);
_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Rx.prototype,"setupFlexibleMenu",null);_.V([_.zj("topLevelIconsOnly"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Rx.prototype,"resetFlexibleItems",null);_.V([_.OB("tonalOverride"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Rx.prototype,"tonalOverrideChanged",null);
_.V([_.u3("yt-popup-opened"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Rx.prototype,"onPopupOpened",null);_.V([_.u3("yt-popup-closed"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Rx.prototype,"onPopupClosed",null);_.V([_.u3("yt-popup-canceled"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Rx.prototype,"onPopupCanceled",null);
_.k(Rx,"ytd-menu-renderer",function(){if(giM===void 0){var b=document.createElement("template");_.D(b,'\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>');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);giM=b}b=giM;return b},{mode:2});var O6o;var N9N;_.z_=_.T(function(b){var h=b.data;var y=function(){if(h().icon)a:{var F={iconName:h().icon};for(var a=_.H9().resolve(_.MJ),P=_.L([12,24]),K=P.next();!K.done;K=P.next()){var n=K.value;K=Object.assign({},F,{iconStyle:"youtube_fill",iconSize:n});n=Object.assign({},F,{iconStyle:"youtube_outline",iconSize:n});if(a.resolveIcon(K)){F=K;break a}if(a.resolveIcon(n)){F=n;break a}}F=void 0}else F=void 0;return F};
b={};var S={};return _.M("badge-shape",{class:_.P2("yt-badge-shape",function(){return ZVY(h().type)},(b["yt-badge-shape--overlay"]=function(){return h().isOverlay},b["yt-badge-shape--ads-include-dot"]=function(){return h().adsIncludeDot},b["yt-badge-shape--thumbnail-badge"]=function(){a:switch(h().type){case 17:case 18:case 19:var F=!0;
break a;default:F=!1}return F},b["yt-badge-shape--status-badge"]=function(){a:switch(h().type){case 12:case 13:case 14:case 15:case 16:var F=!0;
break a;default:F=!1}return F},b["yt-badge-shape--no-text"]=function(){return!h().text},b["yt-badge-shape--modern"]=function(){return h().modern||_.r("web_modern_badge_shape")},b["yt-badge-shape--typography"]=function(){a:{var F=h();
if(F.shouldInheritTypography)switch(F.type){case 0:case 1:case 9:F=!0;break a;default:F=!1}else F=!1}return!F},b)),
style:_.n9({"background-color":function(){var F;return(F=h().customColors)==null?void 0:F.backgroundColor}}),
role:function(){return h().accessibilityText?"img":void 0},
"aria-label":function(){return h().accessibilityText}},_.M(_.H,{cond:function(){return h().animation},
then:function(F){return _.M(_.vj,{className:"yt-badge-shape__icon",data:F,animationName:function(){return F().animationConfig.name||""}})}}),_.M(_.H,{cond:function(){var F;
return y()&&!((F=h())==null?0:F.animation)},
then:function(){return _.M("div",{class:"yt-badge-shape__icon"},_.M(_.Dv,{data:function(){return y()}}))}}),_.M("div",{class:_.P2("yt-badge-shape__text",(S["yt-badge-shape__text--clip-text-overflow"]=function(){return h().clipTextOverflow},S["yt-badge-shape__text--has-multiple-badges-in-row"]=function(){return(h().numBadgesInRow||0)>1},S))},function(){var F;
return(F=h())==null?void 0:F.text}))},"Ca");
_.z_.idomCompat=!0;_.yd(_.z_,"badge-shape",{props:{data:_.D4}});var DP=function(){var b=_.g.apply(this,arguments)||this;b.systemIcons=_.r("kevlar_system_icons");b.animated=_.r("animated_live_badge_icon");b.useBadgeShape=_.r("web_badge_shape_defrag");return b};
_.z(DP,_.g);_.d=DP.prototype;_.d.addTooltips=function(){for(var b=_.$x(this.hostElement).querySelectorAll(".badge"),h=0,y;y=b[h++];){var S=this.repeatElement.itemForElement(y);y=_.$x(y);y.lastChild&&y.lastChild.is==="tp-yt-paper-tooltip"&&y.removeChild(y.lastChild);if(S=S.metadataBadgeRenderer&&S.metadataBadgeRenderer.tooltip){var F=_.pd("tp-yt-paper-tooltip");(0,_.Mh)(F).textContent=S;F.setAttribute("position","top");F.setAttribute("aria-hidden","true");y.appendChild(F)}}};
_.d.badgesChanged=function(){var b=this;_.Dh().parkOrScheduleJob(function(){b.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.d.standaloneRoundedBadgeChanged=function(){var b=this.useRoundedBadge?this.useRoundedBadge:void 0;b&&(this.useRoundedBadge=b)};
_.d.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.d.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.d.computeStyle=function(b){_.r("kevlar_ytb_live_badges")&&b==="BADGE_STYLE_TYPE_LIVE_NOW"&&(b="badge-style-type-live-now-alternate");return b?b.toLowerCase().replace(/_/g,"-"):""};
_.d.computeRole=function(b){return this.computeAriaLabel(b)?"img":"status"};
_.d.computeAriaLabel=function(b){var h;return(b==null?void 0:(h=b.accessibilityData)==null?void 0:h.label)||(b==null?void 0:b.label)};
_.d.computeBadgeShape=function(b){if(b){var h,y;var S=PPr(b.style);var F=KRq(b.style),a=b.label,P=((h=b.accessibilityData)==null?void 0:h.label)||b.label;a:switch(b.style){case "BADGE_STYLE_TYPE_SHORTS_PLAYER":case "BADGE_STYLE_TYPE_BLACK":case "BADGE_STYLE_TYPE_OVERLAY":h=!0;break a;default:h=!1}var K=(y=b.icon)==null?void 0:y.iconType;a:switch(b.style){case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":b=!0;break a;default:b=!1}S={type:S,brNzRatingBadgeType:F,text:a,accessibilityText:P,
isOverlay:h,icon:K!=="PREMIUM"?K:void 0,modern:_.r("web_modern_badge_view_model"),numBadgesInRow:this.numBadgesInRow,adsIncludeDot:b}}else S={};return S};
_.d.updateComputedBadges=function(b,h,y){var S=this;(h=h?[h]:y?[y]:void 0)?this.computedBadges=h:this.computedBadges=b==null?void 0:b.filter(function(F){var a;if((a=F.metadataBadgeRenderer)==null?0:a.groups){a=!1;F=_.L(F.metadataBadgeRenderer.groups);for(var P=F.next();!P.done;P=F.next()){P=P.value;var K=void 0;a=a||((K=S.hiddenBadgeGroups)==null?void 0:K.includes(P))}return!a}return!0})};
_.d.useFilledIcons=function(b){return _.r("kevlar_system_icons")&&(b==="AUDIO_BADGE"||b==="CHECK_CIRCLE_THICK"||b==="OFFICIAL_ARTIST_BADGE"||b==="SPONSORSHIP_STAR"||b==="PERSON_RADAR_FILLED"||b==="PERSON_RADAR")};
_.d.computeBadgeShapeStyle=function(b){return this.useBadgeShape?b==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||b==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":b==="BADGE_STYLE_TYPE_SIMPLE_STRIKETHROUGH"?"badge-shape-style-type-strikethrough":"":""};
_.d.computeIcon=function(b){var h,y;b=b==null?void 0:(h=b.metadataBadgeRenderer)==null?void 0:(y=h.icon)==null?void 0:y.iconType;if(b!=="PREMIUM"&&b)return _.o_(b)};
_.d.computeStandaloneBadge=function(b){var h;b=b==null?void 0:(h=b.icon)==null?void 0:h.iconType;return b==="PREMIUM_STANDALONE"||b==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
DP.prototype.hiddenBadgeGroupsChanged=DP.prototype.hiddenBadgeGroupsChanged;DP.prototype.standaloneBadgeChanged=DP.prototype.standaloneBadgeChanged;DP.prototype.standaloneRoundedBadgeChanged=DP.prototype.standaloneRoundedBadgeChanged;DP.prototype.badgesChanged=DP.prototype.badgesChanged;_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],DP.prototype,"hidden",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],DP.prototype,"componentBehavior",void 0);
_.V([_.C(),_.f("design:type",Array)],DP.prototype,"badges",void 0);_.V([_.C(),_.f("design:type",Object)],DP.prototype,"topStandaloneBadge",void 0);_.V([_.C(),_.f("design:type",Object)],DP.prototype,"bottomStandaloneBadge",void 0);_.V([_.C(),_.f("design:type",Object)],DP.prototype,"computedBadges",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],DP.prototype,"mediumFontAdBadge",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],DP.prototype,"useRoundedBadge",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],DP.prototype,"largeFontAdBadge",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],DP.prototype,"overlayAd",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],DP.prototype,"overlayPremium",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],DP.prototype,"noDotAdBadge",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],DP.prototype,"collectionTruncate",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],DP.prototype,"isThumbnailBadge",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],DP.prototype,"wrapBadges",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Number)],DP.prototype,"numBadgesInRow",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],DP.prototype,"systemIcons",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],DP.prototype,"animated",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],DP.prototype,"useBadgeShape",void 0);_.V([_.C({value:[]}),_.f("design:type",Array)],DP.prototype,"hiddenBadgeGroups",void 0);_.V([_.to("#repeat"),_.f("design:type",Jo)],DP.prototype,"repeatElement",void 0);_.V([_.zj("badges"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],DP.prototype,"badgesChanged",null);
_.V([_.zj("useRoundedBadge"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],DP.prototype,"standaloneRoundedBadgeChanged",null);_.V([_.zj("topStandaloneBadge","bottomStandaloneBadge"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],DP.prototype,"standaloneBadgeChanged",null);_.V([_.zj("hiddenBadgeGroups"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],DP.prototype,"hiddenBadgeGroupsChanged",null);
_.V([_.Yx({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],DP);
var tBG=_.$S()(DP,"ytd-badge-supported-renderer",function(){if(N9N===void 0){var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);N9N=b}b=N9N;return b},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups numBadgesInRow isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.Lt("kevlar_poly_si_batch_j053")?1:2});var Ix=function(){var b=_.g.apply(this,arguments)||this;b.iconType="STAR";b.plaMedium=_.r("enable_pla_resizing_for_desktop_medium");b.plaLarge=_.r("enable_pla_resizing_for_desktop_large");b.plaExtraLarge=_.r("enable_pla_resizing_for_desktop_extra_large");b.standardizeIconSize=_.r("kevlar_system_icons");b.mediaHoverOverlayInitialVisibility=_.r("enable_top_landscape_image_button_command_web");b.noBottomMargin=!1;b.thumbnailObjectFit="CONTAIN";b.thumbnailFitHeight=!0;b.actionMap={"yt-mute-ad-action":"handleMuteAd"};
return b};
_.z(Ix,_.g);_.d=Ix.prototype;_.d.created=function(){this.activeView=new ff(this.hostElement)};
_.d.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"}}}};
_.d.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",Ix.JSC$14962_DEFAULT_CLICK_LOCATION_BEHAVIOR,Ix.JSC$14962_CLICK_LOCATION_ID_MAP))};
_.d.onTap=function(b){this.onTapOrClick(b)};
_.d.onTapOrClick=function(b){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,b,!1)};
_.d.updateMediaBackgroundImage=function(){var b=this.get("data.image.thumbnail.thumbnails");b&&(b=_.Ss(b,0))&&_.nZ(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+b+")"})};
_.d.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var b=0;b<this.data.impressionEndpoints.length;b++){var h=this.data.impressionEndpoints[b];h.clickTrackingParams&&delete h.clickTrackingParams;_.H9().resolve(_.OM).resolveCommand(h,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var y;((y=this.data)==null?0:y.activeView)&&wP(this.activeView,this.data.activeView)}};
_.d.handleMuteAd=function(){};
_.d.attached=function(){var b=this;_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&lw(b.activeView)})};
_.d.detached=function(){_.r("stop_av_measurement_on_detach")&&lw(this.activeView)};
_.tm.Object.defineProperties(Ix.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var b;if((b=this.data)==null||!b.titleText)return"";var h;return _.Mt("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((h=this.data)==null?void 0:h.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.data)==null?0:b.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.data)==null?0:b.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.data)==null?0:b.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.data)==null?0:b.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.data)==null?0:b.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 b;return!((b=this.data)==null||!b.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"}}});
Ix.prototype.onTap=Ix.prototype.onTap;Ix.prototype.dataChanged=Ix.prototype.dataChanged;
Ix.JSC$14962_CLICK_LOCATION_ID_MAP=_.r("enable_web_home_top_landscape_image_layout_click_location")?new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","body-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER","secondary-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL","media-hover-overlay"],["PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND",
"media"],["PROMOTED_SPARKLES_CLICK_LOCATION_BORDER","media-background"]]):new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root"]]);
Ix.JSC$14962_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.r("enable_web_home_top_landscape_image_layout_click_location")?[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION",code:7,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE",code:31,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER",
code:1,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:9,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL",code:8,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND",code:41,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BORDER",
code:39,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"}]:[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"}];_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Ix.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Ix.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.rP),_.f("design:type",Object)],Ix.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],Ix.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.TO.YtSparklesClickLocationBehavior),_.f("design:type",Object)],Ix.prototype,"ytSparklesClickLocationBehavior",void 0);_.V([_.B([_.mx.YtActionHandlerBehavior]),_.f("design:type",Object)],Ix.prototype,"actionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Ix.prototype,"data",void 0);
_.V([_.C(),_.f("design:type",Object)],Ix.prototype,"clickCommand",void 0);_.V([_.C({reflectToAttribute:!0,selector:_.Jt}),_.f("design:type",Boolean)],Ix.prototype,"miniMode",void 0);_.V([_.C(),_.f("design:type",String)],Ix.prototype,"iconType",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Ix.prototype,"plaMedium",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Ix.prototype,"plaLarge",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Ix.prototype,"plaExtraLarge",void 0);_.V([_.W("data.titleText"),_.f("design:type",String),_.f("design:paramtypes",[])],Ix.prototype,"titleAriaLabel",null);_.V([_.W("data.rating"),_.f("design:type",Object),_.f("design:paramtypes",[])],Ix.prototype,"getRating",null);_.V([_.W("data.price"),_.f("design:type",Object),_.f("design:paramtypes",[])],Ix.prototype,"getPrice",null);
_.V([_.W("data.thirdLine"),_.f("design:type",Object),_.f("design:paramtypes",[])],Ix.prototype,"getThirdLine",null);_.V([_.W("data.fourthLine"),_.f("design:type",Object),_.f("design:paramtypes",[])],Ix.prototype,"getFourthLine",null);_.V([_.W("data.fifthLine"),_.f("design:type",Object),_.f("design:paramtypes",[])],Ix.prototype,"getFifthLine",null);_.V([_.W("getRating"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Ix.prototype,"computeRatingHidden",null);
_.V([_.W("getPrice"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Ix.prototype,"computePriceHidden",null);_.V([_.W("getThirdLine"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Ix.prototype,"computeThirdLineHidden",null);_.V([_.W("getFourthLine"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Ix.prototype,"computeFourthLineHidden",null);_.V([_.W("getFifthLine"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Ix.prototype,"computeFifthLineHidden",null);
_.V([_.C({reflectToAttribute:!0}),_.W("data.energyIcon"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Ix.prototype,"hasEnergyIcon",null);_.V([_.W("computePriceHidden","computeRatingHidden"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Ix.prototype,"computeSecondaryTextHidden",null);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Ix.prototype,"standardizeIconSize",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Ix.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Ix.prototype,"noBottomMargin",void 0);_.V([_.C({reflectToAttribute:!0}),_.W("data.layout"),_.f("design:type",String),_.f("design:paramtypes",[])],Ix.prototype,"layout",null);_.V([_.W("data.layout"),_.f("design:type",Object),_.f("design:paramtypes",[])],Ix.prototype,"mediaThumbnailWidth",null);
_.V([_.W("layout"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Ix.prototype,"useRoundedBadge",null);_.V([_.C(),_.f("design:type",String)],Ix.prototype,"thumbnailObjectFit",void 0);_.V([_.C(),_.f("design:type",Object)],Ix.prototype,"thumbnailFitHeight",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Ix.prototype,"dataChanged",null);
_.V([_.u3("tap"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],Ix.prototype,"onTap",null);_.V([_.Yx({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],Ix);
_.k(Ix,"ytd-display-ad-renderer",function(){if(O6o!==void 0)return O6o;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return O6o=b},{mode:1});var r$o;var c$M;var R_w;var oif=new Map;var z_M=!1;var BD=function(){var b=_.g.apply(this,arguments)||this;b.DEFAULT_TOOLTIP_OFFSET="10";b.TOOLTIP_OFFSET_NO_BANNER="-8";b.badges=null;b.noEndpoints=!1;b.wrapText=!1;b.forceVerified=!1;b.tooltipPosition="top";b.compactStyle=!1;b.height=0;b.lineHeight=0;return b};
_.z(BD,_.g);_.d=BD.prototype;_.d.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.d.attached=function(){var b=this;this.observer=new MutationObserver(function(h,y){b.handleResized();y.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.d.detached=function(){this.observer&&this.observer.disconnect()};
_.d.logTooltipEvent=function(){_.r("kevlar_wiz_tooltip_event_killswitch")||z_M||(_.M0r("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),z_M=!0)};
_.d.handleWindowResized=function(){this.handleResized()};
_.d.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")))};
_.d.onHeightChanged=function(){if(this.verified){var b=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.QC("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=b:this.textContainerEl.style.marginRight=b}};
_.d.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.QC("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.d.handleResized=function(){var b=this;this.verified&&_.xP.addLowPriorityJob(function(){b.fitBackgroundToText();var h=getComputedStyle(b.hostElement).lineHeight;h&&(h=h.match(/\d+/))&&h.length&&(b.lineHeight=Number(h[0]));b.height=b.lineHeight&&!b.wrapText?b.lineHeight:b.textEl.offsetHeight})};
_.d.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var b=document.createRange(),h=_.$x(this.textEl).children;h.length>0?b.selectNodeContents(h[0]):b.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(b.getBoundingClientRect().width)+"px"}};
_.d.computeChannelBadgeStyle=function(b){var h;if((b==null?0:(h=b.runs)==null?0:h.length)&&b.runs[0].textColor)return"--ytd-badge-icon-color:"+_.eI(b.runs[0].textColor)+";"};
_.tm.Object.defineProperties(BD.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"?_.mk(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var b=this.get("badges.0.metadataBadgeRenderer.tooltip");if(b)return b}return _.vi(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
BD.prototype.onLineHeightChanged=BD.prototype.onLineHeightChanged;BD.prototype.onHeightChanged=BD.prototype.onHeightChanged;BD.prototype.onChannelNameChanged=BD.prototype.onChannelNameChanged;_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],BD.prototype,"ytActionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],BD.prototype,"badges",void 0);_.V([_.C(),_.f("design:type",Object)],BD.prototype,"channelName",void 0);
_.V([_.C(),_.f("design:type",Object)],BD.prototype,"noEndpoints",void 0);_.V([_.C(),_.f("design:type",Object)],BD.prototype,"wrapText",void 0);_.V([_.C(),_.f("design:type",Object)],BD.prototype,"forceVerified",void 0);_.V([_.C(),_.f("design:type",Object)],BD.prototype,"tooltipPosition",void 0);_.V([_.C(),_.f("design:type",String)],BD.prototype,"tooltip",void 0);_.V([_.C(),_.f("design:type",Boolean)],BD.prototype,"hasChannelArt",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],BD.prototype,"compactStyle",void 0);_.V([_.to("#text-container"),_.f("design:type",HTMLElement)],BD.prototype,"textContainerEl",void 0);_.V([_.to("#text"),_.f("design:type",Object)],BD.prototype,"textEl",void 0);_.V([_.to("#verified-tooltip"),_.f("design:type",HTMLElement)],BD.prototype,"verifiedTooltip",void 0);_.V([_.C(),_.f("design:type",Object)],BD.prototype,"height",void 0);
_.V([_.C(),_.f("design:type",Object)],BD.prototype,"lineHeight",void 0);_.V([_.C({reflectToAttribute:!0}),_.W("badges","forceVerified"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],BD.prototype,"verified",null);_.V([_.W("badges","verified"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],BD.prototype,"hideBadges",null);_.V([_.W("channelName"),_.f("design:type",Object),_.f("design:paramtypes",[])],BD.prototype,"formattedName",null);
_.V([_.W("badges","verified","formattedName"),_.f("design:type",String),_.f("design:paramtypes",[])],BD.prototype,"tooltipText",null);_.V([_.W("hasChannelArt"),_.f("design:type",String),_.f("design:paramtypes",[])],BD.prototype,"tooltipOffset",null);_.V([_.OB("channelName"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],BD.prototype,"onChannelNameChanged",null);
_.V([_.OB("height"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],BD.prototype,"onHeightChanged",null);_.V([_.OB("lineHeight","height"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],BD.prototype,"onLineHeightChanged",null);_.V([_.Yx({is:"ytd-channel-name",disableElementRegistration:!0})],BD);
_.k(BD,"ytd-channel-name",function(){if(R_w!==void 0)return R_w;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return R_w=b},{mode:_.Lt("kevlar_poly_si_batch_j036")?1:2});var WD=function(){var b=_.g.apply(this,arguments)||this;b.standardizeIconSize=_.r("kevlar_system_icons");return b};
_.z(WD,_.g);WD.prototype.basicPaletteChanged=function(){var b;(b=this.data.color)!=null&&b.basicColorPaletteData&&_.IF(this.hostElement,this.data.color.basicColorPaletteData)};
WD.prototype.useFilledIcons=function(b){return _.r("kevlar_system_icons")&&(b==="CHECK_CIRCLE_THICK"||b==="OFFICIAL_ARTIST_BADGE")};
_.tm.Object.defineProperties(WD.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var b,h,y;return this.data.authorCreator||((b=this.data)==null?void 0:(h=b.color)==null?void 0:(y=h.basicColorPaletteData)==null?void 0:y.backgroundColor)}}});
WD.prototype.basicPaletteChanged=WD.prototype.basicPaletteChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],WD.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],WD.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],WD.prototype,"standardizeIconSize",void 0);_.V([_.C({reflectToAttribute:!0}),_.W("data.authorUnifiedVerified"),_.f("design:type",Object),_.f("design:paramtypes",[])],WD.prototype,"verified",null);
_.V([_.C({reflectToAttribute:!0}),_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],WD.prototype,"creator",null);_.V([_.OB("data.color.basicColorPaletteData"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],WD.prototype,"basicPaletteChanged",null);_.V([_.Yx({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],WD);
_.k(WD,"ytd-author-comment-badge-renderer",function(){if(c$M!==void 0)return c$M;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return c$M=b},{mode:1});var D2b;var Ap=function(){return _.g.apply(this,arguments)||this};
_.z(Ap,_.g);Ap.prototype.computeThumbnailWidth=function(b){if(b==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Ap.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Ap.prototype,"data",void 0);_.V([_.C({computed:"computeIcon_(data.icon)"}),_.f("design:type",String)],Ap.prototype,"icon",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",String)],Ap.prototype,"surface",void 0);
_.V([_.C({reflectToAttribute:!0,value:_.r("enable_shrink_image_size_on_web_posts_singleton")}),_.f("design:type",Boolean)],Ap.prototype,"searchSxsUx",void 0);_.V([_.C({reflectToAttribute:!0,value:_.r("enable_community_page_on_desktop")}),_.f("design:type",Boolean)],Ap.prototype,"useSmallerPostImageAttachments",void 0);_.V([_.Yx({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],Ap);
_.k(Ap,"ytd-backstage-image-renderer",function(){if(D2b!==void 0)return D2b;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return D2b=b},{mode:1});var Iza;var Uz=function(){var b=_.g.apply(this,arguments)||this;b.isLoading=!1;b.selectedItemIndex=-1;return b};
_.z(Uz,_.g);_.d=Uz.prototype;_.d.computeIsChannelOwner=function(b){if(!b)return!0;b=b[0];return!(b&&(b.signinEndpoint||b.selectServiceEndpoint))};
_.d.computeIsImagePoll=function(b){return(b==null?void 0:b.type)==="POLL_TYPE_IMAGE"};
_.d.computeIsTotalVotesDisabled=function(b){return!(b==null?0:b.totalVotes)};
_.d.thumbnailSrc=function(b){var h,y,S,F;return(b==null?0:(h=b.thumbnails)==null?0:(y=h[0])==null?0:y.url)?_.lJ((S=b.thumbnails)==null?void 0:(F=S[0])==null?void 0:F.url):void 0};
_.d.progressWidth=function(b){return"width:"+(b?b*100:0)+"%;"};
_.d.textAreaWidth=function(b){return this.isImagePoll?null:"width:"+(b?b*100:0)+"%;"};
_.d.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.d.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var b=this.data.choices,h=0;h<b.length;h++)if(b[h].selected){this.selectedItemIndex=h;break}};
_.d.onPopupClosed=function(b,h){b=Number(this.pollVotes.selected);h.confirmed&&(this.selectChoice(b,!1),_.F8(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.d.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.d.onYtCommentPollRevert=function(b,h){h&&(this.selectChoice(h.selectedChoiceIndex,!0),this.set("data.totalVotes",h.totalVotes))};
_.d.onYtServiceRequestSent=function(b,h){if(h.actions)for(b=0;b<h.actions.length;b++){var y=h.actions[b];_.c(y,hT)&&this.set("data.totalVotes",_.c(y,hT).totalVotes)}};
_.d.onYtServiceRequestCompleted=function(b){var h=this.get("detail.data.actionResults.0.feedback",b);b=this.get("detail.data.actionResults.0.status",b);if(h==="FEEDBACK_DESELECT"||h==="FEEDBACK_SELECT")this.isLoading=!1,b==="STATUS_FAILED"?_.Sx(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.d.getEndpoint=function(b,h){return h===b?this.data.choices[h].deselectServiceEndpoint||null:this.data.choices[b].selectServiceEndpoint||null};
_.d.selectChoice=function(b,h){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var y=0;y<this.data.choices.length;y++){var S;if(b===this.selectedItemIndex){var F=!1;var a=S=null}else S=(F=y===b)?this.data.choices[y].voteRatioIfSelected:this.data.choices[y].voteRatioIfNotSelected,a=F?this.data.choices[y].votePercentageIfSelected:this.data.choices[y].votePercentageIfNotSelected;this.set("data.choices."+y+".voteRatio",S);
this.set("data.choices."+y+".votePercentage",a);this.set("data.choices."+y+".selected",F)}h||(this.isLoading=!0,(h=this.getEndpoint(b,this.selectedItemIndex))&&_.H9().resolve(_.OM).resolveCommand(h,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===b?-1:b};
_.tm.Object.defineProperties(Uz.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
Uz.prototype.onYtServiceRequestCompleted=Uz.prototype.onYtServiceRequestCompleted;Uz.prototype.onYtServiceRequestSent=Uz.prototype.onYtServiceRequestSent;Uz.prototype.onYtCommentPollRevert=Uz.prototype.onYtCommentPollRevert;Uz.prototype.onPopupClosed=Uz.prototype.onPopupClosed;Uz.prototype.dataChanged=Uz.prototype.dataChanged;_.V([_.B(_.Rb),_.f("design:type",Object)],Uz.prototype,"paperItemBehavior",void 0);
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Uz.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Y9),_.f("design:type",Object)],Uz.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Uz.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],Uz.prototype,"isLoading",void 0);_.V([_.C({computed:"computeIsChannelOwner(data.choices)"}),_.f("design:type",Boolean)],Uz.prototype,"isChannelOwner",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.f("design:type",Boolean)],Uz.prototype,"isImagePoll",void 0);_.V([_.C({computed:"computeIsTotalVotesDisabled(data)"}),_.f("design:type",Boolean)],Uz.prototype,"isTotalVotesDisabled",void 0);_.V([_.C(),_.f("design:type",Object)],Uz.prototype,"previousPollInfo",void 0);_.V([_.C(),_.f("design:type",Object)],Uz.prototype,"selectedItemIndex",void 0);_.V([_.to("#poll-votes"),_.f("design:type",Object)],Uz.prototype,"pollVotes",void 0);
_.V([_.W("isChannelOwner"),_.f("design:type",Object),_.f("design:paramtypes",[])],Uz.prototype,"endpointStyle",null);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Uz.prototype,"dataChanged",null);_.V([_.u3("yt-popup-closed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,Object]),_.f("design:returntype")],Uz.prototype,"onPopupClosed",null);
_.V([_.u3("yt-comment-poll-revert"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,Object]),_.f("design:returntype")],Uz.prototype,"onYtCommentPollRevert",null);_.V([_.u3("yt-service-request-sent"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,_.kE]),_.f("design:returntype")],Uz.prototype,"onYtServiceRequestSent",null);
_.V([_.u3("yt-service-request-completed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],Uz.prototype,"onYtServiceRequestCompleted",null);_.V([_.Yx({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],Uz);
_.k(Uz,"ytd-backstage-poll-renderer",function(){if(Iza!==void 0)return Iza;var b=document.createElement("template");_.D(b,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-poll-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-poll-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="poll-votes" on-iron-select="onPollChoiceSelected" class="style-scope ytd-backstage-poll-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-poll-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-poll-renderer" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="option" aria-selected$="[[item.selected]]">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-poll-renderer" name="[[index]]" selected$="[[item.selected]]" show-percentage$="[[item.votePercentage]]">\n        <template is="dom-if" if="[[!isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <tp-yt-paper-button class="check-icons style-scope ytd-backstage-poll-renderer" hidden="[[isChannelOwner]]">\n            <yt-icon hidden="[[item.selected]]" icon="radio-button-unchecked" class="style-scope ytd-backstage-poll-renderer"></yt-icon>\n            <yt-icon class="checked style-scope ytd-backstage-poll-renderer" hidden="[[!item.selected]]" icon="check-circle" default-to-filled="true"></yt-icon>\n          </tp-yt-paper-button>\n        </template>\n        <template is="dom-if" if="[[isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <img class="choice-image style-scope ytd-backstage-poll-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n        </template>\n        <div class="choice-info style-scope ytd-backstage-poll-renderer">\n          <div class="text-area style-scope ytd-backstage-poll-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-poll-renderer" text="[[item.text]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="vote-percentage style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n            </yt-formatted-string>\n          </div>\n          <div class="vote-percentage-area style-scope ytd-backstage-poll-renderer" style$="[[textAreaWidth(item.voteRatio)]]">\n          </div>\n          <div class="progress-bar style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" style$="[[progressWidth(item.voteRatio)]]">\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return Iza=b},{mode:2});var B9a;var W9b={autoplay:!1,loop:!1},A$P={simpleText:""},pk=function(){var b=_.g.apply(this,arguments)||this;b.isLoading=!1;b.usesPanelLockup=!1;b.selectedItemIndex=-1;b.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},W9b,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});b.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},W9b,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});b.correctnessAnimationProps=[];b.correctnessAnimationRefs=[];return b};
_.z(pk,_.g);_.d=pk.prototype;_.d.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.d.computeIsChannelOwner=function(b){if(!b)return!0;b=b[0];return!(b&&(b.signinEndpoint||b.selectServiceEndpoint))};
_.d.computeIsTotalVotesDisabled=function(b){return!(b==null?0:b.totalVotes)};
_.d.computeIsImageQuiz=function(b){return(b==null?void 0:b.type)==="POLL_TYPE_IMAGE"};
_.d.onExplanationChanged=function(){this.expander.reset()};
_.d.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var b=this.data.choices;if(b){this.maybeInitializeQuizLotties(b);for(var h=0;h<b.length;h++)if(b[h].isSelected||this.isChannelOwner&&b[h].isCorrect){this.selectedItemIndex=h;return}this.selectedItemIndex=-1}}};
_.d.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var b=this.selectedItemIndex,h=Number(this.quizVotes.selected);this.selectChoice(h);this.sendVoteAction(h,b);this.quizVotes.selected=-1;var y;b=!((y=this.data)==null?0:y.enableAnimation);this.maybePlayAnswerAnimations(b)}};
_.d.onYtCommentPollRevert=function(b,h){h&&(this.selectChoice(h.selectedChoiceIndex),this.set("data.totalVotes",h.totalVotes))};
_.d.onYtServiceRequestSent=function(b,h){if(h.actions)for(b=_.L(h.actions),h=b.next();!h.done;h=b.next())(h=_.c(h.value,hT))&&this.set("data.totalVotes",h.totalVotes)};
_.d.onYtServiceRequestCompleted=function(b){var h=this.get("detail.data.actionResults.0.feedback",b);b=this.get("detail.data.actionResults.0.status",b);if(h==="FEEDBACK_DESELECT"||h==="FEEDBACK_SELECT")this.isLoading=!1,b==="STATUS_FAILED"?_.Sx(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.d.getAnimationPropsForChoiceIndex=function(b,h){return h[b]};
_.d.maybePlayAnswerAnimations=function(b){b=b===void 0?!1:b;var h;if((h=this.data)!=null&&h.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){h=_.L(this.correctnessAnimationRefs);for(var y=h.next();!y.done;y=h.next()){var S=void 0,F=void 0;(S=y.value)==null||(F=S.lottieEl)==null||F.stop()}if(!(this.selectedItemIndex<0)){h=0;b&&(h=this.isCorrect?37:25);var a,P;(a=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(P=a.lottieEl)==null||P.goToAndPlay(b?h:0,!0);if(!(this.isCorrect||
(a=this.data.choices.findIndex(function(u){return u.isCorrect}),a<0))){var K,n;
(n=(K=this.correctnessAnimationRefs[a])==null?void 0:K.lottieEl)==null||n.goToAndPlay(37,!0);var X;K=(X=this.fadeContainers)==null?void 0:X.item(a);!b&&K&&this.fadeIn(K)}}}};
_.d.thumbnailSrc=function(b){var h,y,S,F;return(b==null?0:(h=b.thumbnails)==null?0:(y=h[0])==null?0:y.url)?_.lJ((S=b.thumbnails)==null?void 0:(F=S[0])==null?void 0:F.url):void 0};
_.d.a11yVotedText=function(b,h){var y,S,F=((y=this.data)==null?void 0:(S=y.correctVotedText)==null?void 0:S.simpleText)||"",a,P;y=((a=this.data)==null?void 0:(P=a.votedText)==null?void 0:P.simpleText)||"";if(!h)return"";var K,n;if((K=this.data)==null?0:(n=K.choices)==null?0:n[b].isCorrect)return F;var X,u;return((X=this.data)==null?0:(u=X.choices)==null?0:u[b].isSelected)?y:""};
_.d.getEndpoint=function(b,h){return h===b?this.data.choices[b].deselectServiceEndpoint||null:this.data.choices[b].selectServiceEndpoint||null};
_.d.sendVoteAction=function(b,h){if(b=this.getEndpoint(b,h))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(b)};
_.d.selectChoice=function(b){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var h=0;h<this.data.choices.length;h++)this.set("data.choices."+h+".isSelected",b===this.selectedItemIndex?!1:h===b);this.selectedItemIndex=this.selectedItemIndex===b?-1:b};
_.d.maybeInitializeQuizLotties=function(b){var h=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=b.map(function(y){return{animationConfig:y.isCorrect?h.baseCorrectLottiePlayerAnimationConfig:h.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){h.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(y){return y.animationRef||{}})};
_.d.fadeIn=function(b){b.classList.add("fade-in");_.js(_.xP,function(){b.classList.remove("fade-in")},900)};
_.tm.Object.defineProperties(pk.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.r("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.vi(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 b,h;return((b=this.data)==null?void 0:(h=b.choices)==null?void 0:h.some(function(y){return y.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var b;return(b=this.data)==null||!b.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?A$P:this.data.choices[this.selectedItemIndex].explanation||A$P}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var b;return(b=this.data)==null||!b.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
pk.prototype.onYtServiceRequestCompleted=pk.prototype.onYtServiceRequestCompleted;pk.prototype.onYtServiceRequestSent=pk.prototype.onYtServiceRequestSent;pk.prototype.onYtCommentPollRevert=pk.prototype.onYtCommentPollRevert;pk.prototype.dataChanged=pk.prototype.dataChanged;pk.prototype.onExplanationChanged=pk.prototype.onExplanationChanged;_.V([_.B(_.Rb),_.f("design:type",Object)],pk.prototype,"paperItemBehavior",void 0);
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],pk.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],pk.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.UG.YtTaskEmitterBehavior),_.f("design:type",Object)],pk.prototype,"ytTaskEmitterBehavior",void 0);_.V([_.B(_.Y9),_.f("design:type",Object)],pk.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],pk.prototype,"data",void 0);
_.V([_.C(),_.f("design:type",Object)],pk.prototype,"isLoading",void 0);_.V([_.C(),_.f("design:type",Object)],pk.prototype,"usesPanelLockup",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.f("design:type",Boolean)],pk.prototype,"isChannelOwner",void 0);_.V([_.C({computed:"computeIsTotalVotesDisabled(data)"}),_.f("design:type",Boolean)],pk.prototype,"isTotalVotesDisabled",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.f("design:type",Boolean)],pk.prototype,"isImageQuiz",void 0);_.V([_.C(),_.f("design:type",Object)],pk.prototype,"previousQuizInfo",void 0);_.V([_.C(),_.f("design:type",Object)],pk.prototype,"selectedItemIndex",void 0);_.V([_.C({reflectToAttribute:!0}),_.W("data","usesPanelLockup"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],pk.prototype,"shouldUseModernUi",null);
_.V([_.ry(".fade-container"),_.f("design:type",Object)],pk.prototype,"fadeContainers",void 0);_.V([_.C(),_.f("design:type",Array)],pk.prototype,"correctnessAnimationProps",void 0);_.V([_.W("explanation","showCorrectAnswer"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],pk.prototype,"showExplanation",null);_.V([_.W("isChannelOwner","isAttempted"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],pk.prototype,"showCorrectAnswer",null);
_.V([_.W("isChannelOwner","isAttempted","data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],pk.prototype,"isQuizAnsweringDisabled",null);_.V([_.W("isQuizAnsweringDisabled"),_.f("design:type",Object),_.f("design:paramtypes",[])],pk.prototype,"endpointStyle",null);_.V([_.W("data","selectedItemIndex"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],pk.prototype,"isAttempted",null);
_.V([_.W("data","selectedItemIndex"),_.f("design:type",Object),_.f("design:paramtypes",[])],pk.prototype,"explanation",null);_.V([_.W("data","selectedItemIndex"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],pk.prototype,"isCorrect",null);_.V([_.to("ytd-expander"),_.f("design:type",Object)],pk.prototype,"expander",void 0);_.V([_.to("#quiz-votes"),_.f("design:type",Object)],pk.prototype,"quizVotes",void 0);
_.V([_.OB("explanation"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],pk.prototype,"onExplanationChanged",null);_.V([_.OB("data","isChannelOwner"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],pk.prototype,"dataChanged",null);_.V([_.u3("yt-comment-quiz-revert"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,Object]),_.f("design:returntype")],pk.prototype,"onYtCommentPollRevert",null);
_.V([_.u3("yt-service-request-sent"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,_.kE]),_.f("design:returntype")],pk.prototype,"onYtServiceRequestSent",null);_.V([_.u3("yt-service-request-completed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],pk.prototype,"onYtServiceRequestCompleted",null);_.V([_.Yx({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],pk);
_.k(pk,"ytd-backstage-quiz-renderer",function(){if(B9a!==void 0)return B9a;var b=document.createElement("template");_.D(b,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-quiz-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="quiz-votes" on-iron-select="onQuizChoiceSelected" class="style-scope ytd-backstage-quiz-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-quiz-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="button">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" attempted$="[[isAttempted]]" correct$="[[item.isCorrect]]" is-channel-owner$="[[isChannelOwner]]" name="[[index]]" role="button" selected$="[[item.isSelected]]" show-correct-answer$="[[showCorrectAnswer]]">\n        <div class="choice-info style-scope ytd-backstage-quiz-renderer">\n          <template is="dom-if" if="[[isImageQuiz]]" class="style-scope ytd-backstage-quiz-renderer">\n            <img class="choice-image style-scope ytd-backstage-quiz-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n          </template>\n          <div class="text-area style-scope ytd-backstage-quiz-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-quiz-renderer" text="[[item.text]]"> </yt-formatted-string>\n            \n            <div class="a11y-voted-text style-scope ytd-backstage-quiz-renderer" aria-label$="[[a11yVotedText(index, isAttempted)]]"> </div>\n            \n            <span style="user-select: none" class="style-scope ytd-backstage-quiz-renderer"> \u00a0 </span>\n            <div class="voted-box style-scope ytd-backstage-quiz-renderer">\n              <yt-formatted-string class="vote-percentage style-scope ytd-backstage-quiz-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n              </yt-formatted-string>\n              <div class="fade-container animation-container style-scope ytd-backstage-quiz-renderer">\n                <ytd-lottie-player class="correctness-lottie style-scope ytd-backstage-quiz-renderer" data="[[getAnimationPropsForChoiceIndex(index, correctnessAnimationProps)]]">\n                </ytd-lottie-player>\n              </div>\n            </div>\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n<div class="explanation-box style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" hidden="[[!showExplanation]]">\n  <yt-formatted-string class="explanation-header style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" text="[[data.explanationHeaderText]]">\n  </yt-formatted-string>\n  <ytd-expander id="expander" max-number-of-lines="3" class="style-scope ytd-backstage-quiz-renderer">\n    <yt-formatted-string class="choice-explanation style-scope ytd-backstage-quiz-renderer" slot="content" force-default-style="" text="[[explanation]]">\n    </yt-formatted-string>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="more-button">[[getSimpleString(data.explanationExpandText)]]</span>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="less-button">[[getSimpleString(data.explanationCollapseText)]]</span>\n  </ytd-expander>\n</div>\n');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return B9a=b},{mode:1});var U2P;var Jp=function(){return _.g.apply(this,arguments)||this};
_.z(Jp,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Jp.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Jp.prototype,"data",void 0);_.V([_.Yx({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],Jp);
_.k(Jp,"ytd-post-uploaded-video-renderer",function(){if(U2P!==void 0)return U2P;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return U2P=b},{mode:1});var phM;var e9=function(){return _.g.apply(this,arguments)||this};
_.z(e9,_.g);e9.prototype.useFilledIcons=function(b){return b==="SPONSORSHIP_STAR"};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],e9.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],e9.prototype,"data",void 0);_.V([_.Yx({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],e9);
var J$e=_.$S()(e9,"ytd-sponsors-only-badge-renderer",function(){if(phM===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);phM=b}b=phM;return b},{allowedProps:["data"],
mode:1});var e_7;var Ck=function(){return _.g.apply(this,arguments)||this};
_.z(Ck,_.g);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],Ck.prototype,"componentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Ck.prototype,"data",void 0);_.V([_.Yx({is:"ytd-child-video-renderer",disableElementRegistration:!0})],Ck);
_.k(Ck,"ytd-child-video-renderer",function(){if(e_7!==void 0)return e_7;var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return e_7=b},{mode:1});var C1b;var gtW;var g7=function(){var b=_.g.apply(this,arguments)||this;b.size=0;b.fallbackImageSize={height:void 0,width:9999};b.webModernCollections=!1;return b};
_.z(g7,_.g);_.d=g7.prototype;_.d.computeBlurredImageSize=function(b){return b?{height:b*2,width:b*2}:this.fallbackImageSize};
_.d.computeImageSize=function(b){return b?{height:b,width:b}:this.fallbackImageSize};
_.d.computeObjectFit=function(b){return b?"FILL":"CONTAIN"};
_.d.computePreserve=function(b){return b?!0:!1};
_.d.setBackground=function(){var b,h;if((b=this.data)==null?0:(h=b.thumbnail)==null?0:h.sampledThumbnailColor)b=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+b.red+","+b.green+","+b.blue+",1)"};
g7.prototype.setBackground=g7.prototype.setBackground;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],g7.prototype,"ytRendererBehavior",void 0);_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],g7.prototype,"watchFeedThumbnail",void 0);_.V([_.C(),_.f("design:type",Object)],g7.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],g7.prototype,"size",void 0);
_.V([_.C({computed:"computeBlurredImageSize(size)"}),_.f("design:type",Object)],g7.prototype,"blurredImageSize",void 0);_.V([_.C({computed:"computeImageSize(size)"}),_.f("design:type",Object)],g7.prototype,"imageSize",void 0);_.V([_.C({computed:"computePreserve(size)"}),_.f("design:type",String)],g7.prototype,"preserve",void 0);_.V([_.C({computed:"computeObjectFit(size)"}),_.f("design:type",String)],g7.prototype,"objectFit",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],g7.prototype,"webModernCollections",void 0);_.V([_.OB("data.thumbnail.sampledThumbnailColor"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],g7.prototype,"setBackground",null);_.V([_.Yx({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],g7);
_.k(g7,"ytd-playlist-custom-thumbnail-renderer",function(){if(gtW!==void 0)return gtW;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return gtW=b},{mode:1});var sCa;var sz=function(){return _.g.apply(this,arguments)||this};
_.z(sz,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],sz.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],sz.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Number)],sz.prototype,"width",void 0);_.V([_.Yx({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],sz);
_.k(sz,"ytd-playlist-video-thumbnail-renderer",function(){if(sCa!==void 0)return sCa;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return sCa=b},{mode:1});var YrG;var Yo=function(){return _.g.apply(this,arguments)||this};
_.z(Yo,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Yo.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Yo.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Number)],Yo.prototype,"width",void 0);_.V([_.Yx({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],Yo);
_.k(Yo,"ytd-show-custom-thumbnail-renderer",function(){if(YrG!==void 0)return YrG;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return YrG=b},{mode:1});var T97;var T_=function(){return _.g.apply(this,arguments)||this};
_.z(T_,_.g);T_.prototype.useFilledIcons=function(b){return b==="MUSIC"||b==="COURSE"};
T_.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=gq(this.overlayColor,"0.8");else if(this.overlayColor){var b=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+b.red+","+b.green+","+b.blue+",0.8)"}};
_.tm.Object.defineProperties(T_.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)}}});
T_.prototype.overlayColorChanged=T_.prototype.overlayColorChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],T_.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],T_.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],T_.prototype,"overlayColor",void 0);_.V([_.C({reflectToAttribute:!0}),_.W("data.icon","data.text"),_.f("design:type",Object),_.f("design:paramtypes",[])],T_.prototype,"overlayStyle",null);
_.V([_.C({reflectToAttribute:!0}),_.W("data.icon","data.text"),_.f("design:type",Object),_.f("design:paramtypes",[])],T_.prototype,"overlayTextStyle",null);_.V([_.OB("overlayColor"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],T_.prototype,"overlayColorChanged",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],T_);
_.k(T_,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(T97!==void 0)return T97;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return T97=b},{mode:1});var Ggw;var G_=function(){var b=_.g.apply(this,arguments)||this;b.active=!1;return b};
_.z(G_,_.g);G_.prototype.computeIsSpinnerHidden=function(b){return(b==null?void 0:b.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
G_.prototype.computeOverlayIcon=function(b){return(b==null?void 0:b.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(b==null?void 0:b.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],G_.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],G_.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],G_.prototype,"active",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],G_);
_.k(G_,"ytd-thumbnail-overlay-downloading-renderer",function(){if(Ggw!==void 0)return Ggw;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return Ggw=b},{mode:1});var kga;var ko=function(){return _.g.apply(this,arguments)||this};
_.z(ko,_.g);_.tm.Object.defineProperties(ko.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],ko.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],ko.prototype,"data",void 0);_.V([_.W("data.text"),_.f("design:type",Object),_.f("design:paramtypes",[])],ko.prototype,"text",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],ko);
_.k(ko,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(kga!==void 0)return kga;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return kga=b},{mode:1});var VBW,EtW=function(){if(VBW!==void 0)return VBW;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return VBW=b};var V$=function(){return _.g.apply(this,arguments)||this};
_.z(V$,_.g);_.tm.Object.defineProperties(V$,{template:{configurable:!0,enumerable:!0,get:function(){return EtW()}}});
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],V$.prototype,"animateEqualizer",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],V$);_.$S()(V$,"ytd-thumbnail-overlay-equalizer",function(){return EtW()},{allowedProps:["animateEqualizer"],
mode:1});var i6a;var Ez=function(){var b=_.g.apply(this,arguments)||this;b.nowPlayingBadge=_.r("web_now_playing_badge");b.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return b};
_.z(Ez,_.g);Ez.prototype.activeChanged=function(){var b=this;_.r("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.Ob(this,function(){_.Sx(b.hostElement,"yt-playlist-lockup-now-playing-active",b)})};
Ez.prototype.onMiniplayerPlayStateChanged=function(b){var h,y=(h=_.c(_.h0().currentEndpoint,_.wO))==null?void 0:h.videoId;this.isVideoPlaying=b&&(_.r("web_limit_now_playing_animation_killswitch")||this.videoId===y)};
Ez.prototype.activeChanged=Ez.prototype.activeChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Ez.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],Ez.prototype,"ytActionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Ez.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Boolean)],Ez.prototype,"isVideoPlaying",void 0);_.V([_.C(),_.f("design:type",String)],Ez.prototype,"videoId",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],Ez.prototype,"equalizerOnly",void 0);_.V([_.C(),_.f("design:type",Boolean)],Ez.prototype,"isActive",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Ez.prototype,"nowPlayingBadge",void 0);_.V([_.OB("isActive"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Ez.prototype,"activeChanged",null);
_.V([_.Yx({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],Ez);
_.k(Ez,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(i6a!==void 0)return i6a;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return i6a=b},{mode:1});var fzN;var iU=function(){return _.g.apply(this,arguments)||this};
_.z(iU,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],iU.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],iU.prototype,"data",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],iU);
_.k(iU,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(fzN!==void 0)return fzN;var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return fzN=b},{mode:_.Lt("kevlar_poly_si_batch_j025")?1:2});var whe;var fk=function(){return _.g.apply(this,arguments)||this};
_.z(fk,_.g);fk.prototype.onDurationChanged=function(){var b,h;_.$x(this.hostElement).querySelector("#progress").style.width=((h=(b=this.data)==null?void 0:b.percentDurationWatched)!=null?h:0)+"%"};
fk.prototype.onDurationChanged=fk.prototype.onDurationChanged;_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],fk.prototype,"componentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],fk.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],fk.prototype,"isLive",void 0);_.V([_.OB("data.percentDurationWatched"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],fk.prototype,"onDurationChanged",null);
_.V([_.Yx({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],fk);
_.k(fk,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(whe!==void 0)return whe;var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return whe=b},{mode:1});var lza;var w7=function(){var b=_.g.apply(this,arguments)||this;b.bottomPanel=!1;b.richGridOverlay=!1;b.watchFeedOverlay=!1;b.isCompact=!1;return b};
_.z(w7,_.g);w7.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.tm.Object.defineProperties(w7.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var b,h;return((b=this.data)==null?void 0:(h=b.icon)==null?void 0:h.iconType)==="PLAY_ALL"&&_.r("kevlar_system_icons")}}});
w7.prototype.widthChanged=w7.prototype.widthChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],w7.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],w7.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Number)],w7.prototype,"width",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],w7.prototype,"bottomPanel",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],w7.prototype,"richGridOverlay",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],w7.prototype,"watchFeedOverlay",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],w7.prototype,"isCompact",void 0);_.V([_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],w7.prototype,"isIconFilled",null);_.V([_.OB("width","watchFeedOverlay"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],w7.prototype,"widthChanged",null);
_.V([_.Yx({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],w7);
_.k(w7,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(lza!==void 0)return lza;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return lza=b},{mode:1});var qr7;var x27=["CLIP","SHORTS"],lU=function(){var b=_.g.apply(this,arguments)||this;b.animated=_.r("animated_live_badge_icon");b.hasIcon=!1;b.updateTimerIntervalId=0;b.timeSinceLive=0;return b};
_.z(lU,_.g);_.d=lU.prototype;_.d.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.d.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.d.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.d.hasIconOrText=function(){var b,h;return!!(((b=this.data)==null?0:b.icon)||((h=this.data)==null?0:h.text))};
_.d.initializeLiveBadgeTimer=function(){var b=this,h,y=(h=this.liveBadgeData)==null?void 0:h.startTimestampSec;if(y&&this.canShowLiveBadgeTimer()){var S;h=Number((S=this.liveBadgeData)==null?void 0:S.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(y);this.updateTimerIntervalId=_.DI(function(){b.canShowLiveBadgeTimer()?b.timeSinceLive++:(b.timeSinceLive=0,window.clearInterval(b.updateTimerIntervalId))},h)}else this.timeSinceLive=0};
_.d.canShowLiveBadgeTimer=function(){var b=Date.now(),h,y;return b<(Number((h=this.liveBadgeData)==null?void 0:h.endTimestampSec)-1)*1E3&&b>Number((y=this.liveBadgeData)==null?void 0:y.startTimestampSec)*1E3};
_.tm.Object.defineProperties(lU.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){return this.data?_.ni4(this.data,this.timeSinceLive):{}}},
hideBadgeShape:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.hasIconOrText()||this.overlayType==="OPEN_IN_NEW_TAB"}},
overlayStyle:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.style)return this.data.style}},
liveBadgeData:{configurable:!0,enumerable:!0,get:function(){var b;return(b=this.data)==null?void 0:b.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 x27.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
lU.prototype.initializeLiveBadgeTimer=lU.prototype.initializeLiveBadgeTimer;lU.prototype.dataChanged=lU.prototype.dataChanged;_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],lU.prototype,"componentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],lU.prototype,"data",void 0);_.V([_.C({computed:"computeIcon_(data.icon)"}),_.f("design:type",String)],lU.prototype,"icon",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],lU.prototype,"animated",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.f("design:type",Boolean)],lU.prototype,"hideTimeStatus",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],lU.prototype,"hasIcon",void 0);_.V([_.C(),_.f("design:type",Object)],lU.prototype,"timeSinceLive",void 0);_.V([_.W("data","timeSinceLive"),_.f("design:type",Object),_.f("design:paramtypes",[])],lU.prototype,"badgeShapeData",null);
_.V([_.W("data","overlayType"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],lU.prototype,"hideBadgeShape",null);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],lU.prototype,"dataChanged",null);_.V([_.C({reflectToAttribute:!0}),_.W("data.style"),_.f("design:type",Object),_.f("design:paramtypes",[])],lU.prototype,"overlayStyle",null);
_.V([_.W("data.liveBadgeData"),_.f("design:type",Object),_.f("design:paramtypes",[])],lU.prototype,"liveBadgeData",null);_.V([_.C({reflectToAttribute:!0}),_.W("data.type"),_.f("design:type",Object),_.f("design:paramtypes",[])],lU.prototype,"overlayType",null);_.V([_.W("overlayType","overlayStyle"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],lU.prototype,"useFilledIcon",null);
_.V([_.zj("liveBadgeData"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],lU.prototype,"initializeLiveBadgeTimer",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],lU);
_.k(lU,"ytd-thumbnail-overlay-time-status-renderer",function(){if(qr7!==void 0)return qr7;var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return qr7=b},{mode:_.Lt("kevlar_poly_si_batch_j035")?1:2});var QCP;var qp=function(){return _.g.apply(this,arguments)||this};
_.z(qp,_.g);qp.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"}}}}};
qp.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(b){if(this.hasPlaybackProgressBar)return{percentDurationWatched:b.percentDurationWatched}};
qp.prototype.computeHasPlaybackProgressBar=function(b){return!!b.percentDurationWatched&&b.percentDurationWatched>0};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],qp.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],qp.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],qp.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.f("design:type",Boolean)],qp.prototype,"hasPlaybackProgressBar",void 0);
_.V([_.Yx({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],qp);
_.k(qp,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(QCP!==void 0)return QCP;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return QCP=b},{mode:1});var m2P;var vtN=_.T(function(b){var h=b.data;var y=b.children;var S=function(){return!!h().doubleStack},F=function(){return!!h().includeStackHeight};
return _.M("yt-collections-stack",{class:"ytCollectionsStackHost",hidden:function(){return!h().experimentEnabled}},_.M(_.H,{cond:h,
then:function(){var a={};return _.M(_.OW,null,_.M(_.H,{cond:F,then:function(){var P={};return _.M("div",{class:_.P2("ytCollectionsStackSpacer",(P.ytCollectionsStackSpacerDoubleStack=S,P))})}}),_.M("div",{class:_.P2((a.ytCollectionsStackRelativeStack=F,a))},_.M(_.H,{cond:S,
then:function(){var P={};return _.M("div",{class:_.P2("ytCollectionsStackCollectionStack2",function(){return h().customClassName2ndStack},(P.ytCollectionsStackCollectionStack2ResponsiveMode=function(){return h().enableResponsiveMode},P)),
style:_.n9({"background-color":function(){return HVf(h())}})})}}),_.M("div",{class:_.P2("ytCollectionsStackCollectionStack1",function(){return h().customClassName1stStack},function(){return XKU(h().thumbnailSize?h().thumbnailSize:"medium")}),
style:_.n9({"background-color":function(){return HVf(h())}})}),y))}}))},"Da");_.yd(vtN,"yt-collections-stack",{props:{data:_.D4}});var xo=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};b.webModernCollections=!1;b.isSearch=!1;b.isDoubleStack=!1;b.thumbnailSize="medium";return b};
_.z(xo,_.g);_.d=xo.prototype;
_.d.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]]"}}}}}};
_.d.getThumbnailDetails=function(b){if(b!=null&&b.thumbnailRenderer){var h=b.thumbnailRenderer,y;if((y=h.playlistVideoThumbnailRenderer)==null?0:y.thumbnail)return h.playlistVideoThumbnailRenderer.thumbnail;var S;if((S=h.playlistCustomThumbnailRenderer)==null?0:S.thumbnail)return h.playlistCustomThumbnailRenderer.thumbnail;b=b.thumbnailRenderer;var F;if((F=b.showCustomThumbnailRenderer)==null?0:F.thumbnail)return b.showCustomThumbnailRenderer.thumbnail}};
_.d.computeOverlayColor=function(b){var h,y;if((h=this.getThumbnailDetails(b))==null?0:(y=h.darkColorPalette)==null?0:y.section2Color)return this.getThumbnailDetails(b).darkColorPalette.section2Color;var S;return(S=this.getThumbnailDetails(b))==null?void 0:S.sampledThumbnailColor};
_.d.computeWebModernCollections=function(b){if(b==null||!b.thumbnailOverlays)return!1;b=_.L(b.thumbnailOverlays);for(var h=b.next();!h.done;h=b.next()){var y=void 0;if((y=h.value)==null?0:y.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.d.computeNavigationEndpoint=function(b){return Ea4(b==null?void 0:b.navigationEndpoint)};
_.tm.Object.defineProperties(xo.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var b=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:b==null?void 0:b.sampledThumbnailColor,vibrantColorPalette:b==null?void 0:b.vibrantColorPalette,darkColorPalette:b==null?void 0:b.darkColorPalette,experimentEnabled:!0}}}});
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],xo.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],xo.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(jJb),_.f("design:type",Object)],xo.prototype,"ytdThumbnailBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],xo.prototype,"componentBehavior",void 0);
_.V([_.C({value:!1}),_.f("design:type",Boolean)],xo.prototype,"watchFeedThumbnail",void 0);_.V([_.C(),_.f("design:type",Number)],xo.prototype,"customThumbnailSize",void 0);_.V([_.C({value:!0}),_.f("design:type",Boolean)],xo.prototype,"hideAria",void 0);_.V([_.C(),_.f("design:type",Object)],xo.prototype,"data",void 0);_.V([_.C({computed:"computeOverlayColor(data)"}),_.f("design:type",Object)],xo.prototype,"overlayColor",void 0);
_.V([_.C({computed:"computeWebModernCollections(data)"}),_.f("design:type",Object)],xo.prototype,"webModernCollections",void 0);_.V([_.C({computed:"computeNavigationEndpoint(data)"}),_.f("design:type",Object)],xo.prototype,"computedNavigationEndpoint",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],xo.prototype,"isSearch",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],xo.prototype,"isDoubleStack",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",String)],xo.prototype,"thumbnailSize",void 0);_.V([_.W("data","isDoubleStack","thumbnailSize"),_.f("design:type",Object),_.f("design:paramtypes",[])],xo.prototype,"collectionStack",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],xo);
_.k(xo,"ytd-playlist-thumbnail",function(){if(m2P!==void 0)return m2P;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return m2P=b},{mode:_.Lt("kevlar_poly_si_batch_j025")?1:2});var b3w;_.yd(_.T(function(b){return _.M("yt-text-view-model",{class:_.P2("ytTextViewModelHost")},_.M(_.zv,{text:function(){return b.data().text}}))},"Ea"),"yt-text-view-model",{props:{data:_.D4}});var Q$=function(){var b=_.g.apply(this,arguments)||this;b.noEndpoints=!1;b.amsterdamPostMvp=_.r("web_amsterdam_post_mvp_playlists");b.badges=[];b.transferState="TRANSFER_STATE_UNKNOWN";return b};
_.z(Q$,_.g);_.d=Q$.prototype;_.d.configureRendererStamper=function(){return{"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.d.getMetadata=function(b){if(!b)return[];var h=[],y=b.shortViewCountText||b.viewCountText;y&&h.push(_.vi(y));b.publishedTimeText&&h.push(_.vi(b.publishedTimeText));b.upcomingEventData&&b.upcomingEventData.upcomingEventText&&h.push(_.BC(_.vi(b.upcomingEventData.upcomingEventText),Number(b.upcomingEventData.startTime)));return h};
_.d.observeDataForBylineSeparator=function(){this.data&&_.Zm(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.d.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.eI(this.metadataColor)};
_.d.getSimpleString=function(b){return _.vi(b)};
_.d.isBylineHidden=function(b){return this.noByline||!((b==null?0:b.longBylineText)||(b==null?0:b.shortBylineText))};
_.d.isMetadataHidden=function(b){var h;return((h=this.getMetadata(b))==null?void 0:h.length)===0};
_.d.isBylineMetadataSeparatorHidden=function(b){return this.isMetadataHidden(b)||!this.shouldShowVideoInfo};
_.d.isLongByline=function(b,h){return h&&!(b==null||!b.longBylineText)};
_.tm.Object.defineProperties(Q$.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var b;return this.amsterdamPostMvp&&!((b=this.data)==null||!b.videoInfo)}},
inlineBadgeClass:{configurable:!0,enumerable:!0,get:function(){return this.badges&&this.badges.length>0?"metadata-line-with-badge":""}},
longBylineClass:{configurable:!0,enumerable:!0,get:function(){return this.longByline?"long-byline":""}},
bylineText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.longByline?this.data.longBylineText:this.data.shortBylineText}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.data)==null||!b.attributedBylineText)}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.r("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
Q$.prototype.metadataColorChanged=Q$.prototype.metadataColorChanged;Q$.prototype.observeDataForBylineSeparator=Q$.prototype.observeDataForBylineSeparator;_.V([_.B(_.NT),_.f("design:type",Object)],Q$.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Q$.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Q$.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],Q$.prototype,"noEndpoints",void 0);
_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],Q$.prototype,"isSlimShort",void 0);_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],Q$.prototype,"radioMeta",void 0);_.V([_.C({selector:_.C9}),_.f("design:type",Object)],Q$.prototype,"isGridViewEnabled",void 0);_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],Q$.prototype,"richMeta",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Q$.prototype,"amsterdamPostMvp",void 0);
_.V([_.C(),_.f("design:type",Boolean)],Q$.prototype,"noByline",void 0);_.V([_.C({computed:"isLongByline(data, radioMeta)"}),_.f("design:type",Boolean)],Q$.prototype,"longByline",void 0);_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],Q$.prototype,"truncateMetadataLine",void 0);_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],Q$.prototype,"miniMode",void 0);_.V([_.C(),_.f("design:type",Number)],Q$.prototype,"metadataColor",void 0);
_.V([_.C(),_.f("design:type",Array)],Q$.prototype,"badges",void 0);_.V([_.C({selector:_.Y8,selectorArgs:["data.videoId"]}),_.f("design:type",String)],Q$.prototype,"transferState",void 0);_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],Q$.prototype,"isDownloading",void 0);_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],Q$.prototype,"typographyBump",void 0);_.V([_.to("#metadata-line"),_.f("design:type",HTMLElement)],Q$.prototype,"metadataLine",void 0);
_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Q$.prototype,"observeDataForBylineSeparator",null);_.V([_.OB("metadataColor"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Q$.prototype,"metadataColorChanged",null);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],Q$.prototype,"shouldShowVideoInfo",null);
_.V([_.W("badges"),_.f("design:type",String),_.f("design:paramtypes",[])],Q$.prototype,"inlineBadgeClass",null);_.V([_.W("longByline"),_.f("design:type",String),_.f("design:paramtypes",[])],Q$.prototype,"longBylineClass",null);_.V([_.W("data","longByline"),_.f("design:type",Object),_.f("design:paramtypes",[])],Q$.prototype,"bylineText",null);_.V([_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Q$.prototype,"hasAttributedBylineText",null);
_.V([_.W("isGridViewEnabled","data"),_.C({reflectToAttribute:!0}),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Q$.prototype,"watchFeedBigThumbs",null);_.V([_.Yx({is:"ytd-video-meta-block",disableElementRegistration:!0})],Q$);
_.k(Q$,"ytd-video-meta-block",function(){if(b3w!==void 0)return b3w;var b=document.createElement("template");_.D(b,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="metadata" class="style-scope ytd-video-meta-block">\n  <div id="byline-container" hidden="[[isBylineHidden(data, radioMeta)]]" class="style-scope ytd-video-meta-block">\n    <div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-video-meta-block"></div>\n    <ytd-channel-name id="channel-name" class$="[[longBylineClass]] style-scope ytd-video-meta-block" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" hidden="[[hasAttributedBylineText]]" no-endpoints="[[noEndpoints]]" wrap-text="[[longByline]]">\n    </ytd-channel-name>\n    <div id="separator" class="style-scope ytd-video-meta-block">\u2022</div>\n    <yt-formatted-string id="video-info" hidden="[[!shouldShowVideoInfo]]" text="[[data.videoInfo]]" class="style-scope ytd-video-meta-block">\n  </yt-formatted-string>\n  </div>\n  <div id="metadata-line" class="style-scope ytd-video-meta-block">\n    \n    <ytd-badge-supported-renderer class="inline-metadata-badge style-scope ytd-video-meta-block" badges="[[badges]]" hidden="[[!badges.length]]">\n    </ytd-badge-supported-renderer>\n    <div id="separator" hidden="[[isBylineMetadataSeparatorHidden(data)]]" class="style-scope ytd-video-meta-block">\u2022</div>\n    <template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-video-meta-block">\n      <span class="inline-metadata-item style-scope ytd-video-meta-block">[[item]]</span>\n    </template>\n  </div>\n</div>\n<div id="additional-metadata-line" class="style-scope ytd-video-meta-block">\n  <template is="dom-repeat" items="[[data.additionalMetadatas]]" class="style-scope ytd-video-meta-block"><span class="style-scope ytd-video-meta-block">[[getSimpleString(item)]]</span></template>\n</div>\n\n');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return b3w=b},{mode:_.Lt("kevlar_poly_si_batch_j080")?1:2});_.W2("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var mq=function(){var b=_.g.apply(this,arguments)||this;b.displayItemCount=2;b.isBackstagePlaylist=!1;b.isPostCompactPlaylist=!1;b.shouldShowChannelThumbnail=!1;return b};
_.z(mq,_.g);_.d=mq.prototype;_.d.computeFirstVideos=function(b,h){return b===void 0||h===void 0?[]:b.slice(0,h)};
_.d.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var b=this.data.thumbnailRenderer;b.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",b.playlistVideoThumbnailRenderer.thumbnail);b.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",b.playlistCustomThumbnailRenderer.thumbnail)}};
_.d.computeThumbnailHeight=function(b,h,y,S,F){return S?F==="BIG"?280:F==="MASSIVE"?337:234:y?240:h?72:b?118:138};
_.d.computeThumbnailWidth=function(b,h,y,S,F){return S?F==="MEDIUM"?450:F==="BIG"?500:F==="MASSIVE"?600:420:y?360:h?128:b?210:246};
_.d.computeUseBiggerThumbs=function(b){return b&&_.r("enable_desktop_search_bigger_thumbs")};
_.d.computeShouldShowChannelThumbnail=function(b,h){return b&&!(h==null||!h.channelThumbnail)};
_.tm.Object.defineProperties(mq.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
mq.prototype.dataChanged=mq.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],mq.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Wg),_.f("design:type",Object)],mq.prototype,"ytdLockupBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],mq.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],mq.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],mq.prototype,"displayItemCount",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],mq.prototype,"isBackstagePlaylist",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],mq.prototype,"isPostCompactPlaylist",void 0);_.V([_.C({value:!1,reflectToAttribute:!0}),_.f("design:type",Boolean)],mq.prototype,"isSearch",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.f("design:type",Boolean)],mq.prototype,"useBiggerThumbs",void 0);_.V([_.C({reflectToAttribute:!0,value:function(){return _.rH("desktop_search_bigger_thumbs_style")}}),
_.f("design:type",String)],mq.prototype,"biggerThumbsStyle",void 0);_.V([_.C({value:!1,reflectToAttribute:!0}),_.f("design:type",Boolean)],mq.prototype,"isDownloads",void 0);_.V([_.C({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.f("design:type",Object)],mq.prototype,"shouldShowChannelThumbnail",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],mq.prototype,"dataChanged",null);
_.V([_.W("isSearch"),_.f("design:type",String),_.f("design:paramtypes",[])],mq.prototype,"stackThumbnailSize",null);_.V([_.Yx({is:"ytd-playlist-renderer",disableElementRegistration:!0})],mq);
_.k(mq,"ytd-playlist-renderer",function(){if(C1b===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);C1b=b}b=C1b;return b},{mode:1});var h5W;var ycW;var vD=function(){var b=_.g.apply(this,arguments)||this;b.startX=0;return b};
_.z(vD,_.g);vD.prototype.onEndpointMouseDown=function(b){this.startX=b.clientX};
vD.prototype.onEndpointClick=function(b){this.startX!==b.clientX&&(b.preventDefault(),b.stopPropagation())};
vD.prototype.computeObjectFit=function(b){return b==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||b==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||b==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
vD.prototype.computeCardStyle=function(b){return b?b.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.tm.Object.defineProperties(vD.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var b,h;return((b=this.data)==null?void 0:(h=b.searchRefinementCardRendererStyle)==null?void 0:h.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],vD.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],vD.prototype,"data",void 0);_.V([_.C({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.f("design:type",Number)],vD.prototype,"objectFit",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.f("design:type",String)],vD.prototype,"cardStyle",void 0);
_.V([_.C({reflectToAttribute:!0,value:!0}),_.f("design:type",Boolean)],vD.prototype,"roundContainer",void 0);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],vD.prototype,"isAlbumCard",null);_.V([_.W("data","isAlbumCard"),_.f("design:type",Object),_.f("design:paramtypes",[])],vD.prototype,"collectionStack",null);_.V([_.Yx({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],vD);
_.k(vD,"ytd-search-refinement-card-renderer",function(){if(ycW!==void 0)return ycW;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return ycW=b},{mode:1});var Smw;var bH=function(){var b=_.g.apply(this,arguments)||this;b.isRichGrid=!1;return b};
_.z(bH,_.g);_.V([_.C(),_.f("design:type",Object)],bH.prototype,"data",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],bH.prototype,"componentBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],bH.prototype,"ytdReduxBehavior",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],bH.prototype,"isRichGrid",void 0);_.V([_.C({reflectToAttribute:!0,selector:_.Jt}),_.f("design:type",Boolean)],bH.prototype,"miniMode",void 0);
_.V([_.Yx({is:"ytd-game-details-renderer",disableElementRegistration:!0})],bH);
_.k(bH,"ytd-game-details-renderer",function(){if(Smw!==void 0)return Smw;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return Smw=b},{mode:1});var Faw;var akG;var hZ=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return b};
_.z(hZ,_.g);_.d=hZ.prototype;_.d.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.d.currentStateData=function(b){var h=b||this.data;return h&&h.states&&h.currentStateId!=null?h.states.find(function(y){return y.stateId===h.currentStateId})||null:null};
_.d.currentStateRendererData=function(b){return(b=this.currentStateData(b))&&b.state&&b.state.buttonRenderer?b.state.buttonRenderer:null};
_.d.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())};
_.d.computeButtonIcon=function(b){b=this.currentStateRendererData(b);var h;return(b==null?0:(h=b.icon)==null?0:h.iconType)?b.icon.iconType.toLowerCase():null};
_.d.computeAccessibility=function(b){return(b=this.currentStateRendererData(b))&&b.accessibilityData?b.accessibilityData.accessibilityData||null:null};
_.d.computeButtonClass=function(b){var h=this.currentStateRendererData(b);if(!h)return"";b="";var y=h.style;y&&(b+=y.toLowerCase().replace(/_/g,"-")+" ");(h=h.size)&&(b+=h.toLowerCase().replace(/_/g,"-")+" ");return b.trim()};
_.d.computeServiceEndpoint=function(b){if(!b)return null;var h=b&&b.serviceEndpoint,y=this.get("command.commandMetadata.webCommandMetadata.sendPost",b);return h?h:y&&b.command?b.command:null};
_.d.computeBellMenuItemParams=function(b){var h;b=(h=_.c(b==null?void 0:b.command,_.LI))==null?void 0:h.commands;if(!b||b.length===0)return null;h=_.c(b[0],_.yG);var y,S;return(h==null?0:(y=h.popup)==null?0:(S=y.menuPopupRenderer)==null?0:S.items)?h.popup.menuPopupRenderer.items.map(function(F){return F.menuServiceItemRenderer.trackingParams}):null};
_.d.handleBellMenuOpenSelectedAction=function(b){var h=b.trackingParams,y=this.computeBellMenuItemParams(this.data);this.data&&h&&y&&y.includes(h)&&this.ytRenderButtonBehavior._setButtonIcon(b.icon.iconType.toLowerCase())};
_.d.onYtServiceRequestCompleted=function(b,h){(b=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",h))&&this.set("data",b)};
_.d.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.d.resetState=function(){this.set("data.currentStateId",3)};
_.d.onYtButtonTapHandler=function(){if(this.data){var b=this.currentStateRendererData(this.data);b&&this.ytRendererBehavior.logExplicitClick(b)}};
hZ.prototype.onYtServiceRequestError=hZ.prototype.onYtServiceRequestError;hZ.prototype.onYtServiceRequestCompleted=hZ.prototype.onYtServiceRequestCompleted;hZ.prototype.stateChanged=hZ.prototype.stateChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],hZ.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],hZ.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.B(a$.YtRenderButtonBehavior),_.f("design:type",Object)],hZ.prototype,"ytRenderButtonBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],hZ.prototype,"data",void 0);_.V([_.zj("data","data.currentStateId"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],hZ.prototype,"stateChanged",null);
_.V([_.u3("yt-service-request-completed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,_.xE]),_.f("design:returntype")],hZ.prototype,"onYtServiceRequestCompleted",null);_.V([_.u3("yt-service-request-error"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],hZ.prototype,"onYtServiceRequestError",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],hZ);
_.k(hZ,"ytd-subscription-notification-toggle-button-renderer",function(){if(akG!==void 0)return akG;var b=document.createElement("template");_.D(b,"\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");b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return akG=b},{mode:1});var dvP;var yZ=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};b.tapHandler=function(){if(b.data){var h=b.currentStateRendererData();h&&b.ytRendererBehavior.logExplicitClick(h)}};
return b};
_.z(yZ,_.g);_.d=yZ.prototype;_.d.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.d.currentStateData=function(){var b=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(h){return h.stateId===b.data.currentStateId})||null:null};
_.d.currentStateRendererData=function(){var b=this.currentStateData();return b&&b.state&&b.state.buttonRenderer?b.state.buttonRenderer:null};
_.d.computeAccessibilityLabel=function(){var b,h,y;return(b=this.currentStateRendererData())==null?void 0:(h=b.accessibilityData)==null?void 0:(y=h.accessibilityData)==null?void 0:y.label};
_.d.computeBellMenuItemParams=function(){var b,h,y=(h=_.c((b=this.data)==null?void 0:b.command,_.LI))==null?void 0:h.commands;if(!y||y.length===0)return null;b=_.c(y[0],_.yG);var S,F;return(b==null?0:(S=b.popup)==null?0:(F=S.menuPopupRenderer)==null?0:F.items)?b.popup.menuPopupRenderer.items.map(function(a){return a.menuServiceItemRenderer.trackingParams}):null};
_.d.handleBellMenuOpenSelectedAction=function(b){var h=b.trackingParams,y=this.computeBellMenuItemParams();if(this.data&&h&&y&&y.includes(h)&&(b==null||!b.isDisabled)){var S;((S=_.c(b.serviceEndpoint,_.KI))==null?void 0:S.signal)!=="CLIENT_SIGNAL"&&(this.icon=b.icon.iconType)}};
_.d.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.d.onYtServiceRequestCompleted=function(b,h){if(b=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",h))this.icon=void 0,this.set("data",b)};
_.d.onYtServiceRequestError=function(){this.icon=void 0};
_.tm.Object.defineProperties(yZ.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var b=this.data,h=this.textLabel,y=this.hostElement,S=this.computeAccessibilityLabel(),F=this.tapHandler,a=this.isOverlay?"overlay":"mono",P=(b==null?0:b.disableButton)?"disabled":"active";h=h?_.ej(h):void 0;return{style:a,type:"tonal",state:P,size:"M",focused:!1,formattedButtonText:h,iconPosition:"leading-trailing",onTap:OVf(b,F,y),accessibilityLabel:S}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var b=this.currentStateRendererData(),h,y,S=(y=this.icon)!=null?y:b==null?void 0:(h=b.icon)==null?void 0:h.iconType;if(S)return _.o_(S)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var b,h,y=(b=this.data)==null?void 0:(h=b.secondaryIcon)==null?void 0:h.iconType;if(y)return _.o_(y)}}});
yZ.prototype.onYtServiceRequestError=yZ.prototype.onYtServiceRequestError;yZ.prototype.onYtServiceRequestCompleted=yZ.prototype.onYtServiceRequestCompleted;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],yZ.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],yZ.prototype,"ytActionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],yZ.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],yZ.prototype,"textLabel",void 0);
_.V([_.C(),_.f("design:type",String)],yZ.prototype,"icon",void 0);_.V([_.C(),_.f("design:type",Boolean)],yZ.prototype,"isOverlay",void 0);_.V([_.W("data.*","textLabel"),_.f("design:type",Object),_.f("design:paramtypes",[])],yZ.prototype,"computedButtonShape",null);_.V([_.W("data.*","icon"),_.f("design:type",Object),_.f("design:paramtypes",[])],yZ.prototype,"computedIcon",null);_.V([_.W("computedIcon"),_.f("design:type",Object),_.f("design:paramtypes",[])],yZ.prototype,"computedAnimateIcon",null);
_.V([_.W("data.*"),_.f("design:type",Object),_.f("design:paramtypes",[])],yZ.prototype,"computedSecondaryIcon",null);_.V([_.u3("yt-service-request-completed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,_.xE]),_.f("design:returntype")],yZ.prototype,"onYtServiceRequestCompleted",null);_.V([_.u3("yt-service-request-error"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],yZ.prototype,"onYtServiceRequestError",null);
_.V([_.Yx({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],yZ);
_.k(yZ,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(dvP!==void 0)return dvP;var b=document.createElement("template");_.D(b,'\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 dvP=b},{mode:_.Lt("kevlar_poly_si_batch_j081")?1:2});var jjo;_.yd(jCa,"yt-animated-action",{props:{backgroundLottieRef:_.D4,foregroundLottieRef:_.D4,wrapperClass:_.D4,disableAnimation:_.D4},unsafeExternallySettableAttributes:new Set(["key"])});var SU=function(){var b=_.g.apply(this,arguments)||this;b.animatedActionEnabled=_.r("web_animated_actions");b.foregroundLottieRef={};b.backgroundLottieRef={};b.forceIconOnly=!1;b.showTextWhileAnimating=!1;b.keyboardFocused=!1;b.isAnimating=!1;b.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return b};
_.z(SU,_.g);_.d=SU.prototype;_.d.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.d.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]]"}}}}}};
_.d.attached=function(){this.keyboardFocused=!1};
_.d.onYtServiceRequestSent=function(b,h){(this.get("endpoint.subscribeEndpoint",h)||this.get("endpoint.unsubscribeEndpoint",h))&&this.updateSubscriptionState(!this.subscribed)};
_.d.onYtServiceRequestCompleted=function(b,h){(b=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",h.data))&&this.bellButton&&(this.bellButton.data=b)};
_.d.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.nZ(this.hostElement)};
_.d.onPlayerSubscribe=function(b){this.isCompactRed()||b!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.d.onPlayerUnsubscribe=function(b){this.isCompactRed()||b!==this.data.channelId||this.updateSubscriptionState(!1)};
_.d.handleUpdateSubscribeButtonAction=function(b){b=_.c(b,mE7);var h;b&&b.channelId===((h=this.data)==null?void 0:h.channelId)&&this.updateSubscriptionState(!!b.subscribed)};
_.d.computeButtonStyle=function(b){return this.get("style.styleType",b)||null};
_.d.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.d.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.d.updateSubscriptionState=function(b){if(b!==this.subscribed){this.set("data.subscribed",b);var h,y=(h=this.data)==null?void 0:h.subscribedEntityKey;y&&this.ytdReduxBehavior.dispatch(_.R7("subscriptionStateEntity",y,{key:y,subscribed:b}));this.isCompactRed()||_.Sx(this.hostElement,"yt-subscription-changed",b);b||(_.F8(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!b),b&&this.hasBellButton&&this.startAnimation())}};
_.d.startAnimation=function(){var b=this;if(!this.isAnimating){var h=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var y;(y=this.backgroundLottieRef.lottieEl)==null||y.goToAndPlay(0);var S;(S=this.foregroundLottieRef.lottieEl)==null||S.goToAndPlay(0);_.xP.addJob(function(){b.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.xP.addJob(function(){b.updateContainerToFitContent(!!b.subscribed,!0)},2,1500);
_.xP.addJob(function(){b.isAnimating=!1},2,h)}};
_.d.maybeAnimateBellIcon=function(){var b=_.KZ(this.hostElement).querySelector("yt-animated-icon");if(b){var h;(h=b.animationRef.lottieEl)==null||h.goToAndPlay(0)}};
_.d.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.d.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.d.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var b;this.unsubscribedWidth=(b=this.subscribeButtonShape)==null?void 0:b.getBoundingClientRect().width}var h;this.subscribedWidth=(h=this.bellButton)==null?void 0:h.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.d.updateContainerToFitContent=function(b,h){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(b?(b=this.subscribedWidth,h=this.isAnimating&&!h,this.subscribedIconOnlyWidth===void 0||h||(b=this.subscribedIconOnlyWidth),this.hostElement.style.width=b+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.d.clearContainerSize=function(){this.hostElement.style.width=""};
_.d.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.d.maybeSetSubscribedButtonIconOnlyWidth=function(){var b=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 h;b.subscribedIconOnlyWidth=(h=b.bellButton)==null?void 0:h.getBoundingClientRect().width;requestAnimationFrame(function(){if(b.bellButton){var y;b.bellButton.textLabel=
(y=b.data)==null?void 0:y.subscribedButtonText}})})))};
_.tm.Object.defineProperties(SU.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 b;return(b=this.data)==null?void 0:b.subscribedButtonText}var h;return this.forceIconOnly?void 0:(h=this.data)==null?void 0:h.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var b,h,y=((b=this.data)==null?void 0:(h=b.timedAnimationData)==null?void 0:h.animationTiming)||[];return{uniqueId:"subscribe",timings:y,enabled:y.length>0&&!this.subscribed,experimentEnabled:y.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var b;return!this.subscribed&&((b=this.data)==null?void 0:b.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 b={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var h=b.renderer;var y=b.element;var S=b.subscribed;var F=b.commandController;var a=b.isOverlay;b=b.stopPropagation;var P=cwF(h,S);a&&(P.style="overlay");a=Object;var K=a.assign,n;a:switch((n=h.style)==null?void 0:n.styleType){case "COMPACT_GRAY":case "COMPACT_RED":n={size:"S"};break a;default:n={size:"M"}}var X=rwq(h,
S);var u=(u=S?h.subscribedButtonText:h.unsubscribedButtonText)?_.ej(u):void 0;return K.call(a,{},P,n,{focused:!1,toggled:S,accessibilityLabel:X,formattedButtonText:u,onTap:t0M(h,S,y,F,b)})}}}});
SU.prototype.onMouseDown=SU.prototype.onMouseDown;SU.prototype.onDataChanged=SU.prototype.onDataChanged;SU.prototype.observedSubscribed=SU.prototype.observedSubscribed;SU.prototype.onYtServiceRequestCompleted=SU.prototype.onYtServiceRequestCompleted;SU.prototype.onYtServiceRequestSent=SU.prototype.onYtServiceRequestSent;SU.prototype.maybeUpdateBellButtonText=SU.prototype.maybeUpdateBellButtonText;_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],SU.prototype,"ytComponentBehavior",void 0);
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],SU.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],SU.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],SU.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],SU.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],SU.prototype,"data",void 0);
_.V([_.C({selectorArgs:["data.subscribedEntityKey"],selector:Vuk}),_.f("design:type",Object)],SU.prototype,"subscriptionStateEntity",void 0);_.V([_.C({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.f("design:type",Boolean)],SU.prototype,"subscribed",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],SU.prototype,"branded",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],SU.prototype,"animatedActionEnabled",void 0);
_.V([_.C(),_.f("design:type",Object)],SU.prototype,"foregroundLottieRef",void 0);_.V([_.C(),_.f("design:type",Object)],SU.prototype,"backgroundLottieRef",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],SU.prototype,"overlayButton",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.f("design:type",Object)],SU.prototype,"buttonStyle",void 0);_.V([_.C(),_.f("design:type",Object)],SU.prototype,"forceIconOnly",void 0);
_.V([_.C(),_.f("design:type",Object)],SU.prototype,"showTextWhileAnimating",void 0);_.V([_.C({value:function(){return!!_.H9().resolve(_.XS(_.sG))&&_.r("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.f("design:type",Boolean)],SU.prototype,"useKeyboardFocused",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],SU.prototype,"keyboardFocused",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],SU.prototype,"isAnimating",void 0);_.V([_.W("data.notificationPreferenceButton.*"),_.f("design:type",Object),_.f("design:paramtypes",[])],SU.prototype,"hasBellButton",null);
_.V([_.OB("subscribedButtonText"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],SU.prototype,"maybeUpdateBellButtonText",null);_.V([_.W("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.f("design:type",Object),_.f("design:paramtypes",[])],SU.prototype,"subscribedButtonText",null);_.V([_.W("data.timedAnimationData.animationTiming","subscribed"),_.f("design:type",Object),_.f("design:paramtypes",[])],SU.prototype,"smartimationSettings",null);
_.V([_.C({reflectToAttribute:!0}),_.W("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.f("design:type",Object),_.f("design:paramtypes",[])],SU.prototype,"subscribeButtonHidden",null);_.V([_.C({reflectToAttribute:!0}),_.W("subscribed","hasBellButton"),_.f("design:type",Object),_.f("design:paramtypes",[])],SU.prototype,"subscribeButtonInvisible",null);
_.V([_.C({reflectToAttribute:!0}),_.W("subscribed"),_.f("design:type",Object),_.f("design:paramtypes",[])],SU.prototype,"unsubscribeButtonHidden",null);_.V([_.to("ytd-subscription-notification-toggle-button-renderer-next"),_.f("design:type",Object)],SU.prototype,"bellButton",void 0);_.V([_.to("#subscribe-button-shape"),_.f("design:type",HTMLElement)],SU.prototype,"subscribeButtonShape",void 0);
_.V([_.W("overlayButton","subscribed","data"),_.f("design:type",Object),_.f("design:paramtypes",[])],SU.prototype,"buttonShape",null);_.V([_.u3("yt-service-request-sent"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,_.kE]),_.f("design:returntype")],SU.prototype,"onYtServiceRequestSent",null);_.V([_.u3("yt-service-request-completed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,_.xE]),_.f("design:returntype")],SU.prototype,"onYtServiceRequestCompleted",null);
_.V([_.OB("subscribed"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],SU.prototype,"observedSubscribed",null);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],SU.prototype,"onDataChanged",null);_.V([_.u3("mousedown"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],SU.prototype,"onMouseDown",null);
_.V([_.Yx({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],SU);
_.k(SU,"ytd-subscribe-button-renderer",function(){if(jjo!==void 0)return jjo;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return jjo=b},{mode:1});var Fw=function(){var b=_.g.apply(this,arguments)||this;b.isRichGrid=!1;return b};
_.z(Fw,_.g);Fw.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"}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Fw.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Fw.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Fw.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Fw.prototype,"isRichGrid",void 0);_.V([_.Yx({is:"ytd-game-card-renderer",disableElementRegistration:!0})],Fw);
_.k(Fw,"ytd-game-card-renderer",function(){if(Faw!==void 0)return Faw;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return Faw=b},{mode:1});var aQ={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.r("defer_menus")&&!C28?0:void 0,waitForSignal:"eocs"};var $v8;var Lao;var dE=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return b};
_.z(dE,_.g);_.d=dE.prototype;_.d.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.d.onSeriesReminderStateEntityChange=function(){var b,h,y;((b=this.eventReminderStateEntity)==null?0:b.key)&&((h=this.seriesReminderStateEntity)==null?void 0:h.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((y=this.eventReminderStateEntity)==null?void 0:y.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.R7("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.d.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.d.onYtServiceRequestError=function(){var b;this.updateReminderStateEntitiesFromButtonState((b=this.data)==null?void 0:b.currentState)};
_.d.handleUpdateUpcomingEventReminderButtonStateCommand=function(b){if(b=_.c(b,Q$W)){var h,y=(h=this.data)==null?void 0:h.targetId;y&&b.targetId===y&&_.fZ(this.updateReminderStateEntitiesFromButtonState.bind(this,b.state))}};
_.d.getButtonStateFromReminderState=function(){var b;if(((b=this.seriesReminderStateEntity)==null?void 0:b.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var h;if(((h=this.eventReminderStateEntity)==null?void 0:h.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var y,S;if(((y=this.seriesReminderStateEntity)==null?void 0:y.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((S=this.eventReminderStateEntity)==
null?void 0:S.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var F;return(F=this.data)==null?void 0:F.currentState};
_.d.updateReminderStateEntitiesFromButtonState=function(b){if(b){switch(b){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":b="UPCOMING_EVENT_REMINDER_STATE_NONE";var h="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":b="UPCOMING_EVENT_REMINDER_STATE_SINGLE";h="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":b="UPCOMING_EVENT_REMINDER_STATE_NONE";h="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var y;
((y=this.eventReminderStateEntity)==null?0:y.key)&&this.ytdReduxBehavior.dispatch(_.R7("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:b})));var S;((S=this.seriesReminderStateEntity)==null?0:S.key)&&this.ytdReduxBehavior.dispatch(_.R7("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:h})))}};
_.tm.Object.defineProperties(dE.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var b=this.getButtonStateFromReminderState(),h,y;if(b&&((h=this.data)==null?0:(y=h.states)==null?0:y.length))for(h=_.L(this.data.states),y=h.next();!y.done;y=h.next()){y=y.value;var S=void 0;if(((S=_.c(y,m1e))==null?void 0:S.state)===b)return _.c(y,m1e)}}}});
dE.prototype.onYtServiceRequestError=dE.prototype.onYtServiceRequestError;dE.prototype.onYtServiceRequestCompleted=dE.prototype.onYtServiceRequestCompleted;dE.prototype.onSeriesReminderStateEntityChange=dE.prototype.onSeriesReminderStateEntityChange;_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],dE.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],dE.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],dE.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],dE.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],dE.prototype,"data",void 0);_.V([_.C({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:iYF}),_.f("design:type",Object)],dE.prototype,"eventReminderStateEntity",void 0);
_.V([_.C({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(b,h){return _.Mm(b.entities,"sportsSeriesReminderStateEntity",h)}}),
_.f("design:type",Object)],dE.prototype,"seriesReminderStateEntity",void 0);_.V([_.W("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.f("design:type",Object),_.f("design:paramtypes",[])],dE.prototype,"currentButtonStateRenderer",null);_.V([_.OB("seriesReminderStateEntity"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],dE.prototype,"onSeriesReminderStateEntityChange",null);
_.V([_.u3("yt-service-request-completed"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],dE.prototype,"onYtServiceRequestCompleted",null);_.V([_.u3("yt-service-request-error"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],dE.prototype,"onYtServiceRequestError",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],dE);
_.k(dE,"ytd-upcoming-event-reminder-button-renderer",function(){if(Lao!==void 0)return Lao;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);
return Lao=b},{mode:1});var P87;var jU=function(){return _.g.apply(this,arguments)||this};
_.z(jU,_.g);jU.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.tm.Object.defineProperties(jU.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}},
textAriaLabel:{configurable:!0,enumerable:!0,get:function(){if(_.r("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],jU.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],jU.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],jU.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],jU.prototype,"shelfDismissal",void 0);_.V([_.W("data.responseText"),_.f("design:type",Object),_.f("design:paramtypes",[])],jU.prototype,"text",null);
_.V([_.W("data.responseText"),_.f("design:type",Object),_.f("design:paramtypes",[])],jU.prototype,"textAriaLabel",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],jU);
_.k(jU,"ytd-notification-multi-action-renderer",function(){if(P87!==void 0)return P87;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return P87=b},{mode:1});var KaW;var $w=function(){return _.g.apply(this,arguments)||this};
_.z($w,_.g);$w.prototype.ready=function(){var b=this;_.$x(this.hostElement).querySelector("#undo").addEventListener("tap",function(){b.onUndoTap()})};
$w.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.H9().resolve(_.OM).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],$w.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],$w.prototype,"data",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],$w);
_.k($w,"ytd-notification-text-renderer",function(){if(KaW!==void 0)return KaW;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return KaW=b},{mode:1});var Z38;var Lr=function(){var b=_.g.apply(this,arguments)||this;b.mouseOverDelayJobId=0;b.fadeInImageDelayJobId=0;b.startTimeMs=-1;b.loadingStartTimeMs=-1;b.loadingEndTimeMs=-1;b.hasVideoPreview=!1;return b};
_.z(Lr,_.g);_.d=Lr.prototype;_.d.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.d.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.d.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.d.showThumbnail=function(){var b=this;this.csn=_.UE();_.JL("fmth");_.xP.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.js(_.xP,function(){b.loadingStartTimeMs=(0,_.NO)();var h=_.$x(b.hostElement).querySelector("#thumbnail");h.complete?b.displayMouseOverImage():h.addEventListener("load",_.Hl(b,b.displayMouseOverImage))},150):_.Zm(_.$x(this.hostElement).querySelector("#play"),"show",!0)};
_.d.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.d.onTap=function(){this.removeVideoPreview()};
_.d.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var b=this.videoId,h=this.csn,y=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,S=this.startTimeMs,F=this.hasVideoPreview,a=_.I_(this.trackingParams),P={isMovingThumbnail:F};F&&S>0&&(y>0&&(P.movingThumbnailLoadingDurationMs=Math.round(y)),P.durationHoveredMs=Math.round((0,_.NO)()-S));b&&(P.videoId=b);_.qt(h,a,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:P});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.d.removeVideoPreview=function(){_.xP.cancelJob(this.mouseOverDelayJobId);_.xP.cancelJob(this.fadeInImageDelayJobId);var b=_.$x(this.hostElement).querySelector("#thumbnail");_.Zm(b,"fade-in",!1);b.removeEventListener("load",_.Hl(this,this.displayMouseOverImage));b=_.$x(this.hostElement).querySelector("#play");_.Zm(b,"fade-in",!1);_.Zm(b,"show",!1)};
_.d.displayMouseOverImage=function(){var b=_.$x(this.hostElement).querySelector("#thumbnail"),h=_.$x(this.hostElement).querySelector("#play");this.isImageAvailable(b)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.NO)(),this.startTimeMs=(0,_.NO)(),this.fadeInImageDelayJobId=_.js(_.xP,function(){_.Zm(b,"fade-in",!0)},50)):_.Zm(h,"fade-in",!0)};
_.d.computeThumbnail=function(b,h){var y;b&&b.movingThumbnailDetails&&b.movingThumbnailDetails.thumbnails&&h?y=_.Ss(b.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):y=h?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(y)return _.lJ(y)};
_.d.isImageAvailable=function(b){return!(!b.src||b.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||b.naturalWidth===120)};
Lr.prototype.onTap=Lr.prototype.onTap;Lr.prototype.dataChanged=Lr.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Lr.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],Lr.prototype,"ytComponentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Lr.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],Lr.prototype,"csn",void 0);_.V([_.C(),_.f("design:type",Object)],Lr.prototype,"trackingParams",void 0);
_.V([_.C(),_.f("design:type",String)],Lr.prototype,"videoId",void 0);_.V([_.C(),_.f("design:type",Boolean)],Lr.prototype,"isAttachedAndDataSet",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Lr.prototype,"dataChanged",null);_.V([_.u3("click"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Lr.prototype,"onTap",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],Lr);
_.k(Lr,"ytd-moving-thumbnail-renderer",function(){if(Z38!==void 0)return Z38;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return Z38=b},{mode:1});var oha;_.KW=function(b){this.hostElement=b;this.eventSink=null;this.eventList=[]};
_.KW.prototype.shouldForward=function(){var b,h;return(h=(b=this.eventSink)==null?void 0:b.isConnected)!=null?h:document.body.contains(this.eventSink)};
_.KW.prototype.start=function(b,h){this.eventSink&&this.stop();for(var y=0;y<b.length;y++)this.hostElement.addEventListener(b[y],_.Hl(this,this.forwardEvent));var S;this.eventSink=(S=h.hostElement)!=null?S:h;this.eventList=b};
_.KW.prototype.stop=function(){for(var b=0;b<this.eventList.length;b++)this.hostElement.removeEventListener(this.eventList[b],_.Hl(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.KW.prototype.forwardEvent=function(b,h){this.shouldForward()&&(b.stopPropagation(),this.eventSink instanceof Element?_.Sx(this.eventSink,b.type,h):_.vX(new _.Gn("eventSink is not an element")))};_.PQ={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.KW(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(b,h){this.forwarder_.start(b,h)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var Kr=function(){return _.g.apply(this,arguments)||this};
_.z(Kr,_.g);_.d=Kr.prototype;_.d.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=_.QC("HTML_DIR")==="rtl"?"right":"left"};
_.d.dataChanged=function(){this.popupOpen=!1};
_.d.computeAriaLabel=function(b){return _.c(b,HHa).label};
_.d.onTap=function(b){b.stopPropagation();b.preventDefault();this.data.command&&_.H9().resolve(_.OM).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.d.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.d.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
Kr.prototype.onPopupClosed=Kr.prototype.onPopupClosed;Kr.prototype.onPopupOpened=Kr.prototype.onPopupOpened;Kr.prototype.onTap=Kr.prototype.onTap;Kr.prototype.dataChanged=Kr.prototype.dataChanged;_.V([_.B(_.PQ.YtEventForwardingBehavior),_.f("design:type",Object)],Kr.prototype,"eventForwardingBehavior",void 0);_.V([_.B(_.jp),_.f("design:type",Object)],Kr.prototype,"ironButtonState",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],Kr.prototype,"componentBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],Kr.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,value:-1}),_.f("design:type",Number)],Kr.prototype,"tabindex",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.f("design:type",Object)],Kr.prototype,"ariaLabel",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],Kr.prototype,"disableTooltips",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],Kr.prototype,"popupOpen",void 0);
_.V([_.C(),_.f("design:type",Element)],Kr.prototype,"eventSink",void 0);_.V([_.to("#tooltip"),_.f("design:type",Object)],Kr.prototype,"tooltip",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Kr.prototype,"dataChanged",null);_.V([_.u3("tap"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],Kr.prototype,"onTap",null);
_.V([_.u3("yt-popup-opened"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Kr.prototype,"onPopupOpened",null);_.V([_.u3("yt-popup-closed"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Kr.prototype,"onPopupClosed",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],Kr);
_.k(Kr,"ytd-thumbnail-overlay-button-renderer",function(){if(oha!==void 0)return oha;var b=document.createElement("template");_.D(b,'\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>');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return oha=b},{mode:1});var MfP;var Zi=function(){return _.g.apply(this,arguments)||this};
_.z(Zi,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Zi.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Zi.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],Zi.prototype,"disableAnimation",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],Zi.prototype,"rounded",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],Zi.prototype,"transparentBackground",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],Zi.prototype,"noPadding",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],Zi);
_.k(Zi,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(MfP!==void 0)return MfP;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return MfP=b},{mode:1});var nhe;var oQ=function(){return _.g.apply(this,arguments)||this};
_.z(oQ,_.g);oQ.prototype.computeIconPosition=function(b){return this.get("iconPosition",b)||null};
oQ.prototype.computeIconStyle=function(b){return this.get("iconStyle",b)||null};
oQ.prototype.computeIsIconStyleFilled=function(b){if(!b)return!1;var h;return b.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((h=b.icon)==null?void 0:h.iconType)==="ERROR_BLACK"};
_.V([_.C(),_.f("design:type",Object)],oQ.prototype,"data",void 0);_.V([_.C({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.f("design:type",Object)],oQ.prototype,"iconPosition",void 0);_.V([_.C({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.f("design:type",Object)],oQ.prototype,"iconStyle",void 0);_.V([_.C({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.f("design:type",Boolean)],oQ.prototype,"iconStyleFilled",void 0);
_.V([_.Yx({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],oQ);
_.k(oQ,"ytd-thumbnail-overlay-icon-renderer",function(){if(nhe!==void 0)return nhe;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return nhe=b},{mode:1});var XU5;var MY=function(){return _.g.apply(this,arguments)||this};
_.z(MY,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],MY.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],MY.prototype,"data",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],MY);
_.k(MY,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(XU5!==void 0)return XU5;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return XU5=b},{mode:1});var H3N;var nr=function(){var b=_.g.apply(this,arguments)||this;b.isPreviewLoading=!1;return b};
_.z(nr,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],nr.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],nr.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],nr.prototype,"isPreviewLoading",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],nr);
_.k(nr,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(H3N!==void 0)return H3N;var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return H3N=b},{mode:1});var uPG;var Xw=function(){return _.g.apply(this,arguments)||this};
_.z(Xw,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Xw.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Xw.prototype,"data",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],Xw);
_.k(Xw,"ytd-thumbnail-overlay-pinking-renderer",function(){if(uPG!==void 0)return uPG;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return uPG=b},{mode:1});var O3w;var HQ=function(){var b=_.g.apply(this,arguments)||this;b.disableTooltips=!1;b.isLoading=!1;b.useExpandableTooltip=!1;b.toggled=!1;b.hovered=!1;b.mouseoverDelayJobId=0;b.toggleDelayJobId=0;b.expandAnimationDelayJobId=0;return b};
_.z(HQ,_.g);_.d=HQ.prototype;_.d.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");_.$x(this.hostElement).querySelector("#tooltip").position=_.QC("HTML_DIR")==="rtl"?"right":"left"};
_.d.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.xP.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.xP.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.xP.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.d.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.xP.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.xP.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.xP.cancelJob(this.expandAnimationDelayJobId)};
_.d.computeIcon=function(b,h,y){return(b=y?h:b)&&b.iconType?_.o_(b.iconType):void 0};
_.d.computeAriaLabel=function(b,h,y){return _.c(y?h:b,HHa).label};
_.d.computeTooltip=function(b,h,y){return y?h:b};
_.d.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.d.computeIconOnHover=function(b,h){if((b==null?0:b.iconType)&&!h)return _.o_(b.iconType)};
_.d.onTap=function(b){var h=this;b.stopPropagation();b.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(b=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(b),this.useExpandableTooltip&&(this.toggleDelayJobId=_.js(_.xP,function(){h.hovered=!1;h.data&&!h.data.toggledServiceEndpoint&&(h.expandAnimationDelayJobId=_.js(_.xP,function(){h.set("data.isToggled",
!1)},200))},2E3))};
_.d.onMouseenter=function(){var b=this;this.mouseoverDelayJobId=_.js(_.xP,function(){b.hovered=!0},300)};
_.d.onMouseleave=function(){_.xP.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.d.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.d.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.d.onServiceRequestCompleted=function(b,h){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(h)||this.set("data.isToggled",!this.data.isToggled)};
_.d.serviceRequestWasSuccessful=function(b){return _.c(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.nj)?b.data.status==="STATUS_SUCCEEDED":!0};
HQ.prototype.onServiceRequestCompleted=HQ.prototype.onServiceRequestCompleted;HQ.prototype.onPopupClosed=HQ.prototype.onPopupClosed;HQ.prototype.onPopupOpened=HQ.prototype.onPopupOpened;HQ.prototype.onMouseleave=HQ.prototype.onMouseleave;HQ.prototype.dataChanged=HQ.prototype.dataChanged;_.V([_.B(_.jp),_.f("design:type",Object)],HQ.prototype,"ironButtonState",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],HQ.prototype,"ytComponentBehavior",void 0);
_.V([_.B(_.PQ.YtEventForwardingBehavior),_.f("design:type",Object)],HQ.prototype,"ytEventForwardingBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],HQ.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.f("design:type",Object)],HQ.prototype,"ariaLabel",void 0);_.V([_.C(),_.f("design:type",Object)],HQ.prototype,"disableTooltips",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],HQ.prototype,"popupOpen",void 0);_.V([_.C(),_.f("design:type",Object)],HQ.prototype,"isLoading",void 0);_.V([_.C(),_.f("design:type",Element)],HQ.prototype,"eventSink",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],HQ.prototype,"useExpandableTooltip",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.f("design:type",Object)],HQ.prototype,"toggled",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],HQ.prototype,"hovered",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.f("design:type",Object)],HQ.prototype,"iconOnHover",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],HQ.prototype,"dataChanged",null);
_.V([_.u3("mouseleave"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],HQ.prototype,"onMouseleave",null);_.V([_.u3("yt-popup-opened"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],HQ.prototype,"onPopupOpened",null);_.V([_.u3("yt-popup-closed"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],HQ.prototype,"onPopupClosed",null);
_.V([_.u3("yt-service-request-completed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,_.xE]),_.f("design:returntype")],HQ.prototype,"onServiceRequestCompleted",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],HQ);
_.k(HQ,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(O3w!==void 0)return O3w;var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return O3w=b},{mode:_.Lt("kevlar_poly_si_batch_j053")?1:2});var NKo;var tfP=_.T(function(b){var h=b.data;var y=b.thumbnailSize;var S=function(){return h().enableSegmentView};
return _.M("yt-thumbnail-overlay-progress-bar-view-model",{class:_.P2("ytThumbnailOverlayProgressBarHost",function(){return RaM(y==null?void 0:y())})},_.M(_.H,{cond:S,
then:function(){return _.M("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.M("div",{class:_.AB("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+h().startPercent+"%"}}),_.M("div",{class:_.AB("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+h().segmentDurationPercent+"%"}},_.M("div",{class:_.AB("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.M("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.M("div",null," ",function(){return h().segmentLabel})),_.M("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.M("div",{class:_.AB("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.M(_.H,{cond:function(){return!S()&&h().startPercent},
then:function(){var F={};return _.M("div",{class:_.AB("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(F.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.r("web_enable_modern_progress_bar_overlay"),F))},_.M("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+h().startPercent+"%"}}))}}))},"Fa");
tfP.idomCompat=!0;_.rcW=_.T(function(b){var h=_.Mn(),y=_.NG(function(F){var a,P,K;a:{var n=(a=b.data())==null?void 0:a.animationActivationTargetId;a=((P=b.data())==null?void 0:P.animationActivationEntityKey)||"";P=(K=b.data())==null?void 0:K.animationActivationEntitySelectorType;if(a&&n)switch(P){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":F=_.K9(F,a);K=_.H9().resolve(_.XS(_.Vp));n=!!(F&&F.videoId===n&&(K==null?0:K.isMiniplayerActive()));n={activated:n,playAnimation:n&&F.playerState==="PLAYER_STATE_PLAYING"};
break a}n=void 0}return n});
_.Qi(function(){var F;if((F=y())==null?0:F.activated){var a;if((a=y())==null?0:a.playAnimation){var P;(P=h.lottieEl)==null||P.goToAndPlay(0)}else{var K;(K=h.lottieEl)==null||K.goToAndStop(0)}}},"DbQiXd");
var S=function(){var F,a=!((F=y())==null||!F.activated);if(b.data()){F=b.data();var P=void 0;F.icon&&(P=_.q2q(F.icon),P=F1j(P));var K=void 0,n;if((n=F.backgroundColor)==null?0:n.lightTheme){var X;K={backgroundColor:gq((X=F.backgroundColor)==null?void 0:X.lightTheme,"0.8")}}if(F.text||P||a){if(a&&F.lottieData&&h){X=F.lottieData;var u,O,N;n={animationConfig:{name:X.url,path:X.url,autoplay:(u=X.settings)==null?void 0:u.autoplay,loop:(N=(O=X.settings)==null?void 0:O.loop)!=null?N:!0},animationRef:h}}else n=
void 0;if(a)u=17;else b:switch(F.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":u=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":u=19;break b;default:u=17}a={type:u,text:a&&F.animatedText?F.animatedText:F.text,icon:P,customColors:K,animation:n}}else a=void 0}else a=void 0;return a};
return _.M("yt-thumbnail-badge-view-model",{class:_.P2("ytThumbnailBadgeViewModelHost",b.class)},_.M(_.H,{cond:S,then:function(){return _.M(_.z_,{data:function(){return S()}})}}))},"Ha");var ccb=_.T(function(b){var h={},y={};return _.M("yt-thumbnail-bottom-overlay-view-model",{class:_.P2("ytThumbnailBottomOverlayViewModelHost",(h.ytThumbnailBottomOverlayViewModelHostBackground=function(){return b.data().enableGradientBackground},h))},_.M(_.rC,{data:function(){return b.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(S){return _.M(tfP,{data:S.data,
thumbnailSize:b.thumbnailSize})}}),_.M("div",{class:_.P2("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var S;
return zaY((S=b.thumbnailSize)==null?void 0:S.call(b))},(y.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var S;
return(S=b.isClip)==null?void 0:S.call(b)},y.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var S;
return!_.r("web_enable_modern_progress_bar_overlay")&&((S=b.thumbnailSize)==null?void 0:S.call(b))==="small"},y))},_.M(_.rC,{data:function(){return b.data().badge}},{thumbnailBadgeViewModel:function(S){return _.M(_.rcW,{data:S.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.M(_.rC,{data:function(){return b.data().badges}},{thumbnailBadgeViewModel:function(S){return _.M(_.rcW,{data:S.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"Ia");
ccb.idomCompat=!0;_.yd(ccb,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.v3,thumbnailSize:_.v3,isClip:_.v3}});var uH=_.T(function(b){var h=b.data;var y=b.className;b=b.alwaysShow;var S=_.Brn(),F={};return _.M("thumbnail-hover-overlay-view-model",{el:_.Qa(_.Ch(function(){return h().rendererContext})),
class:_.P2("ytThumbnailHoverOverlayViewModelHost",y,(F.ytThumbnailHoverOverlayViewModelHostForceHover=b,F)),"aria-label":function(){var a;return(a=_.c(h().rendererContext,_.zR))==null?void 0:a.label},
role:function(){return _.JB(h().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.JB(h().rendererContext)!==void 0?0:void 0},
"on:keypress":S},_.M("div",{class:_.P2("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(h().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var a="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:a="ytThumbnailHoverOverlayViewModelStyleCover"}return a})},_.M(_.H,{cond:function(){return h().icon},
then:function(a){return _.M(_.mI,{data:a,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.M(_.H,{cond:function(){return h().text},
then:function(a){return _.M(_.zv,{text:a,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"Ka");
uH.idomCompat=!0;var R5W=_.T(function(b){var h=b.data;return _.M(_.rC,{data:function(){return h==null?void 0:h().overlays}},{thumbnailHoverOverlayViewModel:uH})},"La");
R5W.idomCompat=!0;var z5W={};var Dv8=_.T(function(b){var h=b.data;var y=b.image;var S=b.state;var F=b.iconType;var a=b.overlays;var P=b.isOverlay;var K=_.MS("div");b=_.L(_.pa(!0,void 0,"AA4e7b"));var n=b.next().value,X=b.next().value,u=function(){return!!h().onTap},O=_.bi(F,"LIVE");
_.Qi(function(){var t=h();requestAnimationFrame(function(){if(K.value===null)var R=!0;else{var I=K.value;R=t.badgeText;var U=gi4(t.size);R in z5W?I=z5W[R]:(I=I.clientWidth,z5W[R]=I);(R=I>U)?K.value.style.display="none":K.value.style.visibility="visible"}X(R)})},"vNdN8b");
var N=function(){var t={};return t["yt-spec-avatar-shape__image"]=!0,t["yt-spec-avatar-shape__image--ads-app"]=h().type===1,t["yt-spec-avatar-shape__image--inscribed-square"]=h().type===2,t};
return _.M("yt-avatar-shape",null,_.M("div",{el:_.Qa(Ys8(u,{keydown:function(t){if(t.key==="Enter"){var R;(R=t.currentTarget)==null||R.click()}},
click:function(t){var R,I;return void((I=(R=h()).onTap)==null?void 0:I.call(R,t))}})),
class:function(){var t={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},R=h();t=(t[R.clusterLayoutConfig?k0N(R.clusterLayoutConfig):V05(R.size)]=!0,t["yt-spec-avatar-shape__button--tappable"]=u(),t);(R=h().avatarButtonCustomClassName)&&(t[R]=!0);return _.AB(t)},
"aria-label":function(){return u()?h().accessibilityText:""},
role:function(){return u()?"button":void 0},
tabindex:function(){return u()?0:void 0}},_.M("div",{class:function(){var t,R=h(),I=S==null?void 0:S(),U=P==null?void 0:P(),p=!((t=R.decorations)==null||!t.includes(2)||R.size!=="medium"&&R.size!=="large"),e=R.size==="tiny"||R.size==="extra-small",E,Y,w,x,q={};
t=(q["yt-spec-avatar-shape--live-ring"]=!!(((E=R.decorations)==null?0:E.includes(0))&&iVU(R.size)),q["yt-spec-avatar-shape--stories-watched"]=p&&!(I==null||!I.storiesWatched),q["yt-spec-avatar-shape--stories-unwatched"]=p&&!(I==null?0:I.storiesWatched),q["yt-spec-avatar-shape--background-border"]=fjn(R.decorations)&&!e,q["yt-spec-avatar-shape--background-border-thin"]=fjn(R.decorations)&&e,q["yt-spec-avatar-shape__on-select-border"]=!((Y=R.decorations)==null||!Y.includes(4)),q["yt-spec-avatar-shape__white-border"]=
!((w=R.decorations)==null||!w.includes(5)),q["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((x=R.decorations)==null?0:x.includes(5))&&e),q["yt-spec-avatar-shape--is-overlay"]=!!U,q);return _.AB(t)},
style:function(){a:{var t=h().clusterLayoutConfig;if(t){b:{var R=t.numAvatarsInCluster;var I=t.avatarIndex;if(I!==R-1){switch(t.clusterSize){case "small":t="32";break;case "medium":t="36";break;case "40":t="40";break;default:R=void 0;break b}R="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+t+"x"+t+"_avatars_"+R+"_index_"+I+".svg"}else R=void 0}if(R){R=_.n9({"-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}},_.M("div",{class:function(){var t={};
var R=h();t=(t[R.clusterLayoutConfig?Trj(R.clusterLayoutConfig):G0N(R.size)]=!0,t["yt-spec-avatar-shape--no-margin"]=fjn(h().decorations),t["yt-spec-avatar-shape--square"]=h().type===2,t);return _.AB(t)}},_.M(_.mI,{data:y,
alt:function(){return!u()&&h().accessibilityText?h().accessibilityText:""},
targetWidth:function(){return EiF(h().size)},
targetHeight:function(){return EiF(h().size)},
className:function(){return _.AB(N())}}),_.M(_.H,{cond:function(){var t;
return((t=h().decorations)==null?void 0:t.includes(0))&&iVU(h().size)},
then:function(){return _.M("div",{class:function(){var t={};t=(t["yt-spec-avatar-shape__live-badge"]=!0,t["yt-spec-avatar-shape__live-badge--badge-small"]=h().size==="small",t["yt-spec-avatar-shape__live-badge--badge-medium"]=h().size==="medium"||h().size==="48",t["yt-spec-avatar-shape__live-badge--badge-large"]=h().size==="large",t["yt-spec-avatar-shape__live-badge--badge-extra-large"]=h().size==="extra-large"||h().size==="extra-extra-large"||h().size==="giant",t);return _.AB(t)}},_.M(_.H,{cond:function(){return h().badgeText},
then:function(t){return _.M("div",{class:"yt-spec-avatar-shape__badge-text",el:K},t)}}),_.M(_.H,{cond:n,
then:function(){return _.M("div",{class:"yt-spec-avatar-shape__badge-icon"},_.M(_.Xv,{icon:O,size:function(){a:switch(h().size){case "extra-large":var t=16;break a;default:t=13}return t}}))}}))}}),_.M(_.H,{cond:function(){var t,R;
return((t=h().decorations)==null?void 0:t.includes(1))||((R=h().decorations)==null?void 0:R.includes(0))&&!iVU(h().size)},
then:function(){return _.M("div",{class:function(){var t=h(),R,I,U={};var p=(U["yt-spec-avatar-shape__live-dot"]=!((R=t.decorations)==null||!R.includes(0)||iVU(t.size)),U["yt-spec-avatar-shape__new-content"]=!((I=t.decorations)==null||!I.includes(1)),U);return _.AB(p)}})}}),_.M(_.H,{cond:function(){return!!a},
then:function(){return _.M("div",{class:function(){var t={};t=Object.assign((t["yt-spec-avatar-shape__image-overlays"]=!0,t),N());return _.AB(t)}},a==null?void 0:a())}})))))},"Oa");
Dv8.idomCompat={callbacks:{overlays:!0}};_.OX=_.T(function(b){function h(){y().endpoint&&_.Va(y().endpoint)}
var y=b.data;var S=b.decorations;var F=b.avatarButtonCustomClassName;var a=b.isOverlay;var P=b.clusterLayoutConfig;return _.M("avatar-view-model",null,_.M(_.H,{cond:function(){return y().image},
then:function(K){return _.M(Dv8,{data:function(){return ljn({data:y(),onTap:y().endpoint?h:void 0,decorations:S==null?void 0:S(),badgeText:void 0,accessibilityText:y().accessibilityText,avatarButtonCustomClassName:F==null?void 0:F(),clusterLayoutConfig:P==null?void 0:P()})},
image:K,iconType:"RADAR_LIVE",overlays:function(){return _.M(R5W,{data:y})},
isOverlay:a})}}))},"Pa");
_.OX.idomCompat=!0;_.NY=_.T(function(b){var h=b.data;b=b.className;var y=_.MS("yt-decorated-avatar-view-model"),S=function(){return _.c(h().avatar,_.sF)},F=_.s5(function(){var a,P=h(),K=S(),n=_.JB(h().rendererContext),X=(a=y.value)!=null?a:void 0,u;
if(K){X={data:P,avatar:K,onTap:n,element:X};a=X.data;P=X.avatar;K=X.onTap;n=X.element;X=X.commandController;K=K?mNI(K,n,X):void 0;n=[];a.liveData&&n.push(0);var O;X=(O=a.liveData)==null?void 0:O.liveBadgeText;O=(u=_.c(a.rendererContext,_.zR))==null?void 0:u.label;u=ljn({data:P,onTap:K,decorations:n,badgeText:X,accessibilityText:O?O:a.a11yLabel})}else u={size:"medium"};return u},void 0,"c00kWd");
return _.M("yt-decorated-avatar-view-model",{class:_.P2("ytDecoratedAvatarViewModelHost",b),el:y},_.M(_.H,{cond:function(){var a;return(a=S())==null?void 0:a.image},
then:function(a){return _.M(Dv8,{data:F,image:a,iconType:"RADAR_LIVE",overlays:function(){return _.M(R5W,{data:S})}})}}))},"Qa");
_.NY.idomCompat=!0;_.tZ=_.T(function(b){var h=function(){var K;return Object.assign({},b.data(),(K=b.overrides)==null?void 0:K.call(b))},y=function(){return _.ea(h().rendererContext)},S=function(){var K=h().avatars,n,X;
return(X=(n=(K==null?0:K[0])?_.c(K[0],_.sF):void 0)==null?void 0:n.avatarImageSize)!=null?X:"AVATAR_SIZE_UNKNOWN"},F=function(){return Qtk(h())},a=function(){if(h().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var K=void 0;
else if((K=b.decorations)==null?0:K.call(b))K=b.decorations();else{K=h();var n=0;K.avatars&&(n+=K.avatars.length);K.decoratedText&&(n+=1);K=n>1?[3]:[]}return K},P={};
return _.M("yt-avatar-stack-view-model",{el:_.Qa(_.Ch(function(){return h().rendererContext})),
class:_.P2("yt-avatar-stack-view-model",b.className,(P["yt-avatar-stack-view-model--tappable"]=y,P["yt-avatar-stack-view-model--is-overlay"]=b.isOverlay,P["yt-avatar-stack-view-model--medium-text"]=b.useMediumText,P)),tabindex:function(){return y()?0:void 0},
role:function(){return y()?"link":void 0},
"aria-label":function(){var K,n;return(n=(K=_.c(h().rendererContext,_.zR))==null?void 0:K.label)!=null?n:""}},_.M(_.H,{cond:function(){var K;
return h().avatars&&!((K=b.hideAvatar)==null?0:K.call(b))},
then:function(){return _.M("div",{class:"yt-avatar-stack-view-model__avatars"},_.M(_.H,{cond:function(){return h().decoratedText},
then:function(K){var n={};return _.M("div",{class:_.P2("yt-avatar-stack-view-model__text-container",(n["yt-avatar-stack-view-model__text-container--thin-border"]=function(){return S()==="AVATAR_SIZE_XXS"||S()==="AVATAR_SIZE_XS"},n["yt-avatar-stack-view-model__text-container--thin-border-overlay"]=function(){var X;
return((X=b.isOverlay)==null?void 0:X.call(b))&&(S()==="AVATAR_SIZE_XXS"||S()==="AVATAR_SIZE_XS")},n)),
style:_.n9({width:function(){return F().avatarSizeInPx+"px"},
height:function(){return F().avatarSizeInPx+"px"}})},_.M(_.zv,{text:K,
className:"yt-avatar-stack-view-model__avatar-decorated-text"}))}}),_.M("div",{style:function(){return _.n9(F().avatarStackStyle)()},
class:function(){return F().avatarStackClass}},_.M(_.rC,{data:function(){return F().avatars.reverse()}},{avatarViewModel:function(K,n){return _.M("div",{style:function(){var X,u;
return _.n9((u=(X=F()).avatarStyle)==null?void 0:u.call(X,n()))()},
class:function(){return F().avatarClass}},_.M(_.OX,{data:K.data,
decorations:a,avatarButtonCustomClassName:function(){return F().avatarButtonCustomClassName},
isOverlay:b.isOverlay,clusterLayoutConfig:function(){var X,u;return(u=(X=F()).clusterLayoutConfig)==null?void 0:u.call(X,n())}}))},
decoratedAvatarViewModel:function(K,n){return _.M("div",{style:function(){var X,u;return _.n9((u=(X=F()).avatarStyle)==null?void 0:u.call(X,n()))()},
class:function(){return F().avatarClass}},_.M(_.NY,{data:K.data}))}})))}}),_.M(_.H,{cond:function(){return h().text},
then:function(K){return _.M(_.zv,{text:K,className:"yt-avatar-stack-view-model__avatar-stack-text",linkInheritColor:!0})}}))},"Ra");
_.tZ.idomCompat=!0;_.yd(_.T(function(b){var h=b.data;var y=b.thumbnailSize;return _.M("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.M("div",{class:_.P2("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return viI(y==null?void 0:y())})},_.M(_.rC,{data:function(){return h().avatarStack}},{avatarStackViewModel:function(S){return _.M(_.tZ,{data:S.data,
decorations:[5]})}})))},"Sa"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.D4,
thumbnailSize:_.D4}});var IkW=_.T(function(b){b=_.h6(b,{hidden:!1});var h=b.data;b=b.hidden;return _.M("yt-thumbnail-overlay-title-view-model",{class:_.P2("ytThumbnailOverlayTitleViewModelHost",function(){a:switch(h().position){case "THUMBNAIL_OVERLAY_TITLE_POSITION_BOTTOM":var y="ytThumbnailOverlayTitleViewModelPositionBottom";break a;default:y="ytThumbnailOverlayTitleViewModelPositionTop"}return y}),
hidden:b},_.M(_.H,{cond:function(){return h().leadingContent},
then:function(y){return _.M("div",{class:"ytThumbnailOverlayTitleViewModelLeadingContent"},_.M(_.rC,{data:y},{decoratedAvatarViewModel:_.NY}))}}),_.M("div",null,_.M(_.zv,{text:function(){return h().title},
className:"ytThumbnailOverlayTitleViewModelTitle"}),_.M(_.H,{cond:function(){return h().subtitle},
then:function(){return _.M(_.zv,{text:function(){return h().subtitle},
className:"ytThumbnailOverlayTitleViewModelSubtitle"})}})))},"Ta");
IkW.idomCompat=!0;_.yd(IkW,"yt-thumbnail-overlay-title-view-model",{props:{data:_.D4,hidden:_.D4}});_.BKN=_.T(function(b){b=_.h6(b,{isClip:!1});var h=b.data,y=b.thumbnailSize,S={};return _.M("yt-thumbnail-overlay-badge-view-model",{class:_.P2("yt-thumbnail-overlay-badge-view-model",function(){a:switch(h().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var F="yt-thumbnail-overlay-badge-view-model--top-start";break a;default:F="yt-thumbnail-overlay-badge-view-model--bottom-end"}return F},function(){return b6F(y==null?void 0:y())},(S["yt-thumbnail-overlay-badge-view-model--clip"]=b.isClip,
S))},_.M(_.rC,{data:function(){return h().thumbnailBadges}},{thumbnailBadgeViewModel:function(F){return _.M(_.rcW,{data:F.data,
class:"yt-thumbnail-overlay-badge-view-model__badge"})}}))},"Ua");
_.BKN.idomCompat=!0;_.yd(_.BKN,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.D4,thumbnailSize:_.D4,isClip:_.D4}});var Wa7=_.T(function(b){var h=b.data;b=b.hidden;var y=_.s5(function(){return h().indicatorCount||0},void 0,"AbKnMc"),S={};
return _.M("yt-page-indicator-view-model",{class:_.P2("ytPageIndicatorViewModelHost",(S.ytPageIndicatorViewModelIndicatorHidden=function(){return!h().indicatorCount},S)),
hidden:b},_.M(_.Gw,{each:function(){return Array(y())}},function(F,a){var P={};
return _.M("div",{class:_.P2("ytPageIndicatorViewModelIndicator",(P.ytPageIndicatorViewModelIndicatorSelected=function(){return h().selectedIndex===a()},P))})}))},"Va");
Wa7.idomCompat=!0;_.yd(Wa7,"yt-page-indicator-view-model",{props:{data:_.D4,hidden:_.D4}});var rE=function(){var b=_.g.apply(this,arguments)||this;b.eventSink=function(){return b};
b.disableInteraction=!1;b.noRoundedCorners=!1;b.isPreviewLoading=!1;b.isOriginalAspectRatio=!1;b.computedObjectFit=!1;b.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return b};
_.z(rE,_.g);_.d=rE.prototype;
_.d.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer",properties:{overlayColor:"[[overlayColor]]"}},thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayResumePlaybackRenderer:{component:"ytd-thumbnail-overlay-resume-playback-renderer",properties:{isLive:"[[isLiveVideo]]"}},thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",properties:{width:"[[thumbnailOverlaySidePanelWidth_]]",
bottomPanel:"[[bottomSidePanel]]",richGridOverlay:"[[richGridThumbnail]]",watchFeedOverlay:"[[watchFeedThumbnail]]"}},thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayNowPlayingRenderer:{component:"ytd-thumbnail-overlay-now-playing-renderer",properties:{isVideoPlaying:"[[isVideoPlaying]]",equalizerOnly:"[[nowPlayingEqualizerOnly]]",isActive:"[[data.selected]]",videoId:"[[data.videoId]]"}},thumbnailOverlayPinkingRenderer:"ytd-thumbnail-overlay-pinking-renderer",
thumbnailOverlayDownloadingRenderer:{component:"ytd-thumbnail-overlay-downloading-renderer",params:{active:!0}},thumbnailOverlayIconRenderer:"ytd-thumbnail-overlay-icon-renderer",thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model",pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailBottomOverlayViewModel:"yt-thumbnail-bottom-overlay-view-model",thumbnailOverlayAvatarStackViewModel:"thumbnail-overlay-avatar-stack-view-model",thumbnailOverlayBadgeViewModel:{component:"yt-thumbnail-overlay-badge-view-model",
properties:{thumbnailSize:"[[thumbnailSize]]"}}},initialRenderPriority:_.r("defer_overlays")?1:void 0,waitForSignal:void 0},hoverOverlays_:{id:"hover-overlays",reuseComponents:!1,mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayInlineUnplayableRenderer:"ytd-thumbnail-overlay-inline-unplayable-renderer",thumbnailOverlayToggleButtonRenderer:{component:"ytd-thumbnail-overlay-toggle-button-renderer",properties:{disableTooltips:"[[disableTooltips]]",
eventSink:"[[eventSink]]",useExpandableTooltip:"[[useExpandableTooltip]]"}},thumbnailOverlayButtonRenderer:{component:"ytd-thumbnail-overlay-button-renderer",properties:{disableTooltips:"[[disableTooltips]]",eventSink:"[[eventSink]]"}},thumbnailOverlayEndorsementRenderer:"ytd-thumbnail-overlay-endorsement-renderer",thumbnailOverlayLoadingPreviewRenderer:{component:"ytd-thumbnail-overlay-loading-preview-renderer",properties:{isPreviewLoading:"[[isPreviewLoading]]"}}}},richThumbnail:{id:"mouseover-overlay",
mapping:{movingThumbnailRenderer:{component:"ytd-moving-thumbnail-renderer",properties:{trackingParams:"[[data.trackingParams]]",videoId:"[[data.videoId]]"}}},renderPriority:2,waitForSignal:"eocs"}}};
_.d.onImageLoaded=function(){this.loaded=!0};
_.d.onImageUnloaded=function(){this.loaded=!1};
_.d.computeRichThumbnail=function(b,h,y,S){if(b&&h&&!S&&!_.r("disable_moving_thumbs_handling")&&!y)return h};
_.d.computeImageWidth=function(b,h){return h||9999};
_.d.computeIsOriginalAspectRatio=function(b){return b};
_.d.computeIsLive=function(b){if(b==null?0:b.badges)for(var h=0;h<b.badges.length;h++){var y=b.badges[h];if(y.metadataBadgeRenderer&&y.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(b==null?0:b.thumbnailOverlays)for(h=0;h<b.thumbnailOverlays.length;h++)if(y=b.thumbnailOverlays[h],y.thumbnailOverlayTimeStatusRenderer&&y.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.d.computeObjectFit=function(b,h){return h||(b?"CONTAIN":"")};
_.d.computeNavigationEndpoint=function(b,h,y){return b?h:y};
_.d.computeHasClip=function(b){b=_.L(b||[]);for(var h=b.next();!h.done;h=b.next())if(h.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.d.computeOverlayColor=function(b){var h;return(b==null?0:(h=b.darkColorPalette)==null?0:h.section2Color)?b.darkColorPalette.section2Color:b==null?void 0:b.sampledThumbnailColor};
_.tm.Object.defineProperties(rE.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.DFf(this.width)}}});
rE.prototype.onImageUnloaded=rE.prototype.onImageUnloaded;rE.prototype.onImageLoaded=rE.prototype.onImageLoaded;_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],rE.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],rE.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(jJb),_.f("design:type",Object)],rE.prototype,"ytdThumbnailBehavior",void 0);
_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],rE.prototype,"componentBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],rE.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],rE.prototype,"data",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],rE.prototype,"circular",void 0);
_.V([_.C({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.f("design:type",Object)],rE.prototype,"richThumbnail",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.f("design:type",Boolean)],rE.prototype,"hasClip",void 0);_.V([_.C(),_.f("design:type",Object)],rE.prototype,"eventSink",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],rE.prototype,"queued",void 0);
_.V([_.C({value:!1}),_.f("design:type",Boolean)],rE.prototype,"richGridThumbnail",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],rE.prototype,"useExpandableTooltip",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],rE.prototype,"useUntranslatedNavigationEndpoint",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],rE.prototype,"disableInteraction",void 0);
_.V([_.C({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.f("design:type",Object)],rE.prototype,"computedNavigationEndpoint",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],rE.prototype,"nowPlayingEqualizerOnly",void 0);_.V([_.C({value:!1,reflectToAttribute:!0}),_.f("design:type",Boolean)],rE.prototype,"hidePlaybackStatus",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",String)],rE.prototype,"objectFit",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],rE.prototype,"noRoundedCorners",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],rE.prototype,"watchFeedThumbnail",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],rE.prototype,"isPreviewLoading",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.f("design:type",Object)],rE.prototype,"isOriginalAspectRatio",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.f("design:type",Object)],rE.prototype,"computedObjectFit",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.f("design:type",Boolean)],rE.prototype,"isLiveVideo",void 0);
_.V([_.C({value:!1,reflectToAttribute:!0}),_.f("design:type",Boolean)],rE.prototype,"loaded",void 0);_.V([_.C({computed:"computeOverlayColor(data.thumbnail)"}),_.f("design:type",Object)],rE.prototype,"overlayColor",void 0);_.V([_.C(),_.f("design:type",Boolean)],rE.prototype,"minimizePipBreakages",void 0);_.V([_.C({selector:_.VSn}),_.f("design:type",Boolean)],rE.prototype,"inlinePreviewIsEnabled",void 0);_.V([_.C(),_.f("design:type",Number)],rE.prototype,"width",void 0);
_.V([_.W("inlinePreviewIsEnabled"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],rE.prototype,"isPreviewDisabled",null);_.V([_.W("width"),_.f("design:type",String),_.f("design:paramtypes",[])],rE.prototype,"thumbnailSize",null);_.V([_.u3("image-loaded"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],rE.prototype,"onImageLoaded",null);
_.V([_.u3("image-unloaded"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],rE.prototype,"onImageUnloaded",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-thumbnail"})],rE);
var Acb=_.$S()(rE,"ytd-thumbnail",function(){if(NKo===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);NKo=b}b=NKo;return b},{callbackProps:["onClick"],
allowedProps:"data disableInteraction noRoundedCorners objectFit useExpandableTooltip useUntranslatedNavigationEndpoint width circular watchFeedThumbnail queued".split(" "),allowedPropsFromBehaviors:"height bottomSidePanel size disableRounding disableNowPlaying disableTooltips useHoveredProperty hovered addBackground nowPlaying isVideoPlaying minimizePipBreakages".split(" "),mode:2});var SrM=function(b){var h=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$15222_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$15222_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(y){UvW(h,y)};
this.onLockupMouseLeaveFn=function(y){y=y.relatedTarget;var S,F;((S=document.getElementsByTagName("ytd-video-preview"))==null?0:(F=S.item(0))==null?0:F.contains(y))||(h.terminateVideoPreview(),cQ(h))};
this.onThumbnailMouseDownFn=function(){h.terminateVideoPreview();cQ(h)};
this.onTouchStart=function(){h.JSC$15222_touched=!0};
this.mediaRenderer=b.mediaRenderer;this.thumbnailElement=b.thumbnailElement;this.lockupElement=b.lockupElement;this.videoPreviewOptsInput=b.videoPreviewOpts;pUW(this);RQ(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)):
_.vX(Error("Gh")):_.vX(Error("Hh")):Jca(this)},h_=function(b){Jca(b);
var h;(h=b.lockupElement)==null||h.removeEventListener("mouseenter",b.onMouseMoveFn);var y;(y=b.lockupElement)==null||y.removeEventListener("mouseleave",b.onLockupMouseLeaveFn);var S;(S=b.lockupElement)==null||S.removeEventListener("touchstart",b.onTouchStart);var F;(F=b.thumbnailElement)==null||F.removeEventListener("mousedown",b.onThumbnailMouseDownFn);cQ(b)},pUW=function(b){b.inlinePreviewIsEnabledForUser=_.hP().getState().ui.inlinePreviewIsEnabled;
b.unsubscribeFromInlinePreviewIsEnabled=_.Fq(_.hP(),_.VSn,function(h){(b.inlinePreviewIsEnabledForUser=h)||cQ(b)});
b.JSC$15222_unsubscribeFromInlinePreviewIsActive=_.Fq(_.hP(),_.kv8,function(h){(b.inlinePreviewIsActive=h)||cQ(b)})},Jca=function(b){b.unsubscribeFromInlinePreviewIsEnabled();
b.unsubscribeFromInlinePreviewIsEnabled=function(){};
b.JSC$15222_unsubscribeFromInlinePreviewIsActive();b.JSC$15222_unsubscribeFromInlinePreviewIsActive=function(){}},UvW=function(b,h){h.buttons>0||(h=_.tj("kevlar_lockup_hover_delay",-1),b.JSC$15222_touched&&h>=0?(_.xP.cancelJob(b.videoPreviewJobId),b.videoPreviewJobId=_.js(_.xP,function(){e5N(b)},h),b.JSC$15222_touched=!1):e5N(b))},vKk=function(b){b.videoPreviewJobId=_.js(_.xP,function(){return _.Z(function(h){return h.yield(C8a(b,{isAutoplay:!0}),0)})})},e5N=function(b){!b.previewTriggered&&RQ(b)&&
(b.inlinePreviewIsActive&&b.terminateVideoPreview(),b.previewTriggered=!0,b.mediaRenderer.isInlinePreviewTriggered=!0,_.xP.cancelJob(b.videoPreviewJobId),b.videoPreviewJobId=_.js(_.xP,function(){return _.Z(function(h){return h.yield(C8a(b),0)})}))},C8a=function(b,h){h=h===void 0?{}:h;
var y=h.isAutoplay===void 0?!1:h.isAutoplay;var S,F,a,P;return _.Z(function(K){if(K.nextAddress==1){if(!RQ(b))return K.return();S=b.getVideoPreviewOpts();if(!S)return K.return();y&&(S.isAutoplay=!0);return(a=(F=_.aw(b.mediaRenderer.hostElement,"yt-open-video-preview-action",[S]))&&F[0])?K.yield(F[0],3):K.jumpTo(2)}K.nextAddress!=2&&(a=K.yieldResult===1);if(a){var n=(P=b.mediaRenderer)==null?void 0:P.data;n&&(y$N(n)?delete n.inlinePlayerData:"inlinePlaybackEndpoint"in n&&delete n.inlinePlaybackEndpoint)}_.g3(K)})};
SrM.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var b,h;if((h=(b=this.videoPreviewOptsInput)==null?void 0:b.videoPreviewData)!=null)b=h;else if(b=this.mediaRenderer.data)if(y$N(b))b={inlinePlaybackEndpoint:_.YS(b.inlinePlayerData.onVisible),navigationEndpoint:_.YS(b.onTap),thumbnail:"image"in b?b.image:b.thumbnail,thumbnailOverlays:void 0,accessibilityText:h_f(b)};else if("multipleInlinePlaybackEndpoint"in b){var y=_.c(_.c(b.multipleInlinePlaybackEndpoint,JV7),eKw);if(y!=
null&&y.playerDescriptors){h=[];y=_.L(y.playerDescriptors);for(var S=y.next();!S.done;S=y.next())S=S.value,h.push({inlinePlaybackEndpoint:S.inlinePlaybackEndpoint,navigationEndpoint:S.navigationEndpoint,thumbnail:S.thumbnail,thumbnailOverlays:S.thumbnailOverlays,accessibilityText:h_f(b)});b=h}else b=void 0}else b={inlinePlaybackEndpoint:b.inlinePlaybackEndpoint,navigationEndpoint:b.navigationEndpoint,thumbnail:b.thumbnail,thumbnailOverlays:b.thumbnailOverlays,accessibilityText:h_f(b)};else b=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:b,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var RQ=function(b){var h;if(h=b.inlinePreviewIsEnabledForUser)h=(b=b.mediaRenderer.data)?"inlinePlaybackEndpoint"in b&&b.inlinePlaybackEndpoint||y$N(b)&&b.inlinePlayerData||"multipleInlinePlaybackEndpoint"in b&&b.multipleInlinePlaybackEndpoint?!0:!1:!1;return h};
SrM.prototype.terminateVideoPreview=function(){_.F8(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var cQ=function(b){_.xP.cancelJob(b.videoPreviewJobId);b.inlinePreviewIsActive=!1;b.previewTriggered=!1;b.mediaRenderer.isInlinePreviewTriggered=!1};var ghb=_.bm(["#"]),zB=function(){var b=_.g.apply(this,arguments)||this;b.isDisabled=!1;return b};
_.z(zB,_.g);_.d=zB.prototype;
_.d.configureRendererStamper=function(){return{"data.menu":aQ,"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.d.attached=function(){this.updateInlinePreviewHoverListeners()};
_.d.detached=function(){this.clearInlinePreviewHoverListeners()};
_.d.getMetadata=function(b){var h=[];if(b.metadataText&&Object.keys(b.metadataText).length>0){var y=this.ytRendererBehavior.getSimpleString(b.metadataText);b.upcomingEventData&&b.upcomingEventData.upcomingEventText&&(y=_.BC(y,Number(b.upcomingEventData.startTime)));h.push(y)}else b.shortViewCountText&&h.push(this.ytRendererBehavior.getSimpleString(b.shortViewCountText)),b.publishedTimeText&&h.push(this.ytRendererBehavior.getSimpleString(b.publishedTimeText)),b.upcomingEventData&&b.upcomingEventData.upcomingEventText&&
(y=this.ytRendererBehavior.getSimpleString(b.upcomingEventData.upcomingEventText),h.push(_.BC(y,Number(b.upcomingEventData.startTime))));return h};
_.d.calculateBylineText=function(b){return b.shortBylineText?b.shortBylineText:b.bylineText?b.bylineText:null};
_.d.calculateIsDisabled=function(b){return!!b.isDisabled};
_.d.computeHrefWithDefault=function(b){return this.ytComponentBehavior.computeHref_(b)||_.nff(ghb)};
_.d.onDetailsTap=function(b){var h=this.data&&this.data.navigationEndpoint;h&&!_.mf(_.Qk(b)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.r("kevlar_grid_video_renderer_killswitch")?_.Sx(this.hostElement,"yt-navigate",{endpoint:h}):this.ytComponentBehavior.resolveCommand(h))};
_.d.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.d.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15229_inlinePreviewHoverListener=Yr({mediaRenderer:this,lockupElement:_.$x(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.$x(this.hostElement).querySelector("ytd-thumbnail")})};
_.d.clearInlinePreviewHoverListeners=function(){var b;(b=this.JSC$15229_inlinePreviewHoverListener)==null||h_(b)};
_.d.computeThumbnailWidth=function(b,h){return h&&h>0?h:b?360:210};
_.d.computeNumBadgesInRow=function(b){var h;return((h=b.badges)==null?void 0:h.length)||0};
_.d.computeShowChannelThumbnail=function(b,h){var y;return h&&!!(b==null?0:(y=b.channelThumbnailSupportedRenderers)==null?0:y.channelThumbnailWithLinkRenderer)};
_.tm.Object.defineProperties(zB.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.JSC$15229_inlinePreviewHoverListener)==null?0:RQ(b))&&!!this.ytdLockupBehavior.lockupIsHovered}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.data)==null||!b.attributedBylineText)}},
showBylineText:{configurable:!0,enumerable:!0,get:function(){return!!this.bylineText&&!this.hasAttributedBylineText}}});
zB.prototype.dataChanged=zB.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],zB.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],zB.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],zB.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.rP),_.f("design:type",Object)],zB.prototype,"ytdDismissibleItemBehavior",void 0);
_.V([_.B(_.Wg),_.f("design:type",Object)],zB.prototype,"ytdLockupBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],zB.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],zB.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Boolean)],zB.prototype,"noEndpoints",void 0);_.V([_.C({computed:"calculateBylineText(data)"}),_.f("design:type",Object)],zB.prototype,"bylineText",void 0);
_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],zB.prototype,"isSearch",void 0);_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],zB.prototype,"isDownloading",void 0);_.V([_.C({reflectToAttribute:!0,value:0}),_.f("design:type",Number)],zB.prototype,"width",void 0);_.V([_.C({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.f("design:type",Object)],zB.prototype,"isDisabled",void 0);
_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],zB.prototype,"dataChanged",null);_.V([_.W("lockupIsHovered"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],zB.prototype,"isHovered",null);_.V([_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],zB.prototype,"hasAttributedBylineText",null);
_.V([_.W("bylineText","hasAttributedBylineText"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],zB.prototype,"showBylineText",null);_.V([_.Yx({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],zB);
_.k(zB,"ytd-grid-video-renderer",function(){if($v8!==void 0)return $v8;var b=document.createElement("template");_.D(b,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-video-renderer"><ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(isSearch, width)]]" class="style-scope ytd-grid-video-renderer"></ytd-thumbnail><div id="details" on-tap="onDetailsTap" class="style-scope ytd-grid-video-renderer"><a id="channel-thumbnail" hidden="[[!computeShowChannelThumbnail(data, isSearch)]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-grid-video-renderer"><yt-img-shadow id="avatar" thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="36" class="style-scope ytd-grid-video-renderer"></yt-img-shadow></a><div id="text-metadata" class="style-scope ytd-grid-video-renderer"><div id="meta" class="style-scope ytd-grid-video-renderer"><h3 class="style-scope ytd-grid-video-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer><a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-video-renderer" href$="[[computeHrefWithDefault(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a></h3><div id="metadata-container" class="grid style-scope ytd-grid-video-renderer" meta-block=""><div id="metadata" class="style-scope ytd-grid-video-renderer"><div id="byline-container" class="style-scope ytd-grid-video-renderer"><div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-grid-video-renderer"></div><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" hidden="[[!showBylineText]]" no-endpoints="[[noEndpoints]]" class="style-scope ytd-grid-video-renderer"></ytd-channel-name></div><div id="metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[item]]</span></template></div></div><div id="additional-metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[data.additionalMetadatas]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[getSimpleString(item)]]</span></template></div></div></div><ytd-badge-supported-renderer id="video-badges" badges="[[data.badges]]" hidden="[[!data.badges]]" num-badges-in-row="[[computeNumBadgesInRow(data)]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return $v8=b},{mode:_.Lt("kevlar_poly_si_batch_j047")?1:2});var sj5;var Di=function(){var b=_.g.apply(this,arguments)||this;b.roundedContainer=!0;b.skipRoundingTop=!1;b.disableTopPadding=!1;b.amsterdamEnabled=_.r("enable_desktop_amsterdam_info_panels");b.extractOverlay=!1;return b};
_.z(Di,_.g);Di.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Di.prototype.onClick=function(b){var h,y=(h=this.data)==null?void 0:h.sourceEndpoint;!_.mf(_.Qk(b),this.hostElement,["A".toString()])&&y&&_.Sx(this.hostElement,"yt-navigate",{endpoint:y})};
_.tm.Object.defineProperties(Di.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 b;return!((b=this.data)==null||!b.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.data)==null||!b.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var b,h;return(h=(b=this.data)==null?void 0:b.paragraphMaxLines)!=null?h:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Di.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Di.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Di.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Di.prototype,"showVerticalDividers",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Di.prototype,"roundedContainer",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Di.prototype,"skipRoundingTop",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Di.prototype,"disableTopPadding",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],Di.prototype,"amsterdamEnabled",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Di.prototype,"extractOverlay",void 0);
_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],Di.prototype,"showMetadataAtTop",null);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],Di.prototype,"showMetadataBelowTitle",null);_.V([_.C({reflectToAttribute:!0}),_.W("data.menu"),_.f("design:type",Object),_.f("design:paramtypes",[])],Di.prototype,"hasMenu",null);
_.V([_.C({reflectToAttribute:!0}),_.W("data.truncateParagraphs"),_.f("design:type",Object),_.f("design:paramtypes",[])],Di.prototype,"truncateParagraphs",null);_.V([_.C({reflectToAttribute:!0}),_.W("data.paragraphMaxLines"),_.f("design:type",Number),_.f("design:paramtypes",[])],Di.prototype,"paragraphMaxLines",null);
_.V([_.C({type:_.r("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.W("data.background"),_.f("design:type",Object),_.f("design:paramtypes",[])],Di.prototype,"background",null);_.V([_.Yx({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],Di);
_.k(Di,"ytd-info-panel-content-renderer",function(){if(sj5!==void 0)return sj5;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return sj5=b},{mode:_.Lt("kevlar_poly_si_batch_j076")?1:2});var YmN;var TK7;var GXe;var kXb;var IQ=function(){return _.g.apply(this,arguments)||this};
_.z(IQ,_.g);IQ.prototype.computeStyle=function(b){return b};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],IQ.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],IQ.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.f("design:type",String)],IQ.prototype,"style_",void 0);_.V([_.sB({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],IQ);
_.k(IQ,"yt-channel-thumbnail-with-link-renderer",function(){if(kXb===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;GXe===void 0&&(GXe=document.createElement("template"));var S=GXe;y.call(h,S.content.cloneNode(!0),b.content.firstChild);kXb=b}b=kXb;return b},{mode:2});var BQ=function(){return _.g.apply(this,arguments)||this};
_.z(BQ,_.g);BQ.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"}}}};
BQ.prototype.computeTitleStyle=function(b){return b||null};
BQ.prototype.computeAvatarStyle=function(b){return b||null};
BQ.prototype.computeShowNavigationButton=function(b,h){return!(b==null||!b.navigationButton||h)};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],BQ.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],BQ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],BQ.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.f("design:type",String)],BQ.prototype,"titleStyle",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.f("design:type",String)],BQ.prototype,"avatarStyle",void 0);_.V([_.C(),_.f("design:type",Boolean)],BQ.prototype,"hideNavigationButton",void 0);_.V([_.Yx({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],BQ);
_.k(BQ,"ytd-rich-list-header-renderer",function(){if(TK7!==void 0)return TK7;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return TK7=b},{mode:_.Lt("kevlar_poly_si_batch_j058")?1:2});var WQ=function(){return _.g.apply(this,arguments)||this};
_.z(WQ,_.g);WQ.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]]"}}}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],WQ.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],WQ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],WQ.prototype,"data",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],WQ.prototype,"isSearch",void 0);_.V([_.Yx({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],WQ);
_.k(WQ,"ytd-preview-card-renderer",function(){if(YmN!==void 0)return YmN;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return YmN=b},{mode:1});var Vf8;var AZ=function(){return _.g.apply(this,arguments)||this};
_.z(AZ,_.g);AZ.prototype.configureRendererStamper=function(){return{"data.menu":aQ}};
AZ.prototype.dataChanged=function(){var b=this.get("colorExtractionPalette.section1Color",this.data);b=_.eI(b);_.nZ(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":b})};
AZ.prototype.computeCardStyle=function(b){return this.get("style.value",b)||null};
AZ.prototype.dataChanged=AZ.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],AZ.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],AZ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.rP),_.f("design:type",Object)],AZ.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],AZ.prototype,"data",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.f("design:type",String)],AZ.prototype,"cardStyle",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],AZ.prototype,"dataChanged",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],AZ);
_.k(AZ,"ytd-compact-channel-recommendation-card-renderer",function(){if(Vf8!==void 0)return Vf8;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return Vf8=b},{mode:1});var Ehw;var i3b;var UX=function(){var b=_.g.apply(this,arguments)||this;b.alignAuto=!1;b.collapsed=!0;b.isToggled=!1;b.alwaysCollapsed=!1;b.canToggle=!0;b.collapsedHeight=80;b.disableToggle=!1;b.alwaysToggleable=!1;b.reversed=!1;b.shouldUseNumberOfLines=!1;b.recomputeOnResize=!1;b.canToggleJobId=0;b.lastReversed=!1;return b};
_.z(UX,_.g);_.d=UX.prototype;_.d.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.d.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.d.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var b=_.$x(this.hostElement),h=b.childNodes,y=document.createDocumentFragment(),S=b.childNodes.length-1;S>=0;S--)_.$x(y).appendChild(h[S]);_.r("enable_shadydom_free_scoped_node_methods")?_.KZ(this.hostElement).appendChild(y):b.appendChild(y)}};
_.d.ready=function(){var b=this;_.fZ(function(){b.initChildrenObserver()},1)};
_.d.attached=function(){var b;(b=this.resizeObserver)==null||b.observe(this.content)};
_.d.detached=function(){this.detachObserver()};
_.d.toggle=function(b,h){this.canToggle&&(this.isToggled=h,_.Sx(this.hostElement,"yt-refit"),b&&b.stopPropagation())};
_.d.reset=function(){this.childrenChanged()};
_.d.onIronResize=function(){this.recomputeOnResize&&!_.r("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.d.computeIsMoreVisible=function(b,h){return b&&!h};
_.d.computeShouldUseNumberOfLines=function(b){try{return!!b&&window.CSS.supports("-webkit-line-clamp","1")}catch(h){}return!1};
_.d.computeIsLessVisible=function(b,h){return b&&h};
_.d.observeCollapsedHeightAndMaxLines=function(){var b=this.collapsedHeight,h=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.nZ(this.hostElement,{"--ytd-expander-max-lines":""+h,"--ytd-expander-collapsed-height":""}):_.nZ(this.hostElement,{"--ytd-expander-collapsed-height":b+"px","--ytd-expander-max-lines":""})};
_.d.handleMoreTap=function(b){this.disableToggle||(_.Sx(this.hostElement,"yt-expander-more-tapped"),this.toggle(b,!0))};
_.d.handleLessTap=function(b){_.Sx(this.hostElement,"yt-expander-less-tapped");this.toggle(b,!1)};
_.d.initChildrenObserver=function(){var b=this;this.observer=new MutationObserver(function(){b.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.r("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.MG(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var h;(h=b.resizeThrottle)==null||h.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.d.childrenChanged=function(){var b=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){dS(function(){b.canToggleJobId=0;b.calculateCanCollapse()})}))};
_.d.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};
_.d.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.d.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ut("collapsed-changed",this.collapsed))};
_.d.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ut("is-toggled-changed",this.isToggled))};
_.d.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ut("can-toggle-changed",this.canToggle))};
_.tm.Object.defineProperties(UX.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
UX.prototype.canToggleChangedForBinding=UX.prototype.canToggleChangedForBinding;UX.prototype.isToggledChangedForBinding=UX.prototype.isToggledChangedForBinding;UX.prototype.collapsedChangedForBinding=UX.prototype.collapsedChangedForBinding;UX.prototype.observeCollapsedHeightAndMaxLines=UX.prototype.observeCollapsedHeightAndMaxLines;UX.prototype.onIronResize=UX.prototype.onIronResize;UX.prototype.reversedChanged=UX.prototype.reversedChanged;UX.prototype.toggledChanged=UX.prototype.toggledChanged;
UX.prototype.alwaysToggleableChanged=UX.prototype.alwaysToggleableChanged;_.V([_.B(_.ab),_.f("design:type",Object)],UX.prototype,"ironResizableBehavior",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],UX.prototype,"alignAuto",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],UX.prototype,"collapsed",void 0);_.V([_.C(),_.f("design:type",Object)],UX.prototype,"isToggled",void 0);_.V([_.C(),_.f("design:type",Object)],UX.prototype,"alwaysCollapsed",void 0);
_.V([_.C(),_.f("design:type",Object)],UX.prototype,"canToggle",void 0);_.V([_.C(),_.f("design:type",Object)],UX.prototype,"collapsedHeight",void 0);_.V([_.C(),_.f("design:type",Object)],UX.prototype,"disableToggle",void 0);_.V([_.C(),_.f("design:type",Object)],UX.prototype,"alwaysToggleable",void 0);_.V([_.C(),_.f("design:type",Object)],UX.prototype,"reversed",void 0);_.V([_.C(),_.f("design:type",Number)],UX.prototype,"maxNumberOfLines",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.f("design:type",Object)],UX.prototype,"shouldUseNumberOfLines",void 0);_.V([_.C(),_.f("design:type",Object)],UX.prototype,"recomputeOnResize",void 0);_.V([_.to("#content"),_.f("design:type",HTMLDivElement)],UX.prototype,"content",void 0);_.V([_.zj("alwaysToggleable"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],UX.prototype,"alwaysToggleableChanged",null);
_.V([_.zj("isToggled"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],UX.prototype,"toggledChanged",null);_.V([_.W("canToggleJobId"),_.f("design:type",Object),_.f("design:paramtypes",[])],UX.prototype,"isResetting",null);_.V([_.OB("reversed"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],UX.prototype,"reversedChanged",null);
_.V([_.u3("iron-resize"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],UX.prototype,"onIronResize",null);_.V([_.OB("maxNumberOfLines","collapsedHeight"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],UX.prototype,"observeCollapsedHeightAndMaxLines",null);_.V([_.OB("collapsed"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],UX.prototype,"collapsedChangedForBinding",null);
_.V([_.OB("isToggled"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],UX.prototype,"isToggledChangedForBinding",null);_.V([_.OB("canToggle"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],UX.prototype,"canToggleChangedForBinding",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-expander"})],UX);
_.k(UX,"ytd-expander",function(){if(i3b!==void 0)return i3b;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return i3b=b},{mode:1});var pr=function(){return _.g.apply(this,arguments)||this};
_.z(pr,_.g);pr.prototype.computeIsCarousel=function(b){return!!b.isCarousel};
pr.prototype.observeLightsourcePalette=function(){var b,h=(b=this.data)==null?void 0:b.vibrantsourceColorPaletteData;h&&_.IF(this.hostElement,h)};
pr.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
pr.prototype.observeLightsourcePalette=pr.prototype.observeLightsourcePalette;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],pr.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],pr.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],pr.prototype,"data",void 0);_.V([_.C({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.f("design:type",Boolean)],pr.prototype,"isCarousel",void 0);
_.V([_.OB("data.vibrantsourceColorPaletteData"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],pr.prototype,"observeLightsourcePalette",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],pr);
_.k(pr,"ytd-media-upsell-renderer",function(){if(Ehw!==void 0)return Ehw;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return Ehw=b},{mode:2});var fk7;var JZ=function(){var b=_.g.apply(this,arguments)||this;b.JSC$15256_playerEvents=new Map;b.listeningToPlayer=!1;b.startX=0;b.active=!1;b.shouldShowButtons=_.r("web_buttons_hidden_killswitch");b.isHighlighted=!1;b.useHighlightStyling=_.r("web_enable_deeper_metadata_highlight_styling");b.enableProblemWalkthrough=_.r("problem_walkthrough_sd");return b};
_.z(JZ,_.g);_.d=JZ.prototype;
_.d.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}}}}}};
_.d.created=function(){this.JSC$15256_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.d.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.Hl(this,this.onRepeatButtonToggle));this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.Hl(this,this.onActiveUpdate))};
_.d.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.Hl(this,this.onRepeatButtonToggle));this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.Hl(this,this.onActiveUpdate))};
_.d.onDataChanged=function(){this.removePlayerListeners()};
_.d.onColorPaletteChange=function(){var b={},h;if(_.Vk()==="USER_INTERFACE_THEME_DARK"&&((h=this.data)==null?0:h.darkColorPalette)){var y=this.data.darkColorPalette;b["--ytd-macro-markers-list-item-background-color"]=_.CR(this.get("section2Color",y))}else{var S;_.Vk()==="USER_INTERFACE_THEME_LIGHT"&&((S=this.data)==null?0:S.lightColorPalette)&&(y=this.data.lightColorPalette,b["--ytd-macro-markers-list-item-background-color"]=_.CR(this.get("section3Color",y)))}y?(b["--ytd-macro-markers-list-item-title-color"]=
_.CR(this.get("primaryTitleColor",y)),b["--ytd-macro-markers-list-item-secondary-color"]=_.CR(this.get("secondaryTitleColor",y)),b["--ytd-macro-markers-list-item-timestamp-background-color"]=_.CR(this.get("section1Color",y)),this.customButtonProperties={customColors:{color:_.CR(this.get("primaryTitleColor",y))}},this.useColorSampling=!0):(b["--ytd-macro-markers-list-item-background-color"]="initial",b["--ytd-macro-markers-list-item-title-color"]="initial",b["--ytd-macro-markers-list-item-secondary-color"]=
"initial",b["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.nZ(this.hostElement,b)};
_.d.onEndpointMouseDown=function(b){this.startX=b.clientX};
_.d.onEndpointClick=function(b){var h=this,y,S,F;return _.Z(function(a){if(a.nextAddress==1){if(h.startX!==b.clientX)return b.preventDefault(),a.return();h.data&&h.ytRendererBehavior.logExplicitClick(h.data);if(!h.seekWithAnimationOnClick)return a.jumpTo(0);if(b.button!==0||b.shiftKey||b.altKey||b.metaKey||b.ctrlKey||_.mf(_.Qk(b),h.hostElement,["BUTTON".toString()]))return a.return();b.stopPropagation();b.preventDefault();return h.data?a.yield(_.Sa().getPlayerPromise(),3):a.return()}y=a.yieldResult;
F=(S=_.c(h.data.onTap,_.wO))==null?void 0:S.startTimeSeconds;F!==void 0&&y.seekToTimeWithAnimation(F*1E3,_.vi(h.data.title));_.g3(a)})};
_.d.computeLayout=function(b){return b};
_.d.computeIsHighlighted=function(b){return!!b};
_.d.computeCarouselType=function(b){return b};
_.d.hideCarousel=function(b){return this.hideThumbnail(b)};
_.d.hideThumbnail=function(b){return this.enableProblemWalkthrough&&b!==null&&b==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.d.onRepeatButtonToggle=function(b){var h=this;b.detail.toggled&&_.Sa().getPlayerPromise().then(function(y){h.ytPlayerListenerBehavior.listenToPlayerEvents(y,h.JSC$15256_playerEvents);h.listeningToPlayer=!0})};
_.d.onLoopRangeChange=function(b){var h=_.$x(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(h){var y=h.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",h.polymerController.data);if(y){var S=Number(y.endTimeMs);if(Number(y.startTimeMs)!==(b==null?void 0:b.startTimeMs)||S!==(b==null?void 0:b.endTimeMs))h.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.d.removePlayerListeners=function(){var b=this;this.listeningToPlayer&&_.Sa().getPlayerPromise().then(function(h){b.ytPlayerListenerBehavior.unlistenFromPlayerEvents(h,b.JSC$15256_playerEvents);b.listeningToPlayer=!1})};
_.d.onActiveUpdate=function(b){this.active=b.detail.active};
JZ.prototype.onColorPaletteChange=JZ.prototype.onColorPaletteChange;JZ.prototype.onDataChanged=JZ.prototype.onDataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],JZ.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],JZ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.UA.YtPlayerListenerBehavior),_.f("design:type",_.pf)],JZ.prototype,"ytPlayerListenerBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],JZ.prototype,"data",void 0);_.V([_.C({value:!1,reflectToAttribute:!0}),_.f("design:type",Boolean)],JZ.prototype,"useCustomColors",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],JZ.prototype,"active",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],JZ.prototype,"shouldShowButtons",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.f("design:type",String)],JZ.prototype,"layout",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.f("design:type",Object)],JZ.prototype,"isHighlighted",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],JZ.prototype,"useHighlightStyling",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],JZ.prototype,"enableProblemWalkthrough",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.f("design:type",String)],JZ.prototype,"carouselType",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],JZ.prototype,"useColorSampling",void 0);_.V([_.C(),_.f("design:type",Boolean)],JZ.prototype,"seekWithAnimationOnClick",void 0);_.V([_.C(),_.f("design:type",Object)],JZ.prototype,"customButtonProperties",void 0);
_.V([_.to("#repeat-button"),_.f("design:type",HTMLElement)],JZ.prototype,"repeatButton",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],JZ.prototype,"onDataChanged",null);_.V([_.OB("data.lightColorPalette","data.darkColorPalette"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],JZ.prototype,"onColorPaletteChange",null);
_.V([_.Yx({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],JZ);
_.k(JZ,"ytd-macro-markers-list-item-renderer",function(){if(fk7!==void 0)return fk7;var b=document.createElement("template");_.D(b,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[hideCarousel(data.carouselType)]]">\n  <div hidden="[[hideThumbnail(data.carouselType)]]" id="thumbnail" class="style-scope ytd-macro-markers-list-item-renderer">\n    <yt-img-shadow hidden="[[!data.thumbnail]]" object-fit="FILL" thumbnail="[[data.thumbnail]]" class="style-scope ytd-macro-markers-list-item-renderer">\n    </yt-img-shadow>\n    <div id="overlay" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n  </div>\n  <div id="details" class="style-scope ytd-macro-markers-list-item-renderer">\n    <h4 hidden="[[hideThumbnail(data.carouselType)]]" class="macro-markers style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <h4 hidden="[[!hideThumbnail(data.carouselType)]]" class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n  </div>\n</a>\n<div id="details" hidden="[[!hideCarousel(data.carouselType)]]" class="style-scope ytd-macro-markers-list-item-renderer">\n  <a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[!hideThumbnail(data.carouselType)]]">\n    <h4 class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n  </a>\n  <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n</div>\n<div id="share-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n<div id="repeat-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return fk7=b},{mode:1});var wUw;var lkW;var eU=function(){return _.g.apply(this,arguments)||this};
_.z(eU,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],eU.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],eU.prototype,"data",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],eU);
_.k(eU,"ytd-title-and-button-list-header-renderer",function(){if(lkW!==void 0)return lkW;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return lkW=b},{mode:1});var qmW;var xve=new _.ca("BUTTON_RENDERER_TOKEN");_.Cr=_.T(function(b){var h=_.H9().resolve(xve);return _.M(h,Object.assign({},b,{overrides:b.buttonOverrides}))},"Wa");var Qjb=_.T(function(b){var h=b.data,y=_.bi(b.useSquareAspectRatio,!1);return _.M("dismissed-mini-game-card-view-model",null,_.M(_.H,{cond:function(){var S,F;return(S=h().responseText)==null?void 0:(F=S.runs)==null?void 0:F.length},
then:function(){var S={};return _.M("div",{class:_.P2("yt-mini-game-card-view-model__dismissed-card",(S["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!y()},S["yt-mini-game-card-view-model--dismissed-portrait-card-2by3-aspect-ratio"]=function(){return!!_.r("web_game_card_force_2_by_3")},S["yt-mini-game-card-view-model--dismissed-square-card"]=y,S))},_.M("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.M(_.H,{cond:function(){return h().responseText.runs[0].text},
then:function(F){return _.M("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:F},F)}}),_.M(_.rC,{data:function(){return h().buttons}},{buttonRenderer:_.Cr,
buttonViewModel:_.EG})))}}))},"Xa");var mvW=_.T(function(b){var h=b.data;return _.M("br-nz-badge-shape",{class:_.P2(function(){return F95(h().brNzRatingBadgeType)}),
role:function(){return h().accessibilityText?"img":void 0},
"aria-label":function(){return h().accessibilityText}},function(){var y;
return(y=h())==null?void 0:y.text})},"Ya");_.gE=_.T(function(b){var h=function(){var y=b.data(),S,F,a,P,K;if(y){var n=!((S=b.workaroundShortsIsThumbnailBadge)==null||!S.call(b));S=(F=b.modern)==null?void 0:F.call(b);F=(a=b.numBadgesInRow)==null?void 0:a.call(b);a=(P=b.clipTextOverflow)==null?void 0:P.call(b);P=(K=b.inheritTypography)==null?void 0:K.call(b);var X;a:switch(y.badgeStyle){case "BADGE_OVERLAY":K=!0;break a;default:K=!1}y={type:n?17:azq(y.badgeStyle),brNzRatingBadgeType:d2n(y.badgeStyle),text:y.badgeText,icon:y.iconName,isOverlay:K,
modern:S||_.r("web_modern_badge_view_model"),accessibilityText:y.accessibilityLabel||((X=_.c(y.rendererContext,_.zR))==null?void 0:X.label),numBadgesInRow:F,clipTextOverflow:a,shouldInheritTypography:P}}else y=void 0;return y};
return _.M("yt-badge-view-model",{class:_.P2("ytBadgeViewModelHost",b.class)},_.M(_.kZ,null,_.M(_.YZ,{when:function(){var y;return!((y=h())==null||!y.brNzRatingBadgeType)}},function(){return _.M(mvW,{data:function(){return h()}})}),_.M(_.YZ,{when:function(){return!!h()&&!h().brNzRatingBadgeType}},function(){return _.M(_.z_,{data:function(){return h()}})})))},"Za");
_.gE.idomCompat=!0;var d7o=_.T(function(b){b=_.h6(b,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var h=b.data,y=b.useFullWidth,S=b.isDesktopWeb,F=b.addSearchResultTopMargin,a=function(){return h().layout},P=function(){return h().title},K=function(){return h().metadataText?h().metadataText:h().genre},n=function(){return h().channelName},X=function(){return h().image},u=function(){return h().colorPalette},O=function(){return h().actionButton},N=function(){return h().overflowButton},
t=function(){return h().avatar},R=function(){return h().ageRating},I=function(){var E={};
E=_.P2("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(E["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return S()},E));
return _.M("div",{class:E},_.M(vha,{imageData:X,colorPalette:u}),_.M(bBo,{onTap:function(){return h().onTap},
imageData:X,accessibilityText:function(){return h().accessibilityText},
overlayBadgeText:function(){return h().overlayBadgeText},
iconName:function(){return h().iconName},
unplayableInlinePlaybackIconName:function(){return h().unplayableInlinePlaybackIconName},
isDesktopWeb:S}),_.M(_.H,{cond:function(){return!S()},
then:function(){return _.M(_.OW,null,_.M(hB5,{layout:a,colorPalette:u,isDesktopWeb:S,overflowButton:N,avatar:t,onTap:function(){return h().onTap},
genre:K,title:P,channelName:n}),_.M(ynG,{actionButton:O}))}}))},U=function(){var E={};
E=_.P2((E["yt-mini-game-card-view-model--search-result-desktop"]=function(){return S()},E["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!S()},E["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return F()},E));
return _.M("div",{class:E},I(),_.M(SxP,{description:function(){return h().description},
isDesktopWeb:S,title:P,genre:K,onTap:function(){return h().onTap},
actionButton:O,overflowButton:N,avatar:t,channelName:n}))},p=function(){var E={};
E=_.P2("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(E["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return S()},E["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return S()&&h().width===135},E["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return S()},E["yt-mini-game-card-view-model--big-metadata-font"]=function(){return h().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},E["yt-mini-game-card-view-model--use-full-width"]=
function(){return y()},E["yt-mini-game-card-view-model--portrait-card-force-2by3-aspect-ratio"]=function(){return!!_.r("web_game_card_force_2_by_3")},E));
return _.M("div",{class:E},_.M(F7P,{colorPalette:u,isDesktopWeb:S,onTap:function(){return h().onTap},
accessibilityText:function(){return h().accessibilityText},
overlayBadgeText:function(){return h().overlayBadgeText},
iconName:function(){return h().iconName},
unplayableInlinePlaybackIconName:function(){return h().unplayableInlinePlaybackIconName},
actionButton:O,imageData:X}),_.M(hB5,{layout:a,colorPalette:u,isDesktopWeb:S,overflowButton:N,avatar:t,onTap:function(){return h().onTap},
genre:K,title:P,channelName:n}),_.M(_.H,{cond:R,then:function(Y){return _.M(aue,{ageRating:Y})}}))},e=function(){var E={};
E=_.P2("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(E["yt-mini-game-card-view-model--square-card-desktop"]=function(){return S()},E["yt-mini-game-card-view-model--use-full-width"]=function(){return y()},E));
return _.M("div",{class:E},_.M(bBo,{onTap:function(){return h().onTap},
imageData:X,accessibilityText:function(){return h().accessibilityText},
overlayBadgeText:function(){return h().overlayBadgeText},
iconName:function(){return h().iconName},
unplayableInlinePlaybackIconName:function(){return h().unplayableInlinePlaybackIconName},
isDesktopWeb:S}),_.M(hB5,{layout:a,colorPalette:u,isDesktopWeb:S,overflowButton:N,avatar:t,onTap:function(){return h().onTap},
genre:K,title:P,channelName:n}),_.M(_.H,{cond:R,then:function(Y){return _.M(aue,{ageRating:Y})}}))};
return _.M("mini-game-card-view-model",{class:b.className},_.M(_.kZ,null,_.M(_.YZ,{when:function(){return a()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return p()}),_.M(_.YZ,{when:function(){return a()==="MINI_APP_LAYOUT_SQUARE"}},function(){return e()}),_.M(_.YZ,{when:function(){return a()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return U()})))},"$a");
d7o.idomCompat=!0;var ynG=_.T(function(b){var h=_.bi(b.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.M(_.rC,{data:b.actionButton},{buttonViewModel:function(y){return _.M("div",{class:h},_.M(_.EG,{data:y.data}))}})},"ab"),bBo=_.T(function(b){var h=b.onTap;
var y=b.imageData;var S=b.accessibilityText;var F=b.overlayBadgeText;var a=b.iconName;var P=b.unplayableInlinePlaybackIconName;b=b.isDesktopWeb;return _.M(_.YN,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:h},_.M(_.mI,{data:y,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(S==null?void 0:S())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.M(j18,{overlayBadgeText:F,iconName:a,unplayableInlinePlaybackIconName:P,isDesktopWeb:b}))},"bb"),j18=_.T(function(b){var h=b.overlayBadgeText;
var y=b.iconName;var S=b.unplayableInlinePlaybackIconName;var F=b.isDesktopWeb;return _.M("div",{class:"yt-mini-game-card-view-model__badge-container"},_.M(_.H,{cond:y,then:function(a){return _.M("div",{class:"yt-mini-game-card-view-model__badge"},_.M("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.M(_.Xv,{icon:a,className:"yt-mini-game-card-view-model__icon",size:12}),_.M("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},h)))}}),_.M(_.H,{cond:function(){return!y()&&
h()},
then:function(){return _.M("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},h)}}),_.M(_.H,{cond:function(){return S()&&F()},
then:function(){return _.M("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.M(_.Xv,{icon:S,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"cb"),vha=_.T(function(b){var h=b.colorPalette;
var y=b.imageData;var S=function(){return h().vibrantColorPalette?h().vibrantColorPalette.section2Color:h().sectionTwoColor};
return _.M(_.OW,null,_.M("div",{class:"yt-mini-game-card-view-model__background-base",style:_.n9({"background-color":function(){return gq(S(),"1")}})}),_.M("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.n9({"background-image":function(){return"url("+y().sources[0].url+")"}})}),_.M("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.n9({background:function(){return"linear-gradient(180deg,\n    "+gq(S(),".8")+" 0%,\n    "+gq(S(),".4")+" 25%,\n    "+gq(h().vibrantColorPalette?h().vibrantColorPalette.section4Color:h().sectionFourColor,".8")+" 100%)"}})}))},"db"),hB5=_.T(function(b){var h=b.layout;
var y=b.colorPalette;var S=b.overflowButton;var F=b.avatar;var a=b.onTap;var P=b.title;var K=b.channelName;var n=b.genre;var X=function(){var u;return h()!=="MINI_APP_LAYOUT_SQUARE"&&((u=y())==null?0:u.textPrimaryColor)?"color: "+gq(y().textPrimaryColor,".7"):""};
return _.M("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.M(_.H,{cond:F,then:function(){return _.M("div",{class:"yt-mini-game-card-view-model__avatar"},_.M(_.rC,{data:F},{avatarViewModel:_.OX}))}}),_.M(_.YN,{command:a,
className:"yt-mini-game-card-view-model__metadata-details"},_.M("h3",{class:"yt-mini-game-card-view-model__title",title:P},P),_.M(_.H,{cond:F,then:function(){return _.M("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.M("span",{class:"yt-mini-game-card-view-model__genre",title:K,style:X},K),_.M("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:X},n))},
else:function(){return _.M("span",{class:"yt-mini-game-card-view-model__genre",title:n},n)}})),_.M("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.M(_.rC,{data:S},{buttonViewModel:function(u){var O=u.data;
return _.M(_.EG,{data:function(){return Object.assign({},O(),{customFontColor:h()==="MINI_APP_LAYOUT_SINGLETON"?O().customFontColor:void 0})}})}})))},"eb"),F7P=_.T(function(b){var h=b.colorPalette;
var y=b.isDesktopWeb;var S=b.onTap;var F=b.accessibilityText;var a=b.overlayBadgeText;var P=b.iconName;var K=b.unplayableInlinePlaybackIconName;var n=b.actionButton;b=b.imageData;return _.M("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.M(vha,{imageData:b,colorPalette:h}),_.M(bBo,{onTap:S,imageData:b,accessibilityText:F,overlayBadgeText:a,iconName:P,unplayableInlinePlaybackIconName:K,isDesktopWeb:y}),_.M(_.H,{cond:function(){return n==null?void 0:n()},
then:function(){return _.M(ynG,{actionButton:n})}}))},"fb"),SxP=_.T(function(b){var h=b.description;
var y=b.isDesktopWeb;var S=b.title;var F=b.genre;var a=b.onTap;var P=b.actionButton;var K=b.overflowButton;var n=b.avatar;b=b.channelName;var X={};X=_.P2("yt-mini-game-card-view-model--search-result-metadata-wrapper",(X["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=y,X["yt-mini-game-card-view-model--show-unplayable-on-hover"]=y,X["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!y()},X));
var u={};u=_.P2("yt-mini-game-card-view-model__search-result-info-row",(u["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!y()},u));
return _.M("div",{class:X},_.M("div",{class:u},_.M(_.YN,{command:a,className:"yt-mini-game-card-view-model__metadata-details"},_.M("h3",{class:"yt-mini-game-card-view-model__title",title:S},S),_.M("span",{class:"yt-mini-game-card-view-model__genre",title:F},F)),_.M(ynG,{actionButton:P,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.M("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.M(_.rC,{data:K},{buttonViewModel:_.EG}))),_.M("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.M("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.M("div",{class:"yt-mini-game-card-view-model__avatar"},_.M(_.rC,{data:n},{avatarViewModel:function(O){var N=O.data;return _.M(_.OX,{data:function(){return Object.assign({},N(),{avatarImageSize:y()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.M(_.YN,{command:a,
className:"yt-mini-game-card-view-model__description"},_.M("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},b)),_.M(_.YN,{command:a,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.M("div",null)))),_.M(_.H,{cond:y,then:function(){return _.M(_.YN,{command:a,className:"yt-mini-game-card-view-model__description"},h)}}))},"gb"),aue=_.T(function(b){var h=b.ageRating;
return _.M("div",{class:"yt-mini-game-card-view-model__age-rating-wrapper"},_.M(_.mI,{data:function(){return{sources:[{url:h().imageUrl||"",width:16,height:16}]}},
className:"yt-mini-game-card-view-model__age-rating-image",alt:"",targetHeight:16,targetWidth:16,preserveWidth:!0,preserveHeight:!0}),_.M(_.gE,{data:function(){return{badgeText:h().label||"",badgeStyle:"BADGE_MEDIA"}},
modern:!0,class:"yt-mini-game-card-view-model__age-rating-badge",clipTextOverflow:!0}))},"hb");_.yd(d7o,"mini-game-card-view-model",{props:{data:_.D4,className:_.D4,useFullWidth:_.D4,isDesktopWeb:_.D4,addSearchResultTopMargin:_.D4}});_.yd(Qjb,"dismissed-mini-game-card-view-model",{props:{data:_.D4,useSquareAspectRatio:_.D4}});var sX=function(){var b=_.g.apply(this,arguments)||this;b.isSearch=!1;b.isRichGrid=!1;return b};
_.z(sX,_.g);_.d=sX.prototype;_.d.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.d.dismissibleItemOnYtServiceRequestSent=function(b,h){h.actions&&this.dismissibleItemProcessActions(b,h.actions)};
_.d.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.d.dataChanged=function(){this.dismissibleItemReset()};
_.d.dismissibleItemProcessActions=function(b,h){for(var y=0;y<h.length;y++){var S=h[y];_.c(S,_.m8)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.c(S,_.m8)),b.stopPropagation())}};
_.d.dismissibleItemHandleReplaceEnclosingAction=function(b){this.dismissedRenderer=b.item;this.isDismissed=!0};
_.tm.Object.defineProperties(sX.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.data)==null?void 0:b.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var b;return!!this.data&&!((b=this.dismissedRenderer)==null?0:b.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.dismissedRenderer)==null||!b.notificationMultiActionRenderer)}}});
sX.prototype.dataChanged=sX.prototype.dataChanged;sX.prototype.dismissibleItemOnRequestSent=sX.prototype.dismissibleItemOnRequestSent;sX.prototype.dismissibleItemOnYtServiceRequestSent=sX.prototype.dismissibleItemOnYtServiceRequestSent;_.V([_.C(),_.f("design:type",Object)],sX.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],sX.prototype,"isSearch",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],sX.prototype,"isDismissed",void 0);
_.V([_.C(),_.f("design:type",Object)],sX.prototype,"dismissedRenderer",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],sX.prototype,"isRichGrid",void 0);_.V([_.W("data.layout"),_.f("design:type",Object),_.f("design:paramtypes",[])],sX.prototype,"useSquareAspectRatio",null);_.V([_.W("data","dismissedRenderer"),_.f("design:type",Object),_.f("design:paramtypes",[])],sX.prototype,"showCard",null);
_.V([_.W("data","dismissedRenderer"),_.f("design:type",Object),_.f("design:paramtypes",[])],sX.prototype,"showDismissed",null);_.V([_.u3("yt-service-request-sent"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,_.kE]),_.f("design:returntype")],sX.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.V([_.u3("yt-service-request-sent-button-renderer"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],sX.prototype,"dismissibleItemOnRequestSent",null);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],sX.prototype,"dataChanged",null);_.V([_.sB({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],sX);
_.k(sX,"ytd-mini-game-card-view-model",function(){if(qmW!==void 0)return qmW;var b=document.createElement("template");_.D(b,'\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>');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return qmW=b},{mode:_.Lt("kevlar_poly_si_batch_j081")?1:2});var $7P;var L78;var Yw=function(){return _.rk.apply(this,arguments)||this};
_.z(Yw,_.rk);Yw.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
Yw.prototype.getContinuationUrl=function(b){var h={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(h.itct=this.data.clickTrackingParams);return _.P9(b,h)};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Yw.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Yw.prototype,"data",void 0);_.V([_.sB({is:"yt-reload-continuation",noInjection:!0})],Yw);var POM;var K7P;var TB=function(){var b=_.g.apply(this,arguments)||this;b.notificationData={};return b};
_.z(TB,_.g);_.d=TB.prototype;_.d.isMenuExpanded=function(b){return b&&b.length<=1?"undefined":"false"};
_.d.dataChanged_=function(){this.selected=void 0;var b=this.computeSelectedIndex_(this.data);b>=0&&(this.selected=b);b=this.data&&this.data.length>1;_.Zm(this.hostElement,"has-items",b);_.$x(this.hostElement).querySelector("#label").tabIndex=b?0:-1};
_.d.onDropdownOpen=function(){var b=_.UE();if(this.parentTrackingParams&&this.data){var h=_.I_(this.parentTrackingParams);this.data.forEach(function(y){b&&h&&y.trackingParams&&(y=_.I_(y.trackingParams),_.Vh(b,h,y),_.fI(b,[y]))})}else this.parentTrackingParams||_.vX(new _.Gn("No parent tracking params passed in for yt-dropdown-menu."))};
_.d.hasNotification=function(b){var h;if(b.targetId&&((h=this.notificationData)==null?0:h.targetId)){var y;return b.targetId===((y=this.notificationData)==null?void 0:y.targetId)}};
_.d.computeSelectedIndex_=function(b){if(b)for(var h=0,y=b.length;h<y;h++)if(b[h].selected)return h;return-1};
_.d.computeLabel_=function(b){return this.data&&b!=void 0?this.data[b].title:""};
_.d.computeShowIcon_=function(b,h){return!h&&!!b};
_.d.computeVerticalOffset_=function(b){return b?36:0};
_.d.computeEndpoint_=function(b){return b.endpoint||b.navigationEndpoint};
_.d.onLabelClick_=function(b){this.data&&this.data.length<=1?b.stopPropagation():this.menuExpanded="true"};
_.d.onIronActivate_=function(b){b=b.detail.item;var h=_.$x(this.hostElement).querySelector("#repeat").itemForElement(b);if(h&&h.trackingParams){var y=_.UE(),S=_.I_(h.trackingParams);y&&_.lE(y,S)}if(h&&h.serviceEndpoint)_.r("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(h.serviceEndpoint):_.dh(this.hostElement,[h.serviceEndpoint]),_.Sx(this.hostElement,"yt-playlist-reloading");else a:{if((h=b.querySelector("yt-supported-renderers"))&&
(h=h.rendererElement)&&h.is=="yt-reload-continuation"){h.trigger();break a}(b=b.querySelector("yt-reload-continuation"))&&b.trigger()}};
_.d.onTap_=function(b){b.preventDefault()};
_.d.onItemTap_=function(b){this.ytEndpointBehavior.onEndpointTap_(b)};
_.d.onLinkFocus_=function(b){try{var h=b.target}catch(S){}if(h){var y=h.querySelector("tp-yt-paper-item");y&&_.wy(this,"focus",function(){y.focus()})}};
_.d.onMenuClose_=function(){this.menuExpanded="false"};
_.d.isLabelIconActive_=function(b){return b==="true"};
_.d.computeHasSubtitle_=function(b){return!!b};
_.d.computeHrefForItem_=function(b){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(b))};
_.d.updateSelectedFromBinding=function(b){this.selected=b.detail.value};
_.tm.Object.defineProperties(TB.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
TB.prototype.onMenuClose_=TB.prototype.onMenuClose_;TB.prototype.onTap_=TB.prototype.onTap_;TB.prototype.onIronActivate_=TB.prototype.onIronActivate_;TB.prototype.onDropdownOpen=TB.prototype.onDropdownOpen;TB.prototype.dataChanged_=TB.prototype.dataChanged_;_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],TB.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Q5.YtEndpointBehavior),_.f("design:type",Object)],TB.prototype,"ytEndpointBehavior",void 0);
_.V([_.C(),_.f("design:type",Array)],TB.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],TB.prototype,"parentTrackingParams",void 0);_.V([_.C(),_.f("design:type",Object)],TB.prototype,"selected",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],TB.prototype,"useLabel",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],TB.prototype,"useComputedAriaLabel",void 0);_.V([_.C(),_.f("design:type",String)],TB.prototype,"icon",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",String)],TB.prototype,"iconLabel",void 0);_.V([_.C(),_.f("design:type",String)],TB.prototype,"ariaLabel",void 0);_.V([_.C({value:!1,reflectToAttribute:!0}),_.f("design:type",Boolean)],TB.prototype,"disabled",void 0);_.V([_.C({computed:"isMenuExpanded(data)"}),_.f("design:type",String)],TB.prototype,"menuExpanded",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],TB.prototype,"closeOnActivate",void 0);
_.V([_.C({reflectToAttribute:!0,value:_.r("web_modern_buttons")}),_.f("design:type",Boolean)],TB.prototype,"modernButtons",void 0);_.V([_.C(),_.f("design:type",Object)],TB.prototype,"notificationData",void 0);_.V([_.W("ariaLabel, selected"),_.C(),_.f("design:type",String),_.f("design:paramtypes",[])],TB.prototype,"computedAriaLabel",null);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],TB.prototype,"dataChanged_",null);
_.V([_.u3("paper-dropdown-open"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],TB.prototype,"onDropdownOpen",null);_.V([_.u3("iron-activate"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],TB.prototype,"onIronActivate_",null);_.V([_.u3("tap"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],TB.prototype,"onTap_",null);
_.V([_.u3("iron-overlay-closed"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],TB.prototype,"onMenuClose_",null);_.V([_.sB({is:"yt-dropdown-menu",disableElementRegistration:!0})],TB);
_.k(TB,"yt-dropdown-menu",function(){if(K7P===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;POM===void 0&&(POM=document.createElement("template"));var S=POM;y.call(h,S.content.cloneNode(!0),b.content.firstChild);K7P=b}b=K7P;return b},{mode:2});var GB=function(){var b=_.g.apply(this,arguments)||this;b.hasNotification=!1;return b};
_.z(GB,_.g);GB.prototype.computeId=function(b){return b};
GB.prototype.computeHorizontalAlign=function(b){return b?"right":"left"};
GB.prototype.computeAccessibilityLabel=function(b){var h,y;return((h=b.accessibility)==null?void 0:(y=h.accessibilityData)==null?void 0:y.label)||null};
GB.prototype.notificationDataChanged=function(){var b;this.hasNotification=!!this.notificationData&&!((b=this.data)==null?0:b.icon)};
GB.prototype.notificationDataChanged=GB.prototype.notificationDataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],GB.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Hj.YtLiveChatTooltipTargetingBehavior),_.f("design:type",Object)],GB.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],GB.prototype,"data",void 0);_.V([_.C({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.f("design:type",String)],GB.prototype,"id",void 0);
_.V([_.C({value:!1}),_.f("design:type",Boolean)],GB.prototype,"isRightAligned",void 0);_.V([_.C({value:!1,reflectToAttribute:!0}),_.f("design:type",Boolean)],GB.prototype,"disabled",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],GB.prototype,"closeOnActivate",void 0);_.V([_.C(),_.f("design:type",Object)],GB.prototype,"notificationData",void 0);_.V([_.C(),_.f("design:type",Object)],GB.prototype,"hasNotification",void 0);
_.V([_.C({value:!1}),_.f("design:type",Boolean)],GB.prototype,"useComputedAriaLabel",void 0);_.V([_.OB("notificationData"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],GB.prototype,"notificationDataChanged",null);_.V([_.sB({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],GB);
_.k(GB,"yt-sort-filter-sub-menu-renderer",function(){if(L78===void 0){var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;$7P===void 0&&($7P=document.createElement("template"));var S=$7P;y.call(h,S.content.cloneNode(!0),b.content.firstChild);L78=b}b=L78;return b},{mode:2});var ZBW=_.T(function(b){var h=b.data;var y=_.Zv(function(){var a=h().onTap;(a=_.c(a,_.sQ))&&_.H9().resolve(_.OM).resolveCommand(a);return!1}),S=function(){return{sources:[{url:h().thumbnailUrl,
width:120,height:90}]}},F=function(){return h().rating&&h().ratingA11yLabel&&h().reviewsCount&&h().reviewsCountA11yLabel};
return _.M("place-data-view-model",null,_.M(_.H,{cond:function(){return h().placeName&&h().placeCategory},
then:function(){return _.M("div",{class:"ytSpecPlaceDataViewModelShapeHost","on:click":y},_.M(_.mI,{data:S,alt:"",targetWidth:120,targetHeight:90,className:"ytSpecPlaceDataViewModelShapeThumbnail"}),_.M(_.YN,{className:"ytSpecPlaceDataViewModelShapePlaceLink",command:function(){return h().onTap}},_.M("h3",{class:"ytSpecPlaceDataViewModelShapeName",
title:function(){return h().placeName}},function(){return h().placeName})),_.M("div",{class:"ytSpecPlaceDataViewModelShapeMetadata"},_.M(_.H,{cond:F,
then:function(){return _.M("div",{class:_.P2("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")},_.M("span",{class:"score",title:function(){return h().ratingA11yLabel}},function(){return h().rating}),_.M("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowStarIcon"},_.M(_.Xv,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.M("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowReviews",title:function(){return h().reviewsCountA11yLabel}},function(){return h().reviewsCount}))},
else:function(){return _.M("div",{class:_.P2("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")})}}),_.M("div",{class:_.P2("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowCategories")},_.M("span",{class:"category",
title:function(){return h().placeCategory}},function(){return h().placeCategory}))))}}))},"ib");
ZBW.idomCompat=!0;_.yd(ZBW,"place-data-view-model",{props:{data:_.D4}});var o45=new _.ca("INLINE_PLAYBACK_HOOK_TOKEN");var MTo=Uk({sharedUi:kZW});_.iM=p9(MTo)(MTo.sharedUi,{animatedThumbnailEnabledSelector:function(b){return b.animatedThumbnailEnabled},
inlinePreviewEnabledSelector:function(b){return b.inlinePreviewEnabled},
currentPageTypeSelector:function(b){return b.currentPageType},
currentPageSubTypeSelector:function(b){return b.currentPageSubType},
persistentPanelVisibleSelector:function(b){return b.persistentPanelVisible}});var n4M=function(b){this.setActiveSlideIndex=b;this.jobIds=[];this.isSlideshowPlaying=!1},uT8=function(b,h){b.isSlideshowPlaying||(b.isSlideshowPlaying=!0,XrN(b),HB7(b,h,0))},XrN=function(b){_.js(_.xP,function(){b.setActiveSlideIndex(0)},1)},HB7=function(b,h,y){b.jobIds.push(_.js(_.xP,function(){var S=y<h-1?y+1:0;
b.setActiveSlideIndex(S);HB7(b,h,S)},1800))};var OBw,tT7;OBw=new _.ca("CHANNEL_DISCLOSURE_VIEW_MODEL_TOKEN");_.Ni5=new _.ca("AI_COMPANION_ATTACHMENT_VIEW_MODEL_TOKEN");tT7=new _.ca("COMMON_MARK_VIEW_MODEL_TOKEN");var rn7=new _.ca("IMAGE_ON_LOAD_HANDLER_TOKEN");var cnW=_.T(function(b){return _.M("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.M(_.H,{cond:function(){var h;return(h=b.data())==null?void 0:h.thumbnail},
then:function(h){return _.M(_.mI,{data:h,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"jb");_.RBa=_.T(function(b){var h=b.data;var y=b.lockupExperiments;b={};return _.M("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.M("div",{class:_.P2("ytThumbnailOverlayButtonViewModelButton",(b.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var S;return y&&((S=y())==null?void 0:S.useLegacySizedIconButton)},b))},_.M(_.rC,{data:function(){return h().overlayButton}},{buttonViewModel:function(S){return _.M(_.EG,{data:S.data,
buttonOverrides:function(){var F;return y&&((F=y())==null?0:F.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0,tabIndex:-1}:void 0}})}})))},"kb");
_.RBa.idomCompat=!0;var zBM=_.T(function(b){return _.M("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.Zv(function(h){h.preventDefault();return!1})},_.M(_.rC,{data:function(){return b.data().buttons}},{toggleButtonViewModel:function(h){return _.M("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.M(_.Ke,{data:h.data}))}}))},"lb");
zBM.idomCompat=!0;var D7P=_.T(function(b){var h=function(){var y;return((y=_.c(b.data().rendererContext,_.zR))==null?void 0:y.label)||""};
return _.M("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.M(_.H,{cond:function(){return b.data().image},
then:function(){return _.M("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.M(_.mI,{data:function(){return b.data().image},
alt:h}))}}),_.M(_.H,{cond:function(){return b.data().text},
then:function(){return _.M("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return b.data().text})}}))},"mb");var IuN;IuN=_.iM.animatedThumbnailEnabledSelector;_.kw=_.T(function(b){var h=[],y=function(){var N,t;return _.DFf((N=b.width)==null?void 0:N.call(b),(t=b.height)==null?void 0:t.call(b))},S=_.H9().resolve(_.XS(rn7)),F=_.ZR("yt-thumbnail-view-model",function(){h.push("elRef.value set");
var N;(N=b.playbackRef)==null||N.call(b,{thumbnailElRef:F,thumbnail:b.data().image,thumbnailOverlays:b.data().overlays,thumbnailSize:y()})});
_.wg(function(){h.push("onInit");_.m2(function(){h.push("onCleanup")})});
var a=_.NG(IuN),P=function(){var N,t;return(t=(N=b.aspectRatio)==null?void 0:N.call(b))!=null?t:0},K=function(){return(b.data().image?_.lpU(b.data().image):P())<=1&&P()===0},n=function(){return K()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},X=function(){F.value||_.vX(new _.Gn("Thumbnail elRef.value is null",h.join("\n")));
S&&F.value&&S(F.value)},u=function(){var N,t;
return((N=b.hovered)==null?void 0:N.call(b))&&y()!=="large"&&((t=b.data().overlays)==null?void 0:t.some(function(R){return _.c(R,OfM)}))},O={};
return _.M("yt-thumbnail-view-model",{class:_.P2("ytThumbnailViewModelHost",b.className,function(){return $2Y(P())},function(){var N,t;
a:{var R=y(),I=(N=b.disableRounding)==null?void 0:N.call(b);N=(t=b.isClip)==null?void 0:t.call(b);if(!I&&!N)switch(R){case "large":t="ytThumbnailViewModelLarge";break a;case "small":t="ytThumbnailViewModelSmall";break a;default:t="ytThumbnailViewModelMedium";break a}t=void 0}return t},(O.ytThumbnailViewModelCinematic=K,O)),
style:_.n9({"background-color":function(){var N,t=K()?(N=b.data().backgroundColor)==null?void 0:N.lightTheme:void 0;return t?gq(t,"1"):void 0}}),
el:F},_.M(_.H,{cond:K,then:function(){return _.M("div",{class:"ytThumbnailViewModelBlurredImage"},_.M(_.mI,{data:function(){return b.data().image},
alt:"",contentMode:n,targetWidth:b.width,onload:X}))}}),_.M("div",{class:"ytThumbnailViewModelImage"},_.M(_.mI,{data:function(){return b.data().image},
alt:"",contentMode:n,targetWidth:b.width,onload:X}),null),_.M(_.rC,{data:function(){return u()?void 0:b.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:IkW,thumbnailOverlayBadgeViewModel:function(N){return _.M(_.BKN,{data:N.data,thumbnailSize:y,isClip:b.isClip})},
thumbnailBottomOverlayViewModel:function(N){return _.M(ccb,{data:N.data,thumbnailSize:y,isClip:b.isClip})},
thumbnailOverlayFullViewModel:D7P,thumbnailOverlayButtonViewModel:function(N){return _.M(_.RBa,{data:N.data,lockupExperiments:b.lockupExperiments})},
channelDisclosureViewModel:function(N){N=N.data;var t;return _.M("div",null,(t=_.H9().resolve(_.XS(OBw)))==null?void 0:t({data:N}))}}),_.M(_.rC,{data:function(){var N;
return((N=b.hovered)==null?0:N.call(b))?b.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(N){return _.M(uH,{data:N.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:zBM}),_.M(_.rC,{data:function(){var N;return((N=b.hovered)==null?0:N.call(b))&&a()?b.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:cnW}),_.M(_.H,{cond:b.isClip,then:function(){return _.M("div",{class:"ytPinkingNsHost"},_.M("svg",{class:"ytPinkingNsPinkingLeft"},_.M("defs",null,_.M("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.M("polygon",{class:"ytPinkingNsPinking",points:"0,0 4,4 0,8"}))),_.M("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.M("svg",{class:"ytPinkingNsPinkingRight"},_.M("defs",null,_.M("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.M("polygon",{class:"ytPinkingNsPinking",points:"4,0 0,4 4,8"}))),_.M("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"nb");
_.kw.idomCompat={callbacks:{playbackRef:!0}};var BiG=_.T(function(b){var h=_.L(_.pa(-1,void 0,"RW2Ole")),y=h.next().value,S=h.next().value;_.wg(function(){var F=new n4M(S);uT8(F,b.data().thumbnails.length);_.m2(function(){if(F.isSlideshowPlaying){F.isSlideshowPlaying=!1;for(var a=F.jobIds,P=0,K=a.length;P<K;P++)_.xP.cancelJob(a[P]);F.jobIds.length=0}})});
return _.M("yt-collection-thumbnail-slideshow",{class:"ytCollectionThumbnailSlideshowHost"},_.M(_.rC,{data:function(){return b.data().thumbnails}},{thumbnailViewModel:function(F,a){return _.M("div",{class:function(){var P=!b.data().primaryThumbnail,K=a(),n=y(),X=["ytCollectionThumbnailSlideshowSlideshowThumbnail"];
P&&K===0&&X.push("ytCollectionThumbnailSlideshowSlideshowThumbnailFirstSlide");K<=n&&X.push("ytCollectionThumbnailSlideshowSlideshowThumbnailShowSlide");return X.join(" ")}},_.M(_.kw,{data:F.data,
disableRounding:b.disableRounding}))}}))},"ob");
BiG.idomCompat=!0;var L9f=new _.ca("DWELL_DETECTOR_REGISTRY_TOKEN");var AnW=_.T(function(b){var h=P1f(b.triggeringElement),y=function(){return!!b.data().primaryThumbnail},S=function(){var a,P=(a=b.data())==null?void 0:a.maxHeight,K;
a=(K=b.maxHeight)==null?void 0:K.call(b);return P!=null&&a!=null?Math.min(P,a):a!=null?a:P},F=function(){var a=S();
if(a){var P;if(y()&&(P=b.includeStackHeight)!=null&&P.call(b)){var K;P=((K=b.doubleStack)==null?0:K.call(b))?8:4}else P=0;a=a-P-1;if(!(a<0)){K=Math;P=K.ceil;var n,X;var u=zn4((X=(n=b.aspectRatio)==null?void 0:n.call(b))!=null?X:0);return P.call(K,a*u)}}};
return _.M("yt-collection-thumbnail-view-model",{class:"ytCollectionThumbnailViewModelHost","aria-hidden":"true",style:_.n9({height:function(){return S()?S()+"px":void 0},
width:function(){return F()?F()+"px":void 0}})},_.M(W7e,{stackEnabled:y,
thumbnailSize:function(){var a,P;return _.DFf((a=b.width)==null?void 0:a.call(b),(P=b.height)==null?void 0:P.call(b))},
doubleStack:b.doubleStack,stackColor:function(){return b.data().stackColor},
includeStackHeight:b.includeStackHeight},_.M(_.rC,{data:function(){return b.data().primaryThumbnail}},{thumbnailViewModel:function(a){var P={};
return _.M(_.kw,{data:a.data,width:b.width,height:b.height,aspectRatio:b.aspectRatio,disableRounding:b.disableRounding,className:_.P2((P.ytCollectionThumbnailViewModelHostHasStacks=y,P)),hovered:b.hovered,playbackRef:b.playbackRef})}}),_.M(_.H,{cond:function(){var a;
return h()&&((a=b.data().thumbnails)==null?void 0:a.length)},
then:function(){return _.M("div",{class:"ytCollectionThumbnailViewModelSlideshow"},_.M(BiG,{data:b.data,disableRounding:function(){return!y()}}))}})))},"pb");
AnW.idomCompat={callbacks:{playbackRef:!0}};
var W7e=_.T(function(b){var h=b.children;var y=b.stackEnabled;var S=b.thumbnailSize;var F=b.doubleStack;var a=b.stackColor;var P=b.includeStackHeight;var K,n=(K=_.H9().resolve(_.XS(_.cC)))==null?void 0:K();return _.M(_.H,{cond:y,then:function(){return _.M(vtN,{data:function(){var X,u;return{experimentEnabled:!0,thumbnailSize:S(),doubleStack:F==null?void 0:F(),color:n?a==null?void 0:(X=a())==null?void 0:X.darkTheme:a==null?void 0:(u=a())==null?void 0:u.lightTheme,enableResponsiveMode:!1,includeStackHeight:P==
null?void 0:P()}}},h)},
else:function(){return h}})},"qb");var U75=new _.ca("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var EX;_.VZ={calledOnce:!0,state:"visible"};EX={calledOnce:!0,state:"hidden"};_.iH=_.T(function(b){var h=b.data;var y=b.customCommandResolver;var S=b.className;var F=b.delayedClassName;var a=b.animationEntityKey;var P=b.isCompactWidth;var K=b.isContentWidth;b=_.L(_.pa(!1,void 0,"pC3tUb"));var n=b.next().value,X=b.next().value,u=_.bi(a,""),O=_.OF(jZN,u),N=function(){var Xn,Ny;return(Ny=(Xn=O())==null?void 0:Xn.value)!=null?Ny:!1},t=function(){_.vl(_.R7("booleanEntity",u(),{key:u(),
value:!0}));w=void 0};
a=_.L(_.ya(N));var R=a.next().value,I=a.next().value;a=_.L(_.ya(N));var U=a.next().value,p=a.next().value;a=_.L(_.ya(function(){var Xn;return N()?(Xn=h().styleTransitionConfig)==null?void 0:Xn.destinationStyle:void 0}));
var e=a.next().value,E=a.next().value,Y=function(){var Xn=Object.assign({},h(),e()&&{style:e()});var Ny,gI,YU=Xn.label,VN=(Ny=Xn.interaction)==null?void 0:(gI=Ny.accessibility)==null?void 0:gI.label;Ny=Xn.iconImage?Xn.label&&Xn.label.content?Xn.iconLeading?"leading":"trailing":"icon-only":void 0;Xn={formattedButtonText:YU,accessibilityLabel:VN,style:MBj(Xn.style),type:ntU(Xn.style),state:"active",size:ot4(Xn.size),iconPosition:Ny,disabled:!1,aTagConfig:Z6N(Xn,y)};_.r("enable_desktop_vdcbg_components")&&
(Xn.focused=n());return Xn},w;
a=_.r_({visibilityCallback:function(Xn){var Ny,gI=(Ny=h().interaction)==null?void 0:Ny.onFirstVisible;Xn&&gI&&_.Va(gI)},
showOption:_.VZ});var x=function(){return enY(Y(),!!h().iconImage)};
b={};var q={};S=_.P2(function(){return"ytwAdButtonViewModelHost"},function(){return h().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var Xn=!!h().delayedAppearanceConfig,Ny=R();
return Xn?Ny?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var Xn=!!h().delayedAppearanceConfig,Ny=U();
return Xn?Ny?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!h().delayedAppearanceConfig||R()?F==null?void 0:F():""},(b.ytwAdButtonViewModelHostCompactWidth=function(){return P==null?void 0:P()},b),(q.ytwAdButtonViewModelHostContentWidth=function(){return K==null?void 0:K()},q),S!=null?S:"");
var dI=function(){var Xn,Ny=(Xn=h().delayedAppearanceConfig)==null?void 0:Xn.delayedInvisibleSeconds;Ny&&(w=_.I7(_.xP,function(){I(!0);L4()},Ny*1E3))},L4=function(){var Xn,Ny=(Xn=h().delayedAppearanceConfig)==null?void 0:Xn.delayedVisibleSeconds;
Ny&&(w=_.I7(_.xP,function(){p(!0);Rq()},Ny*1E3))},Rq=function(){var Xn,Ny=(Xn=h().styleTransitionConfig)==null?void 0:Xn.styleTransitionSeconds,gI,YU=(gI=h().styleTransitionConfig)==null?void 0:gI.destinationStyle;
Ny&&YU?w=_.I7(_.xP,function(){E(YU);t()},Ny*1E3):t()};
_.wg(function(){dI()});
_.m2(function(){w&&_.xP.cancelJob(w)});
return _.M("ad-button-view-model",{"on:focusin":_.Zv(_.r("enable_desktop_vdcbg_components")?function(){var Xn=_.H9().resolve(_.XS(_.sG));Xn&&X(Xn.isKeyBoardInUse());return!1}:void 0),
"on:focusout":_.Zv(_.r("enable_desktop_vdcbg_components")?function(){X(!1);return!1}:void 0),
class:S,el:_.Qa(a),style:_.n9({"transition-duration":"0.3s"})},_.M(_.H,{cond:Y,then:function(){return _.M(_.V5,{data:Y,icon:function(){return _.M(_.H,{cond:function(){return h().iconImage},
then:function(Xn){return _.M(_.mI,{data:Xn,alt:"",targetWidth:x,targetHeight:x,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"sb");var pre=_.T(function(b){var h=b.data;b=function(){return h().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var y=_.r_({visibilityCallback:function(a){var P,K=(P=h().interaction)==null?void 0:P.onFirstVisible;a&&K&&_.Va(K)},
showOption:_.VZ}),S={},F={};return _.M("ad-button-group-view-model",{class:_.P2("ytwAdButtonGroupViewModelHost",(S.ytwAdButtonGroupViewModelHostCompactWidth=b,S)),el:_.Qa(y)},_.M("div",{class:_.P2("ytwAdButtonGroupViewModelHostSecondaryButton",(F.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=b,F))},_.M(_.rC,{data:function(){return h().secondaryAdButton}},{adButtonViewModel:function(a){return _.M(_.iH,{data:a.data})}})),_.M("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.M(_.rC,
{data:function(){return h().primaryAdButton}},{adButtonViewModel:function(a){return _.M(_.iH,{data:a.data})}})))},"tb");var Jn5=_.T(function(b){var h=function(){var y;return((y=b.data())==null?void 0:y.answers)||[]};
return _.M("yt-survey-icons",{class:"ytSurveyIconsHost"},_.M("div",{class:"ytSurveyIconsHeader"},_.M("div",{class:"ytSurveyIconsTitle"},function(){var y;return(y=b.data())==null?void 0:y.text}),_.M("div",null,_.M(_.V5,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var y;(y=b.onDismiss)==null||y.call(b)}}},
iconName:"DISMISSAL"}))),_.M("div",null,_.M("div",{class:"ytSurveyIconsAnswers"},_.M(_.Gw,{each:function(){return h()},
keyBy:"INDEX"},function(y,S){return _.M("div",null,_.M(_.V5,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var F;(F=b.onSelect)==null||F.call(b,y(),S)}}},
icon:function(){return _.M(_.Xv,{icon:function(){var F,a;return(F=y())==null?void 0:(a=F.icon)==null?void 0:a.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.M("div",{class:"ytSurveyIconsAnswersText"},_.M("div",null,function(){return h().length?h()[0].text:""}),_.M("div",null,function(){return h().length?h()[h().length-1].text:""}))))},"ub");var eBM=_.T(function(b){var h=_.Qa(_.Ch(function(){var n;return(n=b.data())==null?void 0:n.rendererContext},void 0,void 0,void 0,!0)),y=_.L(_.pa(!1,void 0,"GW0yjf")),S=y.next().value,F=y.next().value,a=_.OF(jty,function(){var n;
return(n=b.data().keys)==null?void 0:n.surveyEntityKey}),P=_.OF($NN,function(){var n;
return(n=b.data().keys)==null?void 0:n.surveyStateEntityKey});
_.KP("ytd-slimline-survey-show-action",function(){F(!1)});
var K=function(){var n,X;var u=(n=P())==null?void 0:(X=n.questionStack)==null?void 0:X[0];if(u!==void 0){var O,N;return(O=a())==null?void 0:(N=O.questions)==null?void 0:N[u]}};
y={};return _.M("yt-slimline-survey-view-model",{el:h,class:_.P2("ytSlimlineSurveyViewModelHost",(y.ytSlimlineSurveyViewModelCollapsed=function(){return S()},y))},_.M("div",{class:"ytSlimlineSurveyViewModelContainer"},_.M(_.H,{cond:function(){var n;
return((n=K())==null?void 0:n.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.M(Jn5,{data:function(){return K()},
onSelect:function(n,X){var u,O;return _.Z(function(N){F(!0);if(O=(u=b.data())==null?void 0:u.onSelectRating)_.Va(O),_.vl(hD8(X));_.g3(N)})},
onDismiss:function(){F(!0);var n;var X=(n=a())==null?void 0:n.dismissalFeedbackToken;n=X?{feedbackEndpoint:{feedbackToken:X}}:void 0;n&&_.TK(n,{form:{element:h.value}})}})}})))},"vb");var COW=_.T(function(b){return _.M("yt-table-view-model",{class:_.P2("ytTableViewModelHost",b.className)},_.M(_.Gw,{each:function(){return b.data().rows||[]}},function(h){var y={};
return _.M("div",{class:_.P2("ytTableViewModelRow",(y.ytTableViewModelRowBottomBorder=function(){return b.data().showSeparators},y))},_.M(_.Gw,{each:function(){return(h==null?void 0:h.cells)||[]}},function(S,F){var a,P={};
return _.M("span",{class:_.P2((P.ytTableViewModelRowLabel=function(){return F()===0&&b.data().showHorizontalHeaders},P.ytTableViewModelCell=function(){return!b.data().showHorizontalHeaders||F()>0},P))},(a=S.text)==null?void 0:a.content)}))}))},"wb");var g4W=_.T(function(b){return _.M("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.M(_.rC,{data:function(){var h;return(h=b.data())==null?void 0:h.attachments}},{flexibleActionsViewModel:function(h){return _.M("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.M(_.tp,{data:h.data,
layout:function(){var y;return((y=b.lockupStyle())==null?void 0:y.arrangement)===1?0:1},
justifyContentOverride:function(){var y;return((y=b.lockupStyle())==null?void 0:y.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(h){return _.M("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.M(eBM,{data:h.data}))},
expandableMetadataViewModel:function(h){h=h.data;var y;return _.M("div",{class:_.P2("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(y=_.H9().resolve(_.XS(U75)))==null?void 0:y({data:h}))},
adButtonGroupViewModel:function(h){return _.M("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.M(pre,{data:h.data}))},
adButtonViewModel:function(h){return _.M("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.M(_.iH,{data:h.data,isCompactWidth:!0}))},
tableViewModel:function(h){return _.M("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.M(COW,{data:h.data}))},
aiCompanionAttachmentViewModel:function(h){h=h.data;var y;return _.M("div",{class:"ytLockupAttachmentsViewModelAttachment"},(y=_.H9().resolve(_.XS(_.Ni5)))==null?void 0:y({data:h}))}}))},"xb");var tBI=_.tj("rich_grid_min_item_width",310),O6f=_.tj("rich_grid_max_item_width",500);var A$y,W9F;A$y=16/9;W9F=2/3;_.fr=_.T(function(b){var h=b.data;var y=b.className;var S=b.imageSizeConfig;var F=b.notifyOnLoaded;var a=function(){return h().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},P=function(){var N;
return _.ea((N=h())==null?void 0:N.rendererContext)};
b={};b=(b.ytContentPreviewImageViewModelHost=!0,b.ytContentPreviewImageViewModelCircleImage=function(){return a()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},b.ytContentPreviewImageViewModelTappable=function(){return P()},b);
var K=function(){var N,t;return(t=(N=_.c(h().rendererContext,_.zR))==null?void 0:N.label)!=null?t:""},n=function(){return ph4(h())},X=function(){var N=U2y(a(),h().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",S==null?void 0:S(),J$5(n()),h().layoutWidth,h().layoutHeight),t=Object.assign({},N);
N.width&&(t.width=Math.round(N.width));N.height&&(t.height=Math.round(N.height));N.maxWidth&&(t.maxWidth=Math.round(N.maxWidth));N.maxHeight&&(t.maxHeight=Math.round(N.maxHeight));return t},u=_.s5(function(){return X().height},void 0,"CxFlJb"),O=_.s5(function(){return X().width},void 0,"lb8Jhd");
return _.M("yt-content-preview-image-view-model",{el:_.Qa(_.Ch(function(){var N;return(N=h())==null?void 0:N.rendererContext})),
role:function(){return P()?"link":void 0},
tabindex:function(){return P()?0:void 0},
class:_.P2(y,b,function(){var N=a();var t=S==null?void 0:S();N=N==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||N==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||N==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||N==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(t==null?void 0:t.size)!=null&&t.size<=16?"ytContentPreviewImageViewModelExtraSmallRoundedImage":(t==null?void 0:t.size)!=null&&t.size<=24?"ytContentPreviewImageViewModelSmallRoundedImage":"ytContentPreviewImageViewModelLargeRoundedImage":
void 0;return N}),
style:function(){var N=X(),t=[];N.width&&t.push("width: "+N.width+"px");N.height&&t.push("height: "+N.height+"px");N.maxWidth&&t.push("max-width: "+N.maxWidth+"px");N.maxHeight&&t.push("max-height: "+N.maxHeight+"px");N.fullWidth&&t.push("width: 100%");return t.join(";")}},_.M(_.H,{cond:n,
then:function(N){return _.M(_.mI,{data:N,alt:K,"data-disabled$":function(){return!K()},
notifyOnLoaded:F,targetWidth:O,targetHeight:u,preserveWidth:function(){return!!O()},
preserveHeight:function(){return!!u()}})}}),_.M(_.rC,{data:function(){var N;
return(N=h())==null?void 0:N.overlays}},{thumbnailHoverOverlayViewModel:uH,
thumbnailOverlayButtonViewModel:_.RBa}))},"yb");
_.fr.idomCompat=!0;var wE=_.T(function(b){var h=b.data;var y=b.className;var S=b.useSmallLayout;var F=b.useMediumText;var a=b.useHeavyText;var P=function(){return!(F==null||!F())||!(a==null||!a())};
b={};return _.M("yt-attribution-view-model",{el:_.Qa(_.Ch(function(){var K;return(K=h())==null?void 0:K.rendererContext})),
class:_.P2(y,(b.ytAttributionViewModelHost=!0,b.ytAttributionViewModelMediumText=F,b.ytAttributionViewModelHeavyText=a,b))},_.M(_.H,{cond:function(){return _.ea(h().rendererContext)},
then:function(){return _.M("button",{class:"ytAttributionViewModelTappable"},_.M(s1G,{data:h,useSmallLayout:S,badgesShouldInheritTypography:P}))},
else:function(){return _.M(s1G,{data:h,useSmallLayout:S,badgesShouldInheritTypography:P})}}))},"zb"),s1G=_.T(function(b){var h=b.data;
var y=b.useSmallLayout;var S=b.badgesShouldInheritTypography;var F=function(){return{size:(y==null?0:y())?16:24}};
return _.M(_.OW,null,_.M(_.rC,{data:function(){return h().contentPreviewImage}},{contentPreviewImageViewModel:function(a){return _.M(_.fr,{data:a.data,
className:"ytAttributionViewModelAttributionImage",imageSizeConfig:F})}}),_.M(_.rC,{data:function(){return h().badge}},{badgeViewModel:function(a){return _.M(_.gE,{data:a.data,
class:"ytAttributionViewModelBadge",modern:!0,inheritTypography:S})}}),_.M(_.H,{cond:function(){return h().text},
then:function(){return _.M(_.zv,{text:function(){return h().text},
noWrap:!0,linkInheritColor:!0,className:"ytAttributionViewModelAttributionText"})}}),_.M(_.H,{cond:function(){return h().suffix},
then:function(){return _.M(_.zv,{text:function(){return h().suffix},
linkInheritColor:!0,className:"ytAttributionViewModelSuffix"})}}))},"Ab");
wE.idomCompat=!0;var YxG,TiW,Gb8,kbM,VTN;YxG=_.T(function(b){var h=b.delimiter;var y=b.max;var S=b.index;var F=b.isStandalone;return _.M(_.H,{cond:function(){return y()-1>S()},
then:function(){var a={};return _.M("span",{class:_.P2("yt-content-metadata-view-model__delimiter",(a["yt-content-metadata-view-model__delimiter--standalone"]=F,a)),"aria-hidden":!0},h)}})},"Bb");
TiW=_.T(function(b){var h=b.metadataPart;var y=b.maxLines;return _.M(_.zv,{text:function(){return h().text},
linkInheritColor:!0,className:function(){return e_j(y())},
userInput:!0})},"Cb");
Gb8=_.T(function(b){var h=b.metadataPart;var y=b.maxLines;return _.M(_.H,{cond:function(){return h().tooltip},
then:function(S){return _.M("span",{title:S,role:"tooltip"},_.M(TiW,{metadataPart:h,maxLines:y}))},
else:function(){return _.M(TiW,{metadataPart:h,maxLines:y})}})},"Db");
kbM=_.T(function(b){var h=b.metadataPart;var y=b.isOverlay;var S=b.useMediumText;var F=b.hideAvatar;var a=function(){return h().maxLines!==void 0?h().maxLines:1};
return _.M(_.OW,null,_.M(_.rC,{data:function(){return h().avatarStack}},{avatarStackViewModel:function(P){return _.M(_.tZ,{data:P.data,
isOverlay:y,useMediumText:S,hideAvatar:F})},
badgeViewModel:_.gE}),_.M(_.H,{cond:function(){return h().leadingIcon},
then:function(P){return _.M(_.Xv,{className:"yt-content-metadata-view-model__leading-icon",icon:function(){return P().name},
size:function(){return P().width}})}}),_.M(_.H,{cond:function(){return h().text},
then:function(){return _.M(Gb8,{metadataPart:h,maxLines:a})}}),_.M(_.H,{cond:function(){return h().icon},
then:function(P){return _.M(_.Xv,{className:"yt-content-metadata-view-model__icon",icon:function(){return P().name},
size:function(){return P().width}})}}))},"Eb");
VTN=_.T(function(b){var h=b.metadataRow;var y=b.isInline;var S=b.delimiter;var F=b.isOverlay;var a=b.useMediumText;var P=b.extensions;var K=function(){var X,u=P==null?void 0:(X=P())==null?void 0:X.lockupMetadata;X=h();var O,N;return!!((u==null?0:(O=u.byline)==null?0:O.hideAvatar)&&((N=_.c(X,KEa))==null?void 0:N.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},n=function(){return h().metadataParts||[]};
b={};return _.M("div",{class:_.P2("yt-content-metadata-view-model__metadata-row",(b["yt-content-metadata-view-model__metadata-row--metadata-row-inline"]=y,b["yt-content-metadata-view-model__metadata-row--metadata-row-padding"]=function(){var X,u=P==null?void 0:(X=P())==null?void 0:X.lockupMetadata;X=h();var O,N;return!!((u==null?0:(O=u.byline)==null?0:O.addPadding)&&((N=_.c(X,KEa))==null?void 0:N.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},b["yt-content-metadata-view-model__metadata-row--metadata-row-wrap"]=
function(){var X;
return!!(P==null?0:(X=P())==null?0:X.lockupMetadata)&&h().badges&&!h().metadataParts},b))},_.M(_.rC,{data:function(){return h().badges}},{badgeViewModel:function(X){return _.M("div",{class:"yt-content-metadata-view-model__badge"},_.M(_.gE,{data:X.data,
numBadgesInRow:function(){var u,O;return((u=h())==null?void 0:(O=u.badges)==null?void 0:O.length)||0}}))}}),_.M(_.Gw,{each:n},function(X,u){return _.M(_.OW,null,_.M(kbM,{metadataPart:X,
isOverlay:F,useMediumText:a,hideAvatar:K}),_.M(YxG,{delimiter:S,max:function(){return n().length},
index:u,isStandalone:!1}))}),_.M(_.H,{cond:function(){return h().isSpacerRow&&!y()},
then:function(){return _.M("div",{class:"yt-content-metadata-view-model__spacer"})}}))},"Fb");
_.lH=_.T(function(b){b=_.h6(b,{layout:0,isOverlay:!1});var h=b.data,y=b.layout,S=b.isOverlay,F=b.useMediumText,a=b.extensions,P=function(){return y()===0},K=function(){var X;
return((X=h().metadataRows)==null?void 0:X.filter(function(u){var O,N=a==null?void 0:(O=a())==null?void 0:O.lockupMetadata,t,R;O=!!((N==null?0:(t=N.description)==null?0:t.hideDescription)&&((R=_.c(u,KEa))==null?void 0:R.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var I,U;return!((N==null?0:(I=N.spacer)==null?0:I.hideSpacer)&&((U=_.c(u,KEa))==null?void 0:U.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||O)}))||[]},n={};
return _.M("yt-content-metadata-view-model",{class:_.P2(b.className,"yt-content-metadata-view-model",(n["yt-content-metadata-view-model--inline"]=P,n["yt-content-metadata-view-model--tappable"]=function(){return _.ea(h().rendererContext)},n["yt-content-metadata-view-model--medium-text"]=F,n)),
el:_.Qa(_.Ch(function(){return h().rendererContext}))},_.M(_.Gw,{each:K},function(X,u){return _.M(_.OW,null,_.M(VTN,{metadataRow:X,
isInline:P,delimiter:function(){return h().delimiter},
isOverlay:S,useMediumText:F,extensions:a}),_.M(_.H,{cond:function(){return P()&&!X.isSpacerRow},
then:function(){return _.M(YxG,{delimiter:function(){return h().delimiter},
max:function(){return K().length},
index:u,isStandalone:!0})}}))}))},"Gb");
_.lH.idomCompat=!0;var E4a=_.T(function(b){var h=_.H9().resolve(_.XS(_.cC)),y={};return _.M("yt-lockup-metadata-view-model",{class:_.P2("yt-lockup-metadata-view-model",function(){a:{var S=b.lockupStyle();if(S==null?0:S.isOverlay)S="yt-lockup-metadata-view-model--overlay";else switch(S==null?void 0:S.arrangement){case 1:S="yt-lockup-metadata-view-model--horizontal";break a;default:S="yt-lockup-metadata-view-model--vertical"}}return S},function(){a:{var S=b.lockupStyle();
switch(S==null?void 0:S.titleMaxLines){case 1:S="yt-lockup-metadata-view-model--title-max-lines-1";break a}S=void 0}return S},function(){a:{var S=b.lockupStyle();
if(S==null?0:S.isTiny)S="yt-lockup-metadata-view-model--tiny";else switch(S==null?void 0:S.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":S="yt-lockup-metadata-view-model--compact";break a;default:S="yt-lockup-metadata-view-model--standard"}}return S},(y["yt-lockup-metadata-view-model--overlay"]=function(){var S;
return(S=b.lockupStyle())==null?void 0:S.isOverlay},y["yt-lockup-metadata-view-model--card"]=function(){var S;
return(S=b.lockupStyle())==null?void 0:S.isCard},y["yt-lockup-metadata-view-model--centered"]=function(){var S;
return(S=b.lockupStyle())==null?void 0:S.isCentered},y["yt-lockup-metadata-view-model--typography-bump"]=function(){var S;
return(S=b.lockupStyle())==null?void 0:S.typographyBump},y["yt-lockup-metadata-view-model--legacy-typography"]=function(){var S;
return(S=b.lockupStyle())==null?void 0:S.useLegacyTypography},y["yt-lockup-metadata-view-model--rich-grid-legacy-typography"]=function(){var S;
return(S=b.lockupStyle())==null?void 0:S.useRichGridLegacyTypography},y))},_.M(_.rC,{data:function(){return b.data().image}},{avatarStackViewModel:function(S){return _.M("div",{class:"yt-lockup-metadata-view-model__avatar"},_.M(_.tZ,{data:S.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(S){return _.M("div",{class:"yt-lockup-metadata-view-model__avatar"},_.M(_.OX,{data:S.data}))},
decoratedAvatarViewModel:function(S){return _.M("div",{class:"yt-lockup-metadata-view-model__avatar"},_.M(_.NY,{data:S.data}))}}),_.M("div",{class:"yt-lockup-metadata-view-model__text-container"},_.M("h3",{class:"yt-lockup-metadata-view-model__heading-reset",
title:function(){var S;return(S=b.data().title)==null?void 0:S.content}},_.M(_.H,{cond:function(){return b.data().title},
then:function(S){return _.M(_.YN,{command:b.lockupCommand,className:"yt-lockup-metadata-view-model__title",style:_.n9({color:function(){var F;a:{var a=b.lockupStyle();var P=(F=b.hovered)==null?void 0:F.call(b);F=!(h==null||!h());var K;if((a==null?0:(K=a.onFocusEffect)==null?0:K.textPrimaryColor)&&P&&(a=F?a.onFocusEffect.textPrimaryColor.darkTheme:a.onFocusEffect.textPrimaryColor.lightTheme)){a=s0(a);break a}a=void 0}return a}}),
ariaLabel:b.lockupAccessibilityLabel},_.M(_.zv,{text:S,userInput:!0}))}})),_.M("div",{class:"yt-lockup-metadata-view-model__metadata",
style:_.n9({color:function(){var S;a:{var F=b.lockupStyle();var a=(S=b.hovered)==null?void 0:S.call(b);S=!(h==null||!h());var P;if((F==null?0:(P=F.onFocusEffect)==null?0:P.textSecondaryColor)&&a&&(F=S?F.onFocusEffect.textSecondaryColor.darkTheme:F.onFocusEffect.textSecondaryColor.lightTheme)){F=s0(F);break a}F=void 0}return F}})},_.M(_.rC,{data:function(){return b.data().metadata}},{contentMetadataViewModel:function(S){return _.M(_.lH,{data:S.data,
layout:function(){var F,a;return(a=(F=b.layout)==null?void 0:F.call(b))!=null?a:1},
useMediumText:function(){var F,a;return((F=b.lockupStyle())==null?void 0:F.typographyBump)||((a=b.lockupStyle())==null?void 0:a.useRichGridLegacyTypography)},
extensions:function(){var F,a,P,K;return{lockupMetadata:{byline:{hideAvatar:((F=b.lockupStyle())==null?void 0:F.arrangement)===0,addPadding:((a=b.lockupStyle())==null?void 0:a.arrangement)===1},description:{hideDescription:!((P=b.lockupStyle())==null||!P.compactMetadata)},spacer:{hideSpacer:!((K=b.lockupStyle())==null||!K.compactMetadata)}}}}})}})),_.M(_.rC,{data:function(){return b.data().attribution}},{attributionViewModel:function(S){return _.M("div",{class:"yt-lockup-metadata-view-model__attribution"},
_.M(wE,{data:S.data,
useSmallLayout:!0}))}})),_.M("div",{class:"yt-lockup-metadata-view-model__menu-button"},_.M(_.rC,{data:function(){return b.data().menuButton}},{buttonViewModel:function(S){return _.M(_.EG,{data:S.data,
buttonOverrides:function(){var F;return((F=b.lockupStyle())==null?0:F.isOverlay)?{style:"overlay"}:void 0}})}})))},"Hb");
E4a.idomCompat=!0;var iB5=_.T(function(b){var h=_.ZR("notification-multi-action-renderer");_.fl(function(){requestAnimationFrame(function(){_.Mi(h.value)})});
var y={},S={},F={};return _.M("notification-multi-action-renderer",{class:_.P2("ytNotificationMultiActionRendererHost",(y.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var a;return(a=b.useLegacyShelfStyle)==null?void 0:a.call(b)},y)),
el:h},_.M("span",{"aria-live":"polite",class:_.P2("ytNotificationMultiActionRendererTextContainer",(S.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var a;return(a=b.useLegacyShelfStyle)==null?void 0:a.call(b)},S))},_.M(_.zv,{text:function(){return b.data().responseText}})),_.M("div",{class:_.P2("ytNotificationMultiActionRendererButtonContainer",(F.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var a;
return(a=b.useLegacyShelfStyle)==null?void 0:a.call(b)},F))},_.M(_.rC,{data:function(){var a;
return(a=b.data().buttons)==null?void 0:a.map(function(P){if(P=P.buttonRenderer){var K,n=Object,X=n.assign,u=(K=P.icon)==null?void 0:K.iconType;K=(K=P.command||P.serviceEndpoint||P.navigationEndpoint)?{innertubeCommand:K}:void 0;P={buttonViewModel:X.call(n,{},{iconName:u,onTap:K,trackingParams:P.trackingParams,titleFormatted:P.text?_.ej(P.text):void 0},gtN(P))}}else P=void 0;return P}).filter(function(P){return!!P})}},{buttonViewModel:function(a,P){return _.M("div",null,_.M(_.EG,{data:a.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var K;return((K=b.useModernStyles)==null?0:K.call(b))?{type:P()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Jb");var fuW=_.T(function(b){var h=_.ZR("notification-text-renderer");_.fl(function(){requestAnimationFrame(function(){_.Mi(h.value)})});
return _.M("notification-text-renderer",{el:h,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.M(_.zv,{text:function(){return b.data().successResponseText}}))},"Lb");_.qY=_.T(function(b){var h=_.OF(x6j,function(){var S;return sCn((S=b.contentId)==null?void 0:S.call(b))}),y=function(){var S;
return _.c((S=h())==null?void 0:S.command,_.m8)};
return _.M(_.H,{cond:function(){var S;if(!(S=y())){var F;S=_.c((F=h())==null?void 0:F.command,zH8)}return S},
then:function(){return _.M(_.H,{cond:y,then:function(){var S={};return _.M("div",{class:_.P2("ytDismissibleItemReplacedContent",function(){var F;return YrI((F=b.aspectRatio)==null?void 0:F.call(b))})},_.M("div",{class:_.P2((S.ytDismissibleItemAspectRatioContainer=function(){var F;
return((F=b.aspectRatio)==null?void 0:F.call(b))!==void 0},S))},_.M(_.rC,{data:function(){var F;
return(F=y())==null?void 0:F.item}},{notificationMultiActionRenderer:function(F){return _.M(iB5,{data:F.data,
useModernStyles:b.useModernStyle,useLegacyShelfStyle:b.useLegacyShelfStyle})},
notificationTextRenderer:fuW})))}})},
else:b.children})},"Mb");_.wr5=_.T(function(b){var h=b.data;var y=b.customCommandResolver;b=_.Qa(_.r_({visibilityCallback:function(a){var P,K=(P=h().interaction)==null?void 0:P.onFirstVisible;a&&K&&_.Va(K)},
showOption:_.VZ}));var S=function(){var a;return((a=h().interaction)==null?0:a.onTap)?function(P){var K;K9I(P,(K=h().interaction)==null?void 0:K.onTap,y)}:void 0},F=function(){var a,P=h(),K=S(),n=(a=_.c(h().rendererContext,_.zR))==null?void 0:a.label;
a:switch(P.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":a=1;break a;default:a=0}return{size:kgk(P.size),type:a,onTap:K,accessibilityText:n}};
return _.M("ad-avatar-view-model",{class:function(){var a;return((a=h().interaction)==null?0:a.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:b},_.M(_.H,{cond:function(){return h().image},
then:function(a){return _.M(Dv8,{data:F,image:a})}}))},"Nb");_.xw=_.T(function(b){var h=_.h6(b,{hasDot:!1,usedInMasthead:!1}),y=Object.assign({},h),S=h.data,F=h.hasDot;b=h.customCommandResolver;var a=h.usedInMasthead,P=(delete y.data,delete y.hasDot,delete y.customCommandResolver,delete y.usedInMasthead,y);h=function(){return S().style};
h!==void 0&&h!==null||_.yb(Error("Ih"));b=_.Go(function(){return S().interaction},b);
return _.M("ad-badge-view-model",{class:_.P2(function(){var K;return((K=S().interaction)==null?0:K.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var K=P.adRenderingContextType(),n=a();
S();return K!=="AD_RENDERING_CONTEXT_TYPE_BROWSE"||n?"ytwAdBadgeViewModelHostStyleStandard":"ytwAdBadgeViewModelHostStyleStandardBrowse"}),
el:_.Qa(b)},_.M(_.z_,{data:function(){var K;S();return{type:2,text:(K=S().label)==null?void 0:K.content,adsIncludeDot:F(),isOverlay:S().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Ob");var lu8;_.QZ=_.T(function(b){var h=b.data;var y=b.customCommandResolver;var S=b.adRenderingContextType;return _.M("ad-details-line-view-model",{class:function(){var F;return((F=h().interaction)==null?0:F.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.Qa(_.r_({visibilityCallback:function(F){var a,P=(a=h().interaction)==null?void 0:a.onFirstVisible;F&&P&&_.Va(P)},
showOption:_.VZ}),_.Go(function(){return h().interaction},y))},_.M(_.H,{cond:function(){return h().style},
then:function(F){return _.M(_.Gw,{each:function(){var a;return((a=h())==null?void 0:a.attributes)||[]},
keyBy:"INDEX"},function(a){return _.M(lu8,{attribute:a,style:F,adRenderingContextType:function(){return S()}})})}}))},"Pb");
lu8=_.T(function(b){var h=b.attribute;var y=b.style;var S=b.adRenderingContextType;return _.M(_.H,{cond:function(){return h().text},
then:function(F){return _.M(_.zv,{text:F,className:function(){var a=S();y();return a==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Qb");var qxa=_.T(function(b){var h=b.data;var y=b.typographyBump;var S=function(){return h().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"},F=function(){return{size:"M"}};
b={};return _.M(_.OW,null,_.M("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.M(_.zv,{text:function(){return h().headline},
className:_.P2("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(b.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return S==null?void 0:S()},b.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(y==null?void 0:y())&&!(S==null?0:S())},b)),
linkInheritColor:!0}),_.M(_.H,{cond:function(){return h().description},
then:function(a){var P={};return _.M(_.zv,{text:a,className:_.P2("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(P.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return S==null?void 0:S()},P.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(y==null?void 0:y())&&!(S==null?0:S())},P)),
linkInheritColor:!0})}}),_.M(_.H,{cond:function(){return h().secondaryDescription},
then:function(a){var P={};return _.M(_.zv,{text:a,className:_.P2("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(P.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return y==null?void 0:y()},P)),
linkInheritColor:!0})}}),_.M("div",{class:function(){return S()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.M(_.H,{cond:function(){return h().adAvatar},
then:function(){return _.M("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.M(_.rC,{data:function(){return h().adAvatar}},{adAvatarViewModel:_.wr5}))}}),_.M(_.rC,{data:function(){return h().adBadge}},{adBadgeViewModel:function(a){return _.M(_.xw,{data:a.data,
hasDot:function(){return!!h().adDetailsLine},
adRenderingContextType:function(){return h().adRenderingContextType}})}}),_.M(_.rC,{data:function(){return h().adDetailsLine}},{adDetailsLineViewModel:function(a){return _.M(_.QZ,{data:a.data,
adRenderingContextType:function(){return h().adRenderingContextType}})}}))),_.M("div",{class:function(){return _.r("enable_desktop_vdc_components")?"ytwFeedAdMetadataViewModelHostMenuButton":S()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.M(_.rC,{data:function(){return h().menu}},{buttonViewModel:function(a){return _.M(_.EG,{data:a.data,
buttonOverrides:_.r("enable_desktop_vdc_components")?F:function(){a:switch(h().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var P="S";break a;default:P="M"}return{size:P}}})}})))},"Rb"),x7M=_.T(function(b){var h=b.data;
var y=b.noBottomMargin;var S=b.useVideoLockupTopPadding;var F=b.typographyBump;b={};b=_.P2("ytwFeedAdMetadataViewModelHostMetadata",(b.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return y==null?void 0:y()},b.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return S==null?void 0:S()},b));
var a=function(){return h().adBadge};
a!==void 0&&a!==null||_.yb(Error("Jh"));a={};var P={};return _.M(_.OW,null,_.M(_.H,{cond:function(){return h().adAvatar},
then:function(){return _.M("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.M(_.rC,{data:function(){return h().adAvatar}},{adAvatarViewModel:function(K){return _.M(_.wr5,{data:K.data})}}))}}),_.M("div",{class:b},_.M("div",{class:_.P2("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(a.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return F==null?void 0:F()},a.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(F==
null?void 0:F())&&_.r("web_enable_typography_bump_v2")},a))},_.M(_.zv,{text:function(){return h().headline},
linkInheritColor:!0})),_.M(_.H,{cond:function(){return h().description},
then:function(K){return _.M(_.zv,{text:K,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.M("div",{class:function(){return h().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.r("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.M(_.rC,{data:function(){return h().adBadge}},
{adBadgeViewModel:function(K){return _.M(_.xw,{data:K.data,
hasDot:function(){return!!h().adDetailsLine},
adRenderingContextType:function(){return h().adRenderingContextType}})}}),_.M(_.rC,{data:function(){return h().adDetailsLine}},{adDetailsLineViewModel:function(K){return _.M(_.QZ,{data:K.data,
adRenderingContextType:function(){return h().adRenderingContextType}})}})),_.M(_.H,{cond:function(){return h().secondaryDescription},
then:function(K){return _.M(_.zv,{text:K,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.M("div",{class:_.P2("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(P.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return S==null?void 0:S()},P))},_.M(_.rC,{data:function(){return h().menu}},{buttonViewModel:_.EG})))},"Sb"),mz=_.T(function(b){var h=b.data;
var y=b.noBottomMargin;var S=b.listenToTapEvent;var F=b.setTouchEndHandler;var a=b.useVideoLockupTopPadding;var P=b.typographyBump;b=_.r_({visibilityCallback:function(O){var N,t=(N=h().interaction)==null?void 0:N.onFirstVisible;O&&t&&_.Va(t)},
showOption:_.VZ});var K=_.Go(function(){return h().interaction},void 0,function(){return S==null?void 0:S()}),n=_.L(_.pa(!1,void 0,"N3Oquc")),X=n.next().value,u=n.next().value;
n=_.Zv(function(O){(F==null?0:F())&&!X()&&(O.currentTarget.click(),u(!0),setTimeout(function(){u(!1)},100));
return!1});
return _.M("feed-ad-metadata-view-model",{class:function(){var O;return((O=h().interaction)==null?0:O.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.Qa(b,K),"on:touchend":n},_.M(_.kZ,null,_.M(_.YZ,{when:function(){return h().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.M(qxa,{data:h,
typographyBump:P})}),_.M(_.YZ,{when:function(){return h().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.M(x7M,{data:h,
noBottomMargin:y,useVideoLockupTopPadding:a,typographyBump:P})})))},"Tb");var Q17,m7N;Q17=_.iM.inlinePreviewEnabledSelector;_.vQ=_.T(function(b){return _.M("yt-lockup-view-model",{class:_.P2(b.className,"yt-lockup-view-model--wrapper")},_.M(_.qY,{contentId:function(){return b.data().contentId},
useModernStyle:!0,aspectRatio:function(){var h,y;return((h=b.containerType)==null?void 0:h.call(b))!==3?Izk(b.data().contentType,(y=b.force16By9ThumbnailAspectRatio)==null?void 0:y.call(b)):void 0}},function(){return _.M(m7N,Object.assign({},b))}))},"Ub");
m7N=_.T(function(b){b=_.h6(b,{containerLayoutConfig:void 0,protectBackground:void 0,containerType:void 0,sizing:void 0,typographyBump:!1,force16By9ThumbnailAspectRatio:!1,thumbnailFixedWidth:void 0,thumbnailTargetWidth:void 0,lockupExperiments:void 0,elementsPerRow:void 0,useOverlayStyling:void 0});var h=b.data,y=b.containerLayoutConfig,S=b.containerType,F=b.sizing,a=b.protectBackground,P=b.typographyBump,K=b.force16By9ThumbnailAspectRatio,n=b.thumbnailFixedWidth,X=b.thumbnailTargetWidth,u=b.lockupExperiments,
O=b.elementsPerRow,N=b.useOverlayStyling,t=_.H9().resolve(_.XS(_.cC));b=_.Qa(_.Ch(function(){var VN;return(VN=h())==null?void 0:VN.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 R=_.NG(Q17),I=_.H9().resolve(_.XS(o45)),U=I?{}:void 0,p=function(){var VN,Hb,vF;return(vF=(Hb=_.c((VN=h())==null?void 0:VN.rendererContext,_.zR))==null?void 0:Hb.label)!=null?vF:void 0},e=function(){var VN;
return(VN=_.c(h().metadata,_.Zf7))==null?void 0:VN.endorsement},E=function(){var VN=y==null?void 0:y(),Hb;
if(VN==null?0:VN.containerType){var vF=(Hb=h())==null?void 0:Hb.contentType;Hb=u();var xU=P(),Xa=X(),rG=a();VN=Object.assign({},B9k(c$4(VN),Ve(VN.responsiveSize),xU,vF,VN.force16By9ThumbnailAspectRatio,Xa,rG,void 0,Hb),{thumbnailFixedWidth:VN.contentPreviewWidth})}else VN=B9k(S(),F(),P(),(vF=h())==null?void 0:vF.contentType,K(),X(),a(),N(),u());return VN};
I&&U&&I({enabled:function(){return R()},
itemPlaybackModel:function(){return h().itemPlayback},
thumbnailElRef:function(){return U.thumbnailElRef},
containerElRef:b,options:function(){var VN=U.thumbnailOverlays||[],Hb=e(),vF;!Hb||((vF=u())==null?0:vF.onFocusEffect)||VN.push(Hb);var xU,Xa;return{thumbnail:U.thumbnail,thumbnailOverlays:VN,accessibilityText:p(),thumbnailSize:U.thumbnailSize,enableRounding:E().isCollection,containPlayerWithinThumbnail:E().isCollection,mouseleaveCallback:function(){x(!1)},
trackingParams:(xU=_.c(h().rendererContext,_.c3))==null?void 0:(Xa=xU.loggingDirectives)==null?void 0:Xa.trackingParams}}});
var Y=0;I=_.L(_.pa(!1,void 0,"v0iGab"));var w=I.next().value,x=I.next().value;I=_.L(_.pa(!1,void 0,"PVKcBd"));var q=I.next().value,dI=I.next().value;I=_.Zv(function(){q()?(_.xP.cancelJob(Y),Y=_.xP.addJob(function(){x(!0)},8,32)):x(!0);
return!0});
var L4=_.Zv(function(VN){VN=VN.relatedTarget;var Hb=document.querySelector("ytd-video-preview");VN&&Hb&&Hb.contains(VN)||(Y&&(_.xP.cancelJob(Y),Y=0),x(!1))});
_.m2(function(){Y&&(_.xP.cancelJob(Y),Y=0)});
var Rq=Gg8(function(){dI(!0)}),Xn=Rq.touchFeedbackEvents,Ny=Rq.touchFeedbackOnPointerUp,gI=Rq.touchFeedbackOnPointerDown;
Rq=Rq.touchFeedbackOnPointerLeave;var YU={};return _.M(_.OW,null,_.M("div",{el:b,class:_.P2("yt-lockup-view-model",function(){a:{var VN=E();if(VN.metadataOnThumbnail)VN="yt-lockup-view-model--metadata-on-thumbnail";else switch(VN.arrangement){case 1:VN="yt-lockup-view-model--horizontal";break a;default:VN="yt-lockup-view-model--vertical"}}return VN},function(){a:{var VN=E();
if(VN.metadataOnThumbnail)VN="yt-lockup-view-model--metadata-on-thumbnail";else{switch(VN.collectionStackNumber){case 1:VN="yt-lockup-view-model--collection-stack-1";break a;case 2:VN="yt-lockup-view-model--collection-stack-2";break a}VN=void 0}}return VN},function(){var VN;
return _.C1F((VN=h())==null?void 0:VN.contentId)},(YU["yt-lockup-view-model--card"]=function(){return E().isCard},YU["yt-lockup-view-model--compact"]=function(){return E().isTiny||E().sizing!=="STANDARD"},YU["yt-lockup-view-model--protect-background"]=a,YU["yt-lockup-view-model--add-margins"]=function(){return E().addMarginForFullbleed},YU["yt-lockup-view-model--centered"]=function(){return E().isCentered},YU["yt-lockup-view-model--fullbleed"]=function(){return E().fullbleed},YU["yt-lockup-view-model--single-column-grid"]=
function(){return O()===1&&S()===2},YU["yt-lockup-view-model--rich-grid-legacy-margin"]=function(){var VN;
return(VN=u())==null?void 0:VN.useRichGridLegacyMargin},YU["yt-lockup-view-model--flex-none"]=function(){return!_.r("lockup_flex_none_killswitch")},YU)),
"on:mousedown":gI,"on:mouseleave":L4,"on:mouseup":Ny,"on:mouseover":I,"on:touchstart":gI,"on:touchend":Ny,"on:pointerleave":Rq},_.M(_.Tv,{model:function(){var VN,Hb,vF=Object,xU=vF.assign,Xa=(U==null?void 0:U.thumbnailSize)||"small";a:{var rG=E();var Wb=!!(e()&&((VN=u())==null?0:VN.onFocusEffect));switch((U==null?void 0:U.thumbnailSize)||"small"){case "small":VN=4;break;case "large":VN=12;break;default:VN=8}if(Wb)rG=VN+12;else{switch(rG.collectionStackNumber){case 1:rG=VN+8;break a;case 2:rG=VN+12;
break a}rG=void 0}}Xa={thumbnailSize:Xa,triggerEvents:!0,customTopExtend:rG};var Xx;rG=(Hb=u())==null?void 0:Hb.onFocusEffect;Wb=!(t==null||!t());if(rG){var Bb,oq;Hb=Wb?(Bb=rG.onFocusColor)==null?void 0:Bb.darkTheme:(oq=rG.onFocusColor)==null?void 0:oq.lightTheme;var kU,O7;Bb=Wb?(kU=rG.keyLightColor)==null?void 0:kU.darkTheme:(O7=rG.keyLightColor)==null?void 0:O7.lightTheme;var io;kU=Wb?(Xx=rG.touchResponseColor)==null?void 0:Xx.darkTheme:(io=rG.touchResponseColor)==null?void 0:io.lightTheme;Xx={background:Hb!==
void 0?s0(Hb):void 0,keyLight:Bb!==void 0?s0(Bb):void 0};io=[];O7=_.L(rG.lightingTechniques||[]);for(Bb=O7.next();!Bb.done;Bb=O7.next())switch(Bb.value){case "LIGHTING_TECHNIQUE_KEY_LIGHT":io.push(2);break;case "LIGHTING_TECHNIQUE_BACK_LIGHT":io.push(1);break;case "LIGHTING_TECHNIQUE_FILL_LIGHT":io.push(3)}Xx={hoverEffect:{palette:Xx,lightingTechniques:io},touchEffect:{palette:{background:kU!==void 0?s0(kU):void 0}}}}else Xx={};return xU.call(vF,{},Xa,Xx)},
hovered:function(){return w()},
pointerDownEvent:Xn.pointerDownEvent,pointerUpEvent:Xn.pointerUpEvent,pointerLeaveEvent:Xn.pointerLeaveEvent}),_.M(_.H,{cond:function(){var VN;return e()&&w()&&((VN=u())==null?void 0:VN.onFocusEffect)},
then:function(){return _.M("div",{class:"yt-lockup-view-model__endorsement"},_.M(_.rC,{data:function(){return e()}},{attributionViewModel:function(VN){return _.M(wE,{data:VN.data,
useHeavyText:!0})}}))}}),_.M(_.YN,{command:function(){var VN;
return _.JB((VN=h())==null?void 0:VN.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model__content-image",style:function(){return(n()||E().thumbnailFixedWidth)&&E().arrangement===1?"width: "+(n()||E().thumbnailFixedWidth):""}},_.M(_.rC,{data:function(){var VN;
return(VN=h())==null?void 0:VN.contentImage}},{thumbnailViewModel:function(VN){return _.M(_.kw,{data:VN.data,
aspectRatio:function(){return E().aspectRatio},
disableRounding:function(){return E().disableRounding},
width:X,hovered:function(){return w()&&!(R()&&h().itemPlayback)},
isClip:function(){var Hb;return((Hb=h())==null?void 0:Hb.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:jCn(U),lockupExperiments:function(){return u()}})},
collectionThumbnailViewModel:function(VN){return _.M(AnW,{data:VN.data,aspectRatio:function(){return E().aspectRatio},
disableRounding:function(){return E().disableRounding},
width:X,doubleStack:function(){return E().collectionStackNumber===2},
hovered:function(){return w()&&!(R()&&h().itemPlayback)},
playbackRef:jCn(U)})},
decoratedAvatarViewModel:_.NY})),_.M("div",{class:"yt-lockup-view-model__metadata"},_.M(_.rC,{data:function(){var VN;return(VN=h())==null?void 0:VN.metadata}},{lockupMetadataViewModel:function(VN){return _.M(E4a,{data:VN.data,
hovered:w,lockupStyle:E,lockupCommand:function(){var Hb;return _.JB((Hb=h())==null?void 0:Hb.rendererContext)},
lockupAccessibilityLabel:function(){return p()},
layout:function(){var Hb;return((Hb=u())==null?0:Hb.useInlineContentMetadata)?0:void 0}})},
feedAdMetadataViewModel:function(VN){return _.M(mz,{data:VN.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:P})}}),_.M(_.rC,{data:function(){var VN;
return(VN=h())==null?void 0:VN.attachmentSlot}},{lockupAttachmentsViewModel:function(VN){return _.M(g4W,{data:VN.data,
lockupStyle:E})}}))),_.M(_.rC,{data:function(){var VN;
return(VN=h())==null?void 0:VN.bottomAttachmentSlot}},{lockupAttachmentsViewModel:function(VN){return _.M(g4W,{data:VN.data,
lockupStyle:E})}}))},"Vb");
_.vQ.idomCompat=!0;_.yd(_.vQ,"yt-lockup-view-model",{props:{data:_.D4,containerLayoutConfig:_.D4,containerType:_.D4,sizing:_.D4,protectBackground:_.D4,typographyBump:_.D4,thumbnailFixedWidth:_.D4,thumbnailTargetWidth:_.D4,force16By9ThumbnailAspectRatio:_.D4,className:_.D4,lockupExperiments:_.D4,elementsPerRow:_.D4,useOverlayStyling:_.D4}});var fzq,v4o=_.T(function(b){var h=_.h6(b,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),y=h.text,S=h.alwaysShowTruncationText;b=h.truncationText;var F=h.onTextClick,a=h.maxLines,P=h.disableTextMask,K=h.textStyle,n=h.accessibilityLabel,X=h.textSize,u=h.alwaysTruncateAtMaxLines,O=h.expandOnClick;h=_.L(_.pa(!1,void 0,"EzA1q"));var N=h.next().value,t=h.next().value;h=_.Zv(function(){O()&&t(!N());F==null||F()});
var R=function(){a:switch(X()){case "medium":var q=2;break a;case "large":q=2.2;break a;default:q=1.8}return q},I=qrj(y,function(){return N()?Infinity:a()},R,P,u,N),U=I.isTruncated;
y=I.displayText;u=I.contentRef;var p=I.hiddenRef,e=I.placeholderTruncationTextRef,E=I.hiddenTruncationTextRef;I=I.truncationTextRef;var Y={},w={},x={};return _.M("truncated-text",{class:_.P2((Y["yt-truncated-text"]=!0,Y["yt-truncated-text--overlay"]=function(){return K()==="overlay"},Y["yt-truncated-text--medium-text"]=function(){return X()==="medium"},Y["yt-truncated-text--large-text"]=function(){return X()==="large"},Y["yt-truncated-text--primary-text"]=function(){return K()==="primary-text"},Y)),
"on:click":h,style:function(){return"line-height: "+R()+"rem;"}},_.M("truncated-text-content",{class:"yt-truncated-text__truncated-text-content",
el:u,style:function(){return N()?"":"max-height: "+a()*R()+"rem;"}},_.M(_.zv,{text:y}),_.M("button",{"aria-disabled":!0,
disabled:!0,class:_.P2((w["yt-truncated-text__inline-button"]=!0,w["yt-truncated-text--hidden"]=function(){return!(!N()&&(S!=null&&S()||U()))},w)),
el:e,style:function(){return"line-height: "+R()+"rem;"}},_.M(_.zv,{text:b}))),_.M("truncated-text-content",{class:_.P2("yt-truncated-text__truncated-text-content","yt-truncated-text__truncated-text-content--hidden-text-content"),
el:p,style:function(){return N()?"":"max-height: "+a()*R()+"rem;"},
"aria-hidden":"true"},_.M(_.zv,{text:y}),_.M("button",{"aria-disabled":!0,disabled:!0,class:"yt-truncated-text__inline-button",el:E,style:function(){return"line-height: "+R()+"rem;"}},_.M(_.zv,{text:b}))),_.M("button",{"aria-label":n,
class:_.P2((x["yt-truncated-text__absolute-button"]=function(){return!P()},x["yt-truncated-text__bottom-button"]=function(){return P()},x["yt-truncated-text--hidden"]=function(){return!(!N()&&(S!=null&&S()||U()))},x)),
el:I,style:function(){return"line-height: "+R()+"rem;"}},_.M(_.zv,{text:b})))},"Xb");
v4o.idomCompat={callbacks:{onTextClick:!0}};var yA8=_.T(function(b){var h=b.data;b=b.className;var y=_.s5(function(){return QCy(h())},void 0,"uDhDke"),S=_.M(_.OW,null,_.M(_.H,{cond:function(){return h().heroText||h().image},
then:function(){return _.M(buW,{data:h})}}),_.M(hRW,{data:h,
sizeSmall:function(){return h().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}));
return _.M("yt-video-attribute-view-model",{class:b},_.M("div",{class:function(){var F=h();a:switch(F.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var a="yt-video-attribute-view-model--vertical";break a;default:a="yt-video-attribute-view-model--horizontal"}a:switch(F.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var P="yt-video-attribute-view-model--image-small";break a;default:P="yt-video-attribute-view-model--image-large"}a:switch(F.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var K=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":K="yt-video-attribute-view-model--image-avatar";break a;default:K=""}a:switch(F.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var n="yt-video-attribute-view-model--metadata-header";break a;default:n=""}a:switch(F.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var X="yt-video-attribute-view-model--container-card";break a;default:X=""}return["yt-video-attribute-view-model",a,P,
K,n,X,QCy(F)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.n9({"background-color":function(){var F=h();if(F.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var a="";else{a=F.lightColorPalette;F=F.darkColorPalette;var P,K=((P=_.H9().resolve(_.XS(_.cC)))==null?0:P())&&F?F:a;a=(a=K==null?void 0:K.section2Color)?_.CR(a):""}return a}})},_.M(_.H,{cond:y,
then:function(){return _.M(_.YN,{className:"yt-video-attribute-view-model__content-container",command:y,role:"group",ariaLabel:function(){return h().title}},S)},
else:function(){return _.M("div",{class:"yt-video-attribute-view-model__content-container"},S)}})))},"Yb");
yA8.idomCompat=!0;var buW=_.T(function(b){var h=b.data;var y,S=(y=_.H9().resolve(_.XS(_.cC)))==null?void 0:y(),F=function(){return S&&h().darkThemeImage?h().darkThemeImage:h().image},a=_.s5(function(){return m2y(h())},void 0,"UDqj0b");
return _.M("div",{class:"yt-video-attribute-view-model__hero-section"},_.M(_.kZ,null,_.M(_.YZ,{when:F},function(){return _.M(_.mI,{data:function(){return F()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.M(_.YZ,{when:function(){return h().heroText}},function(){return _.M("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.M("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return h().heroText}))})),_.M(_.H,{cond:function(){return h().overflowMenuOnTap},
then:function(){return _.M("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.M(_.V5,{data:a,iconName:"MORE_VERT"}))}}))},"Zb");
buW.idomCompat=!0;var hRW=_.T(function(b){var h=b.data;b=b.sizeSmall;var y=function(){return h().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},S=_.s5(function(){return kS(_.GK({innertubeCommand:QCy(h())}))?"link":QCy(h())?"button":"group"},void 0,"e2MmYe"),F={};
return _.M("div",{class:_.P2("yt-video-attribute-view-model__metadata",(F["yt-video-attribute-view-model--small-font"]=b,F)),role:S},_.M("h1",{class:"yt-video-attribute-view-model__title"},function(){return h().title}),_.M(_.H,{cond:function(){return h().subtitle},
then:function(){return _.M("h4",{class:"yt-video-attribute-view-model__subtitle"},_.M(_.H,{cond:y,then:function(){return _.M(v4o,{text:function(){return x2j(h().subtitle)},
truncationText:function(){return x2j(h().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.M("span",null,function(){return h().subtitle})}}))}}),_.M(_.H,{cond:function(){return h().secondarySubtitle},
then:function(a){return _.M("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.M(_.zv,{text:function(){var P=a();if(P!=null&&P.attachmentRuns){for(var K=[],n=_.L(P.attachmentRuns),X=n.next();!X.done;X=n.next())X=X.value,X.element&&K.push(Object.assign({},X,{element:Object.assign({},X.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));P=Object.assign({},P,{attachmentRuns:K})}return P}}))}}),_.M(_.rC,
{data:function(){return h().buttonViewModel}},{buttonViewModel:function(a){return _.M(_.EG,{data:a.data,
className:"yt-video-attribute-view-model__button"})}}))},"$b");
hRW.idomCompat=!0;_.yd(yA8,"yt-video-attribute-view-model",{props:{data:_.D4,className:_.D4}});var bl=function(){var b=_.g.apply(this,arguments)||this;b.useHighlightStyling=_.r("web_enable_deeper_metadata_highlight_styling");b.isSearch=!1;b.JSC$15472_lastScrollContainerWidth=NaN;b.pageLoadingFromNavigation=!1;b.currentIndex=0;b.supportComponentResize=!1;return b};
_.z(bl,_.g);_.d=bl.prototype;
_.d.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}}}}}};
_.d.attached=function(){document.addEventListener("yt-page-type-changed",_.Hl(this,this.onPageChange))};
_.d.detached=function(){document.removeEventListener("yt-page-type-changed",_.Hl(this,this.onPageChange))};
_.d.getItemsPath=function(){return"data.cards"};
_.d.onIronResize=function(){this.updateListStyles()};
_.d.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var b;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(b=this.data)==null?void 0:b.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.r("problem_walkthrough_sd")&&!!this.centerItems};
_.d.computeCardListStyle=function(b){return b||null};
_.d.computeEmpty=function(b){return!this.get("cards.length",b)};
_.d.computeThumbnailStyle=function(b){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",b)||null};
_.d.computeHasSubtitle=function(b){return!!this.get("header.richListHeaderRenderer.subtitle",b)};
_.d.computeInitialCountNumber=function(b){return this.hasSquareMiniApp&&b==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&b==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:b==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:b==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:b==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&b==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.d.computeUseFloorScrolling=function(b){return b==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.d.computeHasGameCard=function(b){return(b=this.get("cards",b))?b.some(function(h){return h.gameCardRenderer}):!1};
_.d.computeCenterHeaderTitle=function(b){return!(b==null||!b.centerHeaderTitle)};
_.d.computeHasPortraitMiniApp=function(b){return(b=b==null?void 0:b.cards)?b.some(function(h){return h.miniGameCardViewModel&&h.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.d.computeHasSquareMiniApp=function(b){return(b=b==null?void 0:b.cards)?b.some(function(h){return h.miniGameCardViewModel&&h.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.d.computeHasSkinnyWidthPortraitMiniApp=function(b){return(b=b==null?void 0:b.cards)?b.some(function(h){return h.miniGameCardViewModel&&h.miniGameCardViewModel.width===135}):!1};
_.d.computeCenterItems=function(b){return!!b};
_.d.computeHasInfoPanel=function(b){var h;return b==null?void 0:(h=b.cards)==null?void 0:h.some(function(y){return y.infoPanelContentRenderer})};
_.d.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.d.getItemByIndex=function(b){var h=this.items.children;return h&&h.length>b?h[b]:void 0};
_.d.onPageChange=function(){var b=this;this.pageLoadingFromNavigation=!0;_.xP.addJob(function(){b.pageLoadingFromNavigation=!1;_.aw(b.hostElement,"yt-terminate-video-preview-action")},8)};
_.d.updateListStyles=function(){if(_.r("problem_walkthrough_sd")&&this.JSC$15472_scrollContainer!==void 0){var b=this.JSC$15472_scrollContainer.clientWidth;b!==this.JSC$15472_lastScrollContainerWidth&&(this.JSC$15472_lastScrollContainerWidth=b,_.nZ(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(b*.8,415)+"px"}),_.Sx(this.hostElement,"iron-resize"))}};
_.tm.Object.defineProperties(bl.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.r("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var b,h,y;return!!((b=this.data)==null?0:(h=b.cards)==null?0:(y=h[0])==null?0:y.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var b,h,y;return!!((b=this.data)==null?0:(h=b.cards)==null?0:(y=h[0])==null?0:y.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var b,h,y;return _.r("enable_desktop_amsterdam_info_panels")&&!!((b=this.data)==null?0:(h=b.cards)==null?0:(y=h[0])==null?0:y.infoPanelContentRenderer)}}});
bl.prototype.dataChanged=bl.prototype.dataChanged;bl.prototype.onIronResize=bl.prototype.onIronResize;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],bl.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],bl.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.kd.YtdHorizontalListBehavior),_.f("design:type",Object)],bl.prototype,"ytdHorizontalListBehavior",void 0);
_.V([_.B(_.rP),_.f("design:type",Object)],bl.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],bl.prototype,"data",void 0);_.V([_.C({value:!1,reflectToAttribute:!0}),_.f("design:type",Boolean)],bl.prototype,"useCustomColors",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],bl.prototype,"useHighlightStyling",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.f("design:type",Object)],bl.prototype,"cardListStyle",void 0);_.V([_.C({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.f("design:type",Boolean)],bl.prototype,"empty",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.f("design:type",Boolean)],bl.prototype,"hasSubtitle",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.f("design:type",Boolean)],bl.prototype,"thumbnailStyle",void 0);_.V([_.C({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.f("design:type",Boolean)],bl.prototype,"hasGameCard",void 0);_.V([_.C({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.f("design:type",Boolean)],bl.prototype,"centerHeaderTitle",void 0);
_.V([_.C({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.f("design:type",Boolean)],bl.prototype,"hasPortraitMiniApp",void 0);_.V([_.C({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.f("design:type",Boolean)],bl.prototype,"hasSquareMiniApp",void 0);_.V([_.C({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.f("design:type",Boolean)],bl.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.V([_.C({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.f("design:type",Boolean)],bl.prototype,"hasInfoPanel",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],bl.prototype,"isSearch",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],bl.prototype,"inlineStructuredDescription",void 0);_.V([_.to("#scroll-container"),_.f("design:type",HTMLDivElement)],bl.prototype,"JSC$15472_scrollContainer",void 0);
_.V([_.C({computed:"computeInitialCountNumber(data.style.type)"}),_.f("design:type",Number)],bl.prototype,"initialCount",void 0);_.V([_.C({computed:"computeUseFloorScrolling(data.style.type)"}),_.f("design:type",Boolean)],bl.prototype,"useFloorScrolling",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.f("design:type",Boolean)],bl.prototype,"centerItems",void 0);_.V([_.C(),_.f("design:type",Object)],bl.prototype,"pageLoadingFromNavigation",void 0);
_.V([_.C(),_.f("design:type",Object)],bl.prototype,"currentIndex",void 0);_.V([_.C(),_.f("design:type",Number)],bl.prototype,"scrollCount",void 0);_.V([_.C(),_.f("design:type",Object)],bl.prototype,"supportComponentResize",void 0);_.V([_.to("#items"),_.f("design:type",HTMLDivElement)],bl.prototype,"items",void 0);_.V([_.u3("iron-resize"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],bl.prototype,"onIronResize",null);
_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],bl.prototype,"dataChanged",null);_.V([_.C({reflectToAttribute:!0}),_.W("inlineStructuredDescription"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],bl.prototype,"hideNavigationButton",null);_.V([_.C({reflectToAttribute:!0}),_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],bl.prototype,"modernChapters",null);
_.V([_.C({reflectToAttribute:!0}),_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],bl.prototype,"hasVideoAttributeViewModels",null);_.V([_.C({reflectToAttribute:!0}),_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],bl.prototype,"modernInfoPanels",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],bl);
_.k(bl,"ytd-horizontal-card-list-renderer",function(){if(wUw!==void 0)return wUw;var b=document.createElement("template");_.D(b,'\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>');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return wUw=b},{mode:_.Lt("kevlar_poly_si_batch_j072")?1:2});var SZ7=_.T(function(b){var h=b.data;var y={};return _.M("video-summary-content-view-model",{class:_.P2("videoSummaryContentViewModelHost",b.className,(y.videoSummaryContentViewModelHostIsSearch=b.isSearch,y))},_.M(_.Gw,{each:function(){var S=[],F=h().paragraphs;if(F==null||!F.length)return[];for(var a=0;a<F.length;a++){var P=_.c(F[a],M1a),K=void 0;a>0&&(K=_.c(F[a-1],M1a));K&&!!K.marker===!!P.marker?S[S.length-1].paragraphs.push(P):S.push({isList:!!P.marker,paragraphs:[P]})}return S},
keyBy:"INDEX"},function(S){return _.M(_.H,{cond:function(){return S().isList},
then:function(){return _.M("ul",{class:"videoSummaryContentViewModelList"},_.M(_.Gw,{each:function(){return S().paragraphs},
keyBy:"INDEX"},function(F){return _.M("li",{class:"videoSummaryContentViewModelListItem"},_.M(_.zv,{text:function(){return F().text}}))}))},
else:function(){return _.M("div",{class:"videoSummaryContentViewModelParagraphContainer"},_.M(_.Gw,{each:function(){return S().paragraphs},
keyBy:"INDEX"},function(F){return _.M("p",{class:"videoSummaryContentViewModelParagraph"},_.M(_.zv,{text:function(){return F().text}}))}))}})}),_.M(_.H,{cond:function(){return!!_.c(h().likeButtonViewModel,_.E9)&&!!_.c(h().dislikeButtonViewModel,_.iG)},
then:function(){return _.M("div",{class:"videoSummaryContentViewModelBottomButtonsContainer"},_.M("div",{class:"videoSummaryContentViewModelLikeButton"},_.M(_.cD,{data:function(){return _.c(h().likeButtonViewModel,_.E9)},
disableIconAnimation:!0})),_.M(_.r7,{data:function(){return _.c(h().dislikeButtonViewModel,_.iG)}}))}}))},"ac");
SZ7.idomCompat=!0;_.yd(SZ7,"video-summary-content-view-model",{props:{data:_.D4,isSearch:_.D4,className:_.D4}});var hC=function(){var b=_.g.apply(this,arguments)||this;var h,y;b.isExpanded=(y=(h=b.data)==null?void 0:h.isExpanded)!=null?y:!1;b.disableExpand=!1;b.showProminentLabel=!1;b.showRightSideLabel=!0;b.toggleExpandableContent=function(S){b.disableExpand||(S.stopPropagation(),_.v2(_.Qk(S),b.hostElement,["info","expanded-subtitle"])||(b.isExpanded=!b.isExpanded,b.ytRendererBehavior.logExplicitClick(b.data),b.JSC$15483_cardList&&!_.r("expandable_metadata_a11y_fix_ks")&&_.Ob(b,function(){_.oh(b.hostElement)})))};
b.useSquareThumbnail=!1;b.startX=0;return b};
_.z(hC,_.g);_.d=hC.prototype;_.d.computeUseSquareThumbnail=function(){var b;return(b=this.data)==null?void 0:b.useSquareThumbnail};
_.d.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"}}}}};
_.d.dataChanged=function(){if(this.data){var b,h;this.isExpanded=(h=(b=this.data)==null?void 0:b.isExpanded)!=null?h:!1;var y,S,F,a;if(b=this.isDarkTheme()?(y=this.data)==null?void 0:(S=y.colorData)==null?void 0:S.darkColorPalette:(F=this.data)==null?void 0:(a=F.colorData)==null?void 0:a.lightColorPalette){var P,K;if((P=this.data)==null?0:(K=P.colorData)==null?0:K.vibrantColorPalette)b.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.IF(this.hostElement,b)}}};
_.d.isExpandedChanged=function(){this.isExpanded&&this.JSC$15483_cardList&&_.Sx(this.JSC$15483_cardList,"iron-resize")};
_.d.computeIsExpanded=function(b){return!!b.isExpanded};
_.d.computeShowProminentLabel=function(b,h){var y;return!!(b==null?0:(y=b.header)==null?0:y.showLeadingCollapsedLabel)&&!h};
_.d.computeShowRightSideLabel=function(b,h){var y;return!(b==null?0:(y=b.header)==null?0:y.showLeadingCollapsedLabel)&&!h};
_.d.captureContentClick=function(b){if(!this.disableExpand)if(_.r("expandable_metadata_fix_killswitch")){var h=b.target;_.WQ8(h,"ytd-macro-markers-list-item-renderer")||b.stopPropagation();(h==null?void 0:h.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.v2(_.Qk(b),this.hostElement,["items"])||_.mf(_.Qk(b),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.d.timestampClick=function(b){b.stopPropagation();var h,y;(b=(h=this.data)==null?void 0:(y=h.header)==null?void 0:y.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(b)};
_.d.onDown=function(b){b.stopPropagation();this.startX=b.detail?b.detail.x:0};
_.d.onUp=function(b){this.skipKeyInteraction(b)&&b.stopPropagation()};
_.d.skipKeyInteraction=function(b){var h=b.target;if((h==null?void 0:h.id)==="scroll-container"||(h==null?void 0:h.id)==="items"||b.detail&&b.detail.x!==this.startX)return!0;b=_.Qk(b);b=_.L(b);for(h=b.next();!h.done;h=b.next()){h=h.value;if(h===this.hostElement)break;if(h.hasAttribute&&h.hasAttribute("skip-key-interaction"))return!0}return!1};
_.d.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.tm.Object.defineProperties(hC.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var b;return!!_.c((b=this.data)==null?void 0:b.expandedContent,oXa)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var b;return!!_.c((b=this.data)==null?void 0:b.expandedContent,_.odb)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var b,h;return!((b=this.data)==null||!b.useCustomColors)&&!((h=this.data)==null||!h.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.data)==null||!b.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var b,h;return!!((b=this.data)==null?0:(h=b.header)==null?0:h.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var b,h;return!!((b=this.data)==null?0:(h=b.header)==null?0:h.expandedSubtitle)&&this.isExpanded}},
expandedSubtitleTarget:{configurable:!0,enumerable:!0,get:function(){var b,h,y=(b=this.data)==null?void 0:(h=b.header)==null?void 0:h.expandedSubtitleTapCommand;b=y&&_.c(y,_.jH);return _.r("web_open_ai_support_links_external_window")&&(b==null?void 0:b.target)==="TARGET_NEW_WINDOW"?"_blank":null}},
expandedSubtitleRel:{configurable:!0,enumerable:!0,get:function(){var b,h,y=(b=this.data)==null?void 0:(h=b.header)==null?void 0:h.expandedSubtitleTapCommand;b=y&&_.c(y,_.jH);return _.r("web_open_ai_support_links_external_window")&&(b==null?void 0:b.target)==="TARGET_NEW_WINDOW"?"noopener":null}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var b,h;return!!((b=this.data)==null?0:(h=b.header)==null?0:h.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.data)==null?void 0:b.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
hC.prototype.onUp=hC.prototype.onUp;hC.prototype.onDown=hC.prototype.onDown;hC.prototype.isExpandedChanged=hC.prototype.isExpandedChanged;hC.prototype.dataChanged=hC.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],hC.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],hC.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],hC.prototype,"ytComponentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],hC.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],hC.prototype,"isExpanded",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],hC.prototype,"disableExpand",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],hC.prototype,"isSearch",void 0);
_.V([_.C({value:!1,reflectToAttribute:!0}),_.f("design:type",Boolean)],hC.prototype,"isWatch",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.f("design:type",Object)],hC.prototype,"showProminentLabel",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.f("design:type",Object)],hC.prototype,"showRightSideLabel",void 0);
_.V([_.C({value:!1,reflectToAttribute:!0}),_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],hC.prototype,"hasVideoSummary",null);_.V([_.C({value:!1,reflectToAttribute:!0}),_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],hC.prototype,"hasLockupViewModel",null);_.V([_.C({reflectToAttribute:!0}),_.W("data","isWatch"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],hC.prototype,"useCustomColors",null);
_.V([_.C({reflectToAttribute:!0}),_.W("data","isExpanded"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],hC.prototype,"showInfoButton",null);_.V([_.W("data","isExpanded"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],hC.prototype,"showTimestamp",null);_.V([_.W("data","isExpanded"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],hC.prototype,"showExpandedSubtitle",null);
_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],hC.prototype,"expandedSubtitleTarget",null);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],hC.prototype,"expandedSubtitleRel",null);_.V([_.W("data","isExpanded"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],hC.prototype,"showThumbnail",null);_.V([_.C({reflectToAttribute:!0}),_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],hC.prototype,"useVppShoppingDestinationStyle",null);
_.V([_.C(),_.f("design:type",Object)],hC.prototype,"toggleExpandableContent",void 0);_.V([_.to("ytd-horizontal-card-list-renderer"),_.f("design:type",Object)],hC.prototype,"JSC$15483_cardList",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.f("design:type",Object)],hC.prototype,"useSquareThumbnail",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],hC.prototype,"dataChanged",null);
_.V([_.OB("isExpanded"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],hC.prototype,"isExpandedChanged",null);_.V([_.u3("down"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],hC.prototype,"onDown",null);_.V([_.u3("up"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],hC.prototype,"onUp",null);
_.V([_.Yx({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],hC);
_.k(hC,"ytd-expandable-metadata-renderer",function(){if(h5W!==void 0)return h5W;var b=document.createElement("template");_.D(b,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]" target$="[[expandedSubtitleTarget]]" rel$="[[expandedSubtitleRel]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" hidden="[[!isExpanded]]" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return h5W=b},{mode:1});var FNo,aJ7=function(){if(FNo!==void 0)return FNo;var b=document.createElement("template");_.D(b,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-renderer">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" use-untranslated-navigation-endpoint="[[hideTranslation]]" width="[[computeThumbnailWidth(isBackstageVideo, isPostCompactVideo, useSearchUi, useBiggerThumbs, biggerThumbsStyle, videoStyle)]]" class="style-scope ytd-video-renderer">\n  </ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-video-renderer" on-click="onTextWrapperClick">\n    <div id="meta" class="style-scope ytd-video-renderer">\n      <div id="title-wrapper" class="style-scope ytd-video-renderer">\n        <h3 class="title-and-badge style-scope ytd-video-renderer">\n          <ytd-badge-supported-renderer collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-renderer">\n          </ytd-badge-supported-renderer>\n          <a id="video-title" class="yt-simple-endpoint style-scope ytd-video-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[computedNavigationEndpoint]]">\n            <yt-icon id="inline-title-icon" hidden="[[hideInlineTitleIcon(hideTranslation, inlineTitleIcon)]]" icon="[[inlineTitleIcon]]" class="style-scope ytd-video-renderer">\n            </yt-icon>\n            <yt-formatted-string text="[[computeTitleText(hideTranslation, data.title, data.untranslatedTitle)]]" class="style-scope ytd-video-renderer">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <div id="menu" class="style-scope ytd-video-renderer"></div>\n      </div>\n      <ytd-video-meta-block data="[[data]]" no-byline="[[shouldShowChannelInfo]]" truncate-metadata-line="[[isRichGridVideoPost]]" class="style-scope ytd-video-renderer">\n      </ytd-video-meta-block>\n    </div>\n    <div id="channel-info" hidden="[[!shouldShowChannelInfo]]" class="style-scope ytd-video-renderer">\n      <a id="channel-thumbnail" hidden="[[!shouldShowChannelThumbnail]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-video-renderer">\n        <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-video-renderer">\n        </yt-img-shadow>\n      </a>\n      <div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-video-renderer"></div>\n      <div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-video-renderer"></div>\n      <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-video-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" hidden="[[hasAttributedBylineText]]" wrap-text="true">\n      </ytd-channel-name>\n    </div>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionSnippet]]" text="[[computeDescriptionSnippet(hideTranslation, data.descriptionSnippet, data.untranslatedDescriptionSnippet)]]" class="style-scope ytd-video-renderer">\n    </yt-formatted-string>\n    <template is="dom-repeat" items="[[data.detailedMetadataSnippets]]" hidden="[[!data.detailedMetadataSnippets]]" class="style-scope ytd-video-renderer">\n      <div class$="[[getMetadataSnippetContainerClass(item.maxOneLine)]] style-scope ytd-video-renderer">\n        <a class="yt-simple-endpoint metadata-snippet-timestamp style-scope ytd-video-renderer" aria-label$="[[item.snippetTimestamp.accessibility.accessibilityData.label]]" hidden="[[!item.snippetTimestamp]]" href$="[[computeHref_(item.timestampEndpoint)]]" data="[[item.timestampEndpoint]]">\n          <span id="time" class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetTimestamp)]]</span>\n          <yt-formatted-string class="metadata-snippet-text-navigation style-scope ytd-video-renderer" text="[[item.snippetText]]">\n          </yt-formatted-string>\n        </a>\n        <yt-formatted-string class="metadata-snippet-text style-scope ytd-video-renderer" hidden="[[item.snippetTimestamp]]" text="[[computeSnippetText(hideTranslation, item.snippetText, item.untranslatedSnippetText)]]">\n        </yt-formatted-string>\n        <tp-yt-paper-tooltip class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetHoverText)]]</tp-yt-paper-tooltip>\n      </div>\n    </template>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" hidden-badge-groups="[[hiddenBadgeGroups]]" class="style-scope ytd-video-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="expandable-metadata" class="style-scope ytd-video-renderer"></div>\n    <div id="buttons" class="style-scope ytd-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-video-renderer"></yt-interaction>\n');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return FNo=b};_.yd(_.tZ,"yt-avatar-stack-view-model",{props:{className:_.D4,data:_.D4,overrides:_.D4,isOverlay:_.D4,useMediumText:_.D4,decorations:_.D4,hideAvatar:_.D4}});_.W2("itemSectionRenderer","videoRenderer","ytd-video-renderer");var yP=function(){var b=_.g.apply(this,arguments)||this;b.disableExpand=!1;b.shouldShowChannelInfo=!1;b.hasAttributedBylineText=!1;b.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return b};
_.z(yP,_.g);_.d=yP.prototype;_.d.computeUseSearchUi=function(){var b,h;return this.isSearch||((b=this.data)==null?void 0:(h=b.style)==null?void 0:h.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.d.computeUseThreeLineTitle=function(){var b;return((b=this.data)==null?void 0:b.maxTitleLines)===3};
_.d.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.r("polymer_video_renderer_defer_menu")&&!C28?0:void 0},"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",
notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.expandableMetadata":{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",properties:{isSearch:"[[useSearchUi]]",disableExpand:"[[disableExpand]]"}}}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:"yt-avatar-stack-view-model"}},"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.d.attached=function(){_.Zm(this.hostElement,"blue-links",_.r("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.d.detached=function(){this.clearInlinePreviewHoverListeners()};
_.d.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.oc(_.$x(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var b=this.get("data.buttons.buttonRenderer.serviceEndpoint"),h;b&&((h=_.c(b.commandMetadata,_.Sg))==null?0:h.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(b);this.updateInlinePreviewHoverListeners()};
_.d.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15488_inlinePreviewHoverListener=Yr({mediaRenderer:this,lockupElement:this.JSC$15488_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.d.clearInlinePreviewHoverListeners=function(){var b;(b=this.JSC$15488_inlinePreviewHoverListener)==null||h_(b)};
_.d.onTextWrapperClick=function(b){var h,y,S=this.hideTranslation?(h=this.data)==null?void 0:h.untranslatedNavigationEndpoint:(y=this.data)==null?void 0:y.navigationEndpoint;h=_.v2(_.Qk(b),this.hostElement,["expandable-metadata"]);!S||h&&!_.r("expandable_metadata_fix_killswitch")||_.mf(_.Qk(b),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.Sx(this.hostElement,"yt-navigate",{endpoint:S})};
_.d.computeThumbnailWidth=function(b,h,y,S,F){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:S?F==="MASSIVE"?600:F==="BIG"?500:F==="MEDIUM"?450:420:y?360:h?128:b?210:246};
_.d.computeUseBiggerThumbs=function(b){return b&&_.r("enable_desktop_search_bigger_thumbs")};
_.d.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.d.computeHasAttributedBylineText=function(){var b;return!((b=this.data)==null||!b.attributedBylineText)};
_.d.computeVideoStyle=function(){if(_.r("enable_video_style")){var b,h;return(b=this.data)==null?void 0:(h=b.style)==null?void 0:h.value}};
_.d.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.d.handleHideItemSectionVideosByIdCommand=function(b){var h;b=(h=_.c(b,CCw))==null?void 0:h.videoId;this.data&&this.data.videoId===b&&(this.isHidden=!0)};
_.d.getMetadataSnippetContainerClass=function(b){return b?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.d.computeTitleText=function(b,h,y){return b?y:h};
_.d.computeDescriptionSnippet=function(b,h,y){return b?y:h};
_.d.computeSnippetText=function(b,h,y){return b?y:h};
_.d.computeNavigationEndpoint=function(b,h){return b?h==null?void 0:h.untranslatedNavigationEndpoint:h==null?void 0:h.navigationEndpoint};
_.d.hideInlineTitleIcon=function(b,h){return b||!h};
_.tm.Object.defineProperties(yP.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 b;return(b=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?b:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var b,h,y;return!!(this==null?0:(b=this.data)==null?0:(h=b.channelThumbnailSupportedRenderers)==null?0:(y=h.channelThumbnailWithLinkRenderer)==null?0:y.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var b;return!!_.c((b=this.data)==null?void 0:b.avatar,Mbe)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.JSC$15488_inlinePreviewHoverListener)==null?0:RQ(b))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.tm.Object.defineProperties(yP,{template:{configurable:!0,enumerable:!0,get:function(){return aJ7()}}});
yP.prototype.dataChanged=yP.prototype.dataChanged;_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],yP.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],yP.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],yP.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.rP),_.f("design:type",Object)],yP.prototype,"ytdDismissibleItemBehavior",void 0);
_.V([_.B(_.Wg),_.f("design:type",Object)],yP.prototype,"ytdLockupBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],yP.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],yP.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],yP.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],yP.prototype,"isBackstageVideo",void 0);
_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],yP.prototype,"isPostCompactVideo",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],yP.prototype,"isHistory",void 0);_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],yP.prototype,"isRichGridVideoPost",void 0);_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],yP.prototype,"isHidden",void 0);
_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],yP.prototype,"isSearch",void 0);_.V([_.C({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.f("design:type",Boolean)],yP.prototype,"useSearchUi",void 0);_.V([_.C({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.f("design:type",Boolean)],yP.prototype,"useThreeLineTitle",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.f("design:type",Boolean)],yP.prototype,"useBiggerThumbs",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.f("design:type",Object)],yP.prototype,"videoStyle",void 0);_.V([_.C({computed:"computeDisableExpand(videoStyle)"}),_.f("design:type",Object)],yP.prototype,"disableExpand",void 0);
_.V([_.C({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.f("design:type",Object)],yP.prototype,"shouldShowChannelInfo",void 0);_.V([_.C({computed:"computeHasAttributedBylineText(data)"}),_.f("design:type",Object)],yP.prototype,"hasAttributedBylineText",void 0);_.V([_.C({reflectToAttribute:!0,value:function(){return _.rH("desktop_search_bigger_thumbs_style")}}),
_.f("design:type",String)],yP.prototype,"biggerThumbsStyle",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.f("design:type",String)],yP.prototype,"inlineTitleIcon",void 0);_.V([_.C({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.f("design:type",Object)],yP.prototype,"computedNavigationEndpoint",void 0);_.V([_.C({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(b,h){return _.Mm(b.entities,"searchVideoResultEntity",h)}}),
_.f("design:type",Object)],yP.prototype,"searchVideoResultEntity",void 0);_.V([_.to("ytd-thumbnail"),_.f("design:type",HTMLElement)],yP.prototype,"thumbnail",void 0);_.V([_.to("#dismissible"),_.f("design:type",HTMLElement)],yP.prototype,"JSC$15488_dismissibleMedia",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],yP.prototype,"dataChanged",null);
_.V([_.W("searchVideoResultEntity"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],yP.prototype,"hideTranslation",null);_.V([_.W("searchVideoResultEntity"),_.f("design:type",Array),_.f("design:paramtypes",[])],yP.prototype,"hiddenBadgeGroups",null);_.V([_.W("data","useAvatar"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],yP.prototype,"shouldShowChannelThumbnail",null);_.V([_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],yP.prototype,"useAvatar",null);
_.V([_.W("lockupIsHovered"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],yP.prototype,"isHovered",null);_.V([_.Yx({is:"ytd-video-renderer",disableElementRegistration:!0})],yP);_.k(yP,"ytd-video-renderer",function(){return aJ7()},{mode:_.Lt("kevlar_poly_si_batch_j047")?1:2});var Si=function(){var b=_.g.apply(this,arguments)||this;b.editDialog=null;b.roundedContainer=!0;b.isLoading=!1;b.isRichGrid=!1;b.isRichGridRepost=!1;b.reduceSidePaddings=_.r("reduce_side_paddings_in_shelf");b.JSC$15495_spinnerEl=null;return b};
_.z(Si,_.g);_.d=Si.prototype;
_.d.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"}}}};
_.d.contentTextChanged=function(){this.expander.reset()};
_.d.dataChanged=function(){var b=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var h=0,y=this.data.actions&&this.data.actions.length;h<y;h++)this.openEditDialog(_.c(this.data.actions[h],u3o));if((h=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(h=this.get("buttonRenderer.hint.hintRenderer.hintId",h))&&h.startsWith("share-post-hint")){var S=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(S){_.wD.getInstance();var F=lK(_.mk(_.Mt("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.xP.addLowPriorityJob(function(){_.jx(b.hostElement,F,S)})}}}};
_.d.updatePoll=function(b){b>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.d.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15495_spinnerEl||(this.JSC$15495_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.$x(this.hostElement).appendChild(this.JSC$15495_spinnerEl));this.JSC$15495_spinnerEl&&(this.JSC$15495_spinnerEl.active=this.isLoading)};
_.d.onYtNavigate=function(b){var h=this.get("updateCommentDialogEndpoint",b.detail.endpoint);h&&(this.openEditDialog(h),b.stopPropagation())};
_.d.onYtCommentboxDismiss=function(){this.editDialog=null};
_.d.onYtCommentPollRevert=function(b,h){h&&this.updatePoll(h.selectedChoiceIndex)};
_.d.onYtServiceRequestSent=function(b,h){var y;h.endpoint&&(_.c(h.endpoint,BaP)||_.c(h.endpoint,Iwo)&&((y=_.c(h.endpoint,Iwo))==null||!y.clientActions))&&(this.isLoading=!0);if(h.actions)for(b=0;b<h.actions.length;b++)y=h.actions[b],_.c(y,hT)&&(y=this.get("updateBackstagePollAction.selectedChoiceIndex",y),y==void 0&&(y=-1),this.updatePoll(y))};
_.d.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.d.openEditDialog=function(b){b&&b.dialog&&(this.editDialog=b.dialog,b=this.editDialogEl.firstElementChild)&&(b.focus(),b.openDialog&&b.openDialog())};
_.d.computeIsPostHidden=function(b,h){return!!b||h};
_.d.computeSurfaceType=function(b){return b?b.toLowerCase().replace(/_/g,"-"):""};
_.d.computeUsesCompactLockup=function(b){return b==="BACKSTAGE_SURFACE_TYPE_HOME"||b==="BACKSTAGE_SURFACE_TYPE_SEARCH"||b==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||b==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||b==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||b==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.d.computeShowWithoutToolbar=function(b){return!b.actionButtons&&!b.actionMenu};
_.d.computePostAttachment=function(b){if(b.backstageAttachment){if(_.c(b.backstageAttachment,j$o))return"poll";if(_.c(b.backstageAttachment,idM))return"quiz";if(_.c(b.backstageAttachment,_.tT))return"video";if(_.c(b.backstageAttachment,f4W))return"uploaded-videos";if(_.c(b.backstageAttachment,ER5))return b.contentText?"image":"image-only";if(_.c(b.backstageAttachment,Gve))return"playlist"}return"none"};
_.d.computePostTabIndex=function(b){return b?0:-1};
_.d.computeButtonTooltipPosition=function(b){return this.computeUsesCompactLockup(b)?"top":"bottom"};
_.d.computeHasText=function(b){return!(b==null||!b.contentText)};
_.d.onTap=function(b){var h,y;if(((h=this.data)==null?0:h.navigationEndpoint)&&((y=this.data)==null?void 0:y.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var S;((S=this.data)==null?0:S.navigationEndpoint)&&!_.mf(_.Qk(b)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.Sx(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.tm.Object.defineProperties(Si.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.data)==null?void 0:b.voteCount)||_.mk("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var b;return(b=this.data)==null?void 0:b.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.c(this.data.backstageAttachment,j$o))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.c(this.data.backstageAttachment,f4W))}}});
Si.prototype.onYtServiceRequestCompleted=Si.prototype.onYtServiceRequestCompleted;Si.prototype.onYtServiceRequestSent=Si.prototype.onYtServiceRequestSent;Si.prototype.onYtCommentPollRevert=Si.prototype.onYtCommentPollRevert;Si.prototype.onYtCommentboxDismiss=Si.prototype.onYtCommentboxDismiss;Si.prototype.onYtNavigate=Si.prototype.onYtNavigate;Si.prototype.isLoadingChanged=Si.prototype.isLoadingChanged;Si.prototype.dataChanged=Si.prototype.dataChanged;Si.prototype.contentTextChanged=Si.prototype.contentTextChanged;
_.V([_.B(_.rP),_.f("design:type",Object)],Si.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Si.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Si.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],Si.prototype,"ytComponentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Si.prototype,"data",void 0);
_.V([_.C(),_.f("design:type",Object)],Si.prototype,"editDialog",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Si.prototype,"roundedContainer",void 0);_.V([_.C(),_.f("design:type",Object)],Si.prototype,"isLoading",void 0);_.V([_.C({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.f("design:type",String)],Si.prototype,"surface",void 0);
_.V([_.C({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.f("design:type",Boolean)],Si.prototype,"usesCompactLockup",void 0);_.V([_.C({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.f("design:type",Boolean)],Si.prototype,"showWithoutToolbar",void 0);_.V([_.C({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.f("design:type",String)],Si.prototype,"attachment",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Si.prototype,"isRichGrid",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Si.prototype,"isRichGridRepost",void 0);_.V([_.C({reflectToAttribute:!0,value:_.r("use_better_post_dismissals")}),_.f("design:type",Boolean)],Si.prototype,"useBetterPostDismissals",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Si.prototype,"reduceSidePaddings",void 0);
_.V([_.C({computed:"computeHasText(data)",reflectToAttribute:!0}),_.f("design:type",Boolean)],Si.prototype,"hasText",void 0);_.V([_.to("#expander"),_.f("design:type",Object)],Si.prototype,"expander",void 0);_.V([_.to("#action-buttons"),_.f("design:type",Object)],Si.prototype,"actionButtons",void 0);_.V([_.to("#edit-dialog"),_.f("design:type",HTMLElement)],Si.prototype,"editDialogEl",void 0);
_.V([_.OB("data.contentText"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Si.prototype,"contentTextChanged",null);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Si.prototype,"dataChanged",null);_.V([_.OB("isLoading"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Si.prototype,"isLoadingChanged",null);
_.V([_.u3("yt-navigate"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],Si.prototype,"onYtNavigate",null);_.V([_.u3("yt-commentbox-dismiss"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Si.prototype,"onYtCommentboxDismiss",null);_.V([_.u3("yt-comment-poll-revert"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,Object]),_.f("design:returntype")],Si.prototype,"onYtCommentPollRevert",null);
_.V([_.u3("yt-service-request-sent"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,_.kE]),_.f("design:returntype")],Si.prototype,"onYtServiceRequestSent",null);_.V([_.u3("yt-service-request-completed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,_.xE]),_.f("design:returntype")],Si.prototype,"onYtServiceRequestCompleted",null);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],Si.prototype,"voteCount",null);
_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],Si.prototype,"commentCount",null);_.V([_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Si.prototype,"hasPoll",null);_.V([_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Si.prototype,"hasUploadedVideo",null);_.V([_.Yx({is:"ytd-post-renderer",disableElementRegistration:!0})],Si);
_.k(Si,"ytd-post-renderer",function(){if(r$o!==void 0)return r$o;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return r$o=b},{mode:1});var d0a;var jSb;var FL=function(){return _.g.apply(this,arguments)||this};
_.z(FL,_.g);FL.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],FL.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],FL.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.kd.YtdHorizontalListBehavior),_.f("design:type",Object)],FL.prototype,"ytdHorizontalListBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],FL.prototype,"componentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],FL.prototype,"data",void 0);
_.V([_.C({value:"$.items.children"}),_.f("design:type",String)],FL.prototype,"itemsPath",void 0);_.V([_.C({value:1}),_.f("design:type",Number)],FL.prototype,"initialCount",void 0);_.V([_.C({reflectToAttribute:!0,value:_.r("enable_community_page_on_desktop")}),_.f("design:type",Boolean)],FL.prototype,"useSmallerPostImageAttachments",void 0);_.V([_.C(),_.f("design:type",String)],FL.prototype,"surface",void 0);_.V([_.Yx({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],FL);
_.k(FL,"ytd-post-multi-image-renderer",function(){if(jSb!==void 0)return jSb;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return jSb=b},{mode:_.Lt("kevlar_poly_si_batch_j079")?1:2});var $0a={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},authorCommentBadge:{id:"author-comment-badge",mapping:{renderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",
properties:{surface:"[[data.surface]]"}},postMultiImageRenderer:{component:"ytd-post-multi-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",params:{isBackstagePlaylist:!0}}}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}},
ai=function(){var b=_.g.apply(this,arguments)||this;b.hasInlineCommentSection=!1;b.editDialog=null;b.isLoading=!1;b.shouldHideAuthor=!1;b.shouldShowVideoTime=!1;b.isInEngagementPanel=!1;b.hideBorder=!1;b.usesFullLockup=!1;b.shouldShowMenuInCompactView=!1;b.JSC$15510_spinnerEl=null;b.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return b};
_.z(ai,_.g);_.d=ai.prototype;_.d.configureRendererStamper=function(){return $0a};
_.d.computeIsPollHeaderEnabled=function(b){return(b==null?void 0:b.pollMetadataIcon)!=null};
_.d.getPublishTimeStampString=function(b,h){h=new Date((Number(h)-60*((new Date).getTimezoneOffset()-(new Date(Number(h)*1E3)).getTimezoneOffset()))*1E3);h=(new QE(10)).format(h);if(b&&b.runs&&b.runs.length)for(var y=0;y<b.runs.length;y++)b.runs[y].text&&(b.runs[y].text=b.runs[y].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",h));return b};
_.d.created=function(){this.JSC$15510_spinnerEl=null};
_.d.contentTextChanged=function(){this.expander.reset()};
_.d.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var b;if((b=this.data)==null?0:b.actions){b=_.L(this.data.actions);for(var h=b.next();!h.done;h=b.next())this.openEditDialog(_.c(h.value,u3o))}};
_.d.handleSignalActionOpenPostCommentDialogAction=function(){_.$x(this.hostElement).querySelector("#action-buttons").reply()};
_.d.updatePoll=function(b,h){h&&this.set("data.pollMetadataVoteCountText",h);this.hasInlineCommentSection&&(b=b>=0,h=_.$x(this.hostElement).querySelector("#action-buttons"),b?h.reply():h.hideReplyDialog())};
_.d.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15510_spinnerEl||(this.JSC$15510_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.$x(this.hostElement).appendChild(this.JSC$15510_spinnerEl));this.JSC$15510_spinnerEl&&(this.JSC$15510_spinnerEl.active=this.isLoading)};
_.d.onYtNavigate=function(b){var h=this.get("updateCommentDialogEndpoint",b.detail.endpoint);h&&(this.openEditDialog(h),b.stopPropagation())};
_.d.onYtCommentboxDismiss=function(){this.editDialog=null};
_.d.onYtCommentPollRevert=function(b,h){h&&this.updatePoll(h.selectedChoiceIndex,h.totalVotes)};
_.d.onYtServiceRequestSent=function(b,h){b.stopPropagation();b=_.c(h.endpoint,Iwo);if(_.c(h.endpoint,BaP)||b&&!b.clientActions)this.isLoading=!0;if(h.actions)for(b=0;b<h.actions.length;b++){var y=h.actions[b],S=_.c(y,hT);S&&(y=this.get("updateBackstagePollAction.selectedChoiceIndex",y),y===void 0&&(y=-1),this.updatePoll(y,S.totalVotes))}};
_.d.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.d.openEditDialog=function(b){b&&b.dialog&&(this.editDialog=b.dialog,b=this.editDialogElement.firstElementChild)&&(b.focus(),b.openDialog&&b.openDialog())};
_.d.computeIsBodyHidden=function(b,h){return!!b||h};
_.tm.Object.defineProperties(ai.prototype,{authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var b=this.data,h=b.showPostAuthorBackgroundHighlight,y=b.postAuthorBadgeType,S=b.authorEndpoint;if(!h&&y!=="POST_AUTHOR_BADGE_TYPE_VERIFIED"&&y!=="POST_AUTHOR_BADGE_TYPE_ARTIST")return null;var F,a,P;b=_.mk(((F=b.authorText)==null?void 0:(a=F.runs)==null?void 0:(P=a[0])==null?void 0:P.text)||"");F=void 0;switch(y){case "POST_AUTHOR_BADGE_TYPE_ARTIST":F={iconType:"AUDIO_BADGE"};
break;case "POST_AUTHOR_BADGE_TYPE_VERIFIED":F={iconType:h?"CHECK_CIRCLE_THICK":"CHECK"}}return{renderer:{authorText:b,authorEndpoint:S,authorCreator:h,icon:F}}}},
postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var b,h;if((b=this.data)==null?0:(h=b.pollMetadataIcon)==null?0:h.iconType)return _.o_(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.data)==null?void 0:b.voteCount)||_.mk("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var b;return(b=this.data)==null?void 0:b.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.c(this.data.backstageAttachment,j$o))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.c(this.data.backstageAttachment,idM))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.c(this.data.backstageAttachment,f4W))}}});
ai.prototype.onYtServiceRequestCompleted=ai.prototype.onYtServiceRequestCompleted;ai.prototype.onYtServiceRequestSent=ai.prototype.onYtServiceRequestSent;ai.prototype.onYtCommentPollRevert=ai.prototype.onYtCommentPollRevert;ai.prototype.onYtCommentboxDismiss=ai.prototype.onYtCommentboxDismiss;ai.prototype.onYtNavigate=ai.prototype.onYtNavigate;ai.prototype.isLoadingChanged=ai.prototype.isLoadingChanged;ai.prototype.dataChanged=ai.prototype.dataChanged;ai.prototype.contentTextChanged=ai.prototype.contentTextChanged;
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],ai.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],ai.prototype,"rendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],ai.prototype,"rendererstamperBehavior",void 0);_.V([_.B(_.rP),_.f("design:type",Object)],ai.prototype,"ytdDismissibleItemBehavior",void 0);
_.V([_.to("#contentTextExpander"),_.f("design:type",Object)],ai.prototype,"expander",void 0);_.V([_.to("#edit-dialog"),_.f("design:type",Element)],ai.prototype,"editDialogElement",void 0);_.V([_.C(),_.f("design:type",Object)],ai.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],ai.prototype,"hasInlineCommentSection",void 0);_.V([_.C(),_.f("design:type",Object)],ai.prototype,"editDialog",void 0);_.V([_.C(),_.f("design:type",Object)],ai.prototype,"isLoading",void 0);
_.V([_.C({computed:"computeIsPollHeaderEnabled(data)"}),_.f("design:type",Boolean)],ai.prototype,"isPollHeaderEnabled",void 0);_.V([_.C(),_.f("design:type",Object)],ai.prototype,"shouldHideAuthor",void 0);_.V([_.C(),_.f("design:type",Object)],ai.prototype,"shouldShowVideoTime",void 0);_.V([_.C(),_.f("design:type",Object)],ai.prototype,"isInEngagementPanel",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],ai.prototype,"hideBorder",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],ai.prototype,"usesFullLockup",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],ai.prototype,"shouldShowMenuInCompactView",void 0);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],ai.prototype,"authorCommentBadge",null);_.V([_.W("isInEngagementPanel"),_.f("design:type",Number),_.f("design:paramtypes",[])],ai.prototype,"postTextMaxLines",null);
_.V([_.W("data.icon.iconType"),_.f("design:type",Object),_.f("design:paramtypes",[])],ai.prototype,"pollIcon",null);_.V([_.OB("data.contentText"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],ai.prototype,"contentTextChanged",null);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],ai.prototype,"dataChanged",null);
_.V([_.OB("isLoading"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],ai.prototype,"isLoadingChanged",null);_.V([_.u3("yt-navigate"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],ai.prototype,"onYtNavigate",null);_.V([_.u3("yt-commentbox-dismiss"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],ai.prototype,"onYtCommentboxDismiss",null);
_.V([_.u3("yt-comment-poll-revert"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,Object]),_.f("design:returntype")],ai.prototype,"onYtCommentPollRevert",null);_.V([_.u3("yt-service-request-sent"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,_.kE]),_.f("design:returntype")],ai.prototype,"onYtServiceRequestSent",null);
_.V([_.u3("yt-service-request-completed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],ai.prototype,"onYtServiceRequestCompleted",null);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],ai.prototype,"voteCount",null);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],ai.prototype,"commentCount",null);
_.V([_.W("data.backstageAttachment"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],ai.prototype,"hasPoll",null);_.V([_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],ai.prototype,"hasQuiz",null);_.V([_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],ai.prototype,"hasUploadedVideo",null);_.V([_.Yx({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],ai);
_.k(ai,"ytd-backstage-post-renderer",function(){if(d0a!==void 0)return d0a;var b=document.createElement("template");_.D(b,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-backstage-post-renderer">\n  <div id="dismissed-content" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return d0a=b},{mode:1});var LNN;var dn=function(){var b=_.g.apply(this,arguments)||this;b.editDialog=null;b.showExpandButton=!1;b.isRichGrid=!1;b.usesFullLockup=!1;return b};
_.z(dn,_.g);_.d=dn.prototype;_.d.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"}}}};
_.d.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.d.computeShowExpandButton=function(b){return this.usesCompactLockup||b&&b.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.d.computeUsesCompactLockup=function(b){return!!b.condensedContent};
_.d.computeShowFullContentText=function(b){return!b};
_.d.onYtNavigate=function(b){b=this.get("updateCommentDialogEndpoint",b.detail.endpoint);this.openEditDialog(b)};
_.d.onYtCommentboxDismiss=function(){this.editDialog=null};
_.d.openEditDialog=function(b){b&&b.dialog&&(this.editDialog=b.dialog,b=this.repostEditDialogEl.firstElementChild)&&(b.focus(),b.openDialog&&b.openDialog())};
_.d.onTap=function(b){if(this.data){var h=null;this.usesCompactLockup&&!_.mf(_.Qk(b)||[],this.hostElement,["YT-IMG-SHADOW"])?h=this.get("navigationEndpoint",this.data):b.target===this.moreButtonEl&&(h=this.get("navigationEndpoint",b.target.data));h&&_.Sx(this.hostElement,"yt-navigate",{endpoint:h})}};
dn.prototype.onYtCommentboxDismiss=dn.prototype.onYtCommentboxDismiss;dn.prototype.onYtNavigate=dn.prototype.onYtNavigate;dn.prototype.dataChanged=dn.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],dn.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],dn.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],dn.prototype,"data",void 0);
_.V([_.C(),_.f("design:type",Object)],dn.prototype,"editDialog",void 0);_.V([_.C({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.f("design:type",Boolean)],dn.prototype,"usesCompactLockup",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],dn.prototype,"showExpandButton",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],dn.prototype,"isRichGrid",void 0);
_.V([_.C({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.f("design:type",Boolean)],dn.prototype,"showFullContentText",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],dn.prototype,"usesFullLockup",void 0);_.V([_.to("#more"),_.f("design:type",Object)],dn.prototype,"moreButtonEl",void 0);_.V([_.to("#repost-content-text"),_.f("design:type",HTMLElement)],dn.prototype,"repostContentTextEl",void 0);
_.V([_.to("#repost-edit-dialog"),_.f("design:type",HTMLElement)],dn.prototype,"repostEditDialogEl",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],dn.prototype,"dataChanged",null);_.V([_.u3("yt-navigate"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],dn.prototype,"onYtNavigate",null);
_.V([_.u3("yt-commentbox-dismiss"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],dn.prototype,"onYtCommentboxDismiss",null);_.V([_.Yx({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],dn);
_.k(dn,"ytd-shared-post-renderer",function(){if(LNN!==void 0)return LNN;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return LNN=b},{mode:1});var PIN;var KNM;var ji=function(){return _.g.apply(this,arguments)||this};
_.z(ji,_.g);ji.prototype.attached=function(){var b=this;this.networkStatusManager||(this.networkStatusManager=new _.PX,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){b.onlineHandler()}))};
ji.prototype.detached=function(){var b=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){b.onlineHandler()}),delete this.networkStatusManager)};
ji.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],ji.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],ji.prototype,"ytComponentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],ji.prototype,"data",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],ji);
_.k(ji,"ytd-reload-page-button-renderer",function(){if(KNM!==void 0)return KNM;var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);
return KNM=b},{mode:1});var ZuM={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"},$I=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return b};
_.z($I,_.g);_.d=$I.prototype;_.d.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.d.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.d.computeHasBodyText=function(b){return!!b.bodyText};
_.d.computeButtons=function(b){var h=[];b.ctaButton&&h.push(b.ctaButton);b.secondaryButton&&h.push(b.secondaryButton);return h};
_.d.computeRendererStyle=function(b){return b.style?b.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():b.icon?"":"no-icon"};
_.d.getIconName=function(b,h){h=h===void 0?!1:h;if(b===void 0)return"";b=this.get("icon.iconType",b);var y;_.r("enable_hlp_client_icon_pick")?y=this.getThemedIcon(b,h):y=b;(h=ZuM[y])||(h="yt-icons");return[h,y].join(":")};
_.d.getThemedIcon=function(b,h){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(b)?h?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(b)?h?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":b};
_.d.isThumbnail=function(b){return!!b.thumbnail};
_.d.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.d.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],$I.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],$I.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],$I.prototype,"ytActionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],$I.prototype,"data",void 0);
_.V([_.C({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.f("design:type",String)],$I.prototype,"rendererStyle",void 0);_.V([_.C({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.f("design:type",String)],$I.prototype,"iconName",void 0);_.V([_.C({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.f("design:type",Boolean)],$I.prototype,"thumbnail",void 0);_.V([_.C({computed:"computeButtons(data)"}),_.f("design:type",Array)],$I.prototype,"buttons",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],$I.prototype,"isDarkTheme",void 0);_.V([_.C({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.f("design:type",Boolean)],$I.prototype,"hasBodyText",void 0);_.V([_.Yx({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],$I);
_.$S()($I,"ytd-background-promo-renderer",function(){if(PIN===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);PIN=b}b=PIN;return b},{allowedProps:["data"],
mode:1});var oDa;var L1=function(){return _.g.apply(this,arguments)||this};
_.z(L1,_.g);_.tm.Object.defineProperties(L1.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var b,h,y,S,F,a;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(b=this.data)==null?void 0:(h=b.thumbnail)==null?void 0:h.sampledThumbnailColor,vibrantColorPalette:(y=this.data)==null?void 0:(S=y.thumbnail)==null?void 0:S.vibrantColorPalette,darkColorPalette:(F=this.data)==null?void 0:(a=F.thumbnail)==null?void 0:a.darkColorPalette,experimentEnabled:!0}}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],L1.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],L1.prototype,"data",void 0);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],L1.prototype,"collectionStack",null);_.V([_.Yx({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],L1);
_.k(L1,"ytd-compact-station-renderer",function(){if(oDa!==void 0)return oDa;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return oDa=b},{mode:1});var Mna;var P8=function(){var b=_.g.apply(this,arguments)||this;b.isRichGrid=!1;return b};
_.z(P8,_.g);P8.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]]"}}}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],P8.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],P8.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],P8.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],P8.prototype,"isRichGrid",void 0);_.V([_.Yx({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],P8);
_.k(P8,"ytd-grid-channel-renderer",function(){if(Mna!==void 0)return Mna;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return Mna=b},{mode:1});var nDW;var K1=function(){return _.g.apply(this,arguments)||this};
_.z(K1,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],K1.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],K1.prototype,"data",void 0);_.V([_.Yx({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],K1);
_.k(K1,"ytd-grid-movie-playlist-renderer",function(){if(nDW!==void 0)return nDW;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return nDW=b},{mode:1});var XYa;var Z0=function(){var b=_.g.apply(this,arguments)||this;b.downloadProgress=0;b.transferState="TRANSFER_STATE_UNKNOWN";b.modernButtons=_.r("web_modern_buttons");return b};
_.z(Z0,_.g);Z0.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
Z0.prototype.configureRendererStamper=function(){return{"data.menu":aQ}};
Z0.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
Z0.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.r("woffle_playlist_renderer_killswitch")){var b,h=Taf(this.entityInfo,this.transferState,this.downloadProgress,(b=this.data)==null?void 0:b.playlistId,this.isOnline);b=h.viewPlaylistText;var y=h.badges;h=h.thumbnailOverlays;this.isDownloads=!!b||!!y;this.set("data.viewPlaylistText",b);y&&y.length>0&&this.set("data.badges",y);h&&h.length>0&&this.set("data.thumbnailOverlays",
h)}};
_.tm.Object.defineProperties(Z0.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 b;return!((b=this.data)==null?0:b.menu)}}});
Z0.prototype.transferStateChanged=Z0.prototype.transferStateChanged;Z0.prototype.dataChanged=Z0.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Z0.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Wg),_.f("design:type",Object)],Z0.prototype,"ytdLockupBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],Z0.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Z0.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.C({selector:_.QDM,selectorArgs:["data.playlistId"]}),_.f("design:type",Object)],Z0.prototype,"downloadProgress",void 0);_.V([_.C({selector:_.TD,selectorArgs:["data.playlistId"]}),_.f("design:type",Object)],Z0.prototype,"transferState",void 0);_.V([_.C({selector:xbN,selectorArgs:["data.playlistId"]}),_.f("design:type",Object)],Z0.prototype,"entityInfo",void 0);_.V([_.C({selector:_.sn}),_.f("design:type",Boolean)],Z0.prototype,"isOnline",void 0);
_.V([_.C(),_.f("design:type",Object)],Z0.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],Z0.prototype,"downloadRenderData",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],Z0.prototype,"modernButtons",void 0);_.V([_.C({value:!1,reflectToAttribute:!0}),_.f("design:type",Boolean)],Z0.prototype,"isDownloads",void 0);_.V([_.W("transferState"),_.C({reflectToAttribute:!0}),_.f("design:type",String),_.f("design:paramtypes",[])],Z0.prototype,"downloadState",null);
_.V([_.W("data"),_.C({reflectToAttribute:!0}),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Z0.prototype,"menuHidden",null);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Z0.prototype,"dataChanged",null);_.V([_.zj("transferState","downloadProgress","isOnline"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Z0.prototype,"transferStateChanged",null);
_.V([_.Yx({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],Z0);
_.k(Z0,"ytd-grid-playlist-renderer",function(){if(XYa!==void 0)return XYa;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return XYa=b},{mode:1});var Hua;var oi=function(){return _.g.apply(this,arguments)||this};
_.z(oi,_.g);oi.prototype.configureRendererStamper=function(){return{"data.menu":aQ,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.tm.Object.defineProperties(oi.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var b,h,y,S,F,a;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(b=this.data)==null?void 0:(h=b.thumbnail)==null?void 0:h.sampledThumbnailColor,vibrantColorPalette:(y=this.data)==null?void 0:(S=y.thumbnail)==null?void 0:S.vibrantColorPalette,darkColorPalette:(F=this.data)==null?void 0:(a=F.thumbnail)==null?void 0:a.darkColorPalette,experimentEnabled:!0}}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],oi.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.rP),_.f("design:type",Object)],oi.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.B(_.Wg),_.f("design:type",Object)],oi.prototype,"ytdLockupBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],oi.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],oi.prototype,"data",void 0);
_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],oi.prototype,"collectionStack",null);_.V([_.Yx({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],oi);
_.k(oi,"ytd-grid-radio-renderer",function(){if(Hua!==void 0)return Hua;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return Hua=b},{mode:1});var u_M;var Mx=function(){return _.g.apply(this,arguments)||this};
_.z(Mx,_.g);Mx.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
Mx.prototype.computeNavigationEndpoint=function(b){return Ea4(b==null?void 0:b.navigationEndpoint)};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Mx.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Mx.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Wg),_.f("design:type",Object)],Mx.prototype,"ytdLockupBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Mx.prototype,"data",void 0);_.V([_.C({computed:"computeNavigationEndpoint(data)"}),_.f("design:type",Object)],Mx.prototype,"computedNavigationEndpoint",void 0);
_.V([_.Yx({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],Mx);
_.k(Mx,"ytd-grid-show-renderer",function(){if(u_M!==void 0)return u_M;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return u_M=b},{mode:1});var OuG;_.n1=function(b){this.playerClient=b};
_.NYW=function(b,h,y){y=y===void 0?{}:y;return b.playerClient.setOption("ad",h,y)};
_.n1.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.n1.prototype.executeCommand=function(b,h){this.getOptions().includes("executeCommand")?_.NYW(this,"executeCommand",{command:b,layoutId:h}):_.wC("Calling executeCommand when adModule is not loaded")};var XL=function(){return _.g.apply(this,arguments)||this};
_.z(XL,_.g);XL.prototype.getLayoutId=function(){var b=_.hj("yt.www.ads.eventcache.getLastCompanionData");return b?(b=b())&&b.layoutId:null};
XL.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var b=_.ye(),h=this.getLayoutId(),y=this.data.clickthroughEndpoint;b&&h&&_.r("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?b.getPlayerPromise().then(function(S){(new _.n1(S)).executeCommand(y,h)}):_.Sx(this.hostElement,"yt-navigate",{endpoint:y})}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],XL.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],XL.prototype,"data",void 0);_.V([_.Yx({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],XL);
_.k(XL,"ytd-shopping-companion-item-renderer",function(){if(OuG!==void 0)return OuG;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return OuG=b},{mode:1});var tnG;var H8=function(){var b=_.g.apply(this,arguments)||this;b.isExpandableContent=!1;return b};
_.z(H8,_.g);_.tm.Object.defineProperties(H8.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.data)==null||!b.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var b;return(b=this.data)==null?void 0:b.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.data)==null?void 0:b.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.data)==null?void 0:b.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var b;return(b=this.data)==null?void 0:b.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.data)==null||!b.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var b,h,y;return((b=this.data)==null?void 0:b.price)||((h=this.data)==null?void 0:(y=h.dealsData)==null?void 0:y.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var b,h;if((b=this.data)!=null&&b.dealsData&&((h=this.data)==null||!h.priceReplacementText)){b=this.data.dealsData;var y,S,F;return((y=b.salesData)==null?void 0:y.originalPrice)||((S=b.priceDropData)==null?void 0:S.referencePrice)||((F=b.promotionData)==null?void 0:F.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.data)==null||!b.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var b,h;return(b=this.data)==null?void 0:(h=b.dealsData)==null?void 0:h.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.data)==null?void 0:b.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.data)==null?void 0:b.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.data)==null?void 0:b.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],H8.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],H8.prototype,"componentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],H8.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],H8.prototype,"isExpandableContent",void 0);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],H8.prototype,"showCta",null);
_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],H8.prototype,"ctaText",null);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],H8.prototype,"hasPriceTopPosition",null);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],H8.prototype,"hasPriceBottomPosition",null);_.V([_.C({reflectToAttribute:!0}),_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],H8.prototype,"useNewStyle",null);
_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],H8.prototype,"showPriceReplacementText",null);_.V([_.C({reflectToAttribute:!0}),_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],H8.prototype,"priceValue",null);_.V([_.C({reflectToAttribute:!0}),_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],H8.prototype,"showDeal",null);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],H8.prototype,"showAffiliateDisclaimer",null);
_.V([_.C({reflectToAttribute:!0}),_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],H8.prototype,"useSaleStyle",null);_.V([_.C({reflectToAttribute:!0}),_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],H8.prototype,"useFromBrandCtaStyle",null);_.V([_.C({reflectToAttribute:!0}),_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],H8.prototype,"useFromVendorCtaStyle",null);
_.V([_.C({reflectToAttribute:!0}),_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],H8.prototype,"useShoppingCollectionCtaStyle",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],H8);
_.k(H8,"ytd-vertical-product-card-renderer",function(){if(tnG!==void 0)return tnG;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return tnG=b},{mode:1});var rAa;var ul=function(){return _.g.apply(this,arguments)||this};
_.z(ul,_.g);ul.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],ul.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],ul.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Wg),_.f("design:type",Object)],ul.prototype,"ytdLockupBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],ul.prototype,"data",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],ul);
_.k(ul,"ytd-grid-movie-renderer",function(){if(rAa!==void 0)return rAa;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return rAa=b},{mode:1});var cAe;var Oh=function(){var b=_.g.apply(this,arguments)||this;b.roundedFix=_.r("web_enable_merch_item_rounding_fix");b.itemStyle="small-item";return b};
_.z(Oh,_.g);Oh.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var b,h,y,S,F=(h=_.c((b=this.data)==null?void 0:b.buttonCommand,_.RH8))==null?void 0:(y=h.item)==null?void 0:(S=y.notificationTextRenderer)==null?void 0:S.successResponseText;F&&_.vtq(this.hostElement,F)}};
_.tm.Object.defineProperties(Oh.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.data)==null?void 0:b.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.data)==null||!b.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.data)==null?void 0:b.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.data)==null?void 0:b.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var b,h;return((b=this.data)==null?void 0:b.isProductPlaceholder)!==void 0&&((h=this.data)==null?void 0:h.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.data)==null?void 0:b.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}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Oh.prototype,"ytRendererBehavior",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Oh.prototype,"roundedFix",void 0);_.V([_.C(),_.f("design:type",Object)],Oh.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",String)],Oh.prototype,"itemStyle",void 0);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],Oh.prototype,"hasPrice",null);
_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],Oh.prototype,"hasPriceReplacementText",null);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],Oh.prototype,"hasAdditionalFeesText",null);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],Oh.prototype,"hasAffiliateDisclaimer",null);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],Oh.prototype,"isProductPlaceholder",null);
_.V([_.C(),_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],Oh.prototype,"hideOpenInNewIcon",null);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],Oh.prototype,"ariaLabel",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],Oh);
_.k(Oh,"ytd-merch-shelf-item-renderer",function(){if(cAe!==void 0)return cAe;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return cAe=b},{mode:1});_.yd(_.T(function(b){return _.M("button-card-view-model",{el:_.Qa(_.Ch(function(){return b.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return b.data().title},
role:"button"},_.M(_.Tv,{model:{}}),_.M("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.M("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.M(_.H,{cond:function(){return b.data().image},
then:function(h){return _.M(_.mI,{data:h,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.M("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return b.data().title})))},"bc"),"button-card-view-model",{props:{data:_.D4}});_.yd(_.T(function(b){b=_.h6(b,{className:void 0});var h=b.data;b=b.className;var y=_.s5(function(){return h().onTapCommand},void 0,"SXkP9e");
return _.M("ytd-shopping-item-card",{class:_.P2("ytdShoppingItemCardHost",b)},_.M(_.YN,{command:y,className:"ytdShoppingItemCardHostLink"},_.M("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.M(_.rC,{data:function(){return h().thumbnailViewModel}},{thumbnailViewModel:function(S){return _.M(_.kw,{data:S.data,
aspectRatio:3})}})),_.M("div",null,_.M("p",{class:"ytdShoppingItemCardHostItemTitle"},_.M(_.zv,{text:function(){return h().itemTitle}})),_.M("p",{class:"ytdShoppingItemCardHostPrice"},_.M(_.zv,{text:function(){return h().priceOrStatus}})))))},"cc"),"ytd-shopping-item-card",{props:{data:_.D4,
className:_.D4}});var RRG={isAdsVideo:!0},zRW={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},D0G={showPlayerControls:!1,videoPreviewDurationMs:15E3},IJe={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0},BYP={showPlayerControls:!0,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0,hideTimeDisplay:!0,hideCaptionsToggleButton:!0,hideScrubber:!0};var qn=null,b38={};var Sm8="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(" "),Nx={},Fa8=(Nx.FEwhat_to_watch="home",Nx.FEhashtag="hashtag",Nx.FEtrending="trending",Nx.FEhistory="history",Nx.SPunlimited="premium",Nx.FEmemberships_and_purchases="paid_memberships",Nx.SPredeem_code="redeem",Nx.SPverify_location="locate",Nx.SPminor_moment="minor_moment",
Nx.FEmini_app_container="mini_app",Nx.FEnews_destination="news",Nx.SPopen_in_app="open_in_app",Nx.FEexplore="explore",Nx.FEsubscriptions="subscriptions",Nx.FEsfv_audio_pivot="sfv_audio_pivot",Nx.FEplaylist_aggregation="playlist_aggregation",Nx);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");_.$p("init");var WNe=function(){},JA7=_.T(function(b){var h=b.data;
var y=b.inlineMetadata;var S=b.aspectRatio;var F=b.scrimStyle;var a=b.className;var P=b.useDefaultStyle;var K=b.titleStyle;var n=new WNe,X=_.r("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",u=_.s5(function(){return(P==null?0:P())?X==="SHORTS_LOCKUP_STYLE_SLIM":h().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"CIGaAf"),O=_.s5(function(){return _.bn(y)||u()||!1},void 0,"SEL6Qd"),N=function(){return(F==null?void 0:F())!==void 0?F==null?void 0:F():1},
t=_.s5(function(){return h().belowThumbnailMetadata||!O()},void 0,"KAqk1b");
b=_.r_({visibilityCallback:function(dI){var L4=h().onFirstVisible;dI&&L4&&_.Va(L4)},
showOption:{calledOnce:!0,state:"visible"}});var R=_.Qa(),I={},U=_.P2(function(){return u(),"shortsLockupViewModelHostThumbnailContainer"},(I.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.bn(S)===1},I.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.bn(S)===2},I.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.r("web_shorts_2_by_3_lockups_study")&&!_.r("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
I)),p=_.s5(function(){if(_.bn(S)===1)return 1;
_.bn(S);return 2},void 0,"Bg5Es"),e,E=function(){if(n){var dI;
(dI=e)==null||h_(dI);var L4;if(n.hostElement&&((L4=n.data)==null?0:L4.inlinePlayerData)){var Rq,Xn;dI=((Rq=n.data)==null?0:(Xn=Rq.inlinePlayerData)==null?0:Xn.enableAudioControl)?Object.assign({},BYP):Object.assign({},IJe);var Ny,gI;((Ny=n.data)==null?void 0:(gI=Ny.inlinePlayerData)==null?void 0:gI.maxPlaybackLengthSec)!==void 0&&(dI.videoPreviewDurationMs=n.data.inlinePlayerData.maxPlaybackLengthSec*1E3);e=Yr({mediaRenderer:n,lockupElement:n.hostElement,thumbnailElement:R.value,videoPreviewOpts:dI})}}};
_.Qi(function(){n&&(n.data=h(),E())},"wo9C7e");
var Y=_.s5(function(){return h().thumbnail},void 0,"haijYd");
I=_.s5(function(){return h().badge},void 0,"RpDeSe");
var w=_.s5(function(){return h().onTap},void 0,"hOfuOb"),x={},q={};
return _.M("ytm-shorts-lockup-view-model",{el:_.Qa(function(dI){n&&(n.hostElement=dI)},E,b),
class:_.P2("shortsLockupViewModelHost",a)},_.M(_.OW,null,_.M(_.YN,{command:w,className:_.P2("shortsLockupViewModelHostEndpoint",(x.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!t()},x),"reel-item-endpoint",""),
ariaHidden:function(){return!O()},
tabIndex:function(){return O()?0:-1}},_.M("div",{el:R,
class:_.P2("shortsLockupViewModelHostThumbnailParentContainer",(q.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!u()},q))},_.M(_.H,{cond:Y,
then:function(){return _.M("div",{class:U},_.M(_.mI,{data:function(){var dI;return(dI=Y==null?void 0:Y())!=null?dI:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.M(_.rC,{data:function(){return h().thumbnailViewModel}},{thumbnailViewModel:function(dI){return _.M(_.kw,{data:dI.data,
aspectRatio:function(){return p()},
disableRounding:function(){return u()}})}}),null),_.M(_.H,{cond:O,
then:function(){return _.M(AA5,{data:h,scrimStyle:N,useDefaultStyle:P,titleStyle:K})}}),_.M(_.rC,{data:I},{badgeViewModel:function(dI){return _.M(_.gE,{data:dI.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.M(_.H,{cond:function(){return O()&&h().menuOnTap},
then:function(){return _.M(U0b,{data:h,inlineMetadata:!0})}}),_.M(_.H,{cond:t,
then:function(){return _.M(pYb,{data:h,useDefaultStyle:P,inlineMetadata:O})}})))},"ec"),AA5=_.T(function(b){var h=b.data;
var y=b.scrimStyle;var S=b.useDefaultStyle;var F=b.titleStyle;var a=_.r("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",P=S&&_.r("web_hide_primary_text_for_pivot_panel"),K=_.s5(function(){return(S==null?0:S())?a==="SHORTS_LOCKUP_STYLE_SLIM":h().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"c5smEd");
b={};b=_.P2("shortsLockupViewModelHostInlineMetadata",(b.shortsLockupViewModelHostMetadataRounded=function(){return!K()},b.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(y==null?void 0:y())===3&&!_.r("enable_shorts_lockup_new_scrim")},b.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(y==null?void 0:y())===3&&_.r("enable_shorts_lockup_new_scrim")},b.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(y==null?void 0:y())===2||(y==null?void 0:
y())===4},b.shortsLockupViewModelHostShowOverPlayer=function(){return!0},b),"image-overlay-text");
var n={};return _.M("div",{class:b},_.M("h3",{class:_.P2("shortsLockupViewModelHostMetadataTitle",(n.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(y==null?void 0:y())===4},n.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return h().belowThumbnailMetadata},n.shortsLockupViewModelHostMetadataTitleMaxLines1=function(){return(F==null?void 0:F())===1},n.shortsLockupViewModelHostMetadataTitleMaxLines2=function(){return(F==null?void 0:F())===2},n)),
"aria-label":function(){return h().accessibilityText}},_.M(_.H,{cond:function(){var X;
return!((X=h().overlayMetadata)==null||!X.primaryText)&&!P},
then:function(){return _.M(_.zv,{text:function(){var X;return(X=h().overlayMetadata)==null?void 0:X.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.M(_.H,{cond:function(){var X;
return(X=h().overlayMetadata)==null?void 0:X.secondaryText},
then:function(){return _.M(eRb,{data:h,scrimStyle:y,className:void 0})}}))},"fc"),pYb=_.T(function(b){var h=b.data;
var y=b.useDefaultStyle;var S=b.inlineMetadata;var F=_.r("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",a=_.s5(function(){return(y==null?0:y())?F==="SHORTS_LOCKUP_STYLE_SLIM":h().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"hn3pLe"),P=_.Qa(),K;
b=_.Zv(function(t){if(_.ph(_.UF(t),P.value,["AVATAR-VIEW-MODEL"]))return!1;var R;(R=K)==null||R.click();return!1});
var n=_.s5(function(){return h().belowThumbnailMetadata||h().overlayMetadata},void 0,"GwezKf"),X=function(){return h().menuOnTap&&!S()},u=function(){var t;
return(t=n())==null?void 0:t.avatar},O={},N={};
return _.M("div",{class:_.P2(function(){return a()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(O.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!u()},O.shortsLockupViewModelHostOutsideMetadataHasMenu=X,O)),
"on:click":b,el:P,role:"presentation"},_.M(_.rC,{data:u},{avatarViewModel:function(t){return _.M(_.OX,{data:t.data,avatarButtonCustomClassName:"shortsLockupViewModelHostOutsideMetadataAvatar"})}}),_.M("div",null,_.M("h3",{class:_.P2("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(N.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var t,R;
return!((t=n())==null?0:(R=t.primaryText)==null?0:R.content)},N.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=S,N)),
role:"presentation"},_.M(_.YN,{ref:function(t){return void(K=t)},
command:function(){return h().onTap},
className:_.P2("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var t,R;return(t=n())==null?void 0:(R=t.primaryText)==null?void 0:R.content},
"aria-label":function(){return h().accessibilityText}},_.M(_.H,{cond:function(){var t;
return(t=n())==null?void 0:t.primaryText},
then:function(t){return _.M(_.zv,{text:t,noEndpoints:!0,noStyleRuns:!0})}}))),_.M(_.H,{cond:function(){var t;
return(t=n())==null?void 0:t.secondaryText},
then:function(t){return _.M("div",{class:_.P2("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.M(_.zv,{text:t,noStyleRuns:!0}))}})),_.M(_.H,{cond:X,
then:function(){return _.M(U0b,{data:h,inlineMetadata:!1})}}))},"gc"),eRb=_.T(function(b){var h=b.data;
var y=b.scrimStyle;b=b.className;var S={};return _.M("div",{class:_.P2((S.shortsLockupViewModelHostMetadataSubhead=function(){return(y==null?void 0:y())!==4},S.shortsLockupViewModelHostMetadataSubheadNew=_.r("enable_shorts_lockup_new_scrim"),S.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(y==null?void 0:y())===4},S),b),
"aria-hidden":"true"},_.M(_.zv,{text:function(){var F;return(F=h().overlayMetadata)==null?void 0:F.secondaryText},
noStyleRuns:!0}))},"hc"),U0b=_.T(function(b){var h=b.data;
var y=b.inlineMetadata;b={};b=_.P2((b.shortsLockupViewModelHostInlineMetadataMenu=function(){return y()},b.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!y()},b.shortsLockupViewModelHostShowOverPlayer=function(){return!0},b),"image-overlay-text");
return _.M("div",{class:b},_.M(_.V5,{data:function(){return{style:y()?"overlay":"mono",accessibilityLabel:h().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(S){S.preventDefault();S.stopPropagation();var F=_.GK({elementsCommand:h().menuOnTap,forceNewState:!0});if(F==null?0:F.onclick)F.onclick(S)}}},
iconName:"MORE_VERT"}))},"ic");var CIb=_.T(function(b){var h=b.data;var y=b.inlineMetadata;var S=b.aspectRatio;var F=b.scrimStyle;var a=b.className;var P=b.useDefaultStyle;b=_.s5(function(){var K=h().entityId;return K?K.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"r2ABGd");
return _.M("ytm-shorts-lockup-view-model-v2",{class:_.P2("shortsLockupViewModelHost",a)},_.M(_.qY,{contentId:b,aspectRatio:function(){return(S==null?void 0:S())===1?1:(S==null?void 0:S())===2?2:4}},function(){return _.M(JA7,{data:h,
inlineMetadata:y,aspectRatio:S,scrimStyle:F,className:a,useDefaultStyle:P})}))},"jc");_.yd(CIb,"ytm-shorts-lockup-view-model-v2",{props:{data:_.v3,inlineMetadata:_.v3,aspectRatio:_.v3,scrimStyle:_.v3,className:_.v3,useDefaultStyle:_.v3,titleStyle:_.v3}});var gDo=16/9*210,tC=function(){var b=_.g.apply(this,arguments)||this;b.isExpandableContent=!1;b.hideShelfHeader=!1;b.engagementPanel=!1;b.buttonClasses=["arrow"];b.isSearch=!1;b.disableScrollEventListener=!1;b.containsLockup=!1;b.overrideArrowPositionForProductCard=!1;b.overrideArrowPositionForShoppingItemCard=!1;b.overrideArrowPositionForReelItems=!1;b.overrideArrowPositionForGridMovie=!1;b.overrideArrowPositionToCenter=!1;b.isSearchPostShelf=!1;b.overrideArrowPositionForMixedShelf=!1;b.overrideArrowPositionForMixedShelfShortsOnly=
!1;b.hasBigThumbsReelItems=!1;b.shouldUseMixedListHeight=!1;b.shouldUseShortsListHeight=!1;b.gridVideoWidth=0;b.isSearchVodShelf=!1;b.disableWheelScroll=!1;b.sizing="COMPACT";b.shortsLockupAspectRatio=0;return b};
_.z(tC,_.g);_.d=tC.prototype;
_.d.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]]"}}}}};
_.d.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.r("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.d.computeInitialCountNumber=function(b){if(!b)return 6;var h=b.items.some(function(a){return!!a.topicRecommendationsChipRenderer}),y=b.items.some(function(a){return!!a.displayAdRenderer}),S=this.computeShouldListItemsHaveEqualHeight(b),F=b.items.some(function(a){return!!a.gridPlaylistRenderer});
b=b.items.some(function(a){return!!a.shoppingItemCardViewModel});
return h?9:y?8:F||S?10:b?7:6};
_.d.computeContainsPost=function(b){return!!b&&!!b.items&&b.items.some(function(h){return!!h.postRenderer})};
_.d.computeContainsLockup=function(){if(_.r("web_horizontal_list_lockup_arrow_killswitch"))return!1;var b,h;return(b=this.data)==null?void 0:(h=b.items)==null?void 0:h.some(function(y){return!!y.lockupViewModel})};
_.d.maybeUpdateLockupAspectRatio=function(){var b,h;if(this.computeContainsLockup()&&((b=this.data)==null?0:(h=b.items)==null?0:h.length)){var y;b=Izk((y=this.data.items[0].lockupViewModel)==null?void 0:y.contentType,this.data.force16By9ThumbnailAspectRatio);y=IMU(b);y=this.computeLockupWidth()/y;_.nZ(this.hostElement,{"--yt-horizontal-list-content-height":y+"px"})}};
_.d.computeOverrideArrowPositionForProductCard=function(b){if(this.isExpandableContent)return!1;var h;return!!(b==null?0:(h=b.items)==null?0:h.some(function(y){return!!y.verticalProductCardRenderer}))};
_.d.computeOverrideArrowPositionForShoppingItemCard=function(b){var h;return!!(b==null?0:(h=b.items)==null?0:h.some(function(y){return!!y.shoppingItemCardViewModel}))};
_.d.computeOverrideArrowPositionForReelItemRenderer=function(b){return this.containsReelItemRenderer(b)};
_.d.computeHasBigThumbsReelItems=function(b,h){return b&&this.containsReelItemRenderer(h)};
_.d.computeShouldListItemsHaveEqualHeight=function(b){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(b==null?void 0:b.itemSizeConstraint)};
_.d.computeShouldListItemsHaveShortsHeight=function(b){return this.computeShouldListItemsHaveEqualHeight(b)&&!this.containsGridVideoRenderer(b)};
_.d.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.d.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.d.containsReelItemRenderer=function(b){var h;return!!(b==null?0:(h=b.items)==null?0:h.some(function(y){return!(!y.reelItemRenderer&&!y.shortsLockupViewModel)}))};
_.d.containsGridVideoRenderer=function(b){var h;return!!(b==null?0:(h=b.items)==null?0:h.some(function(y){return!!y.gridVideoRenderer||!!y.lockupViewModel}))};
_.d.computeContainsGridMovieRenderer=function(b){var h;return!!(b==null?0:(h=b.items)==null?0:h.some(function(y){return!!y.gridMovieRenderer}))};
_.d.computeOverrideArrowPositionToCenter=function(b){return this.computeIsSearchPostShelf(b)};
_.d.computeIsSearchPostShelf=function(b){var h;return!!(b==null?0:(h=b.items)==null?0:h.some(function(y){var S,F;return((F=(S=y.postRenderer)==null?void 0:S.surface)!=null?F:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.d.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(b){var h;return!!(b==null?0:(h=b.items)==null?0:h.some(function(y){var S,F,a;return((a=(S=y.backgroundPromoRenderer)==null?void 0:(F=S.style)==null?void 0:F.value)!=null?a:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.d.computeIsSearchVodShelf=function(b,h){return b&&this.containsGridVideoRenderer(h)};
_.d.computeDisableWheelScroll=function(b,h){return this.computeIsSearchVodShelf(b,h)};
_.d.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.d.computeShortsLockupAspectRatio=function(){return 1};
_.d.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.nZ(this.hostElement,{"--ytd-reel-item-thumbnail-height":gDo+"px"})};
tC.prototype.dataChanged=tC.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],tC.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],tC.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.kd.YtdHorizontalListBehavior),_.f("design:type",Object)],tC.prototype,"ytdHorizontalListBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],tC.prototype,"data",void 0);
_.V([_.C(),_.f("design:type",Object)],tC.prototype,"isExpandableContent",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],tC.prototype,"hideShelfHeader",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],tC.prototype,"engagementPanel",void 0);_.V([_.C(),_.f("design:type",Array)],tC.prototype,"buttonClasses",void 0);_.V([_.C(),_.f("design:type",Object)],tC.prototype,"isSearch",void 0);
_.V([_.C(),_.f("design:type",Object)],tC.prototype,"disableScrollEventListener",void 0);_.V([_.C({computed:"computeInitialCountNumber(data)"}),_.f("design:type",Number)],tC.prototype,"initialCount",void 0);_.V([_.C({computed:"computeContainsPost(data)"}),_.f("design:type",Boolean)],tC.prototype,"supportComponentResize",void 0);_.V([_.C({computed:"computeContainsPost(data)"}),_.f("design:type",Boolean)],tC.prototype,"containsPost",void 0);
_.V([_.C({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.f("design:type",Object)],tC.prototype,"containsLockup",void 0);_.V([_.C({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.f("design:type",Boolean)],tC.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.V([_.C({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.f("design:type",Object)],tC.prototype,"overrideArrowPositionForProductCard",void 0);_.V([_.C({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.f("design:type",Object)],tC.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.V([_.C({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.f("design:type",Object)],tC.prototype,"overrideArrowPositionForReelItems",void 0);_.V([_.C({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.f("design:type",Object)],tC.prototype,"overrideArrowPositionForGridMovie",void 0);
_.V([_.C({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.f("design:type",Object)],tC.prototype,"overrideArrowPositionToCenter",void 0);_.V([_.C({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.f("design:type",Object)],tC.prototype,"isSearchPostShelf",void 0);_.V([_.C({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.f("design:type",Object)],tC.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.V([_.C({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.f("design:type",Object)],tC.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.V([_.C({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.f("design:type",Object)],tC.prototype,"hasBigThumbsReelItems",void 0);
_.V([_.C({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.f("design:type",Object)],tC.prototype,"shouldUseMixedListHeight",void 0);_.V([_.C({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.f("design:type",Object)],tC.prototype,"shouldUseShortsListHeight",void 0);_.V([_.C({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.f("design:type",Object)],tC.prototype,"gridVideoWidth",void 0);
_.V([_.C({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.f("design:type",Object)],tC.prototype,"isSearchVodShelf",void 0);_.V([_.C({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.f("design:type",Object)],tC.prototype,"disableWheelScroll",void 0);_.V([_.C({computed:"computeSizing(isSearch)"}),_.f("design:type",Object)],tC.prototype,"sizing",void 0);
_.V([_.C({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.f("design:type",Object)],tC.prototype,"shortsLockupAspectRatio",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],tC.prototype,"dataChanged",null);
_.k(tC,"yt-horizontal-list-renderer",function(){if(CP7===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);CP7=b}b=CP7;return b},{mode:1});var sS7=function(){this.subscriptions=new Map([["navigation-start",new Set],["navigation-end",new Set]])};
sS7.prototype.subscribe=function(b,h){var y=this.subscriptions.get(b);if(!y)return function(){};
y.add(h);return function(){y.delete(h)}};
sS7.prototype.unsubscribe=function(b,h){(b=this.subscriptions.get(b))&&b.delete(h)};
sS7.prototype.publish=function(b,h){h=h===void 0?{}:h;(b=this.subscriptions.get(b))&&b.forEach(function(y){y(h)})};var YZ8;var TY8=[10,12,14,16,18,20,24,28,32,36],GhP=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],rn=function(){var b=_.g.apply(this,arguments)||this;b.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";b.hideOverflow=!1;b.useRoboto=!1;b.fontClass="";b.overflown=!1;b.actionMap={"yt-window-resized":"resize"};return b};
_.z(rn,_.g);_.d=rn.prototype;
_.d.attached=function(){var b=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();_.Ob(this,function(){b.resize()});
if(!_.nF){var h,y,S;(h=document)==null||(y=h.fonts)==null||(S=y.ready)==null||S.then(function(){b.resize()})}};
_.d.dataChanged=function(){this.resize()};
_.d.guideIsExpandedChanged=function(){this.resize()};
_.d.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 b=this.getMaxNumLines(),h=this.getMinFont(),y=this.getMaxFont(),S=this.useRoboto?TY8:GhP;for(S=S.filter(function(a){return a<=y&&a>=h});S.length>1;){var F=Math.floor(S.length/2);
this.updateFontSize(S[F]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=b)S=S.slice(F,S.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>b)S=S.slice(0,F);else break}this.updateFontSize(S[S.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(b)}};
_.d.handleOverflow=function(b){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>b&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",b.toString()))};
_.d.updateFontSize=function(b){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+b;this.textNode.classList.add(this.fontClass)};
_.d.getMaxFont=function(){var b=this.useRoboto?TY8:GhP;b=b[b.length-1];return this.maxFontSize&&this.maxFontSize<=b?this.maxFontSize:b};
_.d.getMinFont=function(){var b=(this.useRoboto?TY8:GhP)[0];return this.minFontSize&&this.minFontSize>=b?this.minFontSize:b};
_.d.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.d.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.d.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.vi(this.text).split("\n").length-1:Infinity};
_.d.setParentConstraints=function(){this.maxWidth&&(this.containerNode.style.maxWidth=this.maxWidth+"px");this.maxHeight&&(this.containerNode.style.maxHeight=this.maxHeight+"px");if(this.fontWeight){if(this.useRoboto&&this.fontWeight!==400&&this.fontWeight!==500)throw Error("Kh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
rn.prototype.guideIsExpandedChanged=rn.prototype.guideIsExpandedChanged;rn.prototype.dataChanged=rn.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],rn.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],rn.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],rn.prototype,"actionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],rn.prototype,"text",void 0);
_.V([_.C(),_.f("design:type",String)],rn.prototype,"fontFamily",void 0);_.V([_.C(),_.f("design:type",Number)],rn.prototype,"maxWidth",void 0);_.V([_.C(),_.f("design:type",Number)],rn.prototype,"maxHeight",void 0);_.V([_.C(),_.f("design:type",Number)],rn.prototype,"maxFontSize",void 0);_.V([_.C(),_.f("design:type",Number)],rn.prototype,"minFontSize",void 0);_.V([_.C(),_.f("design:type",Number)],rn.prototype,"maxLines",void 0);_.V([_.C(),_.f("design:type",Object)],rn.prototype,"hideOverflow",void 0);
_.V([_.C({selector:_.sDY}),_.f("design:type",Boolean)],rn.prototype,"guideIsExpanded",void 0);_.V([_.to("#container"),_.f("design:type",HTMLElement)],rn.prototype,"containerNode",void 0);_.V([_.to("#text"),_.f("design:type",HTMLElement)],rn.prototype,"textNode",void 0);_.V([_.zj("text"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],rn.prototype,"dataChanged",null);
_.V([_.zj("guideIsExpanded"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],rn.prototype,"guideIsExpandedChanged",null);_.V([_.Yx({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],rn);
_.k(rn,"yt-dynamic-sizing-formatted-string",function(){if(YZ8!==void 0)return YZ8;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return YZ8=b},{mode:1});var kh5;_.VnP=function(b){_.bf.call(this,b)};
_.z(_.VnP,_.bf);var EDW=function(b){_.bf.call(this,b)};
_.z(EDW,_.VnP);var c8=function(){return _.g.apply(this,arguments)||this};
_.z(c8,_.g);c8.prototype.onTapSuspendedChannel=function(){var b;if((b=this.data)!=null&&b.serviceEndpoint){var h,y;(b=(y=_.c((h=this.data)==null?void 0:h.serviceEndpoint,_.jH))==null?void 0:y.url)?_.GM(b,void 0,void 0,window.top):(h=new EDW("Did not handle suspended account tap. No appealUrl."),_.QT(h))}else h=new EDW("Did not handle suspended account tap. No serviceEndpoint."),_.QT(h)};
c8.prototype.onTap=function(){var b=this,h=_.rU(),y,S=(y=_.NJ(h,{veType:7116}))!=null?y:void 0;_.Vd(h,{visualElement:S});_.Yg();this.saveRoleText();var F;if((F=this.data)==null?0:F.youtubeSuspended)this.onTapSuspendedChannel();else{var a=!1,P,K;(h=(K=_.c((P=this.data)==null?void 0:P.serviceEndpoint,_.e47))==null?void 0:K.supportedTokens)&&h.forEach(function(n){if(n.accountSigninToken)if(a=!0,b.onAccountItemTap)b.onAccountItemTap(n.accountSigninToken.signinUrl);else _.GM(n.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!a){if(P=this.get("serviceEndpoint",this.data))a=!0,this.ytComponentBehavior.resolveCommand(P);a||_.mm(new EDW("Did not handle account switch tap. No token."))}}};
c8.prototype.saveRoleText=function(){if(this.data){var b=this.data,h=b.channelDelegationRole;if(h){var y,S=(y=_.c(b==null?void 0:b.serviceEndpoint,_.e47))==null?void 0:y.supportedTokens;if(!S){var F,a,P,K;S=(F=_.c(b==null?void 0:b.serviceEndpoint,_.yG))==null?void 0:(a=F.popup)==null?void 0:(P=a.confirmDialogRenderer)==null?void 0:(K=P.confirmButton)==null?void 0:K.buttonRenderer;var n;S=(n=_.c(S==null?void 0:S.command,_.LI))==null?void 0:n.commands;if(!S)return;var X;S=(X=_.c(S[1],_.e47))==null?
void 0:X.supportedTokens}if(S){n=void 0;X=_.L(S);for(S=X.next();!S.done;S=X.next())if(S=S.value,S.datasyncIdToken){n=S.datasyncIdToken.datasyncIdToken;break}if(n){var u;a:{if(_.QQY()&&(X=_.fn(n+"::pom"))){X=new y5(X);break a}X=void 0}(u=X)==null||u.set("role_text",h);if((Plk?Plk:window.location).href.indexOf("studio")!==-1&&(u=mYj())){X=u.src?(new URL(u.src)).origin:"*";var O;(O=u.contentWindow)==null||O.postMessage({action:"save_pom_role",datasyncId:n,roleText:h},X)}}}}}};
_.tm.Object.defineProperties(c8.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.data)==null||!b.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var b,h,y=(b=this.data)==null?void 0:(h=b.accountPhoto)==null?void 0:h.thumbnails;return y&&y.length>0&&(y[0].height===36||y[0].height===48)?y[0].height:40}}});
c8.prototype.onTap=c8.prototype.onTap;_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],c8.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],c8.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],c8.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!1}),_.f("design:type",Function)],c8.prototype,"onAccountItemTap",void 0);
_.V([_.C({reflectToAttribute:!0}),_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],c8.prototype,"enableRingForActiveAccount",null);_.V([_.C({reflectToAttribute:!0}),_.W("data"),_.f("design:type",Number),_.f("design:paramtypes",[])],c8.prototype,"thumbnailSize",null);_.V([_.u3("tap"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],c8.prototype,"onTap",null);_.V([_.Yx({is:"ytd-account-item-renderer",disableElementRegistration:!0})],c8);
_.k(c8,"ytd-account-item-renderer",function(){if(kh5!==void 0)return kh5;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return kh5=b},{mode:1});var iua;var Ri=function(){return _.g.apply(this,arguments)||this};
_.z(Ri,_.g);Ri.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.H9().resolve(_.OM).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Ri.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Ri.prototype,"data",void 0);_.V([_.Yx({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],Ri);
_.k(Ri,"ytd-identity-chip-renderer",function(){if(iua!==void 0)return iua;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return iua=b},{mode:1});var fJe;var wYb;var lJW;var qZM;var zd=function(){var b=_.g.apply(this,arguments)||this;b.richItemMinWidth=_.tj("wn_grid_min_item_width",310);b.isShorts=!1;b.isWatchNext=!1;b.isExploreHub=!1;return b};
_.z(zd,_.g);_.tm.Object.defineProperties(zd.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var b=[],h=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.nZ(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var y;if(((y=this.data)==null?0:y.rows)&&h)for(h*=this.data.rows,y=0;y<h;y++)b.push({});return b}}});
_.V([_.B(_.NT),_.f("design:type",Object)],zd.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],zd.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],zd.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,selector:_.e7,value:3}),_.f("design:type",Number)],zd.prototype,"itemsPerRow",void 0);_.V([_.C({selector:_.gNI,value:6}),_.f("design:type",Number)],zd.prototype,"slimItemsPerRow",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Number)],zd.prototype,"richItemMinWidth",void 0);_.V([_.C({reflectToAttribute:!0,selector:_.Jt}),_.f("design:type",Boolean)],zd.prototype,"miniMode",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],zd.prototype,"isShorts",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],zd.prototype,"isWatchNext",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],zd.prototype,"isExploreHub",void 0);
_.V([_.W("isExploreHub"),_.C({reflectToAttribute:!0}),_.f("design:type",Object),_.f("design:paramtypes",[])],zd.prototype,"shimmerAnimation",null);_.V([_.W("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.f("design:type",Array),_.f("design:paramtypes",[])],zd.prototype,"cardItems",null);_.V([_.Yx({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],zd);
_.x0N=_.$S()(zd,"ytd-ghost-grid-renderer",function(){if(qZM===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);qZM=b}b=qZM;return b},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.yd(_.T(function(b){var h=_.h6(b,{numberOfComments:3}).numberOfComments,y=_.h6(b,{isInitialLoad:!1}).isInitialLoad,S=_.h6(b,{engagementPanel:!1}).engagementPanel,F=function(){return Math.min(Number(h==null?void 0:h())||20,20)};
return _.M("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.M(_.H,{cond:function(){return!(S==null?0:S())&&(y==null?void 0:y())},
then:function(){return _.M("div",{class:"ytGhostCommentsComments"},_.M("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.M("div",{class:_.P2("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.M("div",{class:_.P2("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.M("div",{class:"ytGhostCommentsGhostCard"},_.M("div",{class:"ytGhostCommentsAvatar"},_.M("div",{class:"ytGhostCommentsCircle"})),_.M("div",{class:"ytGhostCommentsComments"},_.M("div",{class:"ytGhostCommentsMeta"},
_.M("div",{class:_.P2("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.M("div",{class:_.P2("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.M("div",{class:"ytGhostCommentsComments"},_.M(_.Gw,{each:function(){return Array((F==null?void 0:F())||3)}},function(){return _.M("div",{class:"ytGhostCommentsGhostCard"},_.M("div",{class:"ytGhostCommentsAvatar"},_.M("div",{class:"ytGhostCommentsCircle"})),_.M("div",{class:"ytGhostCommentsHost"},_.M("div",{class:"ytGhostCommentsMeta"},
_.M("div",{class:_.P2("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.M("div",{class:_.P2("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.M("div",{class:_.P2("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.M("div",{class:"ytGhostCommentsGhostLikeDislike"},_.M("div",{class:_.P2("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.M("div",{class:_.P2("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"kc"),"yt-ghost-comments",{props:{numberOfComments:_.D4,
isInitialLoad:_.D4,engagementPanel:_.D4},unsafeExternallySettableAttributes:new Set(["hidden"])});_.W2("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var D0=function(){var b=_.g.apply(this,arguments)||this;b.isOverridable=!1;b.spinnerActive=!1;b.showButton=!1;b.isCommentsSection=!1;b.engagementPanel=!0;b.isShortsGrid=!1;b.isShortsPage=!1;b.isWatchPage=!1;b.originalShowButton=!1;b.endOfList=!1;return b};
_.z(D0,_.g);_.d=D0.prototype;_.d.resetIntersectionObserver=function(){var b;(b=this.observer)==null||b.disconnect();this.observer=void 0};
_.d.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var b,h;((b=this.data)==null?void 0:b.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((h=this.data)==null?0:h.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.d.initializeIntersectionObserver=function(){var b=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(h){h=_.L(h);for(var y=h.next();!y.done;y=h.next())y.value.isIntersecting&&(b.triggerContinuation(),b.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.d.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},showGhostCardComments:{id:"ghost-comment-section",mapping:{ghostCommentsSectionRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.d.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var b;((b=this.data)==null?0:b.continuationEndpoint)&&(b=_.c(this.data.continuationEndpoint,_.sk))&&this.ytdReduxBehavior.dispatch(_.$8({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:b}}))};
_.d.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.d.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.d.onServiceRequestCompleted=function(b,h){if(!_.r("kevlar_hide_spinner_on_empty_continuation_killswitch")){var y;(y=h.actions)!=null&&y.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.d.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.d.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.d.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.d.numberOfGhostCommentsChanged=function(){var b=3;if(this.engagementPanel){var h,y,S;b=Math.floor(((((h=this.hostElement)==null?void 0:(y=h.parentElement)==null?void 0:(S=y.parentElement)==null?void 0:S.scrollHeight)||108)-108)/108);b=this.isInitialLoad?Math.max(b,3):3}h=[].concat(_.f$(this.hostElement.querySelectorAll("yt-ghost-comments")));h=_.L(h);for(y=h.next();!y.done;y=h.next())y=y.value,y.numberOfComments=b,y.isInitialLoad=this.isInitialLoad,y.engagementPanel=this.engagementPanel};
_.d.detached=function(){this.resetIntersectionObserver()};
_.tm.Object.defineProperties(D0.prototype,{showGhostCardComments:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton?{ghostCommentsSectionRenderer:!0}:!1}}});
D0.prototype.numberOfGhostCommentsChanged=D0.prototype.numberOfGhostCommentsChanged;D0.prototype.continuationTriggerOffsetChanged=D0.prototype.continuationTriggerOffsetChanged;D0.prototype.showButtonChanged=D0.prototype.showButtonChanged;D0.prototype.onYtServiceRequestCompletedForButtonRenderer=D0.prototype.onYtServiceRequestCompletedForButtonRenderer;D0.prototype.onServiceRequestCompleted=D0.prototype.onServiceRequestCompleted;D0.prototype.onYtServiceRequestSentForButtonRenderer=D0.prototype.onYtServiceRequestSentForButtonRenderer;
D0.prototype.observeData=D0.prototype.observeData;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],D0.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],D0.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.tJ.YtVisibilityBehavior),_.f("design:type",Object)],D0.prototype,"ytVisibilityBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],D0.prototype,"ytComponentBehavior",void 0);
_.V([_.B(_.NT),_.f("design:type",Object)],D0.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],D0.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],D0.prototype,"isOverridable",void 0);_.V([_.C(),_.f("design:type",Object)],D0.prototype,"spinnerActive",void 0);_.V([_.C(),_.f("design:type",Object)],D0.prototype,"showButton",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],D0.prototype,"isCommentsSection",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],D0.prototype,"engagementPanel",void 0);_.V([_.C(),_.f("design:type",Object)],D0.prototype,"isShortsGrid",void 0);_.V([_.C({reflectToAttribute:!0,selector:_.Gv5}),_.f("design:type",Object)],D0.prototype,"isShortsPage",void 0);_.V([_.C({reflectToAttribute:!0,selector:_.TcY}),_.f("design:type",Object)],D0.prototype,"isWatchPage",void 0);_.V([_.C(),_.f("design:type",Number)],D0.prototype,"continuationTriggerOffset",void 0);
_.V([_.C(),_.f("design:type",Object)],D0.prototype,"endOfList",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],D0.prototype,"isInitialLoad",void 0);_.V([_.to("ytd-button-renderer"),_.f("design:type",_.Gu)],D0.prototype,"buttonRenderer",void 0);_.V([_.C(),_.f("design:type",Object)],D0.prototype,"buttonOverrides",void 0);
_.V([_.C(),_.W("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.f("design:type",Object),_.f("design:paramtypes",[])],D0.prototype,"showGhostCardComments",null);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],D0.prototype,"observeData",null);
_.V([_.u3("yt-service-request-sent-button-renderer"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],D0.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.V([_.u3("yt-service-request-completed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,_.xE]),_.f("design:returntype")],D0.prototype,"onServiceRequestCompleted",null);
_.V([_.u3("yt-service-request-completed-button-renderer"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],D0.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.V([_.zj("showButton"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],D0.prototype,"showButtonChanged",null);
_.V([_.zj("continuationTriggerOffset"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],D0.prototype,"continuationTriggerOffsetChanged",null);_.V([_.OB("isInitialLoad","engagementPanel"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],D0.prototype,"numberOfGhostCommentsChanged",null);_.V([_.Yx({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],D0);
_.k(D0,"ytd-continuation-item-renderer",function(){if(lJW!==void 0)return lJW;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return lJW=b},{mode:1});var QSo;var Ii=function(){var b=_.g.apply(this,arguments)||this;b.downloadProgress=0;b.transferState="TRANSFER_STATE_UNKNOWN";b.downloadState="DOWNLOAD_STATE_UNKNOWN";b.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";b.offlineVideoPolicyExpirationTimestamp=0;b.downloadedVideoPlaybackPosition=0;return b};
_.z(Ii,_.g);Ii.prototype.dataChanged=function(){var b;this.videoData=_.c((b=this.data)==null?void 0:b.renderer,Ze7);this.transferStateChanged()};
Ii.prototype.downloadProgressChanged=function(){if(this.entityInfo){var b=Object.assign({},this.videoData),h=GuF(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),y=h.publishedTimeText,S=h.badges;b.shortViewCountText=h.shortViewCountText;b.publishedTimeText=y;b.badges=S;this.set("videoData",b)}};
Ii.prototype.transferStateChanged=function(){if(this.entityInfo){var b=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",h=_.ci(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!rR(this.entityInfo.policyEntity),y=Object.assign({},this.videoData),S=GuF(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),F=S.publishedTimeText,a=S.badges;y.shortViewCountText=
S.shortViewCountText;y.publishedTimeText=F;y.badges=a;y.isDisabled=h;y.isWatched=this.downloadedVideoPlaybackPosition>0;y.navigationEndpoint=h?void 0:kcn(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var P;b&&((P=this.videoData)==null?0:P.videoId)&&!_.r("dl_resume_click_killswitch")&&(y.isDisabled=!1,y.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});y.thumbnailOverlays=YtI(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",y)}};
Ii.prototype.transferStateChanged=Ii.prototype.transferStateChanged;Ii.prototype.downloadProgressChanged=Ii.prototype.downloadProgressChanged;Ii.prototype.dataChanged=Ii.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Ii.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],Ii.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Ii.prototype,"data",void 0);
_.V([_.C(),_.f("design:type",Object)],Ii.prototype,"videoData",void 0);_.V([_.C({selector:GD,selectorArgs:["videoData.videoId"]}),_.f("design:type",Object)],Ii.prototype,"downloadProgress",void 0);_.V([_.C(),_.f("design:type",Number)],Ii.prototype,"relativeDateReference",void 0);_.V([_.C({selector:_.Y8,selectorArgs:["videoData.videoId"]}),_.f("design:type",Object)],Ii.prototype,"transferState",void 0);
_.V([_.C({selector:j$f,selectorArgs:["videoData.videoId"]}),_.f("design:type",Object)],Ii.prototype,"downloadState",void 0);_.V([_.C({selector:f4U,selectorArgs:["videoData.videoId"]}),_.f("design:type",Object)],Ii.prototype,"offlinePolicyAction",void 0);_.V([_.C({selector:wj8,selectorArgs:["videoData.videoId"]}),_.f("design:type",Object)],Ii.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.V([_.C({selector:k8,selectorArgs:["videoData.videoId"]}),_.f("design:type",Object)],Ii.prototype,"downloadedVideoPlaybackPosition",void 0);_.V([_.C({selector:qG5,selectorArgs:["videoData.videoId"]}),_.f("design:type",Object)],Ii.prototype,"entityInfo",void 0);_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],Ii.prototype,"isDownloading",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Ii.prototype,"dataChanged",null);
_.V([_.zj("downloadProgress"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Ii.prototype,"downloadProgressChanged",null);_.V([_.zj("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Ii.prototype,"transferStateChanged",null);
_.V([_.Yx({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],Ii);
_.k(Ii,"ytd-downloaded-video-grid-video-renderer",function(){if(QSo!==void 0)return QSo;var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return QSo=b},{mode:_.Lt("kevlar_poly_si_batch_j025")?1:2});var m0w;var B8=function(){};
B8.prototype.resolve=function(b,h){var y=this;return _.Z(function(S){return S.yield(y.resolveCommand(b,h),0)})};var vD8,W8;vD8=d6I(function(b){return b.targetId},{shouldPersist:!1});
W8=vD8.updateData;_.bS5=vD8.useUpdatableData;var hPW,yGN;hPW=d6I(function(b){return b.targetId});
yGN=hPW.updateData;_.Sia=hPW.useUpdatableData;var FFP=jjf.bind(null,W8),acN=jjf.bind(null,yGN);(function(b,h,y){var S=_.c(y==null?void 0:y.updatedRenderer,_.kvw);return S?b({targetId:h},function(){return S}):!1}).bind(null,W8);var AC=function(){};
_.z(AC,B8);AC.prototype.resolveCommand=function(b){var h;return _.Z(function(y){h=_.c(b,_.Hy5);if(!h)return y.return();FFP(h.targetId,h);_.g3(y)})};var Uh=function(){var b=_.cl.apply(this,arguments)||this;b.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return b};
_.z(Uh,_.cl);_.d=Uh.prototype;_.d.configureContinuationPathMap=function(){return{}};
_.d.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.d.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.d.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.d.observeData=function(){this.data&&(this.continuationIsReloading=!1,this.reloadUiContent=void 0)};
_.d.handleAppendContinuationItemsAction=function(b){var h=_.c(b,_.JDe);if(this.data&&this.data.targetId&&h&&this.continuationPathMap&&h.targetId===this.data.targetId){var y=XCM(b),S=y&&this.continuationPathMap[y];if(S&&y)if(b=this.get(S,this.data)){a:{for(y=0;y<b.length;y++){var F=b[y],a=void 0,P=!!_.c((a=_.c(F,N5N))==null?void 0:a.content,_.$1N);if(_.c(F,_.yp)||P)break a}y=b.length}S="data."+S;h.continuationItems?y===b.length-1?(this.pop(S),this.push.apply(this,[S].concat(_.f$(h.continuationItems)))):
y===b.length?this.push.apply(this,[S].concat(_.f$(h.continuationItems))):this.splice.apply(this,[S,y,1].concat(_.f$(h.continuationItems))):this.splice(S,y,1);(_.r("web_enable_voting_animation")||_.r("enable_music_web_cairo_voting_animation"))&&_.Sx(this.hostElement,"yt-append-continuation-items-action-finished");_.Sx(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.vX(new _.Gn("append continuation items does not exist",y));else _.vX(new _.Gn("append continuation path does not exist",
y))}};
_.d.handleReloadContinuationItemsCommand=function(b){var h=_.c(b,_.Hy5);if(this.data&&h){if(!_.r("web_reload_continuation_items_command_resolver_killswitch")){var y=_.H9().resolve(_.XS(AC));y&&y.resolveCommand(b)}if(this.data.targetId&&this.continuationPathMap&&h.targetId===this.data.targetId&&(!_.r("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||h.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var S;y=(S=h.slot)==null?void 0:S.replace("RELOAD_CONTINUATION_SLOT_",
"");S=(b=XCM(b)+"-"+(y==null?void 0:y.toLowerCase()))&&this.continuationPathMap[b];if(!S||!b||!y)_.vX(new _.Gn("reload continuation path does not exist",b));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(h)){if(h.replaceWithFirstItem){var F;this.set("data."+S,((F=h.continuationItems)==null?0:F.length)?h.continuationItems[0]:{})}else this.set("data."+S,h.continuationItems?h.continuationItems:[]);this.continuationIsReloading=!1;this.reloadUiContent=void 0;
_.Sx(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.d.handleShowReloadUiCommand=function(b){b=_.c(b,qY5);var h;((h=this.data)==null?0:h.targetId)&&(b==null?0:b.targetId)&&b.targetId===this.data.targetId&&(this.continuationIsReloading=!0,b.content&&(this.reloadUiContent=b.content))};
Uh.prototype.observeData=Uh.prototype.observeData;_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],Uh.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],Uh.prototype,"componentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Uh.prototype,"data",void 0);_.V([_.C({value:!1,reflectToAttribute:!0}),_.f("design:type",Boolean)],Uh.prototype,"continuationIsReloading",void 0);
_.V([_.C(),_.f("design:type",Object)],Uh.prototype,"reloadUiContent",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Uh.prototype,"observeData",null);_.V([_.Rc()],Uh);_.p1=[_.ug.YtComponentBehavior,_.mx.YtActionHandlerBehavior,Uh.prototype];_.JC={};_.JC.YtNextContinuationBehavior=[_.UG.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",_.Hl(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.Hl(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(b,h){b.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,h,{}):(b={locationRetrieved:function(y){this.makeNextContinuationRequest_(y,h,{})}.bind(this)},_.Sx(this.hostElement,"yt-retrieve-location",b))},
makeNextContinuationRequest_:function(b,h,y){_.JL("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();b=h(b);var S;this.canUseContextualNetworkManager_()&&(S=this.getNetworkManager());S||(S=_.H9().resolve(_.zM));h=_.Ek.instance;if(_.QC("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&h){S=_.yk([b.startsWith("/")?b.substr(1):b]);var F,a;y=_.cy(h,{},S,y==null?void 0:(F=y.context)==null?void 0:(a=F.clickTracking)==null?void 0:a.clickTrackingParams).then(function(P){return{response:P}})}else y=
this.nextContinuation.usePost?S.postData(b,y):S.fetchData(b);
y.then(this.updateNextContinuationData_.bind(this,b));this.pendingContinuationRequest_=y;this.startListeningForNavigate_()},
updateNextContinuationData_:function(b,h){var y=this;_.JL("ncl");this.pendingContinuationRequest_=void 0;if(h){var S={};this.nextContinuation&&(S=this.nextContinuation);if(h.response&&h.response.continuationContents&&h.response.continuationContents[S.continuationType]){b=h.response.continuationContents[S.continuationType];var F=S.header||"data.header",a=b[S.responseHeaderKey||"header"];a&&this.set(F,a);F=S.contentsArray||"data.contents";a=this.getContents_(b,S.responseContentsKey||"contents")||[];
this.pathExists_(F)?(a.unshift(F),this.push.apply(this,a)):this.set(F,a);a&&($vr(_.rU(),h.response,this.hostElement,function(P){_.F8(y.hostElement,"yt-store-grafted-ve-action",[P])}),_.Sx(this.hostElement,"yt-next-continuation-data-updated",{continuationData:h,
page:this,contentsArray:F}));this.set(S.continuationsArray||"data.continuations",b[S.responseContinuationsKey||"continuations"]||[])}else h.reload?_.vX(new _.Gn("Reloading from continuation is unsupported")):h.responseContext&&h.responseContext.errors||(delete h.xsrf_token,delete h.timing,delete h.endpoint,delete h.csn,h.responseContext&&delete h.responseContext.serviceTrackingParams,F={request:_.Ln(b,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(h).sort()},h.response&&(F.responseContentKeys=
Object.keys(h.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(F.continuationType=this.nextContinuation.continuationType.substr(0,256)),h=new _.Gn("Malformed continuation",F),b.indexOf("/comment_service_ajax")==0?_.vX(h):_.QT(h)),this.set(S.continuationsArray||"data.continuations",[])}else _.mm(new _.Gn("Missing continuation response",b))},
getContents_:function(b,h){h=h.split(".");return _.lR.getValueByKeys(b,h)},
pathExists_:function(b){var h=this;b=b.toString().split(".");for(var y=0;y<b.length;y++)if(h=h[b[y]],h===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var dRW;var jIW;var ei=function(){var b=_.g.apply(this,arguments)||this;b.triggered_=!1;return b};
_.z(ei,_.g);_.d=ei.prototype;_.d.attached=function(){this.maybeTriggerAutoload()};
_.d.detached=function(){this.hasBeenTriggered_=!1};
_.d.onPrescanVisible=function(){this.onShow()};
_.d.onShow=function(){this.showButton||this.trigger()};
_.d.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.Sx(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.d.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.d.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.d.computeLabel_=function(b,h){return b===void 0?null:b.label||!h?b.label:this.showMoreText_};
_.d.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.d.getContinuationUrl=function(b){var h={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(h.itct=this.data.clickTrackingParams);return _.P9(b,h)};
_.d.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
ei.prototype.showButtonChanged_=ei.prototype.showButtonChanged_;ei.prototype.observeData_=ei.prototype.observeData_;_.V([_.B(_.tJ.YtVisibilityBehavior),_.f("design:type",Object)],ei.prototype,"ytVisibilityBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],ei.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],ei.prototype,"data",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],ei.prototype,"showButton",void 0);
_.V([_.C({value:!1}),_.f("design:type",Boolean)],ei.prototype,"showIcon",void 0);_.V([_.C({computed:"computeLabel_(data, showButton)"}),_.f("design:type",Object)],ei.prototype,"label",void 0);_.V([_.C({value:_.mk(_.Mt("SHOW_MORE",void 0,"Show More"))}),_.f("design:type",Object)],ei.prototype,"showMoreText_",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],ei.prototype,"spinnerActive_",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],ei.prototype,"hasBeenTriggered_",void 0);
_.V([_.C({value:void 0}),_.f("design:type",String)],ei.prototype,"observeVisibleOption",void 0);_.V([_.C({value:void 0}),_.f("design:type",String)],ei.prototype,"observeHiddenOption",void 0);_.V([_.C({value:"observe_once"}),_.f("design:type",Object)],ei.prototype,"observePrescanOption",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],ei.prototype,"observeData_",null);
_.V([_.OB("showButton"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],ei.prototype,"showButtonChanged_",null);_.V([_.sB({is:"yt-next-continuation",disableElementRegistration:!0})],ei);
_.k(ei,"yt-next-continuation",function(){if(jIW===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;dRW===void 0&&(dRW=document.createElement("template"));var S=dRW;y.call(h,S.content.cloneNode(!0),b.content.firstChild);jIW=b}b=jIW;return b},{mode:2});var $R8;var LFP;var C1=function(){return _.g.apply(this,arguments)||this};
_.z(C1,_.g);C1.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],C1.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],C1.prototype,"data",void 0);_.V([_.sB({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],C1);
_.k(C1,"yt-music-pass-small-feature-info-renderer",function(){if(LFP===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;$R8===void 0&&($R8=document.createElement("template"));var S=$R8;y.call(h,S.content.cloneNode(!0),b.content.firstChild);LFP=b}b=LFP;return b},{mode:2});_.W2("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var gn=function(){var b=_.g.apply(this,arguments)||this;b.isCollapsible=!1;b.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return b};
_.z(gn,_.g);_.d=gn.prototype;_.d.computeIsCollapsible=function(b){return!!(((b==null?0:b.showMoreText)||(b==null?0:b.visibleRowCount))&&(b==null?0:b.isCollapsible))};
_.d.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"}}}};
_.d.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.d.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.d.onIronResize=function(){var b=this;_.wy(this,"updateGridInitItems",function(){b.maybeUpdateInitialItemsDisplayed()})};
_.d.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var b=this.getVisibleWidth();b!==0&&(b=Math.floor(b/214)*(this.data.visibleRowCount||2),b!==this.initialCount&&(this.initialCount=b,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.d.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.d.computeExpandVisible=function(b,h,y,S){return b&&h&&y&&!!S&&!!S.showMoreText};
_.d.computeShowMoreButton=function(b){return{text:b,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.d.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.d.initCollapsed=function(){var b=this;this.ytLazyListBehavior.canShowMore=!1;var h;(this.collapsed=!((h=this.data)==null||!h.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.Ob(this,function(){_.aw(b.hostElement,"yt-refit-popups-action")})};
_.d.fillRestIfNotCollapsible=function(){var b=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!b||this.ytLazyListBehavior.fillRemainingListItems()};
_.d.computeViewAllHidden=function(b,h){return b||!h.viewAllEndpoint};
gn.prototype.fillRestIfNotCollapsible=gn.prototype.fillRestIfNotCollapsible;gn.prototype.initCollapsed=gn.prototype.initCollapsed;gn.prototype.onIronResize=gn.prototype.onIronResize;gn.prototype.persistentGuideChanged=gn.prototype.persistentGuideChanged;_.V([_.B(_.ab),_.f("design:type",Object)],gn.prototype,"ironResizableBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],gn.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],gn.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.GO.YtLazyListBehavior),_.f("design:type",Object)],gn.prototype,"ytLazyListBehavior",void 0);_.V([_.B(_.JC.YtNextContinuationBehavior),_.f("design:type",Object)],gn.prototype,"ytNextContinuationBehavior",void 0);_.V([_.B(_.DV.YtdGuideStateAwareBehavior),_.f("design:type",Object)],gn.prototype,"ytdGuideStateAwareBehavior",void 0);
_.V([_.B(_.p1),_.f("design:type",Object)],gn.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],gn.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Boolean)],gn.prototype,"collapsed",void 0);_.V([_.C(),_.f("design:type",Number)],gn.prototype,"initialCount",void 0);_.V([_.C({computed:"computeShowMoreButton(data.showMoreText)"}),_.f("design:type",Object)],gn.prototype,"showMoreButton",void 0);
_.V([_.C({computed:"computeIsCollapsible(data)"}),_.f("design:type",Object)],gn.prototype,"isCollapsible",void 0);_.V([_.to("#items"),_.f("design:type",HTMLElement)],gn.prototype,"items",void 0);_.V([_.zj("guidePersistentAndVisible"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],gn.prototype,"persistentGuideChanged",null);_.V([_.u3("iron-resize"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],gn.prototype,"onIronResize",null);
_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],gn.prototype,"initCollapsed",null);_.V([_.zj("canShowMore"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],gn.prototype,"fillRestIfNotCollapsible",null);_.V([_.Yx({is:"ytd-grid-renderer",disableElementRegistration:!0})],gn);
_.k(gn,"ytd-grid-renderer",function(){if(m0w!==void 0)return m0w;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return m0w=b},{mode:_.Lt("kevlar_poly_si_batch_j025")?1:2});var sh=function(){return _.g.apply(this,arguments)||this};
_.z(sh,_.g);
sh.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"}}}};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],sh.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],sh.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],sh.prototype,"data",void 0);_.V([_.Yx({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],sh);
_.k(sh,"ytd-carousel-ad-renderer",function(){if(wYb!==void 0)return wYb;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return wYb=b},{mode:1});var PB5;var YI=function(){return _.g.apply(this,arguments)||this};
_.z(YI,_.g);_.d=YI.prototype;_.d.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"}}}};
_.d.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,YI.JSC$15694_CLICK_LOCATION_ID_MAP))};
_.d.onSitelinkTap=function(b){b.stopPropagation();var h,y,S=b==null?void 0:(h=b.model)==null?void 0:(y=h.item)==null?void 0:y.onTap;S&&this.ytSparklesClickLocationBehavior.handleClick(S,b,!1)};
_.d.onTap=function(b){var h=this.data&&this.data.content&&this.data.content.navigationEndpoint;h&&this.ytSparklesClickLocationBehavior.handleClick(h,b,!1)};
_.d.sendImpression=function(){if(this.data&&this.data.content)for(var b=_.L(this.data.content.impressionEndpoints||[]),h=b.next();!h.done;h=b.next()){h=_.L(h.value.loggingUrls||[]);for(var y=h.next();!y.done;y=h.next())y=y.value,y.baseUrl&&LK(y.baseUrl,y.attributionSrcMode)}};
YI.prototype.onTap=YI.prototype.onTap;YI.prototype.dataChanged=YI.prototype.dataChanged;YI.JSC$15694_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"]]);
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],YI.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],YI.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.TO.YtSparklesClickLocationBehavior),_.f("design:type",Object)],YI.prototype,"ytSparklesClickLocationBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],YI.prototype,"data",void 0);
_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],YI.prototype,"dataChanged",null);_.V([_.u3("tap"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],YI.prototype,"onTap",null);_.V([_.Yx({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],YI);
_.k(YI,"ytd-promoted-sparkles-text-search-renderer",function(){if(PB5!==void 0)return PB5;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return PB5=b},{mode:1});var KFG;var Td=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-mute-ad-action":"handleMuteAd"};return b};
_.z(Td,_.g);_.d=Td.prototype;_.d.created=function(){this.activeView=new ff(this.hostElement)};
_.d.configureRendererStamper=function(){return{"data.menu":{id:_.r("fix_alignment_search_desktop_text_image_ads_small_screens")?"menu":"old-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{verticallyAligned:!0}}}},"data.mediaBadge":{id:"media-badge-search",
mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},"data.adBadge":{id:"ad-badge-new",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"}}}}}};
_.d.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.d.computeHasAdBadge=function(b){return!(b==null||!b.adBadge)};
_.d.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",Td.JSC$15703_DEFAULT_AD_BADGE_RENDERER),_.Zm(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&wP(this.activeView,this.data.activeView),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,Td.JSC$15703_CLICK_LOCATION_ID_MAP))};
_.d.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var b;(((b=this.data)==null?void 0:b.impressionCommands)||[]).forEach(function(h){h=_.L(h.loggingUrls||[]);for(var y=h.next();!y.done;y=h.next())y=y.value,y.baseUrl&&LK(y.baseUrl,y.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.d.onTap=function(b){var h,y=(h=this.data)==null?void 0:h.navigationEndpoint,S;(h=(S=this.data)==null?void 0:S.thumbnailNavigationEndpoint)&&_.v2(_.Qk(b),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(h,b,!1):y&&this.ytSparklesClickLocationBehavior.handleClick(y,b,!1)};
_.d.handleMuteAd=function(){this.collapsed=!0};
_.d.attached=function(){var b=this;_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&lw(b.activeView)})};
_.d.detached=function(){_.r("stop_av_measurement_on_detach")&&lw(this.activeView)};
_.tm.Object.defineProperties(Td.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.data)==null?void 0:b.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var b;return!(((b=this.data)==null?void 0:b.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var b;return!(((b=this.data)==null?void 0:b.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.data)==null?void 0:b.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}}});
Td.prototype.dataChanged=Td.prototype.dataChanged;
Td.JSC$15703_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"]]);
Td.JSC$15703_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Mt("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Td.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Td.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],Td.prototype,"actionHandlerBehavior",void 0);
_.V([_.B(_.TO.YtSparklesClickLocationBehavior),_.f("design:type",Object)],Td.prototype,"ytSparklesClickLocationBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Td.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],Td.prototype,"collapsed",void 0);_.V([_.C({reflectToAttribute:!0,value:function(){return _.r("enable_desktop_search_bigger_thumbs")}}),
_.f("design:type",Boolean)],Td.prototype,"useBiggerThumbs",void 0);_.V([_.C({reflectToAttribute:!0,value:function(){return _.rH("desktop_search_bigger_thumbs_style")}}),
_.f("design:type",String)],Td.prototype,"biggerThumbsStyle",void 0);_.V([_.C({reflectToAttribute:!0,value:function(){return _.r("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.f("design:type",Boolean)],Td.prototype,"fixAlignmentSmallScreens",void 0);_.V([_.C({reflectToAttribute:!0,value:function(){return _.r("enable_desktop_search_bigger_thumbs_square")}}),
_.f("design:type",Boolean)],Td.prototype,"useBiggerThumbsSquare",void 0);_.V([_.C({reflectToAttribute:!0}),_.W("data.mediaHoverOverlay"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Td.prototype,"hideHoverOverlay",null);_.V([_.C({reflectToAttribute:!0}),_.W("data.promotedSparklesWebStyle"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Td.prototype,"webSearchLayout",null);
_.V([_.C({reflectToAttribute:!0}),_.W("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Td.prototype,"webSearchLayoutLandscape",null);_.V([_.C({reflectToAttribute:!0}),_.W("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Td.prototype,"webSearchLayoutSquare",null);
_.V([_.C({reflectToAttribute:!0}),_.W("data.promotedSparklesWebStyle"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Td.prototype,"sparklesCtaNoBackground",null);_.V([_.C({reflectToAttribute:!0}),_.W("data.actionButton"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Td.prototype,"hideActionButton",null);_.V([_.C({computed:"computeButtonOverride(uiUpdate)"}),_.f("design:type",Object)],Td.prototype,"buttonOverride",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.f("design:type",Boolean)],Td.prototype,"hasNewAdBadge",void 0);_.V([_.W("data.promotedSparklesWebStyle"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Td.prototype,"useRoundedBadge",null);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Td.prototype,"dataChanged",null);_.V([_.Yx({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],Td);
_.k(Td,"ytd-promoted-sparkles-web-renderer",function(){if(KFG!==void 0)return KFG;var b=document.createElement("template");_.D(b,'\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>');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return KFG=b},{mode:1});var ZSa;var Gd=function(){var b=_.g.apply(this,arguments)||this;b.isInlinePreviewTriggered=!1;b.enableMonoStyle=_.r("enable_default_mono_cta_migration_web_client");return b};
_.z(Gd,_.g);_.d=Gd.prototype;_.d.created=function(){this.activeView=new ff(this.hostElement)};
_.d.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]]"}}}}}};
_.d.computeShowCta=function(b){return!(b==null||!b.ctaRenderer)};
_.d.onCtaClick=function(){var b,h,y,S=(b=this.data)==null?void 0:(h=b.ctaRenderer)==null?void 0:(y=h.buttonRenderer)==null?void 0:y.command;S&&this.ytComponentBehavior.resolveCommand(S)};
_.d.onWatchButtonClick=function(){var b,h,y,S=(b=this.data)==null?void 0:(h=b.watchButtonRenderer)==null?void 0:(y=h.buttonRenderer)==null?void 0:y.command;S&&this.ytComponentBehavior.resolveCommand(S)};
_.d.onTap=function(){};
_.d.dataChanged=function(){if(this.data){var b;_.r("enable_inline_muted_playback_on_web_search")&&((b=this.data)==null?0:b.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",Gd.JSC$15707_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&wP(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",Gd.JSC$15707_DEFAULT_CLICK_LOCATION_BEHAVIOR,Gd.JSC$15707_CLICK_LOCATION_ID_MAP);this.thumbnail&&
(b=this.thumbnail.getElementsByTagName("a"),b.length>0&&(b=b.namedItem("thumbnail"))&&b.removeAttribute("href"));var h;if(((h=this.data)==null?0:h.forceImpAutoplay)&&_.r("enable_force_imp_autoplay_on_desktop_search")){var y;(y=this.JSC$15708_inlinePreviewHoverListener)==null||vKk(y)}}};
_.d.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var b=_.L(this.data.impressionUrls),h=b.next();!h.done;h=b.next())h=h.value,hkU(h,SQ8(h));this.data.impressionsFired=!0}};
_.d.maybeComputeHref=function(){return null};
_.d.computeIsShortDR=function(b){return!(b==null||!b.watchButtonRenderer)&&!(b==null||!b.ctaRenderer)&&!!this.enableShortDR};
_.d.computeIsNewUiOrShortDr=function(b){return!!this.enableUiUpdate||this.computeIsShortDR(b)};
_.d.computeIsNewUiAndNotShortDr=function(b){return!!this.enableUiUpdate&&!this.computeIsShortDR(b)};
_.d.computeHideAvatar=function(b){return!((b==null?0:b.channelThumbnail)&&this.computeIsNewUiOrShortDr(b))};
_.d.onClick=function(b){var h,y=(h=this.data)==null?void 0:h.navigationEndpoint;if(this.enableShortDR&&y&&(_.c(y,_.wO)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(y,b,!!_.c(y,_.wO)),b.stopPropagation();else if(y&&_.c(y,_.wO))this.ytSparklesClickLocationBehavior.handleClick(y,b,!0),b.stopPropagation();else if(y){var S,F;((S=this.data)==null?0:S.navigationEndpoint)&&((F=this.data)==null?0:F.adPlaybackContextParams)&&(h=this.data.navigationEndpoint,b=this.data.adPlaybackContextParams,
h.commandMetadata&&_.c(h.commandMetadata,_.ZW)&&_.c(h.commandMetadata,_.ZW).url&&(h=_.dH(_.c(h.commandMetadata,_.ZW).url).adurl)&&_.Fyn(h)&&_.QB(_.kj(h),{encoded_ad_playback_context:b}));this.ytComponentBehavior.resolveCommand(y)}};
_.d.computeButtonOverride=function(b){if(this.computeIsNewUiOrShortDr(b))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.d.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.d.onThumbnailContainerClick=function(b){this.onClick(b)};
_.d.computeThumbnailWidth=function(b,h){return b?h==="MASSIVE"?600:h==="BIG"?500:h==="MEDIUM"?450:420:360};
_.d.attached=function(){var b=this,h;_.r("enable_inline_muted_playback_on_web_search")&&((h=this.data)==null?0:h.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&lw(b.activeView)})};
_.d.detached=function(){var b;_.r("enable_inline_muted_playback_on_web_search")&&((b=this.data)==null?0:b.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.r("stop_av_measurement_on_detach")&&lw(this.activeView)};
_.d.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15708_inlinePreviewHoverListener=Yr({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:RRG})};
_.d.clearInlinePreviewHoverListeners=function(){var b;(b=this.JSC$15708_inlinePreviewHoverListener)==null||h_(b)};
Gd.prototype.dataChanged=Gd.prototype.dataChanged;Gd.prototype.onTap=Gd.prototype.onTap;Gd.JSC$15707_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Mt("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};Gd.JSC$15707_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
Gd.JSC$15707_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"}];_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Gd.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Gd.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],Gd.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.TO.YtSparklesClickLocationBehavior),_.f("design:type",Object)],Gd.prototype,"ytSparklesClickLocationBehavior",void 0);_.V([_.to("#main-container"),_.f("design:type",HTMLElement)],Gd.prototype,"mainContainer",void 0);
_.V([_.C(),_.f("design:type",Object)],Gd.prototype,"isInlinePreviewTriggered",void 0);_.V([_.C(),_.f("design:type",Object)],Gd.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,value:function(){return _.r("enable_desktop_search_bigger_thumbs")}}),
_.f("design:type",Boolean)],Gd.prototype,"useBiggerThumbs",void 0);_.V([_.C({reflectToAttribute:!0,value:function(){return _.r("enable_video_display_compact_button_group_for_desktop_search")}}),
_.f("design:type",Boolean)],Gd.prototype,"enableShortDR",void 0);_.V([_.C({reflectToAttribute:!0,value:function(){return _.r("enable_vac_ui_update_for_desktop_search")}}),
_.f("design:type",Boolean)],Gd.prototype,"enableUiUpdate",void 0);_.V([_.C({reflectToAttribute:!0,value:function(){return _.rH("desktop_search_bigger_thumbs_style")}}),
_.f("design:type",String)],Gd.prototype,"biggerThumbsStyle",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.f("design:type",Boolean)],Gd.prototype,"showCta",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.f("design:type",Boolean)],Gd.prototype,"isShortDr",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.f("design:type",Boolean)],Gd.prototype,"isShortDrOrNewUi",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.f("design:type",Boolean)],Gd.prototype,"isNewUiAndNotShortDr",void 0);_.V([_.C({computed:"computeButtonOverride(data)"}),_.f("design:type",Object)],Gd.prototype,"buttonOverride",void 0);_.V([_.C({computed:"computeSecondaryButtonOverride(data)"}),_.f("design:type",Object)],Gd.prototype,"secondaryButtonOverride",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Gd.prototype,"enableMonoStyle",void 0);
_.V([_.to("ytd-thumbnail"),_.f("design:type",HTMLElement)],Gd.prototype,"thumbnail",void 0);_.V([_.u3("tap"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Gd.prototype,"onTap",null);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Gd.prototype,"dataChanged",null);_.V([_.Yx({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],Gd);
_.k(Gd,"ytd-promoted-video-renderer",function(){if(ZSa!==void 0)return ZSa;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return ZSa=b},{mode:1});var oQW;var kI=function(){var b=_.g.apply(this,arguments)||this;b.useRoundedBadge=!0;b.sitelinkIds=[];return b};
_.z(kI,_.g);_.d=kI.prototype;
_.d.configureRendererStamper=function(){return{"data.menu":{id:_.r("enable_text_ad_web_thumbnail_scaling_fix")?"new-menu":"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{verticallyAligned:!0}}}},"data.mediaBadge":{id:"media-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},
"data.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"}}}}}};
_.d.dataChanged=function(){var b;(b=this.data)!=null&&b.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,kI.JSC$15713_CLICK_LOCATION_ID_MAP)};
_.d.onTap=function(b){var h,y=(h=this.data)==null?void 0:h.navigationCommand;y&&!_.v2(_.Qk(b),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(y,b,!1)};
_.d.onSitelinkTap=function(b){var h,y,S=b==null?void 0:(h=b.model)==null?void 0:(y=h.item)==null?void 0:y.onTap;S&&this.ytSparklesClickLocationBehavior.handleClick(S,b,!1)};
_.d.configureSitelinkClickTargets=function(){var b=this,h,y,S=(h=this.data)==null?void 0:(y=h.clickLocationTargets)==null?void 0:y.find(function(F){return F.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
S&&_.$x(this.hostElement).querySelectorAll(".sitelink").forEach(function(F){_.Zm(F,"yt-simple-endpoint",!0);b.sitelinkIds.push(F.id);var a,P;(a=b.ytSparklesClickLocationBehavior)==null||(P=a.clickTargetMap)==null||P.set(F.id,S)})};
_.d.sendImpression=function(){var b,h,y=((b=this.data)==null?void 0:(h=b.impressionCommand)==null?void 0:h.loggingUrls)||[];b=_.L(y);for(h=b.next();!h.done;h=b.next())h=h.value,h.baseUrl&&LK(h.baseUrl,h.attributionSrcMode)};
_.d.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.tm.Object.defineProperties(kI.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
kI.prototype.onTap=kI.prototype.onTap;kI.prototype.dataChanged=kI.prototype.dataChanged;kI.JSC$15713_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"]]);
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],kI.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],kI.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.TO.YtSparklesClickLocationBehavior),_.f("design:type",Object)],kI.prototype,"ytSparklesClickLocationBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],kI.prototype,"data",void 0);
_.V([_.C({reflectToAttribute:!0}),_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],kI.prototype,"showFavicon",null);_.V([_.C({reflectToAttribute:!0,value:function(){return _.r("enable_desktop_search_bigger_thumbs")}}),
_.f("design:type",Boolean)],kI.prototype,"useBiggerThumbs",void 0);_.V([_.C({reflectToAttribute:!0,value:function(){return _.rH("desktop_search_bigger_thumbs_style")}}),
_.f("design:type",String)],kI.prototype,"biggerThumbsStyle",void 0);_.V([_.C({reflectToAttribute:!0,value:function(){return _.r("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.f("design:type",Boolean)],kI.prototype,"enableThumbnailScalingFix",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],kI.prototype,"dataChanged",null);_.V([_.u3("tap"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],kI.prototype,"onTap",null);_.V([_.Yx({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],kI);
_.k(kI,"ytd-text-image-no-button-layout-renderer",function(){if(oQW!==void 0)return oQW;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return oQW=b},{mode:_.Lt("kevlar_poly_si_batch_j028")?1:2});var MOP;var VP=function(){var b=_.g.apply(this,arguments)||this;b.isInlinePlaybackState=!1;b.uiUpdate=_.r("web_modern_buttons");b.hideCta=_.r("hide_cta_for_home_web_video_ads");b.noBottomMargin=!1;b.animateInTimeStamp=_.tj("hide_cta_for_home_web_video_ads_animate_in_time");b.animateInCta=!1;b.isHovered=!1;b.enableMonoStyle=_.r("enable_default_mono_cta_migration_web_client");b.player=null;b.JSC$15720_playerEvents=new Map;b.JSC$15720_preventProgressSaveTimer=null;b.delayedCtaJobId=null;return b};
_.z(VP,_.g);_.d=VP.prototype;_.d.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]]"}}}}}};
_.d.attached=function(){this.JSC$15720_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15720_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.r("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.d.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15720_playerEvents)};
_.d.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",VP.JSC$15719_DEFAULT_CLICK_LOCATION_BEHAVIOR,VP.JSC$15719_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.d.hoverChanged=function(){var b=this;this.delayedCtaJobId&&(_.xP.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.r("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.I7(_.xP,function(){b.buttonContainer.classList.add("show-delayed-buttons")},_.tj("delayed_cta_on_web_delay_milliseconds")))};
_.d.setPlayer=function(){var b=this,h;return _.Z(function(y){if(y.nextAddress==1)return(h=_.aw(b.hostElement,"yt-get-inline-preview-player-action"))&&h[0]?y.yield(h[0].getPlayerPromise(),3):y.jumpTo(0);b.player=y.yieldResult;b.ytPlayerListenerBehavior.listenToPlayerEvents(b.player,b.JSC$15720_playerEvents);_.g3(y)})};
_.d.onPlaybackStart=function(){var b=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15720_preventProgressSaveTimer=_.js(_.xP,function(){b.JSC$15720_preventProgressSaveTimer=null},1E4))};
_.d.onVideoProgress=function(b){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&b>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.d.resetPreventProgressSaveTimer=function(){_.xP.cancelJob(this.JSC$15720_preventProgressSaveTimer);this.JSC$15720_preventProgressSaveTimer=null};
_.d.getSimpleString=function(b){return _.vi(b)};
_.d.onClick=function(b){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var h,y=(h=this.data)==null?void 0:h.navigationEndpoint,S;h=(S=this.data)==null?void 0:S.channelEndpoint;var F,a;((a=_.c((F=this.data)==null?void 0:F.adCtaButton,_.OU))==null?0:a.command)&&_.v2(_.Qk(b),this.hostElement,["call-to-action"])||(h&&_.v2(_.Qk(b),this.hostElement,["channel-thumbnail-container","short-byline-text"])?this.ytSparklesClickLocationBehavior.handleClick(h,b,!1):!_.v2(_.Qk(b),this.hostElement,
["secondary-button"])&&y&&(_.r("enable_short_dr_for_desktop_launchable")?(S=!!_.c(y,_.wO),this.isInlinePlaybackState&&S&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(y,b,S)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(y,b,!0))))}};
_.d.updateWatchEndpointStartTime=function(){var b,h;this.player&&((b=this.data)==null?0:b.inlinePlaybackEndpoint)&&((h=this.data)==null?0:h.navigationEndpoint)&&!this.JSC$15720_preventProgressSaveTimer&&(b=Math.floor(this.player.getCurrentTime()),_.c(this.data.navigationEndpoint,_.wO).startTimeSeconds=b,_.c(this.data.inlinePlaybackEndpoint,_.wO).startTimeSeconds=b)};
_.d.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.d.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.tm.Object.defineProperties(VP.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.r("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var b,h;return!((b=this.data)==null||!b.watchButton)&&!((h=this.data)==null||!h.adCtaButton)}}});
VP.prototype.hoverChanged=VP.prototype.hoverChanged;VP.prototype.dataChanged=VP.prototype.dataChanged;
VP.JSC$15719_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"]]);
VP.JSC$15719_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"}];
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],VP.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],VP.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],VP.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.TO.YtSparklesClickLocationBehavior),_.f("design:type",Object)],VP.prototype,"ytSparklesClickLocationBehavior",void 0);
_.V([_.B(_.UA.YtPlayerListenerBehavior),_.f("design:type",_.pf)],VP.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],VP.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],VP.prototype,"isInlinePlaybackState",void 0);_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],VP.prototype,"miniMode",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],VP.prototype,"uiUpdate",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],VP.prototype,"hideCta",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],VP.prototype,"noBottomMargin",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],VP.prototype,"animateInCta",void 0);_.V([_.C({computed:"computeButtonOverride(uiUpdate)"}),_.f("design:type",Object)],VP.prototype,"buttonOverride",void 0);
_.V([_.C({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.f("design:type",Object)],VP.prototype,"secondaryButtonOverride",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],VP.prototype,"isHovered",void 0);_.V([_.to("#button-container"),_.f("design:type",HTMLElement)],VP.prototype,"buttonContainer",void 0);_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],VP.prototype,"typographyBump",void 0);
_.V([_.C({reflectToAttribute:!0}),_.W("typographyBump"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],VP.prototype,"typographyBumpV2",null);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],VP.prototype,"enableMonoStyle",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],VP.prototype,"dataChanged",null);
_.V([_.OB("isHovered"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],VP.prototype,"hoverChanged",null);_.V([_.W("data"),_.C({reflectToAttribute:!0}),_.f("design:type",Boolean),_.f("design:paramtypes",[])],VP.prototype,"isButtonGroup",null);_.V([_.Yx({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],VP);
_.k(VP,"ytd-ad-inline-playback-meta-block",function(){if(MOP!==void 0)return MOP;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return MOP=b},{mode:_.Lt("kevlar_poly_si_batch_j065")?1:2});var nQ7;var Eh=function(){var b=_.g.apply(this,arguments)||this;b.noBottomMargin=!1;b.isInlinePreviewTriggered=!1;b.JSC$15725_activeViewMeasurementDataResolver=_.wS();return b};
_.z(Eh,_.g);_.d=Eh.prototype;_.d.created=function(){this.activeView=new ff(this.hostElement)};
_.d.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.d.attached=function(){var b=this;this.updateInlinePreviewHoverListeners();this.JSC$15725_activeViewMeasurementDataResolver.promise.then(function(h){wP(b.activeView,h)});
_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&lw(b.activeView)})};
_.d.detached=function(){this.clearInlinePreviewHoverListeners();_.r("stop_av_measurement_on_detach")&&lw(this.activeView)};
_.d.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15725_inlinePreviewHoverListener=Yr({mediaRenderer:this,lockupElement:this.JSC$15725_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:RRG})};
_.d.clearInlinePreviewHoverListeners=function(){var b;(b=this.JSC$15725_inlinePreviewHoverListener)==null||h_(b)};
_.d.onDataChanged=function(){var b;((b=this.data)==null?0:b.activeView)&&this.JSC$15725_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",Eh.JSC$15724_DEFAULT_CLICK_LOCATION_BEHAVIOR,Eh.JSC$15724_CLICK_LOCATION_ID_MAP);this.thumbnail&&(b=this.thumbnail.getElementsByTagName("a"),b.length>0&&(b=b.namedItem("thumbnail"))&&b.removeAttribute("href"));var h;if((h=this.data)==
null?0:h.forceImpAutoplay){var y;(y=this.JSC$15725_inlinePreviewHoverListener)==null||vKk(y)}};
_.d.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.d.onThumbnailContainerClick=function(b){if(this.data&&this.data.navigationEndpoint){var h,y=(h=this.data)==null?void 0:h.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(y,b,!!_.c(y,_.wO));b.stopPropagation()}};
_.d.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.d.impressionLog=function(){var b=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var h,y,S=(y=_.c((h=this.data)==null?void 0:h.onImpression,_.LI))==null?void 0:y.commands;S&&(S.forEach(function(F){F.clickTrackingParams&&delete F.clickTrackingParams;b.ytComponentBehavior.resolveCommand(F)}),this.data.impressionsFired=!0)}};
_.tm.Object.defineProperties(Eh.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.JSC$15725_inlinePreviewHoverListener)==null?0:RQ(b))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Eh.prototype.onTypographyBumpChanged=Eh.prototype.onTypographyBumpChanged;Eh.prototype.onDataChanged=Eh.prototype.onDataChanged;Eh.JSC$15724_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);Eh.JSC$15724_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"}];
_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],Eh.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Eh.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Eh.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.rP),_.f("design:type",Object)],Eh.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.B(_.Wg),_.f("design:type",Object)],Eh.prototype,"ytdLockupBehavior",void 0);
_.V([_.B(_.NT),_.f("design:type",Object)],Eh.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.TO.YtSparklesClickLocationBehavior),_.f("design:type",Object)],Eh.prototype,"ytSparklesClickLocationBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Eh.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],Eh.prototype,"noBottomMargin",void 0);_.V([_.C(),_.f("design:type",Object)],Eh.prototype,"isInlinePreviewTriggered",void 0);
_.V([_.C({reflectToAttribute:!0,selector:_.Jt}),_.f("design:type",Boolean)],Eh.prototype,"miniMode",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],Eh.prototype,"typographyBump",void 0);_.V([_.to("ytd-thumbnail"),_.f("design:type",HTMLElement)],Eh.prototype,"thumbnail",void 0);_.V([_.to("#dismissible"),_.f("design:type",HTMLElement)],Eh.prototype,"JSC$15725_dismissibleMedia",void 0);
_.V([_.to("ytd-ad-inline-playback-meta-block"),_.f("design:type",HTMLElement)],Eh.prototype,"adInlinePlaybackMetaBlock",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Eh.prototype,"onDataChanged",null);_.V([_.zj("typographyBump"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Eh.prototype,"onTypographyBumpChanged",null);
_.V([_.W("lockupIsHovered"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Eh.prototype,"isHovered",null);_.V([_.Yx({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],Eh);
_.k(Eh,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(nQ7!==void 0)return nQ7;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return nQ7=b},{mode:1});var XOa;var il=function(){var b=_.g.apply(this,arguments)||this;b.isInlinePreviewTriggered=!1;b.JSC$15728_activeViewMeasurementDataResolver=_.wS();return b};
_.z(il,_.g);_.d=il.prototype;_.d.created=function(){this.activeView=new ff(this.hostElement)};
_.d.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.d.attached=function(){var b=this;this.updateInlinePreviewHoverListeners();this.JSC$15728_activeViewMeasurementDataResolver.promise.then(function(h){wP(b.activeView,h)})};
_.d.detached=function(){this.clearInlinePreviewHoverListeners()};
_.d.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15728_inlinePreviewHoverListener=Yr({mediaRenderer:this,lockupElement:this.JSC$15728_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:RRG})};
_.d.clearInlinePreviewHoverListeners=function(){var b;(b=this.JSC$15728_inlinePreviewHoverListener)==null||h_(b)};
_.d.onDataChanged=function(){var b;((b=this.data)==null?0:b.activeView)&&this.JSC$15728_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",il.JSC$15727_DEFAULT_CLICK_LOCATION_BEHAVIOR,il.JSC$15727_CLICK_LOCATION_ID_MAP);this.thumbnail&&(b=this.thumbnail.getElementsByTagName("a"),b.length>0&&(b=b.namedItem("thumbnail"))&&b.removeAttribute("href"))};
_.d.onThumbnailContainerClick=function(b){if(this.data&&this.data.navigationEndpoint){var h,y=(h=this.data)==null?void 0:h.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(y,b,!0);b.stopPropagation()}};
_.d.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.d.impressionLog=function(){var b=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var h,y,S=(y=_.c((h=this.data)==null?void 0:h.onImpression,_.LI))==null?void 0:y.commands;S&&(S.forEach(function(F){F.clickTrackingParams&&delete F.clickTrackingParams;_.H9().resolve(_.OM).resolveCommand(F,{form:{element:b.hostElement}})}),this.data.impressionsFired=!0)}};
_.tm.Object.defineProperties(il.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.JSC$15728_inlinePreviewHoverListener)==null?0:RQ(b))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
il.prototype.onDataChanged=il.prototype.onDataChanged;il.JSC$15727_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);il.JSC$15727_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"}];_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],il.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],il.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.rP),_.f("design:type",Object)],il.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.B(_.Wg),_.f("design:type",Object)],il.prototype,"ytdLockupBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],il.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.TO.YtSparklesClickLocationBehavior),_.f("design:type",Object)],il.prototype,"ytSparklesClickLocationBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],il.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],il.prototype,"isInlinePreviewTriggered",void 0);_.V([_.C({reflectToAttribute:!0,selector:_.Jt}),_.f("design:type",Boolean)],il.prototype,"miniMode",void 0);_.V([_.to("ytd-thumbnail"),_.f("design:type",HTMLElement)],il.prototype,"thumbnail",void 0);_.V([_.to("#dismissible"),_.f("design:type",HTMLElement)],il.prototype,"JSC$15728_dismissibleMedia",void 0);
_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],il.prototype,"onDataChanged",null);_.V([_.W("lockupIsHovered"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],il.prototype,"isHovered",null);_.V([_.Yx({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],il);
_.k(il,"ytd-video-display-full-buttoned-renderer",function(){if(XOa!==void 0)return XOa;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return XOa=b},{mode:1});var SD=function(b,h,y,S){S=S===void 0?!1:S;_.bf.call(this,b);this.adsClientErrorMessage=y;this.aggressivelySample=S;this.args=[];h&&this.args.push(h)};
_.z(SD,_.bf);var hF=function(b,h,y,S){S=S===void 0?!1:S;_.bf.call(this,b);this.adsClientErrorMessage=y;this.aggressivelySample=S;this.args=[];h&&this.args.push(h)};
_.z(hF,_.bf);var HSN=function(b){_.ED.call(this);var h=this;this.initializationFunction=b;this.instance=null;this.addOnDisposeCallback(function(){_.nq(h.instance);h.instance=null})};
_.z(HSN,_.ED);HSN.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.wC("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var XUM=function(){var b=new Map;[].forEach(function(h){b.set(h.JSC$31289_getType(),h)});
this.getters=b};new Promise(function(){});var KaU=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"]]),Laf=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"}]]),uAM=function(b){this.experimentApiProvider=b;b=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=b<.1};var f1=function(b,h,y,S){_.ED.call(this);this.adsControlFlowEventListeners=h;this.adEventLogger=y;this.experimentApiProvider=S;this.adsControlFlowManagerHelper=b(this,this,this,this,this);_.pq(this,this.adsControlFlowManagerHelper);b=_.L(h);for(h=b.next();!h.done;h=b.next())_.pq(this,h.value)};
_.z(f1,_.ED);var OS7=function(b,h,y,S){wn(b.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",h,y,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,S);b=_.L(b.adsControlFlowEventListeners);for(S=b.next();!S.done;S=b.next())OS7(S.value,h,y)};
_.d=f1.prototype;_.d.onOpportunityProcessedExternallyManaged=function(b,h,y,S){wn(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",b,y,h,void 0,void 0,void 0,void 0,void 0,void 0,void 0,S)};
_.d.onSlotReceivedExternallyManaged=function(b,h){ll(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",b,h)};
_.d.onSlotEntered=function(b){if(qx(this.adsControlFlowManagerHelper,b)!=null){ll(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",b);this.adsControlFlowManagerHelper.onSlotEntered(b);for(var h=_.L(this.adsControlFlowEventListeners),y=h.next();!y.done;y=h.next())y.value.onSlotEntered(b);if(qx(this.adsControlFlowManagerHelper,b)!=null&&qx(this.adsControlFlowManagerHelper,b).isOccupyingSlotType()&&xI(this.adsControlFlowManagerHelper,b)&&!NV8(this.adsControlFlowManagerHelper,b)){var S;QP(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",b,(S=xI(this.adsControlFlowManagerHelper,b))!=null?S:void 0);b=qx(this.adsControlFlowManagerHelper,b);b.slotLifecycleStage!=="entered"&&mC(b.slot,b.slotLifecycleStage,"enterLayoutForSlot");b.slotLifecycleStage="rendering";b.registeredLayoutRenderingAdapter.startRendering(b.layout)}}};
_.d.onSlotExited=function(b){if(qx(this.adsControlFlowManagerHelper,b)!=null){ll(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",b);this.adsControlFlowManagerHelper.onSlotExited(b);for(var h=_.L(this.adsControlFlowEventListeners),y=h.next();!y.done;y=h.next())y.value.onSlotExited(b);qx(this.adsControlFlowManagerHelper,b)!=null&&qx(this.adsControlFlowManagerHelper,b).markedForUnscheduleAfterOutboundAdapterRequests&&tOb(this,b)}};
_.d.onLayoutReceivedExternallyManaged=function(b,h,y){b.managerLayer!=="core"&&QP(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,h,y)};
var rGW=function(b,h,y){if(qx(b.adsControlFlowManagerHelper,h)!=null){QP(b.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",h,y);b=_.L(b.adsControlFlowEventListeners);for(var S=b.next();!S.done;S=b.next())rGW(S.value,h,y)}};
f1.prototype.onLayoutExited=function(b,h,y){if(qx(this.adsControlFlowManagerHelper,b)!=null){QP(this.adEventLogger,P8j(y),b,h);this.adsControlFlowManagerHelper.onLayoutExited(b,h);for(var S=_.L(this.adsControlFlowEventListeners),F=S.next();!F.done;F=S.next())F.value.onLayoutExited(b,h,y);(y=xI(this.adsControlFlowManagerHelper,b))&&h.layoutId===y.layoutId&&cGw(this,b)}};
f1.prototype.disposeInternal=function(){var b=RP8(this.adsControlFlowManagerHelper);b=_.L(b);for(var h=b.next();!h.done;h=b.next())tOb(this,h.value);_.ED.prototype.disposeInternal.call(this)};
var tOb=function(b,h){if(qx(b.adsControlFlowManagerHelper,h)!=null)if(qx(b.adsControlFlowManagerHelper,h).JSC$31319_isSlotExitRequested()||qx(b.adsControlFlowManagerHelper,h).JSC$31319_isLayoutExitRequested())qx(b.adsControlFlowManagerHelper,h).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(qx(b.adsControlFlowManagerHelper,h).isOccupyingSlotType())qx(b.adsControlFlowManagerHelper,h).markedForUnscheduleAfterOutboundAdapterRequests=!0,cGw(b,h);else if(qx(b.adsControlFlowManagerHelper,h).JSC$31319_isSlotFillRequested())qx(b.adsControlFlowManagerHelper,
h).markedForUnscheduleAfterOutboundAdapterRequests=!0,qx(b.adsControlFlowManagerHelper,h)!=null&&(ll(b.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",h),h=qx(b.adsControlFlowManagerHelper,h),h.fulfillmentLifecycleStage="fill_cancel_requested",h.registeredFulfillmentAdapter.cancelSlotFilling());else{var y=xI(b.adsControlFlowManagerHelper,h),S;b.experimentApiProvider.get();(S=_.r("h5_enable_layout_unscheduling_events"))&&(y?zPe(b,h,y):_.wC(Error("Mh"),h,y,void 0,!1));ll(b.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",h);var F=qx(b.adsControlFlowManagerHelper,h),a=h.slotEntryTrigger,P=F.registeredSlotEntryTriggerAdapters.get(a.triggerId);P&&(P.unregisterTrigger(a),F.registeredSlotEntryTriggerAdapters.delete(a.triggerId));a=_.L(h.slotFulfillmentTriggers);for(P=a.next();!P.done;P=a.next()){P=P.value;var K=F.registeredFulfillmentTriggerAdapters.get(P.triggerId);K&&(K.unregisterTrigger(P),F.registeredFulfillmentTriggerAdapters.delete(P.triggerId))}a=_.L(h.slotExpirationTriggers);
for(P=a.next();!P.done;P=a.next())if(P=P.value,K=F.registeredExpirationTriggerAdapters.get(P.triggerId))K.unregisterTrigger(P),F.registeredExpirationTriggerAdapters.delete(P.triggerId);F.hasLayout()&&(a=F.layout,bQ(F,a.layoutExitNormalTriggers),bQ(F,a.layoutExitSkipTriggers),bQ(F,a.layoutExitMuteTriggers),bQ(F,a.layoutExitUserInputSubmittedTriggers),bQ(F,a.layoutExitUserCancelledTriggers));F.registeredFulfillmentAdapter=void 0;F.registeredSlotAdapter!=null&&(F.registeredSlotAdapter.release(),F.registeredSlotAdapter=
void 0);F.registeredLayoutRenderingAdapter!=null&&(F.registeredLayoutRenderingAdapter.release(),F.registeredLayoutRenderingAdapter=void 0);F=b.adsControlFlowManagerHelper;qx(F,h)&&(F=DRb(F,h.slotType+"_"+h.slotPhysicalPosition))&&F.delete(h.slotId);ll(b.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",h);b=_.L(b.adsControlFlowEventListeners);for(F=b.next();!F.done;F=b.next())F=F.value,F.onSlotUnscheduled(h),y&&!S&&zPe(F,h,y)}},zPe=function(b,h,y){QP(b.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
h,y);
QP(b.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",h,y);b=_.L(b.adsControlFlowEventListeners);for(var S=b.next();!S.done;S=b.next())S=S.value,y&&zPe(S,h,y)},cGw=function(b,h){if(qx(b.adsControlFlowManagerHelper,h)!=null&&qx(b.adsControlFlowManagerHelper,h).isOccupyingSlotType()){var y=xI(b.adsControlFlowManagerHelper,h);
if(y&&NV8(b.adsControlFlowManagerHelper,h)){if(qx(b.adsControlFlowManagerHelper,h)!=null){var S=b.adEventLogger,F;var a=((F=Laf.get("abandoned"))==null?void 0:F.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";QP(S,a,h,y);b=qx(b.adsControlFlowManagerHelper,h);b.slotLifecycleStage!=="rendering"&&mC(b.slot,b.slotLifecycleStage,"exitLayout");b.slotLifecycleStage="rendering_stop_requested";b.registeredLayoutRenderingAdapter.stopRendering(y,"abandoned")}}else{ll(b.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
h);try{S=qx(b.adsControlFlowManagerHelper,h);if(!S)throw new hF("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");S.slotLifecycleStage!=="enter_requested"&&S.slotLifecycleStage!=="entered"&&S.slotLifecycleStage!=="rendering"&&mC(S.slot,S.slotLifecycleStage,"exitSlot");S.slotLifecycleStage="exit_requested";if(S.registeredSlotAdapter===void 0)throw S.slotLifecycleStage="scheduled",new hF("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
S.registeredSlotAdapter.exit()}catch(P){P instanceof hF&&P.adsClientErrorMessage?(Ic8(b.adEventLogger,P.adsClientErrorMessage,h),_.wC(P,h,void 0,void 0,P.aggressivelySample)):(Ic8(b.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",h),_.wC(P,h))}}}};var ha=function(b,h,y,S,F,a){_.ED.call(this);this.registry=b;this.experimentApiProvider=a;this.slotMap=new Map};
_.z(ha,_.ED);var DRb=function(b,h){return(b=b.slotMap.get(h))?b:new Map},qx=function(b,h){return DRb(b,h.slotType+"_"+h.slotPhysicalPosition).get(h.slotId)},RP8=function(b){var h=[];
b.slotMap.forEach(function(y){y=_.L(y.values());for(var S=y.next();!S.done;S=y.next())h.push(S.value.slot)});
return h};
ha.prototype.onSlotEntered=function(b){b=qx(this,b);b.slotLifecycleStage!=="enter_requested"&&mC(b.slot,b.slotLifecycleStage,"onSlotEntered");b.slotLifecycleStage="entered"};
var NV8=function(b,h){b=qx(b,h);return b.hasLayout()&&b.isRendering()},xI=function(b,h){(b=qx(b,h))?b.hasLayout()&&!b.layout&&_.wC("Unexpected empty layout",h):_.wC("Unexpected undefined slotState",h);
return(b==null?void 0:b.layout)||null};
ha.prototype.onSlotExited=function(b){b=qx(this,b);b.slotLifecycleStage!=="exit_requested"&&mC(b.slot,b.slotLifecycleStage,"onSlotExited");b.slotLifecycleStage="scheduled"};
ha.prototype.onLayoutExited=function(b,h){b=qx(this,b);b.isPrimaryLayout(h)&&(b.slotLifecycleStage!=="rendering_stop_requested"&&mC(b.slot,b.slotLifecycleStage,"onLayoutExited"),b.slotLifecycleStage="entered")};
var bQ=function(b,h){h=_.L(h);for(var y=h.next();!y.done;y=h.next()){y=y.value;var S=b.registeredLayoutExitTriggerAdapters.get(y.triggerId);S&&(S.unregisterTrigger(y),b.registeredLayoutExitTriggerAdapters.delete(y.triggerId))}},mC=function(b,h,y){_.wC("Slot stage was "+h+" when calling method "+y,b)};var WF5=function(b){_.ED.call(this);this.deps=b;this.JSC$15781_adsControlFlowManager=BVe(this)};
_.z(WF5,_.ED);var BVe=function(b){var h=new f1(function(y,S,F,a){return new ha(b.deps.registry,y,S,F,a,b.deps.experimentApiProvider)},new Set(nh5(b.deps.registry).concat(b.deps.listeners)),b.deps.adEventLogger,b.deps.experimentApiProvider);
_.pq(b,h);return h};var LyY=function(){};var AGa=function(b,h){_.ED.call(this);this.experimentApiProvider=b;this.eventLoggingSettingsProvider=h;this.eventCount=0;this.premiumAdSeenEventLogger=PE4()()};
_.z(AGa,_.ED);AGa.prototype.logEvent=function(b){wn(this,b)};
var ll=function(b,h,y,S){wn(b,h,void 0,void 0,void 0,y,void 0,void 0,void 0,y.adSlotLoggingData,void 0,void 0,S)},QP=function(b,h,y,S,F){wn(b,h,void 0,void 0,void 0,y,S?S:void 0,void 0,void 0,y.adSlotLoggingData,S?S.adLayoutLoggingData:void 0,void 0,F);
y=_.H9().resolve(_.XS(Eu))==null?void 0:iF();h=y==null?void 0:y.adsSeenHotConfig;y=y==null?void 0:y.adsHotConfig;(h==null?0:h.logOnAdsSeen)&&(y==null?0:y.webEnablePremiumAdsSeenLogging)&&URb(b,S?S:void 0,F)},Ic8=function(b,h,y){wn(b,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,y,void 0,void 0,void 0,y.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:h})},wn=function(b,h,y,S,F,a,P,K,n,X,u,O,N){N=N===void 0?0:N;
pOP(b.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+h,"slot:",a,"layout:",P,"ping:",K,"Opportunity:",{opportunityType:y,associatedSlotId:S,slotsFromOpportunity:F,triggerBundle:n,adSlotLoggingData:X,adLayoutLoggingData:u});try{var t=function(){b.experimentApiProvider.get();if(h!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){h||_.wC("Empty PACF event type",a,P);var R=b.eventLoggingSettingsProvider.get();var I;(I=R.alwaysIncludeDebugData)||(R.experimentApiProvider.get(),I=
!1);R=I;I={eventType:h,eventOrder:++b.eventCount};var U={};a&&(U.slotData=ohk(R,a));if(P){var p={type:P.layoutType,controlFlowManagerLayer:KaU.get(P.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};R&&(p.debugData={layoutId:P.layoutId});U.layoutData=p}K&&(U.pingData={pingDispatchStatus:K.dispatchStatus,serializedAdPingMetadata:K.ping.serializedAdPingMetadata,pingIndex:K.index});n&&(U.triggerData=Z3Y(n.trigger,n.category));y&&(U.opportunityData=Mfy(R,y,S,F));I.adClientData=U;X&&(I.serializedSlotAdServingData=
X.serializedSlotAdServingDataEntry);u&&(I.serializedAdServingData=u.serializedAdServingDataEntry);O&&(I.errorInfo=O);_.qi("adsClientStateChange",{adsClientEvent:I})}};
N&&N>0?_.VT(_.J_(),function(){return t()},N):t()}catch(R){pOP(b.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.VT(_.J_(),function(){_.wC(R instanceof Error?R:String(R),a,P,{pacf_message:"exception during pacf logging"})})}},URb=function(b,h,y){if(h){var S=h.adLayoutLoggingData;
_.VT(_.J_(),function(){b.premiumAdSeenEventLogger!=null&&S&&_.qi("adsSeenClientLogging",{serializedAdServingDataEntry:S.serializedAdServingDataEntry})},y!=null?y:0)}};var JGo=function(b,h){AGa.call(this,b,h)};
_.z(JGo,AGa);var ePP=function(){},pOP=function(b,h){return _.r(h)};var gQ7=function(){var b=new CB5;this.JSC$15806_adsControlFlowManager=(new WF5(b)).JSC$15781_adsControlFlowManager},CB5=function(){_.ED.call(this);
var b=this;this.experimentApiProvider=new HSN(function(){return new ePP});
var h=new HSN(function(){return new uAM(b.experimentApiProvider)});
this.adEventLogger=new JGo(this.experimentApiProvider,h);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.z(CB5,_.ED);var sIw=function(){},YiW,yz=function(){YiW||(YiW=new sIw);
return YiW},Sq=function(b){if(!b.JSC$15817_externallyManagedSlotAdapterCallback){var h=(new gQ7).JSC$15806_adsControlFlowManager;
b.JSC$15817_externallyManagedSlotAdapterCallback=h}return b.JSC$15817_externallyManagedSlotAdapterCallback},TVa=function(b,h,y){var S=h.opportunityType,F=Error("Nh");
if(S!==void 0){var a=Sq(b);OS7(a,S,void 0,y)}else _.wC(F,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});a=[];if(h.adSlotAndLayoutMetadata!==void 0){h=_.L(h.adSlotAndLayoutMetadata);for(var P=h.next();!P.done;P=h.next()){var K=P.value;if(P=K.adSlotMetadata)if(a.push(P),b.onSlotReceivedExternallyManaged(P,y),K.adLayoutMetadata){K=_.L(K.adLayoutMetadata);for(var n=K.next();!n.done;n=K.next())b.onLayoutReceivedExternallyManaged(P,n.value,y)}else y>0&&_.wC("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
S,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else y>0&&_.wC("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+S,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else y>0&&_.wC("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+S,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(S!==void 0)b.onOpportunityProcessedExternallyManaged(S,a,void 0,y);else _.wC(F,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
sIw.prototype.onSlotReceivedExternallyManaged=function(b,h){b=yH(b);if(b instanceof hF)_.wC(b,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else Sq(this).onSlotReceivedExternallyManaged(b,h)};
sIw.prototype.onLayoutReceivedExternallyManaged=function(b,h,y){b=yH(b);h=H3q(h);if(b instanceof hF)_.wC(b,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(h instanceof SD)_.wC(h,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else Sq(this).onLayoutReceivedExternallyManaged(b,h,y)};
sIw.prototype.onOpportunityProcessedExternallyManaged=function(b,h,y,S){var F=[];h=_.L(h);for(var a=h.next();!a.done;a=h.next())a=yH(a.value),a instanceof hF?_.wC(a,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):F.push(a);Sq(this).onOpportunityProcessedExternallyManaged(b,F,y,S)};
var Gza=function(b,h){h=yH(h);if(h instanceof hF)_.wC(h,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var y=Sq(b);ll(y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",h);y=_.L(y.adsControlFlowEventListeners);for(var S=y.next();!S.done;S=y.next())S=qx(S.value,h),S.slotLifecycleStage!=="not_scheduled"&&mC(S.slot,S.slotLifecycleStage,"onSlotScheduled"),S.slotLifecycleStage="scheduled";b=Sq(b);ll(b.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",h);b=_.L(b.adsControlFlowEventListeners);
for(y=b.next();!y.done;y=b.next())y.value.onSlotEntered(h)}},kz8=function(b,h){h=yH(h);
if(h instanceof hF)_.wC(h,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var y=Sq(b);ll(y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",h);y=_.L(y.adsControlFlowEventListeners);for(var S=y.next();!S.done;S=y.next())S.value.onSlotExited(h);b=Sq(b);ll(b.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",h);b=_.L(b.adsControlFlowEventListeners);for(y=b.next();!y.done;y=b.next())y.value.onSlotUnscheduled(h)}},VOG=function(b,h,y){h=yH(h);
y=H3q(y);if(h instanceof hF)_.wC(h,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(y instanceof SD)_.wC(y,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var S=Sq(b);QP(S.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",h,y);S=_.L(S.adsControlFlowEventListeners);for(var F=S.next();!F.done;F=S.next())F.value.onLayoutScheduled(h,y);b=Sq(b);QP(b.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",h,y);b=_.L(b.adsControlFlowEventListeners);
for(S=b.next();!S.done;S=b.next())rGW(S.value,h,y)}},F1=function(b,h,y){h=yH(h);
y=H3q(y);if(h instanceof hF)_.wC(h,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(y instanceof SD)_.wC(y,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var S=Sq(b);QP(S.adEventLogger,P8j("normal"),h,y);S=_.L(S.adsControlFlowEventListeners);for(var F=S.next();!F.done;F=S.next())F.value.onLayoutExited(h,y,"normal");b=Sq(b);b=_.L(b.adsControlFlowEventListeners);for(S=b.next();!S.done;S=b.next())zPe(S.value,h,y)}};_.a9=_.T(function(b){var h=_.h6(b,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});b=Object.assign({},h);var y=h.data;h=h.customCommandResolver;var S=(delete b.data,delete b.customCommandResolver,b);b=_.r_({visibilityCallback:function(K,n){var X,u=(X=y().interaction)==null?void 0:X.onFirstVisible;K&&(u&&_.Va(u),S.setOnErrorHandler()&&uPI(n))},
showOption:_.VZ});h=_.Go(function(){return y().interaction},h,function(){var K;
return(K=S.listenToTapEvent)==null?void 0:K.call(S)});
var F=_.L(_.pa(!1,void 0,"wAC0Lc")),a=F.next().value,P=F.next().value;F=_.Zv(function(K){var n;((n=S.setTouchEndHandler)==null?0:n.call(S))&&!a()&&(K.currentTarget.click(),P(!0),setTimeout(function(){P(!1)},100));
return!1});
return _.M("ad-image-view-model",{class:function(){var K,n=[((K=y().interaction)==null?0:K.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],X;((X=S.isGridViewEnabled)==null?0:X.call(S))&&n.push("ytwAdImageViewModelHostInGridView");return n.join(" ")},
el:_.Qa(b,h),"on:touchend":F},_.M("div",{class:"ytwAdImageViewModelHostImageContainer"},_.M(_.mI,{data:function(){var K;return{sources:y().imageSources,contentMode:(K=y().imageProperties)==null?void 0:K.contentMode}},
alt:function(){var K,n;return((K=y().interaction)==null?void 0:(n=K.accessibility)==null?void 0:n.label)||""},
targetHeight:S.targetHeight,targetWidth:S.targetWidth,preserveHeight:S.preserveHeight,preserveWidth:S.preserveWidth,useWidth:S.useWidth,style:function(){var K,n;return"vertical-align: bottom;"+(((K=y().background)==null?0:K.color)?"background-color:"+_.eI((n=y().background)==null?void 0:n.color)+";":"")},
className:function(){return S.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var K,n;return(n=(K=S.setDraggable)==null?void 0:K.call(S))!=null?n:void 0}})))},"lc");var EQw=_.T(function(b){var h=b.data,y=b.listenToTapEvent,S=function(){};
return _.M("ad-button-hover-overlay-view-model",{"on:click":_.Zv(function(F){if(_.r("enable_web_home_top_landscape_image_layout_legacy_click_command")){var a,P=(a=h().interaction)==null?void 0:a.onTap;P&&_.Sx(F.currentTarget,"yt-navigate",{endpoint:_.YS(P)})}}),
class:function(){var F;return((F=h().interaction)==null?0:F.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.Qa(_.r_({visibilityCallback:function(F){var a,P=(a=h().interaction)==null?void 0:a.onFirstVisible;F&&P&&_.Va(P)},
showOption:_.VZ}),_.Go(function(){return h().interaction},void 0,function(){return!_.r("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(y==null?void 0:y())}))},function(){return _.r("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.M(_.rC,{data:function(){return h().button}},{adButtonViewModel:function(F){return _.M(_.iH,{data:F.data,
customCommandResolver:S})}}):_.M(_.rC,{data:function(){return h().button}},{adButtonViewModel:_.iH})}())},"mc");var Fs;_.yd(_.T(function(b){var h=b.data;b=_.r_({visibilityCallback:function(K,n){if(K){var X;(K=(X=h().interaction)==null?void 0:X.onFirstVisible)&&_.Va(K);var u;if(X=(u=h().adLayoutData)==null?void 0:u.activeViewData)ar(n,X),_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&dx(n)})}else _.r("stop_av_measurement_on_detach")&&dx(n)},
showOption:_.VZ,hideOption:EX});var y=_.Go(function(){return h().interaction},void 0,function(){return!0}),S=_.L(_.pa(!1,void 0,"VNDDT")),F=S.next().value,a=S.next().value;
S=_.Zv(function(){a(!0)});
var P=_.Zv(function(){a(!1)});
return _.M("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.Qa(b,z5U,y),"on:mouseenter":S,"on:mouseleave":P},_.M("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.n9({"max-width":function(){return _.r("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.M("div",{class:function(){var K;
a:{var n;switch((K=_.c(h().thumbnailImage,sG8))==null?void 0:(n=K.imageProperties)==null?void 0:n.renderingAspect){case "RENDERING_ASPECT_SQUARE":K="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":K="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}K=void 0}return K}},_.M(_.rC,{data:function(){return h().thumbnailImage}},{adImageViewModel:function(K){return _.M(_.a9,
{data:K.data,
listenToTapEvent:!0,setTouchEndHandler:_.r("enable_top_landscape_image_experiment_dom_id_web")})}})),_.M("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.M(_.H,{cond:function(){var K,n,X;
return(K=_.c(h().thumbnailImage,sG8))==null?void 0:(n=K.imageProperties)==null?void 0:(X=n.overlayIcon)==null?void 0:X.iconImage},
then:function(K){return _.M(_.mI,{data:K,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.M("div",{class:function(){return F()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.M(_.rC,{data:function(){return h().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(K){return _.M(EQw,
{data:K.data,
listenToTapEvent:!0})}}))),_.M("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.M(_.rC,{data:function(){return h().feedAdMetadata}},{feedAdMetadataViewModel:function(K){return _.M(mz,{data:K.data,
listenToTapEvent:!0,setTouchEndHandler:_.r("enable_top_landscape_image_experiment_dom_id_web")})}})))},"nc"),"compact-landscape-no-button-layout-view-model",{props:{data:_.D4}});_.yd(_.T(function(b){var h=b.data;b=_.r_({visibilityCallback:function(K,n){if(K){var X;(K=(X=h().interaction)==null?void 0:X.onFirstVisible)&&_.Va(K);var u;if(X=(u=h().adLayoutData)==null?void 0:u.activeViewData)ar(n,X),_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&dx(n)})}else _.r("stop_av_measurement_on_detach")&&dx(n)},
showOption:_.VZ,hideOption:EX});var y=_.NG(_.C9),S=_.Go(function(){return h().interaction}),F={},a={},P={};
return _.M("square-image-layout-view-model",{class:_.P2("ytwSquareImageLayoutViewModelHost",(F.ytwSquareImageLayoutViewModelHostColumn=y,F)),el:_.Qa(b,DvY,S)},_.M("div",{class:_.P2("ytwSquareImageLayoutViewModelHostImage",(a.ytwSquareImageLayoutViewModelHostColumnImage=y,a))},function(){return _.M(_.rC,{data:function(){return h().adImage}},{adImageViewModel:function(K){return _.M(_.a9,{data:K.data,
isGridViewEnabled:y,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.M("div",{class:_.P2("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(P.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=y,P))},_.M(_.rC,{data:function(){return h().feedAdMetadata}},{feedAdMetadataViewModel:mz}),function(){return _.M(_.rC,{data:function(){return h().adButton}},{adButtonViewModel:function(K){var n={};
return _.M(_.iH,{data:K.data,className:_.P2((n.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,n.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=y,n))})}})}()))},"oc"),"square-image-layout-view-model",{props:{data:_.D4}});_.yd(_.T(function(b){var h=b.data;var y=b.noBottomMargin;var S=b.typographyBump;b=_.r_({visibilityCallback:function(O,N){if(O){var t;(O=(t=h().interaction)==null?void 0:t.onFirstVisible)&&_.Va(O);var R;if(t=(R=h().adLayoutData)==null?void 0:R.activeViewData)ar(N,t),_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&dx(N)})}else _.r("stop_av_measurement_on_detach")&&dx(N)},
showOption:_.VZ,hideOption:EX});var F=_.Go(function(){return h().interaction},void 0,function(){return _.r("enable_web_home_top_landscape_image_layout_level_click")}),a=function(){return h().interaction};
a!==void 0&&a!==null||_.yb(Error("Oh"));var P=function(){var O,N,t;return(O=_.c(h().thumbnailImage,sG8))==null?void 0:(N=O.background)==null?void 0:(t=N.backgroundImageSource)==null?void 0:t.imageSources};
a=_.L(_.pa(!1,void 0,"NFjwje"));var K=a.next().value,n=a.next().value;a=_.Zv(function(){n(!0)});
var X=_.Zv(function(){n(!1)}),u=function(){return K()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.M("top-landscape-image-layout-view-model",{class:function(){var O;return((O=h().interaction)==null?0:O.onTap)&&_.r("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.Qa(b,IkU,F),"on:mouseenter":a,"on:mouseleave":X},_.M("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.M(_.H,{cond:function(){return P()&&P().length>0},
then:function(){return _.M("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.n9({top:"0","background-image":function(){return"url("+String(P()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.M(_.H,{cond:function(){return!!h().adButtonHoverOverlay},
then:function(){return _.M("div",{class:u},_.M(_.rC,{data:function(){return h().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:EQw}))}}),_.M("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.M(_.rC,{data:function(){return h().thumbnailImage}},{adImageViewModel:function(O){return _.M(_.a9,{data:O.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.r("enable_web_home_top_landscape_image_layout_level_click")})}})),_.M("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.M(_.mI,{data:{sources:[{clientResource:{imageName:_.r("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.M("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.M(_.rC,{data:function(){return h().feedAdMetadata}},{feedAdMetadataViewModel:function(O){return _.M(mz,{data:O.data,
noBottomMargin:function(){return y==null?void 0:y()},
listenToTapEvent:function(){return _.r("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return S==null?void 0:S()}})}})))},"pc"),"top-landscape-image-layout-view-model",{props:{data:_.D4,
noBottomMargin:_.D4,typographyBump:_.D4}});var iS8=_.T(function(b){var h=b.data,y=_.r_({visibilityCallback:function(F){var a,P=(a=h().interaction)==null?void 0:a.onFirstVisible;F&&P&&_.Va(P)},
showOption:_.VZ});b=_.Go(function(){return h().interaction},b.customCommandResolver);
var S={};return _.M("ad-text-image-view-model",{class:_.P2("ytwAdTextImageViewModelHost",(S.ytwAdTextImageViewModelHostDarkBackground=function(){return h().style==="AD_TEXT_IMAGE_STYLE_DARK_BACKGROUND"},S)),
el:_.Qa(y,b),"aria-label":function(){var F,a;return(F=h().interaction)==null?void 0:(a=F.accessibility)==null?void 0:a.label}},_.M("div",{class:"ytwAdTextImageViewModelHostHeadlineContainer"},_.M(_.zv,{text:function(){return h().headline},
className:"ytwAdTextImageViewModelHostHeadlineContainerHeadline",linkInheritColor:!0,noEndpoints:!0})),_.M(_.H,{cond:function(){return h().overlayIcon},
then:function(F){return _.M("div",{class:"ytwAdTextImageViewModelHostOverlayIconContainer"},_.M(_.mI,{data:F,alt:"",className:"ytwAdTextImageViewModelHostOverlayIconContainerOverlayIcon"}))}}))},"qc");var fcM=_.T(function(b){var h=b.data;return _.M("feed-ad-sitelink-view-model",{class:function(){var y;return((y=h().interaction)==null?0:y.onTap)?"ytwFeedAdSitelinkViewModelHostIsClickableAdComponent":"ytwFeedAdSitelinkViewModelHost"},
el:_.Qa(_.Go(function(){return h().interaction},b.customCommandResolver,void 0,function(){return!0})),
"aria-label":function(){var y,S;return(y=h().interaction)==null?void 0:(S=y.accessibility)==null?void 0:S.label},
role:"link",tabindex:0},_.M(_.zv,{text:function(){return h().headline},
className:"ytwFeedAdSitelinkViewModelHeadline",linkInheritColor:!0}))},"rc");var wOb=_.T(function(b){var h=b.data;b={};return _.M("feed-ad-sitelinks-carousel-view-model",{el:_.Qa(_.r_({visibilityCallback:function(y){var S,F=(S=h().interaction)==null?void 0:S.onFirstVisible;y&&F&&_.Va(F)},
showOption:_.VZ})),class:_.P2("ytwFeedAdSitelinksCarouselViewModelHost",(b.ytwFeedAdSitelinksCarouselViewModelHostDefault=function(){return h().style==="FEED_AD_SITELINKS_STYLE_NONE"},b))},_.M(_.rC,{data:function(){return h().sitelinks}},{feedAdSitelinkViewModel:fcM}))},"sc");_.yd(_.T(function(b){var h=b.data;b=_.r_({visibilityCallback:function(P,K){if(P){var n;(P=(n=h().interaction)==null?void 0:n.onFirstVisible)&&_.Va(P);var X;(n=(X=h().adLayoutData)==null?void 0:X.activeViewData)&&ar(K,n)}},
showOption:_.VZ});var y=_.L(_.pa(!1,void 0,"BzPhl")),S=y.next().value,F=y.next().value;y=_.Zv(function(){F(!0)});
var a=_.Zv(function(){F(!1)});
return _.M("text-image-no-button-layout-view-model",{class:"ytwTextImageNoButtonLayoutViewModelHost",el:_.Qa(b),"on:mouseenter":y,"on:mouseleave":a},_.M("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainer"},_.M("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerImageContainer"},_.M(_.rC,{data:function(){return h().textImage}},{adTextImageViewModel:iS8})),_.M("div",{class:function(){return S()?"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":
"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.M(_.rC,{data:function(){return h().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(P){return _.M(EQw,{data:P.data,
listenToTapEvent:!0})}}))),_.M("div",{class:"ytwTextImageNoButtonLayoutViewModelHostMetadataContainer"},_.M(_.rC,{data:function(){return h().feedAdMetadata}},{feedAdMetadataViewModel:function(P){return _.M(mz,{data:P.data,
listenToTapEvent:!0})}}),_.M(_.rC,{data:function(){return h().feedAdSitelinksCarousel}},{feedAdSitelinksCarouselViewModel:wOb})))},"tc"),"text-image-no-button-layout-view-model",{props:{data:_.D4}});_.yd(_.T(function(b){var h=b.data;var y=b.typographyBump;return _.M("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.Qa(_.r_({visibilityCallback:function(S,F){if(S){var a;(S=(a=h().interaction)==null?void 0:a.onFirstVisible)&&_.Va(S);var P;(a=(P=h().adLayoutData)==null?void 0:P.activeViewData)&&ar(F,a)}},
showOption:_.VZ,hideOption:EX}))},_.M("div",null,_.M(_.rC,{data:function(){return h().videoLockup}},{lockupViewModel:function(S){return _.M(_.vQ,{data:S.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:y})}})))},"uc"),"video-display-button-group-layout-view-model",{props:{data:_.D4,
noBottomMargin:_.D4,typographyBump:_.D4}});_.yd(_.T(function(b){var h=b.data;var y=b.className;var S=b.typographyBump;return _.M("video-display-compact-button-group-layout-view-model",{el:_.Qa(_.r_({visibilityCallback:function(F,a){if(F){var P;(F=(P=h().interaction)==null?void 0:P.onFirstVisible)&&_.Va(F);var K;(P=(K=h().adLayoutData)==null?void 0:K.activeViewData)&&ar(a,P)}},
showOption:_.VZ})),class:_.P2("videoDisplayCompactButtonGroupLayoutViewModelHost",y)},_.M(_.rC,{data:function(){return h().videoLockup}},{lockupViewModel:function(F){return _.M(_.vQ,{data:F.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:S})}}))},"vc"),"video-display-compact-button-group-layout-view-model",{props:{data:_.D4,
className:_.D4,typographyBump:_.D4}});_.yd(_.T(function(b){var h=b.data;var y=b.className;var S=b.typographyBump;return _.M("video-display-compact-buttoned-layout-view-model",{el:_.Qa(_.r_({visibilityCallback:function(F,a){if(F){var P;(F=(P=h().interaction)==null?void 0:P.onFirstVisible)&&_.Va(F);var K;(P=(K=h().adLayoutData)==null?void 0:K.activeViewData)&&ar(a,P)}},
showOption:_.VZ})),class:_.P2("videoDisplayCompactButtonedLayoutViewModelHost",y)},_.M(_.rC,{data:function(){return h().videoLockup}},{lockupViewModel:function(F){return _.M(_.vQ,{data:F.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:S})}}))},"wc"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.D4,
className:_.D4,typographyBump:_.D4}});_.yd(_.T(function(b){var h=b.data;var y=b.className;var S=b.typographyBump;var F=function(){return h().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},a=_.NG(_.C9);
b=_.r_({visibilityCallback:function(X,u){if(X){var O=h();X=O.adLayoutData;var N;(O=(N=O.interaction)==null?void 0:N.onFirstVisible)&&_.Va(O);(N=X==null?void 0:X.activeViewData)&&ar(u,N)}},
showOption:_.VZ});var P=_.s5(function(){return{containerType:F()&&a()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST",responsiveSize:F()?"RESPONSIVE_SIZE_COMPACT":void 0}},void 0,"Ikxfhe"),K=_.s5(function(){return F()&&a()?"":F()?"168px":"50%"},void 0,"Om6kNe"),n=_.s5(function(){return F()&&a()?9999:void 0},void 0,"S71lKd");
return _.M("video-display-compact-layout-view-model",{el:_.Qa(b),class:_.P2("videoDisplayCompactLayoutViewModelHost",y)},_.M(_.rC,{data:function(){return h().videoLockup}},{lockupViewModel:function(X){return _.M(_.vQ,{data:X.data,
containerLayoutConfig:P,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:K,thumbnailTargetWidth:n,typographyBump:S})}}))},"xc"),"video-display-compact-layout-view-model",{props:{data:_.D4,
className:_.D4,typographyBump:_.D4}});_.yd(_.T(function(b){var h=b.data;var y=b.typographyBump;return _.M("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.Qa(_.r_({visibilityCallback:function(S,F){if(S){var a;(S=(a=h().interaction)==null?void 0:a.onFirstVisible)&&_.Va(S);var P;(a=(P=h().adLayoutData)==null?void 0:P.activeViewData)&&ar(F,a)}},
showOption:_.VZ,hideOption:EX}))},_.M("div",null,_.M(_.rC,{data:function(){return h().videoLockup}},{lockupViewModel:function(S){return _.M(_.vQ,{data:S.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:y})}})))},"yc"),"video-display-full-layout-view-model",{props:{data:_.D4,
noBottomMargin:_.D4,typographyBump:_.D4}});_.lcG=_.T(function(b){var h=b.data;b=_.ZR("ad-card-badge-view-model");return _.M("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:b},_.M(_.H,{cond:function(){return h().imageBadge},
then:function(y){return _.M(_.mI,{data:y,alt:""})}}))},"zc");var qio=_.T(function(b){var h=b.data;var y=b.customCommandResolver;return _.M("carousel-ad-card-image-view-model",{class:function(){var S;return((S=h().interaction)==null?0:S.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.Qa(_.r_({visibilityCallback:function(S){var F,a=(F=h().interaction)==null?void 0:F.onFirstVisible;S&&a&&_.Va(a)},
showOption:_.VZ}),_.Go(function(){return h().interaction},y)),
"aria-label":function(){var S,F;return(S=h().interaction)==null?void 0:(F=S.accessibility)==null?void 0:F.label}},_.M(_.rC,{data:function(){return h().adImage}},{adImageViewModel:function(S){return _.M(_.a9,{data:S.data,
customCommandResolver:y})}}),_.M("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.M(_.rC,{data:function(){return h().badge}},{adCardBadgeViewModel:_.lcG})),_.M(_.Tv,{model:{color:4}}))},"Ac");var xR5=_.T(function(b){var h=_.L(_.pa(0,void 0,"JJ0QQc")),y=h.next().value;h.next();var S=h.next().value,F=_.L(_.pa(!1,void 0,"f6YICe"));h=F.next().value;var a=F.next().value,P;_.m2(function(){clearTimeout(P)});
F=_.Zv(function(){var X;((X=b.animate)==null?0:X.call(b))?(a(!0),P=setTimeout(function(){a(!1);K()},200)):K();
return!1});
var K=function(){S(function(X){return(X+b.numShownItems())%b.data().length})},n={};
return _.M("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.M("div",{class:_.P2("ytwHorizontalCarouselCarouselWrapper")},_.M("div",{class:_.P2("ytwHorizontalCarouselCarouselInnerWrapper",(n.ytwHorizontalCarouselAnimating=h,n))},_.M(_.Gw,{each:b.data,keyBy:"INDEX"},function(X,u){return _.M("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.n9({"flex-basis":function(){return"calc((100% - (8px * "+(b.numShownItems()-1)+")) / "+b.numShownItems()+")"},
order:function(){var O=u-y();O<0&&(O+=b.data().length);return O}})},b.children(X,u))}))),_.M("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":F},b.nextButton()))},"Bc");var QI5=_.T(function(b){var h=b.data;var y=b.customCommandResolver;var S=b.expansive;return _.M("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.Qa(_.r_({visibilityCallback:function(F){var a,P=(a=h().interaction)==null?void 0:a.onFirstVisible;F&&P&&_.Va(P)},
showOption:_.VZ}))},_.M(xR5,{data:function(){var F;return((F=h())==null?void 0:F.carouselAdCards)||[]},
nextButton:function(){return _.M(_.rC,{data:function(){return h().nextButton}},{buttonViewModel:function(F){var a=F.data;
return _.M(_.EG,{data:function(){return(S==null?0:S())?Object.assign({},a(),{style:"mono"}):a()},
className:_.r("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(F){return _.M(_.rC,{data:F},{carouselAdCardImageViewModel:function(a){return _.M(qio,{data:a.data,customCommandResolver:y})}})}))},"Cc");var mRG=_.T(function(b){var h=b.data;var y=b.customCommandResolver;var S=b.className;var F=b.buttonClassName;var a=b.animationEntityKey;var P=b.expansive;return _.M("carousel-button-view-model",{class:_.P2("ytwCarouselButtonViewModelHost",S)},_.M(_.rC,{data:function(){return h().carousel}},{carouselAdCardCollectionViewModel:function(K){return _.M(QI5,{data:K.data,
customCommandResolver:y,expansive:P})}}),_.M(_.rC,{data:function(){return h().button}},{adButtonViewModel:function(K){var n=K.data;
return _.M(_.iH,{data:function(){return(P==null?0:P())?Object.assign({},n(),{style:"AD_BUTTON_STYLE_TONAL"}):n()},
className:F,customCommandResolver:y,animationEntityKey:a})}}))},"Dc");_.vQN=_.T(function(b){var h=b.data;b=b.className;var y=_.ZR("pivot-button-view-model");_.wg(function(){var S;((S=h())==null?0:S.backgroundColor)&&y.value.setAttribute("data-background-color",String(h().backgroundColor))});
return _.M("pivot-button-view-model",{el:y,class:_.P2("ytwPivotButtonViewModelHost",b)},_.M(_.YN,{command:function(){var S=h();S=S.onClickCommand?_.YS(S.onClickCommand):S.contentDescription?_.Fd(S.contentDescription):void 0;return S},
ariaLabel:function(){return h().contentDescription}},_.M(_.H,{cond:function(){return h().thumbnail},
then:function(S){return _.M(_.mI,{data:S,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.M(_.H,{cond:function(){return h().icon},
then:function(S){return _.M(_.Xv,{icon:function(){return S().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Ec");_.bma=_.T(function(b){var h=b.data;var y=b.buttonShapeOverrideables;return _.M("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.M(_.rC,{data:function(){return h().buttonViewModels}},{buttonViewModel:function(S){return _.M(_.EG,{data:S.data,
buttonOverrides:y})},
likeButtonViewModel:function(S){return _.M(_.cD,{data:S.data,buttonShapeOverrideables:y})},
dislikeButtonViewModel:function(S){return _.M(_.r7,{data:S.data,buttonShapeOverrideables:y})},
toggleButtonViewModel:function(S){return _.M(_.Ke,{data:S.data,buttonShapeOverrides:y})}}))},"Fc");var heN=_.T(function(b){var h=b.avatar;var y=b.headline;var S=b.badge;var F=b.description;var a=b.expansive;b={};return _.M("yt-ad-metadata-shape",{class:_.P2("ytAdMetadataShapeHost",(b.ytAdMetadataShapeHostLarge=a,b))},_.M("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.M(_.H,{cond:h,then:function(P){return _.M(_.wr5,{data:function(){return(a==null?0:a())?Object.assign({},P(),{size:"AD_AVATAR_SIZE_M"}):P()}})}}),_.M("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.M(_.zv,{text:y,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.M(_.H,{cond:S,then:function(P){return _.M(_.xw,{data:function(){return(a==null?0:a())?Object.assign({},P(),{style:"AD_BADGE_STYLE_STARK"}):P()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.M("h2",{class:"ytAdMetadataShapeHostDescription"},_.M(_.zv,{text:F,
linkInheritColor:!0,isHeadline:function(){return a==null?void 0:a()}})))},"Gc");var yM5=_.T(function(b){var h=b.data;var y=b.onShow;var S=b.expansive;b=_.Go(function(){return h().interaction});
_.wg(function(){var a,P=(a=h().animatedRenderingConfig)==null?void 0:a.delayedSecondsToVisible;if(P){var K=setTimeout(y,P*1E3);_.m2(function(){clearTimeout(K)})}});
var F={};return _.M("reels-ad-card-buttoned-view-model",{class:_.P2(function(){var a;return((a=h().interaction)==null?0:a.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(F.ytwReelsAdCardButtonedViewModelHostExpansive=S,F)),
el:_.Qa(b)},_.M(heN,{avatar:function(){return _.c(h().avatar,eHa)},
headline:function(){return h().headline},
badge:function(){return _.c(h().adBadge,Cca)},
description:function(){return h().description},
expansive:S}),_.M(_.rC,{data:function(){return h().ctaButton}},{adButtonViewModel:function(a){var P=a.data;
return _.M(_.iH,{data:function(){return(S==null?0:S())?Object.assign({},P(),{style:"AD_BUTTON_STYLE_FILLED"}):P()}})}}))},"Hc");var Sqw=_.T(function(b){var h=b.data;b=b.expansive;var y=_.r("web_ad_metadata_clickable")?_.Go(function(){return h().interaction},void 0,function(){return _.r("web_ad_metadata_clickable")}):void 0,S={};
S=_.AB("ytwReelsAdMetadataViewModelHost",(S.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.r("web_ad_metadata_clickable"),S));return _.M("reels-ad-metadata-view-model",{class:S,el:_.Qa(y)},_.M(heN,{avatar:function(){return _.c(h().avatar,eHa)},
headline:function(){return h().headline},
badge:function(){return _.c(h().adBadge,Cca)},
description:function(){return h().description},
expansive:b}))},"Ic");var FTM={iconPosition:"icon-with-label",size:"L"},ad8=_.T(function(b){var h=b.data;var y=b.overlayDensity;var S=b.extractOverlay;var F=b.extractActionBar;b=_.ZR("reels-player-overlay-layout-view-model");var a=_.bi(y,0),P=function(){var t;return(t=h().reelsAdCardButtonedEntityKey)!=null?t:""},K=function(){return P()+"/ad_button"},n=_.OF(jZN,P),X=function(){var t,R;
return(R=(t=n())==null?void 0:t.value)!=null?R:!1},u=_.NG(BKq),O=function(){var t,R=Object.assign({},FTM,(u()||!((t=F==null?void 0:F())!=null&&t))&&{style:"overlay-dark"});
return _.r("mweb_shorts_rhs_no_background_protection")?Object.assign({},R,{type:"text",style:"overlay"}):R};
y={};var N={};return _.M("reels-player-overlay-layout-view-model",{class:_.P2("ytwReelsPlayerOverlayLayoutViewModelHost",(y.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!h().extension},y.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},y.ytwReelsPlayerOverlayLayoutViewModelHostExpansiveOverlay=function(){return a()===1&&!(S==null?0:S())},y.ytwReelsPlayerOverlayLayoutViewModelHostExtractOverlay=function(){var t;
return(t=S==null?void 0:S())!=null?t:!1},y.ytwReelsPlayerOverlayLayoutViewModelHostExtractActionBar=function(){var t;
return(t=F==null?void 0:F())!=null?t:!1},y)),
"overlay-density":function(){return String(a())},
el:b},_.M("div",{class:_.P2("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(N.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},N))},_.M("div",{"aria-hidden":function(){return X()},
class:_.P2("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return X()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.n9({"transition-duration":function(){return pUN(h())}})},_.M(_.rC,{data:function(){return h().adMetadata}},{reelsAdMetadataViewModel:function(t){return _.M(Sqw,{data:t.data,
expansive:function(){return a()===1}})}}),_.M(_.H,{cond:function(){return h().extension},
then:function(t){return _.M("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.M(_.rC,{data:t},{adButtonViewModel:function(R){return _.M(_.iH,{data:R.data,animationEntityKey:K,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(R){return _.M(mRG,{data:R.data,animationEntityKey:K,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return a()===1}})}}))}})),_.M("div",{"aria-hidden":function(){return!X()},
class:_.P2("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return X()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.n9({"transition-duration":function(){return pUN(h())}})},_.M(_.rC,{data:function(){return h().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(t){return _.M(yM5,{data:t.data,
onShow:function(){_.vl(_.R7("booleanEntity",P(),{key:P(),value:!0}))},
expansive:function(){var R;return(R=S==null?void 0:S())!=null?R:!1}})}}))),_.M("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.M(_.rC,{data:function(){return h().actions}},{reelActionBarViewModel:function(t){return _.M(_.bma,{data:t.data,
buttonShapeOverrideables:O})}}),_.M(_.rC,{data:function(){return h().menu}},{buttonViewModel:function(t){return _.M(_.EG,{data:t.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},{type:"tonal"},O())}})}}),_.M(_.rC,{data:function(){return h().pivotButton}},{pivotButtonViewModel:function(t){return _.M(_.vQN,{data:t.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"Jc");_.yd(ad8,"reels-player-overlay-layout-view-model",{props:{data:_.D4,overlayDensity:_.D4,extractOverlay:_.D4,extractActionBar:_.D4}});var dp=function(){var b=_.g.apply(this,arguments)||this;b.noBottomMargin=!1;b.overlayDensity=0;b.extractOverlay=!1;b.extractActionBar=!1;return b};
_.z(dp,_.g);_.d=dp.prototype;
_.d.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonedLayoutViewModel:{component:"video-display-compact-buttoned-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactLayoutViewModel:{component:"video-display-compact-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",textImageNoButtonLayoutViewModel:"text-image-no-button-layout-view-model",
promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.r("enable_short_dr_for_desktop_launchable")?{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}}:"ytd-video-display-full-buttoned-renderer",videoDisplayButtonGroupRenderer:{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},
textImageNoButtonLayoutRenderer:"ytd-text-image-no-button-layout-renderer",reelsPlayerOverlayLayoutViewModel:{component:"reels-player-overlay-layout-view-model",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.d.ready=function(){var b=this;iyy(function(){b.isAttached&&vC(b.JSC$15863_storedAdSlotMetadata,b.JSC$15863_storedAdLayoutMetadata,b.adSlotMetadata,b.adLayoutMetadata)&&F1(yz(),b.JSC$15863_storedAdSlotMetadata,b.JSC$15863_storedAdLayoutMetadata)})};
_.d.attached=function(){vC(this.JSC$15863_storedAdSlotMetadata,this.JSC$15863_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&VOG(yz(),this.JSC$15863_storedAdSlotMetadata,this.JSC$15863_storedAdLayoutMetadata)};
_.d.detached=function(){vC(this.JSC$15863_storedAdSlotMetadata,this.JSC$15863_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&F1(yz(),this.JSC$15863_storedAdSlotMetadata,this.JSC$15863_storedAdLayoutMetadata)};
_.d.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.d.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15863_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15863_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15863_storedAdLayoutMetadata!==void 0&&this.JSC$15863_storedAdSlotMetadata!==void 0&&F1(yz(),this.JSC$15863_storedAdSlotMetadata,this.JSC$15863_storedAdLayoutMetadata),VOG(yz(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15863_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15863_storedAdSlotMetadata=this.adSlotMetadata)};
_.tm.Object.defineProperties(dp.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var b;return(b=this.data)==null?void 0:b.adLayoutMetadata}}});
dp.prototype.onAdMetadataChanged=dp.prototype.onAdMetadataChanged;dp.prototype.onTypographyBumpChanged=dp.prototype.onTypographyBumpChanged;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],dp.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],dp.prototype,"rendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],dp.prototype,"ytComponentBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],dp.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],dp.prototype,"noBottomMargin",void 0);_.V([_.C(),_.f("design:type",Object)],dp.prototype,"overlayDensity",void 0);_.V([_.C(),_.f("design:type",Object)],dp.prototype,"extractOverlay",void 0);_.V([_.C(),_.f("design:type",Object)],dp.prototype,"extractActionBar",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],dp.prototype,"typographyBump",void 0);
_.V([_.W("data.adLayoutMetadata"),_.f("design:type",Object),_.f("design:paramtypes",[])],dp.prototype,"adLayoutMetadata",null);_.V([_.C(),_.f("design:type",Object)],dp.prototype,"adSlotMetadata",void 0);_.V([_.to("ytd-video-display-full-buttoned-and-button-group-renderer"),_.f("design:type",HTMLElement)],dp.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);
_.V([_.OB("typographyBump"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],dp.prototype,"onTypographyBumpChanged",null);_.V([_.OB("adLayoutMetadata","adSlotMetadata"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],dp.prototype,"onAdMetadataChanged",null);_.V([_.Yx({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],dp);
_.k(dp,"ytd-in-feed-ad-layout-renderer",function(){if(fJe!==void 0)return fJe;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return fJe=b},
{mode:_.Lt("kevlar_poly_si_batch_j028")?1:2});var d_w;var jK8;_.yd(_.xw,"ad-badge-view-model",{props:{data:_.D4,hasDot:_.D4,customCommandResolver:_.v3,adRenderingContextType:_.v3,usedInMasthead:_.v3}});_.yd(_.iH,"ad-button-view-model",{props:{data:_.D4,customCommandResolver:_.v3,className:_.v3,delayedClassName:_.v3,animationEntityKey:_.v3,isCompactWidth:_.v3,isContentWidth:_.v3}});var jq=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return b};
_.z(jq,_.g);_.d=jq.prototype;_.d.computeHasLiveDescription=function(b){return!(b==null||!b.liveDescription)};
_.d.computeHasByline=function(b){return!(b==null||!b.byline)};
_.d.computeUsesAdButtonViewModel=function(b){return!!_.c(b==null?void 0:b.cta,gRa)};
_.d.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"}}}}}};
_.d.onYtToggleButton=function(b){var h,y=(h=this.data)==null?void 0:h.videoReminderEntityKey;y&&this.ytdReduxBehavior.dispatch(_.R7("upcomingEventReminderStateEntity",y,{key:y,state:b.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.d.attached=function(){this.updateChannelBanner()};
_.d.dataChanged=function(){this.updateChannelBanner()};
_.d.videoReminderStateChanged=function(){var b;this.videoReminderState&&_.c((b=this.data)==null?void 0:b.cta,_.Nu)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.d.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var b=_.Ss(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);b&&(b.startsWith("//")&&(b="https:"+b),this.hostElement.classList.add("channel-banner"),_.nZ(this.hostElement,{"--ytvmh-channel-banner":"url("+b+")"}))}else _.r("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.d.onPlayerReady=function(){this.onIronResize()};
_.d.maybeFlushDebouncer=function(){_.r("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(b){var h;b=(h=b.getElementsByTagName("yt-attributed-string"))==null?void 0:h[0];WHM(b==null?void 0:b.polymerController)})};
_.d.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var b=_.$x(this.hostElement).querySelector("#live-description"),h;b&&((h=this.data)==null?0:h.shortLiveDescription)&&b.clientWidth<b.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
jq.prototype.onIronResize=jq.prototype.onIronResize;jq.prototype.videoReminderStateChanged=jq.prototype.videoReminderStateChanged;jq.prototype.dataChanged=jq.prototype.dataChanged;jq.prototype.onYtToggleButton=jq.prototype.onYtToggleButton;_.V([_.B(_.ab),_.f("design:type",Object)],jq.prototype,"ironResizableBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],jq.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],jq.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],jq.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],jq.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],jq.prototype,"data",void 0);_.V([_.C({selectorArgs:["data.videoReminderEntityKey"],selector:iYF}),_.f("design:type",Object)],jq.prototype,"videoReminderState",void 0);
_.V([_.C({reflectToAttribute:!0,value:_.r("web_modern_buttons")}),_.f("design:type",Boolean)],jq.prototype,"rounded",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.f("design:type",Boolean)],jq.prototype,"hasLiveDescription",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.f("design:type",Boolean)],jq.prototype,"hasByline",void 0);
_.V([_.C({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.f("design:type",String)],jq.prototype,"adRenderingContextType",void 0);_.V([_.C({value:!0}),_.f("design:type",Boolean)],jq.prototype,"isMasthead",void 0);_.V([_.C({computed:"computeUsesAdButtonViewModel(data)"}),_.f("design:type",Boolean)],jq.prototype,"usesAdButtonViewModel",void 0);
_.V([_.C({reflectToAttribute:!0,value:_.r("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.f("design:type",Boolean)],jq.prototype,"resizableAdBannerSafariFix",void 0);_.V([_.ry("yt-formatted-string"),_.f("design:type",Array)],jq.prototype,"formattedStrings",void 0);_.V([_.to("#cta-button"),_.f("design:type",HTMLElement)],jq.prototype,"ctaButton",void 0);
_.V([_.u3("yt-toggle-button"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],jq.prototype,"onYtToggleButton",null);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],jq.prototype,"dataChanged",null);_.V([_.OB("videoReminderState"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],jq.prototype,"videoReminderStateChanged",null);
_.V([_.u3("iron-resize"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],jq.prototype,"onIronResize",null);_.V([_.Yx({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],jq);
_.k(jq,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(jK8!==void 0)return jK8;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return jK8=b},{mode:1});var $_w;var $M=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};b.isLocked=!1;return b};
_.z($M,_.g);_.d=$M.prototype;_.d.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.d.onExpandedChanged=function(){this.expanded&&_.aw(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.d.onMouseOver=function(){this.maybeExpand()};
_.d.onTap=function(){this.maybeExpand()};
_.d.onExpandableTileExpanding=function(b){b!==this&&(this.expanded=!1)};
_.d.onExpandableTileLockAndCollapse=function(b){this.isLocked=!0;b!==this&&(this.expanded=!1)};
_.d.onExpandableTileUnlock=function(){this.isLocked=!1};
$M.prototype.onTap=$M.prototype.onTap;$M.prototype.onMouseOver=$M.prototype.onMouseOver;$M.prototype.onExpandedChanged=$M.prototype.onExpandedChanged;_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],$M.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],$M.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],$M.prototype,"data",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],$M.prototype,"expanded",void 0);_.V([_.zj("expanded"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],$M.prototype,"onExpandedChanged",null);_.V([_.u3("mouseover"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],$M.prototype,"onMouseOver",null);_.V([_.u3("tap"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],$M.prototype,"onTap",null);
_.V([_.Yx({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],$M);
_.k($M,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if($_w!==void 0)return $_w;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return $_w=b},{mode:1});var LTa;var LX=function(){var b=_.g.apply(this,arguments)||this;b.buttonOverrides={style:"overlay"};b.useYtdPlayer=_.r("use_ytd_player_for_desktop_masthead");b.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};b.playbackFinished=!1;b.JSC$15877_playerManager=null;b.JSC$15877_mastheadCounter=new hvG;return b};
_.z(LX,_.g);_.d=LX.prototype;_.d.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"}}}};
_.d.created=function(){this.JSC$15877_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15877_playerManager=new SS)};
_.d.ready=function(){var b=this;this.JSC$15877_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var h=_.$x(this.hostElement).querySelector("#player");this.useYtdPlayer?h.style.display="none":(this.ytdPlayer.style.display="none",qI7(this.JSC$15877_playerManager,h,function(){b.onPlaybackEnded()}),_.$x(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var y;
((y=b.data)==null?0:y.navigationEndpoint)&&_.Sx(b.hostElement,"yt-navigate",{endpoint:b.data.navigationEndpoint})}))};
_.d.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15877_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.d.attached=function(){var b=this;_.fZ(function(){b.maybePlayVideo()})};
_.d.maybePlayVideo=function(){var b=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$15877_playerManager.playVideo(),this.getPlayerPromise().then(function(){b.JSC$15877_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.d.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15877_playerManager.stopVideo()};
_.d.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var b,h={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((b=this.data.playbackStartMs)!=null?b:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(h);this.setupYtdPlayer()}else QuW(this.JSC$15877_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(x3a(this.JSC$15877_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.d.getPlayerPromise=function(){return this.JSC$15877_playerManager.getPlayerPromise()};
_.d.onYtToggleButton=function(b){this.useYtdPlayer?this.toggleMute(b.detail.toggled):b.detail.toggled?this.JSC$15877_playerManager.mute():this.JSC$15877_playerManager.unMute()};
_.d.onYtNavigate=function(b){var h=Z1N(b.detail.endpoint),y=oIf(this.data.clickthroughReportingData);h&&y&&(b.detail.endpoint.watchEndpoint?b.detail.tempData=y:_.QB(h,y,30))};
_.d.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.d.onExpandedChanged=function(){this.expanded?(_.aw(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.d.onMouseOver=function(){this.maybeExpand()};
_.d.onTap=function(){this.maybeExpand()};
_.d.onExpandableTileExpanding=function(b){b!==this&&(this.stopVideo(),this.expanded=!1)};
_.d.onExpandableTileLockAndCollapse=function(b){b!==this&&(this.isLocked=!0,this.expanded=!1)};
_.d.onExpandableTileUnlock=function(){this.isLocked=!1};
_.d.lockAndCollapseExpandableTiles=function(){_.F8(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.d.unlockExpandableTiles=function(){_.F8(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.d.setupYtdPlayer=function(){var b=this,h;return _.Z(function(y){if(y.nextAddress==1)return y.yield(b.ytdPlayer.getPlayerPromise(),2);h=y.yieldResult;h.addEventListener("onStateChange",function(S){b.onPlayerStateChange(S)});
h.addEventListener("onCueRangeExit",function(S){b.onCueRangeExit(S)});
_.g3(y)})};
_.d.onPlayerStateChange=function(b){if(b===1&&(b=this.ytdPlayer.getPlayer())){var h=b.getCurrentTime(),y,S,F=h+((S=(y=this.data)==null?void 0:y.playbackDurationMs)!=null?S:0)/1E3;b.addCueRange("playback",h,F);this.JSC$15877_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.d.onCueRangeExit=function(b){b==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.d.toggleMute=function(b){var h=this,y;return _.Z(function(S){if(S.nextAddress==1)return S.yield(h.ytdPlayer.getPlayerPromise(),2);y=S.yieldResult;b?y.mute():y.unMute();_.g3(S)})};
LX.prototype.onTap=LX.prototype.onTap;LX.prototype.onMouseOver=LX.prototype.onMouseOver;LX.prototype.onExpandedChanged=LX.prototype.onExpandedChanged;LX.prototype.onYtNavigate=LX.prototype.onYtNavigate;LX.prototype.onYtToggleButton=LX.prototype.onYtToggleButton;LX.prototype.dataChanged=LX.prototype.dataChanged;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],LX.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],LX.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],LX.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],LX.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],LX.prototype,"expanded",void 0);_.V([_.C(),_.f("design:type",Object)],LX.prototype,"buttonOverrides",void 0);
_.V([_.C(),_.f("design:type",Object)],LX.prototype,"useYtdPlayer",void 0);_.V([_.to("#ytd-player"),_.f("design:type",Object)],LX.prototype,"ytdPlayer",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],LX.prototype,"dataChanged",null);_.V([_.u3("yt-toggle-button"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],LX.prototype,"onYtToggleButton",null);
_.V([_.u3("yt-navigate"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],LX.prototype,"onYtNavigate",null);_.V([_.zj("expanded"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],LX.prototype,"onExpandedChanged",null);_.V([_.u3("mouseover"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],LX.prototype,"onMouseOver",null);
_.V([_.u3("tap"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],LX.prototype,"onTap",null);_.V([_.Yx({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],LX);
_.k(LX,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(LTa!==void 0)return LTa;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return LTa=b},{mode:1});var PW8;var Px=function(){return _.g.apply(this,arguments)||this};
_.z(Px,_.g);Px.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Px.prototype.onShow=function(){var b=_.$x(this.hostElement).querySelector("#live-description"),h;b&&((h=this.data)==null?0:h.shortLiveDescription)&&b.clientWidth<b.scrollWidth&&this.hostElement.classList.add("short-live-description")};
Px.prototype.onYtToggleButton=function(b){var h,y=(h=this.data)==null?void 0:h.videoReminderEntityKey;y&&this.ytdReduxBehavior.dispatch(_.R7("upcomingEventReminderStateEntity",y,{key:y,state:b.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
Px.prototype.videoReminderStateChanged=function(){var b;this.videoReminderState&&_.c((b=this.data)==null?void 0:b.cta,_.Nu)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
Px.prototype.videoReminderStateChanged=Px.prototype.videoReminderStateChanged;Px.prototype.onYtToggleButton=Px.prototype.onYtToggleButton;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Px.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Px.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],Px.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Px.prototype,"data",void 0);
_.V([_.C({selectorArgs:["data.videoReminderEntityKey"],selector:iYF}),_.f("design:type",Object)],Px.prototype,"videoReminderState",void 0);_.V([_.u3("yt-toggle-button"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],Px.prototype,"onYtToggleButton",null);_.V([_.OB("videoReminderState"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Px.prototype,"videoReminderStateChanged",null);
_.V([_.Yx({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],Px);
_.k(Px,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(PW8!==void 0)return PW8;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return PW8=b},{mode:_.Lt("kevlar_poly_si_batch_j065")?1:2});var KTP;var KX=function(){var b=_.g.apply(this,arguments)||this;b.useYtdPlayer=_.r("use_ytd_player_for_desktop_masthead");b.buttonOverrides={style:"overlay"};b.JSC$15885_playerManager=null;b.JSC$15885_mastheadCounter=new hvG;b.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return b};
_.z(KX,_.g);_.d=KX.prototype;_.d.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"}}}};
_.d.created=function(){this.JSC$15885_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15885_playerManager=new SS)};
_.d.ready=function(){var b=this;this.JSC$15885_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var h;(h=this.embeddedPlayer)==null||h.remove()}else{var y;(y=this.ytdPlayer)==null||y.remove();qI7(this.JSC$15885_playerManager,this.embeddedPlayer,function(){b.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){b.data&&b.data.navigationEndpoint&&_.Sx(b.hostElement,"yt-navigate",{endpoint:b.data.navigationEndpoint})})}};
_.d.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15885_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.d.dataChanged=function(){var b=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var h=!this.data.disableAutoPlayback,y,S={autoplay:h,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((y=this.data.playbackStartMs)!=null?y:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(h?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(S);this.setupYtdPlayer()}else QuW(this.JSC$15885_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(x3a(this.JSC$15885_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15885_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.F8(b.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");b.JSC$15885_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.d.getPlayerPromise=function(){return this.JSC$15885_playerManager.getPlayerPromise()};
_.d.onYtToggleButton=function(b){this.useYtdPlayer?this.toggleMute(b.detail.toggled):b.detail.toggled?this.JSC$15885_playerManager.mute():this.JSC$15885_playerManager.unMute()};
_.d.onYtNavigate=function(b){var h=Z1N(b.detail.endpoint),y=oIf(this.data.clickthroughReportingData);h&&y&&(b.detail.endpoint.watchEndpoint?b.detail.tempData=y:_.QB(h,y,30))};
_.d.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15885_playerManager.stopVideo()};
_.d.setupYtdPlayer=function(){var b=this,h;return _.Z(function(y){if(y.nextAddress==1)return y.yield(b.ytdPlayer.getPlayerPromise(),2);h=y.yieldResult;h.addEventListener("onStateChange",function(S){b.onPlayerStateChange(S)});
h.addEventListener("onCueRangeExit",function(S){b.onCueRangeExit(S)});
_.g3(y)})};
_.d.onPlayerStateChange=function(b){if(b===1&&(b=this.ytdPlayer.getPlayer())){var h=b.getCurrentTime(),y,S,F=h+((S=(y=this.data)==null?void 0:y.playbackDurationMs)!=null?S:0)/1E3;b.addCueRange("playback",h,F);_.F8(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15885_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.d.onCueRangeExit=function(b){b==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.d.toggleMute=function(b){var h=this,y;return _.Z(function(S){if(S.nextAddress==1)return S.yield(h.ytdPlayer.getPlayerPromise(),2);y=S.yieldResult;b?y.mute():y.unMute();_.g3(S)})};
_.tm.Object.defineProperties(KX.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var b,h;if(!((b=this.data)==null?0:(h=b.accessibilityData)==null?0:h.label))return"Ad primary link";var y,S;return _.Mt("AD_TITLE",{title:(y=this.data)==null?void 0:(S=y.accessibilityData)==null?void 0:S.label})}}});
KX.prototype.onYtMastheadHidden=KX.prototype.onYtMastheadHidden;KX.prototype.onYtNavigate=KX.prototype.onYtNavigate;KX.prototype.onYtToggleButton=KX.prototype.onYtToggleButton;KX.prototype.dataChanged=KX.prototype.dataChanged;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],KX.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],KX.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],KX.prototype,"ytActionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],KX.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],KX.prototype,"useYtdPlayer",void 0);_.V([_.to("ytd-toggle-button-renderer"),_.f("design:type",Object)],KX.prototype,"muteButton",void 0);_.V([_.C(),_.f("design:type",Object)],KX.prototype,"buttonOverrides",void 0);
_.V([_.W("data.accessibilityData.label"),_.f("design:type",String),_.f("design:paramtypes",[])],KX.prototype,"titleAriaLabel",null);_.V([_.to("#replay-button"),_.f("design:type",Object)],KX.prototype,"replayButton",void 0);_.V([_.to("#player-container"),_.f("design:type",Object)],KX.prototype,"playerContainer",void 0);_.V([_.to("#player"),_.f("design:type",Object)],KX.prototype,"embeddedPlayer",void 0);_.V([_.to("#ytd-player"),_.f("design:type",Object)],KX.prototype,"ytdPlayer",void 0);
_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],KX.prototype,"dataChanged",null);_.V([_.u3("yt-toggle-button"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],KX.prototype,"onYtToggleButton",null);_.V([_.u3("yt-navigate"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],KX.prototype,"onYtNavigate",null);
_.V([_.u3("yt-masthead-hidden"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],KX.prototype,"onYtMastheadHidden",null);_.V([_.Yx({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],KX);
_.k(KX,"ytd-video-masthead-ad-primary-video-renderer",function(){if(KTP!==void 0)return KTP;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return KTP=b},{mode:2});var Zma;var X1=function(){var b=_.g.apply(this,arguments)||this;b.collapsed=!1;b.impressionResolver=_.wS();b.JSC$15889_activeViewMeasurementDataResolver=_.wS();b.actionMap={"yt-mute-ad-action":"handleMuteAd"};return b};
_.z(X1,_.g);_.d=X1.prototype;_.d.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"}}}};
_.d.created=function(){this.activeView=new ff(this.hostElement)};
_.d.ready=function(){var b=this;_.$x(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){b.expandAd()});
this.hostElement.addEventListener("yt-action",function(h){if(h.detail.actionName==="yt-service-request"){var y=h.detail.args[1];y.videoMastheadAdMuteCommand&&(b.collapseAd(y.videoMastheadAdMuteCommand.encryptedMastheadId),h.stopPropagation())}})};
_.d.attached=function(){var b=this;_.fZ(function(){b.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(h){if(!b.collapsed){h=_.L(h);for(var y=h.next();!y.done;y=h.next())y=y.value,LK(y.baseUrl,y.attributionSrcMode);b.data.impressionCommand=void 0}});
this.JSC$15889_activeViewMeasurementDataResolver.promise.then(function(h){wP(b.activeView,h)});
_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&lw(b.activeView)})};
_.d.dataChanged=function(){var b;((b=this.data.impressionCommand)==null?0:b.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var h;((h=this.data)==null?0:h.activeView)&&this.JSC$15889_activeViewMeasurementDataResolver.resolve(this.data.activeView);(b=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(b.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.d.computeWidescreen=function(b){var h;return!!(b&&((h=_.c(b,WDN))==null?0:h.isWidescreen))};
_.d.computeExpandable=function(b){return!!(b&&b.length>0)};
_.d.onIronResize=function(){if(this.expandable){var b=_.$x(this.hostElement).querySelector("#expandable-tile-container :first-child");b&&!b.expanded&&(b.expanded=!0)}};
_.d.handleMuteAd=function(){this.collapseAd(null)};
_.d.restoreCollapsedState=function(b){this.collapsed=_.HT().get("HIDDEN_MASTHEAD_ID")===b};
_.d.collapseAd=function(b){if(b){var h=_.HT();h.set("HIDDEN_MASTHEAD_ID",b);h.save()}(b=_.$x(this.hostElement).querySelector("#video"))&&_.Sx(b,"yt-masthead-hidden");this.collapsed=!0};
_.d.expandAd=function(){var b=_.HT();b.set("HIDDEN_MASTHEAD_ID",!1);b.save();location.reload()};
_.d.detached=function(){_.r("stop_av_measurement_on_detach")&&lw(this.activeView)};
X1.prototype.onIronResize=X1.prototype.onIronResize;X1.prototype.dataChanged=X1.prototype.dataChanged;_.V([_.B(_.ab),_.f("design:type",Object)],X1.prototype,"ironResizableBehavior",void 0);_.V([_.B(_.Rp),_.f("design:type",Object)],X1.prototype,"ytdGridStateAwareBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],X1.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],X1.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],X1.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],X1.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.f("design:type",Boolean)],X1.prototype,"widescreen",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.f("design:type",Boolean)],X1.prototype,"expandable",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],X1.prototype,"collapsed",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],X1.prototype,"dataChanged",null);_.V([_.u3("iron-resize"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],X1.prototype,"onIronResize",null);_.V([_.Yx({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],X1);
_.k(X1,"ytd-video-masthead-ad-v3-renderer",function(){if(Zma!==void 0)return Zma;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return Zma=b},{mode:2});var Hx=function(){return _.g.apply(this,arguments)||this};
_.z(Hx,_.g);_.d=Hx.prototype;_.d.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.d.ready=function(){var b=this;iyy(function(){b.isAttached&&vC(b.JSC$15894_storedAdSlotMetadata,b.JSC$15894_storedAdLayoutMetadata,b.adSlotMetadata,b.adLayoutMetadata)&&F1(yz(),b.JSC$15894_storedAdSlotMetadata,b.JSC$15894_storedAdLayoutMetadata)})};
_.d.attached=function(){vC(this.JSC$15894_storedAdSlotMetadata,this.JSC$15894_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&VOG(yz(),this.JSC$15894_storedAdSlotMetadata,this.JSC$15894_storedAdLayoutMetadata)};
_.d.detached=function(){vC(this.JSC$15894_storedAdSlotMetadata,this.JSC$15894_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&F1(yz(),this.JSC$15894_storedAdSlotMetadata,this.JSC$15894_storedAdLayoutMetadata)};
_.d.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15894_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15894_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15894_storedAdLayoutMetadata!==void 0&&this.JSC$15894_storedAdSlotMetadata!==void 0&&F1(yz(),this.JSC$15894_storedAdSlotMetadata,this.JSC$15894_storedAdLayoutMetadata),VOG(yz(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15894_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15894_storedAdSlotMetadata=this.adSlotMetadata)};
_.tm.Object.defineProperties(Hx.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var b;return(b=this.data)==null?void 0:b.adLayoutMetadata}}});
Hx.prototype.onAdMetadataChanged=Hx.prototype.onAdMetadataChanged;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Hx.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],Hx.prototype,"ytComponentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Hx.prototype,"data",void 0);_.V([_.W("data.adLayoutMetadata"),_.f("design:type",Object),_.f("design:paramtypes",[])],Hx.prototype,"adLayoutMetadata",null);
_.V([_.C(),_.f("design:type",Object)],Hx.prototype,"adSlotMetadata",void 0);_.V([_.OB("adLayoutMetadata","adSlotMetadata"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Hx.prototype,"onAdMetadataChanged",null);_.V([_.Yx({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],Hx);
_.k(Hx,"ytd-page-top-ad-layout-renderer",function(){if(d_w!==void 0)return d_w;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return d_w=
b},{mode:_.Lt("kevlar_poly_si_batch_j070")?1:2});var oKP;var uQ=function(){var b=_.g.apply(this,arguments)||this;b.noBottomMargin=!1;b.overlayDensity=0;b.typographyBump=!1;b.extractOverlay=!1;b.extractActionBar=!1;return b};
_.z(uQ,_.g);_.d=uQ.prototype;
_.d.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]]"}}}}}};
_.d.ready=function(){var b=this;iyy(function(){b.isAttached&&b.adSlotMetadata&&kz8(yz(),b.adSlotMetadata)})};
_.d.attached=function(){if(this.adSlotMetadata){var b;if(this.adSlotMetadata===((b=this.data)==null?void 0:b.adSlotMetadata))Gza(yz(),this.adSlotMetadata);else{var h;_.vX(Error("Ph`"+this.adSlotMetadata+"`"+((h=this.data)==null?void 0:h.adSlotMetadata)))}}};
_.d.detached=function(){this.adSlotMetadata&&kz8(yz(),this.adSlotMetadata)};
_.d.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.d.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&kz8(yz(),this.adSlotMetadata),Gza(yz(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.tm.Object.defineProperties(uQ.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var b,h,y=_.c((b=this.data)==null?void 0:(h=b.fulfillmentContent)==null?void 0:h.fulfilledLayout,_.U8b),S;return(b=(S=_.c(y==null?void 0:y.renderingContent,Aq8))==null?void 0:S.layout)?b.toLowerCase().replace(/_/g,"-"):""}}});
uQ.prototype.onAdSlotMetadataChanged=uQ.prototype.onAdSlotMetadataChanged;uQ.prototype.onTypographyBumpChanged=uQ.prototype.onTypographyBumpChanged;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],uQ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],uQ.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],uQ.prototype,"rendererBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],uQ.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],uQ.prototype,"noBottomMargin",void 0);_.V([_.C(),_.f("design:type",Object)],uQ.prototype,"overlayDensity",void 0);_.V([_.C(),_.f("design:type",Object)],uQ.prototype,"typographyBump",void 0);_.V([_.C(),_.f("design:type",Object)],uQ.prototype,"extractOverlay",void 0);_.V([_.C(),_.f("design:type",Object)],uQ.prototype,"extractActionBar",void 0);
_.V([_.to("ytd-in-feed-ad-layout-renderer"),_.f("design:type",HTMLElement)],uQ.prototype,"inFeedAdLayoutRenderer",void 0);_.V([_.C({reflectToAttribute:!0}),_.W("data"),_.f("design:type",String),_.f("design:paramtypes",[])],uQ.prototype,"layout",null);_.V([_.OB("typographyBump"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],uQ.prototype,"onTypographyBumpChanged",null);
_.V([_.OB("data.adSlotMetadata"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],uQ.prototype,"onAdSlotMetadataChanged",null);_.V([_.Yx({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],uQ);
_.k(uQ,"ytd-ad-slot-renderer",function(){if(oKP!==void 0)return oKP;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return oKP=b},{mode:_.Lt("kevlar_poly_si_batch_j077")?
1:2});var M_7;var OH=function(){return _.g.apply(this,arguments)||this};
_.z(OH,_.g);_.d=OH.prototype;_.d.created=function(){this.activeView=new ff(this.hostElement)};
_.d.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"}}}};
_.d.maybeComputeHref=function(){return null};
_.d.onTap=function(){};
_.d.onThumbnailContainerClick=function(b){this.onClick(b)};
_.d.onClick=function(b){var h,y=(h=this.data)==null?void 0:h.navigationEndpoint;y&&_.c(y,_.wO)&&(this.ytSparklesClickLocationBehavior.handleClick(y,b,!1),b.stopPropagation())};
_.d.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var b=_.L(this.data.impressionUrls),h=b.next();!h.done;h=b.next())h=h.value,hkU(h,SQ8(h));this.data.activeView&&wP(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",OH.JSC$15902_DEFAULT_CLICK_LOCATION_BEHAVIOR,OH.JSC$15902_CLICK_LOCATION_ID_MAP);this.thumbnail&&(b=this.thumbnail.getElementsByTagName("a"),b.length>0&&(b=b.namedItem("thumbnail"))&&b.removeAttribute("href"))}};
_.d.attached=function(){var b=this;_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&lw(b.activeView)})};
_.d.detached=function(){_.r("stop_av_measurement_on_detach")&&lw(this.activeView)};
_.tm.Object.defineProperties(OH.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.r("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.r("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
OH.prototype.dataChanged=OH.prototype.dataChanged;OH.prototype.onTap=OH.prototype.onTap;OH.JSC$15902_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
OH.JSC$15902_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"}];_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],OH.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],OH.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],OH.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],OH.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.TO.YtSparklesClickLocationBehavior),_.f("design:type",Object)],OH.prototype,"ytSparklesClickLocationBehavior",void 0);
_.V([_.C({selector:_.C9}),_.f("design:type",Object)],OH.prototype,"isGridViewEnabled",void 0);_.V([_.W("isGridViewEnabled"),_.C({reflectToAttribute:!0}),_.f("design:type",Boolean),_.f("design:paramtypes",[])],OH.prototype,"watchFeedBigThumbs",null);_.V([_.W("isGridViewEnabled"),_.C({reflectToAttribute:!0}),_.f("design:type",String),_.f("design:paramtypes",[])],OH.prototype,"thumbnailWidth",null);_.V([_.C(),_.f("design:type",Object)],OH.prototype,"data",void 0);
_.V([_.to("ytd-thumbnail"),_.f("design:type",HTMLElement)],OH.prototype,"thumbnail",void 0);_.V([_.u3("tap"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],OH.prototype,"onTap",null);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],OH.prototype,"dataChanged",null);_.V([_.Yx({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],OH);
_.k(OH,"ytd-compact-promoted-video-renderer",function(){if(M_7!==void 0)return M_7;var b=document.createElement("template");_.D(b,'\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>');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return M_7=b},{mode:1});var nKP;_.W2("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var Nj=function(){return _.g.apply(this,arguments)||this};
_.z(Nj,_.g);Nj.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Nj.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Nj.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Nj.prototype,"data",void 0);_.V([_.Yx({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],Nj);
_.k(Nj,"ytd-search-pyv-renderer",function(){if(nKP!==void 0)return nKP;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return nKP=b},{mode:1});var XGe;_.W2("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var ta=function(){var b=_.g.apply(this,arguments)||this;b.roundedContainer=!0;b.JSC$15910_handleOpenPostCommentDialogActionAfterStamp=!1;b.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return b};
_.z(ta,_.g);_.d=ta.prototype;
_.d.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}}};
_.d.onStampFinished=function(){this.JSC$15910_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.d.handleSignalActionOpenPostCommentDialogAction=function(){var b=_.$x(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");b?b.openDialog():this.JSC$15910_handleOpenPostCommentDialogActionAfterStamp=!0};
_.d.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.d.computeHideBorder=function(){return this.isInEngagementPanel};
_.d.computeIsCompact=function(){return this.isInEngagementPanel};
_.d.computeUsesCompactLockup=function(b){return b==="BACKSTAGE_SURFACE_TYPE_HOME"||b==="BACKSTAGE_SURFACE_TYPE_SEARCH"||b==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||b==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||b==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||b==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.d.computeUsesFullLockup=function(){var b,h=(b=this.data)==null?void 0:b.post,y;b=(y=_.c(h,iH8))==null?void 0:y.surface;var S;y=(S=_.c(h,l6N))==null?void 0:S.originalPost;var F;if(S=b||((F=_.c(y,iH8))==null?void 0:F.surface))return!this.computeUsesCompactLockup(S)&&this.useUpdatedRepostUi;var a;return((a=_.c(h,l6N))==null?void 0:a.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.tm.Object.defineProperties(ta.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var b,h;return((h=_.c((b=this.data)==null?void 0:b.post,iH8))==null?void 0:h.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var b;return(b=this.data)==null?void 0:b.useUpdatedRepostUi}}});
ta.prototype.onYtCommentModerationPanelEmpty=ta.prototype.onYtCommentModerationPanelEmpty;ta.prototype.onStampFinished=ta.prototype.onStampFinished;_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],ta.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],ta.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],ta.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],ta.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],ta.prototype,"roundedContainer",void 0);_.V([_.C({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.f("design:type",Boolean)],ta.prototype,"hideBorder",void 0);_.V([_.C({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.f("design:type",Boolean)],ta.prototype,"isCompact",void 0);
_.V([_.C({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.f("design:type",Boolean)],ta.prototype,"usesFullLockup",void 0);_.V([_.u3("yt-rendererstamper-finished"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],ta.prototype,"onStampFinished",null);
_.V([_.u3("ytd-comment-moderation-panel-empty"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],ta.prototype,"onYtCommentModerationPanelEmpty",null);_.V([_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],ta.prototype,"isInEngagementPanel",null);_.V([_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],ta.prototype,"useUpdatedRepostUi",null);
_.V([_.Yx({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],ta);
_.k(ta,"ytd-backstage-post-thread-renderer",function(){if(XGe!==void 0)return XGe;var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return XGe=b},{mode:1});var Hm5;var rp=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return b};
_.z(rp,_.g);rp.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
rp.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var b=this.data.thumbnail.thumbnails;this.isDarkTheme&&(b=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(b=_.Ss(b,24,void 0,"height"))?b:void 0}};
rp.prototype.onDarkModeToggledAction=function(b){this.isDarkTheme=b};
rp.prototype.computeHasText=function(){var b;return!((b=this.data)==null||!b.text)};
_.tm.Object.defineProperties(rp.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.lJ(this.bannerImageUrl))+'");'}}});
rp.prototype.computeHasText=rp.prototype.computeHasText;rp.prototype.computeBannerImageUrl=rp.prototype.computeBannerImageUrl;_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],rp.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],rp.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],rp.prototype,"ytRendererBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],rp.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Boolean)],rp.prototype,"isDarkTheme",void 0);_.V([_.C(),_.f("design:type",String)],rp.prototype,"bannerImageUrl",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.f("design:type",Boolean)],rp.prototype,"hasText",void 0);_.V([_.OB("data","isDarkTheme"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],rp.prototype,"computeBannerImageUrl",null);
_.V([_.OB("data.text"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],rp.prototype,"computeHasText",null);_.V([_.W("bannerImageUrl"),_.f("design:type",Object),_.f("design:paramtypes",[])],rp.prototype,"bannerStyle",null);_.V([_.Yx({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],rp);
_.k(rp,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(Hm5!==void 0)return Hm5;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return Hm5=b},{mode:1});var uDo;var cx=function(){return _.g.apply(this,arguments)||this};
_.z(cx,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],cx.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],cx.prototype,"data",void 0);_.V([_.Yx({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],cx);
_.k(cx,"ytd-backstage-zero-state-renderer",function(){if(uDo!==void 0)return uDo;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return uDo=b},{mode:1});var OmW;var R9=function(){return _.g.apply(this,arguments)||this};
_.z(R9,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],R9.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],R9.prototype,"data",void 0);_.V([_.C({computed:"computeIcon_(data.icon)"}),_.f("design:type",String)],R9.prototype,"icon",void 0);_.V([_.Yx({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],R9);
_.k(R9,"ytd-post-filter-zero-state-renderer",function(){if(OmW!==void 0)return OmW;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return OmW=b},{mode:1});var NuN;var t_a={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},ze=function(){return _.g.apply(this,arguments)||this};
_.z(ze,_.g);ze.prototype.configureRendererStamper=function(){return t_a};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],ze.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],ze.prototype,"rendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],ze.prototype,"data",void 0);_.V([_.C({computed:"computeIcon_(data.icon)"}),_.f("design:type",String)],ze.prototype,"icon",void 0);_.V([_.Yx({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],ze);
_.k(ze,"ytd-post-scheduling-zero-state-renderer",function(){if(NuN!==void 0)return NuN;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return NuN=b},{mode:1});var rM8;var DY=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return b};
_.z(DY,_.g);DY.prototype.onTabsActivate=function(b){this.data&&this.data.tabs&&_.Sx(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[b.detail.selected].navigationEndpoint})};
DY.prototype.shouldShowTotalCount=function(b){return b&&b.totalCount!==void 0};
DY.prototype.handleUpdatePostsTotalCountAction=function(b){var h=this.get(["data.tabs",1,"totalCount"]),y=this.get("updatePostsTotalCountAction.updateType",b);b=this.get("updatePostsTotalCountAction.number",b);h!==void 0&&y!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&b&&(y==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(h)+b):y==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(h)-b))};
_.tm.Object.defineProperties(DY.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var b=0,h=this.data.tabs.length;b<h;b++)if(this.data.tabs[b].selected)return b;return 0}}});
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],DY.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],DY.prototype,"rendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],DY.prototype,"data",void 0);_.V([_.W("data.tabs"),_.f("design:type",Number),_.f("design:paramtypes",[])],DY.prototype,"selected",null);_.V([_.Yx({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],DY);
_.k(DY,"ytd-post-stream-filter-renderer",function(){if(rM8!==void 0)return rM8;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return rM8=b},{mode:1});var cM8;var I9=function(){return _.g.apply(this,arguments)||this};
_.z(I9,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],I9.prototype,"kevlarBehaviors",void 0);_.V([_.C(),_.f("design:type",Object)],I9.prototype,"data",void 0);_.V([_.Yx({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],I9);
_.k(I9,"ytd-channel-age-gate-renderer",function(){if(cM8!==void 0)return cM8;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return cM8=b},{mode:1});var Rea;_.W2("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var Bx=function(){var b=_.g.apply(this,arguments)||this;b.data=null;return b};
_.z(Bx,_.g);Bx.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.tm.Object.defineProperties(Bx.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var b,h,y;return((b=this.data)==null?0:(h=b.title)==null?0:(y=h.runs)==null?0:y.length)?147:160}}});
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Bx.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Bx.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.W("data"),_.f("design:type",Number),_.f("design:paramtypes",[])],Bx.prototype,"imageSizePx",null);_.V([_.Yx({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],Bx);
_.k(Bx,"ytd-channel-owner-empty-state-renderer",function(){if(Rea!==void 0)return Rea;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return Rea=b},{mode:1});var zeo;var D_7;var Wx=function(){var b=_.g.apply(this,arguments)||this;b.boundSubmitSearch=function(){b.submitSearch()};
b.boundClearSearch=function(){b.clearSearch()};
return b};
_.z(Wx,_.g);_.d=Wx.prototype;_.d.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]]"}}}}}};
_.d.toggleClearButton=function(){this.hideClearButton=e87||!this.input.value};
_.d.submitOnEnterKeyUp=function(b){b.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.d.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.d.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.d.submit=function(){_.Sx(this.hostElement,"search-query-changed",this.input.value)};
Wx.prototype.toggleClearButton=Wx.prototype.toggleClearButton;_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],Wx.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Wx.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Wx.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Wx.prototype,"data",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],Wx.prototype,"hideClearButton",void 0);_.V([_.C(),_.f("design:type",Object)],Wx.prototype,"boundSubmitSearch",void 0);_.V([_.C(),_.f("design:type",Object)],Wx.prototype,"boundClearSearch",void 0);_.V([_.to("#input"),_.f("design:type",Object)],Wx.prototype,"input",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Wx.prototype,"toggleClearButton",null);
_.V([_.Yx({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],Wx);
_.k(Wx,"ytd-channel-switcher-search-box-renderer",function(){if(D_7!==void 0)return D_7;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return D_7=b},{mode:1});var IdW;var Aa=function(){var b=_.g.apply(this,arguments)||this;b.boundSubmit=function(){b.submit()};
return b};
_.z(Aa,_.g);_.d=Aa.prototype;_.d.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"}}}}};
_.d.ready=function(){var b=this;this.form.addEventListener("submit",function(h){return b.onSubmit(h)})};
_.d.onSubmit=function(b){b.preventDefault();return!1};
_.d.toggleClearButton=function(){this.hideClearButton=e87||!this.input.value};
_.d.submitOnEnterKeyUp=function(b){b.keyCode===13&&this.submit()};
_.d.submit=function(){var b=this.data.endpoint,h=(0,_.lR.unsafeClone)(b);_.c(h,_.O0)?_.c(h,_.O0).query=this.input.value:_.c(h,_.NC)&&(_.c(h,_.NC).query=this.input.value);var y=_.c(h.commandMetadata,_.ZW);(y==null?0:y.url)?(y.url=_.SH(y.url,"query",this.input.value),_.Sx(this.hostElement,"yt-navigate",{endpoint:h})):_.c(h,cqo)?(_.c(h,cqo).channelSwitcherQuery=this.input.value,_.H9().resolve(_.OM).resolveCommand(h,{form:{element:this.hostElement}})):(b=Error("Qh`"+JSON.stringify(b)),_.QT(b))};
_.d.getUrl=function(b){return this.get("commandMetadata.webCommandMetadata.url",b)};
Aa.prototype.toggleClearButton=Aa.prototype.toggleClearButton;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Aa.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Aa.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Aa.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],Aa.prototype,"hideClearButton",void 0);
_.V([_.C(),_.f("design:type",Object)],Aa.prototype,"boundSubmit",void 0);_.V([_.to("#form"),_.f("design:type",HTMLFormElement)],Aa.prototype,"form",void 0);_.V([_.to("#input"),_.f("design:type",Object)],Aa.prototype,"input",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Aa.prototype,"toggleClearButton",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],Aa);
_.k(Aa,"ytd-search-box-renderer",function(){if(IdW!==void 0)return IdW;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return IdW=b},{mode:2});var UH=function(){var b=_.g.apply(this,arguments)||this;b.showSearchBox=!0;return b};
_.z(UH,_.g);UH.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],UH.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],UH.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],UH.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],UH.prototype,"showSearchBox",void 0);_.V([_.Yx({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],UH);
_.k(UH,"ytd-channel-switcher-header-renderer",function(){if(zeo!==void 0)return zeo;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return zeo=b},{mode:1});var BuW;var WTa;var pX=function(){var b=_.g.apply(this,arguments)||this;b.isDisplayed=!0;return b};
_.z(pX,_.g);_.d=pX.prototype;_.d.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.d.dataChanged=function(){this.isDisplayed=!0};
_.d.computeType=function(b){return b||"UNKNOWN"};
_.d.onYtServiceRequestCompleted=function(b){b.stopPropagation();this.isDisplayed=!1};
_.d.onClose=function(){this.isDisplayed=!1};
pX.prototype.onYtServiceRequestCompleted=pX.prototype.onYtServiceRequestCompleted;pX.prototype.dataChanged=pX.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],pX.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],pX.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],pX.prototype,"data",void 0);
_.V([_.C({computed:"computeType(data.type)",reflectToAttribute:!0}),_.f("design:type",String)],pX.prototype,"type",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],pX.prototype,"isDisplayed",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],pX.prototype,"dataChanged",null);
_.V([_.u3("yt-service-request-completed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],pX.prototype,"onYtServiceRequestCompleted",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],pX);
_.k(pX,"ytd-alert-with-button-renderer",function(){if(WTa!==void 0)return WTa;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return WTa=b},{mode:1});var Ja=function(){var b=_.g.apply(this,arguments)||this;b.noResult=!1;b.enableAlertBanner=!1;b.dismissedAlertBanner=!1;b.hideCreateChannelButton=!1;b.boundDismissAlertBanner=function(){b.dismissAlertBanner()};
b.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return b};
_.z(Ja,_.g);_.d=Ja.prototype;_.d.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.d.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.d.updateChannelSwitcherAction=function(b){var h;b=(h=_.c(b,OTa))==null?void 0:h.page;_.c(b,uK8)!==void 0&&(this.data=_.c(b,uK8))};
_.d.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]]"}}}}}};
_.d.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.d.searchQueryChanged=function(b,h){if(this.data&&this.data.contents&&this.data.contents.length){b=[];var y=[];this.hideCreateChannelButton=this.noResult=!1;for(var S=document.querySelectorAll("ytd-account-item-renderer"),F=_.L(S),a=F.next();!a.done;a=F.next())a=a.value,y.push(a),a.style.display="block";this.resetRightBorder(y);if(h){this.hideCreateChannelButton=!0;for(y=1;y<this.data.contents.length;y++)if(a=this.data.contents[y],_.c(a,N4a)){var P=void 0,K=void 0;F=(P=_.c(a,N4a))==null?void 0:(K=
P.accountName)==null?void 0:K.simpleText;K=P=void 0;a=(P=_.c(a,N4a))==null?void 0:(K=P.channelHandle)==null?void 0:K.simpleText;(P=S[y-1])&&F&&_.Zr(F,h)?b.push(P):_.r("enable_handle_search_on_channel_switcher")&&P&&a&&_.Zr(a.toString(),h.toString())?b.push(P):P.style.display="none"}b.length===0&&(this.noResult=!0);this.resetRightBorder(b)}}};
_.d.resetRightBorder=function(b){for(var h=0;h<b.length;h++)b[h].style.borderRight=!this.hideCreateChannelButton&&(h+2)%3===0||this.hideCreateChannelButton&&(h+1)%3===0?"none":"1px solid var(--yt-spec-outline)"};
_.d.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.d.setShowSearchBox=function(b){if(b&&b.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var h=0;h<b.contents.length;h++)_.c(b.contents[h],_.yp)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.d.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.tm.Object.defineProperties(Ja.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.data)==null?0:b.contents)}}});
Ja.prototype.onContinuationItemsUpdated=Ja.prototype.onContinuationItemsUpdated;Ja.prototype.searchQueryChanged=Ja.prototype.searchQueryChanged;Ja.prototype.onDataChanged=Ja.prototype.onDataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Ja.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Ja.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],Ja.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.p1),_.f("design:type",Object)],Ja.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Ja.prototype,"data",void 0);_.V([_.to("ytd-channel-switcher-header-renderer"),_.f("design:type",Object)],Ja.prototype,"channelSwitcherHeaderRenderer",void 0);_.V([_.C(),_.f("design:type",Object)],Ja.prototype,"noResult",void 0);
_.V([_.C(),_.f("design:type",Object)],Ja.prototype,"enableAlertBanner",void 0);_.V([_.C(),_.f("design:type",Object)],Ja.prototype,"dismissedAlertBanner",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Ja.prototype,"hideCreateChannelButton",void 0);_.V([_.W("data.contents"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Ja.prototype,"isLoading",null);_.V([_.C(),_.f("design:type",Object)],Ja.prototype,"boundDismissAlertBanner",void 0);
_.V([_.C({computed:"computeButtonOverride()"}),_.f("design:type",Object)],Ja.prototype,"buttonOverride",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Ja.prototype,"onDataChanged",null);_.V([_.u3("search-query-changed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,String]),_.f("design:returntype")],Ja.prototype,"searchQueryChanged",null);
_.V([_.u3("yt-next-continuation-data-updated"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],Ja.prototype,"onContinuationItemsUpdated",null);_.V([_.Yx({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],Ja);
_.k(Ja,"ytd-channel-switcher-page-renderer",function(){if(BuW!==void 0)return BuW;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return BuW=b},{mode:1});var AMo;var U_o;var eq=function(){var b=_.g.apply(this,arguments)||this;b.images=[];b.selectedImageIndex=0;return b};
_.z(eq,_.g);_.d=eq.prototype;
_.d.ready=function(){_.W3(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.W3(this.JSC$15955_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.W3(this.JSC$15955_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.W3(this.JSC$15955_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.d.onThumbnailClick=function(b){if(b=b.event_.detail)this.selectedImageIndex=this.images.indexOf(b)};
_.d.updateImageThumbnails=function(b){b=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:b.event_.detail});this.images.splice(this.selectedImageIndex,1,b);this.images=[].concat(_.f$(this.images))};
_.d.cancelImageRepositions=function(){this.selectedImageIndex=0;_.Sx(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.d.saveImageRepositions=function(){this.selectedImageIndex=0;_.Sx(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.tm.Object.defineProperties(eq.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var b=this;return(this.images||[]).map(function(h,y){return{image:h,selected:y===b.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],eq.prototype,"ytRendererstamperBehavior",void 0);_.V([_.to("ytd-backstage-image-preview-renderer"),_.f("design:type",Object)],eq.prototype,"JSC$15955_imagePreviewContainer",void 0);_.V([_.to(".thumbnail-images-container"),_.f("design:type",HTMLElement)],eq.prototype,"thumbnailImagesContainer",void 0);_.V([_.C(),_.f("design:type",Array)],eq.prototype,"images",void 0);
_.V([_.C(),_.f("design:type",Object)],eq.prototype,"repositionInstructions",void 0);_.V([_.C(),_.f("design:type",Object)],eq.prototype,"selectedImageIndex",void 0);_.V([_.W("images","selectedImageIndex"),_.f("design:type",Array),_.f("design:paramtypes",[])],eq.prototype,"thumbnailRendererDatas",null);_.V([_.W("images","selectedImageIndex"),_.f("design:type",Object),_.f("design:paramtypes",[])],eq.prototype,"selectedImageData",null);
_.V([_.Yx({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],eq);
_.k(eq,"ytd-backstage-multi-image-reposition-renderer",function(){if(U_o!==void 0)return U_o;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return U_o=b},{mode:1});var CX=function(b,h){_.TI.call(this);this.uploadUrl=b;this.channelId=h;this.imagesUploadData=[]};
_.z(CX,_.TI);CX.prototype.getAllUploadStatuses=function(){var b=this,h,y,S;return _.Z(function(F){if(F.nextAddress==1)return F.yield(pG8(b),2);h=F.yieldResult;y=h.get("succeed");S=h.get("failed");return F.return(y.concat(S))})};
var eeN=function(b){var h,y;return _.Z(function(S){if(S.nextAddress==1)return S.yield(pG8(b),2);h=S.yieldResult;y=h.get("failed");y.length>0&&JMW(b,y);return S.return(b.getAllUploadStatuses())})},pG8=function(b){var h,y,S,F,a,P,K;
return _.Z(function(n){if(n.nextAddress==1)return h=new Map,n.yield(Promise.allSettled(b.imagesUploadData.map(function(X){return X.uploadPromise})),2);
y=n.yieldResult;S=[];F=_.L(y);for(a=F.next();!a.done;a=F.next())P=a.value,P.status==="fulfilled"&&S.push(P.value);K=b.imagesUploadData.map(function(X){return X.image}).filter(function(X){return S.every(function(u){return u.id!==X.id})});
h.set("succeed",S);h.set("failed",K);return n.return(h)})},JMW=function(b,h){h=_.L(h);
for(var y=h.next();!y.done;y=h.next()){var S=b;y=y.value;CW8(S,y.id)>=0&&S.cancel(y.id);var F=new gKM(y),a=_.LDb(S.uploadUrl,{"X-YouTube-ChannelId":S.channelId},y.imageBlob);F.transfer=a;F.uploadPromise=sK8(a,y);S.imagesUploadData.push(F);a.run()}};
CX.prototype.cancel=function(b){var h=CW8(this,b);h!==-1&&((h=this.imagesUploadData[h].transfer)&&h.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(y){return y.image.id!==b}))};
var CW8=function(b,h){return b.imagesUploadData.findIndex(function(y){return y.image.id===h})},sK8=function(b,h){return new Promise(function(y,S){b.listen("l",function(){var F=b.getResponseText();
F?(F=JSON.parse(F).encryptedBlobId,h.encryptedBlobId=F,y(h)):S("upload failed")});
b.listen("n",function(){S("upload failed")})})},gKM=function(b){this.image=b};var Jck=function(b,h,y,S,F){this.id=b;this.imageBlob=h;this.localImageSrc=y;this.naturalWidth=S;this.naturalHeight=F;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 YqW=[".jpeg",".jpg",".png"],gp=function(){var b=_.g.apply(this,arguments)||this;b.showImagesPreview=!1;b.pollOptions=[];b.errorMessage="";b.optionPlaceholderText="";b.optionDefaultText="";b.JSC$15966_imageId=0;b.maxFileSizeMb=0;b.maxAspectRatio=0;b.invalidFileSizeError="";b.invalidAspectRatioError="";b.invalidFileTypeError="";b.imageSelector=new Vj(null,"single_file",YqW);return b};
_.z(gp,_.g);_.d=gp.prototype;_.d.ready=function(){_.W3(this.imageSelector,"j",this.onImageSelect,!1,this);_.W3(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.W3(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.d.dataChanged=function(){var b,h,y=_.c((b=this.data)==null?void 0:(h=b.cellTemplate)==null?void 0:h.onEmptyCellTap,bdW);if(y&&y.uploadUrl&&y.channelId){var S;this.maxFileSizeMb=((S=y.imageValidationInfo)==null?void 0:S.maxFileSizeMb)||0;var F;this.maxAspectRatio=((F=y.imageValidationInfo)==null?void 0:F.allowedMaxAspectRatio)||0;var a;this.invalidFileSizeError=this.getSimpleString((a=this.data)==null?void 0:a.invalidFileSizeError);var P;this.invalidAspectRatioError=this.getSimpleString((P=this.data)==
null?void 0:P.invalidAspectRatioError);var K;this.invalidFileTypeError=this.getSimpleString((K=this.data)==null?void 0:K.invalidFileTypeError);this.uploadManager=new CX(y.uploadUrl,y.channelId)}};
_.d.onEditorInfoChange=function(){this.optionPlaceholderText=_.vi(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.vi(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.d.observeAddImageError=function(){this.errorMessage!==""&&_.Sx(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.d.onPollOptionsChange=function(){for(var b=!1,h=[],y=0;y<this.pollOptions.length;y++){var S=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(y+1);this.pollOptions[y].placeholderText!==S?(b=!0,h.push(Object.assign({},this.pollOptions[y],{placeholderText:S}))):h.push(this.pollOptions[y])}b&&(this.pollOptions=h);this.isValid()?_.Sx(this.hostElement,"yt-commentbox-post-enable"):_.Sx(this.hostElement,"yt-commentbox-post-disable")};
_.d.createPollOptions=function(b){var h=[],y;b=(y=b==null?void 0:b.minPollOptions)!=null?y:0;for(y=0;y<b;y++)h.push(this.createPollOption());return h};
_.d.onImageSelect=function(b){var h=this,y,S,F,a,P,K;return _.Z(function(n){if(n.nextAddress==1){if(h.selectedImageIndex===void 0)return n.jumpTo(0);y=b.files[0];h.errorMessage="";S=h.validateImage(y);if(S!=="")return h.errorMessage=S,n.return();F=new UU(h.maxAspectRatio,!1,!0);return n.yield(F.transform(y),3)}if(n.nextAddress!=4)return a=n.yieldResult,a.transformedData?a.invalidAspectRatio?(h.errorMessage=h.invalidAspectRatioError,n.return()):n.yield(e5q(h.JSC$15966_imageId,b.files[0],a.transformedData),
4):(h.errorMessage=h.invalidFileTypeError,n.return());P=n.yieldResult;h.JSC$15966_imageId++;JMW(h.uploadManager,[P]);K=Object.assign({},h.pollOptions[h.selectedImageIndex],{image:P});h.pollOptions.splice(h.selectedImageIndex,1,K);h.refreshPollOptions();_.Sx(h.hostElement,"yt-backstage-poll-image-select");_.g3(n)})};
_.d.validateImage=function(b){return b.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.d.refreshPollOptions=function(){this.pollOptions=[].concat(_.f$(this.pollOptions))};
_.d.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.f$(this.pollOptions),[this.createPollOption()]))};
_.d.onRemovePollOption=function(b){var h=this.pollOptions[b.model.index];h&&h.image&&this.uploadManager.cancel(h.image.id);this.pollOptions.splice(b.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.Sx(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.d.onTextInput=function(){this.refreshPollOptions()};
_.d.onImageButtonClick=function(b){this.selectedImageIndex=b.model.index;this.imageSelector.click()};
_.d.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.d.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.d.saveImageRepositions=function(b){b=b.event_.detail;for(var h=0,y=[],S=_.L(this.pollOptions),F=S.next();!F.done;F=S.next())F=F.value,F.image!==void 0?(F=Object.assign({},F,{image:b[h]}),y.push(F),h++):y.push(F);this.showImagesPreview=!1;this.pollOptions=[].concat(_.f$(y))};
_.d.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 b=0,h=_.L(this.pollOptions),y=h.next();!y.done;y=h.next())if(y=y.value,y.optionText.trim()!==""||y.image!==void 0){if(!y.image||this.hasCustomOptionText&&y.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;b++}return b>=Number(this.editorInfo.minPollOptions)};
_.d.getAllUploadStatuses=function(){var b=this,h,y,S,F;return _.Z(function(a){if(a.nextAddress==1)return a.yield(b.uploadManager.getAllUploadStatuses(),2);h=a.yieldResult;y=_.L(h);for(S=y.next();!S.done;S=y.next())if(F=S.value,F.encryptedBlobId===void 0)return a.return(eeN(b.uploadManager));return a.return(h)})};
_.d.getPostCreateOptions=function(){for(var b=[],h=_.L(this.pollOptions),y=h.next();!y.done;y=h.next())y=y.value,y.image!==void 0&&b.push({text:this.hasCustomOptionText?y.optionText:y.placeholderText,image:y.image});return b};
_.d.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.d.createButtonRenderer=function(b,h){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:b,accessibilityData:{accessibilityData:{label:this.getSimpleString(b)}},isDisabled:h}};
_.d.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.d.computeThumbnailRendererData=function(b){return b?{image:b,selected:!1}:void 0};
_.d.getSimpleString=function(b){return _.vi(b)};
_.d.updateOptionTextFromBinding=function(b){if(b.target){var h=Array.from(_.$x(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(b.target);if(h>=0){var y;this.pollOptions[h].optionText=(y=b.detail.value)!=null?y:""}}};
_.tm.Object.defineProperties(gp.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var b,h;return this.pollOptions.length<((h=(b=this.editorInfo)==null?void 0:b.maxPollOptions)!=null?h:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(b){return b.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(b){return b.image}).map(function(b){return b.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(b){return b.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var b,h=(b=this.data)==null?void 0:b.addOptionButtonText;return h?this.createButtonRenderer(h,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var b,h=(b=this.data)==null?void 0:b.repositionImagesButtonLabel;return h?this.createButtonRenderer(h,!this.hasImages):void 0}}});
gp.prototype.onPollOptionsChange=gp.prototype.onPollOptionsChange;gp.prototype.observeAddImageError=gp.prototype.observeAddImageError;gp.prototype.onEditorInfoChange=gp.prototype.onEditorInfoChange;gp.prototype.dataChanged=gp.prototype.dataChanged;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],gp.prototype,"ytRendererstamperBehavior",void 0);_.V([_.to("ytd-backstage-multi-image-reposition-renderer"),_.f("design:type",Object)],gp.prototype,"imageRepositionContainer",void 0);
_.V([_.C(),_.f("design:type",Object)],gp.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],gp.prototype,"editorInfo",void 0);_.V([_.C(),_.f("design:type",CX)],gp.prototype,"uploadManager",void 0);_.V([_.C(),_.f("design:type",Object)],gp.prototype,"showImagesPreview",void 0);_.V([_.C(),_.f("design:type",Array)],gp.prototype,"pollOptions",void 0);_.V([_.C(),_.f("design:type",Object)],gp.prototype,"errorMessage",void 0);
_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],gp.prototype,"dataChanged",null);_.V([_.zj("editorInfo"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],gp.prototype,"onEditorInfoChange",null);_.V([_.OB("errorMessage"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],gp.prototype,"observeAddImageError",null);
_.V([_.zj("pollOptions"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],gp.prototype,"onPollOptionsChange",null);_.V([_.W("pollOptions","editorInfo"),_.f("design:type",Object),_.f("design:paramtypes",[])],gp.prototype,"isAllowedToAddOption",null);_.V([_.W("pollOptions"),_.f("design:type",Object),_.f("design:paramtypes",[])],gp.prototype,"hasImages",null);
_.V([_.W("pollOptions"),_.f("design:type",Object),_.f("design:paramtypes",[])],gp.prototype,"imagesToReposition",null);_.V([_.W("pollOptions"),_.f("design:type",Object),_.f("design:paramtypes",[])],gp.prototype,"hasCustomOptionText",null);_.V([_.W("data","isAllowedToAddOption"),_.f("design:type",Object),_.f("design:paramtypes",[])],gp.prototype,"addOptionButton",null);_.V([_.W("data","hasImages"),_.f("design:type",Object),_.f("design:paramtypes",[])],gp.prototype,"repositionImagesButton",null);
_.V([_.Yx({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],gp);
_.k(gp,"ytd-backstage-image-poll-editor-renderer",function(){if(AMo!==void 0)return AMo;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return AMo=b},{mode:2});var Tu8={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 Gse;var sH=function(){var b=_.g.apply(this,arguments)||this;b.a11yConfig=Tu8;b.imageDisplayOffsetTop=0;b.imageDisplayOffsetLeft=0;b.pickerDisplayOffsetTop=0;b.pickerDisplayOffsetLeft=0;b.showPreviewContainer=!0;b.startPicker=!1;b.repositionOptional=!1;b.editOnlyMode=!1;b.savedImageDisplayOffsetTop=0;b.savedImageDisplayOffsetLeft=0;return b};
_.z(sH,_.g);_.d=sH.prototype;_.d.created=function(){_.XV.requestAvailability()};
_.d.ready=function(){};
_.d.onArrowKeysDown=function(b){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){b.detail.keyboardEvent.preventDefault();var h=0,y=0,S="";switch(b.detail.keyboardEvent.key){case "ArrowUp":C8k(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?S=this.a11yConfig.reachBottomOfImage:h=this.imageHeight*.05*-1;break;case "ArrowDown":C8k(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?S=this.a11yConfig.reachTopOfImage:
h=this.imageHeight*.05;break;case "ArrowLeft":C8k(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?S=this.a11yConfig.reachRightOfImage:y=this.imageWidth*.05*-1;break;case "ArrowRight":C8k(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?S=this.a11yConfig.reachLeftOfImage:y=this.imageWidth*.05}S&&_.Mt(S)&&_.Sx(this.hostElement,"iron-announce",{text:_.Mt(S)});if(y||h)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+h)),b=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),b=_.Mt(this.a11yConfig.imageVerticalPosition,{x_percent:""+b,y_percent:""+(100-b)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+y)),b=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),b=_.Mt(this.a11yConfig.imageHorizontalPosition,{x_percent:""+b,y_percent:""+(100-b)})),b&&_.Sx(this.hostElement,"iron-announce",{text:b})}};
_.d.getPreviewPosition=function(b,h,y,S){return Math.round(100*(b+h*.5-y)/S)};
_.d.calculateDisplayPosition=function(){var b=this.imageData.naturalWidth,h=this.imageData.naturalHeight;this.displayScale=Math.max(200/b,200/h);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var y=b*this.displayScale*this.imageData.previewCoordinates.left,S=h*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=h>b?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-y;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=b>h?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-S;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=b*this.displayScale;this.imageHeight=h*this.displayScale};
_.d.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.d.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.d.getSignedPosition=function(b,h,y){return h==="X"&&_.QC("HTML_DIR")==="rtl"?y==="-"?b+"px":b*-1+"px":y==="-"?b*-1+"px":b+"px"};
_.d.pickerMove=function(b){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var h=this.pickerOffsetX-b.clientX,y=this.pickerOffsetY-b.clientY;this.pickerOffsetX=b.clientX;this.pickerOffsetY=b.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
y)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-h))}};
_.d.pickerMoveStart=function(b){this.startPicker=!0;this.pickerOffsetX=b.clientX;this.pickerOffsetY=b.clientY};
_.d.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var b=this.generateCropPreview();b&&_.Sx(this.hostElement,"ytd-backstage-image-preview-coordinates-update",b)};
_.d.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.Sx(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.d.deleteImage=function(){_.Sx(this.hostElement,"ytd-backstage-image-preview-delete")};
_.d.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.d.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var b=this.generateCropPreview();b&&_.Sx(this.hostElement,"ytd-backstage-image-preview-coordinates-save",b)};
_.d.getPreviewOffset=function(b,h,y){return h&&b?(y==="X"&&_.QC("HTML_DIR")==="rtl"?300/h*b:300/h*b*-1)+"px":"0px"};
_.d.getSimpleText=function(b){return b?_.vi(b):""};
_.d.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}};
_.tm.Object.defineProperties(sH.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var b=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.Mt(this.a11yConfig.imageVerticalPosition,{x_percent:""+b,y_percent:""+(100-b)})+"\n"+_.Mt(this.a11yConfig.verticalRepositionInstruction)}b=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.Mt(this.a11yConfig.imageHorizontalPosition,{x_percent:""+b,y_percent:""+(100-b)})+"\n"+_.Mt(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 b,h,y=(b=this.instruction)==null?void 0:(h=b.previewInstruction)==null?void 0:h.editButtonLabel;return y?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:y,accessibilityData:{accessibilityData:{label:this.getSimpleText(y)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var b,h,y,S,F=this.editOnlyMode?(b=this.instruction)==null?void 0:(h=b.editInstruction)==null?void 0:h.saveImagesButtonLabel:(y=this.instruction)==null?void 0:(S=y.editInstruction)==null?void 0:S.saveButtonLabel;return F?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:F,accessibilityData:{accessibilityData:{label:this.getSimpleText(F)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var b,h,y=(b=this.instruction)==null?void 0:(h=b.previewInstruction)==null?void 0:h.deleteButtonLabel;return y?{size:"SIZE_SMALL",text:y,accessibilityData:{accessibilityData:{label:this.getSimpleText(y)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var b,h,y=(b=this.instruction)==null?void 0:(h=b.editInstruction)==null?void 0:h.cancelButtonLabel;b=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return y?{style:b,size:"SIZE_SMALL",text:y,accessibilityData:{accessibilityData:{label:this.getSimpleText(y)}}}: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"}}});
sH.prototype.onEditOnlyModeUpdate=sH.prototype.onEditOnlyModeUpdate;sH.prototype.onImageChange=sH.prototype.onImageChange;_.V([_.C(),_.f("design:type",Jck)],sH.prototype,"imageData",void 0);_.V([_.C(),_.f("design:type",Object)],sH.prototype,"instruction",void 0);_.V([_.C(),_.f("design:type",Object)],sH.prototype,"a11yConfig",void 0);_.V([_.C(),_.f("design:type",Number)],sH.prototype,"imageWidth",void 0);_.V([_.C(),_.f("design:type",Number)],sH.prototype,"imageHeight",void 0);
_.V([_.C(),_.f("design:type",Number)],sH.prototype,"displayScale",void 0);_.V([_.C(),_.f("design:type",Object)],sH.prototype,"imageDisplayOffsetTop",void 0);_.V([_.C(),_.f("design:type",Object)],sH.prototype,"imageDisplayOffsetLeft",void 0);_.V([_.C(),_.f("design:type",Object)],sH.prototype,"pickerDisplayOffsetTop",void 0);_.V([_.C(),_.f("design:type",Object)],sH.prototype,"pickerDisplayOffsetLeft",void 0);_.V([_.C(),_.f("design:type",Object)],sH.prototype,"showPreviewContainer",void 0);
_.V([_.C(),_.f("design:type",Object)],sH.prototype,"startPicker",void 0);_.V([_.C(),_.f("design:type",Number)],sH.prototype,"pickerOffsetX",void 0);_.V([_.C(),_.f("design:type",Number)],sH.prototype,"pickerOffsetY",void 0);_.V([_.C(),_.f("design:type",Object)],sH.prototype,"repositionOptional",void 0);_.V([_.C(),_.f("design:type",Object)],sH.prototype,"editOnlyMode",void 0);_.V([_.to("#picker-container"),_.f("design:type",HTMLElement)],sH.prototype,"JSC$15979_pickerContainer",void 0);
_.V([_.to("#picker"),_.f("design:type",HTMLElement)],sH.prototype,"picker",void 0);_.V([_.to("#preview-clipper"),_.f("design:type",HTMLElement)],sH.prototype,"previewClipper",void 0);_.V([_.to("#image-in-picker-background"),_.f("design:type",HTMLImageElement)],sH.prototype,"JSC$15979_imageInBackground",void 0);_.V([_.to("#image-in-picker"),_.f("design:type",HTMLImageElement)],sH.prototype,"JSC$15979_imageInPicker",void 0);
_.V([_.to("#image-in-preview-clipper"),_.f("design:type",HTMLImageElement)],sH.prototype,"JSC$15979_imageInPreviewClipper",void 0);_.V([_.W("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.f("design:type",String),_.f("design:paramtypes",[])],sH.prototype,"altLabelForImage",null);_.V([_.W("imageHeight","imageWidth"),_.f("design:type",Number),_.f("design:paramtypes",[])],sH.prototype,"pickerSize",null);
_.V([_.W("imageHeight","imageWidth"),_.f("design:type",Object),_.f("design:paramtypes",[])],sH.prototype,"imageOrientationStyle",null);_.V([_.W("instruction"),_.f("design:type",Object),_.f("design:paramtypes",[])],sH.prototype,"editButton",null);_.V([_.W("instruction","editOnlyMode"),_.f("design:type",Object),_.f("design:paramtypes",[])],sH.prototype,"saveButton",null);_.V([_.W("instruction"),_.f("design:type",Object),_.f("design:paramtypes",[])],sH.prototype,"deleteButton",null);
_.V([_.W("instruction","editOnlyMode"),_.f("design:type",Object),_.f("design:paramtypes",[])],sH.prototype,"cancelButton",null);_.V([_.W("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.f("design:type",Number),_.f("design:paramtypes",[])],sH.prototype,"cropOffsetTop",null);_.V([_.W("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.f("design:type",Number),_.f("design:paramtypes",[])],sH.prototype,"cropOffsetLeft",null);
_.V([_.W("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.f("design:type",String),_.f("design:paramtypes",[])],sH.prototype,"pickerBackgroundStyle",null);_.V([_.W("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.f("design:type",String),_.f("design:paramtypes",[])],sH.prototype,"pickerDisplayStyle",null);_.V([_.W("cropOffsetLeft","cropOffsetTop"),_.f("design:type",String),_.f("design:paramtypes",[])],sH.prototype,"imageInPickerStyle",null);
_.V([_.W("cropOffsetLeft","cropOffsetTop","pickerSize"),_.f("design:type",String),_.f("design:paramtypes",[])],sH.prototype,"previewClipperStyle",null);_.V([_.zj("imageData"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],sH.prototype,"onImageChange",null);_.V([_.zj("editOnlyMode"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],sH.prototype,"onEditOnlyModeUpdate",null);
_.V([_.W("showPreviewContainer"),_.f("design:type",String),_.f("design:paramtypes",[])],sH.prototype,"pickerModeStyle",null);_.V([_.Yx({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],sH);
_.k(sH,"ytd-backstage-image-preview-renderer",function(){if(Gse!==void 0)return Gse;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return Gse=b},{mode:1});var ksP;var V_W={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 EKN;var imG;var YM=function(){var b=_.g.apply(this,arguments)||this;b.a11yConfig=V_W;b.imageDisplayOffsetTop=0;b.imageDisplayOffsetLeft=0;b.pickerDisplayOffsetTop=0;b.pickerDisplayOffsetLeft=0;b.cropCoordinatesSaved=!1;b.previewSize=0;b.startPicker=!1;b.repositionOptional=!1;return b};
_.z(YM,_.g);_.d=YM.prototype;_.d.created=function(){_.XV.requestAvailability()};
_.d.ready=function(){};
_.d.onArrowKeysDown=function(b){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){b.detail.keyboardEvent.preventDefault();var h=0,y=0,S="";switch(b.detail.keyboardEvent.key){case "ArrowUp":ghF(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?S=this.a11yConfig.reachBottomOfImage:h=this.imageHeight*.05*-1;break;case "ArrowDown":ghF(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?S=this.a11yConfig.reachTopOfImage:
h=this.imageHeight*.05;break;case "ArrowLeft":ghF(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?S=this.a11yConfig.reachRightOfImage:y=this.imageWidth*.05*-1;break;case "ArrowRight":ghF(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?S=this.a11yConfig.reachLeftOfImage:y=this.imageWidth*.05}S&&_.Mt(S)&&_.Sx(this.hostElement,"iron-announce",{text:_.Mt(S)});if(y||h)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+h)),b=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),b=_.Mt(this.a11yConfig.imageVerticalPosition,{x_percent:""+b,y_percent:""+(100-b)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+y)),b=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),b=_.Mt(this.a11yConfig.imageHorizontalPosition,{x_percent:""+b,y_percent:""+(100-b)})),b&&_.Sx(this.hostElement,"iron-announce",{text:b})}};
_.d.getPreviewPosition=function(b,h,y,S){return Math.round(100*(b+h*.5-y)/S)};
_.d.displayImage=function(){var b=this.JSC$15990_pickerContainer.getBoundingClientRect().width,h=this.JSC$15990_pickerContainer.getBoundingClientRect().height,y=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),S=this.JSC$15990_imageInBackground.naturalWidth,F=this.JSC$15990_imageInBackground.naturalHeight;this.displayScale=Math.max(y/S,y/F);this.imageWidth=S*this.displayScale;this.imageHeight=F*this.displayScale;this.pickerDisplayOffsetLeft=(b-y)/2;this.pickerDisplayOffsetTop=
(h-y)/2;this.imageDisplayOffsetLeft=F>S?this.pickerDisplayOffsetLeft:(b-this.imageWidth)/2;this.imageDisplayOffsetTop=S>F?this.pickerDisplayOffsetTop:(h-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.d.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$15990_imageInBackground.src=this.imageData.toString(),this.JSC$15990_imageInPicker.src=this.imageData.toString(),this.JSC$15990_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.d.getSignedPosition=function(b,h,y){return h==="X"&&_.QC("HTML_DIR")==="rtl"?y==="-"?b+"px":b*-1+"px":y==="-"?b*-1+"px":b+"px"};
_.d.pickerMove=function(b){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var h=this.pickerOffsetX-b.clientX,y=this.pickerOffsetY-b.clientY;this.pickerOffsetX=b.clientX;this.pickerOffsetY=b.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
y)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-h))}};
_.d.pickerMoveStart=function(b){this.startPicker=!0;this.pickerOffsetX=b.clientX;this.pickerOffsetY=b.clientY};
_.d.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.d.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.Sx(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.d.getPreviewOffset=function(b,h,y,S){return h&&b&&y?(S==="X"&&_.QC("HTML_DIR")==="rtl"?y/h*b:y/h*b*-1)+"px":"0px"};
_.d.getSimpleText=function(b){return b?_.vi(b):""};
_.d.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var b=this.cropOffsetTop/this.imageHeight,h=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,y=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,S=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.$x(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.Sx(this.hostElement,"yt-img-crop-coordinates-update",{top:b,right:h,bottom:y,left:S})}};
_.tm.Object.defineProperties(YM.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var b=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.Mt(this.a11yConfig.imageVerticalPosition,{x_percent:""+b,y_percent:""+(100-b)})+"\n"+_.Mt(this.a11yConfig.verticalRepositionInstruction)}b=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.Mt(this.a11yConfig.imageHorizontalPosition,{x_percent:""+b,y_percent:""+(100-b)})+"\n"+_.Mt(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 b,h=(b=this.learnMore.runs[0])==null?void 0:b.navigationEndpoint,y;return((y=_.c(h,_.jH))==null?void 0:y.url)||void 0}}}});
YM.prototype.onImageDataChange=YM.prototype.onImageDataChange;_.V([_.C(),_.f("design:type",Object)],YM.prototype,"imageData",void 0);_.V([_.C(),_.f("design:type",Object)],YM.prototype,"instruction",void 0);_.V([_.C(),_.f("design:type",Object)],YM.prototype,"a11yConfig",void 0);_.V([_.C(),_.f("design:type",Number)],YM.prototype,"imageWidth",void 0);_.V([_.C(),_.f("design:type",Number)],YM.prototype,"imageHeight",void 0);_.V([_.C(),_.f("design:type",Number)],YM.prototype,"displayScale",void 0);
_.V([_.C(),_.f("design:type",Object)],YM.prototype,"imageDisplayOffsetTop",void 0);_.V([_.C(),_.f("design:type",Object)],YM.prototype,"imageDisplayOffsetLeft",void 0);_.V([_.C(),_.f("design:type",Object)],YM.prototype,"pickerDisplayOffsetTop",void 0);_.V([_.C(),_.f("design:type",Object)],YM.prototype,"pickerDisplayOffsetLeft",void 0);_.V([_.C(),_.f("design:type",Object)],YM.prototype,"cropCoordinatesSaved",void 0);_.V([_.C(),_.f("design:type",Object)],YM.prototype,"previewSize",void 0);
_.V([_.C(),_.f("design:type",Object)],YM.prototype,"startPicker",void 0);_.V([_.C(),_.f("design:type",Number)],YM.prototype,"pickerOffsetX",void 0);_.V([_.C(),_.f("design:type",Number)],YM.prototype,"pickerOffsetY",void 0);_.V([_.C(),_.f("design:type",Object)],YM.prototype,"repositionOptional",void 0);_.V([_.to("#picker-container"),_.f("design:type",HTMLElement)],YM.prototype,"JSC$15990_pickerContainer",void 0);_.V([_.to("#picker"),_.f("design:type",HTMLElement)],YM.prototype,"picker",void 0);
_.V([_.to("#image-in-picker-background"),_.f("design:type",HTMLImageElement)],YM.prototype,"JSC$15990_imageInBackground",void 0);_.V([_.to("#image-in-picker"),_.f("design:type",HTMLImageElement)],YM.prototype,"JSC$15990_imageInPicker",void 0);_.V([_.to("#image-in-preview-clipper"),_.f("design:type",HTMLImageElement)],YM.prototype,"JSC$15990_imageInPreviewClipper",void 0);_.V([_.to("#full-image-as-preview"),_.f("design:type",HTMLImageElement)],YM.prototype,"imageAsPreview",void 0);
_.V([_.W("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.f("design:type",String),_.f("design:paramtypes",[])],YM.prototype,"altLabelForImage",null);_.V([_.W("imageHeight","imageWidth"),_.f("design:type",Number),_.f("design:paramtypes",[])],YM.prototype,"pickerSize",null);_.V([_.W("imageHeight","imageWidth"),_.f("design:type",Object),_.f("design:paramtypes",[])],YM.prototype,"imageOrientationStyle",null);
_.V([_.W("instruction.previewInstruction.editButtonLabel"),_.f("design:type",Object),_.f("design:paramtypes",[])],YM.prototype,"editButton",null);_.V([_.W("instruction.editInstruction.saveButtonLabel"),_.f("design:type",Object),_.f("design:paramtypes",[])],YM.prototype,"saveButton",null);_.V([_.W("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.f("design:type",Number),_.f("design:paramtypes",[])],YM.prototype,"cropOffsetTop",null);
_.V([_.W("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.f("design:type",Number),_.f("design:paramtypes",[])],YM.prototype,"cropOffsetLeft",null);_.V([_.W("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.f("design:type",String),_.f("design:paramtypes",[])],YM.prototype,"pickerBackgroundStyle",null);_.V([_.W("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.f("design:type",String),_.f("design:paramtypes",[])],YM.prototype,"pickerDisplayStyle",null);
_.V([_.W("cropOffsetLeft","cropOffsetTop"),_.f("design:type",String),_.f("design:paramtypes",[])],YM.prototype,"imageInPickerStyle",null);_.V([_.W("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.f("design:type",String),_.f("design:paramtypes",[])],YM.prototype,"previewClipperStyle",null);_.V([_.OB("imageData"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],YM.prototype,"onImageDataChange",null);
_.V([_.W("cropCoordinatesSaved"),_.f("design:type",String),_.f("design:paramtypes",[])],YM.prototype,"pickerModeStyle",null);_.V([_.W("instruction.editInstruction.learnMore"),_.f("design:type",Object),_.f("design:paramtypes",[])],YM.prototype,"learnMore",null);_.V([_.W("learnMore"),_.f("design:type",Object),_.f("design:paramtypes",[])],YM.prototype,"learnMoreUrl",null);_.V([_.sB({is:"yt-img-crop-picker",disableElementRegistration:!0})],YM);
_.k(YM,"yt-img-crop-picker",function(){if(imG===void 0){var b=document.createElement("template");_.D(b,'\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>');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;EKN===void 0&&(EKN=document.createElement("template"));var S=EKN;y.call(h,S.content.cloneNode(!0),b.content.firstChild);imG=b}b=imG;return b},{mode:2});var Te=function(){var b=_.g.apply(this,arguments)||this;b.errorMessage="";b.hasPreview=!1;b.isBackstagePost=!1;b.dismissButtonOverrides={size:"XS"};return b};
_.z(Te,_.g);_.d=Te.prototype;_.d.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"}}}};
_.d.detached=function(){this.removeOverlay()};
_.d.setPreview=function(b){_.$x(this.hostElement).querySelector("#preview-picker").imageData=b;this.hasPreview=!0;_.Sx(this.hostElement,"yt-backstage-image-select-preview")};
_.d.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var b=_.$x(this.hostElement).querySelector("#dropzone");b.classList.remove("dragover");b.classList.remove("error");_.Sx(this.hostElement,"yt-backstage-image-select-cancel")};
_.d.setupOverlay=function(){var b=this.imageUploadEndpoint;this.removeOverlay();if(b&&b.imageValidationInfo){var h=_.$x(this.hostElement).querySelector("#dropzone"),y=_.$x(this.hostElement).querySelector("#select");this.overlay=new JT(b.uploadUrl,b.channelId,b.imageValidationInfo.maxFileSizeMb,b.imageValidationInfo.allowedMaxAspectRatio,h,y,!0);_.W3(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.W3(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.W3(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.W3(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.W3(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.d.removeOverlay=function(){this.overlay&&(_.Yy(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.Yy(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.Yy(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.Yy(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.Yy(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.d.onDragOver=function(b){var h=_.$x(this.hostElement).querySelector("#dropzone");_.Zm(h,"dragover",b.value)};
_.d.onPreview=function(b){this.setPreview(b.value)};
_.d.onImageError=function(b){if(b.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var h;b=(h=this.data)==null?void 0:h.fileSizeError}else if(b.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var y;b=(y=this.data)==null?void 0:y.invalidError}else if(b.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var S;b=(S=this.data)==null?void 0:S.invalidAspectRatioError}else return;this.errorMessage=_.vi(b);_.$x(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.d.onImageAlert=function(b){this.onImageError(b)};
_.d.uploadPromise=function(){var b=this,h=this.overlay&&this.overlay.uploadPromise();if(h)return h.catch(function(){throw Error(b.data?_.vi(b.data.uploadFailureError):"");})};
_.tm.Object.defineProperties(Te.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var b;return(b=this.data)==null?void 0:b.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var b;return(b=this.data)==null?void 0:b.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var b,h;if((b=this.data)==null?0:(h=b.icon)==null?0:h.iconType)return _.o_(this.data.icon.iconType)}}});
Te.prototype.setupOverlay=Te.prototype.setupOverlay;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Te.prototype,"rendererStamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Te.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Te.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],Te.prototype,"imageUploadEndpoint",void 0);_.V([_.C(),_.f("design:type",Object)],Te.prototype,"errorMessage",void 0);
_.V([_.C(),_.f("design:type",JT)],Te.prototype,"overlay",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Te.prototype,"hasPreview",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Te.prototype,"isBackstagePost",void 0);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],Te.prototype,"selectionCancel",null);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],Te.prototype,"previewCancel",null);
_.V([_.W("data.icon.iconType"),_.f("design:type",Object),_.f("design:paramtypes",[])],Te.prototype,"icon",null);_.V([_.C(),_.f("design:type",Object)],Te.prototype,"dismissButtonOverrides",void 0);_.V([_.OB("imageUploadEndpoint"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Te.prototype,"setupOverlay",null);_.V([_.Yx({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],Te);
_.k(Te,"ytd-backstage-image-select-renderer",function(){if(ksP!==void 0)return ksP;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return ksP=b},{mode:1});var fda;var wG8;var Ge=function(){var b=_.g.apply(this,arguments)||this;b.selected=!1;return b};
_.z(Ge,_.g);_.d=Ge.prototype;_.d.computeSelected=function(b){return b==null?void 0:b.selected};
_.d.computeTransform=function(b,h,y){var S,F,a=(F=(S=this.imageContainer)==null?void 0:S.getBoundingClientRect())!=null?F:{width:0,height:0};S=Math.max(a.width/h,a.height/y);y=y*S*b.top;return"translateX("+this.getSignedPosition(h*S*b.left,"X","-")+") translateY("+this.getSignedPosition(y,"Y","-")+")"};
_.d.getSignedPosition=function(b,h,y){return h==="X"&&_.QC("HTML_DIR")==="rtl"?y==="-"?b+"px":b*-1+"px":y==="-"?b*-1+"px":b+"px"};
_.d.onClick=function(){var b;_.Sx(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(b=this.data)==null?void 0:b.image)};
_.d.onKeyPress=function(b){if(b.keyCode===13)this.onClick()};
_.tm.Object.defineProperties(Ge.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var b,h;return((b=this.data)==null?void 0:(h=b.image)==null?void 0:h.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var b;if((b=this.data)!=null&&b.image){var h;b=(h=this.data)==null?void 0:h.image;return b.previewCoordinates.top!==0||b.previewCoordinates.left!==0?(h=this.computeTransform(b.previewCoordinates,b.naturalWidth,b.naturalHeight),b.naturalHeight>=b.naturalWidth?"width:inherit;transform:"+h+";":"height:inherit;transform:"+h+";"):b.naturalHeight>=b.naturalWidth?"width:inherit;":"height:inherit;"}}}});
Ge.prototype.onKeyPress=Ge.prototype.onKeyPress;_.V([_.to(".image-container"),_.f("design:type",HTMLElement)],Ge.prototype,"imageContainer",void 0);_.V([_.C(),_.f("design:type",Object)],Ge.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.f("design:type",Object)],Ge.prototype,"selected",void 0);_.V([_.W("data.image"),_.f("design:type",Object),_.f("design:paramtypes",[])],Ge.prototype,"thumbnailUrl",null);
_.V([_.W("data.image","data.image.previewCoordinates"),_.f("design:type",Object),_.f("design:paramtypes",[])],Ge.prototype,"thumbnailStyle",null);_.V([_.u3("keypress"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],Ge.prototype,"onKeyPress",null);_.V([_.Yx({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],Ge);
_.k(Ge,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(wG8!==void 0)return wG8;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return wG8=b},{mode:2});var kM=function(b,h,y){y=y===void 0?!1:y;_.TI.call(this);var S=this;this.dropZoneOverlay=new kL(b);this.selectOverlay=y?new Vj(h,"multiple_file",["image/*"]):new Vj(h,"single_file",["image/*"]);this.handler=new _.B_(this);_.pq(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(h,"click",function(){S.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.z(kM,_.TI);kM.prototype.onChange=function(b){var h;(h=b.files)!=null&&h.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:b.files}))};var Vz=function(){var b=_.g.apply(this,arguments)||this;b.addImageErrorMessage="";b.errorMessage="";b.images=[];b.selectedImageIndex=0;b.modern=_.r("web_modern_buttons");b.maxNumImagesPerPost=_.tj("max_num_images_per_post_web_ui");b.JSC$16005_imageId=0;return b};
_.z(Vz,_.g);_.d=Vz.prototype;_.d.created=function(){var b=this;this.JSC$16005_ytReorderableController=new _.LRW(100,function(h){b.handleDrop(h)})};
_.d.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.Sx(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.d.observeDragToReorder=function(){var b=this;if(this.showImagesPreview){var h,y=ME7(_.wD.getInstance(),(h=this.data)==null?void 0:h.dragToReorderTooltip);_.xP.addLowPriorityJob(function(){_.jx(b.hostElement,y,b.thumbnailDragDropArea)})}};
_.d.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}}};
_.d.computeThumbnail=function(b){return(b==null?void 0:b.localImageSrc)||void 0};
_.d.onRendererstamperFinished=function(){_.PP8(this.JSC$16005_ytReorderableController,_.$x(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.$x(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.d.handleDrop=function(b){var h=b.currDragItem;if(h!=null&&h.data){b=this.images[this.selectedImageIndex];var y=h.data.image,S=this.images.indexOf(y)||0;h=_.C4(h.parentNode.children,h);this.images.splice(S,1);this.images.splice(h,0,y);this.images=[].concat(_.f$(this.images));this.selectedImageIndex=this.images.indexOf(b)}};
_.d.setUpImagePicker=function(){var b=this.imageUploadEndpoint;b&&b.imageValidationInfo&&(this.uploadManager=new CX(b.uploadUrl,b.channelId),this.initialPicker||(this.initialPicker=new kM(this.dropzone,this.selectLink,!0),_.W3(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new kM(this.addImageButtonContainer,this.addImageSelectButton),_.W3(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.W3(this.JSC$16005_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.W3(this.JSC$16005_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.W3(_.$x(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.d.detached=function(){this.initialPicker&&(_.Yy(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.Yy(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0);_.F$(this.JSC$16005_ytReorderableController)};
_.d.onInitialSelectImages=function(b){var h=this;return _.Z(function(y){return y.yield(h.onSelectImages(b,!1),0)})};
_.d.onAddImage=function(b){var h=this;return _.Z(function(y){return y.yield(h.onSelectImages(b,!0),0)})};
_.d.onSelectImages=function(b,h){var y=this,S,F,a,P,K,n,X,u,O,N,t,R,I,U,p,e,E,Y,w,x;return _.Z(function(q){switch(q.nextAddress){case 1:h?y.addImageErrorMessage="":(y.images=[],y.errorMessage="");S=b.detail;F=y.validateImages([].concat(_.f$(S)));if(F!=="")return h?y.addImageErrorMessage=F:y.errorMessage=F,q.return();a=[].concat(_.f$(S)).map(function(dI){return(new UU(y.maxAspectRatio,!1,!0)).transform(dI)});
return q.yield(Promise.allSettled(a),2);case 2:P=q.yieldResult,K=_.L(P.entries()),n=K.next();case 3:if(n.done){q.jumpTo(5);break}X=n.value;u=_.L(X);O=u.next().value;N=u.next().value;t=O;R=N;if(R.status!=="fulfilled"){p=U=I=void 0;h?y.addImageErrorMessage=_.vi((I=y.data)==null?void 0:I.invalidError):y.errorMessage=y.errorMessage===""?_.vi((U=y.data)==null?void 0:U.invalidError):_.vi((p=y.data)==null?void 0:p.multiFileError);q.jumpTo(4);break}e=R.value;e.cropped&&_.Sx(y.hostElement,"yt-backstage-multi-image-cropped");
if(e.invalidAspectRatio){w=Y=E=void 0;h?y.addImageErrorMessage=_.vi((E=y.data)==null?void 0:E.invalidAspectRatioError):y.errorMessage=y.errorMessage===""?_.vi((Y=y.data)==null?void 0:Y.invalidAspectRatioError):_.vi((w=y.data)==null?void 0:w.multiFileError);q.jumpTo(4);break}return q.yield(e5q(y.JSC$16005_imageId,b.detail[t],e.transformedData),8);case 8:x=q.yieldResult,y.images.push(x),y.JSC$16005_imageId++;case 4:n=K.next();q.jumpTo(3);break;case 5:if(y.errorMessage!==""||y.addImageErrorMessage!==
"")return q.return();h?JMW(y.uploadManager,[y.images[y.images.length-1]]):JMW(y.uploadManager,y.images);y.images=[].concat(_.f$(y.images));y.selectedImageIndex=h?Math.max(y.images.length-1,0):0;_.Sx(y.hostElement,"yt-backstage-multi-image-select");_.g3(q)}})};
_.d.onThumbnailClick=function(b){if(b=b.event_.detail)this.selectedImageIndex=this.images.indexOf(b)};
_.d.validateImages=function(b){if(b.length>this.maxNumImagesPerPost){var h;return _.vi((h=this.data)==null?void 0:h.multiImageExceedMaxImageCountError)}var y=1048576*this.maxFileSizeMb;b=b.filter(function(a){return a.size>y}).length;
if(b===0)return"";var S,F;b=b>1?(S=this.data)==null?void 0:S.multiFileError:(F=this.data)==null?void 0:F.fileSizeError;return _.vi(b)};
_.d.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.f$(this.images));this.selectedImageIndex=0};
_.d.repositionImage=function(b){this.images[this.selectedImageIndex].previewCoordinates=b.event_.detail;this.images=[].concat(_.f$(this.images))};
_.d.getAllUploadStatuses=function(){var b=this,h,y,S,F;return _.Z(function(a){if(a.nextAddress==1)return a.yield(b.uploadManager.getAllUploadStatuses(),2);h=a.yieldResult;y=_.L(h);for(S=y.next();!S.done;S=y.next())if(F=S.value,F.encryptedBlobId===void 0)return a.return(eeN(b.uploadManager));return a.return(h)})};
_.d.hasImages=function(){return this.images.length>0};
_.d.cancel=function(){for(var b=this.uploadManager,h=_.L(b.imagesUploadData),y=h.next();!y.done;y=h.next())b.cancel(y.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.Sx(this.hostElement,"yt-backstage-multi-image-cancel")};
_.tm.Object.defineProperties(Vz.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var b,h;return((b=this.imageUploadEndpoint)==null?void 0:(h=b.imageValidationInfo)==null?void 0:h.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var b,h;return((b=this.imageUploadEndpoint)==null?void 0:(h=b.imageValidationInfo)==null?void 0:h.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var b,h;if((b=this.data)==null?0:(h=b.icon)==null?0:h.iconType)return _.o_(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var b;return(b=this.data)==null?void 0:b.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var b;return(b=this.data)==null?void 0:b.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var b;return(b=this.data)==null?void 0:b.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 b=this;return(this.images||[]).map(function(h,y){return{renderer:{image:h,selected:y===b.selectedImageIndex}}})}}});
Vz.prototype.setUpImagePicker=Vz.prototype.setUpImagePicker;Vz.prototype.onRendererstamperFinished=Vz.prototype.onRendererstamperFinished;Vz.prototype.observeDragToReorder=Vz.prototype.observeDragToReorder;Vz.prototype.observeAddImageError=Vz.prototype.observeAddImageError;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Vz.prototype,"rendererStamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Vz.prototype,"ytRendererBehavior",void 0);
_.V([_.to("#dropzone"),_.f("design:type",HTMLElement)],Vz.prototype,"dropzone",void 0);_.V([_.to("#select-link"),_.f("design:type",HTMLElement)],Vz.prototype,"selectLink",void 0);_.V([_.to("#thumbnail-drag-drop-area"),_.f("design:type",HTMLElement)],Vz.prototype,"thumbnailDragDropArea",void 0);_.V([_.to("#add-image-button-container"),_.f("design:type",HTMLElement)],Vz.prototype,"addImageButtonContainer",void 0);
_.V([_.to("#add-image-button"),_.f("design:type",HTMLElement)],Vz.prototype,"addImageSelectButton",void 0);_.V([_.to("#image-preview-container"),_.f("design:type",Object)],Vz.prototype,"JSC$16005_imagePreviewContainer",void 0);_.V([_.C(),_.f("design:type",Object)],Vz.prototype,"addImageErrorMessage",void 0);_.V([_.C(),_.f("design:type",Object)],Vz.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],Vz.prototype,"errorMessage",void 0);
_.V([_.C(),_.f("design:type",Object)],Vz.prototype,"imageUploadEndpoint",void 0);_.V([_.C(),_.f("design:type",Array)],Vz.prototype,"images",void 0);_.V([_.C(),_.f("design:type",kM)],Vz.prototype,"initialPicker",void 0);_.V([_.C(),_.f("design:type",kM)],Vz.prototype,"addImagePicker",void 0);_.V([_.C(),_.f("design:type",CX)],Vz.prototype,"uploadManager",void 0);_.V([_.C(),_.f("design:type",Object)],Vz.prototype,"selectedImageIndex",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Vz.prototype,"modern",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Vz.prototype,"maxNumImagesPerPost",void 0);_.V([_.W("imageUploadEndpoint"),_.f("design:type",Number),_.f("design:paramtypes",[])],Vz.prototype,"maxAspectRatio",null);_.V([_.W("imageUploadEndpoint"),_.f("design:type",Number),_.f("design:paramtypes",[])],Vz.prototype,"maxFileSizeMb",null);
_.V([_.W("data.icon.iconType"),_.f("design:type",Object),_.f("design:paramtypes",[])],Vz.prototype,"dropIcon",null);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],Vz.prototype,"selectionCancel",null);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],Vz.prototype,"previewCancel",null);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],Vz.prototype,"dataForAddImageButton",null);
_.V([_.W("errorMessage"),_.f("design:type",String),_.f("design:paramtypes",[])],Vz.prototype,"dropzoneClass",null);_.V([_.W("images"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Vz.prototype,"showImagesPreview",null);_.V([_.W("images"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Vz.prototype,"containMaxImages",null);_.V([_.OB("addImageErrorMessage"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Vz.prototype,"observeAddImageError",null);
_.V([_.OB("showImagesPreview"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Vz.prototype,"observeDragToReorder",null);_.V([_.W("images","selectedImageIndex"),_.f("design:type",Object),_.f("design:paramtypes",[])],Vz.prototype,"selectedImageData",null);_.V([_.W("images","selectedImageIndex"),_.f("design:type",Array),_.f("design:paramtypes",[])],Vz.prototype,"thumbnailRenderers",null);
_.V([_.u3("yt-rendererstamper-finished"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Vz.prototype,"onRendererstamperFinished",null);_.V([_.OB("imageUploadEndpoint"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Vz.prototype,"setUpImagePicker",null);_.V([_.Yx({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],Vz);
_.k(Vz,"ytd-backstage-multi-image-select-renderer",function(){if(fda!==void 0)return fda;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return fda=b},{mode:1});var lda;var qqb;var x_N;var EH=function(){var b=_.g.apply(this,arguments)||this;b.boundCaptureFocus=function(h){b.onCaptureFocus(h)};
return b};
_.z(EH,_.g);_.d=EH.prototype;_.d.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.d.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.d.onCaptureFocus=function(b){_.Qk(b).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.d.getIconType=function(b){return b?"yt-icons:"+b.toLowerCase():null};
_.d.onSelect=function(){var b;if((b=this.data)==null?0:b.onSelectCommand)if(_.r("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var h;((h=_.c(this.data.onSelectCommand.commandMetadata,_.ZW))==null?0:h.url)?_.Sx(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.H9().resolve(_.OM).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.tm.Object.defineProperties(EH.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.vi(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}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],EH.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],EH.prototype,"ytComponentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],EH.prototype,"data",void 0);_.V([_.to("#item"),_.f("design:type",HTMLElement)],EH.prototype,"item",void 0);_.V([_.W("data.label"),_.f("design:type",String),_.f("design:paramtypes",[])],EH.prototype,"label",null);
_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],EH.prototype,"value",null);_.V([_.Yx({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],EH);
_.k(EH,"ytd-privacy-dropdown-item-renderer",function(){if(x_N!==void 0)return x_N;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return x_N=b},{mode:1});var iQ=function(){var b=_.g.apply(this,arguments)||this;b.value="";b.label="";b.disabled=!1;return b};
_.z(iQ,_.g);_.d=iQ.prototype;_.d.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"}}}};
_.d.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.d.dataChanged=function(){this.reset()};
_.d.valueChanged=function(){var b;if(this.value&&(b=this.data)!=null&&b.entries){b=_.L(this.data.entries);for(var h=b.next();!h.done;h=b.next())if((h=this.getRendererForEntry(h.value))&&this.getItemRendererValue(h)===this.value){this.label=this.ytComponentBehavior.getSimpleString(h.label);break}}};
_.d.setInitialLabel=function(){if(this.data&&this.data.entries)for(var b=_.L(this.data.entries),h=b.next();!h.done;h=b.next())if(h=this.getRendererForEntry(h.value)){if(h.isSelected){this.label=this.ytComponentBehavior.getSimpleString(h.label);break}this.data.label&&(this.label=this.data.label)}};
_.d.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var b=_.L(this.data.entries),h=b.next();!h.done;h=b.next()){h=this.getRendererForEntry(h.value);var y=void 0;if((y=h)==null?0:y.isSelected)return this.getItemRendererValue(h)||-1}return-1};
_.d.getItemRendererValue=function(b){return"stringValue"in b||"int32Value"in b?b.stringValue||b.int32Value||null:null};
_.d.getRendererForEntry=function(b){return b.dropdownItemRenderer||b.privacyDropdownItemRenderer||b.navigationDropdownItemRenderer||null};
_.d.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ut("value-changed",this.value))};
_.d.updateValueFromBinding=function(b){this.value=b.detail.value};
iQ.prototype.valueChangedForBinding=iQ.prototype.valueChangedForBinding;iQ.prototype.valueChanged=iQ.prototype.valueChanged;iQ.prototype.dataChanged=iQ.prototype.dataChanged;_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],iQ.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],iQ.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],iQ.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],iQ.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],iQ.prototype,"value",void 0);_.V([_.C(),_.f("design:type",Object)],iQ.prototype,"label",void 0);_.V([_.to("#entries"),_.f("design:type",Object)],iQ.prototype,"entries",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],iQ.prototype,"disabled",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],iQ.prototype,"dataChanged",null);
_.V([_.zj("value"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],iQ.prototype,"valueChanged",null);_.V([_.OB("value"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],iQ.prototype,"valueChangedForBinding",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],iQ);
_.k(iQ,"ytd-flat-dropdown-renderer",function(){if(qqb!==void 0)return qqb;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return qqb=b},{mode:1});var QKo;var fX=function(){var b=_.g.apply(this,arguments)||this;b.quizOptions=[];b.explanationPlaceholderText="";b.optionPlaceholderText="";b.correctAnswerIndex=-1;b.isMarkAnswerTooltipShown=!1;b.timer=0;return b};
_.z(fX,_.g);_.d=fX.prototype;_.d.dataChanged=function(){this.optionPlaceholderText=_.vi(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.vi(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.d.onMarkCorrectAnswer=function(b){var h,y=((h=this.quizOptions[this.correctAnswerIndex])==null?void 0:h.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[b.model.index]=Object.assign({},this.quizOptions[b.model.index],{explanationText:y,isCorrect:!0});this.correctAnswerIndex=b.model.index;this.quizOptions=[].concat(_.f$(this.quizOptions))};
_.d.updatePlaceholderTexts=function(){for(var b=!1,h=[],y=0;y<this.quizOptions.length;y++){var S=this.optionPlaceholderText+" "+(y+1),F=void 0;((F=this.quizOptions[y])==null?void 0:F.placeholderText)!==S?(b=!0,h.push(Object.assign({},this.quizOptions[y],{placeholderText:S}))):h.push(this.quizOptions[y])}b&&(this.quizOptions=h);this.isValid()?_.Sx(this.hostElement,"yt-commentbox-post-enable"):_.Sx(this.hostElement,"yt-commentbox-post-disable")};
_.d.getSimpleString=function(b){return _.vi(b)};
_.d.createQuizOptions=function(b){var h=[],y;b=(y=b==null?void 0:b.minQuizOptions)!=null?y:0;for(y=0;y<b;y++)h.push(this.createQuizOption());return h};
_.d.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.f$(this.quizOptions),[this.createQuizOption()]))};
_.d.onInput=function(){this.quizOptions=[].concat(_.f$(this.quizOptions))};
_.d.onExplanationInput=function(){_.Sx(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.d.onRemoveQuizOption=function(b){this.quizOptions.splice(b.model.index,1);b.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:b.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.f$(this.quizOptions));this.quizOptions.length===0&&_.Sx(this.hostElement,"yt-quiz-attachment-dismiss")};
_.d.updateHintRenderer=function(){var b=this;clearTimeout(this.timer);this.timer=setTimeout(function(){b.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.d.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var b=0,h=0,y=_.L(this.quizOptions),S=y.next();!S.done;S=y.next()){S=S.value;var F=void 0;if(((F=S.optionText)==null?void 0:F.trim())!==""||S.isCorrect){S.isCorrect&&h++;F=void 0;if(this.hasCustomOptionText&&((F=S.optionText)==null?void 0:F.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;b++}}return b>=
Number(this.editorInfo.minQuizOptions)&&h===1};
_.d.getPostCreateOptions=function(){for(var b=[],h=_.L(this.quizOptions),y=h.next();!y.done;y=h.next()){y=y.value;var S=void 0;((S=y.optionText)==null?void 0:S.trim())!==""&&b.push({pollOption:{text:y.optionText,explanation:y.explanationText},isCorrect:y.isCorrect})}return b};
_.d.getExplanationText=function(){var b;return((b=this.quizOptions[this.correctAnswerIndex])==null?void 0:b.explanationText)||""};
_.d.maybeDisplayMarkAnswerEduToolTip=function(){var b,h,y,S,F,a,P;this.shouldShowMarkAnswerTooltip()&&((b=this.editorInfo)==null?0:(h=b.markAnswerButton)==null?0:(y=h.buttonRenderer)==null?0:(S=y.hint)==null?0:(F=S.hintRenderer)==null?0:(a=F.content)==null?0:(P=a.bubbleHintRenderer)==null?0:P.text)&&(_.wD.getInstance(),b=lK(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,(b==null?void 0:b.length)>0&&this.optionSelectors&&_.Xb(b[0],this.optionSelectors[0]))};
_.d.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var b=0,h=_.L(this.quizOptions),y=h.next();!y.done;y=h.next()){y=y.value;var S=void 0;((S=y.optionText)==null?void 0:S.trim())!==""&&b++;if(y.isCorrect)return!1}return b<2?!1:!0};
_.d.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.d.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.d.updateOptionTextFromBinding=function(b){if(b.target){var h=Array.from(_.$x(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(b.target);if(h>=0){var y;this.quizOptions[h].optionText=(y=b.detail.value)!=null?y:""}}};
_.tm.Object.defineProperties(fX.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var b,h,y=(b=this.editorInfo)==null?void 0:(h=b.addOptionButton)==null?void 0:h.buttonRenderer;y&&(y.style="STYLE_SUGGESTIVE",y.size="SIZE_SMALL",y.isDisabled=!this.isAllowedToAddOption);return(y==null?0:y.text)?y:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var b,h;return this.quizOptions.length<((h=(b=this.editorInfo)==null?void 0:b.maxQuizOptions)!=null?h:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(b){var h;return(h=b.optionText)==null?void 0:h.trim()})}}});
fX.prototype.updatePlaceholderTexts=fX.prototype.updatePlaceholderTexts;fX.prototype.dataChanged=fX.prototype.dataChanged;_.V([_.C(),_.f("design:type",Object)],fX.prototype,"editorInfo",void 0);_.V([_.C(),_.f("design:type",Array)],fX.prototype,"quizOptions",void 0);_.V([_.C(),_.f("design:type",Object)],fX.prototype,"explanationPlaceholderText",void 0);_.V([_.ry(".option-selector-button"),_.f("design:type",Array)],fX.prototype,"optionSelectors",void 0);
_.V([_.zj("editorInfo"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],fX.prototype,"dataChanged",null);_.V([_.W("editorInfo","isAllowedToAddOption","quizOptions"),_.f("design:type",Object),_.f("design:paramtypes",[])],fX.prototype,"addAnswerButton",null);_.V([_.W("editorInfo","quizOptions"),_.f("design:type",Object),_.f("design:paramtypes",[])],fX.prototype,"isAllowedToAddOption",null);
_.V([_.zj("quizOptions"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],fX.prototype,"updatePlaceholderTexts",null);_.V([_.W("quizOptions"),_.f("design:type",Object),_.f("design:paramtypes",[])],fX.prototype,"hasCustomOptionText",null);_.V([_.Yx({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],fX);
_.k(fX,"ytd-backstage-quiz-editor-renderer",function(){if(QKo!==void 0)return QKo;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return QKo=b},{mode:2});var m_8;var vKa=(HV.FIRSTDAYOFWEEK+1)%7;var bQP;var h$5=[],yHG=0,S4N=0;yHG=0;S4N=24;if(.25*(S4N-yHG)<0)bQP=[];else{for(var Fvo=yHG;Fvo<S4N;Fvo+=.25)h$5.push(Fvo);bQP=h$5}var aO8=bQP.map(function(b){b=b*60*60;return{secondsSinceMidnight:b,text:(new QE(7)).format(new Date(0,0,0,0,0,b))}});var dV5;var wp=function(){var b=_.g.apply(this,arguments)||this;b.skipNextOpenDialog=!1;b.errorMessage="";b.previousMonthLabel=_.Mt("PREVIOUS_MONTH_LABEL");b.nextMonthLabel=_.Mt("NEXT_MONTH_LABEL");return b};
_.z(wp,_.g);_.d=wp.prototype;_.d.attached=function(){var b=this,h=new MutationObserver(function(){b.JSC$16047_calendarMain.scrollHeight>0&&(h.disconnect(),b.calendarConfig&&b.calendarConfig.selectedDate&&b.scrollToDate())});
h.observe(this.JSC$16047_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){h.disconnect()},1E3)};
_.d.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.d.onDateTextChange=function(){if(this.calendarConfig){var b=this.validateDateText();b.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(b.details)):this.textbox.setAttribute("invalid","")}};
_.d.handleDayClick=function(b){b.model.day.date&&(this.commitDate(b.model.day.date),this.dialog.close())};
_.d.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var b=fkj(this.calendarConfig.selectedDate,this.renderData);b!==void 0&&this.JSC$16047_calendarMain.scrollToIndex(b)}};
_.d.scrollToNextMonth=function(){this.JSC$16047_calendarMain.scrollToIndex(this.JSC$16047_calendarMain.firstVisibleIndex+1)};
_.d.scrollToPrevMonth=function(){this.JSC$16047_calendarMain.firstVisibleIndex===0&&this.JSC$16047_calendarMain.scrollTo(0,0);this.JSC$16047_calendarMain.scrollToIndex(this.JSC$16047_calendarMain.firstVisibleIndex-1)};
_.d.onFormSubmit=function(b){b.preventDefault();this.calendarConfig&&(b=this.validateDateText(),b.isValid&&(this.commitDate(b.details),this.dialog.close()))};
_.d.onEscOrClickingOutside=function(b){b=b.detail.path&&!!b.detail.path.length&&b.detail.path[0];if(b.classList.contains("ytd-calendar-date-picker")){b===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var h=0;h<this.dropdownButton.children.length;h++)this.dropdownButton.children[h]===b&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}b=this.textbox.value!==this.dateText;h=this.validateDateText();b&&h.isValid&&this.commitDate(h.details);this.dialog.close();this.textbox.value=
this.dateText};
_.d.commitDate=function(b){this.calendarConfig&&(this.set("calendarConfig.selectedDate",b),_.Sx(this.hostElement,"ytd-calendar-date-selected",b))};
_.d.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var b=this.textbox.value;var h=new Date;b=(new K7y(2)).parse(b,h,{validate:!0})===b.length?Eh8(h):void 0;if(!b)return this.errorMessage=_.Mt("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};h=this.calendarConfig.start;var y=this.calendarConfig.end;if(Ymq(b,h))return this.errorMessage=_.Mt("ENTER_DATE_OR_LATER",{allowed_date:VfY(h)}),{isValid:!1,details:void 0};if(Ymq(y,b))return this.errorMessage=
_.Mt("ENTER_DATE_OR_EARLIER",{allowed_date:VfY(y)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:b}};
_.tm.Object.defineProperties(wp.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?VfY(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var b=this.calendarConfig,h=[],y=0;y<7;y++)h.push(HV.NARROWWEEKDAYS[(y+vKa)%7]);y=[];for(var S=new Date(b.start.year,b.start.month);S.getFullYear()<b.end.year||S.getFullYear()===b.end.year&&S.getMonth()<=b.end.month;){var F=y,a=F.push,P=S.getFullYear(),K=S.getMonth(),n=b,X=void 0,u=[],O=Object.freeze({extraCssClass:"invisible",debugClass:""}),N=new Date(P,K),t=Eh8(N);N=N.getDay();for(var R=Eh8(new Date);t.month===
K;){N!==vKa&&X||(X=Array.from({length:7}).fill(O),u.push(X));var I={date:{year:P,month:K,day:t.day},extraCssClass:"",debugClass:""};n.selectedDate&&I.date&&sjM(I.date,n.selectedDate)&&(I.extraCssClass+=" selected");if(Ymq(t,n.start)||Ymq(n.end,t))I.extraCssClass+=" disabled";sjM(t,R)&&(I.extraCssClass+=" today");I.extraCssClass=I.extraCssClass.trim();X[(N-vKa+7)%7]=I;t=GX5(t);N=(N+1)%7}a.call(F,{weeks:u,monthLabel:HV.SHORTMONTHS[K]+" "+P,year:P,month:K,monthLabelExtraCssClass:u[0][2]===O?"shift-down-label":
""});S.setMonth(S.getMonth()+1)}return{months:y,daysOfWeekLabel:h}}}}});
wp.prototype.onEscOrClickingOutside=wp.prototype.onEscOrClickingOutside;wp.prototype.scrollToDate=wp.prototype.scrollToDate;_.V([_.C(),_.f("design:type",Object)],wp.prototype,"calendarConfig",void 0);_.V([_.C(),_.f("design:type",Object)],wp.prototype,"skipNextOpenDialog",void 0);_.V([_.C(),_.f("design:type",Object)],wp.prototype,"errorMessage",void 0);_.V([_.C(),_.f("design:type",Object)],wp.prototype,"previousMonthLabel",void 0);
_.V([_.C(),_.f("design:type",Object)],wp.prototype,"nextMonthLabel",void 0);_.V([_.to("#textbox"),_.f("design:type",HTMLInputElement)],wp.prototype,"textbox",void 0);_.V([_.to("#calendar-dialog"),_.f("design:type",Object)],wp.prototype,"dialog",void 0);_.V([_.to("#calendar-main"),_.f("design:type",Object)],wp.prototype,"JSC$16047_calendarMain",void 0);_.V([_.to("#date-picker"),_.f("design:type",HTMLElement)],wp.prototype,"dropdownButton",void 0);
_.V([_.W("calendarConfig.selectedDate"),_.f("design:type",String),_.f("design:paramtypes",[])],wp.prototype,"dateText",null);_.V([_.W("calendarConfig","calendarConfig.selectedDate"),_.f("design:type",Object),_.f("design:paramtypes",[])],wp.prototype,"renderData",null);_.V([_.OB("renderData","calendarConfig.selectedDate"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],wp.prototype,"scrollToDate",null);
_.V([_.u3("iron-overlay-canceled"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],wp.prototype,"onEscOrClickingOutside",null);_.V([_.sB({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],wp);
_.k(wp,"ytd-calendar-date-picker",function(){if(dV5!==void 0)return dV5;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return dV5=b},{mode:2});var jga=_.Mt("UTC_OFFSET_FORMAT",{utc_offset:(new QE("Z")).format(new Date)}),$Vw=(new Date).getTimezoneOffset()*-60,Lvw=new Date,Pbe,Kvo=x8(Lvw.getTimezoneOffset());Pbe=EEb(fv8(Kvo,Lvw));var ZQM=_.Mt("LOCAL_TIME_GMT_LABEL",{gmt_text:Pbe.replace("+0","+").replace("-0","-").replace(":00","")}),lQ=function(){var b=_.g.apply(this,arguments)||this;b.selectedTimeIndex=0;b.selectedTimezoneIndex=0;b.timeOfDayOptions=aO8;return b};
_.z(lQ,_.g);_.d=lQ.prototype;_.d.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.d.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var b=kXF();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=b,this.selectedTimeIndex=0;else{var h=i3F(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},b,{selectedDate:h.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(y){return y.secondsSinceMidnight===h.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.d.onDatePicked=function(b){this.selectedDate=b.detail};
_.d.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.Sx(this.hostElement,"ytd-date-time-selection-cancelled")};
_.d.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var b=this.selectedDate;b=new Date(b.year,b.month,b.day);_.Sx(this.hostElement,"ytd-date-time-selection-update",Math.floor(b.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+b.getTimezoneOffset()*60))}};
_.d.getTimezoneFormat=function(b){return b.localizedDisplayText?b.localizedDisplayText:_.Mt("TIMEZONE_FORMAT",{utc_offset_text:""+b.localizedUtcOffset,city_name:""+b.localizedName})};
_.d.updateSelectedTimeIndexFromBinding=function(b){this.selectedTimeIndex=b.detail.value};
_.d.updateSelectedTimezoneIndexFromBinding=function(b){this.selectedTimezoneIndex=b.detail.value};
_.tm.Object.defineProperties(lQ.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var b=this.data.timezoneOptions;var h={name:"Etc/Unknown",localizedName:_.Mt("LOCAL_TIME_LABEL"),localizedUtcOffset:jga,utcOffsetSec:""+$Vw,localizedDisplayText:ZQM};b?b.length&&b[0].name!==h.name&&(b[0].localizedDisplayText||(h.localizedDisplayText=""),b.unshift(h)):b=[h];return b}}},
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]}}});
lQ.prototype.onDateTimeTimezoneChange=lQ.prototype.onDateTimeTimezoneChange;lQ.prototype.onDatePicked=lQ.prototype.onDatePicked;lQ.prototype.updateDefaultSelectedValue=lQ.prototype.updateDefaultSelectedValue;_.V([_.C(),_.f("design:type",Object)],lQ.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],lQ.prototype,"calendarConfig",void 0);_.V([_.C(),_.f("design:type",Object)],lQ.prototype,"selectedDate",void 0);_.V([_.C(),_.f("design:type",Object)],lQ.prototype,"selectedTimeIndex",void 0);
_.V([_.C(),_.f("design:type",Object)],lQ.prototype,"selectedTimezoneIndex",void 0);_.V([_.to("#time-listbox"),_.f("design:type",Object)],lQ.prototype,"timeListBox",void 0);_.V([_.to("#timezone-listbox"),_.f("design:type",Object)],lQ.prototype,"timezoneListBox",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],lQ.prototype,"rendererStamperBehavior",void 0);_.V([_.W("data.timezoneOptions"),_.f("design:type",Object),_.f("design:paramtypes",[])],lQ.prototype,"timeZones",null);
_.V([_.zj("data","timeZones"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],lQ.prototype,"updateDefaultSelectedValue",null);_.V([_.W("selectedTimezoneIndex","timeZones"),_.f("design:type",Object),_.f("design:paramtypes",[])],lQ.prototype,"selectedTimezone",null);_.V([_.W("selectedTimeIndex"),_.f("design:type",Object),_.f("design:paramtypes",[])],lQ.prototype,"selectedTime",null);
_.V([_.u3("ytd-calendar-date-selected"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],lQ.prototype,"onDatePicked",null);_.V([_.OB("selectedTimezone","selectedTime","selectedDate"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],lQ.prototype,"onDateTimeTimezoneChange",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],lQ);
_.k(lQ,"ytd-date-time-picker-renderer",function(){if(m_8!==void 0)return m_8;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return m_8=b},{mode:1});var o57;var qj=function(){var b=_.g.apply(this,arguments)||this;b.boundOnTapDismissButton=function(){b.dismissTapHandler()};
b.dismissButtonOverrides={size:"XS"};return b};
_.z(qj,_.g);qj.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}}}}}};
qj.prototype.dismissTapHandler=function(){_.Sx(this.hostElement,"yt-backstage-attachment-dismissed")};
qj.prototype.computeAttachmentType=function(b){return b?b.backstageImageRenderer?"image":b.videoRenderer?"video":"none":"none"};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],qj.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],qj.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],qj.prototype,"attachmentPreview",void 0);_.V([_.C(),_.f("design:type",Object)],qj.prototype,"dismissButton",void 0);_.V([_.C(),_.f("design:type",Object)],qj.prototype,"boundOnTapDismissButton",void 0);
_.V([_.C(),_.f("design:type",Object)],qj.prototype,"dismissButtonOverrides",void 0);_.V([_.C({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.f("design:type",String)],qj.prototype,"attachmentType",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],qj);
_.k(qj,"ytd-backstage-dismissable-attachment",function(){if(o57!==void 0)return o57;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return o57=b},{mode:1});var M87;var xM=function(){var b=_.g.apply(this,arguments)||this;b.selectedVideoId=void 0;b.picker=void 0;b.dismissButtonOverrides={size:"XS"};b.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return b};
_.z(xM,_.g);_.d=xM.prototype;_.d.onServiceRequestCompleted=function(b){b.stopPropagation()};
_.d.handleAddVideoPreviewAction=function(b){b=this.get("addVideoPreviewAction",b);this.onGetVideoPreviewSuccess(b)};
_.d.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}}}}}};
_.d.onLaunchVideoPicker=function(b){var h=this,y=_.vi(this.get("addVideoLinkAction.title",b)),S=this.get("addVideoLinkAction.onePickHostId",b);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",b);S&&(this.picker||(y=_.JR8(_.XQf(S).setTitle(y).addView(WVG()).addView(B_N()),function(F){h.onPickVideo(F)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",b)||y.addView("youtube"),this.picker=y.build()),this.picker.setVisible(!0))};
_.d.onPickVideo=function(b){if(b)if(b.action==="cancel")_.Sx(this.hostElement,"yt-video-link-button-cancel");else if(b.action==="picked"){b=b.docs;if(!b||b.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(b=(b==null?0:b.length)?b[0]:void 0)?b.id:void 0;this.setVideoPreview()}};
_.d.setVideoPreview=function(){var b=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){b.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.d.onGetVideoPreviewSuccess=function(b){if(b&&b.videoPreview&&b.cancelButton)this.videoPreview=b.videoPreview,this.cancelButton=b.cancelButton,_.Sx(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.d.onGetVideoPreviewError=function(){this.cancel()};
_.d.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.Sx(this.hostElement,"yt-video-link-cancel")};
_.d.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
xM.prototype.onServiceRequestCompleted=xM.prototype.onServiceRequestCompleted;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],xM.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],xM.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],xM.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],xM.prototype,"ytComponentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],xM.prototype,"videoPreview",void 0);_.V([_.C(),_.f("design:type",Object)],xM.prototype,"cancelButton",void 0);_.V([_.C(),_.f("design:type",Object)],xM.prototype,"getVideoPreviewCommand",void 0);_.V([_.C(),_.f("design:type",Object)],xM.prototype,"dismissButtonOverrides",void 0);
_.V([_.u3("yt-service-request-completed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],xM.prototype,"onServiceRequestCompleted",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],xM);
_.k(xM,"ytd-backstage-video-link-attachment",function(){if(M87!==void 0)return M87;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return M87=b},{mode:1});var n5W;var Xpa;var HQ7;var Qz=function(){return _.g.apply(this,arguments)||this};
_.z(Qz,_.g);Qz.prototype.dataChanged=function(){this.active=!1};
Qz.prototype.onTap=function(){_.Sx(this.hostElement,"yt-select-emoji-suggestion",this.data)};
Qz.prototype.identity=function(b){return b};
_.tm.Object.defineProperties(Qz.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var b,h,y,S;if((b=this.data)==null?0:(h=b.image)==null?0:(y=h.thumbnails)==null?0:(S=y[0])==null?0:S.url)return b=this.data.image.thumbnails[0].url,b.startsWith("data:image/svg+xml")?k$(b):_.lJ(b)}}});
Qz.prototype.dataChanged=Qz.prototype.dataChanged;_.V([_.C(),_.f("design:type",Object)],Qz.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],Qz.prototype,"active",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Qz.prototype,"dataChanged",null);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],Qz.prototype,"imageSrc",null);
_.V([_.Yx({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],Qz);
_.k(Qz,"ytd-emoji-suggestion",function(){if(HQ7!==void 0)return HQ7;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return HQ7=b},{mode:1});var uOW=/.*([:@#].*?)$/,mZ=function(){var b=_.g.apply(this,arguments)||this;b.suggestions=[];b.suggestionIndex=-1;b.JSC$16075_lastSuggestionRange=null;return b};
_.z(mZ,_.g);_.d=mZ.prototype;_.d.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.d.getSuggestions=function(b){var h=[],y=k7G(this.emojiManager,b.substr(0,3));if(y)for(var S in y)if(S.toLocaleLowerCase().indexOf(b)===0){var F=y[S];if(F&&F.emojiId){F=Dw(this.emojiManager,F.emojiId);var a=void 0,P=void 0,K=void 0,n=void 0,X=((a=F)==null?0:a.isCustomEmoji)?(P=F)==null?void 0:(K=P.shortcuts)==null?void 0:K[0]:(n=F)==null?void 0:n.emojiId;a=void 0;h.push({suggestion:{image:(a=F)==null?void 0:a.image,alt:X,text:S}});if(h.length>=64)break}}return h?h.sort(function(u,O){return O.suggestion.text<
u.suggestion.text?-1:O.suggestion.text===u.suggestion.text?0:1}):null};
_.d.insertSuggestion=function(b){_.Sx(this.hostElement,"yt-insert-suggestion",{range:this.JSC$16075_lastSuggestionRange,text:b.alt});this.dropdown.opened=!1};
_.d.updateSuggestionsAtCaret=function(b){this.updateSuggestions(b,this.retrieveTextBeforeRange(b))};
_.d.offsetStartOfRangeBy=function(b,h){b.startOffset>=h&&b.setStart(b.startContainer,b.startOffset-h)};
_.d.updateSuggestions=function(b,h){var y=this;this.JSC$16075_lastSuggestionRange&&(this.JSC$16075_lastSuggestionRange.detach(),this.JSC$16075_lastSuggestionRange=null);if((h=uOW.exec(h))&&h.length&&(h=h[h.length-1].toLocaleLowerCase(),h.length>2||h===":_")&&(this.offsetStartOfRangeBy(b,h.length),this.JSC$16075_lastSuggestionRange=b,(b=this.getSuggestions(h))&&b.length)){this.suggestions=b;_.Ob(this,function(){y.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(b.length-1);return}this.dropdown.opened=!1};
_.d.onKeyDown=function(b){if(this.dropdown.opened)switch(b.key){case "Escape":this.dropdown.opened=!1;b.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);b.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);b.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),b.preventDefault()}};
_.d.onKeyUp=function(b,h){switch(b.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(h);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(h)}};
_.d.onKeyPress=function(b){b.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),b.preventDefault())};
_.d.changeSuggestionIndex=function(b){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(b+this.suggestions.length)%this.suggestions.length,b=this.dropdownContent.children[this.suggestionIndex],b.active=!0,this.dropdownContent.scrollTop=b.offsetTop)};
_.d.retrieveTextBeforeRange=function(b){var h=b.startContainer;return h&&h.nodeType===Node.TEXT_NODE?h.textContent.substr(0,b.startOffset):""};
mZ.prototype.onKeyPress=mZ.prototype.onKeyPress;mZ.prototype.onKeyUp=mZ.prototype.onKeyUp;mZ.prototype.onKeyDown=mZ.prototype.onKeyDown;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],mZ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Array)],mZ.prototype,"suggestions",void 0);_.V([_.C(),_.f("design:type",_.R$)],mZ.prototype,"emojiManager",void 0);_.V([_.C(),_.f("design:type",Number)],mZ.prototype,"verticalSuggestionsOffset",void 0);
_.V([_.to("#dropdown"),_.f("design:type",Object)],mZ.prototype,"dropdown",void 0);_.V([_.to("#dropdown-content"),_.f("design:type",HTMLDivElement)],mZ.prototype,"dropdownContent",void 0);_.V([_.u3("keydown"),_.f("design:type",Function),_.f("design:paramtypes",[KeyboardEvent]),_.f("design:returntype")],mZ.prototype,"onKeyDown",null);_.V([_.u3("keyup"),_.f("design:type",Function),_.f("design:paramtypes",[KeyboardEvent,Range]),_.f("design:returntype")],mZ.prototype,"onKeyUp",null);
_.V([_.u3("keypress"),_.f("design:type",Function),_.f("design:paramtypes",[KeyboardEvent]),_.f("design:returntype")],mZ.prototype,"onKeyPress",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-emoji-input"})],mZ);
_.k(mZ,"ytd-emoji-input",function(){if(Xpa!==void 0)return Xpa;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return Xpa=b},{mode:2});var OQN;var vx=function(){var b=_.g.apply(this,arguments)||this;b.hasMaxOptions=!1;return b};
_.z(vx,_.g);_.d=vx.prototype;_.d.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.d.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.d.setPrefilledChoices=function(b){var h=this;this.set("pollOptions",[]);var y;for(y=0;y<Math.min(b.length,this.data.maxPollOptions);y++)this.push("pollOptions",b[y].substring(0,this.data.maxPollOptionChars));for(;y<this.data.minPollOptions;y++)this.push("pollOptions","");this.hasMaxOptions=y>=this.data.maxPollOptions;_.Ob(this,function(){for(var S=h.pollOptions,F=_.$x(h.hostElement).querySelectorAll(".poll-option-input"),a=0;a<F.length;a++)F[a].value=S[a]})};
_.d.focusChanged=function(){_.nZ(this.hostElement)};
_.d.onInput=function(){var b=this;_.wy(this,"onInput",function(){b.isValid()?_.Sx(b.hostElement,"yt-commentbox-post-enable"):_.Sx(b.hostElement,"yt-commentbox-post-disable")},300)};
_.d.setPollOptions=function(){var b=[],h,y=((h=this.data)==null?0:h.minPollOptions)?this.data.minPollOptions:0;for(h=0;h<y;h++)b.push("");return b};
_.d.addPollOption=function(){var b=this;_.Sx(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.xP.addLowPriorityJob(function(){var h;(h=_.$x(b.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||h.focus()})};
_.d.onRemovePollOption=function(b){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.Sx(this.hostElement,"yt-poll-attachment-dismiss")):(b=this.repeat.indexForElement(b.target.parentNode),b!==null&&(this.splice("pollOptions",b,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.Sx(this.hostElement,"yt-commentbox-post-enable"))))};
_.d.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.d.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var b=0,h=this.pollOptions.length;b<h;b++)if(this.pollOptions[b].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.d.getPollOptions=function(){return this.pollOptions};
_.d.setPollOptionsFromInputs=function(){for(var b=_.$x(this.hostElement).querySelectorAll(".poll-option-input"),h=0;h<b.length;h++)this.pollOptions[h]=b[h].value.trim()};
_.d.clearPollOptions=function(){var b=_.$x(this.hostElement).querySelectorAll(".poll-option-input");b=_.L(b);for(var h=b.next();!h.done;h=b.next())h.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.d.getSimpleString=function(b){return _.vi(b)};
_.d.updateValueFromBinding=function(b){if(b.target&&this.pollOptions){var h=Array.from(_.$x(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(b.target);if(h>=0){var y;this.pollOptions[h]=(y=b.detail.value)!=null?y:"";this.notifyPath("pollOptions."+h)}}};
vx.prototype.dataChanged=vx.prototype.dataChanged;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],vx.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],vx.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Array)],vx.prototype,"pollOptions",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],vx.prototype,"hasMaxOptions",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],vx.prototype,"enableCreationBox",void 0);
_.V([_.to("#repeat"),_.f("design:type",Jo)],vx.prototype,"repeat",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],vx.prototype,"dataChanged",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-poll-attachment"})],vx);
_.k(vx,"ytd-poll-attachment",function(){if(OQN!==void 0)return OQN;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return OQN=b},{mode:2});var NLM;var t8a;var rH8;var cHW;var by=function(){return _.g.apply(this,arguments)||this};
_.z(by,_.g);_.tm.Object.defineProperties(by.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],by.prototype,"rendererBehaviors",void 0);_.V([_.C(),_.f("design:type",Object)],by.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],by.prototype,"focused",void 0);_.V([_.C({reflectToAttribute:!0}),_.W("focused"),_.f("design:type",Object),_.f("design:paramtypes",[])],by.prototype,"ariaSelected",null);_.V([_.sB({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],by);
_.k(by,"yt-user-mention-suggestion-renderer",function(){if(cHW===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;rH8===void 0&&(rH8=document.createElement("template"));var S=rH8;y.call(h,S.content.cloneNode(!0),b.content.firstChild);cHW=b}b=cHW;return b},{mode:2});var R$N;var z$5;var hf=function(){var b=_.g.apply(this,arguments)||this;b.focusedSuggestionIndex=-1;return b};
_.z(hf,_.g);_.d=hf.prototype;_.d.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.d.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.d.setFocusedSuggestionIndex=function(b){!this.data||!this.data.suggestions||b<0||b>=this.data.suggestions.length||(this.focusedSuggestionIndex=b,b=this.getSuggestionId(b),this._setFocusedSuggestionId(b))};
_.d.advanceSuggestion=function(b){this.focusedSuggestionIndex===-1||b!==-1&&b!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+b),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.d.ensureSuggestionVisible=function(b){b=this.getSuggestionId(b);b=_.$x(this.hostElement).querySelector("[id="+b+"]");b!=null&&(b.offsetTop<this.hostElement.scrollTop?b.scrollIntoView(!0):b.offsetTop+b.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&b.scrollIntoView(!1))};
_.d.getSuggestionId=function(b){return"user-mention-suggestion-"+b};
_.d.onSuggestionTap=function(b){var h=_.c(b.model.item,wP8);this.ytRendererBehavior.logExplicitClick(h);_.Sx(this.hostElement,"yt-user-mention-suggestion-selected",{data:h,index:b.model.index})};
_.d.onSuggestionMouseMove=function(b){b.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(b.model.index)};
_.d.isSuggestionFocused=function(b,h){return b===h};
_.d.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.d.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ut("focused-suggestion-id-changed",this.focusedSuggestionId))};
hf.prototype.focusedSuggestionIdChangedForBinding=hf.prototype.focusedSuggestionIdChangedForBinding;hf.prototype.onDomChange=hf.prototype.onDomChange;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],hf.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],hf.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],hf.prototype,"focusedSuggestionIndex",void 0);_.V([_.C({readOnly:!0}),_.f("design:type",String)],hf.prototype,"focusedSuggestionId",void 0);
_.V([_.u3("dom-change"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],hf.prototype,"onDomChange",null);_.V([_.OB("focusedSuggestionId"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],hf.prototype,"focusedSuggestionIdChangedForBinding",null);_.V([_.sB({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],hf);
_.k(hf,"yt-user-mention-suggestions-dropdown",function(){if(z$5===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;R$N===void 0&&(R$N=document.createElement("template"));var S=R$N;y.call(h,S.content.cloneNode(!0),b.content.firstChild);z$5=b}b=z$5;return b},{mode:2});var yv=function(){var b=_.g.apply(this,arguments)||this;b.suggestionsResponse=null;b.activeMention=null;b.selectionChangeListener=b.onSelectionChange.bind(b);b.handlesEnabled=_.r("enable_handles_in_mention_suggest_posts");b.handlesInMentionSuggestionsEnabled=_.r("handles_in_mention_suggest_posts");b.zeroPrefixMentionSuggestionEnabled=_.r("enable_zero_prefix_mention_suggestion_web");b.pendingQuery=null;b.flowNonce=null;return b};
_.z(yv,_.g);_.d=yv.prototype;_.d.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.d.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.d.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.d.hasSuggestions=function(b){return!!(b&&b.suggestions&&b.suggestions.length>0)};
_.d.onInput=function(){var b=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var h=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),y=this.activeMention.JSC$11530_getText().slice(-1)===" ",S=this.activeMention.JSC$11530_getText().slice(-2,-1)===" ",F="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11530_getText().slice(-2,
-1))>=0;F=this.zeroPrefixMentionSuggestionEnabled&&F;if(this.activeMention.isCollapsed()||(h||S||F)&&y)this.cancelActiveMention();else{var a=this.activeMention.JSC$11530_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.wy(this,"requestSuggestions",function(){b.requestSuggestions(a)},100)}}}};
_.d.onServiceRequestSent=function(b){b.stopPropagation()};
_.d.onServiceRequestCompleted=function(b){b.stopPropagation();b=b.detail.data;b.query&&(!this.pendingQuery||this.pendingQuery!==b.query)||!this.zeroPrefixMentionSuggestionEnabled&&b.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=b,this.hasSuggestions(b)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.d.onServiceRequestError=function(b){b.stopPropagation()};
_.d.onUserMentionSuggestionSelected=function(b){this.selectSuggestion(b.detail.data,b.detail.index)};
_.d.onSelectionChange=function(){if(this.activeMention){var b=_.ZA(),h=this.activeMention.JSC$11530_containsRange(b);b=b&&this.containsHelper(this.dropdown,b.getContainer());h||b||this.cancelActiveMention()}};
_.d.containsHelper=function(b,h){var y;if(((y=window.ShadyDOM)==null?void 0:y.noPatch)===!0)return b.contains(h);for(;h;){if(h===b)return!0;h=h instanceof ShadowRoot?h.host:h.parentNode}return!1};
_.d.maybeStartSuggest=function(){var b=_.ZA();if(b&&b.isCollapsed()){var h=b.JSC$11530_getStartNode(),y=b.JSC$11530_getStartOffset();if(h instanceof Text&&!(y<1)){var S=h.textContent;!(S=S&&S.charAt(y-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(S)<0||(this.activeMention=_.LT(h,y-1,b.JSC$11530_getEndNode(),b.JSC$11530_getEndOffset()),this.flowNonce=B5(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.d.updateActiveMention=function(){if(this.activeMention){var b=_.ZA();b&&b.isCollapsed()&&(this.activeMention=_.LT(this.activeMention.JSC$11530_getStartNode(),this.activeMention.JSC$11530_getStartOffset(),b.JSC$11530_getEndNode(),b.JSC$11530_getEndOffset()))}};
_.d.requestSuggestions=function(b){if(this.activeMention){var h={suggestions_query:b};this.pendingQuery=b;_.dh(this.hostElement,[this.suggestionsEndpoint,h])}};
_.d.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()};
_.d.focusPreviousSuggestion=function(b){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),b.preventDefault())};
_.d.focusNextSuggestion=function(b){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),b.preventDefault())};
_.d.selectFocusedSuggestion=function(b){if(this.hasSuggestions(this.suggestionsResponse)){var h=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.c(h,wP8)&&(this.selectSuggestion(_.c(h,wP8),this.dropdown.focusedSuggestionIndex),b.preventDefault())}};
_.d.selectSuggestion=function(b,h){if(b){var y=this.activeMention;if(y){var S=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&b.handle?_.Qw(S,"\u00a0\u2068@"+b.handle+"\u2069\u00a0"):this.handlesEnabled?_.Qw(S,"\u00a0"+b.displayName+"\u00a0"):_.Qw(S,"\u00a0@"+b.displayName+"\u00a0");mA(S,"/channel/"+b.channelId);S.classList.add("yt-formatted-string","yt-simple-endpoint");S.setAttribute("spellcheck","false");y.isCollapsed()||y.JSC$11530_removeContents();y.insertNode(S,!0);b=document.createTextNode(" ");
S.parentNode.insertBefore(b,S.nextSibling);window.getSelection().collapse(b,1);h={suggestionSelected:{suggestionIndex:h}};if(this.zeroPrefixMentionSuggestionEnabled){var F;h.suggestionSelected.isZeroPrefix=((F=this.suggestionsResponse)==null?void 0:F.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",h);this.cancelActiveMention();_.Sx(this.hostElement,"yt-mention-inserted")}}};
_.d.getPositionTarget=function(b){return b&&b.getBrowserRangeObject()};
_.d.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.d.onFocusedSuggestionIdChanged=function(b){var h=_.WZ8(this.hostElement)[0];h&&(b.detail.value?h.setAttribute("aria-activedescendant",b.detail.value):h.removeAttribute("aria-activedescendant"))};
_.d.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.d.logGELEvent=function(b,h){b={eventType:b,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};h&&(b=Object.assign(b,h));_.qi("userMentionAutoCompleteBoxEvent",b)};
yv.prototype.onDomChange=yv.prototype.onDomChange;yv.prototype.onUserMentionSuggestionSelected=yv.prototype.onUserMentionSuggestionSelected;yv.prototype.onServiceRequestError=yv.prototype.onServiceRequestError;yv.prototype.onServiceRequestCompleted=yv.prototype.onServiceRequestCompleted;yv.prototype.onServiceRequestSent=yv.prototype.onServiceRequestSent;yv.prototype.onInput=yv.prototype.onInput;_.V([_.B(_.xq),_.f("design:type",Object)],yv.prototype,"ironA11yKeysBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],yv.prototype,"suggestionsEndpoint",void 0);_.V([_.C(),_.f("design:type",Object)],yv.prototype,"suggestionsResponse",void 0);_.V([_.C(),_.f("design:type",Object)],yv.prototype,"activeMention",void 0);_.V([_.to("#dropdown"),_.f("design:type",Object)],yv.prototype,"dropdown",void 0);_.V([_.to("#iron-dropdown"),_.f("design:type",Object)],yv.prototype,"ironDropdown",void 0);
_.V([_.u3("input"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],yv.prototype,"onInput",null);_.V([_.u3("yt-service-request-sent"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],yv.prototype,"onServiceRequestSent",null);_.V([_.u3("yt-service-request-completed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],yv.prototype,"onServiceRequestCompleted",null);
_.V([_.u3("yt-service-request-error"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],yv.prototype,"onServiceRequestError",null);_.V([_.u3("yt-user-mention-suggestion-selected"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],yv.prototype,"onUserMentionSuggestionSelected",null);
_.V([_.u3("dom-change"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],yv.prototype,"onDomChange",null);_.V([_.sB({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],yv);
_.k(yv,"yt-user-mention-autosuggest-input",function(){if(t8a===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;NLM===void 0&&(NLM=document.createElement("template"));var S=NLM;y.call(h,S.content.cloneNode(!0),b.content.firstChild);t8a=b}b=t8a;return b},{mode:2});var Sl=null;
_.pZ({is:"ytd-commentbox",_template:function(){if(n5W!==void 0)return n5W;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return n5W=b},
behaviors:[_.jl4.YtHostElementBehavior,_.xq,_.mx.YtActionHandlerBehavior,_.ug.YtComponentBehavior,_.Cd.YtRendererstamperBehavior,_.d6G.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(b,h){return _.Mm(b.entities,"aadcGuidelinesStateEntityPayload",h)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(b,h){return _.Mm(b.entities,"commentboxStateEntity",h)},
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 _.I$}},
isEmojiButtonDisplayed:{type:Boolean,computed:"computeIsEmojiButtonDisplayed_(data)",value:!1},isEmojiPickerDisplayed:{type:Boolean,value:!1,reflectToAttribute:!0},hasExternalLinksAccess_:{type:Boolean,computed:"computeHasExternalLinksAccess_(data)",value:!0},isExternalLinksBannerDisplayed:{type:Boolean,value:!1,reflectToAttribute:!0},emojiInput:Object,verticalSuggestionsOffset:{type:Number,value:30},isPostCreationDialogV2:{type:Boolean,reflectToAttribute:!0,value:!1},accessRestriction:{type:String},
charCount_:{type:Number,value:0},charLimit_:{type:Number,computed:"computeCharLimit_(data)"},aboveCharLimit_:{type:Boolean,reflectToAttribute:!0,value:!1},inputEventSupported_:{type:Boolean,value:!1},textRequiresScrolling:{type:Boolean,reflectToAttribute:!0,value:!1},localStorage:Object,modern:{type:Boolean,reflectToAttribute:!0,value:_.r("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.r("kevlar_watch_grid")}},observers:["observePrefilledImage_(data.purpose, data.prefilledImageData, data.backstageAttachment)",
"observePrefilledVideo_(data.purpose, data.backstageAttachment)","observePrefilledPoll_(data.prefilledAttachment)"],listeners:{"yt-service-request-completed":"onYtServiceRequestCompleted_","yt-service-request-error":"onYtServiceRequestError_","yt-service-request-sent":"onYtServiceRequestSent_","yt-backstage-image-select-cancel":"onAttachmentDismiss_","yt-backstage-multi-image-cancel":"onAttachmentDismiss_","yt-backstage-image-select-alert":"onImageAlert_","yt-backstage-image-select-preview":"onImageSelected_",
"yt-backstage-multi-image-select":"onImagesSelected_","yt-backstage-poll-image-select":"onImagesSelected_","yt-img-crop-coordinates-update":"onImagePreviewCoordinatesUpdated_","yt-img-crop-reposition":"onImagePreviewReposition_","yt-poll-attachment-dismiss":"onAttachmentDismiss_","yt-image-poll-attachment-dismiss":"onAttachmentDismiss_","yt-quiz-attachment-dismiss":"onAttachmentDismiss_","yt-quiz-attachment-explanation-update":"onQuizExplanationUpdated_","yt-navigate":"onYtNavigate_","yt-video-link-selected":"onVideoLinkSelected_",
"yt-backstage-add-image-error":"onAddImageError_","yt-video-link-cancel":"onAttachmentDismiss_","yt-video-link-button-cancel":"onVideoLinkButtonCancel_","yt-commentbox-post-enable":"onSubmitButtonEnable_","yt-commentbox-post-disable":"onSubmitButtonDisable_","yt-backstage-attachment-dismissed":"onPrefilledContentDismissed_","yt-emoji-select":"onEmojiSelect_","yt-insert-suggestion":"onSuggestionInsert_","yt-select-emoji-suggestion":"onEmojiSuggestionClick_","ytd-date-time-selection-update":"onDateTimeSelectionUpdate_",
"ytd-date-time-selection-cancelled":"onDateTimeSelectionCancelled_","yt-mention-inserted":"onInsertMention_"},actionMap:{"yt-signal-action-ack-post-aadc-notice":"onAadcNoticeConfirm_","yt-hide-identity-chip-action":"onHideIdentityChip"},stampDom:{editAttachment_:{id:"attachment-preview",mapping:{backstageImageRenderer:"ytd-backstage-image-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isBackstageVideo:"[[isBackstagePost]]"}},playlistRenderer:{component:"ytd-playlist-renderer",
properties:{isBackstagePlaylist:"[[isBackstagePost]]"}},postMultiImageRenderer:"ytd-post-multi-image-renderer"}},"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:"ytd-flat-dropdown-renderer"}},"data.backstageAttachment":{id:"poll-preview",mapping:{pollRenderer:"ytd-backstage-poll-renderer",quizRenderer:"ytd-backstage-quiz-renderer"}},"imageUploadEndpoint_.imageEditor":{id:"image-select",mapping:{backstageImageSelectRenderer:{component:"ytd-backstage-image-select-renderer",
properties:{imageUploadEndpoint:"[[imageUploadEndpoint_]]",isBackstagePost:"[[isBackstagePost]]"}},backstageMultiImageSelectRenderer:{component:"ytd-backstage-multi-image-select-renderer",properties:{imageUploadEndpoint:"[[imageUploadEndpoint_]]"}}}},"data.emojiButton":{id:"emoji-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.emojiPicker":{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}},dropdownSchedulePanel_:{id:"scheduling-panel",
mapping:{dateTimePickerRenderer:"ytd-date-time-picker-renderer"}},inlineSchedulePanel_:{id:"inline-scheduling-panel",mapping:{dateTimePickerRenderer:"ytd-date-time-picker-renderer"}},"zeroStepChannelCreationRenderer.identityChipRenderer":{id:"identity-chip",mapping:{identityChipRenderer:"ytd-identity-chip-renderer"}}},ready:function(){document.addEventListener("tap",_.Hl(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(b){this.fire(b?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(b){this.set("submitButtonDisabled",void 0);this.clear();b&&this.computeIsEmojiButtonDisplayed_(b)&&(b=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&b.updateEmojiCategories()},
observePrefilledImage_:function(b,h,y){this.isValidPrefilledImage_(b,h,y)&&(this.prefilledAttachment_="image",this.prefilledImageData_=h,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(b,h){this.isValidPrefilledVideo_(b,h)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(b){b&&b.pollData&&b.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(b.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.Ye();this.focus()},
detached:function(){document.removeEventListener("tap",_.Hl(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(b){b=b.detail;b=b.isCustomEmoji?b.shortcuts[0]:b.emojiId;var h=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(h,b);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var b=_.ZA();if(b){b=b.getBrowserRangeObject();for(var h=b.commonAncestorContainer;h;){if(h===this.getEditableTextArea_())return b;h=h.parentNode}}b=this.getEditableTextArea_();b=_.$q(b,b.childNodes.length);b.select();return b.getBrowserRangeObject()},
insertTextWithEmojis_:function(b,h,y){(h=this.emojiManager.createDocumentFragment(h,!0,!1,y===void 0?!0:y))&&h.childNodes.length!==0&&(b.collapsed||b.deleteContents(),y=h.lastChild,b.insertNode(h),_.Kfw(y).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var b=_.ZA();if(b){var h=b.JSC$11530_getStartNode(),y=b.JSC$11530_getEndNode();if(wU8(h)&&wU8(y)){var S=b.JSC$11530_getStartOffset(),F;if(_.OV&&h.nodeType===Node.ELEMENT_NODE&&(F=_.dz8(h)))_.$q(F,0).select();else{F=Lw(h)?h:_.b5(h,Lw);var a=Lw(y)?y:_.b5(y,Lw);if(F||a)if(b.isCollapsed()){if(h.nodeType===Node.TEXT_NODE){b=!0;S===h.length&&(b=!1);if(Sl==="end"||Sl==="right")b=!1;h=h.parentNode;b=[].concat(_.f$(h.parentNode.childNodes)).indexOf(h)+(b?0:1);_.$q(h.parentNode,
b).select()}}else F?F.previousSibling&&F.previousSibling.length>0?_.LT(y,b.JSC$11530_getEndOffset(),F.previousSibling,F.previousSibling.length-1).select():(h=document.createTextNode("\u200b"),F.parentNode.insertBefore(h,F),_.LT(y,b.JSC$11530_getEndOffset(),h,0).select()):a&&(a.nextSibling&&a.nextSibling.length>0?_.LT(h,b.JSC$11530_getStartOffset(),a.nextSibling,1).select():(y=document.createTextNode("\u200b"),a.parentNode.insertBefore(y,a.nextSibling),_.LT(h,b.JSC$11530_getStartOffset(),y,y.length).select()));
Sl=null}}else Sl=null}else Sl=null},
leftKeyPressed_:function(){Sl="left"},
rightKeyPressed_:function(){Sl="right"},
endKeyPressed_:function(){Sl="end"},
maybeDeleteChip_:function(){var b=vhk(!0);if(b){var h=_.ZA(),y=h.JSC$11530_getStartNode();h=h.JSC$11530_getStartOffset();_.SQ(y,h,b,b.childNodes.length).select()}},
maybeBackspaceChip_:function(){var b=vhk(!1);if(b){var h=_.ZA(),y=h.JSC$11530_getStartNode();h=h.JSC$11530_getStartOffset();_.SQ(y,h,b,0).select()}},
maybeBackspaceChipWordMode_:function(b){var h=_.ZA();if(h.isCollapsed()){var y=h.JSC$11530_getStartNode();h=h.JSC$11530_getStartOffset();var S=bBf(y,h,!0);S&&(_.SQ(y,h,S,0).select(),document.execCommand("delete"),b.preventDefault(),b.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(b){var h=_.ZA();if(h.isCollapsed()){var y=h.JSC$11530_getStartNode();h=h.JSC$11530_getStartOffset();var S=bBf(y,h,!1);S&&(_.SQ(y,h,S,S.childNodes.length).select(),document.execCommand("delete"),b.preventDefault(),b.stopImmediatePropagation())}},
onTap_:function(b){if(!b.defaultPrevented&&(b.currentTarget.tagName==="YTD-COMMENTBOX"&&Lw(b.target)&&b.preventDefault(),this.isEmojiPickerDisplayed)){var h=this.$$("#emojis"),y=this.$$("#emoji-button"),S=this.getEditableTextArea_();if((b=b.path?b.path:b.composedPath&&b.composedPath())&&!b.includes(h)&&!b.includes(S)&&!b.includes(y))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(b,h,y){return b==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&h!==void 0&&h.encryptedBlobId!==null&&h.sourceExternalVideoId!==null&&y!==void 0&&y.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(b,h){return b==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!h&&!!h.videoRenderer&&!!h.videoRenderer.videoId},
isValidPrefilledAttachment_:function(b,h,y){return this.isValidPrefilledImage_(b,h,y)||this.isValidPrefilledVideo_(b,y)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.r("enable_multi_image_post_creation")){var b=this.$$("ytd-backstage-multi-image-select-renderer");b&&b.hasImages()&&b.cancel()}else(b=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&b.cancel();(b=this.$["poll-attachment"])&&this.hasPoll_&&b.clearPollOptions();(b=this.$["image-poll-attachment"])&&this.hasImagePoll_&&b.resetPollOptions();(b=this.$["quiz-attachment"])&&this.hasQuiz_&&b.resetQuizOptions();
(b=this.$["video-link-attachment"])&&this.hasVideo_&&b.cancel();(b=this.$["access-restrictions-selector"].firstElementChild)&&b.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 _.$x(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.$x(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(b,h){b=qmN(b,this.emojiManager,h).cloneNode(!0);for(h=b.firstChild;h;)if(h.nodeType!==1)h=h.nextSibling;else switch(h.tagName){case "BR":var y=_.i4();_.MFo(y,h);h=y.nextSibling;break;case "DIV":(y=h.lastChild)&&h.nextSibling&&_.qM(_.i4(),y);h.previousSibling&&(h.previousSibling.nodeType===1||h.previousSibling.nodeType===3&&!h.previousSibling.textContent.endsWith("\n"))&&_.l4(_.i4(),h);y&&y.nodeName==="BR"&&_.sD(y);y=h;h.hasChildNodes()?(h=h.firstChild,
_.nbo(y)):(h=h.nextSibling,_.sD(y));break;default:h=h.nextSibling}return hBM(b)},
onAddImageError_:function(b){b.stopPropagation();this.errorMessage_=_.mk(b.detail)},
setTextAreaValue_:function(b){b||(b="");var h=this.getEditableFormattedString_();h.text="";this.getEditableTextArea_().innerText="";typeof b==="string"&&(b={runs:[{text:b}]});h.text=b},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();Sl=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var b=this.getEditableTextArea_();b&&(_.$q(b,b.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.QC("HTML_DIR")==="rtl"){var b=this.getEditableTextArea_(),h=this.getTextAreaValue()!==""?"auto":"rtl";b.setAttribute("dir",h)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var b;return PtM((b=this.$["quiz-attachment"])==null?void 0:b.getExplanationText())||PtM(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var b=null;if(this.isEmojiButtonDisplayed){var h=this.getInputRange_();h&&(b=this.emojiInput.retrieveTextBeforeRange(h))}this.insertText_(b,!0);this.updateCharCount_();this.setSubmitButton_();b=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=b.scrollHeight>b.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var b=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:b})},
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(b){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(b)},
onPasteEmoji_:function(b){b.preventDefault();b.stopImmediatePropagation();b=b.clipboardData.getData("text/plain");this.insertText_(b,!1,!1)},
insertText_:function(b,h,y){h=h===void 0?!1:h;y=y===void 0?!0:y;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&b){var S=this.getInputRange_().cloneRange();this.emojiManager&&S&&(h&&this.emojiInput.offsetStartOfRangeBy(S,b.length),this.insertTextWithEmojis_(S,b,y),lkU(this.getEditableTextArea_().lastChild)||(S=this.getInputRange_().cloneRange()),S&&(this.emojiInput.updateSuggestions(S,b),this.updateSuggestionOffset_(S)))}},
setSubmitButton_:function(){if(this.data){var b=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",h=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(b||h){var y=this.getTextAreaValue().trim();h=y===this.previousText_;y=!y||this.aboveCharLimit_;b&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(y=this.aboveCharLimit_);this.submitButtonDisabled=
h||y||!this.getTextLength();b&&_.r("enable_post_scheduling")&&(this.submitButtonDisabled=h&&!this.scheduledPublishTimeSec_||y)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.vi,computeCreationBoxClass_:function(b){return b?"focused":"not-focused"},
computeFooterMessageClass_:function(b,h){return h?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(b,h){return h?h:b},
computeFooterMessageHidden_:function(b,h){return!h&&!b},
computePlaceholderText_:function(b,h,y){return(y==="video"||y==="image")&&(b==null?0:b.prefilledPlaceholderText)?b==null?void 0:b.prefilledPlaceholderText:h==="poll"||h==="image-poll"?b==null?void 0:b.pollPostPlaceholderText:h==="quiz"?b==null?void 0:b.quizPostPlaceholderText:h==="image"?b==null?void 0:b.imagePostPlaceholderText:b==null?void 0:b.placeholderText},
computeHideAttachmentButtons_:function(b,h,y,S){return b===void 0?!1:S&&this.getSimpleString(S)===this.getSimpleString(b.rateLimitErrorMessage)?!0:h!=="none"||y!=="none"||!b.videoLinkButton&&!b.pollButton&&!b.imagePollButton&&!b.quizButton&&!b.imageButton},
computeHideDismissableAttachment_:function(b){return b!=="image"&&b!=="video"},
computeHasVideo_:function(b){return b==="video"},
computeHasImage_:function(b){return b==="image"},
computeHasPoll_:function(b){return b==="poll"},
computeHasImagePoll_:function(b){return b==="image-poll"},
computeHasQuiz_:function(b){return b==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(b){return b&&b.backstageAttachment?b.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!b.backstageAttachment.quizRenderer&&!b.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(b){if(this.isValidPrefilledAttachment_(b.purpose,b.prefilledImageData,b.backstageAttachment))return b.backstageAttachment},
computeEditAttachment_:function(b){if(this.computePrefilledContent_(b)===void 0)return b.backstageAttachment},
computeAuthorThumbnailDimension_:function(b,h){return b&&!h?24:40},
computeImageUploadEndpoint_:function(b){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",b)},
computeRateLimitErrorCommands_:function(b){var h,y;return b==null?void 0:(h=b.advancedTierFeatures)==null?void 0:(y=h.rateLimit)==null?void 0:y.rateLimitCommands},
computeIsBackstageComment_:function(b){return!(!b||b!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(b){return this.get("submitButton.buttonRenderer.serviceEndpoint",b)||this.get("replyButton.buttonRenderer.serviceEndpoint",b)||this.get("postButton.buttonRenderer.serviceEndpoint",b)},
computeSubmitButtonOverride:function(){if(_.r("web_modern_buttons")){var b,h;return{segmentedPosition:this.dropdownSchedulePanel_||!((b=this.data)==null?0:(h=b.postOptionsMenu)==null?0:h.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.r("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(b,h){b=this.get("submitButton.buttonRenderer",b)||this.get("replyButton.buttonRenderer",b)||this.get("postButton.buttonRenderer",b);h&&(b=h);b&&(b=Object.assign({},b),b.serviceEndpoint=void 0,b.isDisabled=this.submitButtonDisabled);return b},
computeHasExternalLinksAccess_:function(b){if(_.r("enable_rfa_external_links")){var h,y,S;return(S=b==null?void 0:(h=b.advancedTierFeatures)==null?void 0:(y=h.externalLinks)==null?void 0:y.allowExternalLinks)!=null?S:!0}return!0},
computeIsEmojiButtonDisplayed_:function(b){return b.emojiButton&&b.emojiPicker&&b.emojiPicker.emojiPickerRenderer&&b.emojiPicker.emojiPickerRenderer.categories?b.emojiPicker.emojiPickerRenderer.categories.find(function(h){return h.emojiPickerCategoryRenderer?h.emojiPickerCategoryRenderer.emojiIds&&h.emojiPickerCategoryRenderer.emojiIds.length>0:h.emojiPickerUpsellCategoryRenderer?h.emojiPickerUpsellCategoryRenderer.emojis&&h.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(b){return b.charLimit?b.charLimit:null},
computeDropdownSchedulingPanel_:function(b,h){if(b==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&h)return h},
computeInlineSchedulingPanel_:function(b,h){if(b==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&h)return h},
computeHideAuthorThumbnail_:function(b,h){return b||this.computeUseIdentityChip_(h)},
computeHideIdentityChipRenderer_:function(b,h){return b||!this.computeUseIdentityChip_(h)},
computeUseIdentityChip_:function(b){return!!b&&!!b.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(b){var h,y,S,F;(b==null?0:(h=b.detail)==null?0:(y=h.endpoint)==null?0:y.ypcGetOffersEndpoint)||(b==null?0:(S=b.detail)==null?0:(F=S.endpoint)==null?0:F.ypcOffersEndpoint)?(b.stopPropagation(),_.dh(this,[b.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",b)&&(b.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(b){this.addedAttachment="video";this.selectedVideoId_=b.detail.videoId},
commentboxStateEntityChanged_:function(b){var h=this;(b==null?void 0:b.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(b==null?void 0:b.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){h.focus()})},
onYtServiceRequestSent_:function(b,h){if(h.actions)for(b=_.L(h.actions),h=b.next();!h.done;h=b.next())h.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(b){this.isLoading=!1;var h=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",b),y,S,F,a=b==null?void 0:(y=b.detail)==null?void 0:(S=y.data)==null?void 0:(F=S.actionResult)==null?void 0:F.commentboxStateEntityKey;if(h)this.errorMessage_=h;else if(a){var P;this.dismissData_=b==null?void 0:(P=b.detail)==null?void 0:P.data;this.commentboxStateKey_=a}else{this.clear();var K;this.fire("yt-commentbox-dismiss",b==null?void 0:(K=b.detail)==
null?void 0:K.data)}},
onYtServiceRequestError_:function(b){b.stopPropagation();this.isLoading=!1;var h,y;if(((h=this.data)==null?void 0:h.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((y=this.data)==null?void 0:y.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(h=this.get("detail.error.args",b)||[],h.length>1&&h[1].message){this.handlePostsServiceRequestError_(h[1].message);return}(b=this.get("detail.error.message",b))?this.errorMessage_=this.data.errorMessage||_.mk(b):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(b){if(_.r("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var h=_.L(this.rateLimitErrorCommands),y=h.next();!y.done;y=h.next())if(y=y.value,y.errorLabel===b){_.Xb(y.command,this.hostElement);return}this.errorMessage_=_.mk(b)},
submitIfNotBackstagePost_:function(b){if(!this.isBackstagePost)this.onSubmit_(b)},
onSubmit_:function(b){var h=this,y,S,F,a,P,K,n,X,u,O,N,t,R,I,U;return _.Z(function(p){switch(p.nextAddress){case 1:b.stopPropagation();if(!h.serviceEndpoint||!h.isValidInput_())return p.return();if(h.shouldShowPostAadcNotice_())return h.showPostAadcNotice_(),p.return();if(h.shouldShowCommentAadcNotice_())return h.showCommentAadcNotice_(),p.return();if(!(h.$$("ytd-backstage-multi-image-select-renderer")&&h.hasImage_&&_.r("enable_multi_image_post_creation"))){p.jumpTo(2);break}y=h.$$("ytd-backstage-multi-image-select-renderer");
return p.yield(y.getAllUploadStatuses(),3);case 3:S=p.yieldResult;if(!S)return p.return();F=_.L(S);for(a=F.next();!a.done;a=F.next())if(P=a.value,P.encryptedBlobId===void 0)return h.isLoading=!1,n=K=void 0,h.errorMessage_=(n=(K=h.imageUploadEndpoint_)==null?void 0:K.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?n:null,p.return();return p.return(h.submitForm_(void 0,void 0,void 0,void 0,y.images,h.taggedVideoId_));case 2:if(!h.hasImagePoll_||!h.$["image-poll-attachment"]){p.jumpTo(4);
break}return p.yield(h.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:X=p.yieldResult;if(!X)return p.return();u=_.L(X);for(O=u.next();!O.done;O=u.next())if(N=O.value,!N.encryptedBlobId)return h.isLoading=!1,t=void 0,h.errorMessage_=(t=h.data.errorMessage)!=null?t:null,p.return();case 4:I=(R=h.$$("ytd-backstage-image-select-renderer"))&&R.uploadPromise(),U=h.getSharedPostId_(),I?I.then(function(){h.submitForm_.apply(h,_.f$(_.x$.apply(0,arguments)))}).catch(function(e){h.isLoading=!1;
h.errorMessage_=_.mk(e.message)}):h.selectedVideoId_?h.submitForm_(void 0,h.selectedVideoId_):h.prefilledAttachment_==="image"?h.submitForm_(h.prefilledImageData_.encryptedBlobId,void 0,void 0,h.prefilledImageData_.sourceExternalVideoId,void 0,h.taggedVideoId_):h.prefilledAttachment_==="video"?h.submitForm_(void 0,h.data.backstageAttachment.videoRenderer.videoId):U?h.submitForm_(void 0,void 0,U):h.taggedVideoId_!==void 0?h.submitForm_(void 0,void 0,void 0,void 0,void 0,h.taggedVideoId_):h.submitForm_(),
_.g3(p)}})},
openSchedulingPanel:function(b){b&&b.scheduleButton&&b.scheduleButton.buttonRenderer&&(this.scheduleButton_=b.scheduleButton.buttonRenderer);b&&b.dateTimePicker&&this.set("data.schedulingDateTimePicker",b.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(b){b.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(b){b.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(b){b.stopPropagation();b.detail.alertMessage&&(this.alertMessage_=b.detail.alertMessage)},
onImageSelected_:function(b){b.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(b){b.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(b){b.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(b.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(b){b.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(b){var h=this.$["video-link-attachment"];h&&h.onLaunchVideoPicker(b)},
onAttachmentDismiss_:function(b){b.stopPropagation();this.addedAttachment="none";this.alertMessage_=this.errorMessage_=null;this.imagePreviewCoordinates_=this.selectedVideoId_=void 0;this.setSubmitButton_();this.getEditableTextArea_().focus()},
isValidInput_:function(){if(this.prefilledAttachment_==="image"&&!this.prefilledImageData_||this.prefilledAttachment_==="video"&&!this.data.backstageAttachment.videoRenderer.videoId||this.addedAttachment==="image"&&_.r("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.r("enable_multi_image_post_creation")||this.$$("ytd-backstage-image-select-renderer")&&
this.$$("ytd-backstage-image-select-renderer").hasPreview&&this.imagePreviewCoordinates_)||this.addedAttachment==="poll"&&this.$["poll-attachment"]&&!this.$["poll-attachment"].isValid())return!1;var b;if(this.addedAttachment==="image-poll"&&((b=this.$["image-poll-attachment"])==null||!b.isValid()))return!1;var h;if(this.addedAttachment==="quiz"&&((h=this.$["quiz-attachment"])==null||!h.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;b=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(b=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")b=!0;return b||!!this.getTextAreaValue().trim()},
submitForm_:function(b,h,y,S,F,a){var P=this.getTextAreaValue().trim(),K={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&P===this.previousText_&&(P=void 0);P!==void 0&&(K.comment_text=P);this.isLoading=!0;a!=void 0&&(K.tagged_video_id=a);b?(K.image_blob_id=b,this.imagePreviewCoordinates_&&(K.image_preview_coordinates=this.imagePreviewCoordinates_)):h?K.attached_video_id=h:y?K.shared_post_id=y:F&&F.length>0&&(K.images_data=F.map(function(n){return{encryptedBlobId:n.encryptedBlobId,
previewCoordinates:n.previewCoordinates}}));
S&&(K.source_video_id=S);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(K.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(K.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(K.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());this.addedAttachment==="quiz"&&(K.quiz_options=
this.$["quiz-attachment"].getPostCreateOptions());_.r("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(K.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.dh(this,[this.serviceEndpoint,K])},
onIsInputFocusChanged_:function(b,h){b?this.fire("yt-autonav-pause-focus"):h!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(b){var h=this.getEditableTextArea_();[].concat(_.f$(b.dataTransfer.items)).forEach(function(y){y.kind==="string"&&y.type.match("^text/plain")&&y.getAsString(function(S){h.appendChild(document.createTextNode(S))})});
b.preventDefault()},
preventDefault_:function(b){b.preventDefault()},
onSuggestionInsert_:function(b){this.insertTextWithEmojis_(b.detail.range,b.detail.text)},
onEmojiSuggestionClick_:function(b){this.emojiInput.insertSuggestion(b.detail)},
computeSubmitButtonClass_:function(b,h){return!h||b?"":"with-options"},
updateSuggestionOffset_:function(b){if(this.emojiInput&&_.$x(this.emojiInput).querySelector("#dropdown")){var h=this.getEditableTextArea_().getBoundingClientRect().bottom,y=b.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(h-y)+5;h=this.getEditableTextArea_().getBoundingClientRect().left;b=b.getBoundingClientRect().left-h;_.$x(this.emojiInput).querySelector("#dropdown").style.marginLeft=b+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(b){if(_.r("enable_post_scheduling")&&this.data&&this.data.purpose){b=b.detail;if(Math.floor(Date.now()/1E3)>=b)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var h=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(h)||h!==b?this.scheduledPublishTimeSec_=b:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=b;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var b=["image-button","image-poll-button","poll-button","quiz-button"];_.r("auto_convert_posts_video_tag")||b.push("video-link-button");return b},
getButtonRenderer:function(b,h){if(b)switch(h){case "video-link-button":var y;return((y=b.videoLinkButton)==null?void 0:y.buttonRenderer)||void 0;case "image-button":var S;return((S=b.imageButton)==null?void 0:S.buttonRenderer)||void 0;case "poll-button":var F;return((F=b.pollButton)==null?void 0:F.buttonRenderer)||void 0;case "image-poll-button":var a;return((a=b.imagePollButton)==null?void 0:a.buttonRenderer)||void 0;case "quiz-button":var P;return((P=b.quizButton)==null?void 0:P.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var b;return(b=this.data)==null||!b.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var b,h;return!((b=this.data)==null||!b.openAadcDialog)&&!((h=this.aadcGuidelinesState_)==null||!h.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.QC("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var b;((b=this.data)==null?0:b.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.SZ("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(b){b.clickTrackingParams&&_.rU().clickCommand(b);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.F8(this,"yt-close-popup-action")},
onHideIdentityChip:function(b){var h;this.set("data.placeholderText",(h=b.hideIdentityChipAction)==null?void 0:h.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var F2=function(){var b=_.g.apply(this,arguments)||this;b.isOpen=!1;b.modern=_.r("web_modern_buttons");b.roundedContainer=!0;b.dropdownButtonOverride=_.r("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;b.inPopupContainer=!1;b.isCommentboxLoading=!1;var h=["image-button","image-poll-button","poll-button"];_.r("enable_quiz_creation")&&h.push("quiz-button");_.r("auto_convert_posts_video_tag")||h.push("video-link-button");b.attachmentButtonIds=h;b.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 b};
_.z(F2,_.g);_.d=F2.prototype;_.d.computeButtonOverride=function(){var b;return((b=this.data)==null?0:b.postOptionsMenu)&&_.r("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.d.configureRendererStamper=function(){var b={"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:{component:"ytd-flat-dropdown-renderer",classListBinding:"[[dropdownRendererClasses]]"}}},"data.pollButton":{id:"poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imagePollButton":{id:"image-poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.quizButton":{id:"quiz-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.postOptionsMenu":{id:"option-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"EXPAND"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.r("auto_convert_posts_video_tag")||(b["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return b};
_.d.ready=function(){var b=this,h=_.$x(this.hostElement).querySelector("#placeholder-area"),y=function(S){b.onOpen(S)};
h.addEventListener("tap",y);h.addEventListener("keypress",y)};
_.d.showButtonEduTooltip=function(){var b,h,y,S,F,a,P;if(_.r("enable_quiz_creation")&&((b=this.data)==null?0:(h=b.quizButton)==null?0:(y=h.buttonRenderer)==null?0:(S=y.hint)==null?0:(F=S.hintRenderer)==null?0:(a=F.content)==null?0:(P=a.bubbleHintRenderer)==null?0:P.text)&&(_.wD.getInstance(),b=lK(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(b==null?void 0:
b.length)>0)){this.ytComponentBehavior.resolveCommand(b[0],{form:{element:this.quizButton}});return}var K;if((K=this.data)==null?0:K.imagePollButtonTooltip)if(_.wD.getInstance(),K=lK(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(K==null?void 0:K.length)>0){this.ytComponentBehavior.resolveCommand(K[0],{form:{element:this.imagePollButton}});return}var n;_.r("enable_multi_image_post_creation")&&
((n=this.data)==null?0:n.multiImageButtonTooltip)&&(_.wD.getInstance(),n=lK(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(n==null?void 0:n.length)>0&&this.ytComponentBehavior.resolveCommand(n[0],{form:{element:this.imageButton}}))};
_.d.onCreatePollAction=function(b){_.c(b,XH7)&&(this.JSC$16130_commentbox.addedAttachment="poll",this.openDialog())};
_.d.onAddVideoLinkAction=function(b){if(_.c(b,ZpM))this.JSC$16130_commentbox.onAddVideoLink(b)};
_.d.onShowSchedulingPanelCommand=function(b){(b=_.c(b,kye))&&this.openSchedulingPanel(b)};
_.d.onCreateImagePollCommand=function(b){_.c(b,VSa)&&(this.JSC$16130_commentbox.openImagePollComponent(),this.openDialog())};
_.d.onCreateQuizCommand=function(b){_.c(b,ENo)&&(this.JSC$16130_commentbox.openQuizComponent(),this.openDialog())};
_.d.openSchedulingPanel=function(b){_.r("enable_post_scheduling")&&(this.openDialog(),this.JSC$16130_commentbox.openSchedulingPanel(b))};
_.d.onCreateCommentAction=function(b){this.get("createCommentAction.contents",b)&&(this.JSC$16130_commentbox.clear(),this.closeDialog())};
_.d.onOpen=function(b){b instanceof KeyboardEvent&&b.type==="keypress"&&b.keyCode!==13&&b.keyCode!==32||(this.data.prepareAccountEndpoint?_.Sx(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.d.onYtCommentboxDismiss=function(){this.closeDialog()};
_.d.onYtCommentboxLoadingStart=function(b){b.stopPropagation();this.isCommentboxLoading=!0};
_.d.onYtCommentboxLoadingEnd=function(b){b.stopPropagation();this.isCommentboxLoading=!1};
_.d.onYtVideoLinkButtonCancel=function(b){b.stopPropagation();this.onOpen(b)};
_.d.onYtVideoLinkSelected=function(b){b.stopPropagation();this.onOpen(b)};
_.d.onIronSelect=function(b){b.stopPropagation();b.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=b.detail.item.value&&(this.accessRestriction?(this.accessRestriction=b.detail.item.value,this.onOpen(b)):this.accessRestriction=b.detail.item.value)};
_.d.onYtNavigate=function(b){this.get("detail.endpoint.backstageImageUploadEndpoint",b)&&(this.JSC$16130_commentbox.addedAttachment="image",this.JSC$16130_commentbox.submitButtonDisabled=!0,this.onOpen(b))};
_.d.onRequestSent=function(b){for(var h=_.L(b.detail),y=h.next();!y.done;y=h.next())_.c(y.value,bdW)&&(this.JSC$16130_commentbox.addedAttachment="image",this.JSC$16130_commentbox.submitButtonDisabled=!0,this.onOpen(b))};
_.d.openDialog=function(){var b;(b=this.data)!=null&&b.isIneligibleForCommunityPagePostCreation||(this.JSC$16130_commentbox.accessRestriction=this.accessRestriction,this.isOpen=!0,this.JSC$16130_commentbox.focus())};
_.d.onPopupClosed=function(){_.wD.getInstance()};
_.d.computeCreationDisabled=function(b){return!!b};
_.d.computeIsCreationDialog=function(b){return!!b&&b==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.d.computeDisabledPostButton=function(b){if(!b)return null;b.isDisabled=!0;return b};
_.d.computeIsCreationDialogWithHeader=function(b){return!this.inPopupContainer&&!!b&&!!b.authorText&&b.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.d.computeIsHeaderHidden=function(b,h){return!b||h};
_.d.computeDropdownRendererClasses=function(b){return b?["text-secondary-style"]:[]};
_.d.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var b=_.$x(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;b&&b.reset()};
F2.prototype.onPopupClosed=F2.prototype.onPopupClosed;F2.prototype.onRequestSent=F2.prototype.onRequestSent;F2.prototype.onYtNavigate=F2.prototype.onYtNavigate;F2.prototype.onIronSelect=F2.prototype.onIronSelect;F2.prototype.onYtVideoLinkSelected=F2.prototype.onYtVideoLinkSelected;F2.prototype.onYtVideoLinkButtonCancel=F2.prototype.onYtVideoLinkButtonCancel;F2.prototype.onYtCommentboxLoadingEnd=F2.prototype.onYtCommentboxLoadingEnd;F2.prototype.onYtCommentboxLoadingStart=F2.prototype.onYtCommentboxLoadingStart;
F2.prototype.onYtCommentboxDismiss=F2.prototype.onYtCommentboxDismiss;F2.prototype.showButtonEduTooltip=F2.prototype.showButtonEduTooltip;_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],F2.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],F2.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],F2.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],F2.prototype,"ytActionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],F2.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],F2.prototype,"isOpen",void 0);_.V([_.C({computed:"computeButtonOverride(data)"}),_.f("design:type",Object)],F2.prototype,"buttonOverride",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],F2.prototype,"modern",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],F2.prototype,"roundedContainer",void 0);_.V([_.C(),_.f("design:type",Object)],F2.prototype,"dropdownButtonOverride",void 0);_.V([_.C({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.f("design:type",Boolean)],F2.prototype,"creationDisabled",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],F2.prototype,"enableCreationBox",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.f("design:type",Boolean)],F2.prototype,"isCreationDialog",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],F2.prototype,"inPopupContainer",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.f("design:type",Boolean)],F2.prototype,"isCreationDialogWithHeader",void 0);_.V([_.C(),_.f("design:type",Object)],F2.prototype,"accessRestriction",void 0);
_.V([_.C({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.f("design:type",Array)],F2.prototype,"dropdownRendererClasses",void 0);_.V([_.C(),_.f("design:type",Object)],F2.prototype,"isCommentboxLoading",void 0);_.V([_.C(),_.f("design:type",Array)],F2.prototype,"attachmentButtonIds",void 0);_.V([_.to("#image-button"),_.f("design:type",HTMLElement)],F2.prototype,"imageButton",void 0);
_.V([_.to("#image-poll-button"),_.f("design:type",HTMLElement)],F2.prototype,"imagePollButton",void 0);_.V([_.to("#quiz-button"),_.f("design:type",HTMLElement)],F2.prototype,"quizButton",void 0);_.V([_.to("#commentbox"),_.f("design:type",Object)],F2.prototype,"JSC$16130_commentbox",void 0);_.V([_.OB("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],F2.prototype,"showButtonEduTooltip",null);
_.V([_.u3("yt-commentbox-dismiss"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],F2.prototype,"onYtCommentboxDismiss",null);_.V([_.u3("yt-commentbox-loading-start"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],F2.prototype,"onYtCommentboxLoadingStart",null);
_.V([_.u3("yt-commentbox-loading-end"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],F2.prototype,"onYtCommentboxLoadingEnd",null);_.V([_.u3("yt-video-link-button-cancel"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],F2.prototype,"onYtVideoLinkButtonCancel",null);
_.V([_.u3("yt-video-link-selected"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],F2.prototype,"onYtVideoLinkSelected",null);_.V([_.u3("iron-select"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],F2.prototype,"onIronSelect",null);_.V([_.u3("yt-navigate"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],F2.prototype,"onYtNavigate",null);
_.V([_.u3("yt-service-request-sent-button-renderer"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],F2.prototype,"onRequestSent",null);_.V([_.u3("yt-popup-closed"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],F2.prototype,"onPopupClosed",null);_.V([_.Yx({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],F2);
_.k(F2,"ytd-backstage-post-dialog-renderer",function(){if(lda!==void 0)return lda;var b=document.createElement("template");_.D(b,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n    [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer"></yt-formatted-string>\n    <div class="visibility-container style-scope ytd-backstage-post-dialog-renderer" hidden="[[data.isIneligibleForCommunityPagePostCreation]]">\n      <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      </yt-formatted-string>\n      <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n      <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" hidden="[[data.isIneligibleForCommunityPagePostCreation]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div class="ytd-commentbox-slot-repost-preview style-scope ytd-backstage-post-dialog-renderer" slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return lda=b},{mode:1});var DVP;var IO7;var al=function(){return _.g.apply(this,arguments)||this};
_.z(al,_.g);_.d=al.prototype;_.d.computeHeartButtonStyle=function(b){return(b==null?0:b.styleType)?b.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.d.onYtButtonTap=function(){if(this.data.isEnabled){var b=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(b=this.getEndpoint(b))&&_.H9().resolve(_.OM).resolveCommand(b,{form:{element:this.hostElement}})}else(b=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(b)};
_.d.toggle=function(b){this.set("data.isHearted",b!==void 0?b:!this.data.isHearted)};
_.d.getEndpoint=function(b){var h,y=(h=this.data)==null?void 0:h.heartEndpoint,S;h=(S=this.data)==null?void 0:S.unheartEndpoint;if(y&&h)return b?h:y};
_.d.computeButtonAccessibility=function(b,h){var y,S,F=b==null?void 0:(y=b.heartedAccessibility)==null?void 0:(S=y.accessibilityData)==null?void 0:S.label,a,P;b=b==null?void 0:(a=b.unheartedAccessibility)==null?void 0:(P=a.accessibilityData)==null?void 0:P.label;return h?F:b};
_.tm.Object.defineProperties(al.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 b;return _.r("kevlar_system_icons")&&!((b=this.data)==null||!b.isHearted)}}});
al.prototype.onYtButtonTap=al.prototype.onYtButtonTap;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],al.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Y9),_.f("design:type",Object)],al.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],al.prototype,"data",void 0);_.V([_.W("data.isHearted"),_.f("design:type",Object),_.f("design:paramtypes",[])],al.prototype,"heartTooltip",null);
_.V([_.W("data.isHearted"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],al.prototype,"iconFilled",null);_.V([_.C({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.f("design:type",String)],al.prototype,"buttonAccessibility",void 0);_.V([_.C({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.f("design:type",String)],al.prototype,"heartButtonStyle",void 0);
_.V([_.u3("tap"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],al.prototype,"onYtButtonTap",null);_.V([_.Yx({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],al);
_.k(al,"ytd-creator-heart-renderer",function(){if(IO7!==void 0)return IO7;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return IO7=b},{mode:1});var dm=function(){var b=_.g.apply(this,arguments)||this;b.hasCreatorReply=!1;b.buttonOverrides={size:"S",iconPosition:"icon-only"};b.replyButtonOverrides={size:"S",type:"text"};b.forceIconButton=!_.r("web_modern_buttons");b.modern=_.r("web_modern_buttons");b.buttonTooltipPosition="bottom";b.systemIcons=_.r("kevlar_system_icons");b.replyDialog=null;return b};
_.z(dm,_.g);_.d=dm.prototype;
_.d.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]]"}}}}}};
_.d.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.d.dataChange=function(){this.replyDialog&&_.$x(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var b,h,y;this.isLiked=this.systemIcons&&!!((b=this.data)==null?0:(h=b.likeButton)==null?0:(y=h.toggleButtonRenderer)==null?0:y.isToggled)};
_.d.computeShowVoteCountBeginning=function(b,h){return b===void 0||h===void 0?!0:b.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!h&&this.ytRendererBehavior.getSimpleString(h)!=="0"};
_.d.computeShowVoteCountEnd=function(b,h){return b===void 0||h===void 0?!0:b.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!h&&this.ytRendererBehavior.getSimpleString(h)!=="0"};
_.d.computeShowCommentCount=function(b,h){return b===void 0||h===void 0?!0:b.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!h&&this.ytRendererBehavior.getSimpleString(h)!=="0"};
_.d.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.d.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.d.showReplyDialog=function(b){b&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.$x(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=b,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.d.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.d.onRequestSent=function(b){b=_.L(b.detail);for(var h=b.next();!h.done;h=b.next())(h=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",h.value))&&this.showReplyDialog(h)};
_.d.onYtNavigate=function(b){var h,y;(b=(h=_.c(b.detail.endpoint,_.yJ5))==null?void 0:(y=h.dialog)==null?void 0:y.commentReplyDialogRenderer)&&this.showReplyDialog(b)};
_.d.onYtServiceRequestSent=function(b,h){b.stopPropagation();if(h.actions)for(b=0;b<h.actions.length;b++){var y=_.c(h.actions[b],rDb);y&&this.handleUpdateCommentVoteAction(y)}};
_.d.handleUpdateCommentVoteAction=function(b){this.voteCount=b.voteCount||_.mk("0");b.voteStatus==="LIKE"?this.JSC$16142_ytdDislikeToggleButtonRenderer.toggle(!1):b.voteStatus==="DISLIKE"?this.JSC$16142_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$16142_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$16142_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.d.computeReplyButtonHidden=function(b){return b};
_.d.computeReplyButtonBeginning=function(b){return(b==null?0:b.replyButton)&&b.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?b.replyButton:void 0};
_.d.computeReplyButtonEnd=function(b){return(b==null?0:b.replyButton)&&b.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?b.replyButton:void 0};
_.d.computeActionButtonStyle=function(b){return(b==null?0:b.style)?b.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.d.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.d.onYtToggleButton=function(b){var h,y;this.isLiked=this.systemIcons&&!!((h=b.detail)==null?0:(y=h.actions)==null?0:y.like)};
dm.prototype.onYtToggleButton=dm.prototype.onYtToggleButton;dm.prototype.onButtonTooltipPositionChanged=dm.prototype.onButtonTooltipPositionChanged;dm.prototype.onYtServiceRequestSent=dm.prototype.onYtServiceRequestSent;dm.prototype.onYtNavigate=dm.prototype.onYtNavigate;dm.prototype.onRequestSent=dm.prototype.onRequestSent;dm.prototype.onYtCommentboxDismiss=dm.prototype.onYtCommentboxDismiss;dm.prototype.dataChange=dm.prototype.dataChange;
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],dm.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],dm.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],dm.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],dm.prototype,"voteCount",void 0);_.V([_.C(),_.f("design:type",Object)],dm.prototype,"commentCount",void 0);_.V([_.C(),_.f("design:type",Object)],dm.prototype,"replyThumbnail",void 0);
_.V([_.C(),_.f("design:type",Object)],dm.prototype,"hasCreatorReply",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],dm.prototype,"enableCreationBox",void 0);_.V([_.C({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.f("design:type",String)],dm.prototype,"actionButtonsStyle",void 0);_.V([_.C({computed:"computeReplyButtonBeginning(data)"}),_.f("design:type",Object)],dm.prototype,"replyButtonBeginning",void 0);
_.V([_.C({computed:"computeReplyButtonEnd(data)"}),_.f("design:type",Object)],dm.prototype,"replyButtonEnd",void 0);_.V([_.C(),_.f("design:type",Object)],dm.prototype,"buttonOverrides",void 0);_.V([_.C(),_.f("design:type",Object)],dm.prototype,"replyButtonOverrides",void 0);_.V([_.C(),_.f("design:type",Object)],dm.prototype,"forceIconButton",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],dm.prototype,"useCommentIcon",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],dm.prototype,"modern",void 0);_.V([_.C(),_.f("design:type",Object)],dm.prototype,"buttonTooltipPosition",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],dm.prototype,"systemIcons",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],dm.prototype,"isLiked",void 0);_.V([_.to("ytd-button-renderer"),_.f("design:type",Object)],dm.prototype,"ytdReplyButtonRenderer",void 0);
_.V([_.to("#like-button"),_.f("design:type",Object)],dm.prototype,"JSC$16142_ytdLikeToggleButtonRenderer",void 0);_.V([_.to("#dislike-button"),_.f("design:type",Object)],dm.prototype,"JSC$16142_ytdDislikeToggleButtonRenderer",void 0);_.V([_.to("#reply-dialog"),_.f("design:type",HTMLElement)],dm.prototype,"replyDialogElement",void 0);_.V([_.to("#reply-button"),_.f("design:type",HTMLElement)],dm.prototype,"replyButtonElement",void 0);
_.V([_.to("#reply-button-end"),_.f("design:type",HTMLElement)],dm.prototype,"replyButtonEndElement",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],dm.prototype,"dataChange",null);_.V([_.u3("yt-commentbox-dismiss"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],dm.prototype,"onYtCommentboxDismiss",null);
_.V([_.u3("yt-service-request-sent-button-renderer"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],dm.prototype,"onRequestSent",null);_.V([_.u3("yt-navigate"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],dm.prototype,"onYtNavigate",null);
_.V([_.u3("yt-service-request-sent"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,_.kE]),_.f("design:returntype")],dm.prototype,"onYtServiceRequestSent",null);_.V([_.OB("buttonTooltipPosition"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],dm.prototype,"onButtonTooltipPositionChanged",null);
_.V([_.u3("yt-toggle-button"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],dm.prototype,"onYtToggleButton",null);_.V([_.Yx({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],dm);
_.k(dm,"ytd-comment-action-buttons-renderer",function(){if(DVP!==void 0)return DVP;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return DVP=b},{mode:1});var BLb;var jl=function(){return _.g.apply(this,arguments)||this};
_.z(jl,_.g);jl.prototype.focus=function(){_.$x(this.hostElement).querySelector("#commentbox").focus()};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],jl.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],jl.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],jl.prototype,"zeroStepChannelCreationRenderer",void 0);_.V([_.Yx({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],jl);
_.k(jl,"ytd-comment-dialog-renderer",function(){if(BLb!==void 0)return BLb;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return BLb=b},{mode:1});var WvG;var $l=function(){var b=_.g.apply(this,arguments)||this;b.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.r("enable_web_delhi_icons")};b.replyButtonOverrides={size:"S",type:"text"};return b};
_.z($l,_.g);_.d=$l.prototype;_.d.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.d.detached=function(){this.replyBox&&this.replyBox.remove()};
_.d.showReplyDialog=function(b){if(b){var h=this.replyBox;h||(h=document.createElement("ytd-comment-reply-dialog-renderer"),h.id="replybox",_.$x(this.replyDialogDiv).appendChild(h));h.data=b;this.replyDialogDiv.hidden=!1;h.openDialog()}};
_.d.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.d.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var b,h=_.c((b=this.toolbarSurface)==null?void 0:b.subscribersOnlyDisclaimerSnackbarCommand,_.sQ);h&&_.Sx(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:h})}};
_.d.onYtServiceRequestSent=function(b,h){b.stopPropagation();if(h.actions)for(var y=0;y<h.actions.length;y++){var S=_.c(h.actions[y],rDb);S?this.handleUpdateCommentVoteAction(S):b.target===this.heartButton&&this.toggleHeartState()}};
_.d.handleUpdateCommentVoteAction=function(b){var h;(h=this.toolbarState)!=null&&h.key&&this.ytdReduxBehavior.dispatch(_.eD("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:b.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":b.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.d.toggleHeartState=function(){var b;(b=this.toolbarState)!=null&&b.key&&this.ytdReduxBehavior.dispatch(_.eD("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.tm.Object.defineProperties($l.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var b,h,y;return(((b=this.toolbarState)==null?void 0:b.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(h=this.toolbarData)==null?void 0:h.likeCountLiked:(y=this.toolbarData)==null?void 0:y.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.toolbarSurface)==null?void 0:b.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.toolbarSurface)==null?void 0:b.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.toolbarSurface)==null?void 0:b.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.toolbarSurface)==null?void 0:b.prepareAccountCommand)!==void 0&&!_.r("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var b,h=_.c((b=this.toolbarSurface)==null?void 0:b.prepareAccountCommand,_.sQ),y,S,F,a,P,K,n,X,u;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((y=this.toolbarSharedData)==null||!y.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((S=this.toolbarState)==null?void 0:S.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:h!=null?h:_.c((F=this.toolbarSurface)==null?void 0:F.likeCommand,_.sQ),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:h!=null?h:_.c((a=this.toolbarSurface)==null?void 0:a.unlikeCommand,_.sQ),defaultCommand:this.isVisiblyDisabled?_.c((P=this.toolbarSurface)==null?void 0:P.commentDisabledActionCommand,_.sQ):void 0,defaultTooltip:(K=this.toolbarData)==null?void 0:K.likeInactiveTooltip,toggledTooltip:(n=this.toolbarData)==null?void 0:n.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(X=this.toolbarData)==null?void 0:X.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(u=this.toolbarSharedData)==null?void 0:u.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var b,h=_.c((b=this.toolbarSurface)==null?void 0:b.prepareAccountCommand,_.sQ),y,S,F,a,P,K,n,X,u,O;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((y=this.toolbarSharedData)==null||!y.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((S=this.toolbarState)==null?void 0:S.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:h!=null?h:_.c((F=this.toolbarSurface)==null?void 0:F.dislikeCommand,_.sQ),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:h!=null?h:_.c((a=this.toolbarSurface)==null?void 0:a.undislikeCommand,_.sQ),defaultCommand:this.isVisiblyDisabled?_.c((P=this.toolbarSurface)==null?void 0:P.commentDisabledActionCommand,_.sQ):void 0,defaultTooltip:(K=this.toolbarData)==null?void 0:K.dislikeInactiveTooltip,toggledTooltip:(n=this.toolbarData)==null?void 0:
n.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(X=this.toolbarSharedData)==null?void 0:X.dislikeReplyButtonA11y:(u=this.toolbarSharedData)==null?void 0:u.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(O=this.toolbarSharedData)==null?void 0:O.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var b,h,y;if(((b=this.toolbarState)==null?void 0:b.heartState)!==void 0&&((h=this.toolbarState)==null?void 0:h.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((y=this.toolbarState)==null?void 0:y.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var S,F,a,P,K,n,X,u,O,N,t,R,I,U;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(S=this.toolbarData)==null?void 0:S.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((F=this.toolbarState)==null?void 0:F.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((a=this.toolbarState)==null?void 0:a.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((P=this.toolbarState)==null?void 0:P.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((K=this.toolbarState)==null?void 0:K.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.c((n=this.toolbarSurface)==null?void 0:n.heartCommand,
_.sQ),unheartEndpoint:this.isVisiblyDisabled?void 0:_.c((X=this.toolbarSurface)==null?void 0:X.unheartCommand,_.sQ),disabledEndpoint:this.isVisiblyDisabled?_.c((u=this.toolbarSurface)==null?void 0:u.commentDisabledActionCommand,_.sQ):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(O=this.toolbarData)==null?void 0:O.heartActiveTooltip,unheartedTooltip:(N=this.toolbarData)==null?void 0:N.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((t=
this.toolbarState)==null?void 0:t.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(R=this.toolbarSharedData)==null?void 0:R.unheartButtonA11y:(I=this.toolbarSharedData)==null?void 0:I.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(U=this.toolbarSharedData)==null?void 0:U.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.toolbarSurface)==null||!b.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var b;if((b=this.commentStrings)!=null&&b.replyButtonText){var h,y,S,F;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(h=this.commentStrings)==null?void 0:h.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.c((y=this.toolbarSurface)==null?void 0:y.replyCommand,_.sQ),command:this.isVisiblyDisabled?
_.c((S=this.toolbarSurface)==null?void 0:S.commentDisabledActionCommand,_.sQ):this.isSubsOnlyCommentsIneligibleUser?_.c((F=this.toolbarSurface)==null?void 0:F.subscribersOnlySnackbarCommand,_.sQ):void 0}}}}});
$l.prototype.onYtServiceRequestSent=$l.prototype.onYtServiceRequestSent;$l.prototype.hideReplyDialogDiv=$l.prototype.hideReplyDialogDiv;_.V([_.C(),_.f("design:type",Object)],$l.prototype,"commentStrings",void 0);_.V([_.C(),_.f("design:type",Boolean)],$l.prototype,"isReply",void 0);_.V([_.C(),_.f("design:type",Object)],$l.prototype,"toolbarData",void 0);_.V([_.C(),_.f("design:type",Object)],$l.prototype,"toolbarSharedData",void 0);
_.V([_.C(),_.f("design:type",String)],$l.prototype,"toolbarStateKey",void 0);_.V([_.C(),_.f("design:type",String)],$l.prototype,"toolbarSurfaceKey",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],$l.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],$l.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],$l.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.Y9),_.f("design:type",Object)],$l.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.to("#reply-dialog"),_.f("design:type",HTMLElement)],$l.prototype,"replyDialogDiv",void 0);_.V([_.to("#replybox"),_.f("design:type",Object)],$l.prototype,"replyBox",void 0);_.V([_.to("ytd-creator-heart-renderer"),_.f("design:type",Object)],$l.prototype,"heartButton",void 0);_.V([_.C({selector:function(b,h){return _.Mm(b.entities,"engagementToolbarStateEntityPayload",h)},
selectorArgs:["toolbarStateKey"]}),_.f("design:type",Object)],$l.prototype,"toolbarState",void 0);_.V([_.C({selector:wnU,selectorArgs:["toolbarSurfaceKey"]}),_.f("design:type",Object)],$l.prototype,"toolbarSurface",void 0);_.V([_.C(),_.f("design:type",Object)],$l.prototype,"buttonOverrides",void 0);_.V([_.u3("yt-commentbox-dismiss"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],$l.prototype,"hideReplyDialogDiv",null);
_.V([_.W("toolbarData","toolbarState"),_.f("design:type",String),_.f("design:paramtypes",[])],$l.prototype,"likeCount",null);_.V([_.W("likeCount"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],$l.prototype,"showLikeCount",null);_.V([_.W("toolbarSurface"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],$l.prototype,"isVisiblyDisabled",null);_.V([_.W("toolbarSurface"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],$l.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.V([_.W("toolbarSurface"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],$l.prototype,"isSubsOnlyCommentsEligibleUser",null);_.V([_.W("toolbarSurface"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],$l.prototype,"hasPrepareAccountCommand",null);_.V([_.W("toolbarData","toolbarState","toolbarSurface"),_.f("design:type",Object),_.f("design:paramtypes",[])],$l.prototype,"likeToggleButtonRenderer",null);
_.V([_.W("isReply","toolbarData","toolbarState","toolbarSurface"),_.f("design:type",Object),_.f("design:paramtypes",[])],$l.prototype,"dislikeToggleButtonRenderer",null);_.V([_.W("toolbarData","toolbarState","toolbarSurface"),_.f("design:type",Object),_.f("design:paramtypes",[])],$l.prototype,"creatorHeartSupportedRenderer",null);_.V([_.W("toolbarSurface"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],$l.prototype,"hasReplyCommand",null);
_.V([_.W("toolbarSurface","commentStrings","isVisiblyDisabled"),_.f("design:type",Object),_.f("design:paramtypes",[])],$l.prototype,"replyButtonRenderer",null);_.V([_.C(),_.f("design:type",Object)],$l.prototype,"replyButtonOverrides",void 0);_.V([_.u3("yt-service-request-sent"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,_.kE]),_.f("design:returntype")],$l.prototype,"onYtServiceRequestSent",null);_.V([_.Yx({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],$l);
_.k($l,"ytd-comment-engagement-bar",function(){if(WvG!==void 0)return WvG;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return WvG=b},{mode:1});var AH5;var LN=function(){return _.g.apply(this,arguments)||this};
_.z(LN,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],LN.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],LN.prototype,"data",void 0);_.V([_.Yx({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],LN);
_.k(LN,"ytd-comment-inline-thumbnail-renderer",function(){if(AH5!==void 0)return AH5;var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return AH5=b},{mode:1});var UVN;var Pu=function(){return _.g.apply(this,arguments)||this};
_.z(Pu,_.g);Pu.prototype.onMessageTap=function(){if(this.onTapCommand){var b=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);b&&this.ytdOpenPopupBehavior.openPopup(b)}};
_.tm.Object.defineProperties(Pu.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var b,h,y;return(b=this.data)==null?void 0:(h=b.button)==null?void 0:(y=h.buttonRenderer)==null?void 0:y.command}}});
_.V([_.B(_.Y9),_.f("design:type",Object)],Pu.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Pu.prototype,"data",void 0);_.V([_.W("data.button.buttonRenderer.command"),_.f("design:type",Object),_.f("design:paramtypes",[])],Pu.prototype,"onTapCommand",null);_.V([_.Yx({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],Pu);
_.k(Pu,"ytd-comment-pause-composer-renderer",function(){if(UVN!==void 0)return UVN;var b=document.createElement("template");_.D(b,'\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>');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return UVN=b},{mode:1});var pp5;var JHG;var KN=function(){var b=_.g.apply(this,arguments)||this;b.isOpen=!1;return b};
_.z(KN,_.g);_.d=KN.prototype;_.d.dataChanged=function(){this.isOpen=!1};
_.d.onTap=function(){this.data&&(this.data.navigationEndpoint?_.Sx(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.d.focus=function(){this.JSC$16171_commentbox.focus()};
_.d.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.d.openDialog=function(){this.isOpen=!0;this.JSC$16171_commentbox.focus();this.JSC$16171_commentbox.maybeHeightChanged()};
KN.prototype.onYtCommentboxDismiss=KN.prototype.onYtCommentboxDismiss;KN.prototype.dataChanged=KN.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],KN.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],KN.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],KN.prototype,"isOpen",void 0);_.V([_.to("#commentbox"),_.f("design:type",Object)],KN.prototype,"JSC$16171_commentbox",void 0);
_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],KN.prototype,"dataChanged",null);_.V([_.u3("yt-commentbox-dismiss"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],KN.prototype,"onYtCommentboxDismiss",null);_.V([_.Yx({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],KN);
_.k(KN,"ytd-comment-reply-dialog-renderer",function(){if(JHG!==void 0)return JHG;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return JHG=b},{mode:1});var e$o;var Z3=function(){return _.g.apply(this,arguments)||this};
_.z(Z3,_.g);_.tm.Object.defineProperties(Z3.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var b,h,y=(b=this.data)==null?void 0:(h=b.icon)==null?void 0:h.iconType;return y?"yt-icons:"+y.toLowerCase():null}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Z3.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Z3.prototype,"data",void 0);_.V([_.C(),_.W("data.icon"),_.f("design:type",Object),_.f("design:paramtypes",[])],Z3.prototype,"icon",null);_.V([_.Yx({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],Z3);
_.k(Z3,"ytd-pinned-comment-badge-renderer",function(){if(e$o!==void 0)return e$o;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return e$o=b},{mode:1});var CbM;var g5a={},sg7={input:!0,meta:!0,br:!0,link:!0,img:!0},ol=null;g5a.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(){ol==null&&(ol=document.createElement("tp-yt-paper-tooltip"),ol.offset=8,ol.fitToVisibleBounds=!0)},
onMouseOver_:function(b){if(b=_.b5(b.target,function(F){return F==this||F.getAttribute&&F.getAttribute("shared-tooltip-text")}.bind(this),!0)){var h=b.getAttribute("shared-tooltip-text");
if(h){var y=this,S=null;b!=this&&(b.tagName.toLowerCase()in sg7?y=b.parentElement:y=b,b.id&&(S=b.id));this.polymerController.createTooltipIfRequired_();if(ol.parentElement!=y||ol.for!=S)(0,_.Mh)(ol).textContent=h,_.$x(y).appendChild(ol),ol.for=S,ol.animationDelay=this.polymerController.sharedTooltipAnimationDelay,ol.position=this.polymerController.sharedTooltipPosition}}}};var Mf=function(){return _.g.apply(this,arguments)||this};
_.z(Mf,_.g);Mf.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]]"}}}}}};
Mf.prototype.attached=function(){if(!this.hostElement.hasAttribute("role")){this.hostElement.setAttribute("role","img");var b;((b=this.data)==null?0:b.tooltip)&&this.hostElement.setAttribute("alt",this.data.tooltip)}var h;((h=this.data)==null?0:h.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
Mf.prototype.colorChanged=function(){var b,h,y,S=(b=this.data)==null?void 0:(h=b.color)==null?void 0:(y=h.basicColorPaletteData)==null?void 0:y.foregroundBodyColor;S&&(this.rgbBadgeColor=_.eI(S));_.$x(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
Mf.prototype.tooltipChanged=function(){var b;((b=this.data)==null?0:b.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
Mf.prototype.tooltipChanged=Mf.prototype.tooltipChanged;Mf.prototype.colorChanged=Mf.prototype.colorChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Mf.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Mf.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(g5a.YtSharedTooltipBehavior),_.f("design:type",Object)],Mf.prototype,"ytSharedTooltipBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Mf.prototype,"data",void 0);
_.V([_.C({value:"#4285F4"}),_.f("design:type",String)],Mf.prototype,"rgbBadgeColor",void 0);_.V([_.OB("data.color"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Mf.prototype,"colorChanged",null);_.V([_.OB("data.tooltip"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Mf.prototype,"tooltipChanged",null);_.V([_.Yx({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],Mf);
_.k(Mf,"ytd-sponsor-comment-badge-renderer",function(){if(CbM!==void 0)return CbM;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return CbM=b},{mode:1});var Y4N;var TL7;var nN=function(){return _.g.apply(this,arguments)||this};
_.z(nN,_.g);nN.prototype.computeState=function(b){switch(b==null?void 0:b.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"}};
nN.prototype.updateStateIdentifier=function(b){if(this.viewModel.triStateKey){var h=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.eD("triStateButtonStateEntityPayload",h,{key:h,stateIdentifier:b}))}};
nN.prototype.onClick=function(){var b=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(){b.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){b.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.tm.Object.defineProperties(nN.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 b;return((b=this.data)==null?void 0:b.buttonText)||""}}});
_.V([_.C(),_.f("design:type",Object)],nN.prototype,"viewModel",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],nN.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],nN.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],nN.prototype,"ytRendererBehavior",void 0);_.V([_.C({selector:lQn,selectorArgs:["viewModel.triStateKey"]}),_.f("design:type",Object)],nN.prototype,"triStateButtonStateEntity",void 0);
_.V([_.C({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.f("design:type",String)],nN.prototype,"state",void 0);_.V([_.W("viewModel","state"),_.f("design:type",Object),_.f("design:paramtypes",[])],nN.prototype,"data",null);_.V([_.W("data"),_.f("design:type",String),_.f("design:paramtypes",[])],nN.prototype,"buttonText",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],nN);
_.k(nN,"ytd-tri-state-button-view-model",function(){if(TL7!==void 0)return TL7;var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return TL7=b},{mode:1});var GVP;var kVa;var X2=function(){var b=_.g.apply(this,arguments)||this;b.defaultIconToFilled=!_.r("kevlar_fill_comment_chip_icon_killswitch");return b};
_.z(X2,_.g);X2.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
X2.prototype.dataChanged=function(){if(this.data){var b,h;((b=this.data.chipColorPalette)==null?0:b.backgroundColor)&&((h=this.data.chipColorPalette)==null?0:h.foregroundTitleColor)&&_.nZ(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.CR(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.CR(this.data.chipColorPalette.foregroundTitleColor)});var y;((y=this.data)==null?0:y.command)?(_.nZ(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.nZ(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}};
X2.prototype.onTap=function(){var b;if(this.data&&(b=this.data)!=null&&b.command){var h;this.ytComponentBehavior.resolveCommand((h=this.data)==null?void 0:h.command)}};
X2.prototype.getIconSize=function(){return _.r("kevlar_fill_comment_chip_icon_killswitch")?24:12};
X2.prototype.onTap=X2.prototype.onTap;X2.prototype.dataChanged=X2.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],X2.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],X2.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.xq),_.f("design:type",Object)],X2.prototype,"ironA11yKeysBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],X2.prototype,"data",void 0);
_.V([_.C(),_.f("design:type",Object)],X2.prototype,"basePriceText",void 0);_.V([_.C(),_.f("design:type",Object)],X2.prototype,"chipIcon",void 0);_.V([_.C(),_.f("design:type",Object)],X2.prototype,"defaultIconToFilled",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],X2.prototype,"dataChanged",null);_.V([_.u3("tap"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],X2.prototype,"onTap",null);
_.V([_.sB({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],X2);
_.k(X2,"yt-pdg-comment-chip-renderer",function(){if(kVa===void 0){var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;GVP===void 0&&(GVP=document.createElement("template"));var S=GVP;y.call(h,S.content.cloneNode(!0),b.content.firstChild);kVa=b}b=kVa;return b},{mode:2});var Hu=function(){var b=_.g.apply(this,arguments)||this;b.useSmallAvatars=_.r("small_avatars_for_comments");b.commentThreadingEnabled=_.r("web_delhi_comment_threads");b.webWatchCompactComments=_.r("web_watch_compact_comments");b.editDialog=null;return b};
_.z(Hu,_.g);_.d=Hu.prototype;_.d.onShow=function(){_.JL("cmv",void 0,"wn_comments")};
_.d.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"}}}};
_.d.detached=function(){this.editDialog=null;this.expander.reset()};
_.d.updateBackgroundColor=function(){if(this.backgroundColor){var b={"--ytd-comment-paid-background-color":_.CR(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.nZ(this.hostElement,b)}else _.nZ(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.d.resetExpander=function(){var b;(b=this.expander)==null||b.reset()};
_.d.openEditDialog=function(b){b.dialog&&(this.editDialog=b.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.d.onYtNavigate=function(b){var h=b.detail.endpoint;if(h=_.c(h,_.SG8)||_.c(h,_.Fx8))b.stopPropagation(),this.openEditDialog(h)};
_.d.onYtCommentboxDismiss=function(){this.editDialog=null;_.nZ(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.d.onAuthorThumbnailClicked=function(){_.r("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.d.onYtCommentboxResize=function(b){var h;(b==null?0:(h=b.detail)==null?0:h.height)&&_.nZ(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":b.detail.height+"px"})};
_.tm.Object.defineProperties(Hu.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 b,h=(b=this.commentEntity)==null?void 0:b.author;return h&&(h.isCreator||h.isVerified||h.isArtist)?{renderer:{authorEndpoint:h.channelPageEndpoint?_.c(h.channelPageEndpoint,_.sQ):_.c(h.channelCommand,_.sQ),authorText:{runs:[{text:h.displayName}]},color:h.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:h.isArtist?{iconType:"AUDIO_BADGE"}:
h.isVerified?{iconType:h.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:h.isArtist||h.isVerified?h.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var b,h=(b=this.commentEntity)==null?void 0:b.author;return h!=null&&h.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:h.sponsorBadgeUrl}]},tooltip:h.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var b;return _.c((b=this.commentSurfaceEntity)==null?void 0:b.pdgCommentChip,_.pjb)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var b;return this.voiceReplyContainerViewModel&&((b=this.voiceReplyContainerViewModel)==null?void 0:b.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var b;return _.c((b=this.commentSurfaceEntity)==null?void 0:b.voiceReplyContainerViewModel,UE7)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var b;return this.voiceReplyContainerViewModel&&(b=this.voiceReplyContainerViewModel)!=null&&b.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var b,h;return(h=(b=this.commentSurfaceEntity)==null?void 0:b.commentBackgroundColor)!=null?h:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.r("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var b,h;return(((b=this.commentEntity)==null?void 0:(h=b.properties)==null?void 0:h.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var b,h;if(_.r("enable_profile_cards_on_comments")&&((b=this.commentEntity)==null?0:(h=b.author)==null?0:h.profileCardEndpoint)&&this.viewModel.allowProfileCard){var y,S;return _.c((y=this.commentEntity)==null?void 0:(S=y.author)==null?void 0:S.profileCardEndpoint,_.sQ)}var F,a;return _.c((F=this.commentEntity)==null?void 0:(a=F.avatar)==null?void 0:a.endpoint,_.sQ)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var b,h;if(_.r("enable_profile_cards_on_comments")&&((b=this.commentEntity)==null?0:(h=b.author)==null?0:h.channelPageEndpoint)){var y,S;return _.c((y=this.commentEntity)==null?void 0:(S=y.author)==null?void 0:S.channelPageEndpoint,_.sQ)}var F,a;return _.c((F=this.commentEntity)==null?void 0:(a=F.avatar)==null?void 0:a.endpoint,_.sQ)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var b,h,y,S,F=(b=this.commentEntity)==null?void 0:(h=b.avatar)==null?void 0:(y=h.image)==null?void 0:(S=y.sources)==null?void 0:S[0];return F?{thumbnails:[{url:F.url,width:F.width,height:F.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var b,h;return((b=this.commentEntity)==null?0:(h=b.author)==null?0:h.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var b,h;return((b=this.commentEntity)==null?void 0:(h=b.author)==null?void 0:h.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var b,h;return((b=this.commentEntity)==null?void 0:(h=b.properties)==null?void 0:h.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var b;return _.c((b=this.commentSurfaceEntity)==null?void 0:b.publishedTimeCommand,_.sQ)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var b,h;if(((b=this.commentEntity)==null?0:b.translatedContent)&&((h=this.translateButtonState)==null?void 0:h.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var y;if((y=this.voiceReplyContainerViewModel)==null?0:y.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var S,F;return((S=this.commentEntity)==null?void 0:(F=S.properties)==null?void 0:F.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var b,h;return((b=this.commentSharedEntity)==null?void 0:(h=b.strings)==null?void 0:h.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var b,h;return((b=this.commentSharedEntity)==null?void 0:(h=b.strings)==null?void 0:h.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.commentEntity)==null||!b.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var b,h,y=(h=_.c((b=this.viewModel)==null?void 0:b.translateButton,ADN))!=null?h:{},S,F,a,P,K,n,X,u,O,N,t;return Object.assign({},y,{untoggledStateData:Object.assign({},y.untoggledStateData,{buttonText:(S=this.commentEntity)==null?void 0:(F=S.translateData)==null?void 0:F.text}),togglingStateData:Object.assign({},y.togglingStateData,{buttonText:(a=this.commentSharedEntity)==null?
void 0:(P=a.strings)==null?void 0:P.translatingText}),toggledStateData:Object.assign({},y.toggledStateData,{buttonText:(K=this.commentSharedEntity)==null?void 0:(n=K.strings)==null?void 0:n.seeOriginalText}),transitionCommand:((X=this.commentEntity)==null?0:X.translatedContent)?void 0:_.c((u=this.commentEntity)==null?void 0:(O=u.translateData)==null?void 0:O.translateComment,_.sQ),triStateKey:(N=this.commentEntity)==null?void 0:(t=N.properties)==null?void 0:t.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var b,h,y;return((h=_.c(_.c((b=this.toolbarSurface)==null?void 0:b.menuCommand,_.sQ),a4W))==null?void 0:(y=h.menu)==null?void 0:y.menuRenderer)||null}}});
Hu.prototype.onYtCommentboxResize=Hu.prototype.onYtCommentboxResize;Hu.prototype.onYtCommentboxDismiss=Hu.prototype.onYtCommentboxDismiss;Hu.prototype.onYtNavigate=Hu.prototype.onYtNavigate;Hu.prototype.resetExpander=Hu.prototype.resetExpander;Hu.prototype.updateBackgroundColor=Hu.prototype.updateBackgroundColor;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Hu.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],Hu.prototype,"ytdReduxBehavior",void 0);
_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],Hu.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Hu.prototype,"ytRendererstamperBehavior",void 0);_.V([_.to("#author-thumbnail > button"),_.f("design:type",HTMLElement)],Hu.prototype,"authorThumbnailAnchor",void 0);_.V([_.C({reflectToAttribute:!0}),_.W("viewModel"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Hu.prototype,"linked",null);
_.V([_.W("viewModel","linked"),_.f("design:type",Object),_.f("design:paramtypes",[])],Hu.prototype,"linkedCommentBadge",null);_.V([_.C({reflectToAttribute:!0}),_.W("viewModel"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Hu.prototype,"pinned",null);_.V([_.W("viewModel","pinned"),_.f("design:type",Object),_.f("design:paramtypes",[])],Hu.prototype,"pinnedCommentBadge",null);
_.V([_.W("commentEntity","commentSharedEntity"),_.f("design:type",Object),_.f("design:paramtypes",[])],Hu.prototype,"authorCommentBadge",null);_.V([_.C({reflectToAttribute:!0}),_.W("authorCommentBadge"),_.f("design:type",Object),_.f("design:paramtypes",[])],Hu.prototype,"hasAuthorBadge",null);_.V([_.W("commentEntity"),_.f("design:type",Object),_.f("design:paramtypes",[])],Hu.prototype,"sponsorCommentBadge",null);
_.V([_.C({reflectToAttribute:!0}),_.W("sponsorCommentBadge"),_.f("design:type",Object),_.f("design:paramtypes",[])],Hu.prototype,"hasSponsorBadge",null);_.V([_.W("commentSurfaceEntity"),_.f("design:type",Object),_.f("design:paramtypes",[])],Hu.prototype,"pdgCommentChipRenderer",null);_.V([_.C({reflectToAttribute:!0}),_.W("voiceReplyContainerViewModel"),_.f("design:type",Object),_.f("design:paramtypes",[])],Hu.prototype,"hasVoiceReply",null);
_.V([_.W("commentSurfaceEntity"),_.f("design:type",Object),_.f("design:paramtypes",[])],Hu.prototype,"voiceReplyContainerViewModel",null);_.V([_.W("voiceReplyContainerViewModel"),_.f("design:type",Object),_.f("design:paramtypes",[])],Hu.prototype,"voiceReplyUnavailableText",null);_.V([_.C(),_.f("design:type",Object)],Hu.prototype,"data",void 0);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],Hu.prototype,"viewModel",null);
_.V([_.C({selector:function(b,h){return _.Mm(b.entities,"commentSharedEntityPayload",h)},
selectorArgs:["viewModel.sharedKey"]}),_.f("design:type",Object)],Hu.prototype,"commentSharedEntity",void 0);_.V([_.C({selector:fQn,selectorArgs:["viewModel.commentKey"]}),_.f("design:type",Object)],Hu.prototype,"commentEntity",void 0);_.V([_.C({selector:function(b,h){return _.Mm(b.entities,"commentSurfaceEntityPayload",h)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.f("design:type",Object)],Hu.prototype,"commentSurfaceEntity",void 0);_.V([_.C({selector:wnU,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.f("design:type",Object)],Hu.prototype,"toolbarSurface",void 0);_.V([_.C({selector:lQn,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.f("design:type",Object)],Hu.prototype,"translateButtonState",void 0);
_.V([_.W("commentSurfaceEntity"),_.f("design:type",Object),_.f("design:paramtypes",[])],Hu.prototype,"backgroundColor",null);_.V([_.C({reflectToAttribute:!0}),_.W("viewModel"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Hu.prototype,"optimalReadingWidthComments",null);_.V([_.to("ytd-expander"),_.f("design:type",Object)],Hu.prototype,"expander",void 0);
_.V([_.OB("backgroundColor"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Hu.prototype,"updateBackgroundColor",null);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Hu.prototype,"useSmallAvatars",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],Hu.prototype,"engagementPanel",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Hu.prototype,"commentThreadingEnabled",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Hu.prototype,"webWatchCompactComments",void 0);_.V([_.C({reflectToAttribute:!0}),_.W("commentEntity"),_.f("design:type",Object),_.f("design:paramtypes",[])],Hu.prototype,"isReply",null);_.V([_.W("commentEntity"),_.f("design:type",Object),_.f("design:paramtypes",[])],Hu.prototype,"authorThumbnailEndpoint",null);_.V([_.W("commentEntity"),_.f("design:type",Object),_.f("design:paramtypes",[])],Hu.prototype,"authorNameEndpoint",null);
_.V([_.W("commentEntity"),_.f("design:type",Object),_.f("design:paramtypes",[])],Hu.prototype,"authorThumbnail",null);_.V([_.W("commentEntity"),_.f("design:type",String),_.f("design:paramtypes",[])],Hu.prototype,"authorTextClass",null);_.V([_.W("commentEntity"),_.f("design:type",String),_.f("design:paramtypes",[])],Hu.prototype,"authorChannelName",null);_.V([_.W("commentEntity"),_.f("design:type",Object),_.f("design:paramtypes",[])],Hu.prototype,"publishedTime",null);
_.V([_.W("commentSurfaceEntity"),_.f("design:type",Object),_.f("design:paramtypes",[])],Hu.prototype,"publishedTimeCommand",null);_.V([_.W("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.f("design:type",Object),_.f("design:paramtypes",[])],Hu.prototype,"contentText",null);_.V([_.OB("contentText"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Hu.prototype,"resetExpander",null);
_.V([_.W("commentEntity"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Hu.prototype,"shouldShowReadMoreInitially",null);_.V([_.W("commentSharedEntity"),_.f("design:type",String),_.f("design:paramtypes",[])],Hu.prototype,"expandText",null);_.V([_.W("commentSharedEntity"),_.f("design:type",String),_.f("design:paramtypes",[])],Hu.prototype,"collapseText",null);_.V([_.W("commentEntity"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Hu.prototype,"shouldShowTranslateButton",null);
_.V([_.W("commentEntity","commentSharedEntity"),_.f("design:type",Object),_.f("design:paramtypes",[])],Hu.prototype,"translateButton",null);_.V([_.W("toolbarSurface"),_.f("design:type",Object),_.f("design:paramtypes",[])],Hu.prototype,"overflowMenuRenderer",null);_.V([_.C(),_.f("design:type",Object)],Hu.prototype,"editDialog",void 0);_.V([_.to("ytd-comment-dialog-renderer"),_.f("design:type",Object)],Hu.prototype,"editCommentDialogContainer",void 0);
_.V([_.to("ytd-comment-reply-dialog-renderer"),_.f("design:type",Object)],Hu.prototype,"editReplyDialogContainer",void 0);_.V([_.u3("yt-navigate"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],Hu.prototype,"onYtNavigate",null);_.V([_.u3("yt-commentbox-dismiss"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],Hu.prototype,"onYtCommentboxDismiss",null);
_.V([_.u3("yt-commentbox-resize"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],Hu.prototype,"onYtCommentboxResize",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-comment-view-model"})],Hu);
_.k(Hu,"ytd-comment-view-model",function(){if(Y4N!==void 0)return Y4N;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return Y4N=b},{mode:_.Lt("kevlar_poly_si_batch_j025")?1:2});_.yd(_.T(function(b){var h={};return _.M("yt-sub-thread",{class:_.P2("ytSubThreadHost",(h.ytSubThreadHasButton=b.isButton,h.ytSubThreadHovered=b.hovered,h.ytSubThreadTopLevelThread=function(){var y,S;return((y=b.topLevelThread)==null?void 0:y.call(b))&&!(_.r("small_avatars_for_comments")&&((S=b.engagementPanel)==null?0:S.call(b)))},h))},_.M("div",{class:"ytSubThreadThreadline"},_.M(_.H,{cond:function(){var y;
return!((y=b.isTeaser)==null?0:y.call(b))},
then:function(){return _.M("div",{class:"ytSubThreadConnection"})}}),_.M("div",{class:"ytSubThreadContinuation"}),_.M("div",{class:"ytSubThreadShadow"})),_.M("div",{class:"ytSubThreadSubThreadContent"},b.children))},"Kc"),"yt-sub-thread",{props:{isButton:_.D4,
isTeaser:_.D4,hovered:_.D4,topLevelThread:_.D4,engagementPanel:_.D4}});var uy=function(){var b=_.g.apply(this,arguments)||this;b.modern=_.r("web_modern_buttons");b.commentThreadingEnabled=_.r("web_delhi_comment_threads");b.isWatchGrid=_.r("kevlar_watch_grid");b.buttonOverrides=b.commentThreadingEnabled?_.r("web_delhi_comment_threads_call_to_action")?{iconPosition:"trailing",type:"text",style:"call-to-action"}:{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};b.JSC$16217_spinnerEl=null;return b};
_.z(uy,_.g);_.d=uy.prototype;_.d.configureContinuationPathMap=function(){return _.r("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.d.shouldShowLegacyTeasers=function(b,h){return b&&!h};
_.d.shouldShowExpandedThreads=function(b,h){return this.commentThreadingEnabled&&h&&(b==null?void 0:b.length)>0};
_.d.shouldShowCollapsedThreads=function(b,h){return this.commentThreadingEnabled&&!h&&b};
_.d.computeCommentViewModel=function(b){return _.c(b,Wbw)};
_.d.computeThreadRenderer=function(b){return _.c(b,cD7)};
_.d.computeIsContinuationItem=function(b){return!!this.computeContinuationItemRenderer(b)};
_.d.computeButtonRenderer=function(b){return _.c(b,_.OU)};
_.d.computeContinuationItemRenderer=function(b){return _.c(b,_.yp)};
_.d.computeShowButton=function(b){var h;return!((h=this.computeContinuationItemRenderer(b))==null||!h.button)};
_.d.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]]"}}}}}};
_.d.attached=function(){this.isShowRepliesVisible=!0};
_.d.dataChanged=function(){var b=this.expanderContents;b&&(b.hidden=!0);this.isLoading=!1};
_.d.endsInContinuation=function(b){return!!b&&b.length>0&&!!this.computeContinuationItemRenderer(b[b.length-1])};
_.d.computeShouldShowHideRepliesButton=function(b,h){return!b&&h};
_.d.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.d.isLoadingChanged=function(){this.isLoading&&!this.JSC$16217_spinnerEl&&(this.JSC$16217_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.$x(this.expanderContents).appendChild(this.JSC$16217_spinnerEl));this.JSC$16217_spinnerEl&&(this.JSC$16217_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var b;(b=this.contents)==null||b.classList.remove("reloading")}};
_.d.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var b=_.c(this.data.viewReplies,_.OU);b&&this.ytRendererBehavior.logExplicitClick(b);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.d.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var b=_.c(this.data.hideReplies,_.OU);b&&this.ytRendererBehavior.logExplicitClick(b);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.d.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var b=_.$x(this.hostElement).querySelector("#expander-contents");b&&(b.hidden=this.isShowRepliesVisible)}};
_.d.computeAlign=function(){if(this.modern){var b;return!((b=this.data)==null?0:b.viewRepliesCreatorThumbnail)}};
_.tm.Object.defineProperties(uy.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var b,h;return this.endsInContinuation((b=this.data)==null?void 0:b.contents)||this.commentThreadingEnabled&&this.endsInContinuation((h=this.data)==null?void 0:h.subThreads)}},
subThreadTeasers:{configurable:!0,enumerable:!0,get:function(){if(!this.commentThreadingEnabled)return[];var b;return(b=this.data)==null?void 0:b.teaserContents}}});
uy.prototype.isShowMoreChanged=uy.prototype.isShowMoreChanged;uy.prototype.isLoadingChanged=uy.prototype.isLoadingChanged;uy.prototype.triggerFirstContinuation=uy.prototype.triggerFirstContinuation;uy.prototype.dataChanged=uy.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],uy.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],uy.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.p1),_.f("design:type",Object)],uy.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],uy.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],uy.prototype,"modern",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],uy.prototype,"commentThreadingEnabled",void 0);_.V([_.C(),_.f("design:type",Boolean)],uy.prototype,"expanded",void 0);
_.V([_.C(),_.f("design:type",Function)],uy.prototype,"toggleExpanded",void 0);_.V([_.C(),_.f("design:type",Array)],uy.prototype,"addedReplies",void 0);_.V([_.C(),_.f("design:type",Boolean)],uy.prototype,"hovered",void 0);_.V([_.C(),_.f("design:type",Boolean)],uy.prototype,"topLevelThread",void 0);_.V([_.C(),_.f("design:type",Boolean)],uy.prototype,"isLoading",void 0);_.V([_.C({value:!0}),_.f("design:type",Boolean)],uy.prototype,"isShowRepliesVisible",void 0);
_.V([_.C({value:!1}),_.f("design:type",Boolean)],uy.prototype,"useNewFormatting",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],uy.prototype,"engagementPanel",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],uy.prototype,"isWatchGrid",void 0);_.V([_.C(),_.f("design:type",Object)],uy.prototype,"buttonOverrides",void 0);_.V([_.to("#expander-contents"),_.f("design:type",HTMLElement)],uy.prototype,"expanderContents",void 0);
_.V([_.to("ytd-continuation-item-renderer"),_.f("design:type",Object)],uy.prototype,"continuationItemRenderer",void 0);_.V([_.to("#contents"),_.f("design:type",HTMLElement)],uy.prototype,"contents",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],uy.prototype,"dataChanged",null);_.V([_.W("data.contents","data.subThreads.*"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],uy.prototype,"hasContinuation",null);
_.V([_.W("data.teaserContents"),_.f("design:type",Object),_.f("design:paramtypes",[])],uy.prototype,"subThreadTeasers",null);_.V([_.u3("yt-expander-more-tapped"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],uy.prototype,"triggerFirstContinuation",null);_.V([_.OB("isLoading"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],uy.prototype,"isLoadingChanged",null);
_.V([_.OB("isShowRepliesVisible"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],uy.prototype,"isShowMoreChanged",null);_.V([_.Yx({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],uy);
_.k(uy,"ytd-comment-replies-renderer",function(){if(pp5!==void 0)return pp5;var b=document.createElement("template");_.D(b,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[commentThreadingEnabled]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!shouldShowLegacyTeasers(isShowRepliesVisible, commentThreadingEnabled)]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n<div id="expanded-threads" hidden="[[!shouldShowCollapsedThreads(data.viewReplies, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[subThreadTeasers]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-teaser="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-comment-view-model data="[[computeCommentViewModel(item)]]" class="style-scope ytd-comment-replies-renderer"> </ytd-comment-view-model>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-repeat" items="[[addedReplies]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n      </ytd-comment-thread-renderer>\n    </yt-sub-thread>\n  </template>\n  <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="show-replies-button style-scope ytd-comment-replies-renderer" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies-sub-thread" aria-controls="expanded-threads" aria-expanded="[[!expanded]]" data="[[computeButtonRenderer(data.viewReplies)]]" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </div>\n  </yt-sub-thread>\n</div>\n<div id="collapsed-threads" hidden="[[!shouldShowExpandedThreads(data.subThreads, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[data.subThreads]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="[[computeIsContinuationItem(item)]]" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <template is="dom-if" if="[[computeThreadRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n        </ytd-comment-thread-renderer>\n      </template>\n      <template is="dom-if" if="[[computeContinuationItemRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-continuation-item-renderer button-overrides="[[buttonOverrides]]" data="[[computeContinuationItemRenderer(item)]]" is-comments-section="" show-button="[[computeShowButton(item)]]" class="style-scope ytd-comment-replies-renderer">\n        </ytd-continuation-item-renderer>\n      </template>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-if" if="[[computeShouldShowHideRepliesButton(hasContinuation, data.hideReplies)]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-button-renderer id="less-replies-sub-thread" aria-controls="collapsed-threads" aria-expanded="[[expanded]]" data="[[computeButtonRenderer(data.hideReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowLessTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </yt-sub-thread>\n  </template>\n</div>\n');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return pp5=b},{mode:1});var V85;var Oc=function(){var b=_.g.apply(this,arguments)||this;b.isOpen=!1;b.commentDialog=null;b.useSmallAvatars=_.r("small_avatars_for_comments");b.useSmallAvatarsEngagementPanelOnly=_.r("small_avatars_for_comments_ep");b.placeholderFocusListener=null;b.hasOpenedDialog=!1;b.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return b};
_.z(Oc,_.g);_.d=Oc.prototype;_.d.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]]"}}}}}};
_.d.ready=function(){var b=this,h=_.$x(this.hostElement).querySelector("#placeholder-area"),y=_.$x(this.hostElement).querySelector("#simplebox-placeholder"),S=function(F){F.stopPropagation();F instanceof KeyboardEvent&&F.type==="keypress"&&F.keyCode!==13&&F.keyCode!==32||b.openDialog()};
this.placeholderFocusListener=S;y.addEventListener("focus",this.placeholderFocusListener);h.addEventListener("tap",S);h.addEventListener("keypress",S)};
_.d.maybeRemoveFocusEventListener=function(){var b;(b=this.data)!=null&&b.prepareAccountEndpoint&&!_.r("web_comments_simplebox_modal_focus_on_tap_ks")&&(b=_.$x(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(b.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.d.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.d.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.r("web_comment_simplebox_resolve_polymer_command_ks")?_.nt.instance.resolveCommand(this.data.prepareAccountEndpoint):_.Xb(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.superfanOnlySnackbarCommand&&!this.hasOpenedDialog){var b=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.superfanOnlySnackbarCommand);b&&this.ytdOpenPopupBehavior.openPopup(b);this.hasOpenedDialog=!0}this.data.subscribersOnlySnackbarCommand&&
!this.hasOpenedDialog&&((b=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand))&&this.ytdOpenPopupBehavior.openPopup(b),this.hasOpenedDialog=!0);this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.$x(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.d.onYtCommentboxDismiss=function(b){b.stopPropagation();this.isOpen=!1};
_.d.onCreateCommentAction=function(b){this.get("createCommentAction.contents",b)&&(this.isOpen=!1)};
_.d.computeCommentDialog=function(b){return{placeholderText:b.placeholderText,authorThumbnail:b.authorThumbnail,submitButton:b.submitButton,imageButton:b.imageButton,cancelButton:b.cancelButton,emojiButton:b.emojiButton,emojis:b.emojis,emojiPicker:b.emojiPicker,aadcGuidelinesStateEntityKey:b.aadcGuidelinesStateEntityKey,openAadcDialog:b.openAadcDialog,unicodeEmojisUrl:b.unicodeEmojisUrl}};
_.d.onHideIdentityChip=function(b){_.c(b,Hp8)&&this.set("data.placeholderText",_.c(b,Hp8).placeholderText)};
Oc.prototype.onYtCommentboxDismiss=Oc.prototype.onYtCommentboxDismiss;Oc.prototype.dataChanged=Oc.prototype.dataChanged;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Oc.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Y9),_.f("design:type",Object)],Oc.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Oc.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],Oc.prototype,"ytActionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Oc.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],Oc.prototype,"isOpen",void 0);_.V([_.C(),_.f("design:type",Object)],Oc.prototype,"commentDialog",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],Oc.prototype,"engagementPanel",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Oc.prototype,"useSmallAvatars",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Oc.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],Oc.prototype,"enableCreationBox",void 0);_.V([_.C(),_.f("design:type",Boolean)],Oc.prototype,"showCreateDialog",void 0);
_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Oc.prototype,"dataChanged",null);_.V([_.u3("yt-commentbox-dismiss"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],Oc.prototype,"onYtCommentboxDismiss",null);_.V([_.Yx({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],Oc);
_.k(Oc,"ytd-comment-simplebox-renderer",function(){if(V85!==void 0)return V85;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return V85=b},{mode:1});var E5e;_.W2("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");
var Nf=function(){var b=_.g.apply(this,arguments)||this;b.addHoverEffect=_.r("swatcheroo_comments_hover_effect");b.useSmallAvatars=_.r("small_avatars_for_comments");b.scrollingEnabled=_.r("web_comment_threading_scroll_on_collapse");b.isSubThread=!1;b.threadHovered=!1;b.expanded=!1;b.removed=!1;b.addedReplies=[];b.actionMap=b.configureActionMap();b.toggleExpanded=function(){b.expanded=!b.expanded;!b.expanded&&b.scrollingEnabled&&_.F8(b.hostElement,"yt-scroll-to-comment-element",[b.commentElement])};
return b};
_.z(Nf,_.g);_.d=Nf.prototype;_.d.configureActionMap=function(){return _.r("web_delhi_comment_threads")?{"yt-create-comment-reply-action":"createCommentReplyAction","yt-remove-comment-action":"removeCommentAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction"}:{}};
_.d.createCommentReplyAction=function(b){b=_.c(b,ne5);if(b!=null&&b.contents){var h=b.replyToCommentId,y=b.parentCommentId,S,F=(S=this.commentViewModel)==null?void 0:S.commentId;(F===h||F===y&&!h)&&this.maybeAttachReply(b.contents)}};
_.d.maybeAttachReply=function(b){var h,y;(((h=this.commentEntity)==null?void 0:(y=h.properties)==null?void 0:y.replyLevel)||0)>=3?_.Sx(this.hostElement,"yt-pushed-create-comment-reply",b):this.attachReply(b)};
_.d.onPushedCreateCommentReply=function(b){var h,y;(((h=this.commentEntity)==null?void 0:(y=h.properties)==null?void 0:y.replyLevel)||0)>=3||(this.attachReply(b.detail),b.stopPropagation())};
_.d.attachReply=function(b){var h;((h=this.data)==null?0:h.replies)?(h=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+h+".continuationItemRenderer")?h===0?this.push("addedReplies",b):this.splice("data.replies.commentRepliesRenderer.subThreads",h,0,b):this.push("data.replies.commentRepliesRenderer.subThreads",b)):(this.set("data.replies",{commentRepliesRenderer:{subThreads:[b],viewReplies:{buttonRenderer:{text:_.aU(_.Mt("VIEW_REPLIES",
void 0,"View replies")),icon:{iconType:"EXPAND"}}}}}),this.expanded=!0)};
_.d.onAppendContinuationItemsActionFinished=function(){this.addedReplies.length&&(this.splice.apply(this,["data.replies.commentRepliesRenderer.subThreads",0,0].concat(_.f$(this.addedReplies))),this.set("addedReplies",[]))};
_.d.removeCommentAction=function(b){b=_.c(b,N$7);var h=b==null?void 0:b.commentId,y;h&&((y=this.commentViewModel)==null?void 0:y.commentId)===h&&this.maybeRemoveComment(b.actionResult)};
_.d.banAuthorAction=function(b){b=_.c(b,oeM);var h=b==null?void 0:b.commentId,y;h&&((y=this.commentViewModel)==null?void 0:y.commentId)===h&&this.maybeRemoveComment(b.actionResult)};
_.d.hideReportedCommentAction=function(b){b=_.c(b,CY8);var h=b==null?void 0:b.commentId,y;h&&((y=this.commentViewModel)==null?void 0:y.commentId)===h&&this.maybeRemoveComment(b.actionResult)};
_.d.maybeRemoveComment=function(b){b&&b.status==="STATUS_SUCCEEDED"&&(this.feedbackText=b.feedbackText||_.aU("Reply removed"),this.removed=!0)};
_.d.onTap=function(b){if(this.addHoverEffect&&!this.engagementPanel&&!_.mf(_.Qk(b)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var h;((h=window.getSelection())==null?0:h.toString().length)||_.Xb({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.d.attached=function(){var b=this;this.isSubThread&&(this.expanded=!0);var h;(h=this.commentThreadHitbox)==null||h.addEventListener("mouseover",function(){b.threadHovered=!0});
var y;(y=this.commentThreadHitbox)==null||y.addEventListener("mouseout",function(){b.threadHovered=!1});
var S;(S=this.commentThreadHitbox)==null||S.addEventListener("click",function(){b.maybeToggleExpanded()})};
_.d.onDataChanged=function(){var b=_.r("web_delhi_comment_threads")?"data.replies.commentRepliesRenderer.subThreads":"data.replies.commentRepliesRenderer.contents";this.get("data.replies.commentRepliesRenderer.teaserContents")&&!this.get(b)&&this.set(b,[{commentThreadRenderer:{commentViewModel:this.get("data.replies.commentRepliesRenderer.teaserContents")[0]}}])};
_.d.maybeToggleExpanded=function(){var b,h,y,S=(b=this.data)==null?void 0:(h=b.replies)==null?void 0:(y=h.commentRepliesRenderer)==null?void 0:y.subThreads,F;(S==null?void 0:S.length)===1&&((F=_.c(S[0],_.yp))==null?0:F.button)&&this.expanded||this.toggleExpanded()};
_.tm.Object.defineProperties(Nf.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var b;return _.c((b=this.data)==null?void 0:b.commentViewModel,Wbw)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var b,h,y;return _.r("web_delhi_comment_threads")&&!!((b=this.data)==null?0:(h=b.replies)==null?0:(y=h.commentRepliesRenderer)==null?0:y.subThreads)}}});
Nf.prototype.onDataChanged=Nf.prototype.onDataChanged;Nf.prototype.onTap=Nf.prototype.onTap;Nf.prototype.onAppendContinuationItemsActionFinished=Nf.prototype.onAppendContinuationItemsActionFinished;Nf.prototype.onPushedCreateCommentReply=Nf.prototype.onPushedCreateCommentReply;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Nf.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],Nf.prototype,"ytdReduxBehavior",void 0);
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],Nf.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Nf.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Nf.prototype,"addHoverEffect",void 0);_.V([_.C(),_.f("design:type",Object)],Nf.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Nf.prototype,"useSmallAvatars",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Nf.prototype,"scrollingEnabled",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Nf.prototype,"isSubThread",void 0);_.V([_.to(".thread-hitbox"),_.f("design:type",HTMLElement)],Nf.prototype,"commentThreadHitbox",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Nf.prototype,"threadHovered",void 0);_.V([_.to("#comment"),_.f("design:type",HTMLElement)],Nf.prototype,"commentElement",void 0);
_.V([_.C(),_.f("design:type",Object)],Nf.prototype,"expanded",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Nf.prototype,"removed",void 0);_.V([_.C(),_.f("design:type",Object)],Nf.prototype,"feedbackText",void 0);_.V([_.C(),_.f("design:type",Array)],Nf.prototype,"addedReplies",void 0);_.V([_.C({selector:fQn,selectorArgs:["commentViewModel.commentKey"]}),_.f("design:type",Object)],Nf.prototype,"commentEntity",void 0);
_.V([_.u3("yt-pushed-create-comment-reply"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],Nf.prototype,"onPushedCreateCommentReply",null);_.V([_.u3("yt-append-continuation-items-action-finished"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Nf.prototype,"onAppendContinuationItemsActionFinished",null);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],Nf.prototype,"commentViewModel",null);
_.V([_.W("data.replies.commentRepliesRenderer.subThreads"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Nf.prototype,"hasSubThreading",null);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],Nf.prototype,"engagementPanel",void 0);_.V([_.u3("tap"),_.u3("click"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],Nf.prototype,"onTap",null);
_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Nf.prototype,"onDataChanged",null);_.V([_.Yx({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],Nf);
_.k(Nf,"ytd-comment-thread-renderer",function(){if(E5e!==void 0)return E5e;var b=document.createElement("template");_.D(b,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="comment-container" class="style-scope ytd-comment-thread-renderer">\n  <div class="threadline style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"><div class="continuation style-scope ytd-comment-thread-renderer"></div></div>\n  <div class="removed-placeholder style-scope ytd-comment-thread-renderer" hidden="[[!removed]]">\n    <yt-icon icon="WARNING_FILLED" class="style-scope ytd-comment-thread-renderer"></yt-icon>\n    <yt-formatted-string text="[[feedbackText]]" class="style-scope ytd-comment-thread-renderer"></yt-formatted-string>\n  </div>\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" engagement-panel="[[engagementPanel]]" hidden="[[removed]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-view-model>\n</div>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer">\n  <template is="dom-if" if="[[data.replies]]" class="style-scope ytd-comment-thread-renderer">\n    <ytd-comment-replies-renderer added-replies="[[addedReplies]]" data="[[data.replies.commentRepliesRenderer]]" engagement-panel="[[engagementPanel]]" expanded="[[expanded]]" hovered="[[threadHovered]]" toggle-expanded="[[toggleExpanded]]" top-level-thread="[[!isSubThread]]" class="style-scope ytd-comment-thread-renderer">\n    </ytd-comment-replies-renderer>\n  </template>\n</div>\n<div class="thread-hitbox style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"></div>\n');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return E5e=b},{mode:_.Lt("kevlar_poly_si_batch_j025")?1:2});var iQW;var tf=function(){var b=_.g.apply(this,arguments)||this;b.compactHeader=_.r("web_watch_compact_comments_header");b.hidePanelButton=!1;b.isPostSchedulingEnabled=_.r("enable_post_scheduling");b.hasFinishedStamping=!1;b.JSC$16240_handleOpenPostCommentDialogActionAfterStamp=!1;b.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return b};
_.z(tf,_.g);_.d=tf.prototype;
_.d.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"}}}};
_.d.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.d.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$16240_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.d.onYtServiceRequestSent=function(b,h){if(!_.r("kevlar_command_handler")&&h.actions)for(b=0;b<h.actions.length;b++){var y=h.actions[b];_.c(y,kye)&&_.$x(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.c(y,kye))}};
_.d.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var b;if(this.getPrefilledBackstagePostDialog((b=this.data)==null?void 0:b.actions)){_.$x(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var h=_.$x(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;h&&_.Ob(this,function(){h.focus();h.openDialog&&h.openDialog()})}}else this.hasActionsChange=!0};
_.d.computeIsBackstage=function(b){return b};
_.d.onYtCommentboxDismiss=function(){_.$x(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.d.removePrefilledDialog=function(b){if(b==null?0:b.actions){for(var h=b.actions.length-1;h>=0;h--){var y=void 0;((y=_.c(b.actions[h],hG7))==null?0:y.dialog)&&delete b.actions[h]}this.set("data",void 0);this.set("data",b)}};
_.d.getPrefilledBackstagePostDialog=function(b){if(b)for(var h=0;h<b.length;h++){var y=b[h],S=void 0;if((S=_.c(y,hG7))==null?0:S.dialog)return _.c(y,hG7).dialog}return null};
_.d.computeBackstagePostDialog=function(b){return b&&(this.getPrefilledBackstagePostDialog(b.actions)||b.createRenderer)};
_.d.dataChanged=function(){if(this.data){var b=this.data.customEmojis,h=this.data.unicodeEmojisUrl;_.I$.clear();h&&_.gs5(_.I$,h);b&&_.I$.load(b)}};
_.d.handleSignalActionOpenPostCommentDialogAction=function(){var b=_.$x(this.hostElement).querySelector("ytd-comment-simplebox-renderer");b?b.openDialog():this.JSC$16240_handleOpenPostCommentDialogActionAfterStamp=!0};
_.d.onPostHeaderTap=function(){var b;((b=this.data)==null?0:b.postHeaderOnTap)&&this.ytComponentBehavior.resolveCommand(this.data.postHeaderOnTap)};
_.tm.Object.defineProperties(tf.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.r("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var b,h,y,S,F,a,P;return!this.hidePanelButton&&_.r("kevlar_watch_comments_panel_button")&&((P=_.c((b=this.data)==null?void 0:(h=b.sortMenu)==null?void 0:(y=h.sortFilterSubMenuRenderer)==null?void 0:(S=y.subMenuItems)==null?void 0:(F=S[0])==null?void 0:(a=F.serviceEndpoint)==null?void 0:a.commandMetadata,_.ZW))==null?void 0:P.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.Mt("MINIPLAYER_EXPAND_LABEL"),text:_.mk(_.Mt("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
tf.prototype.dataChanged=tf.prototype.dataChanged;tf.prototype.onYtCommentboxDismiss=tf.prototype.onYtCommentboxDismiss;tf.prototype.observePrefilledBackstagePostDialog=tf.prototype.observePrefilledBackstagePostDialog;tf.prototype.onYtServiceRequestSent=tf.prototype.onYtServiceRequestSent;tf.prototype.onStampFinished=tf.prototype.onStampFinished;_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],tf.prototype,"ytComponentBehavior",void 0);
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],tf.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],tf.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],tf.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],tf.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],tf.prototype,"compactHeader",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],tf.prototype,"engagementPanel",void 0);_.V([_.C(),_.f("design:type",Object)],tf.prototype,"hidePanelButton",void 0);_.V([_.C({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.f("design:type",Boolean)],tf.prototype,"isBackstage",void 0);_.V([_.C({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.f("design:type",Object)],tf.prototype,"backstagePostDialog",void 0);
_.V([_.C(),_.f("design:type",Object)],tf.prototype,"isPostSchedulingEnabled",void 0);_.V([_.C({reflectToAttribute:!0}),_.W("data","showCommentsPanelButton"),_.f("design:type",Object),_.f("design:paramtypes",[])],tf.prototype,"useSpaceBetween",null);_.V([_.C({reflectToAttribute:!0}),_.W("data","hidePanelButton"),_.f("design:type",Object),_.f("design:paramtypes",[])],tf.prototype,"showCommentsPanelButton",null);
_.V([_.W("data","showCommentsPanelButton"),_.f("design:type",Object),_.f("design:paramtypes",[])],tf.prototype,"commentsPanelButtonData",null);_.V([_.u3("yt-rendererstamper-finished"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],tf.prototype,"onStampFinished",null);_.V([_.u3("yt-service-request-sent"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,_.kE]),_.f("design:returntype")],tf.prototype,"onYtServiceRequestSent",null);
_.V([_.OB("data.actions"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],tf.prototype,"observePrefilledBackstagePostDialog",null);_.V([_.u3("yt-commentbox-dismiss"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],tf.prototype,"onYtCommentboxDismiss",null);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],tf.prototype,"dataChanged",null);
_.V([_.Yx({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],tf);
_.k(tf,"ytd-comments-header-renderer",function(){if(iQW!==void 0)return iQW;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return iQW=b},{mode:1});var fOW;var rm=function(){return _.g.apply(this,arguments)||this};
_.z(rm,_.g);_.V([_.C(),_.f("design:type",Object)],rm.prototype,"data",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],rm.prototype,"ytRendererBehavior",void 0);_.V([_.Yx({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],rm);
_.k(rm,"ytd-destination-button-renderer",function(){if(fOW!==void 0)return fOW;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return fOW=b},{mode:1});var wp8;var cu=function(){var b=_.g.apply(this,arguments)||this;b.isRichGrid=!1;b.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};return b};
_.z(cu,_.g);_.d=cu.prototype;_.d.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.d.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.d.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.d.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var b;if((b=this.data)==null||!b.isExpanded){b=this.hostElement.clientWidth;var h;if(b&&(h=this.data)!=null&&h.destinationButtons){h=Math.floor((b+4)/214);b=this.data.destinationButtons.length;var y=Math.ceil(b/h);this.fullyVisibleRows=b%h===1&&y===2?1:Math.min(y,2);this.isShowMoreVisible=this.fullyVisibleRows<y}}}};
_.d.updateRichGridDestinationButtonsVisibility=function(){var b,h;if(this.isRichGrid&&((b=this.data)==null||!b.isExpanded)&&(h=this.data)!=null&&h.destinationButtons){b=this.richGridItemsPerRow+1;h=this.data.destinationButtons.length;var y=Math.ceil(h/b);this.fullyVisibleRows=h%b===1&&y===2?1:Math.min(y,2);this.isShowMoreVisible=this.fullyVisibleRows<y}};
_.d.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
cu.prototype.updateRichGridDestinationButtonsVisibility=cu.prototype.updateRichGridDestinationButtonsVisibility;_.V([_.C(),_.f("design:type",Object)],cu.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Number)],cu.prototype,"fullyVisibleRows",void 0);_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],cu.prototype,"isShowMoreVisible",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],cu.prototype,"isRichGrid",void 0);
_.V([_.C({selector:_.e7,value:0}),_.f("design:type",Number)],cu.prototype,"richGridItemsPerRow",void 0);_.V([_.C(),_.f("design:type",Object)],cu.prototype,"gridStateActionMap",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],cu.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],cu.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],cu.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],cu.prototype,"ytdReduxBehavior",void 0);_.V([_.OB("data","richGridItemsPerRow"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],cu.prototype,"updateRichGridDestinationButtonsVisibility",null);_.V([_.Yx({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],cu);
_.k(cu,"ytd-destination-shelf-renderer",function(){if(wp8!==void 0)return wp8;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return wp8=b},{mode:1});var lOw;var Rl=function(){return _.g.apply(this,arguments)||this};
_.z(Rl,_.g);Rl.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"}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Rl.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Rl.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Rl.prototype,"data",void 0);_.V([_.Yx({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],Rl);
_.k(Rl,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(lOw!==void 0)return lOw;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return lOw=b},{mode:1});var q4G;var zZ=function(){var b=_.g.apply(this,arguments)||this;b.disableAnimation=!1;b.isSlimlineSurvey=!1;b.isSlimlineSurveyFollowUp=!1;b.isShortsStyle=!1;return b};
_.z(zZ,_.g);zZ.prototype.onTap=function(b){b.preventDefault();this.data&&_.Sx(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.tm.Object.defineProperties(zZ.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 b,h,y,S,F;return((b=this.data)==null?0:b.checked)?(h=this.data)==null?void 0:(y=h.onStateIcon)==null?void 0:y.iconType:(S=this.data)==null?void 0:(F=S.defaultStateIcon)==null?void 0:F.iconType}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],zZ.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],zZ.prototype,"ytComponentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],zZ.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],zZ.prototype,"disableAnimation",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],zZ.prototype,"isSlimlineSurvey",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],zZ.prototype,"isSlimlineSurveyFollowUp",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],zZ.prototype,"isShortsStyle",void 0);_.V([_.W("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],zZ.prototype,"isAnimatedIcon",null);
_.V([_.W("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.f("design:type",Number),_.f("design:paramtypes",[])],zZ.prototype,"iconSize",null);_.V([_.W("isShortsStyle"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],zZ.prototype,"isDarkTheme",null);_.V([_.W("data.checked"),_.f("design:type",Object),_.f("design:paramtypes",[])],zZ.prototype,"icon",null);_.V([_.Yx({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],zZ);
_.k(zZ,"ytd-rating-survey-option-renderer",function(){if(q4G!==void 0)return q4G;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return q4G=b},{mode:2});var xV8;var D3=function(){var b=_.g.apply(this,arguments)||this;b.firstResponseText=null;b.lastResponseText=null;b.selectedNonStarOption=null;b.hideOptions=!1;b.hideUndoButton=!0;b.disableAnimation=!1;b.showResponseRangeText=!1;b.selectedRatingIndex=-1;b.isSlimlineSurvey=!1;b.isSlimlineSurveyFollowUp=!1;b.isShortsStyle=!1;b.slimlineSurveyRatingSelectedIndex=-1;return b};
_.z(D3,_.g);_.d=D3.prototype;_.d.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.d.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.d.onOptionChange=function(b,h){var y=this;b=h.onStateIcon&&h.defaultStateIcon&&h.onStateIcon.iconType===h.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(P,K){P.responseText===h.responseText?y.isSlimlineSurvey?(y.selectedRatingIndex=K,y.ytdReduxBehavior.dispatch(hD8(K))):(y.setSurveyOptionValue(K,!0,"checked"),y.setSurveyOptionValue(K,!0,"selected")):(y.setSurveyOptionValue(K,!1,"checked"),y.setSurveyOptionValue(K,
!1,"selected"))});
else if(b)this.selectedNonStarOption=h,this.hideOptions=!0;else{var S=this.ytRendererBehavior.getSimpleString(h.responseText),F=!0;this.getOptionRenderers().forEach(function(P,K){y.setSurveyOptionValue(K,F,"checked");y.setSurveyOptionValue(K,!1,"selected");y.ytRendererBehavior.getSimpleString(P.responseText)===S&&(F=!1,y.setSurveyOptionValue(K,!0,"selected"))})}b=h.responseEndpoint;
var a;h.followUpCommand&&(a=_.c(h.followUpCommand,wI8));this.isSlimlineSurvey?(this.resetComponent(),_.F8(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.F8(this.hostElement,"ytd-inline-survey-rating-select-action",[b,a])};
_.d.showSelectedOption=function(){var b=this;_.xP.addJob(function(){var h=b.getOptionRenderers()[b.slimlineSurveyRatingSelectedIndex];b.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),h)},8,100)};
_.d.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(b){var h;return(h=_.c(b,qRG))!=null?h:{}}):[]};
_.d.onUndoClick=function(){this.resetComponent();_.F8(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.d.setSurveyOptionValue=function(b,h,y){this.notifyPath("data.ratings."+b+".ratingSurveyOptionRenderer."+y);this.set("data.ratings."+b+".ratingSurveyOptionRenderer."+y,h)};
_.d.resetComponent=function(){var b=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var h=this.getOptionRenderers(),y,S;this.firstResponseText=(S=(y=h[0])==null?void 0:y.responseText)!=null?S:null;var F,a;this.lastResponseText=(a=(F=h[h.length-1])==null?void 0:F.responseText)!=null?a:null;h.forEach(function(P,K){b.setSurveyOptionValue(K,!1,"checked");b.setSurveyOptionValue(K,!1,"selected")})};
_.tm.Object.defineProperties(D3.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
D3.prototype.onOptionChange=D3.prototype.onOptionChange;D3.prototype.dataChanged=D3.prototype.dataChanged;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],D3.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],D3.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],D3.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],D3.prototype,"data",void 0);
_.V([_.C(),_.f("design:type",Object)],D3.prototype,"firstResponseText",void 0);_.V([_.C(),_.f("design:type",Object)],D3.prototype,"lastResponseText",void 0);_.V([_.C(),_.f("design:type",Object)],D3.prototype,"selectedNonStarOption",void 0);_.V([_.C(),_.f("design:type",Object)],D3.prototype,"hideOptions",void 0);_.V([_.C(),_.f("design:type",Object)],D3.prototype,"hideUndoButton",void 0);_.V([_.C(),_.f("design:type",Object)],D3.prototype,"disableAnimation",void 0);
_.V([_.C(),_.f("design:type",Object)],D3.prototype,"showResponseRangeText",void 0);_.V([_.C(),_.f("design:type",Object)],D3.prototype,"selectedRatingIndex",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],D3.prototype,"isSlimlineSurvey",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],D3.prototype,"isSlimlineSurveyFollowUp",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],D3.prototype,"isShortsStyle",void 0);_.V([_.C({selector:function(b){return b.ui.slimlineSurveyRatingSelectedIndex}}),
_.f("design:type",Object)],D3.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.V([_.W("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],D3.prototype,"isSingleSelect",null);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],D3.prototype,"dataChanged",null);
_.V([_.u3("ytd-rating-survey-option-changed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,Object]),_.f("design:returntype")],D3.prototype,"onOptionChange",null);_.V([_.Yx({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],D3);
_.k(D3,"ytd-rating-survey-renderer",function(){if(xV8!==void 0)return xV8;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return xV8=b},{mode:1});var QgP;var mV5;var v5P;var $7y=(HV.FIRSTDAYOFWEEK+1)%7,b5M=function(b,h,y,S){var F="";if(S.selection&&F7y(S.selection))MD(b,S.selection)&&(F+=" selected");else if(S.selection&&au5(S.selection)){var a=S.selection.selectionState||"START_DATE";MD(b,S.selection.start)&&(F+=" period-start ",a==="START_DATE"&&(F+="selected"));MD(b,S.selection.end)&&(F+=" period-end ",a==="END_DATE"&&(F+="selected"));nw(b,S.selection.start)||nw(S.selection.end,b)||(F+=" highlighted")}if(nw(h,S.start)||nw(S.end,h))F+=" disabled";S.circleToday&&
MD(h,y)&&(F+=" today");return F};var Il=function(){return _.g.apply(this,arguments)||this};
_.z(Il,_.g);_.d=Il.prototype;_.d.attached=function(){var b=this;_.Ob(this,function(){b.JSC$16274_calendarMain.scrollHeight>0&&(b.calendarConfig.selection?b.scrollToDate(d7f(b.calendarConfig.selection)):b.scrollToDate(b.calendarConfig.end))})};
_.d.updateSelection=function(b){b=L7Y(Object.assign({},this.calendarConfig,{selection:b}),b5M);this.splice.apply(this,["renderData.months",0,b.length].concat(_.f$(b)))};
_.d.scrollToDate=function(b){this.renderData&&(b=PO4(b,this.renderData),b!==void 0&&this.JSC$16274_calendarMain.scrollToIndex(b))};
_.d.scrollToNextMonth=function(){this.JSC$16274_calendarMain.scrollToIndex(this.JSC$16274_calendarMain.firstVisibleIndex+1)};
_.d.scrollToPrevMonth=function(){this.JSC$16274_calendarMain.firstVisibleIndex===0&&this.JSC$16274_calendarMain.scrollTo(0,0);this.JSC$16274_calendarMain.scrollToIndex(this.JSC$16274_calendarMain.firstVisibleIndex-1)};
_.d.handleDayClick=function(b){_.F8(this.hostElement,"ytd-calendar-date-clicked",[b.model.day.date])};
_.d.handleDayMouseDown=function(b){b.preventDefault();_.F8(this.hostElement,"ytd-calendar-date-mousedown",[b.model.day.date])};
_.d.handleDayMouseUp=function(b){_.F8(this.hostElement,"ytd-calendar-date-mouseup",[b.model.day.date])};
_.d.handleDayMouseEnter=function(b){b.preventDefault();_.F8(this.hostElement,"ytd-calendar-date-mouseenter",[b.model.day.date])};
_.d.handleDayMouseLeave=function(b){_.F8(this.hostElement,"ytd-calendar-date-mouseleave",[b.model.day.date])};
_.tm.Object.defineProperties(Il.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var b=this.calendarConfig,h=b5M;h=h===void 0?b5M:h;for(var y=[],S=0;S<7;S++)y.push(HV.NARROWWEEKDAYS[(S+$7y)%7]);return{months:L7Y(b,h),daysOfWeekLabel:y}}}});
_.V([_.C(),_.f("design:type",Object)],Il.prototype,"calendarConfig",void 0);_.V([_.to("#calendar-main"),_.f("design:type",Object)],Il.prototype,"JSC$16274_calendarMain",void 0);_.V([_.W("calendarConfig"),_.f("design:type",Object),_.f("design:paramtypes",[])],Il.prototype,"renderData",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],Il);
_.k(Il,"ytd-scrollable-calendar",function(){if(v5P!==void 0)return v5P;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return v5P=b},{mode:2});var hAP;var y3G;var Bu=function(){var b=_.g.apply(this,arguments)||this;b.hideCharCounter=!1;b.hideLabel=!1;b.noLabelFloat=!1;b.autoValidate=!0;b.invalid=!1;b.disabled=!1;b.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return b};
_.z(Bu,_.g);_.d=Bu.prototype;_.d.reset=function(b){this.value=b&&this.data?this.data.value=b:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.d.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.d.focusTextInput=function(){this.input.focus()};
_.d.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()};
_.d.valueChanged=function(){var b,h;if(((b=this.data)==null?0:b.value)||((h=this.data)==null?void 0:h.value)==="")this.value=this.data.value;else{var y;((y=this.data)==null?void 0:y.value)!==void 0||this.value||(this.value="")}};
_.d.computeLabel=function(b,h){return h?"":_.vi(b)};
_.d.computeAriaLabel=function(b,h){return h?_.vi(b):""};
_.d.computeErrorMessage=function(b,h,y,S){!b&&h?b=y||this.strings.REQUIRED_LABEL:(b=_.vi(S),b=_.PF(b,"&")?"document"in _.S5?b$N(b):hha(b):b);return b};
_.d.computeType=function(b){return b==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.d.onTextValueChanged=function(b){this.value=b.detail.value;var h;(h=this.onValueChanged)==null||h.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.d.handleUpdateTextInputFormFieldRendererCommand=function(b){(b=_.c(b,MQ7))&&this.data&&this.data.id===b.id&&(b.invalid!==void 0&&(this.invalid=b.invalid),b.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",b.invalidValueErrorMessage))};
_.d.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ut("value-changed",this.value))};
_.d.updateInvalidFromBinding=function(b){this.invalid=b.detail.value};
_.tm.Object.defineProperties(Bu.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var b;return!((b=this.data)==null||!b.isMultiline)}}});
Bu.prototype.valueChangedForBinding=Bu.prototype.valueChangedForBinding;Bu.prototype.valueChanged=Bu.prototype.valueChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Bu.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],Bu.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],Bu.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],Bu.prototype,"data",void 0);_.V([_.C(),_.f("design:type",String)],Bu.prototype,"value",void 0);_.V([_.C(),_.f("design:type",String)],Bu.prototype,"pattern",void 0);_.V([_.C(),_.f("design:type",String)],Bu.prototype,"errorMessage",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",String)],Bu.prototype,"componentStyle",void 0);_.V([_.C(),_.f("design:type",Object)],Bu.prototype,"hideCharCounter",void 0);
_.V([_.C(),_.f("design:type",Object)],Bu.prototype,"hideLabel",void 0);_.V([_.C(),_.f("design:type",Object)],Bu.prototype,"noLabelFloat",void 0);_.V([_.C(),_.f("design:type",Function)],Bu.prototype,"onValueChanged",void 0);_.V([_.C(),_.f("design:type",Boolean)],Bu.prototype,"isMultilineOverride",void 0);_.V([_.C(),_.f("design:type",Object)],Bu.prototype,"autoValidate",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Bu.prototype,"invalid",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Bu.prototype,"disabled",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],Bu.prototype,"enableOverlayTheme",void 0);_.V([_.C({value:{REQUIRED_LABEL:_.Mt("REQUIRED_LABEL",void 0,"Required")}}),_.f("design:type",Object)],Bu.prototype,"strings",void 0);_.V([_.to("#input"),_.f("design:type",Object)],Bu.prototype,"input",void 0);
_.V([_.W("data","isMultilineOverride"),_.f("design:type",Object),_.f("design:paramtypes",[])],Bu.prototype,"isMultiline",null);_.V([_.zj("data.value"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Bu.prototype,"valueChanged",null);_.V([_.OB("value"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Bu.prototype,"valueChangedForBinding",null);_.V([_.sB({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],Bu);
_.k(Bu,"yt-text-input-form-field-renderer",function(){if(y3G===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;hAP===void 0&&(hAP=document.createElement("template"));var S=hAP;y.call(h,S.content.cloneNode(!0),b.content.firstChild);y3G=b}b=y3G;return b},{mode:2});var Wu=function(){var b=_.g.apply(this,arguments)||this;b.data=void 0;b.selectionState="START_DATE";b.isStartDateInvalid=!1;b.isEndDateInvalid=!1;b.autoapply=!1;b.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 b};
_.z(Wu,_.g);_.d=Wu.prototype;_.d.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"}}}}};
_.d.focus=function(){this.startDateInput.focus()};
_.d.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:Xs(this.data.selection.start),end:Xs(this.data.selection.end)})};
_.d.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.d.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.m5(this.selectionState)}};
_.d.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.d.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.d.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.d.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var b=this.calendar.calendarConfig,h=b.end;b=ZBN({start:b.start,end:this.endDate||h},this.startDateInput.value||"");this.isStartDateInvalid=!b.isValid;b.isValid&&(b=b.value,this.selection=this.endDate?{start:b,end:this.endDate}:b,this.calendar.scrollToDate(b));this.updateInvalidState()}};
_.d.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var b=this.calendar.calendarConfig,h=b.start;b=ZBN({start:this.startDate||h,end:b.end},this.endDateInput.value||"");this.isEndDateInvalid=!b.isValid;b.isValid&&(b=b.value,this.selection={start:this.startDate,end:b},this.calendar.scrollToDate(b));this.updateInvalidState()}};
_.d.handleCalendarDateClicked=function(b){var h=this.selection&&d7f(this.selection),y=this.selection&&j1Y(this.selection);h&&!nw(b,h)&&this.selectionState==="END_DATE"?(this.selection={start:h,end:b},this.selectionState="START_DATE"):(y&&!nw(y,b)?this.selection={start:b,end:y}:this.selection=b,this.selectionState="END_DATE")};
_.d.handleCalendarDateMouseDown=function(b){this.selection&&!F7y(this.selection)&&(this.dragPivot=MD(b,this.selection.start)?this.selection.end:MD(b,this.selection.end)?this.selection.start:b)};
_.d.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.d.handleCalendarDateMouseEnter=function(b){this.dragPivot&&(this.selection={start:function(h,y){return nw(h,y)?h:y}(this.dragPivot,b),
end:function(h,y){return nw(h,y)?y:h}(this.dragPivot,b)},this.dragPivot||(this.selectionState="START_DATE"))};
_.d.handleCalendarDateMouseLeave=function(){};
_.d.handleCalendarSubmitDateRange=function(){this.selection&&!F7y(this.selection)&&_.F8(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.d.updateInvalidState=function(){var b=function(h,y){y?h.setAttribute("invalid",""):h.removeAttribute("invalid")};
b(this.startDateInput,this.isStartDateInvalid);b(this.endDateInput,this.isEndDateInvalid)};
_.d.updateDateStrings=function(){this.selection&&(F7y(this.selection)?Sxy(this.selection):(Sxy(this.selection.start),Sxy(this.selection.end)))};
_.d.updateCalendarSelection=function(b){this.calendar.updateSelection(Object.assign({},b,{selectionState:this.selectionState}))};
_.d.updateIsStartDateInvalidFromBinding=function(b){this.isStartDateInvalid=b.detail.value};
_.d.updateIsEndDateInvalidFromBinding=function(b){this.isEndDateInvalid=b.detail.value};
_.d.updateStartDateStringFromBinding=function(){};
_.d.updateEndDateStringFromBinding=function(){};
_.tm.Object.defineProperties(Wu.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:Xs(this.data.dateRangeStart),end:Xs(this.data.dateRangeEnd),selection:{start:Xs(this.data.selection.start),end:Xs(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var b;return(b=this.data)==null?void 0:b.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&d7f(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&j1Y(this.selection)}}});
Wu.prototype.resetTextboxes=Wu.prototype.resetTextboxes;Wu.prototype.observeSelection=Wu.prototype.observeSelection;Wu.prototype.dataChanged=Wu.prototype.dataChanged;_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],Wu.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Wu.prototype,"ytRendererstamperBehavior",void 0);_.V([_.to("#calendar"),_.f("design:type",Object)],Wu.prototype,"calendar",void 0);
_.V([_.to("#start-date"),_.f("design:type",Object)],Wu.prototype,"startDateInput",void 0);_.V([_.to("#end-date"),_.f("design:type",Object)],Wu.prototype,"endDateInput",void 0);_.V([_.C(),_.f("design:type",Object)],Wu.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],Wu.prototype,"selection",void 0);_.V([_.C(),_.f("design:type",String)],Wu.prototype,"selectionState",void 0);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],Wu.prototype,"calendarConfig",null);
_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],Wu.prototype,"errorMessage",null);_.V([_.W("selection"),_.f("design:type",Object),_.f("design:paramtypes",[])],Wu.prototype,"startDate",null);_.V([_.W("selection"),_.f("design:type",Object),_.f("design:paramtypes",[])],Wu.prototype,"endDate",null);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Wu.prototype,"dataChanged",null);
_.V([_.OB("selection","selectionState"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Wu.prototype,"observeSelection",null);_.V([_.OB("selectionState"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Wu.prototype,"resetTextboxes",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],Wu);
_.k(Wu,"ytd-date-period-picker-renderer",function(){if(mV5!==void 0)return mV5;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return mV5=b},{mode:1});var Af=function(){var b=_.g.apply(this,arguments)||this;var h={};b.actionMap=(h["ytd-date-period-picker-apply"]="handleDateRangeUpdated",h);return b};
_.z(Af,_.g);Af.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
Af.prototype.handleDateRangeUpdated=function(){};
_.V([_.C(),_.f("design:type",Object)],Af.prototype,"data",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],Af.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Af.prototype,"rendererstamperBehavior",void 0);_.V([_.Yx({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],Af);
_.k(Af,"ytd-report-history-section-header-renderer",function(){if(QgP!==void 0)return QgP;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return QgP=b},{mode:1});var SOW;var FSW;var agW;var Uc=function(){return _.g.apply(this,arguments)||this};
_.z(Uc,_.g);_.tm.Object.defineProperties(Uc.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var b,h;return((b=this.data)==null?0:(h=b.icon)==null?0:h.iconType)?_.o_(this.data.icon.iconType):""}}});
_.V([_.C(),_.f("design:type",Object)],Uc.prototype,"data",void 0);_.V([_.W("data"),_.f("design:type",String),_.f("design:paramtypes",[])],Uc.prototype,"icon",null);_.V([_.Yx({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],Uc);
_.k(Uc,"ytd-report-history-table-text-cell-renderer",function(){if(agW!==void 0)return agW;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return agW=b},{mode:1});var pN=function(){return _.g.apply(this,arguments)||this};
_.z(pN,_.g);pN.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],pN.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],pN.prototype,"data",void 0);_.V([_.Yx({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],pN);
_.k(pN,"ytd-report-history-table-reason-cell-renderer",function(){if(FSW!==void 0)return FSW;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return FSW=b},{mode:1});var Jf=function(){return _.g.apply(this,arguments)||this};
_.z(Jf,_.g);Jf.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"}}}};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Jf.prototype,"rendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Jf.prototype,"data",void 0);_.V([_.Yx({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],Jf);
_.k(Jf,"ytd-report-history-table-cell-renderer",function(){if(SOW!==void 0)return SOW;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);
return SOW=b},{mode:1});var dXw;var el=function(){var b=_.g.apply(this,arguments)||this;b.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 b};
_.z(el,_.g);el.prototype.onDataChanged=function(){var b;if((b=this.data)==null?0:b.style)this.componentStyle=this.getStyleName(this.data.style)};
el.prototype.getCellForColumn=function(b){return this.cells.find(function(h){var y;return((y=_.c(h==null?void 0:h.cell,mBa)||_.c(h==null?void 0:h.cell,QBG))==null?void 0:y.columnId)===b.type})};
el.prototype.getClassForColumn=function(b){switch(b){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
el.prototype.getStyleName=function(b){switch(b){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.tm.Object.defineProperties(el.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var b;return(((b=this.data)==null?void 0:b.cells)||[]).map(function(h){return _.c(h,xBa)})}}});
el.prototype.onDataChanged=el.prototype.onDataChanged;_.V([_.C(),_.f("design:type",Object)],el.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Array)],el.prototype,"columnRenderData",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",String)],el.prototype,"componentStyle",void 0);_.V([_.W("data"),_.f("design:type",Array),_.f("design:paramtypes",[])],el.prototype,"cells",null);
_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],el.prototype,"onDataChanged",null);_.V([_.Yx({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],el);
_.k(el,"ytd-report-history-table-row-renderer",function(){if(dXw!==void 0)return dXw;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return dXw=b},{mode:1});var jf7;var $X8;var o4M={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},MTf={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var CN=function(){return _.g.apply(this,arguments)||this};
_.z(CN,_.g);CN.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"}}}}}};
CN.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.tm.Object.defineProperties(CN.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.data)==null?0:b.columns)?OB8(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return HBj(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var b=this.tableSpec,h=o4M;h=h===void 0?MTf:h;h=uTY(b.columnDimensions,b.columnsToShow||[],h);b=0;h=_.L(h);for(var y=h.next();!y.done;y=h.next())y=y.value,b+=y.minWidth+y.paddingLeft+y.paddingRight;return b}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.V([_.B(_.p1),_.f("design:type",Object)],CN.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],CN.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],CN.prototype,"data",void 0);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],CN.prototype,"tableSpec",null);_.V([_.W("tableSpec"),_.f("design:type",Array),_.f("design:paramtypes",[])],CN.prototype,"columnRenderData",null);
_.V([_.W("tableSpec"),_.f("design:type",Number),_.f("design:paramtypes",[])],CN.prototype,"totalMinWidth",null);_.V([_.W("totalMinWidth"),_.f("design:type",String),_.f("design:paramtypes",[])],CN.prototype,"tableWidthStyle",null);_.V([_.Yx({is:"ytd-table-renderer",disableElementRegistration:!0})],CN);
_.k(CN,"ytd-table-renderer",function(){if($X8!==void 0)return $X8;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return $X8=b},{mode:1});var gm=function(){return _.g.apply(this,arguments)||this};
_.z(gm,_.g);gm.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}}}}}};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],gm.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],gm.prototype,"data",void 0);_.V([_.Yx({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],gm);
_.k(gm,"ytd-report-reason-history-modal-renderer",function(){if(jf7!==void 0)return jf7;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return jf7=b},{mode:1});var LS8;var Pvw;var KS8;var sc=function(){return _.g.apply(this,arguments)||this};
_.z(sc,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],sc.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],sc.prototype,"data",void 0);_.V([_.Yx({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],sc);
_.k(sc,"ytd-profile-column-stats-entry-renderer",function(){if(KS8!==void 0)return KS8;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return KS8=b},{mode:1});var Z5N;var Yl=function(){return _.g.apply(this,arguments)||this};
_.z(Yl,_.g);Yl.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Yl.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Yl.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Yl.prototype,"data",void 0);_.V([_.Yx({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],Yl);
_.k(Yl,"ytd-profile-column-stats-renderer",function(){if(Z5N!==void 0)return Z5N;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return Z5N=b},{mode:1});var onG;var TZ=function(){return _.g.apply(this,arguments)||this};
_.z(TZ,_.g);_.tm.Object.defineProperties(TZ.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var b;if((b=this.data)==null||!b.useThumbnailSize)return 80;var h,y;b=(h=this.data)==null?void 0:(y=h.thumbnail)==null?void 0:y.thumbnails;var S;return b&&((S=b[0])==null?void 0:S.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var b;if((b=this.data)==null||!b.useThumbnailSize)return 80;var h,y;b=(h=this.data)==null?void 0:(y=h.thumbnail)==null?void 0:y.thumbnails;var S;return b&&((S=b[0])==null?void 0:S.height)||80}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],TZ.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],TZ.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",String)],TZ.prototype,"componentStyle",void 0);_.V([_.W("data.useThumbnailSize"),_.f("design:type",Object),_.f("design:paramtypes",[])],TZ.prototype,"thumbnailWidth",null);
_.V([_.W("data.useThumbnailSize"),_.f("design:type",Object),_.f("design:paramtypes",[])],TZ.prototype,"thumbnailHeight",null);_.V([_.Yx({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],TZ);
_.k(TZ,"ytd-profile-column-user-info-renderer",function(){if(onG!==void 0)return onG;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return onG=b},{mode:1});var GZ=function(){return _.g.apply(this,arguments)||this};
_.z(GZ,_.g);GZ.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]]"}}}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],GZ.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],GZ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],GZ.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",String)],GZ.prototype,"componentStyle",void 0);_.V([_.Yx({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],GZ);
_.k(GZ,"ytd-profile-column-renderer",function(){if(Pvw!==void 0)return Pvw;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return Pvw=b},{mode:1});var kl=function(){var b=_.g.apply(this,arguments)||this;b.componentStyle="NON_CENTERED_PROFILE";return b};
_.z(kl,_.g);kl.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
kl.prototype.getIcon=function(b){return b?"settings:"+b.toLowerCase():null};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],kl.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],kl.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],kl.prototype,"data",void 0);_.V([_.Yx({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],kl);
_.k(kl,"ytd-page-introduction-renderer",function(){if(LS8!==void 0)return LS8;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return LS8=b},{mode:1});var Mow;var Vv=function(){return _.g.apply(this,arguments)||this};
_.z(Vv,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Vv.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Vv.prototype,"data",void 0);_.V([_.Yx({is:"ytd-report-description-renderer",disableElementRegistration:!0})],Vv);
_.k(Vv,"ytd-report-description-renderer",function(){if(Mow!==void 0)return Mow;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return Mow=b},{mode:1});var nn8;var X6w;var Ec=function(){return _.g.apply(this,arguments)||this};
_.z(Ec,_.g);Ec.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Ec.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Ec.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Ec.prototype,"data",void 0);_.V([_.Yx({is:"ytd-video-report-renderer",disableElementRegistration:!0})],Ec);
_.k(Ec,"ytd-video-report-renderer",function(){if(X6w!==void 0)return X6w;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return X6w=b},{mode:1});var H5o;_.W2("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.W2("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var iy=function(){return _.g.apply(this,arguments)||this};
_.z(iy,_.g);iy.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]]"}}}}}};
iy.prototype.computeMessageStyle=function(b){return b};
iy.prototype.computeButtonOverride=function(b){var h;if((b==null?0:(h=b.style)==null?0:h.value)&&b.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],iy.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],iy.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],iy.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],iy.prototype,"shelf",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],iy.prototype,"panel",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.f("design:type",Boolean)],iy.prototype,"componentStyle",void 0);_.V([_.C({computed:"computeButtonOverride(data)"}),_.f("design:type",Object)],iy.prototype,"buttonOverride",void 0);_.V([_.Yx({is:"ytd-message-renderer",disableElementRegistration:!0})],iy);
_.k(iy,"ytd-message-renderer",function(){if(H5o!==void 0)return H5o;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return H5o=b},{mode:1});var fN=function(){return _.g.apply(this,arguments)||this};
_.z(fN,_.g);fN.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"}}}};
fN.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
fN.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.tm.Object.defineProperties(fN.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var b,h;return!!(((b=this.data)==null?0:b.header)&&((h=this.data)==null?0:h.table))}}});
fN.prototype.onRequestError=fN.prototype.onRequestError;_.V([_.B(_.p1),_.f("design:type",Object)],fN.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],fN.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],fN.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],fN.prototype,"data",void 0);
_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],fN.prototype,"isUnifiedReportHistory",null);_.V([_.u3("yt-service-request-error"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],fN.prototype,"onRequestError",null);_.V([_.Yx({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],fN);
_.k(fN,"ytd-report-history-section-renderer",function(){if(nn8!==void 0)return nn8;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return nn8=b},{mode:1});var u65;var wm=function(){var b=_.g.apply(this,arguments)||this;b.answerExpanded=!1;return b};
_.z(wm,_.g);wm.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],wm.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],wm.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],wm.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],wm.prototype,"answerExpanded",void 0);_.V([_.Yx({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],wm);
_.k(wm,"ytd-handles-claiming-faq-renderer",function(){if(u65!==void 0)return u65;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return u65=b},{mode:1});var O5M;var N8b=function(){return _.g.apply(this,arguments)||this};
_.z(N8b,_.g);_.V([_.C(),_.f("design:type",Object)],N8b.prototype,"data",void 0);_.V([_.Yx({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],N8b);
_.k(N8b,"ytd-handles-claiming-faq-section-renderer",function(){if(O5M!==void 0)return O5M;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return O5M=b},{mode:1});var tob;var ly=function(){var b=_.g.apply(this,arguments)||this;b.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";b.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";b.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";b.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";b.leftSquiggly=b.leftSquigglyLight;b.rightSquiggly=b.rightSquigglyLight;
b.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};b.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return b};
_.z(ly,_.g);_.d=ly.prototype;_.d.updateLeftSquigglyStyle=function(){_.nZ(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.d.updateRightSquigglyStyle=function(){_.nZ(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.d.ready=function(){var b=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(b)};
_.d.onDarkModeToggledAction=function(b){b!==this.isDarkTheme&&(this.set("isDarkTheme",b),b?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.d.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
ly.prototype.updateRightSquigglyStyle=ly.prototype.updateRightSquigglyStyle;ly.prototype.updateLeftSquigglyStyle=ly.prototype.updateLeftSquigglyStyle;_.V([_.C(),_.f("design:type",Object)],ly.prototype,"data",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],ly.prototype,"isDarkTheme",void 0);_.V([_.C(),_.f("design:type",String)],ly.prototype,"leftSquiggly",void 0);_.V([_.C(),_.f("design:type",String)],ly.prototype,"rightSquiggly",void 0);
_.V([_.OB("leftSquiggly"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],ly.prototype,"updateLeftSquigglyStyle",null);_.V([_.OB("rightSquiggly"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],ly.prototype,"updateRightSquigglyStyle",null);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],ly.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],ly.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],ly.prototype,"ytActionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],ly.prototype,"actionButtonOverride",void 0);_.V([_.Yx({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],ly);
_.k(ly,"ytd-handles-claiming-header-renderer",function(){if(tob!==void 0)return tob;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return tob=b},{mode:1});var r3b;var qf=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};b.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";b.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";b.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";b.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
b.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";b.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";b.image0SquigglyBackground=b.image0LightSquigglyBackground;b.image1SquigglyBackground=b.image1LightSquigglyBackground;b.image3SquigglyBackground=b.image3LightSquigglyBackground;return b};
_.z(qf,_.g);_.d=qf.prototype;_.d.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.d.onDataChanged=function(){this.updateTitleAndImages()};
_.d.onThemeChanged=function(){this.updateTitleAndImages()};
_.d.onDarkModeToggledAction=function(b){b!==this.isDarkTheme&&(this.isDarkTheme=b)};
_.d.updateImage0SquigglyBackground=function(){_.nZ(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.d.updateImage1SquigglyBackground=function(){_.nZ(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.d.updateImage3SquigglyBackground=function(){_.nZ(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.d.updateTitleAndImages=function(){var b,h;((b=this.data)==null?void 0:(h=b.titleImages)==null?void 0:h.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))};
qf.prototype.updateImage3SquigglyBackground=qf.prototype.updateImage3SquigglyBackground;qf.prototype.updateImage1SquigglyBackground=qf.prototype.updateImage1SquigglyBackground;qf.prototype.updateImage0SquigglyBackground=qf.prototype.updateImage0SquigglyBackground;qf.prototype.onThemeChanged=qf.prototype.onThemeChanged;qf.prototype.onDataChanged=qf.prototype.onDataChanged;_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],qf.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],qf.prototype,"isDarkTheme",void 0);_.V([_.C(),_.f("design:type",Object)],qf.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],qf.prototype,"title0",void 0);_.V([_.C(),_.f("design:type",Object)],qf.prototype,"title1",void 0);_.V([_.C(),_.f("design:type",Object)],qf.prototype,"title2",void 0);_.V([_.C(),_.f("design:type",Object)],qf.prototype,"title3",void 0);
_.V([_.C(),_.f("design:type",Object)],qf.prototype,"title4",void 0);_.V([_.C(),_.f("design:type",Object)],qf.prototype,"image0",void 0);_.V([_.C(),_.f("design:type",Object)],qf.prototype,"image1",void 0);_.V([_.C(),_.f("design:type",Object)],qf.prototype,"image2",void 0);_.V([_.C(),_.f("design:type",Object)],qf.prototype,"image3",void 0);_.V([_.C(),_.f("design:type",Object)],qf.prototype,"image4",void 0);_.V([_.C(),_.f("design:type",String)],qf.prototype,"image0SquigglyBackground",void 0);
_.V([_.C(),_.f("design:type",String)],qf.prototype,"image1SquigglyBackground",void 0);_.V([_.C(),_.f("design:type",String)],qf.prototype,"image3SquigglyBackground",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],qf.prototype,"onDataChanged",null);_.V([_.OB("isDarkTheme"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],qf.prototype,"onThemeChanged",null);
_.V([_.OB("image0SquigglyBackground"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],qf.prototype,"updateImage0SquigglyBackground",null);_.V([_.OB("image1SquigglyBackground"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],qf.prototype,"updateImage1SquigglyBackground",null);
_.V([_.OB("image3SquigglyBackground"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],qf.prototype,"updateImage3SquigglyBackground",null);_.V([_.Yx({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],qf);
_.k(qf,"ytd-handles-claiming-title-images-section-renderer",function(){if(r3b!==void 0)return r3b;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return r3b=b},{mode:1});var c3a;var xl=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return b};
_.z(xl,_.g);xl.prototype.ready=function(){var b=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(b)};
xl.prototype.onDarkModeToggledAction=function(b){b!==this.isDarkTheme&&this.set("isDarkTheme",b)};
xl.prototype.onCopyButtonClick=function(){var b=this,h,y,S;return _.Z(function(F){return(h=b.data)!=null&&h.primaryChannelUrl?F.yield(navigator.clipboard.writeText(((y=b.data)==null?0:y.encodedChannelUrl)?b.data.encodedChannelUrl:"https://"+_.vi((S=b.data)==null?void 0:S.primaryChannelUrl)),0):F.jumpTo(0)})};
_.V([_.C(),_.f("design:type",Object)],xl.prototype,"data",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],xl.prototype,"ytComponentBehavior",void 0);_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],xl.prototype,"isDarkTheme",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],xl.prototype,"ytActionHandlerBehavior",void 0);_.V([_.Yx({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],xl);
_.k(xl,"ytd-handles-claiming-update-social-renderer",function(){if(c3a!==void 0)return c3a;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return c3a=b},{mode:1});var RA5;var Qv=function(){var b=_.g.apply(this,arguments)||this;b.JSC$16368_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";b.JSC$16368_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";b.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};b.squigglyBackground=b.JSC$16368_squigglyBackgroundLight;return b};
_.z(Qv,_.g);Qv.prototype.updateSquigglyBackgroundStyle=function(){_.nZ(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
Qv.prototype.ready=function(){var b=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",b);this.squigglyBackground=b?this.JSC$16368_squigglyBackgroundDark:this.JSC$16368_squigglyBackgroundLight};
Qv.prototype.onDarkModeToggledAction=function(b){b!==this.isDarkTheme&&(this.set("isDarkTheme",b),this.squigglyBackground=b?this.JSC$16368_squigglyBackgroundDark:this.JSC$16368_squigglyBackgroundLight)};
Qv.prototype.updateSquigglyBackgroundStyle=Qv.prototype.updateSquigglyBackgroundStyle;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Qv.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Qv.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],Qv.prototype,"ytActionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Qv.prototype,"data",void 0);
_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],Qv.prototype,"isDarkTheme",void 0);_.V([_.C(),_.f("design:type",String)],Qv.prototype,"squigglyBackground",void 0);_.V([_.OB("squigglyBackground"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Qv.prototype,"updateSquigglyBackgroundStyle",null);_.V([_.Yx({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],Qv);
_.k(Qv,"ytd-handles-claiming-vanity-info-renderer",function(){if(RA5!==void 0)return RA5;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return RA5=b},{mode:1});var zAW;var mr=function(){var b=_.g.apply(this,arguments)||this;b.JSC$16371_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";b.JSC$16371_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";b.squigglyBackground=b.JSC$16371_squigglyBackgroundLight;b.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return b};
_.z(mr,_.g);_.d=mr.prototype;_.d.ready=function(){var b=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(b)};
_.d.onDarkModeToggledAction=function(b){b!==this.isDarkTheme&&(this.set("isDarkTheme",b),this.squigglyBackground=b?this.JSC$16371_squigglyBackgroundDark:this.JSC$16371_squigglyBackgroundLight)};
_.d.updateSquigglyBackgroundStyle=function(){_.nZ(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.d.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.d.detached=function(){this.stop()};
_.d.stop=function(){this.playerElement.stop()};
_.d.setupVideoPlayer=function(){var b=this,h,y;return _.Z(function(S){h=b.data.videoId;y="http://i1.ytimg.com/vi/"+h+"/maxresdefault.jpg";b.playerElement.loadVideoWithPlayerVars({video_id:h,iurlhq:y});_.g3(S)})};
mr.prototype.onDataChanged=mr.prototype.onDataChanged;mr.prototype.updateSquigglyBackgroundStyle=mr.prototype.updateSquigglyBackgroundStyle;_.V([_.C({value:!1}),_.f("design:type",Boolean)],mr.prototype,"isDarkTheme",void 0);_.V([_.C(),_.f("design:type",String)],mr.prototype,"squigglyBackground",void 0);_.V([_.to("#player"),_.f("design:type",Object)],mr.prototype,"playerElement",void 0);_.V([_.C(),_.f("design:type",Object)],mr.prototype,"data",void 0);
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],mr.prototype,"ytActionHandlerBehavior",void 0);_.V([_.OB("squigglyBackground"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],mr.prototype,"updateSquigglyBackgroundStyle",null);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],mr.prototype,"onDataChanged",null);
_.V([_.Yx({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],mr);
_.k(mr,"ytd-handles-claiming-video-item-renderer",function(){if(zAW!==void 0)return zAW;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return zAW=b},{mode:1});var DXW;var b0=function(){var b=_.cl.apply(this,arguments)||this;b.dragging=!1;b.dragMouseStart=0;b.dragOffsetStart=0;b.containerWidthDiff=0;b.boundPrevClick=function(){b.set("offset",vu(b,b.offset-(b.scrollDistance||320)))};
b.boundNextClick=function(){b.set("offset",vu(b,b.offset+(b.scrollDistance||320)))};
b.boundScrollContainerMouseDown=function(h){b.dragMouseStart=h.clientX;b.dragOffsetStart=b.offset;b.dragging=!0};
b.boundScrollContainerDrag=function(h){b.dragging&&b.set("offset",vu(b,b.dragOffsetStart-(h.clientX-b.dragMouseStart)))};
b.boundMouseUp=function(){b.onMouseUp()};
b.boundWheelScroll=function(h){var y=0;Math.abs(h.deltaX)>=Math.abs(h.deltaY)?y=h.deltaX:h.shiftKey&&(y=h.deltaY);y!==0&&(b.offset+=y,h.stopPropagation(),h.preventDefault())};
b.boundChipCloudChipScrollIntoView=function(h){(h=h.detail)&&b.scrollChipIntoView(h)};
return b};
_.z(b0,_.cl);b0.prototype.attached=function(){var b=_.$x(this.hostElement).querySelector("#scroll-container");b.addEventListener("wheel",this.boundWheelScroll);b.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);b.style.touchAction="pan-y";b.addEventListener("pointerdown",this.boundScrollContainerMouseDown);b.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
b0.prototype.detached=function(){var b=_.$x(this.hostElement).querySelector("#scroll-container");b.removeEventListener("wheel",this.boundWheelScroll);b.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);b.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);b.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
b0.prototype.reset=function(){this.set("offset",0);_.Ob(this,this.setContainerWidthDiff);_.Ob(this,this.setButtonsState)};
var vu=function(b,h){return Math.min(Math.max(h,0),b.containerWidthDiff)};
_.d=b0.prototype;_.d.onMouseUp=function(){this.dragging=!1};
_.d.transformContainer=function(){this.offset=vu(this,this.offset);var b=_.QC("HTML_DIR")==="rtl"?"":"-";_.$x(this.hostElement).querySelector("#chips").style.transform="translateX("+b+this.offset+"px)";_.Ob(this,this.setButtonsState)};
_.d.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=vu(this,this.offset));this.atStart=this.offset<=0};
_.d.setContainerWidthDiff=function(){var b=_.$x(this.hostElement).querySelector("#scroll-container"),h=_.$x(this.hostElement).querySelector("#chips");b&&h&&(this.containerWidthDiff=h.clientWidth-b.clientWidth)};
_.d.scrollChipIntoView=function(b){var h=_.$x(this.hostElement).querySelector("#scroll-container");if(h){var y=this.atStart?0:106,S=this.atEnd?0:106;b.offsetLeft<this.offset+y?this.offset=vu(this,b.offsetLeft-y):b.offsetLeft+b.clientWidth>this.offset+h.clientWidth-S&&(this.offset=vu(this,b.offsetLeft+b.clientWidth+S-h.clientWidth))}};
b0.prototype.transformContainer=b0.prototype.transformContainer;_.V([_.C({value:0}),_.f("design:type",Number)],b0.prototype,"offset",void 0);_.V([_.C({value:!0,reflectToAttribute:!0}),_.f("design:type",Boolean)],b0.prototype,"atStart",void 0);_.V([_.C({value:!1,reflectToAttribute:!0}),_.f("design:type",Boolean)],b0.prototype,"atEnd",void 0);_.V([_.C(),_.f("design:type",Number)],b0.prototype,"scrollDistance",void 0);
_.V([_.OB("offset"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],b0.prototype,"transformContainer",null);_.V([_.Rc()],b0);var Ig8;var B8P;_.hE=_.T(function(b){var h=b.data;b=_.L(_.pa(!1,void 0,"bob3J"));var y=b.next().value,S=b.next().value;b=function(a){if((h==null?void 0:h().state)!==1){var P,K;(K=(P=h()).onTap)==null||K.call(P,a)}};
var F={};return _.M("chip-shape",{class:"ytChipShapeHost","on:focusin":_.Zv(function(){var a=_.H9().resolve(_.XS(_.sG));if(a){S(a.isKeyBoardInUse());var P,K;(K=(P=h()).onFocusIn)==null||K.call(P)}return!1}),
"on:focusout":_.Zv(function(){S(!1);return!1})},_.M(WSN,{shouldWrapInButton:function(){return h().type!==2},
selected:function(){return h().state===0},
onClick:b,isDropdown:function(){return h().type===1},
accessibilityLabel:function(){return h().type===1?void 0:h().accessibilityLabel}},_.M("div",{class:_.P2("ytChipShapeChip",function(){a:switch(h==null?void 0:h().state){case 0:var a="ytChipShapeActive";
break a;case 1:a="ytChipShapeDisabled";break a;default:a="ytChipShapeInactive"}return a},function(){var a=h().type===1||h().type===2,P=h();
return a||P!=null&&P.startIcon?P==null||!P.startIcon||P!=null&&P.text?a?"ytChipShapeEndIconPadding":(P==null?0:P.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},function(){var a=h();
if((a==null?void 0:a.style)===0&&(a==null?void 0:a.state)===0){var P;a=((P=_.H9().resolve(_.XS(_.cC)))==null?0:P())?"ytChipShapeAICustomizedChipBorderDarkMode":"ytChipShapeAICustomizedChipBackgroundLightMode"}else a="";return a},(F.ytChipShapeFocused=function(){var a;
return y()&&((a=h())==null?void 0:a.state)!==1},F))},_.M(_.H,{cond:function(){return h().startIcon},
then:function(){return _.M(_.Xv,{icon:function(){var a;return(a=h())==null?void 0:a.startIcon},
className:_.P2(function(){return h().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"},function(){var a=h(),P,K=(P=_.H9().resolve(_.XS(_.cC)))==null?void 0:P();
return(a==null?void 0:a.style)===0&&(a==null?void 0:a.state)===0&&K?"ytChipShapeAICustomizedChipIconDarkMode":""})})}}),function(){return h().text},_.M(A3W,{shape:h,
onClick:b}),_.M(_.Tv,{model:{borderRadius:"8px"}}))))},"Lc");
_.hE.idomCompat=!0;var WSN=_.T(function(b){var h=_.Zv(function(y){b.onClick(y);return!1});
return _.M(_.H,{cond:b.shouldWrapInButton,then:function(){return _.M("button",{class:"ytChipShapeButtonReset","on:click":h,role:function(){return b.isDropdown()?"combobox":"tab"},
"aria-label":b.accessibilityLabel,"aria-selected":b.selected},b.children)},
else:function(){return b.children}})},"Mc"),A3W=_.T(function(b){var h=b.shape;
var y=b.onClick;var S=_.Zv(function(F){y(F);return!1});
return _.M(_.kZ,null,_.M(_.YZ,{when:function(){return h().type===1}},function(){return _.M(_.Xv,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.M(_.YZ,{when:function(){return h().type===2}},function(){return _.M("button",{class:"ytChipShapeButtonReset",
"on:click":S},_.M(_.Xv,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.M(_.YZ,{when:function(){return h().type===0}},function(){return _.M(_.OW,null)}))},"Nc");_.yd(_.hE,"chip-shape",{props:{data:_.D4}});var yu=function(){var b=_.g.apply(this,arguments)||this;b.disableDeselectEvent=!1;b.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return b};
_.z(yu,_.g);_.d=yu.prototype;_.d.onSelectChipCommand=function(b){if(!this.selected&&this.data&&(b=_.c(b,Fsa),b.targetId&&b.targetId===this.data.targetId))this.onTap()};
_.d.onFilterChipTransformCommand=function(b){if(!this.selected&&this.data){var h;(b=(h=_.c(b,m8M))==null?void 0:h.chipUniqueId)&&b===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.d.dataChanged=function(){var b=this;_.Ob(this,function(){b.data&&b.data.isSelected&&!b.selected&&(b.scrollChipIntoView(),b.onTap())})};
_.d.computeChipStyle=function(b){return b!=null?b:"STYLE_DEFAULT"};
_.d.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint?_.F8(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.F8(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.d.onFocus=function(){var b=_.H9().resolve(_.XS(_.sG));b&&b.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.d.scrollChipIntoView=function(){_.Sx(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.tm.Object.defineProperties(yu.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.data)==null||!b.icon)}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return D7y({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
yu.prototype.onFocus=yu.prototype.onFocus;yu.prototype.onTap=yu.prototype.onTap;yu.prototype.dataChanged=yu.prototype.dataChanged;_.V([_.B(_.vI),_.f("design:type",Object)],yu.prototype,"ironButtonState",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],yu.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],yu.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],yu.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.xq),_.f("design:type",Object)],yu.prototype,"ironA11yKeysBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],yu.prototype,"disableDeselectEvent",void 0);_.V([_.C(),_.f("design:type",Object)],yu.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.W("data.icon"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],yu.prototype,"hasIcon",null);
_.V([_.C({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.f("design:type",String)],yu.prototype,"chipStyle",void 0);_.V([_.C({value:!1,reflectToAttribute:!0}),_.f("design:type",Boolean)],yu.prototype,"selected",void 0);_.V([_.W("data","selected"),_.f("design:type",Object),_.f("design:paramtypes",[])],yu.prototype,"chipShapeData",null);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],yu.prototype,"dataChanged",null);
_.V([_.u3("tap"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],yu.prototype,"onTap",null);_.V([_.u3("focus"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],yu.prototype,"onFocus",null);_.V([_.sB({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],yu);
_.k(yu,"yt-chip-cloud-chip-renderer",function(){if(B8P===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;Ig8===void 0&&(Ig8=document.createElement("template"));var S=Ig8;y.call(h,S.content.cloneNode(!0),b.content.firstChild);B8P=b}b=B8P;return b},{mode:2});var W75=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.UXb=_.T(function(b){function h(){if(W75.has(b.data().displayType)){var X=!S(),u;if((u=b.disableDeselection)==null||!u.call(b)||X){b.data().selected=X;u=Object.assign({},P(),{selected:X});K(u);var O;(O=b.callback)==null||O.call(b,u,X)}}}
var y=_.ZR("chip-view-model",function(X){var u=b.data().tooltipTargetId,O=_.bg();u&&_.vy(O,u,X);return function(){m3(O,X)}}),S=function(){var X,u;
return!!(((X=b.selected)==null?void 0:X.call(b))!==void 0?(u=b.selected)==null?0:u.call(b):P().selected)},F=_.L(_.ya(b.data)),a=F.next().value;
F=F.next().value;var P=a,K=F,n=_.OF(BiI,function(){return b.data().chipEntityKey||""});
return _.M("chip-view-model",{class:"ytChipViewModelHost",el:y},_.M(_.hE,{data:function(){var X,u=Object.assign({},P(),{selected:S()}),O=n(),N=(X=b.disableDeselection)==null?void 0:X.call(b);a:switch(u.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":X=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":X=3;break a;default:X=0}return{text:(O==null?void 0:O.text)||u.text,state:u.disabled?1:u.selected?0:2,type:X,onTap:AnN(u,y,h,
N),accessibilityLabel:u.accessibilityLabel||u.text}}}))},"Oc");
_.UXb.idomCompat={callbacks:{callback:!0}};_.Sd=_.T(function(b){b=_.h6(b,{nextButtonStyle:0});var h=b.data,y=b.callback,S=b.selectionBehavior,F=b.disableChipsScrollAnimation,a=b.nextButtonStyle,P=_.MS("div");b=_.L(_.pa(!0,void 0,"VwW6Jc"));var K=b.next().value,n=b.next().value;b=_.L(_.pa(!1,void 0,"OIoagd"));var X=b.next().value,u=b.next().value,O=!1,N=0,t=function(){switch(a()){case 0:return"ytChipsShelfViewModelGradientButton";case 1:return"ytChipsShelfViewModelFloatingButton";default:return"ytChipsShelfViewModelGradientButton"}};
_.fl(function(){n(U());u(p())});
b=_.L(_.ya(function(){var L4={};return h().autoselectedChipIndex!=null?(L4[h().autoselectedChipIndex]=!0,L4):{}}));
var R=b.next().value,I=b.next().value,U=function(){var L4=P.value;return L4==null||L4.scrollLeft-1<=0},p=function(){var L4=P.value;
return L4==null?!1:L4.scrollLeft+1>=(L4==null?NaN:L4.scrollWidth)-(L4==null?NaN:L4.clientWidth)},e=function(){return h().isHorizontallyScrollable},E=function(L4){P.value!=null&&(_.QC("HTML_DIR")==="rtl"&&(L4=-L4),P.value.scrollBy({left:L4,
behavior:(F==null?0:F())?"instant":"smooth"}))},Y=function(){E(-320)},w=function(){E(320)},x=_.Zv(function(L4){O=!0;
N=L4.clientX}),q=_.Zv(function(L4){if(O){L4=L4.clientX;
var Rq=L4-N;N=L4;var Xn;(Xn=P.value)==null||Xn.scrollBy({left:-Rq})}}),dI=_.Zv(function(){var L4=U(),Rq=p();
L4!==K()&&n(L4);Rq!==X()&&u(Rq)});
_.NS("pointerup",function(){O&&(O=!1)});
return _.M("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.M(_.qY,{contentId:function(){return h().contentId},
useModernStyle:!0},function(){var L4={},Rq={};return _.M("div",null,_.M(_.H,{cond:function(){return h().title},
then:function(){return _.M("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.M("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return h().title}),_.M(_.rC,{data:function(){return h().overflowButton}},{buttonViewModel:_.EG}))}}),_.M("div",{class:_.P2("ytChipsShelfViewModelChipsShelfContent",t)},_.M(_.H,{cond:function(){return h().previousButton},
then:function(){var Xn={};return _.M("div",{class:_.P2("ytChipsShelfViewModelLeftArrowContainer",(Xn.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return K()},Xn))},_.M(_.rC,{data:function(){return h().previousButton}},{buttonViewModel:function(Ny){return _.M(_.EG,{data:Ny.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:Y})}}))}}),_.M("div",{el:P,
"on:pointerdown":x,"on:pointermove":q,"on:scroll":dI,class:_.P2("ytChipsShelfViewModelChipsScrollContainer",(L4.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=e,L4))},_.M("div",{class:_.P2("ytChipsShelfViewModelChipsContainer",(Rq.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=e,Rq.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,Rq)),role:"tablist"},_.M(_.rC,{data:function(){return h().contents}},{chipViewModel:function(Xn,Ny){return _.M("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.M(_.UXb,{data:Xn.data,
callback:function(gI,YU){var VN=Ny(),Hb,vF=(Hb=S==null?void 0:S())!=null?Hb:0;vF===1||vF===2?(Hb={},I((Hb[VN]=YU,Hb))):vF===0&&(Hb={},I(Object.assign({},R(),(Hb[VN]=YU,Hb))));y==null||y(gI,YU,VN)},
disableDeselection:function(){return(S==null?void 0:S())===1},
selected:function(){return!!R()[Ny()]}}))}}))),_.M(_.H,{cond:function(){return h().nextButton},
then:function(){var Xn={};return _.M("div",{class:_.P2("ytChipsShelfViewModelRightArrowContainer",(Xn.ytChipsShelfViewModelRightArrowContainerIsHidden=X,Xn))},_.M(_.rC,{data:function(){return h().nextButton}},{buttonViewModel:function(Ny){return _.M(_.EG,{data:Ny.data,
className:"ytChipsShelfViewModelRightArrow",onClick:w})}}))}})))}))},"Qc");
_.Sd.idomCompat={callbacks:{callback:!0}};var p6w=_.T(function(b){var h=b.data;var y=b.showChips;var S=b.isUpdateInProgress;var F=b.chipClickCallback;b=_.L(_.pa(!1,void 0,"uth3se"));var a=b.next().value,P=b.next().value;b=_.L(_.pa(!1,void 0,"qED0bb"));var K=b.next().value,n=b.next().value,X=void 0;_.Qi(function(){n(!0);var u=y()&&!S();requestAnimationFrame(function(){P(u)});
X&&clearTimeout(X);X=setTimeout(function(){n(!1)},300)},"fnso6");
_.m2(function(){X&&clearTimeout(X)});
b={};return _.M("ytd-ai-response-box-view-model",{class:_.P2("ytdAiResponseBoxViewModelHost")},_.M("div",{class:_.P2("ytdAiResponseBoxViewModelResponseMessageContainer",(b.ytdAiResponseBoxViewModelResponseMessageContainerHidden=a,b.ytdAiResponseBoxViewModelNotShown=function(){return a()&&!K()},b))},_.M(_.H,{cond:S,
then:function(){return _.M("div",null,_.M(_.zv,{text:function(){return h().responsePendingMessage}}))},
else:function(){return _.M(_.OW,null,_.M(_.H,{cond:function(){var u;return(u=h().responseMessageIcon)==null?void 0:u.iconType},
then:function(u){return _.M("div",{class:"ytdAiResponseBoxViewModelResponseMessageIcon"},_.M(_.Xv,{icon:u}))}}),_.M("div",null,_.M(_.zv,{text:function(){return h().responseMessage}})))}})),_.M(_.rC,{data:function(){return h().chipsShelf}},{chipsShelfViewModel:function(u){u=u.data;
var O={};return _.M("div",{class:_.P2("ytdAiResponseBoxViewModelChipsShelfContainer",(O.ytdAiResponseBoxViewModelChipsShelfContainerShown=a,O.ytdAiResponseBoxViewModelNotShown=function(){return!a()&&!K()},O))},_.M(_.Sd,{data:u,
selectionBehavior:3,nextButtonStyle:1,callback:F}))}}))},"Sc");var J38;J38=Object.assign({},{continuation:El8,download:gla,canvas:fwN,reportChannelAbuse:xf5,ui:lwF,share:Ql7,talkToRecs:bbb,watch:uK,ypc:drw,radioButtonGroup:E9k,collabInviteLink:kuf},Vle,{voiceSearch:Q$U,shorts:Hy});_.eAb=Uk(J38);_.Cvo=p9(_.eAb);_.gnb=(0,_.Cvo)(_.eAb.talkToRecs,{talkToRecsStateSelector:function(b){return b}});_.yd(_.T(function(b){var h=_.L((0,_.bS5)(b.data)).next().value;b=_.L(_.pa(!1,void 0,"wK1hV"));var y=b.next().value,S=b.next().value;b=_.L(_.pa(!1,void 0,"QNzWBf"));var F=b.next().value,a=b.next().value;b=_.L(Iuq());var P=b.next().value;b=b.next().value;var K=_.NG(_.gnb.talkToRecsStateSelector),n=_.L(_.pa("",void 0,"qkUInc")),X=n.next().value,u=n.next().value;n=_.L(_.pa(!1,void 0,"D8Tnjb"));var O=n.next().value,N=n.next().value,t=_.L(_.pa(!1,void 0,"AAxskd"));n=t.next().value;var R=t.next().value;
t=_.L(_.pa(!1,void 0,"fPqlme"));var I=t.next().value,U=t.next().value;t=_.L(_.pa(!1,void 0,"exlayb"));var p=t.next().value,e=t.next().value,E=_.ZR("div");t=_.L(_.pa(void 0,void 0,"K6Q9Je"));var Y=t.next().value,w=t.next().value,x=void 0,q=function(Bb){Bb!==y()&&(a(!0),S(Bb),x&&clearTimeout(x),x=setTimeout(function(){a(!1)},300))},dI=function(){if(Y()!==void 0){var Bb=Y();
q(window.scrollY>Bb)}},L4=function(){var Bb;
w((Bb=E.value)==null?void 0:Bb.offsetHeight);P("yt-feed-filter-chip-bar-resize")};
_.wg(function(){var Bb,oq,kU;u((kU=(oq=pr5(h(),K()))!=null?oq:(Bb=h().textInputValue)==null?void 0:Bb.content)!=null?kU:"");N(!!h().welcomeBannerTitle&&!X());L4();document.addEventListener("scroll",dI);_.m2(function(){document.removeEventListener("scroll",dI);x&&clearTimeout(x)})});
_.Qi(function(){var Bb=pr5(h(),K());Bb!==void 0&&Bb!==X()&&u(Bb)},"dOzUt");
_.Qi(function(){O();L4()},"KIy8if");
t=_.Zv(function(){U(!0);R(!0)});
var Rq=_.Zv(function(){R(!1)});
_.Qi(function(){h()&&(U(!1),e(!1))},"vkhp5b");
var Xn=function(Bb){var oq=h().onUpdateText;oq&&_.Va(oq,{form:{userQuery:Bb}})},Ny=_.se(function(Bb){Xn(Bb)},150),gI=_.Zv(function(Bb){Ny(Bb.target.value);
return!1});
_.Qi(function(){var Bb=pr5(h(),K());Bb&&Bb!==X()&&u(Bb)},"OF3gn");
var YU=function(){e(!0);N(!1)},VN=function(){var Bb=_.c(h().submitButton,_.cA);
if(Bb==null?0:Bb.trackingParams){var oq=_.I_(Bb.trackingParams),kU=_.UE();kU&&oq&&_.qt(kU,oq,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK")}if(Bb=Bb==null?void 0:Bb.onTap)_.Va(Bb),YU()},Hb=_.Zv(function(Bb){Bb.key==="Enter"&&(Xn(Bb.target.value.trim()),VN());
return!1}),vF=function(){VN()},xU=_.Zv(function(){P("yt-feed-customization-scroll-up")}),Xa={},rG={},Wb={},Xx={};
return _.M("ytd-feed-customization-form-view-model",{class:_.P2("ytdFeedCustomizationFormViewModelHost",(Xa.ytdFeedCustomizationFormViewModelHostCollapsed=y,Xa)),el:_.Qa(b)},_.M("div",{class:"ytdFeedCustomizationFormViewModelBodyContainer",el:E},_.M("div",{class:_.P2("ytdFeedCustomizationFormViewModelExpandedContent",(rG.ytdFeedCustomizationFormViewModelNotShown=function(){return y()&&!F()},rG))},_.M(_.H,{cond:O,
then:function(){return _.M("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerContainer"},_.M("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerTitle"},_.M(_.zv,{text:function(){return h().welcomeBannerTitle}})),_.M("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerSubtitle"},_.M(_.zv,{text:function(){return h().welcomeBannerSubtitle}})))}}),_.M(_.H,{cond:function(){return h().disclaimer},
then:function(){return _.M("div",{class:"ytdFeedCustomizationFormViewModelDisclaimer"},_.M(_.zv,{text:function(){return h().disclaimer}}))}}),_.M("div",{class:_.P2("ytdFeedCustomizationFormViewModelInputContainer",(Wb.ytdFeedCustomizationFormViewModelInputContainerHighlighted=n,Wb))},_.M("input",{class:"ytdFeedCustomizationFormViewModelInput",
type:"text",placeholder:function(){var Bb;return(Bb=h().textInputPlaceholder)==null?void 0:Bb.content},
"prop:value":X,"on:focus":t,"on:blur":Rq,"on:input":gI,"on:keyup":Hb,maxlength:250}),_.M(_.H,{cond:function(){return!!X()},
then:function(){return _.M(_.rC,{data:function(){return h().clearButton}},{buttonViewModel:function(Bb){return _.M("div",{class:"ytdFeedCustomizationFormViewModelClearButtonContainer"},_.M(_.EG,{data:Bb.data}))}})}}),_.M(_.H,{cond:function(){return p()},
then:function(){return _.M(_.rC,{data:function(){return h().inProgressButton}},{buttonViewModel:function(Bb){return _.M("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},_.M(_.EG,{data:Bb.data,
buttonOverrides:{disabled:!0}}))}})},
else:function(){return _.M(_.rC,{data:function(){return h().submitButton}},{buttonViewModel:function(Bb){return _.M("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},_.M(_.EG,{data:Bb.data,
onClick:YU}))}})}}),_.M(_.rC,{data:function(){return h().menuButton}},{buttonViewModel:function(Bb){return _.M("div",{class:"ytdFeedCustomizationFormViewModelMenuButtonContainer"},_.M(_.EG,{data:Bb.data}))}})),_.M(_.rC,{data:function(){return h().contents}},{aiResponseBoxViewModel:function(Bb){return _.M("div",{class:"ytdFeedCustomizationFormViewModelResponseContainer"},_.M(p6w,{data:Bb.data,
showChips:I,isUpdateInProgress:p,chipClickCallback:vF}))}})),_.M("div",{class:_.P2("ytdFeedCustomizationFormViewModelCollapsedContent",(Xx.ytdFeedCustomizationFormViewModelNotShown=function(){return!y()&&!F()},Xx)),
"on:click":xU},_.M("div",{class:"ytdFeedCustomizationFormViewModelCollapsedText"},function(){var Bb;return X()||((Bb=h().textInputPlaceholder)==null?void 0:Bb.content)}))))},"Xc"),"ytd-feed-customization-form-view-model",{props:{data:_.D4}});var sfW=_.iM.persistentPanelVisibleSelector,Fr=function(){var b=_.g.apply(this,arguments)||this;b.isDarkTheme=!1;b.notSticky=!1;b.transparentBackground=!1;b.shouldHide=!1;b.disableSticky=!1;b.fluidWidth=!1;b.isClipList=!1;b.defaultChipIndex=0;b.hasSelectedChipContent=!1;b.isPlaylist=!1;b.playlistVotingAnimationEnabled=_.r("web_enable_voting_animation");b.toolbarHeight=0;b.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction",
"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return b};
_.z(Fr,_.g);_.d=Fr.prototype;
_.d.configureRendererStamper=function(){return{"data.contents":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer",properties:{disableDeselectEvent:"[[isDisableDeselectEvent]]"}}}},sortFilterHeaderRendererData:{id:"filter",mapping:{sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isClipList:"[[isClipList]]",isPlaylistPageWithFilters:"[[isPlaylistPage]]"}}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},
params:{iconSize:16}}}},selectedChipContent:{id:"selected-chip-content",mapping:{feedCustomizationFormViewModel:{component:"ytd-feed-customization-form-view-model"}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.d.attached=function(){var b=this;document.addEventListener("scroll",_.Hl(this,this.updateChipBarWidthAndTop));document.addEventListener("yt-feed-filter-chip-bar-resize",_.Hl(this,this.onFeedFilterChipBarResize));this.isDarkTheme=document.documentElement.hasAttribute("dark");var h;this.toolbarHeight=((h=document.querySelector("ytd-masthead"))==null?void 0:h.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(y){b.handleIntersect(y)},{rootMargin:"-"+
(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){b.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.d.detached=function(){var b;(b=this.intersectionObserver)==null||b.disconnect();var h;(h=this.resizeObserver)==null||h.disconnect();document.removeEventListener("scroll",_.Hl(this,this.updateChipBarWidthAndTop));document.removeEventListener("yt-feed-filter-chip-bar-resize",_.Hl(this,this.onFeedFilterChipBarResize))};
_.d.dataChanged=function(){var b=this,h,y,S=(h=this.data)==null?void 0:(y=h.contents)==null?void 0:y.findIndex(function(a){var P;return!((P=_.c(a,PuN))==null?0:P.navigationEndpoint)});
S&&(this.defaultChipIndex=S);this.updating=!0;var F=this.findSelectedChipIndex();this.selectedIndex!==F&&(this.selectedIndex=-1);_.Ob(this,function(){b.selectedIndex=F;b.updateSelectedChipContent(b.selectedIndex);b.updating=!1;b.ytScrollableChipCloudBehavior.reset()})};
_.d.findSelectedChipIndex=function(){var b;if((b=this.data)==null||!b.contents)return 0;b=this.data.contents;for(var h=0;h<b.length;h++){var y=void 0;if((y=_.c(b[h],PuN))==null?0:y.isSelected)return h}return 0};
_.d.computeStyle=function(b){return b};
_.d.handleChipCloudChipSelectAction=function(b){b=this.JSC$16413_chipsSelector.indexOf(b);b>-1&&(this.JSC$16413_chipsSelector.selectIndex(b),this.updateSelectedChipContent(b))};
_.d.updateSelectedChipContent=function(b){var h;if((h=this.data)==null||!h.contents||b<0||b>=this.data.contents.length)this.selectedChipContent=void 0;else{var y;this.selectedChipContent=(y=_.c(this.data.contents[b],PuN))==null?void 0:y.content}};
_.d.handleChipCloudChipDeselectAction=function(){if(_.r("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var b,h,y,S=(y=_.c((b=this.data)==null?void 0:(h=b.contents)==null?void 0:h[this.defaultChipIndex],PuN))==null?void 0:y.navigationEndpoint;S&&_.F8(this.hostElement,"yt-browse-section-list-reload-endpoint",[S]);this.JSC$16413_chipsSelector.selectIndex(this.defaultChipIndex);this.updateSelectedChipContent(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.d.onSelectedChipContentChanged=function(){this.hasSelectedChipContent=!!this.selectedChipContent};
_.d.onFeedFilterChipBarResize=function(){this.updateDynamicHeight()};
_.d.updateDynamicHeight=function(){var b=this;this.hasSelectedChipContent&&!this.notSticky?_.Ob(this,function(){var h=_.$x(b.hostElement).querySelector("#chips-wrapper");h&&_.nZ(b.hostElement,{"--ytd-chips-bar-dynamic-height":h.clientHeight+"px"})}):_.nZ(this.hostElement,{"--ytd-chips-bar-dynamic-height":""})};
_.d.onGuideIsExpandedChanged=function(){this.updateLayout()};
_.d.onPersistentPanelVisibleChanged=function(){this.updateLayout()};
_.d.onResize=function(){this.updateLayout()};
_.d.updateLayout=function(){var b=this.ytScrollableChipCloudBehavior;_.Ob(b,b.setContainerWidthDiff);b=this.ytScrollableChipCloudBehavior;_.Ob(b,b.setButtonsState)};
_.d.onDarkModeToggledAction=function(b){this.isDarkTheme=b};
_.d.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.d.handleIntersect=function(b){this.notSticky=this.isChannelPageGrid||this.disableSticky||b[0].intersectionRatio===1};
_.d.updateDimensions=function(){var b=this.ytRendererBehavior.parentComponent;if(b){var h,y=(h=b.headerElement)!=null?h:b;_.nZ(this.hostElement,{"--ytd-rich-grid-chips-bar-width":y.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.d.updateSelectedIndexFromBinding=function(b){this.selectedIndex=b.detail.value};
_.d.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var b;(b=this.sortFilterHeaderRendererElement)==null||b.setAttribute("is-playlist-page-with-filters","")}};
_.d.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(FH7(!this.notSticky))};
_.tm.Object.defineProperties(Fr.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 b,h,y=(b=this.data)==null?void 0:(h=b.contents)==null?void 0:h.find(function(S){return _.c(S,n97)});
return{sortFilterHeaderRenderer:_.c(y,n97)}}}});
Fr.prototype.dispatchChipBarIsSticky=Fr.prototype.dispatchChipBarIsSticky;Fr.prototype.isPlaylistPageChanged=Fr.prototype.isPlaylistPageChanged;Fr.prototype.updateChipBarWidthAndTop=Fr.prototype.updateChipBarWidthAndTop;Fr.prototype.onResize=Fr.prototype.onResize;Fr.prototype.onPersistentPanelVisibleChanged=Fr.prototype.onPersistentPanelVisibleChanged;Fr.prototype.onGuideIsExpandedChanged=Fr.prototype.onGuideIsExpandedChanged;Fr.prototype.updateDynamicHeight=Fr.prototype.updateDynamicHeight;
Fr.prototype.onSelectedChipContentChanged=Fr.prototype.onSelectedChipContentChanged;Fr.prototype.dataChanged=Fr.prototype.dataChanged;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Fr.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Fr.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],Fr.prototype,"actionHandlerBehavior",void 0);
_.V([_.B(_.ab),_.f("design:type",Object)],Fr.prototype,"ironResizableBehavior",void 0);_.V([_.B(),_.f("design:type",b0)],Fr.prototype,"ytScrollableChipCloudBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],Fr.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Fr.prototype,"data",void 0);_.V([_.C({value:0}),_.f("design:type",Number)],Fr.prototype,"selectedIndex",void 0);_.V([_.C({value:320}),_.f("design:type",Number)],Fr.prototype,"scrollDistance",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Fr.prototype,"isDarkTheme",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Fr.prototype,"notSticky",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Fr.prototype,"transparentBackground",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.f("design:type",String)],Fr.prototype,"componentStyle",void 0);
_.V([_.C({selector:_.sDY}),_.f("design:type",Boolean)],Fr.prototype,"guideIsExpanded",void 0);_.V([_.C({selector:sfW}),_.f("design:type",Boolean)],Fr.prototype,"persistentPanelVisible",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Fr.prototype,"shouldHide",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Fr.prototype,"disableSticky",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Fr.prototype,"fluidWidth",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Fr.prototype,"isClipList",void 0);_.V([_.C(),_.f("design:type",Object)],Fr.prototype,"defaultChipIndex",void 0);_.V([_.C(),_.f("design:type",Object)],Fr.prototype,"selectedChipContent",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Fr.prototype,"hasSelectedChipContent",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Fr.prototype,"isPlaylist",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],Fr.prototype,"playlistVotingAnimationEnabled",void 0);_.V([_.to("#chips"),_.f("design:type",Object)],Fr.prototype,"JSC$16413_chipsSelector",void 0);_.V([_.to("ytd-sort-filter-header-renderer"),_.f("design:type",HTMLElement)],Fr.prototype,"sortFilterHeaderRendererElement",void 0);_.V([_.C({value:!1,reflectToAttribute:!0}),_.f("design:type",Boolean)],Fr.prototype,"updating",void 0);
_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Fr.prototype,"dataChanged",null);_.V([_.OB("selectedChipContent"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Fr.prototype,"onSelectedChipContentChanged",null);_.V([_.OB("hasSelectedChipContent","notSticky"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Fr.prototype,"updateDynamicHeight",null);
_.V([_.OB("guideIsExpanded"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Fr.prototype,"onGuideIsExpandedChanged",null);_.V([_.OB("persistentPanelVisible"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Fr.prototype,"onPersistentPanelVisibleChanged",null);_.V([_.u3("iron-resize"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Fr.prototype,"onResize",null);
_.V([_.zj("isChannelPageGrid","disableSticky","data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Fr.prototype,"updateChipBarWidthAndTop",null);_.V([_.W("componentStyle"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Fr.prototype,"isChannelPageGrid",null);_.V([_.W("componentStyle"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Fr.prototype,"isHashtagLandingPage",null);
_.V([_.OB("isPlaylistPage"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Fr.prototype,"isPlaylistPageChanged",null);_.V([_.W("componentStyle"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Fr.prototype,"isPlaylistPage",null);_.V([_.W("componentStyle"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Fr.prototype,"isDisableDeselectEvent",null);
_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],Fr.prototype,"sortFilterHeaderRendererData",null);_.V([_.C({reflectToAttribute:!0,selector:_.id4}),_.f("design:type",String)],Fr.prototype,"frostedGlassMode",void 0);_.V([_.OB("notSticky"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Fr.prototype,"dispatchChipBarIsSticky",null);_.V([_.Yx({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],Fr);
_.k(Fr,"ytd-feed-filter-chip-bar-renderer",function(){if(DXW!==void 0)return DXW;var b=document.createElement("template");_.D(b,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-filter-chip-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chips-wrapper" class="style-scope ytd-feed-filter-chip-bar-renderer">\n  <div id="chips-content" class="style-scope ytd-feed-filter-chip-bar-renderer">\n    <div id="left-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="left-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n    <div id="filter" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    <div id="scroll-container" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <iron-selector id="chips" activate-event="" role="tablist" selected="[[selectedIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedIndexFromBinding" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      </iron-selector>\n    </div>\n    <div id="right-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="right-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n  </div>\n  <div id="selected-chip-content" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n</div>\n');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return DXW=b},{mode:1});var YOo;var T8a=_.T(function(b){var h=b.data;var y=b.buttonIndex;var S=b.selectedIndex;var F=b.onSelect;var a=function(){return y()===S()},P=function(){var K,n;
return(n=(K=h().text)==null?void 0:K.content)!=null?n:""};
b=_.IjY();return _.M("yt-toggleable-image-button-view-model",{class:function(){var K={};K=(K.toggleableImageButtonViewModelHost=!0,K[""]=!0,K.toggleableImageButtonViewModelSemiTransparent=S()!==-1&&!a(),K);return _.AB(K)},
tabindex:0,"aria-label":P,"aria-pressed":a,role:"button","on:keydown":b,"on:click":_.Zv(function(){F(h().onSubmitCommand);return!1})},_.M(_.H,{cond:function(){return h().logo},
then:function(K){return _.M(_.mI,{data:K,className:function(){var n={};n=(n.toggleableImageButtonViewModelImage=!0,n.toggleableImageButtonViewModelCircularRadius=!(!h().backgroundColor||!h().backgroundColorDarkMode),n.toggleableImageButtonViewModelGradientRing=!!(a()&&h().backgroundColor&&h().backgroundColorDarkMode),n);return _.AB(n)},
alt:P,useWidth:!1,style:function(){if(a()&&h().backgroundColor&&h().backgroundColorDarkMode){var n=gq(Number(h().backgroundColorDarkMode),"1");var X=gq(Number(h().backgroundColor),"1");n="background: linear-gradient(180deg,"+n+","+X+") border-box;"}else n="";return n}})}}),_.M(_.Tv,{model:{borderRadius:"16px"}}),_.M("p",{class:function(){var K={};
K=(K.toggleableImageButtonViewModelLabel=!0,K.toggleableImageButtonViewModelBoldText=a(),K);return _.AB(K)}},_.M(_.zv,{text:function(){return h().text}})))},"Yc");
T8a.idomCompat=!0;var k5b=_.T(function(b){var h=b.data;b=_.L(_.pa({index:-1,command:{}},void 0,"GM3umb"));var y=b.next().value,S=b.next().value;return _.M("yt-nudge-form-view-model",{class:"nudgeFormViewModelHost"},_.M("div",{class:"nudgeFormViewModelFormOptions"},_.M(_.rC,{data:function(){return h().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(F,a){return _.M(T8a,{data:F.data,buttonIndex:a,selectedIndex:function(){return y().index},
onSelect:function(P){S({index:a(),command:P})}})}})),_.M(_.zv,{text:function(){return h().subtitle},
className:"nudgeFormViewModelSubtitle"}),_.M("div",{class:"nudgeFormViewModelSubmit"},_.M(_.rC,{data:function(){return h().submitButton}},{buttonViewModel:function(F){return _.M(G5a,{data:F.data,
isDisabled:function(){return y().index===-1},
onClick:function(){_.Va(y().command)}})}})))},"Zc");
k5b.idomCompat=!0;var G5a=_.T(function(b){var h=_.s5(function(){return Object.assign({},b.data(),{state:b.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"wMKC2e");
return _.M(_.EG,{data:h,onClick:b.onClick})},"$c");_.yd(k5b,"yt-nudge-form-view-model",{props:{data:_.D4}});var av=function(){var b=_.g.apply(this,arguments)||this;b.roundedContainer=!0;b.buttonUpdate=_.r("web_modern_buttons");b.isDarkMode=!1;b.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return b};
_.z(av,_.g);_.d=av.prototype;_.d.computeNudgeStyle=function(b){return b?"modernized-nudge":""};
_.d.handleDarkModeToggledAction=function(b){this.isDarkMode=b};
_.d.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.d.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"}}}};
_.d.computeIsHorizontalButtons=function(b){return b?!!b.applyModernizedStyle&&!!b.enableHorizontalButtons&&!!b.secondaryButton:!1};
_.tm.Object.defineProperties(av.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.data)==null?void 0:b.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var b,h;return(h=(b=this.data)==null?void 0:b.backgroundStyle)!=null?h:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var b,h;return(h=(b=this.data)==null?void 0:b.contentsLocation)!=null?h:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.data)==null||!b.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.data)==null?0:b.lightIconImage)}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],av.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],av.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.rP),_.f("design:type",Object)],av.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],av.prototype,"actionHandlerBehavior",void 0);
_.V([_.C({reflectToAttribute:!0}),_.W("isHideEnclosingAction"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],av.prototype,"isHidden",null);_.V([_.C(),_.f("design:type",Object)],av.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],av.prototype,"roundedContainer",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],av.prototype,"buttonUpdate",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.f("design:type",String)],av.prototype,"nudgeStyle",void 0);_.V([_.C({reflectToAttribute:!0}),_.W("data.trimStyle"),_.f("design:type",String),_.f("design:paramtypes",[])],av.prototype,"trimStyle",null);_.V([_.C({reflectToAttribute:!0}),_.W("data.backgroundStyle"),_.f("design:type",String),_.f("design:paramtypes",[])],av.prototype,"backgroundStyle",null);
_.V([_.C({reflectToAttribute:!0}),_.W("data.contentsLocation"),_.f("design:type",String),_.f("design:paramtypes",[])],av.prototype,"contentsLocation",null);_.V([_.C({reflectToAttribute:!0}),_.W("data.disableDropShadow"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],av.prototype,"noShadow",null);_.V([_.C({reflectToAttribute:!0}),_.W("data.lightIconImage"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],av.prototype,"noIcon",null);
_.V([_.C({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.f("design:type",Boolean)],av.prototype,"isHorizontalButtons",void 0);_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Object)],av.prototype,"isDarkMode",void 0);_.V([_.Yx({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],av);
_.k(av,"ytd-feed-nudge-renderer",function(){if(YOo!==void 0)return YOo;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return YOo=b},{mode:_.Lt("kevlar_poly_si_batch_j028")?1:2});var Vo5;var EnW;var dj=function(){var b=_.g.apply(this,arguments)||this;b.collapsed=!1;b.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return b};
_.z(dj,_.g);dj.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"}}}};
dj.prototype.handleRatingSelect=function(){var b;((b=this.data)==null?0:b.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
dj.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],dj.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],dj.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],dj.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],dj.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.rP),_.f("design:type",Object)],dj.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],dj.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],dj.prototype,"collapsed",void 0);_.V([_.Yx({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],dj);
_.k(dj,"ytd-slimline-survey-renderer",function(){if(EnW!==void 0)return EnW;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return EnW=b},{mode:1});var i5a;var jd=function(){return _.g.apply(this,arguments)||this};
_.z(jd,_.g);jd.prototype.maybeGetBackgroundColor=function(b){return this.isDarkMode?b.section2Color:b.section3Color};
jd.prototype.colorPaletteChanged=function(){var b=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;b&&(b==null?0:b.secondaryTitleColor)&&this.maybeGetBackgroundColor(b)?(this.hostElement.style.backgroundColor=_.eI(this.maybeGetBackgroundColor(b)),this.hostElement.style.color=_.eI(b.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
jd.prototype.colorPaletteChanged=jd.prototype.colorPaletteChanged;_.V([_.B(_.NT),_.f("design:type",Object)],jd.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],jd.prototype,"data",void 0);_.V([_.C({selector:function(b){return b.ui.darkModeIsEnabled}}),
_.f("design:type",Boolean)],jd.prototype,"isDarkMode",void 0);_.V([_.C(),_.f("design:type",Object)],jd.prototype,"lightColorPalette",void 0);_.V([_.C(),_.f("design:type",Object)],jd.prototype,"darkColorPalette",void 0);_.V([_.OB("darkColorPalette","lightColorPalette","data","isDarkMode"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],jd.prototype,"colorPaletteChanged",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],jd);
_.k(jd,"ytd-endorsement-header-renderer",function(){if(i5a!==void 0)return i5a;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return i5a=b},{mode:1});_.yd(_.NY,"yt-decorated-avatar-view-model",{props:{data:_.D4,className:_.D4}});_.$O=new _.ca("VIEW_TRANSITION_MANAGER_TOKEN");var Lb=function(){var b=_.g.apply(this,arguments)||this;b.fullHeight=_.r("web_rich_grid_media_full_height");b.showChannelAvatar=!0;b.hasPlaylistThumbnail=!1;b.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};b.registerThumbnailForPageTransition=function(){_.r("web_thumbnail_to_watch_transition")&&_.fgb(_.H9().resolve(_.$O),b.thumbnail)};
return b};
_.z(Lb,_.g);_.d=Lb.prototype;
_.d.configureRendererStamper=function(){return{lazyLoadMenu:aQ,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"}}}};
_.d.attached=function(){this.updateInlinePreviewHoverListeners()};
_.d.detached=function(){this.clearInlinePreviewHoverListeners()};
_.d.shouldLazyLoadMenu=function(){var b=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.r("kevlar_modern_downloads_page")||!b};
_.d.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16437_inlinePreviewHoverListener=Yr({mediaRenderer:this,lockupElement:this.JSC$16437_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.d.getVideoPreviewOpts=function(){var b={},h;if((h=this.data)==null?0:h.multipleInlinePlaybackEndpoint)b=D0G;this.isRadio&&(b=zRW);return b};
_.d.clearInlinePreviewHoverListeners=function(){var b;(b=this.JSC$16437_inlinePreviewHoverListener)==null||h_(b)};
_.d.getOwner=function(){var b,h,y;return((b=this.data)==null?void 0:(h=b.channelThumbnailSupportedRenderers)==null?void 0:h.channelThumbnailWithLinkRenderer)||_.c((y=this.data)==null?void 0:y.showProviderChannelThumbnail,$EM)};
_.d.updateLockupSize=function(){var b;((b=this.getOwner())==null?0:b.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.d.getFeedbackEndpoint=function(b){if(_.c(b,_.s9))return b;var h,y;b=(y=(h=_.c(b,_.LI))==null?void 0:h.commands)!=null?y:[];h=_.L(b);for(y=h.next();!y.done;y=h.next())if(y=this.getFeedbackEndpoint(y.value))return y;return null};
_.d.computeNavigationEndpoint=function(b){return Ea4(b==null?void 0:b.navigationEndpoint)};
_.d.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var b=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(b)!==JSON.stringify(this.data)&&this.set("data",b)}};
_.d.onDataChanged=function(){var b=this,h=this.getOwner();if(h){this.set("data.owner",h);var y,S,F,a,P,K=((y=this.data)==null?void 0:(S=y.shortBylineText)==null?void 0:(F=S.runs)==null?void 0:(a=F[0])==null?void 0:a.text)||((P=h.name)==null?void 0:P.simpleText);this.set("data.owner.title",K)}var n,X,u,O,N,t;h=((n=this.data)==null?void 0:(X=n.thumbnailRenderer)==null?void 0:X.playlistVideoThumbnailRenderer)||((u=this.data)==null?void 0:(O=u.thumbnailRenderer)==null?void 0:O.playlistCustomThumbnailRenderer)||
((N=this.data)==null?void 0:(t=N.thumbnailRenderer)==null?void 0:t.showCustomThumbnailRenderer);var R;((R=this.data)==null?0:R.thumbnail)||!h||this.set("data.thumbnail",h.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){b.updateLockupSize()});
var I;if(n=((I=this.data)==null?void 0:I.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(n);var U;((U=this.dismissActionToReplayEntity)==null?0:U.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.d.onHiddenChanged=function(){this.updateLockupSize()};
_.d.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.F8(this.hostElement,"yt-terminate-video-preview-action");else{var b;(b=this.videoTitleLink)==null||b.focus()}};
_.d.metadataColorChanged=function(){var b;if(this.metadataColor&&((b=this.videoTitle)==null?0:b.style))this.videoTitle.style.color=_.eI(this.metadataColor);else{var h,y;!this.metadataColor&&((h=this.videoTitle)==null?0:(y=h.style)==null?0:y.color)&&(this.videoTitle.style.color="")}};
_.d.onDetailsClick=function(b){var h=this.computedNavigationEndpoint;h&&(_.mf(_.Qk(b),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.Sx(this.hostElement,"yt-navigate",{endpoint:h}))};
_.d.onRendererTap=function(){this.registerThumbnailForPageTransition();var b,h,y=((b=this.data)==null?void 0:b.serviceEndpoint)||this.getFeedbackEndpoint((h=this.data)==null?void 0:h.navigationEndpoint);y&&_.c(y,_.s9)&&this.ytComponentBehavior.resolveCommand(y)};
_.d.onMouseDown=function(b){var h=b.target,y=this.computedNavigationEndpoint,S;b=h.href||((S=_.c(y==null?void 0:y.commandMetadata,_.ZW))==null?void 0:S.url);S=h.data||y;b&&S&&nsk(b,S)};
_.d.computeVideoTitleText=function(){var b;if((b=this.data)==null?0:b.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.d.computeHasPlaylistThumbnail=function(b){var h,y,S,F,a;if((((h=b.thumbnailRenderer)==null?0:h.playlistVideoThumbnailRenderer)||((y=b.thumbnailRenderer)==null?0:y.playlistCustomThumbnailRenderer)||((S=b.thumbnailRenderer)==null?0:S.showCustomThumbnailRenderer)||((F=b.thumbnailRenderer)==null?0:F.playlistVideoThumbnailRenderer)||((a=b.thumbnailRenderer)==null?0:a.playlistCustomThumbnailRenderer))&&b.thumbnailOverlays)for(h=0;h<b.thumbnailOverlays.length;h++)if(y=void 0,(y=b.thumbnailOverlays[h])==
null?0:y.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.tm.Object.defineProperties(Lb.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.r("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var b;return(b=this.data)==null?void 0:b.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var b;return(b=this.data)==null?void 0:b.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.JSC$16437_inlinePreviewHoverListener)==null?0:RQ(b))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.PHN(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.data)==null||!b.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var b,h;return((b=this.data)==null?void 0:b.videoId)||((h=this.data)==null?void 0:h.playlistId)||""}}});
Lb.prototype.onMouseDown=Lb.prototype.onMouseDown;Lb.prototype.metadataColorChanged=Lb.prototype.metadataColorChanged;Lb.prototype.onIsDismissedChanged=Lb.prototype.onIsDismissedChanged;Lb.prototype.onHiddenChanged=Lb.prototype.onHiddenChanged;Lb.prototype.onDataChanged=Lb.prototype.onDataChanged;Lb.prototype.handleReloadDownloadsInfo=Lb.prototype.handleReloadDownloadsInfo;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Lb.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Lb.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],Lb.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.rP),_.f("design:type",Object)],Lb.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.B(_.Wg),_.f("design:type",Object)],Lb.prototype,"ytdLockupBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],Lb.prototype,"ytdReduxBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],Lb.prototype,"data",void 0);_.V([_.C(),_.f("design:type",String)],Lb.prototype,"entitySelectorType",void 0);_.V([_.C(),_.f("design:type",Boolean)],Lb.prototype,"noEndpoints",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],Lb.prototype,"isRadio",void 0);_.V([_.C({reflectToAttribute:!0,selector:_.Jt}),_.f("design:type",Boolean)],Lb.prototype,"miniMode",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Lb.prototype,"fullHeight",void 0);
_.V([_.C(),_.f("design:type",Boolean)],Lb.prototype,"showDarkVideoMetadata",void 0);_.V([_.C(),_.f("design:type",Boolean)],Lb.prototype,"showLightVideoMetadata",void 0);_.V([_.C(),_.f("design:type",Number)],Lb.prototype,"metadataColor",void 0);_.V([_.C(),_.f("design:type",Object)],Lb.prototype,"showChannelAvatar",void 0);_.V([_.C(),_.f("design:type",Boolean)],Lb.prototype,"hidden",void 0);_.V([_.C({value:!0}),_.f("design:type",Boolean)],Lb.prototype,"showYtInteraction",void 0);
_.V([_.C(),_.f("design:type",String)],Lb.prototype,"dismissedContentId",void 0);_.V([_.C({selectorArgs:["dismissedContentId"],selector:x6j}),_.f("design:type",Object)],Lb.prototype,"dismissActionToReplayEntity",void 0);
_.V([_.C({selectorArgs:["entitySelectorType","mediaId"],selector:function(b,h,y){if(_.r("kevlar_modern_downloads_page")&&y&&h&&h!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(h){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var S=qG5(b,y);if(S){h=_.Y8(b,y);var F=GD(b,y),a=j$f(b,y);b=k8(b,y);var P=GuF(S,h,F,a);F=P.shortViewCountText;var K=P.publishedTimeText;P=P.badges;var n=b>0;a=YtI(S,h,a,b);S=_.ci(h)||h==="TRANSFER_STATE_FAILED"||h==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!rR(S.policyEntity)?
void 0:kcn(y,b,S.videoEntity.lengthSeconds);h==="TRANSFER_STATE_PAUSED_BY_USER"&&y&&!_.r("dl_resume_click_killswitch")&&(S={offlineVideoEndpoint:{videoId:y,action:"ACTION_RESUME"}});y={shortViewCountText:F,publishedTimeText:K,badges:P,isWatched:n,navigationEndpoint:S,thumbnailOverlays:a}}else y=void 0;return y;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(h=xbN(b,y))if(S=_.TD(b,y),a=_.QDM(b,y),S!=="TRANSFER_STATE_UNKNOWN"){y=Taf(h,S,a,y,_.sn(b));break a}y=void 0}return y;default:_.vX(new _.Gn("Error: entitySelectorType defined but not matched in selector.",
b,h))}}}),
_.f("design:type",Object)],Lb.prototype,"entityDrivenState",void 0);_.V([_.C({computed:"computeVideoTitleText(data)"}),_.f("design:type",Object)],Lb.prototype,"videoTitleText",void 0);_.V([_.C({computed:"computeHasPlaylistThumbnail(data)"}),_.f("design:type",Object)],Lb.prototype,"hasPlaylistThumbnail",void 0);_.V([_.C({computed:"computeNavigationEndpoint(data)"}),_.f("design:type",Object)],Lb.prototype,"computedNavigationEndpoint",void 0);
_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],Lb.prototype,"typographyBump",void 0);_.V([_.C({reflectToAttribute:!0}),_.W("typographyBump"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Lb.prototype,"typographyBumpV2",null);_.V([_.to("#video-title"),_.f("design:type",HTMLElement)],Lb.prototype,"videoTitle",void 0);_.V([_.to("#video-title-link"),_.f("design:type",HTMLElement)],Lb.prototype,"videoTitleLink",void 0);
_.V([_.to("#thumbnail"),_.f("design:type",HTMLElement)],Lb.prototype,"thumbnail",void 0);_.V([_.to("#dismissible"),_.f("design:type",HTMLElement)],Lb.prototype,"JSC$16437_dismissibleMedia",void 0);_.V([_.W("data.menu"),_.f("design:type",Object),_.f("design:paramtypes",[])],Lb.prototype,"lazyLoadMenu",null);_.V([_.W("data.menu"),_.f("design:type",Object),_.f("design:paramtypes",[])],Lb.prototype,"immediateLoadMenu",null);
_.V([_.zj("entityDrivenState"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Lb.prototype,"handleReloadDownloadsInfo",null);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Lb.prototype,"onDataChanged",null);_.V([_.zj("hidden"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Lb.prototype,"onHiddenChanged",null);
_.V([_.OB("isDismissed"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Lb.prototype,"onIsDismissedChanged",null);_.V([_.OB("metadataColor"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Lb.prototype,"metadataColorChanged",null);_.V([_.u3("mousedown"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],Lb.prototype,"onMouseDown",null);
_.V([_.W("lockupIsHovered"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Lb.prototype,"isHovered",null);_.V([_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Lb.prototype,"useAvatar",null);_.V([_.W("data","entitySelectorType"),_.f("design:type",String),_.f("design:paramtypes",[])],Lb.prototype,"mediaId",null);_.V([_.Yx({is:"ytd-rich-grid-media",disableElementRegistration:!0})],Lb);
var w6M=_.$S()(Lb,"ytd-rich-grid-media",function(){if(Vo5!==void 0)return Vo5;var b=document.createElement("template");_.D(b,'\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>');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return Vo5=b},{mode:_.Lt("kevlar_poly_si_batch_j072")?1:2});var lga;var Pe=function(){var b=_.g.apply(this,arguments)||this;b.removeMaxWidth=!0;b.insetMetadata=!1;return b};
_.z(Pe,_.g);_.d=Pe.prototype;_.d.configureRendererStamper=function(){return{innerMenu:aQ,outerMenu:Object.assign({},aQ,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.d.onDataChanged=function(){var b,h=((b=this.data)==null?void 0:b.trackingParams)||"";h&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(h));var y;((y=this.dismissActionToReplayEntity)==null?0:y.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.d.attached=function(){this.updateInlinePreviewHoverListeners()};
_.d.detached=function(){this.clearInlinePreviewHoverListeners()};
_.d.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$16442_inlinePreviewHoverListener=Yr({mediaRenderer:this,lockupElement:this.JSC$16442_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:IJe})};
_.d.clearInlinePreviewHoverListeners=function(){var b;(b=this.JSC$16442_inlinePreviewHoverListener)==null||h_(b)};
_.d.onRendererTap=function(){var b,h,y=(b=this.data)==null?void 0:(h=b.serviceEndpoints)==null?void 0:h[0];_.c(y,_.s9)&&this.componentBehavior.resolveCommand(y)};
_.d.onDetailsClick=function(b){var h,y=(h=this.data)==null?void 0:h.navigationEndpoint;y&&(_.mf(_.Qk(b),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(y))};
_.d.onShow=function(){var b=this.data;b.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(b.onFirstVisibleCommand),delete b.onFirstVisibleCommand)};
_.tm.Object.defineProperties(Pe.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var b;return this.insetMetadata?void 0:(b=this.data)==null?void 0:b.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var b;return this.insetMetadata?(b=this.data)==null?void 0:b.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var b=this.data;if(b!=null&&b.badge&&(b=_.c(b.badge,Stw))){var h,y,S;return[{metadataBadgeRenderer:{label:((h=b.label)==null?void 0:(y=h.runs)==null?void 0:y[0].text)||((S=b.label)==null?void 0:S.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.data)==null?void 0:b.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.data)==null?void 0:b.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var b=this.data;return Object.assign({},b.headline,{accessibility:b.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var b,h,y;return this.isSlimShort?(b=this.computedTitle)==null?void 0:(h=b.accessibility)==null?void 0:(y=h.accessibilityData)==null?void 0:y.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.r("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.JSC$16442_inlinePreviewHoverListener)==null?0:RQ(b))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Pe.prototype.onDataChanged=Pe.prototype.onDataChanged;_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],Pe.prototype,"componentBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Pe.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Wg),_.f("design:type",Object)],Pe.prototype,"ytdLockupBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Pe.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.rP),_.f("design:type",Object)],Pe.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],Pe.prototype,"ytdReduxBehavior",void 0);_.V([_.to("ytd-thumbnail"),_.f("design:type",HTMLElement)],Pe.prototype,"thumbnail",void 0);_.V([_.to("#dismissible"),_.f("design:type",HTMLElement)],Pe.prototype,"JSC$16442_dismissibleMedia",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Pe.prototype,"removeMaxWidth",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Pe.prototype,"insetMetadata",void 0);_.V([_.C(),_.f("design:type",String)],Pe.prototype,"dismissedContentId",void 0);_.V([_.C({selectorArgs:["dismissedContentId"],selector:x6j}),_.f("design:type",Object)],Pe.prototype,"dismissActionToReplayEntity",void 0);_.V([_.W("insetMetadata"),_.f("design:type",Object),_.f("design:paramtypes",[])],Pe.prototype,"thumbnailObjectFit",null);
_.V([_.W("data","insetMetadata"),_.f("design:type",Object),_.f("design:paramtypes",[])],Pe.prototype,"innerMenu",null);_.V([_.W("data","insetMetadata"),_.f("design:type",Object),_.f("design:paramtypes",[])],Pe.prototype,"outerMenu",null);_.V([_.C(),_.f("design:type",Object)],Pe.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,selector:_.Jt}),_.f("design:type",Boolean)],Pe.prototype,"miniMode",void 0);
_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Pe.prototype,"onDataChanged",null);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],Pe.prototype,"shortsBadges",null);_.V([_.W("data"),_.C({reflectToAttribute:!0}),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Pe.prototype,"isShort",null);
_.V([_.W("data"),_.C({reflectToAttribute:!0}),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Pe.prototype,"isSlimShort",null);_.V([_.W("data","isShort"),_.f("design:type",Object),_.f("design:paramtypes",[])],Pe.prototype,"computedTitle",null);_.V([_.W("isSlimShort","computedTitle"),_.f("design:type",Object),_.f("design:paramtypes",[])],Pe.prototype,"computedAccessibilityLabel",null);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Pe.prototype,"shouldForce2By3",null);_.V([_.W("lockupIsHovered"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Pe.prototype,"isHovered",null);_.V([_.Yx({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],Pe);
_.k(Pe,"ytd-rich-grid-slim-media",function(){if(lga!==void 0)return lga;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return lga=b},{mode:_.Lt("kevlar_poly_si_batch_j063")?1:2});var qOP;var xXN;var Kb=function(){return _.g.apply(this,arguments)||this};
_.z(Kb,_.g);Kb.prototype.computeIcon=function(b){return b&&b.iconType?"yt-sys-icons:"+b.iconType.toLowerCase():""};
Kb.prototype.onMouseEnter=function(){this.isHovered=!0};
Kb.prototype.onMouseLeave=function(){this.isHovered=!1};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Kb.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Kb.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],Kb.prototype,"ytComponentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Kb.prototype,"data",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],Kb.prototype,"isHovered",void 0);
_.V([_.Yx({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],Kb);
_.k(Kb,"ytd-expand-on-hover-card-renderer",function(){if(xXN!==void 0)return xXN;var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return xXN=b},{mode:1});var Qf8,mXa=function(){if(Qf8!==void 0)return Qf8;var b=document.createElement("template");_.D(b,'\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>');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return Qf8=b};_.W2("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var Zx=function(){var b=_.g.apply(this,arguments)||this;b.compactStyle=!1;b.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return b};
_.z(Zx,_.g);_.d=Zx.prototype;_.d.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.d.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"}}}};
_.d.computeHideDot=function(b){return!(b&&b.subscriberCountText&&b.videoCountText)||this.compactStyle};
_.d.hasDualButtons=function(b){return b&&b.purchaseButton&&b.subscribeButton};
_.d.backgroundColorChanged=function(){if(this.data!==void 0){var b=this.data.backgroundColor;this.isDarkTheme&&(b=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=b!=null?_.eI(b):"transparent"}};
_.d.onDarkModeToggledAction=function(b){this.isDarkTheme=b};
_.d.onTap=function(b){var h,y,S=((h=this.data)==null?void 0:h.navigationEndpoint)||((y=this.data)==null?void 0:y.serviceEndpoint);_.c(S,_.Qe)&&(S&&_.H9().resolve(_.OM).resolveCommand(S,{form:{element:this.hostElement}}),b.preventDefault())};
_.d.computeChannelEndpoint=function(b){return _.c(b,_.Qe)?null:b};
_.d.computeHrefEndpoint=function(b){return _.c(b,_.Qe)?null:this.componentBehavior.computeHref_(b)};
_.d.computeChannelRendererStyle=function(b){return b};
_.d.computeIconSize=function(b){return b?108:136};
_.tm.Object.defineProperties(Zx,{template:{configurable:!0,enumerable:!0,get:function(){return mXa()}}});
Zx.prototype.backgroundColorChanged=Zx.prototype.backgroundColorChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Zx.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Zx.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Y9),_.f("design:type",Object)],Zx.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],Zx.prototype,"componentBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],Zx.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Boolean)],Zx.prototype,"isDarkTheme",void 0);_.V([_.C({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.f("design:type",String)],Zx.prototype,"channelRendererStyle",void 0);_.V([_.C({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.f("design:type",Boolean)],Zx.prototype,"dualButtons",void 0);_.V([_.C({reflectToAttribute:!0,value:function(){return _.r("enable_desktop_search_bigger_thumbs")}}),
_.f("design:type",Boolean)],Zx.prototype,"useBiggerThumbs",void 0);_.V([_.C({reflectToAttribute:!0,value:function(){return _.rH("desktop_search_bigger_thumbs_style")}}),
_.f("design:type",String)],Zx.prototype,"biggerThumbStyle",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Zx.prototype,"compactStyle",void 0);_.V([_.OB("data","isDarkTheme"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Zx.prototype,"backgroundColorChanged",null);_.V([_.Yx({is:"ytd-channel-renderer",disableElementRegistration:!0})],Zx);_.k(Zx,"ytd-channel-renderer",function(){return mXa()},{mode:1});var vnw;var bJW;_.W2("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var ov=function(){var b=_.g.apply(this,arguments)||this;b.displayItemCount=2;b.hasPlaylistThumbnail=!1;b.stackThumbnailSize="large";return b};
_.z(ov,_.g);_.d=ov.prototype;_.d.attached=function(){this.updateInlinePreviewHoverListeners()};
_.d.detached=function(){this.clearInlinePreviewHoverListeners()};
_.d.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.d.computeFirstVideos=function(b,h){return b&&h?b.slice(0,h):[]};
_.d.computeThumbnailWidth=function(b,h){return b?h==="BIG"?500:h==="MASSIVE"?600:h==="MEDIUM"?450:420:360};
_.d.computeThumbnailHeight=function(b,h){return b?h==="BIG"?280:h==="MASSIVE"?337:234:202};
_.d.clearInlinePreviewHoverListeners=function(){var b;(b=this.JSC$16455_inlinePreviewHoverListener)==null||h_(b)};
_.d.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16455_inlinePreviewHoverListener=Yr({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:D0G,thumbnailElement:this.thumbnail})};
_.d.computeHasPlaylistThumbnail=function(b){var h,y;if((((h=b.thumbnailRenderer)==null?0:h.playlistVideoThumbnailRenderer)||((y=b.thumbnailRenderer)==null?0:y.playlistCustomThumbnailRenderer))&&b.thumbnailOverlays)for(h=0;h<b.thumbnailOverlays.length;h++)if(y=void 0,(y=b.thumbnailOverlays[h])==null?0:y.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.tm.Object.defineProperties(ov.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.JSC$16455_inlinePreviewHoverListener)==null?0:RQ(b))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
ov.prototype.dataChanged=ov.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],ov.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Wg),_.f("design:type",Object)],ov.prototype,"ytdLockupBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],ov.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],ov.prototype,"displayItemCount",void 0);_.V([_.C({reflectToAttribute:!0,value:function(){return _.r("enable_desktop_search_bigger_thumbs")}}),
_.f("design:type",Boolean)],ov.prototype,"useBiggerThumbs",void 0);_.V([_.C({reflectToAttribute:!0,value:function(){return _.rH("desktop_search_bigger_thumbs_style")}}),
_.f("design:type",String)],ov.prototype,"biggerThumbsStyle",void 0);_.V([_.C({computed:"computeHasPlaylistThumbnail(data)"}),_.f("design:type",Object)],ov.prototype,"hasPlaylistThumbnail",void 0);_.V([_.C(),_.f("design:type",String)],ov.prototype,"stackThumbnailSize",void 0);_.V([_.to("ytd-thumbnail"),_.f("design:type",HTMLElement)],ov.prototype,"thumbnail",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],ov.prototype,"dataChanged",null);
_.V([_.W("lockupIsHovered"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],ov.prototype,"isHovered",null);_.V([_.Yx({is:"ytd-radio-renderer",disableElementRegistration:!0})],ov);
_.k(ov,"ytd-radio-renderer",function(){if(bJW!==void 0)return bJW;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return bJW=b},{mode:_.Lt("kevlar_poly_si_batch_j058")?1:2});var ht8;_.W2("itemSectionRenderer","showRenderer","ytd-show-renderer");var Mr=function(){return _.g.apply(this,arguments)||this};
_.z(Mr,_.g);Mr.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Mr.prototype.computeThumbnailWidth=function(b){return b?360:246};
Mr.prototype.computeUseProminentThumbs=function(b){return b};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Mr.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Mr.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Mr.prototype,"data",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],Mr.prototype,"isSearch",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.f("design:type",Boolean)],Mr.prototype,"useProminentThumbs",void 0);_.V([_.Yx({is:"ytd-show-renderer",disableElementRegistration:!0})],Mr);
_.k(Mr,"ytd-show-renderer",function(){if(ht8!==void 0)return ht8;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return ht8=b},{mode:1});_.W2("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var nb=function(){var b=_.g.apply(this,arguments)||this;b.isRichGrid=!1;return b};
_.z(nb,_.g);nb.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"}}}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],nb.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],nb.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],nb.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],nb.prototype,"isRichGrid",void 0);_.V([_.Yx({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],nb);
_.k(nb,"ytd-feed-entry-renderer",function(){if(vnw!==void 0)return vnw;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return vnw=b},{mode:1});var yIG;var Xr=function(){return _.g.apply(this,arguments)||this};
_.z(Xr,_.g);Xr.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.V([_.B(_.NT),_.f("design:type",Object)],Xr.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Xr.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],Xr.prototype,"ytComponentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Xr.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,selector:_.e7,value:3}),_.f("design:type",Number)],Xr.prototype,"itemsPerRow",void 0);
_.V([_.Yx({is:"ytd-link-card-renderer",disableElementRegistration:!0})],Xr);
_.k(Xr,"ytd-link-card-renderer",function(){if(yIG!==void 0)return yIG;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return yIG=b},{mode:1});var Slw;var He=function(){return _.g.apply(this,arguments)||this};
_.z(He,_.g);_.d=He.prototype;_.d.configureRendererStamper=function(){return{"data.menu":aQ,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.d.onRendererTap=function(b){if(!this.ytdDismissibleItemBehavior.isDismissed){var h,y=(h=this.data)==null?void 0:h.navigationEndpoint;y&&!_.mf(_.Qk(b),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(y)?_.mf(_.Qk(b),this.hostElement,["A"])||_.Sx(this.hostElement,"yt-navigate",{endpoint:y}):this.ytComponentBehavior.resolveCommand(y,{}))}};
_.d.maybeComputeHref=function(b){return this.ytComponentBehavior.computeHref_(b,!0)};
_.d.getNavigationCommand=function(b){return this.isNavigationCommand(b)?b:null};
_.d.isNavigationCommand=function(b){return b?_.c(b,_.O0)||_.c(b,_.wO)||_.c(b,_.jH)?!0:!1:!1};
He.prototype.onRendererTap=He.prototype.onRendererTap;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],He.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],He.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.rP),_.f("design:type",Object)],He.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],He.prototype,"ytComponentBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],He.prototype,"data",void 0);_.V([_.u3("tap"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],He.prototype,"onRendererTap",null);_.V([_.Yx({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],He);
_.k(He,"ytd-lumiere-promo-item-image-renderer",function(){if(Slw!==void 0)return Slw;var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return Slw=b},{mode:1});var Feo;var u0=function(){return _.g.apply(this,arguments)||this};
_.z(u0,_.g);u0.prototype.computeLandscapeThumbnail=function(){var b;return((b=this.data)==null?void 0:b.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],u0.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],u0.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],u0.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,selector:_.Jt}),_.f("design:type",Boolean)],u0.prototype,"miniMode",void 0);_.V([_.C({reflectToAttribute:!0,selector:_.e7}),_.f("design:type",Number)],u0.prototype,"itemsPerRow",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.f("design:type",Boolean)],u0.prototype,"landscapeThumbnail",void 0);_.V([_.Yx({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],u0);
_.k(u0,"ytd-lumiere-shelf-details-renderer",function(){if(Feo!==void 0)return Feo;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return Feo=b},{mode:_.Lt("kevlar_poly_si_batch_j076")?1:2});var aZo;var OC=function(){return _.g.apply(this,arguments)||this};
_.z(OC,_.g);OC.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],OC.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],OC.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],OC.prototype,"data",void 0);_.V([_.Yx({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],OC);
_.k(OC,"ytd-primetime-promo-details-renderer",function(){if(aZo!==void 0)return aZo;var b=document.createElement("template");_.D(b,'\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>');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return aZo=b},{mode:1});var daM;var Nr=function(){return _.g.apply(this,arguments)||this};
_.z(Nr,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Nr.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Nr.prototype,"data",void 0);_.V([_.Yx({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],Nr);
_.k(Nr,"ytd-panel-show-style-metadata-renderer",function(){if(daM!==void 0)return daM;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return daM=b},{mode:1});var jo8;var tE=function(){return _.g.apply(this,arguments)||this};
_.z(tE,_.g);_.d=tE.prototype;_.d.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.d.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.d.computeThumbnail=function(b){if(b)return b.smallFormFactorBackgroundThumbnail||b.largeFormFactorBackgroundThumbnail};
_.d.maybeComputeHref=function(b){return this.ytComponentBehavior.computeHref_(b,!0)};
_.d.isNavigationCommand=function(b){return b?_.c(b,_.O0)||_.c(b,_.wO)||_.c(b,_.jH)?!0:!1:!1};
_.d.getNavigationCommand=function(b){return this.isNavigationCommand(b)?b:null};
tE.prototype.onPanelTap=tE.prototype.onPanelTap;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],tE.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],tE.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],tE.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],tE.prototype,"data",void 0);
_.V([_.C({reflectToAttribute:!0,value:!0}),_.f("design:type",Boolean)],tE.prototype,"roundedContainer",void 0);_.V([_.C({reflectToAttribute:!0,value:_.r("web_modern_buttons")}),_.f("design:type",Boolean)],tE.prototype,"modernButtons",void 0);_.V([_.u3("tap"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],tE.prototype,"onPanelTap",null);_.V([_.Yx({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],tE);
_.k(tE,"ytd-primetime-promo-panel-renderer",function(){if(jo8!==void 0)return jo8;var b=document.createElement("template");_.D(b,'\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>');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return jo8=b},{mode:1});_.yd(_.T(function(b){b=_.h6(b,{data:{},useFullWidth:!1});var h=b.data,y=b.useFullWidth;b={};return _.M("teaser-card-view-model",{class:_.P2("ytTeaserCardViewModelHost",(b.ytTeaserCardViewModelUseFullWidth=function(){return y()},b))},_.M(_.H,{cond:function(){return h().onTap},
then:function(S){return _.M(_.YN,{className:"ytTeaserCardViewModelLink",command:S},_.M("div",{class:"ytTeaserCardViewModelImageContainer"},_.M(_.H,{cond:function(){return h().image},
then:function(F){return _.M(_.mI,{data:F,className:"ytTeaserCardViewModelImage",alt:""})}})),_.M("p",{class:"ytTeaserCardViewModelCaption"},function(){return h().caption}))}}))},"ad"),"teaser-card-view-model",{props:{data:_.D4,
useFullWidth:_.D4}});_.yd(_.T(function(b){var h=b.data;var y=function(){var S;return _.EF((S=h())==null?void 0:S.iconThemedImage)};
return _.M("yt-edu-card-view-model",null,_.M(_.qY,{contentId:function(){return h().nudgeId}},function(){return _.M("div",{class:_.P2("ytEduCardViewModelHost",function(){return h().trimStyle==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?null:"ytEduCardViewModelGradientTrim"})},_.M("div",{class:"ytEduCardViewModelTopCornerButton"},_.M(_.rC,{data:function(){return h().dismissButton}},{buttonViewModel:_.EG})),_.M("div",{class:"ytEduCardViewModelContentWrapper"},_.M("div",{class:"ytEduCardViewModelHeaderImage"},_.M(_.H,
{cond:y,
then:function(S){return _.M(_.mI,{data:S,alt:"",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.M("div",{class:"ytEduCardViewModelTextContainer"},_.M("div",{class:"ytEduCardViewModelTitle"},_.M(_.zv,{text:function(){return h().title}})),_.M("div",{class:"ytEduCardViewModelSubtitle"},_.M(_.zv,{text:function(){return h().subtitle}}))),_.M("div",{class:"ytEduCardViewModelContent"},_.M(_.rC,{data:function(){return h().form}},{nudgeFormViewModel:k5b}))),_.M("div",{class:_.P2("ytEduCardViewModelButtonWrapper",
function(){return h().enableHorizontalButtons?"ytEduCardViewModelHorizontalButtonWrapper":null})},_.M(_.rC,{data:function(){return h().primaryButton}},{buttonViewModel:function(S){return _.M("div",{class:"ytEduCardViewModelPrimaryButton"},_.M(_.EG,{data:S.data}))}}),_.M(_.rC,{data:function(){return h().secondaryButton}},{buttonViewModel:function(S){return _.M("div",{class:"ytEduCardViewModelSecondaryButton"},_.M(_.EG,{data:S.data}))}})))}))},"bd"),"yt-edu-card-view-model",{props:{data:_.D4}});var $aG=new _.ca("RICH_GRID_VIDEO_RENDERER_TOKEN");_.yd(_.T(function(b){var h=b.data;var y=b.showYtInteractionInContent;var S=function(){return!!h().selectableFeedback};
b=_.L(_.pa(!1,void 0,"qxtgaf"));var F=b.next().value,a=b.next().value;_.wg(function(){var N=_.c(h().primaryButton,_.zc);(N==null?0:N.isToggled)&&a(N.isToggled)});
b=_.Zv(function(N){if(!S())return!1;if(F()){var t;var R=(t=h().selectableFeedback)==null?void 0:t.onDeselect}else{var I;R=(I=h().selectableFeedback)==null?void 0:I.onSelect}R&&_.Va(R,{form:{element:N.target}});a(!F());if(N=_.c(h().primaryButton,_.zc))N.isToggled=F();return!1});
var P=function(){if(!S()){var N,t=(N=h().loggingDirectives)==null?void 0:N.trackingParams;t&&_.QG(_.H9().resolve(_.Le),t)}},K=_.Brn(),n=function(){var N;
return S()?(N=h().selectableFeedback)==null?void 0:N.a11yLabel:void 0},X=function(){return S()?{toggled:F()}:{}},u=_.H9().resolve(_.XS($aG)),O={};
return _.M("yt-feedback-item-renderer",{class:_.P2("ytFeedbackItemRendererHost",(O.ytFeedbackItemRendererSelectableFeedback=S,O)),"on:click":b,"on:keydown":K,title:n,"aria-label":n,"aria-pressed":function(){return S()?F():void 0},
tabindex:function(){return S()?0:void 0},
role:function(){return S()?"button":void 0}},_.M("div",{class:"ytFeedbackItemRendererContentContainer"},_.M(_.rC,{data:function(){return h().content}},{videoRenderer:function(N){return _.M(u,{data:N.data,
showYtInteraction:y})},
lockupViewModel:function(N){return _.M(_.vQ,{data:N.data,containerType:2})}})),_.M("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.M(_.rC,{data:function(){return h().primaryButton}},{toggleButtonViewModel:function(N){return _.M(_.Ke,{data:N.data,
buttonShapeOverrides:X,disableExplicitClickLogging:!0,onToggle:P})}})))},"cd"),"yt-feedback-item-renderer",{props:{data:_.D4,
showYtInteractionInContent:_.D4}});var rj=function(){var b=_.g.apply(this,arguments)||this;b.isShortsGrid=!1;b.isCompactGrid=!1;b.isShortsPanelGrid=!1;b.renderedFromRichGrid=!1;b.isInFirstColumn=!1;b.noGutterMargins=!1;b.noBottomMargin=!1;b.halfBottomMargin=!1;b.isInlineGroupItem=!1;b.insetMetadata=!1;b.noBottomMarginInAds=!0;b.force16By9ThumbnailAspectRatio=!1;b.useCompactList=!1;b.containerType=2;b.thumbnailTargetWidth=9999;b.isResponsiveGrid=!1;b.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};b.hoverListener=
b.hover.bind(b);b.leaveListener=b.leave.bind(b);b.highlighted=!1;b.JSC$16491_unsubscribeFromInlinePreviewIsActive=function(){};
return b};
_.z(rj,_.g);_.d=rj.prototype;_.d.computeContainerType=function(){return this.useCompactList?3:2};
_.d.itemWidthChanged=function(){var b;this.thumbnailTargetWidth=(b=this.itemWidth)!=null?b:9999};
_.d.updateIsInFirstColumn=function(){var b;this.isInFirstColumn=((b=this.data)==null?void 0:b.colIndex)===0};
_.d.observerContainerType=function(){if(this.lockup){var b=this.lockup;b.containerType=this.containerType;b.sizing=this.sizing;b.typographyBump=this.typographyBump;b.itemWidth=this.itemWidth}this.richGridMedia&&_.r("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.r("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.d.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer",
params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{typographyBump:"[[richTypographyBump]]",showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",
properties:{insetMetadata:"[[insetMetadata]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",properties:{aspectRatio:"[[shortsLockupViewModelAspectRatio]]",inlineMetadata:"[[insetMetadata]]",scrimStyle:"[[shortsLockupViewModelScrimStyle]]",useDefaultStyle:"[[isShortsPanelGrid]]"}},feedbackItemRenderer:{component:"yt-feedback-item-renderer",properties:{showYtInteractionInContent:"[[showYtInteractionOnRichGridMedia]]"}},videoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},
properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",typographyBump:"[[richTypographyBump]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",
typographyBump:"[[richTypographyBump]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},
displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]",typographyBump:"[[richTypographyBump]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",eduCardViewModel:"yt-edu-card-view-model",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",
params:{isRichGrid:!0}},expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"},gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}}}}}};
_.d.leave=function(b){b=b.relatedTarget;var h=document.querySelector("ytd-video-preview");b&&h&&_.KZ(h).contains(b)||this.removeAndCleanupHighlight()};
_.d.hover=function(){var b;!this.highlighted&&(b=this.data)!=null&&b.onFocusEffect&&(this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(b=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:b,boxShadow:"0 0 0 10px "+b})),this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border"),this.highlighted=!0)};
_.d.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};
_.d.registerHoverHighlightListeners=function(){var b=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16491_unsubscribeFromInlinePreviewIsActive=_.Fq(_.hP(),_.kv8,function(h){b.highlighted&&!h&&b.removeAndCleanupHighlight()})};
_.d.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16491_unsubscribeFromInlinePreviewIsActive()};
_.d.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.d.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.d.getBackgroundColor=function(){var b,h,y=(b=this.data)==null?void 0:(h=b.onFocusEffect)==null?void 0:h.onFocusColor;if(y){if(document.documentElement.hasAttribute("dark")&&(y==null?0:y.darkTheme))return s0(y==null?void 0:y.darkTheme);if(y==null?0:y.lightTheme)return s0(y==null?void 0:y.lightTheme)}};
_.d.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var b=_.UE(),h,y,S;b&&((h=this.data)==null?0:h.trackingParams)&&((y=this.data)==null?void 0:y.colIndex)!=null&&((S=this.data)==null?void 0:S.rowIndex)!=null&&_.xp(b,_.I_(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.d.isSlimMediaRenderer=function(b){return!!_.c(b==null?void 0:b.content,_.A0W)||!!_.c(b==null?void 0:b.content,W3b)||!!_.c(b==null?void 0:b.content,_.HA)||!!_.c(b==null?void 0:b.content,beG)};
_.d.isPostRenderer=function(){var b,h;return!!_.c((b=this.data)==null?void 0:b.content,wa5)||!!_.c((h=this.data)==null?void 0:h.content,l6N)};
_.d.computeIsGameCardShelf=function(){var b;return!!_.c((b=this.data)==null?void 0:b.content,$ee)};
_.d.computeIsMiniGameCardShelf=function(){var b,h;return!!_.c((b=this.data)==null?void 0:b.content,rQe)||!!_.c((h=this.data)==null?void 0:h.content,cQa)};
_.d.computeIsTeaserCard=function(){var b;return!!_.c((b=this.data)==null?void 0:b.content,cQa)};
_.d.computeIsSelectableFeedbackItem=function(){var b,h;return!((h=_.c((b=this.data)==null?void 0:b.content,zIP))==null||!h.selectableFeedback)};
_.d.computeContainsLumierePosters=function(){var b,h;return((h=_.c((b=this.data)==null?void 0:b.content,SY7))==null?void 0:h.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.d.computeIsExpandOnHoverCardShelf=function(){var b;return!!_.c((b=this.data)==null?void 0:b.content,yDM)};
_.d.computeIsLinkCardShelf=function(){var b;return!!_.c((b=this.data)==null?void 0:b.content,KqG)};
_.d.computeIsReelItemStyleAvatarCircle=function(b){var h;return((h=_.c(b==null?void 0:b.content,_.HA))==null?void 0:h.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.d.computeIsLinkCardFullWidth=function(b,h){var y;return((y=_.c(b==null?void 0:b.content,KqG))==null?void 0:y.useFullWidth)||h<=2};
_.tm.Object.defineProperties(rj.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){var b;return _.r("web_hover_effect_refactor")&&_.c((b=this.data)==null?void 0:b.content,_.odb)?!1:this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.r("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){var b;if(_.r("web_hover_effect_refactor")&&_.c((b=this.data)==null?void 0:b.content,_.odb))return!1;var h;return!((h=this.data)==null||!h.onFocusEffect)||_.r("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return 1}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){var b;return{useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0,onFocusEffect:_.r("web_hover_effect_refactor")?(b=this.data)==null?void 0:b.onFocusEffect:void 0}}}});
rj.prototype.richGridHoverHighlightChanged=rj.prototype.richGridHoverHighlightChanged;rj.prototype.observerContainerType=rj.prototype.observerContainerType;rj.prototype.updateIsInFirstColumn=rj.prototype.updateIsInFirstColumn;rj.prototype.itemWidthChanged=rj.prototype.itemWidthChanged;_.V([_.B(_.NT),_.f("design:type",Object)],rj.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],rj.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],rj.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],rj.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Wg),_.f("design:type",Object)],rj.prototype,"ytdLockupBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],rj.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.f("design:type",Boolean)],rj.prototype,"isPost",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.f("design:type",Boolean)],rj.prototype,"containsLumierePosters",void 0);_.V([_.C({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.f("design:type",Boolean)],rj.prototype,"isSlimMedia",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.f("design:type",Boolean)],rj.prototype,"isGameCardShelf",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.f("design:type",Boolean)],rj.prototype,"isMiniGameCardShelf",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.f("design:type",Boolean)],rj.prototype,"isTeaserCard",void 0);_.V([_.C({computed:"computeIsSelectableFeedbackItem(data)"}),_.f("design:type",Boolean)],rj.prototype,"isSelectableFeedbackItem",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],rj.prototype,"isShortsGrid",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],rj.prototype,"isSlimGrid",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],rj.prototype,"isCompactGrid",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],rj.prototype,"isShortsPanelGrid",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.f("design:type",Boolean)],rj.prototype,"isExpandOnHoverCardShelf",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.f("design:type",Boolean)],rj.prototype,"isLinkCardShelf",void 0);_.V([_.C({reflectToAttribute:!0,selector:_.e7,value:3}),_.f("design:type",Number)],rj.prototype,"itemsPerRow",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],rj.prototype,"renderedFromRichGrid",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],rj.prototype,"isInFirstColumn",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],rj.prototype,"noGutterMargins",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],rj.prototype,"noBottomMargin",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],rj.prototype,"halfBottomMargin",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],rj.prototype,"isInlineGroupItem",void 0);_.V([_.C(),_.f("design:type",Object)],rj.prototype,"insetMetadata",void 0);_.V([_.C(),_.f("design:type",Object)],rj.prototype,"noBottomMarginInAds",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],rj.prototype,"isShelfItem",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.f("design:type",Boolean)],rj.prototype,"isReelItemStyleAvatarCircle",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.f("design:type",Boolean)],rj.prototype,"isLinkCardFullWidth",void 0);_.V([_.C(),_.f("design:type",Object)],rj.prototype,"force16By9ThumbnailAspectRatio",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],rj.prototype,"useCompactList",void 0);_.V([_.C(),_.f("design:type",String)],rj.prototype,"sizing",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],rj.prototype,"typographyBump",void 0);_.V([_.C(),_.f("design:type",Number)],rj.prototype,"itemWidth",void 0);_.V([_.C(),_.f("design:type",Boolean)],rj.prototype,"isHomeShelf",void 0);_.V([_.C(),_.f("design:type",Boolean)],rj.prototype,"isHomeGrid",void 0);
_.V([_.to("yt-lockup-view-model"),_.f("design:type",HTMLElement)],rj.prototype,"lockup",void 0);_.V([_.to("ytd-rich-grid-media"),_.f("design:type",HTMLElement)],rj.prototype,"richGridMedia",void 0);_.V([_.to("ytd-ad-slot-renderer"),_.f("design:type",HTMLElement)],rj.prototype,"adSlotRenderer",void 0);_.V([_.C({computed:"computeContainerType(useCompactList)"}),_.f("design:type",Object)],rj.prototype,"containerType",void 0);_.V([_.C(),_.f("design:type",Object)],rj.prototype,"thumbnailTargetWidth",void 0);
_.V([_.W("showYtInteractionOnRichItem"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],rj.prototype,"showYtInteractionOnRichGridMedia",null);_.V([_.W("isSelectableFeedbackItem","richGridHoverHighlight"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],rj.prototype,"showYtInteractionOnRichItem",null);_.V([_.W("typographyBump","isHomeGrid"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],rj.prototype,"richTypographyBump",null);
_.V([_.C({reflectToAttribute:!0}),_.W("data","isShortsGrid","isCompactGrid"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],rj.prototype,"richGridHoverHighlight",null);_.V([_.W("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.f("design:type",Number),_.f("design:paramtypes",[])],rj.prototype,"shortsLockupViewModelAspectRatio",null);_.V([_.W("isInlineGroupItem"),_.f("design:type",Number),_.f("design:paramtypes",[])],rj.prototype,"shortsLockupViewModelScrimStyle",null);
_.V([_.OB("itemWidth"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],rj.prototype,"itemWidthChanged",null);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],rj.prototype,"updateIsInFirstColumn",null);_.V([_.OB("containerType","sizing","typographyBump"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],rj.prototype,"observerContainerType",null);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],rj.prototype,"isResponsiveGrid",void 0);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],rj.prototype,"lockupExperiments",null);_.V([_.OB("richGridHoverHighlight"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],rj.prototype,"richGridHoverHighlightChanged",null);_.V([_.Yx({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],rj);
_.Lee=_.$S()(rj,"ytd-rich-item-renderer",function(){if(qOP===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);qOP=b}b=qOP;return b},{mode:_.Lt("kevlar_poly_si_batch_j028")?1:2});var GbY={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var buN=_.mk(_.Mt("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var VTq={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},iBM={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},fuU={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var PTo;var ce=function(){var b=_.g.apply(this,arguments)||this;b.useResponsiveGrid=!1;b.hidden=!1;b.isShowMoreHidden=!1;b.isShowLessHidden=!0;b.hasExpansionButton=!1;b.isInnerShelf=!1;b.allVideosCount=0;b.allPlaylistCount=0;b.haveSmartDownloadsCompleted=!1;b.restrictContentsOverflow=!1;b.firstShownIndex=0;b.horizontalOffset=0;b.atEnd=!0;b.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
b.disableServiceRequestPropagation=function(h){h.stopPropagation()};
b.nextClick=function(){var h;(h=b.data)!=null&&h.contents&&(b.firstShownIndex+=b.currentElementsPerRow,b.updateHorizontalOffset(),b.updateHorizontalItemVisibility())};
b.previousClick=function(){var h;(h=b.data)!=null&&h.contents&&(b.firstShownIndex-=b.currentElementsPerRow,b.updateHorizontalOffset(),b.updateHorizontalItemVisibility())};
return b};
_.z(ce,_.g);_.d=ce.prototype;
_.d.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:_.QC("HTML_DIR")==="rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.d.attached=function(){this.requestElementsPerRow();_.r("disable_service_request_rich_shelf_killswitch")||this.contents.addEventListener("yt-service-request-sent",this.disableServiceRequestPropagation)};
_.d.detached=function(){_.r("disable_service_request_rich_shelf_killswitch")||this.contents.removeEventListener("yt-service-request-sent",this.disableServiceRequestPropagation)};
_.d.refreshGridLayoutNew=function(){var b;if((b=this.data)!=null&&b.contents&&this.containerWidth){var h;((h=this.data.responsiveContainerConfiguration)==null?0:h.responsiveSize)?(b=_.SZj(this.data.responsiveContainerConfiguration,this.containerWidth,2),b=_.kr(Object.assign({},b,{standardUnitMinWidth:this.standardUnitMinWidth}))):b=_.kr({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=b.typographyBump;if(this.elementsPerRow!==
b.numItems||this.gutter!==b.gutter)this.elementsPerRow=b.numItems,this.gutter=b.gutter,this.itemWidth=b.itemWidth,_.nZ(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":b.gutter+"px"})}};
_.d.computeSizing=function(){if(!this.isLumiere){var b=_.r$f(this.data);return b?b:this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.d.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.d.computeButton=function(b){var h=_.c(b,_.OU);b=Object.assign({},_.c(b,_.OU));return h?(b.text||(b.text={simpleText:b.tooltip}),b.style="STYLE_MONO_OUTLINE",b.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",b):h};
_.d.onRowIndexChange=function(){var b=_.UE(),h,y;((h=this.data)==null?0:h.trackingParams)&&((y=this.data)==null?void 0:y.rowIndex)!=null&&b&&_.xp(b,_.I_(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.d.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var b,h=((b=this.getRichItemRenderers()[0])==null?void 0:b.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*h;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.d.requestElementsPerRow=function(){_.Sx(this.hostElement,"yt-request-elements-per-row")};
_.d.onUpdateElementsPerRowAction=function(b,h,y,S,F,a){if(this.containerWidth!==a&&(this.containerWidth=a,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&b&&h&&y&&S&&F&&(this.elementsPerRow!==b||this.postsPerRow!==h||this.slimItemsPerRow!==y||this.gameCardsPerRow!==S||this.miniGameCardsPerRow!==F)&&(this.elementsPerRow=b,this.postsPerRow=h,this.slimItemsPerRow=y,this.gameCardsPerRow=S,this.miniGameCardsPerRow=F,this.updateItemVisibility())};
_.d.isExpandedChanged=function(){var b=this.getRichItemRenderers(),h=this.isExpanded;b.forEach(function(y){y.halfBottomMargin=h})};
_.d.isCollapsedChanged=function(){var b=this.getRichItemRenderers(),h=this.isCollapsed;b.forEach(function(y){y.noBottomMargin=h})};
_.d.getRichItemRenderers=function(){return _.$x(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.d.updateItemVisibility=function(){var b=this;if(this.data&&this.data.contents){var h=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(S,F){var a;((a=b.data)==null?0:a.isExpanded)?(S.hidden=F>h-1,S.ytRendererBehavior.markDirty()):S.hidden=F>b.currentElementsPerRow-1||F>h-1});
var y=this.data.contents.length<=this.currentElementsPerRow;this.isShowMoreHidden=!this.data.showMoreButton||y||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||y||!this.data.isExpanded||this.isTruncated;this.hasExpansionButton=!this.isShowMoreHidden||!this.isShowLessHidden}this.contents.style.visibility="visible"}};
_.d.setHeightToSingleRow=function(){var b=this.getRichItemRenderers(),h=Number.parseInt(getComputedStyle(b[0]).marginBottom,10)||0;b=b.slice(0,this.currentElementsPerRow).reduce(function(y,S){return Math.max(y,S.getBoundingClientRect().height+h)},0);
this.contents.style.height=b+"px"};
_.d.focusNextExpandedItem=function(){var b;((b=this.data)==null?0:b.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.d.focusItem=function(b,h){var y=this.getRichItemRenderers();if(y[b]&&(b=y[b].querySelector(".focus-on-expand"))){if(h){var S;(S=y[this.currentElementsPerRow])==null||S.scrollIntoView({behavior:"smooth",block:"center"})}b.focus({preventScroll:!0})}};
_.d.onDataChange=function(){var b=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var h;if((h=this.data)==null?0:h.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.Ob(this,function(){b.updateItemVisibility()});
var y;if((y=this.data)==null?0:y.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.nZ(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),h=0;h<this.data.contents.length;h++)y=_.c(this.data.contents[h],_.FI)||{},y.colIndex=h,y.rowIndex=this.data.rowIndex};
_.d.handleRerenderDownloadsData=function(){_.r("kevlar_modern_downloads_page")&&this.entityDrivenRichShelfData&&(this.set("data.contents",this.entityDrivenRichShelfData.contents),this.entityDrivenRichShelfData.subtitle&&this.set("data.subtitle",this.entityDrivenRichShelfData.subtitle),this.updateItemVisibility())};
_.d.blockInlinePreview=function(b){var h=this,y;return _.Z(function(S){(y=h.inlinePreviewIsEnabled)&&h.ytdReduxBehavior.dispatch(_.SCe(!1));return S.return(new Promise(function(F){b(function(){y&&h.ytdReduxBehavior.dispatch(_.SCe(!0));F()})}))})};
_.d.expandShelf=function(){var b=this;if(this.data){var h,y=(h=_.c(this.data.showMoreButton,_.OU))==null?void 0:h.trackingParams;y&&_.QG(_.rU(),y);this.set("data.isExpanded",!0);this.blockInlinePreview(function(S){b.setHeightToSingleRow();b.updateItemVisibility();b.contents.style.height=b.contents.scrollHeight+"px";_.xP.addJob(function(){b.contents.style.height="auto";b.focusNextExpandedItem();S()},2,200)})}};
_.d.collapseShelf=function(){var b=this;return _.Z(function(h){if(h.nextAddress==1){if(!b.data)return h.return();b.set("data.isExpanded",!1);return h.yield(b.blockInlinePreview(function(y){b.contents.style.height=b.contents.scrollHeight+"px";b.setHeightToSingleRow();_.xP.addJob(function(){b.updateItemVisibility();b.contents.style.height="auto";y()},2,200)}),2)}_.Sx(b.hostElement,"yt-rich-shelf-renderer-collapse",b.data.trackingParams);
b.focusItem(0,!1);_.g3(h)})};
_.d.updateArrowButtonStatus=function(){this.getRichItemRenderers();var b,h;var y=((b=this.data)==null?void 0:(h=b.contents)==null?void 0:h.length)||0;this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=y};
_.d.onChildElementFocus=function(b){this.hasChevronButtons&&(b=b.target.closest("#contents > *"),this.contents.contains(b)&&(b.offsetLeft<this.horizontalOffset?this.previousClick():b.offsetLeft+b.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.d.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.QC("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.d.updateHorizontalOffset=function(){var b=this.getRichItemRenderers(),h,y;var S=((h=this.data)==null?void 0:(y=h.contents)==null?void 0:y.length)||0;var F;b=((F=b[0])==null?void 0:F.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>S?this.firstShownIndex=S-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*b};
_.d.isSlimMediaShelfRenderer=function(){var b,h,y,S=(y=_.c((b=this.data)==null?void 0:(h=b.contents)==null?void 0:h[0],_.FI))==null?void 0:y.content;return!!(_.c(S,_.A0W)||_.c(S,W3b)||_.c(S,_.HA)||_.c(S,beG))};
_.d.isGameCardShelf=function(){var b,h,y,S=(y=_.c((b=this.data)==null?void 0:(h=b.contents)==null?void 0:h[0],_.FI))==null?void 0:y.content;return!!_.c(S,$ee)};
_.d.isMiniGameCardShelf=function(){var b,h,y,S=(y=_.c((b=this.data)==null?void 0:(h=b.contents)==null?void 0:h[0],_.FI))==null?void 0:y.content;return!!_.c(S,rQe)||!!_.c(S,cQa)};
_.d.hasGameBoxArtAvatarStyle=function(){var b;return((b=this.data)==null?void 0:b.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.d.hasRoundedGameBoxArtAvatarStyle=function(){var b;return((b=this.data)==null?void 0:b.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.d.isShortsShelf=function(){var b,h,y,S=(y=_.c((b=this.data)==null?void 0:(h=b.contents)==null?void 0:h[0],_.FI))==null?void 0:y.content;return!!_.c(S,_.HA)||!!_.c(S,beG)};
_.d.isPostShelfRenderer=function(){var b,h,y,S=(y=_.c((b=this.data)==null?void 0:(h=b.contents)==null?void 0:h[0],_.FI))==null?void 0:y.content;return!(!_.c(S,wa5)&&!_.c(S,l6N))};
_.d.isLumiereShelf=function(){var b,h,y=_.c((b=this.data)==null?void 0:(h=b.contents)==null?void 0:h[0],_.FI);return!!_.c(y==null?void 0:y.content,SY7)};
_.d.isLumiereShelfWithPosters=function(){var b,h,y=_.c((b=this.data)==null?void 0:(h=b.contents)==null?void 0:h[0],_.FI),S;return((S=_.c(y==null?void 0:y.content,SY7))==null?void 0:S.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.d.isExpandOnHoverCardShelf=function(){var b,h,y,S=(y=_.c((b=this.data)==null?void 0:(h=b.contents)==null?void 0:h[0],_.FI))==null?void 0:y.content;return!!_.c(S,yDM)};
_.d.computeHasFeaturedBadge=function(){var b,h,y=_.c((b=this.data)==null?void 0:(h=b.badges)==null?void 0:h[0],_.rV7);return y?y.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.d.computeHasPaygatedFeaturedBadge=function(){var b,h,y=_.c((b=this.data)==null?void 0:(h=b.badges)==null?void 0:h[0],_.rV7);return y?(y==null?void 0:y.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.d.computeHeaderHidden=function(){var b,h,y,S,F,a;return!((b=this.data)==null?0:b.icon)&&!((h=this.data)==null?0:h.title)&&!((y=this.data)==null?0:y.subtitle)&&!((S=this.data)==null?0:S.thumbnail)&&!((F=this.data)==null?0:F.badges)&&!((a=this.data)==null?0:a.menu)};
_.d.showCtaButton=function(){var b;return!((b=this.data)==null||!b.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.d.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.d.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.d.computeForce16By9ThumbnailAspectRatio=function(){var b,h;return((b=this.data)==null?void 0:(h=b.responsiveContainerConfiguration)==null?void 0:h.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.d.onSectionReactiveDismissal=function(b,h,y){var S,F;var a=(S=this.data)==null?void 0:(F=S.targetingContext)==null?void 0:F.targetGroupId;this&&a&&h.targetGroupId&&a.includes(h.targetGroupId)?(S=this.rowIndex,b=S===void 0?!1:!(h.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&S<=b)):b=!1;b&&(this.hidden=y)};
_.tm.Object.defineProperties(ce.prototype,{isExpanded:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.data)==null||!b.isExpanded)}},
isCollapsed:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.data)==null?0:b.isExpanded)}},
currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var b=this.elementsPerRow;this.isPostShelfRenderer()?b=this.postsPerRow:this.isSlimMediaShelfRenderer()?b=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?b=this.slimItemsPerRow-1:this.isGameCardShelf()?b=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(b=this.miniGameCardsPerRow);return b}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&this.isHomePage}},
showBottomDivider:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.data)==null?0:b.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var b,h;return!((b=this.data)==null||!b.previousButton)&&!((h=this.data)==null||!h.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 b;return((b=_.H9().resolve(_.bM).getCurrentPage())==null?void 0:b.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var b,h,y,S;return!((b=this.data)==null?0:(h=b.thumbnail)==null?0:(y=h.accessibility)==null?0:(S=y.accessibilityData)==null?0:S.label)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.data)==null?void 0:b.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
ce.prototype.onChildElementFocus=ce.prototype.onChildElementFocus;ce.prototype.handleRerenderDownloadsData=ce.prototype.handleRerenderDownloadsData;ce.prototype.onDataChange=ce.prototype.onDataChange;ce.prototype.isCollapsedChanged=ce.prototype.isCollapsedChanged;ce.prototype.isExpandedChanged=ce.prototype.isExpandedChanged;ce.prototype.onRowIndexChange=ce.prototype.onRowIndexChange;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],ce.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],ce.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.rP),_.f("design:type",Object)],ce.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],ce.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],ce.prototype,"ytdReduxBehavior",void 0);
_.V([_.C({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.f("design:type",Object)],ce.prototype,"useResponsiveGrid",void 0);_.V([_.C(),_.f("design:type",Object)],ce.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Number)],ce.prototype,"standardUnitMinWidth",void 0);_.V([_.C({reflectToAttribute:!0,value:3}),_.f("design:type",Number)],ce.prototype,"elementsPerRow",void 0);_.V([_.C({value:3}),_.f("design:type",Number)],ce.prototype,"postsPerRow",void 0);
_.V([_.C({value:6}),_.f("design:type",Number)],ce.prototype,"slimItemsPerRow",void 0);_.V([_.C({value:6}),_.f("design:type",Number)],ce.prototype,"gameCardsPerRow",void 0);_.V([_.C({value:6}),_.f("design:type",Number)],ce.prototype,"miniGameCardsPerRow",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],ce.prototype,"hidden",void 0);_.V([_.C(),_.f("design:type",Object)],ce.prototype,"isShowMoreHidden",void 0);
_.V([_.C(),_.f("design:type",Object)],ce.prototype,"isShowLessHidden",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],ce.prototype,"hasExpansionButton",void 0);_.V([_.W("data.isExpanded"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],ce.prototype,"isExpanded",null);_.V([_.W("data.isExpanded"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],ce.prototype,"isCollapsed",null);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],ce.prototype,"isInnerShelf",void 0);_.V([_.C({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.f("design:type",Boolean)],ce.prototype,"isShorts",void 0);_.V([_.C({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.f("design:type",Boolean)],ce.prototype,"isLumiere",void 0);_.V([_.C({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.f("design:type",Boolean)],ce.prototype,"hasBoxArtThumbnailStyle",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.f("design:type",Boolean)],ce.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.f("design:type",Boolean)],ce.prototype,"hasFeaturedBadge",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.f("design:type",Boolean)],ce.prototype,"hasPaygatedFeaturedBadge",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.f("design:type",Boolean)],ce.prototype,"isHeaderHidden",void 0);_.V([_.C({selector:_.l4N}),_.f("design:type",Object)],ce.prototype,"allVideosCount",void 0);_.V([_.C({selector:yAr}),_.f("design:type",Object)],ce.prototype,"allPlaylistCount",void 0);_.V([_.C({selector:F08}),_.f("design:type",Object)],ce.prototype,"haveSmartDownloadsCompleted",void 0);
_.V([_.C({selectorArgs:["entitySelectorType"],selector:function(b,h){if(_.r("kevlar_modern_downloads_page")&&h&&h!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var y=b.entities;switch(h){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":h=_.At(y);b=Oo(h);var S=_.RU(h);y=_.pi(y);y=_.aU(lur(S,y,h.length));return{contents:b,subtitle:y};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return y=_.At(y),{contents:Oo(y)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return y=
_.Un(y),{contents:Oo(y)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return y=_.RG5(y),{contents:Oo(y)};default:_.vX(new _.Gn("Error: entitySelectorType defined but not matched in selector.",b,h))}}}}),
_.f("design:type",Object)],ce.prototype,"entityDrivenRichShelfData",void 0);_.V([_.C({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.f("design:type",Boolean)],ce.prototype,"hasTopCtaButton",void 0);_.V([_.C({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.f("design:type",Boolean)],ce.prototype,"hasBottomCtaButton",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.f("design:type",Boolean)],ce.prototype,"force16By9ThumbnailAspectRatio",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],ce.prototype,"restrictContentsOverflow",void 0);_.V([_.C({selector:_.VSn}),_.f("design:type",Boolean)],ce.prototype,"inlinePreviewIsEnabled",void 0);_.V([_.C({computed:"computeSizing(data)"}),_.f("design:type",String)],ce.prototype,"sizing",void 0);
_.V([_.C(),_.f("design:type",Boolean)],ce.prototype,"typographyBump",void 0);_.V([_.C(),_.f("design:type",Number)],ce.prototype,"itemWidth",void 0);_.V([_.C(),_.f("design:type",Object)],ce.prototype,"firstShownIndex",void 0);_.V([_.C(),_.f("design:type",Object)],ce.prototype,"horizontalOffset",void 0);_.V([_.C(),_.f("design:type",Object)],ce.prototype,"atEnd",void 0);_.V([_.to("#contents"),_.f("design:type",HTMLElement)],ce.prototype,"contents",void 0);
_.V([_.OB("data.rowIndex"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],ce.prototype,"onRowIndexChange",null);_.V([_.OB("isExpanded"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],ce.prototype,"isExpandedChanged",null);_.V([_.OB("isCollapsed"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],ce.prototype,"isCollapsedChanged",null);
_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],ce.prototype,"onDataChange",null);_.V([_.OB("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],ce.prototype,"handleRerenderDownloadsData",null);_.V([_.u3("focusin"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],ce.prototype,"onChildElementFocus",null);
_.V([_.C({reflectToAttribute:!0}),_.W("data","isHomePage"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],ce.prototype,"isTruncated",null);_.V([_.C({reflectToAttribute:!0}),_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],ce.prototype,"showBottomDivider",null);_.V([_.C({reflectToAttribute:!0}),_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],ce.prototype,"hasChevronButtons",null);
_.V([_.W("firstShownIndex"),_.f("design:type",Object),_.f("design:paramtypes",[])],ce.prototype,"previousButtonOverride",null);_.V([_.W("atEnd"),_.f("design:type",Object),_.f("design:paramtypes",[])],ce.prototype,"nextButtonOverride",null);_.V([_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],ce.prototype,"isHomePage",null);_.V([_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],ce.prototype,"thumbnailAriaHidden",null);
_.V([_.W("data"),_.f("design:type",String),_.f("design:paramtypes",[])],ce.prototype,"entitySelectorType",null);_.V([_.Yx({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],ce);
_.KeN=_.$S()(ce,"ytd-rich-shelf-renderer",function(){if(PTo===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);PTo=b}b=PTo;return b},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.Lt("kevlar_poly_si_batch_j028")?1:2});var ZJP;_.yd(_.gE,"yt-badge-view-model",{props:{data:_.D4,class:_.D4,workaroundShortsIsThumbnailBadge:_.D4,modern:_.D4,numBadgesInRow:_.D4,clipTextOverflow:_.D4,inheritTypography:_.D4}});_.yd(eBM,"yt-slimline-survey-view-model",{props:{data:_.D4}});var Rv=function(){var b=_.g.apply(this,arguments)||this;b.tileLottieAnimationRef={};b.backgroundLottieAnimationRef={};b.isOnHoverBehaviorForLottieEnabled=!0;b.useBiggerShowcaseImage=_.r("enable_desktop_search_bigger_thumbs");b.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return b};
_.z(Rv,_.g);_.d=Rv.prototype;_.d.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.d.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",toggleButtonViewModel:"yt-toggle-button-view-model",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",
mapping:{menuRenderer:"ytd-menu-renderer"}},"data.badge":{id:"badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.additionalBadge":{id:"additional-badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},
"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.d.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var b=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);b!==this.hasTile&&this.set("hasTile",b);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();this.maybeInitializeBackgroundLottie()}};
_.d.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.d.currentColorChanged=function(){this.updateButtonPalette()};
_.d.computeBackgroundStyle=function(b){if(b&&this.data){var h=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var y=_.Fv((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);y&&h.push('background-image: url("'+y+'");')}var S;((S=b.basicColorData)==null?void 0:S.backgroundColor)!==void 0&&h.push("background-color: "+_.CR(b.basicColorData.backgroundColor)+";");return h.join("")}};
_.d.onDarkModeToggledAction=function(b){b!==this.isDarkTheme&&this.set("isDarkTheme",b)};
_.d.getCurrentLogo=function(b,h){if(b)return h?b.darkLogoImage:b.lightLogoImage};
_.d.getCurrentStaticTileImage=function(b,h){if(this.hasStaticTile(b))return b.darkTileImage?h?b.darkTileImage:b.tileImage:b.tileImage};
_.d.computeTitleStyle=function(b){if(this.data&&this.data.title&&b&&b.basicColorData&&b.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.eI(b.basicColorData.foregroundTitleColor)+";"};
_.d.computeSubtitleStyle=function(b){if(this.data&&this.data.subtitle&&b&&b.basicColorData&&b.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.eI(b.basicColorData.foregroundBodyColor)+";"};
_.d.computeSupplementalStyle=function(b){if(this.data&&this.data.supplementalText&&b&&b.supplementalTextColor!==void 0)return b=_.eI(b.supplementalTextColor),"color:"+b+";--yt-endpoint-color:"+b+";--yt-endpoint-hover-color:"+b+";--yt-endpoint-visited-color:"+b+";--yt-formatted-string-bold-font-weight:700;"};
_.d.computeDismissIconStyle=function(b){var h,y;if((b==null?0:(h=b.dismissButtonColorData)==null?0:h.foregroundTitleColor)&&(b==null?0:(y=b.dismissButtonColorData)==null?0:y.backgroundColor))return"--yt-button-color:"+_.CR(b.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.CR(b.dismissButtonColorData.backgroundColor)+";"};
_.d.computeOverflowIconStyle=function(b){var h,y;if((b==null?0:(h=b.dismissButtonColorData)==null?0:h.foregroundTitleColor)&&(b==null?0:(y=b.dismissButtonColorData)==null?0:y.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.CR(b.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.CR(b.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.CR(b.dismissButtonColorData.foregroundTitleColor)+";"};
_.d.computeBannerStyle=function(b){return b?b.toLowerCase().replace(/_/g,"-"):""};
_.d.computeLocation=function(b){switch(b==null?void 0:b.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.d.shouldShowTileSection=function(b,h,y){return!this.shouldExpandLogo(b,h,y)&&h};
_.d.shouldShowExpandedLogoSection=function(b,h,y){return this.shouldExpandLogo(b,h,y)&&b!==void 0&&this.hasLogo(b)};
_.d.shouldExpandLogo=function(b,h,y){return b&&h?!1:y>=2};
_.d.hasStaticTile=function(b){return!(b==null||!b.tileImage)};
_.d.hasTileLottie=function(b){var h;return!!(b==null?0:(h=b.tileLottie)==null?0:h.url)};
_.d.hasLogo=function(b){return this.getCurrentLogo(b,this.isDarkTheme)!==void 0};
_.d.getLogoHeight=function(b){return this.logoWithPadding(b)?"26":"20"};
_.d.getExpandedLogoHeight=function(b){return this.logoWithPadding(b)?"31":"24"};
_.d.getLogoImageId=function(b){return this.logoWithPadding(b)?"logo-image-with-padding":"logo-image"};
_.d.getMaxTitleFontSize=function(b){return b.overrideTitleMaxFontSize?String(b.overrideTitleMaxFontSize):"36"};
_.d.hasBackgroundLottie=function(b){var h;return!!(b==null?0:(h=b.backgroundLottie)==null?0:h.url)};
_.d.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var b,h;(b=this.tileLottieAnimationRef)==null||(h=b.lottieEl)==null||h.play();var y,S;(y=this.backgroundLottieAnimationRef)==null||(S=y.lottieEl)==null||S.play()}};
_.d.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var b,h;(b=this.tileLottieAnimationRef)==null||(h=b.lottieEl)==null||h.pause();var y,S;(y=this.backgroundLottieAnimationRef)==null||(S=y.lottieEl)==null||S.pause()}};
_.d.pauseLottie=function(){var b,h;(b=this.tileLottieAnimationRef)==null||(h=b.lottieEl)==null||h.pause();var y,S;(y=this.backgroundLottieAnimationRef)==null||(S=y.lottieEl)==null||S.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.d.performPrimaryButtonAction=function(){var b,h,y;((b=this.data)==null?0:(h=b.primaryButton)==null?0:(y=h.buttonRenderer)==null?0:y.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.d.requestElementsPerRow=function(){_.Sx(this.hostElement,"yt-request-elements-per-row")};
_.d.updateButtonPalette=function(){if(this.data&&this.currentColorData){var b;((b=this.data.dismissButton)==null?0:b.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 h;if((h=this.data.primaryButton)==null?0:h.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 y;if((y=this.data.secondaryButton)==
null?0:y.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 S;((S=this.data.primaryButton)==null?0:S.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var F;((F=this.data.primaryButton)==null?0:F.toggleButtonViewModel)&&this.set("primaryButton",{toggleButtonViewModel:Object.assign({},this.data.primaryButton.toggleButtonViewModel)});var a;((a=this.data.secondaryButton)==null?0:a.toggleButtonRenderer)&&this.set("secondaryButton",
{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)});var P;((P=this.data.primaryButton)==null?0:P.buttonViewModel)&&this.set("primaryButton",{buttonViewModel:Object.assign({},this.data.primaryButton.buttonViewModel)})}};
_.d.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var b=this.getTileLottieDataBasedOnTheme(),h,y;if(b.url!==((h=this.tileLottiePlayerProps)==null?void 0:(y=h.animationConfig)==null?void 0:y.path)){var S,F;(S=this.tileLottieAnimationRef)==null||(F=S.lottieEl)==null||F.destroy();var a;this.isOnHoverBehaviorForLottieEnabled=!((a=b.settings)==null?0:a.autoplay);var P,K;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(K=(P=b.settings)==null?void 0:P.autoplay)!=null?K:!1,loop:this.getLottieLoopValue(b.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof b.url==="string"?this.tileLottiePlayerProps.animationConfig.path=b.url:this.tileLottiePlayerProps.animationConfig.animationData=b.url}}};
_.d.getOverflowButton=function(b){return _.c(b.overflowButton,aw5)};
_.d.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var b=this.getBackgroundLottieDataBasedOnTheme(),h,y;if(b.url!==((h=this.backgroundLottiePlayerProps)==null?void 0:(y=h.animationConfig)==null?void 0:y.path)){var S,F;(S=this.backgroundLottieAnimationRef)==null||(F=S.lottieEl)==null||F.destroy();var a;this.isOnHoverBehaviorForLottieEnabled=!((a=b.settings)==null?0:a.autoplay);var P,K;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(K=(P=b.settings)==null?void 0:P.autoplay)!=null?K:!1,loop:this.getLottieLoopValue(b.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof b.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=b.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
b.url}}};
_.d.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var b;((b=this.tileLottieAnimationRef)==null?void 0:b.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var h;((h=this.backgroundLottieAnimationRef)==null?void 0:h.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.d.getTileLottieDataBasedOnTheme=function(){var b;if(this.isDarkTheme&&((b=this.data)==null?0:b.darkThemeTileLottie))return this.data.darkThemeTileLottie;var h;return((h=this.data)==null?0:h.tileLottie)?this.data.tileLottie:{}};
_.d.getBackgroundLottieDataBasedOnTheme=function(){var b;if(this.isDarkTheme&&((b=this.data)==null?0:b.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var h;return((h=this.data)==null?0:h.backgroundLottie)?this.data.backgroundLottie:{}};
_.d.onUpdateElementsPerRowAction=function(b){b&&this.elementsPerRow!==b&&(this.elementsPerRow=b)};
_.d.getLottieLoopValue=function(b){return b?b.loop!==void 0?b.loop:b.loopCount?b.loopCount-1:!0:!0};
_.d.logoWithPadding=function(b){var h,y,S;return(b=(h=this.getCurrentLogo(b,this.isDarkTheme))==null?void 0:(y=h.thumbnails)==null?void 0:(S=y[0])==null?void 0:S.height)&&b%31===0?!0:!1};
Rv.prototype.currentColorChanged=Rv.prototype.currentColorChanged;Rv.prototype.themeChanged=Rv.prototype.themeChanged;Rv.prototype.dataChanged=Rv.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Rv.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Rv.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.rP),_.f("design:type",Object)],Rv.prototype,"ytdDismissibleItemBehavior",void 0);
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],Rv.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],Rv.prototype,"ytComponentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Rv.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],Rv.prototype,"primaryButton",void 0);_.V([_.C(),_.f("design:type",Object)],Rv.prototype,"secondaryButton",void 0);
_.V([_.C({reflectToAttribute:!0,value:3}),_.f("design:type",Number)],Rv.prototype,"elementsPerRow",void 0);_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],Rv.prototype,"isDarkTheme",void 0);_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],Rv.prototype,"hasTile",void 0);_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],Rv.prototype,"hasMetadata",void 0);
_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],Rv.prototype,"showLogoImage",void 0);_.V([_.C(),_.f("design:type",Object)],Rv.prototype,"currentColorData",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.f("design:type",String)],Rv.prototype,"bannerStyle",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.f("design:type",String)],Rv.prototype,"location",void 0);
_.V([_.C(),_.f("design:type",Object)],Rv.prototype,"tileLottiePlayerProps",void 0);_.V([_.C(),_.f("design:type",Object)],Rv.prototype,"tileLottieAnimationRef",void 0);_.V([_.C(),_.f("design:type",Object)],Rv.prototype,"backgroundLottiePlayerProps",void 0);_.V([_.C(),_.f("design:type",Object)],Rv.prototype,"backgroundLottieAnimationRef",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Rv.prototype,"useBiggerShowcaseImage",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],Rv.prototype,"isHideEnclosingAction",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Rv.prototype,"dataChanged",null);_.V([_.zj("isDarkTheme"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Rv.prototype,"themeChanged",null);
_.V([_.zj("currentColorData"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Rv.prototype,"currentColorChanged",null);_.V([_.Yx({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],Rv);
_.k(Rv,"ytd-statement-banner-renderer",function(){if(ZJP!==void 0)return ZJP;var b=document.createElement("template");_.D(b,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="statement-banner-content" class="style-scope ytd-statement-banner-renderer">\n    <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n      <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n    </ytd-lottie-player></div>\n    <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n        <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="[[getMaxTitleFontSize(data)]]" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="badge-view-model-container" class="style-scope ytd-statement-banner-renderer">\n              <div id="additional-badge-view-model" hidden="[[!data.additionalBadge]]" class="style-scope ytd-statement-banner-renderer"></div>\n              <div id="badge-view-model" hidden="[[!data.badge]]" class="style-scope ytd-statement-banner-renderer"></div>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return ZJP=b},{mode:1});var o_a;var zJ=function(){var b=_.g.apply(this,arguments)||this;b.isSearch=!1;b.hideShelfHeader=!1;b.engagementPanel=!1;b.disableMouseScroll=!0;b.useFloorScrolling=!0;return b};
_.z(zJ,_.g);zJ.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.Mt("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.Mt("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
zJ.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
zJ.prototype.onDataChanged=zJ.prototype.onDataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],zJ.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],zJ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],zJ.prototype,"isSearch",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],zJ.prototype,"hideShelfHeader",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],zJ.prototype,"engagementPanel",void 0);_.V([_.C(),_.f("design:type",Object)],zJ.prototype,"disableMouseScroll",void 0);_.V([_.C(),_.f("design:type",Object)],zJ.prototype,"useFloorScrolling",void 0);_.V([_.C(),_.f("design:type",Object)],zJ.prototype,"data",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],zJ.prototype,"onDataChanged",null);
_.V([_.Yx({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],zJ);
_.k(zJ,"ytd-reel-shelf-renderer",function(){if(o_a!==void 0)return o_a;var b=document.createElement("template");_.D(b,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-reel-shelf-renderer">\n  <div id="image-container" class="style-scope ytd-reel-shelf-renderer">\n    <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-img-shadow>\n    <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-icon>\n  </div>\n  <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n    <h2 class="style-scope ytd-reel-shelf-renderer">\n      <div id="title-text" class="style-scope ytd-reel-shelf-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-reel-shelf-renderer"> </yt-formatted-string>\n        <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n      </div>\n      <div id="subtitle-text" class="style-scope ytd-reel-shelf-renderer">\n        <dom-repeat as="badge" items="[[data.badges]]" class="style-scope ytd-reel-shelf-renderer">\n          <template class="style-scope ytd-reel-shelf-renderer">\n            <yt-badge-view-model data="[[badge.badgeViewModel]]" class="style-scope ytd-reel-shelf-renderer"></yt-badge-view-model>\n          </template>\n        </dom-repeat>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-reel-shelf-renderer"> </yt-formatted-string>\n      </div>\n    </h2>\n  </div>\n  <div id="menu" class="style-scope ytd-reel-shelf-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-reel-shelf-renderer">\n  <yt-horizontal-list-renderer data="[[data]]" disable-scroll-event-listener="[[disableMouseScroll]]" engagement-panel="[[engagementPanel]]" hide-shelf-header="[[hideShelfHeader]]" is-search="[[isSearch]]" thumbnail-height="[[thumbnailHeight]]" use-floor-scrolling="[[useFloorScrolling]]" class="style-scope ytd-reel-shelf-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return o_a=b},{mode:_.Lt("kevlar_poly_si_batch_j028")?1:2});var MrP;var n_W;n_W=_.bm(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.XSa=_.Ra(n_W);var HJb=_.T(function(b){var h=b.data;b=b.useSmallFont;var y={},S={};return _.M("yt-channel-external-link-view-model",{class:"ytChannelExternalLinkViewModelHost"},_.M(_.H,{cond:function(){return h().favicon},
then:function(F){return _.M(_.mI,{data:F,className:"ytChannelExternalLinkViewModelFavicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.M("div",{class:"ytChannelExternalLinkViewModelContainer"},_.M(_.zv,{text:function(){return h().title},
className:_.P2("ytChannelExternalLinkViewModelTitle",(y.ytChannelExternalLinkViewModelTitleSmallFont=b,y)),ellipsisTruncate:!0,userInput:!0}),_.M(_.zv,{text:function(){return h().link},
className:_.P2("ytChannelExternalLinkViewModelLink",(S.ytChannelExternalLinkViewModelLinkSmallFont=b,S)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"dd");
HJb.idomCompat=!0;_.yd(HJb,"yt-channel-external-link-view-model",{props:{data:_.D4,useSmallFont:_.D4}});_.W2("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var Dx=function(){var b=_.g.apply(this,arguments)||this;b.revealButtonClass="button";b.businessEmailDisplayState="HIDE_SECTION";return b};
_.z(Dx,_.g);_.d=Dx.prototype;_.d.refit=function(){var b=this;_.fZ(function(){_.aw(b.hostElement,"yt-refit-popups-action")});
_.Ob(this,function(){_.aw(b.hostElement,"yt-refit-popups-action")})};
_.d.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Tt(_.XSa),this.businessEmailDisplayState="CAPTCHA")};
_.d.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"};
_.d.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.d.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"}}}};
_.d.computeEmailHref=function(b){return"mailto:"+b};
_.d.computeSafeUrl=function(b){if(b)return _.lJ(b)};
_.d.linkEndpoint=function(b){return _.c(b.onTap,_.sQ)};
_.d.linkEndpointToHref=function(b){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(b))};
_.d.onYtServiceRequestCompleted=function(b){var h;if((h=b.detail.data)==null?0:h.businessEmail)this.businessEmail=b.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var y;if((y=b.detail.data)==null?0:y.errorMessage)this.businessEmailErrorMessage=b.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.d.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var b=this.JSC$16605_captchaTextarea.value;if(b){b={recaptcha_response_token:b,channel_id:this.metadata.channelId};var h=_.c(this.metadata.onBusinessEmailRevealClickCommand,_.sQ);h&&this.ytComponentBehavior.resolveCommand(h,{form:b})}}};
_.d.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.tm.Object.defineProperties(Dx.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var b;return _.c((b=this.data)==null?void 0:b.metadata,jO8)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.c(this.metadata.businessEmailRevealButton,_.cA)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var b=new URL(this.metadata.canonicalChannelUrl);return b.host+b.pathname}}},
formattedDescription:{configurable:!0,enumerable:!0,get:function(){return this.metadata.description?{simpleText:this.metadata.description}:void 0}},
shouldRendereVerifiedPhoneStatus:{configurable:!0,enumerable:!0,get:function(){return this.metadata.phoneVerifiedLabel!==""&&this.learnMoreCommand!==void 0}},
learnMoreCommand:{configurable:!0,enumerable:!0,get:function(){return _.c(this.metadata.learnMoreOnTap,_.sQ)}}});
Dx.prototype.onYtServiceRequestCompleted=Dx.prototype.onYtServiceRequestCompleted;Dx.prototype.businessEmailMetadataChanged=Dx.prototype.businessEmailMetadataChanged;Dx.prototype.refit=Dx.prototype.refit;_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],Dx.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Dx.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Dx.prototype,"ytRendererstamperBehavior",void 0);_.V([_.to("#g-recaptcha-response"),_.f("design:type",HTMLTextAreaElement)],Dx.prototype,"JSC$16605_captchaTextarea",void 0);_.V([_.C(),_.f("design:type",Object)],Dx.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],Dx.prototype,"revealButtonClass",void 0);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],Dx.prototype,"metadata",null);
_.V([_.W("metadata"),_.f("design:type",Object),_.f("design:paramtypes",[])],Dx.prototype,"revealButton",null);_.V([_.W("metadata"),_.f("design:type",Object),_.f("design:paramtypes",[])],Dx.prototype,"channelDisplayUrl",null);_.V([_.zj("metadata"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Dx.prototype,"refit",null);_.V([_.W("metadata"),_.f("design:type",Object),_.f("design:paramtypes",[])],Dx.prototype,"formattedDescription",null);
_.V([_.W("metadata","learnMoreCommand"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Dx.prototype,"shouldRendereVerifiedPhoneStatus",null);_.V([_.W("metadata"),_.f("design:type",Object),_.f("design:paramtypes",[])],Dx.prototype,"learnMoreCommand",null);_.V([_.C(),_.f("design:type",String)],Dx.prototype,"businessEmailDisplayState",void 0);_.V([_.C(),_.f("design:type",String)],Dx.prototype,"businessEmail",void 0);
_.V([_.C(),_.f("design:type",String)],Dx.prototype,"businessEmailErrorMessage",void 0);_.V([_.zj("metadata"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Dx.prototype,"businessEmailMetadataChanged",null);_.V([_.u3("yt-service-request-completed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],Dx.prototype,"onYtServiceRequestCompleted",null);
_.V([_.Yx({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],Dx);
_.k(Dx,"ytd-about-channel-renderer",function(){if(MrP!==void 0)return MrP;var b=document.createElement("template");_.D(b,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-about-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="about-container" class="style-scope ytd-about-channel-renderer">\n  <div id="header-row" hidden="[[!metadata.aboutPanelTitle]]" class="style-scope ytd-about-channel-renderer">\n    <h1 class="style-scope ytd-about-channel-renderer">[[metadata.aboutPanelTitle]]</h1>\n    <div id="dismiss-button" class="style-scope ytd-about-channel-renderer"></div>\n  </div>\n\n  <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.descriptionLabel]]" hidden$="[[!formattedDescription]]">\n  </yt-attributed-string>\n  <yt-attributed-string id="description-container" class="about-section style-scope ytd-about-channel-renderer" data="[[formattedDescription]]" hidden$="[[!formattedDescription]]" user-input="true">\n  </yt-attributed-string>\n\n  <div id="bio-container" class="about-section style-scope ytd-about-channel-renderer" hidden="[[!metadata.formattedBio]]">\n    <h2 class="subheadline style-scope ytd-about-channel-renderer">[[metadata.artistBioLabel]]</h2>\n    <yt-attributed-string id="bio-container" class="about-section style-scope ytd-about-channel-renderer" data="[[metadata.artistBio]]" hidden$="[[!metadata.artistBio]]" user-input="true">\n    </yt-attributed-string>\n    <p class="style-scope ytd-about-channel-renderer">[[metadata.artistBio]]</p>\n  </div>\n\n  <div id="links-section" hidden="[[!metadata.links]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <div id="link-list-container" class="style-scope ytd-about-channel-renderer">\n    </div>\n  </div>\n  <div id="custom-links-section" hidden="[[!metadata.customLinks]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <table id="links-container" class="about-section style-scope ytd-about-channel-renderer">\n      <template is="dom-repeat" items="[[metadata.customLinks]]" as="link" class="style-scope ytd-about-channel-renderer">\n        <tr hidden="[[!linkEndpointToHref(link)]]" class="style-scope ytd-about-channel-renderer">\n          <td class="image-container style-scope ytd-about-channel-renderer">\n            <yt-image data="[[link.favicon]]" width="32" class="style-scope ytd-about-channel-renderer"></yt-image>\n          </td>\n          <td class="href-container style-scope ytd-about-channel-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[linkEndpointToHref(link)]]" data="[[linkEndpoint(link)]]">[[link.label]]</a>\n          </td>\n        </tr>\n      </template>\n    </table>\n  </div>\n\n  <div id="additional-info-container" class="about-section style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.additionalInfoLabel]]"></yt-attributed-string>\n    <table class="style-scope ytd-about-channel-renderer">\n      <tbody class="style-scope ytd-about-channel-renderer"><tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="mail" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.signInForBusinessEmail]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n\n        <td id="view-email-button-container" hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-button-view-model classes="[[revealButtonClass]]" data="[[revealButton]]" scoping-class-name="[[is]]" on-click="onBusinessEmailClick" class="style-scope ytd-about-channel-renderer">\n          </yt-button-view-model>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-about-channel-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-about-channel-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-about-channel-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-about-channel-renderer">[[metadata.businessEmailSubmitCaptchaLabel]] </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-about-channel-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-about-channel-renderer">\n          <a id="email" class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[computeEmailHref(businessEmail)]]" target="_blank">[[businessEmail]]</a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!shouldRendereVerifiedPhoneStatus]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="phone" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <span class="style-scope ytd-about-channel-renderer">[[metadata.phoneVerifiedLabel]]</span>\n          <a class="yt-simple-endpoint phone-status-info style-scope ytd-about-channel-renderer" href$="[[computeHref_(learnMoreCommand)]]" target="_blank" aria-label$="[[metadata.learnMoreA11yLabel]]">\n            <yt-icon icon="info" class="style-scope ytd-about-channel-renderer"></yt-icon>\n          </a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!channelDisplayUrl]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="language" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[metadata.canonicalChannelUrl]]">[[channelDisplayUrl]]</a>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.country]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.country]]" icon="privacy_public" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.country]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.joinedDateText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.joinedDateText]]" icon="info_outline" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.joinedDateText]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.subscriberCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="person_radar" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.subscriberCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.videoCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.videoCountText]]" icon="my_videos" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.videoCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.viewCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.viewCountText]]" icon="trending_up" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.viewCountText]]</td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="button-container" class="style-scope ytd-about-channel-renderer">\n    <div id="share-channel" class="button style-scope ytd-about-channel-renderer"></div>\n    <div id="flagging-button" class="button style-scope ytd-about-channel-renderer"></div>\n  </div>\n</div>\n');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return MrP=b},{mode:1});var uZa;var Iv=function(){return _.g.apply(this,arguments)||this};
_.z(Iv,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Iv.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Iv.prototype,"data",void 0);_.V([_.Yx({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],Iv);
_.k(Iv,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(uZa!==void 0)return uZa;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return uZa=b},{mode:1});var OJW;var Be=function(){return _.g.apply(this,arguments)||this};
_.z(Be,_.g);Be.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Be.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Be.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",String)],Be.prototype,"aligment",void 0);_.V([_.Yx({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],Be);
_.k(Be,"ytd-channel-list-sub-menu-renderer",function(){if(OJW!==void 0)return OJW;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return OJW=
b},{mode:1});var NMe;var We=function(){return _.g.apply(this,arguments)||this};
_.z(We,_.g);We.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}}}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],We.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],We.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],We.prototype,"data",void 0);_.V([_.Yx({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],We);
_.k(We,"ytd-channel-sub-menu-renderer",function(){if(NMe!==void 0)return NMe;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return NMe=b},{mode:1});var trN;var rI8;var AE=function(){var b=_.g.apply(this,arguments)||this;b.isCompact=!1;return b};
_.z(AE,_.g);_.tm.Object.defineProperties(AE.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var b,h;return((h=_.c((b=this.data)==null?void 0:b.endpoint,_.jH))==null?void 0:h.target)==="TARGET_NEW_WINDOW"}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],AE.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],AE.prototype,"componentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],AE.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],AE.prototype,"isCompact",void 0);_.V([_.W("isCompact"),_.f("design:type",Number),_.f("design:paramtypes",[])],AE.prototype,"thumbnailWidth",null);
_.V([_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],AE.prototype,"openNewWindow",null);_.V([_.Yx({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],AE);
_.k(AE,"ytd-media-lockup-renderer",function(){if(rI8!==void 0)return rI8;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return rI8=b},{mode:1});var cIW;var UC=function(){return _.g.apply(this,arguments)||this};
_.z(UC,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],UC.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],UC.prototype,"componentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],UC.prototype,"data",void 0);_.V([_.Yx({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],UC);
_.k(UC,"ytd-structured-description-channel-lockup-renderer",function(){if(cIW!==void 0)return cIW;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return cIW=b},{mode:1});var Rta;var pb=function(){var b=_.g.apply(this,arguments)||this;b.isCompact=!1;b.collectionsStackColor=_.r("modernize_structured_description_playlist_lockups_v2");return b};
_.z(pb,_.g);pb.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",params:{isCompact:!0}},thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer"}},initialRenderPriority:_.r("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.tm.Object.defineProperties(pb.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.data)==null?void 0:b.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var b,h,y,S,F,a;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,sampledThumbnailColor:this.collectionsStackColor?(b=this.data)==null?void 0:(h=b.thumbnail)==null?void 0:h.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(y=this.data)==null?void 0:(S=y.thumbnail)==null?void 0:S.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(F=this.data)==null?void 0:(a=F.thumbnail)==null?
void 0:a.vibrantColorPalette:void 0}}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],pb.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],pb.prototype,"componentBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],pb.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],pb.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],pb.prototype,"showSidePanelThumbnailOverlay",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],pb.prototype,"isCompact",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],pb.prototype,"collectionsStackColor",void 0);_.V([_.W("data"),_.C({reflectToAttribute:!0}),_.f("design:type",Boolean),_.f("design:paramtypes",[])],pb.prototype,"twoLineTitle",null);_.V([_.W("data","collectionsStackColor"),_.f("design:type",Object),_.f("design:paramtypes",[])],pb.prototype,"collectionStack",null);
_.V([_.Yx({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],pb);
_.k(pb,"ytd-structured-description-playlist-lockup-renderer",function(){if(Rta!==void 0)return Rta;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return Rta=b},{mode:1});var zto;var JE=function(){return _.g.apply(this,arguments)||this};
_.z(JE,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],JE.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],JE.prototype,"componentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],JE.prototype,"data",void 0);_.V([_.Yx({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],JE);
_.k(JE,"ytd-structured-description-video-lockup-renderer",function(){if(zto!==void 0)return zto;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return zto=b},{mode:2});var ed=function(){return _.g.apply(this,arguments)||this};
_.z(ed,_.g);
ed.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}}}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],ed.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],ed.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],ed.prototype,"data",void 0);_.V([_.Yx({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],ed);
_.k(ed,"ytd-compact-infocard-renderer",function(){if(trN!==void 0)return trN;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return trN=b},{mode:1});var DaG;var Cb=function(){return _.g.apply(this,arguments)||this};
_.z(Cb,_.g);Cb.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.tm.Object.defineProperties(Cb.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.r("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.r("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.r("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Cb.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Cb.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.rP),_.f("design:type",Object)],Cb.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],Cb.prototype,"ytdReduxBehavior",void 0);_.V([_.C({selector:_.C9}),_.f("design:type",Object)],Cb.prototype,"isGridViewEnabled",void 0);
_.V([_.W("isGridViewEnabled"),_.C({reflectToAttribute:!0}),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Cb.prototype,"watchFeedBigThumbs",null);_.V([_.W("isGridViewEnabled","data"),_.C({reflectToAttribute:!0,value:"168"}),_.f("design:type",String),_.f("design:paramtypes",[])],Cb.prototype,"thumbnailWidth",null);_.V([_.W("isGridViewEnabled","data"),_.C({reflectToAttribute:!0,value:"94"}),_.f("design:type",String),_.f("design:paramtypes",[])],Cb.prototype,"customThumbnailSize",null);
_.V([_.C(),_.f("design:type",Object)],Cb.prototype,"data",void 0);_.V([_.Yx({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],Cb);
_.k(Cb,"ytd-compact-playlist-renderer",function(){if(DaG!==void 0)return DaG;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return DaG=b},{mode:1});var IZa;var gj=function(){var b=_.g.apply(this,arguments)||this;b.roundedContainer=!0;b.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return b};
_.z(gj,_.g);_.d=gj.prototype;_.d.attached=function(){this.requestElementsPerRow()};
_.d.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"}}}};
_.d.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.d.computeViewStyle=function(b){return b.style?b.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.d.onUpdateElementsPerRowAction=function(b){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&b===1};
_.d.requestElementsPerRow=function(){_.Sx(this.hostElement,"yt-request-elements-per-row")};
gj.prototype.dataChanged=gj.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],gj.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],gj.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.rP),_.f("design:type",Object)],gj.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],gj.prototype,"actionHandlerBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],gj.prototype,"data",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],gj.prototype,"hideThumbnail",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.f("design:type",String)],gj.prototype,"viewStyle",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],gj.prototype,"roundedContainer",void 0);
_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],gj.prototype,"dataChanged",null);_.V([_.Yx({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],gj);
_.k(gj,"ytd-compact-promoted-item-renderer",function(){if(IZa!==void 0)return IZa;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return IZa=b},{mode:1});var BMb;var sC=function(){return _.g.apply(this,arguments)||this};
_.z(sC,_.g);sC.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
sC.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
sC.prototype.onYtNavigate=function(b,h){var y=this;if(h.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",h)){var S=this.get("watchEndpoint.videoId",h.endpoint),F=_.aw(this.hostElement,"yt-get-current-video-id-action")[0];_.r("kevlar_mix_handle_first_endpoint_different")&&S&&F&&S!==F||(b.stopPropagation(),_.Sa().getPlayerPromise().then(function(a){if(a.getPlayerState()===0&&y.data.secondaryNavigationEndpoint)var P=y.data.secondaryNavigationEndpoint;else{P=
Object.assign({},h.endpoint);var K=_.c(P.commandMetadata,_.ZW);K&&(a=Math.floor(a.getCurrentTime()),K.url=_.P9(K.url,{t:a}),!_.r("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(K=_.c(P,_.wO)))&&(K.startTimeSeconds=a)}_.Sx(y.hostElement,"yt-navigate",{endpoint:P})}))}};
_.tm.Object.defineProperties(sC.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.r("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.r("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var b,h,y,S,F,a;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(b=this.data)==null?void 0:(h=b.thumbnail)==null?void 0:h.sampledThumbnailColor,vibrantColorPalette:(y=this.data)==null?void 0:(S=y.thumbnail)==null?void 0:S.vibrantColorPalette,darkColorPalette:(F=this.data)==null?void 0:(a=F.thumbnail)==null?void 0:a.darkColorPalette,experimentEnabled:!0}}}});
sC.prototype.onYtNavigate=sC.prototype.onYtNavigate;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],sC.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Q5.YtEndpointBehavior),_.f("design:type",Object)],sC.prototype,"ytEndpointBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],sC.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.rP),_.f("design:type",Object)],sC.prototype,"ytdDismissibleItemBehavior",void 0);
_.V([_.B(_.Wg),_.f("design:type",Object)],sC.prototype,"ytdLockupBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],sC.prototype,"ytdReduxBehavior",void 0);_.V([_.C({selector:_.C9}),_.f("design:type",Object)],sC.prototype,"isGridViewEnabled",void 0);_.V([_.W("isGridViewEnabled"),_.C({reflectToAttribute:!0}),_.f("design:type",Boolean),_.f("design:paramtypes",[])],sC.prototype,"watchFeedBigThumbs",null);
_.V([_.W("isGridViewEnabled"),_.C({reflectToAttribute:!0}),_.f("design:type",String),_.f("design:paramtypes",[])],sC.prototype,"thumbnailWidth",null);_.V([_.C(),_.f("design:type",Object)],sC.prototype,"data",void 0);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],sC.prototype,"collectionStack",null);_.V([_.u3("yt-navigate"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,Object]),_.f("design:returntype")],sC.prototype,"onYtNavigate",null);
_.V([_.Yx({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],sC);
_.k(sC,"ytd-compact-radio-renderer",function(){if(BMb!==void 0)return BMb;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return BMb=b},{mode:1});var We8;var YO=function(){return _.g.apply(this,arguments)||this};
_.z(YO,_.g);YO.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
YO.prototype.computeRendererStyle=function(b){return b.style?b.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.V([_.C(),_.f("design:type",Object)],YO.prototype,"data",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],YO.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],YO.prototype,"rendererBehavior",void 0);_.V([_.C({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.f("design:type",String)],YO.prototype,"rendererStyle",void 0);_.V([_.Yx({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],YO);
_.k(YO,"ytd-compact-text-promo-renderer",function(){if(We8!==void 0)return We8;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return We8=b},{mode:1});var AIw;var TJ=function(){var b=_.g.apply(this,arguments)||this;b.isShortsStyle=!1;return b};
_.z(TJ,_.g);_.d=TJ.prototype;_.d.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"}}}};
_.d.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.Sx(this.hostElement,"yt-disable-lockup-interaction"):_.Sx(this.hostElement,"yt-enable-lockup-interaction"))};
_.d.isMetaBlockEmpty=function(b){return!b||!b.longBylineText&&!b.shortBylineText&&!b.shortViewCountText&&!b.viewCountText};
_.d.computeHasOneLineTitle=function(b){return this.forceOneLineTitle||!(b==null||!b.buttons)};
_.d.computeDisableInteraction=function(){var b;return!((b=this.data)==null?0:b.navigationEndpoint)};
_.d.hasSingularTopStandaloneBadge=function(){var b;return!((b=this.data)==null||!b.topStandaloneBadge)};
_.tm.Object.defineProperties(TJ.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.r("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.r("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
shouldShowTopBadges:{configurable:!0,enumerable:!0,get:function(){return this.hasSingularTopStandaloneBadge()}},
topBadges:{configurable:!0,enumerable:!0,get:function(){var b;return this.hasSingularTopStandaloneBadge()?[(b=this.data)==null?void 0:b.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var b;return this.shouldShowTopBadges?((b=this.data)==null?void 0:b.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
TJ.prototype.disableInteractionChanged=TJ.prototype.disableInteractionChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],TJ.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],TJ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.rP),_.f("design:type",Object)],TJ.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.B(_.Wg),_.f("design:type",Object)],TJ.prototype,"ytdLockupBehavior",void 0);
_.V([_.B(_.NT),_.f("design:type",Object)],TJ.prototype,"ytdReduxBehavior",void 0);_.V([_.C({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.f("design:type",Boolean)],TJ.prototype,"metaBlockEmpty",void 0);_.V([_.C({selector:_.C9}),_.f("design:type",Object)],TJ.prototype,"isGridViewEnabled",void 0);_.V([_.W("isGridViewEnabled"),_.C({reflectToAttribute:!0}),_.f("design:type",Boolean),_.f("design:paramtypes",[])],TJ.prototype,"watchFeedBigThumbs",null);
_.V([_.W("isGridViewEnabled"),_.C({reflectToAttribute:!0}),_.f("design:type",String),_.f("design:paramtypes",[])],TJ.prototype,"thumbnailWidth",null);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],TJ.prototype,"isShortsStyle",void 0);_.V([_.C(),_.f("design:type",Object)],TJ.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.f("design:type",Boolean)],TJ.prototype,"hasOneLineTitle",void 0);
_.V([_.C(),_.f("design:type",Boolean)],TJ.prototype,"hideThumbnail",void 0);_.V([_.C(),_.f("design:type",Boolean)],TJ.prototype,"forceOneLineTitle",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.f("design:type",Boolean)],TJ.prototype,"disableInteraction",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],TJ.prototype,"musicMetadataVideoLockup",void 0);
_.V([_.OB("disableInteraction"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],TJ.prototype,"disableInteractionChanged",null);_.V([_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],TJ.prototype,"shouldShowTopBadges",null);_.V([_.W("data"),_.f("design:type",Array),_.f("design:paramtypes",[])],TJ.prototype,"topBadges",null);
_.V([_.W("shouldShowTopBadges","data"),_.f("design:type",Array),_.f("design:paramtypes",[])],TJ.prototype,"inlineMetadataBadges",null);_.V([_.W("shouldShowTopBadges"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],TJ.prototype,"shouldShowBadgesBelowMetadata",null);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],TJ.prototype,"compactTitleClass",null);_.V([_.Yx({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],TJ);
_.k(TJ,"ytd-compact-video-renderer",function(){if(AIw!==void 0)return AIw;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return AIw=b},{mode:_.Lt("kevlar_poly_si_batch_j067")?1:2});var Uaa;_.W2("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var GJ=function(){return _.g.apply(this,arguments)||this};
_.z(GJ,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],GJ.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],GJ.prototype,"data",void 0);_.V([_.Yx({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],GJ);
_.k(GJ,"ytd-counterfactual-renderer",function(){if(Uaa!==void 0)return Uaa;var b=document.createElement("template");_.D(b,"\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");b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return Uaa=b},{mode:1});var pS5;var kO=function(){var b=_.g.apply(this,arguments)||this;b.hidden=!1;return b};
_.z(kO,_.g);kO.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.H9().resolve(_.OM).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
kO.prototype.computeHidden=function(b){return!!b};
_.tm.Object.defineProperties(kO.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}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],kO.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],kO.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.f("design:type",Object)],kO.prototype,"hidden",void 0);_.V([_.W("data.label"),_.f("design:type",String),_.f("design:paramtypes",[])],kO.prototype,"label",null);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],kO.prototype,"value",null);
_.V([_.Yx({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],kO);
_.k(kO,"ytd-dropdown-item-renderer",function(){if(pS5!==void 0)return pS5;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return pS5=b},{mode:1});var JIa;var etW;var Vu=function(){return _.g.apply(this,arguments)||this};
_.z(Vu,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Vu.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Vu.prototype,"data",void 0);_.V([_.C({computed:"getSimpleString(data.label)"}),_.f("design:type",String)],Vu.prototype,"label",void 0);_.V([_.Yx({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],Vu);
_.k(Vu,"ytd-navigation-dropdown-item-renderer",function(){if(etW!==void 0)return etW;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return etW=b},{mode:1});var EC=function(){var b=_.g.apply(this,arguments)||this;b.disabled=!1;b.value="";b.noLabelFloat=!1;b.noUnderline=!1;b.usePrimaryColor=!1;b.hasBackground=!1;b.verticalAlign="top";b.autosize=!1;b.minAutosizeWidth=100;b.autosizeFont="14px Roboto";return b};
_.z(EC,_.g);_.d=EC.prototype;_.d.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"}}}};
_.d.open=function(){this.inputEl.open()};
_.d.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.d.dataChanged=function(){this.reset()};
_.d.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ut("value-changed",this.value))};
_.d.stopPropagation=function(b){b.stopPropagation()};
_.d.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var b=this.canvas.getContext("2d");b&&(b.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(b.measureText(this.inputEl.value).width)+24)+"px")}};
_.d.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var b=0,h=this.data.entries.length;b<h;b++){var y=this.data.entries[b],S;for(S in y)if(y.hasOwnProperty(S)){var F=y[S];if("isSelected"in F&&F.isSelected)return"stringValue"in F?F.stringValue||"":"int32Value"in F?F.int32Value||0:0}}return null};
_.d.updateValueFromBinding=function(b){this.value=b.detail.value};
_.tm.Object.defineProperties(EC.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 b=0,h=this.data.entries.length;b<h;b++){var y=this.data.entries[b],S;for(S in y)if(y.hasOwnProperty(S)){var F=y[S];if("isSelected"in F&&F.isSelected&&"label"in F)return this.ytRendererBehavior.getSimpleString(F.label)}}return null}}});
EC.prototype.autoSizeLabel=EC.prototype.autoSizeLabel;EC.prototype.stopPropagation=EC.prototype.stopPropagation;EC.prototype.valueChangedForBinding=EC.prototype.valueChangedForBinding;EC.prototype.dataChanged=EC.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],EC.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],EC.prototype,"ytRendererStamperBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],EC.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],EC.prototype,"disabled",void 0);_.V([_.C(),_.f("design:type",Object)],EC.prototype,"value",void 0);_.V([_.C(),_.f("design:type",Object)],EC.prototype,"noLabelFloat",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],EC.prototype,"noUnderline",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",String)],EC.prototype,"theme",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],EC.prototype,"usePrimaryColor",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],EC.prototype,"hasBackground",void 0);_.V([_.C(),_.f("design:type",Object)],EC.prototype,"verticalAlign",void 0);_.V([_.C(),_.f("design:type",Object)],EC.prototype,"autosize",void 0);_.V([_.C(),_.f("design:type",Object)],EC.prototype,"minAutosizeWidth",void 0);_.V([_.C(),_.f("design:type",Object)],EC.prototype,"autosizeFont",void 0);
_.V([_.to("#entries"),_.f("design:type",Object)],EC.prototype,"entries",void 0);_.V([_.to("#input"),_.f("design:type",Object)],EC.prototype,"inputEl",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],EC.prototype,"dataChanged",null);_.V([_.zj("value"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],EC.prototype,"valueChangedForBinding",null);
_.V([_.u3("iron-overlay-opened"),_.u3("iron-overlay-closed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],EC.prototype,"stopPropagation",null);_.V([_.u3("iron-select"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],EC.prototype,"autoSizeLabel",null);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],EC.prototype,"label",null);
_.V([_.Yx({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],EC);
_.k(EC,"ytd-dropdown-renderer",function(){if(JIa!==void 0)return JIa;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return JIa=b},{mode:1});var CT7;var i0=function(){var b=_.g.apply(this,arguments)||this;b.isConstrainedList=!1;return b};
_.z(i0,_.g);i0.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"}}}};
i0.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
i0.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
i0.prototype.computeViewAllHidden=function(b,h){return b||!h.viewAllEndpoint};
i0.prototype.fillRestIfNoShowMore=i0.prototype.fillRestIfNoShowMore;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],i0.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],i0.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.GO.YtLazyListBehavior),_.f("design:type",Object)],i0.prototype,"ytLazyListBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],i0.prototype,"data",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],i0.prototype,"isConstrainedList",void 0);_.V([_.zj("data","canShowMore"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],i0.prototype,"fillRestIfNoShowMore",null);_.V([_.Yx({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],i0);
_.k(i0,"ytd-expanded-shelf-contents-renderer",function(){if(CT7!==void 0)return CT7;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return CT7=b},{mode:_.Lt("kevlar_poly_si_batch_j025")?1:2});var g_a;var fb=function(){return _.g.apply(this,arguments)||this};
_.z(fb,_.g);fb.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}}}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],fb.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],fb.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],fb.prototype,"data",void 0);_.V([_.Yx({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],fb);
_.k(fb,"ytd-feed-channel-filter-header-renderer",function(){if(g_a!==void 0)return g_a;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return g_a=b},{mode:1});var soa;var Yl7;var TMN;var wj=function(){return _.g.apply(this,arguments)||this};
_.z(wj,_.g);_.d=wj.prototype;_.d.onClick=function(b){var h,y=(h=this.data)==null?void 0:h.sectionEndpoint;!_.mf(_.Qk(b),this.hostElement,["A".toString()])&&y&&_.Sx(this.hostElement,"yt-navigate",{endpoint:y})};
_.d.computeHasSectionEndpoint=function(b){return(b==null?void 0:b.sectionEndpoint)!==void 0};
_.d.computeShowHeaderAsLink=function(b){return(b==null?void 0:b.header)!==void 0&&(b==null?void 0:b.sectionEndpoint)!==void 0};
_.d.computeShowSubheaderAsLink=function(b){return(b==null?void 0:b.subheader)!==void 0&&(b==null?void 0:b.sectionEndpoint)!==void 0&&(b==null?void 0:b.header)===void 0};
_.d.getHeaderAsLinkClass=function(b){var h=[],y;(b==null?0:(y=b.headerIcon)==null?0:y.iconType)&&h.push("header-link-active");return h.join(" ")};
_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],wj.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],wj.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],wj.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],wj.prototype,"data",void 0);
_.V([_.C({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.f("design:type",Boolean)],wj.prototype,"hasSectionEndpoint",void 0);_.V([_.C({computed:"computeShowHeaderAsLink(data)"}),_.f("design:type",Boolean)],wj.prototype,"showHeaderAsLink",void 0);_.V([_.C({computed:"computeShowSubheaderAsLink(data)"}),_.f("design:type",Boolean)],wj.prototype,"showSubheaderAsLink",void 0);_.V([_.Yx({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],wj);
_.k(wj,"ytd-medical-panel-section-renderer",function(){if(TMN!==void 0)return TMN;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return TMN=b},{mode:1});var l0=function(){var b=_.g.apply(this,arguments)||this;b.isExpanded=!1;b.roundedContainer=!0;b.skipRoundingTop=!1;b.toggleExpandableSection=function(){b.isExpanded=!b.isExpanded};
return b};
_.z(l0,_.g);
l0.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]]"}}}}}};
l0.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
l0.prototype.dataChanged=l0.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],l0.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],l0.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],l0.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],l0.prototype,"isExpanded",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],l0.prototype,"roundedContainer",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],l0.prototype,"skipRoundingTop",void 0);_.V([_.C(),_.f("design:type",Object)],l0.prototype,"toggleExpandableSection",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],l0.prototype,"dataChanged",null);_.V([_.Yx({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],l0);
_.k(l0,"ytd-medical-panel-content-renderer",function(){if(Yl7!==void 0)return Yl7;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return Yl7=b},{mode:1});_.W2("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var qr=function(){var b=_.g.apply(this,arguments)||this;b.roundedContainer=!0;b.extractOverlay=!1;b.amsterdamEnabled=_.r("enable_desktop_amsterdam_info_panels");b.hasTitle=!1;b.linkIcon="OPEN_IN_NEW";b.isDismissed=!1;return b};
_.z(qr,_.g);qr.prototype.onOverlayConditionsChange=function(){var b=_.$x(this.hostElement).querySelector("ytd-info-panel-content-renderer");b&&(b.set("extractOverlay",this.extractOverlay),b.set("roundedContainer",this.roundedContainer))};
qr.prototype.configureRendererStamper=function(){return{"data.menu":{id:"header-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",disableTopPadding:"[[data.disableBottomDivider]]",roundedContainer:"[[roundedContainer]]",extractOverlay:"[[extractOverlay]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",
roundedContainer:"[[roundedContainer]]"}},horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
qr.prototype.computeHasTitle=function(b){return!(b==null||!b.title)};
qr.prototype.onClick=function(b){var h,y=(h=this.data)==null?void 0:h.headerEndpoint;!_.mf(_.Qk(b),this.hostElement,["BUTTON".toString()])&&y&&this.ytComponentBehavior.resolveCommand(y)};
_.tm.Object.defineProperties(qr.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 b;return((b=this.data)==null?void 0:b.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var b,h;return((b=this.data)==null?void 0:b.disableBottomDivider)||!((h=this.data)==null?0:h.title)}}});
qr.prototype.onOverlayConditionsChange=qr.prototype.onOverlayConditionsChange;_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],qr.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],qr.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],qr.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],qr.prototype,"ytdReduxBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],qr.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],qr.prototype,"roundedContainer",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],qr.prototype,"extractOverlay",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],qr.prototype,"amsterdamEnabled",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.f("design:type",Object)],qr.prototype,"hasTitle",void 0);
_.V([_.C({type:_.r("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.W("data.background"),_.f("design:type",Object),_.f("design:paramtypes",[])],qr.prototype,"background",null);_.V([_.C({type:_.r("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.W("data.titleStyle"),_.f("design:type",Object),_.f("design:paramtypes",[])],qr.prototype,"titleStyle",null);
_.V([_.C({type:_.r("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.W("data.titleStyle"),_.f("design:type",Object),_.f("design:paramtypes",[])],qr.prototype,"showLinkIcon",null);_.V([_.C(),_.f("design:type",String)],qr.prototype,"linkIcon",void 0);_.V([_.C({type:_.r("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],qr.prototype,"hideDivider",null);
_.V([_.C({selectorArgs:["data.dismissStateEntityKey"],selector:function(b,h){b=_.Mm(b.entities,"dismissState",h);return(b==null?void 0:b.isDismissed)||(b==null?void 0:b.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(b==null?void 0:b.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.f("design:type",Object)],qr.prototype,"isDismissed",void 0);_.V([_.OB("roundedContainer","extractOverlay"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],qr.prototype,"onOverlayConditionsChange",null);_.V([_.Yx({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],qr);
_.k(qr,"ytd-info-panel-container-renderer",function(){if(soa!==void 0)return soa;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return soa=b},{mode:1});var GxM;_.W2("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var xO=function(){return _.g.apply(this,arguments)||this};
_.z(xO,_.g);xO.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
xO.prototype.computeStyle=function(b){return b?b:""};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],xO.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],xO.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],xO.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.f("design:type",String)],xO.prototype,"titleStyle",void 0);
_.V([_.Yx({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],xO);
_.$S()(xO,"ytd-item-section-header-renderer",function(){if(GxM===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);GxM=b}b=GxM;return b},{allowedProps:["data"],
mode:1});var kxa;var Vr5,E_e=function(){return Vr5!==void 0?Vr5:Vr5=document.createElement("template")};
document.head.appendChild(E_e().content);var iJN;_.Qu=new _.ca("VOTING_ANIMATION_CONTROLLER_TOKEN");var wSe=_.T(function(b){var h=b.data;var y=_.ZR("div"),S=_.ZR("div");b=_.L(_.pa("VOTE_STATUS_NONE",void 0,"YPH5mf"));var F=b.next().value,a=b.next().value,P=_.OF(FNf,function(){var N;return(N=h())==null?void 0:N.entityKey}),K=_.r("web_enable_voting_animation")||_.r("enable_music_web_cairo_voting_animation");
_.wg(function(){var N;((N=h().initialState)==null?0:N.status)&&a(h().initialState.status)});
var n=function(){var N,t,R=(t=(N=h().initialState)==null?void 0:N.votes)!=null?t:0,I;N=(I=h().initialState)==null?void 0:I.status;return N==="VOTE_STATUS_UPVOTED"?R-1:N==="VOTE_STATUS_DOWNVOTED"?R+1:R},X=function(){return F()==="VOTE_STATUS_UPVOTED"?n()+1:F()==="VOTE_STATUS_DOWNVOTED"?n()-1:n()},u=function(N){var t=N?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
a(t);var R=X(),I=_.H9().resolve(_.XS(_.Qu)),U=P();U&&(N&&(U==null?0:U.upvoteDefaultButtonOnTap)?_.Va(U.upvoteDefaultButtonOnTap,{form:{element:y.value},disableClickTracking:!0}):(U==null?0:U.upvoteToggledButtonOnTap)&&_.Va(U.upvoteToggledButtonOnTap,{form:{element:y.value},disableClickTracking:!0}));var p;N=(p=U==null?void 0:U.enableOptimisticReordering)!=null?p:h().enableOptimisticReordering;K&&I&&h().itemId&&N&&fZa(I,h().itemId,R,t)},O=function(N){var t=N?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
a(t);var R=X(),I=_.H9().resolve(_.XS(_.Qu)),U=P();U&&(N&&(U==null?0:U.downvoteDefaultButtonOnTap)?_.Va(U.downvoteDefaultButtonOnTap,{form:{element:S.value},disableClickTracking:!0}):(U==null?0:U.downvoteToggledButtonOnTap)&&_.Va(U.downvoteToggledButtonOnTap,{form:{element:S.value},disableClickTracking:!0}));var p;N=(p=U==null?void 0:U.enableOptimisticReordering)!=null?p:h().enableOptimisticReordering;K&&I&&h().itemId&&N&&fZa(I,h().itemId,R,t)};
b={};b=_.P2("ytVotingViewModelVoteCount",(b.ytVotingViewModelVoteCountDisabled=function(){return h().isDisabled},b));
return _.M("voting-view-model",{class:"ytVotingViewModelHost"},_.M("div",{el:y},_.M(_.rC,{data:function(){var N=_.c(h().upvoteButton,_.zc);return{toggleButtonViewModel:Object.assign({},N,{isToggled:F()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(N){return _.M(_.Ke,{data:N.data,
onToggle:u})}})),_.M("div",{class:b},function(){var N,t,R;
return F()==="VOTE_STATUS_UPVOTED"?(N=h().initialState)==null?void 0:N.compactVotesUpvoted:F()==="VOTE_STATUS_DOWNVOTED"?(t=h().initialState)==null?void 0:t.compactVotesDownvoted:(R=h().initialState)==null?void 0:R.compactVotes}),_.M("div",{el:S},_.M(_.rC,{data:function(){var N=_.c(h().downvoteButton,_.zc);
return{toggleButtonViewModel:Object.assign({},N,{isToggled:F()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(N){return _.M(_.Ke,{data:N.data,
onToggle:O})}})))},"ed");_.yd(_.T(function(b){var h=b.data;return _.M("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.M("div",{class:_.P2("ytEngagementBarViewModelEngagementBarWrapper",b.className)},_.M(_.rC,{data:function(){return h().actions}},{votingViewModel:wSe})))},"fd"),"engagement-bar-view-model",{props:{data:_.D4,
className:_.D4}});var mH=function(){var b=_.g.apply(this,arguments)||this;b.playlistVotingAnimationEnabled=_.r("web_enable_voting_animation");b.downloadProgress=0;b.transferState="TRANSFER_STATE_UNKNOWN";b.downloadState="DOWNLOAD_STATE_UNKNOWN";b.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";b.offlineVideoPolicyExpirationTimestamp=0;return b};
_.z(mH,_.g);_.d=mH.prototype;_.d.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"}}}};
_.d.canReorderChanged=function(){this.persistentDragHandle=_.r("kevlar_playlist_drag_handles")&&this.canReorder};
_.d.onDrag=function(){if(this.thumbnail){var b=_.$x(this.thumbnail).querySelector("yt-image");b&&(b.shouldRenderLazy=!1)}};
_.d.onMenuOverlayChanged=function(b,h){this.menuOpened=h};
_.d.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.d.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.d.onContentsTap=function(b){var h,y=(h=this.data)==null?void 0:h.serviceEndpoints;if(y&&y.length===1&&_.c(y[0],akI)&&!_.mf(_.Qk(b),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(y[0]);else{var S;(h=(S=this.data)==null?void 0:S.navigationEndpoint)&&_.r("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?lZ8(_.H9().resolve(_.Vp),h):(_.h0().playlistSuggestionsShelfActivation=
!0,_.qla(_.H9().resolve(_.Vp),h)):h&&!_.mf(_.Qk(b),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.r("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.Sx(this.hostElement,"yt-navigate",{endpoint:h}):this.ytComponentBehavior.resolveCommand(h))}};
_.d.computeStyle=function(b){return b?b.toLowerCase().replace(/_/g,"-"):""};
_.d.computeThumbnailWidth=function(b){return b==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.d.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=GuF(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))}};
_.d.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.d.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.d.dataChanged=function(){if(this.data){var b,h,y,S=((b=this.downloadRenderData)==null?void 0:b.badges)&&((h=this.downloadRenderData)==null?void 0:h.badges)!==((y=this.data)==null?void 0:y.badges),F,a,P;b=((F=this.downloadRenderData)==null?void 0:F.thumbnailOverlays)&&((a=this.downloadRenderData)==null?void 0:a.thumbnailOverlays)!==((P=this.data)==null?void 0:P.thumbnailOverlays);(!this.downloadRenderData||S||b)&&this.downloadStateChanged()}};
_.d.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var b,h,y=(b=this.data.menu)==null?void 0:(h=b.menuRenderer)==null?void 0:h.items;if(y)for(b=_.L(y),h=b.next();!h.done;h=b.next())if(h=h.value,y=void 0,_.c((y=h.menuServiceItemRenderer)==null?void 0:y.serviceEndpoint,_.nj)){var S=y=void 0,F=void 0;h=(y=h)==null?void 0:(S=y.menuServiceItemRenderer)==null?void 0:(F=S.serviceEndpoint)==null?void 0:F.playlistEditEndpoint;F=S=void 0;if(y=(S=h)==null?void 0:(F=S.actions)==null?void 0:
F[0])S=void 0,y.setVideoId=(S=this.data)==null?void 0:S.setVideoId;F=S=y=void 0;if(h=(y=h)==null?void 0:(S=y.clientActions)==null?void 0:(F=S[0])==null?void 0:F.playlistRemoveVideosAction)y=void 0,h.setVideoIds=[(y=this.data)==null?void 0:y.setVideoId]}}};
_.tm.Object.defineProperties(mH.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
mH.prototype.setVideoIdChanged=mH.prototype.setVideoIdChanged;mH.prototype.dataChanged=mH.prototype.dataChanged;mH.prototype.downloadStateChanged=mH.prototype.downloadStateChanged;mH.prototype.onMenuOverlayChanged=mH.prototype.onMenuOverlayChanged;mH.prototype.canReorderChanged=mH.prototype.canReorderChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],mH.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],mH.prototype,"ytdReduxBehavior",void 0);
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],mH.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Wg),_.f("design:type",Object)],mH.prototype,"ytdLockupBehavior",void 0);_.V([_.B(_.rP),_.f("design:type",Object)],mH.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],mH.prototype,"ytComponentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],mH.prototype,"data",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],mH.prototype,"canReorder",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],mH.prototype,"menuOpened",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],mH.prototype,"handleIsHovered",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],mH.prototype,"persistentDragHandle",void 0);_.V([_.C(),_.f("design:type",Object)],mH.prototype,"downloadRenderData",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.f("design:type",String)],mH.prototype,"styleType",void 0);_.V([_.C({computed:"computeThumbnailWidth(data.style)"}),_.f("design:type",Number)],mH.prototype,"thumbnailWidth",void 0);_.V([_.C({value:!1,reflectToAttribute:!0}),_.f("design:type",Boolean)],mH.prototype,"isDownloads",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],mH.prototype,"playlistVotingAnimationEnabled",void 0);
_.V([_.C({selector:GD,selectorArgs:["data.videoId"]}),_.f("design:type",Object)],mH.prototype,"downloadProgress",void 0);_.V([_.C(),_.f("design:type",Number)],mH.prototype,"relativeDateReference",void 0);_.V([_.C({selector:_.Y8,selectorArgs:["data.videoId"]}),_.f("design:type",Object)],mH.prototype,"transferState",void 0);_.V([_.C({selector:j$f,selectorArgs:["data.videoId"]}),_.f("design:type",Object)],mH.prototype,"downloadState",void 0);
_.V([_.C({selector:f4U,selectorArgs:["data.videoId"]}),_.f("design:type",Object)],mH.prototype,"offlinePolicyAction",void 0);_.V([_.C({selector:wj8,selectorArgs:["data.videoId"]}),_.f("design:type",Object)],mH.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.V([_.C({selector:qG5,selectorArgs:["data.videoId"]}),_.f("design:type",Object)],mH.prototype,"entityInfo",void 0);_.V([_.C({selector:_.Ci}),_.f("design:type",Boolean)],mH.prototype,"miniplayerIsActive",void 0);
_.V([_.W("data"),_.f("design:type",String),_.f("design:paramtypes",[])],mH.prototype,"playlistVideoId",null);_.V([_.to("#thumbnail"),_.f("design:type",Object)],mH.prototype,"thumbnail",void 0);_.V([_.zj("canReorder"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],mH.prototype,"canReorderChanged",null);
_.V([_.u3("yt-menu-overlay-changed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,Boolean]),_.f("design:returntype")],mH.prototype,"onMenuOverlayChanged",null);_.V([_.zj("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],mH.prototype,"downloadStateChanged",null);
_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],mH.prototype,"dataChanged",null);_.V([_.zj("data.setVideoId"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],mH.prototype,"setVideoIdChanged",null);_.V([_.Yx({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],mH);
_.k(mH,"ytd-playlist-video-renderer",function(){if(iJN!==void 0)return iJN;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);b.content.insertBefore(E_e().content.cloneNode(!0),b.content.firstChild);return iJN=b},{mode:1});var xa8;var ve=function(){return _.g.apply(this,arguments)||this};
_.z(ve,_.g);_.V([_.C(),_.f("design:type",Object)],ve.prototype,"data",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],ve.prototype,"rendererBehavior",void 0);_.V([_.Yx({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],ve);
_.k(ve,"ytd-premium-browse-footer-renderer",function(){if(xa8!==void 0)return xa8;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return xa8=b},{mode:1});var Qow;var b2=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return b};
_.z(b2,_.g);_.d=b2.prototype;_.d.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.d.handleDarkModeToggledAction=function(b){this.isDarkTheme=b};
_.d.computeHeaderLogoThumbnail=function(b,h){if(b)return h?b.darkLogo:b.lightLogo};
_.d.computeHeaderLogoHeight=function(b,h){var y,S,F;return(b=(y=this.computeHeaderLogoThumbnail(b,h))==null?void 0:(S=y.thumbnails)==null?void 0:(F=S[0])==null?void 0:F.height)&&b%31===0?"31":"24"};
_.d.computeHeaderLogoMarginBottom=function(b,h){return this.computeHeaderLogoHeight(b,h)==="24"?"0":"-7"};
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],b2.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],b2.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],b2.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Boolean)],b2.prototype,"isDarkTheme",void 0);_.V([_.C({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.f("design:type",Object)],b2.prototype,"themeLogo",void 0);
_.V([_.C({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.f("design:type",String)],b2.prototype,"logoHeight",void 0);_.V([_.C({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.f("design:type",String)],b2.prototype,"logoMarginBottom",void 0);_.V([_.Yx({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],b2);
_.k(b2,"ytd-primetime-promo-header-renderer",function(){if(Qow!==void 0)return Qow;var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return Qow=b},{mode:1});var mae;_.hN=_.T(function(b){var h=b.className;var y=b.data;var S=b.isOverlay;var F=b.maxLinesOverride;var a=b.useMediumText;var P=function(){return y().alwaysShowTruncationText},K=function(){return y().truncationText},n=function(){return a!==void 0&&a()?"medium":"small"},X=function(){return S!==void 0&&S()?"overlay":"default"},u=function(){var R,I;
return(I=(R=_.c(y().rendererContext,_.zR))==null?void 0:R.label)!=null?I:""};
b=_.L(_.pa(!1,void 0,"llBUm"));var O=b.next().value,N=b.next().value;b=_.Zv(function(){y().expandOnTap&&N(!O());return!1});
var t={};return _.M("yt-description-preview-view-model",{el:_.Qa(_.Ch(function(){return y().rendererContext})),
class:_.P2("ytDescriptionPreviewViewModelHost",h,(t.ytDescriptionPreviewViewModelClickable=function(){var R;return!((R=_.c(y().rendererContext,_.gC))==null||!R.onTap)},t.ytDescriptionPreviewViewModelIsOverlay=S,t)),
"on:click":b},_.M(_.H,{cond:function(){return y().description},
then:function(R){return _.M(_.H,{cond:O,then:function(){var I={};return _.M("div",{class:_.P2("ytDescriptionPreviewViewModelDescription",(I.ytDescriptionPreviewViewModelDescriptionMediumText=a,I))},_.M(_.zv,{text:R}))},
else:function(){return _.M(v4o,{text:R,alwaysShowTruncationText:P,truncationText:K,maxLines:function(){var I;return(I=F==null?void 0:F())!=null?I:y().maxLines},
textStyle:X,accessibilityLabel:u,textSize:n})}})}}))},"gd");
_.hN.idomCompat=!0;var b7P=_.T(function(b){var h=_.Zv(function(F){var a;(a=b.onClick)==null||a.call(b,F)}),y={},S={};
return _.M("yt-shelf-header-layout",{class:_.P2("yt-shelf-header-layout",(y["yt-shelf-header-layout--disable-horizontal-padding"]=b.disableHorizontalPadding,y["yt-shelf-header-layout--disable-vertical-padding"]=b.disableVerticalPadding,y["yt-shelf-header-layout--responsive"]=b.useResponsiveLayout,y["yt-shelf-header-layout--narrow"]=function(){var F,a;return((F=b.useResponsiveLayout)==null?void 0:F.call(b))&&((a=b.forceSmallLayout)==null?void 0:a.call(b))},y["yt-shelf-header-layout--is-overlay"]=b.isOverlay,
y["yt-shelf-header-layout--tappable"]=b.isInteractive,y["yt-shelf-header-layout--optional-medium-layout-padding"]=b.useUpdatedPadding,y)),
"on:click":h,tabindex:function(){var F;return((F=b.isInteractive)==null?0:F.call(b))?0:void 0}},_.M("div",{class:"yt-shelf-header-layout__header-row"},_.M(_.H,{cond:b.leadingIcon,
then:function(F){return _.M("div",{class:"yt-shelf-header-layout__leading-icon"},_.M(_.Xv,{icon:F}))},
else:function(){return _.M(_.H,{cond:b.hasLeadingImage,then:function(){var F,a={};return _.M("div",{class:_.P2("yt-shelf-header-layout__leading-image",(a["yt-shelf-header-layout__leading-image--circular-image"]=b.circularImage,a))},(F=b.leadingImage)==null?void 0:F.call(b))}})}}),_.M("div",{class:"yt-shelf-header-layout__label-container"},_.M(_.H,{cond:b.hasSuperlabel,
then:function(){var F;return _.M("div",{class:"yt-shelf-header-layout__superlabel"},(F=b.superlabel)==null?void 0:F.call(b))}}),_.M("div",{class:"yt-shelf-header-layout__title-row"},_.M(v_8,{text:b.title,
className:_.P2("yt-shelf-header-layout__title",(S["yt-shelf-header-layout__title--small-title"]=b.forceSmallLayout,S)),tagLevel:b.tagLevel}),_.M(_.H,{cond:b.hasDetail,then:function(){var F;return _.M("div",{class:"yt-shelf-header-layout__detail"},(F=b.detail)==null?void 0:F.call(b))}})),_.M(_.H,{cond:b.hasSublabel,
then:function(){var F;return _.M("div",{class:"yt-shelf-header-layout__sublabel"},(F=b.sublabel)==null?void 0:F.call(b))}})),_.M(_.H,{cond:b.hasTrailingActions,
then:function(){var F;return _.M("div",{class:"yt-shelf-header-layout__trailing-actions"},(F=b.trailingActions)==null?void 0:F.call(b))}})),_.M(_.H,{cond:b.hasBottomAccessory,
then:function(){var F;return _.M("div",{class:"yt-shelf-header-layout__bottom-accessory"},(F=b.bottomAccessory)==null?void 0:F.call(b))}}))},"hd");
b7P.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0,bottomAccessory:!0}};
var v_8=_.T(function(b){var h=b.text;var y=b.className;var S=b.tagLevel;return _.M(_.kZ,null,_.M(_.YZ,{when:function(){return(S==null?void 0:S())===0}},function(){return _.M("h2",{class:y},h())}),_.M(_.YZ,{when:function(){return(S==null?void 0:S())===1}},function(){return _.M("h3",{class:y},h())}),_.M(_.YZ,{when:function(){return(S==null?void 0:S())===2}},function(){return _.M("h4",{class:y},h())}),_.M(_.Tw,null,function(){return _.M("h2",{class:y},h())}))},"id");var SdG,hjM,yb7;_.SE=_.T(function(b){var h=b.className;var y=b.data;var S=b.disableHorizontalPadding;var F=b.disableVerticalPadding;var a=b.forceSmallLayout;var P=b.useResponsiveLayout;var K=b.isOverlay;b=b.useUpdatedPadding;return _.M("yt-section-header-view-model",{class:_.P2("ytSectionHeaderViewModelHost",h),style:_.n9({"background-color":function(){return ND(y().backgroundColor)?_.CR(ND(y().backgroundColor)):void 0}})},_.M(b7P,{hasDetail:!1,
title:function(){return _.M(_.zv,{text:function(){return y().headline}})},
hasTitle:!0,sublabel:function(){return _.M(hjM,{data:y})},
hasSublabel:function(){return!!y().sublabel||!!y().bottomBadge},
superlabel:function(){return _.M(yb7,{data:y})},
hasSuperlabel:function(){return!!y().superlabel||!!y().topBadge},
leadingImage:function(){return _.M(SdG,{leadingAccessory:function(){return y().leadingAccessory}})},
hasLeadingImage:function(){return!!y().leadingAccessory},
trailingActions:function(){return _.M(_.rC,{data:function(){return y().trailingActions}},{flexibleActionsViewModel:_.tp})},
hasTrailingActions:function(){return!!y().trailingActions},
disableHorizontalPadding:function(){return(S==null?void 0:S())||y().disableHorizontalPadding},
disableVerticalPadding:F,forceSmallLayout:a,useResponsiveLayout:P,isOverlay:K,isInteractive:function(){return!!_.JB(y().rendererContext)},
onClick:function(n){if(_.ea(y().rendererContext)){var X=_.JB(y().rendererContext);X&&_.TK(X,{form:{element:n.target,event:n}})}},
bottomAccessory:function(){return _.M(_.rC,{data:function(){return y().bottomAccessory}},{descriptionPreviewViewModel:function(n){return _.M(_.hN,{data:n.data,
useMediumText:!0})},
commonMarkViewModel:function(n){n=n.data;var X;return _.M(_.OW,null,(X=_.H9().resolve(_.XS(tT7)))==null?void 0:X({data:n}))}})},
hasBottomAccessory:function(){return!!y().bottomAccessory},
useUpdatedPadding:b}))},"jd");
SdG=_.T(function(b){var h=b.leadingAccessory;return _.M(_.OW,null,_.M(_.H,{cond:function(){var y;return(y=h().image)!=null?y:_.EF(h().themedImage)},
then:function(y){return _.M(_.mI,{data:y,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.M(_.H,{cond:function(){return _.c(h().avatar,_.sF)},
then:function(y){return _.M(_.OX,{data:y})}}))},"kd");
hjM=_.T(function(b){var h=b.data;return _.M(_.OW,null,_.M(_.H,{cond:function(){return _.c(h().bottomBadge,jp8)},
then:function(y){var S={};return _.M(_.gE,{data:y,class:_.P2((S.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!y()&&!!h().sublabel},S))})}}),_.M(_.H,{cond:function(){return h().sublabel},
then:function(y){return _.M(_.zv,{text:y})}}))},"ld");
yb7=_.T(function(b){var h=b.data;return _.M(_.OW,null,_.M(_.H,{cond:function(){return _.c(h().topBadge,jp8)},
then:function(y){var S={};return _.M(_.gE,{data:y,class:_.P2((S.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!y()&&!!h().superlabel},S))})}}),_.M(_.H,{cond:function(){return h().superlabel},
then:function(y){return _.M(_.zv,{text:y})}}))},"md");_.yd(_.SE,"yt-section-header-view-model",{props:{data:_.D4,className:_.D4,disableHorizontalPadding:_.D4,disableVerticalPadding:_.D4,forceSmallLayout:_.D4,useResponsiveLayout:_.D4,isOverlay:_.D4,useUpdatedPadding:_.D4}});_.W2("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var FM=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return b};
_.z(FM,_.g);_.d=FM.prototype;_.d.attached=function(){this.requestElementsPerRow()};
_.d.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"}}}};
_.d.onDataChange=function(){var b=this;_.Ob(this,function(){b.updateItemVisibility()})};
_.d.onUpdateElementsPerRowAction=function(b){b&&this.elementsPerRow!==b&&(this.elementsPerRow=b,this.updateItemVisibility())};
_.d.updateItemVisibility=function(){var b=this;this.data&&this.data.panels&&_.$x(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(h,y){h.hidden=y>b.elementsPerRow-1})};
_.d.requestElementsPerRow=function(){_.Sx(this.hostElement,"yt-request-elements-per-row")};
FM.prototype.onDataChange=FM.prototype.onDataChange;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],FM.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.rP),_.f("design:type",Object)],FM.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],FM.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],FM.prototype,"actionHandlerBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],FM.prototype,"data",void 0);_.V([_.C({value:3}),_.f("design:type",Number)],FM.prototype,"elementsPerRow",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],FM.prototype,"onDataChange",null);_.V([_.Yx({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],FM);
_.k(FM,"ytd-primetime-promo-renderer",function(){if(mae!==void 0)return mae;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return mae=b},{mode:1});var FjW;var au=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return b};
_.z(au,_.g);au.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
au.prototype.handleButtonRefreshAction=function(b){if(b=_.c(b,D8W))this.set("data.button",b.membershipButton),this.notifyPath("data.button")};
_.tm.Object.defineProperties(au.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var b,h;return((b=this.data)==null?void 0:(h=b.avatars)==null?void 0:h.slice(0,8))||[]}}});
_.V([_.C(),_.f("design:type",Object)],au.prototype,"data",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],au.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],au.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],au.prototype,"rendererBehavior",void 0);_.V([_.W("data"),_.f("design:type",Array),_.f("design:paramtypes",[])],au.prototype,"avatars",null);
_.V([_.Yx({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],au);
_.k(au,"ytd-recognition-shelf-renderer",function(){if(FjW!==void 0)return FjW;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return FjW=b},{mode:1});var aoe;var d4a;var dt=function(){var b=_.g.apply(this,arguments)||this;b.modernButtons=_.r("web_modern_buttons");return b};
_.z(dt,_.g);_.d=dt.prototype;
_.d.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]]"}}}}}};
_.d.dataChanged=function(){this.collapsed=!0};
_.d.computeVisibleItems=function(b,h){return b!==void 0&&b.items?h?b.items.slice(0,this.data.collapsedItemCount):b.items:[]};
_.d.computeHideShowMore=function(b,h,y){return b>=h||!y};
_.d.computeHideShowAll=function(b,h,y){return!(b&&h)||y};
_.d.onMoreClick=function(){this.collapsed=!1};
_.tm.Object.defineProperties(dt.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.r("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.rH("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.r("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
dt.prototype.dataChanged=dt.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],dt.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],dt.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],dt.prototype,"data",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],dt.prototype,"isSearch",void 0);
_.V([_.C({computed:"computeVisibleItems(data,collapsed)"}),_.f("design:type",Array)],dt.prototype,"visibleItems",void 0);_.V([_.C({value:!0}),_.f("design:type",Boolean)],dt.prototype,"collapsed",void 0);_.V([_.C({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.f("design:type",Boolean)],dt.prototype,"hideShowMore",void 0);
_.V([_.C({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.f("design:type",Boolean)],dt.prototype,"hideShowAll",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],dt.prototype,"modernButtons",void 0);_.V([_.W("isSearch"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],dt.prototype,"typographyBump",null);
_.V([_.W("isSearch"),_.f("design:type",Object),_.f("design:paramtypes",[])],dt.prototype,"lockupExperiments",null);_.V([_.W("isSearch"),_.f("design:type",String),_.f("design:paramtypes",[])],dt.prototype,"thumbnailWidth",null);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],dt.prototype,"dataChanged",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],dt);
_.k(dt,"ytd-vertical-list-renderer",function(){if(d4a!==void 0)return d4a;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return d4a=b},{mode:1});var jMa=_.bm(["#"]);_.W2("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var jE=function(){var b=_.g.apply(this,arguments)||this;b.isConstrainedList=!1;return b};
_.z(jE,_.g);_.d=jE.prototype;
_.d.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"}}}};
_.d.computeThumbnailStyle=function(b){return b||""};
_.d.computePlaceAnnotationUnderTitle=function(){var b;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((b=this.data)==null?void 0:b.thumbnailStyle)||"")};
_.d.computeHrefWithDefault=function(b){return this.ytComponentBehavior.computeHref_(b)||_.nff(jMa)};
_.d.computeIsPromoShelf=function(b){var h;return(b=b==null?void 0:(h=b[0])==null?void 0:h.metadataBadgeRenderer)?b.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.d.computePlaceBadgeBesideTitle=function(b){var h;return(b==null?0:(h=b[0])==null?0:h.metadataBadgeRenderer)?!this.computeIsPromoShelf(b):!1};
_.d.computeMenuIcon=function(b){return this.computeIsPromoShelf(b)?"yt-icons:more_vert":"yt-icons:more"};
_.d.onDataChange=function(){var b,h;((b=this.data)==null?0:(h=b.content)==null?0:h.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.d.onLockupRequested=function(b){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&b.detail&&b.detail.videoIds){for(var h=this.data.content.gridRenderer.items,y=new Set,S=_.L(b.detail.videoIds),F=S.next();!F.done;F=S.next())y.add(F.value);b.detail.returnValue=h.filter(function(a){return a.gridVideoRenderer&&a.gridVideoRenderer.videoId&&y.has(a.gridVideoRenderer.videoId)}).map(function(a){return a.gridVideoRenderer})}};
_.d.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
jE.prototype.onLockupRequested=jE.prototype.onLockupRequested;jE.prototype.onDataChange=jE.prototype.onDataChange;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],jE.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.rP),_.f("design:type",Object)],jE.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],jE.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],jE.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.ab),_.f("design:type",Object)],jE.prototype,"ironResizableBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],jE.prototype,"data",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],jE.prototype,"isSearch",void 0);_.V([_.C(),_.f("design:type",Object)],jE.prototype,"isConstrainedList",void 0);_.V([_.C({reflectToAttribute:!0,value:function(){return _.r("kevlar_fluid_dismiss")}}),
_.f("design:type",Boolean)],jE.prototype,"enableFluidDismiss",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.f("design:type",String)],jE.prototype,"thumbnailStyle",void 0);_.V([_.C({computed:"computeMenuIcon(data.badges)"}),_.f("design:type",String)],jE.prototype,"menuIcon",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeIsPromoShelf(data.badges)"}),_.f("design:type",Boolean)],jE.prototype,"featuredPromo",void 0);
_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],jE.prototype,"onDataChange",null);_.V([_.u3("yt-lockup-requested"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],jE.prototype,"onLockupRequested",null);_.V([_.Yx({is:"ytd-shelf-renderer",disableElementRegistration:!0})],jE);
_.k(jE,"ytd-shelf-renderer",function(){if(aoe!==void 0)return aoe;var b=document.createElement("template");_.D(b,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-shelf-renderer">\n  <div class="grid-subheader style-scope ytd-shelf-renderer" hidden="[[data.hideHeader]]">\n    <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-shelf-renderer">\n      <h2 class="style-scope ytd-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n          </yt-icon>\n          <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n          </yt-img-shadow>\n          <div id="title-text" class="style-scope ytd-shelf-renderer">\n            <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n            <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n            </ytd-badge-supported-renderer>\n          </div>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" aria-hidden="true" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n              </yt-img-shadow>\n              <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n              </yt-icon>\n            </a>\n            <div id="title-text" class="style-scope ytd-shelf-renderer">\n              <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" href$="[[computeHrefWithDefault(data.endpoint)]]" data="[[data.endpoint]]">\n                <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              </a>\n              <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="title-annotation" hidden="[[!computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n              </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!computePlaceBadgeBesideTitle(data.badges)]]" class="style-scope ytd-shelf-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="title-annotation" hidden="[[computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n        </yt-formatted-string>\n        <div id="play-button" class="style-scope ytd-shelf-renderer"></div>\n        <div id="sort-filter" class="style-scope ytd-shelf-renderer"></div>\n      </h2>\n      <div id="spacer" class="style-scope ytd-shelf-renderer"></div>\n      <div id="subscribe-button" class="style-scope ytd-shelf-renderer"></div>\n      <div id="menu" class="style-scope ytd-shelf-renderer"></div>\n    </div>\n    <yt-formatted-string id="subtitle" class="can-be-empty style-scope ytd-shelf-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n  </div>\n  <div id="contents" class="style-scope ytd-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-shelf-renderer"></div>\n');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return aoe=b},{mode:1});var $4P;var $V=function(){return _.g.apply(this,arguments)||this};
_.z($V,_.g);$V.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.tm.Object.defineProperties($V.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.data)==null||!b.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],$V.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],$V.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],$V.prototype,"data",void 0);_.V([_.C({value:!1,reflectToAttribute:!0}),_.f("design:type",Boolean)],$V.prototype,"isPlaylist",void 0);_.V([_.C({value:!1,reflectToAttribute:!0}),_.f("design:type",Boolean)],$V.prototype,"isClipList",void 0);
_.V([_.C({value:!1,reflectToAttribute:!0}),_.f("design:type",Boolean)],$V.prototype,"isPlaylistPageWithFilters",void 0);_.V([_.C({value:!1,reflectToAttribute:!0}),_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],$V.prototype,"hasTitle",null);_.V([_.C(),_.W("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.f("design:type",Object),_.f("design:paramtypes",[])],$V.prototype,"isRightAligned",null);
_.V([_.Yx({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],$V);
_.k($V,"ytd-sort-filter-header-renderer",function(){if($4P!==void 0)return $4P;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return $4P=b},{mode:1});var Lje;var LU=function(){var b=_.g.apply(this,arguments)||this;b.enableRightArrowHidden=_.r("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return b};
_.z(LU,_.g);LU.prototype.attached=function(){var b=this;this.enableRightArrowHidden&&(this.JSC$16734_throttledOnResize=new _.MG(function(){var h;(h=b.ytdHorizontalListBehavior)==null||h.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var h;
(h=b.JSC$16734_throttledOnResize)==null||h.fire()}),this.resizeObserver.observe(this.hostElement))};
LU.prototype.detached=function(){if(this.enableRightArrowHidden){var b;(b=this.resizeObserver)==null||b.disconnect();var h;(h=this.JSC$16734_throttledOnResize)==null||h.dispose()}};
LU.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]]"}}}}}};
LU.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.tm.Object.defineProperties(LU.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.r("enable_creator_details_shelf_m2")){var b=[],h;((h=this.data)==null?0:h.creatorVideosButton)&&b.push(this.data.creatorVideosButton);var y;((y=this.data)==null?0:y.creatorAboutButton)&&b.push(this.data.creatorAboutButton);h=_.L(this.data.creatorCustomUrlButtons||[]);for(y=h.next();!y.done;y=h.next())b.push(y.value);return b}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.r("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],LU.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],LU.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.kd.YtdHorizontalListBehavior),_.f("design:type",Object)],LU.prototype,"ytdHorizontalListBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],LU.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],LU.prototype,"engagementPanel",void 0);
_.V([_.C(),_.f("design:type",Object)],LU.prototype,"enableRightArrowHidden",void 0);_.V([_.W("enableRightArrowHidden","atEnd"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],LU.prototype,"hideRightArrow",null);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],LU.prototype,"creatorCustomUrlButtons",null);
_.V([_.C({reflectToAttribute:!0}),_.W("data","creatorCustomUrlButtons"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],LU.prototype,"showCreatorCustomUrlButtons",null);_.V([_.W("showCreatorCustomUrlButtons"),_.f("design:type",Number),_.f("design:paramtypes",[])],LU.prototype,"channelAvatarSize",null);_.V([_.Yx({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],LU);
_.k(LU,"ytd-video-description-infocards-section-renderer",function(){if(Lje!==void 0)return Lje;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return Lje=b},{mode:_.Lt("kevlar_poly_si_batch_j067")?1:2});var Pdb;var P$=function(){return _.g.apply(this,arguments)||this};
_.z(P$,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],P$.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],P$.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],P$.prototype,"data",void 0);_.V([_.C({computed:"computeIcon_(data.infoIcon)"}),_.f("design:type",Object)],P$.prototype,"infoIcon",void 0);_.V([_.Yx({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],P$);
_.k(P$,"ytd-eom-settings-disclaimer-renderer",function(){if(Pdb!==void 0)return Pdb;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return Pdb=b},{mode:1});var KjP;var KU=function(){return _.g.apply(this,arguments)||this};
_.z(KU,_.g);_.tm.Object.defineProperties(KU.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.data)==null||!b.suppressPaddingDisclaimer)}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],KU.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],KU.prototype,"componentBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],KU.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],KU.prototype,"data",void 0);
_.V([_.C({reflectToAttribute:!0}),_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],KU.prototype,"suppressPaddingDisclaimer",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],KU);
_.k(KU,"ytd-product-list-header-renderer",function(){if(KjP!==void 0)return KjP;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return KjP=b},{mode:1});var Z7e;var Zt=function(){return _.g.apply(this,arguments)||this};
_.z(Zt,_.g);Zt.prototype.computeThumbnailStyle=function(b){if(b&&(b=_.eI(b)))return"background-color:"+b+";"};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Zt.prototype,"rendererBehaviors",void 0);_.V([_.C(),_.f("design:type",Object)],Zt.prototype,"data",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],Zt);
_.k(Zt,"ytd-hashtag-tile-renderer",function(){if(Z7e!==void 0)return Z7e;var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return Z7e=b},{mode:1});var ovM;var ou=function(){return _.g.apply(this,arguments)||this};
_.z(ou,_.g);ou.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}}}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],ou.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],ou.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],ou.prototype,"data",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],ou);
_.k(ou,"ytd-sponsorships-alert-renderer",function(){if(ovM!==void 0)return ovM;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return ovM=b},{mode:1});var MJP;var M3=function(){return _.g.apply(this,arguments)||this};
_.z(M3,_.g);M3.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.tm.Object.defineProperties(M3.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.r("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.r("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.V([_.B(_.rP),_.f("design:type",Object)],M3.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.B(_.Wg),_.f("design:type",Object)],M3.prototype,"ytdLockupBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],M3.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],M3.prototype,"ytRendererBehavior",void 0);_.V([_.C({selector:_.C9}),_.f("design:type",Object)],M3.prototype,"isGridViewEnabled",void 0);
_.V([_.W("isGridViewEnabled"),_.C({reflectToAttribute:!0}),_.f("design:type",Boolean),_.f("design:paramtypes",[])],M3.prototype,"watchFeedBigThumbs",null);_.V([_.W("isGridViewEnabled"),_.C({reflectToAttribute:!0}),_.f("design:type",String),_.f("design:paramtypes",[])],M3.prototype,"thumbnailWidth",null);_.V([_.C(),_.f("design:type",Object)],M3.prototype,"data",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],M3);
_.k(M3,"ytd-compact-movie-renderer",function(){if(MJP!==void 0)return MJP;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return MJP=b},{mode:1});var nvW;var Xte;var H7W=_.QC("HTML_DIR")==="rtl",nU=function(){var b=_.g.apply(this,arguments)||this;b.engagementPanel=!1;b.maxLines=2;b.expandButtonOffset=0;b.showExpandButton=!1;b.isTruncated=!1;b.isExpanded=!1;b.currentSnippetType=2;b.alwaysShowExpandButton=!1;b.JSC$16751_lastWidth=NaN;b.observer=null;b.left=0;b.right=0;b.mid=0;b.longestSnippetLength=0;b.isFinalSnippet=!1;b.isFirstMutation=!1;b.isResetMutation=!1;b.OVERFLOW_THRESHOLD=5;return b};
_.z(nU,_.g);_.d=nU.prototype;_.d.onClick=function(b){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.mf(_.Qk(b)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var h;if((h=window.getSelection())==null||!h.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.d.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.d.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.d.updateTextOnSnippetTypeChange=function(){_.r("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.d.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.d.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.vX(new _.Gn("AttributedSnippet is empty when the description is not empty",this.text))};
_.d.mutationCallback=function(){if(this.observer!=null){var b=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var h=Math.floor(b*this.maxLines/8);this.setSnippetText(this.text,h);h!==0||this.attributedTextIsEmpty()||_.vX(new _.Gn("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;b=b*this.maxLines/8;this.left=0;var y;this.right=Math.min(b*2,(y=(h=this.simpleText)==null?void 0:h.length)!=null?y: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)}}};
_.d.mutationObserve=function(b){var h=this;this.observer||(this.observer=new MutationObserver(function(){h.mutationCallback()}));
this.observer.observe(b,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.d.attached=function(){var b=this;_.Ob(this,function(){b.resize()})};
_.d.isExpandedChanged=function(){_.Sx(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.d.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)};
_.d.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var b="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((H7W?"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",b);this.snippetContainer.style.setProperty("mask-image",
b)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(H7W?"right":"left",this.expandButtonOffset+"px")};
_.d.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.d.setSnippetText=function(b,h){b||(b={});if(_.li(b)){var y=wU(b,h);y.attachmentRuns||y.commandRuns||y.decorationRuns||y.styleRuns||y.alignment||y.lineBreakMode?this.attributedSnippetTextEl?(this.attributedSnippetText={data:wU(b,h),headerRuns:snq(h,this.headerRuns)},this.currentSnippetType=0):_.vX(new _.Gn("Tried to set snippet text when HTML element was null",b)):(this.plainSnippetText.textContent=ii(b.content||"",h),this.currentSnippetType=2)}else{a:{y=aJj(b,h);if(y.runs){y=_.L(y.runs);for(var S=
y.next();!S.done;S=y.next())if(S=S.value,S.bold||S.deemphasize||S.italics||S.strikethrough||S.textColor||S.navigationEndpoint||_.c(S,Ct)){y=!0;break a}}y=!1}y?this.formattedSnippetText?(this.formattedSnippetText.text=aJj(b,h),this.currentSnippetType=1):_.vX(new _.Gn("Tried to set snippet text when HTML element was null",b)):(this.plainSnippetText.textContent=ii(_.vi(b),h),this.currentSnippetType=2)}};
_.d.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.d.attributedTextIsEmpty=function(){var b=this.text;if(!_.li(b))return!0;var h;return((h=b.content)==null?void 0:h.length)===0?!0:!1};
_.d.resize=function(b){if(this.snippetText){if(b===void 0?0:b)this.JSC$16751_lastWidth=NaN;var h=this.hostElement.offsetWidth;if(h!==this.JSC$16751_lastWidth&&!this.isExpanded)if(this.JSC$16751_lastWidth=h,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;b=0;var y,S;h=Math.min(h*this.maxLines/8*2,(S=(y=this.simpleText)==null?void 0:y.length)!=null?S:0)-1;for(y=0;b<=h;)S=Math.floor(b+(h-b)/2),this.setSnippetText(this.text,S),this.isOverflowing()?h=S-1:(b=S+1,y=S);this.setSnippetText(this.text,y);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.d.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.d.onExpandClick=function(){var b=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.r("inline_expander_reset_focus_killswitch")||_.Ob(this,function(){var h;((h=_.H9().resolve(_.XS(_.sG)))==null?0:h.isKeyBoardInUse())&&_.oh(b.hostElement)});
_.Sx(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.d.onCollapseClick=function(){this.collapse();_.Sx(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.d.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.d.computeExpandButtonOffset=function(){var b=this.expandSizer;return b?H7W?b.offsetParent?b.offsetParent.offsetWidth-b.offsetWidth-b.offsetLeft:0:b.offsetLeft:0};
_.tm.Object.defineProperties(nU.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.li(this.text)?this.text.content||"":_.vi(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 _.li(this.text)?!0:this.text&&_.r("web_replace_formatted_with_attributed_string")&&Ps8(this.text)?(this.text=_.ej(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}}});
nU.prototype.onTextChanged=nU.prototype.onTextChanged;nU.prototype.updateMaskAndExpandButtonOffset=nU.prototype.updateMaskAndExpandButtonOffset;nU.prototype.updateSnippetContainerMaxHeight=nU.prototype.updateSnippetContainerMaxHeight;nU.prototype.isExpandedChanged=nU.prototype.isExpandedChanged;nU.prototype.updateTextOnSnippetTypeChange=nU.prototype.updateTextOnSnippetTypeChange;nU.prototype.updateIsFormattedExpanded=nU.prototype.updateIsFormattedExpanded;nU.prototype.updateIsAttributedExpanded=nU.prototype.updateIsAttributedExpanded;
nU.prototype.onClick=nU.prototype.onClick;_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],nU.prototype,"componentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],nU.prototype,"text",void 0);_.V([_.C(),_.f("design:type",Array)],nU.prototype,"headerRuns",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],nU.prototype,"engagementPanel",void 0);_.V([_.C(),_.f("design:type",Object)],nU.prototype,"maxLines",void 0);
_.V([_.C(),_.f("design:type",String)],nU.prototype,"expandLabel",void 0);_.V([_.C(),_.f("design:type",String)],nU.prototype,"collapseLabel",void 0);_.V([_.C(),_.f("design:type",Object)],nU.prototype,"expandCommand",void 0);_.V([_.C(),_.f("design:type",Object)],nU.prototype,"expandButtonOffset",void 0);_.V([_.W("text"),_.f("design:type",String),_.f("design:paramtypes",[])],nU.prototype,"simpleText",null);
_.V([_.u3("click"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],nU.prototype,"onClick",null);_.V([_.W("text","isExpanded"),_.f("design:type",Object),_.f("design:paramtypes",[])],nU.prototype,"expandedText",null);_.V([_.W("headerRuns","isExpanded"),_.f("design:type",Object),_.f("design:paramtypes",[])],nU.prototype,"expandedHeaderRuns",null);
_.V([_.W("text"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],nU.prototype,"hasAttributedStringText",null);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],nU.prototype,"showExpandButton",void 0);_.V([_.W("collapseLabel","isExpanded"),_.f("design:type",Object),_.f("design:paramtypes",[])],nU.prototype,"showCollapseButton",null);_.V([_.C(),_.f("design:type",Object)],nU.prototype,"isTruncated",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],nU.prototype,"isExpanded",void 0);_.V([_.C(),_.f("design:type",Boolean)],nU.prototype,"isAttributedExpanded",void 0);_.V([_.OB("isExpanded","hasAttributedStringText"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],nU.prototype,"updateIsAttributedExpanded",null);_.V([_.C(),_.f("design:type",Boolean)],nU.prototype,"isFormattedExpanded",void 0);
_.V([_.OB("isExpanded","hasAttributedStringText"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],nU.prototype,"updateIsFormattedExpanded",null);_.V([_.C(),_.f("design:type",Number)],nU.prototype,"currentSnippetType",void 0);_.V([_.W("currentSnippetType"),_.f("design:type",Object),_.f("design:paramtypes",[])],nU.prototype,"useAttributedSnippet",null);
_.V([_.W("currentSnippetType"),_.f("design:type",Object),_.f("design:paramtypes",[])],nU.prototype,"useFormattedSnippet",null);_.V([_.W("currentSnippetType"),_.f("design:type",Object),_.f("design:paramtypes",[])],nU.prototype,"usePlainSnippet",null);_.V([_.C(),_.f("design:type",Object)],nU.prototype,"alwaysShowExpandButton",void 0);_.V([_.OB("currentSnippetType"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],nU.prototype,"updateTextOnSnippetTypeChange",null);
_.V([_.C(),_.f("design:type",Object)],nU.prototype,"attributedSnippetText",void 0);_.V([_.to("#snippet"),_.f("design:type",HTMLElement)],nU.prototype,"snippetContainer",void 0);_.V([_.to("#snippet-text"),_.f("design:type",HTMLElement)],nU.prototype,"snippetText",void 0);_.V([_.to("#plain-snippet-text"),_.f("design:type",HTMLElement)],nU.prototype,"plainSnippetText",void 0);_.V([_.to("#formatted-snippet-text"),_.f("design:type",Object)],nU.prototype,"formattedSnippetText",void 0);
_.V([_.to("#attributed-snippet-text"),_.f("design:type",Object)],nU.prototype,"attributedSnippetTextEl",void 0);_.V([_.to("#expand"),_.f("design:type",HTMLElement)],nU.prototype,"expandButton",void 0);_.V([_.to("#expand-sizer"),_.f("design:type",HTMLElement)],nU.prototype,"expandSizer",void 0);_.V([_.zj("isExpanded"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],nU.prototype,"isExpandedChanged",null);
_.V([_.OB("isExpanded","maxLines"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],nU.prototype,"updateSnippetContainerMaxHeight",null);_.V([_.OB("isTruncated","showExpandButton","expandButtonOffset"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],nU.prototype,"updateMaskAndExpandButtonOffset",null);
_.V([_.zj("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],nU.prototype,"onTextChanged",null);_.V([_.Yx({is:"ytd-text-inline-expander",disableElementRegistration:!0})],nU);
_.k(nU,"ytd-text-inline-expander",function(){if(Xte===void 0){var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);Xte=b}b=Xte;return b},{mode:2});var XM=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return b};
_.z(XM,_.g);XM.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
XM.prototype.handleUpdateDescriptionAction=function(b){if(b=_.c(b,_.ecW))if(b.attributedDescription)this.set("data.attributedDescriptionBodyText",b.attributedDescription);else if(b.description){var h;((h=this.data)==null?0:h.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.ej(b.description)):this.set("data.descriptionBodyText",b.description)}};
_.tm.Object.defineProperties(XM.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var b,h;return!((b=this.data)==null||!b.attributedDescriptionBodyText)||!((h=this.data)==null||!h.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var b;if((b=this.data)==null?0:b.collapsedLineCount){var h;return(h=this.data)==null?void 0:h.collapsedLineCount}b=_.tj("web_watch_description_collapsed_default_lines",12);if(_.r("ww_desc_line_page_size_ks"))return b;h=Math.round(_.rq().height*_.tj("web_watch_description_screen_height_percentage",.5)/20);return Math.max(h,b)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var b,h,y;return(y=(b=this.data)==null?void 0:b.descriptionBodyText)!=null?y:(h=this.data)==null?void 0:h.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var b;return(b=this.data)==null?void 0:b.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var b;return(b=this.data)==null?void 0:b.sourceAttributions}}});
XM.prototype.panelContentVisibleChanged=XM.prototype.panelContentVisibleChanged;_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],XM.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],XM.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],XM.prototype,"componentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],XM.prototype,"data",void 0);
_.V([_.C(),_.f("design:type",Boolean)],XM.prototype,"panelContentVisible",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],XM.prototype,"engagementPanel",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],XM.prototype,"shortsPanel",void 0);_.V([_.to("#inline-expander"),_.f("design:type",Object)],XM.prototype,"inlineExpander",void 0);
_.V([_.OB("panelContentVisible"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],XM.prototype,"panelContentVisibleChanged",null);_.V([_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],XM.prototype,"hasDescriptionText",null);_.V([_.W("data"),_.f("design:type",Number),_.f("design:paramtypes",[])],XM.prototype,"collapsedLines",null);
_.V([_.W("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.f("design:type",Object),_.f("design:paramtypes",[])],XM.prototype,"descriptionText",null);_.V([_.W("data","data.headerRuns"),_.f("design:type",Object),_.f("design:paramtypes",[])],XM.prototype,"headerRuns",null);_.V([_.W("data","data.sourceAttributions"),_.f("design:type",Object),_.f("design:paramtypes",[])],XM.prototype,"sourceAttributions",null);
_.V([_.Yx({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],XM);
_.k(XM,"ytd-expandable-video-description-body-renderer",function(){if(nvW!==void 0)return nvW;var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return nvW=b},{mode:_.Lt("kevlar_poly_si_batch_j028")?1:2});var ujo;var O78=_.T(function(b){var h=b.data;return _.M("factoid-renderer",{class:"ytwFactoidRendererHost"},_.M("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return h().accessibilityText}},_.M("span",{class:"ytwFactoidRendererValue"},_.M(_.zv,{text:function(){return h().value}})),_.M("span",{class:"ytwFactoidRendererLabel"},_.M(_.zv,{text:function(){return h().label}}))))},"nd");_.yd(O78,"factoid-renderer",{props:{data:_.D4}});_.yd(_.T(function(b){var h=b.data;return _.M("upload-time-factoid-renderer",null,_.M(_.rC,{data:function(){return h().factoid}},{factoidRenderer:O78}))},"od"),"upload-time-factoid-renderer",{props:{data:_.v3}});_.yd(_.T(function(b){var h=b.data;return _.M("view-count-factoid-renderer",null,_.M(_.rC,{data:function(){return h().factoid}},{factoidRenderer:O78}))},"pd"),"view-count-factoid-renderer",{props:{data:_.v3}});var H$=function(){var b=_.g.apply(this,arguments)||this;b.shortsPanel=!1;b.engagementPanel=!1;b.watchWhileSdp=_.r("shorts_desktop_watch_while_sdp");return b};
_.z(H$,_.g);H$.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"}}}}};
_.tm.Object.defineProperties(H$.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var b;return(b=this.data)==null?void 0:b.channel}}});
_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],H$.prototype,"componentBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],H$.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],H$.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],H$.prototype,"shortsPanel",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],H$.prototype,"engagementPanel",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],H$.prototype,"watchWhileSdp",void 0);_.V([_.W("shortsPanel","engagementPanel","data.channel"),_.f("design:type",Object),_.f("design:paramtypes",[])],H$.prototype,"showChannelInfo",null);_.V([_.Yx({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],H$);
_.k(H$,"ytd-video-description-header-renderer",function(){if(ujo!==void 0)return ujo;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return ujo=b},{mode:1});var NWa;var u2=function(){return _.g.apply(this,arguments)||this};
_.z(u2,_.g);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],u2.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],u2.prototype,"ytRendererBehavior",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],u2.prototype,"noPadding",void 0);_.V([_.C(),_.f("design:type",Object)],u2.prototype,"data",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],u2);
_.k(u2,"ytd-list-item-view-model",function(){if(NWa!==void 0)return NWa;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return NWa=b},{mode:1});var tJ5;var rbP;var cbb;var Rje;var OI=function(){var b=_.g.apply(this,arguments)||this;b.adaptiveFullWidth=!1;b.modernButtons=_.r("web_modern_buttons");b.buttonOverrides={style:"call-to-action",type:"filled"};b.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return b};
_.z(OI,_.g);OI.prototype.handleSetTimestamp_=function(b){this.data&&this.data.shortUrl&&(_.$x(this.hostElement).querySelector("#share-url").value=b.isSet?_.a6(this.data.shortUrl,"t",b.timestamp):this.data.shortUrl)};
OI.prototype.handleSignalActionCopyShareUrl_=function(b,h){(_.r("killswitch_copy_link_target_check")||_.$x(this.hostElement).querySelector("#copy-button")===h)&&this.copyUrlToClipboard()};
OI.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.$x(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
OI.prototype.computeStyle_=function(b){return b?b.toLowerCase().replace(/_/g,"-"):""};
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],OI.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],OI.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],OI.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.f("design:type",String)],OI.prototype,"rendererStyle",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],OI.prototype,"adaptiveFullWidth",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],OI.prototype,"modernButtons",void 0);_.V([_.C(),_.f("design:type",Object)],OI.prototype,"buttonOverrides",void 0);_.V([_.sB({is:"yt-copy-link-renderer",disableElementRegistration:!0})],OI);
_.k(OI,"yt-copy-link-renderer",function(){if(Rje===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;cbb===void 0&&(cbb=document.createElement("template"));var S=cbb;y.call(h,S.content.cloneNode(!0),b.content.firstChild);Rje=b}b=Rje;return b},{mode:2});_.W2("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var N3=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return b};
_.z(N3,_.g);_.d=N3.prototype;_.d.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.d.attached=function(){this.keyboardFocused=!1};
_.d.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var b=_.H9().resolve(_.XS(_.sG));b&&(this.keyboardFocused=b.isKeyBoardInUse())}};
_.d.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.d.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}};
_.d.onChange_=function(){if(this.data){var b=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;b&&this.ytComponentBehavior.resolveCommand(b);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.d.handleUpdateToggleAction_=function(b){(b=_.c(b,veP))&&this.data&&b.targetId==this.data.targetId&&this.set("data.toggled",b.toggled)};
_.d.toBoolean_=function(b){return!!b};
_.d.reset=function(){};
_.d.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ut("data-changed",this.data))};
_.d.updateDataToggledFromBinding=function(b){this.set("data.toggled",b.detail.value)};
N3.prototype.dataChangedForBinding=N3.prototype.dataChangedForBinding;_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],N3.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],N3.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],N3.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],N3.prototype,"ytRendererBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],N3.prototype,"data",void 0);_.V([_.C({computed:"computeDescription_(data.*)"}),_.f("design:type",Object)],N3.prototype,"description_",void 0);_.V([_.C({value:function(){return!!_.H9().resolve(_.XS(_.sG))&&_.r("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.f("design:type",Boolean)],N3.prototype,"useKeyboardFocused",void 0);_.V([_.C({value:!1,reflectToAttribute:!0}),_.f("design:type",Boolean)],N3.prototype,"keyboardFocused",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],N3.prototype,"dataChangedForBinding",null);_.V([_.sB({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],N3);
_.k(N3,"yt-toggle-form-field-renderer",function(){if(rbP===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;tJ5===void 0&&(tJ5=document.createElement("template"));var S=tJ5;y.call(h,S.content.cloneNode(!0),b.content.firstChild);rbP=b}b=rbP;return b},{mode:2});var zj8;var D48;var tN=function(){var b=_.g.apply(this,arguments)||this;b.isDarkTheme=!1;b.isSearch=!1;b.noTopMargin=_.r("kevlar_watch_no_top_margin");b.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 b};
_.z(tN,_.g);_.d=tN.prototype;_.d.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}}}}}};
_.d.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.d.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.d.dataChanged=function(){var b=this.getSelectedIndex();if(b>0)this.selected=b;else{this.selected=0;var h,y;(h=this.ytScrollableChipCloudBehavior)==null||(y=h.reset)==null||y.call(h)}};
_.d.getSelectedIndex=function(){var b;if((b=this.data)==null||!b.chips)return-1;b=-1;for(var h,y=0;y<((h=this.data)==null?void 0:h.chips.length);y++){var S=void 0,F=void 0;if((S=this.data)==null?0:(F=S.chips[y].chipCloudChipRenderer)==null?0:F.isSelected){b=y;break}}return b};
_.d.onResize=function(){var b=this.ytScrollableChipCloudBehavior;_.Ob(b,b.setContainerWidthDiff);b=this.ytScrollableChipCloudBehavior;_.Ob(b,b.setButtonsState)};
_.d.onDarkModeToggledAction=function(b){this.isDarkTheme=b};
_.d.handleRelatedChipCommand=function(b,h){b=this.JSC$16778_chipsSelector.indexOf(h);b!==-1&&this.JSC$16778_chipsSelector.selectIndex(b)};
_.d.handleChipCloudChipSelectAction=function(b){b=this.JSC$16778_chipsSelector.indexOf(b);b>-1&&this.JSC$16778_chipsSelector.selectIndex(b)};
_.d.handleChipCloudChipDeselectAction=function(){var b=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16778_chipsSelector&&((b==null?0:b.continuationCommand)?_.dh(this.hostElement,[b]):(b==null?0:b.searchEndpoint)?this.ytComponentBehavior.resolveCommand(b):b&&_.jx(this.hostElement,[b],this.hostElement),this.JSC$16778_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.d.updateSelectedFromBinding=function(b){this.selected=b.detail.value};
tN.prototype.onResize=tN.prototype.onResize;tN.prototype.dataChanged=tN.prototype.dataChanged;tN.prototype.isSearchChanged=tN.prototype.isSearchChanged;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],tN.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],tN.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],tN.prototype,"actionHandlerBehavior",void 0);
_.V([_.B(_.ab),_.f("design:type",Object)],tN.prototype,"ironResizableBehavior",void 0);_.V([_.B(),_.f("design:type",b0)],tN.prototype,"ytScrollableChipCloudBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],tN.prototype,"ytComponentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],tN.prototype,"data",void 0);_.V([_.C({value:0}),_.f("design:type",Number)],tN.prototype,"selected",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],tN.prototype,"isDarkTheme",void 0);_.V([_.C({value:160}),_.f("design:type",Number)],tN.prototype,"scrollDistance",void 0);_.V([_.C(),_.f("design:type",Object)],tN.prototype,"isSearch",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],tN.prototype,"noTopMargin",void 0);_.V([_.to("#chips"),_.f("design:type",Object)],tN.prototype,"JSC$16778_chipsSelector",void 0);
_.V([_.OB("isSearch"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],tN.prototype,"isSearchChanged",null);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],tN.prototype,"dataChanged",null);_.V([_.u3("iron-resize"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],tN.prototype,"onResize",null);_.V([_.sB({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],tN);
_.k(tN,"yt-chip-cloud-renderer",function(){if(D48===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;zj8===void 0&&(zj8=document.createElement("template"));var S=zj8;y.call(h,S.content.cloneNode(!0),b.content.firstChild);D48=b}b=D48;return b},{mode:2});var Ioa,BWW=function(){return Ioa!==void 0?Ioa:Ioa=document.createElement("template")};
document.head.appendChild(BWW().content);var Wjb;var Ab5=document.head,U4o=Ab5.appendChild,ptW;if(Wjb===void 0){var Jbo=document.createElement("template");_.D(Jbo,"");Jbo.content.insertBefore(BWW().content.cloneNode(!0),Jbo.content.firstChild);Wjb=Jbo}ptW=Wjb;U4o.call(Ab5,ptW.content);var ej7=_.T(function(b){var h=b.data;return _.M("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.M("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.M("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.M(_.H,{cond:function(){return _.EF(h().image)},
then:function(y){return _.M("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.M(_.mI,{data:y,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.M("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.M(_.zv,{text:function(){return h().title}})),_.M("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.M(_.zv,{text:function(){return h().subtitle}})))),_.M(_.H,{cond:function(){var y;
return(y=h())==null?void 0:y.hasBottomDivider},
then:function(){return _.M("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"qd");var CdW=_.T(function(b){var h=b.data;return _.M("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.M("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.M(_.rC,{data:function(){var y;return(y=h().offerPlanDetailsItem)!=null?y:[]}},{offerPlanDetailsItemViewModel:function(y){return _.M("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.M(ej7,{data:y.data}))}})),_.M("div",null,_.M(_.H,{cond:function(){return h().hasBottomDivider},
then:function(){return _.M("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.M("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.M("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.M("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.M("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"rd");var gv7=_.T(function(b){var h=b.data;b=_.L(_.pa(!1,void 0,"MrXxy"));var y=b.next().value,S=b.next().value,F=_.Zv(function(){S(!y());return!1}),a=function(){var P;
return(P=h().offerPlanDetailsContainer)!=null?P:[]};
return _.M("lp-complex-offer-card-details-view-model",null,_.M("div",null,_.M(_.H,{cond:function(){return y()},
then:function(){return _.M("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.M("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":F,"aria-expanded":y},_.M(_.zv,{text:function(){return h().expandedTitle}})),_.M("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.M(_.rC,{data:a},{offerPlanDetailsContainerViewModel:function(P){return _.M("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.M(CdW,{data:P.data}))}})),_.M("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.M(_.zv,{text:function(){return h().legalText}})))},
else:function(){return _.M("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":F,"aria-expanded":y},_.M(_.zv,{text:function(){return h().collapsedTitle}}),_.M("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.M(_.Xv,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"sd");var sMW=_.T(function(b){var h=b.data;return _.M("lp-complex-offer-card-option-view-model",null,_.M("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.M(_.H,{cond:function(){return h().topDividerText},
then:function(){return _.M("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.M("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.M("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.M("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.M(_.zv,{text:function(){return h().topDividerText}}))))}}),_.M(_.H,{cond:function(){return h().description},
then:function(){return _.M("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.M(_.zv,{text:function(){return h().description}}))}}),_.M(_.H,{cond:function(){return h().planPricingPrimary},
then:function(){return _.M("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.M(_.zv,{text:function(){return h().planPricingPrimary}}))}}),_.M(_.H,{cond:function(){return h().planPricingSecondary},
then:function(){return _.M("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.M(_.zv,{text:function(){return h().planPricingSecondary}}))}}),_.M(_.H,{cond:function(){return h().primaryButton},
then:function(){return _.M("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.M(_.rC,{data:function(){return h().primaryButton}},{buttonViewModel:function(y){return _.M(_.EG,{data:y.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"td");var Yd7=_.T(function(b){var h=b.data;var y=function(){var a;return((a=h())==null?void 0:a.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
b={};var S={},F={};return _.M("ytm-lp-complex-offer-card-view-model",null,_.M("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.M("div",{class:_.P2((b.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=y,b),"ytmLpComplexOfferCardViewModelCardContainer")},_.M(_.H,{cond:function(){var a;return(a=h())==null?void 0:a.bannerText},
then:function(){return _.M("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.M("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.M(_.zv,{text:function(){return h().bannerText}})))}}),_.M(_.H,{cond:function(){return _.EF(h().logo)},
then:function(a){var P={};return _.M("div",{class:_.P2((P.ytmLpComplexOfferCardViewModelLogoAlignLeft=y,P),"ytmLpComplexOfferCardViewModelLogo")},_.M(_.mI,{data:a,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.M("div",{class:_.P2((S.ytmLpComplexOfferCardViewModelTitleAlignLeft=y,S),"ytmLpComplexOfferCardViewModelTitle")},_.M(_.zv,{text:function(){return h().title}})),_.M(_.H,{cond:function(){var a;
return(a=h())==null?void 0:a.subtitle},
then:function(){var a={};return _.M("div",{class:_.P2((a.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=y,a),"ytmLpComplexOfferCardViewModelSubtitle")},_.M(_.zv,{text:function(){return h().subtitle}}))}}),_.M(_.H,{cond:function(){return h().planPricingPrimary},
then:function(){return _.M("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.M(_.zv,{text:function(){return h().planPricingPrimary}}))}}),_.M(_.H,{cond:function(){return h().planPricingSecondary},
then:function(){return _.M("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.M(_.zv,{text:function(){return h().planPricingSecondary}}))}}),_.M(_.H,{cond:function(){return h().purchaseButton},
then:function(){return _.M("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.M(_.rC,{data:function(){return h().purchaseButton}},{buttonViewModel:function(a){return _.M(_.EG,{data:a.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.M(_.H,{cond:function(){var a;
return(a=h())==null?void 0:a.offerOptions},
then:function(){return _.M("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.M(_.rC,{data:function(){return h().offerOptions}},{lpComplexOfferCardOptionViewModel:sMW}))}}),_.M("div",{class:_.P2((F.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=y,F),"ytmLpComplexOfferCardViewModelLegalText")},_.M(_.zv,{text:function(){return h().legalText}})),_.M(_.H,{cond:function(){var a;
return(a=h())==null?void 0:a.offerCardDetails},
then:function(){return _.M("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.M(_.rC,{data:function(){return h().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:gv7}))}}))))},"ud");var TWW=_.T(function(b){var h=b.data;var y=function(){var P;return((P=h())==null?void 0:P.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
b={};var S={},F={},a={};return _.M("ytm-lp-complex-offer-card-section-view-model",null,_.M("div",{class:_.P2("ytmLpComplexOfferCardSectionViewModelHost")},_.M("div",{class:_.P2((b.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=y,b),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.M("div",{class:_.P2((S.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=y,S),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.M("h2",{class:_.P2((F.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
y,F),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.M(_.zv,{text:function(){return h().title}}))),_.M(_.H,{cond:function(){var P;
return(P=h())==null?void 0:P.subtitle},
then:function(){var P={},K={};return _.M("div",{class:_.P2((P.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=y,P),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.M("div",{class:_.P2((K.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=y,K),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.M(_.zv,{text:function(){return h().subtitle}})))}}),_.M("div",{class:_.P2((a.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=y,a),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.M(_.rC,{data:function(){var P;
return(P=h().offerPlans)!=null?P:[]}},{lpComplexOfferCardViewModel:function(P){return _.M("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.M(Yd7,{data:P.data}))}})))))},"vd");var GFN=_.T(function(b){return _.M("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.M("div",{class:"ytLpCouponBannerViewModelIcon"},_.M(_.Xv,{icon:function(){return"price_tag"}})),_.M("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.M("div",{class:"ytLpCouponBannerViewModelContent"},_.M("div",{class:"ytLpCouponBannerViewModelHeading"},_.M(_.zv,{text:function(){var h;
return(h=b.data())==null?void 0:h.title}})),_.M("div",{class:"ytLpCouponBannerViewModelBody"},_.M(_.zv,{text:function(){var h;
return(h=b.data())==null?void 0:h.subtitle}})))))},"wd");
GFN.idomCompat=!0;_.rt=rmw.getInstance();var kF7;kF7=_.T(function(b){return _.M("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsQuestion","aria-hidden":b.shouldAriaHideContent},_.M("h2",{class:"ytLpFaqEntryViewModelLpFaqQuestion",id:b.questionId},_.M(_.zv,{text:b.question})))},"xd");
_.VJP=_.T(function(b){var h=b.data;var y=b.themeOverride;b=_.L(_.pa(!1,void 0,"pNli2b"));var S=b.next().value,F=b.next().value;b=_.Zv(function(){F(!S());return!1});
var a=function(){return S()?"EXPAND_LESS":"EXPAND_MORE"},P=("faq-container"+_.yR(_.rt)).toString(),K="faq-question-and-answers-section-question"+_.yR(_.rt),n={},X={};
return _.M("faq-entry-view-model",null,_.M("div",{class:_.P2("ytLpFaqEntryViewModelHost",(n.ytLpFaqEntryViewModelPremiumForceDarkMode=function(){return y==null?void 0:y().useDarkTheme},n))},_.M("div",{class:"ytLpFaqEntryViewModelFaqQuestionAndAnswersSection",
"on:click":b,role:"button","aria-expanded":S,"aria-labelledby":K.toString(),"tab-index":"0"},_.M(kF7,{question:function(){return h().question},
questionId:K,shouldAriaHideContent:!0}),_.M(_.H,{cond:function(){return S()!==void 0},
then:function(){return _.M("div",{class:"ytLpFaqEntryViewModelIconContainer"},_.M(_.Xv,{icon:a,ariaHidden:!0}),_.M("div",{class:"ytLpFaqEntryViewModelIconHoverHighlighting"}))}})),_.M("div",{class:_.P2("ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswer",(X.ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswerCollapsed=function(){return!S()},X))},_.M("div",{id:P},_.M(_.Gw,{each:function(){return h().answers||[]}},function(u){return _.M("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsAnswer"},_.M(_.zv,
{text:u}))})))))},"yd");
_.VJP.idomCompat=!0;var EvN=_.T(function(b){var h=b.data;var y=b.themeOverride;b={};return _.M("lp-faq-section-view-model",null,_.M("div",{class:_.P2("yt-lp-faq-section-view-model",(b["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return h().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},b["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(y==null||!y().useDarkTheme)},b))},_.M("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.M(_.H,{cond:function(){return h().header},
then:function(S){return _.M("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.M(_.zv,{text:S}))}}),_.M("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.M(_.rC,{data:function(){return h().faqs}},{faqEntryViewModel:function(S){return _.M(_.VJP,{data:S.data,
themeOverride:y})}})),_.M("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.M(_.Gw,{each:function(){return h().footers||[]}},function(S){return _.M(_.zv,{text:S})})),_.M(_.H,{cond:function(){return h().legal},
then:function(S){return _.M("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.M(_.zv,{text:S}))}}))))},"zd");
EvN.idomCompat=!0;var i7N=_.T(function(b){var h=b.data;var y=b.themeOverride;_.wg(function(){var P=h().gtmId;P&&_.dc(P,_.QC("GL",""))});
var S={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var P,K,n;return(n=(P=h().logo)==null?void 0:(K=P.accessibilityData)==null?void 0:K.label)!=null?n:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},F=_.H9().resolve(_.XS(_.cC)),a=function(){return F&&F()||(y==null?void 0:y().useDarkTheme)};
return _.M("lp-header-section-view-model",null,_.M("div",{class:function(){var P=h().layoutType,K=h().marginType==="LP_SECTION_MARGIN_TYPE_TOP",n=y==null?void 0:y().useDarkTheme,X=["lp-header-section-view-model"];switch(P){case "LP_MODULE_LAYOUT_TYPE_PTC":X.push("lp-header-section-view-model--ptc-layout-type");break;case "LP_MODULE_LAYOUT_TYPE_NARROW_HEADER":X.push("lp-header-section-view-model--narrow-header-layout-type")}K&&X.push("lp-header-section-view-model__lp-header-section-margin");n&&X.push("lp-header-section-view-model--premium-force-dark-mode");
return X.join(" ")}},_.M(_.H,{cond:function(){return h().logo},
then:function(){return _.M("div",null,_.M(_.H,{cond:a,then:function(){return _.M(_.H,{cond:function(){var P;return(P=h().logo)==null?void 0:P.imageDark},
then:function(P){return _.M(_.mI,Object.assign({},{data:P},S))}})},
else:function(){return _.M(_.H,{cond:function(){var P;return(P=h().logo)==null?void 0:P.imageLight},
then:function(P){return _.M(_.mI,Object.assign({},{data:P},S))}})}}))}}),_.M(_.H,{cond:function(){return h().title},
then:function(P){return _.M("div",{class:"lp-header-section-view-model__lp-header-title"},_.M(_.zv,{text:P}))}}),_.M("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.M(_.H,{cond:function(){return h().subtitles},
then:function(P){return _.M(_.Gw,{each:P},function(K){return _.M("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.M(_.zv,{text:K}))})}})),_.M(_.H,{cond:function(){return h().additionalInfo},
then:function(P){return _.M("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.M(_.zv,{text:P}))}}),_.M("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.M(_.H,{cond:function(){return h().primaryButton},
then:function(P){return _.M("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.M(_.rC,{data:P},{buttonViewModel:_.EG}))}}),_.M(_.H,{cond:function(){return h().secondaryButton},
then:function(P){return _.M("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.M(_.rC,{data:P},{buttonViewModel:_.EG}))}})),_.M(_.H,{cond:function(){return h().otherOffersInfo},
then:function(P){return _.M("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.M(_.zv,{text:P}))}}),_.M("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.M(_.H,{cond:function(){return h().billingInfo},
then:function(P){return _.M(_.Gw,{each:P},function(K){return _.M("div",null,_.M(_.zv,{text:K}))})}}))))},"Ad");
i7N.idomCompat=!0;var fo8=_.T(function(b){return _.M("lp-header-upsell-banner-view-model",{class:_.P2("lpHeaderUpsellBannerViewModelHost",b.className,{})},_.M("div",{class:"lpHeaderUpsellBannerViewModelIcon"},_.M(_.Xv,{icon:function(){return"CAMPAIGN"}})),_.M("div",{class:"lpHeaderUpsellBannerViewModelOuterContainer"},_.M("div",{class:"lpHeaderUpsellBannerViewModelContainer"},_.M("div",{class:"lpHeaderUpsellBannerViewModelContent"},_.M("div",{class:"lpHeaderUpsellBannerViewModelDescription"},_.M(_.zv,{text:function(){var h;
return(h=b.data())==null?void 0:h.description}})))),_.M(_.rC,{data:function(){var h;
return(h=b.data())==null?void 0:h.purchaseButton}},{buttonViewModel:function(h){return _.M(_.EG,{data:h.data,
className:"lpHeaderUpsellBannerViewModelPurchaseButton"})}})))},"Bd");var wta=_.T(function(b){var h=b.data;var y=_.bi(b.themeOverride,{useDarkTheme:!1});b={};b=_.P2("ytmLpHeadlineSectionViewModelHost",(b.ytmLpHeadlineSectionViewModelPremiumForceDarkMode=function(){return y().useDarkTheme},b));
return _.M("lp-headline-section-view-model",null,_.M("div",{class:b},_.M(_.H,{cond:function(){return h().title},
then:function(S){return _.M("div",{class:"ytmLpHeadlineSectionViewModelTitleText"},_.M(_.zv,{text:S}))}}),_.M(_.H,{cond:function(){return h().subtitle},
then:function(S){return _.M("div",{class:"ytmLpHeadlineSectionViewModelSubtitleText"},_.M(_.zv,{text:S}))}})))},"Cd");var loW=_.T(function(b){var h=b.data;var y=b.themeOverride;var S=_.H9().resolve(_.XS(_.cC)),F=function(){return S&&S()||(y==null?void 0:y().useDarkTheme)},a=function(){var X,u;
var O=F()?(X=h().textBackgroundImage)==null?void 0:X.imageDark:(u=h().textBackgroundImage)==null?void 0:u.imageLight;return w7I((O==null?void 0:O.sources)||[])},P=function(){var X,u;
return F()?(X=h().featureImage)==null?void 0:X.imageDark:(u=h().featureImage)==null?void 0:u.imageLight},K=function(){return h().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},n=function(){var X,u;
return F()?(X=h().logo)==null?void 0:X.imageDark:(u=h().logo)==null?void 0:u.imageLight};
return _.M("ytm-lp-large-feature-section-view-model",null,_.M("div",{class:function(){var X=h().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",u=h().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",O=(h().index||0)%2===1,N=y==null?void 0:y().useDarkTheme,t=["yt-lp-large-feature-section-view-model"];X?t.push("yt-lp-large-feature-section-view-model--music-feature-type"):u?t.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):O||t.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
N&&t.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return t.join(" ")}},_.M("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.M(_.H,{cond:P,
then:function(){return _.M(_.mI,{data:function(){return P()},
alt:function(){var X,u,O;return(O=(X=h().featureImage)==null?void 0:(u=X.accessibilityData)==null?void 0:u.label)!=null?O:""},
contentMode:K})}})),_.M("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var X;return((X=a())==null?0:X.url)?"background-image: url("+_.lJ(a().url)+");":""}},_.M("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.M(_.H,{cond:n,
then:function(){return _.M(_.mI,{data:function(){return n()},
alt:function(){var X,u,O;return(O=(X=h().logo)==null?void 0:(u=X.accessibilityData)==null?void 0:u.label)!=null?O:""},
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"})}}),_.M(_.H,{cond:function(){return h().eyebrowText},
then:function(){return _.M("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.M(_.zv,{text:function(){return h().eyebrowText}}))}}),_.M(_.H,{cond:function(){return h().title},
then:function(){return _.M("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.M(_.zv,{text:function(){return h().title}}))}}),_.M(_.H,{cond:function(){return h().subtitles},
then:function(){return _.M("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.M(_.Gw,{each:function(){return h().subtitles||[]}},function(X){return _.M(_.zv,{text:X})}))}})))))},"Dd");
loW.idomCompat=!0;var qdN=_.T(function(b){return _.M("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.M("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.M(_.Xv,{icon:function(){var h;return(h=b.data())==null?void 0:h.iconType},
className:function(){var h;switch((h=b.data())==null?void 0:h.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 h;return((h=b.data())==null?void 0:h.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.M("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.M(_.zv,{text:function(){var h;
return(h=b.data())==null?void 0:h.text},
className:function(){var h;return((h=b.data())==null?void 0:h.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"Ed");var x4W=_.T(function(b){b=_.h6(b,{config:void 0,themeOverride:void 0});var h=b.data,y=b.config,S=b.themeOverride;b={};b=_.P2("ytmLpOfferCardOptionViewModelHost",(b.ytmLpOfferCardOptionViewModelPremiumForceDarkMode=function(){var K;return(K=S())==null?void 0:K.useDarkTheme},b));
var F=_.Zv(function(){var K,n;(K=y())==null||(n=K.handleRadioButtonClick)==null||n.call(K,h());return!1}),a=function(){var K;
return(K=y())==null?void 0:K.shouldDisplayRadioButton},P=function(){var K;
return(K=h().featureListItems)!=null?K:[]};
return _.M("ytm-lp-offer-card-option-view-model",null,_.M("div",{class:b,"on:click":_.Zv(function(){if(a()){var K,n;(K=y())==null||(n=K.handleRadioButtonClick)==null||n.call(K,h())}return!1})},_.M(_.H,{cond:a,
then:function(){return _.M("div",null,_.M("input",{type:"radio","on:click":F,class:"ytmLpOfferCardOptionViewModelInputEl","prop:checked":function(){var K;return!((K=y())==null||!K.isOptionSelected)}}))}}),_.M("div",null,_.M("div",{class:"ytmLpOfferCardOptionViewModelEyebrowText"},_.M(_.zv,{text:function(){return h().eyebrowText}})),_.M("div",{class:"ytmLpOfferCardOptionViewModelTitle"},_.M(_.zv,{text:function(){return h().title}})),_.M("div",{class:"ytmLpOfferCardOptionViewModelSubtitle"},_.M(_.zv,
{text:function(){return h().subtitle}})),_.M(_.H,{cond:function(){return P().length>0},
then:function(){return _.M("div",{class:"ytmLpOfferCardOptionViewModelFeatureListItems"},_.M(_.rC,{data:P},{lpFeatureListItemViewModel:qdN}))}}),_.M("div",{class:"ytmLpOfferCardOptionViewModelDescription"},_.M(_.zv,{text:function(){return h().description}})))))},"Fd");
x4W.idomCompat=!0;var QMe=_.T(function(b){var h=b.data;var y=b.themeOverride;b=_.L(_.ya(function(){var a,P=(a=h().offerOptions)==null?void 0:a[0];return _.c(P,l4W)||{}}));
var S=b.next().value,F=b.next().value;b={};return _.M("ytm-lp-offer-card-view-model",null,_.M("div",{class:_.P2("ytmLpOfferCardViewModelHost",(b.ytmLpOfferCardViewModelPremiumForceDarkMode=function(){return!(y==null||!y().useDarkTheme)},b))},_.M("div",{class:"ytmLpOfferCardViewModelTitleContainer"},_.M(_.H,{cond:function(){return h().titleIconType},
then:function(){return _.M("div",{class:"ytmLpOfferCardViewModelIconContainer"},_.M(_.Xv,{icon:function(){var a;return((a=h().titleIconType)==null?void 0:a.toString())||""}}))}}),_.M("div",{class:"ytmLpOfferCardViewModelTitleText"},_.M(_.zv,{text:function(){return h().title}})),_.M(_.rC,{data:function(){return h().titleBadge}},{badgeViewModel:function(a){return _.M("div",{class:"ytmLpOfferCardViewModelTitleBadge"},_.M(_.gE,{data:a.data}))}})),_.M("div",{class:"ytmLpOfferCardViewModelOfferOptionsContainer"},
_.M(_.rC,{data:function(){return h().offerOptions}},{lpOfferCardOptionViewModel:function(a){var P=a.data;
return _.M(_.OW,null,_.M("div",{class:"ytmLpOfferCardViewModelDivider"}),_.M(x4W,{data:P,config:function(){var K;return{shouldDisplayRadioButton:(h().offerOptions||[]).length>1,isOptionSelected:P().id===((K=S())==null?void 0:K.id),handleRadioButtonClick:function(n){return void F(n)}}},
themeOverride:y}))}})),_.M("div",{class:"ytmLpOfferCardViewModelPurchaseButtonContainer"},_.M(_.rC,{data:function(){var a;
return(a=S())==null?void 0:a.purchaseButtonOverride}},{buttonViewModel:_.EG}))))},"Gd");
QMe.idomCompat=!0;var m4b=_.T(function(b){var h=b.data;var y=b.themeOverride;b={};b=_.P2("ytmLpOfferCardSectionViewModelHost",(b.ytmLpOfferCardSectionViewModelPremiumForceDarkMode=function(){var S;return y==null?void 0:(S=y())==null?void 0:S.useDarkTheme},b));
return _.M("ytm-lp-offer-card-section-view-model",null,_.M("div",{class:b},_.M(_.H,{cond:function(){return h().title!==void 0},
then:function(){return _.M("div",{class:"ytmLpOfferCardSectionViewModelTitleContainer"},_.M("div",{class:"ytmLpOfferCardSectionViewModelTitleText"},_.M(_.zv,{text:function(){return h().title}})),_.M(_.H,{cond:function(){return h().subtitle},
then:function(){return _.M("div",{class:"ytmLpOfferCardSectionViewModelSubtitleText"},_.M(_.zv,{text:function(){return h().subtitle}}))}}))}}),_.M("div",{class:"ytmLpOfferCardSectionViewModelOfferCardsContainer"},_.M(_.rC,{data:function(){return h().offerCards}},{lpOfferCardViewModel:function(S){return _.M("div",{class:"ytmLpOfferCardSectionViewModelOfferCardContainer"},_.M(QMe,{data:S.data,
themeOverride:y}))}})),_.M(_.H,{cond:function(){return h().footer},
then:function(){return _.M("div",{class:"ytmLpOfferCardSectionViewModelFooterText"},_.M(_.zv,{text:function(){return h().footer}}))}})))},"Hd");var vv8=_.T(function(b){var h=b.data;return _.M("lp-offer-table-cell-content-view-model",null,_.M("div",{class:"ytLpOfferTableCellContentViewModelHost"},_.M(_.kZ,null,_.M(_.YZ,{when:function(){return h().title}},function(){return _.M(_.zv,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellTitle",
text:function(){return h().title}})}),_.M(_.YZ,{when:function(){return h().subTitle}},function(){return _.M(_.zv,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellSubtitle",
text:function(){return h().subTitle}})}),_.M(_.YZ,{when:function(){return h().featureDescription}},function(){return _.M(_.zv,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDescription",
text:function(){return h().featureDescription}})}),_.M(_.YZ,{when:function(){return h().description}},function(){return _.M(_.zv,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellDescription",
text:function(){return h().description}})}),_.M(_.YZ,{when:function(){return h().iconType}},function(){return _.M("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellIcon"},_.M(_.Xv,{icon:function(){return h().iconType.toString()}}))}),_.M(_.YZ,{when:function(){return h().purchaseButton}},function(){return _.M(_.rC,{data:function(){return h().purchaseButton}},{buttonViewModel:function(y){return _.M("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellPurchaseButton"},_.M(_.EG,
{data:y.data}))}})}),_.M(_.YZ,{when:function(){return h().note}},function(){return _.M(_.zv,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellNote",
text:function(){return h().note}})}),_.M(_.YZ,{when:function(){return h().featureDetail}},function(){return _.M(_.zv,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDetail",
text:function(){return h().featureDetail}})}),_.M(_.YZ,{when:function(){return h().badge}},function(){return _.M(_.rC,{data:function(){return h().badge}},{badgeViewModel:_.gE})}))))},"Id");
vv8.idomCompat=!0;var bON=_.T(function(b){var h=b.data;return _.M("lp-offer-table-cell-view-model",null,_.M("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(h().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;"}}},_.M(_.rC,{data:function(){return h().contents}},{lpOfferTableCellContentViewModel:vv8})))},
"Jd");
bON.idomCompat=!0;var hCo=_.T(function(b){var h=b.data;var y=b.lpTableIsFirstRow;var S=b.lpTableIsLastRow;var F=function(){return(y==null?0:y())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowHeaderCell":"ytLpOfferTableRowViewModelLpOfferTableRowHeaderCell"},a=function(){return(y==null?0:y())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowContentCell":(S==null?0:S())?"ytLpOfferTableRowViewModelLpOfferTableLastRowContentCell":"ytLpOfferTableRowViewModelLpOfferTableRowContentCell"};
return _.M("ytm-lp-offer-table-row-view-model",null,_.M("div",{class:"ytLpOfferTableRowViewModelHost"},_.M(_.rC,{data:function(){return h().rowHeaderCell}},{lpOfferTableCellViewModel:function(P){return _.M("div",{class:F},_.M(bON,{data:P.data}))}}),_.M(_.rC,{data:function(){return h().contentCells}},{lpOfferTableCellViewModel:function(P){return _.M("div",{class:a},_.M(bON,{data:P.data}))}})))},"Kd");
hCo.idomCompat=!0;var yh8=_.T(function(b){var h=b.data;var y=b.themeOverride;var S=_.H9().resolve(_.XS(_.cC)),F=function(){return _.c(h().logo,ooo)||{}};
b={};return _.M("ytm-lp-offer-table-section-view-model",null,_.M("div",{class:"ytLpOfferTableViewModelHost"},_.M(_.H,{cond:function(){var a,P;return S&&S()||(y==null?0:y().useDarkTheme)?(a=F())==null?void 0:a.imageDark:(P=F())==null?void 0:P.imageLight},
then:function(a){return _.M(_.mI,{data:a,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var P,K,n;return(n=(P=F())==null?void 0:(K=P.accessibilityData)==null?void 0:K.label)!=null?n:""},
targetWidth:140,targetHeight:40,height:40,className:"ytLpOfferTableViewModelLpOfferTableSectionLogo",useWidth:!1})}}),_.M("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionTitle"},_.M(_.zv,{text:function(){return h().title}})),_.M("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionSubtitle"},_.M(_.zv,{text:function(){return h().subtitle}})),_.M(_.H,{cond:function(){return h().disclaimers},
then:function(a){return _.M("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionDisclaimers"},_.M(_.Gw,{each:a},function(P){return _.M("div",null,_.M(_.zv,{text:P}))}))}}),_.M("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionRows"},_.M(_.rC,{data:function(){return h().rows}},{lpOfferTableRowViewModel:function(a,P){return _.M(hCo,{data:a.data,
lpTableIsFirstRow:function(){return P()===0},
lpTableIsLastRow:function(){return P()===h().rows.length-1}})}})),_.M("div",{class:_.P2((b.ytLpOfferTableViewModelLpOfferTableSectionFooterWrapper=function(){return h().hasFooterBackground},b))},_.M(_.H,{cond:function(){return h().footer},
then:function(){return _.M("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooter"},_.M(_.zv,{text:function(){return h().footer}}))}}),_.M(_.H,{cond:function(){return h().footerTitle},
then:function(){return _.M("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterTitle"},_.M(_.zv,{text:function(){return h().footerTitle}}))}}),_.M(_.H,{cond:function(){return h().footerDescription},
then:function(){return _.M("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.M(_.zv,{text:function(){return h().footerDescription}}))}}),_.M(_.H,{cond:function(){return h().footerDescriptions},
then:function(a){return _.M("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.M(_.Gw,{each:a},function(P){return _.M("div",null,_.M(_.zv,{text:P}))}))}}))))},"Ld");
yh8.idomCompat=!0;var STG=_.T(function(b){var h=b.data;var y=b.themeOverride;var S=_.H9().resolve(_.XS(_.cC)),F=function(){var K;return y==null?void 0:(K=y())==null?void 0:K.useDarkTheme},a=function(){var K,n;
return S&&S()||F()?(K=h().image)==null?void 0:K.imageDark:(n=h().image)==null?void 0:n.imageLight};
b={};b=_.P2("ytmLpSmallFeatureSectionViewModelHost",(b.ytmLpSmallFeatureSectionViewModelPremiumForceDarkMode=F,b));var P=function(){var K,n,X;return(X=(K=h().image)==null?void 0:(n=K.accessibilityData)==null?void 0:n.label)!=null?X:""};
return _.M("ytm-lp-small-feature-section-view-model",{class:b},_.M(_.H,{cond:function(){return a()&&!i6n},
then:function(){return _.M("div",{class:"ytmLpSmallFeatureSectionViewModelFeatureImageContainer"},_.M(_.mI,{data:function(){return a()},
alt:P,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.M("div",{class:"ytmLpSmallFeatureSectionViewModelContentSection"},_.M("div",{class:"ytmLpSmallFeatureSectionViewModelTitleText"},_.M(_.H,{cond:function(){return h().title},
then:function(K){return _.M(_.zv,{text:K})}})),_.M("div",{class:"ytmLpSmallFeatureSectionViewModelDescriptionText"},_.M(_.zv,{text:function(){return h().description}}))))},"Md");
STG.idomCompat=!0;var FUW=_.T(function(b){var h=b.data;var y=b.themeOverride;b={};return _.M("ytm-lp-small-feature-section-group-view-model",null,_.M("div",{class:_.P2("ytmLpSmallFeatureSectionGroupViewModelHost",(b.ytmLpSmallFeatureSectionGroupViewModelPremiumForceDarkMode=function(){return!(y==null||!y().useDarkTheme)},b))},_.M("div",{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeaturesContainer"},_.M(_.rC,{data:function(){return h().smallFeatures}},{lpSmallFeatureSectionViewModel:function(S){return _.M("div",
{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeatureContainer"},_.M(STG,{data:S.data,
themeOverride:y}))}}))))},"Nd");
FUW.idomCompat=!0;_.yd(_.T(function(b){var h=b.data;var y=function(){return h().forcedTheme==="USER_INTERFACE_THEME_DARK"},S=function(){return h().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},F=function(){var P="",K,n;
var X=_.H9().resolve(_.XS(_.cC));X=y()||(X==null?0:X())?(K=h().themedImageViewModel)==null?void 0:K.imageDark:(n=h().themedImageViewModel)==null?void 0:n.imageLight;(K=w7I((X==null?void 0:X.sources)||[]))&&K.url&&(P=S()?"background-image: linear-gradient(to bottom, transparent, "+(h().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"80%")+", var(--premium-yt-spec-base-background)), url("+_.lJ(K.url)+");":"background-image: url("+_.lJ(K.url)+");");return P},a=function(){return{useDarkTheme:y()}};
b={};return _.M("yt-section-group-view-model",null,_.M("div",{class:_.P2("yt-lp-section-group-view-model",(b["yt-lp-section-group-view-model--premium-force-dark-mode"]=y,b["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return h().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},b))},_.M(_.H,{cond:function(){return F().length},
then:function(){var P={};return _.M("div",{class:_.P2("yt-lp-section-group-view-model__bg-image",(P["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=S,P)),style:F})}}),_.M("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.M(_.rC,{data:function(){return h().sections}},{lpHeaderUpsellBannerViewModel:function(P){return _.M(fo8,{data:P.data})},
lpFaqSectionViewModel:function(P){return _.M(EvN,{data:P.data,themeOverride:a})},
lpHeaderSectionViewModel:function(P){return _.M(i7N,{data:P.data,themeOverride:a})},
lpHeadlineSectionViewModel:function(P){return _.M(wta,{data:P.data,themeOverride:a})},
lpLargeFeatureSectionViewModel:function(P){return _.M(loW,{data:P.data,themeOverride:a})},
lpOfferCardSectionViewModel:function(P){return _.M(m4b,{data:P.data,themeOverride:a})},
lpComplexOfferCardSectionViewModel:function(P){return _.M(TWW,{data:P.data})},
lpOfferTableSectionViewModel:function(P){return _.M(yh8,{data:P.data,themeOverride:a})},
lpSmallFeatureSectionGroupViewModel:function(P){return _.M(FUW,{data:P.data,themeOverride:a})},
lpCouponBannerViewModel:function(P){return _.M(GFN,{data:P.data})}}))))},"Od"),"yt-section-group-view-model",{props:{data:_.D4}});_.a2W=_.T(function(b){var h=_.OF(d0k,function(){var P;return(P=b.data())==null?void 0:P.chipBarStateEntityKey}),y=function(){return b.data().disableDeselection},S=_.L(_.ya(function(){var P;
if(((P=h())==null?void 0:P.selectedIndex)!=void 0)return h().selectedIndex;var K,n;P=_.L(((K=b.data())==null?void 0:(n=K.chips)==null?void 0:n.entries())||[]);for(K=P.next();!K.done;K=P.next()){K=_.L(K.value);n=K.next().value;K=K.next().value;var X=void 0;if((X=_.c(K,_.Rk))==null?0:X.selected)return n}return-1})),F=S.next().value,a=S.next().value;
return _.M("chip-bar-view-model",{class:_.P2("ytChipBarViewModelHost",b.className),role:"tablist"},_.M(_.rC,{data:function(){return b.data().chips}},{chipViewModel:function(P,K){return _.M("div",{class:"ytChipBarViewModelChipWrapper"},_.M(_.UXb,{data:P.data,
selected:function(){return K()===F()},
callback:function(n,X){n=!!X;X=K();a(n?X:-1);var u,O=(u=b.data())==null?void 0:u.chipBarStateEntityKey;O&&n&&_.vl(_.R7("chipBarStateEntity",O,{key:O,selectedIndex:X}))},
disableDeselection:b.disableDeselection||y}))}}))},"Pd");_.yd(_.a2W,"chip-bar-view-model",{props:{data:_.v3,className:_.v3,disableDeselection:_.v3}});_.dsW=_.T(function(b){var h=b.data;b={};return _.M("divider-view-model",{class:_.P2("dividerViewModelHost",(b.dividerViewModelInsetThinPadding=function(){return h().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},b))},_.M("div",{class:_.P2("dividerViewModelBaseDivider",function(){return jSF(h().dividerStyle)})}))},"Qd");
_.dsW.idomCompat=!0;_.yd(_.dsW,"divider-view-model",{props:{data:_.D4}});var tF=new Map,rx=new Map,PIq=0,cV;var XYn=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],OuI={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var jdo,$sN;jdo=function(b){return function(h){return function(){return(h==null?void 0:h())!==void 0?String(h())+b:void 0}}};
_.c$=jdo("px");$sN=jdo("s");var LUG=d6I(function(b){return b.targetGroupId}).useUpdatableData;_.Ru=_.T(function(b){function h(dI){return function(){var L4=U().numItemsPerGridRow,Rq=dI()*L4;L4=Rq+L4;var Xn,Ny;return(Ny=(Xn=S().contents)==null?void 0:Xn.slice(Rq,L4))!=null?Ny:[]}}
var y=_.h6(b,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1,useUpdatedMargin:!1}),S=y.data,F=y.layoutContainerWidth,a=y.shouldUseOwnContainerSize,P=y.marginSettings,K=y.useUpdatedMargin,n=EAq(),X=_.L(LUG(function(){var dI,L4;return{targetGroupId:(dI=S().targetingContext)==null?void 0:(L4=dI.targetGroupId)==null?void 0:L4[0]}})).next().value;
y=_.L(_.pa(!0,void 0,"lKny6d"));var u=y.next().value,O=y.next().value,N=function(){var dI,L4=(dI=_.c(S().showMoreButton,_.cA))==null?void 0:dI.trackingParams;L4&&_.QG(_.rU(),L4);O(!1)},t=function(){var dI,L4=(dI=_.c(S().showLessButton,_.cA))==null?void 0:dI.trackingParams;
L4&&_.QG(_.rU(),L4);O(!0)};
y=_.L(_.Rr({canHaveZeroSize:!1}));var R=y.next().value;y=y.next().value;var I=function(){var dI;return(dI=S().contentAspectRatio)!=null?dI:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},U=_.s5(function(){var dI=a()&&R.width()>0?R.width()||F():F(),L4,Rq=(L4=b.data())==null?void 0:L4.responsiveContainerConfiguration;
dI=_.kr({containerWidth:dI,sizing:Rq?Ve(Rq==null?void 0:Rq.responsiveSize):"EXTRA_COMPACT",marginSettings:P(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:dI.maxContainerWidth,numItemsPerGridRow:dI.numItems,contentPadding:a()?dI.margin:dI.contentMargin,itemWidth:dI.itemWidth,itemMargin:dI.gutter/2}},void 0,"XYkF9e"),p=function(){if(S().enableVerticalExpansion){if(u())return e();
var dI,L4,Rq=(L4=(dI=S().contents)==null?void 0:dI.length)!=null?L4:0;return Math.ceil(Rq/U().numItemsPerGridRow)}return U().numItemsPerGridRow<=2?2:1},e=function(){var dI;
return Math.ceil(((dI=S().minCollapsedItemCount)!=null?dI:1)/U().numItemsPerGridRow)},E=function(){return S().enableVerticalExpansion&&S().showLessButton&&!u()&&p()>e()},Y=function(){var dI,L4;
return S().enableVerticalExpansion&&S().showMoreButton&&u()&&((L4=(dI=S().contents)==null?void 0:dI.length)!=null?L4:0)>U().numItemsPerGridRow*e()},w=function(){return!E()},x=function(){return!Y()},q={};
return _.M("grid-shelf-view-model",{class:_.P2("ytGridShelfViewModelHost",b.className,(q.ytGridShelfViewModelHostHasBottomButton=function(){return E()||Y()},q.ytGridShelfViewModelHostIsDismissed=function(){var dI,L4=(dI=X())!=null?dI:{};
dI=L4.behavior;var Rq=L4.isDismissed,Xn=L4.stamperContextTargetId;L4=L4.stamperIndex;if(!(_.r("mweb_see_fewer_shorts_group_dismissal")&&Rq&&dI&&Xn))return!1;var Ny;Rq=n;for(var gI,YU,VN=((gI=Rq)==null?0:gI.targetId)?_.bn((YU=Rq)==null?void 0:YU.targetId):void 0;((Ny=Rq)==null?0:Ny.parent)&&VN!==Xn;)Rq=Rq.parent,YU=gI=void 0,VN=((gI=Rq)==null?0:gI.targetId)?_.bn((YU=Rq)==null?void 0:YU.targetId):void 0;Ny=VN===Xn?Rq:void 0;if(!Ny)return!1;var Hb;Xn=Ny==null?void 0:(Hb=Ny.stamperIndex)==null?void 0:
Hb.call(Ny);return dI==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||dI==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&Xn!=null&&L4!=null&&Xn>L4},q.ytGridShelfViewModelHostOptionalMediumLayoutMargin=K,q)),
el:_.Qa(y),style:_.n9({"margin-left":(0,_.c$)(function(){return U().contentPadding}),
"margin-right":(0,_.c$)(function(){return U().contentPadding})})},_.M(_.H,{cond:function(){return _.c(S().header,tbb)},
then:function(dI){return _.M(_.SE,{data:dI,useUpdatedPadding:K,disableHorizontalPadding:!0})}}),_.M("div",null,_.M(_.Gw,{each:function(){return Array(p())}},function(dI,L4){return _.M(PAw,{className:b.className,
items:h(L4),responsiveGridShelfLayout:U,contentAspectRatio:I})})),_.M("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.M(_.rC,{data:function(){return S().showMoreButton}},{buttonViewModel:function(dI){return _.M("div",{hidden:x},_.M(_.EG,{data:dI.data,
onClick:N}))}}),_.M(_.rC,{data:function(){return S().showLessButton}},{buttonViewModel:function(dI){return _.M("div",{hidden:w},_.M(_.EG,{data:dI.data,
onClick:t}))}})))},"Sd");
_.Ru.idomCompat=!0;var PAw=_.T(function(b){var h=b.items;var y=b.responsiveGridShelfLayout;var S=b.contentAspectRatio;b=b.className;var F=_.ZR("div");LNq(F,function(){a:{var P=F.value;for(var K=h(),n=[],X=0;X<K.length;X++){var u=_.c(K[X],beG);if(!u||u==null||!u.inlinePlayerData){P=null;break a}var O=P.children.item(X);if(!O){P=null;break a}n.push({thumbnailElement:O,videoData:u})}P={gridVideoPreviewData:{gridItems:n}}}return P});
var a=(0,_.c$)(function(){return-y().itemMargin});
return _.M("div",{el:F,class:_.P2("ytGridShelfViewModelGridShelfRow",b),style:_.n9({"margin-left":a,"margin-right":a})},_.M(_.rC,{data:h,replacementWrapper:function(P){return _.M(KUN,{responsiveGridShelfLayout:y},P)}},{shortsLockupViewModel:function(P){return _.M(KUN,{responsiveGridShelfLayout:y},_.M(CIb,{data:P.data,
aspectRatio:function(){return S()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,titleStyle:_.r("mweb_enable_one_line_title_on_shorts")?1:_.r("mweb_enable_two_line_title_on_shorts")?2:void 0,className:void 0}))},
lockupViewModel:function(P){return _.M(KUN,{responsiveGridShelfLayout:y},_.M(_.vQ,{data:P.data,className:"ytGridShelfViewModelLockupItem"}))}}))},"Td"),KUN=_.T(function(b){return _.M("div",{style:_.n9({width:(0,_.c$)(function(){return b.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+b.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},b.children)},"Ud");
_.Ru.idomCompat=!0;_.yd(_.Ru,"grid-shelf-view-model",{props:{data:_.D4,layoutContainerWidth:_.D4,shouldUseOwnContainerSize:_.D4,marginSettings:_.D4,useUpdatedMargin:_.D4,className:_.D4}});_.ZO8=_.T(function(b){var h=_.L(_.pa(!1,void 0,"FVl30c")),y=h.next().value,S=h.next().value;h={};return _.M("yt-alert-banner-view-model",{class:_.P2("ytAlertBannerViewModelHost",b.className,function(){var F;a:switch((F=b.data())==null?void 0:F.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":F="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":F="ytAlertBannerViewModelWarning";break a;default:F="ytAlertBannerViewModelInformational"}return F},(h.ytAlertBannerViewModelDismissed=
y,h.ytAlertBannerViewModelFullbleed=b.fullbleed,h.ytAlertBannerViewModelNarrow=b.narrow,h.ytAlertBannerViewModelIsInRichGrid=b.isInRichGrid,h))},_.M(_.H,{cond:function(){var F;
return!((F=b.data())==null?0:F.hideIcon)},
then:function(){return _.M("div",{class:"ytAlertBannerViewModelIcon"},_.M(_.Xv,{icon:function(){return"info_circle"}}))}}),_.M("div",{class:"ytAlertBannerViewModelOuterContainer"},_.M("div",{class:"ytAlertBannerViewModelContainer"},_.M("div",{class:"ytAlertBannerViewModelContent"},_.M("div",{class:"ytAlertBannerViewModelHeading"},_.M(_.zv,{text:function(){var F;
return(F=b.data())==null?void 0:F.heading}})),_.M("div",{class:"ytAlertBannerViewModelBody"},_.M(_.zv,{text:function(){var F;
return(F=b.data())==null?void 0:F.body}})))),_.M(_.rC,{data:function(){var F;
return(F=b.data())==null?void 0:F.actionButton}},{buttonViewModel:function(F){return _.M(_.EG,{data:F.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.M(_.rC,{data:function(){var F;
return(F=b.data())==null?void 0:F.dismissButton}},{buttonViewModel:function(F){return _.M(_.EG,{data:F.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var a;((a=b.data())==null?0:a.disableLocalDismissBehavior)||S(!0)}})}}))},"Vd");_.yd(_.ZO8,"yt-alert-banner-view-model",{props:{data:_.D4,fullbleed:_.D4,narrow:_.D4,isInRichGrid:_.D4,className:_.D4}});var omw;_.zT=_.T(function(b){return _.M("basic-content-view-model",{class:_.P2("ytBasicContentViewModelHost",_.bi(b.className))},_.M(_.H,{cond:function(){return b.data().headline},
then:function(h){return _.M("div",{class:"ytBasicContentViewModelHeadline"},_.M(_.zv,{text:h}))}}),_.M(_.Gw,{each:function(){return b.data().paragraphs||[]},
keyBy:"INDEX"},function(h){return _.M("div",{class:"ytBasicContentViewModelParagraph"},_.M(_.H,{cond:function(){var y=h();return!!(y.header||y.customHeader||y.headline)},
then:function(){return _.M(omw,{paragraph:h})}}),_.M(_.H,{cond:function(){return h().asset||h().text},
then:function(){return _.M("div",{class:"ytBasicContentViewModelParagraphContent"},_.M(_.H,{cond:function(){return h().asset},
then:function(y){return _.M("div",{class:"ytBasicContentViewModelParagraphAsset"},_.M(_.rC,{data:y},{contentPreviewImageViewModel:_.fr}))}}),_.M(_.H,{cond:function(){return h().text},
then:function(y){return _.M("div",{class:"ytBasicContentViewModelParagraphText"},_.M(_.zv,{text:y}))}}))}}))}))},"Wd");
omw=_.T(function(b){var h=b.paragraph;return _.M(_.OW,null,_.M(_.H,{cond:function(){return h().headline},
then:function(y){return _.M(_.zv,{text:y,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.M(_.rC,{data:function(){return h().header||h().customHeader}},{sectionHeaderViewModel:function(y){return _.M(_.SE,{data:y.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Xd");_.MX5=_.T(function(b){function h(){var t,R;n((R=(t=F)==null?void 0:t.isKeyBoardInUse())!=null?R:!1)}
function y(){n(!1)}
function S(){var t;return K()?(t=b.focusedClassName)==null?void 0:t.call(b):""}
var F=_.H9().resolve(_.XS(_.sG)),a=_.L(_.pa(!1,void 0,"SgkTXc")),P=a.next().value;a=a.next().value;var K=P,n=a,X=function(){var t,R;return((t=b.toggleable)==null?0:t.call(b))?(R=b.toggled)==null?void 0:R.call(b):void 0},u=_.Zv(function(t){var R,I=(R=b.command)==null?void 0:R.call(b);
I&&_.H9().resolve(_.OM).resolveCommand(I);var U;(U=b.onClick)==null||U.call(b,t)}),O=_.Zv(h),N=_.Zv(y);
return _.M(_.H,{cond:function(){var t;if(t=b.command){t=b.command();t=uJI(t);var R=t.href;t=!(!t.navigatingCommand||!R)}return t},
then:function(){return _.M(_.YN,Object.assign({},{command:b.command,style:b.style,ariaDescribedby:b.ariaDescribedby,ariaHidden:b.ariaHidden,ariaLabel:b.ariaLabel,ariaLabelledby:b.ariaLabelledby,ariaSelected:b.ariaSelected,disabled:b.disabled,dir:b.dir,tabIndex:b.tabIndex,target:b.target,title:b.title,onClick:b.onClick},{className:_.P2("ytButtonOrAnchorHost","ytButtonOrAnchorAnchor",b.className,function(){return S()}),
onFocusin:h,onFocusout:y,ariaCurrent:function(){var t,R;return(R=(t=b.ariaCurrent)==null?void 0:t.call(b))!=null?R:X()}}),b.children)},
else:function(){return _.M("button",{"on:click":u,"on:focusin":O,"on:focusout":N,class:_.P2("ytButtonOrAnchorHost","ytButtonOrAnchorButton",b.className,function(){return S()}),
style:b.style,"aria-describedby":b.ariaDescribedby,"aria-hidden":b.ariaHidden,"aria-label":b.ariaLabel,"aria-labelledby":b.ariaLabelledby,"aria-pressed":X,dir:b.dir,disabled:b.disabled,tabindex:b.tabIndex,title:b.title},b.children)}})},"Yd");var nma=_.T(function(b){b=_.h6(b,{disabled:!1});var h=b.active,y=b.disabled;b={};b=_.P2("ytSwitchShapeTrack",(b.ytSwitchShapeTrackActive=function(){return h()},b.ytSwitchShapeTrackDisabled=function(){return y()},b));
var S={};S=_.P2("ytSwitchShapeKnob",(S.ytSwitchShapeKnobActive=function(){return h()},S));
return _.M("switch-shape",{class:"ytSwitchShapeHost"},_.M("div",{class:b}),_.M("div",{class:S}))},"Zd");var Xcw=_.T(function(b){var h=_.h6(b,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),y=h.data;b=h.className;var S=h.handleOnTapEventInParent,F=h.parentActive,a=h.onTap;h=_.L(_.ya(function(){var N;return(N=F())!=null?N:y().switchedOnByDefault||!1}));
var P=h.next().value,K=h.next().value,n=function(){return y().isDisabled},X=_.ZR("button");
h=_.Zv(function(N){return N.key==="Enter"?(N.preventDefault(),X.value.click(),!1):!0});
var u=_.Zv(function(N){if(y().handleOnTapEventInParent||S())return!0;if(n())return!1;if(a)return a(N),!0;rAk(y(),P(),N);K(!P());return!1}),O={};
O=_.P2("ytSwitchButtonViewModelButton",(O.ytSwitchButtonViewModelTappable=function(){return!n()},O));
return _.M("switch-button-view-model",{class:_.P2("ytSwitchButtonViewModelHost",b)},_.M("button",{el:X,class:O,"on:click":u,"on:keydown":h,"aria-label":function(){return P()?y().a11yLabelSwitchedOn:y().a11yLabelSwitchedOff},
"aria-checked":P,"aria-disabled":n,role:"switch"},_.M(nma,{active:P,disabled:n})))},"$d");var HOG=_.T(function(b){var h=b.data;var y=b.isLeading;var S=b.hideSelectionTextChevron;var F=b.isToggled;var a=b.shouldNotFillIcon;var P=function(){if(y())var O=h().leadingImage;else{var N;O=(N=h().trailingImage)!=null?N:_.EF(h().themedTrailingImage)}return O},K=function(){a:switch(h().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var O="expand_more";
break a;default:O="chevron_right"}return O};
b={};var n=_.P2("yt-list-item-view-model__image-container",(b["yt-list-item-view-model__leading"]=y,b["yt-list-item-view-model__trailing"]=function(){return!y()},b)),X=_.P2("yt-list-item-view-model__accessory","yt-list-item-view-model__image");
b={};var u=_.P2("yt-list-item-view-model__accessory",(b["yt-list-item-view-model__leading"]=y,b["yt-list-item-view-model__trailing"]=function(){return!y()},b));
return _.M(_.H,{cond:function(){var O=h(),N=y();return!!(N&&(O.leadingImage||O.leadingAccessory)||!N&&(O.trailingImage||O.trailingButton||O.trailingButtons||O.selectionText||O.themedTrailingImage||O.trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"))},
then:function(){return _.M(_.OW,null,_.M(_.H,{cond:P,then:function(O){return _.M("div",{class:n,"aria-hidden":"true"},_.M(_.mI,{data:O,alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:function(){var N=(y()?h().leadingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON":h().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON")?y()?zRU(h().leadingIconAccessorySize):zRU(h().trailingIconAccessorySize):void 0;return N},
className:X,isToggled:function(){return!(a==null?0:a())&&(F==null?void 0:F())}}))}}),_.M(_.H,{cond:function(){return y()&&h().leadingAccessory},
then:function(){return _.M("div",{class:n},_.M(_.rC,{data:function(){return h().leadingAccessory}},{avatarViewModel:function(O){return _.M(_.OX,{data:O.data,
avatarButtonCustomClassName:X})},
collectionThumbnailViewModel:function(O){return _.M(AnW,{data:O.data,maxHeight:36,width:56,includeStackHeight:!0})}}))}}),_.M(_.H,{cond:function(){return!y()&&h().trailingButton},
then:function(){return _.M("div",{class:"yt-list-item-view-model__button-container"},_.M(_.rC,{data:function(){return h().trailingButton}},{buttonViewModel:function(O){return _.M(_.EG,{data:O.data,
className:u})}}))}}),_.M(_.H,{cond:function(){var O;
return!y()&&((O=h().trailingButtons)==null?void 0:O.buttons)},
then:function(){return _.M("div",{class:"yt-list-item-view-model__button-container"},_.M(_.rC,{data:function(){var O;return(O=h().trailingButtons)==null?void 0:O.buttons}},{buttonViewModel:function(O){return _.M(_.EG,{data:O.data,
className:u})},
accountLinkButtonViewModel:function(O){return _.M(Xh5,{data:O.data,className:u})},
switchButtonViewModel:function(O){return _.M(Xcw,{data:O.data,className:u})},
subscribeButtonViewModel:function(O){return _.M(_.Oz,{data:O.data,isOverlay:!1,animateWidth:!1,className:u})},
toggleButtonViewModel:function(O){return _.M(_.Ke,{data:O.data,className:u})}}))}}),_.M(_.H,{cond:function(){return!y()&&!!h().selectionText},
then:function(){return _.M(_.OW,null,_.M(_.zv,{text:function(){return h().selectionText},
className:_.P2("yt-list-item-view-model__selection-text","yt-list-item-view-model__selection-text--trailing-selection-text")}),_.M(_.H,{cond:function(){return!(S==null?0:S())},
then:function(){return _.M(_.Xv,{icon:K,className:"yt-list-item-view-model__chevron-icon"})}}))}}),_.M(_.H,{cond:function(){return!y()&&h().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"},
then:function(){return _.M("div",{class:"yt-list-item-view-model__new-content-indicator"})}}))}})},"ae");var umM=_.T(function(b){var h=b.data;return _.M(_.H,{cond:function(){return h().title||h().subtitle},
then:function(){return _.M("div",{class:"yt-list-item-view-model__text-wrapper"},_.M(_.H,{cond:function(){return h().title},
then:function(y){return _.M("div",{class:"yt-list-item-view-model__title-wrapper"},_.M(_.zv,{text:y,className:"yt-list-item-view-model__title"}))}}),_.M(_.H,{cond:function(){return h().subtitle},
then:function(y){return _.M(_.zv,{text:y,className:"yt-list-item-view-model__subtitle"})}}))}})},"be");var OOM=_.T(function(b){var h=b.data;var y=b.hideSelectionTextChevron;var S=b.TrailingAccessory;var F=b.isToggled;var a=b.disabled;var P=b.isSelectItem;var K=b.isCompact;var n=b.inPopup;var X=b.disableHorizontalPadding;var u=b.isTappableWithoutSelect;var O=b.useButtonOrAnchor;var N=b.onTap;var t=b.shouldNotFillIcon;var R=function(){return _.M(umM,{data:h,onTap:N,useButtonOrAnchor:O,isTappableWithoutSelect:u,isToggled:F})};
b={};return _.M("div",{class:_.P2("yt-list-item-view-model__label",(b["yt-list-item-view-model__container"]=function(){return!(P==null?0:P())},b["yt-list-item-view-model__container--disabled"]=function(){return!!h().isDisabled||!(a==null||!a())},b["yt-list-item-view-model__container--has-subtitle"]=function(){return!!h().subtitle},b["yt-list-item-view-model__container--compact"]=K,b["yt-list-item-view-model__container--tappable"]=u,b["yt-list-item-view-model__container--in-popup"]=n,b["yt-list-item-view-model__container--disable-horizontal-padding"]=
function(){return(X==null?void 0:X())&&!(P==null?0:P())},b))},_.M(HOG,{data:h,
isLeading:!0,hideSelectionTextChevron:y,isToggled:F,shouldNotFillIcon:t}),_.M(_.H,{cond:function(){return(O==null?void 0:O())&&(u==null?void 0:u())},
then:function(){return _.M(_.MX5,{command:function(){return _.JB(h().rendererContext)},
onClick:N,className:"yt-list-item-view-model__button-or-anchor",toggleable:F!==void 0,toggled:F},_.M(R,null))},
else:function(){return _.M(R,null)}}),_.M(_.H,{cond:function(){return!!S},
then:function(){return _.M("div",{class:"yt-list-item-view-model__trailing"},S&&_.M(S,null))},
else:function(){return _.M(HOG,{data:h,isLeading:!1,hideSelectionTextChevron:y,isToggled:F,shouldNotFillIcon:t})}}))},"ce");var tXe=_.T(function(b){var h=_.h6(b,{checked:!1,disabled:!1});b=h.name;var y=h.onChange,S=h.onClick,F=h.checked,a=h.labelRenderable,P=h.hasLeadingLabel,K=h.labelClass,n=h.isCompact,X=h.selectElementClass,u=h.disableHorizontalPadding;h=h.disabled;var O="checkbox"+_.yR(_.rt),N=_.Zv(function(I){S==null||S(I);return!1}),t=_.Zv(function(I){y==null||y(I);
return!1}),R={};
return _.M("checkbox-shape",null,_.M("label",{class:_.P2("ytCheckboxShapeHost",K,(R.ytCheckboxShapeHostCompact=n,R.ytCheckboxShapeDisableHorizontalPadding=u,R))},_.M("input",{class:"ytCheckboxShapeInput",id:O,checked:F,name:b,type:"checkbox",disabled:h,"prop:checked":F,"on:change":t,"on:click":N}),_.M(_.H,{cond:function(){return!(P==null?0:P())},
then:function(){return _.M(NZ8,{isLeading:!0,selectElementClass:X})}}),_.M(_.H,{cond:function(){return!!a},
then:function(){return _.M("div",{class:"ytCheckboxShapeLabel"},a==null?void 0:a())}}),_.M(_.H,{cond:P,
then:function(){return _.M(NZ8,{isLeading:!1,selectElementClass:X})}})))},"de");
tXe.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var NZ8=_.T(function(b){var h=b.selectElementClass;b={};return _.M("div",{class:_.P2("ytCheckboxShapeCheckbox",h,(b.ytCheckboxShapeCheckboxDefaultStyle=function(){return!(h==null?0:h())},b)),
"aria-hidden":"true"},_.M(_.Xv,{icon:_.r("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.M(_.Xv,{icon:_.r("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"ee");_.Dt=_.T(function(b){var h=b.name;var y=b.onChange;var S=b.onClick;var F=b.checked;var a=b.labelRenderable;var P=b.useCheckIcon;var K=b.hasLeadingLabel;var n=b.labelClass;var X=b.isCompact;var u=b.selectElementClass;var O=b.ariaLabel;var N=b.className;b=b.disabled;var t="radio"+_.yR(_.rt),R=_.ZR("input"),I=_.r("enable_ios_webview_radio_button_responsiveness"),U=_.Zv(function(q){R.value.checked=!(F==null||!F());y==null||y(q);return!1}),p=_.Zv(function(q){S==null||S(q);
return!1}),e=_.L(_.pa(!1,void 0,"Ucg5gd")),E=e.next().value,Y=e.next().value;
e=_.Zv(function(){var q;((q=_.H9().resolve(_.XS(_.sG)))==null?0:q.isKeyBoardInUse())&&Y(!0)});
var w=_.Zv(function(){Y(!1)}),x={};
return _.M("radio-shape",{class:_.P2("yt-radio-shape",N)},_.M("input",{el:R,class:"yt-radio-shape__input",id:t,"prop:checked":F,name:h,type:"radio",disabled:b,"on:change":U,"on:click":p,"aria-label":O,"on:focusin":e,"on:focusout":w}),_.M("label",{class:_.P2("yt-radio-shape__label-container",n,(x["yt-radio-shape--compact"]=X,x["yt-radio-shape__label-container--keyboard-focused"]=E,x)),for:t},_.M(_.H,{cond:function(){return!(K==null?0:K())},
then:function(){return _.M(rhw,{checked:F,useCheckIcon:P,isLeading:!0,selectElementClass:u,usePassthrough:I})}}),_.M(_.H,{cond:function(){return!!a},
then:function(){var q={};return _.M("div",{class:_.P2("yt-radio-shape__label",(q["yt-radio-shape--event-passthrough"]=I,q)),"aria-hidden":function(){return(O==null?0:O())?"true":"false"}},a==null?void 0:a())}}),_.M(_.H,{cond:K,
then:function(){return _.M(rhw,{checked:F,useCheckIcon:P,isLeading:!1,selectElementClass:u,usePassthrough:I})}})))},"fe");
_.Dt.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var rhw=_.T(function(b){var h=b.useCheckIcon;var y=b.selectElementClass;b=b.usePassthrough;var S=function(){return(h==null?0:h())?"CHECK":_.r("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"},F={};
return _.M("div",{class:_.P2("yt-radio-shape__radio",y,(F["yt-radio-shape__radio--check-icon"]=h,F["yt-radio-shape__radio--radio-default-style"]=function(){return!(y==null?0:y())},F["yt-radio-shape--event-passthrough"]=b,F)),
"aria-hidden":"true"},_.M(_.Xv,{icon:S}),_.M(_.Xv,{icon:S,active:function(){return!(h==null?0:h())}}))},"ge");_.Iu=_.T(function(b){var h=b.data;var y=b.isMenuItem;var S=b.isCompact;var F=b.onTap;var a=b.trailingAccessory;var P=b.hideSelectionTextChevron;var K=b.disabled;var n=b.inPopup;var X=b.disableHorizontalPadding;var u=b.isOverlay;var O=b.isToggled;var N=b.ariaLabel;var t=b.ariaPressed;var R=b.shouldNotFillIcon;var I=!_.r("web_enable_killswitch_for_selectable_list_item_on_tap_fix");b=!_.r("web_enable_killswitch_for_skip_child_tags");var U=_.NG(function(vF){return D0I(h(),vF)}),p=function(){return(X==
null?void 0:X())||h().disableHorizontalPadding},e=function(){return _.r("enable_web_shorts_captions_language_command")||_.r("web_shorts_audio_track_picker")||h().entitySelectorType==="LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE"},E=function(){return e()?Object.assign({},h(),U().data):h()},Y=function(){return!!E().isDisabled||!(K==null||!K())},w=_.BYy(function(){return E().rendererContext}),x=function(){return!(E().isSelected===void 0||!E().selectionStyle||E().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
q=function(){return(_.ea(E().rendererContext)||F)&&!x()},dI={},L4=_.P2("yt-list-item-view-model__container",(dI["yt-list-item-view-model__container--tappable"]=function(){return _.ea(E().rendererContext)||x()},dI["yt-list-item-view-model__container--compact"]=S,dI["yt-list-item-view-model__container--in-popup"]=n,dI["yt-list-item-view-model__container--disable-horizontal-padding"]=function(){return(p==null?void 0:p())&&x()},dI)),Rq=function(){return E().leadingImage||E().leadingAccessory},Xn=_.P2("yt-list-item-view-model__image-container",
function(){return Rq()?"yt-list-item-view-model__trailing":"yt-list-item-view-model__leading"});
dI=_.IjY();var Ny=_.L(_.pa(!1,void 0,"D1Nwsd")),gI=Ny.next().value,YU=Ny.next().value,VN=function(){return _.M(OOM,{data:E,hideSelectionTextChevron:P,TrailingAccessory:a,isToggled:O,disabled:K,isSelectItem:x,isCompact:S,inPopup:n,disableHorizontalPadding:p,isTappableWithoutSelect:q,useButtonOrAnchor:Hb,onTap:F,shouldNotFillIcon:R})},Hb=_.r("web_button_or_anchor_list_item");
Ny={};return _.M("yt-list-item-view-model",{el:_.Qa(_.Ch(function(){return Y()?void 0:E().rendererContext},void 0,void 0,Hb?["A".toString(),
"BUTTON".toString()]:[]),IJ5(function(vF){if(!Y()){var xU;if(xU=I)xU=E().selectionStyle,xU=xU==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"||xU==="LIST_ITEM_SELECTION_STYLE_RADIO"||xU==="LIST_ITEM_SELECTION_STYLE_DEFAULT";xU||F==null||F(vF)}},b?["A".toString(),
"BUTTON".toString()]:[]),Ys8(function(){return q==null?void 0:q()},{focusin:function(){var vF;
((vF=_.H9().resolve(_.XS(_.sG)))==null?0:vF.isKeyBoardInUse())&&YU(!0)},
focusout:function(){YU(!1)}})),
class:_.P2("yt-list-item-view-model",(Ny["yt-list-item-view-model--is-overlay"]=u,Ny["yt-list-item-view-model--keyboard-focused"]=gI,Ny["yt-list-item-view-model--hidden"]=function(){return e()?U().isHidden:!1},Ny)),
role:function(){return(y==null?0:y())?"menuitem":"listitem"},
tabindex:function(){var vF=q();vF=Hb?void 0:F||vF?0:void 0;return vF},
"on:keydown":dI,"aria-label":function(){var vF;return(N==null?void 0:N())||((vF=w())==null?void 0:vF.label)},
"aria-pressed":t},_.M(_.H,{cond:x,then:function(){return _.M(_.kZ,null,_.M(_.YZ,{when:function(){return E().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.M(tXe,{labelRenderable:VN,
isCompact:S,checked:function(){return E().isSelected},
hasLeadingLabel:function(){return!!Rq()},
labelClass:L4,selectElementClass:Xn,disableHorizontalPadding:p,onClick:I?F:void 0,disabled:Y})}),_.M(_.YZ,{when:function(){return E().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.M(_.Dt,{labelRenderable:VN,
isCompact:S,checked:function(){return E().isSelected},
hasLeadingLabel:function(){return!!Rq()},
labelClass:L4,selectElementClass:Xn,onClick:I?F:void 0,disabled:Y})}),_.M(_.YZ,{when:function(){return E().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.M(_.Dt,{labelRenderable:VN,
isCompact:S,checked:function(){return E().isSelected},
hasLeadingLabel:function(){return!!Rq()},
labelClass:L4,selectElementClass:Xn,useCheckIcon:!0,onClick:I?F:void 0,disabled:Y})}),_.M(_.Tw,null,VN))},
else:VN}))},"he");
_.Iu.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};_.B$=_.T(function(b){var h=_.L(_.Rr({canHaveZeroSize:!1})),y=h.next().value;h=h.next().value;var S=function(){return Ghy(y.width(),b.data().responsiveContainerConfiguration)||CIF(y.width(),b.data().linearLayoutContainerConfiguration)};
return _.M("yt-linear-layout-view-model",{el:_.Qa(h),class:"ytLinearLayoutViewModelHost"},_.M("div",{class:_.P2("ytLinearLayoutViewModelContainer",function(){a:switch(b.data().orientation){case "LINEAR_LAYOUT_ORIENTATION_HORIZONTAL":var F="ytLinearLayoutViewModelHorizontal";break a;default:F="ytLinearLayoutViewModelVertical"}return F},function(){var F=b.data().linearLayoutContainerConfiguration;
return F?[pYF(F.flexDirection),JAj(F.justifyContent),eRF(F.alignItems)].join(" "):""}),
style:function(){var F;var a=((F=S())==null?void 0:F.containerStyles)||{};return _.n9(a)()}},_.M(_.rC,{data:function(){return b.data().items},
wrapper:function(F,a,P){return _.M("div",{style:function(){var K=P(),n;if((n=S())==null)K=void 0;else{var X=n.itemStyles,u=K===0,O,N;var t=(N=(O=b.data().items)==null?void 0:O.length)!=null?N:0;K=X.call(n,u,K===t-1)}return _.n9(K||{})()}},F())}},{lockupViewModel:function(F){return _.M(_.vQ,{data:F.data,
containerLayoutConfig:function(){var a;return(a=S())==null?void 0:a.containerLayoutConfig}})},
basicContentViewModel:_.zT,buttonViewModel:_.EG,linearLayoutViewModel:_.B$,thumbnailViewModel:_.kw,descriptionPreviewViewModel:_.hN,listItemViewModel:_.Iu,sectionHeaderViewModel:_.SE})))},"ie");_.yd(_.B$,"yt-linear-layout-view-model",{props:{data:_.D4}});_.yd(_.Sd,"chips-shelf-view-model",{props:{data:_.D4,callback:_.v3,selectionBehavior:_.D4,disableChipsScrollAnimation:_.D4,nextButtonStyle:_.D4}});_.yd(_.T(function(b){return _.M("yt-comment-filter-context-view-model",{class:_.P2("ytCommentFilterContextHost",b.className)},_.M(_.zv,{text:function(){return b.data().text}}))},"je"),"yt-comment-filter-context-view-model",{props:{data:_.D4,
className:_.v3}});_.ch8=_.T(function(b){var h=b.data;var y=b.onTap;var S=b.onSwitch;var F=b.overrideDisabled;b=b.disableHorizontalPadding;var a=_.L(_.ya(function(){var N;return((N=RRI(u()))==null?void 0:N.switchedOnByDefault)||!1})),P=a.next().value,K=a.next().value;
a=_.L(_.pa(!1,void 0,"V0hCrd"));var n=a.next().value,X=a.next().value,u=function(){var N;if(!(N=h().switchButton)){var t=h();N=F==null?void 0:F();t={switchOnCommand:t.switchOnCommand,switchOffCommand:t.switchOffCommand,switchedOnByDefault:t.switchedOnByDefault,isDisabled:t.isDisabled,a11yLabelSwitchedOn:t.a11yLabelSwitchedOn,a11yLabelSwitchedOff:t.a11yLabelSwitchedOff};N!==void 0&&(t.isDisabled=N);N={switchButtonViewModel:t}}return N},O=function(N){var t=RRI(u());
!t||t.isDisabled||h().ignoreTapUntilCommandCompletes&&n()||(y==null||y(N),rAk(t,P(),N,h().ignoreTapUntilCommandCompletes,X),K(!P()),S==null||S(P()))};
return _.M("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.M(_.Iu,{data:function(){return{title:h().title,subtitle:h().attributedSubtitle,leadingImage:h().leadingImage,leadingAccessory:h().leadingAccessory,isDisabled:h().isDisabled}},
onTap:O,isToggled:P,shouldNotFillIcon:!0,trailingAccessory:function(){return _.M(_.rC,{data:u},{switchButtonViewModel:function(N){return _.M(Xcw,{data:N.data,parentActive:P,onTap:O})}})},
disableHorizontalPadding:b}))},"ke");var RCe=_.T(function(b){var h=_.L(_.ya(function(){var F,a;return!!((F=b.data())==null?0:(a=F.initialState)==null?0:a.isToggled)})),y=h.next().value,S=h.next().value;
return _.M("toggleable-list-item-view-model",{el:_.Qa(_.Ch(function(){return b.data().rendererContext},{onTap:function(F,a){a();
S(!y())}})),
class:_.P2("toggleableListItemViewModelHost",b.className)},_.M(_.H,{cond:function(){if(y()){var F=b.data().toggledListItem;F=_.c(F,_.D5)}else F=b.data().defaultListItem,F=_.c(F,_.D5);return F},
then:function(F){return _.M(_.Iu,{data:F,isToggled:y,ariaLabel:function(){var a=y()?b.data().toggledListItem:b.data().defaultListItem,P;a=(P=_.c(a,_.D5))==null?void 0:P.rendererContext;var K;return(K=_.c(a,_.zR))==null?void 0:K.label},
ariaPressed:function(){return y()}})}}))},"le");var zC7=_.Mt("DOWNLOAD",{},"Download"),DsW=_.Mt("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),I2b=_.Mt("RETRY",{},"Retry"),BZa=_.Mt("PAUSE_DOWNLOADING",{},"Pause downloading"),WUb=_.Mt("RESUME_DOWNLOAD",{},"Resume download"),khM={text:zC7,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},DA={text:DsW,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},iuk={text:I2b,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
Vny={text:BZa,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},EDN={text:WUb,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var AhW=_.T(function(b){var h=function(){var K=b.data();K=_.JB(K.rendererContext);var n;return(n=_.c(K,_.HC))==null?void 0:n.videoId},y=_.NG(function(K){var n=h(),X=lJU(b.data());
return n?_.Y8(K,n):X?_.TD(K,X):"TRANSFER_STATE_UNKNOWN"}),S=_.OF(_.d1U,h),F=_.NG(function(K){return _.vN4(K,h(),lJU(b.data()))}),a=function(){return wYF(y(),S(),_.JB(b.data().rendererContext),!!lJU(b.data()))},P=function(){return F()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.M("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:P},_.M(_.H,{cond:function(){return!P()},
then:function(){return _.M(_.H,{cond:a,then:function(K){return _.M(_.Gw,{each:K},function(n){return _.M(_.Iu,{data:n,isCompact:b.isCompact,isMenuItem:b.isMenuItem,inPopup:b.inPopup,disableHorizontalPadding:b.disableHorizontalPadding})})}})}}))},"me");
AhW.idomCompat=!0;_.Us5=_.T(function(b){var h=b.data;var y=b.isCompact;var S=b.hideSelectionTextChevron;var F=b.inPopup;var a=b.isOverlay;var P=b.disableHorizontalPadding;var K=function(){return qZ4(h())&&(F==null?void 0:F())},n=_.r("web_list_view_model_listbox_killswitch")?"menu":"listbox";
b=_.Zv(function(u){if(F!=null&&F()&&_.r("web_enable_arrow_key_navigation_in_dropdown")){var O=_.jqF(u.currentTarget),N=O.length;if(N!==0){var t=Array.prototype.indexOf.call(O,document.activeElement);switch(u.key){case "ArrowDown":u.preventDefault();var R;(R=O[(t+1)%N])==null||R.focus();break;case "ArrowUp":u.preventDefault();var I;(I=O[t===-1?N-1:(t-1+N)%N])==null||I.focus()}}}});
var X={};return _.M("yt-list-view-model",{class:_.P2("ytListViewModelHost",(X.ytListViewModelHostKaiosSpatNav=i6n&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",X)),role:function(){return K()?n:"list"},
style:_.n9({"max-height":function(){var u,O=(u=h())==null?void 0:u.visibleElementCount;if(O)return(O+.5)*40+"px"}}),
"on:keydown":b},_.M(_.rC,{data:function(){return h().listItems}},{listItemViewModel:function(u){return _.M(_.Iu,{data:u.data,
isMenuItem:K,isCompact:y,hideSelectionTextChevron:S,inPopup:F,isOverlay:a,disableHorizontalPadding:P})},
toggleableListItemViewModel:function(u){return _.M(RCe,{data:u.data})},
downloadListItemViewModel:function(u){return _.M(AhW,{data:u.data,isMenuItem:K,isCompact:y,inPopup:F,disableHorizontalPadding:P})},
switchListItemViewModel:function(u){return _.M(_.ch8,{data:u.data,disableHorizontalPadding:P})}}))},"ne");
_.Us5.idomCompat=!0;var pcG=_.T(function(b){var h=b.data;var y=b.isOverlay;b={};return _.M("yt-course-perks-view-model",{class:_.P2("ytwCoursePerksViewModelHost",(b.ytwCoursePerksViewModelHostOverlay=y,b))},_.M("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.M(_.zv,{text:function(){return h().title}})),_.M("div",null,_.M(_.H,{cond:function(){return h().perks},
then:function(S){return _.M(_.Us5,{data:function(){return{listItems:S()}},
isCompact:!0,isOverlay:y})}})))},"oe");_.yd(pcG,"yt-course-perks-view-model",{props:{data:_.v3,isOverlay:_.v3}});_.yd(_.T(function(b){var h=b.data;return _.M("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.M("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.M(_.zv,{text:function(){return h().title}})),_.M("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.M(_.zv,{text:function(){return h().progressSummary}})),_.M("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.M("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.n9({width:function(){return h().progressPercentage*100+"%"}})})))},"pe"),"yt-course-progress-view-model",{props:{data:_.D4}});var JhG=_.T(function(b){var h={};return _.M("yt-progress-view-model",{class:_.P2("ytwProgressViewModelHost",(h.ytwProgressViewModelHostOverlay=_.bi(b.isOverlay,!1),h))},_.M(_.H,{cond:function(){return b.data().progressSummary},
then:function(y){return _.M("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.M(_.zv,{text:y}))}}),_.M("div",{class:"ytwProgressViewModelHostProgressContainer"},_.M(_.H,{cond:function(){return b.data().leadingLabel},
then:function(y){return _.M("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.M(_.zv,{text:y}))}}),_.M("div",{class:"ytwProgressViewModelHostProgressBar"},_.M("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(b.data().progressPercentage||0)*100+"%"}}))))},"qe");var W$=_.T(function(b){var h=b.starNumber;var y=b.data;var S=function(){var F;return((F=y())==null?void 0:F.rating)||0};
return _.M(_.H,{cond:function(){return h()},
then:function(F){return _.M(_.kZ,null,_.M(_.YZ,{when:function(){return S()>=F()-.25}},function(){return _.M("div",{class:"ytStarRatingViewModelHostStar"},_.M(_.Xv,{icon:"STAR_FILLED",
size:function(){return 24}}))}),_.M(_.YZ,{when:function(){return S()>=F()-.75}},function(){return _.M("div",{class:"ytStarRatingViewModelHostStar"},_.M(_.Xv,{icon:"STAR_HALF",
active:!0,size:function(){return 24}}))}),_.M(_.Tw,null,function(){return _.M("div",{class:"ytStarRatingViewModelHostStar"},_.M(_.Xv,{icon:"STAR",
size:function(){return 24}}))}))}})},"re"),eCe=_.T(function(b){b=b.data;
return _.M("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.M(W$,{starNumber:1,data:b}),_.M(W$,{starNumber:2,data:b}),_.M(W$,{starNumber:3,data:b}),_.M(W$,{starNumber:4,data:b}),_.M(W$,{starNumber:5,data:b}))},"se");_.yd(_.T(function(b){var h=_.h6(b,{}).data;return _.M("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.M("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.M(_.zv,{text:function(){var y;return(y=h())==null?void 0:y.title}})),_.M("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.M(_.H,{cond:function(){return h().starProgressViewModels},
then:function(y){return _.M("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.M(_.rC,{data:y},{progressViewModel:JhG}))}}),_.M("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.M("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.M(_.zv,{text:function(){var y;
return(y=h())==null?void 0:y.averageRatingLabel}})),_.M(_.H,{cond:function(){return h().zeroStateText},
then:function(y){return _.M("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.M(_.zv,{text:y}))}}),_.M(_.H,{cond:function(){return h().starRatingViewModel},
then:function(y){return _.M("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.M(_.rC,{data:y},{starRatingViewModel:eCe}))}}),_.M("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.M(_.zv,{text:function(){var y;
return(y=h())==null?void 0:y.totalRatingsCountLabel}})))))},"te"),"yt-course-ratings-view-model",{props:{data:_.v3}});var CAa;CAa={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"}};_.gmW=_.T(function(b){var h=_.ZR("yt-learning-journey-loader-view-model"),y=_.Mn();_.fl(function(){requestAnimationFrame(function(){var F;(F=y.lottieEl)==null||F.addEventListener("DOMLoaded",function(){var a;(a=b.onLottieLoaded)==null||a.call(b)})});
var S=b.data().browseEndpoint;S&&_.Va(S)});
return _.M("yt-learning-journey-loader-view-model",{class:_.P2("learningJourneyLoaderViewModelHost",b.className),"data-target-id":function(){return b.data().targetId||""},
el:h},_.M(_.vj,{className:_.P2("learningJourneyLoaderViewModelLoader",b.className),animationName:function(){return CAa.animationConfig.name},
data:CAa,animationRef:y}))},"ve");_.yd(_.gmW,"yt-learning-journey-loader-view-model",{props:{data:_.D4,className:_.v3,onLottieLoaded:_.v3}});var sd8=_.T(function(b){var h=function(){return b.data()},y=function(){return!!_.WV(_.Ir(h())).optionColor},S=_.L(_.pa(-1,void 0,"gXOYR")),F=S.next().value,a=S.next().value,P=function(O){return F()===O},K=function(O){return h().correctAnswerIndex===O},n=function(){return F()!==-1};
S=_.L(_.pa("",void 0,"BFwDQb"));var X=S.next().value,u=S.next().value;return _.M("learning-journey-quiz-view-model",{class:_.P2("learningQuizComponentHost","learningJourneyQuizYoututorHost",b.className),style:_.n9({background:function(){return _.WV(_.Ir(h())).backgroundColor}})},_.M("div",{"aria-live":"polite",
class:"learningJourneyQuizYoututorVisuallyHidden"},X),_.M("div",{class:"learningQuizComponentQuizContainer"},_.M("div",{class:"learningQuizComponentQuiz"},_.M("div",{class:"learningQuizComponentQuizContent"},_.M(_.H,{cond:function(){return!!h().aiGeneratedQuizLabel},
then:function(){return _.M("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.M(_.zv,{text:function(){return h().aiGeneratedQuizLabel}}))}}),_.M("div",{class:"learningQuizComponentQuizHeader",
style:_.n9({"align-items":function(){return h().overflowMenu?"start":"center"}})},_.M("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.n9({"min-height":function(){return h().overflowMenu?"48px":"26px"}})},_.M("div",{class:"learningJourneyQuizYoututorText",
style:_.n9({color:function(){return _.WV(_.Ir(h())).primaryTextColor}})},_.M(_.zv,{text:function(){return h().questionHeaderText}})))),_.M("div",{class:"learningQuizComponentQuizSubheader",
style:_.n9({color:function(){return _.WV(_.Ir(h())).secondaryTextColor}})},_.M(_.zv,{text:function(){var O=h();
return n()?O.explanationText:O.questionSubheaderText}}))),_.M("div",{role:"group",
class:_.P2("learningQuizComponentQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.M(_.Gw,{each:function(){return h().optionsData||[]}},function(O,N){var t={};
return _.M("button",{class:_.P2("learningQuizComponentQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(t.learningQuizComponentQuizHover=function(){return!n()},t.learningQuizComponentQuizOptionWithCustomColor=y,t.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return n()&&K(N())},t.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){return F()!==h().correctAnswerIndex&&P(N())},t.learningQuizComponentQuizIncorrectShake=
function(){return F()!==h().correctAnswerIndex&&P(N())},t)),
"on:click":_.Zv(function(){_.Vd(_.rU(),{data:O});if(n())return!1;a(N());var R,I;u(K(N())?((R=h().successTitle)==null?void 0:R.content)||"":((I=h().failureTitle)==null?void 0:I.content)||"");return!1}),
style:_.n9({background:"transparent"}),"aria-description":function(){var R,I;return n()?K(N())?(R=h().successTitle)==null?void 0:R.content:(I=h().failureTitle)==null?void 0:I.content:""},
"aria-disabled":n},_.M("div",{class:"learningQuizComponentQuizOptionContainer"},_.M(_.zv,{text:O.optionText}),_.M(_.H,{cond:function(){var R=N();return n()&&(P(R)||K(R))},
then:function(){var R={};return _.M(_.Xv,{className:_.P2("learningJourneyQuizYoututorOptionIcon",(R.learningQuizComponentQuizPulse=function(){return F()===h().correctAnswerIndex&&K(N())},R)),
size:24,icon:function(){return K(N())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.M(_.H,{cond:n,
then:function(){return _.M("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.M("div",{class:"learningJourneyQuizYoututorExplanationText"},_.M(_.zv,{text:function(){return h().explanationHeaderText}})),_.M(_.zv,{text:function(){return h().optionsData[F()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"we");
sd8.idomCompat=!0;Object.freeze&&Object.freeze(Object.create(null));var vDr=function(){},YTe;
(YTe=window.requestIdleCallback)==null||YTe.bind(window);var QSf=new Set,x0q=null;var TZW;_.G8a=_.T(function(b){var h=null,y=null,S=null,F=function(){return b.data()},a=function(){return _.WV(_.Ir(F()))},P=function(){return!!a().optionColor},K=_.L(_.pa(-1,void 0,"H2gnQb")),n=K.next().value,X=K.next().value,u=function(Y){return n()===Y},O=function(Y){return F().correctAnswerIndex===Y},N=function(){return n()!==-1},t=function(){return n()===F().correctAnswerIndex},R=function(){var Y=F(),w=N(),x=t();
return w?x?Y.successTitle:Y.failureTitle:Y.questionHeaderText},I=function(){var Y=N(),w=t();
return Y?w?264685:264684:264683},U=function(){var Y=F();
return N()?Y.explanationText:Y.questionSubheaderText},p=function(){return!!F().video},e=function(Y){return t()&&O(Y)},E=_.Zv(function(){X(-1);
return!1});
return _.M(_.H,{cond:function(){return F().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.M(sd8,{data:function(){return F()}})},
else:function(){return _.M("learning-journey-quiz-view-model",{class:_.P2("learningQuizComponentHost",b.className),style:_.n9({background:function(){return a().backgroundColor}})},_.M(_.H,{cond:p,
then:function(){return _.M("div",{class:"learningJourneyQuizViewModelVideoContainer",style:_.n9({background:function(){return a().videoBackgroundColor}})},_.M(_.rC,{data:function(){return F().video}},{lockupViewModel:function(Y){return _.M(_.vQ,{data:Y.data,
containerType:1,className:"learningJourneyQuizViewModelVideoLockup"})}}))}}),_.M("div",{class:"learningQuizComponentQuizContainer"},_.M("div",{class:"learningQuizComponentQuiz"},_.M("div",{class:"learningQuizComponentQuizContent"},_.M(_.H,{cond:function(){return!!F().aiGeneratedQuizLabel},
then:function(){return _.M("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.M(_.zv,{text:function(){return F().aiGeneratedQuizLabel}}))}}),_.M("div",{class:"learningQuizComponentQuizHeader",
style:_.n9({"align-items":function(){return F().overflowMenu?"start":"center"}})},_.M("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.n9({"min-height":function(){return F().overflowMenu?"48px":"26px"}})},_.M("div",{class:"learningJourneyQuizViewModelQuizHeaderText",
el:_.Qa(function(Y){_.AF(I(),Y,h,function(w){h=w})}),
style:_.n9({color:function(){return a().primaryTextColor}}),
"client-ve-type":I},_.M(_.zv,{text:R}))),_.M("div",{class:"learningJourneyQuizViewModelQuizHeaderButtons"},_.M(_.H,{cond:N,then:function(){return _.M("div",{id:"resetButton",class:"learningQuizComponentQuizHover",el:_.Qa(function(Y){_.AF(264687,Y,y,function(w){y=w})}),
"on:click":E,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.M("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.n9({fill:function(){return a().primaryTextColor}})},_.M("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"})))}}),
_.M(_.rC,{data:function(){return F().overflowMenu}},{buttonViewModel:function(Y){return _.M(_.EG,{data:Y.data})}}))),_.M("div",{class:"learningQuizComponentQuizSubheader",
el:_.Qa(function(Y){_.AF(264688,Y,S,function(w){S=w})}),
style:_.n9({color:function(){return a().secondaryTextColor}}),
"client-ve-type":264688},_.M(_.zv,{text:U}))),_.M("div",{role:"group",class:"learningQuizComponentQuizOptionsList"},_.M(_.Gw,{each:function(){return F().optionsData||[]}},function(Y,w){var x={};
return _.M("button",{class:_.P2("learningQuizComponentQuizOptions","learningJourneyQuizViewModelQuizOptions","learningJourneyQuizViewModelQuizOptionsBorderRound",(x.learningQuizComponentQuizHover=function(){return!N()},x.learningQuizComponentQuizOptionWithCustomColor=P,x.learningJourneyQuizViewModelQuizOptionSelectedCorrect=function(){return e(w())},x.learningJourneyQuizViewModelQuizOptionSelectedIncorrect=function(){return!t()&&u(w())},x.learningQuizComponentQuizIncorrectShake=function(){return!t()&&
u(w())},x.learningJourneyQuizViewModelQuizOptionNotSelected=function(){return N()&&!u(w())},x)),
"on:click":_.Zv(function(){_.Vd(_.rU(),{data:Y});if(N())return!1;X(w());return!1}),
style:_.n9({background:function(){var q=w();return N()&&u(q)?"":P()?a().optionColor:"transparent"}}),
"aria-disabled":N},_.M("div",{class:"learningQuizComponentQuizOptionContainer"},_.M(_.H,{cond:N,then:function(){return _.M(TZW,{isOptionCorrect:O,optionIndex:w,isOptionSelectedAndCorrect:e,colors:a})}}),_.M(_.zv,{text:Y.optionText})))})))))}})},"xe");
TZW=_.T(function(b){var h={};return _.M("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var y=b.optionIndex();return b.isOptionCorrect(y)?"0 0 24 24":"0 -960 960 960"},
class:_.P2("learningJourneyQuizViewModelQuizOptionIconLeading",(h.learningQuizComponentQuizPulse=function(){return b.isOptionSelectedAndCorrect(b.optionIndex())},h)),
style:_.n9({fill:function(){return b.colors().primaryTextColor}})},_.M("path",{d:function(){var y=b.optionIndex();
return b.isOptionCorrect(y)?"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"}}))},"ye");
_.G8a.idomCompat=!0;_.yd(_.G8a,"learning-journey-quiz-view-model",{props:{data:_.D4,className:_.D4}});var k8P=_.T(function(b){var h=_.L((0,_.bS5)(function(){var P;return{targetId:(P=b.data().config)==null?void 0:P.suspenseKey,contents:[b.data()]}})).next().value,y=_.H9().resolve(_.OM),S=function(){var P=h().contents.length>0?h().contents[0]:void 0;
return P==null?void 0:P.config},F=function(){var P;
return(P=S())==null?void 0:P.entityTriggerConfig},a=_.OF(q8q,function(){var P,K;
return(K=(P=F())==null?void 0:P.entityKey)!=null?K:""});
_.Qi(function(){var P,K,n,X=(n=Number((P=F())==null?void 0:(K=P.invalidationTimestamp)==null?void 0:K.seconds))!=null?n:0,u,O,N;if(((N=Number((u=a())==null?void 0:(O=u.lastUpdated)==null?void 0:O.seconds))!=null?N:0)>X){var t;(P=(t=S())==null?void 0:t.continuationCommand)&&y.resolveCommand(P)}},"tC8nKe");
return _.M("yt-suspense-view-model",{class:_.P2("ytSuspenseViewModelHost")},_.M(_.rC,{data:function(){var P;return(P=S())==null?void 0:P.contents}},{lockupViewModel:_.vQ}))},"Ae");var VXW=_.T(function(b){var h=_.h6(b,{palette:void 0,isLastItem:!1}),y=h.palette,S=h.isLastItem,F=function(){return b.data().isHighlighted},a=function(){var n;
return hPN((n=y())==null?void 0:n.iconDisabledColor)},P=function(){var n;
return hPN((n=y())==null?void 0:n.primaryTitleColor)},K=function(){var n;
return hPN((n=y())==null?void 0:n.secondaryTitleColor)};
h={};return _.M("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.Qa(_.Ch(function(){return b.data().rendererContext}))},_.M(_.rC,{data:function(){return b.data().thumbnail}},{thumbnailViewModel:_.kw}),_.M("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.M("div",{class:_.P2("ytMacroMarkerListItemViewModelTimeDescription",(h.ytMacroMarkerListItemViewModelHighlighted=F,h)),
style:_.n9({"background-color":function(){return F()?P():a()},
color:function(){return F()?"":K()}})},_.M(_.zv,{text:function(){return b.data().timestamp}})),_.M("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.n9({"background-color":function(){return S()?"transparent":a()}})}),_.M("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(F()?P():K())}},_.M(_.zv,{text:function(){return b.data().title}}))))},"Be");_.AN=_.T(function(b){function h(kU){e("transform:translateX("+(_.QC("HTML_DIR")==="rtl"?"":"-")+kU+"px)")}
function y(kU){return Math.min(Math.max(kU,0),p()-q())}
function S(){var kU=w()+Xn();return F()?(Math.round(q()/kU)||1)*kU:0}
var F=function(){return b.data().items||[]},a=function(){return b.data().previousButton},P=function(){return b.data().nextButton},K=function(){var kU,O7;
return(O7=(kU=b.disableArrows)==null?void 0:kU.call(b))!=null?O7:!1},n=function(){var kU;
return!((kU=b.forceNarrowLayout)==null||!kU.call(b))},X=_.s5(function(){var kU;
return!((kU=b.centerAlignItems)==null||!kU.call(b))&&p()<=q()},void 0,"Uto0kc"),u=_.ZR("horizontal-shelf-view-model"),O=_.ZR("div"),N=_.L(_.pa(0,void 0,"G0xZB")),t=N.next().value,R=N.next().value;
N=_.L(_.pa(0,void 0,"kqCYFf"));var I=N.next().value,U=N.next().value,p=I;I=_.L(_.pa("",void 0,"Hh6Uye"));N=I.next().value;var e=I.next().value;I=_.L(_.pa(0,void 0,"yMGBKb"));var E=I.next().value,Y=I.next().value,w=E;I=_.L(_.pa(0,void 0,"VChthd"));E=I.next().value;var x=I.next().value,q=E;I=_.L(_.pa(!1,void 0,"qJlhhe"));var dI=I.next().value,L4=I.next().value;I=_.L(_.pa(0,void 0,"x7H94"));E=I.next().value;var Rq=I.next().value,Xn=E;I=_.L(_.pa(0,void 0,"ksuUee"));var Ny=I.next().value,gI=I.next().value;
I=_.L(_.pa("50%",void 0,"uxCxde"));var YU=I.next().value,VN=I.next().value,Hb=function(){var kU,O7=(kU=b.data())==null?void 0:kU.responsiveContainerConfiguration,io,cb;return O7?Ve(O7==null?void 0:O7.responsiveSize):(cb=(io=b.sizing)==null?void 0:io.call(b))!=null?cb:"STANDARD"},vF=function(){var kU,O7=(kU=b.data())==null?void 0:kU.responsiveContainerConfiguration;
return O7?O7.enableContentSpecificAspectRatio===!1:!1};
I=_.s5(function(){return!K()&&t()>0},void 0,"hCgtqd");
E=_.s5(function(){return!K()&&t()<p()-q()},void 0,"bluuC");
var xU=function(){R(y(t()-S()));h(t())},Xa=function(){R(y(t()+S()));
h(t())},rG=function(){u.value!==null&&Xx()},Wb;
_.wg(function(){Xx();window.ResizeObserver?(Wb=new ResizeObserver(_.se(rG,0)),Wb.observe(u.value)):window.addEventListener("resize",rG)});
_.m2(function(){if(window.ResizeObserver){var kU;(kU=Wb)==null||kU.disconnect()}else window.removeEventListener("resize",rG)});
var Xx=function(){var kU=u.value.clientWidth,O7=b.includeMargin!==void 0?b.includeMargin():!1,io;var cb=b.hasPeek!==void 0?b.hasPeek():!((io=b.data())==null||!io.hasPeek);kU=_.kr({containerWidth:kU,hasPeek:cb,sizing:Hb(),marginSettings:O7?n()?4:1:0});Rq(kU.gutter);gI(kU.margin);Y(kU.itemWidth);L4(kU.maxContainerWidth<528||n());x(kU.maxContainerWidth);F()&&U((kU.itemWidth+kU.gutter)*F().length-kU.gutter);if(F()){var QW;if(((QW=b.thumbnailAspectRatio)==null?void 0:QW.call(b))!==void 0){var vM;VN(w()/
zn4((vM=b.thumbnailAspectRatio)==null?void 0:vM.call(b))/2+"px")}else VN("50%")}},Bb={},oq={};
return _.M("horizontal-shelf-view-model",{class:_.P2("ytwHorizontalShelfViewModelHost",b.className),el:u},_.M(_.H,{cond:function(){var kU;return b.data().header&&!((kU=b.horizontalShelfExperiments)==null?0:kU.call(b).hideHeader)},
then:function(){return _.M("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.n9({width:function(){return q()+"px"},
padding:function(){return"0 "+Ny()+"px"}})},_.M(_.rC,{data:function(){return b.data().header}},{sectionHeaderViewModel:function(kU){return _.M(_.SE,{data:kU.data,
disableHorizontalPadding:!0,forceSmallLayout:dI,useResponsiveLayout:!0})}}))}}),_.M("div",{class:_.P2("ytwHorizontalShelfViewModelOuterContainer",(Bb.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return X()},Bb)),
style:_.n9({"margin-top":function(){var kU,O7=b.data().header&&!((kU=b.horizontalShelfExperiments)==null?0:kU.call(b).hideHeader),io;return(((io=b.ensureMarginTop)==null?0:io.call(b))&&!O7?12:0)+"px"}})},_.M("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.n9({width:function(){return q()+"px"},
padding:function(){return"0 "+Ny()+"px"},
overflow:function(){return K()?"auto":"hidden"}})},_.M("div",{class:_.P2("ytwHorizontalShelfViewModelItems",(oq.ytwHorizontalShelfViewModelCenterAlignItems=function(){return X()},oq)),
el:O,style:N},_.M(_.rC,{data:F},{macroMarkerListItemViewModel:function(kU,O7){return _.M("div",{style:_.n9({width:function(){return w()+"px"},
"margin-right":function(){return(O7()===F().length-1?0:Xn())+"px"}})},_.M(VXW,{data:kU.data,
palette:_.bi(b.palette),isLastItem:function(){return O7()===F().length-1}}))},
lockupViewModel:function(kU,O7){var io=kU.data;return _.M("div",{style:_.n9({width:function(){return w()+"px"},
"margin-right":function(){return(O7()===F().length-1?0:Xn())+"px"}})},_.M(_.vQ,{data:io,
containerType:4,sizing:Hb,protectBackground:b.protectBackground,thumbnailFixedWidth:function(){return yGq(io())+"px"},
thumbnailTargetWidth:function(){return yGq(io())},
force16By9ThumbnailAspectRatio:vF}))},
suspenseViewModel:function(kU,O7){return _.M("div",{style:_.n9({width:function(){return w()+"px"},
"margin-right":function(){return(O7()===F().length-1?0:Xn())+"px"}})},_.M(k8P,{data:kU.data}))}}))),_.M(_.H,{cond:I,
then:function(){return _.M("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.n9({top:function(){return YU()}})},_.M(_.rC,{data:a},{buttonViewModel:function(kU){return _.M(_.EG,{data:kU.data,
onClick:xU})}}))}}),_.M(_.H,{cond:E,
then:function(){return _.M("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.n9({top:function(){return YU()}})},_.M(_.rC,{data:P},{buttonViewModel:function(kU){return _.M(_.EG,{data:kU.data,
onClick:Xa})}}))}})))},"Ce");
_.AN.idomCompat=!0;var Emo=_.T(function(b){var h=function(){return b.data().targetId||""},y=function(){var I;
return((I=b.data())==null?void 0:I.expansionEntityKey)||""},S=_.OF(_.lHn,y),F=!0,a=function(){var I;
return((I=S())==null?void 0:I.value)===h()},P=function(I){_.vl(_.R7("stringEntity",y(),{key:y(),
value:I?h():""}))};
_.fl(function(){F=!1;b.data().isExpanded&&P(!0)});
var K=function(){if(a()){var I=!0;b.onCollapse!==void 0&&(I=b.onCollapse());I&&P(!1)}else P(!0)},n=_.Zv(K),X=function(){var I;
return(((I=b.accordionStyle)==null?void 0:I.call(b))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},u=_.ZR("div"),O=function(){var I,U;
return(U=(I=_.c(b.data().rendererContext,_.zR))==null?void 0:I.label)!=null?U:""},N=function(){var I,U;
return{disabled:(I=b.hideIfNotExpanded)==null?void 0:I.call(b),ariaHidden:(U=b.hideIfNotExpanded)==null?void 0:U.call(b)}},t={},R={};
return _.M("yt-accordion-item-view-model",{class:_.P2("ytAccordionItemViewModelHost",b.className,(t.ytAccordionItemViewModelExpanded=function(){return a()},t.ytAccordionItemViewModelHidden=function(){var I;
return(I=b.hideIfNotExpanded)==null?void 0:I.call(b)},t.ytAccordionItemViewModelMini=X,t)),
"data-target-id":h},_.M("div",{class:"ytAccordionItemViewModelContainer"},_.M("div",{class:"ytAccordionItemViewModelLeftSection","on:click":n,title:O,"aria-hidden":function(){var I;return(I=b.hideIfNotExpanded)==null?void 0:I.call(b)}},_.M(_.zv,{text:function(){return b.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:O})),_.M("div",{class:"ytAccordionItemViewModelRightSection"},_.M(_.rC,{data:function(){return a()?b.data().expandButton:b.data().collapseButton}},{buttonViewModel:function(I){return _.M(_.EG,{data:I.data,
className:"ytAccordionItemViewModelToggleButton",onClick:K,buttonOverrides:N})}}))),_.M("div",{class:"ytAccordionItemViewModelContainer"},_.M("div",{class:_.P2("ytAccordionItemViewModelContent",(R.ytAccordionItemViewModelExpandedSubtitle=function(){return a()},R)),
el:u,style:_.n9({"max-height":function(){return F?"auto":a()?u.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!a()}},_.M(_.H,{cond:function(){return!X()},
then:function(){return _.M(_.zv,{text:function(){return b.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.M(_.rC,{data:function(){return b.data().content}},{horizontalShelfViewModel:function(I){return _.M(_.AN,{data:I.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"Ee");_.iO8=_.T(function(b){var h=_.L((0,_.bS5)(b.data)).next().value,y=function(){return b.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},S=function(){return y()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},F=_.L(_.pa(!0,void 0,"VFpYAb")),a=F.next().value,P=F.next().value,K=function(){return S()&&a()},n=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){P(!a())}}},X=_.Zv(function(){h().onTitleTap&&_.Va(h().onTitleTap||{})});
F={};return _.M("yt-accordion-view-model",{class:_.P2("ytAccordionViewModelHost",(F.ytAccordionViewModelMinimized=function(){return K()},F)),
"data-target-id":function(){return b.data().targetId||""}},_.M(_.H,{cond:function(){return S()||!!h().title},
then:function(){return _.M("div",{class:"ytAccordionViewModelHeader"},_.M("div",{class:"ytAccordionViewModelTitleSection"},_.M("div",{class:"ytAccordionViewModelTitleWrapper"},_.M(_.H,{cond:function(){return!!b.data().headerIcon},
then:function(){return _.M(_.Xv,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var u;return(u=b.data().headerIcon)==null?void 0:u.iconType}})}}),_.M("div",{class:"ytAccordionViewModelTitle",
"on:click":X},_.M(_.zv,{className:"ytAccordionViewModelTitleText",text:function(){return h().title}})))),_.M("div",{class:"ytAccordionViewModelButtonSection"},_.M(_.H,{cond:S,
then:function(){return _.M(_.V5,{data:n,iconName:function(){return K()?"chevron_down":"chevron_collapse"}})}})))}}),_.M("div",{class:"ytAccordionViewModelContent"},_.M(_.rC,{data:function(){return h().contents}},{accordionItemViewModel:function(u){return _.M(Emo,{data:u.data,
className:"ytAccordionViewModelRow",accordionStyle:y,hideIfNotExpanded:K,onCollapse:function(){return S()?(P(!0),!1):!0}})}})),_.M("div",null,_.M(_.H,{cond:function(){return!S()&&(!!h().disclaimerFooter||!!h().footer)},
then:function(){return _.M("div",{class:"ytAccordionViewModelFooter"},_.M(_.zv,{text:function(){return h().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.M(_.rC,{data:function(){return b.data().footer}},{flexibleActionsViewModel:function(u){return _.M(_.tp,{data:u.data,
layout:0})}}))}})))},"Fe");_.yd(_.iO8,"yt-accordion-view-model",{props:{data:_.D4}});_.yd(_.T(function(b){var h=null,y=null,S,F=(S=_.H9().resolve(_.XS(_.cC)))==null?void 0:S(),a=_.L(_.pa(!1,void 0,"CmEVtc"));S=a.next().value;var P=a.next().value;a=_.L(_.pa(!0,void 0,"yo9dR"));var K=a.next().value,n=a.next().value,X=_.ZR("textarea",function(U){_.AF(264503,U,h,function(p){h=p})}),u=function(U){P(!0);
U={learningJourneyFormData:{query:U}};_.Va(b.data().searchEndpoint||{},{form:{formData:U}});return!1},O=_.Zv(function(U){U.target.closest("button-view-model")&&P(!0)});
a=_.Zv(function(){n(X.value.value.length===0)});
var N=_.Zv(function(U){if(U.key==="Enter"&&!U.shiftKey&&!K()){var p=U.target;U.preventDefault();u(p.value)}}),t={},R={},I={};
return _.M("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.M("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.M(_.mI,{data:function(){return b.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.M("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.M("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.M("div",{class:_.P2("ytLearningJourneyZeroStateSearchBar",(t.ytLearningJourneyZeroStateSearchBarDark=F,t))},_.M("textarea",{class:_.P2("ytLearningJourneyZeroStateTextInput",(R.ytLearningJourneyZeroStateTextInputDark=F,R)),el:X,"on:keyup":a,"on:keydown":N,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.M("div",{class:_.P2("ytLearningJourneyZeroStateSearchButtonContainer",(I.ytLearningJourneyZeroStateSearchButtonContainerDark=F,I))},_.M(_.EG,{data:function(){return _.c(b.data().searchButton,_.cA)},
className:"search-button",onClick:function(){return u(X.value.value)},
buttonOverrides:function(){return{disabled:K(),style:F?"mono-inverse":"mono",size:"XL"}}}))),_.M(_.H,{cond:function(){return!!b.data().errorBanner},
then:function(){return _.M("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.Qa(function(U){_.AF(264617,U,y,function(p){y=p})})},_.M(_.rC,{data:function(){return b.data().errorBanner}},{alertBannerViewModel:function(U){return _.M(_.ZO8,{data:U.data,
"client-ve-type":264617})}}))}})),_.M(_.H,{cond:S,
then:function(){return _.M("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.M(_.rC,{data:function(){return b.data().loader}},{learningJourneyLoaderViewModel:function(U){return _.M(_.gmW,{data:U.data})}}))},
else:function(){return _.M("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.M(_.H,{cond:function(){return!!b.data().learningJourneyShelf},
then:function(){return _.M("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.M("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return b.data().learningJourneySectionTitle}),_.M(_.rC,{data:function(){return b.data().learningJourneyShelf}},{horizontalShelfViewModel:function(U){return _.M(_.AN,{data:U.data,
centerAlignItems:!0})}}))}}),_.M("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.M("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return b.data().suggestedJourneySectionTitle}),_.M("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":O},_.M(_.rC,{data:function(){return b.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(U){return _.M(_.tp,{data:U.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"Ge"),"yt-learning-journey-zero-state",{props:{data:_.D4}});var f2W=_.T(function(b){var h=b.data;return _.M("ytvl-live-leaderboard-item-action-content-view-model",{class:_.P2("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.M(_.zv,{text:function(){var y;return(y=h())==null?void 0:y.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.M(_.rC,{data:function(){return h().actionButton}},{buttonViewModel:function(y){return _.M(_.EG,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:y.data})}}))},"He");var wcN=_.T(function(b){var h=b.data;return _.M("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.P2("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.M(_.zv,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var y;return(y=h())==null?void 0:y.displayName},
ellipsisTruncate:!0}),_.M(_.rC,{data:function(){return h().badge}},{buttonViewModel:function(y){return _.M(_.EG,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:y.data})}}))},"Ie");_.yd(_.T(function(b){var h=b.data;return _.M("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.M("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.M(_.zv,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var y;return(y=h())==null?void 0:y.rank}})),_.M("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.M(_.rC,{data:function(){return h().avatar}},{avatarViewModel:_.OX})),_.M("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.M(_.rC,{data:function(){return h().content}},{liveLeaderboardItemChannelContentViewModel:wcN,
liveLeaderboardItemActionContentViewModel:f2W})),_.M(_.zv,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var y;return(y=h())==null?void 0:y.points}}))},"Je"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.D4}});_.yd(_.T(function(b){var h=b.data;return _.M("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.M(_.zv,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var y,S;return(y=h())==null?void 0:(S=y.ranking)==null?void 0:S.rank}}),_.M("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.M(_.rC,{data:function(){return h().avatar}},{avatarViewModel:_.OX})),_.M(_.zv,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var y,S;return(y=h())==null?void 0:(S=y.channelContent)==null?void 0:S.channelName}}),_.M(_.zv,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var y;return(y=h())==null?void 0:y.points}}))},"Ke"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.D4}});var l2W=_.T(function(b){b=_.h6(b,{wrapper:!1}).wrapper;return _.M(_.H,{cond:b,then:function(){return _.M("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.M("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.M("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Le");
l2W.idomCompat=!0;var qT5=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],xsa=_.T(function(b){var h=b.data;var y=_.Qa(),S=_.s5(function(){return h().command},void 0,"fyYsT");
_.Qi(function(){S()&&_.TK(S(),{form:{element:y.value}})},"B0nxdb");
return _.M("div",{el:y,class:"YtQrCodeRendererHostContainer"},_.M(_.H,{cond:function(){return h().qrCodeImage},
then:function(F){return _.M(_.mI,{data:F,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.M(_.H,{cond:function(){return h().spinner},
then:function(){return _.M(l2W,null)}})}}),_.M(_.H,{cond:function(){return h().label},
then:function(F){return _.M(_.zv,{text:F,className:"YtQrCodeRendererHostLabel"})}}),_.M(_.H,{cond:function(){return h().labels},
then:function(F){return _.M("div",{class:"YtQrCodeRendererHostLabels"},_.M(_.Gw,{each:F},function(a){return _.M(_.zv,{text:a})}))}}))},"Oe");_.yd(_.T(function(b){var h=b.data;var y=_.s5(function(){return h().qrEntityKey},void 0,"LmZ2xf"),S=_.s5(function(){return h().deleteEntityOnDismiss},void 0,"my0Tzb"),F=_.s5(function(){return h().command},void 0,"hzECIb"),a=_.OF($FU,y);
b=_.s5(function(){return h().qrCodeImage},void 0,"AnD9rc");
var P=_.s5(function(){return h().style&&qT5.includes(h().style)},void 0,"f5fZv"),K=_.r_({visibilityCallback:function(n){n&&F()&&_.TK(F())},
showOption:{calledOnce:!0,state:"visible"}});_.wg(function(){_.m2(function(){S()&&y()&&_.mc().dispatch(_.R7("qrCodeEntity",y()))})});
return _.M("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.Qa(K)},_.M(_.H,{cond:P,then:function(){return _.M(_.H,{cond:a,then:function(n){return _.M(xsa,{data:n})}})}}),_.M(_.H,{cond:b,
then:function(n){return _.M(_.mI,{data:n,alt:""})}}))},"Me"),"yt-qr-code-renderer",{props:{data:_.D4}});var msb=_.T(function(b){var h=function(){return _.CR(1728053247&(b.barColor!==void 0?ND(b.barColor()):4278190080))};
return _.M("video-overview-ghost-card",{class:"ytVideoOverviewGhostCardHost"},null,_.M("div",{class:"ytVideoOverviewGhostCardDetails"},_.M(Qd5,{animationDelay:0,percentWidth:100,barColor:function(){return h()}}),_.M(Qd5,{animationDelay:600,
percentWidth:60,barColor:function(){return h()}})))},"Pe"),Qd5=_.T(function(b){return _.M("div",{class:"ytVideoOverviewGhostCardGhostLine",
style:function(){return"max-width:"+b.percentWidth()+"%"}},_.M("div",{class:"ytVideoOverviewGhostCardSlider",
style:function(){var h=b.animationDelay(),y=b.barColor();return"animation-delay:"+h+"ms;\n      background: linear-gradient(\n      90deg,\n      rgba(0, 0, 0, 0)  20%,\n      "+y+" 50%,\n      rgba(0, 0, 0, 0) 80%\n    );"}}))},"Qe");var vm8;_.b4A=_.T(function(b){function h(p){P(p)}
var y=b.data;var S=_.ZR("yt-video-overview-view-model"),F=_.MS("div");b=_.L(_.pa(-1,void 0,"dW11He"));var a=b.next().value,P=b.next().value;b=_.L(_.pa(0,void 0,"LqrsK"));var K=b.next().value,n=b.next().value,X={},u=_.OF(Sin,function(){return y().asyncDataEntityKey}),O=function(){var p;
if((p=u())==null?0:p.videoOverviewViewModel){var e;return _.c((e=u())==null?void 0:e.videoOverviewViewModel,Naa)}return y()};
_.wg(function(){n(Math.min((S.value.clientWidth-24)/4-8,72))});
var N=function(p){P(p);(F==null?0:F.value)&&F.value.children[p]&&F.value.children[p].scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})};
LNq(S,function(){var p;if((p=O())==null||!p.inlinePlaybackEndpoint)return null;var e;p=X==null?void 0:(e=X.thumbnailElRef)==null?void 0:e.value;if(!p)return null;var E;e=(E=O())==null?void 0:E.inlinePlaybackEndpoint;E=_.c(e,eKw);return{multipleVideoPreviewData:{data:(E==null?0:E.playerDescriptors)&&(E==null?0:E.playerDescriptors.length)?E.playerDescriptors:[],thumbnailElement:p,trackingParams:"test",callbacks:{onPlaybackStarted:N},options:{hideScrubbingControls:!0,hideTimeDisplay:!0}}}});
var t=function(){var p;return((p=O())==null?void 0:p.headerSubtext)!==void 0?!0:!1},R=function(){var p,e=ND((p=O())==null?void 0:p.titleColor);
return e?"color: "+_.CR(e)+";":void 0},I=function(){var p,e=ND((p=O())==null?void 0:p.subtextColor);
return e?"color: "+_.CR(e)+";":void 0},U=function(){return _.M("div",{class:"ytGenAiVideoOverviewViewModelHeader"},_.M("div",{class:"ytGenAiVideoOverviewViewModelTitle",
style:function(){return R()}},_.M(_.zv,{text:function(){var p;
return(p=O())==null?void 0:p.headerText}})),_.M(_.H,{cond:t,
then:function(){return _.M("div",{class:"ytGenAiVideoOverviewViewModelSubhead"},_.M("div",{class:"ytGenAiVideoOverviewViewModelSubheadIcon",style:function(){return I()}},_.M(_.Xv,{icon:"SPARK",
className:"ytGenAiVideoOverviewViewModelSparkIcon"})),_.M("div",{class:"ytGenAiVideoOverviewViewModelSubtext",style:function(){return I()}},_.M(_.zv,{text:function(){var p;
return(p=O())==null?void 0:p.headerSubtext}})))}}))};
b={};return _.M("yt-video-overview-view-model",{class:_.P2("ytGenAiVideoOverviewViewModelHost",(b.ytGenAiVideoOverviewViewModelMweb=!1,b.ytGenAiVideoOverviewViewModelDesktop=!0,b)),el:S,style:function(){var p,e=ND((p=O())==null?void 0:p.backgroundColor);return e?"background-color: "+_.CR(e)+";":void 0}},_.M(_.H,{cond:function(){var p;
return(p=O())==null?void 0:p.isLoading},
then:function(){return _.M(msb,{barColor:function(){var p;return(p=O())==null?void 0:p.titleColor}})},
else:function(){return _.M(_.OW,null,null,_.M("div",{class:"ytGenAiVideoOverviewViewModelThumbnail"},_.M(_.rC,{data:function(){var p;return(p=O())==null?void 0:p.thumbnail}},{thumbnailViewModel:function(p){return _.M(_.kw,{data:p.data,
aspectRatio:0,playbackRef:jCn(X)})}})),_.M("div",{class:"ytGenAiVideoOverviewViewModelDetails"},U(),_.M(_.H,{cond:function(){var p,e,E,Y;
return((p=O())==null?void 0:(e=p.listItems)==null?void 0:e.length)!==void 0&&((E=O())==null?void 0:(Y=E.listItems)==null?void 0:Y.length)>0?!0:!1},
then:function(){return _.M("div",{class:"ytGenAiVideoOverviewViewModelCarousel",el:F},_.M(_.Gw,{each:function(){var p;return(p=O())==null?void 0:p.listItems}},function(p,e){return _.M(vm8,{image:p.image,
index:e,isSelected:function(){return e()===a()},
onClick:h,itemWidth:K})}))}}),_.M("div",{class:"ytGenAiVideoOverviewViewModelFooter"},_.M("div",{class:"ytGenAiVideoOverviewViewModelFooterTitle",
style:function(){return R()}},_.M(_.zv,{text:function(){var p,e,E,Y,w,x,q;
return(q=(p=O())==null?void 0:(e=p.listItems)==null?void 0:(E=e[a()])==null?void 0:E.headline)!=null?q:(Y=O())==null?void 0:(w=Y.listItems)==null?void 0:(x=w[0])==null?void 0:x.headline}})),_.M("div",{class:"ytGenAiVideoOverviewViewModelFooterSubtext",
style:function(){return I()}},_.M(_.zv,{text:function(){var p,e,E,Y,w,x,q;
return(q=(p=O())==null?void 0:(e=p.listItems)==null?void 0:(E=e[a()])==null?void 0:E.subtext)!=null?q:(Y=O())==null?void 0:(w=Y.listItems)==null?void 0:(x=w[0])==null?void 0:x.subtext}})))))}}))},"Re");
vm8=_.T(function(b){var h=b.image;var y=b.itemWidth;var S=b.index;var F=b.isSelected;var a=b.onClick;b=_.Zv(function(){S!==void 0&&a!==void 0&&a(S());return!1});
var P={};return _.M("div",{class:_.P2("ytGenAiVideoOverviewViewModelCarouselItem",(P.ytGenAiVideoOverviewViewModelCarouselItemSelected=function(){return F==null?void 0:F()},P)),
style:function(){return"width: "+y()+"px;"},
"on:click":b},_.M(_.mI,{data:h,alt:"",className:"ytGenAiVideoOverviewViewModelCarouselThumbnail"}),_.M(_.H,{cond:function(){return F==null?void 0:F()},
then:function(){return _.M("div",{class:"ytGenAiVideoOverviewViewModelProgressBar"},_.M("div",{class:"ytGenAiVideoOverviewViewModelInnerProgressBar"}))}}))},"Se");
_.b4A.idomCompat=!0;_.yd(_.b4A,"yt-video-overview-view-model",{props:{data:_.D4}});_.h8d=_.T(function(b){var h=b.data;var y=b.topbarOffset;var S,F=((S=_.H9().resolve(_.XS(_.cC)))==null?void 0:S())||!1;return _.M("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var a=h();var P,K,n=F?(P=a.config)==null?void 0:P.darkThemeBackgroundColor:(K=a.config)==null?void 0:K.lightThemeBackgroundColor;a=n?_.eI(n):void 0;a="background-color: "+a+";";y!==void 0&&(a+="top: -"+y()+"px;");return a},
"aria-hidden":!0},_.M(_.H,{cond:function(){var a,P,K;return!!((a=h().backgroundImageConfig)==null?0:(P=a.image)==null?0:(K=P.sources)==null?0:K.length)},
then:function(){return _.M(_.mI,{data:function(){var a;return(a=h().backgroundImageConfig)==null?void 0:a.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.M("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+FFy(F,h().gradientColorConfig)+";"}}))},"Te");
_.h8d.idomCompat=!0;var yYE=_.T(function(b){var h=b.data;var y=b.isOverlay;return _.M("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.M("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.M(_.rC,{data:function(){return h().header}},{sectionHeaderViewModel:function(S){return _.M(_.SE,{data:S.data,
isOverlay:y})}})),_.M("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.M(_.rC,{data:function(){return h().channelInfoButtons}},{flexibleActionsViewModel:_.tp})),_.M("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.M(_.rC,{data:function(){return h().description}},{descriptionPreviewViewModel:function(S){return _.M(_.hN,{data:S.data,
isOverlay:y})}})))},"Ue");
yYE.idomCompat=!0;var Sj2=_.T(function(b){var h=b.data;var y={};return _.M("factoid-view-model",{class:_.P2("ytwFactoidViewModelHost",(y.ytwFactoidViewModelHostOverlay=b.isOverlay,y))},_.M(_.zv,{text:function(){return h().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.M(_.zv,{text:function(){return h().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"Ve");
Sj2.idomCompat=!0;var FMf=_.T(function(b){var h=b.data;var y=b.isOverlay;return _.M("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.M(_.rC,{data:function(){return h().factoids}},{factoidViewModel:function(S){return _.M(Sj2,{data:S.data,
isOverlay:y})}}))},"We");
FMf.idomCompat=!0;_.ara=_.T(function(b){var h=b.data;var y=b.isOverlay;return _.M("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.M(_.rC,{data:function(){return h().items}},{channelInfoViewModel:function(S){return _.M("div",{class:"ytwCourseMetadataViewModelHostItem"},_.M(yYE,{data:S.data,
isOverlay:y}))},
coursePerksViewModel:function(S){return _.M("div",{class:"ytwCourseMetadataViewModelHostItem"},_.M(pcG,{data:S.data,isOverlay:y}))},
descriptionPreviewViewModel:function(S){return _.M("div",{class:"ytwCourseMetadataViewModelHostItem"},_.M(_.hN,{data:S.data,isOverlay:y}))},
factoidsRowViewModel:function(S){return _.M("div",{class:"ytwCourseMetadataViewModelHostItem"},_.M(FMf,{data:S.data,isOverlay:y}))},
progressViewModel:function(S){return _.M("div",{class:"ytwCourseMetadataViewModelHostItem"},_.M(JhG,{data:S.data,isOverlay:y}))}}))},"Xe");var dyA=_.T(function(b){return _.M("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.M(_.rC,{data:function(){return b.data().content}},{courseMetadataViewModel:function(h){return _.M(_.ara,{data:h.data,
isOverlay:b.isOverlay})},
progressViewModel:function(h){return _.M(JhG,{data:h.data})}}))},"Ye");var jqN=_.T(function(b){var h=b.data;b=b.className;var y=function(){var F;return _.ea((F=h())==null?void 0:F.rendererContext)},S={};
S=(S.dynamicTextViewModelHost=!0,S.dynamicTextViewModelHostTappable=function(){return y()},S);
return _.M("yt-dynamic-text-view-model",{el:_.Qa(_.Ch(function(){var F;return(F=h())==null?void 0:F.rendererContext})),
role:function(){return y()?"link":void 0},
tabindex:function(){return y()?0:void 0},
class:_.P2(b,S)},_.M("h1",{class:"dynamicTextViewModelH1","aria-label":function(){var F,a,P;return(P=(a=_.c((F=h())==null?void 0:F.rendererContext,_.zR))==null?void 0:a.label)!=null?P:""}},_.M(_.zv,{text:function(){return h().text},
userInput:!0})))},"Ze");
jqN.idomCompat=!0;_.UI=_.T(function(b){var h=b.data;var y=b.isPositionRelative;var S=_.dRN("(max-width: 527.9px)"),F=function(){var a,P;return(P=(a=h())==null?void 0:a.style)!=null?P:"IMAGE_BANNER_STYLE_FULL_BLEED"};
b={};return _.M("yt-image-banner-view-model",{el:_.Qa(_.Ch(function(){var a;return(a=h())==null?void 0:a.rendererContext})),
class:_.P2((b.ytImageBannerViewModelHost=!0,b.ytImageBannerViewModelInset=function(){return jIN(F())},b.ytImageBannerViewModelPositionAbsolute=function(){return _.bn(!0)&&!(y==null?0:y())},b.ytImageBannerViewModelSmallInset=function(){return jIN(F())&&S()},b.ytImageBannerViewModelTappable=function(){var a;
return _.ea((a=h())==null?void 0:a.rendererContext)},b))},_.M(_.H,{cond:function(){var a;
return(a=h())==null?void 0:a.image},
then:function(){return _.M(_.mI,{data:function(){return h().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.M(_.rC,{data:function(){var a;
return(a=h())==null?void 0:a.overlays}},{thumbnailHoverOverlayViewModel:uH}))},"$e");
_.UI.idomCompat=!0;var $yY;$yY=_.T(function(b){var h=b.condition;var y=b.content;return _.M(_.H,{cond:h,then:function(){return _.M("div",{class:"yt-page-header-view-model__scroll-container"},y())},
else:function(){return y()}})},"af");
_.LMf=_.T(function(b){var h=b.data;var y=b.noPadding;var S=b.enableBanner;var F=b.cinematicContainerTopbarOffset;var a=b.allowCinematicContainerOverflow;var P=b.displayAsSidebar;var K=b.displayAsPanel;var n=b.alwaysUseMediumTextDescription;var X=$RY(),u=function(){return!!h().image||!!h().animatedImage},O=function(){return!!h().background},N=function(){return(P==null?0:P())||(K==null?0:K())?1:X()},t=function(){return N()===1},R=function(){return t()||N()===2},I=function(){return N()===4},U=function(){var Ny=
h();
var gI=!!h().heroImage;var YU=N(),VN=LFy(h()),Hb=P==null?void 0:P(),vF=!Ny.metadata,xU;if(xU=gI?_.c(Ny.heroImage,$Ta):_.c(Ny.animatedImage||Ny.image,$Ta)){Ny=xU.style;var Xa=xU.layoutMode;if(Xa!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(xU=J$5(ph4(xU)),gI)gI=acq(YU,Ny,Xa,xU,Hb);else b:if(vF)gI=YU===1?{size:48}:{size:72};else switch(YU){case 1:gI={size:72};break b;case 2:gI={size:120};break b;default:gI=VN<4?{size:120}:{size:160}}else gI=void 0}else gI={size:0};return gI};
b={};b=_.P2((b["yt-page-header-view-model"]=!0,b["yt-page-header-view-model--no-padding"]=function(){return!(y==null||!y())},b["yt-page-header-view-model--small-top-padding"]=function(){return t()&&!h().actions&&!(K==null?0:K())||N()===2&&!(u()||h().heroImage)},b["yt-page-header-view-model--small-bottom-padding"]=function(){return R()&&!h().actions&&!(K==null?0:K())},b["yt-page-header-view-model--cinematic-container-overflow-boundary"]=function(){return!(a==null?0:a())},b["yt-page-header-view-model--display-as-sidebar"]=
P,b));
var p={},e=_.P2((p["yt-page-header-view-model__page-header-headline"]=!0,p["yt-page-header-view-model__page-header-headline--page-header-headline-full-width-hero"]=function(){var Ny;return(Ny=U())==null?void 0:Ny.allowFullWidth},p)),E=function(){var Ny;
return R()&&!((Ny=U())==null?0:Ny.allowFullWidth)},Y=function(){return t()&&(!!h().heroImage||u())&&LFy(h())>0},w=function(){return Y()&&(K==null?void 0:K())};
p={};var x=_.P2((p["yt-page-header-view-model__page-header-title"]=!0,p["yt-page-header-view-model__page-header-title--page-header-title-large"]=function(){return!Y()},p["yt-page-header-view-model__page-header-title--page-header-title-medium"]=function(){return Y()&&!w()},p["yt-page-header-view-model__page-header-title--page-header-title-medium-force-small-layout"]=w,p["yt-page-header-view-model__page-header-title--page-header-title-overlay"]=O,p));
p={};var q=_.P2((p["yt-page-header-view-model__page-header-headline-image"]=!0,p["yt-page-header-view-model__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!h().heroImage&&R()},p));
p={};var dI=_.P2((p["yt-page-header-view-model__page-header-banner-container"]=S,p["yt-page-header-view-model__page-header-banner-container--full-bleed"]=function(){var Ny;return(S==null?void 0:S())&&((Ny=_.c(h().banner,_.Pwo))==null?void 0:Ny.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},p));
p={};var L4=_.P2((p["yt-page-header-view-model__page-header-content-metadata"]=!0,p["yt-page-header-view-model__page-header-content-metadata--page-header-content-metadata-overlay"]=O,p));p={};var Rq=_.P2((p["yt-page-header-view-model__page-header-flexible-actions"]=!0,p["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!h().metadata||R()},p["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!R()},p));
p={};var Xn=_.P2((p["yt-page-header-view-model__page-header-attribution"]=!0,p["yt-page-header-view-model__page-header-attribution--page-header-attribution-overlay"]=O,p));return _.M("yt-page-header-view-model",{class:b},_.M(_.H,{cond:O,then:function(){return _.M("div",{class:"yt-page-header-view-model__page-header-background"},_.M(_.rC,{data:function(){return h().background}},{cinematicContainerViewModel:function(Ny){return _.M(_.h8d,{data:Ny.data,
topbarOffset:F})}}))}}),_.M($yY,{condition:function(){return!(P==null||!P())},
content:function(){return _.M("div",{class:"yt-page-header-view-model__page-header-content"},_.M(_.H,{cond:function(){return(S==null?void 0:S())&&h().banner},
then:function(){return _.M("div",{class:dI},_.M(_.rC,{data:function(){return h().banner}},{imageBannerViewModel:_.UI}))}}),_.M("div",{class:e},_.M(_.H,{cond:u,
then:function(){return _.M(_.rC,{data:function(){var Ny;if(!(Ny=h().animatedImage)){Ny=h();if(u()){var gI=Ny=Object.assign({},Ny),YU=N(),VN=LFy(h()),Hb=gI.image,vF=_.c(Hb,LEG),xU=vF==null?void 0:vF.avatar,Xa=_.c(xU,_.sF);if(Hb&&xU&&Xa){switch(YU){case 1:Xa.avatarImageSize="AVATAR_SIZE_XL";break;case 2:Xa.avatarImageSize="AVATAR_SIZE_XXL";break;default:VN<4?Xa.avatarImageSize="AVATAR_SIZE_XXL":Xa.avatarImageSize="AVATAR_SIZE_XXXL"}_.J6(xU,_.sF,Object.assign({},Xa));vF.avatar=Object.assign({},xU);_.J6(Hb,
LEG,Object.assign({},vF));gI.image=Object.assign({},Hb)}}Ny=Ny.image}return Ny}},{contentPreviewImageViewModel:function(Ny){return _.M(_.fr,{data:Ny.data,
className:q,imageSizeConfig:U})},
decoratedAvatarViewModel:function(Ny){return _.M(_.NY,{data:Ny.data,className:q})}})}}),_.M(_.H,{cond:function(){return!!h().heroImage&&!E()},
then:function(){return _.M(_.rC,{data:function(){return h().heroImage}},{contentPreviewImageViewModel:function(Ny){return _.M(_.fr,{data:Ny.data,
className:q,imageSizeConfig:U})}})}}),_.M("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.M(_.H,{cond:function(){return!!h().heroImage&&E()},
then:function(){return _.M("div",{class:"yt-page-header-view-model__page-header-headline-image-hero-container"},_.M(_.rC,{data:function(){return h().heroImage}},{contentPreviewImageViewModel:function(Ny){return _.M(_.fr,{data:Ny.data,
className:q,imageSizeConfig:U})}}))}}),_.M(_.rC,{data:function(){return h().title}},{dynamicTextViewModel:function(Ny){return _.M(jqN,{data:Ny.data,
className:x})}}),_.M(_.rC,{data:function(){return h().metadata}},{contentMetadataViewModel:function(Ny){return _.M(_.lH,{data:Ny.data,
layout:function(){return t()?1:0},
className:L4,isOverlay:O,useMediumText:I})}}),_.M(_.H,{cond:function(){return h().description&&!t()},
then:function(){return _.M(_.rC,{data:function(){return h().description}},{descriptionPreviewViewModel:function(Ny){return _.M(_.hN,{data:Ny.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:O,maxLinesOverride:function(){return t()?void 0:1},
useMediumText:function(){return(n==null?void 0:n())||I()}})}})}}),_.M(_.H,{cond:function(){return h().attribution&&!R()},
then:function(){return _.M(_.rC,{data:function(){return h().attribution}},{attributionViewModel:function(Ny){return _.M(wE,{data:Ny.data,
className:Xn,useMediumText:I})}})}}),_.M(_.H,{cond:function(){return h().actions&&!R()},
then:function(){return _.M(_.rC,{data:function(){return h().actions}},{flexibleActionsViewModel:function(Ny){return _.M(_.tp,{data:Ny.data,
layout:function(){return PBM(N())},
className:Rq})}})}}))),_.M("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.M(_.H,{cond:function(){return h().description&&t()},
then:function(){return _.M(_.rC,{data:function(){return h().description}},{descriptionPreviewViewModel:function(Ny){return _.M(_.hN,{data:Ny.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:O,maxLinesOverride:function(){return t()?void 0:1},
useMediumText:function(){return(n==null?void 0:n())||I()}})}})}}),_.M(_.H,{cond:function(){return h().attribution&&R()},
then:function(){return _.M(_.rC,{data:function(){return h().attribution}},{attributionViewModel:function(Ny){return _.M(wE,{data:Ny.data,
className:Xn,useMediumText:I})}})}}),_.M(_.H,{cond:function(){return h().actions&&R()},
then:function(){return _.M(_.rC,{data:function(){return h().actions}},{flexibleActionsViewModel:function(Ny){return _.M(_.tp,{data:Ny.data,
layout:function(){return PBM(N())},
className:Rq})}})}})),_.M("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.M(_.rC,{data:function(){return h().bottomMetadataFlexibleContainer}},{flexibleContainer:function(Ny){return _.M(dyA,{data:Ny.data,
isOverlay:O})}})))}}))},"bf");
_.LMf.idomCompat=!0;_.yd(_.T(function(b){var h=_.L(_.pa(!1,void 0,"qvRy4d")),y=h.next().value,S=h.next().value;return _.M("yt-official-card-view-model",{class:_.P2("ytOfficialCardViewModelHost",b.className),style:_.n9({"background-color":function(){var F,a=ND((F=b.data())==null?void 0:F.backgroundColor);return a?_.CR(a):void 0}})},_.M(_.rC,{data:function(){return b.data().header}},{pageHeaderViewModel:function(F){return _.M(_.LMf,{data:F.data,
noPadding:!0})}}),_.M(_.rC,{data:function(){return b.data().contents}},{horizontalShelfViewModel:function(F){return _.M(_.AN,{data:F.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.M(_.H,{cond:y,
then:function(){return _.M("div",{class:"ytOfficialCardViewModelExpandedContent"},_.M(_.rC,{data:function(){return b.data().expandedContents}},{horizontalShelfViewModel:function(F){return _.M(_.AN,{data:F.data,
sizing:"MINI"})}}),_.M("div",{class:"ytOfficialCardViewModelCollapseButton"},_.M(_.rC,{data:function(){return b.data().collapseButton}},{buttonViewModel:function(F){return _.M(_.EG,{data:F.data,
onClick:function(){S(!y())}})}})))},
else:function(){return _.M("div",{class:"ytOfficialCardViewModelExpandButton"},_.M(_.rC,{data:function(){return b.data().expandButton}},{buttonViewModel:function(F){return _.M(_.EG,{data:F.data,
onClick:function(){S(!y())}})}}))}}))},"cf"),"yt-official-card-view-model",{props:{data:_.D4,
className:_.D4}});var PfF=_.T(function(b){var h,y=(h=_.H9().resolve(_.XS(_.cC)))==null?void 0:h();return _.M("ytw-search-friction-view-model",{class:_.P2("ytwSearchFrictionViewModelHost",b.className)},_.M("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.M("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.M(_.H,{cond:function(){return y&&b.data().darkThemeImage?b.data().darkThemeImage:b.data().image},
then:function(S){return _.M(_.mI,{data:S,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.M(_.rC,{data:function(){return b.data().overflowMenuButton}},{buttonViewModel:function(S){return _.M(_.EG,{data:S.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.M(_.zv,{text:function(){return b.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.M(_.Gw,{each:function(){return b.data().bodyText||[]}},function(S){return _.M(_.zv,{text:S,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.M(_.rC,{data:function(){return b.data().actions}},{buttonViewModel:function(S){return _.M(_.EG,{data:S.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.M(_.zv,{text:function(){return b.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.M(_.zv,{text:function(){return b.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"df");
PfF.idomCompat=!0;_.yd(PfF,"ytw-search-friction-view-model",{props:{data:_.D4,className:_.D4}});_.pU=_.T(function(b){var h=_.ZR("markdown-div"),y,S=(y=_.H9().resolve(_.XS(_.cC)))==null?void 0:y();_.Qi(function(){var F=h.value;var a=new Qs5,P=new Map(a.JSC$9481_sanitizerTable.globalAttributePolicies);P.set("style",{policyAction:4});a.JSC$9481_sanitizerTable=new YB(a.JSC$9481_sanitizerTable.allowedElements,a.JSC$9481_sanitizerTable.elementPolicies,a.JSC$9481_sanitizerTable.allowedGlobalAttributes,P,a.JSC$9481_sanitizerTable.globallyAllowedAttributePrefixes);var K=["data-time"];if(K===void 0)P=
new Set(a.JSC$9481_sanitizerTable.globallyAllowedAttributePrefixes),P.add("data-"),a.JSC$9481_sanitizerTable=new YB(a.JSC$9481_sanitizerTable.allowedElements,a.JSC$9481_sanitizerTable.elementPolicies,a.JSC$9481_sanitizerTable.allowedGlobalAttributes,a.JSC$9481_sanitizerTable.globalAttributePolicies,P);else{P=new Set(a.JSC$9481_sanitizerTable.allowedGlobalAttributes);K=_.L(K);for(var n=K.next();!n.done;n=K.next()){n=n.value;if(n.indexOf("data-")!==0)throw Error("ka`"+n);P.add(n)}a.JSC$9481_sanitizerTable=
new YB(a.JSC$9481_sanitizerTable.allowedElements,a.JSC$9481_sanitizerTable.elementPolicies,P,a.JSC$9481_sanitizerTable.globalAttributePolicies,a.JSC$9481_sanitizerTable.globallyAllowedAttributePrefixes)}P=new Set(a.JSC$9481_sanitizerTable.allowedGlobalAttributes);P.add("class");a.JSC$9481_sanitizerTable=new YB(a.JSC$9481_sanitizerTable.allowedElements,a.JSC$9481_sanitizerTable.elementPolicies,P,a.JSC$9481_sanitizerTable.globalAttributePolicies,a.JSC$9481_sanitizerTable.globallyAllowedAttributePrefixes);
_.M5(F,_.fFP(a.build(),ZSk(b.text())));oQU(h.value)},"OZ439c");
y={};return _.M("div",null,_.M("markdown-div",{class:_.P2("ytwMarkdownDivHost",(y.ytwMarkdownDivDark=S,y.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var F;return((F=b.isSmallText)==null?void 0:F.call(b))||!1},y.ytwMarkdownDivHostWrapCodeBlocks=function(){var F;
return((F=b.wrapCodeBlocks)==null?void 0:F.call(b))||!1},y.ytwMarkdownDivHostEnableDefaultStyling=function(){var F;
return!((F=b.disableDefaultStyling)==null?0:F.call(b))},y)),
el:h}))},"ff");
_.pU.idomCompat=!0;var KMf=_.T(function(b){var h=b.imageData;var y=_.bi(b.isInList,!1),S=function(){return y()?{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 _.M("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.M(_.H,{cond:function(){return h().image},
then:function(F){return _.M(_.mI,{data:F,alt:function(){return S().alt},
contentMode:function(){return S().contentMode},
targetWidth:function(){return S().targetWidth},
targetHeight:function(){return S().targetHeight},
className:function(){return S().className}})}}),_.M("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.M("div",{class:_.P2("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.M(_.zv,{text:function(){return h().title}})),_.M(_.Gw,{each:function(){var F;
return(F=h().description)!=null?F:[]}},function(F){return _.M("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.M(JN,{content:F}))})))},"gf"),Z4a=_.T(function(b){var h=b.list;
var y=function(){var S;return(S=h().items)!=null?S:[]};
return _.M("div",{class:"ytwGenAiRichTextViewModelListContent"},_.M(_.H,{cond:function(){return h().title},
then:function(S){return _.M("div",{class:_.P2("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.M(_.zv,{text:S}))}}),_.M(_.H,{cond:function(){return h().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.M("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.M(_.Gw,{each:y},function(S){return _.M("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.M(JN,{content:S,isInList:!0}))}))}}),_.M(_.H,{cond:function(){return h().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.M("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.M(_.Gw,{each:y},function(S){return _.M("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.M(JN,{content:S,isInList:!0}))}))}}),_.M(_.H,{cond:function(){return h().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.M("div",{class:"ytwGenAiRichTextViewModelImageList"},_.M(_.Gw,{each:y},function(S){return _.M("div",{class:"ytwGenAiRichTextViewModelListItem"},_.M(JN,{content:S,isInList:!0}))}))}}))},"hf"),oUf=_.T(function(b){var h=b.table;
return _.M("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.M("thead",null,_.M("tr",null,_.M(_.Gw,{each:function(){var y,S;return(S=(y=h().header)==null?void 0:y.cells)!=null?S:[]}},function(y){return _.M("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.M(_.Gw,{each:function(){return y.contents}},function(S){return _.M(JN,{content:S})}))}))),_.M("tbody",null,_.M(_.Gw,{each:function(){var y;
return(y=h().rows)!=null?y:[]}},function(y){return _.M("tr",null,_.M(_.Gw,{each:function(){return y.cells}},function(S){return _.M("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.M(_.Gw,{each:function(){return S.contents}},function(F){return _.M(JN,{content:F})}))}))})))},"jf"),JN=_.T(function(b){var h=b.content;
var y=_.bi(b.isInList,!1),S=function(){var F,a;return(a=(F=h().contentBlock)==null?void 0:F.contents)!=null?a:[]};
return _.M("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.M(_.H,{cond:function(){return h().text},
then:function(F){return _.M(_.zv,{className:"ytwGenAiRichTextViewModelText",text:F})}}),_.M(_.H,{cond:function(){return h().image},
then:function(F){return _.M(KMf,{imageData:F,isInList:y})}}),_.M(_.H,{cond:function(){return h().list},
then:function(F){return _.M(Z4a,{list:F})}}),_.M(_.H,{cond:function(){return h().contentBlock},
then:function(){return _.M("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.M(_.Gw,{each:S},function(F){return _.M(JN,{content:F,isInList:!1})}))}}),_.M(_.H,{cond:function(){return h().table},
then:function(F){return _.M(oUf,{table:F})}}))},"kf"),M5A=_.T(function(b){var h={};
h=_.AB("ytwGenAiRichTextViewModelHost",(h.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.rH("search_overview_link_style")),h));return _.M("gen-ai-rich-text-view-model",{class:h},_.M(JN,{content:function(){return b.data().content}}))},"lf");_.nUf=_.T(function(b){var h=b.data;var y=function(){var I;return((I=h().loadingUi)!=null?I:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},S=function(){return h().isLoading&&(y()==="UNSPECIFIED"||y()==="GHOST_CARD")},F=function(){return!h().isLoading},a=function(){return!!h().content&&!h().contents},P=function(){return!!h().contents},K=function(){return!!h().nextQueryButtons},n=function(){return h().isLoading&&y()==="INVISIBLE"},X=function(){var I,U;
return(U=(I=h().headerIcon)==null?void 0:I.iconType)!=null?U:""},u=function(){var I;
return(I=h().content)!=null?I:""},O=function(){return!!h().sourcesSection},N,t=!((N=_.H9().resolve(_.XS(_.cC)))==null||!N()),R=_.s5(function(){var I=[],U=h().contents;
if(U)for(var p=0;p<U.length;p++){var e=_.c(U&&U[p],OeP);e&&I.push(e)}return I},void 0,"gcCsZb");
_.wg(function(){h().isLoading||_.pI("so_re",void 0,"search_overview_answer")});
return _.M("ytd-overview-answer-view-model",{class:function(){var I={};I=(I.ytdOverviewAnswerViewModelHost=!0,I.ytdOverviewAnswerViewModelDarkBackground=t&&!n(),I.ytdOverviewAnswerViewModelLightBackground=!t&&!n(),I);return _.AB(I)}},_.M(_.H,{cond:function(){return!n()},
then:function(){return _.M(_.OW,null,_.M("h2",null,_.M("div",{class:"ytdOverviewAnswerViewModelHeader"},_.M(_.H,{cond:X,then:function(I){return _.M("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.M(_.Xv,{icon:I}))}}),_.M("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.M("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return h().headerText}),_.M("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.M(_.zv,{text:function(){return h().headerSubtext}}))))),_.M(_.H,{cond:S,
then:function(){return _.M(MOy,null)}}),_.M(_.H,{cond:F,
then:function(){return _.M(_.OW,null,_.M(_.H,{cond:a,then:function(){return _.M("div",{class:"ytdOverviewAnswerViewModelText"},_.M(_.pU,{text:u,isSmallText:!0}))}}),_.M(_.H,{cond:P,
then:function(){return _.M("div",{class:"ytdOverviewAnswerViewModelRichText"},_.M(_.Gw,{each:R},function(I){return _.M(M5A,{data:I})}))}}),_.M(_.H,{cond:K,
then:function(){return _.M("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.M(_.rC,{data:function(){return h().nextQueryButtons}},{buttonViewModel:function(I){return _.M(_.EG,{data:I.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.AN}))}}),_.M("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.M("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.M(_.H,{cond:function(){return!!_.c(h().likeButtonViewModel,_.E9)&&!!_.c(h().dislikeButtonViewModel,_.iG)},
then:function(){return _.M("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.M(_.cD,{data:function(){return _.c(h().likeButtonViewModel,_.E9)},
disableIconAnimation:!0}),_.M(_.r7,{data:function(){return _.c(h().dislikeButtonViewModel,_.iG)}}))}})),_.M(_.H,{cond:function(){var I;
return(I=h().sourcesSection)==null?void 0:I.headerText},
then:function(I){return _.M("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.M(_.zv,{text:I}))}})),_.M(_.H,{cond:O,
then:function(){return _.M("div",{class:"ytdOverviewAnswerViewModelSources"},_.M(_.rC,{data:function(){var I;return(I=h().sourcesSection)==null?void 0:I.sourcesShelf}},{buttonViewModel:_.EG,
horizontalShelfViewModel:function(I){return _.M(_.AN,{data:I.data,includeMargin:!0,hasPeek:!0})}}))}}),_.M(_.H,{cond:function(){return h().disclaimerText},
then:function(){return _.M("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.M(_.zv,{text:function(){return h().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"mf");var XFA=_.T(function(b){var h=_.h6(b,{}).data;return _.M("yt-shopping-content-line-item-view-model",{class:_.P2("ytShoppingContentLineItemViewModelHost")},_.M(_.zv,{text:function(){var y;return(y=h().text)==null?void 0:y.attributedString}}))},"nf");_.eE=_.T(function(b){b=_.h6(b,{});var h=b.data,y={};return _.M("yt-shopping-content-line-view-model",{class:_.P2("ytShoppingContentLineViewModelHost",b.className,(y.ytShoppingContentLineViewModelTruncateText=function(){return!h().wrapContent},y)),
style:_.n9({"--shopping-content-line-gap":function(){return h().itemGap?h().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return h().lineHeight?h().lineHeight+"px":void 0}})},_.M(_.Gw,{each:function(){return(h().items||[]).map(function(S){return _.c(S,BDW)}).filter(function(S){return!!S})}},function(S){return _.M(XFA,{data:S})}))},"of");var H4A=_.T(function(b){var h=b.data;var y=function(){var a;return((a=h().image)==null?void 0:a.height)||48},S=function(){var a;
return((a=h().image)==null?void 0:a.width)||48},F=function(){return"width: "+S()+"px; height: "+y()+"px;"};
return _.M("yt-shopping-description-item-view-model",{class:"ytShoppingDescriptionItemViewModelHost",style:function(){var a,P,K,n=((a=_.H9().resolve(_.XS(_.cC)))==null?0:a())?(P=h())==null?void 0:P.darkThemeBackgroundColor:(K=h())==null?void 0:K.lightThemeBackgroundColor;return"background-color: "+(n?_.CR(n):"")+";"},
el:_.Qa(_.Ch(function(){var a;return(a=h())==null?void 0:a.rendererContext}))},_.M(_.H,{cond:function(){var a,P;
return(P=(a=h().image)==null?void 0:a.image)!=null?P:h().thumbnail},
then:function(a){return _.M("div",{class:"ytShoppingDescriptionItemViewModelThumbnail",style:function(){var P;return"background-color: "+(((P=h().image)==null?0:P.backgroundColor)?_.CR(h().image.backgroundColor):"")+";"+F()}},_.M(_.mI,{data:a,
height:y,width:S,style:F,alt:""}))}}),_.M("div",{class:"ytShoppingDescriptionItemViewModelText"},_.M(_.rC,{data:function(){return h().line1}},{shoppingContentLineViewModel:function(a){return _.M(_.eE,{data:a.data})}}),_.M(_.rC,{data:function(){return h().line2}},{shoppingContentLineViewModel:function(a){return _.M(_.eE,{data:a.data})}}),_.M(_.rC,{data:function(){return h().line3}},{shoppingContentLineViewModel:function(a){return _.M(_.eE,{data:a.data})}})))},"pf");var un2=_.T(function(b){var h=b.data;var y=b.active;var S=_.ZR("transcript-segment-view-model");_.Qi(function(){var F,a,P,K=((F=_.H9().resolve(_.XS(_.cC)))==null?0:F())?(a=h())==null?void 0:a.darkThemeColorPalette:(P=h())==null?void 0:P.lightThemeColorPalette;K&&(K.additiveBackground&&S.value.style.setProperty("--timestamp-active-background-color",_.CR(K.additiveBackground)),K.textSecondary&&S.value.style.setProperty("--timestamp-active-color",_.eI(K.textSecondary)))},"TnVCnb");
b={};return _.M("transcript-segment-view-model",{class:_.P2("ytwTranscriptSegmentViewModelHost",(b.ytwTranscriptSegmentViewModelHostActive=y,b.ytwTranscriptSegmentViewModelHostModern=_.r("enable_timeline_view_modern_transcript")||_.r("enable_timeline_view_modern_transcript_fe"),b)),el:S},_.M(_.H,{cond:function(){var F;return(F=h())==null?void 0:F.timestamp},
then:function(F){var a={};return _.M(_.OW,null,_.M("div",{class:_.P2("ytwTranscriptSegmentViewModelTimestamp",(a.ytwTranscriptSegmentViewModelTimestampActive=y,a)),"aria-hidden":!0},F),_.M("div",{class:"ytwTranscriptSegmentViewModelTimestampA11yLabel"},function(){var P=F().split(":").map(Number),K=_.L(P.reverse());P=K.next().value;var n=K.next().value;K=K.next().value;return _.o9N({hours:K,minutes:n,seconds:P})}))}}),_.M(_.zv,{text:function(){var F,a,P;
return(P=(F=h())==null?void 0:F.attributedText)!=null?P:{content:(a=h())==null?void 0:a.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"rf");var O4P=_.T(function(b){var h=b.data;return _.M("div",{class:"videoAttributesSectionViewModelHeader"},_.M("div",{class:"videoAttributesSectionViewModelTitleContainer"},_.M("h3",{class:"videoAttributesSectionViewModelTitle"},function(){return h().headerTitle}),_.M(_.H,{cond:function(){return h().headerInfoButton},
then:function(){return _.M(_.rC,{data:function(){return h().headerInfoButton}},{buttonViewModel:function(y){return _.M(_.EG,{data:y.data,
className:"videoAttributesSectionViewModelInfoButton"})}})}})),_.M(_.H,{cond:function(){return h().headerSubtitle},
then:function(){return _.M("span",{class:"videoAttributesSectionViewModelSubtitle"},function(){return h().headerSubtitle})}}))},"sf"),NIf=_.T(function(b){function h(I){return Math.max(Math.min(I,0),X()-K())}
var y=b.data;var S;b=_.ZR("div",function(I){var U=function(){u(I.clientWidth)};
U();window.ResizeObserver&&(S=new ResizeObserver(U),S.observe(I))});
var F=_.ZR("div",function(I){n(I.scrollWidth)}),a=_.L(_.pa(0,void 0,"C3XQAe")),P=a.next().value;
a=a.next().value;var K=P,n=a;a=_.L(_.pa(0,void 0,"db7y3"));P=a.next().value;a=a.next().value;var X=P,u=a;P=_.L(_.pa(0,void 0,"RchC7"));var O=P.next().value,N=P.next().value;_.m2(function(){var I;(I=S)==null||I.disconnect()});
var t=function(){N(h(O()+X()))},R=function(){N(h(O()-X()))};
return _.M("yt-video-attributes-section-view-model",null,_.M("div",{class:"videoAttributesSectionViewModelHost"},_.M(_.H,{cond:function(){return y().headerTitle},
then:function(){return _.M(O4P,{data:y})}}),_.M("div",{class:_.P2("videoAttributesSectionViewModelVideoAttributes","videoAttributesSectionViewModelScrollContainer"),
el:b},_.M("div",{class:"videoAttributesSectionViewModelVideoAttributesContainer",style:_.n9({transform:function(){var I=O();_.QC("HTML_DIR")==="rtl"&&(I*=-1);return"translateX("+I+"px)"}}),
el:F},_.M(_.rC,{data:function(){return y().videoAttributeViewModels}},{videoAttributeViewModel:yA8}))),_.M(_.rC,{data:function(){return y().footerButton}},{buttonViewModel:function(I){return _.M(_.EG,{data:I.data,
className:"videoAttributesSectionViewModelFooterButton"})}}),_.M(_.H,{cond:function(){return O()<0&&y().previousButton},
then:function(){return _.M("div",{class:"videoAttributesSectionViewModelLeftArrow"},_.M(_.rC,{data:function(){return y().previousButton}},{buttonViewModel:function(I){return _.M(_.EG,{data:I.data,
onClick:t})}}))}}),_.M(_.H,{cond:function(){return O()>X()-K()&&y().nextButton},
then:function(){return _.M("div",{class:"videoAttributesSectionViewModelRightArrow"},_.M(_.rC,{data:function(){return y().nextButton}},{buttonViewModel:function(I){return _.M(_.EG,{data:I.data,
onClick:R})}}))}})))},"tf");
NIf.idomCompat=!0;var t5A=_.T(function(b){var h=b.data;var y=b.active;var S={},F={};return _.M("timeline-item-view-model",{class:_.P2("ytwTimelineItemViewModelHost",(S.ytwTimelineItemViewModelHostChapterChild=b.chapterChild,S.ytwTimelineItemViewModelModern=_.r("enable_timeline_view_modern_transcript")||_.r("enable_timeline_view_modern_transcript_fe"),S))},_.M("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.M("div",{class:_.P2("ytwTimelineItemViewModelTimestamp",(F.ytwTimelineItemViewModelTimestampActive=
y,F))},function(){return h().timestamp})),_.M("div",{class:"ytwTimelineItemViewModelContentItems"},_.M(_.rC,{data:function(){return h().contentItems}},{transcriptSegmentViewModel:function(a){return _.M(un2,{data:a.data,
active:y})},
videoAttributesSectionViewModel:NIf})))},"uf");var rYA=_.T(function(b){var h=b.data;b={};return _.M("timeline-chapter-view-model",{class:_.P2("ytwTimelineChapterViewModelHost")},_.M("div",{class:_.P2("ytwTimelineChapterViewModelTitle",(b.ytwTimelineChapterViewModelModern=_.r("enable_timeline_view_modern_transcript")||_.r("enable_timeline_view_modern_transcript_fe"),b))},function(){return h().title}),_.M(_.rC,{data:function(){return h().contents}},{timelineItemViewModel:function(y){return _.M(t5A,{data:y.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(y){return _.M(NIf,{data:y.data})}}))},"vf");var cYA=_.T(function(b){var h=b.data;var y=_.ZR("macro-markers-panel-item-view-model"),S=_.OF(_.SJF,function(){var a;return(a=h().markersEngagementPanelSyncEntityKey)!=null?a:""}),F=function(){var a;
return((a=S())==null?void 0:a.activeItemIndex)===h().index};
b=_.Zv(function(a){var P,K,n,X,u;return _.Z(function(O){if(O.nextAddress==1)return a.stopPropagation(),_.ph(_.UF(a),y.value,["A".toString(),"BUTTON".toString()])?O.return():(P=_.YS(h().onTap))?O.yield(_.Z5(),2):O.return();K=O.yieldResult;X=(n=_.c(P,_.wO))==null?void 0:n.startTimeSeconds;X===void 0||(u=K)!=null&&u.seekTo(X,!0);_.g3(O)})});
return _.M("macro-markers-panel-item-view-model",{class:_.P2("ytwMacroMarkersPanelItemViewModelHost",{"is-active":F}),el:y,"on:click":b,tabindex:0,role:"button"},_.M(_.rC,{data:function(){var a;return(a=h())==null?void 0:a.item}},{timelineChapterViewModel:function(a){return _.M(rYA,{data:a.data,
active:F})},
timelineItemViewModel:function(a){return _.M(t5A,{data:a.data,active:F})},
videoAttributeViewModel:yA8,shoppingDescriptionItemViewModel:H4A}))},"wf");
cYA.idomCompat=!0;_.yd(cYA,"macro-markers-panel-item-view-model",{props:{data:_.D4}});_.yd(NIf,"yt-video-attributes-section-view-model",{props:{data:_.D4}});var R8P=_.T(function(b){var h=function(){var y,S,F;return(F=(y=b.data().leadingLogoAccessibility)==null?void 0:(S=y.accessibilityData)==null?void 0:S.label)!=null?F:""};
return _.M("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.M(_.H,{cond:function(){return b.data().leadingLogo},
then:function(y){return _.M(_.mI,{className:"ytwFantasySectionHeaderViewModelLogo",data:y,alt:h})}}),_.M("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.M(_.zv,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return b.data().title}}),_.M(_.zv,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return b.data().subtitle}})),_.M(_.rC,{data:function(){return b.data().trailingButton}},{buttonViewModel:function(y){return _.M(_.EG,{data:y.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"xf");var z8F=_.T(function(b){var h={};h=_.P2("ytwFantasyTeamViewModelHost",(h.ytwFantasyTeamViewModelCompact=function(){var F;return!((F=b.compact)==null||!F.call(b))},h.ytwFantasyTeamViewModelUser=function(){return b.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},h.ytwFantasyTeamViewModelOpponent=function(){return b.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},h));
var y=function(){var F,a,P;return(P=(F=b.data().teamLogoAccessibility)==null?void 0:(a=F.accessibilityData)==null?void 0:a.label)!=null?P:""},S=_.OF(aM5,function(){return b.data().teamEntityKey});
return _.M("ytw-fantasy-team-view-model",{class:h},_.M(_.H,{cond:function(){return b.data().teamLogo},
then:function(F){return _.M(_.mI,{className:"ytwFantasyTeamViewModelLogo",data:F,alt:y})}}),_.M("div",{class:"ytwFantasyTeamViewModelMetadata"},_.M("div",{class:"ytwFantasyTeamViewModelHeader"},_.M(_.zv,{className:"ytwFantasyTeamViewModelScore",
text:function(){var F;return(F=S())==null?void 0:F.score}}),_.M(_.Xv,{icon:function(){var F;
return(F=S())==null?void 0:F.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.M(_.zv,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var F;return(F=S())==null?void 0:F.projectedScore}})),_.M(_.zv,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return b.data().primaryText}}),_.M(_.zv,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return b.data().secondaryText}}),_.M(_.zv,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return b.data().tertiaryText}})),_.M(_.zv,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var F;return(F=S())==null?void 0:F.score}}))},"yf");_.yd(_.T(function(b){return _.M("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.M("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.M(_.rC,{data:function(){return b.data().summaryHeader}},{fantasySectionHeaderViewModel:R8P})),_.M(_.rC,{data:function(){return b.data().userTeam}},{fantasyTeamViewModel:z8F}),_.M(_.rC,{data:function(){return b.data().opponentTeam}},{fantasyTeamViewModel:z8F}))},"zf"),"fantasy-league-summary-view-model",{props:{data:_.D4}});var DyX=_.T(function(b){var h=_.h6(b,{shape:{},useCustomTabRenderable:!1}),y=h.shape;h=h.useCustomTabRenderable;var S=b.customTabRenderable,F=function(){return y().disabled},a=function(){return y().selected},P=function(){return y().title},K=function(){return y().icon},n=_.ZR("yt-tab-shape");
b=_.Zv(function(O){var N;if(!F()&&((N=y().aTagConfig)==null?0:N.onclick))y().aTagConfig.onclick(O);return!1});
var X=_.Zv(function(O){if(O.key==="Enter"||O.key==="ArrowUp"||O.key==="ArrowDown")O.preventDefault(),n.value.click();return!1}),u={};
return _.M("yt-tab-shape",{class:_.P2("yt-tab-shape",function(){return y().className},(u["yt-tab-shape__tab--last-tab"]=function(){return y().isLastTab},u["yt-tab-shape--host-disabled"]=F,u["yt-tab-shape--host-clickable"]=!S,u)),
role:S?void 0:"tab","aria-selected":a!=null?a:!1,"aria-disabled":F,tabindex:S?void 0:0,"on:click":b,"on:keydown":X,el:n,"tab-identifier":function(){return y().identifier},
"tab-title":P},_.M(_.H,{cond:h,then:function(){return S()},
else:function(){var O={},N={};return _.M(_.OW,null,_.M("div",{class:_.P2("yt-tab-shape__tab",(O["yt-tab-shape__tab--tab-selected"]=a,O))},_.M(_.H,{cond:K,then:function(t){return _.M(_.Xv,{className:"yt-tab-shape__tab-icon",icon:function(){return t().iconType}})}}),P),_.M("div",{class:_.P2("yt-tab-shape__tab-bar",(N["yt-tab-shape__tab-bar--tab-bar-selected"]=a,N))}))}}))},"Af");
DyX.idomCompat={callbacks:{customTabRenderable:!0}};_.BIf=_.T(function(b){var h=b.shape;b=_.L(_.pa(48,void 0,"nDAx4"));var y=b.next().value,S=b.next().value;b=_.L(_.pa(0,void 0,"GCgjqb"));var F=b.next().value,a=b.next().value,P=function(){return h().tabs},K=_.ZR("yt-tab-group-shape"),n=function(){var N,t;
return(t=(N=P())==null?void 0:N.findIndex(function(R){return R.selected}))!=null?t:-1};
b=_.L(_.pa(!1,void 0,"SU01tf"));var X=b.next().value,u=b.next().value,O=function(){X()||_.xP.addJob(function(){u(!0)},0)};
_.Qi(function(){var N=n(),t=_.xP.addJob(function(){var R,I=((R=K.value)==null?void 0:R.querySelectorAll("yt-tab-shape"))||[],U;S(((U=N>-1?I[N]:void 0)==null?void 0:U.getBoundingClientRect().width)||0);for(U=R=0;U<N;U++)R+=I[U].offsetWidth+24;_.QC("HTML_DIR")==="rtl"&&(R=-R);a(R);O()},8,0);
_.m2(function(){_.xP.cancelJob(t)})},"PMwgb");
b={};return _.M("yt-tab-group-shape",{class:_.P2("tabGroupShapeHost",(b.tabGroupShapeOverflowHidden=function(){return h().isOverflowHidden},b)),
el:K},_.M(_.H,{cond:P,then:function(N){return _.M(_.OW,null,_.M("div",{class:"tabGroupShapeTabs",role:"tablist"},_.M(_.Gw,{each:N},function(t,R){return _.M(DyX,{shape:function(){return Object.assign({},t,{isLastTab:R()===N().length-1})},
customTabRenderable:t.customTabRenderable,useCustomTabRenderable:!!t.customTabRenderable})})),_.M(Irq,{width:y,
sliderOffset:F,enableTransition:X}))}}))},"Cf");
_.BIf.idomCompat=!0;var Irq=_.T(function(b){var h=_.bi(b.sliderOffset,0),y=b.width,S=b.enableTransition;b={};return _.M("div",{class:_.P2("tabGroupShapeSlider",(b.tabGroupShapeSliderTransition=function(){return S()},b)),
style:_.n9({width:function(){return y()+"px"},
transform:function(){return"translateX("+h()+"px)"}})})},"Df");var WMN=_.T(function(b){var h=function(){var a,P,K;return(K=(a=b.data().playerLogoAccessibility)==null?void 0:(P=a.accessibilityData)==null?void 0:P.label)!=null?K:""},y=_.OF(dFN,function(){return b.data().playerEntityKey}),S={};
S=_.P2("ytwFantasyPlayerViewModelHost",(S.ytwFantasyPlayerViewModelPlaying=function(){var a;return!((a=y())==null||!a.isPlayerPlaying)},S.ytwFantasyPlayerViewModelOnField=function(){var a;
return((a=y())==null?void 0:a.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},S.ytwFantasyPlayerViewModelRedZone=function(){var a;
return((a=y())==null?void 0:a.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},S));
var F=function(){var a,P,K,n=((a=_.H9().resolve(_.XS(_.cC)))==null?0:a())?(P=b.data().playerLogoBackgroundColor)==null?void 0:P.darkTheme:(K=b.data().playerLogoBackgroundColor)==null?void 0:K.lightTheme;return n===void 0?"":_.CR(n)};
return _.M("ytw-fantasy-player-view-model",{class:S},_.M(_.H,{cond:function(){return b.data().playerLogo},
then:function(a){return _.M("div",{class:"ytwFantasyPlayerViewModelLogo"},_.M("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.M(_.mI,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.n9({"background-color":F}),data:a,alt:h})),_.M("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.M(_.Xv,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.M("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.M("div",{class:"ytwFantasyPlayerViewModelHeader"},_.M(_.zv,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var a;return(a=b.data())==null?void 0:a.playerNameText}}),_.M(_.zv,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var a;return(a=b.data())==null?void 0:a.playerDescriptionText}})),_.M("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.M(_.zv,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var a;return(a=y())==null?void 0:a.gamePeriodText}}),_.M(_.zv,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var a;return(a=b.data())==null?void 0:a.opponentTeamText}}),_.M(_.zv,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var a;return(a=y())==null?void 0:a.gameStatusText}}),_.M(_.zv,{className:_.P2("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var a;return(a=y())==null?void 0:a.playerStatusText}})),_.M("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.M(_.zv,{text:function(){var a;
return(a=y())==null?void 0:a.playerStatsText}}))),_.M(_.zv,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var a;return(a=y())==null?void 0:a.fantasyScore}}))},"Ef");var AYa=_.T(function(b){return _.M("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.M(_.H,{cond:function(){return b.data().players},
then:function(h){return _.M(_.rC,{data:h},{fantasyPlayerViewModel:WMN})}}))},"Ff");var Uyq=_.T(function(b){var h=_.L(_.ya(function(){var F;return(F=b.data().selectedTabIdentifierKey)!=null?F:""})),y=h.next().value,S=h.next().value;
_.fl(function(){var F;(F=b.setSelectedTabSignal)==null||F.call(b,y)});
return _.M("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.M("div",{class:"ytTabbedViewModelTabGroup"},_.M(_.BIf,{shape:function(){var F=b.data(),a=[],P={tabs:a};if(!F.tabs)return P;F=_.L(F.tabs);for(var K=F.next(),n={};!K.done;n={tabViewModel:void 0},K=F.next())if(n.tabViewModel=_.c(K.value,UT7),n.tabViewModel){var X=K=void 0;a.push({aTagConfig:{onclick:function(u){return function(){var O;S((O=u.tabViewModel.tabIdentifier)!=null?O:"")}}(n)},
identifier:n.tabViewModel.tabIdentifier,selected:y()===n.tabViewModel.tabIdentifier,title:(X=(K=n.tabViewModel.title)==null?void 0:K.content)!=null?X:""})}return P}})),_.M(_.rC,{data:function(){var F,a=_.L((F=b.data().tabs)!=null?F:[]);
for(F=a.next();!F.done;F=a.next())if((F=_.c(F.value,UT7))&&F.tabIdentifier===y())return F.content}},{fantasyRosterViewModel:AYa}))},"Hf");_.yd(_.T(function(b){var h=_.L(nQj()),y=h.next().value,S=h.next().value;return _.M("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.M(_.zv,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return b.data().title}}),_.M(_.H,{cond:function(){return b.data().tabbedViewModel},
then:function(F){return _.M(_.rC,{data:F},{tabbedViewModel:function(a){return _.M(Uyq,{data:a.data,setSelectedTabSignal:S})}})}}),_.M(_.H,{cond:function(){var F,a=(F=_.c(b.data().tabbedViewModel,pgN))==null?void 0:F.tabs;
F=_.c(a==null?void 0:a[0],UT7);a=_.c(a==null?void 0:a[1],UT7);var P=F==null?void 0:F.tabIdentifier;if(y()===P){var K,n;if(!((K=_.c(F==null?void 0:F.content,fXW))==null?0:(n=K.players)==null?0:n.length))return b.data().noUserTeamPlayersText}else{var X,u;if(!((X=_.c(a==null?void 0:a.content,fXW))==null?0:(u=X.players)==null?0:u.length))return b.data().noOpponentTeamPlayersText}},
then:function(F){return _.M(_.zv,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:F})}}))},"If"),"ytw-fantasy-matchup-view-model",{props:{data:_.D4}});_.yd(_.T(function(b){return _.M("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.M(_.zv,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return b.data().title}}),_.M(_.H,{cond:function(){return b.data().matchupTeamPairs},
then:function(h){return _.M(_.Gw,{each:h,keyBy:"INDEX"},function(y){return _.M("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.M(_.rC,{data:function(){return[y().firstTeam,y().secondTeam]}},{fantasyTeamViewModel:function(S){return _.M(z8F,{data:S.data,
compact:!0})}}))})}}))},"Jf"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.D4}});_.yd(_.T(function(b){var h=function(){var F,a,P;return(P=(F=b.data().userLogoAccessibility)==null?void 0:(a=F.accessibilityData)==null?void 0:a.label)!=null?P:""},y=function(){var F,a,P;
return(P=(F=b.data().opponentLogoAccessibility)==null?void 0:(a=F.accessibilityData)==null?void 0:a.label)!=null?P:""},S=_.OF(F4k,function(){return b.data().entityKey});
return _.M("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.M("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.M(_.H,{cond:function(){return b.data().userLogo},
then:function(F){return _.M(_.mI,{className:"ytwFantasyWinProbabilityViewModelLogo",data:F,alt:h})}}),_.M("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.M(_.zv,{text:function(){return b.data().title}})),_.M(_.H,{cond:function(){return b.data().opponentLogo},
then:function(F){return _.M(_.mI,{className:"ytwFantasyWinProbabilityViewModelLogo",data:F,alt:y})}})),_.M("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.M("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.M(_.zv,{text:function(){var F;
return(F=S())==null?void 0:F.userWinNumberLabel}})),_.M("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.M("div",{class:_.P2("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.n9({flex:function(){var F,a;return(a=(F=S())==null?void 0:F.userWinNumber)!=null?a:50}})}),_.M("div",{class:_.P2("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.n9({flex:function(){var F,a;return(a=(F=S())==null?void 0:F.opponentWinNumber)!=null?a:50}})})),_.M("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.M(_.zv,{text:function(){var F;
return(F=S())==null?void 0:F.opponentWinNumberLabel}}))))},"Kf"),"fantasy-win-probability-view-model",{props:{data:_.D4}});var pFX={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},JYq=_.T(function(b){return _.M(_.rC,{data:b.button},{buttonViewModel:function(h){return _.M(_.EG,{data:h.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"Lf"),e8f=_.T(function(b){return _.M("ytd-backstage-locked-post-view-model",{class:_.P2("ytdBackstageLockedPostViewModelHost",b.className)},_.M("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.M("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.M(_.rC,
{data:function(){return b.data().authorAvatar}},{decoratedAvatarViewModel:_.NY})),_.M("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.M("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.M(_.zv,{text:function(){return b.data().authorText}})),_.M("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.M(_.zv,{text:function(){return b.data().publishedTimeText}}),_.M(_.rC,{data:function(){return b.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(h){return _.M(J$e,
{data:h.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.M("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.M(_.zv,{text:function(){return b.data().contentText}})),_.M(_.kZ,null,_.M(_.YZ,{when:function(){return b.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.M("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.M(_.mI,{data:pFX,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.M(_.zv,{text:function(){return b.data().lockedText}}))}),_.M(_.YZ,{when:function(){return b.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.M("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.M("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.M(_.mI,{data:pFX,
alt:""})),_.M(_.zv,{text:function(){return b.data().lockedText}}))})),_.M("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.M(JYq,{button:function(){return b.data().likeButton}}),_.M("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return b.data().voteCountA11y}},_.M(_.zv,{text:function(){return b.data().voteCount}})),_.M(JYq,{button:function(){return b.data().dislikeButton}}),_.M(JYq,{button:function(){return b.data().commentButton}}),_.M("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return b.data().commentCountA11y}},_.M(_.zv,{text:function(){return b.data().commentCount}}))))},"Mf");
e8f.idomCompat=!0;_.yd(e8f,"ytd-backstage-locked-post-view-model",{props:{data:_.D4,className:_.D4}});_.W2("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var CU=function(){var b=_.g.apply(this,arguments)||this;b.darkerPanels=_.r("web_watch_darker_panels");b.commentsHidePanelButton=!1;b.isWatchGrid=!1;b.continuationShowButton=!1;b.isSearch=!1;b.isConstrainedList=!1;b.isWatch=!1;b.eligibleToSwitchToGrid=!1;b.useBigThumbs=!1;b.epRestyle=!1;b.isCarouselInFeed=!0;b.topSpacingZero=!1;b.continuationIsInitialLoad=!0;b.enableSqueezebackPanels=_.r("web_shorts_enable_squeezeback_panels");b.enableAnchoredPanel=_.r("desktop_shorts_v2_anchored_panel");b.notSticky=
!0;b.mastheadHeight=0;b.isStickyChipBarSetup=!1;b.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};b.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return b};
_.z(CU,_.g);_.d=CU.prototype;_.d.updateLockupContainerTypes=function(b){if(this.eligibleToSwitchToGrid){var h;(h=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||h.forEach(function(y){y.containerType=b})}};
_.d.getItemsPath=function(){return"data.contents"};
_.d.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.d.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstageLockedPostViewModel:"ytd-backstage-locked-post-view-model",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:{component:"ytd-channel-featured-content-renderer",properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupContainerType:"[[lockupContainerType]]"}},channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",
commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},commentFilterContextViewModel:{component:"yt-comment-filter-context-view-model"},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",
compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",
faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",
eduCardViewModel:"yt-edu-card-view-model",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",
handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",
labsItemRenderer:"ytd-labs-item-renderer",linearLayoutViewModel:"yt-linear-layout-view-model",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",
newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},
pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",
purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",
className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:{component:"yt-section-header-view-model",properties:{className:"[[is]]"},params:{disableHorizontalPadding:!0,disableVerticalPadding:!0}},
settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",
subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",
unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",
isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",
videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",videoOverviewViewModel:"yt-video-overview-view-model",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},
liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",
properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.r("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.r("kevlar_low_priority_continuation")}}};
_.d.created=function(){};
_.d.updateStickySetup=function(){_.r("web_fix_sticky_playlist_header_v2")&&this.pageSubtype==="playlist"?this.setupStickyChipBar():this.teardownStickyChipBar()};
_.d.dispatchChipBarIsSticky=function(){this.isStickyChipBarSetup&&this.ytdReduxBehavior.dispatch(FH7(!this.notSticky))};
_.d.setupStickyChipBar=function(){var b=this;if(!this.isStickyChipBarSetup&&_.r("web_fix_sticky_playlist_header_v2")){this.isStickyChipBarSetup=!0;document.addEventListener("scroll",_.Hl(this,this.updateHeaderState));var h;this.mastheadHeight=((h=document.querySelector("ytd-masthead"))==null?void 0:h.clientHeight)||0;this.updateHeaderCssVariables();window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(y){b.handleIntersect(y)},{rootMargin:"-"+(this.mastheadHeight+
1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){b.updateHeaderState();b.updateHeaderCssVariables()}),this.resizeObserver.observe(this.hostElement))}};
_.d.teardownStickyChipBar=function(){if(this.isStickyChipBarSetup){this.isStickyChipBarSetup=!1;document.removeEventListener("scroll",_.Hl(this,this.updateHeaderState));var b;(b=this.intersectionObserver)==null||b.disconnect();var h;(h=this.resizeObserver)==null||h.disconnect()}};
_.d.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.d.handleIntersect=function(b){this.notSticky=b[0].intersectionRatio===1};
_.d.updateHeaderCssVariables=function(){this.hostElement.style.setProperty("--ytd-item-section-header-width",this.hostElement.clientWidth+"px");this.hostElement.style.setProperty("--ytd-item-section-header-top",this.mastheadHeight+"px")};
_.d.detached=function(){this.teardownStickyChipBar()};
_.d.updated=function(b){b.has("data")&&this.isStickyChipBarSetup&&(this.updateHeaderState(),this.updateHeaderCssVariables())};
_.d.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var b=_.$x(this.hostElement).querySelector("ytd-comments-header-renderer");b&&(b.hidePanelButton=this.commentsHidePanelButton)}};
_.d.onRetrieveLocation=function(b,h){this.containsComments()&&(this.firstCommentsLoaded=h.hasComments=!0)};
_.d.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.d.onLoadReloadContinuation=function(b,h){var y=this;b.stopPropagation();this.isReloading=!0;_.Sx(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(S){var F=_.H9().resolve(_.zM);S=h(S);F.postData(S).then(function(a){y.onReloadContinuationData(a)})}})};
_.d.onReloadContinuationData=function(b){if(b=this.get("response.continuationContents.itemSectionContinuation",b)||this.get("response.contents.itemSectionRenderer",b)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",b)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",b))this.set("data.contents",b.contents||b.results),b.header&&this.set("data.header",b.header),this.set("data.continuations",
b.continuations||[]);this.isReloading=!1};
_.d.computeContentsClass=function(b){return b?"reloading":""};
_.d.computeSectionIdentifier=function(b){return b==null?void 0:b.sectionIdentifier};
_.d.computeFitContainer=function(b){return(b==null?void 0:b.sectionIdentifier)==="youchat-item-section"};
_.d.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.r("kevlar_disable_comments_auto_load")};
_.d.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.d.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.d.computeHasDestinationShelfRenderer=function(b){var h,y;return!!(b==null?0:(h=b.contents)==null?0:(y=h[0])==null?0:y.destinationShelfRenderer)};
_.d.computeHasSectionGroupViewModel=function(b){var h,y;return!!(b==null?0:(h=b.contents)==null?0:(y=h[0])==null?0:y.sectionGroupViewModel)};
_.d.computeHasQrCodeRenderer=function(b){var h,y;return!!(b==null?0:(h=b.contents)==null?0:(y=h[0])==null?0:y.qrCodeRenderer)};
_.d.computeStaticCommentsHeader=function(b){return b&&this.containsComments()};
_.d.computeEpRestyle=function(b){return _.r("web_ep_restyling")&&b&&this.containsComments()};
_.d.computeIsContinuationCommentSection=function(b){return(b==null?void 0:b.targetId)==="shorts-engagement-panel-comments-section"||(b==null?void 0:b.targetId)==="comments-section"||(b==null?void 0:b.targetId)==="engagement-panel-comments-section"};
_.d.computeSuppressPaddingDisclaimer=function(){var b,h,y,S;return!!((b=this.data)==null?0:(h=b.contents)==null?0:(y=h[0])==null?0:(S=y.productListHeaderRenderer)==null?0:S.suppressPaddingDisclaimer)};
_.d.computeHeaderStyle=function(b){switch(b==null?void 0:b.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.d.dataChanged=function(){this.firstCommentsLoaded=!1};
_.d.observeDataContentsLength=function(){var b,h;((b=this.data)==null?0:(h=b.contents)==null?0:h.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.d.onYtDismissibleItemDismissedChange=function(b){this._setItemDismissed(b.type==="yt-dismissible-item-dismissed")};
_.d.triggerContinuations=function(){for(var b=_.$x(this.hostElement).querySelector("#continuations").children,h=0;h<b.length;h++)b[h].trigger()};
_.d.triggerInitialContinuations=function(){for(var b=_.$x(this.hostElement).querySelector("#continuations").children,h=0;h<b.length;h++)b[h].triggerIfNotPreviouslyTriggered()};
_.d.handleYtItemSectionContinuation=function(b,h){var y;h&&((y=this.data)==null?void 0:y.sectionIdentifier)!==h||(this.set("data.continuations",[b]),this.triggerContinuations())};
_.d.handleYtItemSectionReplace=function(b,h){var y;h&&((y=this.data)==null?void 0:y.sectionIdentifier)!==h||(this.set("data.contents",b),this.set("data.continuations",[]))};
_.d.computeUseHeightHack=function(b){return b&&!_.r("kevlar_disable_height_hack")};
_.d.computeTopSpacingZero=function(b){return b};
_.d.continuationShowButtonChanged=function(){var b=_.$x(this.hostElement).querySelector("ytd-continuation-item-renderer");b&&(b.showButton=this.continuationShowButton)};
_.d.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ut("data-changed",this.data))};
_.tm.Object.defineProperties(CU.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.r("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
thumbnailTargetWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&this.containerWidth?this.containerWidth/2:void 0}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?"STANDARD":this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var b,h,y;return!!((b=this.data)==null?0:(h=b.contents)==null?0:(y=h[0])==null?0:y.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var b,h,y,S,F,a,P;return!!((b=this.data)==null?0:(h=b.contents)==null?0:(y=h[0])==null?0:(S=y.shelfRenderer)==null?0:(F=S.content)==null?0:(a=F.gridRenderer)==null?0:(P=a.targetId)==null?0:P.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var b,h,y;return!!((b=this.data)==null?0:(h=b.contents)==null?0:(y=h[0])==null?0:y.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var b,h,y;return!!((b=this.data)==null?0:(h=b.contents)==null?0:(y=h[0])==null?0:y.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.rH("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.r("use_modern_typography_on_search")};if(this.isWatch)return{useInlineContentMetadata:this.useBigThumbs&&_.r("web_watch_next_big_thumbs_compact_layout"),useRichGridLegacyMargin:this.useBigThumbs&&_.r("web_watch_next_big_thumbs_expanded_layout")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.r("use_modern_typography_on_search")}},
useChipBarViewModelHeader:{configurable:!0,enumerable:!0,get:function(){var b,h;return!!((b=this.data)==null?0:(h=b.header)==null?0:h.chipBarViewModel)}},
expFixPlaylistHeader:{configurable:!0,enumerable:!0,get:function(){return _.r("web_fix_sticky_playlist_header")}},
expFixPlaylistHeaderV2:{configurable:!0,enumerable:!0,get:function(){return _.r("web_fix_sticky_playlist_header_v2")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
CU.prototype.dataChangedForBinding=CU.prototype.dataChangedForBinding;CU.prototype.continuationShowButtonChanged=CU.prototype.continuationShowButtonChanged;CU.prototype.onYtDismissibleItemDismissedChange=CU.prototype.onYtDismissibleItemDismissedChange;CU.prototype.observeDataContentsLength=CU.prototype.observeDataContentsLength;CU.prototype.dataChanged=CU.prototype.dataChanged;CU.prototype.onServiceRequestCompleted=CU.prototype.onServiceRequestCompleted;CU.prototype.onLoadReloadContinuation=CU.prototype.onLoadReloadContinuation;
CU.prototype.onRetrieveLocation=CU.prototype.onRetrieveLocation;CU.prototype.commentsHidePanelButtonChanged=CU.prototype.commentsHidePanelButtonChanged;CU.prototype.dispatchChipBarIsSticky=CU.prototype.dispatchChipBarIsSticky;CU.prototype.updateStickySetup=CU.prototype.updateStickySetup;CU.prototype.updateLockupContainerTypes=CU.prototype.updateLockupContainerTypes;_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],CU.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],CU.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],CU.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.GO.YtLazyListBehavior),_.f("design:type",Object)],CU.prototype,"ytLazyListBehavior",void 0);_.V([_.B(_.JC.YtNextContinuationBehavior),_.f("design:type",Object)],CU.prototype,"ytNextContinuationBehavior",void 0);
_.V([_.B(_.p1),_.f("design:type",Object)],CU.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],CU.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],CU.prototype,"ytdReduxBehavior",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],CU.prototype,"darkerPanels",void 0);_.V([_.C(),_.f("design:type",Object)],CU.prototype,"data",void 0);
_.V([_.C(),_.f("design:type",Boolean)],CU.prototype,"engagementPanel",void 0);_.V([_.C(),_.f("design:type",Object)],CU.prototype,"commentsHidePanelButton",void 0);_.V([_.C(),_.f("design:type",Object)],CU.prototype,"isWatchGrid",void 0);_.V([_.C(),_.f("design:type",Object)],CU.prototype,"continuationShowButton",void 0);_.V([_.C({computed:"computeIsContinuationCommentSection(data)"}),_.f("design:type",Boolean)],CU.prototype,"continuationIsCommentsSection",void 0);
_.V([_.C({value:!0}),_.f("design:type",Boolean)],CU.prototype,"autoFill",void 0);_.V([_.C(),_.f("design:type",Boolean)],CU.prototype,"continuationDisablePrescanVisibility",void 0);_.V([_.C(),_.f("design:type",Boolean)],CU.prototype,"isReloading",void 0);_.V([_.C(),_.f("design:type",Object)],CU.prototype,"isSearch",void 0);_.V([_.C(),_.f("design:type",Object)],CU.prototype,"isConstrainedList",void 0);_.V([_.C(),_.f("design:type",Object)],CU.prototype,"isWatch",void 0);
_.V([_.C(),_.f("design:type",Object)],CU.prototype,"eligibleToSwitchToGrid",void 0);_.V([_.C(),_.f("design:type",Object)],CU.prototype,"useBigThumbs",void 0);_.V([_.C({selector:_.C9,reflectToAttribute:!0}),_.f("design:type",Object)],CU.prototype,"isGridViewEnabled",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.f("design:type",Object)],CU.prototype,"epRestyle",void 0);
_.V([_.W("isWatch"),_.C({reflectToAttribute:!0}),_.f("design:type",Boolean),_.f("design:paramtypes",[])],CU.prototype,"hideShortsShelfHeader",null);_.V([_.W("isSearch","isWatch"),_.f("design:type",String),_.f("design:paramtypes",[])],CU.prototype,"thumbnailWidth",null);_.V([_.W("isSearch","containerWidth"),_.f("design:type",Object),_.f("design:paramtypes",[])],CU.prototype,"thumbnailTargetWidth",null);
_.V([_.W("isSearch","isWatch","useBigThumbs"),_.f("design:type",String),_.f("design:paramtypes",[])],CU.prototype,"sizing",null);_.V([_.W("isWatch","isGridViewEnabled","useBigThumbs","data"),_.C({reflectToAttribute:!0}),_.f("design:type",Number),_.f("design:paramtypes",[])],CU.prototype,"lockupContainerType",null);_.V([_.OB("lockupContainerType","data"),_.f("design:type",Function),_.f("design:paramtypes",[Number]),_.f("design:returntype")],CU.prototype,"updateLockupContainerTypes",null);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",String)],CU.prototype,"pageSubtype",void 0);_.V([_.C(),_.f("design:type",Number)],CU.prototype,"containerWidth",void 0);_.V([_.C(),_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],CU.prototype,"isPlaylist",null);_.V([_.C(),_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],CU.prototype,"isClipList",null);_.V([_.C(),_.f("design:type",Object)],CU.prototype,"isCarouselInFeed",void 0);
_.V([_.C({reflectToAttribute:!0}),_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],CU.prototype,"isPlaylistVideoContainer",null);_.V([_.C({reflectToAttribute:!0}),_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],CU.prototype,"isSearchFrictionPage",null);_.V([_.C({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.f("design:type",Boolean)],CU.prototype,"useHeightHack",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.f("design:type",Object)],CU.prototype,"topSpacingZero",void 0);_.V([_.C({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.f("design:type",Boolean)],CU.prototype,"showButton",void 0);_.V([_.C(),_.f("design:type",Boolean)],CU.prototype,"firstCommentsLoaded",void 0);_.V([_.C(),_.f("design:type",Object)],CU.prototype,"continuationIsInitialLoad",void 0);
_.V([_.C({reflectToAttribute:!0,readOnly:!0}),_.f("design:type",Boolean)],CU.prototype,"itemDismissed",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.f("design:type",String)],CU.prototype,"sectionIdentifier",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.f("design:type",String)],CU.prototype,"fitContainer",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.f("design:type",Boolean)],CU.prototype,"hasDestinationShelfRenderer",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.f("design:type",Boolean)],CU.prototype,"staticCommentsHeader",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],CU.prototype,"enableSqueezebackPanels",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],CU.prototype,"enableAnchoredPanel",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.f("design:type",Boolean)],CU.prototype,"hasSectionGroupViewModel",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.f("design:type",Boolean)],CU.prototype,"hasQrCodeRenderer",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.f("design:type",Boolean)],CU.prototype,"suppressDisclaimerSeparator",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.f("design:type",String)],CU.prototype,"headerStyle",void 0);_.V([_.W("isSearch","isWatch","useBigThumbs"),_.f("design:type",Object),_.f("design:paramtypes",[])],CU.prototype,"lockupExperiments",null);
_.V([_.W("isSearch"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],CU.prototype,"typographyBump",null);_.V([_.to("#header"),_.f("design:type",HTMLElement)],CU.prototype,"header",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],CU.prototype,"notSticky",void 0);_.V([_.W("data"),_.C({reflectToAttribute:!0}),_.f("design:type",Object),_.f("design:paramtypes",[])],CU.prototype,"useChipBarViewModelHeader",null);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean),_.f("design:paramtypes",[])],CU.prototype,"expFixPlaylistHeader",null);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean),_.f("design:paramtypes",[])],CU.prototype,"expFixPlaylistHeaderV2",null);_.V([_.OB("pageSubtype"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],CU.prototype,"updateStickySetup",null);
_.V([_.OB("notSticky"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],CU.prototype,"dispatchChipBarIsSticky",null);_.V([_.OB("commentsHidePanelButton"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],CU.prototype,"commentsHidePanelButtonChanged",null);_.V([_.u3("yt-retrieve-location"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,Object]),_.f("design:returntype")],CU.prototype,"onRetrieveLocation",null);
_.V([_.u3("yt-load-reload-continuation"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,Function]),_.f("design:returntype")],CU.prototype,"onLoadReloadContinuation",null);_.V([_.u3("yt-service-request-completed"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],CU.prototype,"onServiceRequestCompleted",null);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],CU.prototype,"dataChanged",null);
_.V([_.zj("data.contents.length"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],CU.prototype,"observeDataContentsLength",null);_.V([_.u3("yt-dismissible-item-dismissed"),_.u3("yt-dismissible-item-undismissed"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],CU.prototype,"onYtDismissibleItemDismissedChange",null);
_.V([_.OB("continuationShowButton"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],CU.prototype,"continuationShowButtonChanged",null);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],CU.prototype,"dataChangedForBinding",null);_.V([_.Yx({is:"ytd-item-section-renderer",disableElementRegistration:!0})],CU);
_.k(CU,"ytd-item-section-renderer",function(){if(kxa!==void 0)return kxa;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return kxa=b},{mode:1});var CfE;var uA4=_.mk(_.Mt("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var gUA={},HSq=(gUA[0]={title:_.aU(_.Mt("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.aU(_.Mt("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.S7("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},gUA[1]={title:_.aU(_.Mt("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.S7("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},gUA);_.W2("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var gt=function(){var b=_.g.apply(this,arguments)||this;b.allVideosCount=0;b.allPlaylistCount=0;b.isOnline=!1;b.shouldRenderDownloadsBanner=!1;b.shouldRenderDownloadsBannerUpsell=!1;b.hasOptedIntoSmartDownloads=!1;b.areAllSmartDownloadsDeleted=!1;b.smartDownloadsCompleted=!1;return b};
_.z(gt,_.g);gt.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
gt.prototype.attached=function(){this.downloadsToRenderChanged()};
gt.prototype.detached=function(){this.set("renderableData",{})};
gt.prototype.downloadsToRenderChanged=function(){var b=_.hP().getState().entities,h=_.At(b),y=_.r("kevlar_playlist_dl_page_killswitch")?eGf(b):_.Un(b),S=_.I4M(b),F=_.UbM(b),a=_.RU(h);b=_.pi(b);this.set("renderableData",NVr(y,h,S,F,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,a,b))};
gt.prototype.downloadsToRenderChanged=gt.prototype.downloadsToRenderChanged;_.V([_.B(_.NT),_.f("design:type",Object)],gt.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],gt.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],gt.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],gt.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],gt.prototype,"renderableData",void 0);_.V([_.C({selector:_.l4N}),_.f("design:type",Object)],gt.prototype,"allVideosCount",void 0);_.V([_.C({selector:yAr}),_.f("design:type",Object)],gt.prototype,"allPlaylistCount",void 0);_.V([_.C({selector:_.sn}),_.f("design:type",Object)],gt.prototype,"isOnline",void 0);_.V([_.C({selector:_.h4N}),_.f("design:type",Object)],gt.prototype,"shouldRenderDownloadsBanner",void 0);
_.V([_.C({selector:_.awM}),_.f("design:type",Object)],gt.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.V([_.C({selector:_.yKq}),_.f("design:type",Object)],gt.prototype,"hasOptedIntoSmartDownloads",void 0);_.V([_.C({selector:_.St8}),_.f("design:type",Object)],gt.prototype,"areAllSmartDownloadsDeleted",void 0);_.V([_.C({selector:F08}),_.f("design:type",Object)],gt.prototype,"smartDownloadsCompleted",void 0);
_.V([_.zj("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],gt.prototype,"downloadsToRenderChanged",null);_.V([_.Yx({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],gt);
_.k(gt,"ytd-offline-item-section-renderer",function(){if(CfE!==void 0)return CfE;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return CfE=b},
{mode:1});var sq2;var YjN;var sI=function(){return _.g.apply(this,arguments)||this};
_.z(sI,_.g);
sI.prototype.onDataChanged=function(){if(this.JSC$17044_lastData){var b=this.getFilterClass(this.JSC$17044_lastData.status);b&&this.hostElement.classList.remove(b)}var h;(b=this.getFilterClass((h=this.data)==null?void 0:h.status))&&this.hostElement.classList.add(b);b==="selected"?_.$x(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.$x(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");b==="disabled"?_.$x(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.$x(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$17044_lastData=this.data};
sI.prototype.getFilterClass=function(b){switch(b){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
sI.prototype.onDataChanged=sI.prototype.onDataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],sI.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],sI.prototype,"data",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],sI.prototype,"onDataChanged",null);_.V([_.Yx({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],sI);
_.k(sI,"ytd-search-filter-renderer",function(){if(YjN!==void 0)return YjN;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return YjN=b},{mode:_.Lt("kevlar_poly_si_batch_j075")?1:2});var YV=function(){return _.g.apply(this,arguments)||this};
_.z(YV,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],YV.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],YV.prototype,"data",void 0);_.V([_.Yx({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],YV);
_.k(YV,"ytd-search-filter-group-renderer",function(){if(sq2!==void 0)return sq2;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return sq2=b},{mode:_.Lt("kevlar_poly_si_batch_j075")?1:2});var TIx;var TT=function(){return _.g.apply(this,arguments)||this};
_.z(TT,_.g);TT.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.Ye());this.isCollapsed=!this.isCollapsed};
TT.prototype.navigateToAboutTheseResultsPage=function(){var b=_.fc("https://www.youtube.com/howyoutubeworks/product-features/search/");b?_.d3(window,b,"_blank"):_.v4(Error("Vh"))};
TT.prototype.dataChanged=function(){this.isCollapsed=!0};
TT.prototype.computeShowBottomBorder=function(){var b,h,y;return!!((b=this.data)==null?0:(h=b.button)==null?0:h.toggleButtonRenderer)||!((y=this.data)==null||!y.aboutTheseResultsButton)};
TT.prototype.dataChanged=TT.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],TT.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],TT.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.f("design:type",Boolean)],TT.prototype,"showBottomBorder",void 0);_.V([_.C(),_.f("design:type",Boolean)],TT.prototype,"renderCollapsibleMenu",void 0);
_.V([_.C(),_.f("design:type",Boolean)],TT.prototype,"isCollapsed",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],TT.prototype,"dataChanged",null);_.V([_.Yx({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],TT);
_.k(TT,"ytd-search-sub-menu-renderer",function(){if(TIx!==void 0)return TIx;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return TIx=b},{mode:1});var GkA;var kkf=new _.ca("SECTION_LIST_RENDERER_TOKEN");var V5x;var GT=function(){return _.g.apply(this,arguments)||this};
_.z(GT,_.g);GT.prototype.computeStyle=function(b){return b?b.toLowerCase().replace(/_/g,"-"):""};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],GT.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],GT.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.f("design:type",String)],GT.prototype,"headerStyle",void 0);_.V([_.Yx({is:"ytd-text-header-renderer",disableElementRegistration:!0})],GT);
_.k(GT,"ytd-text-header-renderer",function(){if(V5x!==void 0)return V5x;var b=document.createElement("template");_.D(b,"\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");b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return V5x=b},{mode:1});var EUY;var kV=function(){return _.g.apply(this,arguments)||this};
_.z(kV,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],kV.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],kV.prototype,"data",void 0);_.V([_.Yx({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],kV);
_.k(kV,"ytd-minor-moment-header-renderer",function(){if(EUY!==void 0)return EUY;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return EUY=b},{mode:1});var i42;var Vt=function(){return _.g.apply(this,arguments)||this};
_.z(Vt,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Vt.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Vt.prototype,"data",void 0);_.V([_.Yx({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],Vt);
_.k(Vt,"ytd-minor-moment-setting-alert-renderer",function(){if(i42!==void 0)return i42;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return i42=b},{mode:1});var frP;var wFN;var EI=function(){var b=_.g.apply(this,arguments)||this;b.booleanSettingById=!1;b.smartDownloadsEnabledVE=_.Kh(128287);b.smartDownloadsDisabledVE=_.Kh(128286);b.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return b};
_.z(EI,_.g);_.d=EI.prototype;_.d.attachSmartDownloadsSettingVes=function(){var b;this.activeVeForLogging||((b=this.data)==null?void 0:b.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.lC(_.rU(),this.smartDownloadsEnabledVE),_.lC(_.rU(),this.smartDownloadsDisabledVE))};
_.d.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.Sx(this.hostElement,"yt-settings-switch-ready")};
_.d.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.d.onSwitchChange=function(b){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(b=_.mi(b).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.r("kevlar_settings_switch_resolve_command_killswitch")?_.H9().resolve(_.OM).resolveCommand(b,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(b)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.d.handleUpdateSettingsSwitch=function(b){(b=_.c(b,Ksa))&&this.data&&this.data.id===b.id&&this.set("data.enabled",!!b.enabled)};
_.d.onToggleSettingsSwitch=function(b,h){this.data&&this.data.id===b&&this.set("data.enabled",h!=null?h:!this.data.enabled)};
_.d.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.g2.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.d.maybeLogSmartDownloadsSettingVisibility=function(){var b=_.UE(),h;b&&((h=this.data)==null?void 0:h.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.fI(b,[this.smartDownloadsEnabledVE]),_.wh(b,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.fI(b,[this.smartDownloadsDisabledVE]),_.wh(b,[this.smartDownloadsEnabledVE])))};
_.d.maybeLogSmartDownloadsSettingClick=function(){var b;((b=this.data)==null?void 0:b.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.xa(_.rU(),this.activeVeForLogging)};
_.d.updateDataEnabledFromBinding=function(b){this.set("data.enabled",b.detail.value)};
_.tm.Object.defineProperties(EI.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var b=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!b&&(b=this.ytRendererBehavior.getSimpleString(this.data.title));return b}}});
EI.prototype.dataChanged=EI.prototype.dataChanged;_.V([_.B(_.NT),_.f("design:type",Object)],EI.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],EI.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],EI.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],EI.prototype,"ytComponentBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],EI.prototype,"data",void 0);_.V([_.C({selector:function(b,h){if(Object.keys(b==null?void 0:b.entities).length)switch(h){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return Cg4(b.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.f("design:type",Object)],EI.prototype,"booleanSettingById",void 0);_.V([_.C(),_.f("design:type",_.W5)],EI.prototype,"activeVeForLogging",void 0);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],EI.prototype,"toggleAriaLabel",null);_.V([_.zj("data"),_.zj("booleanSettingById"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],EI.prototype,"dataChanged",null);
_.V([_.Yx({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],EI);
_.k(EI,"ytd-settings-switch-renderer",function(){if(wFN!==void 0)return wFN;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return wFN=b},{mode:1});var i2=function(){return _.g.apply(this,arguments)||this};
_.z(i2,_.g);i2.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}}}}};
_.tm.Object.defineProperties(i2.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var b=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(b+=" remove-left-margin");this.data.extraBottomSpace&&(b+=" extra-bottom-space");return b}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],i2.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],i2.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],i2.prototype,"data",void 0);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],i2.prototype,"contentsClassName",null);_.V([_.Yx({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],i2);
_.k(i2,"ytd-minor-moment-setting-section-renderer",function(){if(frP!==void 0)return frP;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return frP=b},{mode:1});var lrF;var fU=function(){return _.g.apply(this,arguments)||this};
_.z(fU,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],fU.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],fU.prototype,"componentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],fU.prototype,"data",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],fU);
_.k(fU,"ytd-empty-product-details-renderer",function(){if(lrF!==void 0)return lrF;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return lrF=b},{mode:1});var qjx;var xyP;var wt=function(){var b=_.g.apply(this,arguments)||this;b.expanded=!0;return b};
_.z(wt,_.g);wt.prototype.getBadgeRowClass=function(b,h,y){for(var S=_.L(this.hostElement.querySelectorAll("yt-img-shadow")),F=S.next();!F.done;F=S.next())F.value.onShow();b=b.selected;return y?b!==-1?b===h?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(b!==void 0?b:0)===h?"badge-line":"badge-hidden"};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],wt.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],wt.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],wt.prototype,"expanded",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],wt);
_.k(wt,"ytd-sponsorships-loyalty-badges-renderer",function(){if(xyP!==void 0)return xyP;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return xyP=b},{mode:1});var Qqd;var l2=function(){var b=_.g.apply(this,arguments)||this;b.expanded=!0;return b};
_.z(l2,_.g);l2.prototype.getContainerClasses=function(b,h){b=b?"expanded":"collapsed";h&&(b+=" item");return b};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],l2.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],l2.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],l2.prototype,"expanded",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],l2);
_.k(l2,"ytd-sponsorships-perk-renderer",function(){if(Qqd!==void 0)return Qqd;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return Qqd=b},{mode:1});var myd;var q3=function(){var b=_.g.apply(this,arguments)||this;b.expanded=!0;return b};
_.z(q3,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],q3.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],q3.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],q3.prototype,"expanded",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],q3);
_.k(q3,"ytd-sponsorships-perks-renderer",function(){if(myd!==void 0)return myd;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return myd=b},{mode:1});var xV=function(){var b=_.g.apply(this,arguments)||this;b.isCollapsed=!1;return b};
_.z(xV,_.g);xV.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
xV.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
xV.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var b;this.expandCollapseButton=_.c((b=this.data)==null?void 0:b.expandButton,_.OU)}else{var h;this.expandCollapseButton=_.c((h=this.data)==null?void 0:h.collapseButton,_.OU)}};
xV.prototype.updateExpandCollapseButton=xV.prototype.updateExpandCollapseButton;xV.prototype.onDataChanged=xV.prototype.onDataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],xV.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],xV.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],xV.prototype,"isCollapsed",void 0);_.V([_.C(),_.f("design:type",Object)],xV.prototype,"expandCollapseButton",void 0);
_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],xV.prototype,"onDataChanged",null);_.V([_.zj("data","isCollapsed"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],xV.prototype,"updateExpandCollapseButton",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],xV);
_.k(xV,"ytd-sponsorships-expandable-perks-renderer",function(){if(qjx!==void 0)return qjx;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return qjx=b},{mode:1});var vUE;var Qt=function(){return _.g.apply(this,arguments)||this};
_.z(Qt,_.g);Qt.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],Qt.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Qt.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Qt.prototype,"data",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],Qt);
_.k(Qt,"ytd-sponsorships-actionable-message-renderer",function(){if(vUE!==void 0)return vUE;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return vUE=b},{mode:1});var bMA;var mu=function(){return _.g.apply(this,arguments)||this};
_.z(mu,_.g);_.d=mu.prototype;_.d.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.d.getExpansionIcon=function(b){return b?"COLLAPSE":"EXPAND"};
_.d.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.d.computeMessageContainerStyle=function(b){var h=b.expandableItems?" style-clickable":"";return b.messageContainerStyle?b.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+h:"style-unspecified"+h};
_.d.isSinglePerk=function(b){return!!b.messageContainerStyle&&(b.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||b.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.d.onExpandedChanged=function(){var b=this;if(this.expanded)for(var h=_.L(this.hostElement.querySelectorAll("yt-img-shadow")),y=h.next();!y.done;y=h.next())y.value.onShow();_.Ob(this,function(){_.Sx(b.hostElement,"yt-refit")})};
_.d.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
mu.prototype.onDataChanged=mu.prototype.onDataChanged;mu.prototype.onExpandedChanged=mu.prototype.onExpandedChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],mu.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],mu.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],mu.prototype,"data",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],mu.prototype,"expanded",void 0);
_.V([_.OB("expanded"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],mu.prototype,"onExpandedChanged",null);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],mu.prototype,"onDataChanged",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],mu);
_.k(mu,"ytd-sponsorships-expandable-message-renderer",function(){if(bMA!==void 0)return bMA;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return bMA=b},{mode:_.Lt("kevlar_poly_si_batch_j028")?1:2});var hwf;var v$=function(){return _.g.apply(this,arguments)||this};
_.z(v$,_.g);v$.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"}}}}};
v$.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.c(this.data.endButton,_.OU).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
v$.prototype.onDataChanged=v$.prototype.onDataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],v$.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],v$.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],v$.prototype,"data",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],v$.prototype,"onDataChanged",null);
_.V([_.Yx({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],v$);
_.k(v$,"ytd-sponsorships-heading-renderer",function(){if(hwf!==void 0)return hwf;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return hwf=b},{mode:1});var y8f;var b6=function(){return _.g.apply(this,arguments)||this};
_.z(b6,_.g);_.V([_.C(),_.f("design:type",Object)],b6.prototype,"data",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],b6.prototype,"ytRendererBehavior",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],b6);
_.k(b6,"ytd-sponsorships-links-renderer",function(){if(y8f!==void 0)return y8f;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return y8f=b},{mode:1});var S7f;var hu=function(){return _.g.apply(this,arguments)||this};
_.z(hu,_.g);_.d=hu.prototype;_.d.onDataChanged=function(){if(this.data&&this.data.expandableItems){var b;(b=_.$x(this.hostElement).querySelector("tp-yt-paper-button"))==null||b.setAttribute("role","button")}else{var h;(h=_.$x(this.hostElement).querySelector("tp-yt-paper-button"))==null||h.removeAttribute("role")}};
_.d.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.d.getExpansionIcon=function(b){return b?"COLLAPSE":"EXPAND"};
_.d.getTileClasses=function(b){return b?"tile expandable-tile":"tile"};
_.d.getButtonDisabled=function(b){return b?void 0:""};
hu.prototype.onDataChanged=hu.prototype.onDataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],hu.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],hu.prototype,"data",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],hu.prototype,"expanded",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],hu.prototype,"onDataChanged",null);
_.V([_.Yx({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],hu);
_.k(hu,"ytd-sponsorships-list-tile-renderer",function(){if(S7f!==void 0)return S7f;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return S7f=b},{mode:1});var F5X;var a8F;var ym=function(){return _.g.apply(this,arguments)||this};
_.z(ym,_.g);ym.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],ym.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],ym.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],ym.prototype,"data",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],ym);
_.k(ym,"ytd-sponsorships-promotion-renderer",function(){if(a8F!==void 0)return a8F;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return a8F=b},{mode:1});var dPa;var SN=function(){return _.g.apply(this,arguments)||this};
_.z(SN,_.g);SN.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],SN.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],SN.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],SN.prototype,"data",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],SN);
_.k(SN,"ytd-sponsorships-purchase-option-renderer",function(){if(dPa!==void 0)return dPa;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return dPa=b},{mode:1});var jNf;var $PA;var L5Y=function(){return _.g.apply(this,arguments)||this};
_.z(L5Y,_.g);_.V([_.C(),_.f("design:type",Object)],L5Y.prototype,"data",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],L5Y);
_.k(L5Y,"ytd-ypc-offer-promo-renderer",function(){if($PA!==void 0)return $PA;var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return $PA=b},{mode:1});var F7=function(){return _.g.apply(this,arguments)||this};
_.z(F7,_.g);_.d=F7.prototype;
_.d.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"}}}}};
_.d.expansionCTA=function(b,h){return b&&(h?b.collapseCallToAction:b.expansionCallToAction)};
_.d.getExpansionIcon=function(b){return b?"COLLAPSE":"EXPAND"};
_.d.expansionCallToActionTap=function(){var b=this;this.expanded=!this.expanded;_.Ob(this,function(){_.Sx(b.hostElement,"yt-refit")})};
_.d.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var b,h=(b=this.data)==null?void 0:b.onVisible;h&&this.ytComponentBehavior.resolveCommand(h)};
_.d.computeDisplayTitle=function(b){return!(!b||this.titledisplaystatus!=="show")};
_.d.computeDisplaySeparator=function(){return!1};
_.d.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
F7.prototype.onDataChanged=F7.prototype.onDataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],F7.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],F7.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],F7.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],F7.prototype,"data",void 0);
_.V([_.C({value:!1}),_.f("design:type",Boolean)],F7.prototype,"expanded",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],F7.prototype,"purchaseButtonClicked",void 0);_.V([_.C({reflectToAttribute:!0,value:"show"}),_.f("design:type",String)],F7.prototype,"titledisplaystatus",void 0);_.V([_.C({computed:"computeDisplayTitle(data.title)"}),_.f("design:type",Boolean)],F7.prototype,"displayTitle",void 0);
_.V([_.C({computed:"computeDisplaySeparator(data)"}),_.f("design:type",Boolean)],F7.prototype,"displaySeparator",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],F7.prototype,"onDataChanged",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],F7);
_.k(F7,"ytd-sponsorships-tier-renderer",function(){if(jNf!==void 0)return jNf;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return jNf=b},{mode:2});var am=function(){return _.g.apply(this,arguments)||this};
_.z(am,_.g);
am.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"}}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],am.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],am.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],am.prototype,"data",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],am);
_.k(am,"ytd-sponsorships-management-renderer",function(){if(F5X!==void 0)return F5X;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return F5X=b},{mode:1});var Pox;var d0=function(){return _.g.apply(this,arguments)||this};
_.z(d0,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],d0.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],d0.prototype,"data",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],d0);
_.k(d0,"ytd-open-in-native-app-view-model",function(){if(Pox!==void 0)return Pox;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return Pox=b},{mode:_.Lt("kevlar_poly_si_batch_j028")?1:2});var K52;var ZMf;var oWF=_.bm(["top-"]),Me2=_.bm(["bottom-"]),nWF=_.bm(["left-"]),Xbx=_.bm(["right-"]),HMA={},ua2=function(b,h,y){b.removeAttribute("top-"+y);b.removeAttribute("bottom-"+y);b.removeAttribute("left-"+y);b.removeAttribute("right-"+y);h&&(h.top&&_.n$([_.r1(oWF)],b,"top-"+y,h.top),h.bottom&&_.n$([_.r1(Me2)],b,"bottom-"+y,h.bottom),h.left&&_.n$([_.r1(nWF)],b,"left-"+y,h.left),h.right&&_.n$([_.r1(Xbx)],b,"right-"+y,h.right))};
HMA.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(b){var h,y=_.$x((h=this.hostElement)!=null?h:this),S;h=this.cardItemBoxBehaviorMarginTargetId&&y?y.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(S=this.hostElement)!=null?S:this;ua2(h,b,"margin")},
cardItemContainerPaddingChanged_:function(b){var h,y=_.$x((h=this.hostElement)!=null?h:this),S;h=this.cardItemBoxBehaviorPaddingTargetId&&y?y.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(S=this.hostElement)!=null?S:this;ua2(h,b,"padding")}}];var jN={CARD_ITEM_COLOR_GENERAL_BACKGROUND_A:"var(--yt-spec-general-background-a)",CARD_ITEM_COLOR_GENERAL_BACKGROUND_B:"var(--yt-spec-general-background-b)",CARD_ITEM_COLOR_BRAND_BACKGROUND_SOLID:"var(--yt-spec-brand-background-solid)",CARD_ITEM_COLOR_ERROR_BACKGROUND:"var(--yt-spec-error-background)",CARD_ITEM_COLOR_TEXT_PRIMARY:"var(--yt-spec-text-primary)",CARD_ITEM_COLOR_TEXT_SECONDARY:"var(--yt-spec-text-secondary)",CARD_ITEM_COLOR_TEXT_DISABLED:"var(--yt-spec-text-disabled)",CARD_ITEM_COLOR_CALL_TO_ACTION:"var(--yt-spec-call-to-action)",
CARD_ITEM_COLOR_ICON_INACTIVE:"var(--yt-spec-icon-inactive)",CARD_ITEM_COLOR_ICON_DISABLED:"var(--yt-spec-icon-disabled)",CARD_ITEM_COLOR_BRAND_ICON_ACTIVE:"var(--yt-spec-text-primary)",CARD_ITEM_COLOR_BRAND_ICON_INACTIVE:"var(--yt-spec-text-primary)",CARD_ITEM_COLOR_10_PERCENT_LAYER:"var(--yt-spec-10-percent-layer)",CARD_ITEM_COLOR_TEXT_PRIMARY_INVERSE:"var(--yt-spec-text-primary-inverse)",CARD_ITEM_COLOR_ICON_ACTIVE_OTHER:"var(--yt-spec-icon-active-other)",CARD_ITEM_COLOR_THEMED_GREEN:"var(--yt-spec-themed-green)",
CARD_ITEM_COLOR_ERROR_INDICATOR:"var(--yt-spec-error-indicator)"};var OMf;var NGf;var $C=function(){return _.g.apply(this,arguments)||this};
_.z($C,_.g);$C.prototype.textColorChanged_=function(){this.hostElement.style.color=jN[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
$C.prototype.textColorChanged_=$C.prototype.textColorChanged_;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],$C.prototype,"ytRendererBehavior",void 0);_.V([_.B(HMA.YtCardItemBoxBehavior),_.f("design:type",Object)],$C.prototype,"ytCardItemBoxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],$C.prototype,"data",void 0);_.V([_.OB("data.textColor"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],$C.prototype,"textColorChanged_",null);
_.V([_.sB({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],$C);
_.k($C,"yt-card-item-text-renderer",function(){if(NGf===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;OMf===void 0&&(OMf=document.createElement("template"));var S=OMf;y.call(h,S.content.cloneNode(!0),b.content.firstChild);NGf=b}b=NGf;return b},{mode:2});var teN;var r8A;var LC=function(){return _.g.apply(this,arguments)||this};
_.z(LC,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],LC.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],LC.prototype,"data",void 0);_.V([_.sB({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],LC);
_.k(LC,"yt-card-item-badge-renderer",function(){if(r8A===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;teN===void 0&&(teN=document.createElement("template"));var S=teN;y.call(h,S.content.cloneNode(!0),b.content.firstChild);r8A=b}b=r8A;return b},{mode:2});var c8Y;var RwA;var PW=function(){return _.g.apply(this,arguments)||this};
_.z(PW,_.g);PW.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],PW.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],PW.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],PW.prototype,"data",void 0);_.V([_.sB({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],PW);
_.k(PW,"yt-card-item-text-collection-renderer",function(){if(RwA===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;c8Y===void 0&&(c8Y=document.createElement("template"));var S=c8Y;y.call(h,S.content.cloneNode(!0),b.content.firstChild);RwA=b}b=RwA;return b},{mode:2});var zwd;var DPE;var KC=function(){return _.g.apply(this,arguments)||this};
_.z(KC,_.g);KC.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]]"}}}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],KC.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],KC.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],KC.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Number)],KC.prototype,"iconSize",void 0);_.V([_.sB({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],KC);
_.k(KC,"yt-card-item-text-with-button-renderer",function(){if(DPE===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;zwd===void 0&&(zwd=document.createElement("template"));var S=zwd;y.call(h,S.content.cloneNode(!0),b.content.firstChild);DPE=b}b=DPE;return b},{mode:2});var ZD=function(){return _.g.apply(this,arguments)||this};
_.z(ZD,_.g);ZD.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"}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],ZD.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],ZD.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],ZD.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],ZD.prototype,"data",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],ZD);
_.k(ZD,"ytd-commerce-cart-summary-line-item-renderer",function(){if(ZMf!==void 0)return ZMf;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return ZMf=b},{mode:1});_.W2("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var om=function(){var b=_.g.apply(this,arguments)||this;b.hidden=!1;return b};
_.z(om,_.g);_.d=om.prototype;_.d.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"}}}}};
_.d.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.d.updateSummary=function(){var b=this.commerceCartCheckoutButtonEntity,h;if(((h=this.data)==null?0:h.cartButton)&&b.checkoutSummaryText){var y,S=pw((y=this.data)==null?void 0:y.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+S+".cardItemTextRenderer.text",JF(b.checkoutSummaryText));if(b.checkoutDetailText){var F;y=pw((F=this.data)==null?void 0:F.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+y+".cardItemTextRenderer.text",JF(b.checkoutDetailText))}if(b.checkoutAdditionalMetadataText){var a;
F=pw((a=this.data)==null?void 0:a.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+F+".cardItemTextRenderer.text",JF(b.checkoutAdditionalMetadataText))}}else b.estimatedTotalPrice&&(a=pw((S=this.data)==null?void 0:S.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+a+".cardItemTextRenderer.text",JF(b.estimatedTotalPrice)))};
_.d.updateIsHidden=function(){var b,h=(b=this.commerceCartCheckoutButtonEntity)==null?void 0:b.isHidden;h!==void 0&&(this.hidden=h)};
_.d.updateCheckoutButton=function(){var b,h=(b=this.commerceCartCheckoutButtonEntity)==null?void 0:b.isDisabled;h!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",h);var y;b=(y=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:y.innertubeCommand;b!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",b);var S;y=(S=this.commerceCartCheckoutButtonEntity)==null?void 0:S.checkoutButtonText;y!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:y})};
om.prototype.entityChanged=om.prototype.entityChanged;_.V([_.B(_.NT),_.f("design:type",Object)],om.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],om.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],om.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],om.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],om.prototype,"fullWidth",void 0);_.V([_.C(),_.f("design:type",Object)],om.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],om.prototype,"compact",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],om.prototype,"hidden",void 0);
_.V([_.C({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:q15}),_.f("design:type",Object)],om.prototype,"commerceCartCheckoutButtonEntity",void 0);_.V([_.OB("commerceCartCheckoutButtonEntity","data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],om.prototype,"entityChanged",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],om);
_.k(om,"ytd-commerce-cart-checkout-button-renderer",function(){if(K52!==void 0)return K52;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return K52=b},{mode:2});var I8f;_.BGd={};
_.BGd.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",_.Hl(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.Hl(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(b){!this.tappableItemBehaviorTapEnabled||b.keyCode!==13&&b.keyCode!==32||b.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var b=this.data.onTap;b.ypcGetCartEndpoint?(_.dh(this.hostElement,[b]),this.tappableItemBehaviorTapEnabled=!1):b.ypcOffersEndpoint?_.dh(this.hostElement,[b]):_.jx(this.hostElement,[b],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(b){this.tappableItemBehaviorTapEnabled=!!b},
tappableItemBehaviorOnTapEnabledChanged_:function(){var b=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(b.setAttribute("tabIndex",0),b.setAttribute("role","button")):(b.removeAttribute("tabIndex"),b.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(b){b.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var W5E;var A82;var MZ=function(){return _.g.apply(this,arguments)||this};
_.z(MZ,_.g);MZ.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.A4("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.A4("sharingToggleButtonAndDefaultButton")}}};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],MZ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],MZ.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],MZ.prototype,"data",void 0);_.V([_.sB({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],MZ);
_.k(MZ,"yt-card-item-actions-renderer",function(){if(A82===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;W5E===void 0&&(W5E=document.createElement("template"));var S=W5E;y.call(h,S.content.cloneNode(!0),b.content.firstChild);A82=b}b=A82;return b},{mode:2});var UPN;var pbd;var J8f;var ewA;var CoX;var gWA;var nC=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return b};
_.z(nC,_.g);nC.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
nC.prototype.handleDarkModeToggledAction_=function(b){this.isDarkTheme_=b};
nC.prototype.computeThemeImage_=function(b,h){if(!b||!b.imageLight)return!1;this.isCircular_=b.isCircular;b.imageWidth&&(this.hostElement.style.width=b.imageWidth+"px");b.imageHeight&&(this.hostElement.style.height=b.imageHeight+"px");b.borderWidth&&(this.image.style.borderWidth=b.borderWidth+"px",this.image.style.borderStyle="solid");b.borderColor&&(this.image.style.borderColor=_.CR(b.borderColor));return h&&b.imageDark?b.imageDark:b.imageLight};
nC.prototype.computeThemeIcon_=function(b){var h,y;if(!(b==null?0:(h=b.themedIcon)==null?0:(y=h.icon)==null?0:y.iconType))return!1;this.icon.style.color=jN[b.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(b.imageWidth||18)+"px";this.icon.style.height=(b.imageHeight||18)+"px";return _.o_(b.themedIcon.icon.iconType)};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],nC.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],nC.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(HMA.YtCardItemBoxBehavior),_.f("design:type",Object)],nC.prototype,"ytCardItemBoxBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],nC.prototype,"ytActionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],nC.prototype,"data",void 0);
_.V([_.C({value:!1}),_.f("design:type",Boolean)],nC.prototype,"fit",void 0);_.V([_.C(),_.f("design:type",Boolean)],nC.prototype,"isDarkTheme_",void 0);_.V([_.C({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.f("design:type",Object)],nC.prototype,"themeImage_",void 0);_.V([_.C({computed:"computeThemeIcon_(data)"}),_.f("design:type",Object)],nC.prototype,"themeIcon_",void 0);_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Object)],nC.prototype,"isCircular_",void 0);
_.V([_.to("#image"),_.f("design:type",Object)],nC.prototype,"image",void 0);_.V([_.to("#icon"),_.f("design:type",Object)],nC.prototype,"icon",void 0);_.V([_.sB({is:"yt-themed-image-renderer",disableElementRegistration:!0})],nC);
_.k(nC,"yt-themed-image-renderer",function(){if(gWA===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;CoX===void 0&&(CoX=document.createElement("template"));var S=CoX;y.call(h,S.content.cloneNode(!0),b.content.firstChild);gWA=b}b=gWA;return b},{mode:2});var X7=function(){return _.g.apply(this,arguments)||this};
_.z(X7,_.g);X7.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"}}}}};
X7.prototype.computeImagePlacement_=function(b){return b||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],X7.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],X7.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],X7.prototype,"data",void 0);_.V([_.C({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.f("design:type",String)],X7.prototype,"imagePlacement",void 0);
_.V([_.sB({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],X7);
_.k(X7,"yt-card-item-text-with-image-renderer",function(){if(ewA===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;J8f===void 0&&(J8f=document.createElement("template"));var S=J8f;y.call(h,S.content.cloneNode(!0),b.content.firstChild);ewA=b}b=ewA;return b},{mode:2});var HW=function(){return _.g.apply(this,arguments)||this};
_.z(HW,_.g);HW.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"}}}}};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],HW.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],HW.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],HW.prototype,"data",void 0);_.V([_.sB({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],HW);
_.k(HW,"yt-card-item-error-renderer",function(){if(pbd===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;UPN===void 0&&(UPN=document.createElement("template"));var S=UPN;y.call(h,S.content.cloneNode(!0),b.content.firstChild);pbd=b}b=pbd;return b},{mode:2});var sNN;var Y7A;_.W2("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var u6=function(){return _.g.apply(this,arguments)||this};
_.z(u6,_.g);_.d=u6.prototype;
_.d.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"}}}}};
_.d.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.d.backgroundColorChanged_=function(){var b,h=(b=this.data)==null?void 0:b.backgroundColor;b=jN[h||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.$x(this.hostElement).querySelector("#main-content").style.backgroundColor=b};
_.d.headerPromoBackgroundColorChanged_=function(){var b,h=(b=this.data)==null?void 0:b.headerPromoBackgroundColor;b=jN[h||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.$x(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=b};
_.d.errorRendererVisibilityChanged_=function(){var b=this.isExpanded_,h;this.isErrorRendererVisible_=!((h=this.data)==null||!h.errorRenderer)&&!b};
_.d.onYtToggleButton_=function(b,h){this.isExpanded_=h.toggled};
u6.prototype.onYtToggleButton_=u6.prototype.onYtToggleButton_;u6.prototype.errorRendererVisibilityChanged_=u6.prototype.errorRendererVisibilityChanged_;u6.prototype.headerPromoBackgroundColorChanged_=u6.prototype.headerPromoBackgroundColorChanged_;u6.prototype.backgroundColorChanged_=u6.prototype.backgroundColorChanged_;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],u6.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],u6.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(HMA.YtCardItemBoxBehavior),_.f("design:type",Object)],u6.prototype,"ytCardItemBoxBehavior",void 0);_.V([_.B(_.BGd.YtTappableItemBehavior),_.f("design:type",Object)],u6.prototype,"ytTappableItemBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],u6.prototype,"data",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],u6.prototype,"isExpanded_",void 0);
_.V([_.C({value:!1}),_.f("design:type",Boolean)],u6.prototype,"isErrorRendererVisible_",void 0);_.V([_.OB("data.backgroundColor"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],u6.prototype,"backgroundColorChanged_",null);_.V([_.OB("data.headerPromoBackgroundColor"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],u6.prototype,"headerPromoBackgroundColorChanged_",null);
_.V([_.OB("data.errorRenderer","isExpanded_"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],u6.prototype,"errorRendererVisibilityChanged_",null);_.V([_.u3("yt-toggle-button"),_.f("design:type",Function),_.f("design:paramtypes",[Event,Object]),_.f("design:returntype")],u6.prototype,"onYtToggleButton_",null);_.V([_.sB({is:"yt-card-item-renderer",disableElementRegistration:!0})],u6);
_.k(u6,"yt-card-item-renderer",function(){if(Y7A===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;sNN===void 0&&(sNN=document.createElement("template"));var S=sNN;y.call(h,S.content.cloneNode(!0),b.content.firstChild);Y7A=b}b=Y7A;return b},{mode:2});_.W2("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var OL=function(){var b=_.g.apply(this,arguments)||this;b.hidden=!1;return b};
_.z(OL,_.g);_.d=OL.prototype;_.d.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.d.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.d.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var b,h=(b=this.commerceCartHeaderEntity)==null?void 0:b.isHidden;h!==void 0&&(this.hidden=h)}};
_.d.updateTitle=function(){var b=this.commerceCartHeaderEntity.isDisabled,h,y,S=(y=_.c((h=this.data)==null?void 0:h.item,$po))==null?void 0:y.headingRenderer;S&&(h=pw(S,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+h+".0.cardItemTextRenderer.textColor",b?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.d.updateSummaryText=function(){var b=this.commerceCartHeaderEntity;if(this.compact){var h,y,S=(y=_.c((h=this.data)==null?void 0:h.item,$po))==null?void 0:y.headingRenderer;S&&(h=pw(S,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+h+".1.cardItemTextRenderer.text",b.shortHeaderSummaryText?JF(b.shortHeaderSummaryText):b.headerSummaryText?JF(b.headerSummaryText):""))}else{var F;if(h=(F=_.c((S=this.data)==null?void 0:S.item,$po))==null?void 0:F.additionalInfoRenderer)h=pw(h,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+h+".text",b.headerSummaryText?JF(b.headerSummaryText):"")}};
_.d.updateCheckoutButton=function(){var b=this.commerceCartHeaderEntity,h,y,S=(y=_.c((h=this.data)==null?void 0:h.item,$po))==null?void 0:y.additionalInfoRenderer;h=pw(S,"buttonRenderer");var F;y=(F=this.commerceCartHeaderEntity)==null?void 0:F.isButtonDisabled;var a;F=(a=this.commerceCartHeaderEntity)==null?void 0:a.isButtonHidden;y!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+h+".buttonRenderer.isDisabled",y);F!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
F);var P;b=(P=b.checkoutButtonCommand)==null?void 0:P.innertubeCommand;b!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+h+".buttonRenderer.command",b)};
OL.prototype.entityChanged=OL.prototype.entityChanged;_.V([_.B(_.NT),_.f("design:type",Object)],OL.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],OL.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],OL.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],OL.prototype,"data",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],OL.prototype,"compact",void 0);_.V([_.C({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(b,h){return _.Mm(b.entities,"commerceCartHeaderEntity",h)}}),
_.f("design:type",Object)],OL.prototype,"commerceCartHeaderEntity",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],OL.prototype,"hidden",void 0);_.V([_.OB("commerceCartHeaderEntity","data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],OL.prototype,"entityChanged",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],OL);
_.k(OL,"ytd-commerce-cart-header-renderer",function(){if(I8f!==void 0)return I8f;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return I8f=b},{mode:1});var TGx;var Ga2=_.se(function(b,h){var y;return(y=b.onChangeCallback)==null?void 0:y.call(b,h)},1E3),kaX=_.T(function(b){var h=b.data;
var y=b.iconMinus;b=b.iconPlus;var S=function(){return!!h().disabled},F=_.L(_.pa(0,void 0,"mKh0af")),a=F.next().value,P=F.next().value;
F=_.Zv(function(){if(a()===1){var O,N;(N=(O=h()).onRemoveCommand)==null||N.call(O)}O=a()>h().maxValue?h().maxValue:a()-1;P(O);Ga2(h(),O);return!1});
var K=_.Zv(function(){if(a()===h().maxValue)return!1;var O=a()+1;P(O);Ga2(h(),O);return!1});
_.fl(function(){P(h().value)});
var n={},X={},u={};return _.M("quantity-incrementer-shape",null,_.M("div",{class:"ytSpecQuantityIncrementerShapeHost"},_.M("button",{class:"ytSpecQuantityIncrementerShapeButton",disabled:function(){return a()===(h().onRemoveCommand?0:1)||S()},
"aria-label":function(){return a()!==1?h().minusLabel:h().minimumReachedLabel},
"on:click":F},_.M(_.Tv,{model:{circular:!0}}),_.M("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.M("div",{class:_.P2("ytSpecQuantityIncrementerShapeIcon",(n.ytSpecQuantityIncrementerShapeIconDisabled=function(){return S()||a()===(h().onRemoveCommand?0:1)},n))},y()))),_.M("div",{class:_.P2("ytSpecQuantityIncrementerShapeText",(X.ytSpecQuantityIncrementerShapeTextInvalid=function(){return a()>h().maxValue},X.ytSpecQuantityIncrementerShapeTextDisabled=S,X))},a),_.M("button",{class:"ytSpecQuantityIncrementerShapeButton",
disabled:function(){return a()>=h().maxValue||S()},
"aria-label":function(){return a()!==h().maxValue?h().plusLabel:h().maximumReachedLabel},
"on:click":K},_.M(_.Tv,{model:{circular:!0}}),_.M("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.M("div",{class:_.P2("ytSpecQuantityIncrementerShapeIcon",(u.ytSpecQuantityIncrementerShapeIconDisabled=function(){return a()>=h().maxValue||S()},u))},b())))))},"Of");_.yd(_.T(function(b){function h(){y().onRemoveCommand&&_.Va(y().onRemoveCommand)}
var y=b.data;var S=_.OF(LRU,function(){return y().quantityIncrementerEntityKey});
return _.M("yt-quantity-incrementer-view-model",null,_.M(kaX,{data:function(){var F=y(),a;var P=S()?!((a=S())==null||!a.disabled):!1;var K;a=S()?(K=S())==null?void 0:K.quantity:y().quantity;return cG8(F,P,h,a)},
iconMinus:function(){return _.M(_.Xv,{icon:"BAR_HORIZONTAL",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerMinusIcon"})},
iconPlus:function(){return _.M(_.Xv,{icon:"ADD",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerPlusIcon"})}}))},"Pf"),"yt-quantity-incrementer-view-model",{props:{data:_.D4}});var NZ=function(){var b=_.g.apply(this,arguments)||this;b.compact=!1;b.hasQuantityIncrementer=!1;return b};
_.z(NZ,_.g);NZ.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"}}}};
NZ.prototype.computeHasQuantityIncrementer=function(){var b;return!!_.c((b=this.data)==null?void 0:b.picker,Zka)};
NZ.prototype.onLabelClick=function(){var b;(b=this.dropdownEl)==null||b.open()};
_.V([_.to("ytd-dropdown-renderer"),_.f("design:type",Object)],NZ.prototype,"dropdownEl",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],NZ.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],NZ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],NZ.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",String)],NZ.prototype,"quantityColor",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],NZ.prototype,"compact",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.f("design:type",Object)],NZ.prototype,"hasQuantityIncrementer",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],NZ);
_.k(NZ,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(TGx!==void 0)return TGx;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return TGx=b},{mode:1});var Vef;var EWN;var tu=function(){return _.g.apply(this,arguments)||this};
_.z(tu,_.g);tu.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
tu.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
tu.prototype.updateTitle=function(){var b=this.disabledCartItemEntity;b.disableActionName&&this.set("data.title",JF(b.disableActionName))};
tu.prototype.updateButton=function(){var b,h=(b=this.disabledCartItemEntity.undoCommand)==null?void 0:b.innertubeCommand;h!==void 0&&(this.set("data.actionButton.buttonRenderer.command",h),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
tu.prototype.entityChanged=tu.prototype.entityChanged;_.V([_.B(_.NT),_.f("design:type",Object)],tu.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],tu.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],tu.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(b,h){return _.Mm(b.entities,"disabledCartItemEntity",h)}}),
_.f("design:type",Object)],tu.prototype,"disabledCartItemEntity",void 0);_.V([_.C(),_.f("design:type",Object)],tu.prototype,"data",void 0);_.V([_.OB("disabledCartItemEntity","data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],tu.prototype,"entityChanged",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],tu);
_.k(tu,"ytd-disabled-cart-item-renderer",function(){if(EWN!==void 0)return EWN;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return EWN=b},{mode:1});_.W2("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var r0=function(){var b=_.g.apply(this,arguments)||this;b.compact=!1;b.hidden=!1;b.errorHidden=!1;b.noOnTap=!1;return b};
_.z(r0,_.g);_.d=r0.prototype;
_.d.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"}}}};
_.d.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.d.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var b=this.firstButtonElement;b.alignByText=!0;b.iconAlignByText=!0}};
_.d.computeNoOnTap=function(b){return!b};
_.d.updateQuantityColor=function(){if(this.pickerElement){var b,h=(b=this.commerceCartItemEntity)==null?void 0:b.quantityColor;this.pickerElement.quantityColor=h}};
_.d.updateTotalPriceColor=function(){var b,h=(b=this.commerceCartItemEntity)==null?void 0:b.totalPriceColor;if(h){var y;b=_.c((y=this.data)==null?void 0:y.quantityPicker,PU8);if(y=_.c(b==null?void 0:b.price,LqN))y.textColor=h}};
_.d.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var b,h=(b=this.commerceCartItemEntity)==null?void 0:b.isHidden;h!==void 0&&(this.hidden=h)}};
_.d.updateHideErrorMessage=function(){var b,h=(b=this.commerceCartItemEntity)==null?void 0:b.hideErrorMessage;h!==void 0&&(this.errorHidden=h)};
_.d.updateQuantity=function(){var b=this,h,y=(h=this.commerceCartItemEntity)==null?void 0:h.quantity,S;h=(S=this.commerceCartItemEntity)==null?void 0:S.totalPrice;if(y){this.updateTotalPriceColor();this.updateQuantityColor();var F;S=_.c((F=this.data)==null?void 0:F.quantityPicker,PU8);if(F=_.c(S==null?void 0:S.price,LqN))F.text=h?{simpleText:h.content}:void 0;if(h=_.c(S==null?void 0:S.picker,Zka))h.quantity=y;var a;if(F=(a=_.c(S==null?void 0:S.picker,K0G))==null?void 0:a.entries){a=!1;h=void 0;F=
_.L(F);for(S=F.next();!S.done;S=F.next())S=S.value,S.dropdownItemRenderer&&(h||(h=S.dropdownItemRenderer),S.dropdownItemRenderer.isSelected=!1,y===S.dropdownItemRenderer.int32Value&&(a=!0,S.dropdownItemRenderer.isSelected=!0));!a&&h&&(h.isSelected=!0)}_.Ob(this,function(){var P;b.set("data.quantityPicker",_.lR.unsafeClone((P=b.data)==null?void 0:P.quantityPicker))})}};
r0.prototype.onYtRendererstamperFinished=r0.prototype.onYtRendererstamperFinished;r0.prototype.entityChanged=r0.prototype.entityChanged;_.V([_.C(),_.f("design:type",Object)],r0.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],r0.prototype,"compact",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],r0.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],r0.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],r0.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],r0.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(b,h){return _.Mm(b.entities,"commerceCartItemEntity",h)}}),
_.f("design:type",Object)],r0.prototype,"commerceCartItemEntity",void 0);_.V([_.C(),_.f("design:type",Object)],r0.prototype,"quantityPicker",void 0);_.V([_.C(),_.f("design:type",Object)],r0.prototype,"compactQuantityPicker",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],r0.prototype,"hidden",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],r0.prototype,"errorHidden",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.f("design:type",Object)],r0.prototype,"noOnTap",void 0);_.V([_.to("ytd-commerce-cart-item-quantity-picker-renderer"),_.f("design:type",Object)],r0.prototype,"pickerElement",void 0);_.V([_.to("yt-button-renderer"),_.f("design:type",Element)],r0.prototype,"firstButtonElement",void 0);
_.V([_.OB("commerceCartItemEntity","data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],r0.prototype,"entityChanged",null);_.V([_.u3("yt-rendererstamper-finished"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],r0.prototype,"onYtRendererstamperFinished",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],r0);
_.k(r0,"ytd-commerce-cart-item-renderer",function(){if(Vef!==void 0)return Vef;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return Vef=b},{mode:_.Lt("kevlar_poly_si_batch_j028")?1:2});var iMa;var f8P;var cW=function(){return _.g.apply(this,arguments)||this};
_.z(cW,_.g);cW.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}}}}}};
cW.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
cW.prototype.updateCheckoutLineItems=function(){var b,h=(b=this.commerceCartCheckoutButtonEntity)==null?void 0:b.checkoutLineItems;h&&(b=h.map(function(y){a:{var S=y.price,F=y.description;switch(y.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":y={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:JF(F),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:JF(S),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:y={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:JF(F),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:JF(S),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 y}),this.set("data.summaryLineItems",b))};
cW.prototype.updateIsHidden=function(){var b,h=(b=this.commerceCartCheckoutButtonEntity)==null?void 0:b.isHidden;h!==void 0&&(this.hostElement.hidden=h)};
cW.prototype.entityChanged=cW.prototype.entityChanged;_.V([_.B(_.NT),_.f("design:type",Object)],cW.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],cW.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],cW.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],cW.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],cW.prototype,"data",void 0);_.V([_.C({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:q15}),_.f("design:type",Object)],cW.prototype,"commerceCartCheckoutButtonEntity",void 0);_.V([_.OB("commerceCartCheckoutButtonEntity","data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],cW.prototype,"entityChanged",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],cW);
_.k(cW,"ytd-commerce-cart-summary-renderer",function(){if(f8P!==void 0)return f8P;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return f8P=b},{mode:1});var wbY={};wbY.InjectBehavior=[Fr8.InjectBehavior];var l8A;var q7q;var Rm=function(){return _.g.apply(this,arguments)||this};
_.z(Rm,_.g);
Rm.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:_.A4("menuRenderer")}}};
Rm.prototype.onMenuTap=function(b){b.stopPropagation()};
_.tm.Object.defineProperties(Rm.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 b,h;return!(((b=this.data)==null||!b.sectionHeading)&&((h=this.data)==null?void 0:h.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var b,h;return!(((b=this.data)==null||!b.image)&&((h=this.data)==null?void 0:h.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var b,h;return!(((b=this.data)==null||!b.menu)&&((h=this.data)==null?void 0:h.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Rm.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Rm.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.BGd.YtTappableItemBehavior),_.f("design:type",Object)],Rm.prototype,"ytTappableItemBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Rm.prototype,"data",void 0);
_.V([_.C({reflectToAttribute:!0}),_.W("data.accessibilityData"),_.f("design:type",String),_.f("design:paramtypes",[])],Rm.prototype,"ariaLabel",null);_.V([_.W("data.sectionHeading","data.layout"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Rm.prototype,"sectionHeadingVisible",null);_.V([_.W("data.image","data.layout"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Rm.prototype,"imageVisible",null);
_.V([_.W("data.menu","data.layout"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Rm.prototype,"menuVisible",null);_.V([_.sB({is:"yt-activity-item-renderer",disableElementRegistration:!0})],Rm);
_.k(Rm,"yt-activity-item-renderer",function(){if(q7q===void 0){var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;l8A===void 0&&(l8A=document.createElement("template"));var S=l8A;y.call(h,S.content.cloneNode(!0),b.content.firstChild);q7q=b}b=q7q;return b},{mode:2});var xPF;var QNP;var mPF;var vWE;var zl=function(){return _.g.apply(this,arguments)||this};
_.z(zl,_.g);
zl.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"}}}}};
zl.prototype.backgroundColorChanged_=function(){var b,h=(b=this.data)==null?void 0:b.backgroundColor;this.hostElement.style.backgroundColor=jN[h||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
zl.prototype.backgroundColorChanged_=zl.prototype.backgroundColorChanged_;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],zl.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],zl.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],zl.prototype,"data",void 0);
_.V([_.OB("data.backgroundColor"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],zl.prototype,"backgroundColorChanged_",null);_.V([_.sB({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],zl);
_.k(zl,"yt-offer-item-upsell-renderer",function(){if(vWE===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;mPF===void 0&&(mPF=document.createElement("template"));var S=mPF;y.call(h,S.content.cloneNode(!0),b.content.firstChild);vWE=b}b=vWE;return b},{mode:2});_.W2("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var DD=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};b.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return b};
_.z(DD,_.g);_.d=DD.prototype;
_.d.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:_.A4("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.d.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.d.computeContainerStyle_=function(b){return b};
_.d.computeContainerIsHidden_=function(b){return b&&!!b.isHidden};
_.d.computeShowSpinner_=function(b,h){return b&&h==="in-progress"};
_.d.computeShowMoreContentsButton_=function(b,h,y,S,F){return!(!(S&&S.length||F&&F.length&&y)||!b||h)};
_.d.onToggleButton_=function(b){var h=this;b.stopPropagation();this.isExpanded_=b.detail&&b.detail.toggled;var y,S;this.isExpanded_&&!this.data.continuationSection.length&&((y=this.data)==null?0:(S=y.continuation)==null?0:S.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.Sx(this.hostElement,"yt-load-next-continuation",function(F){return h.getContinuationUrl_(h.data.continuation.onClickContinuationData,F)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.dh(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.d.onShowMoreContentsButtonClicked_=function(b){var h=this;b.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.Sx(this.hostElement,"yt-load-next-continuation",function(y){return h.getContinuationUrl_(h.data.continuations[0].nextContinuationData,y)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.dh(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.d.getContinuationUrl_=function(b,h){var y=b.continuation;b=b.clickTrackingParams;var S=_.UE();b&&S&&_.lE(S,_.I_(b));return _.P9(h,{continuation:y})};
_.d.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var b=_.$x(this.hostElement).querySelector("#continuation-section");b&&(b=b.querySelectorAll("ytmusic-item-section-renderer"))&&b.forEach(function(h){return h.classList.add("memberships-and-purchases")})};
_.d.dataChanged_=function(){var b;this.isExpanded_=!((b=this.data)==null||!b.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.d.updateCardOnClickCommand_=function(b){b=_.c(b,bk8);var h,y;this.data&&((h=this.data)==null?0:h.targetId)&&b&&b.targetId===((y=this.data)==null?void 0:y.targetId)&&b.onClickCommand&&(this.data.onClickCommand=b.onClickCommand,this.isOnClickCommand_=!0)};
_.d.backgroundColorChanged_=function(){var b,h=(b=this.data)==null?void 0:b.backgroundColor;this.hostElement.style.backgroundColor=jN[h||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
DD.prototype.backgroundColorChanged_=DD.prototype.backgroundColorChanged_;DD.prototype.dataChanged_=DD.prototype.dataChanged_;DD.prototype.nextContinuationDataUpdated_=DD.prototype.nextContinuationDataUpdated_;DD.prototype.onToggleButton_=DD.prototype.onToggleButton_;_.V([_.B(_.p1),_.f("design:type",Object)],DD.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],DD.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],DD.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.JC.YtNextContinuationBehavior),_.f("design:type",Object)],DD.prototype,"ytNextContinuationBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],DD.prototype,"ytRendererBehavior",void 0);_.V([_.B(wbY.InjectBehavior),_.f("design:type",Object)],DD.prototype,"injectBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],DD.prototype,"data",void 0);
_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],DD.prototype,"compact",void 0);_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],DD.prototype,"isExpanded_",void 0);_.V([_.C({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.f("design:type",String)],DD.prototype,"containerStyle_",void 0);_.V([_.C({value:"not-started"}),_.f("design:type",String)],DD.prototype,"continuationStatus_",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.f("design:type",Boolean)],DD.prototype,"showSpinner_",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],DD.prototype,"isOnClickCommand_",void 0);_.V([_.C({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.f("design:type",Boolean)],DD.prototype,"showMoreContentsButton_",void 0);
_.V([_.C({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(b,h){return!h||b.entities?null:_.Mm(b.entities,"cardItemContainerEntity",h)}}),
_.f("design:type",Object)],DD.prototype,"cardItemContainerEntity_",void 0);_.V([_.u3("yt-toggle-button"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],DD.prototype,"onToggleButton_",null);_.V([_.u3("yt-next-continuation-data-updated"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],DD.prototype,"nextContinuationDataUpdated_",null);
_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],DD.prototype,"dataChanged_",null);_.V([_.OB("data.backgroundColor"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],DD.prototype,"backgroundColorChanged_",null);_.V([_.sB({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],DD);
_.k(DD,"yt-card-item-container-renderer",function(){if(QNP===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;xPF===void 0&&(xPF=document.createElement("template"));var S=xPF;y.call(h,S.content.cloneNode(!0),b.content.firstChild);QNP=b}b=QNP;return b},{mode:2});var Im=function(){return _.g.apply(this,arguments)||this};
_.z(Im,_.g);Im.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"}}}};
Im.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
Im.prototype.computeLoadingHidden=function(){var b;return!((b=this.commerceCartPageStateEntity)==null?0:b.cartActionInProgress)};
Im.prototype.updateNotification=function(){var b,h=(b=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:b.summaryText;h&&this.set("data.cartNotification",JF(h))};
Im.prototype.notificationEntityChanged=Im.prototype.notificationEntityChanged;_.V([_.B(_.NT),_.f("design:type",Object)],Im.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Im.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],Im.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Im.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],Im.prototype,"data",void 0);_.V([_.C({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(b,h){return _.Mm(b.entities,"commerceCartExpandableNotificationEntity",h)}}),
_.f("design:type",Object)],Im.prototype,"commerceCartExpandableNotificationEntity",void 0);_.V([_.C({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(b,h){return _.Mm(b.entities,"commerceCartPageStateEntity",h)}}),
_.f("design:type",Object)],Im.prototype,"commerceCartPageStateEntity",void 0);_.V([_.to("#spinner"),_.f("design:type",HTMLElement)],Im.prototype,"spinner",void 0);_.V([_.OB("commerceCartExpandableNotificationEntity","data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Im.prototype,"notificationEntityChanged",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],Im);
_.k(Im,"ytd-commerce-cart-renderer",function(){if(iMa!==void 0)return iMa;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return iMa=b},{mode:1});var bAP;var BW=function(){var b=_.g.apply(this,arguments)||this;b.bigImage=!1;return b};
_.z(BW,_.g);_.tm.Object.defineProperties(BW.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var b;return(b=this.data)==null?void 0:b.placeholderImageUrl}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],BW.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],BW.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],BW.prototype,"bigImage",void 0);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],BW.prototype,"placeholderImageUrl",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],BW);
_.k(BW,"ytd-empty-product-shelf-renderer",function(){if(bAP!==void 0)return bAP;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return bAP=b},{mode:1});var hdE;var WW=function(){var b=_.g.apply(this,arguments)||this;b.itemStyle="link-item";b.watchMetadataRefresh=!1;b.skinnyMode=!1;b.metaPanel=!1;b.inStructuredDescription=!1;b.detailedDescriptionOverride=!1;b.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};b.updateOnResizeDebouncer=null;return b};
_.z(WW,_.g);_.d=WW.prototype;_.d.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.d.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"}}}}};
_.d.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.d.attachVEs=function(b){b.trackingParams&&_.rU().graftServerVe(b.trackingParams)};
_.d.handleUpdateMerchShelfAction=function(b){var h=this,y=_.c(b.updateMerchandiseShelfAction.merchandiseShelf,_.Ih5);y&&(y.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){h.attachVEs(y);h.data=y},Number(y.renderDelayMs))):(this.attachVEs(y),this.data=y))};
_.d.updateOnResize=function(){if(this.JSC$17212_scrollContainer!==void 0&&this.JSC$17212_scrollContainer.clientWidth!==0&&this.items!==void 0){var b=this.JSC$17212_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-b));this.ytdHorizontalListBehavior.reposition_();var h;switch((h=this.data)==null?void 0:h.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var y,
S;((y=this.data)==null?void 0:(S=y.items)==null?void 0:S.length)===1?this.itemStyle="cta-item":this.itemStyle=b>=740?"large-item":"small-item"}}};
_.d.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.JD(this.updateOnResizeDebouncer,_.tD.after(100),this.updateOnResize)};
WW.prototype.debouncedUpdateOnResize=WW.prototype.debouncedUpdateOnResize;WW.prototype.dataChanged=WW.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],WW.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],WW.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.kd.YtdHorizontalListBehavior),_.f("design:type",Object)],WW.prototype,"ytdHorizontalListBehavior",void 0);
_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],WW.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],WW.prototype,"ytActionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],WW.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],WW.prototype,"itemStyle",void 0);_.V([_.C({value:6}),_.f("design:type",Number)],WW.prototype,"initialCount",void 0);
_.V([_.C({value:"data.items"}),_.f("design:type",String)],WW.prototype,"itemsPath",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],WW.prototype,"watchMetadataRefresh",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],WW.prototype,"skinnyMode",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],WW.prototype,"metaPanel",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],WW.prototype,"inStructuredDescription",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],WW.prototype,"detailedDescriptionOverride",void 0);_.V([_.to("#items"),_.f("design:type",HTMLDivElement)],WW.prototype,"items",void 0);_.V([_.to("#scroll-container"),_.f("design:type",HTMLDivElement)],WW.prototype,"JSC$17212_scrollContainer",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],WW.prototype,"dataChanged",null);
_.V([_.u3("iron-resize"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],WW.prototype,"debouncedUpdateOnResize",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],WW);
_.k(WW,"ytd-merch-shelf-renderer",function(){if(hdE!==void 0)return hdE;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return hdE=b},{mode:2});var yXd;var Au=function(){var b=_.g.apply(this,arguments)||this;b.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 b};
_.z(Au,_.g);_.d=Au.prototype;
_.d.addBackstagePostAction=function(b){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(b=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",b))&&(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:b}):this.set("data.contents",[{backstagePostThreadRenderer:b}]))};
_.d.addBackstageCommentAction=function(b){var h=this.get("addBackstageCommentAction.parentId",b);b=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",b);if(h&&b){h=this.postIdToIndices(h);for(var y=0;y<h.length;y++){var S=h[y];if(S<0)break;S="data.contents."+S+".backstagePostThreadRenderer.comments";this.get(S)&&(this.get(S+".backstageCommentsRenderer.contents")&&this.push(S+".backstageCommentsRenderer.contents",{commentThreadRenderer:b}),this.get(S+".backstageCommentsRenderer.teaserContents")?
this.push(S+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:b}):this.set(S+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:b}]))}}};
_.d.addBackstageReplyAction=function(b){var h=this.get("addBackstageReplyAction.parentId",b);b=this.get("addBackstageReplyAction.renderer.commentRenderer",b);h&&b&&this.setCreatorReply(h,b)};
_.d.banAuthorAction=function(b){var h=this.get("banAuthorAction.commentId",b);h&&(b=this.get("banAuthorAction.parentCommentId",b)||this.getParentPostId(h),this.removeFromStream(h,b))};
_.d.hideReportedCommentAction=function(b){var h=this.get("hideReportedCommentAction.commentId",b);h&&((b=this.get("hideReportedCommentAction.parentCommentId",b))||(b=this.getParentPostId(h)),this.removeFromStream(h,b))};
_.d.replaceBackstageCommentAction=function(b){var h=this.get("replaceBackstageCommentAction.commentId",b),y=this.get("replaceBackstageCommentAction.parentId",b);b=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",b);if(h&&y&&b){y=this.postIdToIndices(y);for(var S=0;S<y.length;S++){var F=y[S];if(F<0)break;var a=this.commentIdToIndex(h,F,!1);if(a>=0){var P=this.get("data.contents."+F+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+a+".commentThreadRenderer.replies.commentRepliesRenderer");
P&&(b.replies={commentRepliesRenderer:P});this.splice("data.contents."+F+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",a,1,{commentThreadRenderer:b})}a=this.commentIdToIndex(h,F,!0);if(a>=0){if(P=this.get("data.contents."+F+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(a+".commentThreadRenderer.replies.commentRepliesRenderer")))b.replies={commentRepliesRenderer:P};this.splice("data.contents."+F+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
a,1,{commentThreadRenderer:b})}}}};
_.d.replaceBackstagePostAction=function(b){var h=this.get("replaceBackstagePostAction.itemId",b);if(h){h=this.postIdToIndices(h);for(var y=0;y<h.length;y++){var S=h[y];if(S<0)break;var F=this.getPostRendererType(S),a=this.get("replaceBackstagePostAction.renderer."+F,b);if(!a&&F!=="sharedPostRenderer")break;var P=!1;a||(P=!0,a=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",b));if(!a)break;var K={};P?(_.J6(K,iH8,a),this.set("data.contents."+S+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
K)):(_.J6(K,new _.r4(F),a),this.set("data.contents."+S+".backstagePostThreadRenderer.post",K))}}};
_.d.replaceBackstageReplyAction=function(b){var h=this.get("replaceBackstageReplyAction.replyId",b),y=this.get("replaceBackstageReplyAction.parentId",b);b=this.get("replaceBackstageReplyAction.renderer.commentRenderer",b);h&&b&&y&&this.setCreatorReply(y,b)};
_.d.removeCommentAction=function(b){var h=this.get("removeCommentAction.commentId",b);if(h){var y=this.get("removeCommentAction.parentCommentId",b);y&&this.get("removeCommentAction.isCreatorReply",b)?this.setCreatorReply(y,void 0):(y||(y=this.getParentPostId(h)),this.removeFromStream(h,y))}};
_.d.setCreatorReply=function(b,h){var y=this.getParentPostId(b);if(y){y=this.postIdToIndices(y);for(var S=0;S<y.length;S++){var F=y[S];if(F<0)break;var a=this.commentIdToIndex(b,F,!1);if(a>=0){var P="data.contents."+F+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+a;a=P+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";P+=".commentThreadRenderer.replies";h==void 0?(this.set(P,{}),this.set(a,!1)):(this.set(P,{commentRepliesRenderer:{teaserContents:[{commentRenderer:h}]}}),
this.set(P+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(a,!0))}a=this.commentIdToIndex(b,F,!0);a>=0&&(a="data.contents."+F+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+a,F=a+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",a+=".commentThreadRenderer.replies",h==void 0?(this.set(a,{}),this.set(F,!1)):(this.set(a,{commentRepliesRenderer:{teaserContents:[{commentRenderer:h}]}}),this.set(F,!0)))}}};
_.d.removeFromStream=function(b,h){if(h){h=this.postIdToIndices(h);for(var y=0;y<h.length;y++){var S=h[y];if(S<0)break;var F=this.commentIdToIndex(b,S,!1);F>=0&&this.splice("data.contents."+S+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",F,1);F=this.commentIdToIndex(b,S,!0);F>=0&&this.splice("data.contents."+S+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",F,1);S="data.contents."+S+".backstagePostThreadRenderer.post.backstagePostRenderer";
F=S+".backstageAttachment.pollRenderer.votedCommentId";this.get(F)===b&&(this.set(F,null),this.set(S+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(h=this.postIdToIndices(b).reverse(),y=0;y<h.length;y++){S=h[y];if(S<0)break;F=this.getPostRendererType(S);var a=this.get("backstagePostThreadRenderer.post."+F,this.data.contents[S]);a.postId===b?this.splice("data.contents",S,1):F==="sharedPostRenderer"&&this.set("data.contents."+S+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);a.scheduledPublishTimeSec&&_.F8(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.d.postIdToIndices=function(b){for(var h=[],y=0;y<this.data.contents.length;y++){var S=this.getPostRendererType(y);this.get("backstagePostThreadRenderer.post."+S+".postId",this.data.contents[y])===b&&h.push(y);if(S==="sharedPostRenderer"){var F=this.get("backstagePostThreadRenderer.post."+S+".originalPost.backstagePostRenderer.postId",this.data.contents[y]);S=this.get("backstagePostThreadRenderer.post."+S+".originalPost.postRenderer.postId",this.data.contents[y]);F!==b&&S!==b||h.push(y)}}return h};
_.d.commentIdToIndex=function(b,h,y){if(h<0)return-1;var S,F,a,P,K=_.c((S=this.data)==null?void 0:(F=S.contents)==null?void 0:(a=F[h])==null?void 0:(P=a.backstagePostThreadRenderer)==null?void 0:P.comments,V6G);return(h=y?K==null?void 0:K.teaserContents:K==null?void 0:K.contents)&&h.length?h.findIndex(function(n){return _.c(n,cD7).comment.commentRenderer.commentId===b}):-1};
_.d.getParentPostId=function(b){b=b.split(".");if(b[1])return b[0]};
_.d.getPostRendererType=function(b){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[b])?"sharedPostRenderer":"backstagePostRenderer"};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Au.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],Au.prototype,"ytActionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Au.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,value:_.r("enable_community_page_on_desktop")}),_.f("design:type",Boolean)],Au.prototype,"useSmallerPostContainer",void 0);
_.V([_.Yx({disableElementRegistration:!0,is:"ytd-backstage-items"})],Au);
_.k(Au,"ytd-backstage-items",function(){if(yXd!==void 0)return yXd;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return yXd=
b},{mode:1});var Sff;var FYP={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},UL=function(){var b=_.g.apply(this,arguments)||this;b.disablePrescanVisibility=!0;b.canScheduleJobs=!0;b.engagementPanel=!1;b.hidePanelButton=!1;b.isWatchGrid=
!1;b.hasShownSubscribersOnlyDisclaimer=!1;b.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_"};b.TEST_ONLY=void 0;return b};
_.z(UL,_.g);_.d=UL.prototype;_.d.created=function(){this.initCommentsCsi_();_.r("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_");_.r("web_comment_threading_scroll_on_collapse")&&(this.actionMap["yt-scroll-to-comment-element"]="handleScrollToCommentElement_")};
_.d.contentsChanged_=function(){var b;(b=this.data)!=null&&b.contents&&this.tickForCommentsTimer_("cml")};
_.d.headerChanged_=function(){var b;(b=this.data)!=null&&b.header&&this.tickForCommentsTimer_("cmhl")};
_.d.initCommentsCsi_=function(){_.Ua("wn_comments");var b=_.UE();b&&_.WT({clientScreenNonce:b},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.d.createCommentAction_=function(b){b=_.lR.unsafeClone(b);var h,y;if(b=(h=_.c(b,Myo))==null?void 0:(y=h.contents)==null?void 0:y.commentThreadRenderer){var S,F,a,P,K,n;!this.isBackstage&&((S=this.data)==null?0:(F=S.header)==null?0:(a=F.commentsHeaderRenderer)==null?0:(P=a.createRenderer)==null?0:(K=P.commentSimpleboxRenderer)==null?0:(n=K.zeroStep)==null?0:n.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var X,
u,O;this.isBackstage&&_.c((X=this.data)==null?void 0:(u=X.header)==null?void 0:(O=u.commentsHeaderRenderer)==null?void 0:O.zeroStateMessage,f6a)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(b)}};
_.d.doReplyInsert_=function(b,h,y,S){S?this.splice(b,S,0,h):this.push(b,h)};
_.d.getRepliesPath_=function(b){return"data.contents."+b+".commentThreadRenderer.replies"};
_.d.getRepliesContentsPath_=function(b,h){b=this.getRepliesPath_(b);return h?b+".commentRepliesRenderer.teaserContents":b+".commentRepliesRenderer.contents"};
_.d.showSubscribersOnlyDisclaimer_=function(b){(b=b.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(b=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(b))&&(_.F8(this.hostElement,"yt-open-popup-action",[b,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.d.createCommentReplyAction_=function(b){b=_.lR.unsafeClone(b);var h=_.c(b,ne5);if(b=h==null?void 0:h.contents){var y=this.commentIdToIndex_(h==null?void 0:h.parentCommentId);if(!(y<0)){var S=this.getRepliesPath_(y);if(this.get(S)){h=h.replyToCommentId;S=this.getRepliesContentsPath_(y,!1);if(this.get(S)){var F=this.get(S).length,a=S+"."+(F-1)+".continuationItemRenderer";this.get(a+".button")?(a=this.replyIdToIndex_(h,y,!1),this.doReplyInsert_(S,b,a,F-1)):this.get(a)||(F=this.replyIdToIndex_(h,y,
!1),this.doReplyInsert_(S,b,F,null))}S=this.getRepliesContentsPath_(y,!0);this.get(S)?(y=this.replyIdToIndex_(h,y,!0),(!h||y>=0)&&this.doReplyInsert_(S,b,y,null)):this.set(S,[b])}else this.set(S,{commentRepliesRenderer:{teaserContents:[b]}})}}};
_.d.hideReportedCommentAction_=function(b){var h=_.c(b,CY8);if(b=h==null?void 0:h.commentId)(h=this.get("parentCommentId",h))||(h=this.getParentCommentId_(b)),this.remove_(b,h)};
_.d.getParentCommentId_=function(b){b=b.split(".");if(b[1])return b[0]};
_.d.removeCommentAction_=function(b){var h=_.c(b,N$7);if(b=h==null?void 0:h.commentId)h=(h==null?void 0:h.parentCommentId)||this.getParentCommentId_(b),this.remove_(b,h)};
_.d.pinCommentAction_=function(b){b=_.lR.unsafeClone(b);var h=_.c(b,OpP);h!=null&&h.commentId&&(b=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",b))&&(this.remove_(h.commentId),this.insert_(b,!0))};
_.d.unpinCommentAction_=function(b){b=_.lR.unsafeClone(b);b=_.c(b,tyW);if(b!=null&&b.commentId){var h,y,S=(h=b.actionResult)==null?void 0:(y=h.update)==null?void 0:y.commentThreadRenderer;S&&(this.remove_(b.commentId),this.insert_(S))}};
_.d.banAuthorAction_=function(b){var h=_.c(b,oeM);h!=null&&h.commentId&&(b=h.commentId,h=h.parentCommentId||this.getParentCommentId_(b),this.remove_(b,h))};
_.d.handleScrollToCommentElement_=function(b){this.hostElement.contains(b)&&(this.nearestScrollParent||(this.nearestScrollParent=RPY(b)),this.isCommentVisibleInScrollParent(b)||b.scrollIntoView({behavior:"smooth",block:"start"}))};
_.d.isCommentVisibleInScrollParent=function(b){if(!this.nearestScrollParent)return!1;b=b.getBoundingClientRect();var h=this.nearestScrollParent===document.documentElement?{top:68,bottom:window.innerHeight}:this.nearestScrollParent.getBoundingClientRect();return b.top>=h.top&&b.bottom<=h.bottom};
_.d.commentIdToIndex_=function(b){var h;return b&&(h=this.data)!=null&&h.contents?this.data.contents.findIndex(function(y){y=y.commentThreadRenderer;var S;return b===((y==null?void 0:y.commentViewModel)&&((S=_.c(y.commentViewModel,Wbw))==null?void 0:S.commentId))}):-1};
_.d.insert_=function(b,h){h=h===void 0?!1:h;var y,S;if((y=this.data)==null?0:(S=y.contents)==null?0:S.some(function(a){return!!a.commentThreadRenderer}))for(y=0,S=this.data.contents.length;y<S;y++){var F=this.data.contents[y].commentThreadRenderer;
if(FYP[b.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=FYP[F.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){h&&FYP[b.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===FYP[F.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",y,1,{commentThreadRenderer:b}):this.splice("data.contents",y,0,{commentThreadRenderer:b});break}}else this.set("data.contents",[{commentThreadRenderer:b}])};
_.d.doReplyRemove_=function(b,h,y){b=this.replyIdToIndex_(b,h,y);b<0||(h=this.getRepliesContentsPath_(h,y),this.splice(h,b,1))};
_.d.remove_=function(b,h){h=this.commentIdToIndex_(h);h<0?(h=this.commentIdToIndex_(b),h<0||this.splice("data.contents",h,1)):_.r("web_delhi_comment_threads")||(this.doReplyRemove_(b,h,!1),this.doReplyRemove_(b,h,!0))};
_.d.replyIdToIndex_=function(b,h,y){if(h<0)return-1;h=this.getRepliesContentsPath_(h,y);h=this.get(h);if(!h||!h.length)return-1;y=0;for(var S=h.length;y<S;y++){var F=void 0,a=void 0;if(((F=h[y])==null?void 0:(a=F.commentViewModel)==null?void 0:a.commentId)===b)return y}return-1};
_.d.tickForCommentsTimer_=function(b){_.JL(b,void 0,"wn_comments")};
_.d.reloadComments_=function(b){b=_.c(b,I$7);_.c(b==null?void 0:b.command,_.sk)&&_.dh(this.hostElement,[b==null?void 0:b.command])};
_.tm.Object.defineProperties(UL.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var b,h,y;return!!((b=this.data)==null?0:(h=b.header)==null?0:(y=h.commentsHeaderRenderer)==null?0:y.isBackstageContent)}}});
_.tm.Object.defineProperties(UL,{template:{configurable:!0,enumerable:!0,get:function(){if(Sff===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);Sff=b}b=Sff;return b}}});
UL.prototype.showSubscribersOnlyDisclaimer_=UL.prototype.showSubscribersOnlyDisclaimer_;UL.prototype.headerChanged_=UL.prototype.headerChanged_;UL.prototype.contentsChanged_=UL.prototype.contentsChanged_;_.V([_.B(_.Y9),_.f("design:type",Object)],UL.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.B(_.UA.YtPlayerListenerBehavior),_.f("design:type",Function)],UL.prototype,"ytPlayerListenerBehavior",void 0);
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],UL.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],UL.prototype,"ytActionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],UL.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.W("data.header.commentsHeaderRenderer.isBackstageContent"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],UL.prototype,"isBackstage",null);
_.V([_.C(),_.f("design:type",Object)],UL.prototype,"disablePrescanVisibility",void 0);_.V([_.C(),_.f("design:type",Object)],UL.prototype,"canScheduleJobs",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],UL.prototype,"engagementPanel",void 0);_.V([_.C(),_.f("design:type",Object)],UL.prototype,"hidePanelButton",void 0);_.V([_.C(),_.f("design:type",Object)],UL.prototype,"isWatchGrid",void 0);_.V([_.C(),_.f("design:type",Object)],UL.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);
_.V([_.OB("data.contents"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],UL.prototype,"contentsChanged_",null);_.V([_.OB("data.header"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],UL.prototype,"headerChanged_",null);_.V([_.u3("yt-show-subscribers-only-disclaimer"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],UL.prototype,"showSubscribersOnlyDisclaimer_",null);
_.V([_.Yx({is:"ytd-comments"})],UL);var pC=function(){return _.cl.apply(this,arguments)||this};
_.z(pC,_.cl);_.d=pC.prototype;_.d.bindIf=function(b,h,y){return b?h:y};
_.d.bindIfDefined=function(b,h){return b!==void 0?b:h};
_.d.booleanString=function(b){return(!!b).toString()};
_.d.equals=function(){for(var b=_.x$.apply(0,arguments),h=b[0],y=1;y<b.length;y++)if(h!=b[y])return!1;return!0};
_.d.isGreaterThan=function(b,h){return b>h};
_.d.isLessThan=function(b,h){return b<h};
_.d.logicalAND=function(){for(var b=_.x$.apply(0,arguments),h=!!b[0],y=1;y<b.length;y++)h=h&&!!b[y];return h};
_.d.logicalOR=function(){for(var b=_.x$.apply(0,arguments),h=!!b[0],y=1;y<b.length;y++)h=h||!!b[y];return h};
_.d.toBool=function(b){return!!b};
pC.prototype.toBool=pC.prototype.toBool;pC.prototype.logicalOR=pC.prototype.logicalOR;pC.prototype.logicalAND=pC.prototype.logicalAND;pC.prototype.isLessThan=pC.prototype.isLessThan;pC.prototype.isGreaterThan=pC.prototype.isGreaterThan;pC.prototype.equals=pC.prototype.equals;pC.prototype.booleanString=pC.prototype.booleanString;pC.prototype.bindIfDefined=pC.prototype.bindIfDefined;pC.prototype.bindIf=pC.prototype.bindIf;_.V([_.Rc()],pC);_.aEf=[pC.prototype];var dAx;var jPP;var Ju=function(){return _.g.apply(this,arguments)||this};
_.z(Ju,_.g);Ju.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
Ju.prototype.onBackIconTap_=function(){window.history.back()};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Ju.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Ju.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Ju.prototype,"data",void 0);_.V([_.sB({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],Ju);
_.k(Ju,"yt-header-with-back-renderer",function(){if(jPP===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;dAx===void 0&&(dAx=document.createElement("template"));var S=dAx;y.call(h,S.content.cloneNode(!0),b.content.firstChild);jPP=b}b=jPP;return b},{mode:2});var $AA;var LYF;var eN=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return b};
_.z(eN,_.g);_.d=eN.prototype;_.d.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.d.onDarkModeToggledAction=function(b){b!==this.isDarkTheme&&(this.isDarkTheme=b,this.setUrl())};
_.d.dataChanged=function(){var b=this;if(this.data){var h=this.setUrl();h&&_.Hq({destination:window,iframe:this.iframe,origin:_.bqe(h.toString()),channelName:"yt-iframe",onMessage:function(y){(y=b.getCommunicationCommand(y.data))&&b.ytComponentBehavior.resolveCommand(y)},
onEstablished:function(){}})}};
_.d.setUrl=function(){if(this.data&&this.data.iframeUrl){var b=_.QV(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(b)return _.Fg(this.iframe,b),b}};
_.d.getCommunicationCommand=function(b){var h;if((h=this.data)!=null&&h.onCommunicationCommandsMap){h=this.data.onCommunicationCommandsMap.find(function(F){return F.key===b});
if(h==null?0:h.value)return h==null?void 0:h.value;try{var y=ifN(_.h8(b)),S=this.data.onCommunicationCommandsMap.find(function(F){return F.key===(y==null?void 0:y.getMethodName())});
if(S==null?0:S.value)return S==null?void 0:S.value}catch(F){}}};
eN.prototype.dataChanged=eN.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],eN.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],eN.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],eN.prototype,"actionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],eN.prototype,"data",void 0);
_.V([_.C({value:!1}),_.f("design:type",Boolean)],eN.prototype,"isDarkTheme",void 0);_.V([_.to("#iframe"),_.f("design:type",HTMLIFrameElement)],eN.prototype,"iframe",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],eN.prototype,"dataChanged",null);_.V([_.sB({is:"yt-iframe-renderer",disableElementRegistration:!0})],eN);
_.k(eN,"yt-iframe-renderer",function(){if(LYF===void 0){var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;$AA===void 0&&($AA=document.createElement("template"));var S=$AA;y.call(h,S.content.cloneNode(!0),b.content.firstChild);LYF=b}b=LYF;return b},{mode:2});_.CC=function(b){_.ED.call(this);this.callback=b;this.bezier=new hl8(0,0,.4,0,.2,1,1,1);this.delay=new _.R0(this.next,window,this);this.JSC$17252_animating=!1;_.pq(this,this.delay)};
_.z(_.CC,_.ED);_.CC.prototype.isAnimating=function(){return this.JSC$17252_animating};
_.CC.prototype.start=function(b,h,y){this.config={from:b,to:h,duration:y,startTime:(0,_.NO)()};this.JSC$17252_animating=!0;this.next()};
_.CC.prototype.stop=function(){this.delay.stop();this.JSC$17252_animating=!1;this.config=void 0};
_.CC.prototype.next=function(){if(this.config){var b=this.config,h=b.from,y=b.to,S=b.duration;b=b.startTime;var F=(0,_.NO)()-b;b=this.bezier;S=So5(b,F/S);if(S==0)b=b.y0;else if(S==1)b=b.y3;else{F=TG(b.y0,b.y1,S);var a=TG(b.y1,b.y2,S);b=TG(b.y2,b.y3,S);F=TG(F,a,S);a=TG(a,b,S);b=TG(F,a,S)}b=_.Y7(b,0,1);this.callback(h+(y-h)*b);b<1?this.delay.start():this.JSC$17252_animating=!1}};_.g0=new _.ca("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var Paa={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},ZAx=function(b,h,y,S){_.ED.call(this);this.JSC$17263_miniAppId=b;this.localReleaseId=h;this.derivedDeviceInterface=y;this.isForeground=S;this.JSC$17263_playNonceResolver=new _.MC;this.playPingTimerId=NaN;this.playPingIntervalMs=_.tj("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.tj("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.r("enable_displaying_ppn");this.JSC$17263_miniAppClientDataProvider=_.H9().resolve(_.g0);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;KYa(this);var F=setTimeout(function(){_.vX(new _.Gn("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$17263_playNonceResolver.promise.then(function(){clearTimeout(F)})};
_.z(ZAx,_.ED);var M2Y=function(b,h){b.JSC$17263_playNonceResolver.resolve(h!=null?h:B5(8));b.enableDisplayingPpn&&oFN(b).then(function(y){b.JSC$17263_miniAppClientDataProvider.clientData.set("post_play_nonce",y)})},oFN=function(b){return _.Z(function(h){return h.nextAddress==1?h.yield(b.JSC$17263_playNonceResolver.promise,2):h.return(h.yieldResult)})},KYa=function(b){var h,y;
_.Z(function(S){if(S.nextAddress==1)return S.yield(b.JSC$17263_playNonceResolver.promise,2);h=S.yieldResult;y={miniAppInfo:{externalPostId:b.JSC$17263_miniAppId,localReleaseId:b.localReleaseId,postPlayNonce:h,derivedDeviceInterface:b.derivedDeviceInterface}};_.WT(y);_.g3(S)})},XNX=function(b){b.state!==0?_.vX(new _.Gn("[MiniAppPlayLogger] recordPlayStart failed with state "+Paa[b.state])):(b.state=1,sL(b,"ma_cl"),YC(b,"PLAY_EVENT_TYPE_PLAY_START"),nFY(b))},HAA=function(b){b.isForeground=!1;
YC(b,"PLAY_EVENT_TYPE_PLAY_PAUSE")},uxP=function(b){b.state!==1&&b.state!==2?_.vX(new _.Gn("[MiniAppPlayLogger] recordPlayEnd failed with state "+Paa[b.state])):(b.state=3,window.clearInterval(b.playPingTimerId),b.playPingTimerId=NaN,yTU(),YC(b,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},OAf=function(b,h){b.state===2&&b.gameReady&&(b.firstClickRecorded?Date.now()-b.clickRecordedMs<b.playClickIntervalMs||(b.clickRecordedMs=Date.now(),YC(b,"PLAY_EVENT_TYPE_PLAY_CLICK")):h&&(sL(b,"ma_fua"),YC(b,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),b.firstClickRecorded=!0,b.clickRecordedMs=Date.now()))};
ZAx.prototype.logError=function(b){var h=this,y;_.Z(function(S){if(S.nextAddress==1)return b.metadata.externalPostId=h.JSC$17263_miniAppId,y=b.metadata,S.yield(Promise.race([h.JSC$17263_playNonceResolver.promise,new Promise(function(F){setTimeout(function(){F("")},3E4)})]),2);
y.postPlayNonce=S.yieldResult;b.metadata.localReleaseId=h.localReleaseId;b.loggingError.level="WARNING";_.QT(b.loggingError,b.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:b.metadata});_.g3(S)})};
var NAF=function(b,h,y,S){var F,a,P,K,n,X;_.Z(function(u){if(u.nextAddress==1)return u.yield(b.JSC$17263_playNonceResolver.promise,2);F=u.yieldResult;a={externalPostId:b.JSC$17263_miniAppId,localReleaseId:b.localReleaseId,postPlayNonce:F,sdkVersion:y,api:h};S!==void 0&&(a.networkRequestsMeasurement={networkRequests:_.rB(S,1),cachedRequests:_.rB(S,2),transferredBytes:_.rB(S,3)},(P=S)==null?0:_.DN(P,Ib,6))&&(a.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((K=_.cL(S,
Ib,6))==null?void 0:YY(K,1))||"0",cacheHits:((n=_.cL(S,Ib,6))==null?void 0:YY(n,2))||"0",cachedBytes:((X=_.cL(S,Ib,6))==null?void 0:YY(X,3))||"0"});_.qi("miniAppSdkUsage",a);_.g3(u)})},rXP=function(b,h,y){var S,F,a,P,K,n,X,u,O,N,t,R,I,U,p,e;
_.Z(function(E){if(E.nextAddress==1)return E.yield(b.JSC$17263_playNonceResolver.promise,2);S=E.yieldResult;F={externalPostId:b.JSC$17263_miniAppId,localReleaseId:b.localReleaseId,postPlayNonce:S,sdkVersion:y,measurementWindow:{startTimestampMs:String(ek(h,1)),endTimestampMs:String(ek(h,2))},frameRate:{averageFrameTimeDeltaMs:CF(h,3),averageFrameIdleTimeMs:CF(h,4)}};_.DN(h,BJ,5)&&(F.networkRequests={networkRequests:(a=CE(h))==null?void 0:_.rB(a,1),cachedRequests:(P=CE(h))==null?void 0:_.rB(P,2),transferredBytes:(K=
CE(h))==null?void 0:_.rB(K,3),sameOriginStatusCodeToCounts:t2x((n=CE(h))==null?void 0:_.gFr(n,4,void 0,iMf,iMf)),crossOriginStatusCodeToCounts:t2x((X=CE(h))==null?void 0:_.gFr(X,5,void 0,iMf,iMf))},(u=CE(h))==null?0:_.DN(u,Ib,6))&&(F.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((O=CE(h))==null?void 0:(N=_.cL(O,Ib,6))==null?void 0:YY(N,1))||"0",cacheHits:((t=CE(h))==null?void 0:(R=_.cL(t,Ib,6))==null?void 0:YY(R,2))||"0",cachedBytes:((I=CE(h))==null?void 0:(U=_.cL(I,Ib,6))==
null?void 0:YY(U,3))||"0"});_.DN(h,guN,7)&&(F.gameCapture={averageFrameTimeDeltaMs:(p=_.cL(h,guN,7))==null?void 0:CF(p,1),averageFrameIdleTimeMs:(e=_.cL(h,guN,7))==null?void 0:CF(e,2)});_.qi("miniAppPerformanceMetrics",F);_.g3(E)})},cXP=function(b,h){var y,S;
return _.Z(function(F){if(F.nextAddress==1)return F.yield(b.JSC$17263_playNonceResolver.promise,2);y=F.yieldResult;S={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:b.JSC$17263_miniAppId,postPlayNonce:y,miniAppReleaseId:b.localReleaseId},derivedDeviceInterface:b.derivedDeviceInterface,adTriggerType:h,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.qi("miniAppAdEvent",S);_.g3(F)})};
ZAx.prototype.disposeInternal=function(){_.ED.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var YC=function(b,h,y,S){y=y===void 0?{}:y;S=S===void 0?!1:S;var F,a,P,K;_.Z(function(n){if(n.nextAddress==1)return F=b.isForeground,a=b.beforeReady,n.yield(b.JSC$17263_playNonceResolver.promise,2);P=n.yieldResult;K={externalPostId:b.JSC$17263_miniAppId,localReleaseId:b.localReleaseId,derivedDeviceInterface:b.derivedDeviceInterface,postPlayNonce:P,type:h};y.sequenceGroup=P;K.playState=a?"PLAY_STATE_NOT_READY":F?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.qi("miniAppPlayEvent",K,
y);S&&_.x2();_.g3(n)})},sL=function(b,h){var y;
_.Z(function(S){if(S.nextAddress==1)return y=(0,_.NO)(),S.yield(b.JSC$17263_playNonceResolver.promise,2);_.pI(h,y);_.g3(S)})},nFY=function(b){isNaN(b.playPingTimerId)&&(b.playPingTimerId=_.DI(function(){b.state!==1&&b.state!==2?_.vX(new _.Gn("[MiniAppPlayLogger] reportPlayPing failed with state "+Paa[b.state])):YC(b,"PLAY_EVENT_TYPE_PLAY_PING")},b.playPingIntervalMs))},t2x=function(b){return Array.from(b.entries()).map(function(h){var y=_.L(h);
h=y.next().value;y=y.next().value;return{key:h,value:y}})};var Rdq=function(){},zd2=function(b,h){b.showMiniAppAdCommand=h.showMiniAppAdCommand;
b.isEmbeddedInWebview=h.isEmbeddedInWebview;b.playLogger=h.playLogger},IEd=function(b){return _.Z(function(h){return h.return(DAE(b,1))})},BA2=function(b){return _.Z(function(h){return h.return(DAE(b,2))})},AXa=function(b,h){return _.Z(function(y){return h?y.return(DAE(b,3,h)):y.return(WYx(b,3))})},DAE=function(b,h,y){var S;
return _.Z(function(F){if(F.nextAddress==1){if(!b.showMiniAppAdCommand||!b.isEmbeddedInWebview)return F.return(WYx(b,h));b.adResolver=new _.MC;var a=new jg;a=_.R2(a,3,h);S=_.kb(a,5,y);so(b.showMiniAppAdCommand,NJ8(S));return F.yield(b.adResolver.promise,2)}return F.return(F.yieldResult)})};
Rdq.prototype.onAdFinished=function(b){b=MAw(b);var h;(h=this.adResolver)==null||h.resolve(b)};
var WYx=function(b,h){var y;return _.Z(function(S){if(S.nextAddress==1)S=S.yield((y=b.playLogger)==null?void 0:cXP(y,pOy(h)),2);else{var F=S.return;var a=new ouW;a=_.R2(a,1,2);S=F.call(S,a)}return S})};var UAx=new _.ca("INNERTUBE_MANAGER_TOKEN");var pNA=function(){this.callbacks={}};
pNA.prototype.initialize=function(b){var h=this;this.callbacks=b;window.youtubewebview?window.youtubewebview.onmessage=function(y){JXY(h,y)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(y){JXY(h,y)})};
var JXY=function(b,h){if(h.data)try{var y=ifN(h.data);if(_.zq(_.z4(y,1))!=null){var S=MpN(_.gQ(y,2));switch(y.getMethodName()){case "yt-mini-app-load-audio-state":var F,a;(a=(F=b.callbacks).onAudioStateLoaded)==null||a.call(F,_.J1(S,Y2(S,d2,1)));break;case "yt-mute-mini-app":var P,K;(K=(P=b.callbacks).onMuteMiniApp)==null||K.call(P);break;case "yt-unmute-mini-app":var n,X;(X=(n=b.callbacks).onUnmuteMiniApp)==null||X.call(n);break;case "yt-playable-exit":var u,O;(O=(u=b.callbacks).onExit)==null||O.call(u);
break;case "yt-post-play-nonce":var N,t;(t=(N=b.callbacks).onPostPlayNonceReceived)==null||t.call(N,G4(S,2,d2));break;case "yt-confirm-exit-mini-app":var R,I;(I=(R=b.callbacks).confirmExitMiniApp)==null||I.call(R);break;case "yt-confirm-exit-mini-app-edu":var U,p;(p=(U=b.callbacks).confirmExitMiniAppEdu)==null||p.call(U);break;case "yt-benchmarking-response":var e,E;(E=(e=b.callbacks).onNativeBenchmarkingMessageReceived)==null||E.call(e,G4(S,2,d2));break;case "yt-mini-app-load-3p-consent-state":var Y,
w;(w=(Y=b.callbacks).multiplayer3pAckStateLoaded)==null||w.call(Y,_.J1(S,Y2(S,d2,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var x,q;(q=(x=b.callbacks).exitMiniAppSeenStateLoaded)==null||q.call(x,_.J1(S,Y2(S,d2,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var dI,L4;(L4=(dI=b.callbacks).onNavigateToNewMiniApp)==null||L4.call(dI);break;case "yt-game-data-available":var Rq,Xn;(Xn=(Rq=b.callbacks).onGameDataAvailable)==null||Xn.call(Rq,G4(S,2,d2));break;case "yt-pause-mini-app":var Ny,
gI;(gI=(Ny=b.callbacks).onPauseMiniApp)==null||gI.call(Ny);break;case "yt-resume-mini-app":var YU,VN;(VN=(YU=b.callbacks).onResumeMiniApp)==null||VN.call(YU);break;case "yt-pause-playable-dialog":var Hb,vF;(vF=(Hb=b.callbacks).onPausePlayableDialog)==null||vF.call(Hb);break;case "yt-resume-playable-dialog":var xU,Xa;(Xa=(xU=b.callbacks).onResumePlayableDialog)==null||Xa.call(xU);break;case "yt-playable-ad-finished":var rG,Wb;(Wb=(rG=b.callbacks).onAdFinished)==null||Wb.call(rG,G4(S,2,d2))}}else _.vX(Error("Wh"))}catch(Xx){_.QT(Error("Xh"))}else _.vX(Error("Yh"))};var ePy=function(b){this.rpcErrorCode=b};var Tl=function(b,h,y){this.intervalMs=b;this.apiFunc=h;this.type=y;this.schedulerReady=!0};
Tl.prototype.call=function(b){var h=this,y;return _.Z(function(S){if(S.nextAddress==1){if(h.type!==1&&b===h.cachedValue)return S.return();h.pendingApiRequestResolver||(h.pendingApiRequestResolver=new _.MC);y=h.pendingApiRequestResolver.promise;h.cachedValue=b;return S.yield(edY(h),2)}return S.return(y)})};
Tl.prototype.flush=function(b){b=b===void 0?!1:b;var h=this;return _.Z(function(y){return h.cachedValue===void 0?y.return():y.yield(h.apiFunc(h.cachedValue,b),0)})};
var edY=function(b){var h,y,S;return _.Z(function(F){switch(F.nextAddress){case 1:if(!b.schedulerReady||!b.pendingApiRequestResolver)return F.return();b.schedulerReady=!1;h=b.pendingApiRequestResolver;b.pendingApiRequestResolver=void 0;_.WE(F,2);if(b.cachedValue===void 0){F.jumpTo(4);break}return F.yield(b.apiFunc(b.cachedValue),5);case 5:y=F.yieldResult,h.resolve(y);case 4:_.Lz(F,3);break;case 2:S=_.C$(F),h.reject(S);case 3:setTimeout(function(){return _.Z(function(a){b.schedulerReady=!0;return a.yield(edY(b),
0)})},b.intervalMs),_.g3(F)}})};var sI8=window.location.origin+"/miniapp_cloudsaves",CBM=[400,401],Ca2=_.tj("cloud_save_game_data_rate_limit_ms",3E3),sPF=function(b){var h=this;this.JSC$17307_miniAppId=b;this.loadAttempts=0;this.cloudSaveIntervalMs=Ca2;this.initialDownloadDataSucceeded=!1;this.JSC$17307_playNonceResolver=new _.MC;this.scottyUploadRateLimiter=new Tl(this.cloudSaveIntervalMs,function(y,S){return h.uploadData(y,S)},2);
this.downloadDataPromise=gFE(this);this.downloadDataPromise.then(function(){h.initialDownloadDataSucceeded=!0}).catch(function(){})},YfX=function(b,h){h.then(function(y){return b.JSC$17307_playNonceResolver.resolve(y)})},TAE=function(b){return _.Z(function(h){return b.cachedData===void 0?h.return(b.downloadDataPromise):h.return(b.cachedData)})},Gqd=function(b,h){return _.Z(function(y){b.cachedData=h;
if(!b.initialDownloadDataSucceeded)throw Error("Zh");return y.yield(b.scottyUploadRateLimiter.call(h),0)})},kqd=function(){return new Promise(function(b){setTimeout(b,1E3,"")})},V2a=function(b,h){var y,S;
return _.Z(function(F){if(F.nextAddress==1)return y=b.JSC$17307_miniAppId,F.yield(Promise.race([b.JSC$17307_playNonceResolver.promise,kqd()]),2);S={"X-YouTube-MiniAppId":y,"X-YouTube-PostPlayNonce":F.yieldResult};"DELEGATED_SESSION_ID"in _.qU&&rLj(h,S);return F.return(S)})};
sPF.prototype.uploadData=function(b,h){h=h===void 0?!1:h;var y=this;return _.Z(function(S){return JGf()?_.r("enable_cloud_save_error_popup_after_retry")?S.return(new Promise(function(F,a){var P,K,n,X,u;return _.Z(function(O){switch(O.nextAddress){case 1:P=0,K=!0,X=n=null;case 2:if(!(K&&P++<2)){O.jumpTo(4);break}_.WE(O,5);return O.yield(EFq(y,b,h),7);case 7:n=O.yieldResult;K=n.ok?!1:!CBM.includes(n.status);_.Lz(O,2);break;case 5:X=u=_.C$(O);K=gQj(X);O.jumpTo(2);break;case 4:n?n.ok?(Gl(y,Ca2),F()):
(Gl(y,y.cloudSaveIntervalMs*2),a(Error("$h`"+String(n.status),{cause:{rpcErrorCode:n.status}}))):(Gl(y,y.cloudSaveIntervalMs*2),a(X||Error("ai"))),_.g3(O)}})})):S.return(new Promise(function(F,a){var P,K;
return _.Z(function(n){if(n.nextAddress==1){if(y.JSC$17307_miniAppId==="")return a(Error("bi")),n.return();_.WE(n,2);return n.yield(EFq(y,b,h),4)}if(n.nextAddress!=2)return P=n.yieldResult,P.ok?(Gl(y,Ca2),F()):(Gl(y,y.cloudSaveIntervalMs*2),a(Error("$h`"+String(P.status),{cause:{rpcErrorCode:P.status}}))),_.Lz(n,0);K=_.C$(n);Gl(y,y.cloudSaveIntervalMs*2);a(K);_.g3(n)})})):S.return()})};
var EFq=function(b,h,y){y=y===void 0?!1:y;var S,F,a;return _.Z(function(P){if(P.nextAddress==1)return S=_.CA((new TextEncoder).encode(h)),F=YiN(),P.yield(V2a(b,F),2);a=P.yieldResult;return P.return(fetch(F,{method:"POST",body:new Blob([S]),headers:a,keepalive:y}))})},gFE=function(b){var h,y;
return _.Z(function(S){if(S.nextAddress==1){if(!JGf())return S.return("");if(b.JSC$17307_miniAppId==="")throw Error("bi");if(b.loadAttempts>2)return S.return(b.downloadDataPromise);_.WE(S,2);return S.yield(iAf(b),4)}if(S.nextAddress!=2)return h=S.yieldResult,S.return(h);y=_.C$(S);if(gQj(y)&&++b.loadAttempts<2)return S.return(gFE(b));throw y;})},iAf=function(b){var h,y,S,F,a;
return _.Z(function(P){switch(P.nextAddress){case 1:return _.WE(P,2),h=YiN(),P.yield(V2a(b,h),4);case 4:return y=P.yieldResult,P.yield(fetch(h,{method:"GET",headers:y}),5);case 5:return S=P.yieldResult,S.ok?P.yield(S.text(),6):P.return(Promise.reject(Error("ci`"+String(S.status),{cause:new ePy(S.status)})));case 6:return F=P.yieldResult,P.return((new TextDecoder).decode(_.h8(F)));case 2:return a=_.C$(P),P.return(Promise.reject(a))}})},Gl=function(b,h){b.cloudSaveIntervalMs=h;
b.scottyUploadRateLimiter.intervalMs=b.cloudSaveIntervalMs};
sPF.prototype.flush=function(){var b=this;return _.Z(function(h){return b.initialDownloadDataSucceeded?h.yield(b.scottyUploadRateLimiter.flush(!0),0):h.return()})};var fEY=JQ(pE(1),AQ(1)),wNF=JQ(pE(1),AQ(3)),kC=function(b){this.callbacks=b};
_.d=kC.prototype;_.d.onAudioToggled=function(b,h){(h===void 0||h)&&_.Bd("yt-mini-app-is-audio-enabled",b,2592E3)};
_.d.onPause=function(){this.onAudioToggled(!1,!1)};
_.d.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.d.returnNativeBenchmarkingMessage=function(){};
_.d.sendGameData=function(){};
_.d.sendStartGameFrameCapture=function(){};
var TVn=function(b,h,y){this.callbacks=b;var S=this;this.sdkVersion=new _.MC;this.channel=new d9M(_.Hq({destination:window,iframe:h,origin:(new URL(y.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var F=Vm;var a=pE(5);var P=new c7G;P=_.V7(P,1,1E4);a=_.pc(a,4,UIb,P);F(S,a);S.onAudioToggled(S.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){S.sdkVersion.resolve("")},1E4)};
_.z(TVn,kC);_.d=TVn.prototype;_.d.onAudioToggled=function(b,h){kC.prototype.onAudioToggled.call(this,b,h===void 0?!0:h);h=Vm;var y=pE(2),S=new tAN;b=_.D9(S,1,b);b=_.pc(y,3,UIb,b);h(this,b)};
_.d.onPause=function(){kC.prototype.onPause.call(this);Vm(this,pE(3))};
_.d.onResume=function(){kC.prototype.onResume.call(this);Vm(this,pE(4))};
_.d.returnNativeBenchmarkingMessage=function(b){var h=Vm,y=pE(6);var S=AQ(_.DN(b,Lv,1)?1:2);b=_.DN(b,Lv,1)?b:null;S=_.pc(S,5,Up,b);h(this,JQ(y,S))};
_.d.sendGameData=function(b){var h=Vm,y=pE(7);b=_.pc(y,5,UIb,b);h(this,b)};
_.d.sendStartGameFrameCapture=function(){Vm(this,pE(9))};
var EL=function(b,h,y){var S,F,a;return _.Z(function(P){if(P.nextAddress==1)return S=b.callbacks,F=S.onSdkCalled,a=h,P.yield(b.sdkVersion.promise,2);F.call(S,a,P.yieldResult,y);_.g3(P)})};
TVn.prototype.onMessage=function(){var b=this;return LAb(gJ,function(h){var y,S,F,a,P,K,n,X,u,O,N,t,R,I,U,p,e,E,Y,w,x,q,dI,L4,Rq,Xn,Ny,gI,YU,VN,Hb,vF,xU,Xa,rG,Wb,Xx,Bb,oq,kU,O7,io,cb,QW,vM,wG;return _.Z(function(oN){switch(oN.nextAddress){case 1:if(!GS7(h.data))return _.vX(Error("di")),oN.return();y=_.sV(h.data,1);_.r("enable_iframe_message_get_type_via_fields")&&(S=h.data,y=F=_.sV(S,1));switch(y){case 8:if(h.data.hasMetadata()){var uo=b.sdkVersion,dA=uo.resolve;var QN=h.data.getMetadata();QN=_.gQ(QN,
1);dA.call(uo,QN);clearTimeout(b.sdkVersionTimeoutId)}break;case 6:return oN.jumpTo(2);case 16:if(!_.IX(h.data,e0N,14,sp))return oN.return();a=_.kY(h.data,e0N,14,sp);(K=(P=b.callbacks).onGameFrameReceived)==null||K.call(P,a);return oN.return();case 17:if(!_.IX(h.data,J7P,15,sp))return oN.return();(X=(n=b.callbacks).onGameAudioReceived)==null||X.call(n,_.kY(h.data,J7P,15,sp));return oN.return();case 1:if(uo=_.kY(h.data,DI8,2,sp))switch(_.sV(uo,1)){case 1:b.callbacks.onFirstFrameReady();if(_.r("enable_network_request_logging_on_game_events")&&
_.DN(uo,BJ,4)){EL(b,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.cL(uo,BJ,4));break}EL(b,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(QN=(dA=b.callbacks).onGameReady)==null||QN.call(dA);if(_.r("enable_network_request_logging_on_game_events")&&_.DN(uo,BJ,4)){EL(b,"MINI_APP_SDK_API_GAME_READY",_.cL(uo,BJ,4));break}EL(b,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.IX(uo,WJ,3,IlW))b.callbacks.onResourceLoaded(_.kY(uo,WJ,3,IlW))}return oN.return();case 3:return oN.jumpTo(3);case 4:return oN.jumpTo(4);
case 2:return oN.jumpTo(5);case 9:return oN.jumpTo(6);case 10:return b.callbacks.onClick(),oN.return();case 5:return oN.jumpTo(7);case 11:if(!_.IX(h.data,zm,9,sp))return oN.return();u=_.kY(h.data,zm,9,sp);(N=(O=b.callbacks).onBenchmarkingMessageReceived)==null||N.call(O,u);uo=h.reply;dA=pE(1);QN=AQ(1);var vb=new zm;var fA=new Uint8Array(r8M(u,Y2(u,XR5,6))|0);vb=pK(vb,5,XR5,_.ee(fA,!1));QN=_.pc(QN,5,Up,vb);uo.call(h,JQ(dA,QN));return oN.return();case 12:return oN.jumpTo(8);case 13:return oN.jumpTo(9);
case 15:if(!_.r("enable_open_yt_content"))return h.reply(wNF),oN.return();if(!_.IX(h.data,pRM,12,sp))return h.reply(JQ(pE(1),AQ(2))),oN.return();uo=_.kY(h.data,pRM,12,sp);t=_.gQ(uo,1);b.callbacks.onOpenYTContent(t);h.reply(fEY);return oN.return();case 14:return oN.jumpTo(10);default:return oN.return()}oN.jumpTo(0);break;case 2:if(!_.IX(h.data,ep,5,sp))return oN.return();dA=h.data;uo=Y2(dA,sp,5);dA=dA.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;R=Gq8(dA,dA[_.je]|0,ep,uo)||ep[kaY]||(ep[kaY]=
Vej(ep));uo=_.NK(R,DG,1,_.tW());I=_.L(uo);U=I.next();case 12:if(U.done){oN.jumpTo(14);break}p=U.value;e=new _.Gn;e.level=_.sV(p,2)===1?"WARNING":"ERROR";E=kzY(p.getSource());return oN.yield(b.sdkVersion.promise,15);case 15:Y={source:E,sdkVersion:oN.yieldResult};_.PN(_.z4(p,6))!=null?(e.message=p.getMessage(),e.stack=_.gQ(p,5),Y.sdkErrorType=VOI(_.sV(p,6)),_.PN(_.z4(p,7))!=null&&(Y.sdkApi=EQ8(_.sV(p,7)))):e.stack=void 0;x=w=void 0;(x=(w=b.callbacks).onError)==null||x.call(w,{loggingError:e,metadata:Y});
U=I.next();oN.jumpTo(12);break;case 14:return oN.return();case 3:return _.WE(oN,16),uo=oN.yield,dA=b.callbacks,QN=dA.onSave,vb=_.kY(h.data,r7a,4,sp),vb=_.gQ(vb,1),uo.call(oN,QN.call(dA,vb),18);case 18:h.reply(fEY);_.Lz(oN,17);break;case 16:return q=_.C$(oN),dI=YG,L4=q,Rq=b.callbacks,Xn="MINI_APP_SDK_API_SAVE_DATA",oN.yield(b.sdkVersion.promise,19);case 19:dI(L4,Rq,Xn,oN.yieldResult),h.reply(wNF);case 17:return oN.yield(EL(b,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return oN.return();case 4:return _.WE(oN,
21),oN.yield(b.callbacks.onLoad(),23);case 23:Ny=oN.yieldResult;uo=h.reply;dA=pE(1);QN=AQ(1);vb=new r7a;vb=_.kb(vb,1,Ny);QN=_.pc(QN,3,Up,vb);uo.call(h,JQ(dA,QN));_.Lz(oN,22);break;case 21:return gI=_.C$(oN),YU=YG,VN=gI,Hb=b.callbacks,vF="MINI_APP_SDK_API_LOAD_DATA",oN.yield(b.sdkVersion.promise,24);case 24:YU(VN,Hb,vF,oN.yieldResult),h.reply(wNF);case 22:return oN.yield(EL(b,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return oN.return();case 5:_.WE(oN,26);b.callbacks.onSendHighScore(v0(_.kY(h.data,
YwP,3,sp).getValue()));h.reply(JQ(pE(1),AQ(1)));_.Lz(oN,27);break;case 26:return xU=_.C$(oN),Xa=YG,rG=xU,Wb=b.callbacks,Xx="MINI_APP_SDK_API_SEND_SCORE",oN.yield(b.sdkVersion.promise,28);case 28:Xa(rG,Wb,Xx,oN.yieldResult),h.reply(wNF);case 27:return oN.yield(EL(b,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return oN.return();case 6:if(!_.IX(h.data,Tvo,8,sp)){oN.jumpTo(30);break}uo=oN.yield;dA=_.kY(h.data,Tvo,8,sp);dA=_.sV(dA,1);return uo.call(oN,EL(b,EQ8(dA)),30);case 30:return oN.return();case 7:return uo=
h.reply,dA=pE(1),QN=AQ(1),vb=b.callbacks.getLanguage(),QN=pK(QN,4,Up,RP(vb)),uo.call(h,JQ(dA,QN)),oN.yield(EL(b,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return oN.return();case 8:if(!_.IX(h.data,sEb,10,sp))return oN.return();Bb=_.kY(h.data,sEb,10,sp);oq=b.callbacks;kU=oq.onSdkPerformanceUpdate;return oN.yield(b.sdkVersion.promise,33);case 33:return kU.call(oq,Bb,oN.yieldResult),oN.return();case 9:uo=h.data;dA=Y2(uo,sp,11);if(_.zq(_.z4(uo,dA))==null)return h.reply(JQ(pE(1),AQ(2))),oN.return();
O7=G4(h.data,11,sp);b.callbacks.onShareInviteCode(O7);h.reply(fEY);return oN.yield(EL(b,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return oN.return();case 10:if(_.IX(h.data,Nv8,13,sp)){oN.jumpTo(35);break}return oN.yield(b.callbacks.onShowMiniAppAd(2),36);case 36:return io=oN.yieldResult,h.reply(JQ(pE(1),WWG(io))),oN.yield(EL(b,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return oN.return();case 35:uo=_.kY(h.data,Nv8,13,sp);a:switch(_.sV(uo,1)){case 1:uo={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:uo={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:uo={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}cb=uo;QW=cb.adType;vM=cb.sdkApi;uo=oN.yield;dA=b.callbacks;QN=dA.onShowMiniAppAd;vb=_.kY(h.data,Nv8,13,sp);vb=_.gQ(vb,2);return uo.call(oN,QN.call(dA,QW,vb||void 0),38);case 38:return wG=oN.yieldResult,h.reply(JQ(pE(1),WWG(wG))),oN.yield(EL(b,vM),39);case 39:return oN.return()}})})};
var Vm=function(b,h){_.Z(function(y){b.channel.send(h);_.g3(y)})},TR=function(b,h,y){this.callbacks=b;
var S=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;b=d5j(h,(new URL(y.toString())).origin);this.gameSnacks=new rxW(b);this.gameSnacks.page.onReady(function(){S.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){S.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var F,a;(a=(F=S.callbacks).onGameReady)==null||a.call(F)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(F,a){try{S.callbacks.onSendHighScore(a)}catch(P){YG(P,S.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(F,a){var P;return _.Z(function(K){if(K.nextAddress==1)return _.WE(K,2),K.yield(S.callbacks.onSave(S.decoder.decode(a)),4);if(K.nextAddress!=2)return _.Lz(K,0);P=_.C$(K);YG(P,S.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return K.return()})});
this.gameSnacks.storage.onLoad(function(){var F,a;return _.Z(function(P){if(P.nextAddress==1)return _.WE(P,2),P.yield(S.callbacks.onLoad(),4);if(P.nextAddress!=2)return F=P.yieldResult,P.return(S.encoder.encode(F));a=_.C$(P);YG(a,S.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return P.return(S.encoder.encode(""))})});
this.gameSnacks.init()};
_.z(TR,kC);TR.prototype.onAudioToggled=function(b,h){kC.prototype.onAudioToggled.call(this,b,h===void 0?!0:h);var y;(y=this.gameSnacks)==null||y.audio.update(b)};
TR.prototype.onPause=function(){kC.prototype.onPause.call(this);var b;(b=this.gameSnacks)==null||b.game.pause()};
TR.prototype.onResume=function(){kC.prototype.onResume.call(this);var b;(b=this.gameSnacks)==null||b.game.resume()};var lEq=iSY,qfY=_.T(function(b){var h=b.data;var y=b.loadingProgress;var S=b.forPaused;b=_.L(_.pa("",void 0,"LYYTdd"));var F=b.next().value,a=b.next().value;b=_.L(_.pa(!1,void 0,"K0waae"));var P=b.next().value,K=b.next().value,n=[],X=function(){return"transform: scaleX("+(_.bn(y)||0)+")"},u=null,O=function(){return h()&&u!==null&&u!==void 0?u:u=h().showAnniversaryAnimation?6:lEq()};
_.Qi(function(){var I;if(h().timeOutMessages&&((I=h().timeOutMessages)==null?0:I.length)){u=null;I=_.L(n);for(var U=I.next();!U.done;U=I.next())clearTimeout(U.value);n.length=0;fc4(h().timeOutMessages,n,a,K)}},"BNu9j");
var N=function(){return!!h().persistentErrorMessageTitle},t=function(){return y!==void 0},R=function(){return h().title};
return _.M("yt-mini-splash-screen-view-model",{class:"miniAppSplashScreenViewModelHost"},_.M("div",{class:"miniAppSplashScreenViewModelLoadingScreen",role:"region",tabindex:0},_.M("div",{class:"miniAppSplashScreenViewModelBackgroundBase"}),_.M("div",{class:"miniAppSplashScreenViewModelBackgroundBlur",style:function(){var I,U=(I=h().backgroundImage)==null?void 0:I.sources,p;return(U==null?0:U.length)?"background-image: url("+((p=U[0])==null?void 0:p.url)+")":""}}),_.M("div",{class:"miniAppSplashScreenViewModelBackgroundScrim"}),
_.M(_.H,{cond:function(){return!N()&&!(S==null?0:S())},
then:function(){var I={};return _.M("div",{class:"miniAppSplashScreenViewModelLoadingScreenContent"},_.M("div",{class:"miniAppSplashScreenViewModelLoadingIcon"},_.M(_.vj,{className:"miniAppSplashScreenViewModelLoadingIconAnimation",animationName:function(){return"loading_animation_"+O()},
data:function(){var U="loading_animation_"+O();return{animationConfig:{name:U,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+U+".json",loop:!0,autoplay:!0}}}})),_.M("div",{class:"miniAppSplashScreenViewModelTimeoutMessageContainer"},_.M(_.H,{cond:R,
then:function(){return _.M("h3",{class:"miniAppSplashScreenViewModelTimeoutHeading"},R)}}),_.M("p",{class:_.P2("miniAppSplashScreenViewModelTimeoutMessage",(I.miniAppSplashScreenViewModelTimeoutMessageFadeOut=function(){return P()},I)),
"aria-live":"polite"},F),_.M(_.H,{cond:t,then:function(){return _.M("div",{class:"miniAppSplashScreenViewModelLoadingBarTrack"},_.M("div",{class:"miniAppSplashScreenViewModelLoadingBarSegment miniAppSplashScreenViewModelLoadingBarSegmentResourceAnimation",style:X}))}})))}}),_.M(_.H,{cond:N,
then:function(){return _.M("div",{class:"miniAppSplashScreenViewModelPersistentErrorContent"},_.M("h3",{class:"miniAppSplashScreenViewModelPersistentErrorMessageTitle"},function(){return h().persistentErrorMessageTitle}),_.M(_.H,{cond:function(){return!!h().persistentErrorMessageDescription},
then:function(){return _.M("p",{class:"miniAppSplashScreenViewModelPersistentErrorMessageDescription"},function(){return h().persistentErrorMessageDescription})}}))}}),_.M(_.H,{cond:S,
then:function(){return _.M("div",{class:"miniAppSplashScreenViewModelPauseContent"},_.M("img",{class:"miniAppSplashScreenViewModelPauseIcon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.M("h3",{class:"miniAppSplashScreenViewModelPauseMessage"},R))}})))},"Rf");var xAX=new _.ca("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var QPY=MU;MU=function(b){function h(y){if(y){var S,F;(S=y.__spec)==null||(F=S.didUnmount)==null||F.call(S);for(S=0;S<y.childNodes.length;S++)h(y.childNodes[S])}}
QPY==null||QPY(b);pt(function(){for(var y=0;y<b.length;y++)h(b[y])})};var mAY=_.T(function(b){var h=b.data;var y=b.score;var S=b.formattedScore;var F=b.onScoreChanged;var a=b.isEmbeddedInWebview;var P=_.MS("yt-mini-app-score-button-view-model"),K=function(){var t;return _.c(h==null?void 0:(t=h())==null?void 0:t.buttonViewModel,_.cA)},n=function(){var t;
return(y==null?void 0:y())||Number(h==null?void 0:(t=h())==null?void 0:t.lastScore)||0},X=function(){var t;
return(S==null?void 0:S())||((t=K())==null?void 0:t.title)||""},u,O=1;
if(b=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))b=Number(b),O=isNaN(b)?1:b/100;_.Qi(function(){F==null||F(n());var t;var R=_.YS((t=K())==null?void 0:t.onTap);if(R){t=_.c(R,SA8);var I,U,p;t=_.c(t==null?void 0:(I=t.panelLoadingStrategy)==null?void 0:(U=I.inlineContent)==null?void 0:(p=U.dialogViewModel)==null?void 0:p.customContent,tpa)}else t=void 0;if(I=t)I.score=X()},"Aekez");
b=_.Zv(function(){var t,R,I=h==null?void 0:(t=h())==null?void 0:(R=t.loggingDirectives)==null?void 0:R.trackingParams;I&&_.QG(_.H9().resolve(_.Le),I);return!1});
_.wg(function(){if(P.value){var t=P.value.querySelector("button"),R=K();t&&R&&wOF(t,R);_.NS("yt-share-playable-with-high-score",function(){var I=n().toString(),U=h==null?void 0:h().onShareHighScoreCommand,p=h==null?void 0:h().highScoreShareClientParamIdentifier,e=a==null?void 0:a();U&&(e?(p=new E9a,I=_.kb(p,2,I),so(U,I.JSC$12712_serializeBinary())):p&&(_.H9().resolve(xAX).clientParams.set(p,{miniAppClientParams:{highScore:I}}),IcY(U,!1)))})}});
var N=function(){var t=K();t&&(y==null?0:y())&&t.accessibilityText&&(t.accessibilityText=t.accessibilityText.replace(u,X()));u=X();return{numberValue:n(),numberText:X(),heightPx:36,fontSizeMultiplier:O,shouldAnimate:!(y==null||!y())&&!0}};
return _.M("yt-mini-app-score-button-view-model",{class:function(){var t={};return _.AB("miniAppScoreButtonViewModelHost",(t.miniAppScoreButtonViewModelIsVisible=n()!==0,t))},
el:P,"on:click":b},c98(!1,function(){return _.M("span",{style:"display:none;"},n)}),_.M(_.rC,{data:function(){var t;
return h==null?void 0:(t=h())==null?void 0:t.buttonViewModel}},{buttonViewModel:function(t){return _.M(_.EG,{data:t.data,
animatedTextProps:N})}}))},"Tf");var S_N=_.T(function(b){var h,y=(h=_.Wd("yt-mini-app-is-theater-mode-enabled"))!=null?h:!1,S=_.r("enable_playable_container_save_button"),F=_.r("enable_play_next_destination_page_in_toolbar");h={};return _.M("ytm-mini-app-top-bar-view-model",null,_.M("div",{class:_.P2("yt-mini-app-top-bar-view-model",(h["yt-mini-app-top-bar-view-model--mobile"]=!1,h["yt-mini-app-top-bar-view-model--desktop"]=!0,h))},_.M("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.M(_.H,{cond:function(){var a;return!!b.data().backButtonEdu&&
!((a=b.isExitMiniAppSeen)==null?0:a.call(b))},
then:function(){return _.M(_.rC,{data:function(){return b.data().backButtonEdu}},{buttonViewModel:_.EG})},
else:function(){return _.M(_.rC,{data:function(){return b.data().backButton}},{buttonViewModel:_.EG})}}),_.M(_.H,{cond:function(){return b.data().viewAllButton&&!0},
then:function(){return _.M(_.rC,{data:function(){return b.data().viewAllButton}},{buttonViewModel:_.EG})}}),_.M(_.H,{cond:function(){return b.data().title&&!0},
then:function(){return _.M("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return b.data().title})}})),_.M("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.M(_.H,{cond:function(){var a;
return(a=b.isDesktopPlayPage)==null?void 0:a.call(b)},
then:function(){return _.M(_.OW,null,_.M(vFd,{highScoreButton:function(){return b.data().highScoreButton},
score:b.score,formattedScore:b.formattedScore,onScoreChanged:b.onScoreChanged,isEmbeddedInWebview:b.isEmbeddedInWebview}),_.M(bcY,{enableSaveButton:function(){return _.bn(S)},
saveButton:function(){return b.data().saveButton},
isSaved:b.isSaved,onSaveToggled:function(){return b.onSaveToggled}}),_.M(h2Y,{menuButton:function(){return b.data().menuButton}}))},
else:function(){return _.M(_.H,{cond:function(){return!1},
then:function(){return _.M(_.rC,{data:function(){return b.data().playPageButton}},{buttonViewModel:function(a){return _.M(_.EG,{data:a.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.M(vFd,{highScoreButton:function(){return b.data().highScoreButton},
score:b.score,formattedScore:b.formattedScore,onScoreChanged:b.onScoreChanged,isEmbeddedInWebview:b.isEmbeddedInWebview})}})}})),_.M("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.M(_.rC,{data:function(){return b.data().muteButton}},{toggleButtonViewModel:function(a){var P=a.data;
return _.M(_.Ke,{data:function(){var K,n;return Object.assign({},P(),{isToggled:(n=(K=b.isAudioEnabled)==null?void 0:K.call(b))!=null?n:!0})},
onToggle:b.onAudioToggled,useOutlinedIcon:!0})}}),_.M(_.rC,{data:function(){return b.data().theatreModeButton}},{toggleButtonViewModel:function(a){var P=a.data;
return _.M("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.M(_.Ke,{data:function(){return Object.assign({},P(),{isToggled:y})},
useOutlinedIcon:!0}))}}),_.M(yxx,{fullscreenButton:function(){return b.data().fullscreenButton}}),_.M(_.H,{cond:function(){return _.bn(F)&&b.data().viewAllButton&&!1},
then:function(){return _.M(_.rC,{data:function(){return b.data().viewAllButton}},{buttonViewModel:_.EG})}}),_.M(_.H,{cond:function(){var a;
return!((a=b.isDesktopPlayPage)==null?0:a.call(b))},
then:function(){return _.M(_.OW,null,_.M(bcY,{enableSaveButton:function(){return _.bn(S)},
saveButton:function(){return b.data().saveButton},
isSaved:b.isSaved,onSaveToggled:function(){return b.onSaveToggled}}),_.M(h2Y,{menuButton:function(){return b.data().menuButton}}))}}))))},"Uf");
S_N.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var h2Y=_.T(function(b){return _.M(_.rC,{data:b.menuButton},{buttonViewModel:_.EG})},"Vf"),bcY=_.T(function(b){var h=b.enableSaveButton;
var y=b.saveButton;var S=b.isSaved;var F=b.onSaveToggled;return _.M(_.H,{cond:function(){return h()&&!(y==null||!y())},
then:function(){return _.M(_.rC,{data:function(){var a=_.c(y==null?void 0:y(),_.zc),P;return{toggleButtonViewModel:Object.assign({},a,{isToggled:(P=S==null?void 0:S())!=null?P:!(a==null||!a.isToggled)})}}},{toggleButtonViewModel:function(a){return _.M(_.Ke,{data:a.data,
onToggle:F})}})}})},"Wf"),vFd=_.T(function(b){var h=b.highScoreButton;
var y=b.score;var S=b.formattedScore;var F=b.onScoreChanged;var a=b.isEmbeddedInWebview;return _.M(_.rC,{data:h},{miniAppScoreButtonViewModel:function(P){return _.M(mAY,{data:P.data,score:y,formattedScore:S,onScoreChanged:F,isEmbeddedInWebview:a})}})},"Xf"),yxx=_.T(function(b){b=b.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.M(_.OW,null):_.M(_.rC,{data:b},{buttonViewModel:_.EG})},"Yf");_.FAf=_.T(function(b){var h=b.data;var y=b.extractOverlay;b={};return _.M("player-disclosure-view-model",{class:_.P2("ytwPlayerDisclosureViewModelHost",(b.ytwPlayerDisclosureViewModelExtractOverlay=function(){return y==null?void 0:y()},b))},_.M(_.YN,{command:function(){return h().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.M(_.H,{cond:function(){return h().iconName},
then:function(S){return _.M(_.Xv,{icon:S})}}),_.M(_.H,{cond:function(){return h().iconName?void 0:h().image},
then:function(S){return _.M(_.mI,{data:S,alt:function(){return h().title||""},
className:"ytwPlayerDisclosureViewModelImage"})}}),_.M(_.H,{cond:function(){return h().title||h().secondaryText},
then:function(){return _.M("div",null,_.M("div",{class:"ytwPlayerDisclosureViewModelTitle"},function(){return h().title}),_.M("div",{class:"ytwPlayerDisclosureViewModelText"},function(){return h().text}),_.M(_.H,{cond:function(){return h().secondaryText},
then:function(S){return _.M(_.OW,null,_.M("div",{class:"ytwPlayerDisclosureViewModelDivider"}),_.M("div",{class:"ytwPlayerDisclosureViewModelText"},S))}}))},
else:function(){return _.M("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return h().text})}}),_.M(_.H,{cond:function(){return h().showEndChevron},
then:function(){return _.M(_.Xv,{icon:"CHEVRON_RIGHT"})}})))},"Zf");_.aLY=new _.ca("DESKTOP_CURRENT_PAGE");var KAA=_.T(function(b){var h=b.data;var y=_.r("force_active_time_logging_webview"),S=!1,F=new pNA,a=void 0,P=void 0,K=_.H9().resolve(UAx),n=new Rdq,X=void 0,u=void 0,O=[],N=void 0,t=void 0,R=!1,I=!1,U=!1,p=!1,e=new _.MC,E=_.H9().resolve(xAX),Y=_.H9().resolve(_.g0),w=_.H9().resolve(_.XS(d7)),x,q=(x=_.H9().resolve(_.XS(_.aLY)))==null?void 0:x.getCurrentPage(),dI=!1,L4=0,Rq=function(Se){Se.preventDefault();return Se.returnValue=""},Xn,Ny=_.L(_.pa(!((Xn=_.Wd("yt-mini-app-is-audio-enabled"))!=null&&!Xn),
void 0,"WNrYAe")),gI=Ny.next().value,YU=Ny.next().value,VN,Hb=_.L(_.pa(!((VN=_.Wd("exit-mini-app-seen-state"))==null||!VN),void 0,"Ofm4dd")),vF=Hb.next().value,xU=Hb.next().value,Xa=_.L(_.pa(!1,void 0,"xMsPk")),rG=Xa.next().value,Wb=Xa.next().value,Xx=_.L(_.pa(void 0,void 0,"V675h")),Bb=Xx.next().value,oq=Xx.next().value,kU=_.L(_.pa(void 0,void 0,"x9B2v")),O7=kU.next().value,io=kU.next().value,cb=_.L(_.pa(!0,void 0,"eAgABf")),QW=cb.next().value,vM=cb.next().value,wG=_.L(_.pa(!1,void 0,"ek28lf")),
oN=wG.next().value,uo=wG.next().value,dA=_.L(_.pa(!1,void 0,"Q6LlPd")),QN=dA.next().value,vb=dA.next().value,fA=_.L(_.pa(void 0,void 0,"V5Rl1c")),bJ=fA.next().value,ua=fA.next().value,kF=_.L(_.pa(0,void 0,"kN1acc")),oa=kF.next().value,PB=kF.next().value,lo=_.ZR("mini-app-container-view-model"),IP=_.L(_.pa(!1,void 0,"HzkXed")),j2=IP.next().value,Jg=IP.next().value,uR=function(){return h().isEmbeddedInWebview},Yb=function(){return h().hasPlayNextShelf};
_.fl(function(){var Se,LA=(Se=_.c(h().contentDisclosure,sD8))==null?void 0:Se.animationParams;if((LA==null?0:LA.shouldHide)&&(LA==null?0:LA.hideDelaySecs)){var DE=setTimeout(function(){Jg(!0)},LA.hideDelaySecs*1E3);
_.m2(function(){clearTimeout(DE)})}});
_.NS("yt-page-type-changed",function(Se){if(_.r("enable_is_mini_app_page_active_bugfix"))Se.detail.newPageSubtype==="mini_app"&&Se.detail.newPageType==="ytd-browse"||!QW()||vL();else if(Se=_.ml()==="mini_app",Se!==QW())if(vM(Se),Se){var LA;Se=(LA=h().playableId)==null?void 0:LA.toString();Se!==void 0&&window.location.href.includes(Se)&&!I&&(p=!0,B0(),cE.value&&iq(cE.value))}else Se||vL()});
_.NS("yt-action",function(Se){Se.detail.actionName==="yt-engagement-panel-visible-changed"&&Se.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&Se.detail.args[2]==="PAmini_app_panel"&&vL();_.r("enable_is_mini_app_page_active_bugfix")?Se.detail.actionName==="yt-history-load"&&!QW()&&(q==null?0:q.active)?(vM(!0),B0(),cE.value&&iq(cE.value)):Se.detail.actionName==="yt-history-load"&&QW()&&!h().isEmbeddedInWebview&&za():QW()&&Se.detail.actionName==="yt-history-load"&&(p?p=!1:h().isEmbeddedInWebview||
za())});
_.m2(function(){Vx()});
_.Qi(function(){B0()},"gT8qHf");
var B0=function(){var Se=h().playableId,LA=h().localReleaseId,DE=h().derivedDeviceInterface;if(I)_.vX(new _.Gn("[MiniAppContainerViewModel] onEnter was called more than once"));else{I=!0;a=new ZAx(Se,LA,DE,document.visibilityState==="visible");XNX(a);P=new sPF(Se);d9A(K,Se);zd2(n,{showMiniAppAdCommand:h().showMiniAppAdCommand,isEmbeddedInWebview:h().isEmbeddedInWebview,playLogger:a});jU5()&&(t=document.body.style.backgroundColor,_.vq(document.body,"background-color","black"));ky();oL();e=new _.MC;
if(h().isEmbeddedInWebview){if(Se=(new URLSearchParams(window.location.search)).get("postPlayNonce"))M2Y(a,Se),dI=!0;F.initialize({onAudioStateLoaded:function(F9){qy(F9)},
onMuteMiniApp:function(){qy(!1)},
onUnmuteMiniApp:function(){qy(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(F9){dI||(M2Y(a,F9),dI=!0)},
confirmExitMiniApp:function(){var F9,BB,FR;return _.Z(function(yi){if(yi.nextAddress==1)return h().confirmExitMiniAppCommand?yi.yield(Promise.race([e.promise,Promise.resolve(!1)]),2):yi.return();(F9=yi.yieldResult)?!h().confirmExitMiniAppCommandEdu||(FR=(BB=vF)==null?void 0:BB())!=null&&FR?vo(h().confirmExitMiniAppCommand):(vo(h().confirmExitMiniAppCommandEdu),_.Bd("exit-mini-app-seen-state","true",2592E6)):vo(h().closeMiniAppCommand);_.g3(yi)})},
onNativeBenchmarkingMessageReceived:function(F9){F9=uiW(_.cMr(F9));if(_.IX(F9,_.Cw,3,nu8)){var BB=_.kY(F9,_.Cw,3,nu8),FR=BV5();var yi=v0(FR.getSeconds())-v0(BB.getSeconds());BB=_.rB(FR,2)-_.rB(BB,2);yi<0&&BB>0?(yi+=1,BB-=1E9):yi>0&&BB<0&&(--yi,BB+=1E9);yi=(new Lv).setSeconds(yi);yi=_.SP(yi,2,_.KA(BB),0);_.U_(F9,1,yi)}var VE;(VE=u)==null||VE.returnNativeBenchmarkingMessage(F9)},
multiplayer3pAckStateLoaded:function(F9){za(F9)},
exitMiniAppSeenStateLoaded:function(F9){h().confirmExitMiniAppCommandEdu&&xU(F9)},
onNavigateToNewMiniApp:function(){vo(h().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(F9){F9=new URLSearchParams(F9);var BB=void 0;F9.has("invite_code")&&(BB=new z0P,F9=F9.get("invite_code"),BB=_.kb(BB,1,F9));if(F9=BB){var FR;(FR=u)==null||FR.sendGameData(F9)}},
onPauseMiniApp:function(){S=!0;BF()},
onResumeMiniApp:function(){S=!0;Tk()},
onPausePlayableDialog:function(){U=!0;BF()},
onResumePlayableDialog:function(){U=!1;Tk()},
onAdFinished:function(F9){n.onAdFinished(F9)}});
h().showMultiplayer3pConsentDialogCommand||e.resolve(!0);vo(h().onContainerReadyCommand)}else M2Y(a),e.resolve(!0);YfX(P,oFN(a));oFN(a).then(function(F9){F9={miniAppPlayData:{postPlayNonce:F9}};var BB,FR=(BB=h().loggingDirectives)==null?void 0:BB.trackingParams;FR&&_.rU().stateChanged(FR,F9)});
Se=h().showSignInDialogCommand;!JGf()&&Se&&(_.Bd("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),vo(Se));h().confirmExitMiniAppCommand&&w&&(Se=zP5(h().confirmExitMiniAppCommand))&&(w.customConfirmationCommand=Se)}},Vx=function(){t&&_.vq(document.body,"background-color",t);
R=!1;N&&N.release();P.flush().catch(function(Se){_.vX(Se)});
K.flush().catch(function(Se){_.vX(Se)});
uxP(a);V4();u=void 0;jRN(E)},vL=function(){vM(!1);
Vx();Wb(!1);ua(void 0);oq(void 0);io(void 0);L4=0;PB(0);I=!1},BF=function(){var Se;
(Se=u)==null||Se.onPause();N&&N.release();P.flush().catch(function(LA){_.vX(LA)});
K.flush().catch(function(LA){_.vX(LA)});
HAA(a);uo(!0)},Tk=function(){var Se;
(Se=u)==null||Se.onResume();oL();Se=a;Se.isForeground=!0;YC(Se,"PLAY_EVENT_TYPE_PLAY_RESUME");uo(!1)},qy=function(Se){var LA;
(LA=u)==null||LA.onAudioToggled(Se);YU(Se)},za=function(Se){h().showMultiplayer3pConsentDialogCommand&&(h().isEmbeddedInWebview&&Se!==void 0&&e.resolve(Se),!Se&&_.ml()==="mini_app"&&vo(h().showMultiplayer3pConsentDialogCommand))},rA=function(){var Se,LA,DE,F9;
return _.Z(function(BB){if(BB.nextAddress==1){!h().isLivestream||h().disableVideoCapture||(Se=u)!=null&&Se.sendStartGameFrameCapture();LA=(new URL(window.location.href)).searchParams;if(LA.has("invite_code")){var FR=new z0P,yi=LA.get("invite_code");DE=_.kb(FR,1,yi);(F9=u)==null||F9.sendGameData(DE)}rG()||(Wb(!0),FR=a,FR.state!==1?_.vX(new _.Gn("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+Paa[FR.state])):(_.c9("mini_app_ids_without_game_ready").includes(FR.JSC$17263_miniAppId)&&(FR.gameReady=
!0),FR.state=2,FR.beforeReady=!1,sL(FR,"ma_ffr"),YC(FR,"PLAY_EVENT_TYPE_PLAY_READY")));return BB.yield(e.promise,2)}vo(h().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();h().isEmbeddedInWebview||za();_.g3(BB)})},zp=function(){var Se=a;
Se.gameReady=!0;sL(Se,"ma_gr")},BN=function(Se){var LA;
return _.Z(function(DE){if(DE.nextAddress==1)return _.WE(DE,2),DE.yield(Gqd(P,Se),4);if(DE.nextAddress!=2)return _.Lz(DE,0);LA=_.C$(DE);vo(h().showSavingErrorPopupCommand);throw LA;})},U7=function(){var Se,LA;
return _.Z(function(DE){if(DE.nextAddress==1)return _.WE(DE,2),DE.yield(TAE(P),4);if(DE.nextAddress!=2)return Se=DE.yieldResult,DE.return(Se);LA=_.C$(DE);vo(h().showLoadingErrorDialogCommand);throw LA;})},D8=function(Se){a.logError(Se)},Vf=function(Se,LA,DE){NAF(a,Se,LA,DE)},Lc=function(Se,LA){rXP(a,Se,LA)},NP=function(){!y&&h().isEmbeddedInWebview||_.Ni();
OAf(a,!0);R||(window.addEventListener("beforeunload",Rq,{capture:!0}),R=!0)},eF=function(Se){var LA,DE,F9,BB,FR,yi,VE;
return _.Z(function(jV){if(jV.nextAddress==1)return K&&(!X||X<Se)&&Se>0?jV.yield($9f(K,Se),3):jV.jumpTo(0);LA=jV.yieldResult;DE=_.L(LA);F9=DE.next().value;BB=DE.next().value;FR=F9;yi=BB;((VE=FR)==null?0:VE.displayString)&&yi&&(oq(yi),io(FR.displayString));_.g3(jV)})},i_=function(Se){var LA=h().onBenchmarkingMessageReceivedCommand;
if(LA){var DE=BV5();_.pc(Se,3,nu8,DE);so(LA,OGo(Se))}},Y$=function(){var Se=h().iapPurchaseCommand;
Se&&so(Se)},u5=function(Se){var LA=h().onGameFrameReceivedCommand;
if(LA){var DE=new jg;var F9=new XJ8;var BB=ek(Se,1);F9=_.GE(F9,1,BB);Se=_.gQ(Se,2);Se=_.kb(F9,2,Se);DE=_.U_(DE,2,Se);so(LA,NJ8(DE))}},SK=function(Se){var LA=h().onGameAudioDataReceivedCommand;
if(LA){var DE=new jg;var F9=new uVG;Se=_.gQ(Se,1);F9=_.kb(F9,1,Se);DE=_.U_(DE,4,F9);so(LA,NJ8(DE))}},IA=function(){var Se=new URLSearchParams(window.location.search);
if(h().isEmbeddedInWebview&&Se&&Se.get("override_hl")==="true"&&Se.get("hl"))return Se.get("hl");Se=document.documentElement.lang;return Se!==""?Se:iS},b_=function(Se){var LA=h().onShareInviteCodeCommand;
if(LA)if(h().isEmbeddedInWebview){var DE=new E9a;Se=_.kb(DE,1,Se);so(LA,fwW(Se))}else DE=h().inviteCodeShareClientParamIdentifier,E.clientParams.set(DE,{miniAppClientParams:{inviteCode:Se}}),vo(LA)},DW=function(Se){var LA,DE,F9;
return _.Z(function(BB){if(BB.nextAddress==1)return LA=h().onMiniAppOpenYtContentRequested,K&&_.r("enable_open_yt_content")&&LA?BB.yield(LAN(K,Se),3):BB.jumpTo(0);DE=BB.yieldResult;if(DE==="OK")if(h().isEmbeddedInWebview){var FR=new ZE8;F9=pK(FR,2,d2,RP(Se));so(LA,nL8(F9))}else Y.clientData.set("video_id",Se),vo(LA);_.g3(BB)})},iK=function(Se){L4+=_.rB(Se,3);
Se=Math.min(Math.log(1+L4/15E6*9)/Math.log(10),.99);PB(Se);bF(Se)},bF=_.se(function(Se){var LA=h().updateLoadingProgressCommand;
if(LA){var DE=new ZE8;Se=pK(DE,3,d2,_.hX(Se));so(LA,nL8(Se))}},100),GI=function(Se,LA){switch(Se){case 1:return IEd(n);
case 2:return BA2(n);case 3:return AXa(n,LA);default:return Promise.reject(Error("ei"))}},oL=function(){var Se,LA;
((Se=_.Pv8())==null?void 0:(LA=Se.wakeLock)==null?void 0:LA.request)!=null&&_.Pv8().wakeLock.request("screen").then(function(DE){N=DE}).catch(function(){})},cE=_.MS("iframe");
_.Qi(function(){h().isSupportedCountry&&(JGf()||_.r("enable_sign_in_promo")||!h().showSignInDialogCommand?cE.value&&iq(cE.value):vo(h().onMiniAppReadyCommand))},"EQIAIf");
var t6=function(){return _.M("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return rG()?0:-1},
title:function(){return h().title},
el:cE})},iq=function(Se,LA){LA=LA===void 0?!1:LA;
var DE=fw();if(DE&&(LA||DE.toString()!==Se.getAttribute("src"))){u=Gzn(h().source,{isAudioEnabled:gI,onFirstFrameReady:rA,onGameReady:zp,onSave:BN,onLoad:U7,onError:D8,onSdkCalled:Vf,onSdkPerformanceUpdate:Lc,onClick:NP,onSendHighScore:eF,onBenchmarkingMessageReceived:i_,getLanguage:IA,onShareInviteCode:b_,onResourceLoaded:iK,onOpenYTContent:DW,onShowMiniAppAd:GI,onGameFrameReceived:u5,onGameAudioReceived:SK,onMakeIapPurchase:Y$},Se,DE);zK(Se,"load",function(){sL(a,"ma_il");zK(Se,"load",function(){iq(Se,
!0)})});
var F9=_.tj("mini_app_container_iframe_src_update_delay_ms");h().isEmbeddedInWebview&&!LA&&F9>0?URF(Se,DE,F9):_.Fg(Se,DE)}},fw=function(){var Se=h().url;
if(Se&&(Se=_.QV(Se),Se!==null)){if(h().source&&h().source==="MINI_APP_SOURCE_GAMESNACKS")Se=_.zP(Se,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.r("enable_origin_query_parameter_bugfix")){var LA=_.pW(_.hiI(Se.toString()));LA=new URLSearchParams(LA||"");LA.set("origin",window.location.origin);LA=LA.toString();Se=_.s_(Se).toString();Se=_.gf(m5W.exec(Se)[0]+(LA.trim()?"#"+LA:""))}return Se}},f0=function(){var Se={};
Se=_.P2("yt-mini-app-container-view-model__loading-screen",(Se["yt-mini-app-container-view-model__loading-screen--fade-out"]=rG,Se));var LA=function(){return rG()?1:oa()};
return _.M("div",{class:Se},_.M(_.rC,{data:function(){return h().splashScreen}},{miniAppSplashScreenViewModel:function(DE){return _.M(qfY,{data:DE.data,
loadingProgress:LA})}}))},T4=function(){var Se={};
return _.M("div",{class:_.P2("yt-mini-app-container-view-model__pause-interstitial",(Se["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!oN()},Se["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=oN,Se))},_.M(_.rC,{data:function(){return h().splashScreen}},{miniAppSplashScreenViewModel:function(LA){return _.M(qfY,{data:LA.data,
forPaused:!0})}}))},ky=function(){O=[];
O.push(_.W3(window,"visibilitychange",function(){U||S&&uR()||(document.visibilityState==="visible"?Tk():BF())}));
O.push(_.W3(window,"pagehide",function(){Vx()}));
O.push(_.W3(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&lo.value.dispatchEvent(new Event("tap"))},0)}));
O.push(_.W3(lo.value,"pointerdown",function(){OAf(a,!1)},!0));
O.push(_.W3(lo.value,"pause",function(){U=!0;BF()}));
O.push(_.W3(lo.value,"play",function(){U=!1;Tk()}));
O.push(_.W3(lo.value,"exit",function(){Vx()}));
var Se=navigator.keyboard,LA=Se&&Se.lock;O.push(_.W3(window,MsN,function(){vb(X2G());X2G()?(h().hasPlayNextShelf&&wc("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),E6("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),LA&&Se.lock(["Escape"])):(h().hasPlayNextShelf&&E6("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),wc("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),LA&&Se.unlock())}));
h().showMultiplayer3pConsentDialogCommand&&O.push(_.W3(window,"yt-playables-ack-3p-data-usage",function(){PJd(K)}));
h().confirmExitMiniAppCommandEdu&&O.push(_.W3(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.Bd("exit-mini-app-seen-state","true",2592E6)}));
h().onGameAudioDataReceivedCommand&&O.push(_.W3(window,"message",function(DE){DE=DE.event_;var F9,BB=(F9=cE.value)==null?void 0:F9.src;if(BB&&DE.origin===(new URL(BB)).origin&&DE.data&&DE.data.type==="GAME_AUDIO"&&DE.data.audio&&DE.data.audio.length>0)if(_.r("enable_sending_unwrapped_game_audio_as_serialized_metadata"))AGn(h().onGameAudioDataReceivedCommand,DE.data.audio);else{var FR=new FileReader;FR.onload=function(){var yi=new jg;var VE=new uVG;VE=_.kb(VE,1,FR.result);yi=_.U_(yi,4,VE);so(h().onGameAudioDataReceivedCommand,
NJ8(yi))};
FR.readAsDataURL(new Blob([DE.data.audio]))}}))},V4=function(){O.forEach(function(Se){D1(Se)});
window.removeEventListener("beforeunload",Rq,{capture:!0})},vo=function(Se){Se&&IcY(Se,h().isEmbeddedInWebview||!1)},E6=function(Se,LA){Se=_.L(lo.value.getElementsByClassName(Se));
for(var DE=Se.next();!DE.done;DE=Se.next())DE.value.classList.add(LA)},wc=function(Se,LA){Se=_.L(lo.value.getElementsByClassName(Se));
for(var DE=Se.next();!DE.done;DE=Se.next())DE.value.classList.remove(LA)};
return function(){var Se={};Se=_.P2("yt-mini-app-container-view-model",(Se["yt-mini-app-container-view-model--desktop"]=!0,Se["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return h().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},Se["yt-mini-app-container-view-model--ios-web-view"]=jU5(),Se["yt-mini-app-container-view-model--no-top-bar"]=function(){return!h().topBar},Se["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return h().hasPlayNextShelf},Se["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return h().hasPlayNextShelf},Se["yt-mini-app-container-view-model--show-peek-below"]=function(){return!QN()&&h().hasPlayNextShelf},Se));
var LA={};LA=_.P2("yt-mini-app-container-view-model__content",(LA["yt-mini-app-container-view-model__content--desktop-content"]=!0,LA["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return h().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},LA["yt-mini-app-container-view-model--desktop-play-page"]=function(){return h().hasPlayNextShelf},LA));
return _.M("mini-app-container-view-model",{el:lo},_.M("div",{class:Se},_.M(_.H,{cond:function(){return h().topBar&&!QN()},
then:function(){return _.M(_.rC,{data:function(){return h().topBar}},{miniAppTopBarViewModel:function(DE){return _.M(S_N,{data:DE.data,
isAudioEnabled:gI,onAudioToggled:function(F9){qy(F9)},
score:Bb,formattedScore:O7,onScoreChanged:function(F9){X=F9},
isEmbeddedInWebview:uR,isSaved:bJ,onSaveToggled:function(F9){ua(F9)},
isExitMiniAppSeen:vF,isDesktopPlayPage:Yb})}})}}),_.M("div",{class:LA},_.M(_.H,{cond:QW,
then:function(){return t6()}}),_.M(_.H,{cond:function(){return h().isLivestream},
then:function(){return T4()}}),_.M(_.H,{cond:function(){return!h().isEmbeddedInWebview},
then:function(){return f0()}}),_.M(_.rC,{data:function(){return h().contentDisclosure}},{playerDisclosureViewModel:function(DE){DE=DE.data;
var F9={};return _.M("div",{class:_.P2("yt-mini-app-container-view-model__content-disclosure-overlay",(F9["yt-mini-app-container-view-model__content-disclosure-overlay--hidden"]=j2,F9))},_.M(_.FAf,{data:DE}))}}))))}()},"cg");
KAA.idomCompat=!0;_.yd(KAA,"mini-app-container-view-model",{props:{data:_.D4}});var ZcA=_.T(function(b){var h=b.data;return _.M("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.M("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.Zv(function(){var y=h().onTap;y&&_.Va(y)})},_.M(_.H,{cond:function(){return h().icon},
then:function(y){return _.M(_.Xv,{icon:function(){return y().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.M("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return h().title})))},"dg");
ZcA.idomCompat=!0;var o$2=_.T(function(b){var h=_.ZR("div"),y=_.L(_.pa(void 0,void 0,"dg3xff")),S=y.next().value,F=y.next().value;y=_.L(_.pa(void 0,void 0,"AgHNfc"));var a=y.next().value,P=y.next().value;y=_.L(_.pa(void 0,void 0,"fuTKCc"));var K=y.next().value,n=y.next().value,X=function(){var p=S();return p!==void 0?Math.abs(p):void 0},u=function(){var p=X();
return p===void 0||p<=3},O=function(){var p=X();
var e=a(),E=K();p=p!==void 0&&e!==void 0&&E!==void 0?e-E-p:void 0;return p===void 0||p<=3},N=function(p){h.value&&h.value.scrollBy({top:0,
left:(_.QC("HTML_DIR")==="rtl"?-1:1)*p*h.value.clientWidth,behavior:"smooth"})},t=function(){var p;
F((p=h.value)==null?void 0:p.scrollLeft);var e;P((e=h.value)==null?void 0:e.scrollWidth);var E;n((E=h.value)==null?void 0:E.clientWidth)},R=function(){N(-.5)},I=function(){N(.5)};
y=_.Zv(function(){t()});
_.fl(function(){t();if(h.value&&window.ResizeObserver){var p=new ResizeObserver(t);p.observe(h.value);_.m2(function(){p.disconnect()})}});
var U={};return _.M("yt-sponsorships-scrollable-shelf",{class:_.P2("ytdSponsorshipsScrollableShelfHost",b.className)},_.M("div",{class:_.P2("ytdSponsorshipsScrollableShelfContent",(U.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return b.data().previousButton&&b.data().nextButton&&!u()&&!O()},U.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return b.data().previousButton&&!u()&&O()},U.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return b.data().nextButton&&
u()&&!O()},U)),
el:h,"on:scroll":y},b.children),_.M(_.H,{cond:function(){return!u()},
then:function(){return _.M(_.rC,{data:function(){return b.data().previousButton}},{buttonViewModel:function(p){return _.M(_.EG,{data:p.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:R})}})}}),_.M(_.H,{cond:function(){return!O()},
then:function(){return _.M(_.rC,{data:function(){return b.data().nextButton}},{buttonViewModel:function(p){return _.M(_.EG,{data:p.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:I})}})}}))},"fg");
o$2.idomCompat=!0;var n$d=_.T(function(b){var h=b.data;b={};return _.M("yt-sponsorships-hub",{class:_.P2("ytdSponsorshipsHubHost",(b.ytdSponsorshipsHubHostIndented=function(){return h().indented},b))},_.M("div",{class:"ytdSponsorshipsHubHeader"},_.M("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.M("div",{class:"ytdSponsorshipsHubAvatar"},_.M(_.rC,{data:function(){return h().avatar}},{avatarViewModel:_.OX})),_.M(_.H,{cond:function(){return h().badgeImage},
then:function(y){return _.M("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.M("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.M("div",{class:"ytdSponsorshipsHubBadge"},_.M(_.mI,{data:y,targetWidth:24,targetHeight:24,alt:""}))))}})),_.M("div",{class:"ytdSponsorshipsHubDetails"},_.M("div",{class:"ytdSponsorshipsHubTierName"},function(){return h().tierName}),_.M("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return h().membershipType}),_.M("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return h().membershipDurationOrExpiry})),_.M("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.M(_.rC,{data:function(){return h().manageButton}},{buttonViewModel:function(y){return _.M(_.EG,{data:y.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.M(_.rC,{data:function(){return h().actionMenuButton}},{buttonViewModel:function(y){return _.M(_.EG,{data:y.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.M("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return h().perksTitle}),_.M(o$2,{data:function(){return{previousButton:h().previousPerkButton,
nextButton:h().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.M("div",{class:"ytdSponsorshipsHubPerkCards"},_.M(_.rC,{data:function(){return h().perkCards}},{sponsorshipsHubPerkCardViewModel:ZcA}),_.M(_.H,{cond:function(){return h().viewAllPerksButton},
then:function(y){return _.M(MPf,{data:y})}}))))},"gg");
n$d.idomCompat=!0;var MPf=_.T(function(b){var h=b.data;return _.M("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.M(_.rC,{data:function(){return h().button}},{buttonViewModel:_.EG}),_.M("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.M("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return h().title}),_.M("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return h().subtitle})))},"hg");
MPf.idomCompat=!0;_.yd(n$d,"yt-sponsorships-hub",{props:{data:_.D4}});_.XMX=_.T(function(b){var h=b.data;return _.M("yt-dual-avatar-view-model",{class:_.P2("ytDualAvatarViewModelHost",b.className),style:_.n9({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var y;return((y=h().badgeCutoutRadius)!=null?y:14)+"px"}})},_.M("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.M(_.rC,{data:function(){return h().startAvatar}},{avatarViewModel:_.OX}),_.M(_.rC,{data:function(){return h().endAvatar}},{avatarViewModel:_.OX})),_.M(_.rC,{data:function(){return h().badge}},
{contentPreviewImageViewModel:function(y){return _.M("div",{class:"ytDualAvatarViewModelBadge"},_.M(_.fr,{data:y.data}))}}))},"ig");
_.XMX.idomCompat=!0;var u92=_.T(function(b){var h=b.data;var y,S=!((y=_.H9().resolve(_.XS(_.cC)))==null||!y());b=_.s5(function(){var u,O,N=S?(u=h().header)==null?void 0:u.backgroundColorDarkMode:(O=h().header)==null?void 0:O.backgroundColorLightMode;if(N!==void 0)return _.CR(N)},void 0,"TDdh7d");
y=_.s5(function(){var u,O;return S?(u=h().header)==null?void 0:u.backgroundImagePart1Dark:(O=h().header)==null?void 0:O.backgroundImagePart1Light},void 0,"X0peMe");
var F=_.s5(function(){var u,O;return S?(u=h().header)==null?void 0:u.backgroundImagePart2Dark:(O=h().header)==null?void 0:O.backgroundImagePart2Light},void 0,"an0Hzd"),a=_.s5(function(){return _.QC("HTML_DIR")==="rtl"},void 0,"BltEgb"),P=_.ZR("yt-sponsorships-perks-list"),K=!1,n=function(){var u=P.value;
if(u&&!K){var O,N=(O=u.parentElement)==null?void 0:O.parentElement;if(N)for(u=u.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),O=0;O<u.length;++O){var t=u[O];if(t instanceof HTMLElement){N.scrollTo({top:t.offsetTop+t.clientHeight/2-N.clientHeight/2,behavior:"smooth"});K=!0;break}}}};
_.wg(function(){var u=P.value;if(u&&window.ResizeObserver){var O=new ResizeObserver(n);O.observe(u);_.m2(function(){O.disconnect()})}});
var X={};return _.M("yt-sponsorships-perks-list",{el:P,class:_.P2("ytdSponsorshipsPerksListHost",(X.ytdSponsorshipsPerksListHorizontalPadding=function(){return h().horizontalPaddingEnabled},X))},_.M("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.M("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.n9({"background-color":b})},_.M("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.M(_.H,{cond:y,then:function(u){var O={};return _.M("div",{class:_.P2((O.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=S,O.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!S,O.ytdSponsorshipsPerksListFlipped=a,O))},_.M(_.mI,{data:u,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.M("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.M(_.H,{cond:F,
then:function(u){var O={};return _.M("div",{class:_.P2((O.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=S,O.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!S,O.ytdSponsorshipsPerksListFlipped=a,O))},_.M(_.mI,{data:u,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.M("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.M(_.rC,{data:function(){var u;
return(u=h().header)==null?void 0:u.dualAvatar}},{dualAvatarViewModel:_.XMX})))),_.M("div",{class:"ytdSponsorshipsPerksListBody"},_.M("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return h().title}),_.M(_.H,{cond:function(){return h().perks},
then:function(u){return _.M(_.Gw,{each:u},function(O,N){var t={};return _.M("div",{class:_.P2("ytdSponsorshipsPerksListPerkContainer",(t.ytdSponsorshipsPerksListSelectedPerk=function(){var R=N(),I=h().selectedPerkIndex;return R===I},t))},_.M(_.H,{cond:function(){return N()>0},
then:function(){return _.M("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.M("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.M(_.H,{cond:function(){return O.icon},
then:function(R){return _.M(_.Xv,{icon:function(){return R().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.M("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.M("div",{class:"ytdSponsorshipsPerksListPerkTitle"},O.title),_.M("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.M(_.zv,{text:O.description})),_.M(_.H,{cond:function(){return O.instructions},
then:function(){var R,I;return _.M("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.M("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(R=O.instructions)==null?void 0:R.title),_.M("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.M(_.zv,{text:(I=O.instructions)==null?void 0:I.text})))}}))),_.M(_.H,{cond:function(){return O.emoji},
then:function(R){return _.M("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.M(_.Gw,{each:function(){return R()}},function(I){return _.M(_.mI,{data:I,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.M(HcA,{data:O}))})}})))},"jg");
u92.idomCompat=!0;var HcA=_.T(function(b){var h=b.data;var y=function(P,K){return P===K},S=function(){var P=h();
P=_.c(P==null?void 0:P.badgesShelf,x1e);return P!==void 0&&P!==null?P:{previousButton:{},nextButton:{}}},F=_.MS("div"),a=function(){var P=F.value;
if(P){var K=P.parentElement;if(K){P=P.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var n=0;n<P.length;++n){var X=P[n];if(X instanceof HTMLElement){K.scrollTo({left:X.offsetLeft+X.clientWidth/2-K.clientWidth/2,behavior:"instant"});break}}}}};
_.wg(function(){var P=F.value;if(P){var K=new ResizeObserver(a);K.observe(P);_.m2(function(){K.disconnect()})}});
return _.M("div",null,_.M(_.H,{cond:function(){return h().badges},
then:function(P){return _.M(o$2,{data:S},_.M("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:F},_.M(_.Gw,{each:function(){return P()}},function(K,n){var X={},u={},O={};
return _.M("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.M(_.H,{cond:function(){return n()>0},
then:function(){return _.M("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.M("div",{class:_.P2("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(X.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return y(n(),h().currentBadgeIndex)},X.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!y(n(),h().currentBadgeIndex)},X))},_.M("div",{class:_.P2("ytdSponsorshipsPerksListLoyaltyBadge",(u.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return y(n(),
h().currentBadgeIndex)},u.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!y(n(),h().currentBadgeIndex)},u))},_.M(_.H,{cond:function(){return K.image},
then:function(N){var t={};return _.M("div",{class:_.P2((t.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return y(n(),h().currentBadgeIndex)},t.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!y(n(),h().currentBadgeIndex)},t))},_.M(_.mI,{data:N,
alt:""}))}})),_.M("div",{class:_.P2("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(O.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return y(n(),h().currentBadgeIndex)},O))},K.title)))})))}}))},"kg");
HcA.idomCompat=!0;_.yd(u92,"yt-sponsorships-perks-list",{props:{data:_.D4}});_.yd(_.T(function(b){return _.M("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.M(_.H,{cond:function(){return b.data().image},
then:function(h){return _.M(_.mI,{className:"ytwFantasyEmptyStateViewModelImage",data:h,ariaHidden:!0,alt:""})}}),_.M(_.zv,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return b.data().title}}),_.M(_.zv,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return b.data().subtitle}}),_.M(_.rC,{data:function(){return b.data().primaryButton}},{buttonViewModel:function(h){return _.M(_.EG,{data:h.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"lg"),"ytw-fantasy-empty-state-view-model",{props:{data:_.D4}});var Ocq;var NfX=_.T(function(b){var h=b.data;var y=b.uniqueId;var S=b.overrides;b=_.s5(function(){var F,a=((F=h().timedAnimationData)==null?void 0:F.animationTiming)||[];return{uniqueId:y(),timings:a,experimentEnabled:a.length>0,enabled:a.length>0}},void 0,"hiuXI");
return _.M("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.M(Qta,{settings:b},_.M(_.rC,{data:function(){return h().buttonRenderer}},{buttonRenderer:function(F){return _.M(_.Cr,{data:F.data,
buttonOverrides:S})}})))},"mg");
NfX.idomCompat=!0;_.yd(NfX,"timed-animation-button-renderer",{props:{data:_.D4,uniqueId:_.D4,overrides:_.D4}});var i6=function(){var b=_.g.apply(this,arguments)||this;b.hideJoinButtonBeforeSubscribed=_.r("hide_join_button_before_subscribed");b.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return b};
_.z(i6,_.g);_.d=i6.prototype;_.d.hasShowDialogCommand=function(b){return!!_.c(b,SA8)};
_.d.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"}}}};
_.d.updateJoinButtonOverrides=function(){var b,h;(b=_.$x(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(h=b.polymerController)==null||h.set("overrides",this.joinButtonOverrides);if(b=_.$x(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))b.overrides=this.joinButtonOverrides};
_.d.handleButtonRefreshAction=function(b){if(b=_.c(b,D8W))this.set("data.membershipButton",b.membershipButton),this.notifyPath("data.membershipButton")};
_.d.onYtServiceRequestError=function(b){_.lM(this.hostElement,b.detail.error.message)};
_.d.onKeydown=function(b){if(b.key==="Enter"){var h;(h=this.data)!=null&&h.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.d.handleUnsubscribeAction=function(){var b,h,y;((b=this.data)==null?void 0:(h=b.membershipButton)==null?void 0:(y=h.buttonRenderer)==null?void 0:y.style)==="STYLE_PRIMARY"&&_.$x(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.tm.Object.defineProperties(i6.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.data)==null?void 0:b.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.subscriptionStateEntity)==null||!b.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var b,h=(b=this.data)==null?void 0:b.membershipButton,y;b=(h==null?void 0:h.buttonRenderer)||_.c(h==null?void 0:(y=h.timedAnimationButtonRenderer)==null?void 0:y.buttonRenderer,_.OU);return(b==null?void 0:b.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(b==null?void 0:b.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(b==null?void 0:b.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var b;if(this.hasShowDialogCommand((b=this.data)==null?void 0:b.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var b;if(this.hasShowDialogCommand((b=this.data)==null?void 0:b.navigationEndpoint))return"button"}},
hasAttributedTitle:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.data)==null||!b.attributedTitle)}}});
i6.prototype.onYtServiceRequestError=i6.prototype.onYtServiceRequestError;i6.prototype.updateJoinButtonOverrides=i6.prototype.updateJoinButtonOverrides;_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],i6.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],i6.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],i6.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.NT),_.f("design:type",Object)],i6.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],i6.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.jp),_.f("design:type",Object)],i6.prototype,"ironButtonState",void 0);_.V([_.C(),_.f("design:type",Object)],i6.prototype,"data",void 0);_.V([_.W("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.f("design:type",Object),_.f("design:paramtypes",[])],i6.prototype,"hideJoin",null);
_.V([_.C(),_.f("design:type",String)],i6.prototype,"subscribeKey",void 0);_.V([_.C({selectorArgs:["subscribeKey"],selector:Vuk}),_.f("design:type",Object)],i6.prototype,"subscriptionStateEntity",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],i6.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.V([_.W("subscriptionStateEntity"),_.C({reflectToAttribute:!0}),_.f("design:type",Object),_.f("design:paramtypes",[])],i6.prototype,"subscribed",null);
_.V([_.W("subscribed","data.membershipButton"),_.f("design:type",Object),_.f("design:paramtypes",[])],i6.prototype,"joinButtonOverrides",null);_.V([_.W("data.navigationEndpoint"),_.f("design:type",Object),_.f("design:paramtypes",[])],i6.prototype,"channelNameTabIndex",null);_.V([_.W("data.navigationEndpoint"),_.f("design:type",Object),_.f("design:paramtypes",[])],i6.prototype,"channelNameRole",null);
_.V([_.W("data.attributedTitle"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],i6.prototype,"hasAttributedTitle",null);_.V([_.OB("joinButtonOverrides"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],i6.prototype,"updateJoinButtonOverrides",null);_.V([_.u3("yt-service-request-error"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],i6.prototype,"onYtServiceRequestError",null);
_.V([_.Yx({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],i6);
var tP2=_.$S()(i6,"ytd-video-owner-renderer",function(){if(Ocq===void 0){var b=document.createElement("template");_.D(b,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><template is="dom-if" if="[[data.thumbnail]]" class="style-scope ytd-video-owner-renderer"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow></template><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><yt-attributed-string id="attributed-channel-name" data="[[data.attributedTitle]]" ellipsis-truncate="true" hidden$="[[!hasAttributedTitle]]" no-pre-wrap="true" no-wrap="true" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></yt-attributed-string><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" hidden="[[hasAttributedTitle]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);Ocq=b}b=Ocq;return b},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.yd(_.T(function(b){var h=b.data;var y;b=_.L(_.pa(!((y=_.Wd("yt-mini-app-is-theater-mode-enabled"))==null||!y),void 0,"i2pjVd"));var S=b.next().value,F=b.next().value;y=_.L(_.pa(!1,void 0,"ga7V5c"));var a=y.next().value,P=y.next().value;_.wg(function(){var X=_.W3(window,MsN,function(){P(X2G())});
_.m2(function(){D1(X)})});
var K;y=(K=_.H9().resolve(_.XS(kkf)))!=null?K:function(){return _.M("div",null)};
_.KP("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){F(!0);_.Bd("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.KP("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){F(!1);_.Bd("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
K={};b={};var n={};return _.M("mini-app-play-page-renderer",{class:_.P2("miniAppPlayPageRendererHost",(K.miniAppPlayPageRendererHostDetailsView=function(){return!S()},K))},_.M("div",{class:_.P2("miniAppPlayPageRendererGameContainer",(b.miniAppPlayPageRendererGameContainerDetailsView=function(){return!S()},b))},_.M(_.rC,{data:function(){return h().containerViewModel}},{miniAppContainerViewModel:KAA}),_.M(_.H,{cond:function(){return h().channel&&h().subscribeButton},
then:function(){var X={};return _.M("div",{class:_.P2("miniAppPlayPageRendererChannelContainer",(X.miniAppPlayPageRendererHideVisibility=function(){return a()},X))},_.M(_.rC,{data:function(){return h().channel}},{videoOwnerRenderer:function(u){return _.M(tP2,{data:u.data})}}),_.M(_.rC,{data:function(){return h().subscribeButton}},{subscribeButtonViewModel:function(u){return _.M(_.Oz,{data:u.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.M(_.H,{cond:function(){return!S()&&h().description},
then:function(){var X={};return _.M("div",{class:_.P2("miniAppPlayPageRendererMiniAppDescriptionWrapper",(X.miniAppPlayPageRendererHideVisibility=function(){return a()},X))},_.M("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return h().description}))}})),_.M("div",{class:_.P2("miniAppPlayPageRendererPlayNextContainer",(n.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!S()},n.miniAppPlayPageRendererHideVisibility=function(){return a()},n))},_.M(_.rC,{data:function(){return h().sectionList}},
{sectionListRenderer:y})))},"ng"),"mini-app-play-page-renderer",{props:{data:_.D4}});var fC=function(){var b=_.g.apply(this,arguments)||this;b.isSearch=!1;b.isConstrainedList=!1;b.hasChipsBar=!1;b.inReplyPanel=!1;b.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"}};b.monitorScroll=!0;b.SCROLL_ANIMATION_DURATION_MS=300;b.nextContinuation={continuationType:"sectionListContinuation"};return b};
_.z(fC,_.g);_.d=fC.prototype;
_.d.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(b){switch(b.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},flowRootRenderer:{component:"ytd-flow-root-renderer",
noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",
noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",
noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},
liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},
creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.r("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.r("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.d.created=function(){var b=this;this.JSC$17403_scrollAnimation=new _.CC(function(h){b.hostElement.scrollTop=h})};
_.d.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.d.getItemsPath=function(){return"data.contents"};
_.d.replacePrimaryContent=function(b){this.set("data.contents",b)};
_.d.computeHasSortFilter=function(b){return!!b&&!!b.sortFilterSubMenuRenderer};
_.d.computeShouldScrollInPanel=function(b){var h;return!!(b==null?0:(h=b.scrollPaneStyle)==null?0:h.scrollable)};
_.d.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.Zm(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.d.scrollToTop=function(){this.hostElement.scrollTop=0};
_.d.scrollToItemSection=function(b){if(b=this.getItemByIdentifier(b))b=this.getScrollPositionForItem(b),this.hostElement.scrollTop!==b&&this.JSC$17403_scrollAnimation.start(this.hostElement.scrollTop,b,this.SCROLL_ANIMATION_DURATION_MS)};
_.d.getItemByIdentifier=function(b){var h=this.contents.querySelectorAll("ytd-item-section-renderer");if(h&&h.length!==0){var y=Array.from(h).findIndex(function(S){return S.sectionIdentifier===b});
return h[y===-1?0:y]}};
_.d.getScrollPositionForItem=function(b){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===b)return 0;b=_.vB(b).y+this.hostElement.scrollTop-_.vB(this.hostElement).y;return Math.min(b,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.tm.Object.defineProperties(fC.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.data)==null?void 0:b.targetId)==="browse-feedFEclips"}}});
fC.prototype.onScroll=fC.prototype.onScroll;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],fC.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],fC.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.GO.YtLazyListBehavior),_.f("design:type",Object)],fC.prototype,"ytLazyListBehavior",void 0);_.V([_.B(_.JC.YtNextContinuationBehavior),_.f("design:type",Object)],fC.prototype,"ytNextContinuationBehavior",void 0);
_.V([_.B(_.aEf),_.f("design:type",Object)],fC.prototype,"ytBooleanLogicBehavior",void 0);_.V([_.B(_.p1),_.f("design:type",Object)],fC.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],fC.prototype,"data",void 0);_.V([_.C({value:2}),_.f("design:type",Number)],fC.prototype,"initialCount",void 0);_.V([_.C({value:!0}),_.f("design:type",Boolean)],fC.prototype,"autoFill",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.f("design:type",Boolean)],fC.prototype,"hasSortFilter",void 0);_.V([_.C({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.f("design:type",Boolean)],fC.prototype,"hideBottomSeparator",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.f("design:type",Boolean)],fC.prototype,"shouldScrollInPanel",void 0);
_.V([_.C(),_.f("design:type",Object)],fC.prototype,"isSearch",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],fC.prototype,"isConstrainedList",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",String)],fC.prototype,"responsiveSizing",void 0);_.V([_.C(),_.f("design:type",Object)],fC.prototype,"hasChipsBar",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",String)],fC.prototype,"pageSubtype",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],fC.prototype,"engagementPanel",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],fC.prototype,"liveChatEngagementPanel",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],fC.prototype,"inReplyPanel",void 0);_.V([_.to("#action-button"),_.f("design:type",HTMLElement)],fC.prototype,"actionButton",void 0);_.V([_.C(),_.f("design:type",Object)],fC.prototype,"scrollUpButtonData",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],fC.prototype,"engagementPanelDropdown",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],fC.prototype,"engagementPanelDialog",void 0);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],fC.prototype,"isClipList",null);_.V([_.to("#contents"),_.f("design:type",HTMLElement)],fC.prototype,"monitorScrollElement",void 0);_.V([_.to("#contents"),_.f("design:type",HTMLElement)],fC.prototype,"contents",void 0);
_.V([_.u3("scroll"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],fC.prototype,"onScroll",null);_.V([_.Yx({is:"ytd-section-list-renderer",disableElementRegistration:!0})],fC);
var rxF=_.$S()(fC,"ytd-section-list-renderer",function(){if(GkA===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);GkA=b}b=GkA;return b},{mode:1});var cxd;var R2f;var z2d;var D9f;var w0=function(){return _.g.apply(this,arguments)||this};
_.z(w0,_.g);w0.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
w0.prototype.onLikeButtonClick=function(b){b.stopPropagation();b.preventDefault()};
_.tm.Object.defineProperties(w0.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var b;if((b=this.data)!=null&&b.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)})}}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],w0.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],w0.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],w0.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],w0.prototype,"ytRendererStamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],w0.prototype,"data",void 0);
_.V([_.C({selectorArgs:["data.likeStatusEntityKey"],selector:_.gS}),_.f("design:type",Object)],w0.prototype,"likeStatusEntity",void 0);_.V([_.W("data","likeStatusEntity"),_.f("design:type",Object),_.f("design:paramtypes",[])],w0.prototype,"likeButtonRenderer",null);_.V([_.Yx({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],w0);
_.k(w0,"ytd-slim-metadata-toggle-button-renderer",function(){if(D9f!==void 0)return D9f;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);
return D9f=b},{mode:1});var l6=function(){var b=_.g.apply(this,arguments)||this;b.showEqualizer=_.r("web_enable_playlist_video_lockup_equalizer");b.watchColorUpdate=_.r("kevlar_watch_color_update");b.actionMap={};return b};
_.z(l6,_.g);_.d=l6.prototype;_.d.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:"left"},properties:{minimizePipBreakages:"[[minimizePipBreakages]]"}}}},"data.actionButtons":{id:"action-buttons",mapping:{slimMetadataToggleButtonRenderer:"ytd-slim-metadata-toggle-button-renderer"}}}};
_.d.computeEditableClass=function(b){return b&&b.menu?"editable":""};
_.d.computeSelected=function(b){return!(b==null||!b.selected)};
_.d.computeUseColorPalette=function(b){return!!((b==null?0:b.lightColorPalette)&&(b==null?0:b.darkColorPalette))};
_.d.computeLargerPlaylistThumbs=function(b,h){return _.r("web_enable_playlist_bigger_thumbnails")&&!h};
_.d.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.d.onYtServiceRequestSent=function(b,h){h.endpoint&&this.isHideEnclosingAction(h.endpoint)&&!this.selected&&eDa(_.Wy(),this.data.videoId)};
_.d.isHideEnclosingAction=function(b){var h=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",b);b=this.get("likeEndpoint.status",b)==="INDIFFERENT";return h||b};
_.d.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.d.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.tm.Object.defineProperties(l6.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.r("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
playIcon:{configurable:!0,enumerable:!0,get:function(){return _.r("enable_web_delhi_icons")?"play":"play_arrow"}},
minimizePipBreakages:{configurable:!0,enumerable:!0,get:function(){return _.r("web_pip_minimize_breakages")&&!!this.withinMiniplayer}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var b;return!!(this.withinMiniplayer&&((b=this.data)==null?0:b.actionButtons))}}});
l6.prototype.onYtServiceRequestSent=l6.prototype.onYtServiceRequestSent;l6.prototype.canReorderChanged=l6.prototype.canReorderChanged;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],l6.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],l6.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],l6.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.Wg),_.f("design:type",Object)],l6.prototype,"ytdLockupBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],l6.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],l6.prototype,"withinMiniplayer",void 0);_.V([_.C({computed:"computeSelected(data)",reflectToAttribute:!0}),_.f("design:type",Boolean)],l6.prototype,"selected",void 0);
_.V([_.C({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.f("design:type",Boolean)],l6.prototype,"useColorPalette",void 0);_.V([_.C({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.f("design:type",Boolean)],l6.prototype,"largerPlaylistThumbs",void 0);_.V([_.C(),_.f("design:type",Object)],l6.prototype,"showEqualizer",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],l6.prototype,"canReorder",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],l6.prototype,"touchPersistentDragHandle",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],l6.prototype,"handleIsHovered",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],l6.prototype,"watchColorUpdate",void 0);_.V([_.C(),_.f("design:type",String),_.f("design:paramtypes",[])],l6.prototype,"reorderIcon",null);
_.V([_.C(),_.f("design:type",String),_.f("design:paramtypes",[])],l6.prototype,"playIcon",null);_.V([_.C({reflectToAttribute:!0}),_.W("withinMiniplayer"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],l6.prototype,"minimizePipBreakages",null);_.V([_.W("largerPlaylistThumbs"),_.f("design:type",Number),_.f("design:paramtypes",[])],l6.prototype,"thumbnailWidth",null);
_.V([_.C({reflectToAttribute:!0}),_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],l6.prototype,"showActionButtons",null);_.V([_.zj("canReorder"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],l6.prototype,"canReorderChanged",null);_.V([_.u3("yt-service-request-sent"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,_.kE]),_.f("design:returntype")],l6.prototype,"onYtServiceRequestSent",null);
_.V([_.Yx({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],l6);
_.k(l6,"ytd-playlist-panel-video-renderer",function(){if(z2d!==void 0)return z2d;var b=document.createElement("template");_.D(b,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="[[reorderIcon]]" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n      <template is="dom-if" if="[[selected]]" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="play-icon" class="style-scope ytd-playlist-panel-video-renderer">\n          <yt-icon default-to-filled="true" icon="[[playIcon]]" size="12" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n        </span>\n      </template>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" minimize-pip-breakages="[[minimizePipBreakages]]" now-playing-equalizer-only="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </ytd-thumbnail>\n    </div>\n    <div id="meta" class$="[[computeEditableClass(data)]] style-scope ytd-playlist-panel-video-renderer">\n      <yt-formatted-string id="unplayableText" disable-upgrade$="[[!data.unplayableText]]" hidden="[[!data.unplayableText]]" no-endpoints="" text="[[data.unplayableText]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <h4 class="style-scope ytd-playlist-panel-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h4>\n      <div id="byline-container" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="byline" hidden="[[!data.shortBylineText]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.shortBylineText)]]\n        </span>\n        <ytd-badge-supported-renderer badges="[[data.ownerBadges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n      <yt-formatted-string id="video-info" disable-upgrade$="[[!data.videoInfo]]" hidden="[[!data.videoInfo]]" no-endpoints="" text="[[data.videoInfo]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <div id="action-buttons" hidden="[[!showActionButtons]]" class="style-scope ytd-playlist-panel-video-renderer"></div>\n    </div>\n  </div>\n</a>\n<div id="menu" class="style-scope ytd-playlist-panel-video-renderer"></div>\n');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return z2d=b},{mode:2});var qZ=function(){return _.g.apply(this,arguments)||this};
_.z(qZ,_.g);qZ.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],qZ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],qZ.prototype,"data",void 0);_.V([_.Yx({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],qZ);
_.k(qZ,"ytd-playlist-panel-supported-items",function(){if(R2f!==void 0)return R2f;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return R2f=
b},{mode:1});uQa=!0;Se8("\\P{N}");var qif;var ILA=_.Mt("END_OF_PLAYLIST",void 0,"End of playlist"),BfF=_.Mt("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),xC=function(){var b=_.g.apply(this,arguments)||this;b.minimizePipBreakages=_.r("web_pip_minimize_breakages");b.hideHeaderText=!1;b.useColorPalette=!1;b.collapsed=!1;b.collapsedPreServerOverride="not_tracked";b.isHovered=!1;b.expandLabel=_.Mt("MINIPLAYER_EXPAND_LABEL");b.collapseLabel=_.Mt("MINIPLAYER_COLLAPSE_LABEL");b.isFloating=!1;b.metaPanel=
!1;b.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};b.currentIndex=void 0;return b};
_.z(xC,_.g);_.d=xC.prototype;
_.d.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"}}}};
_.d.created=function(){var b=this;this.scrollThrottle=new _.MG(this.onThrottledScroll,1E3,this);this.JSC$17425_ytReorderableController=new _.LRW(56,function(h){b.handleDrop(h)})};
_.d.onMouseEnter=function(){this.isHovered=!0};
_.d.onMouseLeave=function(){this.isHovered=!1};
_.d.computeOverflowMenuData=function(b){return b&&b.menu?b.menu:null};
_.d.computeCollapsible=function(b){return!b};
_.d.computeHasPlaylistButtons=function(b){return!(!b||!b.playlistButtons)};
_.d.computeHasSeparateSaveButton=function(b){return!(!b||!b.saveButton)};
_.d.computeHasToolbarButton=function(b,h){return!(!b||!(h||b.saveButton||b.menu))};
_.d.computePlaylistType=function(b){if(b&&b.playlistId)return b.playlistId.substring(0,4)};
_.d.computeCanReorder=function(b){return b?b.playlistId&&b.playlistId.startsWith("TLPQ")?!0:!!b.isEditable&&!b.isInfinite:!1};
_.d.attached=function(){var b=this;try{_.H9().resolve(_.Rz).setPlaylistComponent(this.hostElement)}catch(h){if(_.r("kevlar_park_on_playlist_token_killswitch"))throw h;_.Dh().parkOrScheduleJob(function(){_.H9().resolve(_.Rz).setPlaylistComponent(b.hostElement)},2,"ci")}_.hL(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.d.detached=function(){_.yh(this.hostElement);_.F$(this.JSC$17425_ytReorderableController)};
_.d.computeTrailingIcon=function(b,h,y){return y?h?"yt-icons:collapse":"yt-icons:close":h?"yt-icons:expand":_.r("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.d.computeIndexMessage=function(b,h){return mRI(b+1)+" / "+mRI(h)};
_.d.onRenderStamperFinished=function(){if(this.scrollForStampDom){var b=!0;this.isHovered&&(b=!1);if(this.collapsed||this.hidden)b=!1;b&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.d.collapseChanged=function(){var b=this;this.collapsed||(_.N$(this.ytTaskEmitterBehavior.getTaskManager(),function(){b.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.d.hiddenChanged=function(){var b=this;this.hidden||_.N$(this.ytTaskEmitterBehavior.getTaskManager(),function(){b.scrollToCurrentVideo()})};
_.d.setupReordering=function(){var b=_.$x(this.hostElement).querySelector("#items");C28?_.PP8(this.JSC$17425_ytReorderableController,b,b,"playlist-drag-handle"):_.PP8(this.JSC$17425_ytReorderableController,b,b)};
_.d.scrollToCurrentVideo=function(){var b=this;_.xP.addJob(function(){var h=_.$x(b.hostElement).querySelector("#items");if(h){h.style.setProperty("padding-bottom","");var y=_.$x(b.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(y){h=y.parentElement||_.Vw(document);var S=h||_.Vw(document);var F=_.vB(y),a=_.vB(S),P=_.GPw(S);if(S==_.Vw(document)){var K=F.x-S.scrollLeft;F=F.y-S.scrollTop}else K=F.x-a.x-P.left,F=F.y-a.y-P.top;y=gbe(y);a=S.clientHeight-
y.height;P=S.scrollLeft;var n=S.scrollTop;P+=K-(S.clientWidth-y.width)/2;S=new _.xb(P,n+(F-a/2));h.scrollLeft=S.x;h.scrollTop=S.y}}},8)};
_.d.dataChanged=function(){var b=this;_.F$(this.JSC$17425_ytReorderableController);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.Ob(this,function(){_.VT(b.ytTaskEmitterBehavior.getTaskManager(),function(){b.ytRendererBehavior.markDirty();b.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.d.onFullBleedPlayerChanged=function(){_.r("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.d.onFullscreenChanged=function(){_.r("web_watch_imax_theater_mode")||_.r("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.d.updateNowPlayingOverlay=function(){_.r("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.d.onPlaylistLockupNowPlaying=function(b,h){h&&(this.activeNowPlayingRenderer=h);this.updateNowPlayingOverlay()};
_.d.onScroll=function(){this.scrollThrottle.fire()};
_.d.onThrottledScroll=function(){var b=this;_.VT(this.ytTaskEmitterBehavior.getTaskManager(),function(){b.ytRendererBehavior.markDirty()})};
_.d.onToggleExpanded=function(b){!this.collapsible||b&&(_.mi(b).tagName==="A"||_.mf(_.Qk(b),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.d.setCollapsed=function(b){this.collapsible&&(this.collapsed=b,_.aw(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.d.handleCollapsedFromData=function(b){if(b){var h=b.playlistPanelCollapseState;h==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||h==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),h=h==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==h&&this.setCollapsed(h)):this.currentPlaylistId!==b.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(h=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==h&&this.setCollapsed(h),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=b.playlistId}};
_.d.handleDrop=function(b){var h=b.currDragItem;b=h.data.playlistSetVideoId;var y=_.C4(h.parentNode.childNodes,h),S=void 0;y>0&&(S=h.parentNode.childNodes[y-1].data.playlistSetVideoId);h=_.Wy();if(h.responsePlaylistData&&h.responsePlaylistData.contents){var F=WEy(b,h.responsePlaylistData);h.responsePlaylistData=(0,_.lR.unsafeClone)(h.responsePlaylistData);YjF(h.responsePlaylistData.contents,F,y);h.queueProxy?P0M(h.queueProxy,F,y,b,S):h.playlistProxy&&P0M(h.playlistProxy,F,y,b,S);_.A0(h,_.UN(h,h.response?
h.response.autoplayRenderer:void 0))}};
_.d.handleDarkModeChange=function(b){b!==this.isDarkTheme&&(this.isDarkTheme=b)};
_.d.colorPaletteChanged=function(){var b,h=((b=this.data)==null?void 0:b.contents)||[],y;b=_.L(h);for(h=b.next();!h.done;h=b.next()){h=h.value;var S=void 0;if((S=h.playlistPanelVideoRenderer)==null?0:S.selected){b=h.playlistPanelVideoRenderer;S=h=void 0;(y=this.isDarkTheme?(h=b)==null?void 0:h.darkColorPalette:(S=b)==null?void 0:S.lightColorPalette)&&_.IF(this.hostElement,y);break}}this.useColorPalette=!!y};
_.tm.Object.defineProperties(xC.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.data)==null||!b.moveThreeDotsMenuToMainHeader)&&_.r("course_hide_playlist_panel_shuffle_and_loop_buttons")}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var b=_.H9().resolve(_.XS(_.Rz)),h;if(((h=this.data)==null?0:h.contents)&&(b==null?0:b.hasAutoplayData())){var y;if(((y=this.playlistLoopStateEntity)==null?void 0:y.state)==="PLAYLIST_LOOP_STATE_ONE"){if(b=this.data.currentIndex,b!==void 0){var S,F;var a=(S=this.data.contents[b])==null?void 0:(F=S.playlistPanelVideoRenderer)==null?void 0:F.title}}else{var P,K=(P=_.c(b.getAutoplayEndpoint(),_.wO))==null?void 0:P.videoId,n,X;a=(n=this.data.contents.find(function(u){var O;
return((O=u.playlistPanelVideoRenderer)==null?void 0:O.videoId)===K}))==null?void 0:(X=n.playlistPanelVideoRenderer)==null?void 0:X.title}return a}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var b;return(b=this.data)!=null&&b.nextVideoLabel?this.nextVideoTitle?_.vi(this.data.nextVideoLabel)+":":ILA:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var b;if(((b=this.data)==null?0:b.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.r("web_mix_long_byline_from_data"))return _.mk(BfF);var h;return(h=this.data)==null?void 0:h.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var b,h,y,S=(b=this.data)==null?void 0:(h=b.playlistButtons)==null?void 0:(y=h.menuRenderer)==null?void 0:y.topLevelButtons;if(S)for(b=_.L(S),h=b.next();!h.done;h=b.next())if(h=h.value,h.playlistLoopButtonRenderer)return h.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var b;return!!(this.collapsed&&((b=this.data)==null?0:b.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.r("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
xC.prototype.colorPaletteChanged=xC.prototype.colorPaletteChanged;xC.prototype.onPlaylistLockupNowPlaying=xC.prototype.onPlaylistLockupNowPlaying;xC.prototype.updateNowPlayingOverlay=xC.prototype.updateNowPlayingOverlay;xC.prototype.onFullscreenChanged=xC.prototype.onFullscreenChanged;xC.prototype.onFullBleedPlayerChanged=xC.prototype.onFullBleedPlayerChanged;xC.prototype.dataChanged=xC.prototype.dataChanged;xC.prototype.hiddenChanged=xC.prototype.hiddenChanged;xC.prototype.collapseChanged=xC.prototype.collapseChanged;
xC.prototype.onRenderStamperFinished=xC.prototype.onRenderStamperFinished;xC.prototype.onMouseLeave=xC.prototype.onMouseLeave;xC.prototype.onMouseEnter=xC.prototype.onMouseEnter;_.V([_.B(_.ab),_.f("design:type",Object)],xC.prototype,"ironResizableBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],xC.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],xC.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(Cxw.YtPlaylistPanelBehavior),_.f("design:type",Object)],xC.prototype,"ytPlaylistPanelBehavior",void 0);_.V([_.B(_.UG.YtTaskEmitterBehavior),_.f("design:type",Object)],xC.prototype,"ytTaskEmitterBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],xC.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],xC.prototype,"ytdReduxBehavior",void 0);
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],xC.prototype,"actionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],xC.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],xC.prototype,"autoplayData",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],xC.prototype,"withinMiniplayer",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],xC.prototype,"minimizePipBreakages",void 0);
_.V([_.C({computed:"setMenuData_(data)"}),_.f("design:type",Object)],xC.prototype,"menuRendererData",void 0);_.V([_.C({computed:"computeOverflowMenuData(data)"}),_.f("design:type",Object)],xC.prototype,"overflowMenuDataTopRow",void 0);_.V([_.C({computed:"computeOverflowMenuData(data)"}),_.f("design:type",Object)],xC.prototype,"overflowMenuData",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],xC.prototype,"hideHeaderText",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],xC.prototype,"useColorPalette",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.f("design:type",Boolean)],xC.prototype,"collapsible",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],xC.prototype,"collapsed",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],xC.prototype,"hidden",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.f("design:type",Boolean)],xC.prototype,"hasPlaylistButtons",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.f("design:type",Boolean)],xC.prototype,"hasSeparateSaveButton",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.f("design:type",Boolean)],xC.prototype,"hasToolbar",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.f("design:type",String)],xC.prototype,"playlistType",void 0);_.V([_.C(),_.f("design:type",Object)],xC.prototype,"isHovered",void 0);_.V([_.C({selectorArgs:["playlistLoopStateEntityKey"],selector:_.PP.playlistLoopStateEntitySelector}),_.f("design:type",Object)],xC.prototype,"playlistLoopStateEntity",void 0);_.V([_.C({computed:"computeCanReorder(data)"}),_.f("design:type",Boolean)],xC.prototype,"canReorder",void 0);
_.V([_.C(),_.f("design:type",Object)],xC.prototype,"expandLabel",void 0);_.V([_.C(),_.f("design:type",Object)],xC.prototype,"collapseLabel",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],xC.prototype,"isFloating",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],xC.prototype,"metaPanel",void 0);_.V([_.C({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.f("design:type",String)],xC.prototype,"trailingIcon",void 0);
_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],xC.prototype,"isDarkTheme",void 0);_.V([_.C({selector:_.Ci}),_.f("design:type",Boolean)],xC.prototype,"miniplayerIsActive",void 0);_.V([_.C({selector:function(b){return b.watch.playerState}}),
_.f("design:type",Number)],xC.prototype,"playerState",void 0);_.V([_.C({selector:_.es}),_.f("design:type",Boolean)],xC.prototype,"isFullscreen",void 0);_.V([_.C({selector:_.J4}),_.f("design:type",Boolean)],xC.prototype,"isTheaterMode",void 0);_.V([_.C(),_.f("design:type",Object)],xC.prototype,"activeNowPlayingRenderer",void 0);_.V([_.C({reflectToAttribute:!0}),_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],xC.prototype,"moveThreeDotMenuToTopRow",null);
_.V([_.W("data","autoplayData","playlistLoopStateEntity"),_.f("design:type",Object),_.f("design:paramtypes",[])],xC.prototype,"nextVideoTitle",null);_.V([_.W("data","nextVideoTitle"),_.f("design:type",String),_.f("design:paramtypes",[])],xC.prototype,"nextVideoLabel",null);_.V([_.W("collapsed"),_.f("design:type",String),_.f("design:paramtypes",[])],xC.prototype,"buttonAriaLabel",null);
_.V([_.W("data","playlistId","longBylineText"),_.f("design:type",Object),_.f("design:paramtypes",[])],xC.prototype,"mixLongByLine",null);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],xC.prototype,"playlistLoopStateEntityKey",null);_.V([_.u3("mouseenter"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],xC.prototype,"onMouseEnter",null);
_.V([_.u3("mouseleave"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],xC.prototype,"onMouseLeave",null);_.V([_.C({reflectToAttribute:!0}),_.W("data","collapsed"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],xC.prototype,"showNextVideoHeader",null);_.V([_.u3("yt-rendererstamper-finished"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],xC.prototype,"onRenderStamperFinished",null);
_.V([_.OB("collapsed"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],xC.prototype,"collapseChanged",null);_.V([_.OB("hidden"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],xC.prototype,"hiddenChanged",null);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],xC.prototype,"dataChanged",null);
_.V([_.W("isTheaterMode","isFullscreen"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],xC.prototype,"isFullBleedPlayer",null);_.V([_.OB("isTheaterMode","isFullscreen"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],xC.prototype,"onFullBleedPlayerChanged",null);_.V([_.OB("isFullscreen"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],xC.prototype,"onFullscreenChanged",null);
_.V([_.OB("playerState","miniplayerIsActive"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],xC.prototype,"updateNowPlayingOverlay",null);_.V([_.u3("yt-playlist-lockup-now-playing-active"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,Object]),_.f("design:returntype")],xC.prototype,"onPlaylistLockupNowPlaying",null);
_.V([_.OB("data","isDarkTheme"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],xC.prototype,"colorPaletteChanged",null);_.V([_.Yx({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],xC);
_.WAq=_.$S()(xC,"ytd-playlist-panel-renderer",function(){if(cxd===void 0){var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);cxd=b}b=cxd;return b},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});_.Ax2={};
_.Ax2.YtConditionalRendererBehavior=[_.Q.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(b,h){var y=this,S,F;return _.Z(function(a){switch(a.nextAddress){case 1:if(!h)return y.hidden=!0,y.showSpinner=!1,a.return();if((S=b)==null?0:(F=S.visibilityCondition)==null?0:F.mode)switch(b.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return a.jumpTo(5);default:return a.jumpTo(6)}y.showSpinner=
!1;y.hidden=!0;return a.yield(y.shouldShow_(b),4);case 4:y.hidden=!a.yieldResult;a.jumpTo(0);break;case 5:return a.yield(y.shouldShow_(b),8);case 8:y.showSpinner=a.yieldResult;y.hidden=!1;a.jumpTo(0);break;case 6:return y.showSpinner=!1,a.yield(y.shouldShow_(b),9);case 9:y.hidden=!a.yieldResult,_.g3(a)}})},
shouldShow_:function(b){return b&&b.supportedDatas&&b.supportedDatas.rendererVisibilityConditionData&&b.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(b.supportedDatas.rendererVisibilityConditionData.showIf):b&&b.visibilityCondition&&b.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(b.visibilityCondition.showIf):b&&b.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(b.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(b){switch(b){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(b){switch(b){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var b=_.F8(this.hostElement,"yt-get-mdx-status");return b.length==1&&b[0].connected},
isLocationPermissionGranted_:function(){var b;return _.Z(function(h){return h.nextAddress==1?navigator.permissions?h.yield(navigator.permissions.query({name:"geolocation"}),3):h.jumpTo(2):h.nextAddress!=2?(b=h.yieldResult,h.return(Promise.resolve(b.state==="granted"))):h.return(Promise.resolve(!1))})}}];var U9Y=qIj("yt-icon",{callbackProps:["onKeydown"]}),pMa=_.r("kevlar_use_wil_icons")?_.T(function(b){var h=b.icon;var y=b.active;var S=b.className;var F=b.style;var a=b.title;var P=b.size;var K=b.dataSelected;var n=b.dataDisabled;var X=b.role;var u=b.themeOverride;var O=b.animateIcon;var N=b.ariaHidden;var t=b.ariaExpanded;var R=b.ariaLabel;var I=b.tabindex;var U=b.id;var p=b.iconFilter;var e=b.gradientColor;var E=b.onKeydown;var Y=function(){var q=h==null?void 0:h(),dI=null,L4=void 0;q&&(q=K48(q),
q=RF8(q),q.length&&(dI=q[1],L4=q[0]));return{iconName:dI,iconSetName:L4}},w=function(){return ZLG(Y().iconName,y==null?void 0:y(),void 0,P==null?void 0:P(),Y().iconSetName,_.H9().resolve(_.MJ))},x=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:p==null?void 0:p(),iconColor:e==null?void 0:e()}};
return _.M(_.H,{cond:O,then:function(){return _.M(U9Y,{icon:h,active:y,className:S,style:F,title:a,dataSelected:K,dataDisabled:n,role:X,themeOverride:u,ariaHidden:N,ariaExpanded:t,ariaLabel:R,tabindex:I,id:U,iconFilter:p,gradientColor:e,onKeydown:E})},
else:function(){return _.M(_.H,{cond:w,then:function(q){return _.M("span",{class:_.P2("ytIconWrapperHost",S),role:X,"aria-label":R,"aria-hidden":N,tabindex:function(){return isNaN(Number(I==null?void 0:I()))?void 0:Number(I==null?void 0:I())},
id:U,style:F,title:a,"on:keydown":_.Zv(function(dI){return void(E==null?void 0:E(dI))})},_.M(_.Dv,{data:q,
options:x}))}})}})},"og"):U9Y;var Jxq=function(b){var h=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];WI8();_.HL("ytglobal.ytUtilActivityCallback_",function(){_.aw(b,"yt-user-activity")});
new Ou(function(){return h.JSC$17442_onMouseMove});
document.addEventListener("scroll",function(){return h.onScroll});
window.addEventListener("resize",function(){return h.onResize})},e2a=function(b,h,y){h in b.eventJobIds||(y=_.J_().addLowPriorityJob(function(){_.Ni();
delete b.eventJobIds[h]},y),b.eventJobIds[h]=y)};
Jxq.prototype.onScroll=function(b){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):b.target===document&&e2a(this,"scroll",200)};
Jxq.prototype.onResize=function(){e2a(this,"resize",200)};
Jxq.prototype.JSC$17442_onMouseMove=function(){e2a(this,"mousemove",100)};
_.Yd=function(b){b.scrollEventsToIgnore+=1;b.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){b.scrollEventsToIgnore--},500))};var CJX=function(b){this.element=b;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
CJX.prototype.showFeedbackDialog=function(b,h,y,S){var F=g$Y();if(!F)return!1;var a=LTk();a.productId=F;h&&(a.flow="submit",a.report={description:h});y&&(g$Y()==="59"?a.callback=_.bN(function(){_.qi("userFeedbackEvent",{});y()}):a.callback=_.bN(y));
a.bucket=S||_.QC("GOOGLE_FEEDBACK_BUCKET","Other");sR2(a);b=Y_A(this,"GFEEDBACK",b);try{_.M6e(a,b)}catch(P){return _.v4(P),!1}return!0};
CJX.prototype.showHelpDialog=function(b,h,y){var S=this,F=g$Y();if(!F)return!1;var a={helpCenterPath:"/youtube",productData:Y_A(this,"GUIDED_HELP",y)};sR2(a);var P=LTk();P.context=b||a.productData.context||"default";P.defaultHelpArticleId=h;P.enableSendFeedback=!0;(_.hj("gapi.load")||function(K,n){return n()})("client",function(){try{var K=Hz8(F,a);
if(_.r("web_always_load_chat_support")&&!S.chatSupportLoaded)try{K.JSC$10158_loadChatSupport(P),S.chatSupportLoaded=!0}catch(n){}K.startHelp(P)}catch(n){_.v4(n)}})};
var g$Y=function(){var b=_.QC("GOOGLE_FEEDBACK_PRODUCT_ID");b||_.v4(Error("ii"));return b},sR2=function(b){b&&(b.locale=_.r("kevlar_help_use_locale")?_.QC("INNERTUBE_CONTEXT_HL","en"):_.QC("HTML_LANG","en"))},Y_A=function(b,h,y){var S=b.productData;
delete S.origin;S.device=_.HF();var F;a:{if(F=document.createElement("canvas")){var a=F.getContext("experimental-webgl",{stencil:!0});if(a){var P=a.getExtension("WEBGL_debug_renderer_info");if(P){F=a.getParameter(P.UNMASKED_RENDERER_WEBGL);break a}}if(a=F.getContext("webgl")){F=a.getParameter(a.RENDERER);break a}}F=null}S.gpu=F;S.isSDC=!!_.QC("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(F=_.QC("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.lR.extend(S,F);_.jKr(h,S);_.$_8(S);(b=_.aw(b.element,"yt-get-autonav-pause-debug-state"))&&
b.length&&(S.autonav_pause_state=b[0]);b=_.sS();S.browser_resolution=b.width+"\u00d7"+b.height+"@"+(window.devicePixelRatio||1)+"x";y&&_.lR.extend(S,y);return S};
CJX.prototype.resetProductData=function(){this.productData={}};var TfP=function(b){this.feedbackManager=new CJX(b)};
TfP.prototype.showFeedbackDialog=function(b,h,y,S){return this.feedbackManager.showFeedbackDialog(b,h,y,S)};
TfP.prototype.showHelpDialog=function(b,h,y){return this.feedbackManager.showHelpDialog(b,h,y)};var Gpq=function(){this.baseUrl="";this.aTag=document.createElement("a")},Esb=function(b,h,y){y=y===void 0?{}:y;
y.pbj||(y.pbj=1);y=_.Zh4(h,y);b.baseUrl&&y&&!_.Kn(y)[1]&&!_.ZI(y)&&(h=b.baseUrl,j5(h,"/")&&(h=h.slice(0,-1)),_.aq(y,"/")&&(y=y.slice(1)),y=h+"/"+y);mA(b.aTag,_.fc(y||""));return b.aTag.href};
Gpq.prototype.fetchData=function(b){return _.heq(b)};
Gpq.prototype.postData=function(b,h){var y={method:"POST"};if(h){for(var S=_.L(Object.keys(h)),F=S.next();!F.done;F=S.next()){F=F.value;var a=h[F];_.lf(a)&&(h[F]=JSON.stringify(a))}y.postParams=h}return _.heq(b,y)};
_.i_a=function(b,h,y,S,F){b=Esb(b,h,y);if(!b)throw S=Error("ji"),Object.assign(S,{params:h}),S;return _.heq(b,F,S)};
Gpq.prototype.requestDataForServiceEndpoint=function(b,h){if(_.c(b,_.K6n))return this.fetchData("/getAccountSwitcherEndpoint");h=h||{};var y=_.c(b,R4P);y?h.se=y.base64EncodedServiceEndpoint:h.sej=JSON.stringify(b);(y=_.UE())&&_.r("enable_service_ajax_csn")&&(h.csn=y);h.theme=_.Vk();_.c(b,L68)&&_.QC("DELEGATION_CONTEXT")&&(h.delegation_context=JSON.stringify(_.QC("DELEGATION_CONTEXT")));y=null;for(var S in b)if(j5(S,"Endpoint")||j5(S,"Command")){y=S;break}if(!y){var F=Error("ki");Object.assign(F,{params:b});
_.LlU(F,"WARNING");return new _.Uu(function(P,K){K(F)})}S={name:y};
var a;(y=(a=_.c(b,_.KI))==null?void 0:a.signal)&&(S.signal=y);(a=_.dH(window.location.href))&&a.internalcountrycode&&(S.internalcountrycode=a.internalcountrycode);a="/service_ajax";_.r("debug_forward_web_query_parameters")&&(a=_.Dtq(a,window.location.search));a=_.P9(a,S);b.clickTrackingParams&&_.QB(a,{itct:b.clickTrackingParams});return this.postData(a,h)};_.kpA=new _.ca("GFEEDBACK_TOKEN");var VP2;var E$d;var icA;var fLd;var Qm=function(){var b=_.g.apply(this,arguments)||this;b.compact=!1;b.dismissButtonDisabled=!1;b.shouldRenderReasonAsFormattedString=!_.r("web_player_error_message_reason_as_formatted_string_killswitch");return b};
_.z(Qm,_.g);Qm.prototype.computeHasIcon_=function(b){return!!b};
Qm.prototype.isSignInIcon_=function(b){return b=="yt-icons:prompted_sign_in"};
Qm.prototype.onDismissButtonClick=function(){var b=this,h=this.data.disableOnClick,y,S=(y=this.data.dismissButton)==null?void 0:y.buttonRenderer;h&&!this.dismissButtonDisabled&&S&&setTimeout(function(){b.dismissButtonDisabled=!0},0)};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Qm.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Ax2.YtConditionalRendererBehavior),_.f("design:type",Object)],Qm.prototype,"ytConditionalRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Qm.prototype,"data",void 0);_.V([_.C({computed:"computeIcon_(data.icon)"}),_.f("design:type",Object)],Qm.prototype,"icon_",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.f("design:type",Boolean)],Qm.prototype,"hasIcon_",void 0);_.V([_.C({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.f("design:type",Boolean)],Qm.prototype,"signInIcon_",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Qm.prototype,"compact",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Qm.prototype,"dismissButtonDisabled",void 0);
_.V([_.C({type:Boolean}),_.f("design:type",Object)],Qm.prototype,"shouldRenderReasonAsFormattedString",void 0);_.V([_.sB({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],Qm);
_.k(Qm,"yt-player-error-message-renderer",function(){if(fLd===void 0){var b=document.createElement("template");_.D(b,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e\n<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <template is="dom-if" if="[[shouldRenderReasonAsFormattedString]]" restamp="" class="style-scope yt-player-error-message-renderer">\n      <yt-formatted-string id="reason" is-overlay="" text="[[data.reason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    </template>\n    <template is="dom-if" if="[[!shouldRenderReasonAsFormattedString]]" restamp="" class="style-scope yt-player-error-message-renderer">\n      <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    </template>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" disabled$="[[dismissButtonDisabled]]" on-tap="onDismissButtonClick" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="button" data="[[data.proceedButton.buttonRenderer]]" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;icA===void 0&&(icA=document.createElement("template"));var S=icA;y.call(h,S.content.cloneNode(!0),b.content.firstChild);fLd=b}b=fLd;return b},{mode:2});var wMY;var lLx;var mG=function(){return _.g.apply(this,arguments)||this};
_.z(mG,_.g);mG.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
mG.prototype.computeIcon_=function(b){return b?"yt-icons:"+b.iconType.toLowerCase():"error_outline"};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],mG.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],mG.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],mG.prototype,"data",void 0);_.V([_.C({computed:"computeIcon_(data.icon)"}),_.f("design:type",Object)],mG.prototype,"icon_",void 0);_.V([_.sB({is:"yt-player-kav-renderer",disableElementRegistration:!0})],mG);
_.k(mG,"yt-player-kav-renderer",function(){if(lLx===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;wMY===void 0&&(wMY=document.createElement("template"));var S=wMY;y.call(h,S.content.cloneNode(!0),b.content.firstChild);lLx=b}b=lLx;return b},{mode:2});var Zmn=_.bm(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.yd(_.T(function(b){var h=_.ZR("div"),y=_.L(_.pa(0,void 0,"jxh75d")),S=y.next().value,F=y.next().value;y=_.L(_.pa(null,void 0,"F5Zm8"));var a=y.next().value,P=y.next().value;_.wg(function(){oKy(h.value,F,P);h.value.scrollIntoView()});
y=M_j.bind(null,b.data,S);_.NS("resize",function(){var K=a();if(S()===1&&K!==null){var n;(n=window.grecaptcha)==null||n.reset(K)}});
return _.M("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.M("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.M("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var K,n;return(K=b.data().accessibility)==null?void 0:(n=K.accessibilityData)==null?void 0:n.label}),_.M(_.zv,{text:y,
className:_.P2("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.M("div",{el:h,class:"ytwPlayerCaptchaViewModelGridItem"})))},"pg"),"yt-player-captcha-view-model",{props:{data:_.v3}});var nKy=!1;_.q_F=_.T(function(b){var h=b.data;return _.M("yt-interstitial-view-model",{class:"interstitialViewModelHost"},_.M(_.H,{cond:function(){return h().icon},
then:function(y){return _.M("div",{class:"interstitialViewModelInterstitialIcon interstitialViewModelFlexItem"},_.M(_.mI,{data:y,alt:"",className:"interstitialViewModelIconImage",preserveWidth:!0}))}}),_.M(_.H,{cond:function(){return h().title},
then:function(y){return _.M("div",{class:"interstitialViewModelInterstitialTitle interstitialViewModelFlexItem"},_.M(_.zv,{text:y}))}}),_.M(_.H,{cond:function(){return h().description},
then:function(y){return _.M("div",{class:"interstitialViewModelInterstitialDescription interstitialViewModelFlexItem"},_.M(_.zv,{text:y}))}}),_.M(_.rC,{data:function(){return h().primaryButton}},{buttonViewModel:function(y){return _.M(_.EG,{data:y.data,
className:"interstitialViewModelFlexItem"})}}),_.M(_.rC,{data:function(){return h().secondaryButton}},{buttonViewModel:function(y){return _.M(_.EG,{data:y.data,
className:"interstitialViewModelFlexItem"})}}))},"qg");
_.q_F.idomCompat=!0;var x9f=_.T(function(b){var h=b.data;_.Eo();return _.M("yt-player-interstitial-renderer",{class:"playerInterstitialRendererHost"},_.M("div",{class:"playerInterstitialRendererScrim"},_.M(_.rC,{data:function(){return h().content}},{interstitialViewModel:_.q_F})))},"rg");
x9f.idomCompat=!0;_.yd(x9f,"yt-player-interstitial-renderer",{props:{data:_.D4}});var vW=function(){var b=_.g.apply(this,arguments)||this;b.noBackground=!1;b.compact=!1;b.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return b};
_.z(vW,_.g);vW.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"}}}};
vW.prototype.onUpdatePlayerErrorMessageCommand_=function(b){if(_.c(b,gNG)){var h;if(b=(h=_.c(b,gNG))==null?void 0:h.newPlayerErrorMessageRenderer)this.data=b}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],vW.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],vW.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],vW.prototype,"ytActionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],vW.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],vW.prototype,"status",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],vW.prototype,"noBackground",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],vW.prototype,"compact",void 0);_.V([_.sB({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],vW);
var QRd=_.$S()(vW,"yt-playability-error-supported-renderers",function(){if(E$d===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;VP2===void 0&&(VP2=document.createElement("template"));var S=VP2;y.call(h,S.content.cloneNode(!0),b.content.firstChild);E$d=b}b=E$d;return b},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var m9a=qIj("ytd-button-renderer");var XG5=void 0,uDf=void 0;var t_n=new y9M;var $7=new _.ca("ENTITY_STATE_TOKEN"),bs=new _.ca("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var v$x=function(b){this.store=b;this.kaI=new _.aB5},OO4=function(b,h,y){var S,F;
if(!(F=((S=h.playabilityStatus)==null?void 0:S.status)!=="OK")){b=b.store;var a;F=h.offlineState&&((a=h.videoDetails)==null?0:a.videoId)?_.r("enable_pl_r_c_cd")?mLU(b.getState().entities,h.videoDetails.videoId):!!zGF(b.getState().entities,h.videoDetails.videoId):!1}if(F)return!0;F=D_j(h);if(F===1){if(_.r("ab_v_vid_sig")){var P,K=(P=h.videoDetails)==null?void 0:P.videoId;if(!K||!y||K!==y){var n;h=new _.Gn("282054944_vid",{t48:y,sIV:(n=h.videoDetails)==null?void 0:n.videoId});_.QT(h)}}return!0}T7k=
0;var X,u;n=(K=h.auxiliaryUi)==null?void 0:(X=K.messageRenderers)==null?void 0:(u=X.bkaEnforcementMessageViewModel)==null?void 0:u.displayType;if(F!==3&&(n==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||n==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;n={reason:_.aU(_.Mt("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.r("ks_something_wrong_learn_more")?g4N("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.aU(_.Mt("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:_.aU("282054944")};b$P(h,{playerErrorMessageRenderer:n});return!1},NZY=function(b,h){if(SXj(h)){_.Hd(1,!0);
var y=(y=SXj(h))&&_.HmM()?y:void 0;y?(b$P(h,{enforcementMessageViewModel:y}),b.kaI.increment("IN_PLAYER"),_.Hd(5)):(b.kaI.increment("SKIP_DISPLAY"),_.Hd(2))}},b$P=function(b,h){b.playabilityStatus=Object.assign({},b.playabilityStatus,{status:"ERROR",
errorScreen:h});b.videoDetails=void 0};
v$x.prototype.handleResponse=function(b,h){if(b.playabilityStatus){var y,S,F,a=(h==null?void 0:(y=h.innerTubeRequest)==null?void 0:y.videoId)||(h==null?void 0:(S=h.innerTubeRequest)==null?void 0:(F=S.playerRequest)==null?void 0:F.videoId);OO4(this,b,a)&&NZY(this,b)}};
v$x[uN]=[$7];var HOI=new _.ca("ADBLOCK_DETECTION_SERVICE_TOKEN");var QH=function(b){this.nIS=b};
QH.prototype.bindInnertubeChallengeFetcher=function(b){this.nIS.bicf(b)};
QH.prototype.registerChallengeFetchedCallback=function(b){this.nIS.bcr(b)};
QH.prototype.getLatestChallengeResponse=function(){return this.nIS.blc()};var hhq;hhq=_.bm(["https://static.doubleclick.net/instream/ad_status.js"]);_.ykA=_.Ra(hhq);var d5f;_.hs=function(b,h,y){var S=this;this.network=b;this.options=h;this.networkStatusManager=y;this.cQ=null;if(h.useBotguardEverywhere){var F=new _.MC;this.cQ=F.promise;_.S5.ytAtRC&&_.I7(_.xP,function(){var a,P;return _.Z(function(K){if(K.nextAddress==1){if(!_.S5.ytAtRC)return K.return();a=S3E(null);return K.yield(S.iS(a),2)}P=K.yieldResult;_.S5.ytAtRC&&_.S5.ytAtRC(JSON.stringify(P));_.g3(K)})});
pGr().then(function(a){var P,K,n,X;return _.Z(function(u){if(u.nextAddress==1)return a.bindInnertubeChallengeFetcher(function(O){return S.iS(S3E(O))}),u.yield(Qey(),2);
P=u.yieldResult;K=a.getLatestChallengeResponse();n=K.challenge;if(!n)throw Error("mi");X={challenge:n,f8:qD(n),vm:P,bgChallenge:new wx};F.resolve(X);a.registerChallengeFetchedCallback(function(O){O=O.challenge;if(!O)throw Error("ni");O={challenge:O,f8:qD(O),vm:P,bgChallenge:new wx};S.cQ=Promise.resolve(O)});
_.g3(u)})})}else h.preload&&Ftx(this,new Promise(function(a){_.VT(_.xP,function(){a(aFq(S))},0)}))};
d5f=function(b){var h={preload:!0,useBotguardEverywhere:!0},y=!1;if(typeof h==="boolean")var S={preload:h};else typeof h==="undefined"?S={preload:!0}:(S=h,y=!!h.pRo);h=y?void 0:new _.PX;_.hs.instance=new _.hs(b,S,h);return _.hs.instance};
_.hs.prototype.s1y=function(){var b=this;return _.Z(function(h){return h.nextAddress==1?h.yield(Promise.race([b.cQ,null]),2):h.return(!!h.yieldResult)})};
_.hs.prototype.qzg=function(b,h,y){var S=this,F,a,P;return _.Z(function(K){S.cQ===null&&Ftx(S,aFq(S));F=!1;a={};P=function(){var n,X,u,O,N;return _.Z(function(t){switch(t.nextAddress){case 1:if(!S.options.ue9||!S.options.useBotguardEverywhere){t.jumpTo(2);break}return t.yield(U_f(),3);case 3:return n=t.yieldResult,t.yield((X=n)==null?void 0:X.checkForRefresh(),2);case 2:return t.yield(S.cQ,5);case 5:u=t.yieldResult;a.challenge=u.challenge;if(!u.vm){"c1a"in u.f8&&(a.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");
t.jumpTo(6);break}O=Object.assign({},{c:u.challenge,e:b},h);_.WE(t,7);F=!0;return t.yield(u.vm.snapshot({yn:O}),9);case 9:(N=t.yieldResult)?a.webResponse=N:a.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.Lz(t,6);break;case 7:_.C$(t),a.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 6:if(b==="ENGAGEMENT_TYPE_PLAYBACK"){var R=u.f8,I={};if(R.c6a){var U=Number(_.QC("DCLKSTAT",0));I.reportingStatus=String(Number(R.c)^(isNaN(U)?0:U))}R.c6b&&(I.broadSpectrumDetectionResult=String(Number(R.c)^Number(_.QC("CATSTAT",
0))));a.adblockReporting=I}return t.return(a)}})};
return K.return(Promise.race([P(),jsN(y,function(){var n=Object.assign({},a);F&&(n.error="ATTESTATION_ERROR_VM_TIMEOUT");return n})]))})};
var S3E=function(b){var h={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};b&&(h.interpreterHash=b);return h},aFq=function(b,h){h=h===void 0?0:h;
var y,S,F,a,P,K,n,X,u,O,N,t;return _.Z(function(R){switch(R.nextAddress){case 1:y=S3E(Fwe().v0z);if(_.r("att_fet_ks"))return _.WE(R,7),R.yield(b.iS(y),9);_.WE(R,4);return R.yield($5A(b,y),6);case 6:P=R.yieldResult;F=P.kzi;a=P.qBi;S=P;_.Lz(R,3);break;case 4:return _.C$(R),_.vX(Error("oi`"+h)),Ltf(b,864E5),R.return({challenge:"",f8:{},vm:void 0,bgChallenge:void 0});case 9:S=R.yieldResult;if(!S)throw Error("pi");if(!S.challenge)throw Error("qi");F=S.challenge;a=qD(F);if("c1a"in a&&(!S.bgChallenge||!S.bgChallenge.program))throw Error("ri");
_.Lz(R,3);break;case 7:K=_.C$(R);_.vX(K);h++;if(h>=5)return _.vX(Error("oi`"+h)),Ltf(b,864E5),R.return({challenge:"",f8:{},vm:void 0,bgChallenge:void 0});n=1E3*Math.pow(2,h-1)+Math.random()*1E3;return R.return(new Promise(function(I){_.VT(_.xP,function(){I(aFq(b,h))},n)}));
case 3:X=AMf(a);Ltf(b,X*1E3);u=void 0;if(!("c1a"in a&&S.bgChallenge)){R.jumpTo(10);break}O=WTn(S.bgChallenge);_.WE(R,11);return R.yield(dlb(Fwe(),O),13);case 13:_.Lz(R,12);break;case 11:return N=_.C$(R),_.vX(N),R.return({challenge:F,f8:a,vm:u,bgChallenge:O});case 12:return _.WE(R,14),u=new _.SA({challenge:O,gRB:{jF:"aGIf"}}),R.yield(u.h8f,16);case 16:_.Lz(R,10);break;case 14:t=_.C$(R),_.vX(t),u=void 0;case 10:return R.return({challenge:F,f8:a,vm:u,bgChallenge:O})}})},PZx=function(b,h){var y;
return _.Z(function(S){if(S.nextAddress==1)return xG(2),_.WE(S,2),S.yield(b.network.iS(h),4);if(S.nextAddress!=2)return(y=S.yieldResult)?y.challenge&&!y.bgChallenge?xG(1):xG(4):xG(3),S.return(y);_.C$(S);xG(3);return S.return(void 0)})};
_.hs.prototype.iS=function(b){var h=this,y;return _.Z(function(S){y=h.networkStatusManager;if(!y||y.isNetworkAvailable())return S.return(PZx(h,b));_.ex("att_pna",void 0,"attestation_challenge_fetch");return S.return(new Promise(function(F){y.listenOnce("publicytnetworkstatus-online",function(){PZx(h,b).then(F)})}))})};
var Kta=function(b){if(!b)throw Error("pi");if(!b.challenge)throw Error("qi");var h=b.challenge,y=qD(h);if("c1a"in y&&(!b.bgChallenge||!b.bgChallenge.program))throw Error("ri");return Object.assign({},b,{kzi:h,qBi:y})},$5A=function(b,h){var y,S,F,a,P;
return _.Z(function(K){switch(K.nextAddress){case 1:y=void 0,S=0,F={};case 2:if(!(S<5)){K.jumpTo(4);break}if(!(S>0)){K.jumpTo(5);break}F.c2q=1E3*Math.pow(2,S-1)+Math.random()*1E3;return K.yield(new Promise(function(n){return function(X){_.VT(_.xP,function(){X(void 0)},n.c2q)}}(F)),5);
case 5:return _.WE(K,7),K.yield(b.iS(h),9);case 9:return a=K.yieldResult,K.return(Kta(a));case 7:y=P=_.C$(K),P instanceof Error&&_.vX(P);case 8:S++;F={c2q:void 0};K.jumpTo(2);break;case 4:throw y;}})},Ftx=function(b,h){b.cQ=h},Z$X=function(b){var h,y,S;
return _.Z(function(F){if(F.nextAddress==1)return F.yield(Promise.race([b.cQ,null]),2);h=F.yieldResult;var a=aFq(b);b.cQ=a;(y=h)==null||(S=y.vm)==null||S.dispose();_.g3(F)})},Ltf=function(b,h){var y=Date.now()+h,S=function(){var F;
return _.Z(function(a){F=y-Date.now();return F<1E3?a.yield(Z$X(b),0):(_.VT(_.xP,S,Math.min(F,6E4)),a.jumpTo(0))})};
S()},jsN=function(b,h){return new Promise(function(y){_.VT(_.xP,function(){y(h())},b)})};var ofY=function(){};
ofY.prototype.processContext=function(b){var h=_.hs.instance;if(!h)return _.AT();var y=YqN(b);return y?new WA(h.qzg(y,CWY(b),500).then(function(S){var F;(b==null?0:(F=b.innerTubeRequest)==null?0:F.context)||(b.innerTubeRequest.context={});F=b.innerTubeRequest.context;F.request||(F.request={});F.request.attestationResponseData=S})):_.AT()};var Mwx=function(b){this.innertubeTransportService=b};
Mwx.prototype.iS=function(b){_.ex("att_fsr",void 0,"attestation_challenge_fetch");return _.cy(this.innertubeTransportService,b,_.yk(_.ire)).then(function(h){_.ex("att_frr",void 0,"attestation_challenge_fetch");return h})};_.nfa=function(b){this.innertubeTransportService=b};var XEq=new _.ca("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var H$x=function(){},O$A=function(b,h,y,S,F){var a=_.QC("YPC_MB_URL");
_.cHN(a).then(function(){ugd(a,b,h,y,S,F)})},ugd=function(b,h,y,S,F,a){try{var P=_.S4.payments.business.integration,K=_.S4.payments.business.integration.Style.create().withMaterialDesignStyle(),n=P.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.r("enable_window_constrained_buy_flow_dialog")&&(n=n.usingPopupStyle("windowConstrained"));a&&(n=n.usingCloseCallback(a));var X=y?y:_.QC("YPC_GB_LANGUAGE"),u=_.QC("SESSION_INDEX");P.bootstrap.fromPaymentsUrl(b);P.bootstrap.asMashupMode(n).usingGaiaIndex(u).usingLocale(X).usingStyle(K).usingDefaultActivityStatusChangeHandler().inStandaloneContext(P.standaloneContextAuthId.forGaia()).purchaseManager(h,function(O){S&&S(O)}).load(void 0,F)}catch(O){throw F&&F(O),_.QT(O),O;
}};var N3P=new _.ca("PURCHASE_MANAGER_TOKEN");var twd=function(){var b=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return b.videos},
getContinuationsPresent:function(){return b.continuationsPresent},
setVideos:function(h){b.videos=h},
getRecommendedVideos:function(){return b.recommendedVideos},
setRecommendedVideos:function(h){b.recommendedVideos=h}}};
twd.prototype.addVideos=function(b){b&&(this.videos=b.filter(function(h){return!!_.Gs5(h)}).map(function(h){var y=_.Gs5(h);
a:{var S;if(h.playlistVideoRenderer&&((S=h.playlistVideoRenderer)==null?0:S.voteSortTiebreaker))var F=h.playlistVideoRenderer.voteSortTiebreaker;else{if(_.c(h,vV)){var a;if(S=(F=_.c(h,vV))==null?void 0:(a=F.playlistItemData)==null?void 0:a.voteSortTiebreaker){F=S;break a}}F=""}}return{itemId:y,videoId:_.EKq(h),voteCount:_.imI(h),voteSortTiebreaker:F}}),this.continuationsPresent=!!_.c(b[b.length-1],_.yp))};
var rkf=function(b,h){return b.videos.findIndex(function(y){return y.itemId===h})},ckf=function(b,h){return b.recommendedVideos.findIndex(function(y){return y.itemId===h})},Rhd=function(b){b={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:b}}}}};_.H9().resolve(_.OM).resolveCommand(b)};var zhX=function(){twd.apply(this,arguments)};
_.z(zhX,twd);
var fZa=function(b,h,y,S){if(!b.parentElem)throw Error("wi");var F=rkf(b,h);F===-1&&(F=ckf(b,h),F=F!==-1?F+b.videos.length:-1);if(F===-1)throw Error("xi");var a=F>=b.videos.length?b.recommendedVideos[F-b.videos.length]:b.videos[F];a.voteCount=y;a.voteSortTiebreaker=Date.now().toString();F>=b.videos.length?b.recommendedVideos.splice(F-b.videos.length,1):b.videos.splice(F,1);var P=b.videos;for(var K=0,n=P.length-1;K<=n;){var X=Math.floor((K+n)/2);if(P[X].voteCount<a.voteCount)n=X-1;else if(P[X].voteCount>a.voteCount)K=
X+1;else{a:{var u=a.voteSortTiebreaker;var O=P[X].voteSortTiebreaker;if(u.length!==O.length)u=u.length>O.length;else{for(var N=0;N<u.length;N++){var t=u.charCodeAt(N),R=O.charCodeAt(N);if(t>R){u=!0;break a}if(t<R)break}u=!1}}u?n=X-1:K=X+1}}P=K;if(P===-1)throw Error("yi");b.videos.splice(P,0,a);F!==P&&D52(b,F,P,h,y,S)},D52=function(b,h,y,S,F,a){var P,K=(P=b.parentElem)==null?void 0:P.children,n=Math.min(h,y),X=Math.max(h,y);
if(K)for(P=n;P<=X;P++)K[P].style.viewTransitionName="item-"+String(P);document.startViewTransition(function(){if(b.parentElem){var u=b.parentElem.children;if(!(!u||h<0||h>=u.length||y<0||y>=u.length)){var O=u[h];if(O){O.remove();b.showRefreshPill=y>=b.videos.length-1&&b.continuationsPresent;if(!b.showRefreshPill){u=u[y]||null;var N;(N=b.parentElem)==null||N.insertBefore(O,u)}_.Sx(b.parentElem,"yt-update-video-data-voting-animation",{toIdx:y,itemId:S,newVoteCount:F,voteStatus:a,hideItem:b.showRefreshPill})}}}}).finished.then(function(){if(K)for(var u=
n;u<=X;u++)K[u].style.viewTransitionName="";
if(b.showRefreshPill)Rhd(_.Mt("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var O;if(O=u=(O=b.parentElem)==null?void 0:O.children[y])O=u.getBoundingClientRect(),u=O.bottom,O=!(O.top>=0&&u<=b.clientHeight);O&&(O=_.nI(h>y?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(h-y)),Rhd(O))}})};var WtA=function(b,h){var y=this;b?this.innertubeTransportServicePromise=Promise.resolve(b):h&&(this.innertubeTransportServicePromise=h(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new Tl(3E3,function(S){return IFf(y,S)},0);
this.validateMiniAppVideoIdRateLimiter=new Tl(3E3,function(S){return B3a(y,S)},1)},d9A=function(b,h){b.JSC$17559_miniAppId=h;
b.reportMiniAppValueRateLimiter=new Tl(3E3,function(y){return IFf(b,y)},0);
b.validateMiniAppVideoIdRateLimiter=new Tl(3E3,function(y){return B3a(b,y)},1)},$9f=function(b,h){var y;
return _.Z(function(S){if(S.nextAddress==1)return S.yield(b.reportMiniAppValueRateLimiter.call(h),2);y=S.yieldResult;return S.return([y,h])})},IFf=function(b,h){var y,S,F,a,P,K,n;
return _.Z(function(X){switch(X.nextAddress){case 1:return X.yield(b.innertubeTransportServicePromise,2);case 2:return y=X.yieldResult,S=_.yk(QiW),F=Date.now(),a={externalPostId:b.JSC$17559_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(F/1E3),nanos:Math.round(F%1E3*1E6)},intValue:""+h}},_.WE(X,3),X.yield(_.cy(y,a,S),5);case 5:P=X.yieldResult;_.Lz(X,4);break;case 3:throw K=_.C$(X),K;case 4:if(P){if("error"in P&&P.error)throw P.error;if(P.errorMetadata)throw Error("zi`"+
P.errorMetadata.status);if(n=P.userStatResult)return X.return(n);throw Error("Ai");}throw Error("Bi");}})},PJd=function(b){var h,y,S,F,a;
_.Z(function(P){switch(P.nextAddress){case 1:return P.yield(b.innertubeTransportServicePromise,2);case 2:return h=P.yieldResult,y=_.yk(QiW),S={externalPostId:b.JSC$17559_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.WE(P,3),P.yield(_.cy(h,S,y),5);case 5:F=P.yieldResult;_.Lz(P,4);break;case 3:throw a=_.C$(P),a;case 4:if(F==null)throw Error("Bi");if("error"in F&&F.error)throw F.error;if(F.errorMetadata)throw Error("zi`"+F.errorMetadata.status);_.g3(P)}})};
WtA.prototype.flush=function(){var b=this;return _.Z(function(h){return h.nextAddress==1?h.yield(b.reportMiniAppValueRateLimiter.flush(),2):h.yield(b.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var LAN=function(b,h){return _.Z(function(y){return y.nextAddress==1?y.yield(b.validateMiniAppVideoIdRateLimiter.call(h),2):y.return(y.yieldResult)})},B3a=function(b,h){var y,S,F,a,P,K;
return _.Z(function(n){switch(n.nextAddress){case 1:return n.yield(b.innertubeTransportServicePromise,2);case 2:return y=n.yieldResult,S=_.yk(Via),F={videoId:h},_.WE(n,3),n.yield(_.cy(y,F,S),5);case 5:a=n.yieldResult;_.Lz(n,4);break;case 3:throw P=_.C$(n),P;case 4:if(a){if("error"in a&&a.error)throw a.error;if(a.errorMetadata)throw Error("zi`"+a.errorMetadata.status);if(K=a.playabilityStatus)return n.return(K.status);throw Error("Ci");}throw Error("Bi");}})};
WtA[uN]=[_.XS(_.DT),_.XS(zDb)];var Akd=function(){this.clientData=new Map};
Akd.prototype.getData=function(b){return this.clientData.get(b)};var U5N=function(b){this.store=b};
U5N.prototype.handleResponse=function(b){(b=_.c(b.frameworkUpdates,qG))&&_.On(b,this.store)};
U5N[uN]=[_.nd];var pEP=new _.ca("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var JkP,ehA,CZx;_.yJ=new _.ca("FLOW_STATE_MANAGER_TOKEN");JkP=function(){this.flowStates=new Map};
ehA=function(b,h){b=_.L(b.flowStates.values());for(var y=b.next();!y.done;y=b.next())if(y=y.value,y.flowRenderer.targetId===h)return y};
CZx=function(b,h){var y,S=((y=b.flowRenderer.steps)!=null?y:[]).filter(function(F){return!h.includes(_.c(F,_.ak).stepId)});
b.flowRenderer.steps=S};var gfN=function(b){this.JSC$17583_flowStateManager=b};
_.z(gfN,B8);gfN.prototype.resolveCommand=function(b){var h=this,y,S,F,a,P,K;return _.Z(function(n){y=_.c(b,bE8);F=(S=y)==null?void 0:S.stepIds;P=(a=y)==null?void 0:a.targetId;if(!F||!P)return n.return();K=ehA(h.JSC$17583_flowStateManager,P);if(!K)return n.return();CZx(K,F);_.g3(n)})};
var Sv=function(){gfN.apply(this,arguments)};
_.z(Sv,gfN);Sv[uN]=[_.yJ];var ssP=function(b,h){this.JSC$17589_reduxStore=b;this.JSC$17589_flowStateManager=h};
_.z(ssP,B8);
ssP.prototype.resolveCommand=function(b){var h=this,y,S,F,a,P,K,n,X,u,O,N,t,R;return _.Z(function(I){y=_.c(b,_.hIo);S=y.stepId;F=y.targetId;a=ehA(h.JSC$17589_flowStateManager,F);K=(P=a)==null?void 0:P.flowRenderer;n=K.flowStateEntityKey;X=_.bG(h.JSC$17589_reduxStore.getState(),n);if(!X)return I.return();u=X.currentStepId;t=(N=(O=X)==null?void 0:O.stepIdStack)!=null?N:[];R=u===t[t.length-1]?S:u;h.JSC$17589_reduxStore.dispatch(_.eD("flowStateEntity",n,{currentStepId:S,stepIdStack:[R]},"REPEATED_FIELDS_MERGE_OPTION_APPEND"));_.g3(I)})};
var FJ=function(){ssP.apply(this,arguments)};
_.z(FJ,ssP);FJ[uN]=[_.nd,_.yJ];var Y3P=function(b,h,y){this.JSC$17596_reduxStore=b;this.JSC$17596_flowStateManager=h;this.JSC$17596_commandHandler=y};
_.z(Y3P,B8);
Y3P.prototype.resolveCommand=function(b,h){var y=this,S,F,a,P,K,n,X,u,O,N,t,R,I;return _.Z(function(U){S=_.c(b,_.yQ8);F=S.targetId;a=ehA(y.JSC$17596_flowStateManager,F);K=(P=a)==null?void 0:P.flowRenderer;n=K.flowStateEntityKey;X=_.bG(y.JSC$17596_reduxStore.getState(),n);N=[].concat(_.f$((O=(u=X)==null?void 0:u.stepIdStack)!=null?O:[]));t=N.pop();((R=X)==null?void 0:R.currentStepId)===t&&(t=N[N.length-1]);if(!t)return(I=S.onFirstStepCommand)&&y.JSC$17596_commandHandler.resolveCommand(I,h),U.return();
y.JSC$17596_reduxStore.dispatch(_.eD("flowStateEntity",n,{currentStepId:t,stepIdStack:N}));_.g3(U)})};
var an=function(){Y3P.apply(this,arguments)};
_.z(an,Y3P);an[uN]=[_.nd,_.yJ,_.OM];var T3x=function(b,h){this.innertubeTransportService=b;this.JSC$17601_commandHandler=h};
_.z(T3x,B8);T3x.prototype.resolveCommand=function(b,h){var y=this,S,F,a,P,K;return _.Z(function(n){if(n.nextAddress==1){S=_.c(b,SpW);if(!S)return n.return();_.WE(n,2);return n.yield(_.f9(y.innertubeTransportService,b),4)}if(n.nextAddress!=2){F=n.yieldResult;if(!F)return n.return();(a=F.updateFlowCommand)&&y.JSC$17601_commandHandler.resolveCommand(a,h);return _.Lz(n,0)}_.C$(n);(K=(P=S)==null?void 0:P.onFailureCommand)&&y.JSC$17601_commandHandler.resolveCommand(K,h);_.g3(n)})};
var d6=function(){T3x.apply(this,arguments)};
_.z(d6,T3x);d6[uN]=[_.DT,_.OM];var GHA=function(b,h){this.JSC$17607_flowStateManager=b;this.JSC$17607_commandHandler=h};
_.z(GHA,B8);
GHA.prototype.resolveCommand=function(b,h){var y=this,S,F,a,P;return _.Z(function(K){S=_.c(b,_.aG8);F=S.targetId;a=ehA(y.JSC$17607_flowStateManager,F);if(!a)return K.return(Promise.resolve());var n=a,X=(P=S.steps)!=null?P:[],u,O=(u=n.flowRenderer.steps)!=null?u:[];X=[].concat(_.f$(O),_.f$(X));n.flowRenderer.steps=X;S.flowContinuationCommand&&(a.flowRenderer.flowContinuationCommand=S.flowContinuationCommand);S.entityUpdateCommand&&y.JSC$17607_commandHandler.resolveCommand(S.entityUpdateCommand,h);
return K.return(Promise.resolve())})};
var jv=function(){GHA.apply(this,arguments)};
_.z(jv,GHA);jv[uN]=[_.yJ,_.OM];var kHA={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],android_messenger:[[0,1,192]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,
1,24]],countdown_to_close:[[0,1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,
1,36]],face_filled_very_happy:[[0,1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,
1,300]],hi5:[[0,1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_eighty_updated:[[0,1,24]],offline_downloading_forty:[[0,
1,24]],offline_downloading_forty_updated:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_sixty_updated:[[0,1,24]],offline_downloading_spinner:[[0,1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_twenty_updated:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_downloading_zero_updated:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],
play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,2,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,
1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,
1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var Vwd=new _.ca("ICON_SET_TOKEN"),Eff=new _.ca("ICON_URL_PROVIDER_TOKEN"),i$Y=new _.ca("PREFETCH_ICONS_TOKEN"),fFA=new _.ca("ICON_MAP_FN_TOKEN");var $1={},wEd=($1.ACCESS_TIME="clock",$1.ACCOUNT_BOX=_.QC("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?"person_box":"person_account",$1.ACCOUNT_BOX_CAIRO="person_account_cairo",$1.ACCOUNT_CIRCLE="person_circle",$1.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",$1.ACCOUNT_LINKED="account_link_success",$1.ACCOUNT_UNLINKED="account_link",$1.ADD_FRIEND="people",$1.ADD_MODERATOR="shield_add",$1.ADD_TO_LIBRARY="bookmark",$1.ADD_TO_PLAYLIST="add",$1.ADD_TO_QUEUE_TAIL="list_queue",$1.ADD_TO_REMOTE_QUEUE="list_music",
$1.ADD_TO_WATCH_LATER="clock",$1.ADD_VIDEO_LINK="film_strip_add",$1.ALERT_WARN_RED="alert_triangle",$1.ARROW_BACK="arrow_left",$1.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",$1.ARROW_DROP_DOWN="chevron_down",$1.ARROW_DROP_UP="chevron_up",$1.ARROW_FORWARD="arrow_right",$1.ARTIST="person_music",$1.AUDIOTRACK="audio",$1.AUTO_AWESOME="sparkle",$1.AVATAR_ANONYMOUS="person_circle",$1.AVATAR_LOGGED_OUT="person_circle",$1.BACK="arrow_left",$1.BAR_CHART="bar_graph",$1.BLOCK="slash_circle_left",
$1.BLOCK_USER="slash_circle_left",$1.BOOKMARK_BORDER="bookmark",$1.BREAKING_NEWS_ALT_1="article_alert",$1.BROADCAST_CAIRO="podcast_cairo",$1.BUG_REPORT="bug",$1.CAMERA_ALT="camera",$1.CAMPAIGN="megaphone",$1.CANCEL="x_circle",$1.CAPTIONS="closed_caption",$1.CAST_OUTLINE="chromecast",$1.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",$1.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",$1.CHAT="message_bubble_left",$1.CHAT_BUBBLE="message_bubble_empty",$1.CHAT_SPARK="spark_message_bubble_left",$1.CHECK_BOX_OUTLINE_BLANK=
"box_empty",$1.CHECK_CIRCLE_OUTLINE="check_circle",$1.CHECK_CIRCLE_THICK="check_circle",$1.CLARIFY="article_clarify",$1.CLOSED_CAPTION_SELECTED="closed_caption",$1.CLOSE="x_mark",$1.CLOUD_UPLOAD="cloud_arrow_up",$1.COLLAPSE="chevron_up",$1.COLLAPSE_CAIRO="chevron_up_cairo",$1.COLLECTION="layers",$1.COLOR_LENS="palette",$1.COMMENT="message_bubble_right",$1.CONSENT_SHIELD="person_shield",$1.CONTENT_CUT="scissors",$1.CONTENT_CUT_CAIRO="scissors_cairo",$1.COURSE=_.r("web_enable_course_icon_update")?"creator_academy":
"lightbulb",$1.COURSE_CAIRO=_.r("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",$1.CREATION_LIVE="radar_live",$1.CREATION_POST="box_pencil",$1.CREATION_UPLOAD="my_videos",$1.CREATION_UPLOAD_RED="upload",$1.CREATOR_METADATA_MONETIZATION="dollar_sign",$1.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",$1.CREATOR_STUDIO="youtube_studio",$1.DASHBOARD="grid_asymmetrical",$1.DELETE="trash_can",$1.DELETE_SWEEP="trash_can",$1.DESKTOP="laptop",$1.DISLIKE="thumb_down",$1.DISLIKE_SELECTED=
"thumb_down",$1.DISMISSAL="x_mark",$1.DISMISS_QUEUE="list_remove",$1.DONE_ALL="check_double",$1.DOWN_ARROW="arrow_down",$1.DO_NOT_DISTURB="slash_circle_left",$1.DRAFT="paper_corner_folded",$1.DRAG_HANDLE="bars_2",$1.EDIT="pencil",$1.EMOJI="face_very_happy",$1.EMOJI_FLAGS="flag",$1.EMOJI_OBJECTS="lightbulb",$1.EMOJI_PEOPLE="face_very_happy",$1.EMOJI_RECENT="clock",$1.EMPTY_HEART="heart",$1.EMPTY_LIKE="thumb_up",$1.ERROR_BLACK="alert_circle",$1.ERROR_OUTLINE="alert_circle",$1.EXIT_APP="arrow_in",$1.EXIT_TO_APP=
"arrow_in",$1.EXPAND="chevron_down",$1.EXPAND_ALL="chevron_expand",$1.EXPAND_CAIRO="chevron_down_cairo",$1.EXPAND_LESS="chevron_up",$1.EXPAND_MORE="chevron_down",$1.EXPLORE="compass",$1.EXPLORE_DESTINATION="compass",$1.EXTERNAL_LINK="open_new",$1.FAB_UPLOAD="upload",$1.FACE_HAPPY_OUTLINE="face_happy",$1.FACT_CHECK="article_check",$1.FASHION_LOGO="fashion",$1.FASHION_LOGO_CAIRO="fashion_cairo",$1.FAVORITE="heart",$1.FEEDBACK="message_bubble_alert",$1.FEEDBACK_CAIRO="message_bubble_alert_cairo",$1.FILL_ARROW_SOLID_DOWN_16=
"arrow_solid_down",$1.FILL_ARROW_SOLID_UP_16="arrow_solid_up",$1.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",$1.FILTER="menu_filter",$1.FIRST_PAGE="chevron_first",$1.FLAG="flag",$1.FULL_HEART="heart",$1.GAME_CONSOLE_DPAD="game_console_dpad",$1.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",$1.GAMING_LOGO="gaming",$1.GAMING_LOGO_CAIRO="gaming_cairo",$1.GO_TO_PAGE="arrow_right",$1.GROUPS="people_group",$1.HAPPY="face_happy",$1.HEALTH_AND_SAFETY="shield_plus",$1.HELP="question_circle",$1.HELP_CAIRO=
"question_circle_cairo",$1.HELP_OUTLINE="question_circle",$1.HIDE="slash_circle_left",$1.IMAGE="image",$1.INFINITY_ICON="infinity",$1.INFO="info_circle",$1.INFO_OUTLINE="info_circle",$1.INSERT_CHART="bar_graph_box_vertical",$1.INSERT_CHART_OUTLINED="bar_graph_box_vertical",$1.INSERT_PHOTO="image",$1.KEEP="pin",$1.KEEP_OFF="pin_off",$1.KEYBOARD="keyboard",$1.KEYBOARD_ARROW_DOWN="chevron_down",$1.KEYBOARD_ARROW_UP="chevron_up",$1.KIDS_BLOCK="slash_circle_left",$1.LANGUAGE="globe",$1.LAST_PAGE="chevron_last",
$1.LAUNCH="open_new",$1.LEARNING="lightbulb",$1.LEARNING_CAIRO="lightbulb_cairo",$1.LIBRARY_ADD=qqF("library_add"),$1.LIBRARY_OUTLINE="library",$1.LIBRARY_REMOVE=qqF(),$1.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",$1.LIKES_PLAYLIST="thumb_up",$1.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",$1.LIKE="thumb_up",$1.LIKE_SELECTED="thumb_up",$1.LIVE="radar_live",$1.LIVE_CAIRO="radar_live_cairo",$1.LIVE_UNLISTED="link",$1.LOCATION_ON="location_point",$1.LOCATION_PIN="location_point",$1.LOOP="arrow_repeat",$1.LOOP_ACTIVE=
"arrow_repeat",$1.LOOP_ONE="arrow_repeat_1",$1.LOOP_ONE_ACTIVE="arrow_repeat_1",$1.MEH="face_meh",$1.MEMBERS_ONLY_MODE_OFF="message_bubble_left",$1.MESSAGE="message_bubble_left",$1.MICROPHONE_ON="mic",$1.MIX="youtube_mix",$1.MONETIZATION_ON="dollar_sign_circle",$1.MONEY_FILL="dollar_sign_container",$1.MONEY_FILL_JPY="yen_sign_container",$1.MONEY_HEART="dollar_sign_heart",$1.MORE_HORIZ="overflow_horizontal",$1.MORE_VERT="overflow_vertical",$1.MUSIC="audio",$1.MUSIC_CAIRO="audio_cairo",$1.MUSIC_NOTE_SYMBOL=
"music",$1.MUSIC_SHUFFLE="arrow_shuffle",$1.MY_CHANNEL="person_circle",$1.MY_LOCATION="location_point",$1.NEWS_STORY="news",$1.NEXT="chevron_right",$1.NOTIFICATIONS="bell",$1.NOTIFICATIONS_ACTIVE="bell_on",$1.NOTIFICATIONS_CAIRO="bell_cairo",$1.NOTIFICATIONS_DONE_CHECKMARK="check",$1.NOTIFICATIONS_INBOX="bell",$1.NOTIFICATIONS_NONE="bell",$1.NOTIFICATIONS_OFF="bell_off",$1.NOT_INTERESTED="slash_circle_left",$1.OFFICIAL_ARTIST_BADGE="audio",$1.OFFLINE_CLOUD="cloud_off",$1.OFFLINE_DOWNLOAD="download",
$1.OFFLINE_DOWNLOAD_CAIRO="download_cairo",$1.OFFLINE_PAUSE="pause",$1.OPEN_IN_NEW="open_new",$1.OUTLINE_ADJUST="adjust",$1.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",$1.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",$1.OUTLINE_BAG="bag",$1.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",$1.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",$1.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",$1.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",$1.PAID="dollar_sign",$1.PAUSE_OUTLINED="pause",$1.PAYMENT=
"credit_card",$1.PERSON_RADAR_FILLED="person_radar",$1.PHONE_DOWNLOAD="mobile_download",$1.PLAYABLES_LOGO="tic_tac_toe",$1.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",$1.PLAYLISTS="list_play_arrow",$1.PLAYLISTS_CAIRO="list_play_arrow_cairo",$1.PLAYLIST_ADD=qqF("list_add"),$1.PLAYLIST_ADD_CHECK=qqF("list_check"),$1.PLAYLIST_PLAY="list_play_arrow",$1.PLAY_ALL="play_arrow",$1.PLAY_CIRCLE="play_arrow_circle",$1.PLAY_OUTLINED="play_arrow_circle",$1.PRIVACY_INFO="shield",$1.PRIVACY_PRIVATE="lock",$1.PRIVACY_PUBLIC=
"earth",$1.PRIVACY_UNLISTED="link",$1.PROMOTE="megaphone",$1.PURCHASES="price_tag",$1.PURCHASE_SUPER_CHAT="super_chat",$1.PURCHASE_SUPER_STICKER="super_sticker",$1.QUESTION_ANSWER="message_bubble_question",$1.QUEUE_PLAY_LAST="list_queue_last",$1.QUEUE_PLAY_NEXT="list_play_arrow",$1.REMIX_FILLED="youtube_shorts_remix",$1.REMOVE="bar_circle",$1.REMOVE_CIRCLE="bar_circle",$1.REMOVE_CIRCLE_OUTLINE="bar_circle",$1.REMOVE_DONE="check_double_off",$1.REMOVE_FROM_HISTORY="bar_circle",$1.REMOVE_FROM_PLAYLIST=
"bar_circle",$1.REMOVE_MODERATOR="shield_off",$1.REPLAY="arrow_circle",$1.REPLAY_10="skip_back_10",$1.REPORT_PROBLEM="alert_triangle",$1.SAD="face_sad",$1.SAVE_PLAYLIST="bookmark",$1.SCHEDULE="clock",$1.SCHOOL="creator_academy",$1.SCREEN_FULLSCREEN="screen_full",$1.SEARCH_HISTORY="arrow_time",$1.SELL="price_tag",$1.SETTINGS="gear",$1.SETTINGS_CAIRO="gear_cairo",$1.SETTINGS_LIGHT="gear",$1.SETTINGS_MATERIAL="gear",$1.SHARE_ARROW="share",$1.SHIELD_WITH_AVATAR="person_shield",$1.SHOPPING_BAG="bag",$1.SHOPPING_BAG_CAIRO=
"bag_cairo",$1.SHOPPING_CART="cart",$1.SHORTS_COMMENT="youtube_shorts_message_bubble_right",$1.SHORTS_DISLIKE="youtube_shorts_thumb_down",$1.SHORTS_LIKE="youtube_shorts_thumb_up",$1.SHORTS_SHARE="youtube_shorts_share",$1.SHUFFLE="arrow_shuffle",$1.SLOW_MODE_OFF="message_bubble_left",$1.SOCIAL="people",$1.SORT="menu_sort",$1.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",$1.SPEED_1X="1x",$1.SPEED_1_POINT_2X="1_point_2x",$1.SPEED_1_POINT_5X="1_point_5x",$1.SPEED_1_POINT_8X="1_point_8x",$1.SPEED_2X="2x",
$1.SPEED_POINT_2X="point_2x",$1.SPEED_POINT_8X="point_8x",$1.SPONSORSHIP_STAR="star_circle",$1.STAFF_PICK="spotlight",$1.START_DVR="add",$1.STAR_BORDER="star",$1.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",$1.STICKER_EMOTICON="face_happy",$1.STOP_DVR="stop",$1.SUBSCRIBE="youtube_logo_icon",$1.SUBSCRIBE_PLUS="add_cairo",$1.SUBSCRIPTION_MANAGER="gear",$1.SUPERVISOR_ACCOUNT="people",$1.SUPER_CHAT_FOR_GOOD="hands_heart",$1.SWAP_HORIZ="arrow_swap_horizontal",$1.SWITCH_ACCOUNTS="person_account",$1.TAB_ACCOUNT=
"person",$1.TAB_ACTIVITY="bell",$1.TAB_BOOKMARK="bookmark",$1.TAB_EXPLORE="compass",$1.TAB_HOME="home",$1.TAB_HOME_CAIRO="home_cairo",$1.TAB_INBOX="mail",$1.TAB_LIKED="thumb_up",$1.TAB_MUSIC_PREMIUM="youtube_music",$1.TAB_SHORTS="youtube_shorts",$1.TAB_SHORTS_CAIRO="youtube_shorts_cairo",$1.TAB_SUBSCRIPTIONS="subscriptions",$1.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",$1.TAB_TRENDING="fire",$1.TIMER="stopwatch",$1.TRAILER="youtube_originals",$1.TRENDING="fire",$1.TRENDING_CAIRO="fire_cairo",$1.TRENDING_DOWN=
"rating_down",$1.TRENDING_UP="rating_up",$1.TROPHY="trophy",$1.TROPHY_CELEBRATIONS="fireworks",$1.TUNE="adjust",$1.UNBLOCK_USER="bar_circle",$1.UNLIMITED="youtube_logo_icon",$1.UNPLUGGED_LIVE_GUIDE="radar_live",$1.UNPLUGGED_SPORTS="eye_off",$1.UPLOADS="library",$1.UP_ARROW="arrow_up",$1.VERTICAL_ALIGN_BOTTOM="download",$1.VERY_HAPPY="face_very_happy",$1.VERY_SAD="face_very_sad",$1.VIDEOGAME_ASSET="gaming",$1.VIDEOS="play_arrow_circle",$1.VIDEO_CALL="video_camera_add",$1.VIDEO_LIBRARY_WHITE="library",
$1.VIDEO_YOUTUBE="youtube_logo_icon",$1.VIEW_LIST="list_view",$1.VIEW_LIST_CAIRO="list_view_cairo",$1.VISIBILITY="eye",$1.VISIBILITY_OFF="eye_off",$1.VOLUME_MUTE="volume_off",$1.VOLUME_UP="volume_on",$1.WALLPAPER="image",$1.WARNING="alert_triangle",$1.WATCH_HISTORY="arrow_time",$1.WATCH_HISTORY_CAIRO="arrow_time_cairo",$1.WATCH_LATER="clock",$1.WATCH_LATER_CAIRO="clock_cairo",$1.WATCH_RELATED_MIX="youtube_mix",$1.WHAT_TO_WATCH="home",$1.YOUTUBE_MUSIC_MONOCHROME="youtube_music",$1.YOUTUBE_MUSIC_MONOCHROME_CAIRO=
"youtube_music_cairo",$1.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",$1.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",$1.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",$1.YT_OUTLINE_MUSIC_24="music",$1);var Lg={},lFf=(Lg.ACCESS_TIME="clock",Lg.ACCOUNT_BOX="person_square",Lg.ACCOUNT_BOX_CAIRO="person_square",Lg.ACCOUNT_CIRCLE="person_circle",Lg.ACCOUNT_CIRCLE_CAIRO="person_circle",Lg.ACCOUNT_LINKED="account_link",Lg.ACCOUNT_UNLINKED="account_link",Lg.ADD_CIRCLE="add_circle",Lg.ADD_CIRCLE_OUTLINE="add_circle",Lg.ADD_FRIEND="person_child",Lg.ADD_MODERATOR="shield_add",Lg.ADD_TO_LIBRARY="bookmark",Lg.ADD_TO_PLAYLIST="add",Lg.ADD_TO_QUEUE_TAIL="queue",Lg.ADD_TO_REMOTE_QUEUE="playlist_audio",Lg.ADD_TO_WATCH_LATER=
"clock",Lg.ADD_VIDEO_LINK="film_strip_add",Lg.ADMIN_PANEL_SETTINGS="person_gear",Lg.ALERT_WARN_RED="alert_triangle",Lg.ALIGN_LEFT="text_align_left",Lg.ARROWS_ALERT="arrow_split_alert",Lg.ARROW_BACK="arrow_left",Lg.ARROW_CIRCLE="arrow_counterclockwise",Lg.ARROW_CIRCLE_PLAY="replay",Lg.ARROW_CIRCLE_RIGHT="arrow_clockwise",Lg.ARROW_DIAGONAL="arrow_up_left",Lg.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",Lg.ARROW_DROP_DOWN="triangle_down",Lg.ARROW_DROP_UP="triangle_up",Lg.ARROW_FORWARD="arrow_right",Lg.ARROW_PAUSE=
"pause_history",Lg.ARROW_UNDO="undo",Lg.ARTICLE="text_page",Lg.ARTICLE_ALERT="text_page_alert",Lg.ARTICLE_CHECK="text_page_check",Lg.ARTICLE_CLARIFY="text_page_info",Lg.ARTIST="person_audio",Lg.AUDIOTRACK="audio",Lg.AUDIO_BADGE="audio_badge",Lg.AUDIO_SURROUND="surround_sound",Lg.AUTO_AWESOME="sparkles",Lg.AVATAR_ANONYMOUS="person_circle",Lg.AVATAR_LOGGED_OUT="person_circle",Lg.BACK="arrow_left",Lg.BAR_CHART="chart_bar",Lg.BAR_CIRCLE="minus_circle",Lg.BAR_HORIZONTAL="minus",Lg.BLOCK="circle_slash",
Lg.BLOCK_USER="circle_slash",Lg.BOOKMARK_BORDER="bookmark",Lg.BOX_OPEN_CHECK="quiz",Lg.BOX_PENCIL="square_pencil",Lg.BOX_STACK_3="square3_stack",Lg.BREAKING_NEWS_ALT_1="text_page_alert",Lg.BROADCAST="podcast",Lg.BROADCAST_CAIRO="podcast",Lg.BUG_REPORT="bug",Lg.CAMERA_ALT="camera",Lg.CAMPAIGN="megaphone",Lg.CANCEL="x_circle",Lg.CAPTIONS="closed_captions",Lg.CAST_ICON="chromecast",Lg.CAST_OUTLINE="chromecast",Lg.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",Lg.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",
Lg.CHAT="text_bubble",Lg.CHAT_BUBBLE="bubble",Lg.CHECK_BOX="check_square",Lg.CHECK_BOX_OUTLINE_BLANK="square",Lg.CHECK_CIRCLE_FILLED="check_circle",Lg.CHECK_CIRCLE_OUTLINE="check_circle",Lg.CHECK_CIRCLE_THICK="check_circle",Lg.CHECK_DOUBLE="check_done",Lg.CHECK_DOUBLE_OFF="check_done_slash",Lg.CHEVRON_LEFT="chevron_left",Lg.CHEVRON_RIGHT="chevron_right",Lg.CHEVRON_RIGHT_CAIRO="chevron_right",Lg.CIRCLES_OVERLAP="account_link",Lg.CLAPPERBOARD_CAIRO="clapperboard",Lg.CLARIFY="text_page_info",Lg.CLOCK_ARROWS=
"clock_split",Lg.CLOCK_ARROWS_ALERT="clock_split_alert",Lg.CLOSED_CAPTION="closed_captions",Lg.CLOSED_CAPTION_SELECTED="closed_captions",Lg.CLOSE="x",Lg.CLOUD_UPLOAD="cloud_arrow_up",Lg.COLLAPSE="chevron_up",Lg.COLLAPSE_CAIRO="chevron_up",Lg.COLLECTION="square3d_stack",Lg.COLOR_LENS="paint_palette",Lg.COMMENT="text_bubble",Lg.CONSENT_SHIELD="person_shield",Lg.CONTENT_CUT="scissors",Lg.CONTENT_CUT_CAIRO="scissors",Lg.COURSE="graduation_cap",Lg.COURSE_CAIRO="graduation_cap",Lg.CREATION_LIVE="live",
Lg.CREATION_POST="square_pencil",Lg.CREATION_UPLOAD="video",Lg.CREATION_UPLOAD_RED="upload",Lg.CREATOR_ACADEMY="graduation_cap",Lg.CREATOR_METADATA_MONETIZATION="dollar_sign_circle",Lg.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_circle_slash",Lg.CREATOR_STUDIO="youtube_studio",Lg.DARK_THEME="theme",Lg.DELETE="trash_can",Lg.DELETE_SWEEP="trash_can",Lg.DESKTOP="laptop",Lg.DISLIKE="thumb_down",Lg.DISLIKE_SELECTED="thumb_down",Lg.DISMISSAL="x",Lg.DISMISS_QUEUE="playlist_x",Lg.DOGFOOD="pawprint",Lg.DOLLAR_SIGN=
"dollar_sign_circle",Lg.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",Lg.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",Lg.DOWN_ARROW="arrow_down",Lg.DO_NOT_DISTURB="circle_slash",Lg.DRAFT="document",Lg.DRAG_HANDLE="equal",Lg.EARTH="globe",Lg.EDIT="pencil",Lg.EMOJI="face_very_happy",Lg.EMOJI_FLAGS="flag",Lg.EMOJI_OBJECTS="lightbulb",Lg.EMOJI_PEOPLE="face_very_happy",Lg.EMOJI_RECENT="clock",Lg.EMPTY_HEART="heart",Lg.EMPTY_LIKE="thumb_up",Lg.ERROR_BLACK="alert_circle",Lg.ERROR_OUTLINE="alert_circle",Lg.ERROR_WHITE=
"alert_circle",Lg.EXIT_APP="arrow_in",Lg.EXIT_TO_APP="arrow_in",Lg.EXPAND="chevron_down",Lg.EXPAND_ALL="chevron_expand",Lg.EXPAND_CAIRO="chevron_down",Lg.EXPAND_LESS="chevron_up",Lg.EXPAND_MORE="chevron_down",Lg.EXPLORE="compass",Lg.EXPLORE_DESTINATION="compass",Lg.EXTERNAL_LINK="arrow_up_right",Lg.EYE_OFF="eye_slash",Lg.FAB_UPLOAD="upload",Lg.FACE_HAPPY_OUTLINE="face_happy",Lg.FACE_MEH="face_neutral",Lg.FACT_CHECK="text_page_check",Lg.FASHION_LOGO="fashion",Lg.FASHION_LOGO_CAIRO="fashion",Lg.FAVORITE=
"thumb_up",Lg.FEEDBACK="alert_bubble",Lg.FEEDBACK_CAIRO="alert_bubble",Lg.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",Lg.FILL_ARROW_SOLID_UP_16="arrow_solid_up",Lg.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",Lg.FIRST_PAGE="chevron_left_end",Lg.FLAG_CAIRO="flag",Lg.FLASH_OFF="flash_slash",Lg.FLASH_ON="flash",Lg.FULL_HEART="heart",Lg.GAMING_LOGO="gaming",Lg.GAMING_LOGO_CAIRO="gaming",Lg.GO_TO_PAGE="arrow_right",Lg.GRID_ASYMMETRICAL="dashboard",Lg.GROUPS="person3",Lg.HAND_SWIPE_LEFT="gesture_swipe_left",
Lg.HAND_SWIPE_RIGHT="gesture_swipe_right",Lg.HAPPY="face_happy",Lg.HEALTH_AND_SAFETY="shield_health",Lg.HEART_BOX="heart_cube",Lg.HELP="help_circle",Lg.HELP_CAIRO="help_circle",Lg.HELP_OUTLINE="help_circle",Lg.HIDE="circle_slash",Lg.INCOGNITO_CAIRO="incognito",Lg.INFINITY_ICON="infinity",Lg.INFO="info_circle",Lg.INFO_OUTLINE="info_circle",Lg.INSERT_CHART="chart_bar_square",Lg.INSERT_CHART_OUTLINED="chart_bar_square",Lg.INSERT_PHOTO="image",Lg.KEEP="pin",Lg.KEEP_OFF="pin_slash",Lg.KEYBOARD="keyboard",
Lg.KEYBOARD_ARROW_DOWN="chevron_down",Lg.KEYBOARD_ARROW_UP="chevron_up",Lg.KIDS_BLOCK="circle_slash",Lg.LANGUAGE="globe",Lg.LAST_PAGE="chevron_right_end",Lg.LAUNCH="arrow_up_right",Lg.LEARNING="lightbulb",Lg.LEARNING_CAIRO="lightbulb",Lg.LIBRARY_ADD="bookmark",Lg.LIBRARY_IMAGE="image_stack",Lg.LIBRARY_MUSIC="audio_square_stack",Lg.LIBRARY_OUTLINE="play_square_stack",Lg.LIBRARY_REMOVE="bookmark",Lg.LIBRARY_SAVED="check_square_stack",Lg.LIKES_PLAYLIST="thumb_up",Lg.LIKES_PLAYLIST_CAIRO="thumb_up",Lg.LIKE=
"thumb_up",Lg.LIKE_SELECTED="thumb_up",Lg.LIST_QUEUE="queue",Lg.LIVE_CAIRO="live",Lg.LIVE_UNLISTED="link",Lg.LOCATION_ON="location_pin",Lg.LOCATION_PIN="location_pin",Lg.LOCATION_POINT="location_pin",Lg.LOOP="repeat",Lg.LOOP_ACTIVE="repeat",Lg.LOOP_ONE="repeat1",Lg.LOOP_ONE_ACTIVE="repeat1",Lg.MEET="google_meet",Lg.MEH="face_neutral",Lg.MEMBERSHIPS="memberships",Lg.MEMBERS_ONLY_MODE_OFF="text_bubble",Lg.MENU_FILTER="filter",Lg.MESSAGE="text_bubble",Lg.MESSAGE_BUBBLE_GEAR="bubble_gear",Lg.MESSAGE_BUBBLE_LEFT=
"text_bubble",Lg.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",Lg.MESSAGE_BUBBLE_OVERLAP="bubble_stack",Lg.MESSAGE_BUBBLE_QUESTION="help_bubble",Lg.MICROPHONE_ON="mic",Lg.MONETIZATION_ON="dollar_sign_circle",Lg.MONEY_FILL="dollar_sign_rectangle",Lg.MONEY_FILL_JPY="yen_sign_rectangle",Lg.MONEY_HAND="dollar_sign_circle_hand",Lg.MONEY_HEART="dollar_sign_heart",Lg.MOON_Z="sleep_timer",Lg.MORE_HORIZ="overflow_horizontal",Lg.MORE_VERT="overflow_vertical",Lg.MUSIC="audio",Lg.MUSIC_CAIRO="audio",Lg.MUSIC_EXPLICIT_BADGE=
"explicit",Lg.MUSIC_NEW_RELEASE="audio_badge",Lg.MUSIC_NOTE_SYMBOL="audio",Lg.MUSIC_SCISSORS="audio_scissors",Lg.MUSIC_SHUFFLE="shuffle",Lg.MY_CHANNEL="person_circle",Lg.MY_LOCATION="location_pin",Lg.MY_VIDEOS="video",Lg.MY_VIDEOS_CAIRO="video",Lg.NEWS_CAIRO="news",Lg.NEWS_STORY="news",Lg.NEXT="chevron_right",Lg.NOTE_ADD="bubble_pencil",Lg.NOTIFICATIONS="bell",Lg.NOTIFICATIONS_ACTIVE="bell_waves",Lg.NOTIFICATIONS_CAIRO="bell",Lg.NOTIFICATIONS_DONE_CHECKMARK="check",Lg.NOTIFICATIONS_INBOX="bell",Lg.NOTIFICATIONS_NONE=
"bell",Lg.NOTIFICATIONS_OFF="bell_slash",Lg.NOT_INTERESTED="circle_slash",Lg.OFFICIAL_ARTIST_BADGE="audio",Lg.OFFLINE_CLOUD="cloud_slash",Lg.OFFLINE_DOWNLOAD="download",Lg.OFFLINE_DOWNLOAD_CAIRO="download",Lg.OFFLINE_PAUSE="pause",Lg.OPEN_IN_NEW="arrow_up_right",Lg.OUTLINE_ADJUST="adjust",Lg.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",Lg.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",Lg.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",Lg.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",Lg.OUTLINE_BAG="bag",Lg.OUTLINE_CLOCK_HALF_CIRCLE=
"clock_half_dashed",Lg.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",Lg.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",Lg.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",Lg.PAID="dollar_sign_circle",Lg.PAUSE_OUTLINED="pause",Lg.PAYMENT="credit_card",Lg.PEOPLE="person_child",Lg.PEOPLE_2="person2_rectangle",Lg.PEOPLE_GROUP="person3",Lg.PEOPLE_NOTE="bubble_asterisk",Lg.PERSON_2="person2",Lg.PERSON_ACCOUNT="person_square_stack",Lg.PERSON_MINUS="person_x",Lg.PERSON_MUSIC="person_audio",Lg.PERSON_RADAR="person_waves",
Lg.PERSON_RADAR_FILLED="person_waves",Lg.PERSON_SETTING="person_gear",Lg.PHONE="phone",Lg.PHONE_DOWNLOAD="mobile_arrow_down",Lg.PICTURE_IN_PICTURE="picture_in_picture",Lg.PLAYABLES_LOGO="playables",Lg.PLAYABLES_LOGO_CAIRO="playables",Lg.PLAYLISTS="playlist",Lg.PLAYLISTS_CAIRO="playlist",Lg.PLAYLIST_ADD_CHECK="bookmark",Lg.PLAY_ALL="play",Lg.PLAY_ARROW="play",Lg.PLAY_ARROW_CIRCLE="play_circle",Lg.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",Lg.PLAY_CIRCLE="play_circle",Lg.PLAY_OUTLINED="play_circle",
Lg.PODCAST_ADD="podcast_add",Lg.PODCAST_CHECK="podcast_check",Lg.PRIVACY_INFO="shield_x",Lg.PRIVACY_PRIVATE="lock",Lg.PRIVACY_PUBLIC="globe",Lg.PRIVACY_UNLISTED="link",Lg.PROMOTE="megaphone",Lg.PURCHASES="price_tag",Lg.PURCHASE_SUPER_CHAT="super_chat",Lg.PURCHASE_SUPER_STICKER="super_sticker",Lg.QUESTION_ANSWER="help_bubble",Lg.QUESTION_CIRCLE="help_circle",Lg.QUEUE_PLAY_LAST="queue_last",Lg.QUEUE_PLAY_NEXT="queue_next",Lg.QUOTATION_MARK="quote",Lg.RADAR_LIVE="live",Lg.REMOVE="minus_circle",Lg.REMOVE_CIRCLE=
"minus_circle",Lg.REMOVE_CIRCLE_OUTLINE="minus_circle",Lg.REMOVE_FROM_HISTORY="minus_circle",Lg.REMOVE_FROM_PLAYLIST="minus_circle",Lg.REMOVE_MODERATOR="shield_slash",Lg.REPLAY="arrow_counterclockwise",Lg.REPLAY_10="skip10_back",Lg.REPLAY_ARROW="replay",Lg.REPORT_PROBLEM="alert_triangle",Lg.RSS_OFF="rss_slash",Lg.SAD="face_sad",Lg.SAVE_PLAYLIST="bookmark",Lg.SCHEDULE="clock",Lg.SCHOOL="graduation_cap",Lg.SCREEN_DEFAULT="player_default",Lg.SCREEN_FULLSCREEN="player_full_enter",Lg.SCREEN_LIGHT="ambient_mode",
Lg.SCREEN_ROTATION="rotate_portrait",Lg.SCREEN_SWITCH="player_switch",Lg.SCREEN_THEATRE="player_theater",Lg.SEARCH_CAIRO="search",Lg.SEARCH_HISTORY="history",Lg.SELL="price_tag",Lg.SETTINGS="gear",Lg.SETTINGS_CAIRO="gear",Lg.SETTINGS_LIGHT="gear",Lg.SETTINGS_MATERIAL="gear",Lg.SETTINGS_REMOTE="remote_waves",Lg.SHARE="share",Lg.SHARE_ARROW="share",Lg.SHARE_CAIRO="share",Lg.SHIELD="shield_x",Lg.SHIELD_EMPTY="shield",Lg.SHIELD_OFF="shield_slash",Lg.SHIELD_WITH_AVATAR="person_shield",Lg.SHOPPING_BAG=
"bag",Lg.SHOPPING_BAG_CAIRO="bag",Lg.SHOPPING_CART="cart",Lg.SHORTS_COMMENT="text_bubble",Lg.SHORTS_DISLIKE="thumb_down",Lg.SHORTS_LIKE="thumb_up",Lg.SHORTS_SHARE="share",Lg.SKIP_FORWARD_30="skip30_forward",Lg.SLASH_CIRCLE_LEFT="circle_slash",Lg.SLASH_CIRCLE_RIGHT="circle_slash",Lg.SLOW_MODE="bubble_slow",Lg.SLOW_MODE_OFF="text_bubble",Lg.SOCIAL="person_child",Lg.SPARKLE="sparkles",Lg.SPARK_IMAGE="image_spark",Lg.SPARK_PENCIL="pencil_spark",Lg.SPARK_RADAR="spark_waves",Lg.SPARK_VIDEO="video_spark",
Lg.SPEAKER_GROUP="speaker_stack",Lg.SPEAKER_OFF="speaker_slash",Lg.SPEED_1X="n1x",Lg.SPEED_1_POINT_2X="n1point2x",Lg.SPEED_1_POINT_5X="n1point5x",Lg.SPEED_1_POINT_8X="n1point8x",Lg.SPEED_2X="n2x",Lg.SPONSORSHIP_STAR="star_circle",Lg.SPORTS="basketball",Lg.SPOTLIGHT="spotlight",Lg.STAFF_PICK="spotlight",Lg.START_DVR="add",Lg.STAR_BORDER="star",Lg.STAR_CIRCLE_RIBBON="memberships_gift",Lg.STAR_HALF="star_full_half",Lg.STAR_SHOOTING="hype",Lg.STICKER="sticker",Lg.STICKER_EMOTICON="face_happy",Lg.STOP_DVR=
"stop",Lg.SUBSCRIBE="youtube",Lg.SUBSCRIBE_PLUS="add",Lg.SUBSCRIPTION_MANAGER="gear",Lg.SUPERSTAR="super_star",Lg.SUPERVISOR_ACCOUNT="person_child",Lg.SUPER_CHAT_FOR_GOOD="hands_heart",Lg.SWAP_HORIZ="arrow_swap_horizontal",Lg.SWITCH_ACCOUNTS="person_square_stack",Lg.TAB_ACCOUNT="person",Lg.TAB_ACTIVITY="bell",Lg.TAB_BOOKMARK="bookmark",Lg.TAB_EXPLORE="compass",Lg.TAB_HOME="home",Lg.TAB_HOME_CAIRO="home",Lg.TAB_INBOX="mail",Lg.TAB_LIKED="thumb_up",Lg.TAB_MUSIC_PREMIUM="youtube_music",Lg.TAB_SHORTS=
"shorts",Lg.TAB_SHORTS_CAIRO="shorts",Lg.TAB_SUBSCRIPTIONS="subscriptions",Lg.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",Lg.TAB_TRENDING="trending",Lg.TARGET="target",Lg.TARGET_ADD="target_add",Lg.TEMPLATE_ADD="template_add",Lg.TEXT="font",Lg.TICKET_STAR="star_ticket",Lg.TIMER="stopwatch",Lg.TRENDING_CAIRO="trending",Lg.TRENDING_DOWN="arrow_trend_down",Lg.TRENDING_UP="arrow_trend_up",Lg.TROPHY_CAIRO="trophy",Lg.TROPHY_CELEBRATIONS="fireworks",Lg.TROPHY_STAR="star_trophy",Lg.TUNE="adjust",Lg.TV_OFF="tv_slash",
Lg.UNBLOCK_USER="minus_circle",Lg.UNFAVORITE="thumb_down",Lg.UNLIMITED="youtube",Lg.UNPLUGGED_LIVE_GUIDE="live",Lg.UNPLUGGED_SPORTS="eye_slash",Lg.UPLOADS="play_square_stack",Lg.UP_ARROW="arrow_up",Lg.VERTICAL_ALIGN_BOTTOM="chevron_down_end",Lg.VERTICAL_ALIGN_TOP="chevron_up_end",Lg.VERY_HAPPY="face_very_happy",Lg.VERY_SAD="face_very_sad",Lg.VIDEOS="play_circle",Lg.VIDEO_CALL="video_camera_add",Lg.VIDEO_LIBRARY_WHITE="play_square_stack",Lg.VIDEO_QUALITY_4K="n4k",Lg.VIDEO_QUALITY_8K="n8k",Lg.VIDEO_YOUTUBE=
"youtube",Lg.VIEW_LIST_CAIRO="view_list",Lg.VIEW_MODULE="view_column3_row2",Lg.VISIBILITY="eye",Lg.VISIBILITY_OFF="eye_slash",Lg.VOLUME_DOWN="volume_min",Lg.VOLUME_MUTE="volume_mute",Lg.VOLUME_OFF="volume_mute",Lg.VOLUME_STABLE="stable_volume",Lg.VOLUME_UP="volume_max",Lg.WALLPAPER="image",Lg.WARNING="alert_triangle",Lg.WATCH_HISTORY="history",Lg.WATCH_HISTORY_CAIRO="history",Lg.WATCH_LATER="clock",Lg.WATCH_LATER_CAIRO="clock",Lg.WATCH_RELATED_MIX="mix",Lg.WHAT_TO_WATCH="home",Lg.YOUTUBE_LINKED_TV=
"tv_mobile",Lg.YOUTUBE_MUSIC_MONOCHROME="youtube_music",Lg.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",Lg.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",Lg.YOUTUBE_SHORTS_ARROW_UP="arrow_up",Lg.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",Lg.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",Lg.YOUTUBE_SHORTS_OUTLINE_24="shorts",Lg.YT_OUTLINE_MUSIC_24="audio",Lg);var q3N={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,3,24],[1,3,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,9,16],[1,9,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,6,24],
[1,6,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,5,24],[1,5,20],[1,5,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,8,24],[1,8,24]],alert_circle:[[0,10,24],[1,10,16],[1,10,24]],alert_triangle:[[0,10,12],[0,10,24],[1,10,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,
36],[1,1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,8,24],[1,8,24]],arrow_left:[[1,
8,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_solid_up:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,14,12],[0,14,16],[0,14,18],[0,14,24],[1,14,18],[1,14,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,
1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,9,24],[1,9,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,
13,12],[0,13,16],[0,13,24],[1,13,16],[1,13,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,2,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
7,16,!0],[0,7,18,!0],[0,7,24,!0],[1,7,16,!0],[1,7,18,!0],[1,7,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,9,16],[1,9,18],[1,9,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,10,24],[1,10,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,8,24],[1,8,24]],circle_full:[[0,3,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,10,24],[1,10,16],[1,10,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
6,24],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,11,16],[0,11,24],[1,11,16],[1,11,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],dot:[[0,2,12],[0,2,24]],download:[[0,11,24],[1,11,16],[1,11,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,
24]],downloading:[[1,5,24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]],
face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],
film_strip:[[0,7,24],[1,7,24]],film_strip_add:[[1,2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,
4,16],[0,4,24],[1,4,24]],font_square_spark:[[1,1,16],[1,1,24]],football:[[0,4,24],[1,4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,9,24],[1,9,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,
1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,
2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,
2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],
[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,12],[1,13,16],[1,13,18],[1,13,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,
3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,12],[0,9,16],[0,9,18],[0,9,24],[1,9,24]],mention:[[1,
5,16],[1,5,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_left_off:[[1,1,16],[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,
1,24]],mic:[[0,14,24],[1,14,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,
3,24]],music_shape:[[1,3,24]],music_video:[[1,4,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],note_add:[[1,1,16],[1,1,24]],note_spark:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,6,24],[1,6,32]],overflow_vertical:[[1,13,24]],overflow_vertical_cairo:[[1,
1,24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,9,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,10,16],[1,10,18],[1,10,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,7,12],[0,7,13],[0,7,16],[0,7,24],[0,7,48],[1,7,13],[1,7,16],[1,7,24]],person_2:[[1,
1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,7,24]],person_box:[[1,5,24]],person_circle:[[0,10,24],[1,10,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_square_spark:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],phone:[[0,3,24],[1,3,24]],picture_in_picture:[[0,
2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,7,12],[0,7,24],[1,7,16],[1,7,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,6,24],[1,6,12],[1,6,16],[1,6,18],[1,6,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,
9,16],[1,9,24],[1,9,40]],pound:[[1,3,24]],presentation:[[1,3,24]],presentation_remove:[[1,1,24]],price_tag:[[0,8,12],[0,8,24],[1,8,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,2,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1,
2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,12],[0,8,24],[1,8,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]],
screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,5,24,!0],
[1,5,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,3,24]],shadow_soft:[[0,3,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[0,12,32,!0],[1,12,16,!0],[1,12,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,
1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,
24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,7,24]],skip_previous:[[0,6,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,10,12],[0,10,16],[0,10,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,
16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,6,12],[0,6,16],[0,6,24],[1,6,12],[1,6,16],[1,6,24]],star_circle:[[0,
6,12],[0,6,16],[0,6,18],[0,6,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],[1,1,24],[1,1,36]],star_half:[[0,3,12],[0,3,16],[0,3,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,5,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,11,24],[1,11,18],[1,11,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],
[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,1,24]],tablet:[[1,1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],text_bell_cairo:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,
2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,16],[0,24,24],[0,24,36],[1,24,16],[1,24,24],[1,24,36]],thumb_up:[[0,22,16],[0,22,24],[0,22,36],[1,22,16],[1,22,24],[1,22,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,4,24],[1,4,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,
24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,16],[1,4,24]],trash_can:[[1,10,16],[1,10,18],[1,10,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,
1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,5,24]],uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],video_reverse:[[1,1,24]],video_spark:[[1,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],
volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,3,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,24],[1,3,24]],x:[[1,11,18],[1,11,24]],x_cairo:[[1,1,24]],x_circle:[[0,9,24],[1,9,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],
youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,
2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,
8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,2,24],[1,2,24]]};var x5A={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,3,24]],chevron_right:[[1,7,18,!0],[1,7,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,9,12],[1,9,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,
1,24]],chromecast:[[0,10,24],[1,10,18],[1,10,24],[1,10,36]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,2,24]],circle:[[0,8,24],[1,8,24]],circle_full:[[0,3,24]],circle_full_half:[[0,1,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,3,24],[1,3,18],[1,3,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_slash:[[1,1,24]],clapperboard_sparkles:[[0,2,24],[1,2,24]],clock:[[0,10,24],[0,10,48],[1,10,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],
clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,6,24],[1,6,18],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,2,24],[1,2,48]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,2,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,
1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,18],[0,5,24],[1,5,24]],csv:[[0,2,24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,
2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,11,24],[1,11,18],[1,11,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,12],[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,2,12],[0,2,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,2,18],[1,2,24]],
equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_slash:[[1,1,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[0,11,48],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,
9,24],[1,9,24]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,7,24],[0,7,48],[1,7,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,18],[1,9,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,
24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_square_spark:[[1,1,18],[1,1,24]],font_strikethrough:[[1,1,24]],font_style:[[1,1,24]],font_underline:[[1,1,24]],football:[[0,4,24],[1,4,
24],[1,4,36]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,9,24],[1,9,18],[1,9,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,4,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,2,
24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,3,18],[0,3,24],[1,3,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_clap:[[1,1,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],hearing:[[0,2,24],[1,2,24]],heart:[[0,18,24],[1,18,18],[1,18,24]],heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],
help_circle:[[1,2,18],[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,3,18],[1,3,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,10,18],[1,10,24]],info_circle_spark:[[1,
1,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,
2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],link:[[1,8,18],[1,8,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,18],[1,13,24],[1,13,48]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,
2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,24],[0,9,36],[1,9,24]],memberships_gift:[[1,1,24]],mention:[[1,5,24]],menu:[[1,1,24]],mic:[[0,14,18],[0,14,24],[0,14,36],[0,14,48],[1,14,18],[1,14,24],[1,14,48]],mic_slash:[[1,2,24]],minus:[[1,2,18],[1,2,24]],minus_circle:[[0,3,24],[1,3,18],[1,3,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,4,24],[1,4,18],[1,4,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_arrow_in:[[1,1,24]],mobile_arrow_out:[[1,1,24]],
mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],news_alert:[[0,1,24]],node_left:[[1,2,24]],node_right:[[1,
2,24]],note:[[0,1,18],[0,1,24],[1,1,18],[1,1,24]],note_spark:[[0,2,18],[0,2,24],[1,2,18],[1,2,24]],open_in_panel:[[1,2,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,6,24],[1,6,36]],overflow_vertical:[[1,13,18],[1,13,24],[1,13,36]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,9,24],[0,9,36],[0,9,48],[1,9,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[0,2,24],[1,2,24]],pdf:[[1,2,24]],pencil:[[0,10,
24],[1,10,18],[1,10,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,7,24],[1,7,12],[1,7,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,2,24],[1,2,18],[1,2,24]],person_add:[[0,7,24],[1,7,18],[1,7,24]],person_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[0,10,24],[1,10,24],[1,10,48]],person_circle_slash:[[1,2,24]],person_gear:[[0,2,24],[1,2,24]],person_shield:[[1,7,24]],person_square:[[0,2,24],
[1,2,18],[1,2,24]],person_square_spark:[[0,1,24],[1,1,24]],person_square_stack:[[0,2,24],[1,2,18],[1,2,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,3,24],[1,3,12],[1,3,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,7,24],[1,7,18],[1,7,24]],pin_slash:[[0,2,24],[1,2,18],[1,2,24]],play:[[0,4,18],[0,4,24],[0,4,36],[0,4,48],[1,4,24]],play_circle:[[0,2,24],[0,
2,48],[1,2,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,2,24],[1,2,18],[1,2,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,1,24]],player_full_enter_alt:[[1,1,24]],player_full_enter_portrait:[[1,2,24]],player_full_exit:[[1,1,24]],player_full_exit_alt:[[1,1,24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,
1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,5,12],[1,5,18],[1,5,24],[1,5,48]],playlist_add:[[1,3,18],[1,3,24]],playlist_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,2,24],[1,2,48]],playlist_x:[[1,3,18],[1,3,24]],podcast:[[0,6,12],[0,6,24],[1,6,12],[1,6,18],[1,6,24],[1,6,48]],podcast_add:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,
24]],poll:[[1,9,18],[1,9,24],[1,9,36]],premium:[[0,1,24],[1,1,24]],presentation:[[1,3,24]],price_tag:[[0,8,24],[0,8,48],[1,8,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],question_head:[[1,2,24]],queue:[[1,1,24]],queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,24]],repeat:[[0,2,24],[1,
2,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,2,24],[1,2,36]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,2,18],[1,2,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,24],[1,8,18],[1,8,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,18],[1,15,24],[1,15,48]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,
1,24]],seek_forward:[[0,1,24]],seek_rewind:[[0,1,24]],send:[[0,5,24,!0],[1,5,24,!0]],shadow:[[1,1,24]],shadow_hard:[[0,3,24],[1,3,24]],shadow_soft:[[0,3,24],[1,3,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[1,12,18,!0],[1,12,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,3,24],[1,3,18],[1,3,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_empty:[[0,
3,18],[0,3,24],[1,3,24]],shuffle:[[0,4,24],[1,4,18],[1,4,24]],skip10_back:[[1,2,24],[1,2,36]],skip10_forward:[[1,1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,2,24],[1,2,36]],skip5_back:[[1,1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,7,12],[0,7,24],[0,7,36],[1,7,24]],skip_previous:[[0,6,24],[0,6,36],[1,6,24]],skip_up:[[0,
5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,2,18],[1,2,24]],spacebar:[[1,2,24]],spark:[[0,10,12],[0,10,24],[1,10,24]],spark_bubble_chat:[[1,1,24]],spark_waves:[[0,2,24],[1,2,24]],sparkles:[[0,2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],
spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[0,2,24],[1,2,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,3,24],[1,3,18],[1,3,24]],stable_volume:[[0,2,24],[1,2,24]],star:[[0,6,12],[0,6,24],[1,6,12],[1,6,24]],star_circle:[[0,6,12],[0,6,18],[0,6,24],[0,6,36],[1,6,24]],star_full_half:[[0,1,12],[0,1,24]],star_half_filled:[[1,2,12],[1,2,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,
1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,6,24],[0,6,36],[1,6,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],stopwatch10:[[0,1,24]],stopwatch3:[[0,1,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,11,24],[1,11,24],[1,11,48]],subtitles:[[0,4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],super_chat:[[0,8,24],[1,8,24]],super_star:[[1,1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,
1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],template_play_spark:[[1,1,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,3,24],[1,3,18],[1,3,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,24]],text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,
18],[0,24,24],[0,24,36],[0,24,48],[1,24,18],[1,24,24],[1,24,36],[1,24,48]],thumb_up:[[0,22,18],[0,22,24],[0,22,36],[0,22,48],[1,22,18],[1,22,24],[1,22,36],[1,22,48]],thumb_up_down:[[0,4,24],[1,4,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],timestamp_add:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,18],[1,4,24]],trash_can:[[0,10,24],[1,10,18],[1,10,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],
triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[0,9,24],[0,9,48],[1,9,24],[1,9,48]],video_camera_add:[[1,2,24]],video_camera_slash:[[1,1,24]],video_link:[[1,5,18],[1,5,24]],video_reverse:[[1,1,24]],video_spark:[[1,
2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],view_column2:[[1,1,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,3,24],[1,3,48]],waveform_spark:[[1,
2,24]],wifi_tethering:[[1,1,24]],wrench:[[0,3,18],[0,3,24],[1,3,18],[1,3,24]],x:[[1,11,18],[1,11,24],[1,11,36]],x_circle:[[0,9,24],[1,9,18],[1,9,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[1,2,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,
2,24]]};var QsY={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"},P7=function(b){this.iconUrlProvider=b};
P7.prototype.resolveIcon=function(b,h){var y=QsY[b.iconName.toUpperCase()];y&&(b.iconName=y);var S=b.iconName;S=S.replace(/-/g,"_");b=Object.assign({},b,{iconName:this.mapIconTypeToStandardName(S,!!y)||S.toLowerCase()});if(_.r("enable_web_delhi_icons")||y){var F;return wGr(x5A,b,((F=this.iconUrlProvider)==null?void 0:F.getYtStandardUrl)||QKf,h)}var a;return wGr(q3N,b,((a=this.iconUrlProvider)==null?void 0:a.getYtStandardUrl)||x_q,h)};
P7.prototype.mapIconTypeToStandardName=function(b,h){return _.r("enable_web_delhi_icons")||h?lFf[b.toUpperCase()]:wEd[b.toUpperCase()]};
P7[uN]=[_.XS(Eff)];var m5f=new Set("audio_badge offline_pause pause play_all play_arrow sponsorship_star youtube_music".split(" ")),vfA=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),bDP=function(b){this.urlProvider=this.iconUrlProvider=b};
_.z(bDP,P7);
bDP.prototype.resolveIcon=function(b,h){b.iconName==="youtube_logo"&&(b.iconName="yt-logo-updated");if(b.iconName==="youtube_premium_logo"||b.iconName==="youtube_red_logo")b.iconName="yt-logo-red-updated";var y=Object.assign({},b);b.iconName==="menu"&&(_.r("enable_web_delhi_icons")||(y.iconName="bars_3"),y.iconStyle="youtube_outline");b.iconSetName==="socialNetworksRound"&&(b.iconName==="mail"&&(y.iconName="email"),b.iconName==="embed"&&(y.iconSize=60));b.iconName==="more"&&(y.iconName="overflow_horizontal");
b.iconName==="fullscreen"&&(y.iconName="screen_full");b.iconName==="premium_standalone"&&(y.iconName="premium_standalone_cairo");_.r("enable_connect_icon_update_web")&&b.iconName==="account_linked"&&(y.iconName="circles_overlap_check",y.iconStyle="youtube_fill");_.r("enable_connect_icon_update_web")&&b.iconName==="account_unlinked"&&(y.iconName="circles_overlap",y.iconStyle="youtube_outline");m5f.has(b.iconName)&&(y.iconStyle="youtube_fill");if(_.r("enable_web_delhi_icons")){b.iconName==="playlist_add"&&
(y.iconName="bookmark");b.iconName==="offline_pin"&&(y.iconName="arrow_down_circle",y.iconStyle="youtube_fill");if(b.iconName==="circles_overlap_check"||y.iconName==="circles_overlap_check")y.iconName="account_link",y.iconStyle="youtube_fill";vfA.has(b.iconName)&&(y.iconName+="_updated")}b=Object.assign({},y,{iconName:(P7.prototype.mapIconTypeToStandardName.call(this,y.iconName)||y.iconName).toLowerCase()});var S;return(b=wGr(kHA,b,((S=this.urlProvider)==null?void 0:S.getUrl)||m_Y,h))?b:P7.prototype.resolveIcon.call(this,
y,h)};
bDP[uN]=[_.XS(Eff)];_.hXf=1;var Kg=function(b,h){this.JSC$17628_commandHandler=b;this.innertubeTransportService=h};
_.z(Kg,B8);Kg.prototype.resolveCommand=function(b,h){var y=this,S,F,a;return _.Z(function(P){return(S=_.c(b,ueN))?P.return(ygf(y,S,(F=h)==null?void 0:(a=F.form)==null?void 0:a.element)):P.return()})};
var ygf=function(b,h,y){h={profileCardContext:h.profileCardContext,profileOwnerExternalChannelId:h.profileOwnerExternalChannelId};var S=_.yk(Dx5);return _.cy(b.innertubeTransportService,h,S).then(function(F){if(!F)throw new _.Gn("GetProfileCard failed");if(F=F.popupCommand){b.JSC$17628_commandHandler.resolveCommand(F,{form:{element:y}});_.w2(_.rU(),66557);F=F==null?void 0:F.clickTrackingParams;var a=_.Ae();F&&a&&_.rU().graftServerVe(F,a)}})};
Kg[uN]=[_.OM,_.DT];var Zp=function(){};
_.z(Zp,B8);Zp.prototype.resolveCommand=function(b){var h,y;return _.Z(function(S){h=_.c(b,I6b);if(!h)return S.return();y=Number(h.enableDelayedPacfLoggingTvMs);if(isNaN(y)){var F=yz();TVa(F,h,0)}else TVa(yz(),h,y);_.g3(S)})};_.on=function(){};
_.z(_.on,B8);
_.on.prototype.resolveCommand=function(b,h){var y=this,S,F,a,P,K,n,X;return _.Z(function(u){S=_.c(b,B4e);a=(F=h.form)==null?void 0:F.element;K=(P=a)==null?void 0:P.closest("ytd-enforcement-message-view-model");if(!S||!K)return u.return();y.allowAdsAction||(n=S.fundingChoiceInstructionPageUrl,y.allowAdsAction=new tZw(window,_.QV(n)));var O=y.allowAdsAction;O.wallElement=K;O.allowAdsPopup.style.setProperty("display","flex","important");var N=O.scrollManager;N.isScrollingEnabled&&(N.originalBodyOverflow=N.JSC$10183_domHelper.JSC$9509_document_.body.style.overflow,
N.JSC$10183_domHelper.JSC$9509_document_.body.style.overflow="hidden",N.isScrollingEnabled=!1);O.wallElement.style.setProperty("display","none","important");pLW(O.accessibilityManager,O.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((X=y.allowAdsAction.allowAdsPopup)&&X instanceof HTMLElement)for(O=_.L(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),N=O.next();!N.done;N=O.next()){var t=_.L(N.value);N=t.next().value;t=t.next().value;
X.style.setProperty(N,t)}_.g3(u)})};
_.on.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var MW=function(){};
_.z(MW,B8);MW.prototype.resolveCommand=function(b){var h;return _.Z(function(y){h=_.c(b,JKW);if(!h)return y.return();Ipq(b);_.g3(y)})};_.ng=new _.ca("AI_CHAT_CONTROLLER_TOKEN");var XJ=function(b,h,y,S){this.JSC$17643_commandHandler=b;this.store=h;this.getPlayerCb=y;this.aiChatController=S};
_.z(XJ,B8);XJ.prototype.pageContext=function(){var b=_.iM.currentPageSubTypeSelector(this.store.getState()),h;return(h=this.aiChatController)==null?void 0:_.SSx(h,b)};
XJ.prototype.resolveCommand=function(b){var h=this,y,S,F,a,P;return _.Z(function(K){y=_.c(b,T4W);F=(S=y)==null?void 0:S.command;if(!F)return K.return();switch((P=y)==null?void 0:P.decorationType){case "FORM_DATA_DECORATOR_COMMAND_TYPE_AI_COMPANION_PANEL_REQUEST":var n="youchat-"+Date.now(),X;var u=String(Math.floor(((X=h.getPlayerCb())==null?void 0:X.getCurrentTime())||0)*1E3);a={inputComposerFormData:{clientMessageId:n,playerOffsetMs:u,pageContext:h.pageContext()}}}if(!a)return K.return();h.JSC$17643_commandHandler.resolveCommand(F,
{form:{formData:a}});_.g3(K)})};
XJ[uN]=[_.OM,_.nd,ryq,_.XS(_.ng)];var FQq=new _.ca("SESSION_STORAGE");var H7=function(b){this.sessionStorage=b("conversations")};
_.z(H7,B8);H7.prototype.resolveCommand=function(b){var h=this,y;return _.Z(function(S){y=_.c(b,GyM);if(!y)return S.return();y.conversationId?h.sessionStorage.set("conversation_id",y.conversationId):h.sessionStorage.remove("conversation_id");_.g3(S)})};
H7[uN]=[FQq];var us=function(b){this.JSC$17655_commandHandler=b};
_.z(us,B8);
us.prototype.resolveCommand=function(b){var h=this,y,S,F,a,P,K,n,X;return _.Z(function(u){if(u.nextAddress==1){y=_.c(b,jDW);if((S=y)==null||!S.text||!navigator.clipboard)return u.return();_.WE(u,2);return u.yield(navigator.clipboard.writeText(y.text),4)}if(u.nextAddress!=2){if(!y.successActions||y.successActions.length===0)return u.return();F=_.L(y.successActions);for(a=F.next();!a.done;a=F.next())P=a.value,h.JSC$17655_commandHandler.resolveCommand(P);return _.Lz(u,0)}_.C$(u);if(!y.failureActions||y.failureActions.length===
0)return u.return();K=_.L(y.failureActions);for(n=K.next();!n.done;n=K.next())X=n.value,h.JSC$17655_commandHandler.resolveCommand(X);_.g3(u)})};
us[uN]=[_.OM];var O2=function(b){this.JSC$17659_commandHandler=b};
_.z(O2,B8);
O2.prototype.resolveCommand=function(b,h){var y=this,S,F,a,P,K,n,X,u,O,N;return _.Z(function(t){switch(t.nextAddress){case 1:S=_.c(b,Gub);if(!S)return t.return();_.WE(t,2);if(!S.imageBytes&&!S.imageUrl)throw Error("Di");if(!S.imageUrl){if(S.imageBytes){a=S.imageBytes;P=a.replace(/-/g,"+").replace(/_/g,"/");var R=h$M(P);F=_.q9(R)}t.jumpTo(4);break}return t.yield(fetch(S.imageUrl),5);case 5:return K=t.yieldResult,t.yield(K.blob(),6);case 6:n=t.yieldResult,F=_.q9(n);case 4:O=(X=h)==null?void 0:(u=X.form)==
null?void 0:u.element;N=document.createElement("a");mA(N,F);O.appendChild(N);N.download="";N.click();O.removeChild(N);URL.revokeObjectURL(_.E_(F));S.successCommand&&y.JSC$17659_commandHandler.resolveCommand(S.successCommand);_.Lz(t,0);break;case 2:_.C$(t),S.errorCommand&&y.JSC$17659_commandHandler.resolveCommand(S.errorCommand),_.g3(t)}})};
O2[uN]=[_.OM];var NW=function(b){this.store=b};
_.z(NW,B8);NW.prototype.resolveCommand=function(b){var h=this,y,S,F;return _.Z(function(a){S=(y=_.c(b,_.YR7))==null?void 0:y.entityBatchUpdate;if(!S)return a.jumpTo(0);F=Object.assign({},S,{mutations:[].concat(_.f$(S.mutations||[]))});return a.yield(_.On(F,h.store),0)})};
NW[uN]=[$7];var aK2=function(b){this.JSC$17666_commandHandler=b;this.feedbackDialogMap=new Map};
aK2.prototype.openDialog=function(b,h){(b=this.feedbackDialogMap.get(b))&&this.JSC$17666_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:b}},h)};
aK2[uN]=[_.OM];var ts=new _.ca("FEEDBACK_CONTROLLER_TOKEN");var r6=new _.ca("APP_STORE_TOKEN");var c7=function(b,h,y){this.store=b;this.controller=h;this.JSC$17669_commandHandler=y};
_.z(c7,B8);c7.prototype.resolveCommand=function(b,h){var y=this,S,F,a,P,K,n,X,u,O,N,t,R,I,U,p,e,E,Y,w,x;return _.Z(function(q){if(q.nextAddress==1){S=_.c(b,_.s9);if(a=(F=S)==null?void 0:F.contentId)for(K=_.L(((P=S)==null?void 0:P.actions)||[]),n=K.next();!n.done;n=K.next())X=n.value,dzX(y,X,a);N=(u=h)==null?void 0:(O=u.form)==null?void 0:O.element;return q.yield(_.dh(N,[b,{impression:(t=h)==null?void 0:t.disableClickTracking}]).catch(function(){}),2)}R=q.yieldResult;
if((I=R)==null?0:(U=I.data)==null?0:(p=U.feedbackResponses)==null?0:p.length)(E=(e=R.data.feedbackResponses[0])==null?void 0:e.followUpDialog)&&a&&(Y=y.controller)!=null&&Y.feedbackDialogMap.set(a,E),(x=(w=R.data.feedbackResponses[0])==null?void 0:w.isThumbnailReporting)&&y.JSC$17669_commandHandler.resolveCommand({signalAction:{signal:"CLOSE_POPUP"}});_.g3(q)})};
var dzX=function(b,h,y){var S=_.c(h,_.LI);if(S){S=_.L(S.commands||[]);for(var F=S.next();!F.done;F=S.next())dzX(b,F.value,y)}_.c(h,_.m8)&&b.store.dispatch(_.R7("commandEntity",sCn(y),{key:y,command:h}));_.c(h,zH8)&&b.store.dispatch(_.R7("commandEntity",sCn(y),{key:y,command:h}))};
c7[uN]=[r6,ts,_.OM];var Rn=function(b){this.controller=b};
_.z(Rn,B8);Rn.prototype.resolveCommand=function(b,h){var y=this,S,F,a,P;return _.Z(function(K){S=_.c(b,_.aL);a=(F=S)==null?void 0:F.targetId;if(((P=S)==null?void 0:P.signal)!=="TELL_US_WHY"||!a)return K.return();y.controller.openDialog(a,h);_.g3(K)})};
Rn[uN]=[ts];var z1=function(b){this.store=b};
_.z(z1,B8);z1.prototype.resolveCommand=function(b,h){var y=this,S,F,a,P,K,n,X;return _.Z(function(u){S=_.c(b,SdI);a=(F=S)==null?void 0:F.contentId;n=(P=h)==null?void 0:(K=P.form)==null?void 0:K.element;X=_.dh(n,[b]);a&&y.undo(a);return u.yield(X,0)})};
z1.prototype.undo=function(b){this.store.dispatch(_.R7("commandEntity",sCn(b),{key:b,command:void 0}))};
z1[uN]=[r6];var Dp=function(b){this.JSC$17681_commandHandler=b};
_.z(Dp,B8);Dp.prototype.resolveCommand=function(b){var h=this,y,S,F,a,P,K,n,X;return _.Z(function(u){y=_.c(b,F8e);S=y.flowStateKey;F=y.validationFailureCommand;a=y.submitValidFormCommand;P=juM(_.bG,[S||""]);K=_.c(P,jbW);((n=K)==null?0:n.isValid)&&a&&h.JSC$17681_commandHandler.resolveCommand(a);((X=K)==null?0:X.isValid)||!F||h.JSC$17681_commandHandler.resolveCommand(F);_.g3(u)})};
Dp[uN]=[_.OM];var In=function(b){this.innertubeTransportService=b};
_.z(In,B8);In.prototype.resolveCommand=function(b,h){var y=this,S;return _.Z(function(F){return F.yield(_.f9(y.innertubeTransportService,b,(S=h)==null?void 0:S.form).then(function(a){var P,K;h==null||(P=h.commandController)==null||(K=P.onSuccess)==null||K.call(P,b,a)},function(a){var P,K;
h==null||(P=h.commandController)==null||(K=P.onServerError)==null||K.call(P,b,a)}),0)})};
In[uN]=[_.DT];var B7=function(){};
_.z(B7,B8);B7.prototype.resolveCommand=function(b){var h,y,S,F;return _.Z(function(a){if(h=_.c(b,_.vda)){if(y=h.gtmId)S=_.QC("GL",""),_.dc(y,S);(F=h.gtmData)&&_.jS(F)}_.g3(a)})};var W7=function(b,h,y){this.innertubeTransportService=b;this.JSC$17692_actionRouter=h;this.JSC$17692_screenManager=y};
_.z(W7,B8);W7.prototype.resolveCommand=function(b){var h=this,y,S;return _.Z(function(F){y=_.c(b,vR7);if(!y)return F.return();S=y.command;if(!S)return F.return();h.JSC$17692_actionRouter.triggerAction("yt-insert-rich-section-action",y);return F.yield(_.f9(h.innertubeTransportService,S,{disableCache:!0}).then(function(a){b.clickTrackingParams&&(a==null?0:a.trackingParams)&&h.JSC$17692_screenManager.graftServerVe(a.trackingParams,_.I_(b.clickTrackingParams))}),0)})};
W7[uN]=[_.DT,Cj,_.Le];S4q.bind(null,W8);var jaE=S4q.bind(null,yGN);aOr.bind(null,W8);var $zF=aOr.bind(null,yGN);jgn.bind(null,W8);var LQF=jgn.bind(null,yGN);var As=function(){};
_.z(As,B8);
As.prototype.resolveCommand=function(b){var h,y,S,F,a,P,K,n,X,u;return _.Z(function(O){h=_.c(b,gea);if(!h)return O.return();S=((y=h.operations)==null?void 0:y.operations)||[];F=_.L(S);for(a=F.next();!a.done;a=F.next())if(P=a.value,P.insertItemSectionContent){var N=P.insertItemSectionContent,t=N.contents||[];N.insertByPositionInSection?jaE(N.insertByPositionInSection.sectionTargetId,t,N.insertByPositionInSection.position):N.insertByRelativePositionInSection&&N.insertByRelativePositionInSection.sectionTargetId&&N.insertByRelativePositionInSection.itemTargetId&&
$zF(N.insertByRelativePositionInSection.sectionTargetId,N.insertByRelativePositionInSection.itemTargetId,t,N.insertByRelativePositionInSection.relativePosition)}else P.replaceSection?(N=P.replaceSection,t={},N.replaceByTargetId?t=N.replaceByTargetId:N.replaceByGroupId&&(t={targetId:N.replaceByGroupId.groupId,newContent:N.replaceByGroupId.newContent,undoKey:""}),t.newContent&&acN(t.targetId,{continuationItems:[t.newContent]})):P.removeItem?(N=P.removeItem,N.removeByTargetId&&N.sectionTargetId&&LQF(N.sectionTargetId,
N.removeByTargetId.targetIds||[])):P.removeSection&&(P.removeSection.removeByTargetId?(K=void 0,PRq(((K=P.removeSection)==null?void 0:K.removeByTargetId.targetIds)||[])):P.removeSection.removeByGroupId&&(n=void 0,PRq(((n=P.removeSection)==null?void 0:n.removeByGroupId.groupIds)||[])));u=((X=h.operations)==null?void 0:X.scrollConfig)||{};KQF(u);_.g3(O)})};
var PRq=function(b){b=_.L(b);for(var h=b.next();!h.done;h=b.next())acN(h.value,{continuationItems:[]})},KQF=function(b){if(b.scrollToItem){var h=b.scrollToItem.item||{},y=h.itemTargetId;
h=h.sectionTargetId;if(y&&h){var S=document.querySelector("[data-target-id="+h+"]"),F=S==null?void 0:S.querySelector("[data-target-id="+y+"]");S&&F&&setTimeout(function(){var a=F.offsetTop-S.offsetTop,P;if(((P=b.scrollToItem)==null?void 0:P.scrollPosition)==="SCROLL_POSITION_CENTER")a-=S.offsetHeight/2,a+=F.offsetHeight/2;else{var K;((K=b.scrollToItem)==null?void 0:K.scrollPosition)==="SCROLL_POSITION_END"&&(a-=S.offsetHeight,a+=F.offsetHeight)}S.scroll({top:a,behavior:"smooth"})},100)}}};var U2=new _.ca("CLIENT_NAME_TOKEN");var ZDd=new _.ca("DEFAULT_STORE_EXPIRATION_TOKEN");var um4=new _.ca("CLIENT_LOCATION_SERVICE_TOKEN");var pg=function(b,h,y){this.clientName=b||_.QC("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=h||_.fR.getInstance();this.JSC$17720_commandHandler=y||_.nt.instance};
_.z(pg,B8);pg.prototype.resolveCommand=function(b){var h=this,y,S;return _.Z(function(F){S=(y=_.c(b,Oj8))==null?void 0:y.onComplete;h.clientLocationService.clearLocationPlayabilityToken(h.clientName);S&&h.JSC$17720_commandHandler.resolveCommand(S);_.g3(F)})};
pg[uN]=[U2,um4,_.OM];var Js=function(b){this.innertubeTransportService=b};
_.z(Js,B8);Js.prototype.resolveCommand=function(b,h){var y=this,S,F,a,P;return _.Z(function(K){a=(S=h)==null?void 0:(F=S.form)==null?void 0:F.element;return K.yield(_.f9(y.innertubeTransportService,b,(P=h)==null?void 0:P.form).then(function(n){dgj(a,new CustomEvent("yt-service-request-completed"),{data:n},_.QC("openPopupConfig"))}),0)})};
Js[uN]=[_.DT];var ev=function(){};
_.z(ev,B8);ev.prototype.resolveCommand=function(b){var h,y;return _.Z(function(S){h=_.c(b,K87);y=document.querySelector("mini-app-container-view-model");if(!h||!y)return S.return();h.isPlaying?y.dispatchEvent(new Event("play")):y.dispatchEvent(new Event("pause"));_.g3(S)})};var Cg=function(){};
_.z(Cg,B8);Cg.prototype.resolveCommand=function(b){var h,y,S,F,a,P,K;return _.Z(function(n){h=_.c(b,wgw);if((y=h)==null||!y.paramKeys)return n.return();S=h.paramKeys;F=_.La(window.location.href);a=_.L(S);for(P=a.next();!P.done;P=a.next())K=P.value,F.JSC$10215_queryData_.remove(K);window.history.replaceState(window.history.state,document.title,F.toString());_.g3(n)})};var oba=function(){this.dropdownMap=new Map};_.MFa=new _.ca("DROPDOWN_CONTROLLER_TOKEN");var g6=function(b){this.controller=b};
_.z(g6,B8);g6.prototype.resolveCommand=function(b){var h=this,y,S,F,a;return _.Z(function(P){y=_.c(b,rva);if(!y)return P.return();S=y;F=S.dropdownId;a=S.selectedOptionIndex;if(F===void 0||a===void 0)return P.return();var K=h.controller.dropdownMap.get(F);K&&K(a);_.g3(P)})};
g6[uN]=[_.MFa];var s2=function(b){this.controller=b};
_.z(s2,B8);s2.prototype.resolveCommand=function(b){var h=this,y;return _.Z(function(S){return(y=_.c(b,JTo))?S.yield(h.controller.closeDialog(),0):S.return()})};
s2[uN]=[_.X$];var Y1=function(b){this.controller=b};
_.z(Y1,B8);Y1.prototype.resolveCommand=function(b){var h=this,y,S;return _.Z(function(F){y=_.c(b,Xye);if(!y)return F.return();var a,P=y.panelIdentifier||((a=y.identifier)==null?void 0:a.tag);if(!P)throw Error("Ei");return(S=P)?F.yield(h.controller.hidePanel({identifier:S}),0):F.jumpTo(0)})};
Y1[uN]=[_.Mp];var T1=function(b){this.controller=b};
_.z(T1,B8);T1.prototype.resolveCommand=function(b){var h=this,y;return _.Z(function(S){return(y=_.c(b,hca))?S.yield(h.controller.closeSheet(),0):S.return()})};
T1[uN]=[_.nk];var G1=function(b,h){this.innertubeTransportService=b;this.controller=h};
_.z(G1,B8);G1.prototype.resolveCommand=function(b){var h=this,y,S,F,a;return _.Z(function(P){if(P.nextAddress==1)return y=_.c(b,H08),(S=y)!=null&&S.panelId?P.yield(h.controller.getReloadContinuation(y.panelId),2):P.return();if(P.nextAddress!=3)return(F=P.yieldResult)?P.yield(_.f9(h.innertubeTransportService,b,{continuation:F}),3):P.return();a=P.yieldResult;return P.yield(h.controller.updatePanel({identifier:y.panelId,panelContents:a.content,shouldFocus:!1}),0)})};
G1[uN]=[_.DT,_.Mp];var k1=function(b,h,y){this.innertubeTransportService=b;this.JSC$17761_screenManager=h;this.JSC$17761_commandHandler=y};
_.z(k1,B8);
k1.prototype.resolveCommand=function(b){var h=this,y,S,F,a,P,K;return _.Z(function(n){if(n.nextAddress==1){y=_.c(b,_.Pgo);if(!y)return n.return();if(y.commands)for(S=_.L(y.commands),F=S.next();!F.done;F=S.next())a=F.value,h.JSC$17761_commandHandler.resolveCommand(a,{disableClickTracking:!0});P=_.I_(b.clickTrackingParams);_.w2(h.JSC$17761_screenManager,21760,P,{layer:7,parentLayer:0});return n.yield(_.f9(h.innertubeTransportService,b),2)}K=n.yieldResult;if(!K)return n.return();h.JSC$17761_screenManager.graftServerVe(K.trackingParams,P,
7);_.g3(n)})};
k1[uN]=[_.DT,_.Le,_.OM];var VJ=new _.ca("PANEL_LOADING_STRATEGY_TOKEN");var E2=function(b,h){this.controller=b;this.panelLoadingStrategy=h};
_.z(E2,B8);
E2.prototype.resolveCommand=function(b,h){var y=this,S,F,a;return _.Z(function(P){S=_.c(b,SA8);if((F=S)==null||!F.panelLoadingStrategy)return P.return();a=function(K){var n,X,u,O,N,t,R,I,U,p;return _.Z(function(e){X=_.c((n=K.dialogViewModel)==null?void 0:n.header,cva);u={viewModel:K.dialogViewModel};O={};if(R=_.r("web_enable_dialog_header_label")?(N=X)==null?void 0:(t=N.headline)==null?void 0:t.content:void 0)O.ariaLabel=R;S.dismissOnBackgroundTap===!1&&(O.isModal=!0);return K.dialogViewModel?e.yield(y.controller.openDialog(u,
(p=(I=h)==null?void 0:(U=I.form)==null?void 0:U.element)!=null?p:document.body,O),0):e.return()})};
return P.yield(y.panelLoadingStrategy.execute({command:b,data:S.panelLoadingStrategy,renderFn:a,createScreenConfig:{layer:4}}),0)})};
E2[uN]=[_.X$,VJ];var is=function(b,h,y){this.innertubeTransportService=b;this.controller=h;this.JSC$17781_screenManager=y};
_.z(is,B8);
is.prototype.resolveCommand=function(b,h){var y=this,S,F,a,P,K,n,X,u,O,N,t,R,I,U,p;return _.Z(function(e){switch(e.nextAddress){case 1:S=_.c(b,_.ge);if(!S)return e.return();var E,Y=S.panelIdentifier||((E=S.identifier)==null?void 0:E.tag);if(!Y)throw Error("Ei");F=Y;return e.yield(y.controller.isVisible(F,!0),2);case 2:if((a=e.yieldResult)&&S.blockIfPanelOpen)return e.return();n=(K=(P=y.controller).getPanelContent)==null?void 0:K.call(P,F);if(!(E=n))if(S){var w;E=((w=S.globalConfiguration)==null?void 0:
w.initialState)||S.engagementPanel;if(w=!E)w=!!(S==null?0:(Y=S.engagementPanelPresentationConfigs)==null?0:Y.engagementPanelPopupPresentationConfig);w&&(E=_.$V8(S.panelIdentifier,S.identifier))}else E=void 0;X=E;u=S.engagementPanelPresentationConfigs;O=S.engagementPanelExtras;return e.yield(y.controller.showPanel({identifier:F,panelContents:X,config:u,extras:O,target:(N=h)==null?void 0:(t=N.form)==null?void 0:t.element}),3);case 3:if(!S.globalConfiguration){e.jumpTo(0);break}if(S.globalConfiguration.reuseModelAndState&&
_.r("enable_ai_companion")&&(U=(I=(R=y.controller).getPanelContent)==null?void 0:I.call(R,F)))return e.return();_.w2(y.JSC$17781_screenManager,32633);return e.yield(_.f9(y.innertubeTransportService,b),5);case 5:return p=e.yieldResult,y.JSC$17781_screenManager.graftServerVe(p.trackingParams),e.yield(y.controller.updatePanel({identifier:F,panelContents:p.content,shouldFocus:!0,extras:O,updatePanelContinuationData:p.updatePanelContinuationData}),0)}})};
is[uN]=[_.DT,_.Mp,_.Le];var fg=function(b,h){this.controller=b;this.panelLoadingStrategy=h};
_.z(fg,B8);
fg.prototype.resolveCommand=function(b,h){var y=this,S,F,a,P,K,n,X,u,O,N,t,R;return _.Z(function(I){S=_.c(b,_.zo);if((F=S)==null||!F.panelLoadingStrategy)return I.return();K=nba(y.controller,(a=h)==null?void 0:(P=a.form)==null?void 0:P.element);X=(n=S.contextualSheetPresentationConfig)==null?void 0:n.position;O=(u=S.contextualSheetPresentationConfig)==null?void 0:u.hoverConfig;t=(N=S.contextualSheetPresentationConfig)==null?void 0:N.expandToFullWidth;R=function(U){var p,e;return _.Z(function(E){if(!U.sheetViewModel)return E.return();if(O){var Y=
y.controller;Y.shouldPreventClosingWhileHovered=!!O.preventCloseWhileHovered;var w;Y.hideDelayMs=(w=O.hideDelayMs)!=null?w:0}return E.yield(y.controller.openSheet({viewModel:U.sheetViewModel,sheetPosition:X,expandToFullWidth:t},K,(p=h)==null?void 0:(e=p.form)==null?void 0:e.element),0)})};
return I.yield(y.panelLoadingStrategy.execute({command:b,data:S.panelLoadingStrategy,renderFn:R,createScreenConfig:{layer:0}}),0)})};
fg[uN]=[_.nk,VJ];var w6=function(b,h){this.controller=b;this.JSC$17792_commandHandler=h};
_.z(w6,B8);w6.prototype.resolveCommand=function(b,h){var y=this,S,F,a;return _.Z(function(P){if(P.nextAddress==1){S=_.c(b,t1e);var K=_.c(S.showCommand,_.ge),n,X,u=(X=K==null?void 0:K.panelIdentifier)!=null?X:K==null?void 0:(n=K.identifier)==null?void 0:n.tag;if(!u)throw Error("Fi");F=u;return P.yield(y.controller.isVisible(F),2)}return(a=P.yieldResult)?P.yield(y.controller.hidePanel({identifier:F}),0):P.yield(y.JSC$17792_commandHandler.resolveCommand(S.showCommand,h),0)})};
w6[uN]=[_.Mp,_.OM];var ls=function(b,h,y){this.innertubeTransportService=b;this.controller=h;this.JSC$17795_screenManager=y};
_.z(ls,B8);
ls.prototype.resolveCommand=function(b){var h=this,y,S,F,a,P,K,n,X,u,O,N,t,R,I,U,p,e,E,Y,w,x,q;return _.Z(function(dI){switch(dI.nextAddress){case 1:return S=y=_.c(b,zGb),F=S.targetPanelIdentifier,a=S.contentSourcePanelIdentifier,P=S.globalConfiguration,((K=F)==null?0:K.tag)&&((n=a)==null?0:n.tag)?P?dI.yield(h.controller.showPanel({identifier:F.tag,panelContents:_.$V8(F.tag,F)}),5):dI.yield((N=(O=h.controller).getPanel)==null?void 0:N.call(O,a.tag),4):dI.return();case 4:t=dI.yieldResult;X=(R=t)==
null?void 0:(U=(I=R).getPanelContent)==null?void 0:U.call(I);dI.jumpTo(3);break;case 5:return dI.yield(_.f9(h.innertubeTransportService,b),6);case 6:p=dI.yieldResult,((e=p)==null?0:e.trackingParams)&&h.JSC$17795_screenManager.graftServerVe(p.trackingParams),X=(E=p)==null?void 0:E.content,u=(Y=p)==null?void 0:Y.updatePanelContinuationData;case 3:if(x=(w=X)==null?void 0:w.engagementPanelSectionListRenderer)return dI.yield(h.controller.showPanel({identifier:F.tag,panelUpdatableFields:{content:x.content,
secondaryHeaderContent:(q=x.header)!=null?q:{},targetId:x.targetId,loggingDirectives:x.loggingDirectives},updatePanelContinuationData:u}),0);dI.jumpTo(0)}})};
ls[uN]=[_.DT,_.Mp,_.Le];var qW=function(){};
_.z(qW,B8);qW.prototype.resolveCommand=function(b){var h,y,S;return _.Z(function(F){if(F.nextAddress==1)return(h=_.c(b,WJ5))?F.yield(_.Z5(),2):F.return();y=F.yieldResult;if(!y)return F.return();var a=y,P=(S=h)==null?void 0:S.languageCode,K;(a==null?0:(K=a.isReady)==null?0:K.call(a))&&(P=Lv8(a,P))&&a.setAudioTrack(P);_.g3(F)})};var x1=function(){};
_.z(x1,tK);_.d=x1.prototype;_.d.getApiPaths=function(){return NpW};
_.d.getExtension=function(b){return _.c(b,_.wO)};
_.d.isNavigationCommand=function(){return!0};
_.d.JSC$14363_getStoreKey=function(b){if((b=this.getExtension(b))&&b.videoId){var h={videoId:b.videoId};b.playlistId&&(h.playlistId=b.playlistId);b.index&&(h.index=b.index);b.params&&(h.params=b.params);return _.fx("next",h)}};
_.d.JSC$14356_getClientScreen=function(b){var h;return((h=b.contentPlaybackContext)==null?void 0:h.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.d.JSC$14356_buildRequest=function(b,h,y){h.videoId&&(b.videoId=h.videoId);h.playlistId&&(b.playlistId=h.playlistId);h.params&&(b.params=h.params);h.index!==void 0&&(b.playlistIndex=h.index);b.racyCheckOk=!(!y.racyCheckOk&&!h.racyCheckOk);b.contentCheckOk=!!h.contentCheckOk;y.contentPlaybackContext&&(b.autonavState=y.contentPlaybackContext.autonavState,b.playbackContext={vis:y.contentPlaybackContext.vis,lactMilliseconds:y.contentPlaybackContext.lactMilliseconds});y.prefetchPlaybackContext&&(b.context.request||
(b.context.request={}),b.context.request.isPrefetch=!0);_.r("captions_hats_killswitch")||(h=_.HT().getFlag(65),h=h!=null?!h:!1,y=!!_.Wd("yt-player-sticky-caption"),b.captionsRequested=h&&y)};
_.d.getRequestConfig=function(b){b=this.JSC$14363_getStoreKey(b);var h;b&&(h={storeStrategy:{storeKey:b}});_.r("web_log_player_watch_next_ticks")&&(h=h||{},h.requestTick="wn_s",h.responseTick="wn_r");return h};
var QJ=function(){};
_.z(QJ,tK);QJ.prototype.getApiPaths=function(){return NpW};
QJ.prototype.getExtension=function(b){return _.c(b,_.sk)};
QJ.prototype.JSC$14356_buildRequest=function(b,h){h.token&&(b.continuation=h.token)};var mK=function(){this.innerTubeTransport=_.H9().resolve(_.DT);this.miniplayerService=_.H9().resolve(_.Vp)};
_.z(mK,B8);var XBf=function(b){var h;return _.Z(function(y){h=_.QC("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;b.JSC$17820_mainAppPlayer=new Jv(h);document.addEventListener("yt-navigate-start",b.JSC$17820_pauseOnNavigation.bind(b));_.g3(y)})},HDx=function(b,h){var y,S,F,a;
return _.Z(function(P){if(P.nextAddress==1){y=new x1;S=y.JSC$14356_getRequest(h);if(!S)return P.return(void 0);F=S.innerTubeRequest;return P.yield(_.cy(b.innerTubeTransport,F,"/youtubei/v1/next"),2)}a=P.yieldResult;var K;var n,X,u=(K=a.contents)==null?void 0:(n=K.twoColumnWatchNextResults)==null?void 0:(X=n.playlist)==null?void 0:X.playlist,O;K=(u==null?0:(O=u.contents)==null?0:O.length)?u:void 0;return P.return(K)})},uXq=function(b,h){var y,S,F,a,P;
return _.Z(function(K){if(K.nextAddress==1)return y=b.JSC$17820_mainAppPlayer,K.yield(y.api,2);if(K.nextAddress!=3)return S=K.yieldResult,h.watchCommand?K.yield(HDx(b,h.watchCommand),3):K.return();F=K.yieldResult;if((a=F)==null||!a.contents)return K.return();P=F.contents.map(function(n){var X;return(X=n.playlistPanelVideoRenderer)==null?void 0:X.videoId}).filter(function(n){return!!n}).map(function(n){return{encrypted_id:n}});
S.updatePlaylist({video:P});_.g3(K)})},ODa=function(b,h){var y,S,F;
return _.Z(function(a){return a.nextAddress==1?(y=b.JSC$17820_mainAppPlayer,F=(S=h.playerParams)!=null?S:"",h.externalVideoId?a.yield(y.loadVideoWithPlayerVars({videoId:h.externalVideoId,audio_only:"1",player_params:F}),2):a.jumpTo(2)):h.watchCommand?a.yield(uXq(b,h),0):a.jumpTo(0)})};
mK.prototype.JSC$17820_pauseOnNavigation=function(){var b=this,h,y;return _.Z(function(S){if(S.nextAddress==1)return h=b.JSC$17820_mainAppPlayer,S.yield(h.api,2);y=S.yieldResult;y.pauseVideo();_.g3(S)})};
mK.prototype.pauseVideo=function(){var b=this,h,y;return _.Z(function(S){if(S.nextAddress==1)return h=b.JSC$17820_mainAppPlayer,S.yield(h.api,2);y=S.yieldResult;y.pauseVideo();_.g3(S)})};
mK.prototype.playVideo=function(){var b=this,h,y;return _.Z(function(S){if(S.nextAddress==1)return h=b.JSC$17820_mainAppPlayer,S.yield(h.api,2);y=S.yieldResult;y.playVideo();_.g3(S)})};
var N1q=function(b){var h,y;return _.Z(function(S){if(S.nextAddress==1)return h=b.JSC$17820_mainAppPlayer,S.yield(h.api,2);y=S.yieldResult;y.mute();_.g3(S)})},tFa=function(b){var h,y;
return _.Z(function(S){if(S.nextAddress==1)return h=b.JSC$17820_mainAppPlayer,S.yield(h.api,2);y=S.yieldResult;y.unMute();_.g3(S)})};
mK.prototype.stopVideo=function(){var b=this,h,y;return _.Z(function(S){if(S.nextAddress==1)return h=b.JSC$17820_mainAppPlayer,S.yield(h.api,2);y=S.yieldResult;y.stopVideo();_.g3(S)})};
var rg2=function(b,h){return _.Z(function(y){switch(y.nextAddress){case 1:switch(h){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return y.jumpTo(2);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return y.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_STOP":return y.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return y.jumpTo(5);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return y.jumpTo(6)}y.jumpTo(0);break;case 2:return y.yield(b.playVideo(),8);case 8:y.jumpTo(0);break;case 3:return y.yield(b.pauseVideo(),
9);case 9:y.jumpTo(0);break;case 4:return y.yield(b.stopVideo(),10);case 10:y.jumpTo(0);break;case 5:return y.yield(N1q(b),11);case 11:y.jumpTo(0);break;case 6:return y.yield(tFa(b),12);case 12:y.jumpTo(0)}})};
mK.prototype.resolveCommand=function(b){var h=this,y,S,F,a,P,K;return _.Z(function(n){return n.nextAddress==1?(y=_.c(b,hKG),((S=y)==null?0:S.newPlaybackParams)||((F=y)==null?0:F.controlAction)?h.JSC$17820_mainAppPlayer?n.jumpTo(2):n.yield(XBf(h),2):n.return()):((a=y)==null?0:a.newPlaybackParams)?(h.miniplayerService.isMiniplayerActive()&&((P=h.miniplayerService.getPlayerElement())==null||P.pause()),K=y.newPlaybackParams,K.externalVideoId||K.externalPlaylistId?n.yield(ODa(h,K),0):n.return()):n.yield(rg2(h,
y.controlAction),0)})};var v7=function(b){this.JSC$17826_commandHandler=b};
_.z(v7,B8);
v7.prototype.resolveCommand=function(b){var h=this,y,S,F,a,P,K;return _.Z(function(n){if(n.nextAddress==1)return(y=_.c(b,ATb))?n.yield(_.Z5(),2):n.return();S=n.yieldResult;if(!S)return n.return();var X=S,u=(F=y)==null?void 0:F.languageCode,O=(a=y)==null?void 0:a.isAutoTranslated;X.getVideoData&&_.Kvf(X).length&&((u=o5j(X,u,O))?X.setOption("captions","track",u):(X.setOption("captions","stickyLoading",{}),X.setOption("captions","track",{})));P=S.isSubtitlesOn()?_.Mt("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.Mt("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");K=_.Fd(P,5E3);h.JSC$17826_commandHandler.resolveCommand(K);_.g3(n)})};
v7[uN]=[_.OM];var b7=function(b,h){this.shortsPlayerPromise=b;this.JSC$17830_commandHandler=h};
_.z(b7,B8);
b7.prototype.resolveCommand=function(b){var h=this,y,S,F,a,P,K,n,X;return _.Z(function(u){if(u.nextAddress==1)return(y=_.c(b,mLW))?u.yield(h.shortsPlayerPromise,2):u.return();S=u.yieldResult;var O=M8j(S);O!=null&&O.length||(S.loadModule("captions"),O=M8j(S));F=O;if((a=F)==null||!a.length)return P=_.Mt("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),K=_.Fd(P),h.JSC$17830_commandHandler.resolveCommand(K),u.return();S.toggleSubtitles();n=S.isSubtitlesOn()?_.Mt("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.Mt("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");X=_.Fd(n);h.JSC$17830_commandHandler.resolveCommand(X);_.g3(u)})};
b7[uN]=[_.qce,_.OM];var hl=function(b){this.JSC$17833_actionRouter=b;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(h,y){h.triggerAction("yt-dismiss-shopping-timely-shelf-action",y);(h=_.H9().resolve(_.XS(_.$6a)))&&h.dismissFeaturedProductOverlay()}]])};
_.z(hl,B8);hl.prototype.resolveCommand=function(b){var h=this,y,S,F;return _.Z(function(a){y=_.c(b,eMG);if((S=y)==null||!S.overlayId)return a.return();F=h.dismissPlayerOverlayActions.get(y.overlayId);if(!F)throw Error("Gi`"+y.overlayId);F(h.JSC$17833_actionRouter,y);_.g3(a)})};
hl[uN]=[Cj];var yO=function(b){this.JSC$17837_playerPromise=b};
_.z(yO,B8);yO.prototype.resolveCommand=function(b){var h=this,y,S,F,a;return _.Z(function(P){if(P.nextAddress==1)return(y=_.c(b,O08))?P.yield(h.JSC$17837_playerPromise,2):P.return();S=P.yieldResult;F=S.getVideoData().video_id;y.videoId===F&&(a=Number(y.offsetFromVideoStartMilliseconds),a>=0&&S.seekTo(a/1E3));_.g3(P)})};
yO[uN]=[_.ja];var cgx=_.oU("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),St=function(b){this.store=b};
_.z(St,B8);
var RXA=function(b){var h,y,S,F;return _.Z(function(a){if(a.nextAddress==1)return h=_.QC("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,y=_.QC("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,S=h||y,b.JSC$17841_mainAppPlayer=new Jv(S),a.yield(b.JSC$17841_mainAppPlayer.api,2);F=a.yieldResult;F.addEventListener("onStateChange",b.JSC$17841_playerStateChangeListener.bind(b));document.addEventListener("yt-page-data-updated",b.JSC$17841_pauseOnNavigation.bind(b));window.addEventListener("state-navigatestart",
b.JSC$17841_pauseOnNavigation.bind(b));_.g3(a)})};
St.prototype.JSC$17841_playerStateChangeListener=function(b){switch(b){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"}zXx(this)};
var zXx=function(b){b.store.dispatch(_.R7("sfvAudioItemCurrentlyPlayingEntity",cgx,{key:cgx,externalVideoId:b.externalVideoId,sfvAudioItemPlaybackState:b.playbackState,nowPlayingEntityValue:b.nowPlayingEntityValue}))};
St.prototype.JSC$17841_pauseOnNavigation=function(){var b=this,h,y,S,F;return _.Z(function(a){if(a.nextAddress==1){if(!b.JSC$17841_mainAppPlayer){var P=new _.Gn("Error: mainAppPlayer is unavailable",b.JSC$17841_mainAppPlayer);_.QT(P);return a.return()}return a.yield(b.JSC$17841_mainAppPlayer.api,2)}h=a.yieldResult;S=(y=h)==null?void 0:y.getPlayerState();S!==1||(F=h)!=null&&F.pauseVideo();_.g3(a)})};
St.prototype.playVideo=function(b,h,y){var S=this,F,a;return _.Z(function(P){if(P.nextAddress==1)return P.yield((F=S.JSC$17841_mainAppPlayer)==null?void 0:F.api,2);a=P.yieldResult;if(!S.JSC$17841_mainAppPlayer||!a){var K=new _.Gn("Error: mainAppPlayer is unavailable",S.JSC$17841_mainAppPlayer);_.QT(K);return P.return()}return P.yield(S.JSC$17841_mainAppPlayer.loadVideoWithPlayerVars({videoId:S.externalVideoId,audio_only:"1",start:b/1E3,end:b/1E3+h,player_params:y}),0)})};
St.prototype.pauseVideo=function(){var b=this,h,y;return _.Z(function(S){if(S.nextAddress==1){if(!b.JSC$17841_mainAppPlayer){var F=new _.Gn("Error: mainAppPlayer is unavailable",b.JSC$17841_mainAppPlayer);_.QT(F);return S.return()}return S.yield(b.JSC$17841_mainAppPlayer.api,2)}h=S.yieldResult;(y=h)==null||y.pauseVideo();_.g3(S)})};
St.prototype.resolveCommand=function(b){var h=this,y,S,F,a,P,K,n,X,u,O,N,t,R,I,U,p,e,E,Y;return _.Z(function(w){if(w.nextAddress==1)return y=_.c(b,qGe),F=(S=y)==null?void 0:S.nowPlayingEntityValue,P=(a=y)==null?void 0:a.externalVideoId,O=Number((u=(K=y)==null?void 0:(n=K.defaultStartPoints)==null?void 0:(X=n[0])==null?void 0:X.offsetMs)!=null?u:"0"),p=Number((U=(N=y)==null?void 0:(t=N.defaultStartPoints)==null?void 0:(R=t[0])==null?void 0:(I=R.duration)==null?void 0:I.seconds)!=null?U:"15"),Y=(E=
(e=y)==null?void 0:e.playerParams)!=null?E:"",F&&P?h.JSC$17841_mainAppPlayer?w.jumpTo(2):w.yield(RXA(h),2):w.return();if(w.nextAddress!=6){if(h.nowPlayingEntityValue&&F===h.nowPlayingEntityValue)return h.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?w.yield(h.pauseVideo(),0):w.yield(h.playVideo(O,p,Y),0);h.externalVideoId=P;h.nowPlayingEntityValue=F;h.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return w.yield(h.playVideo(O,p,Y),6)}zXx(h);return w.jumpTo(0)})};
St[uN]=[$7];var Ft=function(b){this.JSC$17859_commandHandler=b};
_.z(Ft,B8);Ft.prototype.resolveCommand=function(b,h){var y=this,S,F,a;return _.Z(function(P){if(P.nextAddress==1)return(S=_.c(b,Uua))?P.yield(_.Z5(),2):P.return();F=P.yieldResult;if(!F)return P.return();(a=n5N(F))&&y.JSC$17859_commandHandler.resolveCommand(a,h);_.g3(P)})};
Ft[uN]=[_.OM];var aW=function(b){this.JSC$17865_commandHandler=b};
_.z(aW,B8);aW.prototype.resolveCommand=function(b,h){var y=this,S,F,a,P,K;return _.Z(function(n){if(n.nextAddress==1)return(S=_.c(b,pAM))?n.yield(_.Z5(),2):n.return();F=n.yieldResult;if(!F)return n.return();(a=NL4(F))?y.JSC$17865_commandHandler.resolveCommand(a,h):(P=_.Mt("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),K=_.Fd(P),y.JSC$17865_commandHandler.resolveCommand(K));_.g3(n)})};
aW[uN]=[_.OM];var dl=function(b){this.JSC$17868_playerPromise=b};
_.z(dl,B8);dl.prototype.resolveCommand=function(b){var h=this,y,S;return _.Z(function(F){if(F.nextAddress==1)return(y=_.c(b,gdM))?F.yield(h.JSC$17868_playerPromise,2):F.return();S=F.yieldResult;S.isFullscreen()&&S.wakeUpControls();_.g3(F)})};
dl[uN]=[_.ja];var jt=function(b){this.JSC$17871_playerPromise=b};
_.z(jt,B8);jt.prototype.resolveCommand=function(b){var h=this,y,S,F,a,P;return _.Z(function(K){if(K.nextAddress==1){y=_.c(b,ND5);if(!y)return K.return();S=y.overlayRenderer;return S?(F=_.c(S,kOP))?K.yield(h.JSC$17871_playerPromise,3):K.jumpTo(0):K.return()}a=K.yieldResult;a.renderChapterSeekingAnimation(1,_.vi(F.text),(P=F.icon)==null?void 0:P.iconType);_.g3(K)})};
jt[uN]=[_.ja];var $3=function(b){this.store=b};
_.z($3,B8);
$3.prototype.resolveCommand=function(b){var h=this,y,S,F;return _.Z(function(a){if(a.nextAddress==1){y=_.c(b,yVM);if(!y)return a.return();S="";(F=h.store.getState().collabInviteLink)&&y.id===F.playlistId?S=F.inviteLinkURL:y.shortUrl&&(S=y.shortUrl);return S?a.yield(navigator.clipboard.writeText(S),3):a.jumpTo(0)}var P={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.Mt("COPY_LINK_SUCCESS_TOAST")}}}}};_.H9().resolve(_.OM).resolveCommand(P);_.g3(a)})};
$3[uN]=[r6];var Ls=function(b,h){this.innertubeTransportService=b;this.JSC$17881_commandHandler=h};
_.z(Ls,B8);Ls.prototype.resolveCommand=function(b,h){var y=this,S,F,a,P,K,n,X,u,O,N;return _.Z(function(t){if(t.nextAddress==1)return(S=_.c(b,_.r2))?t.yield(_.f9(y.innertubeTransportService,b,(F=h)==null?void 0:F.form),2):t.return();(a=t.yieldResult)&&a.errorMetadata&&(P=a,K=_.Fd(P.error.message),y.JSC$17881_commandHandler.resolveCommand(K));n=a;if((X=n)==null?0:X.actions)for(u=_.L(n.actions),O=u.next();!O.done;O=u.next())N=O.value,y.JSC$17881_commandHandler.resolveCommand(N);_.g3(t)})};
Ls[uN]=[_.DT,_.OM];var PZ=function(){};
_.z(PZ,B8);PZ.prototype.resolveCommand=function(b){var h;return _.Z(function(y){h=_.c(b,f$G);if(!h)return y.return();(new tEo(h)).show();_.g3(y)})};_.Ks=new _.ca("PLAYLIST_EDIT_CONTROLLER_TOKEN");var Zs=function(b,h,y,S){this.store=b;this.innertubeTransportService=h;this.controller=y;this.JSC$17889_commandHandler=S};
_.z(Zs,B8);
Zs.prototype.resolveCommand=function(b,h){var y=this,S,F,a,P,K,n,X,u,O,N,t,R,I,U,p,e,E,Y,w,x,q,dI,L4,Rq,Xn,Ny;return _.Z(function(gI){if(gI.nextAddress==1){S=_.c(b,_.nj);if(!S)return gI.return();if(S.clientActions){F=_.L(S.clientActions);for(a=F.next();!a.done;a=F.next())P=a.value,y.JSC$17889_commandHandler.resolveCommand(P,h);var YU,VN=h==null?void 0:(YU=h.form)==null?void 0:YU.element;VN&&_.Sx(VN,"yt-dismissible-item-action",S.clientActions)}return gI.yield(_.f9(y.innertubeTransportService,b,(K=
h)==null?void 0:K.form),2)}if(n=gI.yieldResult)n.errorMetadata?(X=n,u=_.Fd(X.error.message),y.JSC$17889_commandHandler.resolveCommand(u),"error"in n&&((O=h)==null?0:(N=O.commandController)==null?0:N.onServerError)&&((t=h)==null||(R=t.commandController)==null||R.onServerError(b,n))):(I=h)==null||(U=I.commandController)==null||(e=(p=U).onSuccess)==null||e.call(p,b,n);E=n;((Y=E)==null?0:Y.collaborationInviteLink)&&S.playlistId&&(_.r("web_enable_invite_collaborators_link")||_.r("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
y.store.dispatch(_.$8({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:S.playlistId,inviteLinkUrl:E.collaborationInviteLink}}));((w=E)==null?0:w.redirectEndpoint)&&y.JSC$17889_commandHandler.resolveCommand(E.redirectEndpoint);((x=E)==null?0:(q=x.newHeader)==null?0:q.playlistHeaderRenderer)?DzE(y.controller,E.newHeader.playlistHeaderRenderer):((dI=E)==null?0:(L4=dI.newHeader)==null?0:L4.musicEditablePlaylistDetailHeaderRenderer)&&DzE(y.controller,E.newHeader.musicEditablePlaylistDetailHeaderRenderer);
y.controller.playlistVideoListElement&&((Rq=E)==null?0:(Xn=Rq.playlistEditResults)==null?0:(Ny=Xn[0])==null?0:Ny.playlistEditVideoAddedResultData)&&((VN=y.controller.playlistVideoListElement)==null||VN.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:E.playlistEditResults[0].playlistEditVideoAddedResultData})));_.g3(gI)})};
Zs[uN]=[_.nd,_.DT,_.Ks,_.OM];var oW=function(b,h){this.controller=b;this.JSC$17899_commandHandler=h};
_.z(oW,B8);oW.prototype.resolveCommand=function(b,h){var y=this,S,F,a;return _.Z(function(P){S=_.c(b,SRM);y.controller.showRefreshPill&&((F=S)==null?0:F.command)&&(y.JSC$17899_commandHandler.resolveCommand((a=S)==null?void 0:a.command,h),y.controller.showRefreshPill=!1);_.g3(P)})};
oW[uN]=[_.Qu,_.OM];var Mc=function(b,h){this.store=b;this.JSC$17903_commandHandler=h||_.nt.instance};
_.z(Mc,B8);Mc.prototype.resolveCommand=function(b,h){var y=this,S,F,a,P,K,n,X,u,O,N;return _.Z(function(t){S=_.c(b,HTb);F=y.store.getState().radioButtonGroup;if((a=S)==null?0:a.command)y.JSC$17903_commandHandler.resolveCommand((P=S)==null?void 0:P.command,h);else if(F&&((K=S)==null?void 0:K.formId)===F.currentFormId)for(n=Object.values(F.commandsMap),X=_.L(n),u=X.next();!u.done;u=X.next())O=u.value,(N=_.YS(O))&&y.JSC$17903_commandHandler.resolveCommand(N,h);_.g3(t)})};
Mc[uN]=[_.nd];var ns=new _.ca("USER_PREFS");var Xt=function(b){this.JSC$17908_prefCookie=b};
_.z(Xt,B8);Xt.prototype.resolveCommand=function(b){var h=this,y;return _.Z(function(S){(y=_.c(b,sOw))&&typeof y.useListView==="boolean"&&(_.uE(0,155,y.useListView),h.JSC$17908_prefCookie.save());_.g3(S)})};
Xt[uN]=[ns];var HZ=function(b){this.JSC$17912_prefCookie=b};
_.z(HZ,B8);HZ.prototype.resolveCommand=function(b){var h=this,y,S,F,a,P;return _.Z(function(K){y=_.c(b,l$e);if((S=y)==null||!S.gl)return K.return();F=y.gl;a={persist_gl:"1",gl:F};h.JSC$17912_prefCookie.set("gl",F);h.JSC$17912_prefCookie.save();P=jY8(a);_.GM(P);_.g3(K)})};
HZ[uN]=[ns];var u7=function(b){this.JSC$17916_prefCookie=b};
_.z(u7,B8);u7.prototype.resolveCommand=function(b){var h=this,y,S;return _.Z(function(F){y=_.c(b,aXN);if(!y)return F.return();S=!1;y.flagNum&&typeof y.value==="boolean"?(_.uE(0,y.flagNum,y.value),S=!0):y.key&&typeof y.stringValue==="string"&&(h.JSC$17916_prefCookie.set(y.key,y.stringValue),S=!0);S&&h.JSC$17916_prefCookie.save();_.g3(F)})};
u7[uN]=[ns];var OK=new _.ca("PREF_STORAGE_PROMISE_TOKEN");var Nc=function(b){this.JSC$17920_prefStoragePromise=b};
_.z(Nc,B8);Nc.prototype.resolveCommand=function(b){var h=this,y,S;return _.Z(function(F){if(F.nextAddress==1)return(y=_.c(b,jB8))?F.yield(h.JSC$17920_prefStoragePromise,2):F.return();S=F.yieldResult;return S===void 0||y.key===void 0||y.value===void 0?F.return():F.yield(S.set(y.key,y.value),0)})};
Nc[uN]=[OK];var tl=function(b){this.innertubeTransportService=b};
_.z(tl,B8);tl.prototype.resolveCommand=function(b,h){var y=this,S,F;return _.Z(function(a){(S=_.c(b,_.uB8))&&S&&S.isFirstRequest&&(_.Ua("search_overview_answer"),_.pI("so_rq",void 0,"search_overview_answer"));return a.yield(_.f9(y.innertubeTransportService,b,(F=h)==null?void 0:F.form),0)})};
tl[uN]=[_.DT];var IKF=function(){};
_.z(IKF,B8);
IKF.prototype.resolveCommand=function(b){var h,y,S,F,a,P,K,n,X;return _.Z(function(u){h=_.c(b,uqM);if((y=h)==null?0:y.sectionIdentifier){if(h.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(F=(S=document.getElementsByTagName(h.sectionIdentifier))==null?void 0:S.item(0))F.scrollIntoView({behavior:"smooth"}),(a=NU5(F))&&a.focus({preventScroll:!0});return u.return()}P=document.querySelector("[section-identifier="+h.sectionIdentifier+"]");K=document.querySelector("[section-identifier="+h.referenceSectionIdentifier+
"]");if(!P)return u.return();n=h.verticalScrollOffsetDp?h.verticalScrollOffsetDp:0;K&&(n-=K.offsetTop);window.scrollTo({top:P.offsetTop+n,behavior:"smooth"});(X=NU5(P))&&X.focus({preventScroll:!0})}_.g3(u)})};var rl=function(b){this.JSC$17932_commandHandler=b};
_.z(rl,B8);
rl.prototype.resolveCommand=function(b){var h=this,y,S,F,a,P,K,n;return _.Z(function(X){if(X.nextAddress==1){y=_.c(b,kuo);if(!y||!y.imageBytes||!navigator.clipboard)return X.return();if(y.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.QT(Error("Ii")),X.return();_.WE(X,2);F=(S=y)==null?void 0:S.imageBytes;a=F.replace(/-/g,"+").replace(/_/g,"/");P=h$M(a);K={};n=[new ClipboardItem((K[P.type]=P,K))];return X.yield(navigator.clipboard.write(n),4)}if(X.nextAddress!=2)return y.successCommand&&
h.JSC$17932_commandHandler.resolveCommand(y.successCommand),_.Lz(X,0);_.C$(X);y.errorCommand&&h.JSC$17932_commandHandler.resolveCommand(y.errorCommand);_.g3(X)})};
rl[uN]=[_.OM];var cZ=function(b,h){this.innertubeTransportService=b;this.JSC$17936_commandHandler=h};
_.z(cZ,B8);cZ.prototype.resolveCommand=function(b,h){var y=this,S,F,a,P,K;return _.Z(function(n){if(n.nextAddress==1)return(S=_.c(b,VmM))?n.yield(_.f9(y.innertubeTransportService,b,(F=h)==null?void 0:F.form),2):n.return();(a=n.yieldResult)&&a.errorMetadata&&S.onFailureCommand&&y.JSC$17936_commandHandler.resolveCommand(S.onFailureCommand);P=a;((K=P)==null?0:K.shareCommand)&&y.JSC$17936_commandHandler.resolveCommand(P.shareCommand,h);_.g3(n)})};
cZ[uN]=[_.DT,_.OM];var RW=function(){};
_.z(RW,B8);RW.prototype.resolveCommand=function(b){var h,y;return _.Z(function(S){h=_.c(b,bT7);if(!h||!navigator.share)return S.return();y={url:h.url};try{return S.return(navigator.share(y))}catch(F){}_.g3(S)})};var zW=function(){};
_.z(zW,B8);zW.prototype.resolveCommand=function(){return _.Z(function(b){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.g3(b)})};var Ds=function(b){this.JSC$17946_navigationConfirmationService=b};
_.z(Ds,B8);Ds.prototype.resolveCommand=function(){var b=this;return _.Z(function(h){b.JSC$17946_navigationConfirmationService.cancelPendingNavigation();_.g3(h)})};
Ds[uN]=[d7];var IW=function(b){this.JSC$17949_screenManager=b};
_.z(IW,B8);IW.prototype.resolveCommand=function(b,h){var y=this,S,F,a,P,K,n,X;return _.Z(function(u){F=(S=h.form)==null?void 0:S.event;P=(a=h.form)==null?void 0:a.element;if(!F)throw new _.Gn("Event not passed in when resolving command");K=_.L(F.composedPath());for(n=K.next();!n.done;n=K.next())if(X=n.value,X.tagName==="YT-COPY-LINK-RENDERER")return X.copyUrlToClipboard(),P&&_.Vd(y.JSC$17949_screenManager,P),u.return();_.g3(u)})};
IW[uN]=[_.Le];var BZ=function(){this.JSC$17953_miniAppClientDataProvider=_.H9().resolve(_.g0)};
_.z(BZ,B8);BZ.prototype.resolveCommand=function(){var b=this,h,y;return _.Z(function(S){if(b.JSC$17953_miniAppClientDataProvider.clientData.has("video_id")){var F=b.JSC$17953_miniAppClientDataProvider,a=F.clientData.get("video_id");a&&F.clientData.delete("video_id");h="https://youtube.com/watch?v="+a;y=_.fc(h);if(y===void 0)throw Error("Ji`"+h);_.d3(window,y)}_.g3(S)})};var WZ=function(){};
_.z(WZ,B8);WZ.prototype.resolveCommand=function(){return _.Z(function(b){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.g3(b)})};var Al=function(){};
_.z(Al,B8);Al.prototype.resolveCommand=function(){var b;return _.Z(function(h){if(h.nextAddress==1)return h.yield(_.L8U(window.document.documentElement),2);(b=document.querySelector("mini-app-container-view-model iframe"))&&b.focus();_.g3(h)})};var UK=function(b){this.JSC$17960_navigationConfirmationService=b};
_.z(UK,B8);
UK.prototype.resolveCommand=function(){var b=this;return _.Z(function(h){var y=b.JSC$17960_navigationConfirmationService,S=_.H9().resolve(_.QI),F;if(((F=y.navigateParams)==null?void 0:F.data)!==void 0){var a;_.pKG(S,y.navigateParams.endpoint,y.navigateParams.data,(a=y.navigateParams.navigationType)!=null?a:1,y.navigateParams.tempData,y.navigateParams.isMiniplayer,void 0,!0);y.navigateParams=void 0;y.customConfirmationCommand=void 0}else y.navigateParams&&(S.navigate(y.navigateParams.endpoint,y.navigateParams.reload,
y.navigateParams.params,y.navigateParams.tempData,y.navigateParams.requestType,y.navigateParams.createScreenConfig,!0),y.navigateParams=void 0,y.customConfirmationCommand=void 0);_.g3(h)})};
UK[uN]=[d7];var ps=function(){};
_.z(ps,B8);ps.prototype.resolveCommand=function(){return _.Z(function(b){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.g3(b)})};var Jl=function(b){this.JSC$17965_prefStorage=b};
_.z(Jl,B8);Jl.prototype.resolveCommand=function(){var b=this,h,y;return _.Z(function(S){switch(S.nextAddress){case 1:return S.yield(b.JSC$17965_prefStorage,2);case 2:return(h=S.yieldResult)?S.yield(h.set("sfvle",!1),3):S.return();case 3:return S.yield(h.set("sfvles",!0),4);case 4:y=_.HT(),_.uE(0,203,!1),_.uE(0,204,!0),y.save(),_.g3(S)}})};
Jl[uN]=[OK];var et=function(b){this.JSC$17968_prefStorage=b};
_.z(et,B8);et.prototype.resolveCommand=function(){var b=this,h,y;return _.Z(function(S){switch(S.nextAddress){case 1:return S.yield(b.JSC$17968_prefStorage,2);case 2:return(h=S.yieldResult)?S.yield(h.set("sfvle",!0),3):S.return();case 3:return S.yield(h.set("sfvles",!0),4);case 4:y=_.HT(),_.uE(0,203,!0),_.uE(0,204,!0),y.save(),_.g3(S)}})};
et[uN]=[OK];_.B1F=new _.ca("SNACKBAR_CONTROLLER_TOKEN");_.WQE=new _.ca("SHOULD_SHOW_PIVOT_BAR_TOKEN");var Cs=function(b){this.controller=b};
_.z(Cs,B8);Cs.prototype.resolveCommand=function(b){var h=this,y;return _.Z(function(S){y=_.c(b,yv5);if(!y)return S.return();var F=h.controller;F.closeSnackbarFn&&F.closeSnackbarFn();_.g3(S)})};
Cs[uN]=[_.B1F];var gl=function(b,h){this.controller=b;this.JSC$17975_sheetController=h};
_.z(gl,B8);gl.prototype.resolveCommand=function(b,h){var y=this,S,F,a,P,K,n;return _.Z(function(X){S=_.c(b,FEb);if(!S)return X.return();P=nba(y.JSC$17975_sheetController,(F=h)==null?void 0:(a=F.form)==null?void 0:a.element);K=_.c(S.content,uyP);if(!K)return X.return();var u=y.controller,O=K,N=(n=S.animationStyle)!=null?n:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(u.showSnackbarFn)u.showSnackbarFn({snackbarViewModel:O,animationStyle:N,durationMs:S.durationSeconds*1E3,target:P});else throw Error("Cj");_.g3(X)})};
gl[uN]=[_.B1F,_.nk];var sK=function(){};
_.z(sK,B8);sK.prototype.resolveCommand=function(b){var h;return _.Z(function(y){h=_.c(b,dBa);if(!h||typeof h.key!=="string"||typeof h.value!=="string")return y.return();window.localStorage.setItem(h.key,h.value);_.g3(y)})};var Y3=function(b){this.store=b};
_.z(Y3,B8);Y3.prototype.resolveCommand=function(b){var h=this,y;return _.Z(function(S){y=_.c(b,ybj);if(!y||!y.stepId||!y.token)return S.return();h.store.dispatch(mf5({stepId:y.stepId,token:y.token,isSelected:!1}));_.g3(S)})};
Y3[uN]=[r6];var TW=function(b,h,y){this.innertubeTransportService=b;this.store=h;this.JSC$17987_screenManager=y};
_.z(TW,B8);
TW.prototype.resolveCommand=function(b){var h=this,y,S,F,a,P,K,n,X,u,O,N,t,R,I,U,p,e,E,Y,w,x,q,dI,L4,Rq,Xn,Ny,gI;return _.Z(function(YU){y=_.c(b,bpw);if(!y||(S=y.stepIds)==null||!S.length)return YU.return();F=h.store.getState().talkToRecs;a=[];P=[];K=_.L(y.stepIds);for(n=K.next();!n.done;n=K.next())for(X=n.value,u=void 0,(O=(u=F.stepStates[X])==null?void 0:u.userQuery)&&P.push({userQuery:y.submitEmptyUserQuery?"":O.userQuery,userQueryToken:O.token}),t=N=void 0,R=(t=(N=F.stepStates[X])==null?void 0:
N.selectionStates)!=null?t:{},I=_.L(Object.entries(R)),U=I.next();!U.done;U=I.next())p=U.value,e=_.L(p),E=e.next().value,Y=e.next().value,w=E,x=Y,x.isSelected&&a.push(w);q={selectedChipTokens:a,userQueries:P,submittedStepIds:y.stepIds};dI={browseTalk2recsFormData:q};y.browseEndpoint?(L4=b,_.J6(L4,_.O0,y.browseEndpoint)):y.command&&(L4=y.command);if(!L4)return YU.return();Rq=_.c(L4,_.sk);if((Xn=Rq)==null?0:Xn.command)if(Ny=_.c(Rq.command,qY5))gI=_.nt.instance,gI.resolveCommand(Rq.command);return YU.yield(_.f9(h.innertubeTransportService,
L4,{formData:dI,disableCache:!0}).then(function(VN){(VN==null?0:VN.trackingParams)&&h.JSC$17987_screenManager.graftServerVe(VN==null?void 0:VN.trackingParams)}),0)})};
TW[uN]=[_.DT,r6,_.Le];var GW=function(b){this.store=b};
_.z(GW,B8);
GW.prototype.resolveCommand=function(b){var h=this,y,S,F,a,P,K,n,X;return _.Z(function(u){y=_.c(b,hj4);if(!y||!y.stepId)return u.return();if(y.selectBehavior==="TALK_TO_RECS_SELECT_BEHAVIOR_APPEND_TO_QUERY")P=(a=(S=h.store.getState().talkToRecs.stepStates[y.stepId])==null?void 0:(F=S.userQuery)==null?void 0:F.userQuery)!=null?a:"",K=P.length>0?". ":"",n=P+K+y.selectedText,h.store.dispatch(vlG({stepId:y.stepId,userQueryToken:"",userQuery:n}));else if(y.selectBehavior==="TALK_TO_RECS_SELECT_BEHAVIOR_REPLACE_QUERY")h.store.dispatch(vlG({stepId:y.stepId,userQueryToken:"",
userQuery:(X=y.selectedText)!=null?X:""}));else{if(!y.token)return u.return();h.store.dispatch(mf5({stepId:y.stepId,token:y.token,isSelected:!0}))}_.g3(u)})};
GW[uN]=[r6];var k3=function(b){this.store=b};
_.z(k3,B8);k3.prototype.resolveCommand=function(b,h){var y=this,S,F,a,P,K,n;return _.Z(function(X){S=_.c(b,U7M);if(!S||!S.stepId)return X.return();K=(P=(F=h)==null?void 0:(a=F.form)==null?void 0:a.userQuery)!=null?P:"";y.store.dispatch(vlG({stepId:S.stepId,userQuery:K,userQueryToken:(n=S.userQueryToken)!=null?n:""}));_.g3(X)})};
k3[uN]=[r6];_.AgP=new _.ca("TIMELY_ACTIONS_CONTROLLER_TOKEN");var VO=function(b){this.controller=b};
_.z(VO,B8);VO.prototype.resolveCommand=function(b){var h=this,y,S,F,a;return _.Z(function(P){y=_.c(b,nXN);if(!y)return P.return();S=y;F=S.id;a=S.isVisible;if(F===void 0||a===void 0)return P.return();var K;(K=h.controller.timelyActionsMap.get(F))==null||K(F,a);_.g3(P)})};
VO[uN]=[_.AgP];var Uza=function(){this.timelyActionsMap=new Map};var EK=function(b){this.JSC$18013_commandHandler=b};
_.z(EK,B8);EK.prototype.resolveCommand=function(b){var h=this,y,S,F,a,P;return _.Z(function(K){y=_.c(b,_.RH8);if(!y)return K.return();a=(S=y.item)==null?void 0:(F=S.notificationTextRenderer)==null?void 0:F.successResponseText;if(!a)return K.return();P=_.SI(a);h.JSC$18013_commandHandler.resolveCommand(P);_.g3(K)})};
EK[uN]=[_.OM];var i7=function(b,h){this.innertubeTransportService=b;this.JSC$18018_playerApiPromise=h};
_.z(i7,B8);
i7.prototype.resolveCommand=function(b){var h=this,y,S,F,a,P,K,n,X,u;return _.Z(function(O){if(O.nextAddress==1)return O.yield(h.JSC$18018_playerApiPromise,2);y=O.yieldResult;S=y.getOption("captions","track");F=Object.assign({},_.c(b,_.B55));(P=(a=y.getVideoData())==null?void 0:a.video_id)?F.externalVideoId=P:_.yb(Error("Ki"));if((K=S)==null?0:K.languageCode)F.languageCode=S.languageCode;if((n=S)==null?0:n.kind)F.kind=S.kind;if((X=S)==null?0:X.name)F.name=S.name;u=Object.assign({},b,{getTranscriptEndpoint:F});return O.yield(_.f9(h.innertubeTransportService,
u),0)})};
i7[uN]=[_.DT,_.ja];var wl=function(){};
_.z(wl,B8);wl.prototype.resolveCommand=function(b){var h,y,S,F,a,P,K,n;return _.Z(function(X){h=_.c(b,XIb);if((y=h)==null||!y.paramKeyValuePairs)return X.return();S=window.location.href;F=_.L(h.paramKeyValuePairs);for(a=F.next();!a.done;a=F.next())P=a.value,P.key&&P.value&&(K={},S=_.Ln(S,(K[P.key]=P.value,K)));n=_.H9().resolve(_.y$);_.hp(n,S);_.g3(X)})};_.l7=new _.ca("UPDATE_VIDEO_METADATA_CONTROLLER_TOKEN");var qc=function(b,h,y,S){this.controller=b;this.JSC$18025_playerApiPromise=h;this.innertubeTransportService=y;this.JSC$18025_commandHandler=S};
_.z(qc,B8);
qc.prototype.resolveCommand=function(b){var h=this,y,S,F,a,P,K,n,X,u,O,N,t,R,I,U,p,e,E;return _.Z(function(Y){if(Y.nextAddress==1){y=_.c(b,spe);if((S=y)==null||!S.watchEndpoint)return Y.return();F=new x1;a=F.JSC$14356_getRequest(y.watchEndpoint);if(!a)return Y.return();P=y.watchEndpoint.clickTrackingParams;return Y.yield(_.cy(h.innertubeTransportService,a.innerTubeRequest,a.input,P,a.config),2)}if(Y.nextAddress!=3)return K=Y.yieldResult,Y.yield(h.JSC$18025_playerApiPromise,3);n=Y.yieldResult;n.updateVideoData({raw_watch_next_response:K});
if(R=(X=K)==null?void 0:(u=X.contents)==null?void 0:(O=u.twoColumnWatchNextResults)==null?void 0:(N=O.results)==null?void 0:(t=N.results)==null?void 0:t.contents)U=(I=R.find(function(w){return w.videoPrimaryInfoRenderer}))==null?void 0:I.videoPrimaryInfoRenderer,((p=U)==null?0:p.subtitle)&&pBa(h.controller,U.subtitle);
(E=(e=K)==null?void 0:e.onUiReady)&&h.JSC$18025_commandHandler.resolveCommand(E);_.g3(Y)})};
qc[uN]=[_.l7,_.ja,_.DT,_.OM];var Jgf=function(){this.subtitleChangeCallbackMap=new Map},pBa=function(b,h){b=_.L(b.subtitleChangeCallbackMap.values());
for(var y=b.next();!y.done;y=b.next())y=y.value,y(h)};var x3=function(b,h){this.JSC$18035_commandHandler=b;this.innertubeTransportService=h};
_.z(x3,B8);
x3.prototype.resolveCommand=function(b,h){var y=this,S,F,a,P,K,n,X,u,O,N,t,R,I,U,p,e,E;return _.Z(function(Y){switch(Y.nextAddress){case 1:return(a=(S=h)==null?void 0:(F=S.form)==null?void 0:F.element)&&_.kG(a),P=_.HT().get("hl"),K="",_.WE(Y,2),Y.yield(R$q(P),4);case 4:K=Y.yieldResult;_.Lz(Y,3);break;case 2:return _.C$(Y),a&&_.VH(a),_.QT(Error("Mi"),"ERROR"),Y.return();case 3:n=_.c(b,xTG);if(!n)return a&&_.VH(a),Y.return();(O=(X=n.commerceActionConfig)==null?void 0:(u=X.commandLifeCycleConfig)==null?
void 0:u.onStartCommand)&&y.JSC$18035_commandHandler.resolveCommand(O);return Y.yield(_.f9(y.innertubeTransportService,b,{client_data:{paymentsClientToken:{token:K}}}),5);case 5:(N=Y.yieldResult)?(a&&_.VH(a),((U=N)==null?0:U.command)&&y.JSC$18035_commandHandler.resolveCommand(N.command),(E=(p=n.commerceActionConfig)==null?void 0:(e=p.commandLifeCycleConfig)==null?void 0:e.onSuccessCommand)&&y.JSC$18035_commandHandler.resolveCommand(E)):(a&&_.VH(a),_.QT(Error("Ni")),(I=(t=n.commerceActionConfig)==
null?void 0:(R=t.commandLifeCycleConfig)==null?void 0:R.onFailureCommand)&&y.JSC$18035_commandHandler.resolveCommand(I)),_.g3(Y)}})};
x3[uN]=[_.OM,_.DT];var QO=function(b,h,y){this.store=b;this.JSC$18051_commandHandler=h;this.innertubeTransportService=y};
_.z(QO,B8);
QO.prototype.resolveCommand=function(b,h){var y=this,S,F,a,P,K,n,X,u,O;return _.Z(function(N){S=_.c(b,Qpe);F=S.googlePaymentPayload;S.onStartCommand&&y.JSC$18051_commandHandler.resolveCommand(S.onStartCommand);a=F.encryptedPurchaseParams;P=F.ypcLogWalletAnalyticDataEndpoint;K=S.serializedTransactionFlowLoggingParams;n=F.serializedPaymentsClientParams;X=S.ypcCujContext;O=IOj(y.innertubeTransportService,(u=h)==null?void 0:u.form,a,P,K,n,X);return N.return(O.then(function(t){z$M(h==null?void 0:h.form,
!1);var R=y.store,I=y.JSC$18051_commandHandler,U=t.integratorData;U==null||U===""||t.error!=null?(String(t.error)==="-1"&&S.onDismissCommand?I.resolveCommand(S.onDismissCommand):String(t.error)!=="-1"&&S.onFailureCommand&&I.resolveCommand(S.onFailureCommand),String(t.error)!=="-1"&&String(t.error)!=="132"&&_.QT(Error("Oi"),"ERROR")):(S.googlePaymentEntityKey&&R.dispatch(_.R7("commerceAcquisitionClientPayloadEntity",S.googlePaymentEntityKey,{key:S.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:U,
fundsGuaranteeCallbackClientData:t.integratorClientCallbackData}}})),S.onSuccessCommand&&I.resolveCommand(S.onSuccessCommand));_.$p()},function(t){z$M(h==null?void 0:h.form,!1);
_.QT(t,"ERROR");S.onFailureCommand&&y.JSC$18051_commandHandler.resolveCommand(S.onFailureCommand)}))})};
QO[uN]=[$7,_.OM,_.DT];var m1=function(b,h){this.JSC$18055_commandHandler=b;this.purchaseManager=h};
_.z(m1,B8);
m1.prototype.resolveCommand=function(b){var h=this,y,S,F,a,P,K,n,X,u;return _.Z(function(O){y=_.c(b,mTN);((S=y)==null?0:(F=S.commandLifeCycleConfig)==null?0:F.onStartCommand)&&h.JSC$18055_commandHandler.resolveCommand(y.commandLifeCycleConfig.onStartCommand);if(!((a=y)==null?0:(P=a.googlePaymentPurchaseManagerPayload)==null?0:P.securePayloadBytes))return _.QT(Error("Pi"),"ERROR"),O.return();K=GKM(_.h8(y.googlePaymentPurchaseManagerPayload.securePayloadBytes));n=_.HT().get("hl");X=_.wS();O$A(K.serialize(),
n,function(N){X.resolve(N)},function(N){X.reject(N)},X.resolve);
u=X.promise;return O.return(u.then(function(N){if(N)if(N==null?0:N.errorCode){_.QT(Error("Qi`"+N.errorCode),"ERROR");var t,R;((t=y)==null?0:(R=t.commandLifeCycleConfig)==null?0:R.onFailureCommand)&&h.JSC$18055_commandHandler.resolveCommand(y.commandLifeCycleConfig.onFailureCommand)}else if(N==null?0:N.isCancelled){var I,U;((I=y)==null?0:(U=I.commandLifeCycleConfig)==null?0:U.onCancelCommand)&&h.JSC$18055_commandHandler.resolveCommand(y.commandLifeCycleConfig.onCancelCommand)}else{var p,e;((p=y)==
null?0:(e=p.commandLifeCycleConfig)==null?0:e.onSuccessCommand)&&h.JSC$18055_commandHandler.resolveCommand(y.commandLifeCycleConfig.onSuccessCommand)}},function(N){_.QT(N,"ERROR");
var t,R;((t=y)==null?0:(R=t.commandLifeCycleConfig)==null?0:R.onFailureCommand)&&h.JSC$18055_commandHandler.resolveCommand(y.commandLifeCycleConfig.onFailureCommand)}))})};
m1[uN]=[_.OM,N3P];var eXN=function(b,h){this.JSC$18063_commandHandler=b;this.commandAllowlistOverride=h;var y;this.commandAllowlist=(y=this.commandAllowlistOverride)!=null?y:lp};
eXN.prototype.handleResponse=function(b,h,y){var S,F=h==null?void 0:(S=h.config)==null?void 0:S.command;if(!F||this.commandAllowlist.some(function(a){return!!_.c(F,a)})){h=void 0;
y!==void 0&&(h={form:{element:y}});b.onResponseReceivedCommand&&this.JSC$18063_commandHandler.resolveCommand(b.onResponseReceivedCommand,h);b.onResponseReceivedAction&&this.JSC$18063_commandHandler.resolveCommand(b.onResponseReceivedAction,h);b.onResponseReceivedEndpoint&&this.JSC$18063_commandHandler.resolveCommand(b.onResponseReceivedEndpoint,h);b.command&&this.JSC$18063_commandHandler.resolveCommand(b.command,h);if(b.onResponseReceivedCommands)for(y=_.L(b.onResponseReceivedCommands),S=y.next();!S.done;S=
y.next())this.JSC$18063_commandHandler.resolveCommand(S.value,h);if(b.onResponseReceivedActions)for(y=_.L(b.onResponseReceivedActions),S=y.next();!S.done;S=y.next())this.JSC$18063_commandHandler.resolveCommand(S.value,h);if(b.onResponseReceivedEndpoints)for(y=_.L(b.onResponseReceivedEndpoints),S=y.next();!S.done;S=y.next())this.JSC$18063_commandHandler.resolveCommand(S.value,h);if(b.actions)for(b=_.L(b.actions),y=b.next();!y.done;y=b.next())this.JSC$18063_commandHandler.resolveCommand(y.value,h)}};
eXN[uN]=[_.OM,_.XS(nzk)];var CRX=new _.ca("INNERTUBE_TOKEN_SERVICE");var gb2=new _.ca("SCHEDULER_TOKEN");var saX=function(b){this.scheduler=b;b={};this.tokenMap=(b.app={},b.user={},b)};
saX.prototype.handleResponse=function(b,h){if(!h)throw Error("Ri");var y;if(b=(y=b.responseContext)==null?void 0:y.innertubeTokenJar){if(b.appTokens){var S,F,a;y=(S=h.innerTubeRequest.context)==null?void 0:(F=S.request)==null?void 0:(a=F.innertubeTokenJar)==null?void 0:a.appTokens;YSq(this,b.appTokens,this.tokenMap.app,y)}if(b.userTokens){var P,K,n;h=(P=h.innerTubeRequest.context)==null?void 0:(K=P.request)==null?void 0:(n=K.innertubeTokenJar)==null?void 0:n.userTokens;YSq(this,b.userTokens,this.tokenMap.user,
h)}}};
saX.prototype.processContext=function(b){b.request||(b.request={});var h=Object.keys(this.tokenMap.app).length,y=Object.keys(this.tokenMap.user).length;if(h||y)b.request.innertubeTokenJar={},h&&(b.request.innertubeTokenJar.appTokens=[].concat(_.f$(Object.values(this.tokenMap.app).flat()))),y&&(b.request.innertubeTokenJar.userTokens=[].concat(_.f$(Object.values(this.tokenMap.user).flat())))};
var YSq=function(b,h,y,S){h=_.L(h);for(var F=h.next(),a={};!F.done;a={token$jscomp$139:void 0},F=h.next()){a.token$jscomp$139=F.value;if(a.token$jscomp$139.type===void 0)throw new _.Gn("InnerTube token has no type",a.token$jscomp$139);if(a.token$jscomp$139.clearTokens)y[a.token$jscomp$139.type]=[];else if(a.token$jscomp$139.value!==void 0){y[a.token$jscomp$139.type]||(y[a.token$jscomp$139.type]=[]);if(S!==void 0&&S.length){F=_.L(S);for(var P=F.next(),K={};!P.done;K={requestToken:void 0},P=F.next())K.requestToken=
P.value,P=y[a.token$jscomp$139.type].findIndex(function(n){return function(X){return X===n.requestToken||(0,_.lR.equals)(X,n.requestToken)}}(K)),P>-1&&y[a.token$jscomp$139.type].splice(P,1)}y[a.token$jscomp$139.type].push(a.token$jscomp$139);
a.token$jscomp$139.maxAgeSeconds&&Number(a.token$jscomp$139.maxAgeSeconds)>0&&b.scheduler.addLowPriorityJob(function(n){return function(){var X=y[n.token$jscomp$139.type].indexOf(n.token$jscomp$139);X>-1&&y[n.token$jscomp$139.type].splice(X,1)}}(a),Number(a.token$jscomp$139.maxAgeSeconds)*1E3)}else throw new _.Gn("InnerTube token has no value",a.token$jscomp$139);
}};
saX[uN]=[gb2];var T1N=new _.ca("LOCAL_INNERTUBE_ROUTER_TOKEN"),GPd=new _.ca("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var vZ=function(b){this.serviceMap=b};
vZ.prototype.shouldPreferLocalResponse=function(b,h){return(b=kPA(this,b))?b.shouldPreferLocalResponse(h):!1};
vZ.prototype.localInnertubeResponse=function(b,h){var y=this,S;return _.Z(function(F){return(S=kPA(y,b))?F.return(S.localInnertubeResponse(h)):F.return(Promise.reject(Error("Si")))})};
vZ.prototype.canProvideFallbackResponse=function(b,h){return(b=kPA(this,b))?b.canProvideFallbackResponse(h):!1};
vZ.prototype.localFallbackInnertubeResponse=function(b,h){var y=this,S;return _.Z(function(F){return(S=kPA(y,b))?F.return(S.localFallbackInnertubeResponse(h)):F.return(Promise.reject(Error("Si")))})};
var kPA=function(b,h){h=_.W9(h);return h?(b=b.serviceMap[h])?b:null:null};
vZ[uN]=[GPd];var Bf=function(){};
Bf.prototype.shouldPreferLocalResponse=function(){return!1};
Bf.prototype.localInnertubeResponse=function(){return _.Z(function(b){return b.return(Promise.reject(Error("Ti")))})};
Bf.prototype.canProvideFallbackResponse=function(){return!0};
Bf.prototype.localFallbackInnertubeResponse=function(){var b,h,y;return _.Z(function(S){b=uq("CLOSE_POPUP");h={openPopupAction:WvI()};y={actions:[b,h]};return S.return(y)})};var fZk=function(b,h){this.JSC$18112_upliftPromise=b;this.store=h};
_.d=fZk.prototype;_.d.shouldPreferLocalResponse=function(b){var h=b.videoId,y;if(y=h)y=mLU(this.store.getState().entities,b.videoId);return y&&vXN(this.store.getState().entities,h)?UVq(this.store.getState().entities,b.playlistId):!1};
_.d.localInnertubeResponse=function(b){var h=this,y;return _.Z(function(S){return(y=h.getPlayerResponse(b))?S.return(Promise.resolve(y)):S.return(Promise.reject(Error("Ui")))})};
_.d.canProvideFallbackResponse=function(b){return!!b.videoId};
_.d.localFallbackInnertubeResponse=function(b){var h=this,y;return _.Z(function(S){if(S.nextAddress==1)return S.yield(h.JSC$18112_upliftPromise,2);y=h.getPlayerResponse(b);var F;y?F=S.return(Promise.resolve(y)):F=DU(h.store.getState().entities,b.videoId)?S.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.aU(_.Mt("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:s1I()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
S.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.aU(_.Mt("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:g4N()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return F})};
_.d.getPlayerResponse=function(b){return zGF(this.store.getState().entities,b.videoId)};var I8=function(b,h){this.localPlayerService=b;this.localWatchNextService=h};
I8.prototype.shouldPreferLocalResponse=function(b){var h=b.playerRequest;b=b.watchNextRequest;return!!(h&&this.localPlayerService.shouldPreferLocalResponse(h)&&b&&this.localWatchNextService.shouldPreferLocalResponse(b))};
I8.prototype.localInnertubeResponse=function(b){var h=this,y,S,F,a;return _.Z(function(P){if(P.nextAddress==1){y=b.playerRequest;S=b.watchNextRequest;if(!y||!S)throw new _.Gn("Missing streaming request",b);return P.yield(h.localPlayerService.localInnertubeResponse(y),2)}if(P.nextAddress!=3)return F=P.yieldResult,P.yield(h.localWatchNextService.localInnertubeResponse(S),3);a=P.yieldResult;return P.return({playerResponse:F,watchNextResponse:a})})};
I8.prototype.canProvideFallbackResponse=function(b){var h=b.playerRequest;b=b.watchNextRequest;return!!(h&&this.localPlayerService.canProvideFallbackResponse(h)&&b&&this.localWatchNextService.canProvideFallbackResponse(b))};
I8.prototype.localFallbackInnertubeResponse=function(b){var h=this,y,S,F,a;return _.Z(function(P){if(P.nextAddress==1)return y=b.playerRequest,S=b.watchNextRequest,y&&S?P.yield(h.localPlayerService.localFallbackInnertubeResponse(y),2):P.return(Promise.reject(new _.Gn("Missing streaming request",b)));if(P.nextAddress!=3)return F=P.yieldResult,P.yield(h.localWatchNextService.localFallbackInnertubeResponse(S),3);a=P.yieldResult;return P.return({playerResponse:F,watchNextResponse:a})})};var R8=function(b){this.JSC$18122_persistentStorePromiseAccessor=b};
R8.prototype.shouldPreferLocalResponse=function(){return!1};
R8.prototype.localInnertubeResponse=function(){return _.Z(function(b){return b.return(Promise.reject(Error("Vi")))})};
R8.prototype.canProvideFallbackResponse=function(){return!0};
R8.prototype.localFallbackInnertubeResponse=function(){var b=this,h,y;return _.Z(function(S){return S.nextAddress==1?S.yield(b.JSC$18122_persistentStorePromiseAccessor(),2):S.nextAddress!=3?(h=S.yieldResult)?S.yield(h.get("service:guide:fallback"),3):S.return(Promise.reject(Error("Wi"))):(y=S.yieldResult)&&_.de(y)?S.return(ppM(_.de(y))):S.return(Promise.reject(Error("Xi")))})};var Wf=function(){};
Wf.prototype.shouldPreferLocalResponse=function(){return!1};
Wf.prototype.localInnertubeResponse=function(){return _.Z(function(b){return b.return(Promise.reject(Error("Yi")))})};
Wf.prototype.canProvideFallbackResponse=function(){return!0};
Wf.prototype.localFallbackInnertubeResponse=function(){var b,h,y;return _.Z(function(S){b=uq("CLOSE_POPUP");h={openPopupAction:WvI()};y={actions:[b,h]};return S.return(y)})};var cf=function(){this.urlMap=VFY;this.fallbackCommand=_.S1};
cf.prototype.shouldPreferLocalResponse=function(b){return(b=b.url)?!!EbF(this,b):!1};
cf.prototype.localInnertubeResponse=function(b){var h=this,y;return _.Z(function(S){return(y=b.url)?S.return(iDY(b,EbF(h,y))):S.return(Promise.reject(Error("Zi")))})};
cf.prototype.canProvideFallbackResponse=function(){return!0};
cf.prototype.localFallbackInnertubeResponse=function(b){var h=this,y,S,F,a,P,K,n;return _.Z(function(X){y=b.url;if(!y)return X.return(iDY(b,h.fallbackCommand));if(S=EbF(h,y))return X.return(iDY(b,S));F=void 0;a=_.W9(y);a==="/watch"&&(P=_.jh(y,"v"))&&(n=(K=_.jh(y,"list"))!=null?K:void 0,F=_.FF(P,n));F||(F=h.fallbackCommand);return X.return(iDY(b,F))})};
var EbF=function(b,h){if(h)return b.urlMap[_.kj(h)]},iDY=function(b,h){h&&b.parentTrackingParams&&(h.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:b.parentTrackingParams}},h.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:h})};var zf=function(b,h,y){this.JSC$18133_upliftPromise=b;this.store=h;this.JSC$18133_persistentStorePromiseAccessor=y};
zf.prototype.shouldPreferLocalResponse=function(){return!1};
zf.prototype.localInnertubeResponse=function(){return _.Z(function(b){return b.return(Promise.reject(Error("$i")))})};
zf.prototype.canProvideFallbackResponse=function(){return!0};
zf.prototype.localFallbackInnertubeResponse=function(){var b=this;return _.Z(function(h){return h.return(fKA(b))})};
var fKA=function(b){var h,y;return _.Z(function(S){if(S.nextAddress==1)return S.yield(a8(b.JSC$18133_upliftPromise,b.store),2);h=S.yieldResult;y={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[AHM(h)]}}}};return S.return(wBa(b,y))})},wBa=function(b,h){var y,S;
return _.Z(function(F){if(F.nextAddress==1)return F.yield(b.JSC$18133_persistentStorePromiseAccessor(),2);if(F.nextAddress!=3)return y=F.yieldResult,F.yield(j4(y),3);S=F.yieldResult;return F.return({responseContext:{},contents:h,topbar:S})})};var t_=function(b,h,y){this.JSC$18140_upliftPromise=b;this.store=h;this.JSC$18140_persistentStorePromiseAccessor=y};
t_.prototype.shouldPreferLocalResponse=function(b){var h=b.videoId;return h&&mLU(this.store.getState().entities,h)&&vXN(this.store.getState().entities,h)?UVq(this.store.getState().entities,b.playlistId):!1};
t_.prototype.localInnertubeResponse=function(b){var h=this,y,S;return _.Z(function(F){if(F.nextAddress==1)return(y=b.videoId)?F.yield(h.JSC$18140_upliftPromise,2):F.return(Promise.reject(Error("aj")));if(F.nextAddress!=3)return F.yield(lKA(h,b,y),3);S=F.yieldResult;return F.return(qSf(h,S,y))})};
t_.prototype.canProvideFallbackResponse=function(b){return b.videoId?!0:!1};
t_.prototype.localFallbackInnertubeResponse=function(b){var h=this,y,S,F,a;return _.Z(function(P){switch(P.nextAddress){case 1:return(y=b.videoId)?P.yield(h.JSC$18140_upliftPromise,2):P.return(Promise.reject(Error("aj")));case 2:return P.yield(lKA(h,b,y),3);case 3:S=P.yieldResult;if(DU(h.store.getState().entities,y)){P.jumpTo(4);break}return P.yield(a8(h.JSC$18140_upliftPromise,h.store),5);case 5:return F=P.yieldResult,P.return(xzA(S,F));case 4:return mLU(h.store.getState().entities,y)&&vXN(h.store.getState().entities,
y)?P.return(qSf(h,S,y)):(a={title:_.aU(_.Mt("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:s1I()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},P.return(xzA(S,a)))}})};
var lKA=function(b,h,y){var S,F,a,P,K;return _.Z(function(n){if(n.nextAddress==1)return S=h.playlistId,F=_.FF(y,S),n.yield(b.JSC$18140_persistentStorePromiseAccessor(),2);if(n.nextAddress!=3)return a=n.yieldResult,n.yield(j4(a),3);P=n.yieldResult;K={responseContext:{},currentVideoEndpoint:F,topbar:P};return n.return(K)})},qSf=function(b,h,y){if(b=DU(b.store.getState().entities,y)){var S;
y=b.videoEntity;var F,a={title:dR(y.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.j7((S=y.localizedStrings)==null?void 0:S.viewCount),viewCount:_.j7((F=y.localizedStrings)==null?void 0:F.viewCount)}}};y.publishedTimestampMillis&&(a.dateText=_.j7(Oey(new Date(Number(y.publishedTimestampMillis)))));S={videoPrimaryInfoRenderer:a};F=b.videoEntity;b=b.channelEntity;b={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:dR(_.Mt("SHOW_MORE",void 0,"Show more")),
showLessText:dR(_.Mt("SHOW_LESS",void 0,"Show less")),description:F.formattedDescription,owner:{videoOwnerRenderer:{title:dR(b.title),thumbnail:b.avatar}}}};h.contents={twoColumnWatchNextResults:{results:{results:{contents:[S,b]}}}}}return h},xzA=function(b,h){b.contents={singleColumnWatchNextResults:{results:{results:{contents:[AHM(h)]}}}};
return b};var Da=function(b,h,y){this.JSC$18145_upliftPromise=b;this.store=h;this.JSC$18145_persistentStorePromiseAccessor=y};
Da.prototype.shouldPreferLocalResponse=function(){return!1};
Da.prototype.localInnertubeResponse=function(){return _.Z(function(b){return b.return(Promise.reject(Error("bj")))})};
Da.prototype.canProvideFallbackResponse=function(){return!0};
Da.prototype.localFallbackInnertubeResponse=function(){var b=this,h,y,S,F;return _.Z(function(a){switch(a.nextAddress){case 1:return a.yield(b.JSC$18145_persistentStorePromiseAccessor(),2);case 2:return h=a.yieldResult,a.yield(j4(h),3);case 3:return y=a.yieldResult,S={responseContext:{},topbar:y},a.yield(b.JSC$18145_upliftPromise,4);case 4:return a.yield(a8(b.JSC$18145_upliftPromise,b.store),5);case 5:return F=a.yieldResult,S.watchStatus={backgroundPromoRenderer:F},a.return(S)}})};var Qaa,mzq;_.b$=new _.ca("ENDPOINT_MAP");Qaa=new _.ca("WATCH_ENDPOINT_MAP");mzq=new _.ca("REEL_ENDPOINT_MAP");var Y4q=/^[a-zA-Z0-9_\-]{11}$/;var TLj=_.gX(function(){var b,h;return(h=(b=window).matchMedia)==null?void 0:h.call(b,"(prefers-reduced-motion: reduce)").matches});var vbX=_.gX(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 b=_.hj("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");b||(b=_.gB("VIDEO"),_.HL("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
b));return!!(b&&b.canPlayType&&b.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var bq2=XMLHttpRequest.prototype.fetch,h9F=bq2&&bq2.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!nz?!0:!1;var h5=function(b){this.JSC$18156_storeWithEntities=b};
_.z(h5,tK);_.d=h5.prototype;_.d.getApiPaths=function(){return Via};
_.d.getExtension=function(b){return _.c(b,_.wO)||_.c(b,_.cd)||_.c(b,CgM)};
_.d.isNavigationCommand=function(){return!0};
_.d.JSC$14363_getStoreKey=function(b){if((_.r("kevlar_cache_on_ttl_player")||_.r("mweb_enable_shorts_innertube_player_prefetch")||_.r("mweb_use_new_history_manager")||_.r("web_shorts_prefetch_service_enabled"))&&(b=this.getExtension(b))&&b.videoId){var h={videoId:b.videoId};b.playlistId&&(h.playlistId=b.playlistId);b.playerParams&&(h.params=b.playerParams);return _.fx("player",h)}};
_.d.JSC$14356_getClientScreen=function(b){var h;return((h=b.contentPlaybackContext)==null?void 0:h.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.d.JSC$14356_buildRequest=function(b,h,y){if(_.r("enable_interstitial_entity_check")){var S=this.JSC$18156_storeWithEntities;if(h.videoId)for(var F=_.L(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),a=F.next();!a.done;a=F.next()){a=a.value;var P;var K=void 0,n=void 0,X=h.videoId,u=a;(P=S)?(X=_.oU(X+u,"interstitialInteractionStateEntity"),P=(K=(n=_.Mm(P.getState().entities,"interstitialInteractionStateEntity",X))==null?void 0:n.primaryButtonClicked)!=null?K:!1):P=!1;if(P)switch(a){case "CONTENT_CHECK_REQUIRED":h.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":h.racyCheckOk=!0}}}h.videoId&&(b.videoId=h.videoId);h.playlistId&&(b.playlistId=h.playlistId);h.index!==void 0&&(b.playlistIndex=h.index+1);h.playerParams&&(b.params=h.playerParams);"startTimeSeconds"in h&&h.startTimeSeconds&&(_.r("enable_player_request_builder_start_time_floor")?b.startTimeSecs=Math.floor(h.startTimeSeconds):b.startTimeSecs=h.startTimeSeconds);y.contentPlaybackContext&&(b.playbackContext={contentPlaybackContext:y.contentPlaybackContext});y.prefetchPlaybackContext&&
(b.playbackContext=Object.assign({},b.playbackContext,{prefetchPlaybackContext:y.prefetchPlaybackContext}),b.context.request||(b.context.request={}),b.context.request.isPrefetch=!0);b.playbackContext||(b.playbackContext={});S=vbX();b.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!S,supportXhr:h9F};y.overrideMutedAtStart&&(b.overrideMutedAtStart=y.overrideMutedAtStart);b.racyCheckOk=!!h.racyCheckOk;b.contentCheckOk=!!h.contentCheckOk;!_.r("captions_prefs_killswitch")&&(y=(y=_.Wd("yt-player-caption-language-preferences"))?
y:[],y==null?0:y.length)&&(b.captionParams={viewerSelectedCaptionLangs:y})};
_.d.getRequestConfig=function(b){b=this.JSC$14363_getStoreKey(b);var h;b&&(h={storeStrategy:{storeKey:b}});_.r("web_log_player_watch_next_ticks")&&(h=h||{},h.requestTick="ps_s",h.responseTick="ps_r");return h};
h5[uN]=[$7];var y_=function(b,h){this.playerRequestBuilder=b;this.watchNextRequestBuilder=h};
_.z(y_,tK);y_.prototype.getApiPaths=function(){return UxW};
y_.prototype.getExtension=function(b){return _.c(b,_.wO)};
y_.prototype.isNavigationCommand=function(){return!0};
y_.prototype.JSC$14356_buildRequest=function(b,h,y){b.playerRequest={};this.playerRequestBuilder.JSC$14356_buildRequest(b.playerRequest,h,y);if(_.r("web_streaming_watch")||_.r("mweb_streaming_watch"))b.watchNextRequest={},this.watchNextRequestBuilder.JSC$14356_buildRequest(b.watchNextRequest,h,y)};
y_[uN]=[h5,x1];var yWd;_.Sc=new _.ca("SHORTS_CONTROLLER_TOKEN");yWd=new _.ca("SHORTS_STATE_STORE_TOKEN");var FU=function(b,h){var y=_.x$.apply(2,arguments);b=b===void 0?0:b;_.Gn.call(this,h,y);this.errorType=b;Object.setPrototypeOf(this,this.constructor.prototype)};
_.z(FU,_.Gn);var SDY,FnN,a9A,lZY,lG,nmn,$KF,jYE,oTf,KnA,P5a;SDY=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(b){return b+"="}).join("|"));
FnN=RegExp(".*\\?.*playnext=1.*");a9A=function(b,h,y,S,F,a){this.watchEndpointMap=b;this.reelWatchEndpointMap=h;this.innerTubeTransportService=y;this.fetchPbj=S;this.ephemeralStore=F;this.reloadOnPlayerFailure=a===void 0?!0:a};
_.dKq=function(b,h){var y=_.tj("web_pbj_log_warning_rate",0);y=y>0&&Math.random()<y;var S;if((S=_.c(h.commandMetadata,_.ZW))==null||!S.rootVe)return y&&_.vX(Error("gj")),!1;var F;S=(F=_.c(h.commandMetadata,_.ZW))==null?void 0:F.url;if(!S)return y&&_.vX(Error("hj")),!1;if(FnN.test(S))return!0;if(SDY.test(S))return y&&_.vX(Error("ij`"+S)),!1;if(_.c(h,_.wO)){if(!(b.watchEndpointMap.watchNext&&b.watchEndpointMap.player||_.r("kevlar_fetch_initial_data_op_watch_client")))return y&&_.vX(Error("cj")),!1;
b=_.tj("web_pbj_log_warning_rate",0);b=b>0&&Math.random()<b;_.c(h,_.wO)?g5n(h)?h=!0:(b&&_.vX(Error("dj")),h=!1):(b&&_.vX(Error("cj")),h=!1);return h}if(_.c(h,_.cd))return sgj(h);if(_.c(h,_.XI))return!0;b=_.ip(b.innerTubeTransportService,h);!b&&y&&_.QT(Error("jj"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(h)});return b};
lZY=function(b,h,y,S,F,a){h={url:h};if(y==null?0:y.itct)h.parentTrackingParams=y.itct;var P=_.yk(mxW);return _.cy(b.innerTubeTransportService,h,P).then(function(K){(K=K.endpoint)||(K=_.S1);(y==null?0:y.itct)&&K&&!K.trackingParams&&(K.trackingParams=y.itct);var n=tP(K);return lG(b,K,y,S,n,F,a)})};
lG=function(b,h,y,S,F,a,P,K){K=K===void 0?{}:K;if(b.fetchPbj&&!_.dKq(b,h)&&!_.r("force_one_platform")){var n=b.fetchPbj(h),X=_.$p(n.then(function(x){if(!x)throw Error("kj");P(X)||a(h,x);return x}));
return X}var u,O,N={rootVe:(u=_.c(h.commandMetadata,_.ZW))==null?void 0:u.rootVe,url:(O=_.c(h.commandMetadata,_.ZW))==null?void 0:O.url,endpoint:h,page:F};if(_.c(h,_.wO)){var t,R={contentPlaybackContext:_.LW(y,(t=_.c(h.commandMetadata,_.ZW))==null?void 0:t.url,S)},I=_.wS(),U,p=(U=b.watchEndpointMap.player)==null?void 0:U().JSC$14363_getStoreKey(h);U=p!==void 0&&((n=b.ephemeralStore)==null?void 0:n.has(p));(_.r("web_streaming_watch")||_.r("mweb_streaming_watch"))&&window.TextDecoderStream&&!U?(n=BFM(b.innerTubeTransportService,
h,R,function(x){!N.response&&x.content&&(N.response=x.content);!N.playerResponse&&x.player&&(N.playerResponse=x.player);a(h,N)}),p=vq4(h),p.length&&(N.preconnect=p,a(h,N)),jYE(n,I,N).catch(function(x){x instanceof FU&&x.errorType===2&&_.r("web_streaming_watch_fallback")&&$KF(b,h,R,N,a,P,I)})):$KF(b,h,R,N,a,P,I);
return I.promise}if(_.c(h,_.cd)){var e;if(((e=_.c(h,_.cd))==null?void 0:e.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var E=_.wS();_.LnA(_.H9().resolve(_.Sc),h).then(function(x){P5a(b,y,S,F,a,E,x)});
return E.promise}n=_.$p();U={contentPlaybackContext:_.LW(y,(p=_.c(h.commandMetadata,_.ZW))==null?void 0:p.url,S)};(p=b.reelWatchEndpointMap.player)&&(p=p().JSC$14356_getRequest(h,U))&&(n=_.cy(b.innerTubeTransportService,p.innerTubeRequest,p.input,h.clickTrackingParams,p.config));p=_.$p();(K=b.reelWatchEndpointMap.reelItemWatch)&&(K=K().JSC$14356_getRequest(h))&&(p=_.cy(b.innerTubeTransportService,K.innerTubeRequest,K.input,h.clickTrackingParams,K.config));K=_.$p();(u=b.reelWatchEndpointMap.reelWatchSequence)&&
_.c(h,_.cd).sequenceParams&&(U=u().JSC$14356_getRequest(h,U))&&(_.r("web_enable_delay_shorts_sequence_call_forget")?_.cy(b.innerTubeTransportService,U.innerTubeRequest,U.input,h.clickTrackingParams,U.config):K=_.cy(b.innerTubeTransportService,U.innerTubeRequest,U.input,h.clickTrackingParams,U.config));U=_.$p(N);u=_.wS();KnA(h,U,n,p,K,a,P,u);return u.promise}var Y;if(_.c(h,ZrM)&&((Y=_.c(h.commandMetadata,_.ZW))==null?0:Y.url))return n=uLU(_.La(QX().location.href),_.La(_.c(h.commandMetadata,_.ZW).url)).toString(),
lZY(b,n,y,S,a,function(){return!1});
if(_.c(h,_.XI))return a(h,N),_.$p(N);if(_.ip(b.innerTubeTransportService,h)){n=Object.assign({},{tempData:y,disableCache:y.disableCache},K);var w=_.f9(b.innerTubeTransportService,h,n).then(function(x){N.response=x;P(w)||a(h,N);return N});
return w}return _.$p(N)};
_.ZqY=function(b,h,y,S){if(_.c(h,_.wO)||_.c(h,_.cd)&&(_.r("mweb_enable_shorts_innertube_player_prefetch")||_.r("kevlar_enable_shorts_prefetch_in_sequence"))||_.c(h,CgM)&&_.r("web_enable_prefetching_videos_on_home")){var F,a={contentPlaybackContext:_.LW(y,(F=_.c(h.commandMetadata,_.ZW))==null?void 0:F.url,S),prefetchPlaybackContext:kVn(y)},P,K,n;if(((P=_.c(h,_.wO))==null?void 0:(K=P.watchEndpointSupportedPrefetchConfig)==null?void 0:(n=K.prefetchHintConfig)==null?void 0:n.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(y=
b.watchEndpointMap.watchNext)if(a=y().JSC$14356_getRequest(h,a))return Promise.resolve(_.cy(b.innerTubeTransportService,a.innerTubeRequest,a.input,void 0,a.config).then(function(O){return O}))}else if(y=b.watchEndpointMap.player)if(a=y().JSC$14356_getRequest(h,a))return Promise.resolve(_.cy(b.innerTubeTransportService,a.innerTubeRequest,a.input,void 0,a.config).then(function(O){return O}))}else if(_.ip(b.innerTubeTransportService,h)){var X={tempData:y},u=cO7(b.innerTubeTransportService,h);
return u?new Promise(function(O,N){var t,R;return _.Z(function(I){if(I.nextAddress==1)return I.yield(u,2);if(I.nextAddress!=4)return t=I.yieldResult,t.JSC$14363_getStoreKey(h,X)?I.yield(_.f9(b.innerTubeTransportService,h,X),4):(N(new _.Gn("Prefetching request builder with no store key.",h)),I.jumpTo(0));R=I.yieldResult;O(R);_.g3(I)})}):Promise.reject(new _.Gn("Prefetching unregistered request builder.",h))}return Promise.reject(new _.Gn("No request builder available to prefetch endpoint.",h))};
nmn=function(b,h){var y,S,F;if(_.c(h,_.wO)){var a=b.watchEndpointMap.watchNext;a&&(y=a());(b=b.watchEndpointMap.player)&&(S=b())}else if(_.c(h,_.cd))(a=b.reelWatchEndpointMap.reelItemWatch)&&(y=a()),(a=b.reelWatchEndpointMap.player)&&(S=a()),(b=b.reelWatchEndpointMap.reelWatchSequence)&&(F=b());else{a:{b=mgn(h,b.innerTubeTransportService.endpointMap);if(b!==void 0)if(typeof b.then==="function")_.QT(new _.Gn("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",h));else break a;
b=void 0}b&&(y=b)}var P,K,n;return{content:(P=y)==null?void 0:P.JSC$14363_getStoreKey(h),player:(K=S)==null?void 0:K.JSC$14363_getStoreKey(h),reelSequence:(n=F)==null?void 0:n.JSC$14363_getStoreKey(h)}};
$KF=function(b,h,y,S,F,a,P){var K=_.$p(),n=b.watchEndpointMap.player;_.r("web_streaming_player")&&(n=TA(y_));n&&(n=n().JSC$14356_getRequest(h,y))&&(K=_.cy(b.innerTubeTransportService,n.innerTubeRequest,n.input,h.clickTrackingParams,n.config));n=_.$p();var X=b.watchEndpointMap.watchNext;X&&(y=X().JSC$14356_getRequest(h,y))&&(n=_.cy(b.innerTubeTransportService,y.innerTubeRequest,y.input,h.clickTrackingParams,y.config));S=_.$p(S);oTf(b,h,S,K,n,F,a,P)};
jYE=function(b,h,y){var S;return _.Z(function(F){if(F.nextAddress==1)return F.yield(b,2);_.r("web_streaming_watch_delay_200")||_.r("web_streaming_watch_delay_400")?(S=_.r("web_streaming_watch_delay_200")?200:400,setTimeout(function(){h.resolve(y)},S)):h.resolve(y);
_.g3(F)})};
oTf=function(b,h,y,S,F,a,P,K){var n,X,u,O,N;_.Z(function(t){switch(t.nextAddress){case 1:return t.yield(y,2);case 2:n=t.yieldResult;if(P(K.promise))return K.resolve(n),t.return();a(h,n);X=vq4(h);if(!X.length){t.jumpTo(3);break}return t.yield(y,4);case 4:n.preconnect=X,a(h,n);case 3:return _.WE(t,5),t.yield(S,7);case 7:u=t.yieldResult;_.Lz(t,6);break;case 5:return O=_.C$(t),K.reject(O),t.return();case 6:if(u===void 0&&b.reloadOnPlayerFailure)return n.reload=!0,a(h,n),K.resolve(n),t.return();if(P(K.promise))return K.resolve(n),
t.return();n.playerResponse=u;a(h,n);(_.r("web_watch_stop_scheduler_on_player_response")||_.r("mweb_watch_stop_scheduler_on_player_response"))&&Rbo();_.WE(t,8);return t.yield(F,10);case 10:N=t.yieldResult;_.Lz(t,9);break;case 8:_.C$(t);case 9:if(N===void 0)return n.response={responseContext:{}},K.resolve(n),t.return();if(P(K.promise))return K.resolve(n),t.return();n.response=N;a(h,n);K.resolve(n);_.g3(t)}})};
KnA=function(b,h,y,S,F,a,P,K){var n,X,u,O,N,t;_.Z(function(R){switch(R.nextAddress){case 1:return R.yield(h,2);case 2:n=R.yieldResult;if(P(K.promise))return K.resolve(n),R.return();a(b,n);X=vq4(b);if(!X.length){R.jumpTo(3);break}return R.yield(h,4);case 4:n.preconnect=X,a(b,n);case 3:return _.WE(R,5),R.yield(y,7);case 7:u=R.yieldResult;_.Lz(R,6);break;case 5:return O=_.C$(R),K.reject(O),R.return();case 6:if(u===void 0)return n.reload=!0,a(b,n),K.resolve(n),R.return();if(P(K.promise))return K.resolve(n),
R.return();n.playerResponse=u;a(b,n);(_.r("web_shorts_stop_scheduler_on_player_response")||_.r("mweb_shorts_stop_scheduler_on_player_response"))&&Rbo();_.WE(R,8);return R.yield(S,10);case 10:N=R.yieldResult;_.Lz(R,9);break;case 8:_.C$(R);case 9:if(N===void 0)return n.response={responseContext:{}},K.resolve(n),R.return();if(P(K.promise))return K.resolve(n),R.return();n.response=N;a(b,n);_.WE(R,11);return R.yield(F,13);case 13:t=R.yieldResult;_.Lz(R,12);break;case 11:_.C$(R);case 12:if(P(K.promise))return K.resolve(n),
R.return();t&&(n.reelWatchSequenceResponse=t);a(b,n);K.resolve(n);_.g3(R)}})};
P5a=function(b,h,y,S,F,a,P){var K,n,X,u,O,N;_.Z(function(t){if((K=P)==null||!K.replacementEndpoint)return a.reject(),t.return();n=P.replacementEndpoint;(X=_.c(n,_.cd))?(P.sequenceContinuation&&(X.sequenceParams=P.sequenceContinuation),u=_.H9().resolve(_.Sc),O=X.sequenceParams,MGY(u,n)&&delete X.sequenceParams,N=lG(b,n,h,y,S,F,function(){return!1}),N.then(function(R){return _.Z(function(I){if(I.nextAddress==1)return nTf(u,{reelWatchEndpoint:{sequenceParams:O}},R),I.yield(0,2);
a.resolve(R);_.g3(I)})})):a.reject();
_.g3(t)})};
a9A[uN]=[Qaa,mzq,_.DT,_.XS(uMb),_.XS(_.QQ)];var X0A=function(){var b=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return b.sequenceMap}}},Whb=function(b,h,y){var S,F=(S=h.config)==null?void 0:S.sequenceStrategy;
if(!F)return y();b.sequenceMap.has(F.sequenceKey)||b.sequenceMap.set(F.sequenceKey,[]);b=b.sequenceMap.get(F.sequenceKey);switch(F.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return Hqx(b,h,y);case "REQUEST_SEQUENCE_TYPE_REPLACE":return uRA(b,h,y);default:throw new _.Gn("Request could not be sequenced",h);}},Hqx=function(b,h,y){var S,F,a;
return _.Z(function(P){b.length>0?(F=b[b.length-1],S=F.responsePromise.then(function(){return y()})):S=y();
a={request:h,responsePromise:S};b.push(a);Oqa(b,a);return P.return(a.responsePromise)})},uRA=function(b,h,y){y=y();
if(b.length>0)for(var S=_.L(b),F=S.next();!F.done;F=S.next())F.value.responsePromise=y;var a={request:h,responsePromise:y};b.push(a);Oqa(b,a);return Promise.resolve().then(function(){return b.indexOf(a)>0?a.responsePromise.then(function(P){return Object.assign({},P,{sequenceMetaData:{skipProcessing:!0}})}):a.responsePromise})},Oqa=function(b,h){h.responsePromise.then(function(){var y=b.indexOf(h);
y>-1&&b.splice(y,1)})};var NBx=new _.ca("REQUEST_SEQUENCING");var aZ=function(){};
_.z(aZ,tK);aZ.prototype.getApiPaths=function(){return[]};
aZ.prototype.getExtension=function(b){return _.c(b,Xa5)};
aZ.prototype.JSC$14356_buildRequest=function(b,h){b.recaptchaToken=h.recaptchaToken};
aZ.prototype.getApiUrl=function(){return"/das_captcha"};var dz=function(){};
_.z(dz,tK);dz.prototype.getApiPaths=function(){return mY7};
dz.prototype.getExtension=function(b){return _.c(b,q$W)};
dz.prototype.JSC$14356_buildRequest=function(b,h,y){y=y===void 0?{}:y;h.createBackstagePostParams&&(b.createBackstagePostParams=h.createBackstagePostParams);y.comment_text&&(b.commentText=y.comment_text);if(y.attached_video_id)b.videoAttachment={videoId:y.attached_video_id};else if(y.image_poll_options)b.pollAttachmentData={options:y.image_poll_options};else if(y.poll_options)b.pollAttachment={choices:y.poll_options};else if(y.quiz_options)b.quizAttachmentData={options:y.quiz_options};else if(y.image_blob_id)b.imageAttachment=
{encryptedBlobId:y.image_blob_id},y.source_video_id&&(b.imageAttachment.sourceExternalVideoId=y.source_video_id),y.image_preview_coordinates&&(b.imageAttachment.previewCoordinates=JSON.parse(y.image_preview_coordinates));else if(y.images_data)b.imagesAttachment={imagesData:y.images_data};else if(y.clip_external_video_id!==void 0||y.clip_offset_ms!==void 0||y.clip_duration_ms!==void 0){var S,F,a,P,K;b.clipAttachment={externalVideoId:(a=y.clip_external_video_id)!=null?a:"",offsetMs:(P=(S=y.clip_offset_ms)==
null?void 0:S.toString())!=null?P:"",durationMs:(K=(F=y.clip_duration_ms)==null?void 0:F.toString())!=null?K:""}}else y.shared_post_id&&(b.sharedPostAttachment={postId:y.shared_post_id});y.tagged_video_id&&(b.postCreationData={taggedVideoId:y.tagged_video_id});y.access_restrictions&&(typeof y.access_restrictions==="number"&&(h=y.access_restrictions,b.accessRestrictions={restriction:h!==1&&h===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof y.access_restrictions==="string"&&
(b.accessRestrictionsParams=y.access_restrictions));y.scheduled_publish_time_sec&&(b.scheduledPublishTimeSec=y.scheduled_publish_time_sec.toString())};var jc=function(){};
_.z(jc,tK);jc.prototype.getApiPaths=function(){return a07};
jc.prototype.getExtension=function(b){return _.c(b,wjw)};
jc.prototype.JSC$14356_buildRequest=function(b,h,y){y=y===void 0?{}:y;h.decorateMessageParams&&(b.params=h.decorateMessageParams);y.text&&(b.text=y.text)};var $A=function(){};
_.z($A,tK);$A.prototype.getApiPaths=function(){return zx5};
$A.prototype.getExtension=function(b){return _.c(b,x8W)};
$A.prototype.JSC$14356_buildRequest=function(b,h,y){y=y===void 0?{}:y;y.video_id&&(b.videoId=y.video_id)};var LL=function(){};
_.z(LL,tK);LL.prototype.getApiPaths=function(){return ACe};
LL.prototype.getExtension=function(b){return _.c(b,_.KI)};
LL.prototype.JSC$14356_buildRequest=function(b,h,y){y.suggestions_query&&(b.input=y.suggestions_query)};var Pz=function(){};
_.z(Pz,tK);Pz.prototype.getApiPaths=function(){return PQG};
Pz.prototype.getExtension=function(b){return _.c(b,QGb)};
Pz.prototype.JSC$14356_buildRequest=function(b,h,y){y.comment_text!==void 0&&(b.commentText=y.comment_text);y.scheduled_publish_time_sec&&(b.scheduledPublishTimeSec=y.scheduled_publish_time_sec.toString());b.updateBackstagePostParams=h.updateBackstagePostParams};var KL=function(){};
_.z(KL,tK);KL.prototype.getApiPaths=function(){return mo};
KL.prototype.getExtension=function(b){return _.c(b,_.sk)};
KL.prototype.JSC$14356_buildRequest=function(b,h,y){y.formData&&(b.formData=y.formData);h.token?b.continuation=h.token:h.continuationTokenKey&&(y=_.hP().getState(),h=_.Mm(y.entities,"continuationTokenEntity",h.continuationTokenKey))&&(b.continuation=String(h.continuationToken))};
var tGA=function(){};
_.z(tGA,tK);_.d=tGA.prototype;_.d.getApiPaths=function(){return mo};
_.d.getExtension=function(b){return _.c(b,_.O0)};
_.d.isNavigationCommand=function(){return!0};
_.d.JSC$14363_getStoreKey=function(b){if((b=this.getExtension(b))&&b.browseId){var h={browseId:b.browseId};b.browseEndpointContextSupportedConfigs&&(h.browseEndpointContextSupportedConfigs=JSON.stringify(b.browseEndpointContextSupportedConfigs));b.params&&(h.params=b.params);b.query&&(h.query=b.query);return _.fx("browse",h)}};
_.d.JSC$14356_buildRequest=function(b,h,y){h.browseId&&(b.browseId=h.browseId);h.params&&(b.params=h.params);h.query&&(b.query=h.query);y.formData?b.formData=y.formData:h.formData&&(b.formData=h.formData);h.browseId==="FEsubscriptions"&&_.HT().getFlag(155)&&(b.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");h.browseId==="SPaccount_playback"&&(y=_.HT(),b.formData||(b.formData={}),b.formData.accountSettingsFormData={flagCaptionsDefaultOff:y.getFlag(65),flagAutoCaptionsDefaultOn:y.getFlag(66),
flagDisableInlinePreview:y.getFlag(186),flagAudioDescriptionDefaultOn:y.getFlag(198)});if(h.browseId==="FEwhat_to_watch"){y=_.HT();var S=y.getFlag(196);y.getFlag(197)&&(b.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:S}}})}h.browseId==="FEwhat_to_watch"&&(h=_.HT().getFlag(186),b.inlineSettingStatus=h?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.d.getRequestConfig=function(b,h){h=h===void 0?{}:h;var y={};if(b=this.JSC$14363_getStoreKey(b,h))y.storeStrategy={storeKey:b,disableCache:h.disableCache};_.r("web_log_browse_ticks_ks")||(y.requestTick="br_s",y.responseTick="br_r");return y};var ZM=function(){};
_.z(ZM,tK);ZM.prototype.getApiPaths=function(){return fio};
ZM.prototype.getExtension=function(b){return _.c(b,zKa)};
ZM.prototype.JSC$14356_buildRequest=function(b,h,y){b.legacyYoutubeChannelUsername=y.legacyYouTubeChannelUsername||"";b.legacyYoutubeChannelPassword=y.legacyYouTubeChannelPassword||""};var oZ=function(){};
_.z(oZ,tK);oZ.prototype.getApiPaths=function(){return vIa};
oZ.prototype.getExtension=function(b){return _.c(b,Fba)};
oZ.prototype.JSC$14356_buildRequest=function(b,h,y){y.recaptcha_response_token&&(b.recaptchaResponseToken=y.recaptcha_response_token);y.channel_id&&(b.channelId=y.channel_id)};var MF=function(){};
_.z(MF,tK);MF.prototype.getApiPaths=function(){return KZ7};
MF.prototype.getExtension=function(b){return _.c(b,PYe)};
MF.prototype.JSC$14356_buildRequest=function(b,h,y){h.externalChannelId&&(b.externalChannelId=h.externalChannelId);y.handle&&(b.handleUpdate={handle:y.handle},h.handleEditSource&&(b.handleUpdate.handleEditSource=h.handleEditSource))};var nL=function(){};
_.z(nL,tK);nL.prototype.getApiPaths=function(){return nM7};
nL.prototype.getExtension=function(b){return _.c(b,pHG)};
nL.prototype.JSC$14356_buildRequest=function(b,h,y){h.request&&(b.channelId=h.request.channelId);var S;if(y==null?0:(S=y.uploadDefaults)==null?0:S.emojiReactionSet)b.uploadDefaultsRequest||(b.uploadDefaultsRequest={}),b.uploadDefaultsRequest.emojiReactionSet=y.uploadDefaults.emojiReactionSet};var XU=function(){};
_.z(XU,tK);XU.prototype.getApiPaths=function(){return u1G};
XU.prototype.getExtension=function(b){return _.c(b,a$P)};
XU.prototype.JSC$14356_buildRequest=function(b,h,y){h.externalChannelId&&(b.externalChannelId=h.externalChannelId);h.channelHandleEntityKey&&(b.channelHandleEntityKey=h.channelHandleEntityKey);h.handleEditSource&&(b.handleEditSource=h.handleEditSource);y.handle?b.handle=y.handle:y.name&&(b.name=y.name)};var Hz=function(){};
_.z(Hz,tK);Hz.prototype.getApiPaths=function(){return qX5};
Hz.prototype.getExtension=function(b){return _.c(b,Iwo)};
Hz.prototype.JSC$14356_buildRequest=function(b,h){h.actions?b.actions=h.actions:h.action&&(b.actions=[h.action])};var u$=function(){};
_.z(u$,tK);u$.prototype.getApiPaths=function(){return xYa};
u$.prototype.getExtension=function(b){return _.c(b,_.sk)};
u$.prototype.JSC$14356_buildRequest=function(b,h){h.token&&(b.continuation=h.token)};var OJ=function(){};
_.z(OJ,tK);OJ.prototype.getApiPaths=function(){return cC5};
OJ.prototype.getExtension=function(b){return _.c(b,_.sk)};
OJ.prototype.JSC$14356_buildRequest=function(b,h){b.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";h.token&&(b.fetchCommentsParams={continuation:h.token})};var NF=function(){};
_.z(NF,tK);NF.prototype.getApiPaths=function(){return hx7};
NF.prototype.getExtension=function(b){return _.c(b,D1M)};
NF.prototype.JSC$14356_buildRequest=function(b,h,y){y=y===void 0?{}:y;h.createReplyParams&&(b.createReplyParams=h.createReplyParams);h.commentText&&(b.commentText=_.vi(h.commentText));y.comment_text&&(b.commentText=y.comment_text);y.image_blob_id&&(b.imageAttachment={encryptedBlobId:y.image_blob_id});y.botguard_response&&(b.botguardResponse=y.botguard_response)};
_.tm.Object.defineProperties(NF.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var t5=function(){};
_.z(t5,tK);t5.prototype.getApiPaths=function(){return yCa};
t5.prototype.getExtension=function(b){return _.c(b,_.z47)};
t5.prototype.JSC$14356_buildRequest=function(b,h,y){y=y===void 0?{}:y;h.createCommentParams&&(b.createCommentParams=h.createCommentParams);h.commentText&&(b.commentText=_.vi(h.commentText));h.videoPositionMention&&(b.videoPositionMention=h.videoPositionMention);h.sources&&(b.sources=h.sources);y.comment_text&&(b.commentText=y.comment_text);y.attached_video_id?b.videoAttachment={videoId:y.attached_video_id}:y.poll_options?b.pollAttachment={choices:y.poll_options}:y.image_blob_id?b.imageAttachment=
{encryptedBlobId:y.image_blob_id}:y.shared_post_id&&(b.sharedPostAttachment={postId:y.shared_post_id});y.access_restrictions&&typeof y.access_restrictions==="number"&&(h=y.access_restrictions,b.accessRestrictions={restriction:h!==1&&h===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});y.botguard_response&&(b.botguardResponse=y.botguard_response)};
_.tm.Object.defineProperties(t5.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var rz=function(){};
_.z(rz,tK);rz.prototype.getApiPaths=function(){return ZXa};
rz.prototype.getExtension=function(b){return _.c(b,W08)};
rz.prototype.JSC$14356_buildRequest=function(b,h,y){h.commentText&&(b.replyText=_.vi(h.commentText));y.comment_text&&(b.replyText=y.comment_text);b.updateReplyParams=h.updateReplyParams};
_.tm.Object.defineProperties(rz.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var cz=function(){};
_.z(cz,tK);cz.prototype.getApiPaths=function(){return oMa};
cz.prototype.getExtension=function(b){return _.c(b,BaP)};
cz.prototype.JSC$14356_buildRequest=function(b,h,y){h.commentText&&(b.commentText=_.vi(h.commentText));y.comment_text&&(b.commentText=y.comment_text);b.updateCommentParams=h.updateCommentParams};
_.tm.Object.defineProperties(cz.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var RZ=function(){};
_.z(RZ,tK);RZ.prototype.getApiPaths=function(){return Mqw};
RZ.prototype.getExtension=function(b){return _.c(b,B$o)};
RZ.prototype.JSC$14356_buildRequest=function(b,h){h.settings&&(b.settings=h.settings)};var zC=function(){};
_.z(zC,tK);zC.prototype.getApiPaths=function(){return X8W};
zC.prototype.getExtension=function(b){return _.c(b,dEW)};
zC.prototype.JSC$14356_buildRequest=function(b,h){h.channelCreationToken&&(b.channelCreationToken=h.channelCreationToken);h.source&&(b.source=h.source)};var DM=function(){};
_.z(DM,tK);DM.prototype.getApiPaths=function(){return b1a};
DM.prototype.getExtension=function(b){return _.c(b,Lb7)};
DM.prototype.JSC$14356_buildRequest=function(b,h,y){y=y===void 0?{}:y;if(y.name&&(y.given_name||y.family_name))b=new _.Gn("channel creation cannot set both GAIA and YouTube names",h),_.QT(b);else{if(h.zeroStepChannelCreationParams){if(!y.comment_text){b=new _.Gn("zero_step_create_comment_params but no zero_step_texts",h);_.QT(b);return}b.zeroStepChannelCreationParams=h.zeroStepChannelCreationParams;b.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(b.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
y.comment_text,y.botguard_response&&(b.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=y.botguard_response))}b.channelCreationToken=h.channelCreationToken;y.given_name&&(b.givenName=y.given_name);y.family_name&&(b.familyName=y.family_name);h.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(b.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(y.name||y.handle||y.avatar_url||y.encryptedBlobId||y.isNameChanged!==void 0||y.isHandleChanged!==void 0||y.isDefaultProfilePhoto!==
void 0||y.obakeImageSource)b.overrideChannelCreationParams={},y.name&&(b.overrideChannelCreationParams.name=y.name),y.handle&&(b.overrideChannelCreationParams.handle=y.handle),y.avatar_url&&(b.overrideChannelCreationParams.avatarUrl=y.avatar_url),y.encryptedBlobId&&(b.overrideChannelCreationParams.blobEncryptionId=y.encryptedBlobId),y.enableIdentityForAllChannelCreationDialog&&(y.encryptedBlobId?b.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
y.isDefaultProfilePhoto!==void 0&&(b.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=y.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),y.isNameChanged!==void 0&&(b.overrideChannelCreationParams.identityForAllChannelCreationNameTag=y.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),y.isHandleChanged!==
void 0&&(b.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=y.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),y.obakeImageSource&&(b.overrideChannelCreationParams.obakeImageSourceType=y.obakeImageSource))}};var IZ=function(){};
_.z(IZ,tK);IZ.prototype.getApiPaths=function(b){return(b=this.getExtension(b))&&b.status==="DISLIKE"?LC7:b&&b.status==="INDIFFERENT"?l0a:Cl8};
IZ.prototype.getExtension=function(b){return _.c(b,_.$a)};
IZ.prototype.JSC$14356_buildRequest=function(b,h){h.target&&(b.target=h.target);if(h=this.getParams(h))b.params=h};
IZ.prototype.getParams=function(b){switch(b==null?void 0:b.status){case "DISLIKE":return b.dislikeParams;case "INDIFFERENT":return b.removeLikeParams;default:return b==null?void 0:b.likeParams}};var Bz=function(){};
_.z(Bz,tK);Bz.prototype.getApiPaths=function(){return FZ8};
Bz.prototype.getExtension=function(b){return _.c(b,Cu7)};
Bz.prototype.JSC$14356_buildRequest=function(b,h){h.settingItemId&&(b.settingItemId=h.settingItemId);h.stringValue!=null&&h.stringValue!==void 0?b.newValue={stringValue:h.stringValue}:h.intValue?b.newValue={intValue:h.intValue}:h.boolValue!==null&&h.boolValue!==void 0?b.newValue={boolValue:h.boolValue}:(b=new _.Gn("Unknown value type for SetSettingEndpoint.",h),_.QT(b))};var Wz=function(){};
_.z(Wz,tK);Wz.prototype.getApiPaths=function(){return j9N};
Wz.prototype.getExtension=function(b){return _.c(b,v9W)||void 0};
Wz.prototype.JSC$14356_buildRequest=function(b,h,y){y=y===void 0?{}:y;h.channelIds&&(b.channelIds=h.channelIds);h.siloName&&(b.siloName=h.siloName);h.params&&(b.params=h.params);y.botguardResponse&&(b.botguardResponse=y.botguardResponse);y.feature&&(b.clientFeature=y.feature)};
_.tm.Object.defineProperties(Wz.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var A5=function(){};
_.z(A5,tK);A5.prototype.getApiPaths=function(){return LZa};
A5.prototype.getExtension=function(b){return _.c(b,g98)||void 0};
A5.prototype.JSC$14356_buildRequest=function(b,h){h.channelIds&&(b.channelIds=h.channelIds);h.siloName&&(b.siloName=h.siloName);h.params&&(b.params=h.params)};
_.tm.Object.defineProperties(A5.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var UJ=function(b){this.shareClientParamsProvider=b};
_.z(UJ,tK);UJ.prototype.getApiPaths=function(){return gK4};
UJ.prototype.getExtension=function(b){return _.c(b,LxP)||_.c(b,_.Pgo)||_.c(b,$bb)};
UJ.prototype.JSC$14356_buildRequest=function(b,h){h.serializedShareEntity&&(b.serializedSharedEntity=h.serializedShareEntity);if(h.clientParamIdentifier){var y;if((y=this.shareClientParamsProvider)==null?0:y.clientParams.has(h.clientParamIdentifier)){y=this.shareClientParamsProvider;h=h.clientParamIdentifier;var S=y.clientParams.get(h);S&&y.clientParams.delete(h);b.clientParams=S}}};
UJ[uN]=[xAX];var pL=function(){};
_.z(pL,tK);pL.prototype.getApiPaths=function(){return VU5};
pL.prototype.getExtension=function(b){return _.c(b,CtW)};
pL.prototype.JSC$14356_buildRequest=function(b,h){h.params&&(b.params=h.params)};var J5=function(){};
_.z(J5,tK);J5.prototype.getApiPaths=function(){return Pla};
J5.prototype.getExtension=function(b){return _.c(b,pIW)};
J5.prototype.JSC$14356_buildRequest=function(b,h){h.dismissal&&(b.items=[h.dismissal])};
_.tm.Object.defineProperties(J5.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ec=function(){};
_.z(ec,tK);ec.prototype.getApiPaths=function(){return JCa};
ec.prototype.getExtension=function(b){return _.c(b,_.s9)||void 0};
ec.prototype.JSC$14356_buildRequest=function(b,h,y){b.feedbackTokens=[];h.feedbackToken&&b.feedbackTokens.push(h.feedbackToken);if(h=h.cpn||y.cpn)b.feedbackContext={cpn:h};b.isFeedbackTokenUnencrypted=!!y.is_feedback_token_unencrypted;b.shouldMerge=!1;y.extra_feedback_tokens&&(b.shouldMerge=!0,b.feedbackTokens=b.feedbackTokens.concat(y.extra_feedback_tokens))};
_.tm.Object.defineProperties(ec.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var CL=function(){};
_.z(CL,tK);CL.prototype.getApiPaths=function(){return JCa};
CL.prototype.getExtension=function(b){return _.c(b,_.KI)};
CL.prototype.JSC$14356_buildRequest=function(b,h,y){y.feedback_tokens&&(b.feedbackTokens=y.feedback_tokens,b.shouldMerge=!0)};
_.tm.Object.defineProperties(CL.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var gz=function(){};
_.z(gz,tK);gz.prototype.getApiPaths=function(){return JCa};
gz.prototype.getExtension=function(b){return _.c(b,SdI)};
gz.prototype.JSC$14356_buildRequest=function(b,h){h.undoToken&&(b.feedbackTokens=[h.undoToken]);h.isUndoTokenUnencrypted&&(b.isFeedbackTokenUnencrypted=h.isUndoTokenUnencrypted)};
_.tm.Object.defineProperties(gz.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var sJ=function(){};
_.z(sJ,tK);sJ.prototype.getApiPaths=function(){return OXW};
sJ.prototype.getExtension=function(b){return _.c(b,Ws5)};
sJ.prototype.JSC$14356_buildRequest=function(b,h){h.nextEndpoint&&_.c(h.nextEndpoint,_.jH)?b.nextEndpoint={urlEndpoint:_.c(h.nextEndpoint,_.jH)}:h.nextEndpoint&&_.c(h.nextEndpoint,_.wO)&&(b.nextEndpoint={watchEndpoint:_.c(h.nextEndpoint,_.wO)});h.setRacy&&(b.setRacy=h.setRacy);h.setControvercy&&(b.setControvercy=h.setControvercy)};var fL=function(b){this.JSC$18358_storeWithEntities=b};
_.z(fL,tK);fL.prototype.getApiPaths=function(){return Z1W};
fL.prototype.getExtension=function(b){return _.c(b,SpW)};
fL.prototype.JSC$14356_buildRequest=function(b,h){h.flowId&&(b.flowId=h.flowId);h.targetId&&(b.targetId=h.targetId);h.continuation&&(b.continuation=h.continuation);var y=h.flowStateEntityKey;if(h.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&y&&this.JSC$18358_storeWithEntities){var S;if(h=(S=this.JSC$18358_storeWithEntities.getState())==null?void 0:S.entities)if(S=_.Pi(y).entityType,S=_.Mm(h,S,y))b.flowState=S,b.flowStateEntityKey=y}};
_.tm.Object.defineProperties(fL.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
fL[uN]=[$7];var rWY=function(){};
_.z(rWY,tK);_.d=rWY.prototype;_.d.getApiPaths=function(){return p87};
_.d.JSC$14363_getStoreKey=function(){return _.fx("guide")};
_.d.getRequestConfig=function(){var b=this.JSC$14363_getStoreKey(),h;b&&(h={storeStrategy:{storeKey:b}});return h};
_.d.isNavigationCommand=function(){return!0};
_.d.getExtension=function(b){return _.c(b,_.KI)};
_.d.JSC$14356_buildRequest=function(b){b.fetchLiveState=!0};var wz=function(){};
_.z(wz,tK);wz.prototype.getApiPaths=function(){return wQG};
wz.prototype.getExtension=function(b){return _.c(b,rKG)};
wz.prototype.JSC$14356_buildRequest=function(){};var l$=function(){};
_.z(l$,tK);l$.prototype.getApiPaths=function(){return lib};
l$.prototype.getExtension=function(b){return _.c(b,cKw)};
l$.prototype.JSC$14356_buildRequest=function(){};var qF=function(){};
_.z(qF,tK);qF.prototype.getApiPaths=function(){return kBa};
qF.prototype.getExtension=function(b){return _.c(b,_.sk)};
qF.prototype.JSC$14356_buildRequest=function(b,h){h.token&&(b.continuation=h.token);var y,S;b==null||(y=b.context)==null||(S=y.user)==null||delete S.onBehalfOfUser};
qF.prototype.getRequestConfig=function(b){var h={},y;if(((y=this.getExtension(b))==null?void 0:y.sessionIndex)!==void 0){var S;h={authStrategy:{sessionIndex:(S=this.getExtension(b))==null?void 0:S.sessionIndex}}}return h};var xA=function(){};
_.z(xA,tK);xA.prototype.JSC$14356_getRequest=function(b){var h=this.getExtension(b),y=b="";if(h==null?0:h.popup)b="true";if(h==null?0:h.disableSignout)y="true";h={};return{input:"/getAccountSwitcherEndpoint",requestShell:iX("/getAccountSwitcherEndpoint","GET",(h["X-YouTube-Delegation-Context"]=_.QC("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),h["X-YouTube-Account-Switcher-Popup"]=b,h["X-YouTube-Account-Switcher-Disable-Signout"]=y,h)),innerTubeRequest:{}}};
xA.prototype.getApiPaths=function(){return[]};
xA.prototype.getExtension=function(b){return _.c(b,_.K6n)};
xA.prototype.JSC$14356_buildRequest=function(){};var Q_=function(){};
_.z(Q_,tK);Q_.prototype.JSC$14356_getRequest=function(b){var h="/cross_account_channel_transfer";(b=this.getExtension(b))&&(h=yLr(h,{target_session:b.targetSessionIndex,source_rapt:b.sourceRapt,rapt:b.targetRapt}));return{input:h,requestShell:iX(h,"GET"),innerTubeRequest:{}}};
Q_.prototype.getApiPaths=function(){return[]};
Q_.prototype.getExtension=function(b){return _.c(b,rqb)};
Q_.prototype.JSC$14356_buildRequest=function(){};var m4=function(){};
_.z(m4,tK);m4.prototype.getApiPaths=function(){return oIo};
m4.prototype.isNavigationCommand=function(){return!0};
m4.prototype.getExtension=function(b){return _.c(b,_.KI)};
m4.prototype.JSC$14356_buildRequest=function(b){var h=_.HT().get("gsml","");h&&(b.safetyModeLockerObfuscatedGaiaId=h);b.userInterfaceTheme=_.Vk(!0);_.E0()?b.deviceTheme="DEVICE_THEME_SELECTED":_.nI5()?b.deviceTheme="DEVICE_THEME_SUPPORTED":b.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var vz=function(){};
_.z(vz,tK);vz.prototype.getApiPaths=function(){return kBa};
vz.prototype.getExtension=function(b){return _.c(b,cqo)};
vz.prototype.JSC$14356_buildRequest=function(b,h){if(h&&h.requestType&&(b.requestType=h.requestType,h.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||h.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var y=h.nextUrl;y&&(_.Fyn(y)||Ml(y))&&(b.nextNavendpoint={urlEndpoint:{url:y}})}h&&h.channelSwitcherQuery&&(b.channelSwitcherQuery=h.channelSwitcherQuery);h&&h.triggerChannelCreation&&(b.triggerChannelCreation=h.triggerChannelCreation);var S;if(h==null?0:(S=h.contentOwnerConfig)==
null?0:S.externalContentOwnerId)b.contentOwnerConfig=h.contentOwnerConfig;b.callCircumstance=h&&h.requestType&&h.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var F,a;h=b==null?void 0:(F=b.context)==null?void 0:(a=F.user)==null?void 0:a.onBehalfOfUser;if(h!==void 0){b.obfuscatedSelectedGaiaId=h;var P,K;b==null||(P=b.context)==null||(K=P.user)==null||delete K.onBehalfOfUser}var n,X;if(F=b==null?void 0:(n=b.context)==null?void 0:(X=n.user)==null?
void 0:X.serializedDelegationContext)b.selectedSerializedDelegationContext=F};var br=function(){};
_.z(br,tK);br.prototype.getApiPaths=function(){return Ewa};
br.prototype.getExtension=function(b){return _.c(b,Kxe)};
br.prototype.JSC$14356_buildRequest=function(b,h){h.params&&(b.params=h.params)};var hO=function(){};
_.z(hO,tK);hO.prototype.getApiPaths=function(){return vww};
hO.prototype.getExtension=function(b){return _.c(b,_.r0W)};
hO.prototype.JSC$14356_buildRequest=function(b,h){if(h=h.createBroadcastRequest)b.useMasks=h.useMasks,b.broadcastType=h.broadcastType,b.broadcastSource=h.broadcastSource,b.broadcastMetadata=h.broadcastMetadata,b.broadcastMetadataMask=h.broadcastMetadataMask,b.videoMetadata=h.videoMetadata,b.videoMetadataMask=h.videoMetadataMask,b.liveChatSettingsUpdate=h.liveChatSettingsUpdate,b.liveChatSettingsUpdateMask=h.liveChatSettingsUpdateMask,b.cloneVideoId=h.cloneVideoId,b.cloneWithOverrides=h.cloneWithOverrides,
b.targetEntity=h.targetEntity,b.scheduledRedirectMetadata=h.scheduledRedirectMetadata};var yr=function(){};
_.z(yr,tK);yr.prototype.getApiPaths=function(){return She};
yr.prototype.getExtension=function(b){return _.c(b,Mgw)};
yr.prototype.JSC$14356_buildRequest=function(b,h,y){y=y===void 0?{}:y;h.params&&(b.params=h.params);y.questionText&&(b.questionText=y.questionText);y.optionText&&y.optionText.length>0&&(b.optionText=y.optionText)};var S$=function(){};
_.z(S$,tK);S$.prototype.getApiPaths=function(){return dxP};
S$.prototype.getExtension=function(b){return _.c(b,Zja)};
S$.prototype.JSC$14356_buildRequest=function(b,h){h.params&&(b.params=h.params)};var Fz=function(){};
_.z(Fz,tK);Fz.prototype.getApiPaths=function(){return uLW};
Fz.prototype.getExtension=function(b){return _.c(b,$ua)};
Fz.prototype.JSC$14356_buildRequest=function(b,h){h.params&&(b.params=h.params)};var a5=function(){};
_.z(a5,tK);a5.prototype.getApiPaths=function(){return Nn8};
a5.prototype.getExtension=function(b){return _.c(b,LJw)};
a5.prototype.JSC$14356_buildRequest=function(b,h,y){h.params&&(b.params=h.params);h.continuation&&(b.continuation=h.continuation);y.currentPlayerState&&y.currentPlayerState.playerOffsetMs&&(b.currentPlayerState={playerOffsetMs:y.currentPlayerState.playerOffsetMs.toString()})};var dF=function(){};
_.z(dF,tK);dF.prototype.getApiPaths=function(){return ti5};
dF.prototype.getExtension=function(b){return _.c(b,jka)};
dF.prototype.JSC$14356_buildRequest=function(b,h,y){h.params&&(b.params=h.params);y.continuation&&(b.continuation=y.continuation);"hidden"in y&&(b.webClientInfo={isDocumentHidden:y.hidden});y.isInvalidationTimeoutRequest&&(b.isInvalidationTimeoutRequest=y.isInvalidationTimeoutRequest);y.invalidationPayload&&(h=duo(_.h8(nn(y.invalidationPayload))),b.invalidationPayloadLastPublishAtUsec=YY(h,2));y.reloadActionPanel&&(b.reloadActionPanel=y.reloadActionPanel);y.fullReload&&(b.fullReload=y.fullReload);
y.currentPlayerState&&(b.currentPlayerState=y.currentPlayerState)};var j$=function(){};
_.z(j$,tK);j$.prototype.getApiPaths=function(){return gIW};
j$.prototype.getExtension=function(b){return _.c(b,oaM)};
j$.prototype.JSC$14356_buildRequest=function(b,h){b.params=h.params};var $s=function(){};
_.z($s,tK);$s.prototype.getApiPaths=function(){return O18};
$s.prototype.getExtension=function(b){return _.c(b,I45)};
$s.prototype.JSC$14356_buildRequest=function(b,h){h.params&&(b.params=h.params)};var L_=function(){};
_.z(L_,tK);L_.prototype.getApiPaths=function(){return rC5};
L_.prototype.getExtension=function(b){return _.c(b,Bc8)};
L_.prototype.JSC$14356_buildRequest=function(b,h){h.params&&(b.params=h.params)};var Pk=function(){};
_.z(Pk,tK);Pk.prototype.getApiPaths=function(){return siG};
Pk.prototype.getExtension=function(b){return _.c(b,naW)};
Pk.prototype.JSC$14356_buildRequest=function(b,h){h.params&&(b.params=h.params)};var K_=function(){};
_.z(K_,tK);K_.prototype.getApiPaths=function(){return TnP};
K_.prototype.getExtension=function(b){return _.c(b,XAw)};
K_.prototype.JSC$14356_buildRequest=function(b,h){h.params&&(b.params=h.params)};var ZH=function(){};
_.z(ZH,tK);ZH.prototype.getApiPaths=function(){return qh5};
ZH.prototype.getExtension=function(b){return _.c(b,MSw)};
ZH.prototype.JSC$14356_buildRequest=function(b,h){h.params&&(b.params=h.params)};var o5=function(){};
_.z(o5,tK);o5.prototype.getApiPaths=function(){return yaW};
o5.prototype.getExtension=function(b){return _.c(b,_.Hj8)};
o5.prototype.JSC$14356_buildRequest=function(b,h,y){y=y===void 0?{}:y;h.params&&(b.params=h.params);y.client_message_id&&(b.clientMessageId=y.client_message_id);y.recaptcha_token&&(b.recaptchaToken=y.recaptcha_token);y.rich_message&&y.rich_message.text_segments?(h=y.rich_message.text_segments.map(function(S){var F={};S.text&&(F.text=S.text);S.emoji_id&&(F.emojiId=S.emoji_id);return F}),b.richMessage={textSegments:h}):y.message&&(b.message=y.message);
y.currentPlayerState&&(b.currentPlayerState=y.currentPlayerState)};var Mg=function(){};
_.z(Mg,tK);Mg.prototype.getApiPaths=function(){return SHP};
Mg.prototype.getExtension=function(b){return _.c(b,uIa)};
Mg.prototype.JSC$14356_buildRequest=function(b,h){h.params&&(b.params=h.params)};var n_=function(){};
_.z(n_,tK);n_.prototype.getApiPaths=function(){return $jb};
n_.prototype.getExtension=function(b){return _.c(b,N25)};
n_.prototype.JSC$14356_buildRequest=function(b,h,y){h.isUserInitiated&&(b.isUserInitiated=h.isUserInitiated);h.initiationSource&&(b.initiationSource=h.initiationSource);y.locationInfo&&(b.context.client.locationInfo=y.locationInfo)};var Xz=function(){};
_.z(Xz,tK);Xz.prototype.getApiPaths=function(){return YhP};
Xz.prototype.getExtension=function(b){return _.c(b,c0a)};
Xz.prototype.JSC$14356_buildRequest=function(b,h,y){h.metadataUpdateRequest&&(h=h.metadataUpdateRequest,b.encryptedVideoId=h.encryptedVideoId,h.liveChat&&(h=h.liveChat,b.liveChat||(b.liveChat={}),h.performAsExternalChannelId&&(b.liveChat.performAsExternalChannelId=h.performAsExternalChannelId),h.source&&(b.liveChat.source=h.source)));var S;if(y==null?0:(S=y.liveChat)==null?0:S.liveChatSettings)b.liveChat||(b.liveChat={}),y=y.liveChat.liveChatSettings,b.liveChat.newLiveChatSettings=y,b.liveChat.newLiveChatSettingsMask||
(b.liveChat.newLiveChatSettingsMask={}),y.emojiReactionSet&&(b.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var Hk=function(){};
_.z(Hk,tK);Hk.prototype.getApiPaths=function(){return HXW};
Hk.prototype.getExtension=function(b){return _.c(b,_.s$W)};
Hk.prototype.JSC$14356_buildRequest=function(b,h,y){y.continuation?b.continuation=y.continuation:h.videoId&&(b.videoId=h.videoId);y.clientParams&&(b.clientParams=y.clientParams)};var ur=function(){};
_.z(ur,tK);ur.prototype.getApiPaths=function(){return cC5};
ur.prototype.getExtension=function(b){return _.c(b,_.Mu)};
ur.prototype.JSC$14356_buildRequest=function(b,h){b.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";b.fetchCommentsParams={};h.videoId&&(b.fetchCommentsParams.encryptedVideoId=h.videoId);h.postId&&(b.fetchCommentsParams.postId=h.postId);h.externalChannelId&&(b.fetchCommentsParams.externalChannelId=h.externalChannelId);h.linkedCommentId&&(b.fetchCommentsParams.linkedCommentId=h.linkedCommentId);(0,_.lR.isEmpty)(b.fetchCommentsParams)&&delete b.fetchCommentsParams};var O8=function(){};
_.z(O8,tK);O8.prototype.getApiPaths=function(){return mo};
O8.prototype.JSC$14356_buildRequest=function(b){b.browseId="FEnotifications_inbox"};
O8.prototype.getExtension=function(b){return _.c(b,_.KI)};var Ng=function(){};
_.z(Ng,tK);Ng.prototype.getApiPaths=function(){return cC5};
Ng.prototype.JSC$14356_buildRequest=function(b,h){h.signal==="GET_NOTIFICATIONS_MENU"&&(b.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");h.ctoken&&(b.ctoken=h.ctoken)};
var cWf=function(){};
_.z(cWf,Ng);cWf.prototype.getExtension=function(b){return _.c(b,_.KI)};
var R9A=function(){};
_.z(R9A,Ng);R9A.prototype.getExtension=function(b){return _.c(b,DBP)};var tO=function(){};
_.z(tO,tK);tO.prototype.getApiPaths=function(){return WC8};
tO.prototype.getExtension=function(b){return _.c(b,_.KI)};
tO.prototype.JSC$14356_buildRequest=function(){};var rF=function(){};
_.z(rF,tK);rF.prototype.getApiPaths=function(){return Gdb};
rF.prototype.getExtension=function(b){return _.c(b,pPW)||void 0};
rF.prototype.JSC$14356_buildRequest=function(b,h){h.params&&(b.params=h.params);h.secondaryParams&&(b.secondaryParams=h.secondaryParams)};var ck=function(){};
_.z(ck,tK);ck.prototype.getApiPaths=function(){return kde};
ck.prototype.getExtension=function(b){return _.c(b,ZdG)};
ck.prototype.JSC$14356_buildRequest=function(b,h){h.undo&&(b.undo=h.undo);h.serializedOptOut&&(b.serializedOptOut=h.serializedOptOut);h.serializedRecordInteractionsRequest&&(b.serializedRecordInteractionsRequest=h.serializedRecordInteractionsRequest)};var R5=function(){};
_.z(R5,tK);R5.prototype.getApiPaths=function(){return i18};
R5.prototype.getExtension=function(b){return _.c(b,oNP)};
R5.prototype.JSC$14356_buildRequest=function(b,h){h.serializedInteractionsRequest&&(b.serializedRecordNotificationInteractionsRequest=h.serializedInteractionsRequest)};var z7=function(){};
_.z(z7,tK);z7.prototype.getApiPaths=function(){return sKY};
z7.prototype.getExtension=function(b){return _.c(b,_.Qd)};
z7.prototype.JSC$14356_buildRequest=function(b,h,y){h=h===void 0?{}:h;y=y===void 0?{}:y;h.videoId?b.videoId=h.videoId:h.playlistId&&(b.playlistId=h.playlistId);var S;b.crossDeviceDownloadData={isCrossDeviceDownload:(S=h.isCrossDeviceDownload)!=null?S:!1};!y.downloadToMobileEduShown&&h.isCrossDeviceDownload&&(b.crossDeviceDownloadData.shouldShowDownloadToMobileEdu=!0);var F;if(S=(F=h.offlineWebClientEligibility)!=null?F:y.offlineWebClientEligibility)b.offlineWebClientEligibility=S;var a;if(F=(a=h.preferredFormatType)!=
null?a:y.preferredFormatType)b.preferredFormatType=F;var P;if(a=(P=h.lastOfflineQualitySettingsSavedMs)!=null?P:y.lastOfflineQualitySettingsSavedMs)b.lastOfflineQualitySettingsSavedMs=a;h.params&&(b.params=h.params)};var DH=function(){};
_.z(DH,tK);DH.prototype.getApiPaths=function(){return eg};
DH.prototype.getExtension=function(b){return _.c(b,_.sk)};
DH.prototype.JSC$14356_buildRequest=function(b,h,y){y=y===void 0?{}:y;h.token&&(b.continuation=h.token);y.formData&&(b.formData=y.formData)};var I5=function(){};
_.z(I5,tK);I5.prototype.getApiPaths=function(){return eg};
I5.prototype.getExtension=function(b){return _.c(b,H08)};
I5.prototype.JSC$14356_buildRequest=function(b,h,y){y=y===void 0?{}:y;b.continuation=y.continuation};var Bk=function(){};
_.z(Bk,tK);Bk.prototype.getApiPaths=function(){return eg};
Bk.prototype.getExtension=function(b){return _.c(b,_.ge)};
Bk.prototype.JSC$14356_buildRequest=function(b,h){var y,S=h.panelIdentifier||((y=h.identifier)==null?void 0:y.tag);S&&(b.panelId=S);var F;if((F=h.globalConfiguration)==null?0:F.params){var a;b.params=(a=h.globalConfiguration)==null?void 0:a.params}if(_.r("enable_ai_companion")){var P;h=h.engagementPanelExtras;if(h==null?0:(P=h.aiCompanionPanelExtras)==null?0:P.includeClientConversationId){var K,n;P=(n=(K=_.H9().resolve(_.XS(FQq)))==null?void 0:K("conversations"))==null?void 0:n.get("conversation_id")}else P=
void 0;if(K=P)b.formData=Object.assign({},b.formData,{inputComposerFormData:{conversationId:K}})}};
_.tm.Object.defineProperties(Bk.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Wk=function(){};
_.z(Wk,tK);Wk.prototype.getApiPaths=function(){return eg};
Wk.prototype.getExtension=function(b){return _.c(b,SA8)};
Wk.prototype.JSC$14356_buildRequest=function(b,h){h.panelLoadingStrategy&&V8M(b,h.panelLoadingStrategy)};var AO=function(){};
_.z(AO,tK);AO.prototype.getApiPaths=function(){return eg};
AO.prototype.getExtension=function(b){return _.c(b,RGe)};
AO.prototype.JSC$14356_buildRequest=function(b,h){h.loadingStrategy&&V8M(b,h.loadingStrategy)};var U8=function(){};
_.z(U8,tK);U8.prototype.getApiPaths=function(){return eg};
U8.prototype.getExtension=function(b){return _.c(b,_.zo)};
U8.prototype.JSC$14356_buildRequest=function(b,h){h.panelLoadingStrategy&&V8M(b,h.panelLoadingStrategy)};var p_=function(){};
_.z(p_,tK);p_.prototype.getApiPaths=function(){return eg};
p_.prototype.getExtension=function(b){return _.c(b,zGb)};
p_.prototype.JSC$14356_buildRequest=function(b,h){var y,S=(y=h.contentSourcePanelIdentifier)==null?void 0:y.tag;S&&(b.panelId=S);var F;if((F=h.globalConfiguration)==null?0:F.params){var a;b.params=(a=h.globalConfiguration)==null?void 0:a.params}};var JO=function(){};
_.z(JO,tK);JO.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
JO.prototype.getExtension=function(b){return _.c(b,DbW)};
JO.prototype.JSC$14356_buildRequest=function(b,h){h.params&&(b.params=h.params)};var e$=function(){};
_.z(e$,tK);e$.prototype.getApiPaths=function(){return XxM};
e$.prototype.getExtension=function(b){return _.c(b,Wxa)};
e$.prototype.JSC$14356_buildRequest=function(b,h){h.externalChannelId&&(b.externalChannelId=h.externalChannelId);h.superChatAction&&(b.superChatAction=h.superChatAction);h.superStickersAction&&(b.superStickersAction=h.superStickersAction)};var C_=function(){};
_.z(C_,tK);C_.prototype.getApiPaths=function(){return MiP};
C_.prototype.getExtension=function(b){return _.c(b,tmw)||_.c(b,NNj)};
C_.prototype.JSC$14356_buildRequest=function(b,h){h.videoIds?b.videoIds=h.videoIds:h.videoId&&(b.videoIds=[h.videoId]);h.playlistId&&(b.playlistId=h.playlistId);h.params&&(b.params=h.params);b.excludeWatchLater=!1};var gF=function(){};
_.z(gF,tK);gF.prototype.getApiPaths=function(){return FCP};
gF.prototype.getExtension=function(b){return _.c(b,_.r2)};
gF.prototype.JSC$14356_buildRequest=function(b,h,y){y.create_playlist_title?b.title=y.create_playlist_title:h.title&&(b.title=h.title);if(y.create_playlist_privacy_status&&typeof y.create_playlist_privacy_status==="number"){a:{var S=y.create_playlist_privacy_status;if(S!==0){if(S===1){S="PUBLIC";break a}if(S===2){S="UNLISTED";break a}}S="PRIVATE"}b.privacyStatus=S}else h.privacyStatus&&(b.privacyStatus=h.privacyStatus);y.create_playlist_description&&(b.description=y.create_playlist_description);h.videoIds&&
(b.videoIds=h.videoIds);h.params&&(b.params=h.params);h.sourcePlaylistId&&(b.sourcePlaylistId=h.sourcePlaylistId)};var s8=function(){};
_.z(s8,tK);s8.prototype.getApiPaths=function(){return jie};
s8.prototype.getExtension=function(b){return _.c(b,AKG)};
s8.prototype.JSC$14356_buildRequest=function(b,h){b.playlistId=h.playlistId};var Ys=function(){};
_.z(Ys,tK);Ys.prototype.getApiPaths=function(){return RxW};
Ys.prototype.getExtension=function(b){return _.c(b,db5)};
Ys.prototype.JSC$14356_buildRequest=function(b,h){h.playlistId&&(b.playlistId=h.playlistId);h.params&&(b.params=h.params)};var T7=function(){};
_.z(T7,tK);T7.prototype.getApiPaths=function(){return EI7};
T7.prototype.getExtension=function(b){return _.c(b,_.nj)||void 0};
T7.prototype.JSC$14356_buildRequest=function(b,h){h.actions&&(b.actions=h.actions);h.params&&(b.params=h.params);h.playlistId&&(b.playlistId=h.playlistId)};var G7=function(){};
_.z(G7,tK);_.d=G7.prototype;_.d.getApiPaths=function(){return f0w};
_.d.getExtension=function(b){return _.c(b,_.cd)};
_.d.JSC$14356_buildRequest=function(b,h){h.videoId&&(b.playerRequest={videoId:h.videoId},h.playerParams&&(b.playerRequest.params=h.playerParams),h.racyCheckOk&&(b.playerRequest.racyCheckOk=!!h.racyCheckOk),h.contentCheckOk&&(b.playerRequest.contentCheckOk=!!h.contentCheckOk));h.params&&(b.params=h.params);h.inputType&&(b.inputType=h.inputType);b.disablePlayerResponse=!0};
_.d.getRequestConfig=function(b){var h;(b=this.JSC$14363_getStoreKey(b))&&(h={storeStrategy:{storeKey:b}});_.r("web_log_reels_ticks")&&(h=h||{},h.requestTick="r_wrs",h.responseTick="r_wrr");return h};
_.d.JSC$14363_getStoreKey=function(b){b=this.getExtension(b);if(b!=null&&b.videoId){var h={videoId:b.videoId};b.params&&(h.params=b.params);return _.fx("reel_item_watch",h)}};var ks=function(){};
_.z(ks,tK);_.d=ks.prototype;_.d.getApiPaths=function(){return w8N};
_.d.getExtension=function(b){return _.c(b,_.cd)};
_.d.JSC$14356_buildRequest=function(b,h,y){y=y===void 0?{}:y;b.sequenceParams=h.sequenceParams;var S;((S=y)==null?0:S.contentPlaybackContext)&&_.r("web_shorts_prefetch_service_enabled")&&(b.playbackContext={contentPlaybackContext:y.contentPlaybackContext})};
_.d.JSC$14363_getStoreKey=function(b){if(_.r("shorts_controller_retrieve_seedless_sequence_v2")&&(b=this.getExtension(b),b==null?0:b.sequenceParams))return _.fx("reel_watch_sequence",{sequenceParams:b.sequenceParams})};
_.d.getRequestConfig=function(b){b=this.JSC$14363_getStoreKey(b);var h;b&&(h={storeStrategy:{storeKey:b}});h=h||{};h.requestTick="r_wsrs";h.responseTick="r_wsrr";h.processorTick="r_wsrp";return h};
var Vr=function(){};
_.z(Vr,tK);Vr.prototype.getApiPaths=function(){return w8N};
Vr.prototype.getExtension=function(b){return _.c(b,_.sk)};
Vr.prototype.JSC$14356_buildRequest=function(b,h,y){y=y===void 0?{}:y;h.token&&(b.continuation=h.token);var S;((S=y)==null?0:S.contentPlaybackContext)&&_.r("web_shorts_prefetch_service_enabled")&&(b.playbackContext={contentPlaybackContext:y.contentPlaybackContext})};
Vr.prototype.getRequestConfig=function(b){b=this.JSC$14363_getStoreKey(b);var h;b&&(h={storeStrategy:{storeKey:b}});h=h||{};h.requestTick="r_wsrs";h.responseTick="r_wsrr";h.processorTick="r_wsrp";return h};var E8=function(){};
_.z(E8,tK);E8.prototype.getApiPaths=function(){return KC8};
E8.prototype.getExtension=function(b){return _.c(b,_.vqM)};
E8.prototype.JSC$14356_buildRequest=function(b,h,y){y=y===void 0?{}:y;h.flagAction&&(b.action=h.flagAction);h.flagRequestType&&(b.flagRequestType=h.flagRequestType);h.additionalDetailCheckboxChecked&&(b.additionalDetailCheckboxChecked=h.additionalDetailCheckboxChecked);h.legalCheckboxChecked&&(b.legalCheckboxChecked=h.legalCheckboxChecked);h={};y.flag_issue_type!==void 0&&(h.issue=y.flag_issue_type);y.flag_affiliation!==void 0&&(h.affiliation=y.flag_affiliation);y.flag_full_name&&(h.fullName=y.flag_full_name);
Object.keys(h).length&&(b.legalReportDetails=h);if(y.flag_description||y.text)b.userComments=y.flag_description||y.text;h={};y.minutes!==void 0&&y.seconds!==void 0&&(h.minutes=y.minutes,h.seconds=y.seconds);y.vss_id&&(h.vssId=y.vss_id);Object.keys(h).length&&(b.videoReportDetails=h);h={};y.video_ids&&(h.videoIds=y.video_ids);y.impersonated_channel_url&&(h.impersonatedChannelUrl=y.impersonated_channel_url);Object.keys(h).length&&(b.channelAbuseReportDetails=h)};
_.tm.Object.defineProperties(E8.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ir=function(){};
_.z(ir,tK);ir.prototype.getApiPaths=function(){return H1N};
ir.prototype.getExtension=function(b){return _.c(b,BJM)};
ir.prototype.JSC$14356_buildRequest=function(b,h){h.blockedForKidsContent&&(b.blockedForKidsContent=h.blockedForKidsContent)};var f_=function(){};
_.z(f_,tK);f_.prototype.getApiPaths=function(){return xxW};
f_.prototype.getExtension=function(b){return _.c(b,OyF)};
f_.prototype.JSC$14356_buildRequest=function(b,h,y){b.params=h.params;y.impersonated_channel_url&&(b.impersonatedChannelUrl=y.impersonated_channel_url)};var wF=function(){};
_.z(wF,tK);wF.prototype.getApiPaths=function(){return exo};
wF.prototype.getExtension=function(b){return _.c(b,_.W8G)};
wF.prototype.JSC$14356_buildRequest=function(b,h){h.items&&(b.items=h.items);h.kidGaiaId&&(b.kidGaiaId=h.kidGaiaId)};var lr=function(){};
_.z(lr,tK);lr.prototype.getApiPaths=function(){return nIe};
lr.prototype.getExtension=function(b){return _.c(b,_.uB8)};
lr.prototype.JSC$14356_buildRequest=function(b,h){h.params&&(b.params=h.params);h.targetId&&(b.targetId=h.targetId)};var qg=function(){};
_.z(qg,tK);qg.prototype.getApiPaths=function(){return bXM};
qg.prototype.getExtension=function(b){return _.c(b,IX8)};
qg.prototype.JSC$14356_buildRequest=function(b,h){h.externalVideoId&&(b.externalVideoId=h.externalVideoId);h.query&&(b.query=h.query);h.sourceTimelines&&(b.sourceTimelines=h.sourceTimelines)};var xs=function(){};
_.z(xs,tK);xs.prototype.getApiPaths=function(){return hQo};
xs.prototype.getExtension=function(b){return _.c(b,_.sk)||void 0};
xs.prototype.JSC$14356_buildRequest=function(b,h){h.token&&(b.continuation=h.token)};
_.z9x=function(){};
_.z(_.z9x,tK);_.d=_.z9x.prototype;_.d.getApiPaths=function(){return hQo};
_.d.getExtension=function(b){return _.c(b,_.NC)||void 0};
_.d.isNavigationCommand=function(){return!0};
_.d.JSC$14363_getStoreKey=function(b,h){h=h===void 0?{}:h;if(!h.disableCache&&(b=this.getExtension(b))&&b.query)return h={query:b.query},b.params&&(h.params=b.params),_.fx("search",h)};
_.d.JSC$14356_buildRequest=function(b,h,y){h.query&&(b.query=h.query);h.params&&(b.params=h.params);if(!_.r("web_forward_suggest_stats_killswitch")){var S=_.c(h,vXW);S&&(b.suggestStats=S)}var F;!_.r("kevlar_searchbox_stats_killswitch")&&((F=y.tempData)==null?0:F.gs_l)&&!_.c(h,vXW)&&(b.webSearchboxStatsUrl="/search?oq="+(y.tempData.oq||"")+"&gs_l="+y.tempData.gs_l);var a;if((a=y.tempData)==null?0:a.entityMid)h=b.suggestionSearchParams||{},h.entityMid=y.tempData.entityMid,b.suggestionSearchParams=h;
if(_.r("enable_desktop_vdcbg_components")||_.r("enable_inline_muted_playback_on_web_search"))h=_.HT().getFlag(186),b.inlineSettingStatus=h?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON";y.isFromShorts&&(b.shortsContext={isShortsContext:!0,shouldSelectShortsChip:!1})};
_.d.getRequestConfig=function(b,h){h=h===void 0?{}:h;b=this.JSC$14363_getStoreKey(b,h);var y;b&&(y={storeStrategy:{storeKey:b}});_.r("web_log_search_ticks_ks")||(y=y||{},y.requestTick="sr_s",y.responseTick="sr_r");return y};var Qr=function(){};
_.z(Qr,tK);Qr.prototype.getApiPaths=function(){return I0e};
Qr.prototype.getExtension=function(b){return _.c(b,VmM)};
Qr.prototype.JSC$14356_buildRequest=function(b,h){h.serializedGetSharingProviderDataParams&&(b.serializedGetSharingProviderDataParams=h.serializedGetSharingProviderDataParams)};var mh=function(){};
_.z(mh,tK);mh.prototype.getApiPaths=function(){return BnW};
mh.prototype.getExtension=function(b){return _.c(b,lXG)};
mh.prototype.JSC$14356_buildRequest=function(b,h){h.endpoint&&(b.endpoint=h.endpoint);h.action&&(b.action=h.action)};var vk=function(){};
_.z(vk,tK);vk.prototype.getApiPaths=function(){return $xa};
vk.prototype.getExtension=function(b){return _.c(b,U1P)};
vk.prototype.JSC$14356_buildRequest=function(b,h){b.videoId=h.videoId;h.scheduledRedirectMetadataSourceVideoId&&(b.scheduledRedirectMetadata={sourceVideoId:h.scheduledRedirectMetadataSourceVideoId})};var b9=function(){};
_.z(b9,tK);b9.prototype.getApiPaths=function(){return aYo};
b9.prototype.getExtension=function(b){return _.c(b,_.WEP)};
b9.prototype.JSC$14356_buildRequest=function(b,h){b.params=h.params;b.correctionText=h.correctionText};var hz=function(){};
_.z(hz,tK);hz.prototype.getApiPaths=function(){return eeq};
hz.prototype.getExtension=function(b){return _.c(b,_.B55)};
hz.prototype.JSC$14356_buildRequest=function(b,h){h.params&&(b.params=h.params);b.searchQuery=h.searchQuery;b.languageCode=h.languageCode;b.kind=h.kind;b.name=h.name;b.externalVideoId=h.externalVideoId};var y1=function(){};
_.z(y1,tK);y1.prototype.getApiPaths=function(){return tqM};
y1.prototype.getExtension=function(b){return _.c(b,fVw)};
y1.prototype.JSC$14356_buildRequest=function(b,h){h.params&&(b.params=h.params)};var Sz=function(b){this.JSC$18634_storeWithEntities=b};
_.z(Sz,tK);Sz.prototype.getApiPaths=function(){return QQ8};
Sz.prototype.getExtension=function(b){return _.c(b,lV7)||_.c(b,xTG)};
Sz.prototype.JSC$14356_buildRequest=function(b,h,y){y.client_data&&(b.clientData=y.client_data);if(h.commerceActionConfig){var S=h.commerceActionConfig;h=S.actionId;S=S.commerceActionParams;h&&(b.actionId=h);S&&(b.commerceActionParams=S)}else{var F=h.actionId,a=h.commerceActionParams;y=h.entityKeys;F&&(b.actionId=F);a&&(b.commerceActionParams=a);var P;h=(S=this.JSC$18634_storeWithEntities)==null?void 0:(P=S.getState())==null?void 0:P.entities;if(y&&h){S=[];P=_.L(y);for(y=P.next();!y.done;y=P.next())if(F=
y.value,y=_.Pi(F).entityType,F=_.Mm(h,y,F))a={},S.push((a[y]=F,a));b.entityMutationPayloads=S}}};
Sz.prototype.getRequestConfig=function(b){var h,y=(h=_.c(b,lV7))==null?void 0:h.requestSequenceType;if(y&&b.clickTrackingParams&&y!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:b.clickTrackingParams,sequenceType:y}}};
Sz[uN]=[$7];var FE=function(){};
_.z(FE,tK);FE.prototype.getApiPaths=function(){return rae};
FE.prototype.getExtension=function(b){return _.c(b,_.M9a)};
FE.prototype.JSC$14356_buildRequest=function(b,h){h.feedbackData&&(b.feedbackData=h.feedbackData);h.params&&(b.itemParams=h.params)};
_.tm.Object.defineProperties(FE.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var aT=function(){};
_.z(aT,tK);aT.prototype.getApiPaths=function(){return caM};
aT.prototype.getExtension=function(b){return _.c(b,noG)};
aT.prototype.JSC$14356_buildRequest=function(b,h,y){y.payments_payload&&(b.paymentsPayload=y.payments_payload);y.offer_params&&(b.offerParams=y.offer_params);h.transactionParams&&(b.transactionParams=h.transactionParams)};var dN=function(){};
_.z(dN,tK);dN.prototype.getApiPaths=function(){return RQe};
dN.prototype.getExtension=function(b){return _.c(b,_.XDP)};
dN.prototype.JSC$14356_buildRequest=function(b,h,y){y=y===void 0?{}:y;h.buybucketParams&&(b.buybucketData={params:h.buybucketParams},h.stickerParams?b.buybucketData.stickerParams=h.stickerParams:(y.rich_chat_message?b.buybucketData.richChatMessage=y.rich_chat_message:y.chat_message_text&&(b.buybucketData.chatMessageText=y.chat_message_text),y.purchase_price_micros&&(b.buybucketData.purchasePriceMicros=y.purchase_price_micros.toString())));h.donationAmountMicros&&(b.tipAmountMicros=h.donationAmountMicros,
h.tipParams&&(b.tipParams=h.tipParams));h.offerParams&&(b.offerParams=h.offerParams);h.productData&&(b.productData=h.productData);h.transactionParams&&(b.transactionParams=h.transactionParams)};var jz=function(){};
_.z(jz,tK);jz.prototype.getApiPaths=function(){return zQ5};
jz.prototype.getExtension=function(b){return _.c(b,Oke)};
jz.prototype.JSC$14356_buildRequest=function(b,h){h.updateFopParams&&(b.updateFopParams=h.updateFopParams)};var $z=function(){};
_.z($z,tK);$z.prototype.getApiPaths=function(){return DjW};
$z.prototype.getExtension=function(b){return _.c(b,_.Qe)};
$z.prototype.JSC$14356_buildRequest=function(b,h){h.couponCode&&(b.couponCode=h.couponCode);h.params&&(b.itemParams=h.params)};var Ly=function(){};
_.z(Ly,tK);Ly.prototype.getApiPaths=function(){return IY8};
Ly.prototype.getExtension=function(b){return _.c(b,_.qAM)};
Ly.prototype.JSC$14356_buildRequest=function(b,h,y){y=y===void 0?{}:y;h.params&&(b.params=h.params);y.ctk&&(b.clientToken=y.ctk)};var Pw=function(b){this.JSC$18669_storeWithEntities=b};
_.z(Pw,tK);Pw.prototype.getApiPaths=function(){return BpM};
Pw.prototype.getExtension=function(b){return _.c(b,_.De)};
Pw.prototype.JSC$14356_buildRequest=function(b,h,y){y.purchase_price_micros&&(b.productData={pdgData:{purchasePriceMicros:y.purchase_price_micros.toString()}},y.rich_chat_message&&(b.productData.pdgData.richChatMessage=y.rich_chat_message),y.currency_code&&(b.productData.pdgData.currencyCode=y.currency_code));h.transactionParams&&(b.transactionParams=h.transactionParams);h.clientLocationContext&&(b.clientLocationContext=h.clientLocationContext);y.payments_payload&&(b.paymentsPayload=y.payments_payload);
y.funds_guarantee_callback_client_data&&(b.fundsGuaranteeCallbackClientData=y.funds_guarantee_callback_client_data);var S,F;y=(S=this.JSC$18669_storeWithEntities)==null?void 0:(F=S.getState())==null?void 0:F.entities;if(h.entityKeys&&y){S=[];h=_.L(h.entityKeys);for(F=h.next();!F.done;F=h.next()){var a=F.value;F=_.Pi(a).entityType;if(a=_.Mm(y,F,a)){var P={};S.push((P[F]=a,P))}}b.entityMutationPayloads=S}};
Pw[uN]=[$7];var Ky=function(){};
_.z(Ky,tK);Ky.prototype.getApiPaths=function(){return WZw};
Ky.prototype.getExtension=function(b){return _.c(b,HkN)};
Ky.prototype.JSC$14356_buildRequest=function(b,h,y){y=y===void 0?{}:y;y.backend_analytics&&(b.serializedBackendAnalyticsEvent=y.backend_analytics);h.offerParams&&(b.offerParams=h.offerParams)};var Zq=function(){};
_.z(Zq,tK);Zq.prototype.getApiPaths=function(){return DjW};
Zq.prototype.getExtension=function(b){return _.c(b,akI)};
Zq.prototype.JSC$14356_buildRequest=function(b,h){h.params&&(b.itemParams=h.params)};var oT=function(){};
_.z(oT,tK);oT.prototype.getApiPaths=function(){return AaW};
oT.prototype.getExtension=function(b){return _.c(b,_.hE5)};
oT.prototype.JSC$14356_buildRequest=function(b,h,y){y.resume_time_ms&&(b.resumeTimeMs=y.resume_time_ms);h.pauseParams&&(b.pauseParams=h.pauseParams)};var MH=function(){};
_.z(MH,tK);MH.prototype.getApiPaths=function(){return Uj7};
MH.prototype.getExtension=function(b){return _.c(b,_.u$G)};
MH.prototype.JSC$14356_buildRequest=function(b,h,y){y=y===void 0?{}:y;y.c&&(b.redeemCode=y.c);y.rd&&(b.riskData=y.rd);y.ctk&&(b.clientToken=y.ctk)};var ny=function(){};
_.z(ny,tK);ny.prototype.getApiPaths=function(){return pxP};
ny.prototype.getExtension=function(b){return _.c(b,_.ypa)};
ny.prototype.JSC$14356_buildRequest=function(b,h){h.resumeParams&&(b.resumeParams=h.resumeParams)};var XE=function(b,h){this.clientName=b;this.defaultExpirationDelayMs=h};
XE.prototype.put=function(b,h){var y=this,S;return _.Z(function(F){S=Object.assign({},h.data);S.key=b;S.clientName=y.clientName;S.expireTimestampMs===void 0&&(S.expireTimestampMs=(Math.round((0,_.NO)())+y.defaultExpirationDelayMs).toString());return F.return(y.putInternal(b,S))})};
XE[uN]=[U2,ZDd];var DKf=function(){XE.apply(this,arguments);this.JSC$18699_responseStore=new Map};
_.z(DKf,XE);_.d=DKf.prototype;_.d.get=function(b){var h=this;return _.Z(function(y){return y.return(vg(h,b))})};
_.d.putInternal=function(b,h){var y=this,S,F,a;return _.Z(function(P){S=y.defaultExpirationDelayMs;h.expireTimestampMs&&(S=Number(h.expireTimestampMs)-Math.round((0,_.NO)()),F=_.tj("mweb_override_response_store_expiration_ms"),F>0&&F<S&&(S=F));a=setTimeout(function(){y.remove(b)},S);
y.JSC$18699_responseStore.set(b,{entryData:h,timer:a});_.g3(P)})};
_.d.remove=function(b){var h=this;return _.Z(function(y){I9F(h,b);_.g3(y)})};
_.d.removeAll=function(){var b=this;return _.Z(function(h){b.JSC$18699_responseStore.forEach(function(y){clearTimeout(y.timer)});
b.JSC$18699_responseStore.clear();_.g3(h)})};
_.d.has=function(b){return!!this.JSC$18699_responseStore.get(b)};
_.d.getKeys=function(){return this.JSC$18699_responseStore.keys()};
var vg=function(b,h){if(b=b.JSC$18699_responseStore.get(h))return new _.mE(b.entryData)},I9F=function(b,h){var y=b.JSC$18699_responseStore.get(h);
y&&(clearTimeout(y.timer),b.JSC$18699_responseStore.delete(h))};var E55;var wpr=function(b,h,y){XE.call(this,b,h);this.token=y};
_.z(wpr,XE);_.d=wpr.prototype;_.d.get=function(b){var h=this,y,S;return _.Z(function(F){return F.nextAddress==1?F.yield(fOU(h.token),2):F.nextAddress!=3?(y=F.yieldResult,F.yield(y.get("ResponseStore",[b,h.clientName]),3)):(S=F.yieldResult)?F.return(new _.mE(S)):F.return(void 0)})};
_.d.putInternal=function(b,h){var y=this,S;return _.Z(function(F){if(F.nextAddress==1)return F.yield(fOU(y.token),2);S=F.yieldResult;return F.yield(S.put("ResponseStore",h),0)})};
_.d.remove=function(b){var h=this,y;return _.Z(function(S){if(S.nextAddress==1)return S.yield(fOU(h.token),2);y=S.yieldResult;return S.return(y.delete("ResponseStore",[b,h.clientName]))})};
_.d.removeAll=function(){var b=this,h;return _.Z(function(y){if(y.nextAddress==1)return y.yield(fOU(b.token),2);h=y.yieldResult;return y.yield(Yae(h,IDBKeyRange.only(b.clientName)),0)})};
_.d.has=function(){throw Error("lj");};_.Hw=new _.ca("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var BBA=function(b){var h;this.stateTagsData=(h=b.responseContext)==null?void 0:h.stateTags},Wnf=function(b){var h;
return((h=b.stateTagsData)==null?void 0:h.stateTagsModified)||[]};var AWx;AWx=function(b){this.JSC$18712_responseStore=b};
_.q$=function(b,h,y){if(!_.r("state_tags_killswitch")){var S=new BBA(h);if(Wnf(S).length>0){var F=b.JSC$18712_responseStore.getKeys();F=_.L(F);for(var a=F.next();!a.done;a=F.next()){a=a.value;var P=vg(b.JSC$18712_responseStore,a);if(P){var K=_.de(P);a:{var n=void 0;P=Wnf(S);K=((n=(new BBA(K)).stateTagsData)==null?void 0:n.relevantStateTags)||[];n=_.L(K);for(K=n.next();!K.done;K=n.next())if(K=K.value,K.stateTag!=null&&P.includes(K.stateTag)&&K.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){P=
!0;break a}P=!1}P&&I9F(b.JSC$18712_responseStore,a)}}}}var X;S=(X=h.responseContext)==null?void 0:X.maxAgeSeconds;y&&S&&Number(S)>0&&(h=Lh(h,S),b.JSC$18712_responseStore.put(y,new _.mE(h)))};
AWx.prototype.handleResponse=function(b,h){if(!h)throw Error("mj");var y,S;h=(y=h.config)==null?void 0:(S=y.storeStrategy)==null?void 0:S.storeKey;_.q$(this,b,h)};
AWx[uN]=[_.QQ];_.MXM=new _.ca("STORE_RESPONSE_PROCESSOR_TOKEN");var UKa=function(b){this.JSC$18715_responseStore=b};
UKa.prototype.handleResponse=function(b,h){if(h.input.match(_.yk(w8N))){var y;if(b==null?0:(y=b.entries)==null?0:y.length)for(b=_.L(b.entries),h=b.next();!h.done;h=b.next()){y=h.value.command;var S=void 0;h=(S=_.c(y,_.cd))==null?void 0:S.unserializedPrefetchData;if(!y||!h)break;S=(new G7).JSC$14363_getStoreKey(y);var F=_.c(h,yKN),a=void 0,P=void 0,K=void 0,n=void 0,X=void 0,u=void 0,O=((a=F)==null?0:(P=a.responseContext)==null?0:P.maxAgeSeconds)&&Number((K=F)==null?void 0:(n=K.responseContext)==null?
void 0:n.maxAgeSeconds)>0?Number((X=F)==null?void 0:(u=X.responseContext)==null?void 0:u.maxAgeSeconds):600;S&&O>0&&(F=Lh(F,O),this.JSC$18715_responseStore.put(S,new _.mE(F)));y=(new h5).JSC$14363_getStoreKey(y);h=_.c(h,Tc8);n=K=P=a=F=S=void 0;X=((S=h)==null?0:(F=S.responseContext)==null?0:F.maxAgeSeconds)&&Number((a=h)==null?void 0:(P=a.responseContext)==null?void 0:P.maxAgeSeconds)>0?Number((K=h)==null?void 0:(n=K.responseContext)==null?void 0:n.maxAgeSeconds):600;y&&X>0&&(h=Lh(h,X),this.JSC$18715_responseStore.put(y,
new _.mE(h)))}}};
UKa[uN]=[_.QQ];var p0q=function(b,h){this.innertubeTransportService=b;this.JSC$18718_commandHandler=h};
p0q.prototype.submitForm=function(b,h,y,S,F){var a=this,P,K,n,X,u,O;return _.Z(function(N){if(N.nextAddress==1)return P={submitId:b,formData:h,submitBehavior:y,params:S},K=_.yk(djG),N.yield(_.cy(a.innertubeTransportService,P,K,F),2);n=N.yieldResult;if(!n)return N.return(Promise.reject(new _.Gn("Submit API returned an undefined response. Submit ID: "+b)));X=n;(O=(u=X)==null?void 0:u.onResponseReceived)&&a.JSC$18718_commandHandler.resolveCommand(O);return N.return(X)})};
p0q[uN]=[_.DT,_.OM];var u9=function(){this.scheduler=_.J_()},JWA;
u9.prototype.pause=function(){throw Error("nj");};
u9.prototype.resume=function(){throw Error("nj");};
u9.prototype.queue=function(b){var h=this,y=_.wS(),S=_.VT(this.scheduler,function(){try{var F;if(_.nt.instance)var a=_.nt.instance;else{var P=new _.Gn("Error: Unexpected uninitialized CommandHandler.");_.QT(P);a=void 0}(F=a)==null||F.resolveCommand(b.command);y.resolve()}catch(K){y.reject(K)}});
y.promise.thenCatch(function(F){F instanceof _.GR&&h.scheduler.cancelJob(S)});
return y.promise};
u9.prototype.queueAll=function(b){var h=new Map;b=_.L(b);for(var y=b.next();!y.done;y=b.next())y=y.value,h.set(y.id,this.queue(y));return h};var C5A=function(b,h){var y=this;this.taskModel=b;this.onTaskCancelledCallback=h;this.resolver=_.wS();b=b.proto.prefetchConfig;if(!b)throw Error("oj");if(!b.prefetchAction)throw Error("pj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(S){S instanceof _.GR&&(e9A(y,y.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),y.onTaskCancelledCallback(y.taskModel.id,y.jobId),y.tick("pcc"));
throw S;});
this.timerName=this.taskModel.id;_.Ua(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
C5A.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 e9A=function(b,h){_.WT({prefetchInfo:{cancellationReason:h}},b.timerName)};
C5A.prototype.tick=function(b){_.pI(b,void 0,this.timerName)};var NH=function(){var b=this;this.scheduler=_.J_();this.maxInflightTasks=_.tj("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.tj("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new Hwa;this.onTaskCancelled=function(h,y){y&&b.scheduler.cancelJob(y);gTP(b,h);Og(b,3)}},sY2=function(){NH.instance||(NH.instance=new NH);
return NH.instance};
NH.prototype.pause=function(){this.prefetchCoordinatorState=0};
NH.prototype.resume=function(){Og(this,0)};
NH.prototype.queue=function(b){b=YDN(this,b);Og(this,1);return b};
NH.prototype.queueAll=function(b){var h=new Map;b=_.L(b);for(var y=b.next();!y.done;y=b.next())y=y.value,h.set(y.id,YDN(this,y));Og(this,1);return h};
var YDN=function(b,h){var y=b.allPrefetchTasks.get(h.id);if(y)return y.cancellablePromise;try{var S=new C5A(h,b.onTaskCancelled)}catch(a){return _.UQ(a)}y=S;y.tick("pcq");var F={prefetchInfo:{taskId:y.taskModel.id,isPrefetch:!0,fetchAction:y.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:y.taskModel.command.clickTrackingParams}};y.taskModel.csn&&(F.clientScreenNonce=y.taskModel.csn);_.WT(F,y.timerName);b.allPrefetchTasks.set(h.id,S);b.drainingHeap.insert(-S.getPriority(),S);return S.cancellablePromise},
Og=function(b,h){b.prefetchCoordinatorState===h&&(b.prefetchCoordinatorState=2,TBa(b))},TBa=function(b){for(var h={};b.prefetchCoordinatorState!==0;h={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(b.inflightPrefetchTasks.size>=b.maxInflightTasks){b.prefetchCoordinatorState=3;break}h.prefetchTask$jscomp$1=b.drainingHeap.remove();if(!h.prefetchTask$jscomp$1){b.prefetchCoordinatorState=1;break}h.taskId$jscomp$3=h.prefetchTask$jscomp$1.taskModel.id;if(b.allPrefetchTasks.has(h.taskId$jscomp$3)){var y=-1;b.coordinatorTimeoutMs>0&&(y=_.VT(b.scheduler,function(S){return function(){tz(b,S.taskId$jscomp$3,Error("qj"))}}(h),b.coordinatorTimeoutMs));
b.inflightPrefetchTasks.set(h.taskId$jscomp$3,y);if(!b.JSC$18735_commandHandler){if(!_.nt.instance){tz(b,h.taskId$jscomp$3,Error("rj"));continue}b.JSC$18735_commandHandler=_.nt.instance}a:switch(h.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":y=1;break a;default:y=0}h.prefetchTask$jscomp$1.jobId=b.scheduler.addJob(function(S){return function(){S.prefetchTask$jscomp$1.tick("pcr");try{b.JSC$18735_commandHandler.resolveCommand(S.prefetchTask$jscomp$1.taskModel.command)||
tz(b,S.taskId$jscomp$3,Error("sj"))}catch(F){tz(b,S.taskId$jscomp$3,F)}}}(h),y,0)}}},G$f=function(b,h){(h=gTP(b,h))!=null&&(h.resolver.resolve(),h.tick("pce"));
Og(b,3)},tz=function(b,h,y){(h=gTP(b,h,y))!=null&&(h.resolver.reject(y),h.tick("pcc"),e9A(h,"CANCELLATION_REASON_ERROR"),Math.random()<=_.tj("prefetch_coordinator_error_logging_sampling_rate")&&(y=new _.Gn("Prefetch Command failed.",h.taskModel.id,y.message),_.QT(y)));
Og(b,3)},gTP=function(b,h,y){var S=b.allPrefetchTasks.get(h);
S?((y=b.inflightPrefetchTasks.get(h))&&y!==-1&&b.scheduler.cancelJob(y),b.inflightPrefetchTasks.delete(h),b.allPrefetchTasks.delete(h)):_.vX(new _.Gn("Unexpected missing prefetch task when deleting task.",h,y==null?void 0:y.message));return S};var k$q=function(b,h,y,S,F){this.id=b;this.triggerOn=h;this.cancelOn=y;this.command=S;this.proto=F};
_.tm.Object.defineProperties(k$q.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var VGx=function(){this.JSC$18740_prefetchCoordinator=sY2();JWA||(JWA=new u9);this.defaultCoordinator=JWA},ETf;
VGx.getInstance=function(){ETf||(ETf=new VGx);return ETf};
VGx.prototype.get=function(b){switch(b){case 0:return this.JSC$18740_prefetchCoordinator;default:return this.defaultCoordinator}};var rN=function(){this.coordinatorSupplier=VGx.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},w0q=function(b){var h=_.UE()||void 0,y=Object.keys(iqA)[0];
if(y){var S=b.taskIdByTriggerId.get(y);if(S!=null){b.taskIdByTriggerId.delete(y);y=[];S=_.L(S);for(var F=S.next();!F.done;F=S.next())if(F=b.tasks.get(F.value))h!=="UNDEFINED_CSN"&&(F.csn=h),y.push(F);y=xVY(y);h=[];y=_.L(y);for(S=y.next();!S.done;S=y.next()){F=_.L(S.value);S=F.next().value;F=F.next().value;S=b.coordinatorSupplier.get(S).queueAll(F);S=_.L(S);var a=S.next();for(F={};!a.done;F={taskId$jscomp$9:void 0},a=S.next()){var P=_.L(a.value);a=P.next().value;P=P.next().value;F.taskId$jscomp$9=
a;a=P;h.push(F.taskId$jscomp$9);b.queuedPromisesByTask.set(F.taskId$jscomp$9,_.le(a,function(K){return function(){f9X(b,K.taskId$jscomp$9)}}(F)))}}}}else _.vX(new _.Gn("Unexpected malformed TriggerEvent."))};
rN.prototype.trigger=function(b,h){var y=this,S=this.tasks.get(b);if(!S||this.queuedPromisesByTask.has(b))return!1;l9A(this,b,S.triggerOn);h!=="UNDEFINED_CSN"&&(S.csn=h);h=this.coordinatorSupplier.get(S.taskType).queue(S);this.queuedPromisesByTask.set(b,_.le(h,function(){f9X(y,b)}));
return!0};
rN.prototype.cancel=function(b){var h=this.queuedPromisesByTask.get(b);if(h)h.cancel();else return f9X(this,b)};
var f9X=function(b,h){b.queuedPromisesByTask.delete(h);var y=b.tasks.get(h);if(!y)return!1;b.tasks.delete(h);l9A(b,h,y.triggerOn);(y=q4I(y.cancelOn))&&(b=b.taskIdByCancelId.get(y))&&b.delete(h);return!0},l9A=function(b,h,y){(y=Object.keys(y)[0])&&(b=b.taskIdByTriggerId.get(y))&&b.delete(h)};var iqA={taskRegistered:{}},cw=function(){rN.instance||(rN.instance=new rN);this.JSC$18749_taskManager=rN.instance};
_.z(cw,B8);
cw.prototype.resolveCommand=function(b){var h=this,y,S;return _.Z(function(F){y=_.c(b,bfo);if((S=y)==null||!S.tasks){var a=new _.Gn("RegisterTasksCommand is missing tasks.");_.QT(a);return F.return()}a=h.JSC$18749_taskManager;for(var P=_.L(y.tasks),K=P.next();!K.done;K=P.next())if(K=K.value,K=K.id&&K.triggerOn&&K.cancelOn&&K.command?new k$q(K.id,K.triggerOn,K.cancelOn,K.command,K):void 0,K){var n=Object.keys(K.triggerOn)[0];if(n){var X=q4I(K.cancelOn);X?(a.tasks.set(K.id,K),a.taskIdByTriggerId.has(n)||a.taskIdByTriggerId.set(n,
new Set),a.taskIdByTriggerId.get(n).add(K.id),a.taskIdByCancelId.has(X)||a.taskIdByCancelId.set(X,new Set),a.taskIdByCancelId.get(X).add(K.id)):_.vX(new _.Gn("Unexpected malformed cancelOn field."))}else _.vX(new _.Gn("Unexpected malformed triggerOn field."))}else _.vX(new _.Gn("Unexpected malformed Task proto."));w0q(h.JSC$18749_taskManager);_.g3(F)})};var qDY={},xKE=(qDY.rendered={priority:_.r("web_adaptive_early_init")?8:0,callback:function(){var b={};b.numCpu=navigator.hardwareConcurrency;var h={};h.ramGb=_.S5.navigator.deviceMemory;var y={staticContext:{}};h.ramGb&&FO4(h.ramGb)&&(y.staticContext.memoryTotalKbytes=(h.ramGb*1048576).toString());b.numCpu&&FO4(b.numCpu)&&(y.staticContext.cpuCores=b.numCpu);if(_.r("web_enable_adaptive_appl_signal")){b={};h=W8I();h=h.length>0?h[0]:void 0;var S,F=(S=_.CI("rses_dpj"))!=null?S:h==null?void 0:h.tick.rses_dpj,
a;S=(a=_.CI("rsef_dpj"))!=null?a:h==null?void 0:h.tick.rsef_dpj;F&&Number(F)>0&&S&&Number(S)>0&&(a=Math.ceil(Number(S)-Number(F)),a>0&&(b.loadLatency=a));b.loadLatency&&FO4(b.loadLatency)&&(y.appL=b.loadLatency.toString())}_.qi("applicationStarted",y);a_N=y;_.r("web_adaptive_repeat_ase")&&window.addEventListener("state-navigateend",dw4)}},qDY);var QYd=new _.ca("WINDOW_ON_ERROR"),mKd=new _.ca("ERROR_WEIGHT_MAPS"),vTN=new _.ca("INIT_ERROR");var baY={},huf=(baY.initialized={priority:10,callback:function(b){b.injector.resolve(vTN)()}},baY);var yrx=function(){},S5F=function(){var b=_.hj("meta_logger_impl");
b||(b=new yrx,_.HL("meta_logger_impl",b));return b},F2N=function(){S5F().csiSubscriptionKey=Q3r("meta_logging_csi_event",function(b){var h=b.timerName;
if(b=b.timelineData){_.Ua(h,{startTime:b.startTime},h);b.infos&&_.WT(b.infos,h);for(var y=_.L(Object.keys(b.ticks)),S=y.next();!S.done;S=y.next())S=S.value,_.pI(S,b.ticks[S],h)}})};
yrx.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&bZj(this.csiSubscriptionKey)};var aCf={},doq=(aCf.initialized={priority:10,callback:function(){F2N()}},aCf);var j4N=function(b,h){this.innertubeClientName=b;this.JSC$18760_prefCookie=h};
j4N.prototype.record=function(){if(_.r("web_li_record_binary_eval_tick")){var b=_.CI("rsef_dpj");var h=_.CI("rses_dpj");b=b!==void 0&&h!==void 0?Math.round(b-h):void 0;if(b!==void 0&&b>0){h=_.Wd(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var y=this.poolSize;if(!(h.valuesSeen>=1E9)){if(h.valuesSample.length<y)h.valuesSample.push(b);else{var S=Math.floor(Math.random()*(h.valuesSeen+1));S<y&&(h.valuesSample[S]=b)}h.valuesSeen+=1}_.Bd(this.storagePrefix+"-"+this.innertubeClientName,
h,2592E3);b=h.valuesSample;h=Qgy(b);b=b.length<this.poolSize?void 0:h<400?1:h<1700?2:3;b!==void 0&&(this.JSC$18760_prefCookie.set(this.cookiePrefix+this.innertubeClientName,b),this.JSC$18760_prefCookie.save())}}else _.AP(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18760_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18760_prefCookie.save()};
j4N[uN]=[U2,ns];var $oA=function(){j4N.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.z($oA,j4N);var L2d=new _.ca("PAGE_LOAD_TIME_TOKEN");var P_X=function(b){this.signal=b;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;b.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.VT(_.xP,this.disableLoggingAndSendPayload,1E4)};
P_X.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.xP.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),K22(this))};
var K22=function(b){var h=_.Ae();if(h){var y={webClientComponentsData:{components:Array.from(b.ids,function(S){return{id:S}})}};
b.ids.clear();_.rU().visualElementStateChanged(h,y)}};var ZaA=Uk({a11y:Yc8});_.oHN=p9(ZaA)(ZaA.a11y,{ephemeralActionSelector:function(b){return b.ephemeralAction||null}});var MhP=Uk({continuation:El8});var nHa=p9(MhP)(MhP.continuation,{continuationCommandSelector:function(b){return b.continuationCommand}});var XsA=new _.ca("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var RT=function(b,h){this.JSC$18789_storeWithEntities=b;this.JSC$18789_commandHandler=h;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
RT.prototype.start=function(){this.JSC$18789_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
RT.prototype.observeDownloadingEntities=function(){var b=_.wyn(this.JSC$18789_storeWithEntities.getState().entities).map(function(S){return lhI(S)});
if(b.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var h={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:YxI()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.aU(_.Mt("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18789_commandHandler.resolveCommand(h)}this.downloadingEntities=b}else if(this.downloadingEntities.length){var y=fhF(this.JSC$18789_storeWithEntities.getState().entities).map(function(S){return lhI(S)});
this.downloadingEntities.filter(function(S){return y.includes(S)}).length&&(b={openPopupAction:BLF()},this.JSC$18789_commandHandler.resolveCommand(b));
this.downloadingEntities=[]}};
RT[uN]=[$7,_.OM];var Haa;_.zi=function(b,h,y,S,F,a,P,K){this.JSC$18792_playerApiPromise=b;this.JSC$18792_commandHandler=h;this.JSC$18792_screenManager=y;this.offlineWebClientEligibility=S;this.JSC$18792_prefStorage=F;this.JSC$18792_actionRouter=a;this.entityTypeMap=P;this.JSC$18792_persistentStorePromiseAccessor=K;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
Haa=function(){var b=_.H9().resolve(_.zi),h;_.Z(function(y){if(y.nextAddress==1)return b.downloadFailureListenerBound?y.return():y.yield(b.JSC$18792_playerApiPromise,2);h=y.yieldResult;h.addEventListener("onOfflineOperationFailure",function(S){if(S.failureReason&&S.entityKey&&S.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(S.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var F=_.Pi(S.entityKey).entityId;F&&b.JSC$18792_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
F)}else if(_.r("kevlar_woffle")){F=b.JSC$18792_commandHandler;var a=F.resolveCommand;S=S.failureReason;var P=_.Mt("TRANSFER_FAILED",void 0,"Download failed");S==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(P=_.Mt("STORAGE_FULL",void 0,"Storage full"));a.call(F,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.aU(P),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
b.downloadFailureListenerBound=!0;_.g3(y)})};
_.zi.prototype.deleteVideo=function(b,h){var y=this,S,F,a;return _.Z(function(P){if(P.nextAddress==1)return P.yield(y.JSC$18792_playerApiPromise,2);S=P.yieldResult;a={offlineLoggingData:{offlineDeleteReason:(F=h)!=null?F:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return P.yield(S.queueOfflineAction(b,y.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",a),0)})};
_.zi.prototype.pauseVideoDownload=function(b){var h=this,y;return _.Z(function(S){if(S.nextAddress==1)return S.yield(h.JSC$18792_playerApiPromise,2);y=S.yieldResult;y.pauseVideoDownload(b);_.g3(S)})};
_.zi.prototype.resumeVideoDownload=function(b){var h=this,y;return _.Z(function(S){if(S.nextAddress==1)return S.yield(h.JSC$18792_playerApiPromise,2);y=S.yieldResult;return S.yield(y.resumeVideoDownload(b),0)})};
_.zi[uN]=[_.ja,_.OM,_.Le,XsA,OK,Cj,Cyb,bs];var ukx=new _.ca("DOWNLOAD_STATE_STORE_TOKEN");var OaA=function(b,h){this.JSC$18813_persistentStorePromiseAccessor=b;this.store=h;this.upliftCompletionResolver=new _.MC},rrN=function(){var b=_.H9().resolve(Nsq),h;
_.Z(function(y){switch(y.nextAddress){case 1:if(b.upliftImplPromise)return y.return(b.upliftImplPromise);_.WE(y,2);b.upliftImplPromise=thd(b);return y.yield(b.upliftImplPromise,4);case 4:b.upliftCompletionResolver.resolve();_.Lz(y,3);break;case 2:throw h=_.C$(y),b.upliftCompletionResolver.reject(h),h;case 3:return y.return(b.upliftImplPromise)}})},thd=function(b){var h,y,S;
return _.Z(function(F){switch(F.nextAddress){case 1:return _.m$("LOGGED_IN")?F.yield(b.JSC$18813_persistentStorePromiseAccessor(),2):F.return();case 2:h=F.yieldResult;if(!h)return _.pI("vdeur"),F.return();_.pI("vdeus");_.WE(F,3);return F.yield(crx(h),5);case 5:y=F.yieldResult;b.store.dispatch(ULU(y));h.observe(function(a){py4(b.store,a)});
_.Lz(F,4);break;case 3:throw S=_.C$(F),_.pI("vdeur"),S;case 4:_.pI("vdeuc"),_.g3(F)}})},crx=function(b){var h;
return _.Z(function(y){if(y.nextAddress==1)return y.yield(SOU(b),2);h=y.yieldResult;return y.return(h.reduce(function(S,F){if(!F.data||!F.key||!F.entityType)return S;S[F.entityType]||(S[F.entityType]={});S[F.entityType][F.key]=F.data;return S},{}))})};
OaA[uN]=[bs,_.nd];var Nsq;Nsq=new _.ca("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.Dq=new _.ca("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var IT=function(b,h){this.JSC$18816_persistentStorePromiseAccessor=b;this.transportService=h};
IT.prototype.refresh=function(){var b=this,h,y,S,F;return _.Z(function(a){if(a.nextAddress==1)return _.m$("LOGGED_IN")?a.yield(b.JSC$18816_persistentStorePromiseAccessor(),2):a.return();if(a.nextAddress!=3)return(h=a.yieldResult)?a.yield(e$f(h),3):a.return();if((y=a.yieldResult)&&!(Number(y.data.refreshTimestampMs||0)<(0,_.NO)()))return a.return();S={browseId:"SPaccount_downloads"};F=_.yk(mo);_.cy(b.transportService,S,F).then(function(P){var K;if(h&&(P==null?void 0:(K=P.responseContext)==null?void 0:
K.maxAgeSeconds)!==0){var n;K=(P==null?void 0:(n=P.responseContext)==null?void 0:n.maxAgeSeconds)||604800;n=String(Math.floor((0,_.NO)())+K*1E3);h.put("service:downloads_settings:fallback",new _.mE({innertubeResponse:P,refreshTimestampMs:n}))}});
_.g3(a)})};
IT[uN]=[_.Hw,_.DT];var Bw=function(b,h){this.JSC$18820_playerPromise=b;this.store=h;this.started=!1};
Bw.prototype.start=function(){var b=this,h;return _.Z(function(y){if(y.nextAddress==1)return b.started?y.return():y.yield(b.JSC$18820_playerPromise,2);h=y.yieldResult;h.addEventListener("onOrchestrationBecameLeader",b.updateIsLeader.bind(b,!0));h.addEventListener("onOrchestrationLostLeader",b.updateIsLeader.bind(b,!1));if(h.isOrchestrationLeader)b.updateIsLeader(h.isOrchestrationLeader());else{var S=new _.Gn("Function isOrchestrationLeader is undefined",{"player.isReady":h.isReady(),"player.playVideo":h.playVideo?
"defined":"undefined"});_.QT(S);b.updateIsLeader(!1)}b.started=!0;_.g3(y)})};
Bw.prototype.updateIsLeader=function(b){this.store.dispatch(_.$8({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:b}}))};
Bw[uN]=[_.ja,_.nd];var RuA=function(b,h){this.networkStatusManager=b;this.JSC$18823_prefStoragePromise=h;this.redirectsToPreload=["https://youtube.com"]},zua=function(){var b=_.H9().resolve(RuA),h,y,S,F,a,P;
_.Z(function(K){switch(K.nextAddress){case 1:return K.yield(b.JSC$18823_prefStoragePromise,2);case 2:h=K.yieldResult;if(!(y=h)){K.jumpTo(3);break}return K.yield(h.get("yt-redirect-prefetch-id"),4);case 4:y=K.yieldResult;case 3:if(y||!b.networkStatusManager.isNetworkAvailable())return K.return();S={cache:"reload",redirect:"manual"};F=_.L(b.redirectsToPreload);a=F.next();case 5:if(a.done){if(!h){K.jumpTo(0);break}return K.yield(h.set("yt-redirect-prefetch-id",!0,86400),0)}P=a.value;_.WE(K,8);return K.yield(_.S5.fetch(P,
S),10);case 10:_.Lz(K,6);break;case 8:_.C$(K);case 6:a=F.next(),K.jumpTo(5)}})};var DoF=function(b){this.JSC$18829_pageManager=b},ICx=function(b){var h=[];
jfj(["videoId","contentId"],b.JSC$18829_pageManager.data,new Set,h);return h},BsA=function(b){return ICx(b).filter(function(h){return h.contentType==="video"}).map(function(h){return h.contentId}).filter(function(h){return h!==void 0})};
DoF[uN]=[_.bM];var W2f=new _.ca("PAGE_CONTENT_EXTRACTOR_TOKEN");var Arq=function(b){b?(this.container=b,this.containerWasInjected=!0):this.containerWasInjected=!1};
Arq.prototype.openDialog=function(b,h,y){var S=this,F;return _.Z(function(a){(F=S.container)==null||F.openDialog(b,h,y);_.g3(a)})};
Arq.prototype.closeDialog=function(){var b=this,h;return _.Z(function(y){(h=b.container)==null||h.closeDialog();_.g3(y)})};
Arq.prototype.isDialogOpen=function(){var b=this,h,y;return _.Z(function(S){return S.return((y=(h=b.container)==null?void 0:h.isDialogOpen())!=null?y:!1)})};
Arq[uN]=[_.XS(y$W)];_.UoA=new _.ca("POPUP_CONTROLLER_TOKEN");var psA=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
psA.prototype.registerPanel=function(b,h){if(b){this.panelMap.set(b,h);var y=this.pendingPanelResolvers.get(b);y&&(y.resolve(h),this.pendingPanelResolvers.delete(b))}};
psA.prototype.getPanel=function(b){var h=this,y;return _.Z(function(S){return(y=h.panelMap.get(b))?S.return(y):S.return(Jrf(h,b))})};
var Jrf=function(b,h){var y,S;return _.Z(function(F){if(y=b.pendingPanelResolvers.get(h))return F.return(y.promise);S=new _.MC;b.pendingPanelResolvers.set(h,S);return F.return(S.promise)})},euF=function(b,h){psA.call(this);
var y=this;this.popupController=b;this.persistentPanelController=h;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return y.panelMap.size}}};
_.z(euF,psA);_.d=euF.prototype;_.d.getReloadContinuation=function(b){var h=this,y;return _.Z(function(S){if(S.nextAddress==1)return S.yield(h.getPanel(b),2);y=S.yieldResult;return S.return(y.getReloadContinuation())})};
_.d.showPanel=function(b){var h=this,y,S,F,a,P,K,n,X,u,O,N,t;return _.Z(function(R){if(R.nextAddress==1){y=b;S=y.identifier;F=y.panelContents;a=y.config;P=y.extras;K=y.panelUpdatableFields;n=y.updatePanelContinuationData;X=b.target;n&&h.updatePanelContinuationDatas.set(S,n);if((u=a)==null?0:(O=u.engagementPanelPopupPresentationConfig)==null?0:O.popupType)if(N=a.engagementPanelPopupPresentationConfig.popupType,X===void 0&&(X=document.body),N==="PANEL_POPUP_TYPE_PERSISTENT_SIDE_PANEL"){if(!h.persistentPanelController)return _.vX(new _.Gn("Persistent panel controller is not available.")),
R.return();var I=h.persistentPanelController;I.persistentPanelIdentifiers.has(S)||(I.persistentPanelWrapper.appendChild(I.engagementPanelElement({panelIdentifier:S},{isPersistentPanel:!0,hideDelayMs:500,overscrollContain:!0})),I.persistentPanelIdentifiers.add(S));a:switch(_.iM.currentPageSubTypeSelector(I.store.getState())){case "watch":var U="WATCH";break a;default:U="APP"}_.C_E(I,U);I.store.dispatch(GZo(!0))}else{if(N==="PANEL_POPUP_TYPE_DIALOG"||N==="PANEL_POPUP_TYPE_DROPDOWN"){I=R.return;U=h.popupController;
var p=U.openPopup;a:switch(N){case "PANEL_POPUP_TYPE_DIALOG":var e="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":e="DROPDOWN";break a;default:throw Error("uj`"+N);}return I.call(R,p.call(U,S,F,e,X))}_.vX(new _.Gn("Popup type "+N+" not supported in PanelController."))}return R.yield(h.getPanel(S),2)}t=R.yieldResult;(F||K)&&t.updatePanel(F,!1,P,K);t.showPanel(P);_.g3(R)})};
_.d.hidePanel=function(b){var h=this,y,S,F,a;return _.Z(function(P){if(P.nextAddress==1)return y=b,S=y.identifier,P.yield(h.getPanel(S),2);F=P.yieldResult;F.hidePanel();h.popupController.closePopup(S);(a=h.persistentPanelController)!=null&&a.persistentPanelIdentifiers.has(S)&&a.store.dispatch(GZo(!1));_.g3(P)})};
_.d.isVisible=function(b,h){var y=this,S;return _.Z(function(F){if(F.nextAddress==1)return h&&!y.panelMap.has(b)?F.return(!1):F.yield(y.getPanel(b),2);S=F.yieldResult;return F.return(S.isVisible())})};
_.d.updatePanel=function(b){var h=this,y,S,F,a,P,K,n,X;return _.Z(function(u){if(u.nextAddress==1){y=b;S=y.identifier;F=y.panelContents;a=y.shouldFocus===void 0?!1:y.shouldFocus;P=y.extras;K=y.panelUpdatableFields;n=y.updatePanelContinuationData;if(!F&&!K)return u.return();n&&h.updatePanelContinuationDatas.set(S,n);_.r("enable_ai_companion")&&S==="PAai_companion"&&_.tB.remove("youchat_messages_section");return u.yield(h.getPanel(S),2)}X=u.yieldResult;X.updatePanel(F,a,P,K);F&&_.r("enable_ai_companion")&&
h.registerPanelContent(S,F);_.g3(u)})};
_.d.registerPanelContent=function(b,h){b&&this.panelContentMap.set(b,h)};
_.d.unregisterPanelContent=function(b){this.panelContentMap.delete(b)};
_.d.getPanelContent=function(b){return this.panelContentMap.get(b)};
_.d.getUpdatePanelContinuationData=function(b){return this.updatePanelContinuationDatas.get(b)};
euF[uN]=[_.UoA,_.XS(_.HD)];var gHA=function(b,h){this.innertubeTransportService=b;this.JSC$18848_screenManager=h},s4A=function(b){var h;
return!((h=b.panelLoadingStrategy)==null||!h.requestTemplate)};
gHA.prototype.makeRequest=function(b){var h=this,y,S;return _.Z(function(F){switch(F.nextAddress){case 1:if(!s4A(h)){F.jumpTo(2);break}_.WE(F,3);return F.yield(_.f9(h.innertubeTransportService,b),5);case 5:return y=F.yieldResult,y?F.return(y.content):(_.QT(Error("vj")),F.return(void 0));case 3:S=_.C$(F),_.QT(S);case 2:return F.return(void 0)}})};
gHA.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
gHA.prototype.execute=function(b){var h=this,y,S,F,a,P,K,n,X,u,O;return _.Z(function(N){if(N.nextAddress==1){y=b;S=y.data;F=y.fallbackVe;a=y.parentVe;P=y.createScreenConfig;K=y.renderFn;n=y.command;h.panelLoadingStrategy=S;var t,R,I=((t=h.panelLoadingStrategy)==null?0:t.screenVe)?(R=h.panelLoadingStrategy)==null?void 0:R.screenVe:F;I&&_.w2(h.JSC$18848_screenManager,I,a,P);return(X=h.getContent())?N.yield(K(X),2):N.jumpTo(2)}return N.nextAddress!=4?s4A(h)?N.yield(h.makeRequest(n),4):N.return():(O=
u=N.yieldResult)?N.yield(K(O),0):N.return()})};
gHA[uN]=[_.DT,_.Le];var Y5N;Y5N=function(b,h){this.engagementPanelElement=b;this.store=h;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%"};
_.C_E=function(b,h){var y=b.persistentPanelContainerMap.get(h);y?y.contains(b.persistentPanelWrapper)||(b=b.persistentPanelWrapper,_.bp=!0,_.h4.set(b,!0),y.insertBefore(b,null),_.h4.delete(b),_.bp=!1):_.vX(new _.Gn("Persistent panel container not found for surface "+h+"."))};
Y5N[uN]=[Sr5,_.nd];var Ww=function(){var b=this;this.isHovered=this.shouldPreventClosingWhileHovered=!1;this.hideDelayMs=0;this.hasRegisteredHoverCallbacks=!1;this.onTargetHoverEntered=function(){b.isHovered=!0};
this.onTargetHoverLeft=function(){b.isHovered=!1};
this.onSheetHoverEntered=function(){b.isHovered=!0;var h;(h=b.hoverEnterCallback)==null||h.call(b)};
this.onSheetHoverLeft=function(){b.isHovered=!1;var h;(h=b.hoverLeaveCallback)==null||h.call(b)}};
Ww.prototype.getContainer=function(){return _.v5()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
Ww.prototype.openSheet=function(b,h,y){y=y===void 0?h:y;var S=this,F,a,P,K,n,X,u;return _.Z(function(O){switch(O.nextAddress){case 1:return F={stack:[],error:void 0,hasError:!1},_.WE(O,2,3),a=Xk,O.yield(S.isSheetOpen(),5);case 5:P=O.yieldResult;dyP(F,WBN(a));if(!P){O.jumpTo(6);break}if(!S.shouldPreventClosingWhileHovered){if(!_.r("delay_sheet_open_killswitch")){if(_.r("web_close_sheet_if_same_target_killswitch")&&h&&S.currentTarget===h)return(K=S.getContainer())==null||K.closeSheet(),O.return();S.pendingData=
{data:b,target:nba(S,h)};return O.return()}O.jumpTo(6);break}if(S.currentTarget===h)return O.return();TsA(S);GrE(S);return O.yield((n=S.getContainer())==null?void 0:n.closeSheet(),6);case 6:if(b.viewModel&&(b={viewModel:b.viewModel,sheetPosition:b.sheetPosition,expandToFullWidth:b.expandToFullWidth}),(X=S.getContainer())==null||X.openSheet(b,h,y),S.currentTarget=h,S.shouldPreventClosingWhileHovered){S.onTargetHoverEntered();var N;(N=S.currentTarget)==null||N.addEventListener("mouseenter",S.onTargetHoverEntered);
var t;(t=S.currentTarget)==null||t.addEventListener("mouseleave",S.onTargetHoverLeft);krN(S)}else S.hasRegisteredHoverCallbacks&&krN(S);case 3:_.U3(O);jqb(F);_.Jk(O,0);break;case 2:u=_.C$(O),F.error=u,F.hasError=!0,O.jumpTo(3)}})};
Ww.prototype.closeSheet=function(){var b=this;return _.Z(function(h){return b.hideDelayMs?(setTimeout(function(){return _.Z(function(y){return y.yield(Vh2(b),0)})},b.hideDelayMs),h.return()):h.yield(Vh2(b),0)})};
var Vh2=function(b){var h;return _.Z(function(y){if(y.nextAddress==1){if(b.shouldPreventClosingWhileHovered){if(b.isHovered)return y.return();TsA(b);GrE(b)}else b.hasRegisteredHoverCallbacks&&(GrE(b),b.onSheetHoverLeft());return y.yield((h=b.getContainer())==null?void 0:h.closeSheet(),2)}if(y.nextAddress!=4)return b.resetState(),!b.pendingData||_.r("delay_sheet_open_killswitch")?y.jumpTo(0):y.yield(b.openSheet(b.pendingData.data,b.pendingData.target),4);b.pendingData=void 0;_.g3(y)})};
Ww.prototype.isSheetOpen=function(){var b=this,h,y;return _.Z(function(S){return S.return((y=(h=b.getContainer())==null?void 0:h.isSheetOpen())!=null?y:!1)})};
Ww.prototype.resetState=function(){this.currentTarget=void 0;this.shouldPreventClosingWhileHovered=this.isHovered=!1;this.hideDelayMs=0;this.hasRegisteredHoverCallbacks=!1;this.hoverLeaveCallback=this.hoverEnterCallback=void 0};
var TsA=function(b){var h;(h=b.currentTarget)==null||h.removeEventListener("mouseenter",b.onTargetHoverEntered);var y;(y=b.currentTarget)==null||y.removeEventListener("mouseleave",b.onTargetHoverLeft)},krN=function(b){var h,y=(h=b.getContainer())==null?void 0:h.getSheetContainerElement();
y==null||y.addEventListener("mouseenter",b.onSheetHoverEntered);y==null||y.addEventListener("mouseleave",b.onSheetHoverLeft)},GrE=function(b){var h,y=(h=b.getContainer())==null?void 0:h.getSheetContainerElement();
y==null||y.removeEventListener("mouseenter",b.onSheetHoverEntered);y==null||y.removeEventListener("mouseleave",b.onSheetHoverLeft)},nba=function(b,h){if(!_.r("web_parent_target_for_sheets"))return h;
var y,S;return(S=(y=b.getContainer())==null?void 0:y.getParentTarget(h))!=null?S:h};var Pf=window.documentPictureInPicture;var H5f=_.bm(["dark"]),u6M=_.bm(["system-icons"]),O54=_.bm(["typography"]),N8F=_.bm(["lang"]),toF=_.bm(["style"]),onI=_.bm(["dir"]),Mo8=_.bm(["rounded-container"]),nnr=_.bm(["style"]),c3n=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],Az=function(b){this.JSC$18866_clientRoot=b;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
Az.prototype.openWindow=function(b){var h=this,y,S;return _.Z(function(F){switch(F.nextAddress){case 1:if(!Pf||!Pf||!Iq()||h.currentPipWindow)return F.return(!1);_.WE(F,2);return F.yield((S=Pf?Pf:null)==null?void 0:S.requestWindow(b),4);case 4:y=F.yieldResult;_.Lz(F,3);break;case 2:return _.C$(F),F.return(!1);case 3:if(!y)return F.return(!1);y.addEventListener("pagehide",function(){EHx(h)});
y.addEventListener("resize",h.handlePipWindowResize);r3F(y);zAU(y);I1Y(y);return F.yield(Z5q(y),5);case 5:if(!$Xr())return F.return(!1);h.currentPipWindow=y;h.JSC$18866_eventForwarder=RAM(y,h.JSC$18866_clientRoot);h.pipWindowResizeDelay=new _.R0(function(){h.currentPipWindow&&_.F8(h.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.g1(h.currentPipWindow.innerWidth,h.currentPipWindow.innerHeight)])},y);
h.pipWindowResizeDelay.start();return F.return(!0)}})};
Az.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var EHx=function(b){if(b.currentPipWindow){var h,y;(h=Pf?Pf:null)==null||(y=h.window)==null||y.close();b.currentPipWindow.removeEventListener("resize",b.handlePipWindowResize);var S;(S=b.pipWindowResizeDelay)==null||S.dispose();b.pipWindowResizeDelay=void 0;var F;(F=b.JSC$18866_eventForwarder)==null||F.stop();b.JSC$18866_eventForwarder=void 0;h=_.L(b.onCloseCallbacks);for(y=h.next();!y.done;y=h.next())y=y.value,y();b.onCloseCallbacks=[];b.currentPipWindow=null}};
Az.prototype.getWindow=function(){return this.currentPipWindow};
var iaA=function(b,h){var y;(y=b.onCloseCallbacks)==null||y.push(h)};
Az.prototype.pictureInPictureSupported=function(){return!(!Pf||!Pf)&&Iq()};
_.tm.Object.defineProperties(Az.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
Az[uN]=[OVo];var fCf=new _.ca("PICTURE_IN_PICTURE_CONTROLLER");var DXU=function(b,h){this.lengthY=this.lengthX=0;this.lengthX=h.x-b.x;this.lengthY=h.y-b.y};var wsX=function(){},DzE=function(b,h){var y;
(y=b.headerElement)==null||y.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:h}))};var lC2=function(){};
lC2.prototype.openPopup=function(b,h,y,S){var F=this,a;return _.Z(function(P){if(!F.container)return P.return();a={openPopupAction:{popup:h,popupType:y,uniqueId:b}};return P.return(F.container.handleOpenPopupAction(a,S))})};
lC2.prototype.closePopup=function(b){this.container&&this.container.closePopup(b)};var q5E=function(){this.openTunnels=new Map},PLI=function(b,h,y){if(p68(y)){var S=_.jh(y,"gclid");
y={handleEvent:function(K){h&&!h.closed&&typeof h.postMessage==="function"&&K&&K.origin&&K.source===h&&K.data&&K.data.action==="gcl_setup"&&h.postMessage(Object.assign({},{action:"gcl_transfer"},S&&{gclid:S},{gadSource:2}),K.origin)}};
for(var F=_.L(b.openTunnels),a=F.next();!a.done;a=F.next()){var P=_.L(a.value);a=P.next().value;P=P.next().value;if(a.closed)try{window.removeEventListener("message",P),b.openTunnels.delete(a)}catch(K){_.QT(K)}}h&&b.openTunnels.size<15&&(b.openTunnels.set(h,y),window.addEventListener("message",y))}};var xoY=function(){this.clientParams=new Map},jRN=function(b){for(var h=_.L(b.clientParams.keys()),y=h.next();!y.done;y=h.next())y=y.value,y.startsWith("yt-mini-app-share")&&b.clientParams.delete(y)};var Q4A=function(b,h){_.ED.call(this);var y=this;this.shortsController=b;this.storeWithShorts=h;b=_.Fq(this.storeWithShorts,_.AcF,function(S){if(S){var F,a=(F=y.shortsController.getRoot())==null?void 0:F.getPlayer(),P;(F=(P=y.shortsController.alternativePlayerContainerElement)==null?void 0:P.getPlayerContainer())&&(a==null||a.appendTo(F))}else{var K;P=(K=y.shortsController.alternativePlayerContainerElement)==null?void 0:K.getPlayerContainer().querySelector("#player");F=y.shortsController.activeIndex;
(K=(a=y.shortsController.getRoot())==null?void 0:a.querySelector('ytd-reel-video-renderer[id="'+F+'"] #player-container'))&&(P==null||P.appendTo(K,void 0,!0))}});
this.addOnDisposeCallback(b)};
_.z(Q4A,_.ED);var Ug=function(b,h,y,S){var F=this;this.storeWithShorts=b;this.ephemeralResponseStore=h;this.innertubeTransportService=y;this.innertubeTransportLoader=S;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.NG(_.jD);this.isShortsPipActive=_.NG(_.$G);this.nextReelVe=_.Kh(56921);this.prevReelVe=_.Kh(56922);this.backButtonVe=_.Kh(22156);this.TEST_ONLY={getActiveModules:function(){return F.activeModules}}},moP=function(b){b.unsubscribeFromStore=
_.Fq(b.storeWithShorts,_.Waj,function(h){b.initOrDisposeActiveModules(h);
!h&&b.storeWithShorts.getState().shorts.isFullscreen&&(_.bE(document.documentElement),b.storeWithShorts.dispatch(_.iNo(!1)))});
b.initOrDisposeActiveModules(_.Waj(b.storeWithShorts.getState()))},MGY,nTf,vHq;
Ug.prototype.initOrDisposeActiveModules=function(b){b?this.activeModules.push(new Q4A(this,this.storeWithShorts)):(_.H0(this.activeModules),this.activeModules.length=0)};
Ug.prototype.registerRootElement=function(b){this.rootElement=b;moP(this)};
Ug.prototype.getRoot=function(){return this.rootElement};
Ug.prototype.setActiveIndex=function(b){this.activeIndex=b};
_.LnA=function(b,h){var y,S,F,a,P,K,n;return _.Z(function(X){switch(X.nextAddress){case 1:return y=new G7,(S=y.JSC$14363_getStoreKey(h))&&b.ephemeralResponseStore.has(S)?X.yield(b.ephemeralResponseStore.get(S),7):X.yield(vHq(b,h),4);case 4:F=X.yieldResult;if(!S){X.jumpTo(3);break}a=Lh(F,3600);return X.yield(b.ephemeralResponseStore.put(S,new _.mE(a)),3);case 7:F=(P=X.yieldResult)==null?void 0:_.de(P);case 3:return((K=F)==null?0:K.replacementEndpoint)&&(n=_.c(F.replacementEndpoint,_.cd))&&F.sequenceContinuation&&
(n.sequenceParams=F.sequenceContinuation),X.return(F)}})};
MGY=function(b,h){h=(new ks).JSC$14363_getStoreKey(h);return!!h&&b.ephemeralResponseStore.has(h)};
nTf=function(b,h,y){var S,F,a,P,K;_.Z(function(n){if(n.nextAddress==1){S=new ks;F=S.JSC$14363_getStoreKey(h);if(!F)return n.return();if(y.reelWatchSequenceResponse)return a=Lh(y.reelWatchSequenceResponse,3600),b.ephemeralResponseStore.put(F,new _.mE(a)),n.jumpTo(0);if(!b.ephemeralResponseStore.has(F))return n.jumpTo(0);K=y;return n.yield(b.ephemeralResponseStore.get(F),4)}K.reelWatchSequenceResponse=(P=n.yieldResult)==null?void 0:_.de(P);_.g3(n)})};
vHq=function(b,h){var y=y===void 0?{}:y;var S,F,a;return _.Z(function(P){switch(P.nextAddress){case 1:if(b.innertubeTransportService){S=b.innertubeTransportService;P.jumpTo(2);break}if(!b.innertubeTransportLoader){_.v4(Error("xj"));P.jumpTo(2);break}return P.yield(b.innertubeTransportLoader(),4);case 4:S=P.yieldResult;case 2:return P.yield((F=S)==null?void 0:_.f9(F,h,y),5);case 5:return a=P.yieldResult,P.return(a)}})};
_.tm.Object.defineProperties(Ug.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
Ug[uN]=[yWd,_.QQ,_.XS(_.DT),_.XS(zDb)];_.blN=new _.ca("STORAGE_MANAGER_TOKEN");var yII=["touchmove","scroll"];var hrF=!1;var YOf=!1;var htY={onSpanEnd:function(b){b.parentId==null&&(hrF||(gnF(),setInterval(gnF,6E5),hrF=!0),G5n(b,"web_tracing_action"))}};var fgF=URL.createObjectURL;var vn8,yiA={traceAllComponents:_.r("web_tracing_all_components"),exportToCsi:_.r("web_tracing_export_to_csi"),enabledSpansArray:_.c9("web_tracing_enabled_spans"),exportToDevTools:_.r("web_tracing_export_to_devtools"),maxBreadcrumbs:_.tj("tel_max_breadcrumbs",0)};vn8=new i5n(yiA);var bJN=_.r("web_shorts_enable_tracing");var SWx=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},F$a;
SWx.prototype.enqueue=function(b,h){h===1?this.currentPersistentToast=b:this.queue.push(b);this.openToast()};
SWx.prototype.openToast=function(){var b;(b=this.currentToast)!=null&&b.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.py=new _.ca("TOAST_MANAGER_TOKEN");var abY=new _.ca("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var dUA=new _.ca("VIEW_TRANSITION_COORDINATOR_TOKEN");var jea=function(b){this.config=b;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;b=_.L(b.transitionConfigs);for(var h=b.next();!h.done;h=b.next())h=_.L(h.value).next().value,this.transitionTasksMap.set(h,[])};
jea.prototype.registerElement=function(b,h,y){y=y===void 0?!1:y;for(var S=_.L(Object.keys(h)),F=S.next(),a={};!F.done;a={viewTransitionName:void 0},F=S.next()){F=F.value;a.viewTransitionName=h[F];var P=this.elementTasksMap.get(b),K=void 0;if((K=P)==null?0:K.has(F)){_.mm(new _.Gn("Element already registered for transition",b.tagName,F));break}P=P||new Map;P.set(F,{beforeTransition:function(n){return function(){b.style.viewTransitionName=n.viewTransitionName}}(a),
afterTransition:function(){b.style.viewTransitionName&&(b.style.viewTransitionName="")},
runOnce:y});this.elementTasksMap.set(b,P)}};
_.To=function(b,h){var y=b.elementTasksMap.get(h);y&&(y.clear(),y.size===0&&b.elementTasksMap.delete(h))};
jea[uN]=[abY];var L$F=_.T(function(b){var h=_.ZR("yt-expandable-metadata-header-view-model"),y=_.Zv(function(S){_.Vd(_.rU(),{data:b.data()});if(!_.ph(_.UF(S),h.value,["A".toString(),"BUTTON".toString()])){var F;(F=b.expandedCallback)==null||F.call(b,!1)}});
return _.M("yt-expandable-metadata-header-view-model",{el:h,class:"ytExpandableMetadataHeaderViewModelHost"},_.M(_.H,{cond:function(){return b.expanded()},
then:function(){return _.M("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":y},_.M("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.M(_.H,{cond:function(){return b.data().expandedTitleImage},
then:function(S){return _.M("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.M(_.mI,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:S}))}}),_.M("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.M("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.M(_.zv,{text:function(){return b.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.M(_.zv,{text:function(){return b.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.M(_.zv,{text:function(){return b.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.M("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.M(_.rC,{data:function(){return b.data().infoButton}},{buttonViewModel:_.EG}),_.M(_.rC,{data:function(){return b.data().collapseButton}},{buttonViewModel:function(S){return _.M(_.EG,{data:S.data,
onClick:function(){var F;(F=b.expandedCallback)==null||F.call(b,!1)}})}})))},
else:function(){return _.M($Ud,Object.assign({},b))}}))},"tg"),PnE=_.T(function(b){return _.M("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.M(_.H,{cond:function(){return b.data().collapsedLabelImage},
then:function(h){return _.M("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.M(_.mI,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:h,alt:""}))}}),_.M(_.zv,{text:function(){return b.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"ug"),$Ud=_.T(function(b){return _.M("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.Zv(function(){_.Vd(_.rU(),{data:b.data()});var h;(h=b.expandedCallback)==null||h.call(b,!0)})},_.M("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.M(_.H,{cond:function(){return b.data().collapsedImage},
then:function(h){return _.M("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.M(_.mI,{height:20,preserveHeight:!0,preserveWidth:!0,data:h,alt:""}))}}),_.M(_.H,{cond:function(){return b.data().showLeadingCollapsedLabel},
then:function(){return _.M(PnE,Object.assign({},b))}}),_.M("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.M(_.zv,{text:function(){return b.data().collapsedTitle}}))),_.M("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.M(_.H,{cond:function(){return!b.data().showLeadingCollapsedLabel},
then:function(){return _.M(PnE,Object.assign({},b))}}),_.M(_.rC,{data:function(){return b.data().infoButton}},{buttonViewModel:_.EG}),_.M(_.rC,{data:function(){return b.data().expandButton}},{buttonViewModel:function(h){var y=h.data;
return _.M(_.EG,{data:y,onClick:function(){_.Vd(_.rU(),{data:y});var S;(S=b.expandedCallback)==null||S.call(b,!0)}})}})))},"vg");_.K$f=_.T(function(b){var h=_.L(_.ya(function(){return b.data().initiallyExpanded})),y=h.next().value,S=h.next().value,F,a=(F=_.H9().resolve(_.XS(_.cC)))==null?void 0:F(),P=function(){var K=b.data().colorData;
if(K)return a?K==null?void 0:K.darkColorPalette:K==null?void 0:K.lightColorPalette};
return _.M("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.n9({"background-color":function(){var K=P();return(K==null?0:K.section2Color)?_.CR(K.section2Color):""}})},_.M(_.rC,{data:function(){return b.data().header}},{expandableMetadataHeaderViewModel:function(K){return _.M(L$F,{data:K.data,
expanded:function(){return!!y()},
expandedCallback:function(n){S(n)}})}}),_.M(_.H,{cond:function(){return y()},
then:function(){return _.M("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.M(_.rC,{data:function(){return b.data().expandedContent}},{horizontalShelfViewModel:function(K){return _.M(_.AN,{data:K.data,
includeMargin:!0,forceNarrowLayout:!0,palette:P})},
videoSummaryContentViewModel:function(K){return _.M(SZ7,{data:K.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(K){return _.M(_.vQ,{data:K.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(K){return _.M(_.zT,{data:K.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.M(_.rC,{data:function(){return b.data().expandedBottomButtons}},{buttonViewModel:function(K){return _.M("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.M(_.EG,{data:K.data}))}}))}}))},"wg");var ZlX=_.T(function(b){var h=b.text;var y=b.marqueeSpacing;var S=b.scrollDelay;var F=b.scrollDuration;var a=b.enableMarqueeScroll;b=b.large;var P=_.L(_.pa(!1,void 0,"WyNYFf")),K=P.next().value,n=P.next().value,X=_.L(_.pa(0,void 0,"OoTdhe"));P=X.next().value;var u=X.next().value,O=_.ZR("marquee-scroll");X=_.ZR("div");var N=_.ZR("span"),t=_.H9().resolve(_.fh);_.Qi(function(){if(a()){var U=N.value.getBoundingClientRect().width,p=O.value.getBoundingClientRect().width;if(U>p){var e=(t==="ltr"?-1:1)*(U+
(y?y():16));Promise.resolve().then(function(){n(!0);u(e)})}}},"dv0Anf");
var R={},I={};return _.M("marquee-scroll",{class:_.P2("ytMarqueeScrollHost",(R.ytMarqueeScrollHostLarge=b,R)),el:O},_.M("div",{id:"marquee-scroll-inner-container",class:_.P2("ytMarqueeScrollInnerContainer",(I.ytMarqueeScrollAnimationEnabled=function(){return K()},I)),
el:X,style:_.n9({gap:y?(0,_.c$)(y):"16px","animation-duration":F?$sN(F):"16s","animation-delay":S?$sN(S):"3s","--marquee-translate":(0,_.c$)(P)})},_.M("span",{el:N,dir:"auto"},_.M(_.zv,{text:h,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.M(_.H,{cond:K,then:function(){return _.M("span",{"aria-hidden":"true",dir:"auto"},_.M(_.zv,{text:h,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"yg");_.oZx=_.T(function(b){var h=b.data;var y=b.overlayDensity;b=_.Zv(function(){h().onTapCommand&&_.Va(h().onTapCommand);return!1});
var S=_.IjY(),F=function(){return(y==null?void 0:y())===1?22:16},a={};
return _.M("reel-sound-metadata-view-model",{class:_.P2("ytReelSoundMetadataViewModelHost",(a.ytReelSoundMetadataViewModelHostLarge=function(){return(y==null?void 0:y())===1},a)),
"on:click":b,tabindex:0,role:"button","on:keydown":S},_.M("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.M(_.H,{cond:function(){return h().musicIcon},
then:function(P){return _.M(_.mI,{data:P,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:F})}}),_.M("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.M(ZlX,{text:function(){return h().soundMetadata},
enableMarqueeScroll:function(){return!!h().enableMarqueeScroll},
large:function(){return(y==null?void 0:y())===1}}))))},"zg");var MYd,nZx,u5A,Ngf,riq,Old,zrx,RrX;MYd=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];nZx=_.tj("wil_icon_max_concurrent_fetches",Infinity);
u5A=function(b,h,y){var S=this;this.iconSet=b;this.appDirection=h;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.S5.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.r("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.r("wil_icon_network_first");this.renderWhenIdle=_.r("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.r("wil_icon_load_immediately");this.isPurging=!1;b=function(){S.cacheStorageAvailable&&(S.cacheStorageAsync=_.S5.caches.open("yt-icons").then(function(a){return S.cacheStorageSync=a}).catch(function(){S.cacheStorageAvailable=!1}))};
y=(y==null?void 0:y())||{};y=_.L(Object.entries(y));for(h=y.next();!h.done;h=y.next()){var F=_.L(h.value);h=F.next().value;F=F.next().value;F=UW(F);X4N(F);this.iconCache[h]=F.cloneNode(!0)}this.isPurging=HlP(this);this.isPurging instanceof Promise?this.isPurging.then(b):b()};
_.Dgq=function(b,h){var y=b.resolveIcon(h);return y?b.renderingMode===1?Old(b,y,b.renderingMode):(h=b.iconCache[y.url])?(h=h.cloneNode(!0),Ngf(b,h),Old(b,y,b.renderingMode,h)):_.tYX(b,y).then(function(S){var F=S?0:1;Ngf(b,S);return Old(b,y,F,S)}):(_.mm(new _.Gn("Icon not found",{iconShape:h})),function(){})};
Ngf=function(b,h){if(h){b.counter+=1;b="_yt"+b.counter;h=[h].concat(_.f$(h.getElementsByTagName("*")));h=_.L(h);for(var y=h.next();!y.done;y=h.next())if(y=y.value,y.tagName==="style"&&y.textContent)y.textContent=riq(y.textContent,b,!0);else for(var S=_.L(y.attributes),F=S.next();!F.done;F=S.next()){F=F.value;F.name==="id"&&(F.value+=b);["mask","fill","clip-path"].includes(F.name)&&(F.value=riq(F.value,b));if(F.name==="style"){var a=y.style;try{a.cssText=riq(a.cssText,b,!0)}catch(u){var P=void 0,K=
void 0,n=void 0,X=void 0;Jz({error:((P=u)==null?void 0:(n=(K=P).toString)==null?void 0:n.call(K))||"",el:y.outerHTML,style:!!a,cssText:(X=a)==null?void 0:X.cssText})}}F.name==="xlink:href"&&(F.value=F.value.replace(/#(.*)/,"#$1"+b))}}};
riq=function(b,h,y){var S=/url\(["']?#(.*?)["']?\)/;(y===void 0?0:y)&&(S=/url\(["']?#(.*?)["']?\)/g);return b.replace(S,"url(#$1"+h+")")};
Old=function(b,h,y,S){return function(F,a){var P;var K=Object.assign({},{iconWidth:h.size+"px",iconHeight:h.size+"px",iconDisplay:"block"},a,{iconColor:(P=a==null?void 0:a.iconColor)!=null?P:"currentcolor"});P=_.gB("DIV");a=K.iconColor;var n=K.iconFilter;K="width: "+K.iconWidth+"; height: "+K.iconHeight+"; display: "+K.iconDisplay+";";n&&(K+=" filter: "+n+";");y===0&&(K+=" fill: "+a+";");y===1&&(n=h.url,K+=" -webkit-mask: url("+n+") no-repeat center / cover; mask: url("+(n+") no-repeat center / cover; background-color: ")+
a);h.allowMirroring&&b.appDirection==="rtl"&&(K+=" transform: scale(-1, 1); transform-origin: center center;");P.setAttribute("style",K);y===0&&S&&P.appendChild(S);F.appendChild(P)}};
_.tYX=function(b,h){var y,S,F;return _.Z(function(a){y=function(P){return yx(P)};
S=h.url;if(!ci2(S))throw Error("Aj");F=RrX(b,S);return a.return(F.then(function(P){return P.clone().text()}).then(function(P){var K=y(P);
P=h.size;var n=_.gB("DIV");_.M5(n,K);K=_.sD(n.firstElementChild!==void 0?n.firstElementChild:_.XB7(n.firstChild,!0));P=X4N(K,P);b.iconCache[S]=P.cloneNode(!0);delete b.responsePromises[S];return P}).catch(function(){}))})};
zrx=function(b){var h,y=(h=b.requestAninmationFrameResolver)==null?void 0:h.promise;y||(b.requestAninmationFrameResolver=new _.MC,y=b.requestAninmationFrameResolver.promise,_.S5.requestAnimationFrame(function(){var S;(S=b.requestAninmationFrameResolver)==null||S.resolve();b.requestAninmationFrameResolver=null}));
return y};
RrX=function(b,h){var y,S;return _.Z(function(F){if(F.nextAddress==1)return b.waitForAnimationFrame?F.yield(zrx(b),2):F.jumpTo(2);y=b.responsePromises[h];y||(S=function(){var a,P,K;return _.Z(function(n){switch(n.nextAddress){case 1:if(!b.cacheStorageAvailable){a=void 0;n.jumpTo(2);break}if(P=b.cacheStorageSync){n.jumpTo(3);break}return n.yield(b.cacheStorageAsync,4);case 4:P=n.yieldResult;case 3:a=P;case 2:return K=a,b.isNetworkFirstStrategy?n.return(b.fetchAndUpdateCache(h,K).catch(b.getCacheStorageResponse.bind(b,
h,K))):n.return(b.getCacheStorageResponse(h,K).catch(b.fetchAndUpdateCache.bind(b,h,K)))}})},y=b.renderWhenIdle?new Promise(function(a,P){_.VT(_.xP,function(){S().then(a).catch(P)},10)}):S(),b.responsePromises[h]=y);
return F.return(y.catch(function(a){delete b.responsePromises[h];Jz({error:(a==null?0:a.toString)?a.toString():"",url:h});throw a;}))})};
u5A.prototype.fetchAndUpdateCache=function(b,h){var y=this;return _.Z(function(S){return S.return(DUX(y,b).then(function(F){IbA(y,b,F,h);return F}))})};
var DUX=function(b,h){var y;return _.Z(function(S){if(b.numFetches<nZx)return b.numFetches+=1,S.return(BgA(b,h).finally(function(){--b.numFetches;if(Object.keys(b.queuedResponseResolvers).length){var F=Object.keys(b.queuedResponseResolvers)[0],a=b.queuedResponseResolvers[F];delete b.queuedResponseResolvers[F];a.resolve(DUX(b,F))}}));
y=new _.MC;b.queuedResponseResolvers[h]=y;return S.return(y.promise)})},BgA=function(b,h,y){y=y===void 0?2:y;
var S;return _.Z(function(F){S={credentials:"same-origin",priority:"low"};return F.return(_.S5.fetch(h,S).then(function(a){return a.ok?a:Promise.reject(Error("Bj`"+a.status+"`"+a.statusText))}).catch(function(a){if(y>0)return BgA(b,h,y-1);
throw a;}))})},IbA=function(b,h,y,S){_.Z(function(F){return S?F.return(new Promise(function(a){_.VT(_.xP,function(){var P,K;
return _.Z(function(n){switch(n.nextAddress){case 1:if(!b.isNetworkFirstStrategy){P=void 0;n.jumpTo(2);break}return n.yield(S.match(h).catch(function(){}),3);
case 3:P=n.yieldResult;case 2:if(K=P){n.jumpTo(4);break}return n.yield(S.put(h,y.clone()).catch(function(X){Jz({error:(X==null?0:X.toString)?X.toString():"",url:h})}),4);
case 4:a(),_.g3(n)}})},50)})):F.return()})};
u5A.prototype.getCacheStorageResponse=function(b,h){return _.Z(function(y){return h?y.return(h.match(b).then(function(S){return S&&S.ok?S:Promise.reject()})):y.return(Promise.reject())})};
var X4N=function(b,h){h===void 0||b.getAttribute("viewBox")||b.setAttribute("viewBox","0 0 "+h+" "+h);b.setAttribute("focusable","false");b.setAttribute("aria-hidden","true");h=_.r("killswitch_remove_icon_fill_color");b.getAttribute("fill")!=="currentcolor"&&b.getAttribute("fill")!=="currentColor"||h||b.removeAttribute("fill");try{b.style.pointerEvents="none",b.style.display="inherit",b.style.width="100%",b.style.height="100%"}catch(F){var y;Jz({error:((y=F)==null?0:y.toString)?F.toString():""});
try{b.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(a){var S;Jz({error:((S=a)==null?0:S.toString)?a.toString():""})}}return b},ci2=function(b){for(var h=_.L(MYd),y=h.next();!y.done;y=h.next())if(b.startsWith(y.value)&&b.endsWith(".svg"))return!0;
return!1};
u5A.prototype.resolveIcon=function(b){return this.iconSet.resolveIcon(b)};
var Jz=function(b){_.vX(new _.Gn("Error in IconManager",b))},HlP=function(b){if(_.r("wil_icons_cache_purge_killswitch"))return!1;
try{var h=_.S5.localStorage}catch(a){return!1}if(!h||!b.cacheStorageAvailable)return!1;var y=function(a){try{var P;(P=h)==null||P.setItem("yt-icons-last-purged",a.toString())}catch(n){var K;Jz({error:((K=n)==null?0:K.toString)?n.toString():""})}},S=Number(h.getItem("yt-icons-last-purged"));
if(!S)return S=new Date,S=S.setDate(S.getDate()-Math.floor(Math.random()*90+1)),y(S),!1;if(function(a,P){a=new Date(a);P=new Date(P);return P.getMonth()-a.getMonth()+12*(P.getFullYear()-a.getFullYear())}(S,Date.now())<3)return!1;
try{return _.S5.caches.delete("yt-icons").then(function(a){a&&y(Date.now());return a}).catch(function(){return!1}).finally(function(){b.isPurging=!1})}catch(a){var F;
Jz({error:((F=a)==null?0:F.toString)?a.toString():""});return!1}};
u5A[uN]=[Vwd,_.fh,_.XS(fFA)];_.W$f=function(b,h){this.iconManager=b;this.iconsToFetch=h};
_.W$f[uN]=[_.MJ,_.XS(i$Y)];var AiA=function(){};var UUq=function(b,h,y){this.requestKey=b;this.iXM=h;this.lqL=y;this.ham=function(){return new XMLHttpRequest};
this.s4x=void 0;this.z8R=[]};
UUq.prototype.getLatestChallengeResponse=function(){return this.lqL};
var NHN=function(b,h,y){var S,F,a,P;return _.Z(function(K){if(K.nextAddress==1){_.Ua("attestation_challenge_fetch");_.pI("att_fs",void 0,"attestation_challenge_fetch");if(!b.s4x)throw new _.xy(9,"Missing fetcher");return K.yield(b.s4x(h,y),2)}S=K.yieldResult;a=(F=S)==null?void 0:F.bgChallenge;if(!a)throw new _.xy(15,"Missing field");b.lqL=S;b.z8R.forEach(function(n){n(S)});
P=WTn(a);_.pI("att_fc",void 0,"attestation_challenge_fetch");AL("attestation_challenge_fetch");return K.return(P)})},E0a=function(b,h){var y,S,F,a,P;
return _.Z(function(K){switch(K.nextAddress){case 1:y=new IY(100,3E5,.25,2),S=void 0;case 2:if(!(y.currBackoffCount_<10)){K.jumpTo(4);break}_.WE(K,5);if(!(y.currBackoffCount_>0)){K.jumpTo(7);break}return K.yield(Fef(y.getValue()),7);case 7:return K.yield(p4X(b,h),9);case 9:return F=K.yieldResult,K.return(F);case 5:a=_.C$(K);a instanceof _.xy?S=a:(P=a instanceof Error?a.message:"Unknown",S=new _.xy(9,P));W27(y);K.jumpTo(2);break;case 4:if(S)throw S;throw new _.xy(9,"Unknown error");}})},p4X=function(b,
h){h=$lW(Lwb(new jA5,h),b.requestKey);
var y=new _.MC,S=b.ham();S.open("POST",b.iXM);S.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");S.setRequestHeader("Content-Type","application/json+protobuf");S.onload=function(){if(_.u8k(S)){var F=Oz8(S.responseText);y.resolve(F)}else y.reject(new _.xy(_.HnI(_.RA(S)),S.statusText))};
S.onerror=function(){y.reject(new _.xy(_.HnI(_.RA(S)),S.statusText))};
S.send(h.serialize());return y.promise};var erE=function(b){this.networkStatusManager=b;this.isDownloaded=Cb4===void 0?function(){return!1}:Cb4;
this.isReady=!1;this.jGj=JiN(this)},JiN=function(b){var h;
return _.Z(function(y){if(y.nextAddress==1)return y.yield(Qey(),2);if(y.nextAddress!=3)return h=y.yieldResult,y.yield(p0a(h),3);b.dJ=y.yieldResult;da4(b.dJ).then(function(){b.isReady=!0});
return y.return(b.dJ)})},CnA=function(b,h,y){b.dJ?(b=b.dJ.cSO({yn:y,
wsI:!0,gkt:!0}),h.serviceIntegrityDimensions={poToken:b}):_.QT(Error("Dj"))};
erE.prototype.processContext=function(b){var h=this;if(!b.input.match(_.yk(Via)))return _.AT();var y=b.innerTubeRequest,S=y.videoId;return!S||this.isDownloaded(y)||this.networkStatusManager&&!this.dJ&&!this.networkStatusManager.isNetworkAvailable()||_.r("webpo_exit_on_net_err")&&!this.dJ&&(window.bgens===1||window.bgens===3)?_.AT():this.dJ?this.isReady?(CnA(this,y,S),_.AT()):new WA(da4(this.dJ).then(function(){CnA(h,y,S)})):new WA(this.jGj.then(function(F){return _.Z(function(a){if(a.nextAddress==
1)return a.yield(da4(F),2);
CnA(h,y,S);_.g3(a)})}))};var gZA=new _.ca("WEB_PO_CONTEXT_PROCESSOR");var seE=function(b,h){var y=this;this.iB1=0;var S;this.aJX=(S=h==null?void 0:h.aJX)!=null?S:window;this.networkStatusManagerPromise=h==null?void 0:h.networkStatusManagerPromise;var F;this.requestKey=(F=h==null?void 0:h.requestKey)!=null?F:_.rH("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var a;this.xGz=(a=h==null?void 0:h.xGz)!=null?a:function(n){return new Fi(n)};
var P;S=(P=h==null?void 0:h.hsm)!=null?P:function(n,X,u){return new UUq(n,X,u)};
this.bgChallenge=WTn(b.bgChallenge);this.ttlSeconds=AMf(qD(b.challenge||""));this.q1=S(this.requestKey,_.r("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.S5.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",b);this.kKu=h==null?void 0:h.kKu;aZf(this.q1);var K;this.phL=(K=h==null?void 0:h.phL)!=null?K:function(n){_.W3(y.aJX.document,"visibilitychange",
function(){y.aJX.document.visibilityState==="visible"&&n()})}},TgX=function(b){if(!b.vm){var h={maxAttempts:5,
f06:b.ttlSeconds*1E3};joY(b.aJX);b.vm=b.xGz({q1:b.q1,gRB:{disable:_.r("html5_web_po_disable_remote_logging"),jF:"aGIf",f7u:op5("html5_web_po_experiment_ids"),x6m:_.r("wpo_dis_lfdms")?0:1E3,xxi:function(S){var F=fxa.get(S);F||(F=new ibe(S),F=new JW(F),fxa.set(S,F));return F}},
eHg:h,apu:b.bgChallenge,hHl:$aI});b.iB1=Date.now();X9e(b.vm,function(){b.iB1=Date.now()});
b.aJX.bgevmc={p:function(){var S;(S=b.vm)==null||S.pause()},
r:function(){var S;(S=b.vm)==null||S.resume()},
cr:function(){var S,F;return(F=(S=b.vm)==null?void 0:S.checkForRefresh())!=null?F:Promise.resolve()}};
hpM(b.vm,function(){return _.Z(function(S){return S.return(YWP(b))})});
var y=b.oRo.bind(b);b.networkStatusManagerPromise&&b.ttlSeconds>0&&b.networkStatusManagerPromise.then(function(S){S.listen("publicytnetworkstatus-online",y)});
b.phL(y)}};
seE.prototype.oRo=function(){if(Date.now()>this.iB1+this.ttlSeconds*1E3){var b;(b=this.vm)==null||n0o(b)}};
var YWP=function(b){if(b.pat)return b.pat;if(!b.vm)throw Error("Ej");b.pat=new LG({vm:b.vm,q1:b.q1,spq:!0,onError:$aI,eHg:b.kKu});return b.pat},PTf=function(b,h){b=new seE(b,h);
TgX(b);(h==null?0:h.jhV)||YWP(b)};var Gw2=_.oHN.ephemeralActionSelector,kwf=function(b,h){this.store=b;this.queue=[];h==null||h.addEventListener("yt-navigate-start",this.reset.bind(this))};
kwf.prototype.enqueue=function(b){var h=b.command,y=b.durationMs,S=b.elementToFocus;var F=b.label;var a=b.elementToFocus;b.command?F=_.Mt("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:F,shortcut:_.Mt("SHIFT_PLUS_ENTER")}):a&&(b=F+". "+_.Mt("SHIFT_PLUS_ENTER")+" for more information.",F=_.Mt("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:F,shortcut:_.Mt("SHIFT_PLUS_ENTER")},b));y={announcement:F,durationMs:y!=null?y:8E3};h?y.command=h:S&&(S.classList.add("ephemeral-action-focusable-element"),y.selector=S.tagName+
".ephemeral-action-focusable-element");this.queue.push(y);VYa(this)};
kwf.prototype.activate=function(b){var h=Gw2(this.store.getState());if(h){if(h==null?0:h.command)_.TK(h.command),this.store.dispatch(slW(null));if(h==null?0:h.selector)h=document.querySelector(h.selector),_.v0r(h);b.preventDefault()}};
var VYa=function(b){if(!Gw2(b.store.getState())&&b.queue.length){var h=b.queue.shift();h&&(b.previousAnnouncement===h.announcement&&(h.announcement+="\u00a0"),b.store.dispatch(slW(h)),b.previousAnnouncement=h.announcement,b.JSC$18988_timeoutId=setTimeout(function(){if(h.selector){var y;(y=document.querySelector(h.selector))==null||y.classList.remove("ephemeral-action-focusable-element")}b.store.dispatch(slW(null));VYa(b)},h.durationMs))}};
kwf.prototype.reset=function(){this.JSC$18988_timeoutId&&clearTimeout(this.JSC$18988_timeoutId);this.store.dispatch(slW(null));this.queue.length=0;this.JSC$18988_timeoutId=void 0};
kwf[uN]=[_.nd,_.XS(_.QI)];_.ez=new _.ca("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var EZf=new _.ca("AUTH_SERVICE_TOKEN");var o_n=_.bm(["about:blank"]),ZJy;var ilX=new _.ca("API_IFRAME_TOKEN");var r95;r95=new _.ca("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.fbf=new _.ca("MISC_UI_SHARED_FLAGS_TOKEN");var w4A=function(){};
w4A.prototype.getFlag=function(b){if(b.configType!==2)throw Error("Fj");return lbY(b)};
var lbY=function(b){switch(b.flagType){case "bool":return _.r(b.flagName);case "int":return _.YW(_.tj(b.flagName));case "double":return _.tj(b.flagName);case "string":return _.rH(b.flagName);case "int32_list":return op5(b.flagName);case "int64_list":return op5(b.flagName).map(function(h){return _.YW(h)});
case "string_list":return _.c9(b.flagName);default:throw Error("Gj");}};var Cy=function(b,h,y){h=h===void 0?{}:h;Sy.call(this,y===void 0?"uninitialized":y);this.env=b;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}];h.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=h.shouldWaitOnAsyncImmediate)};
_.z(Cy,Sy);Cy.prototype.init=function(b){var h=this,y;return _.Z(function(S){if(S.nextAddress==1)return h.processPluginOptions.shouldWaitOnAsyncImmediate?S.yield(b(h.env),2):(b(h.env),S.jumpTo(2));if(S.nextAddress!=4)return h.jobSet?S.yield(h.jobSet.completedResolver.promise,4):S.jumpTo(4);y=_.Dh();y.parkOrScheduleJob(function(){h.transition("rendering")},10,"ci");
_.g3(S)})};
Cy.prototype.initialRender=function(b){var h=this,y;return _.Z(function(S){if(S.nextAddress==1)return h.processPluginOptions.shouldWaitOnAsyncImmediate?S.yield(b(h.env),2):(b(h.env),S.jumpTo(2));if(S.nextAddress!=4)return h.jobSet?S.yield(h.jobSet.completedResolver.promise,4):S.jumpTo(4);y=_.Dh();y.parkOrScheduleJob(function(){h.transition("rendered")},10,"cr");
_.g3(S)})};
Cy.prototype.afterRenderImmediate=function(b){var h=this,y;return _.Z(function(S){if(S.nextAddress==1)return h.processPluginOptions.shouldWaitOnAsyncImmediate?S.yield(b(h.env),2):(b(h.env),S.jumpTo(2));if(S.nextAddress!=4)return h.jobSet?S.yield(h.jobSet.completedResolver.promise,4):S.jumpTo(4);y=_.Dh();y.parkOrScheduleJob(function(){h.transition("after-render-deferred")},10,"carml");
_.g3(S)})};
Cy.prototype.afterRenderDeferred=function(b){var h=this;return _.Z(function(y){b(h.env);_.g3(y)})};_.xZ("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var qW2={},xUf=(qW2.rendered={priority:0,callback:function(b){aUw(b.injector.resolve(Eu))}},qW2);var PA8=new _.ca("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),QeA=new _.ca("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var mUf=function(b){this.callbackFnMap=b;this.configMap={}};
mUf.prototype.handleResponse=function(b){var h;if(b=(h=b.responseContext)==null?void 0:h.serviceTrackingParams)for(h=_.L(b),b=h.next();!b.done;b=h.next()){b=b.value;var y=b.params,S=b.service;if(y&&S){this.configMap[S]||(this.configMap[S]=new nsa);b=this.configMap[S];var F=void 0,a=(F=this.callbackFnMap)==null?void 0:F[S];y=_.L(y);for(S=y.next();!S.done;S=y.next())F=S.value,S=F.key,F=F.value,S&&F&&(b.set(S,F),a&&a(S,F))}}};
mUf.prototype.getConfig=function(b){return this.configMap[b]||void 0};
mUf[uN]=[_.XS(QeA)];var vZd=!1,trq=0,HJF=null,NM5=null;var bnF=new _.ca("NETWORK_SLI_TOKEN");var hpY=function(b){this.networkSli=b};
hpY.prototype.fetch=function(b,h,y){var S=this,F;return _.Z(function(a){F=yjf(S,b,h);return a.return(fetch(F).then(function(P){return S.handleResponse(P,y)}).catch(function(P){_.vX(P);
if((y==null?0:y.expectJsonStrict)&&P instanceof FU&&P.errorType===1)return Promise.reject(P)}))})};
var IH8=function(b,h,y,S){var F,a,P,K,n,X,u;return _.Z(function(O){switch(O.nextAddress){case 1:return F=yjf(b,h,y),_.WE(O,2),O.yield(fetch(F),4);case 4:a=O.yieldResult;_.Lz(O,3);break;case 2:throw _.C$(O),new FU(2,"Failed to parse streaming response",F.url);case 3:if(!a.redirected&&!a.ok)throw(P=b.networkSli)==null||P.failure(),new _.Gn("Streaming fetch request not ok",F.url);if(!a.body)throw new _.Gn("No response body in streaming response",F.url);K={};if(_.r("web_streaming_fast"))return n=a.body.getReader(),
O.return(SMY(b,n,K,S));X=a.body.pipeThrough(new TextDecoderStream).getReader();u=new _.pT;return O.return(Fw2(b,X,u,byF,K,S))}})},yjf=function(b,h,y){if(b.networkSli){var S=_.W9(_.mp(h,"key"))||"/UNKNOWN_PATH";
b.networkSli.start(S)}b=y;_.r("wug_networking_gzip_request")&&(b=RqU(y));return new window.Request(h,b)},SMY=function(b,h,y,S){var F,a,P,K,n,X,u,O,N,t,R,I,U,p,e,E,Y,w,x,q,dI,L4,Rq,Xn,Ny,gI,YU,VN,Hb,vF,xU;
return _.Z(function(Xa){switch(Xa.nextAddress){case 1:F=new TextDecoder("utf-8"),a=[],K=P=0,_.WE(Xa,2,3);case 5:return Xa.yield(h.read(),8);case 8:n=Xa.yieldResult;X=n.value;if(u=n.done){O=0;if(a.length>P)for(O=a[P].length-K,N=P+1;N<a.length;N++)O+=a[N].length;O>0&&(t=rIr(a,O,P,K),R=t.indexOf(123),I=t.lastIndexOf(125),R!==-1&&I!==-1&&I>R&&(U=t.subarray(R,I+1),p=JSON.parse(F.decode(U)),byF(y,p),e=void 0,(e=S)==null||e(y,p)));E=void 0;(E=b.networkSli)==null||E.success();return Xa.return(y)}a.push(X);
Y=P;for(w=K;Y<a.length;)if(x=a[Y],q=x.indexOf(10,w),q===-1){if(Y===a.length-1)break;Y++;w=0}else{dI=Y;L4=q+1;Rq=0;if(P===dI)Rq=L4-K;else{Rq=a[P].length-K;for(Xn=P+1;Xn<dI;Xn++)Rq+=a[Xn].length;Rq+=L4}Ny=rIr(a,Rq,P,K,dI,L4);gI=Ny.indexOf(123);YU=Ny.lastIndexOf(125);if(gI!==-1&&YU!==-1&&YU>gI){VN=Ny.subarray(gI,YU+1);try{Hb=JSON.parse(F.decode(VN)),byF(y,Hb),vF=void 0,(vF=S)==null||vF(y,Hb)}catch(rG){throw new FU(1,"Failed to parse streaming response object",F.decode(VN));}}P=Y;w=K=q+1;K===x.length&&
(P++,K=0,Y=P,w=0)}Xa.jumpTo(5);break;case 3:_.U3(Xa);h.releaseLock();_.Jk(Xa,0);break;case 2:xU=_.C$(Xa);if(xU instanceof FU)throw xU;throw new FU(1,"Failed to process streaming response");}})},Fw2=function(b,h,y,S,F,a){var P,K,n,X,u,O,N,t,R;
return _.Z(function(I){if(I.nextAddress==1)return I.yield(h.read(),2);P=I.yieldResult;K=P.value;if(n=P.done)return(X=b.networkSli)==null||X.success(),I.return(F);try{u=y.parse(K)}catch(U){throw new FU(1,"Failed to parse streaming response",K);}if(u!=null)for(O=_.L(u),N=O.next();!N.done;N=O.next())t=N.value,S(F,t),R=void 0,(R=a)==null||R(F,t);return I.return(Fw2(b,h,y,S,F,a))})};
hpY.prototype.handleResponse=function(b,h){var y=b.text().then(function(S){if((h==null?0:h.jspbResponseCtor)&&b.ok)return ykI(h.jspbResponseCtor,S);S=S.replace(")]}'","");if((h==null?0:h.expectJsonStrict)&&S)try{var F=JSON.parse(S)}catch(P){throw new FU(1,"JSON parsing failed after fetch");}var a;return(a=F)!=null?a:JSON.parse(S)});
b.redirected||b.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),y=y.then(function(S){_.vX(new _.Gn("Error: API fetch failed",b.status,b.url,S));return Object.assign({},S,{errorMetadata:{status:b.status}})}));
return y};
hpY[uN]=[_.XS(bnF)];var aIN=new _.ca("NETWORK_MANAGER_TOKEN");var dlN=[1,2,4,8,16,30],$lf=function(b){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=b.maxTimeMs;this.maxFrameCount=b.maxFrameCount===void 0?Math.ceil(60*b.maxTimeMs/1E3):b.maxFrameCount;b=_.L(dlN);for(var h=b.next();!h.done;h=b.next())this.brokenFrameSummarizers.push(new jAY(h.value/60*1E3))},LwN=function(b){var h=b.frameCountInternal>=b.maxFrameCount;
return b.elapsedTimeMs>=b.maxTimeMs||h};
$lf.prototype.summarize=function(){for(var b=[],h=_.L(this.brokenFrameSummarizers),y=h.next();!y.done;y=h.next())y=y.value,y=y.brokenFrameCount!==0?{severityMs:Math.round(y.targetFrameTimeMs),eventCount:y.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(y.averageDurationBetweenEventsMs)}:void 0,y&&b.push(y);return{summaries:b,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.tm.Object.defineProperties($lf.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 jAY=function(b){this.targetFrameTimeMs=b;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.tm.Object.defineProperties(jAY.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var PN2=function(){};
PN2.prototype.start=function(b,h){var y=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var S=new $lf({maxTimeMs:b});this.monitor=S;this.lastSummaryInternal=void 0;this.metadataToLog=h;return new Promise(function(F){var a=function(P){if(P===void 0)y.stop(),F(void 0);else if(y.monitor!==S)P=Object.assign({},S.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),F(P);else{var K=y.monitor;if(!LwN(K)){K.frameCountInternal++;if(K.prevTime===
void 0)K.startTime=P;else for(var n=P-K.prevTime,X=_.L(K.brokenFrameSummarizers),u=X.next();!u.done;u=X.next()){u=u.value;var O=u.currTimeMs;u.currTimeMs+=n;n>u.targetFrameTimeMs+2&&(u.brokenFrameCount++,u.timeOfFirstBrokenFrameMs===void 0&&(u.timeOfFirstBrokenFrameMs=O),u.timeOfLastBrokenFrameMs=O)}K.prevTime=P}LwN(y.monitor)?F(y.stop()):_.xP.addJob(a,5,0)}};
_.xP.addJob(a,5,0)})};
PN2.prototype.stop=function(b){if(!this.monitor)return this.lastSummaryInternal;var h=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(h.monitoringDurationMs){b=b!=null?b:this.metadataToLog;var y={droppedFramesSummary:h,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};b&&(y[b.type]=b.data);_.qi("manualSmoothnessMeasurement",y)}this.monitor=void 0;this.lastSummaryInternal=h;this.metadataToLog=void 0;return h};_.Kwf=new _.ca("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var ZnA;ZnA=function(b){this.JSC$19030_expiringStorage=new Vb(b)};
_.o0X=function(b){if(_.cIN()&&(b=_.hO4(_.Y0()+"::"+b)))return new ZnA(b)};
ZnA.prototype.set=function(b,h,y){y=y!==void 0?Date.now()+y:void 0;this.JSC$19030_expiringStorage.set(b,h,y)};
ZnA.prototype.get=function(b){return this.JSC$19030_expiringStorage.get(b)};
ZnA.prototype.remove=function(b){this.JSC$19030_expiringStorage.remove(b)};_.gN=function(){};
_.gN.getInstance=function(){var b=_.hj("ytglobal.storage_");b||(b=new _.gN,_.HL("ytglobal.storage_",b));return b};
_.gN.prototype.estimate=function(){var b,h,y;return _.Z(function(S){b=navigator;return((h=b.storage)==null?0:h.estimate)?S.return(b.storage.estimate()):((y=b.webkitTemporaryStorage)==null?0:y.queryUsageAndQuota)?S.return(Rtn()):S.return()})};
_.HL("ytglobal.storageClass_",_.gN);var Uan=0;var Ylj=!1;var MRA=_.bm(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),n0a=_.bm(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var VFY={"/":_.S1,"/?feature=ytca":_.S1,"/feed/downloads":_.eB4};var X92=nHa.continuationCommandSelector,re=function(b,h,y){this.JSC$19045_upliftPromise=b;this.store=h;this.JSC$19045_persistentStorePromiseAccessor=y};
re.prototype.shouldPreferLocalResponse=function(b){return b.browseId==="FEdownloads"||b.browseId==="FEsmart_downloads"&&_.r("kevlar_modern_downloads_page")?!0:!1};
re.prototype.localInnertubeResponse=function(b){var h=this;return _.Z(function(y){return b.browseId==="FEdownloads"?_.r("kevlar_modern_downloads_page")?y.return(HnA(h)):y.return(uSA(h)):b.browseId==="FEsmart_downloads"&&_.r("kevlar_modern_downloads_page")?y.return(OnA(h)):y.return(Promise.reject(Error("Ij")))})};
re.prototype.canProvideFallbackResponse=function(){return!0};
re.prototype.localFallbackInnertubeResponse=function(b){var h=this,y,S,F;return _.Z(function(a){switch(a.nextAddress){case 1:return a.yield(h.JSC$19045_persistentStorePromiseAccessor(),2);case 2:y=a.yieldResult;if(b.browseId!=="SPaccount_downloads"||!y){a.jumpTo(3);break}return a.yield(e$f(y),4);case 4:if(S=a.yieldResult)return a.return(_.de(S));case 3:return b.browseId==="FEwhat_to_watch"?a.return(NHP(h)):(F=_.r("web_offline_continuation_automatic_retry")||_.r("web_offline_continuation_retry_button"))&&
b.continuation?a.return(tRq(h)):a.return(rjf(h))}})};
var NHP=function(b){var h;return _.Z(function(y){if(y.nextAddress==1)return y.yield(b.JSC$19045_upliftPromise,2);h=_.RG5(b.store.getState().entities);return h.length?y.return(cja(b,h)):y.return(rjf(b))})},uSA=function(b){var h,y;
return _.Z(function(S){if(S.nextAddress==1)return S.yield(b.JSC$19045_upliftPromise,2);if(S.nextAddress!=3)return h=Rp2([{offlineItemSectionRenderer:{}}]),S.yield(zpX(b,h),3);y=S.yieldResult;y.onResponseReceivedActions=[uq("REFRESH_DOWNLOADS")];return S.return(y)})},HnA=function(b){var h,y,S,F,a,P,K,n,X,u,O,N,t,R,I,U;
return _.Z(function(p){if(p.nextAddress==1)return p.yield(b.JSC$19045_upliftPromise,2);if(p.nextAddress!=3)return h=b.store.getState(),y=h.entities,S=_.At(y),F=_.Un(y),a=_.yKq(h),P=_.h4N(h),K=_.St8(h),n=_.I4M(y),X=_.RU(S),u=_.pi(y),O=_.UbM(y),N=_.awM(h),t=_.sn(h),R={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.x74(S,F,n,O,a,P,X,u,K,N,t),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},I="",_.r("kevlar_modern_downloads_skip_downloads_title")||
(I=_.Mt("DOWNLOADS",void 0,"Downloads")),p.yield(Dl2(b,R,I),3);U=p.yieldResult;U.onResponseReceivedActions=[uq("REFRESH_DOWNLOADS")];return p.return(U)})},OnA=function(b){var h,y,S,F,a,P,K,n,X;
return _.Z(function(u){if(u.nextAddress==1)return u.yield(b.JSC$19045_upliftPromise,2);if(u.nextAddress!=3)return h=b.store.getState(),y=h.entities,S=_.At(y),F=_.RU(S),a=_.pi(y),P={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.m7q(S),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},K=_.Mt("SMART_DOWNLOADS",void 0,"Smart downloads"),n=lur(F,a),u.yield(Dl2(b,P,K,n),3);X=u.yieldResult;X.onResponseReceivedActions=
[uq("REFRESH_DOWNLOADS")];return u.return(X)})},rjf=function(b){var h,y;
return _.Z(function(S){if(S.nextAddress==1)return S.yield(a8(b.JSC$19045_upliftPromise,b.store),2);h=S.yieldResult;y=Rp2([AHM(h)]);return S.return(zpX(b,y))})},tRq=function(b){var h,y,S,F;
return _.Z(function(a){if(a.nextAddress==1)return h={},y=X92(b.store.getState()),_.J6(h,_.sk,y),a.yield(a8(b.JSC$19045_upliftPromise,b.store,h,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);S=a.yieldResult;F={};_.J6(F,_.JDe,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:S}}}],targetId:"browse-feedFEwhat_to_watch"});return a.return({responseContext:{},onResponseReceivedActions:[F]})})},Rp2=function(b){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:b}}}}]}}},cja=function(b,h){var y,S;
return _.Z(function(F){var a={contents:Oo(h)};y=a&&a.contents?a:{};_.r("kevlar_modern_downloads_page")&&(y=Object.assign({},_.v4f(h),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));S={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:y}}}]}};return F.return(zpX(b,S))})},zpX=function(b,h){var y,S;
return _.Z(function(F){if(F.nextAddress==1)return F.yield(b.JSC$19045_persistentStorePromiseAccessor(),2);if(F.nextAddress!=3)return y=F.yieldResult,F.yield(j4(y),3);S=F.yieldResult;return F.return({responseContext:{},contents:h,topbar:S})})},Dl2=function(b,h,y,S){var F,a;
return _.Z(function(P){if(P.nextAddress==1)return P.yield(b.JSC$19045_persistentStorePromiseAccessor(),2);if(P.nextAddress!=3)return F=P.yieldResult,P.yield(j4(F),3);a=P.yieldResult;var K=P.return;var n=y;var X=S;n=n===void 0?"":n;X=X===void 0?"":X;n={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:n}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.Mt("SETTINGS",void 0,"Settings"),accessibilityText:_.Mt("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:_.S7("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:X}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:n};
return K.call(P,{responseContext:{},contents:h,topbar:a,header:{pageHeaderRenderer:n}})})};var IIq=function(){this.moduleRegistry={};this.fetchCount=0};
IIq.prototype.isFetching=function(){return this.fetchCount>0};
var fW=function(b,h){b.moduleRegistry[h.toString()]={asyncId:h,isFetching:!1};return b};
IIq.prototype.JSC$19056_loadModules=function(){for(var b=this,h=new Map,y=[],S=_.L(_.x$.apply(0,arguments)),F=S.next();!F.done;F=S.next()){F=F.value;var a=this.moduleRegistry[F];a?a.resolver?h.set(F,a.resolver):(a.resolver=new _.MC,h.set(F,a.resolver),y.push(a.asyncId),a.isFetching=!0):(a=new _.MC,h.set(F,a),a.resolve(void 0))}y.length&&(this.fetchCount+=1,_.le(_.N1.getMultipleAsync.apply(_.N1,_.f$(y)).then(function(P){for(var K=0;K<y.length;K++){var n=P[K],X=b.moduleRegistry[y[K].toString()];X.isFetching=
!1;X.resolver.resolve(n)}}).catch(function(P){for(var K=_.L(y),n=K.next();!n.done;n=K.next()){n=n.value;
var X=b.moduleRegistry[n.toString()];X.resolver=void 0;X.isFetching=!1;h.get(n.toString()).reject(P)}}),function(){--b.fetchCount}));
return Promise.all([].concat(_.f$(h.values())).map(function(P){return P.promise}))};_.we=new _.ca("MODULE_REGISTRY_TOKEN");var BHx={},WwE=(BHx.rendered={priority:0,callback:function(b){a:{var h=void 0;try{var y;b:{if(_.QQY()){var S=_.fn(_.Y0()+"::pom");if(S){var F=new y5(S);break b}}F=void 0}var a=(y=F)==null?void 0:y.get("role_text");if(!a)break a;h={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:a}]}}}}}}catch(n){}h&&b.injector.resolve(_.OM).resolveCommand(h)}try{var P=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(P){var K=JSON.parse(P);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
K&&b.injector.resolve(_.OM).resolveCommand(K)}}catch(n){}}},BHx);var Ajd,UlP={},p9a=(UlP.initialized={priority:10,callback:function(){Ajd=U9()}},UlP.rendering={callback:function(b){var h;
return _.Z(function(y){if(y.nextAddress==1)return y.yield(Ajd,2);h=y.yieldResult;if(!h.endpoint)throw Error("Kj`"+_.S5.location.href);CW(b,h);_.g3(y)})}},UlP);var JjF={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/rq-implicit-test-rule-widget/,weight:0},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.f$(_.r("web_pip_minimize_breakages")?[{messageRegExp:/.*__shady_dispatchEvent.*/,weight:0}]:[]),[{messageRegExp:/ytsignals missing/,
weight:500},{messageRegExp:/MutationObserver is not defined/,weight:100},{messageRegExp:/Cannot call 'patch'/,weight:500},{messageRegExp:/ShadyDOM.patch is not a function/,weight:500},{messageRegExp:/Illegal invocation/,weight:500},{messageRegExp:/no such interface supported/,weight:500},{messageRegExp:/play.*request was interrupted/,weight:500},{messageRegExp:/Failed to .* ServiceWorker.*/,weight:500},{messageRegExp:/Cannot call 'onIdle'/,weight:500},{messageRegExp:/Failed to sanitize attribute of <div>: <div style="--nx:82;">/,
weight:500},{messageRegExp:/(DOMPurify|vid_mate_check) is not defined/,weight:0},{messageRegExp:/A network error occurred/,weight:500},{messageRegExp:/Ticking CPT when CPT already ticked/,weight:100},{messageRegExp:/Unexpected end of .*(input|data)/,weight:500},{messageRegExp:/JSON .* unexpected/,weight:500},{messageRegExp:/Unexpected token </,weight:500},{messageRegExp:/^undefined$/,weight:500},{messageRegExp:/The YouTube player is not attached to the DOM/,weight:500},{messageRegExp:/Malformed continuation/,
weight:500},{messageRegExp:/Offset is outside the bounds of the DataView/,weight:500},{messageRegExp:/Cannot call 'push'/,weight:0},{messageRegExp:/.*push is not a function/,weight:0},{messageRegExp:/.*\.find is not a function/,weight:0},{messageRegExp:/Cannot redefine property: BetterJsPop/,weight:0},{messageRegExp:/cdn.paddle.com/,weight:0},{messageRegExp:/^network error$/,weight:0},{messageRegExp:/Cannot read property 'snippet'.*/,weight:0},{messageRegExp:/Cannot read property 'insertBefore'.*/,
weight:0},{messageRegExp:/The play method is not allowed by the user agent or the platform in the current context, possibly because the user denied permission./,weight:0},{messageRegExp:/Unhandled action/,weight:100},{messageRegExp:/UrlEndpoint should not be used for same origin navigations. Use a better typed endpoint instead./,weight:100},{messageRegExp:/VisibilityLogger called before newScreen/,weight:1E3},{messageRegExp:/BL:ULB/,weight:500},{messageRegExp:/Failed to retrieve emoji manager initial JSON data/,
weight:100},{messageRegExp:/Endpoint supplied is invalid/,weight:100},{messageRegExp:/Cannot read property 'polyfillWrapFlushCallback'.*/,weight:500},{messageRegExp:/unblocked44.ml.*/,weight:0},{messageRegExp:/Failed to fetch/,weight:500},{messageRegExp:/.*API fetch failed.*/,weight:1E3},{messageRegExp:/No RequestBuilder for endpoint/,weight:100},{messageRegExp:/.*Failed to initialize Tango client in CommentsInvalidation.*/,weight:100},{messageRegExp:/.*redefine.*property.*adPlacements/,weight:1E3},
{messageRegExp:/ownerObj.base is undefined/,weight:1E3},{messageRegExp:/History popstate has no state/,weight:500},{messageRegExp:/ReadableStream uploading is not supported/,weight:1E3},{messageRegExp:/bad trailing UTF-8 byte .* doesn't match the pattern 0b10xxxxxx/,weight:1E3},{messageRegExp:/b172965563/,weight:1E3},{messageRegExp:/UrlEndpoint should not be used for same origin navigations/,weight:1E3},{messageRegExp:/Fetching RunAttestationCommand returned falsy/,weight:100},{messageRegExp:/WEBCHANNEL_NETWORK_ERROR/,
weight:100},{messageRegExp:/urlForEndpoint used on client endpoint/,weight:1E3},{messageRegExp:/InnerTubeTransportService is already initialized/,weight:100},{messageRegExp:/Cannot redefine property: userAgent/,weight:500},{messageRegExp:/(ResizeObserver loop limit exceeded)|(ResizeObserver loop completed with undelivered notifications)/,weight:500},{messageRegExp:/undefined is not an object \(evaluating 'this.manager'\).*/,weight:500},{messageRegExp:/_0x22d63b is not defined/,weight:500},{messageRegExp:/Cannot call '1'/,
weight:500},{messageRegExp:/.*Wanteeed.*/,weight:0},{messageRegExp:/.*WtdRoot*/,weight:0},{messageRegExp:/.*Constructing wtd-root:*/,weight:0},{messageRegExp:/.*WtdDiv.*/,weight:0},{messageRegExp:/.*Failed to execute 'appendChild'.*/,weight:0},{messageRegExp:/.*TypeError: a is not a constructor'.*/,weight:0},{messageRegExp:/.*Readwise.*/,weight:0},{messageRegExp:/.*Form is either loading or already opened*/,weight:0},{messageRegExp:/.*wtd-div.*/,weight:0},{messageRegExp:/.*Blocked a frame with origin "https:\/\/www.youtube.com" from accessing a cross-origin frame.*/,
weight:0},{messageRegExp:/.*disguiseToken.*/,weight:0},{messageRegExp:/Identifier 'YTNonstop' has already been declared/,weight:1E3},{messageRegExp:/Cannot read properties of undefined (reading 'setTimeout')/,weight:0},{messageRegExp:/undefined is not an object \(evaluating 'this.\w+.setTimeout'\)/,weight:0},{messageRegExp:/BWB:Timeout/,weight:0},{messageRegExp:/NWA/,weight:0},{messageRegExp:/This document requires '((TrustedHTML)|(TrustedScript)|(TrustedScriptURL))' assignment/,weight:0},{messageRegExp:/The constructed element must not have any attributes/,
weight:100},{messageRegExp:/runtime.browser/,weight:500},{messageRegExp:/Cannot call 'registerMenuCommand'/,weight:500},{messageRegExp:/__data is undefined/,weight:0},{messageRegExp:/.*ddg-ctl-placeholder-blocked*/,weight:1E3},{messageRegExp:/Unexpected end of JSON input/,weight:0},{messageRegExp:/No parameters in result:/,weight:0}]),callbackWeights:[{callback:function(b){var h=b.stack;if(h.includes("chrome://")||h.includes("chrome-extension://")||b.message.includes("chrome-extension://")||h.includes("moz-extension://")||
h.includes("local.adguard.org")||h.includes("auctioneer3.50million.club")||h.includes("youtubedownloader")||h.includes("youtube_home_page")||h.includes("is_youtube_video_no_longer_available")||h.includes("switchScreenSizeHack")||h.includes("yt_main_big_banner.js")||h.includes("YouTubeCenter.js")||h.includes("/mytube.js")||h.includes("JSON.parseWrapper")||h.includes("/inj_js/common.js")||h.includes("firebug-lite")||h.includes(".repl.co/")||h.includes("linkfix")||h.includes("playAfterAd")||b.message.includes("Access is denied for this document")&&
h.includes("<anonymous>")||b.fileName==="user-script"||b.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&h.includes("<anonymous>"))return!0;if(h.includes("https://www.youtube.com"))return!1;b=h.split("\n");if(!b.length)return!1;if(b.length<=3&&h.includes("s.onloadeddata"))return!0;h=0;for(var y=_.L(b),S=y.next();!S.done;S=y.next())S=S.value,(S.includes("https://")||S.includes("http://"))&&h++;return h/b.length>.95},
weight:0},{callback:function(b){return b.message==="Unknown Error"&&b.name.indexOf("NS_")===0},
weight:100},{callback:function(b){if(!_.nF)return!1;var h=b.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||b.message.includes("available to complete this operation"),y=b.stack.includes("webcomponents")&&b.message==="Object doesn't support this action";b=b.message.includes("object that does not implement interface Element");return h||y||b},
weight:0},{callback:function(b){return b.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(b){return b.message==="Operation is not supported"&&(b.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(b){return b.stack.includes("eval code (eval (code:1:1)")||b.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(b){return b.message.includes("Permission denied")&&b.stack.includes("this.domHandler")?!0:b.name.includes("TypeError")&&b.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(b){if(!b.stack)return!1;var h=b.stack.trim().split("\n");h.length&&h[0].endsWith("Error: "+b.message)&&h.shift();h.length&&h[h.length-1].includes("at window.onerror (")&&h.pop();if(!h.length)return!0;if(b.message==="Script error.")return h[0].includes("www.youtube.com")||h.length>=2&&h[0].startsWith("at new")&&h[1].startsWith("at window.onerror");if(b.message==="Unexpected token")return!0;b=_.L(h);for(h=b.next();!h.done;h=b.next())if(h=h.value,!(h.includes("<anonymous>")||
h.startsWith("load@")||h.startsWith("global code@")||h.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(b){return b.message==="Cannot read property 'experiments'"&&b.stack.includes("/s/player/")},
weight:500},{callback:function(b){return b.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(b){return b.stack.includes("/embed.js")?(b.params&&b.params&&(b.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.r("use_error_suppression"))var b=_.QC("SUPPRESS_CLIENT_ERRORS",!1);else{if(b=_.Nq)b=/Chrome\/(\d+)/.exec(_.HF()),b=(b?parseFloat(b[1]):NaN)>=66;b=!(b||_.OV&&_.um(65)||_.h9&&_.um(12.1)||nz&&_.um(79))}return b},
weight:500}]};var epN={},CNa=(epN.initialized={priority:10,callback:function(b){b.injector.addProvider({provide:OVo,useValue:b.root});b.injector.addProvider({provide:QYd,useValue:xGN});b.injector.addProvider({provide:mKd,useValue:JjF});var h={};b.injector.addProvider((h.provide=vTN,h.useFactory=function(y,S){return function(){b54(y,S)}},h[uN]=[QYd,
mKd],h));b.injector.addProvider({provide:S9,useClass:S9})}},epN);var g0x={},sAE=(g0x.initialized={priority:3,callback:function(){var b;if(b=lW4()){b=b.replace("/",".");var h=_.HT();h.set("tz",b);h.save();b=!0}else b=!1;b||(b=_.HT(),b.set("utco",-Math.floor((new Date).getTimezoneOffset())),b.save())}},g0x);var YMa={},THE=(YMa.initialized={priority:10,callback:function(b){b.injector.resolve(S9).start();b=_.wq();var h=_.m$("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.m$("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.m$("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.m$("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.Hf(_.CtN(),{mainAppWeb:Object.assign({},b,{pageType:h})});_.Hf(sBf(),{mainAppWeb:Object.assign({},b,{pageType:h})});
_.Hf(YRj(),{mainAppWeb:b});_.Hf(T5N(),{mainAppWeb:b});XTW(function(){_.uG(YRj(),"FAILURE");_.uG(T5N(),"FAILURE")});
v_r();b7y();GBk()}},YMa);var Gnf={},knA=(Gnf.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.pI("dl"),_.Dh().processSignal("pcl");else{var b=function(){_.pI("dl");_.Dh().processSignal("pcl");window.removeEventListener("load",b)};
window.addEventListener("load",b)}}},Gnf);var VRf={},E0x=(VRf.rendering={priority:0,callback:function(){var b=_.Dh();b.parkOrScheduleJob(function(){b.processSignal("eocs")},10,"eor",5E3)}},VRf);var inf=function(){};
_.z(inf,B8);
inf.prototype.resolveCommand=function(b,h){var y,S,F,a,P,K,n,X;return _.Z(function(u){F=(y=_.c(b,_.yJ5))==null?void 0:(S=y.dialog)==null?void 0:S.commentReplyDialogRenderer;if(!F)throw new _.Gn("No dialog in createCommentReplyDialogEndpoint");P=(a=h.form)==null?void 0:a.event;if(!P)throw new _.Gn("Event not passed in when resolving command");K=_.L(P.composedPath());for(n=K.next();!n.done;n=K.next())if(X=n.value,X.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||X.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return X.showReplyDialog(F),u.return();
_.g3(u)})};var fIA=function(){};
_.z(fIA,B8);fIA.prototype.resolveCommand=function(){var b;return _.Z(function(h){if(b=document.getElementById("creator-chatbots-panel"))b.style.display="none";_.g3(h)})};var w9f=function(){};
_.z(w9f,B8);w9f.prototype.resolveCommand=function(b){var h,y,S,F,a,P,K;return _.Z(function(n){switch(n.nextAddress){case 1:return h=_.c(b,oq8),((y=h)==null?void 0:y.surface)==="CREATOR_CHATBOT_ENGAGEMENT_PANEL_SURFACE_WATCH_PAGE"?n.yield((0,_.DR)("NSzT5"),6):(S=h)!=null&&S.externalChannelId?n.yield((0,_.DR)("NSzT5"),4):n.return();case 4:return F=_.lIq,P=(a=h.forceInstall)!=null?a:!1,n.yield(F(h.externalChannelId,P,h.surface),0);case 6:return K=_.lIq,n.yield(K("",!1,h.surface),7);case 7:return n.return()}})};var sg=function(b){this.JSC$19076_pageRequestService=b;this.JSC$19076_prefetchCoordinator=sY2()};
_.z(sg,B8);sg.prototype.resolveCommand=function(b){var h=this,y,S,F,a;return _.Z(function(P){if(P.nextAddress==1){y=_.c(b,CgM);if((S=y)==null||!S.taskId)throw Error("Lj");F=y.taskId;_.WE(P,2);return P.yield(_.ZqY(h.JSC$19076_pageRequestService,b,{},"").then(function(K){if(!K)throw Error("Mj");},function(K){throw Error("Nj`"+K);
}),4)}if(P.nextAddress!=2)return G$f(h.JSC$19076_prefetchCoordinator,F),_.Lz(P,0);
a=_.C$(P);tz(h.JSC$19076_prefetchCoordinator,F,a);_.g3(P)})};
sg[uN]=[_.A_];var Yz=function(b,h){this.innertubeTransportService=b;this.JSC$19080_commandHandler=h};
_.z(Yz,B8);Yz.prototype.resolveCommand=function(b){var h=this,y,S,F;return _.Z(function(a){if(a.nextAddress==1){y=_.c(b,Cu7);if(y.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||y.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")S=y.boolValue?2:1,_.g2.getInstance().setState(S,!0,!0);return a.yield(_.f9(h.innertubeTransportService,b),2)}F=a.yieldResult;qMd(h,F);_.g3(a)})};
var qMd=function(b,h){h.actions&&h.actions.forEach(function(y){b.JSC$19080_commandHandler.resolveCommand(y)})};
Yz[uN]=[_.DT,_.OM];var Ti={},Gi=(Ti.addToPlaylistEndpoint=yE(Js),Ti.addToToastAction=yE(EK),Ti.adsControlFlowOpportunityReceivedCommand=yE(Zp),Ti.audioTrackSelectActionCommand=yE(qW),Ti.backgroundAudioPlaybackCommand=yE(mK),Ti.captionLanguageSelectActionCommand=yE(v7),Ti.captionPickerEndpoint=yE(b7),Ti.changeMiniAppPlayStateCommand=yE(ev),Ti.changeTimelyActionVisibilityCommand=yE(VO),Ti.channelCreationFormEndpoint=yE(In),Ti.clearLocationCommand=yE(pg),Ti.clearUrlParamCommand=yE(Cg),Ti.copyLinkCommand=yE($3),Ti.copyTextEndpoint=
yE(us),Ti.createCommentReplyDialogEndpoint=T2I(inf),Ti.createPlaylistServiceEndpoint=yE(Ls),Ti.dismissDialogEndpoint=yE(s2),Ti.dismissPlayerOverlayCommand=yE(hl),Ti.entityUpdateCommand=yE(NW),Ti.feedbackEndpoint=yE(c7),Ti.getAnswerCommand=yE(tl),Ti.getPaymentsClientTokenCommand=yE(x3),Ti.getTranscriptEndpoint=yE(i7),Ti.googlePaymentBillingCommand=yE(QO),Ti.googlePaymentPurchaseManagerCommand=yE(m1),Ti.hideCreatorChatbotEngagementPanelCommand=yE(fIA),Ti.hideEngagementPanelEndpoint=yE(Y1),Ti.hideSheetCommand=
yE(T1),Ti.hideSnackbarCommand=yE(Cs),Ti.insertRichSectionCommand=yE(W7),Ti.listMutationCommand=yE(As),Ti.logGtmCommand=yE(B7),Ti.notifyDropdownOptionSelectedCommand=yE(g6),Ti.openAdAllowlistInstructionCommand=yE(_.on),Ti.openOnePickAddVideoModalCommand=yE(PZ),Ti.persistSubscriptionsDisplayPreferencesCommand=yE(Xt),Ti.pingingEndpoint=yE(MW),Ti.playlistEditEndpoint=yE(Zs),Ti.playlistVotingRefreshPopupCommand=yE(oW),Ti.profileCardCommand=yE(Kg),Ti.refreshPanelEndpoint=yE(G1),Ti.saveImageToDeviceEndpoint=
yE(O2),Ti.scrollToSectionEndpoint=T2I(IKF),Ti.seekToVideoTimestampCommand=yE(yO),Ti.selectCountryCommand=yE(HZ),Ti.setCookieCommand=yE(u7),Ti.setLocalStorageCommand=yE(sK),Ti.setPrefStorageEntryCommand=yE(Nc),Ti.setSettingEndpoint=yE(Yz),Ti.sfvAudioItemPlaybackCommand=yE(St),Ti.shareImageCommand=yE(rl),Ti.sharingProviderDataCommand=yE(cZ),Ti.showAudioTrackPickerActionCommand=yE(Ft),Ti.showCaptionLanguageSelectActionCommand=yE(aW),Ti.showCreatorChatbotEngagementPanelCommand=yE(w9f),Ti.showDialogCommand=
yE(E2),Ti.showEngagementPanelEndpoint=yE(is),Ti.showFullscreenPlayerControlsCommand=yE(dl),Ti.showSheetCommand=yE(fg),Ti.showSnackbarCommand=yE(gl),Ti.showTransientPlayerScrimOverlayCommand=yE(jt),Ti.submitFormWithValidationFlowCommand=yE(Dp),Ti.talkToRecsDeselectCommand=yE(Y3),Ti.talkToRecsNextCommand=yE(TW),Ti.talkToRecsSelectCommand=yE(GW),Ti.talkToRecsUpdateTextCommand=yE(k3),Ti.toggleEngagementPanelCommand=yE(w6),Ti.undoFeedbackEndpoint=yE(z1),Ti.updateEngagementPanelContentCommand=yE(ls),Ti.updateUrlParamCommand=
yE(wl),Ti.updateVideoMetadataCommand=yE(qc),Ti.verifyCommand=yE(In),Ti.webNativeShareCommand=yE(RW),Ti.webSubmitFormCommand=yE(Mc),Ti.ACK_PLAYABLES_3P_DATA_CONSENT=yE(zW),Ti.CANCEL_NAVIGATION=yE(Ds),Ti.COPY_SHARE_URL=yE(IW),Ti.MINI_APP_EXIT_DIALOG_SEEN=yE(WZ),Ti.MINI_APP_OPEN_URL=yE(BZ),Ti.REQUEST_MINI_APP_FULLSCREEN=yE(Al),Ti.RESUME_NAVIGATION=yE(UK),Ti.SHARE_PLAYABLE_WITH_HIGH_SCORE=yE(ps),Ti.TELL_US_WHY=yE(Rn),Ti);
_.r("web_enable_prefetching_videos_on_home")&&(Gi.prefetchWatchCommand=yE(sg),Gi.registerTasksCommand=yE(cw));_.r("enable_share_panel_navigation_logging_fix_on_web")&&(Gi.shareEntityServiceEndpoint=yE(k1));_.r("web_use_flow_state_manager")&&(Gi.deleteFlowStepsCommand=yE(Sv),Gi.flowNextStepCommand=yE(FJ),Gi.flowPrevStepCommand=yE(an),Gi.getFlowCommand=yE(d6),Gi.updateFlowCommand=yE(jv));_.r("enable_ai_companion")&&(Gi.updateConversationIdCommand=yE(H7),Gi.formDataDecoratorCommand=yE(XJ));
var qH8=Object.assign({},Gi);var xld={},QA2=(xld.initialized={priority:10,callback:ao5},xld);var mlA={},v0E=(mlA.initialized={callback:function(b){var h={},y={};EzY().install((h.document_disposed={callback:function(){_.r("finalize_all_timelines")?yTU():BT();uZk("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.jVr();var S=b.injector.resolve(S9);S.intervalId!==void 0&&(S.intervalId&&_.xP.cancelJob(S.intervalId),S.intervalId=void 0,--S.currentPartitionIndex,S=ajw(S),S>0&&UYa({mainAppWeb:_.wq(),survivalSli:{partitionMinute:S,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));t9a(Ik);BA!=null&&
BA.flush();LR&&LR.snapshotAndFlush();S=_.L(fxa.values());for(var F=S.next();!F.done;F=S.next())F.value.snapshotAndFlush()}},h),(y.flush_logs={callback:function(){_.x2()}},y))}},mlA);var bzA={},hvA=(bzA.rendered={priority:0,callback:function(){var b=new bzM;b.increment("STARTED");if(_.QC("LOGGED_IN")&&!_.QC("IS_DBSC",!1)&&_.QC("SERVER_VERSION")!=="test"&&_.QC("SERVER_VERSION")!=="dev"&&!CZa()&&!ehP()){b.increment("EXECUTING");var h=document.createElement("iframe");h.style.display="none";_.as(h,2,_.lJ("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.QC("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(h);b.increment("DONE")}}},
bzA);var y9A={},SvN=(y9A.rendered={callback:function(){sY2().resume()}},y9A);var FB2={acknowledgeChannelTouStrikeCommand:YE(pL),addToPlaylistServiceEndpoint:YE(C_),addToPlaylistEndpoint:YE(C_),addUpcomingEventReminderEndpoint:YE(br),browseEndpoint:YE(tGA),channelCreationFormEndpoint:YE(zC),channelCreationServiceEndpoint:YE(DM),claimLegacyYoutubeChannelEndpoint:YE(ZM),clearSearchHistoryEndpoint:YE(wz),clearWatchHistoryEndpoint:YE(l$),commerceActionCommand:TA(Sz),createBackstagePostEndpoint:YE(dz),createBroadcastCommand:YE(hO),createCommentEndpoint:YE(t5),createCommentReplyEndpoint:YE(NF),
createLiveChatPollEndpoint:YE(yr),createPlaylistServiceEndpoint:YE(gF),crossAccountChannelTransferEndpoint:YE(Q_),deleteLiveChatMessageCommand:YE(S$),deletePlaylistEndpoint:YE(s8),deleteVideoEndpoint:YE(vk),dismissalEndpoint:YE(J5),feedbackEndpoint:YE(ec),flagEndpoint:YE(E8),getAccountSwitcherEndpoint:YE(xA),verifyCommand:YE(aZ),getAccountsListInnertubeEndpoint:YE(vz),getCommentsFromInboxCommand:YE(ur),getDownloadActionCommand:YE(z7),getFlowCommand:TA(fL),getKidsBlocklistPickerCommand:YE(ir),getNotificationMenuEndpoint:YE(R9A),
getPaymentInstrumentsParamsCommand:YE(Ly),getPaymentsClientTokenCommand:TA(Sz),getPdgBuyFlowCommand:YE(JO),getReportFormEndpoint:YE(f_),getSearchInVideoCommand:YE(qg),getAnswerCommand:YE(lr),getSurveyCommand:YE(mh),getTranscriptEndpoint:YE(hz),getPostVideoPreviewEndpoint:YE($A),decorateMessageEndpoint:YE(jc),likeEndpoint:YE(IZ),liveChatActionEndpoint:YE(j$),liveChatEndpoint:YE(dF),liveChatItemContextMenuEndpoint:YE(Fz),liveChatPurchaseMessageEndpoint:YE($s),liveChatReplayEndpoint:YE(a5),manageLiveChatUserEndpoint:YE(Pk),
metadataUpdateCommand:YE(Xz),moderateLiveChatEndpoint:YE(K_),modifyChannelNotificationPreferenceEndpoint:YE(rF),notificationOptOutEndpoint:YE(ck),openSuperStickerBuyFlowCommand:YE(L_),performCommentActionEndpoint:YE(Hz),playlistEditEndpoint:YE(T7),playlistEditorEndpoint:YE(Ys),recordNotificationInteractionsEndpoint:YE(R5),reelWatchEndpoint:YE(G7),refreshPanelEndpoint:YE(I5),removeUpcomingEventReminderEndpoint:YE(ZH),resolveLocationCommand:YE(n_),revealBusinessEmailCommand:YE(oZ),searchEndpoint:YE(_.z9x),
sendLiveChatMessageEndpoint:YE(o5),sendLiveChatVoteEndpoint:YE(Mg),setSettingEndpoint:YE(Bz),shareEntityServiceEndpoint:TA(UJ),sharingProviderDataCommand:YE(Qr),showEngagementPanelEndpoint:YE(Bk),showMoreDrawerCommand:YE(AO),showSheetCommand:YE(U8),showDialogCommand:YE(Wk),subscribeEndpoint:YE(Wz),transcriptSubmitCaptionCorrectionCommand:YE(b9),undoFeedbackEndpoint:YE(gz),unsubscribeEndpoint:YE(A5),updateBackstagePostEndpoint:YE(Pz),updateCommentEndpoint:YE(cz),updateCommentReplyEndpoint:YE(rz),updateCommentsSettingsEndpoint:YE(RZ),
updateCreatorChannelInnertubeCommand:YE(nL),updateKidsBlacklistEndpoint:YE(wF),updateEngagementPanelContentCommand:YE(p_),updatePdgFeatureEnablementCommand:YE(e$),updatedMetadataEndpoint:YE(Hk),validateChannelHandleCommand:YE(XU),updateChannelPageSettingsEndpoint:YE(MF),verifyAgeEndpoint:YE(sJ),watchEndpoint:TA(h5),whitelistEditEndpoint:YE(y1),ypcCancelRecurrenceEndpoint:YE(FE),ypcCompleteTransactionEndpoint:YE(aT),ypcFixInstrumentEndpoint:YE(jz),ypcGetCartEndpoint:YE(dN),ypcGetOffersEndpoint:YE($z),
ypcHandleTransactionEndpoint:TA(Pw),ypcLogWalletAnalyticDataEndpoint:YE(Ky),ypcOffersEndpoint:YE(Zq),ypcPauseSubscriptionCommand:YE(oT),ypcRedeemCodeEndpoint:YE(MH),ypcResumeSubscriptionCommand:YE(ny),ypcUpdateFopEndpoint:YE(jz)},kz={},aBY=(kz.GET_ACCOUNT_MENU=YE(m4),kz.GET_NOTIFICATIONS_MENU=YE(cWf),kz.GET_NOTIFICATIONS_INBOX=YE(O8),kz.GET_UNSEEN_NOTIFICATION_COUNT=YE(tO),kz.GET_USER_MENTION_SUGGESTIONS=YE(LL),kz.LOAD_GUIDE=YE(rWY),kz.SUBMIT_FEEDBACK=YE(CL),kz),V1={},dOf=(V1.CONTINUATION_REQUEST_TYPE_BROWSE=
YE(KL),V1.CONTINUATION_REQUEST_TYPE_SEARCH=YE(xs),V1.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=YE(QJ),V1.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=YE(qF),V1.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=YE(OJ),V1.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=YE(u$),V1.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=YE(Vr),V1.CONTINUATION_REQUEST_TYPE_GET_PANEL=YE(DH),V1),j2N={player:TA(h5),watchNext:YE(x1)},$ON={player:TA(h5),reelItemWatch:YE(G7),reelWatchSequence:YE(ks)},LB2={watchEndpoint:TA(y_)},Pj2=
{commandEndpointMap:FB2,signalEndpointMap:aBY,continuationEndpointMap:dOf,watchEndpointMap:j2N,reelWatchEndpointMap:$ON,streamingEndpointMap:LB2};var KBd,ZzA,oPf;_.MKf=((ZzA=(KBd=window).matchMedia)==null?void 0:(oPf=ZzA.call(KBd,"(prefers-reduced-motion: reduce)"))==null?void 0:oPf.matches)||!document.startViewTransition;var nP2={},XLY={disableAllTransitions:_.MKf,ignoredErrors:(nP2.DOCUMENT_HIDDEN=!0,nP2.WINDOW_SIZE_CHANGED=!0,nP2.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,nP2),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 HzX=_.bm("\n          :root {\n            --ytd-vtm-exit-ms: ,ms;\n            --ytd-vtm-wait-ms: ,ms;\n            --ytd-vtm-enter-ms: ,ms;\n            --ytd-vtm-watch-exit-ms: ,ms;\n            --ytd-vtm-watch-wait-ms: ,ms;\n            --ytd-vtm-watch-enter-ms: ,ms;\n            --ytd-vtm-watch-next-exit-ms: ,ms;\n            --ytd-vtm-watch-next-wait-ms: ,ms;\n            --ytd-vtm-watch-next-enter-ms: ,ms;\n          }\n      ".split(",")),OzX=function(b){var h=this;this.viewTransitionCoordinator=
b;this.disableTransitionsForUltraHigh=_.r("disable_transitions_for_ultra_high");this.isUltraHighBucketDevice=ulP();this.disableTransitions=this.disableTransitionsForUltraHigh&&this.isUltraHighBucketDevice;this.isBrowseTransitionEnabled=_.rH("web_page_transition_type")==="slide"&&!this.disableTransitions;this.isLockupToWatchTransitionEnabled=_.r("web_thumbnail_to_watch_transition")&&!this.disableTransitions;this.isLockupThumbnailRegistrationEnabled=_.r("web_thumbnail_to_watch_transition_register_thumbnail");
this.isLearningJourneyTransitionEnabled=_.r("enable_plj_landing_page")&&!this.disableTransitions;this.lockupToWatchPlayerTransitionType=_.rH("web_thumbnail_to_watch_player_transition_type");this.enableFasterTransitions=_.r("web_enable_faster_page_transitions");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;_.xP.addJob(function(){h.registerRootElement();if(h.isAnyTransitionEnabled){var y=
_.tj("web_page_transition_exit_ms"),S=_.tj("web_page_transition_wait_ms"),F=_.tj("web_page_transition_enter_fast_ms"),a=_.tj("web_page_transition_watch_exit_ms"),P=_.tj("web_page_transition_watch_wait_ms"),K=_.tj("web_page_transition_watch_enter_ms"),n=_.tj("web_page_transition_watch_next_exit_ms"),X=_.tj("web_page_transition_watch_next_wait_ms"),u=_.tj("web_page_transition_watch_next_enter_fast_ms"),O=_.tj("web_page_transition_enter_ms"),N=_.tj("web_page_transition_watch_next_enter_ms");h.enableFasterTransitions&&
h.isUltraHighBucketDevice&&(O=F,N=u);isNaN(y)&&isNaN(S)&&isNaN(O)&&isNaN(a)&&isNaN(P)&&isNaN(K)&&isNaN(n)&&isNaN(X)&&isNaN(N)||!(y=iDM(HzX,y,S,O,a,P,K,n,X,N))||(S=document.createElement("style"),S.textContent=Rh8(y),document.head.appendChild(S))}},8)},ulP=function(){var b=_.S5.navigator.deviceMemory;
return b>=8||b===void 0?!0:!1};
OzX.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var b={};this.viewTransitionCoordinator.registerElement(document.documentElement,(b.slide="root-slide",b["lockup-to-watch"]="root-lockup-to-watch",b["learning-journey"]="root-learning-journey",b))}};
_.fgb=function(b,h){b.isLockupToWatchTransitionEnabled&&b.isLockupThumbnailRegistrationEnabled&&(b.registeredLockupThumbnail?b.lockupThumbnailRegisteredFromWatchEndpoint?_.vX(new _.Gn("Lockup thumbnail registration order is incorrect.")):_.vX(new _.Gn("Lockup thumbnail already registered.")):(b.registeredLockupThumbnail=h,_.Nwf(b,h)))};
_.Nwf=function(b,h){var y={};b.viewTransitionCoordinator.registerElement(h,(y["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",y),!0)};
OzX[uN]=[dUA];var d4n={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 $4y=["videoPrimaryInfoRenderer","title"],Lj5=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var tKd;tKd=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.r9Y=_.T(function(b){b=_.h6(b,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var h=b.data,y=b.playlistData,S=b.expanded,F=b.onExpandClick,a=b.isReadyToResume,P=function(){var u;return!((u=y())==null||!u.contents)},K=function(){var u=y();
return u&&u.totalVideos&&u.currentIndex!==void 0?u.currentIndex+1+" / "+u.totalVideos:""};
b=_.Zv(function(){_.Eg(_.H9().resolve(_.Vp));return!1});
var n=_.Zv(function(){P()&&F&&F()}),X={};
return _.M("ytd-miniplayer-info-bar",{class:_.P2("ytdMiniplayerInfoBarHost",(X.ytdMiniplayerInfoBarHasPlaylistData=P,X)),"on:click":n},_.M("div",{class:"ytdMiniplayerInfoBarContent"},_.M("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":b},_.M(_.zv,{text:function(){var u=h();var O=y();if(O==null?0:O.contents){var N;u=(N=_.dpN(O))==null?void 0:N.title}else u=u==null?void 0:u.miniplayerTitle;return Kjy(u)},
noEndpoints:!0,ellipsisTruncate:!0})),_.M("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.M(_.H,{cond:a,then:function(){return _.M(tBG,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:tKd})}}),_.M("h1",null,_.M(_.zv,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var u=h();var O=y();u=a()?{simpleText:_.Mt("CONTINUE_WATCHING",void 0,"Continue watching")}:(O==null?0:O.contents)?O.titleText:u==null?void 0:u.miniplayerSubtitle;return Kjy(u)},
noEndpoints:!0,ellipsisTruncate:!0})),_.M(_.H,{cond:function(){return!!K()&&!a()},
then:function(){return _.M("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.M("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.M("span",null,K))}}))),_.M(_.H,{cond:P,
then:function(){return _.M("div",{class:"ytdMiniplayerInfoBarExpand"},_.M(_.V5,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(u){F&&(F(),u.stopPropagation())}}},
iconName:function(){return S()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"Bg");var c9d;c9d=_.T(function(b){return _.M("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.M(_.V5,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:b.onTap}},
iconName:"yt-icons:close"}))},"Cg");
_.RvN=_.T(function(b){b=_.h6(b,{playabilityStatus:void 0,isDisabled:!1,isPictureInPicture:!1});var h=b.size,y=b.playabilityStatus,S=b.isDisabled,F=b.isPictureInPicture,a=_.ZR("div");b=_.L(_.pa(void 0,void 0,"w4RAU"));var P=b.next().value,K=b.next().value;b=_.NG(_.$G);var n=!1,X=function(){return h().height<=0};
_.Qi(function(){var t=h(),R=X(),I=P();I&&!R&&I.setInternalSize(t.width,t.height)},"BHFc2b");
_.fl(function(){var t,R,I;return _.Z(function(U){if(U.nextAddress==1){t=_.H9().resolve(_.Vp);R=t.getPlayerElement();if(!t.isMiniplayerActive()||!R||!a.value)return U.return();R.appendTo(a.value);return U.yield(R.getPlayerPromise(),2)}I=U.yieldResult;F()||I.setSizeStyle(!1,!0);K(I);_.g3(U)})});
_.m2(function(){u()});
_.Qi(function(){var t=P();if(t)if(S()){var R=t.getPlayerState();(n=R===-1||R===1||R===3)&&t.pauseVideo()}else u()},"Invykd");
var u=function(){if(n){n=!1;var t;(t=P())==null||t.playVideo()}},O=_.Zv(function(){_.Eg(_.H9().resolve(_.Vp))}),N={};
return _.M("ytd-miniplayer-player-container",{class:_.P2("ytdMiniplayerPlayerContainerHost",(N.ytdMiniplayerPlayerContainerHidden=X,N.ytdMiniplayerPlayerContainerHostShortsPip=b,N)),style:_.n9({width:function(){return h().width+"px"},
height:function(){return h().height+"px"}})},_.M("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:a}),_.M(_.H,{cond:function(){return!!y()&&!_.WSq(y())},
then:function(){return _.M(QRd,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var t;return((t=y())==null?void 0:t.errorScreen)||null},
status:function(){var t;return((t=y())==null?void 0:t.status)||null}})}}),_.M(_.H,{cond:S,
then:function(){return _.M("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":O},_.M(c9d,{onTap:function(){_.H9().resolve(_.Vp).close()}}))}}))},"Gg");_.zvF=_.T(function(b){var h=b.toastData;var y=_.ZR("ytd-miniplayer-toast");b=_.L(_.ya(function(){return!!h()}));
var S=b.next().value,F=b.next().value;b=_.L(_.pa(!1,void 0,"BvfNQe"));var a=b.next().value,P=b.next().value,K=function(){var u;return _.vi((u=h())==null?void 0:u.data.title)};
_.wg(function(){_.XV.requestAvailability();h()&&F(!1)});
var n,X;_.Qi(function(){S()&&(_.Sx(y.value,"iron-announce",{text:h().label+" "+K()}),n&&_.xP.cancelJob(n),n=_.xP.addLowPriorityJob(function(){P(!0)},2500))},"no1dZb");
_.Qi(function(){a()&&(X&&_.xP.cancelJob(X),X=_.xP.addLowPriorityJob(function(){F(!1);P(!1)},300))},"G3yPNe");
b={};return _.M("ytd-miniplayer-toast",{el:y,class:_.P2("ytdMiniplayerToastHost",(b.ytdMiniplayerToastOpening=function(){return S()},b.ytdMiniplayerToastClosing=function(){return a()},b))},_.M(_.H,{cond:function(){var u;
return(u=h())==null?void 0:u.data},
then:function(u){return _.M(Acb,{className:"ytdMiniplayerToastThumbnail",data:u,width:78})}}),_.M("div",{class:"ytdMiniplayerToastInfo"},_.M("div",{class:"ytdMiniplayerToastLabel"},function(){var u;
return(u=h())==null?void 0:u.label}),_.M("div",{class:"ytdMiniplayerToastTitle"},K)))},"Jg");var tJM;var Rj5=null;var IBA=_.T(function(b){var h=b.progressState;var y=b.multiMarkersPlayerBarRenderer;var S=b.progressBarWidth;var F=function(){return BWN(y())},a=function(){return U4f(h())},P=function(){return S()*(h().playedTime/h().videoDuration)};
return _.M("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.M(_.Gw,{each:F},function(K,n){return _.M(DOA,{modifiedProps:a,chapters:F,index:n,playedProgressWidth:P,backgroundGradientPosition:function(){var X=a(),u=F(),O=n(),N=P();return(X.playedTime-Gf(_.c(u[O],Tf)))/X.playedTime*N}})}))},"Kg"),DOA=_.T(function(b){var h=b.modifiedProps;
var y=b.chapters;var S=b.index;var F=b.playedProgressWidth;var a=b.backgroundGradientPosition;b={};b=_.P2("ytChapteredProgressBarChapteredPlayerBarChapter",(b.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return P().isScrubbing},b.ytChapteredProgressBarHoveredMacroMarker=function(){return P().scrubberHovering},b.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return P().videoPosition==="seen"},b));
var P=function(){return ptU(h(),y(),S())},K=function(){var n=h();
var X=y(),u=S();if(ptU(n,X,u).videoPosition!=="active")n=0;else{var O=Gf(_.c(X[u],Tf));n=(n.playedTime-O)/((Gf(_.c(X[u+1],Tf))||n.videoDuration)-O)}return n};
return _.M("div",{class:b,style:_.n9({width:function(){var n=h(),X=y(),u=S(),O=_.c(X[u],Tf);X=_.c(X[u+1],Tf);return(X?Gf(X)-Gf(O):n.videoDuration-Gf(O))/n.videoDuration*100+"%"},
"background-color":function(){a:{var n=P();switch(n.videoPosition){case "pending":n=n.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":n=n.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:n=""}}return n},
"background-size":function(){return(Jbf(P())?F():"")+"px"},
"background-position-x":function(){return(Jbf(P())?a():"")+"px"}})},_.M("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var n=h(),X=y(),u=S();if(ptU(n,X,u).videoPosition==="seen")var O=0;else O=Gf(_.c(X[u],Tf)),X=Gf(_.c(X[u+1],Tf))||n.videoDuration,n=n.videoDuration*n.percentLoaded,O=X<=n?1:O>=n?0:(n-O)/(X-O);return"width: "+O*100+"%"}}),_.M("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.n9({width:function(){return K()*100+"%"},
"background-size":function(){return(Jbf(P(),K())?F():"")+"px"},
"background-position-x":function(){return(Jbf(P(),K())?a():"")+"px"}})}))},"Lg");var BwP=function(b,h){h=h===void 0?CGa:h;var y,S=[],F,a=!1;return function(){var P=_.x$.apply(0,arguments);if(a&&y===this&&h(P,S))return F;F=b.apply(this,P);a=!0;y=this;S=P;return F}}(function(b){var h=b.heatMarkers,y=b.minHeightDp===void 0?0:b.minHeightDp,S=b.maxHeightDp===void 0?60:b.maxHeightDp;
var F=F===void 0?!1:F;var a=1E3/h.length;b=[];b.push({x:0,y:100});for(var P=0;P<h.length;P++){var K=void 0,n=((K=_.c(h[P],GOa))==null?void 0:K.heatMarkerIntensityScoreNormalized)||0;K=(P+.5)*a;n=100-_.Y7(n*100,y/321*100,S/321*100);P!==0||F||b.push({x:0,y:n});b.push({x:K,y:n});P===h.length-1&&b.push({x:1E3,y:n})}b.push({x:1E3,y:100});h="";for(y=0;y<b.length;y++)F=b[y],y===0?F="M "+F.x.toFixed(1)+","+F.y.toFixed(1):(S=Igr(b[y-1],b[y-2],F),a=Igr(F,b[y-1],b[y+1],!0),F=" C "+(S.x.toFixed(1)+","+S.y.toFixed(1)+
" "+a.x.toFixed(1)+","+a.y.toFixed(1)+" "+F.x.toFixed(1)+","+F.y.toFixed(1))),h+=F;return h});var WBf=_.T(function(b){var h=b.progressBarProps;var y=b.config;var S={};b=_.P2("ytHeatSeekerHost",(S.ytHeatSeekerHighContrast=b.highContrast,S));var F=function(){return Xt5(y().chapterData)};
return _.M("yt-progress-bar-heatseeker",{class:b,style:function(){var a;return"height: 320px; display: "+(h().isDragging&&((a=F())==null?0:a.heatMarkers)?"block":"none")}},_.M(_.H,{cond:F,
then:function(a){return _.M(_.H,{cond:function(){return a().heatMarkers},
then:function(){return _.M("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.M("path",{d:function(){return BwP(a())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Mg");var A9Y=_.T(function(b){var h=b.progressBarProps;var y=b.config;b={};b=_.P2("ytProgressBarLineProgressBarLine",(b.ytProgressBarLineProgressBarLineRounded=function(){return y().rounded},b.ytProgressBarLineProgressBarLineBottomInset=function(){return y().position===2},b));
return _.M("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.M("div",{class:b},_.M("div",{class:"ytProgressBarLineProgressBarBackground"}),_.M("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+h().percentLoaded*100+"%"}}),_.M("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var S=h();return"width: "+(S.videoDuration?_.Y7(S.hoveredTime/S.videoDuration,0,1):0)*100+"%"}}),_.M("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+ov4(h())*100+"%"}})))},"Ng");
A9Y.idomCompat=!0;var UOX=_.T(function(b){var h=b.progressBarProps;var y=b.playheadData;var S=b.interpolateDotPosition;var F=b.hidePlayhead;b={};var a=_.P2("ytProgressBarPlayheadProgressBarPlayheadDot",(b.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return h().isDragging},b.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!h().isDragging&&F()},b));
return _.M("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.n9({"margin-left":function(){return MJy(h())*100+"%"},
transform:function(){return"translateX(-"+(S()?MJy(h())*12:6)+"px)"}})},_.M(_.H,{cond:function(){var P;
return(P=_.bi(y)())==null?void 0:P.playheadImage},
then:function(P){var K={};return _.M("div",{class:_.P2("ytProgressBarPlayheadProgressBarPlayheadCustom",(K.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return h().isDragging},K.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!h().isDragging&&F()},K)),
style:_.n9({"transform-origin":function(){return(S()?MJy(h())*20:10)+"px center"}})},_.M(_.mI,{data:P,
alt:"","aria-hidden":"true"}))},
else:function(){return _.M("div",{class:a,style:_.n9({"transform-origin":function(){return(S()?MJy(h())*12:6)+"px center"}})})}}))},"Og");
UOX.idomCompat=!0;var i9=function(b,h,y,S,F,a){this.getProgressBarRect=b;this.updateProgressBarRect=h;this.getFilmstripYPosition=y;this.setFineScrubbingDraggedTime=S;this.updateFilmStripDraggedYDistance=F;this.resetFilmStripYOffset=a;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.MG(this.onThrottledSeek,100,this)},pLf=function(b,h,y){return function(S){b.handleClick(S,h(),y())}},CjF=function(b,h){return function(y){J9q(b,
y,evA(y),h())}},gPa=function(b,h){return function(y){J9q(b,y,{x:y.clientX,
y:y.clientY},h())}},YvA=function(b,h,y){return function(S){var F=h(),a=y();
s2f(b,S,evA(S),F,a,!0);if(a.onTouchMove)a.onTouchMove(F)}},G6F=function(b,h,y){return function(S){TwA(b,S,h(),y())}},k6f=function(b,h){return function(){b.handleMouseLeave(h())}},EPP=function(b,h,y){return function(){var S=h(),F=y();
VKA(b,S,F);if(F.onTouchEnd)F.onTouchEnd(S)}},izY=function(b,h,y){return function(){var S=h(),F=y();
VKA(b,S,F);if(F.onTouchEnd)F.onTouchEnd(S)}},fB2=function(b,h,y){return function(){VKA(b,h(),y())}},wL2=function(b){return function(h){if(h.keyCode===39||h.keyCode===38){var y,S;
(y=b())==null||(S=y.playerApi)==null||S.seekBy(5,void 0,void 0,72)}else if(h.keyCode===37||h.keyCode===40){var F,a;(F=b())==null||(a=F.playerApi)==null||a.seekBy(-5,void 0,void 0,71)}}},lBA=function(b,h,y){return function(S){!y().disableScrubbing&&b.startPosition&&TwA(b,S,h(),y())}},qvP=function(b,h,y){return function(){if(!y().disableScrubbing)if(b.startPosition){var S=h(),F=y();
VKA(b,h(),y());if(F.onTouchEnd)F.onTouchEnd(S)}else h().setState({isDragging:!1})}},evA=function(b){b=b.touches[0];
return{x:b.clientX,y:b.clientY}},TwA=function(b,h,y,S){if(h.buttons!==1){if(h.movementX||h.movementY)h.preventDefault(),h.stopPropagation(),b=xOX(b,y,h.clientX),y.setState({isHovering:!0,
hoveredTime:b*y.videoDuration})}else Q2X(y),s2f(b,h,{x:h.clientX,y:h.clientY},y,S,!1)};
i9.prototype.handleMouseLeave=function(b){Q2X(b)};
var Q2X=function(b){b.isHovering&&b.setState({isHovering:!1,hoveredTime:0})},J9q=function(b,h,y,S){b.startPosition||(b.startPosition=y,b.updateProgressBarRect(),b.controlsWereVisibleBeforeDragging=S.controlsVisible,h.stopPropagation(),_.r("medium_progress_bar_modification")||h.preventDefault())},s2f=function(b,h,y,S,F,a){if(b.startPosition)if(a&&F.isInlinePlayback&&b.startPosition&&!b.hasDraggedTheMinimumDistance&&Math.abs(y.y-b.startPosition.y)>Math.abs(y.x-b.startPosition.x))VKA(b,S,F);
else if(h.preventDefault(),h.stopPropagation(),S.videoDuration&&(b.startPosition&&!b.hasDraggedTheMinimumDistance&&(b.hasDraggedTheMinimumDistance=Math.abs(y.x-b.startPosition.x)>=1),F.enableFineScrubbing&&(b.startPosition&&(b.isDraggedForFineScrubbing=-(y.y-b.startPosition.y)>=60),!b.startPosition||y.y>=b.startPosition.y||(S.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:ejj(S.draggedTime,S,F.chapterData)}),b.setFineScrubbingDraggedTime(S.draggedTime),b.updateFilmStripDraggedYDistance(b.startPosition.y,
y.y,S))),b.hasDraggedTheMinimumDistance)){h=xOX(b,S,y.x);if(b.isDraggedForFineScrubbing){var P;(P=S.playerApi)==null||P.pauseVideo();S.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:S.draggedTime,filmStripXDistance:ejj(h*S.videoDuration,S,F.chapterData)})}F.enableFineScrubbing&&(!F.enableFineScrubbing||b.getFilmstripYPosition(S)<68)||S.setState({draggedTime:h*S.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:b.controlsWereVisibleBeforeDragging});var K;(K=
F.cancelAutohideControlsFn)==null||K.call(F)}},VKA=function(b,h,y){var S=y.enableFineScrubbing&&h.fineScrubbingActiveState!=="off";
if(h.isDragging||S){S={isDragging:!1,playedTime:h.draggedTime,controlsVisible:b.controlsWereVisibleBeforeDragging};y.enableFineScrubbing&&h.fineScrubbingActiveState!=="on"&&(b.resetFilmStripYOffset(),S.fineScrubbingActiveState="off");var F=F===void 0?Rj5:F;var a=_.UE(0);if(a&&F){var P=Math.round(h.playedTime*1E3),K=Math.round(h.draggedTime*1E3);P>2147483647||K>2147483647||_.qt(a,F,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(P),endMediaTimeMs:String(K),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}h.setState(S);
b.seekThrottle.fire(h.draggedTime,h,7);_.r("mweb_new_progress_bar_play_on_seek")&&b.resumeVideo(h);y.unmuteOnSeek&&(y=h.playerApi,h.volumeMuted&&(y==null||y.unMute()))}else h.setState({controlsVisible:!h.controlsVisible}),(a=y.triggerAutohideControlsAfterDelayFn)==null||a.call(y);b.startPosition=null;b.hasDraggedTheMinimumDistance=!1;b.isDraggedForFineScrubbing=!1;b.controlsWereVisibleBeforeDragging=!1};
i9.prototype.handleClick=function(b,h,y){this.updateProgressBarRect();b.stopPropagation();b=xOX(this,h,b.clientX)*h.videoDuration;h.setState({playedTime:b});if(h.playerState!==2){var S;(S=y.triggerAutohideControlsAfterDelayFn)==null||S.call(y)}this.seekThrottle.fire(b,h,7)};
var xOX=function(b,h,y){b=b.getProgressBarRect(h);return _.Y7(0,(y-b.left)/b.width,1)};
i9.prototype.resumeVideo=function(b){if(b.draggedTime<b.videoDuration){var h;(h=b.playerApi)==null||h.playVideo()}};
i9.prototype.onThrottledSeek=function(b,h,y){if(h=h.playerApi){var S;if((S=h.getVideoData())==null?0:S.isLive)S=this.getProgressState(h),b+=(S==null?void 0:S.seekableStart)||0;h.seekTo(b,void 0,void 0,void 0,y)}};
i9.prototype.getProgressState=function(b){var h=b==null?void 0:b.getPresentingPlayerType();return b==null?void 0:b.getProgressState(h)};var bKN,vPf,hmY,Sua,mOA,FmY,a7A,di2,jhd;bKN=_.T(function(b){var h=b.progressBarProps;var y=b.config;var S=b.progressBarWidthPx;var F=b.chapterData;var a=TWU(h,function(){return y().isShortsPage}),P=function(){return!h().isHovering&&!y().isShortsPage};
b={};var K=_.P2("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(b.ytPlayerStoryboardHostMwebShorts=function(){return y().isShortsPage&&!1},b));
return _.M("yt-player-storyboard",null,_.M(_.H,{cond:function(){return h().isDragging||h().isHovering},
then:function(){return _.M(_.H,{cond:a,then:function(n){return _.M(_.H,{cond:P,then:function(){return _.M("div",{class:K,"aria-hidden":"true"},_.M(mOA,{props:h,config:y,isBigboard:!0,chapterData:F}))},
else:function(){return _.M(vPf,{props:h,frame:n,config:y,progressBarWidthPx:S,chapterData:F})}})}})}}))},"Pg");
_.ydq=_.T(function(b){var h=b.progressBarProps;var y=TWU(h,b.isShortsPage);return _.M("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.M(_.H,{cond:function(){return h().isDragging||h().isHovering},
then:function(){return _.M(_.H,{cond:y,then:function(S){return _.M(hmY,{frame:S,props:h,isBigboard:!0})}})}}))},"Qg");
vPf=_.T(function(b){var h=b.props;var y=b.frame;var S=b.config;var F=b.progressBarWidthPx;b=b.chapterData;var a={};a=_.P2("ytPlayerStoryboardHost",(a.ytPlayerStoryboardHostMwebShorts=function(){return S().isShortsPage&&!1},a.ytPlayerStoryboardHostInlinePlayer=function(){return S().isInlinePlayer},a.ytPlayerStoryboardHostFadeIn=function(){return S().useFadeInAnimation},a));
return _.M("div",{class:a,"aria-hidden":"true",style:function(){var P=h(),K=CdN(y()),n=F();P=gvj(P)/P.videoDuration;var X=n*P,u=K/2+6;K=n-(K/2+6);return"left: "+(X<=u?u/n*100:X>=K?K/n*100:P*100)+"%"}},_.M(_.H,{cond:function(){var P=h();
return!(S().isShortsPage&&P.videoDuration<15)},
then:function(){return _.M(hmY,{frame:y,props:h,isBigboard:!1})}}),_.M(mOA,{props:h,
config:S,isBigboard:!1,chapterData:b}))},"Rg");
hmY=_.T(function(b){var h=b.frame;var y=b.props;var S=b.isBigboard;var F=function(){var K,n;return(n=(K=y().playerApi)==null?void 0:K.getVideoContentRect())!=null?n:{width:0,height:0}},a=function(){return CdN(h())},P=function(){var K=h();
return K?K.height/K.rows:0};
b={};b=_.P2((b.ytPlayerStoryboardBigboardImageWrapper=S,b.ytPlayerStoryboardStoryboardImageWrapper=function(){return!S()},b));
return _.M("div",{class:b,style:function(){return"width: "+(S()?F().width:a())+"px; height: "+(S()?F().height:P())+"px;"}},_.M(Sua,{frame:h,
storyboardWidth:a,storyboardHeight:P,storyboardScale:function(){return(S()?F().width:a())/a()}}))},"Sg");
Sua=_.T(function(b){var h=b.frame;var y=b.storyboardWidth;var S=b.storyboardHeight;var F=b.storyboardScale;var a=function(){var P=h().row,K=h().column,n=y(),X=S(),u=F();return{left:-K*n*u,top:-P*X*u}};
return _.M("img",{src:function(){return h().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+a().left+"px; top: "+a().top+"px; width: "+h().width*F()+"px; height: "+h().height*F()+"px;"}})},"Tg");
mOA=_.T(function(b){var h=b.props;var y=b.config;var S=b.isBigboard;var F=b.chapterData;b={};b=_.P2("ytPlayerStoryboardMetadata",(b.ytPlayerStoryboardMetadataBigboard=S,b));return _.M("div",{class:b},_.M(_.H,{cond:S,then:function(){return _.M(_.OW,null,_.M(FmY,{props:h,config:y}),_.M(_.H,{cond:function(){a:{var a=h();var P=y(),K=F(),n;if((P==null?0:P.activeChapter)&&((n=_.c(P==null?void 0:P.activeChapter,Tf))==null?0:n.title))a=!0;else{P=_.L(H7N(K));for(P=P.next();!P.done;P=P.next()){a=(P=_.c(P.value,
Vba))&&sMU(a,P);break a}a=!1}}return a},
then:function(){return _.M(a7A,{props:h,config:y,isBigboard:!0,chapterData:F})}}))},
else:function(){return _.M(_.OW,null,_.M(a7A,{props:h,config:y,isBigboard:!0,chapterData:F}),_.M(FmY,{props:h,config:y}))}}))},"Ug");
FmY=_.T(function(b){var h=b.props;var y=b.config;b={};b=_.P2("ytPlayerStoryboardTimestamp",(b.ytPlayerStoryboardTimestampShorts=function(){return y().isShortsPage},b.ytPlayerStoryboardTimestampIsHovering=function(){return h().isHovering||y().isShortsPage&&!0},b));
return _.M("div",{class:b},_.M(_.OW,null,function(){return _.Ydj(gvj(h()))}))},"Vg");
a7A=_.T(function(b){var h=b.props;var y=b.config;var S=b.isBigboard;var F=b.chapterData;b={};S=_.P2("ytPlayerStoryboardTitle",(b.ytPlayerStoryboardTitleBigboard=S,b));return _.M("div",{class:S},_.M(_.H,{cond:function(){return!y().isShortsPage},
then:function(){return _.M(di2,{props:h,activeChapter:function(){return y().activeChapter},
chapterData:F})}}))},"Wg");
di2=_.T(function(b){var h=b.props;var y=b.activeChapter;var S=b.chapterData;return _.M(_.OW,null,_.M(_.Gw,{each:function(){return H7N(S())},
keyBy:"INDEX"},function(F){return _.M(_.OW,null,_.M(_.H,{cond:function(){return _.c(F(),Vba)&&sMU(h(),_.c(F(),Vba))},
then:function(){return _.M(jhd,{timedMarker:function(){return _.c(F(),Vba)}})}}))}),_.M(_.H,{cond:function(){var F;
return y()&&((F=_.c(y(),Tf))==null?void 0:F.title)},
then:function(F){return _.M(_.zv,{text:F,noPreWrap:!0})}}))},"Xg");
jhd=_.T(function(b){var h=b.timedMarker;return _.M(_.OW,null,_.M("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.M(_.Xv,{icon:function(){return h().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.M(_.zv,{text:function(){return h().label},
noPreWrap:!0}))},"Yg");_.$ia=_.T(function(b){var h=b.progressBarProps;var y=b.playheadData;var S=b.config;b=_.ZR("yt-progress-bar");var F=_.ZR("div"),a=_.ZR("div"),P=_.L(_.pa({width:0,left:0},void 0,"XjZjde")),K=P.next().value,n=P.next().value,X=function(){a.value&&n(a.value.getBoundingClientRect())},u=function(){K().width<=0&&X();
return K()};
_.NS("resize",X);var O=new i9(u,function(){},function(){return 0},function(){},function(){},function(){}),N=function(){return h()};
P=_.L(_.pa(!1,void 0,"uZlOJc"));var t=P.next().value,R=P.next().value;P=_.Zv(function(){R(!0);S().position===2?setTimeout(function(){X()},100):X()});
var I=_.Zv(function(){R(!1);k6f(O,N)()}),U=_.Zv(function(YU){(S().doSeekOnClick||_.r("mweb_progress_bar_seek_on_mouse_click")&&typeof PointerEvent!=="undefined"&&YU instanceof PointerEvent&&YU.pointerType==="mouse")&&pLf(O,N,S)(YU);
return!1}),p=_.Zv(function(YU){CjF(O,N)(YU);
return!1}),e=_.Zv(function(YU){gPa(O,N)(YU);
return!1}),E=_.Zv(function(YU){YvA(O,N,S)(YU);
return!1}),Y=_.Zv(function(YU){G6F(O,N,S)(YU);
return!1}),w=_.Zv(function(){EPP(O,N,S)();
return!1}),x=_.Zv(function(){izY(O,N,S)();
return!1}),q=_.Zv(function(){fB2(O,N,S)();
return!1}),dI=_.Zv(function(YU){wL2(N)(YU);
return!1});
_.NS("mousemove",lBA(O,N,S));_.NS("mouseup",qvP(O,N,S));_.wg(function(){zjr(F.value);R(!1);X();qvP(O,N,S)()});
var L4={};L4=_.P2("ytPlayerProgressBarHost",function(){return S().className},(L4.ytPlayerProgressBarHostReadOnly=function(){return S().disableScrubbing},L4.ytPlayerProgressBarHostHidden=function(){return S().hideProgressBar&&!t()},L4.ytPlayerProgressBarHostLowerPlayer=function(){return S().position===0},L4.ytPlayerProgressBarHostBottomEdge=function(){return S().position===1},L4.ytPlayerProgressBarHostBottomInset=function(){return S().position===2},L4.ytPlayerProgressBarHostCustom=function(){return S().position===
3},L4));
var Rq={},Xn=_.P2("ytPlayerProgressBarBackground",(Rq.ytPlayerProgressBarBackgroundHide=function(){return S().position===2&&!t()&&!h().isDragging},Rq));
Rq={};Rq=_.P2("ytPlayerProgressBarDragContainer",(Rq.ytPlayerProgressBarDragContainerBottomEdge=function(){return S().position===1},Rq));
var Ny={};Ny=_.P2("ytPlayerProgressBarProgressBar",(Ny.ytPlayerProgressBarProgressBarInset=function(){return S().position===2},Ny.ytPlayerProgressBarProgressBarInsetMinimized=function(){return S().position===2&&!t()&&!h().isDragging},Ny));
var gI=function(){return Math.floor(ov4(h())*100)};
return _.M("yt-progress-bar",{el:b,class:L4},_.M(_.H,{cond:function(){return S().position===2},
then:function(){return _.M("div",{class:Xn})}}),_.M("div",{el:F,
"on:click":U,"on:touchstart":p,"on:touchmove":E,"on:mouseenter":P,"on:mousedown":e,"on:mouseleave":I,"on:mousemove":Y,"on:mouseup":x,"on:touchend":w,"on:touchcancel":q,"on:keydown":dI,class:Rq,role:"slider","aria-valuenow":gI,"aria-valuetext":function(){return gI()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return h().videoDuration},
draggable:_.r("web_progress_bar_draggable")?"false":"true",tabindex:0,"aria-label":_.Mt("SEEK_SLIDER")},_.M("div",{el:a,class:Ny},_.M(WBf,{progressBarProps:h,config:S,highContrast:function(){return!!S().isInlinePlayback}}),_.M(_.H,{cond:function(){return S().chapterData&&ujf(S().chapterData)},
then:function(){return _.M(IBA,{progressState:h,multiMarkersPlayerBarRenderer:function(){return S().chapterData},
progressBarWidth:function(){return K().width}})},
else:function(){return _.M(A9Y,{progressBarProps:h,config:S})}}),_.M(UOX,{progressBarProps:h,
playheadData:y,interpolateDotPosition:function(){return S().position!==2},
hidePlayhead:function(){return S().playheadDotBehavior===1&&!t()}}))),_.M(bKN,{progressBarProps:h,
config:function(){return{activeChapter:AbM(h(),S().chapterData),getProgressBarWidthPx:function(){return u().width},
isShortsPage:!!S().isShortsPage,isInlinePlayer:!!S().isInlinePlayback,useFadeInAnimation:!!S().isInlinePlayback}},
progressBarWidthPx:function(){return K().width},
chapterData:function(){return S().chapterData}}))},"Zg");
_.$ia.idomCompat=!0;Object.assign({},_.O7r(),{setState:function(){},
domMeasurements:{},appApi:_.Z75(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var Lmd;
_.PFx=_.T(function(){var b,h=(b=_.k7(GFq().playerApi))!=null?b:void 0;b=_.L(_.pa(!1,void 0,"Z9NQ1b"));var y=b.next().value,S=b.next().value;b=_.L(_.pa(!1,void 0,"HoVJXe"));var F=b.next().value,a=b.next().value;b=_.L(_.pa(!1,void 0,"DWCY3"));var P=b.next().value,K=b.next().value;b=_.L(_.pa(!1,void 0,"g4C2Zd"));var n=b.next().value,X=b.next().value;b=_.L(_.pa(0,void 0,"lmVfFb"));var u=b.next().value,O=b.next().value;b=_.L(_.pa(0,void 0,"mFLbzb"));var N=b.next().value,t=b.next().value;b=_.L(_.pa(!1,void 0,
"hQN4Wb"));var R=b.next().value,I=b.next().value;b=_.L(_.pa(0,void 0,"WWU0fb"));var U=b.next().value,p=b.next().value;b=_.L(_.pa(0,void 0,"MJ7LMd"));var e=b.next().value,E=b.next().value;b=_.L(_.pa("",void 0,"hnomOe"));var Y=b.next().value,w=b.next().value;b=_.L(_.pa(-1,void 0,"ARe3pf"));var x=b.next().value,q=b.next().value,dI=_.s5(function(){var L4={controlsVisible:y(),isOverlayHidden:F(),shouldWaitToHideControls:P(),isDragging:n(),isHovering:R(),videoDuration:U(),playedTime:e(),videoId:Y(),draggedTime:N(),
hoveredTime:u(),playerState:x()};return Object.assign({},_.O7r(),L4,{domMeasurements:{},setState:function(Rq){Rq.controlsVisible!==void 0&&S(Rq.controlsVisible);Rq.isOverlayHidden!==void 0&&a(Rq.isOverlayHidden);Rq.shouldWaitToHideControls!==void 0&&K(Rq.shouldWaitToHideControls);Rq.isDragging!==void 0&&X(Rq.isDragging);Rq.isHovering!==void 0&&I(Rq.isHovering);Rq.draggedTime!==void 0&&t(Rq.draggedTime);Rq.hoveredTime!==void 0&&O(Rq.hoveredTime);Rq.videoDuration!==void 0&&p(Rq.videoDuration);Rq.playedTime!==
void 0&&E(Rq.playedTime);Rq.videoId!==void 0&&w(Rq.videoId);Rq.playerState!==void 0&&q(Rq.playerState)},
appApi:_.Z75(),playerApi:h})},void 0,"Au4PIf");
_.fl(function(){h==null||h.addEventListener("onVideoProgress",cbF(dI));h==null||h.addEventListener("onVideoDataChange",rby(dI));h==null||h.addEventListener("onStateChange",NWn(dI))});
_.m2(function(){if(h==null?0:h.isReady())h==null||h.removeEventListener("onVideoProgress",cbF(dI)),h==null||h.removeEventListener("onVideoDataChange",rby(dI)),h==null||h.removeEventListener("onStateChange",NWn(dI))});
return _.M("desktop-shorts-player-controls",null,_.M(Lmd,{playerControlsProps:dI}))},"ah");
Lmd=_.T(function(b){var h=b.playerControlsProps;return _.M("div",{class:"desktopShortsPlayerControlsHost"},_.M(_.$ia,{progressBarProps:h,config:function(){return{isShortsPage:!0,hideProgressBar:h().videoDuration<30&&h().playerState!==2&&!h().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"bh");_.KmE=_.T(function(b){function h(L4){L4!==0||O()?L4>50&&(O()||!t())?(N(!1),R(!0)):L4<=50&&(O()||t())&&(N(!1),R(!1)):N(!0)}
function y(L4,Rq){var Xn;return _.Z(function(Ny){if(Ny.nextAddress==1)return Ny.yield(_.Z5(),2);Xn=Ny.yieldResult;Rq&&Xn?(Xn.unMute(!0),L4&&(VJy(L4,Xn.getVolume()),U(Xn.getVolume()))):Xn&&(Xn.mute(!0),L4&&VJy(L4,0));_.g3(Ny)})}
function S(L4){var Rq,Xn;return _.Z(function(Ny){if(Ny.nextAddress==1)return Ny.yield(_.Z5(),2);Rq=Ny.yieldResult;Xn=50;Rq&&(Xn=Rq.getVolume(),Rq.isMuted()?VJy(L4,0):VJy(L4,Xn));U(Xn);_.g3(Ny)})}
var F=b.orientation;b=_.ZR("desktop-shorts-volume-controls");var a=_.ZR("button"),P=_.MS("input"),K=_.L(_.pa(!1,void 0,"RuD0I")),n=K.next().value,X=K.next().value,u=_.L(_.pa(!1,void 0,"YbWwwb"));K=u.next().value;u=u.next().value;var O=K,N=u;u=_.L(_.pa(!0,void 0,"F7Esub"));K=u.next().value;u=u.next().value;var t=K,R=u;K=_.L(_.pa(50,void 0,"QFGbod"));var I=K.next().value,U=K.next().value;K=_.s5(function(){var L4=O();return _.r("web_shorts_keyboard_enable_mute_shortcut")?L4?_.Mt("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.Mt("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):L4?_.Mt("UNMUTE_VOLUME",void 0,"Unmute"):_.Mt("MUTE_VOLUME",void 0,"Mute")},void 0,"rhQxrf");
u=_.s5(function(){var L4=O(),Rq=t();return{sources:[{clientResource:{imageName:L4?_.r("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":Rq?_.r("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.r("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"mluxjf");
var p=_.s5(function(){var L4=I();return O()?L4+"% volume muted":L4+"% volume"},void 0,"QaT2u"),e=_.s5(function(){return F()==="vertical_down"},void 0,"LkJ9ac");
_.wg(function(){function L4(){X(!0)}
function Rq(){X(!1)}
P&&P.value&&(P.value.addEventListener("focus",L4),P.value.addEventListener("focusout",Rq),S(P.value).then(function(){h(Number(Evq(P.value)))}));
a&&a.value&&(a.value.addEventListener("focus",L4),a.value.addEventListener("focusout",Rq));_.m2(function(){var Xn;P==null||(Xn=P.value)==null||Xn.removeEventListener("focus",L4);var Ny;P==null||(Ny=P.value)==null||Ny.removeEventListener("focusout",Rq);var gI;a==null||(gI=a.value)==null||gI.removeEventListener("focus",L4);var YU;a==null||(YU=a.value)==null||YU.removeEventListener("focusout",Rq)})});
var E=_.Zv(function(){if(P&&P.value){var L4=Number(Evq(P.value));kFj(L4);U(L4);P.value.style.setProperty("--gradient-percent",L4+"%");h(L4)}return!1}),Y=_.Zv(function(){P&&P.value&&(y(P.value,O()),N(!O()));
return!1}),w={},x={},q={},dI={};
return _.M("desktop-shorts-volume-controls",{"on:pointerleave":_.Zv(function(){X(!1)}),
"on:pointerenter":_.Zv(function(){X(!0)}),
class:_.P2("ytdDesktopShortsVolumeControlsHost",(w.ytdDesktopShortsVolumeControlsHostVertical=e,w.ytdDesktopShortsVolumeControlsHostModern=_.r("web_shorts_modern_controls"),w.ytdDesktopShortsVolumeControlsHostModernExpanded=function(){return _.r("web_shorts_modern_controls")&&n()},w)),
el:b},_.M(_.H,{cond:function(){return!e()},
then:function(){var L4={};return _.M("div",{class:_.P2("ytdDesktopShortsVolumeControlsBackgroundScrim",(L4.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=n,L4.ytdDesktopShortsVolumeControlsBackgroundScrimExpandedModern=function(){return _.r("web_shorts_modern_controls")&&n()},L4))})}}),_.M("div",{class:_.P2((x.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=e,x))},_.M("button",{"aria-label":K,
title:K,el:a,"on:click":Y,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},u?_.M(_.mI,{data:u,alt:K,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.M("div",{class:_.P2("ytdDesktopShortsVolumeControlsSliderContainer",(q.ytdDesktopShortsVolumeControlsSliderContainerExpanded=n,q.ytdDesktopShortsVolumeControlsSliderContainerVertical=e,q.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=e,q.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=function(){return n()&&
e()},q))},_.M("input",{"aria-label":_.Mt("VOLUME"),
title:_.Mt("VOLUME"),el:P,"on:input":E,type:"range",class:_.P2("ytdDesktopShortsVolumeControlsNativeSlider",(dI.ytdDesktopShortsVolumeControlsNativeSliderModern=_.r("web_shorts_modern_controls"),dI)),id:"volume-input",role:"slider","aria-valuenow":I,"aria-valuetext":p,"aria-valuemin":0,"aria-valuemax":100})))},"ch");var ZKN=_.T(function(b){var h=b.data;var y=b.overlayDensity;b={};return _.M("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.M(_.rC,{data:function(){return h().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(S){var F=S.data;
return _.M(_.NY,{data:function(){return(y==null?void 0:y())===1?Object.assign({},F(),{avatar:{avatarViewModel:Object.assign({},_.c(F().avatar,_.sF),{avatarImageSize:"AVATAR_SIZE_M"})}}):F()}})}}),_.M(_.rC,{data:function(){return h().avatarStackViewModel}},{avatarStackViewModel:function(S){return _.M(_.tZ,{data:S.data})}}),_.M(_.zv,{className:_.P2("ytReelChannelBarViewModelChannelName",(b.ytReelChannelBarViewModelChannelNameLarge=function(){return(y==null?void 0:y())===1},b)),
text:function(){return h().channelName},
linkInheritColor:!0,userInput:!0}),_.M("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.M(_.rC,{data:function(){return h().subscribeButtonViewModel}},{subscribeButtonViewModel:function(S){var F=S.data;
return _.M(_.Oz,{data:function(){return(y==null?void 0:y())===1?Object.assign({},F(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},F().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):F()},
isOverlay:!1})},
buttonViewModel:_.EG})),_.M("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.M(_.rC,{data:function(){var S,F;return(F=_.c((S=h())==null?void 0:S.sponsorButtonViewModel,h4W))==null?void 0:F.sponsorButton}},{buttonViewModel:function(S){return _.M(_.EG,{data:S.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"dh");var o2f=_.T(function(b){var h=function(){var F;return((F=b.overlayDensity)==null?void 0:F.call(b))===1},y=function(){return h()?22:16},S={};
return _.M("yt-reel-multi-format-link-view-model",{class:_.P2("ytReelMultiFormatLinkViewModelHost",(S.ytReelMultiFormatLinkViewModelHostTall=!0,S.ytReelMultiFormatLinkViewModelHostLarge=function(){return h()},S))},_.M(_.YN,{ariaLabel:function(){return b.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return b.data().command}},_.M("h3",{class:function(){return h()?"ytReelMultiFormatLinkViewModelLargeLink":"ytReelMultiFormatLinkViewModelLink"}},_.M(_.H,{cond:function(){return b.data().icon},
then:function(F){return _.M(_.mI,{data:F,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:y})}}),_.M(_.zv,{text:function(){return b.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"eh");
o2f.idomCompat=!0;var MZE=_.T(function(b){var h=b.data;var y=b.overlayDensity;var S=b.extractOverlay;var F=_.ZR("yt-shorts-suggested-action-view-model");b=_.L(_.pa(!1,void 0,"S60Hzc"));var a=b.next().value,P=b.next().value;b=_.L(_.pa(!1,void 0,"O76chf"));var K=b.next().value,n=b.next().value,X=function(){return h().isMultiLineSa},u=_.OF(jZN,function(){var q,dI;
return(dI=(q=h().toggleableContent)==null?void 0:q.entityKey)!=null?dI:""}),O=function(){var q,dI,L4;
return(L4=h().toggleableContent)!=null&&L4.entityKey?(dI=(q=u())==null?void 0:q.value)!=null?dI:!1:!1},N=function(){var q,dI,L4,Rq,Xn,Ny,gI,YU,VN,Hb,vF;
return h().toggleableContent?O()?(q=h().toggleableContent)==null?void 0:q.toggledData:(dI=h().toggleableContent)==null?void 0:dI.untoggledData:{primaryText:(YU=(L4=h().defaultContent)==null?void 0:L4.primaryText)!=null?YU:h().text,secondaryText:(Rq=h().defaultContent)==null?void 0:Rq.secondaryText,onTapCommand:(VN=(Xn=h().defaultContent)==null?void 0:Xn.onTapCommand)!=null?VN:h().onTapCommand,icon:(Hb=(Ny=h().defaultContent)==null?void 0:Ny.icon)!=null?Hb:h().icon,image:(vF=(gI=h().defaultContent)==
null?void 0:gI.image)!=null?vF:h().image}},t=function(){return X()?h().trailingTapTarget:void 0},R=function(q,dI){return function(){return a()?dI:q}},I=function(){return{leadingSection:R("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(y==null?void 0:y())===1?R("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):R("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:R("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),trailingSectionExtractOverlay:R("ytShortsSuggestedActionViewModelExtractOverlayCollapsedTrailingSection",
"ytShortsSuggestedActionViewModelExtractOverlayExpandedTrailingSection"),leadingIcon:R("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon"),leadingImage:R("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingImage","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingImage")}};
b={};b=_.P2((b.ytShortsSuggestedActionViewModelStaticHost=function(){return!X()},b.ytShortsSuggestedActionViewModelDynamicHost=X,b.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return X()&&K()},b.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return X()&&!K()},b.ytShortsSuggestedActionViewModelExtractOverlay=function(){return S==null?void 0:S()},b));
_.wg(function(){if(X()){var q=0,dI;if((dI=h().animationParams)==null?0:dI.shouldExpand){var L4,Rq;q=((Rq=(L4=h().animationParams)==null?void 0:L4.expansionDelaySecs)!=null?Rq:0)*1E3}var Xn,Ny=((Xn=h().animationParams)==null?0:Xn.shouldExpand)?setTimeout(function(){P(!0)},q):void 0,gI,YU;
q=((gI=h().animationParams)==null?0:gI.visibilityDelaySecs)?((YU=h().animationParams)==null?NaN:YU.visibilityDelaySecs)*1E3:0;var VN=setTimeout(function(){n(!0)},q);
_.m2(function(){Ny&&clearTimeout(Ny);clearTimeout(VN)})}});
var U=function(q){_.Va(q,Object.assign({},{form:{element:F.value}}))},p=_.Zv(function(){var q,dI=(q=N())==null?void 0:q.onTapCommand;
dI&&U(dI)}),e=_.Zv(function(){var q,dI;
if(q=(dI=t())==null?void 0:dI.onTapCommand)return U(q),!1}),E=_.n9({"vertical-align":"bottom",
"border-radius":function(){var q;return X()?((q=h().defaultContent)==null?0:q.isCircleImage)?"50%":"4px":"0px"},
width:function(){var q,dI,L4;return X()&&((q=h().defaultContent)==null?0:q.imageSize)?((L4=(dI=h().defaultContent)==null?void 0:dI.imageSize)!=null?L4:24)+"px":null},
height:function(){var q,dI,L4;return X()&&((q=h().defaultContent)==null?0:q.imageSize)?((L4=(dI=h().defaultContent)==null?void 0:dI.imageSize)!=null?L4:24)+"px":null}}),Y=function(){return X()?I().leadingIcon():"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"},w=function(){return X()?I().leadingImage():"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},x={};
return _.M("yt-shorts-suggested-action-view-model",{class:b,el:F},_.M("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.M("button",{class:_.P2(function(){return X()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var q;
return(q=h().useFullRoundedBorder)!=null&&q?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!t()&&X()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":X()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var q;
return(q=h().disableFixedHeight)!=null&&q?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(x.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(y==null?void 0:y())===1},x.ytShortsSuggestedActionViewModelExtractOverlayContainer=function(){return S==null?void 0:S()},x)),
"on:click":p},_.M(_.Tv,{model:{color:4}}),_.M("div",{class:_.P2(function(){return X()?I().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.M(_.H,{cond:function(){var q;
return(q=N())==null?void 0:q.image},
then:function(q){return _.M(_.mI,{data:q,alt:"",className:w,contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:E})}}),_.M(_.H,{cond:function(){var q,dI;
return(q=N())==null?void 0:(dI=q.icon)==null?void 0:dI.iconType},
then:function(q){return _.M(_.Xv,{icon:q,active:O,className:Y})}})),_.M("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.M(_.H,{cond:function(){var q;
return(q=N())==null?void 0:q.primaryText},
then:function(q){var dI={};return _.M("div",{class:_.P2("ytShortsSuggestedActionViewModelStaticHostPrimaryText",(dI.ytShortsSuggestedActionViewModelExpansiveContainerPrimaryText=function(){return(y==null?void 0:y())===1},dI))},_.M(_.zv,{text:q}))}}),_.M(_.H,{cond:function(){var q;
return(q=N())==null?void 0:q.secondaryText},
then:function(q){return _.M("div",{class:function(){return I().secondaryText()}},_.M(_.zv,{text:q}))}}))),_.M(_.H,{cond:t,
then:function(q){return _.M("div",{class:_.P2(function(){return I().trailingSection()},function(){var dI,L4;
return(S==null?void 0:S())&&((L4=(dI=I()).trailingSectionExtractOverlay)==null?void 0:L4.call(dI))||""}),
"aria-label":function(){var dI;return(dI=q().a11yLabel)!=null?dI:""},
"on:click":e,role:"button",tabindex:0},_.M(_.Tv,{model:{color:4}}),_.M(_.Xv,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"fh");var n2f=_.T(function(b){var h=b.data;var y=b.overlayDensity;var S=_.ZR("yt-shorts-video-title-view-model");b=_.Zv(function(P){if(_.ph(_.UF(P),S.value,["A".toString()]))return!1;(P=h().truncatedTextOnTapCommand)&&_.Va(P);return!1});
var F={},a={};return _.M("yt-shorts-video-title-view-model",{el:S,class:_.P2("ytShortsVideoTitleViewModelHost",(F.ytShortsVideoTitleViewModelHostClickable=function(){return!!h().truncatedTextOnTapCommand},F)),
"on:click":b},_.M("h2",{class:_.P2("ytShortsVideoTitleViewModelShortsVideoTitle",(a.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(y==null?void 0:y())===1},a.ytShortsVideoTitleViewModelShortsVideoTitleOneLine=function(){return _.r("enable_shorts_declutter_ui")},a))},_.M(_.zv,{text:function(){return h().text},
linkInheritColor:!0,noEndpoints:!1,userInput:!0,isHeadline:function(){return(y==null?void 0:y())===1}})))},"gh");_.XXx=_.T(function(b){var h=b.data;var y=b.overlayDensity;var S=b.extractOverlay;var F=function(){return(y==null?void 0:y())===1};
return _.M("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.M(_.rC,{data:function(){return h().metadataItems}},{badgeViewModel:function(a){a=a.data;
return _.M("div",{class:_.P2(function(){return F()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.M(_.gE,{data:a}))},
playerDisclosureViewModel:function(a){a=a.data;return _.M("div",{class:_.P2(function(){return F()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.M(_.FAf,{data:a,
extractOverlay:S}))},
shortsSuggestedActionViewModel:function(a){a=a.data;return _.M("div",{class:_.P2(function(){return F()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.M(MZE,{data:a,
overlayDensity:y,extractOverlay:S}))},
reelChannelBarViewModel:function(a){a=a.data;var P={};return _.M("div",{class:_.P2("ytReelMetapanelViewModelMetapanelItem",(P.ytReelMetapanelViewModelExpansive=function(){return F()},P))},_.M(ZKN,{data:a,
overlayDensity:y}))},
reelMultiFormatLinkViewModel:function(a){a=a.data;var P={};return _.M("div",{class:_.P2("ytReelMetapanelViewModelMetapanelItem",(P.ytReelMetapanelViewModelExpansive=function(){return F()},P))},_.M(o2f,{data:a,
overlayDensity:y}))},
shortsVideoTitleViewModel:function(a){a=a.data;var P={};return _.M("div",{class:_.P2("ytReelMetapanelViewModelMetapanelItem",(P.ytReelMetapanelViewModelExpansive=function(){return F()},P))},_.M(n2f,{data:a,
overlayDensity:y}))},
reelSoundMetadataViewModel:function(a){a=a.data;var P={};return _.M("div",{class:_.P2("ytReelMetapanelViewModelMetapanelItem",(P.ytReelMetapanelViewModelExpansive=function(){return F()},P))},_.M(_.oZx,{data:a,
overlayDensity:y}))},
toggleButtonViewModel:function(a){a=a.data;var P={};return _.M("div",{class:_.P2("ytReelMetapanelViewModelMetapanelItem",(P.ytReelMetapanelViewModelExpansive=function(){return F()},P))},_.M(_.Ke,{data:a}))}}))},"hh");var HKX=_.T(function(b){var h=_.h6(b,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),y=h.size,S=h.onTap,F=h.disabled,a=h.tooltipText;return _.M("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.M(_.V5,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:y(),disabled:F(),tooltipText:a(),onTap:S}},
iconName:b.iconType}))},"ih"),upF=_.T(function(b){function h(u){u.stopPropagation();
u.code==="ArrowUp"?(u.preventDefault(),loN(K.value)):u.code==="ArrowDown"?(u.preventDefault(),qdq(K.value)):u.code==="KeyM"?i7q():(u.code==="KeyK"||u.code==="Space")&&foY(n())}
var y=_.h6(b,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});b=y.previousButtonDisabled;var S=y.nextButtonDisabled,F=y.data,a=y.playabilityStatus,P=y.previewThumbnail,K=_.ZR("ytd-shorts-miniplayer-overlay"),n=_.NG(_.ENf),X;_.fl(function(){(X=_.mQ(K.value))&&X.addEventListener("keydown",h)});
_.m2(function(){var u;(u=X)==null||u.removeEventListener("keydown",h)});
y=function(){var u,O;var N=_.c((u=F())==null?void 0:(O=u.reelPlayerOverlayRenderer)==null?void 0:O.buttonBar,QD5);if(N){var t;u=Object.assign({},N,{buttonViewModels:(t=N.buttonViewModels)==null?void 0:t.filter(wtk)})}else u=void 0;return u};
return _.M("ytd-shorts-miniplayer-overlay",{el:K,class:"ytdShortsMiniplayerOverlayHost"},_.M("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.n9({"background-image":function(){var u=P();return u?'url("'+_.Fv(u.thumbnails)+'")':""}})}),_.M("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.M("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.M(HKX,{iconType:function(){var u=n();
return u===2||u===-1||u===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){foY(n())},
tooltipText:function(){var u=n();return u===1||u===3?_.Mt("PLAYER_LABEL_PAUSE"):_.Mt("PLAYER_LABEL_PLAY")}}),_.M(_.KmE,{orientation:"horizontal_right"})),_.M("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.M(HKX,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:b,onTap:function(){loN(K.value)},
tooltipText:_.Mt("PREVIOUS_VIDEO_LABEL")}),_.M(HKX,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:S,onTap:function(){qdq(K.value)},
tooltipText:_.Mt("NEXT_VIDEO_LABEL")}),_.r("web_shorts_pip_like_button")?_.M(_.H,{cond:y,then:function(u){return _.M("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.M(_.bma,{data:u,buttonShapeOverrideables:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"}}))}}):null),_.M("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.M(_.H,{cond:function(){var u,O;
return _.c((u=F())==null?void 0:(O=u.reelPlayerOverlayRenderer)==null?void 0:O.metapanel,mbw)},
then:function(u){return _.M("div",{class:_.P2("ytdShortsMiniplayerOverlayInteractive")},_.M(_.XXx,{data:u}))}})),_.M("div",{class:_.P2("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var u;return!((u=F())==null||!u.adsOverlay)||a()&&!B8y(a())}},_.M("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.M(_.PFx,null)))),_.M(_.H,{cond:function(){var u=F(),O,N;
u=_.c(u==null?void 0:(O=u.adsOverlay)==null?void 0:(N=O.fulfillmentContent)==null?void 0:N.fulfilledLayout,paw);return _.c(u==null?void 0:u.renderingContent,Y$N)},
then:function(u){return _.M("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.M(ad8,{data:u}))}}))},"kh");var x4N=_.T(function(){var b=_.L(_.pa(new _.g1(NaN,NaN),void 0,"hq9Bjf")),h=b.next().value,y=b.next().value;b=_.L(_.pa(!1,void 0,"Mu3aZc"));var S=b.next().value,F=b.next().value,a=_.L(_.pa(!1,void 0,"LGtoFb"));b=a.next().value;var P=a.next().value,K=_.H9().resolve(_.Vp).miniplayerPropSignalMap[0],n=K.data,X=K.shortsData,u=K.nextButtonDisabled,O=K.shortsPreviewThumbnail,N=K.previousButtonDisabled,t=K.externalPlaylistData;a=K.toastData;var R=K.playabilityStatus,I=K.isDisabled,U=K.playerVe,p=K.closeVe;
K=_.NG(_.$G);_.KP("yt-pip-window-resized",function(w){y(w)});
_.KP("yt-activate-pip-miniplayer",function(){return _.Z(function(w){P(!0);_.g3(w)})});
var e=function(){var w;return!((w=t())==null||!w.contents)&&S()},E=function(){var w=h(),x=!!n(),q=e();
w=w.clone();x&&(w.height-=76);q&&(w.height-=285);return w},Y=function(){F(!S())};
_.Qi(function(){var w=U(),x=_.UE(11),q=_.Ae(11);x&&q&&w&&(_.Vh(x,q,w),q=p())&&(_.Ea(x,w,[q]),_.fI(x,[q]))},"fHkmfb");
return _.M("ytd-pip-container",{class:"ytdPipContainerHost"},_.M(_.H,{cond:b,then:function(){return _.M(_.RvN,{isDisabled:I,playabilityStatus:R,size:E,isPictureInPicture:!0})}}),_.M(_.H,{cond:n,
then:function(){return _.M(_.r9Y,{data:n,expanded:S,onExpandClick:Y,playlistData:t})}}),_.M(_.H,{cond:e,
then:function(){return _.M("div",{class:"ytdPipContainerPlaylistPanel"},_.M(_.WAq,{data:t,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.M(_.H,{cond:K,
then:function(){return _.M(upF,{data:X,nextButtonDisabled:u,previousButtonDisabled:N,playabilityStatus:R,previewThumbnail:O})}}),_.M("div",{class:"ytdPipContainerToast"},_.M(_.zvF,{toastData:a})))},"mh");var fy=function(b,h,y){var S=this;this.pipController=b;this.JSC$19214_clientRoot=h;this.JSC$19214_pageRequestService=y;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=jMn();this.JSC$19214_watchPipEnabled=_.r("web_watch_pip");this.watchPipManualOnlyEnabled=_.r("web_watch_pip_manual");this.shortsPipEnabled=_.r("web_shorts_pip");this.JSC$19214_watchWhileEnabled=_.r("kevlar_watch_while_v2");this.miniplayerServiceActionMap={"yt-downloaded-video-deleted":this.onDownloadedVideoDeleted.bind(this),
"yt-show-miniplayer-command":this.onShowMiniplayerCommand.bind(this)};this.watchPipMode=this.shortsPipMode=this.watchWhileMode=this.miniplayerToPipMode=this.userDeactivatedWatchWhile=this.isReadyToResume=this.hasPlaylistData=this.isSingleOptionSurveyActive=!1;_.Fq(_.hP(),YGU,function(F){S.isSingleOptionSurveyActive=F});
this.JSC$19214_onPlayerPlayVideo=this.JSC$19214_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);_.LP(_.$J.getInstance(),this.miniplayerServiceActionMap,this.JSC$19214_clientRoot);b.pictureInPictureSupported()&&_.qi("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},Ra5,BdA,Rmf,WmY,Ad2,lZ8;
fy.prototype.handleMediaSessionPipActivation=function(b){var h=this,y,S;return _.Z(function(F){_.h0().mediaSessionPipActivation=!0;y=_.H9().resolve(_.bM);if(y.isOnWatch()&&h.JSC$19214_watchPipEnabled){if(h.watchPipManualOnlyEnabled&&((S=b)==null?void 0:S.enterPictureInPictureReason)!=="useraction")return yI(),F.return();_.h0().watchPipActivation=!0;_.OKA(h,y.data);return F.jumpTo(0)}return y.isOnShorts()&&h.shortsPipEnabled?(_.h0().shortsPipActivation=!0,_.NdY(h),F.jumpTo(0)):h.isMiniplayerActive()&&
h.JSC$19214_watchPipEnabled&&!h.watchWhileMode?F.yield(tZd(h),0):F.jumpTo(0)})};
var tZd=function(b){var h,y,S,F;return _.Z(function(a){if(a.nextAddress==1)return h=!b.miniplayerToPipMode,y=b.playerElement,S=b.miniplayerData,F=b.watchResponse,a.yield(b.deactivate(),2);if(a.nextAddress!=3)return h?(_.h0().mediaSessionPipActivation=!0,_.h0().watchPipActivation=!0):_.h0().miniplayerButtonActivation=!0,a.yield(b.activate(y,S,F),3);b.miniplayerToPipMode=h;_.g3(a)})};
fy.prototype.onDownloadedVideoDeleted=function(b){var h,y=_.c((h=this.miniplayerData)==null?void 0:h.watchEndpoint,_.wO),S,F;y&&((S=this.watchResponse)==null?void 0:(F=S.playerResponse)==null?void 0:F.offlineState)!==void 0&&(h=y.videoId)&&b&&h===b&&this.close()};
fy.prototype.onShowMiniplayerCommand=function(b){var h=this,y,S,F,a,P,K,n,X,u,O,N;return _.Z(function(t){switch(t.nextAddress){case 1:return y=_.c(b,gaW),F=(S=y)==null?void 0:S.miniplayerCommand,a=_.c(F,_.wO),F&&a&&!h.active?t.yield(_.K0.getInstance(),2):t.return();case 2:return P=t.yieldResult,t.yield((K=P)==null?void 0:K.get("yt-miniplayer-shown-video-id"),3);case 3:n=t.yieldResult;X=a.videoId;if(!X||n===X)return t.return();u=_.H9().resolve(_.bM);if(u.isOnWatch())return _.vX(Error("Wj")),t.return();
O={channelItem:{externalId:btoa(X)}};h.readyToResumeVe=_.Kh(121253,void 0,void 0,O);_.h0().showMiniplayerCommandActivation=!0;return t.yield(_.qla(h,F,!0),4);case 4:return h.active&&(_.wN(h,{readyToResumeVe:h.readyToResumeVe,isReadyToResume:!0}),h.isReadyToResume=!0),t.yield((N=P)==null?void 0:N.set("yt-miniplayer-shown-video-id",a.videoId),5);case 5:h.readyToResumeVe=void 0,_.g3(t)}})};
fy.prototype.init=function(b){this.miniplayerEl?_.vX(new _.Gn("MiniplayerService already initialized.")):this.miniplayerEl=b};
fy.prototype.isInitialized=function(){var b=!!this.miniplayerEl;b||_.vX(new _.Gn("MiniplayerService used before initialized."));return b};
_.OKA=function(b,h){if(b.isInitialized()){var y=_.PdF(h.response,h.playerResponse),S=_.H9().resolve(_.bM).getPlayerFromWatch();_.h0().currentEndpoint=y.watchEndpoint||null;b.activate(S,y,h)}};
_.NdY=function(b){if(b.isInitialized()){var h=_.H9().resolve(_.bM).getPlayerFromShorts();b.activate(h)}};
Ra5=function(b,h){var y;(y=!b.isInitialized())||(y=_.H9().resolve(_.bM).isOnWatch()&&b.watchPipMode,y=!(b.isMiniplayerActive()&&(_.h0().userActivation||_.h0().lockupActivation||y)));if(y)return!1;rdA(b,h)?_.Eg(b):lZ8(b,h);return b.watchPipMode?!_.H9().resolve(_.bM).isOnWatch():!0};
fy.prototype.isMiniplayerActive=function(){return this.active};
var rdA=function(b,h){var y;h=(y=_.c(h,_.wO))==null?void 0:y.videoId;var S,F;b=(F=_.c((S=b.miniplayerData)==null?void 0:S.watchEndpoint,_.wO))==null?void 0:F.videoId;return h!=null&&h===b};
fy.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.Sx(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.F8(this.miniplayerEl,"yt-navigate-home-action"))};
_.qla=function(b,h,y,S){y=y===void 0?!1:y;var F,a,P,K;return _.Z(function(n){switch(n.nextAddress){case 1:if(b.active){n.jumpTo(2);break}F=_.H9().resolve(_.bM);if(P=(a=b.playerElement)!=null?a:F.getPlayerFromWatch()){n.jumpTo(3);break}return n.yield(_.H9().resolve(_.ja),4);case 4:P=F.getPlayerFromWatch();case 3:if(!P){_.vX(Error("Yj"));n.jumpTo(2);break}return n.yield(b.activate(P,S),2);case 2:return b.active?n.yield(lZ8(b,h,y),7):n.return();case 7:(K=b.getPlayerElement())==null||K.focusOnPlayer(),
_.g3(n)}})};
fy.prototype.activate=function(b,h,y){var S=this,F,a,P,K,n,X,u,O,N;return _.Z(function(t){switch(t.nextAddress){case 1:if(!S.isInitialized())return t.return();if(!b)return _.vX(Error("Yj")),t.return();if(_.Frw()||S.isMiniplayerActive())var R=!0;else R=_.h0().watchPipActivation||_.h0().watchWhileActivation,_.H9().resolve(_.bM).isOnWatch()&&!R?(_.vX(new _.Gn("miniplayer activated on watch page")),R=!0):R=_.h0().watchWhileActivation?S.userDeactivatedWatchWhile||!!document.pictureInPictureElement||$Xr():
!1;if(R)return yI(),t.return();F=_.h0().mediaSessionPipActivation;a=_.h0().shortsPipActivation;P=_.h0().watchPipActivation;n=(K=_.h0().watchWhileActivation)||P;X=P||a;if(!S.pictureInPictureEnabled()||!X){t.jumpTo(2);break}return t.yield(cda(S,F),3);case 3:if(!t.yieldResult)return _.vX(Error("Xj")),yI(),t.return();case 2:return S.setActive(!0),S.watchResponse=y,S.playerElement=b,S.updateMiniplayerData(h),t.yield(Rmf(S,b),4);case 4:if(!S.active)return _.vX(new _.Gn("miniplayer deactivated during activation")),
S.removePlayerListeners(),t.return();R=_.H9().resolve(_.Rz);R.addEventListener("yt-navigate",_.Hl(S,S.onPlaylistNavigate));R.addEventListener("yt-playlist-data-updated",_.Hl(S,S.JSC$19214_onPlaylistDataUpdated));S.JSC$19214_onPlaylistDataUpdated();yI();S.JSC$19214_watchWhileEnabled&&_.zmA(S,K);S.pictureInPictureEnabled()&&S.shortsPipEnabled&&(S.shortsPipMode=a,_.hP().dispatch(f37(S.shortsPipMode)));S.pictureInPictureEnabled()&&S.JSC$19214_watchPipEnabled&&(S.watchPipMode=P,_.KSr(S.handleMediaSessionPipActivation));
S.player&&(u=S.player.getPlayerState(),O=u===1,_.hP().dispatch(yEW(u)),_.aw(S.miniplayerEl,"yt-miniplayer-play-state-changed",[O]),_.h0().isVideoPlaying=O);_.aw(S.miniplayerEl,"yt-miniplayer-endpoint-changed");Dia(S);_.I7F(S);if(S.shortsPipMode||S.watchPipMode)t=t.yield(_.F8(S.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{R=t.yield;var I=_.F8(S.miniplayerEl,"yt-activate-miniplayer",[n])[0];t=R.call(t,I,6)}return t;case 6:if(S.watchResponse){R=S.getScreenLayer();I=_.UE(0);var U=tQY(0);I&&U&&
(_.e3(I,U,R),R===0&&OTk(void 0,0))}BdA(S);WmY(S,!0);(N=S.getPlayerElement())==null||N.focusOnPlayer();_.g3(t)}})};
fy.prototype.updateMiniplayerData=function(b){this.miniplayerData=b;_.wN(this,{data:b})};
_.I7F=function(b){var h,y,S=((h=b.miniplayerData)==null?void 0:(y=h.miniplayerRenderer)==null?void 0:y.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";h=b.watchWhileMode||b.watchPipMode?S&&!_.H9().resolve(_.bM).isOnWatch():S;_.wN(b,{isDisabled:h});var F,a;y=_.c((F=b.miniplayerData)==null?void 0:(a=F.miniplayerRenderer)==null?void 0:a.minimizedEndpoint,_.yG);h&&y&&_.H9().resolve(_.nk).openSheet({openPopupActionCommand:{openPopupAction:y}},b.miniplayerEl)};
BdA=function(b){if(b.watchResponse&&!Ad2(b)){var h,y=(h=b.watchResponse.playerResponse)==null?void 0:h.trackingParams;y&&(_.wN(b,{expandVe:_.Kh(35989),closeVe:_.Kh(34699),readyToResumeCloseVe:_.Kh(131070),repositionVe:_.Kh(226204),resizeVe:_.Kh(226205)}),_.wN(b,{playerVe:_.I_(y)}))}};
Rmf=function(b,h){return _.Z(function(y){if(y.nextAddress==1)return h.preparePlayer(),y.yield(h.getPlayerPromise(),2);b.player=y.yieldResult;b.player&&(b.player.addEventListener("onPlayVideo",b.JSC$19214_onPlayerPlayVideo),b.player.addEventListener("onCloseMiniplayer",b.onPlayerCloseMiniplayer),b.player.addEventListener("onExpandMiniplayer",b.onPlayerExpandMiniplayer),b.player.addEventListener("onStateChange",b.onPlayerStateChange));_.g3(y)})};
_.d=fy.prototype;_.d.JSC$19214_onPlayerPlayVideo=function(b){var h=b.sessionData&&"autonav"in b.sessionData,y;b.sessionData&&b.sessionData.itct&&(y=b.sessionData.itct);var S=b.watchEndpoint;h=S&&h?_.IqN(S,y):_.FF(b.videoId,b.listId||void 0,y);b.sessionData&&_.QB(_.c(h.commandMetadata,_.ZW).url,b.sessionData);lZ8(this,h)};
_.d.onPlayerExpandMiniplayer=function(){_.Eg(this)};
_.d.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.d.onPlayerStateChange=function(){if(this.player){var b=this.player.getPlayerState(),h=b===1;_.hP().dispatch(yEW(b));_.hP().dispatch(_.axW(b));_.aw(this.miniplayerEl,"yt-miniplayer-play-state-changed",[h]);_.h0().isVideoPlaying=h;if(b===0){h=!_.g2.getInstance().isAutoplaySetExplicitly();var y,S,F,a,P,K,n=(y=this.watchResponse.response)==null?void 0:(S=y.contents)==null?void 0:(F=S.twoColumnWatchNextResults)==null?void 0:(a=F.autoplay)==null?void 0:(P=a.autoplay)==null?void 0:(K=P.autoplayExplicitChoiceDialogRenderer)==
null?void 0:K.confirmDialogRenderer;h&&n&&this.player.setAutonavState(1)}b===0&&this.watchWhileMode&&this.deactivate()}};
_.d.onPlaylistNavigate=function(b,h){var y=this,S,F,a,P,K,n,X;return _.Z(function(u){if(u.nextAddress==1){if(!_.c(h.endpoint,_.wO))return u.return();_.h0().currentEndpoint=h.endpoint;_.aw(y.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.H9().resolve(_.bM).isOnWatch()&&(y.watchWhileMode||y.watchPipMode))return u.return();b.stopPropagation();(a=(F=_.c((S=h.endpoint)==null?void 0:S.commandMetadata,_.ZW))==null?void 0:F.url)&&h.tempData&&!_.lR.isEmpty(h.tempData)&&_.QB(a,h.tempData);P={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};K=new atM(function(){return y.getPlayerElement()},P,{layer:y.getScreenLayer()});
n=function(O){K.processChunk({endpoint:h.endpoint,data:O})};
Uif(y);y.miniplayerFetchRequest=pXA(y,h.endpoint,n);_.WE(u,2);return u.yield(y.miniplayerFetchRequest,4)}if(u.nextAddress!=2)return X=u.yieldResult,Jdq(y,X),_.Lz(u,0);_.C$(u);_.g3(u)})};
_.d.JSC$19214_onPlaylistDataUpdated=function(){var b=_.H9().resolve(_.Rz).getPlaylistData();this.hasPlaylistData=!!b;_.wN(this,{externalPlaylistData:b||{}})};
_.d.close=function(b){if(this.isInitialized())if(b){if(!((this.watchWhileMode||this.watchPipMode)&&_.H9().resolve(_.bM).isOnWatch()||this.shortsPipMode)){var h;(h=this.getPlayerElement())==null||h.stop()}this.deactivate()}else _.Wy().closeMiniplayer(this.miniplayerEl)};
_.d.deactivate=function(b){var h=this,y,S,F,a;return _.Z(function(P){if(P.nextAddress==1){if(!h.isInitialized()||!h.active)return P.return();h.setActive(!1);Uif(h);(y=!!b&&rdA(h,b))&&h.isSingleOptionSurveyActive&&_.F8(h.miniplayerEl,"yt-show-watch-page-survey",[h.isSingleOptionSurveyActive]);return P.yield(emY(h),2)}if(P.nextAddress!=3){WmY(h,!1);h.isReadyToResume=!1;h.watchResponse=void 0;h.updateMiniplayerData(void 0);h.shortsPipMode&&(h.shortsPipMode=!1,_.hP().dispatch(f37(h.shortsPipMode)),EHx(h.pipController),
(S=h.player)==null||S.setInternalSize(NaN,NaN));h.watchPipMode&&(h.watchPipMode=!1,EHx(h.pipController));(F=h.watchWhileMode)&&_.zmA(h,!1);h.removePlayerListeners();var K=_.H9().resolve(_.Rz);K.removeEventListener("yt-navigate",_.Hl(h,h.onPlaylistNavigate));K.removeEventListener("yt-playlist-data-updated",_.Hl(h,h.JSC$19214_onPlaylistDataUpdated));_.h0().currentEndpoint=null;_.aw(h.miniplayerEl,"yt-miniplayer-endpoint-changed");h.playerElement=null;yI();if(h.shortsPipMode||h.watchPipMode)P=P.jumpTo(3);
else{K=P.yield;var n=_.F8(h.miniplayerEl,"yt-deactivate-miniplayer",[y,F])[0];P=K.call(P,n,3)}return P}(a=h.player)==null||a.setInternalSize(NaN,NaN);h.player=null;_.g3(P)})};
var emY=function(b){var h;return _.Z(function(y){h=_.H9().resolve(_.bM);return b.shortsPipMode?y.yield(h.movePlayerToShorts(b.playerElement),0):y.yield(h.movePlayerToWatch(b.playerElement),0)})};
fy.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$19214_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
fy.prototype.setActive=function(b){this.active=b;this.isSingleOptionSurveyActive?_.F8(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.F8(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.hP().dispatch(_.$8({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.zmA=function(b,h){b.watchWhileMode=h;_.wN(b,{watchWhile:h})};
WmY=function(b,h){if(!Ad2(b))if(b.shortsPipMode||b.watchPipMode){var y;(y=b.player)==null||y.setDocumentPictureInPicture(h)}else{var S;(S=b.player)==null||S.setMinimized(h)}};
Ad2=function(b){return b.watchWhileMode&&_.r("kevlar_watch_while_counterfactual")};
_.Eg=function(b){var h;return _.Z(function(y){switch(y.nextAddress){case 1:if(!b.isInitialized())return y.return();_.WE(y,2);return y.yield(b.miniplayerFetchRequest,4);case 4:_.Lz(y,3);break;case 2:_.C$(y);case 3:b.watchResponse&&b.miniplayerData&&b.miniplayerData.watchEndpoint?(h={url:b.watchResponse.url,endpoint:b.miniplayerData.watchEndpoint,data:b.watchResponse,miniplayer:!0},_.Sx(b.miniplayerEl,"yt-navigate-cache",h)):b.miniplayerData&&b.miniplayerData.watchEndpoint&&_.Sx(b.miniplayerEl,"yt-navigate",
{endpoint:b.miniplayerData.watchEndpoint}),_.g3(y)}})};
lZ8=function(b,h,y){var S,F,a,P;return _.Z(function(K){if(K.nextAddress==1){if(rdA(b,h))return K.return();_.h0().currentEndpoint=h;_.aw(b.miniplayerEl,"yt-miniplayer-endpoint-changed");_.aw(b.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.h0().isVideoPlaying=!1;S={clientParams:{miniplayer:!0,autoSaveToQueue:!y}};F=new atM(function(){return b.getPlayerElement()},S,{layer:b.getScreenLayer(),
parentLayer:0},void 0,b.readyToResumeVe);a=function(n){var X,u,O=Object.assign({},(X=n.playerResponse)==null?void 0:(u=X.playerConfig)==null?void 0:u.playbackStartConfig,{startPaused:!0}),N;y&&((N=n.playerResponse)==null?0:N.playerConfig)&&(n.playerResponse.playerConfig.playbackStartConfig=O);F.processChunk({endpoint:h,data:n})};
Uif(b);b.miniplayerFetchRequest=pXA(b,h,a);_.WE(K,2);return K.yield(b.miniplayerFetchRequest,4)}if(K.nextAddress!=2)return P=K.yieldResult,Jdq(b,P),_.Lz(K,0);_.C$(K);_.g3(K)})};
fy.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var Uif=function(b){b.miniplayerFetchRequest&&(b.miniplayerFetchRequest.cancel&&b.miniplayerFetchRequest.cancel("Active request obsolete"),b.miniplayerFetchRequest=null)},pXA=function(b,h,y){var S,F=(S=_.c(h.commandMetadata,_.ZW))==null?void 0:S.url,a;
S=!F||_.Ff("disable_miniplayer_tempdata")?{}:(a=jbU(F))!=null?a:{};return lG(b.JSC$19214_pageRequestService,h,S,window.location.href,"watch",function(P,K){y(K)},function(P){return P!==b.miniplayerFetchRequest})},Jdq=function(b,h){var y;
_.Z(function(S){if(!h)return S.return();b.watchResponse=h;BdA(b);Dia(b);y=_.PdF(h.response,h.playerResponse);if(b.isMiniplayerActive()){h.response&&(b.playerElement.watchNextData=h.response);var F=_.lR.getValueByKeys.apply(_.lR,[h].concat(_.f$(nOw)));_.lR.getValueByKeys.apply(_.lR,[h].concat(_.f$(NjM)))&&F&&_.H9().resolve(_.Rz).setAutoplayRenderer(F);if(F)if(_.r("kevlar_is_pupi_enabled")){var a,P,K,n,X,u=((a=h.response)==null?0:(P=a.playerOverlays)==null?0:(K=P.playerOverlayRenderer)==null?0:(n=K.autonavToggle)==
null?0:(X=n.autoplaySwitchButtonRenderer)==null?0:X.enabled)?2:1;_.g2.getInstance().setState(u,!1,!1)}else a=NJY()?2:1,(u=b.player)==null||u.setAutonavState(a);b.updateMiniplayerData(y);_.I7F(b)}_.g3(S)})},Dia=function(b){var h,y,S=(h=b.watchResponse)==null?void 0:(y=h.playerResponse)==null?void 0:y.playabilityStatus,F;
h=S==null?void 0:(F=S.miniplayer)==null?void 0:F.miniplayerRenderer;(h==null?void 0:h.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&h.minimizedEndpoint&&_.dh(b.miniplayerEl,[h.minimizedEndpoint]);_.wN(b,{playabilityStatus:S})};
fy.prototype.openToast=function(b,h){_.wN(this,{toastData:{data:b,label:h}})};
_.wN=function(b,h){(0,b.miniplayerPropSignalMap[1])(h)};
fy.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var b;return this.playerElement?this.playerElement:(b=_.$x(this.miniplayerEl).querySelector("#player-container"))==null?void 0:b.firstElementChild};
fy.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var cda=function(b,h){h=h===void 0?!1:h;var y,S,F,a,P,K;return _.Z(function(n){if(n.nextAddress==1){if(!b.pictureInPictureSupported()||!m4F()&&!h)return n.return(!1);y=CFN(b);S=y.width;F=y.height;return n.yield(b.pipController.openWindow({width:S,height:F}),2)}a=n.yieldResult;P=b.pipController.getWindow();if(!P||!a)return n.return(!1);P.document.body.style.overflow="hidden";K=QM5(P);iaA(b.pipController,function(){g2f(b);K()});
return n.return(!0)})},CFN=function(b){var h=_.h0().shortsPipActivation,y,S;
b=h?.5625:(S=(y=b.player)==null?void 0:y.getVideoAspectRatio())!=null?S:16/9;y=Math.min(window.innerWidth,window.innerHeight)/2;h=h?0:76;return b>1?new _.g1(y,h+y/b):new _.g1(y*b,h+y)},g2f=function(b){var h;
_.Z(function(y){h=_.H9().resolve(_.bM);return h.isOnWatch()&&b.watchPipMode||h.isOnShorts()&&b.shortsPipMode?y.yield(b.deactivate(),0):b.miniplayerToPipMode?y.yield(tZd(b),0):b.watchPipMode?y.yield(_.Eg(b),0):y.jumpTo(0)})};
fy.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.JSC$19214_watchPipEnabled||this.shortsPipEnabled)};
_.tm.Object.defineProperties(fy.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
fy[uN]=[fCf,OVo,_.A_];var shN="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(" "),
Yux="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(" "),Tdf="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
GEF="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var kEX=function(b,h,y){_.ED.call(this);this.store=b;this.panelController=h;this.pageContentExtractor=y;this.isInitialized=!1};
_.z(kEX,_.ED);
kEX.prototype.init=function(b){var h=this;this.isInitialized||(this.isInitialized=!0,this.environment=b!=null?b:"CHAT_ENVIRONMENT_ENUM_YOUCHAT",this.pageSubtype=_.iM.currentPageSubTypeSelector(this.store.getState()),b=_.Fq(this.store,_.iM.currentPageSubTypeSelector,function(y){a:if(_.VZX(h))switch(y){case "shorts":case "learning":case "learning_journey_watch":case "learning_journey_browse":case "your-courses":case "playables":case "report-history":var S=!0;break a;default:S=!1}else S=!1;S&&h.panelController.hidePanel({identifier:"PAai_companion"});
h.pageSubtype!==y&&(h.pageSubtype=y)}),this.addOnDisposeCallback(b))};
_.SSx=function(b,h){if(_.VZX(b))switch(h){case "watch":var y,S;return{pageSurface:"PAGE_SURFACE_WATCH",entityId:(y=_.o7())==null?void 0:(S=y.getVideoData())==null?void 0:S.video_id};case "search":var F,a,P;return{pageSurface:"PAGE_SURFACE_SEARCH",videoIds:(a=(F=b.pageContentExtractor)==null?void 0:BsA(F))!=null?a:[],entityId:(P=(new URLSearchParams(window.location.search)).get("search_query"))!=null?P:void 0};case "companion-canvas":var K,n;return{pageSurface:"PAGE_SURFACE_CANVAS",videoIds:(n=(K=
b.pageContentExtractor)==null?void 0:BsA(K))!=null?n:[]};default:var X,u;b={videoIds:(u=(X=b.pageContentExtractor)==null?void 0:BsA(X))!=null?u:[]};return _.r("enable_ai_companion_default_page_context")?b:void 0}};
_.VZX=function(b){return b.environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"};
kEX[uN]=[_.nd,_.Mp,_.XS(W2f)];var E22=_.T(function(b){return _.M("yt-common-mark-view-model",{class:"ytCommonMarkViewModelHost"},_.M(_.pU,{text:function(){return b.data().text||""},
wrapCodeBlocks:b.shouldWrapCodeBlock}))},"oh");_.iK2=_.T(function(b){return _.M("yt-ai-companion-attachment-view-model",{el:_.Qa(_.Ch(function(){return b.data().rendererContext})),
class:_.P2("ytAiCompanionAttachmentViewModelHost",b.className)},_.M("div",{class:"ytAiCompanionAttachmentViewModelTitleContainer"},_.M(_.H,{cond:function(){return b.data().title},
then:function(h){return _.M("h3",{class:"ytAiCompanionAttachmentViewModelTitleHeading",title:function(){return h().content}},_.M(_.zv,{text:h}))}}),_.M(_.H,{cond:function(){return _.EF(b.data().trailingTitleIcon)},
then:function(h){return _.M("div",{class:"ytAiCompanionAttachmentViewModelTitleTrailingIcon"},_.M(_.mI,{data:h,alt:"",preserveWidth:!0,preserveHeight:!0}))}})),_.M(_.H,{cond:function(){return b.data().description},
then:function(h){return _.M("div",{class:"ytAiCompanionAttachmentViewModelDescription"},_.M(_.zv,{text:h}))}}),_.M(_.H,{cond:function(){return b.data().bottomItem},
then:function(h){return _.M("div",{class:"ytAiCompanionAttachmentViewModelBottomItem"},_.M(_.rC,{data:h},{tableViewModel:COW}))}}))},"ph");_.f7a=_.T(function(b){return _.M("yt-channel-attribution-view-model",{class:_.P2("ytChannelAttributionViewModelHost",b.className)},_.M("div",{class:"ytChannelAttributionViewModelUpper"},_.M(_.rC,{data:function(){return b.data().avatar}},{decoratedAvatarViewModel:_.NY}),_.M("div",{class:"ytChannelAttributionViewModelChannelTitle"},_.M(_.zv,{text:function(){return b.data().title}}))),_.M("div",{class:"ytChannelAttributionViewModelBottom"},_.M(_.zv,{text:function(){return b.data().subtitle}})))},"qh");var wXd=_.T(function(b){var h=_.L(_.pa(!1,void 0,"MFRKRb")),y=h.next().value,S=h.next().value,F=function(){return b.data().activeRenderer},a=function(){return b.data().inactiveRenderer};
return _.M("yt-channel-disclosure-view-model",{"on:mouseleave":_.Zv(function(){S(!1)}),
"on:mouseover":_.Zv(function(){S(!0)}),
class:_.P2("ytChannelDisclosureViewModelHost",b.className)},_.M(_.H,{cond:function(){return y()},
then:function(){return _.M(_.rC,{data:F},{channelAttributionViewModel:_.f7a})},
else:function(){return _.M(_.rC,{data:a},{decoratedAvatarViewModel:_.NY})}}))},"rh");var l7A=null;var quf={},xid=(quf.initialized={priority:10,callback:function(b){var h=_.H9();h.addProvider({provide:r95,useClass:w4A});h.addProvider({provide:_.fbf,useFactory:function(){return new c9w}});
h.addProvider({provide:U2,useValue:_.QC("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});h.addProvider({provide:ZDd,useValue:5184E6});h.addProvider({provide:gb2,useValue:_.J_()});h.addProvider({provide:L2d,useClass:Os8});h.addProvider({provide:AC,useClass:AC});h.addProvider({provide:_.ja,useFactory:function(){return wuo.promise}});
h.addProvider({provide:_.qce,useFactory:function(){return _.l3W.promise}});
h.addProvider({provide:ryq,useValue:function(){var n;return((n=_.ye())==null?void 0:n.getPlayer())||null}});
var y={};h.addProvider((y.provide=_.Hw,y.useFactory=function(n,X){return function(){return lO8(n,X)}},y[uN]=[U2,
ZDd],y));y={};h.addProvider((y.provide=_.QQ,y.useClass=DKf,y[uN]=[U2,ZDd],y));y={};h.addProvider((y.provide=_.MXM,y.useClass=AWx,y[uN]=[_.QQ],y));h.addProvider({provide:r6,useFactory:_.hP});h.addProvider({provide:$7,useFactory:_.hP});h.addProvider({provide:ukx,useFactory:_.hP});h.addProvider({provide:_.$6a,useFactory:function(){var n;return((n=_.ye())==null?void 0:n.getPlayer())||null}});
h.addProvider({provide:yWd,useFactory:_.hP});h.addProvider({provide:_.nd,useFactory:_.hP});h.addProvider({provide:bs,useValue:_.Hi});h.addProvider({provide:EZf,useClass:FiN});h.addProvider({provide:pEP,useClass:U5N});h.addProvider({provide:Sz,useClass:Sz});h.addProvider({provide:h5,useClass:h5});h.addProvider({provide:x1,useClass:x1});h.addProvider({provide:y_,useClass:y_});h.addProvider({provide:Pw,useClass:Pw});h.addProvider({provide:fL,useClass:fL});h.addProvider({provide:UJ,useClass:UJ});h.addProvider({provide:_.b$,
useValue:Pj2});y={};h.addProvider((y.provide=Qaa,y.useFactory=function(n){return n.watchEndpointMap||{}},y[uN]=[_.b$],y));
y={};h.addProvider((y.provide=mzq,y.useFactory=function(n){return n.reelWatchEndpointMap||{}},y[uN]=[_.b$],y));
h.addProvider({provide:_.Le,useFactory:_.rU});h.addProvider({provide:ns,useFactory:_.HT});y={};h.addProvider((y.provide=xaY,y.useFactory=function(n){return function(X){var u={automatedLogEventSource:5};u=u===void 0?{}:u;var O,N,t=(N=_.c((O=X.endpoint)==null?void 0:O.commandMetadata,_.ZW))==null?void 0:N.rootVe;if(t){var R,I;if(O=X.previousCsn||((I=_.c((R=X.endpoint)==null?void 0:R.commandMetadata,XP8))==null?void 0:I.parentCsn)){var U=U===void 0?{}:U;if(O!==_.UE(U.layer)||t!==tQY(U.layer))DBy(O,U.cttAuthInfo,
U.layer||0),OTk(O,U.layer||0),R=U.layer||0,_.xZ(N5q(R===void 0?0:R),t);u.parentCsn=O}X.endpoint&&O?keo(n,X.endpoint,u):_.w2(n,t,void 0,u);var p;((p=X.response)==null?0:p.trackingParams)&&n.graftServerVe(X.response.trackingParams);var e;((e=X.playerResponse)==null?0:e.trackingParams)&&n.graftServerVe(X.playerResponse.trackingParams);var E;((E=X.reelWatchSequenceResponse)==null?0:E.trackingParams)&&n.graftServerVe(X.reelWatchSequenceResponse.trackingParams)}}},y[uN]=[_.Le],y));
y={};h.addProvider((y.provide=Nsq,y.useClass=OaA,y[uN]=[bs,_.nd],y));y={};h.addProvider((y.provide=Bw,y.useClass=Bw,y[uN]=[_.ja,_.nd],y));y={};h.addProvider((y.provide=RT,y.useClass=RT,y[uN]=[$7,_.OM],y));h.addProvider({provide:_.UoA,useClass:lC2});y={};h.addProvider((y.provide=_.Mp,y.useClass=euF,y[uN]=[_.UoA,_.XS(_.HD)],y));h.addProvider({provide:_.l7,useClass:Jgf});y={};h.addProvider((y.provide=qc,y.useClass=qc,y[uN]=[_.l7,_.ja,_.DT,_.OM],y));h.addProvider({provide:_.nk,useClass:Ww});h.addProvider({provide:_.B1F,
useClass:AiA});h.addProvider({provide:_.X$,useClass:Arq});_.r("enable_ai_companion")&&(h.addProvider({provide:_.HD,useClass:Y5N}),h.addProvider({provide:_.HVo,useClass:sS7}),h.addProvider({provide:W2f,useClass:DoF}),h.addProvider({provide:H7,useClass:H7}),h.addProvider({provide:XJ,useClass:XJ}),h.addProvider({provide:OBw,useValue:wXd}),h.addProvider({provide:_.Ni5,useValue:_.iK2}),h.addProvider({provide:tT7,useValue:E22}));_.r("enable_ai_chat_controller")&&h.addProvider({provide:_.ng,useClass:kEX});
y={};h.addProvider((y.provide=_.Ks,y.useClass=wsX,y[uN]=[_.Ks],y));h.addProvider({provide:_.Qu,useClass:zhX});h.addProvider({provide:In,useClass:In});h.addProvider({provide:mK,useClass:mK});h.addProvider({provide:Js,useClass:Js});y={};h.addProvider((y.provide=Kg,y.useClass=Kg,y[uN]=[_.OM,_.DT],y));h.addProvider({provide:VJ,useClass:gHA});y={};h.addProvider((y.provide=fg,y.useClass=fg,y[uN]=[_.nk,VJ],y));y={};h.addProvider((y.provide=T1,y.useClass=T1,y[uN]=[_.nk],y));y={};h.addProvider((y.provide=
c7,y.useClass=c7,y[uN]=[r6,ts,_.OM],y));h.addProvider({provide:ts,useClass:aK2});_.r("web_enable_feedback_endpoint_resolver_batch_2")&&(y={},h.addProvider((y.provide=z1,y.useClass=z1,y[uN]=[r6],y)),y={},h.addProvider((y.provide=Rn,y.useClass=Rn,y[uN]=[ts],y)));y={};h.addProvider((y.provide=E2,y.useClass=E2,y[uN]=[_.X$,VJ],y));y={};h.addProvider((y.provide=s2,y.useClass=s2,y[uN]=[_.X$],y));y={};h.addProvider((y.provide=is,y.useClass=is,y[uN]=[_.DT,_.Mp],y));y={};h.addProvider((y.provide=k1,y.useClass=
k1,y[uN]=[_.DT,_.Le],y));h.addProvider({provide:rl,useClass:rl});y={};h.addProvider((y.provide=Mc,y.useClass=Mc,y[uN]=[r6],y));h.addProvider({provide:gl,useClass:gl});h.addProvider({provide:Cs,useClass:Cs});y={};h.addProvider((y.provide=Y3,y.useClass=Y3,y[uN]=[r6],y));y={};h.addProvider((y.provide=TW,y.useClass=TW,y[uN]=[_.DT,r6],y));y={};h.addProvider((y.provide=GW,y.useClass=GW,y[uN]=[r6],y));y={};h.addProvider((y.provide=k3,y.useClass=k3,y[uN]=[r6],y));y={};h.addProvider((y.provide=Y1,y.useClass=
Y1,y[uN]=[_.Mp],y));y={};h.addProvider((y.provide=IW,y.useClass=IW,y[uN]=[_.Le],y));y={};h.addProvider((y.provide=Jl,y.useClass=Jl,y[uN]=[OK],y));y={};h.addProvider((y.provide=et,y.useClass=et,y[uN]=[OK],y));h.addProvider({provide:Al,useClass:Al});h.addProvider({provide:UK,useClass:UK});h.addProvider({provide:Ds,useClass:Ds});y={};h.addProvider((y.provide=w6,y.useClass=w6,y[uN]=[_.Mp,_.OM],y));h.addProvider({provide:As,useClass:As});y={};h.addProvider((y.provide=G1,y.useClass=G1,y[uN]=[_.DT,_.Mp],
y));h.addProvider({provide:ev,useClass:ev});y={};h.addProvider((y.provide=Zs,y.useClass=Zs,y[uN]=[r6,_.DT,_.Ks],y));y={};h.addProvider((y.provide=Ls,y.useClass=Ls,y[uN]=[_.DT,_.OM],y));h.addProvider({provide:o45,useValue:bQy});h.addProvider({provide:rn7,useValue:YKN});h.addProvider({provide:PZ,useClass:PZ});y={};h.addProvider((y.provide=$3,y.useClass=$3,y[uN]=[r6],y));y={};h.addProvider((y.provide=oW,y.useClass=oW,y[uN]=[_.Qu,_.OM],y));y={};h.addProvider((y.provide=Dp,y.useClass=Dp,y[uN]=[_.OM],y));
y={};h.addProvider((y.provide=NW,y.useClass=NW,y[uN]=[$7],y));h.addProvider({provide:um4,useFactory:_.fR.getInstance});y={};h.addProvider((y.provide=pg,y.useClass=pg,y[uN]=[U2,um4,_.OM],y));h.addProvider({provide:B7,useClass:B7});h.addProvider({provide:Zp,useClass:Zp});h.addProvider({provide:MW,useClass:MW});h.addProvider({provide:_.on,useClass:_.on});h.addProvider({provide:i7,useClass:i7});y={};h.addProvider((y.provide=St,y.useClass=St,y[uN]=[$7],y));y={};h.addProvider((y.provide=qW,y.useClass=qW,
y[uN]=[_.OM],y));y={};h.addProvider((y.provide=Ft,y.useClass=Ft,y[uN]=[_.OM],y));y={};h.addProvider((y.provide=aW,y.useClass=aW,y[uN]=[_.OM],y));_.r("web_enable_prefetching_videos_on_home")&&(h.addProvider({provide:cw,useClass:cw}),h.addProvider({provide:sg,useClass:sg}));y={};h.addProvider((y.provide=EK,y.useClass=EK,y[uN]=[_.OM],y));h.addProvider({provide:us,useClass:us});y={};h.addProvider((y.provide=cZ,y.useClass=cZ,y[uN]=[_.DT,_.OM],y));y={};h.addProvider((y.provide=O2,y.useClass=O2,y[uN]=[_.OM],
y));y={};h.addProvider((y.provide=Yz,y.useClass=Yz,y[uN]=[_.DT,_.OM],y));h.addProvider({provide:w9f,useClass:w9f});h.addProvider({provide:fIA,useClass:fIA});h.addProvider({provide:b7,useClass:b7});y={};h.addProvider((y.provide=v7,y.useClass=v7,y[uN]=[$7,_.OM],y));h.addProvider({provide:hl,useClass:hl});y={};h.addProvider((y.provide=QO,y.useClass=QO,y[uN]=[$7,_.OM,_.DT],y));y={};h.addProvider((y.provide=m1,y.useClass=m1,y[uN]=[_.OM],y));y={};h.addProvider((y.provide=x3,y.useClass=x3,y[uN]=[_.OM,_.DT],
y));y={};h.addProvider((y.provide=tl,y.useClass=tl,y[uN]=[_.OM,_.DT],y));y={};h.addProvider((y.provide=jt,y.useClass=jt,y[uN]=[_.ja],y));y={};h.addProvider((y.provide=dl,y.useClass=dl,y[uN]=[_.ja],y));y={};h.addProvider((y.provide=yO,y.useClass=yO,y[uN]=[_.ja],y));h.addProvider({provide:u7,useClass:u7});h.addProvider({provide:Nc,useClass:Nc});h.addProvider({provide:sK,useClass:sK});h.addProvider({provide:RW,useClass:RW});h.addProvider({provide:HZ,useClass:HZ});h.addProvider({provide:Cg,useClass:Cg});
h.addProvider({provide:Xt,useClass:Xt});_.r("kevlar_enable_mss_lazy_load")&&h.addProvider({provide:_.we,useClass:IIq});h.addProvider({provide:_.Sc,useClass:Ug});h.addProvider({provide:Cj,useFactory:function(){return _.$J.getInstance()}});
h.addProvider({provide:XsA,useFactory:dX8});h.addProvider({provide:OK,useFactory:function(){return _.K0.getInstance()}});
h.addProvider({provide:Cyb,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});y={};h.addProvider((y.provide=_.zi,y.useClass=_.zi,y[uN]=[_.ja,_.OM,_.Le,XsA,OK,Cj,Cyb,bs],y));h.addProvider({provide:_.y$,useClass:ha7});h.addProvider({provide:_.MFa,useClass:oba});y={};h.addProvider((y.provide=g6,y.useClass=g6,y[uN]=[_.MFa],y));y={};h.addProvider((y.provide=_.Dq,y.useFactory=function(n){return n.upliftCompletionResolver.promise},y[uN]=[Nsq],y));
y=_.m$("IS_SHELL_LOAD")?"aa":"eocs";var S=_.m$("IS_SHELL_LOAD")?3:2;_.Dh().parkOrScheduleJob(function(){rrN()},S,y);
_.Dh().parkOrScheduleJob(function(){_.H9().resolve(Bw).start()},2,"eocs");
_.Dh().parkOrScheduleJob(function(){Haa()},2,"eocs");
_.Dh().parkOrScheduleJob(function(){_.H9().resolve(RT).start()},2,"eocs");
_.r("kevlar_debug_data_app_registration_ks")||xH8();h.addProvider({provide:_.rS,useValue:new Jxq(b.root)});h.addProvider({provide:d_,useValue:new taq});h.addProvider({provide:_.kpA,useValue:new TfP(b.root)});h.addProvider({provide:_.zM,useValue:new Gpq});h.addProvider({provide:_.QI,useClass:j9});h.addProvider({provide:fCf,useClass:Az});_.r("kevlar_network_sli_killswitch")||h.addProvider({provide:bnF,useValue:yu8});h.addProvider({provide:ilX,useFactory:Mry});y={};h.addProvider((y.provide=GPd,y.useFactory=
wS5,y[uN]=[_.Dq,r6,_.Hw],y));y={};h.addProvider((y.provide=T1N,y.useClass=vZ,y[uN]=[GPd],y));h.addProvider({provide:NBx,useClass:X0A});h.addProvider({provide:CRX,useClass:saX});y=[].concat(_.f$(lp));y.push(_.sk);y.push(lV7);_.r("enable_share_panel_navigation_logging_fix_on_web")&&y.push(_.Pgo);h.addProvider({provide:nzk,useValue:y});h.addProvider({provide:tX5,useClass:eXN});h.addProvider({provide:aIN,useClass:hpY});y={};h.addProvider((y.provide=HOI,y.useClass=v$x,y[uN]=[$7],y));_.xP.addLowPriorityJob(function(){Nuq()});
y={};h.addProvider((y.provide=uMb,y.useFactory=function(n){return function(X){var u,O=(u=_.c(X.commandMetadata,_.ZW))==null?void 0:u.url;if(!O)throw new _.Gn("No URL for PBJ Command",X);O=yLr(O,{pbj:"1"});u=rLj(O,{})||{};u=Object.assign({},u,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.QC("STS").toString()});X=_.pn({command:JSON.stringify(X),session_token:_.QC("XSRF_TOKEN")});return n.fetch(O,{method:"POST",headers:u,body:X})}},y[uN]=[aIN],y));
h.addProvider({provide:QeA,useFactory:function(){var n={};return n.CSI=XSn(),n.ECATCHER=n_N(),n}});
h.addProvider({provide:PA8,useClass:mUf});y=[];y.push(h.resolve(CRX));S={};S=(S.client_location=_.fR.getInstance(),S.consistency=_.O1Y(),S.entities=h.resolve(pEP),S.response_received_commands=h.resolve(tX5),S.store=h.resolve(_.MXM),S.tokens=h.resolve(CRX),S.service_params=h.resolve(PA8),S);if(_.r("web_shorts_prefetch_service_enabled")){var F=new UKa(h.resolve(_.QQ));S.shorts_prefetch=F}S.adblock_detection=h.resolve(HOI);h.addProvider({provide:_.PX,useClass:_.PX});F=h.resolve(_.b$);var a=[];_.r("PremiumClientSharedConfig__enable_att_context_processor")&&
(h.addProvider({provide:XEq,useClass:ofY}),a.push(h.resolve(XEq)));if(_.r("owl_pl_await")){var P={};h.addProvider((P.provide=gZA,P.useFactory=function(n){return new erE(n)},P[uN]=[_.PX],P));
a.push(h.resolve(gZA))}rOa(F,h.resolve(aIN),h.resolve(EZf),S,h.resolve(_.QQ),y,a,h.resolve(T1N),h.resolve(NBx));h.addProvider({provide:_.DT,useValue:_.Ek.instance});_.r("start_client_gcf")&&h.addProvider({provide:Eu,useValue:yta()});h.addProvider({provide:RuA,useFactory:function(){return new RuA(_.H9().resolve(_.PX),_.K0.getInstance())}});
_.Dh().parkOrScheduleJob(function(){zua()},1,"eocs");
y={};h.addProvider((y.provide=IT,y.useClass=IT,y[uN]=[_.Hw,_.DT],y));h.addProvider({provide:_.blN,useFactory:_.gN.getInstance});_.Dh().parkOrScheduleJob(function(){_.H9().resolve(IT).refresh()},0,"eocs");
h.addProvider({provide:_.A_,useClass:a9A});_.r("kevlar_signal_collection_killswitch")||(y={},h.addProvider((y.provide=$oA,y.useClass=$oA,y[uN]=[U2,ns],y)),_.Dh().parkOrScheduleJob(function(){_.H9().resolve($oA).record()},1,"eocs"));
_.r("web_debug_handler_registration_killswitch")||_.Dh().parkOrScheduleJob(function(){lq4("DOWNLOAD_PES",agU);_.r("offline_client_state_export_ks")||lq4("OFFLINE_CLIENT_STATE",y3I)},0,"eocs");
_.r("kevlar_prevent_polymer_dynamic_font_load")&&_.Dh().parkOrScheduleJob(function(){var n=[_.Ra(MRA),_.Ra(n0a)];n=_.L(n);for(var X=n.next();!X.done;X=n.next()){X=X.value;var u=document.createElement("link");_.Xg(u,X,"stylesheet");document.head.appendChild(u)}},1,"eocs");
y=b.injector.resolve(_.DT);_.nfa.instance=new _.nfa(y);JMU(d5f(new Mwx(y)));y={};b.injector.addProvider((y.provide=tR,y.useFactory=function(n){(n=n==null?void 0:n.getCurrentPage())?n=n.visibilityObserver:(l7A||(l7A=NEI()),n=l7A);return n},y[uN]=[_.XS(_.bM)],y.skipCache=!0,y));
h.addProvider({provide:_.Vp,useClass:fy});h.addProvider({provide:d7,useClass:KRN});b.injector.addProvider({provide:asb,useValue:pMa});h.addProvider({provide:xve,useValue:m9a});h.addProvider({provide:Sr5,useValue:lcI});h.addProvider({provide:_.cC,useValue:d_8});b=h.addProvider;F$a||(F$a=new SWx);b.call(h,{provide:_.py,useValue:F$a});h.addProvider({provide:_.fh,useValue:_.QC("HTML_DIR")==="rtl"?"rtl":"ltr"});h.addProvider({provide:Vwd,useClass:bDP});h.addProvider({provide:_.MJ,useClass:u5A});_.H9().addProvider({provide:i$Y,
useValue:_.r("enable_web_delhi_icons")?Yux.concat(GEF):shN.concat(Tdf)});h.addProvider({provide:_.W$f,useClass:_.W$f});h.addProvider({provide:_.Kwf,useValue:new PN2});h.addProvider({provide:UAx,useClass:WtA});h.addProvider({provide:zW,useClass:zW});h.addProvider({provide:BZ,useClass:BZ});b={};h.addProvider((b.provide=ls,b.useClass=ls,b[uN]=[_.DT,_.Mp],b));h.addProvider({provide:wl,useClass:wl});h.addProvider({provide:xAX,useClass:xoY});h.addProvider({provide:ps,useClass:ps});h.addProvider({provide:$aG,
useValue:w6M});h.addProvider({provide:_.g0,useClass:Akd});_.r("enable_payments_purchase_manager")&&h.addProvider({provide:N3P,useClass:H$x});h.addProvider({provide:FQq,useFactory:function(){return function(n){return _.o0X(n)}}});
h.addProvider({provide:_.AgP,useClass:Uza});b={};h.addProvider((b.provide=VO,b.useClass=VO,b[uN]=[_.AgP],b));h.addProvider({provide:WZ,useClass:WZ});h.addProvider({provide:kkf,useValue:rxF});h.addProvider({provide:U75,useValue:_.K$f});h.addProvider({provide:KOF,useClass:q5E});h.addProvider({provide:abY,useValue:XLY});b={};h.addProvider((b.provide=dUA,b.useClass=jea,b[uN]=[abY],b));b={};h.addProvider((b.provide=_.$O,b.useClass=OzX,b[uN]=[dUA],b));b={};h.addProvider((b.provide=_.ez,b.useClass=kwf,b[uN]=
[_.nd,_.QI],b));if(_.r("web_explore_hub_on_hover")||_.r("web_client_explore_hub_on_hover"))b={},h.addProvider((b.provide=W7,b.useClass=W7,b[uN]=[_.DT,Cj],b));if(_.r("web_enable_renderer_logger")){var K=new yFF;ZEr(function(){K.abort()});
h.addProvider({provide:tur,useValue:new P_X(K.signal)})}h.addProvider({provide:jZW,useValue:uzf});h.addProvider({provide:ySn,useClass:p0q});_.r("web_use_flow_state_manager")&&(h.addProvider({provide:_.yJ,useClass:JkP}),b={},h.addProvider((b.provide=Sv,b.useClass=Sv,b[uN]=[_.yJ],b)),b={},h.addProvider((b.provide=FJ,b.useClass=FJ,b[uN]=[_.nd,_.yJ],b)),b={},h.addProvider((b.provide=an,b.useClass=an,b[uN]=[_.nd,_.yJ,_.OM],b)),b={},h.addProvider((b.provide=d6,b.useClass=d6,b[uN]=[_.DT,_.OM],b)),b={},h.addProvider((b.provide=
jv,b.useClass=jv,b[uN]=[_.yJ,_.OM],b)))}},quf);var Qhf={},miE=(Qhf.initialized={priority:10,callback:function(){if(!vZd){WI8();uZk("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.DI(_.X8(uZk,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.r("log_heartbeat_with_lifecycles")){var b={};gP.instance||(gP.instance=new gP);gP.instance.install((b.document_visible={callback:OJU,priority:10},b.document_hidden={callback:OJU,priority:10},b))}else _.uF(document,"visibilitychange",OJU);vZd=!0}(b=_.UE())&&b!=="UNDEFINED_CSN"&&HTF(b)}},Qhf);var v2P={},bPY=(v2P.initialized={callback:function(b){var h=_.Kh(232091),y=b.injector.resolve(_.Le);_.lC(y,h);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?vvY()&&_.xa(y,h):(b=b.injector.resolve(FQq)("refresh_detector"))&&(b.get("first_tab_load")?_.xa(y,h):b.set("first_tab_load","1"))}},v2P);var hLN={},yRE=(hLN.initialized={priority:10,callback:jdf},hLN);var SPd={},FV2=(SPd.initialized={priority:0,callback:function(){var b=new v08,h="other";_.Nq?h="chrome":_.OV?h="firefox":_.h9?h="safari":nz&&(h="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(y){b.increment(_.sM(),y,h)}).catch(function(){b.increment(_.sM(),!1,h)}):b.increment(_.sM(),!1,h)}},SPd);var aRY={},dSA=(aRY.rendering={priority:8,callback:$sq},aRY);var jLf={},$SP=(jLf.rendering={priority:10,callback:chY},jLf.rendered={callback:rh8},jLf),LVx={},Phf=(LVx.rendering={callback:chY},LVx.rendered={callback:rh8},LVx);var KVf=!1,ZPf={},oJ2=(ZPf.initialized={priority:10,callback:function(){KVf||(hYF({didPatch:function(b){b.el&&AI8(b.el,b.props)},
didUnmount:function(b){BMF(b.el)}}),KVf=!0)}},ZPf);var MHN=/^\/shorts\/?$/;_.xZ("FILLER_DATA",{browse:{filler:!0,page:"browse"},search:{filler:!0,page:"search",endpoint:{commandMetadata:{webCommandMetadata:{url:"/results",webPageType:"WEB_PAGE_TYPE_SEARCH"}},urlEndpoint:{url:"/results"}},response:{contents:{twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[],subMenu:{searchSubMenuRenderer:{}}}},secondaryContents:{secondarySearchContainerRenderer:{contents:[]}}}}}},watch:{filler:!0,page:"watch",endpoint:{commandMetadata:{webCommandMetadata:{url:"/watch",
webPageType:"WEB_PAGE_TYPE_WATCH"}},urlEndpoint:{url:"/watch"}},playerResponse:{playabilityStatus:{status:"OK"}},response:{contents:{twoColumnWatchNextResults:{results:{results:{contents:[{videoPrimaryInfoRenderer:{},videoSecondaryInfoRenderer:{}}]}},secondaryResults:{secondaryResults:{}}}}}}});_.r("kevlar_use_common_module_manager_ks")?(_.y94(new RC5),nGM()):zCj();
(function(){var b=document.querySelector("ytd-app");if(!b)throw Error("$j");b=new Cy({root:b,injector:_.H9()});b.install(miE);var h={};b.install((h.initialized={priority:10,callback:KCr},h));_.r("wp_lat_b")&&(h={},b.install((h.initialized={priority:10,callback:function(){Keq()}},h)));
h={};b.install((h.rendered={priority:0,callback:$xn},h));h={};b.install((h.rendered={priority:0,callback:function(){_.xP.addLowPriorityJob(function(){_.hXf>1&&(hxj(),dxy())},4E4)}},h));
b.install(knA);b.install(bPY);b.install(oJ2);kxn();b.install(v0E);b.install(CNa);b.install(THE);b.install(huf);b.install(doq);b.install(QA2);b.install(xid);_.r("kevlar_enable_mss_lazy_load")&&b.install(yRE);b.install(sAE);b.install(FV2);if(!_.m$("IS_SHELL_LOAD")||_.r("kevlar_fetch_initial_data_promise_client")||_.r("sw_nav_preload_pbj")){var y=_.W9(window.location.href);h=y&&y==="/watch";y=y&&y.match(MHN);h?b.install(Phf):y?b.install(dSA):b.install($SP)}else b.install(p9a);b.install(E0x);_.r("web_enable_prefetching_videos_on_home")&&
b.install(SvN);_.r("start_client_gcf")&&b.install(xUf);b.install(xKE);(new bzM).increment("INSTALLED");b.install(hvA);b.install(WwE);b.transition("initialized");Sl8();w64()})();
_.o3=[[["b2VyeWtraW5kI2YwcnI1NDk=","c3ZhbHVlIzJsOGpoYjhwbWx2"],"eUFEX1BMQUNFTUVOVF9LSU5EX1BBVVNFI290bjg5a20zMnl0"]];_.ZT=["YWNrcyM0YzdrNDZlY2VpdGlnbG9iYWxDYWxsYg==","eWpnMmZvbkFibm9ybWFsaXR5RGV0ZWN0ZWQjYXQzZjY5Mw==","bmt5YzRqdmoyNG9uQWRTa2lwIzRs","azFyNjF4dWN3cmF3X3BsYXllcl9yZXNwb25zZSN1ZGc=","bnQjMXlmMDRzcWhsazNqcmVuZGVyaW5nQ29udGU="];_.p0="YWNrcyM0YzdrNDZlY2VpdGlnbG9iYWxDYWxsYg== eWpnMmZvbkFibm9ybWFsaXR5RGV0ZWN0ZWQjYXQzZjY5Mw== bmt5YzRqdmoyNG9uQWRTa2lwIzRs azFyNjF4dWN3cmF3X3BsYXllcl9yZXNwb25zZSN1ZGc= bGVfc2tpcHNfa3MjOHprZ2V0Z2o1amN0d2ViX3BsYXlsaXN0X3F1ZXVlX211bHRpcA== cDBhYmtqbWt0ZWFiX3NhX2VmIzRr bnQjMXlmMDRzcWhsazNqcmVuZGVyaW5nQ29udGU=".split(" ");
_._ModuleManager_initialize=function(b,h){if(!_.l5){if(!_.qK)return;_.y94(_.qK())}_.l5.setAllModuleInfoString(b,h)};
_._ModuleManager_initialize('kevlar_base_module/sy3/sy4/sy1:1,2/sy2/sy5:1,2/sy6/sy7/sy8/sy9/sya:3/syb/syc/kevlar_main_module:3,4,5,6,7,8,9/syd:1/sye:a,e/syf:f/syg/syh:6/syi/h8y2qb:5,g,h,i,j/syj/JzFVk:e,i,j,l/syk:8/xwEKAe:2,9,h,j,n/syl:4,c,f,h,l,n/sym:p/nmfa2d:j,q/syn:7,p/syo:i,j,q,s/CF909:t/Tm0L3c:t/L3n37:g,i,j,s/NSzT5:b/iuT5Oc',['sy4','sy3','sy1','sy8','syd','sya','syk','syj','syg','sye','syc','sy2','syl','sy7','sy6','syn','sym','syi','syh','syb','syf','syo','sy9','sy5','iuT5Oc','NSzT5','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
var ARd,USx;_.B_P=function(b){return!!b.getOptions("captions")};
_.WVA=function(b){return(b=b.getOption("captions","track"))?!!b.displayName:!1};
_.m6=function(b,h){_.AF(h,b,function(){return ARd[h]},function(y){ARd[h]=y;
if(!_.r("mweb_player_ve_show_ks")){var S=_.UE(0);S&&y&&_.iE(S,y)}})};
_.vw=function(b){(b=ARd[b])&&_.xa(_.rU(),b)};
ARd={};var poA;/*

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
*/
_.pZ({_template:function(){if(poA!==void 0)return poA;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;USx===void 0&&(USx=document.createElement("template"));var S=USx;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return poA=b},
is:"tp-yt-paper-checkbox",behaviors:[_.S6e],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.Ob(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var b=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),h="px",y=b.match(/[A-Za-z]+$/);y!==null&&(h=y[0]);b=parseFloat(b);y=8/3*b;h==="px"&&(y=Math.floor(y),y%2!==b%2&&y++);this.updateStyles({"--paper-checkbox-ink-size":y+
h})}})},
_computeCheckboxClass:function(b,h){var y="";b&&(y+="checked ");h&&(y+="invalid");return y},
_computeCheckmarkClass:function(b){return b?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.hWa._createRipple.call(this)}});var JRE=new _.r4("radioButtonSurveyOptionRenderer"),eLx=new _.r4("checkboxSurveyOptionRenderer");var ChE;var gJE;var sLq=0,bL=function(){var b=_.g.call(this)||this;b.selected=!1;b.isOverlay=!1;b.inputId="toggle-option-"+sLq;sLq++;return b};
_.z(bL,_.g);bL.prototype.onTap=function(){_.Sx(this.hostElement,"ytd-toggle-option-clicked")};
_.V([_.C(),_.f("design:type",String)],bL.prototype,"label",void 0);_.V([_.C(),_.f("design:type",String)],bL.prototype,"inputId",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],bL.prototype,"selected",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],bL.prototype,"isOverlay",void 0);_.V([_.Yx({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.f("design:paramtypes",[])],bL);
_.k(bL,"ytd-toggle-option-renderer",function(){if(gJE!==void 0)return gJE;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return gJE=b},{mode:1});var hy=function(){var b=_.g.apply(this,arguments)||this;b.isToggleOption=!1;b.isOverlay=!1;return b};
_.z(hy,_.g);hy.prototype.onTap=function(b){b.preventDefault();this.data&&(b=!this.data.checked,this.set("data.checked",b),_.Sx(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:b,value:this.data.value}))};
_.tm.Object.defineProperties(hy.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
hy.prototype.onTap=hy.prototype.onTap;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],hy.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],hy.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],hy.prototype,"isToggleOption",void 0);_.V([_.C(),_.f("design:type",Object)],hy.prototype,"isOverlay",void 0);_.V([_.W("data.responseText"),_.f("design:type",String),_.f("design:paramtypes",[])],hy.prototype,"label",null);
_.V([_.u3("ytd-toggle-option-clicked"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],hy.prototype,"onTap",null);_.V([_.Yx({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],hy);
_.k(hy,"ytd-checkbox-survey-option-renderer",function(){if(ChE!==void 0)return ChE;var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return ChE=b},{mode:1});var YPd;var T_P;var yo=function(){var b=_.g.apply(this,arguments)||this;b.checked=!1;b.isToggleOption=!1;return b};
_.z(yo,_.g);yo.prototype.onTap=function(){this.data&&(this.checked?_.F8(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.F8(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
yo.prototype.onTap=yo.prototype.onTap;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],yo.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],yo.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],yo.prototype,"checked",void 0);_.V([_.C(),_.f("design:type",Object)],yo.prototype,"isToggleOption",void 0);_.V([_.u3("ytd-toggle-option-clicked"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],yo.prototype,"onTap",null);
_.V([_.Yx({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],yo);
_.k(yo,"ytd-radio-button-survey-option-renderer",function(){if(T_P!==void 0)return T_P;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return T_P=b},{mode:1});var SL=function(){var b=_.g.apply(this,arguments)||this;b.disableAnimation=!1;b.isToggleOption=!0;b.followUpSurveyCommand=null;b.selectedRatingEndpoint=null;b.isSlimlineSurveyFollowUp=!1;b.isShortsStyle=!1;b.styleOverrideAttribute=!0;b.isDarkMode=!1;b.isSubmitted=!1;b.roundedContainer=!0;b.improveShortsResponseRate=_.r("web_improve_shorts_response_rate");b.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 b};
_.z(SL,_.g);_.d=SL.prototype;
_.d.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"}}}}};
_.d.attached=function(){var b=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(y){var S;if((S=y[0])!=null&&S.isIntersecting){_.OQ().reportShown(b.hostElement);var F;(F=b.intersectionObserver)==null||F.unobserve(b.hostElement)}},{rootMargin:"0px",
threshold:.6});var h;(h=this.intersectionObserver)==null||h.observe(this.hostElement)};
_.d.onDarkModeToggledAction=function(b){this.isDarkMode=b};
_.d.dataChanged=function(){var b;if(((b=this.data)==null?void 0:b.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var h;((h=this.data)==null?void 0:h.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var y,S,F,a;this.darkColorPalette=(y=this.data)==null?void 0:(S=y.inlineContent)==null?void 0:(F=S.compactVideoRenderer)==null?void 0:(a=F.thumbnail)==null?
void 0:a.darkColorPalette;var P,K,n,X;this.lightColorPalette=(P=this.data)==null?void 0:(K=P.inlineContent)==null?void 0:(n=K.compactVideoRenderer)==null?void 0:(X=n.thumbnail)==null?void 0:X.lightColorPalette;var u,O;if(((u=this.data)==null?0:(O=u.inlineContent)==null?0:O.compactVideoRenderer)&&this.isShortsStyle){var N,t,R,I;b=_.Fv((N=this.data)==null?void 0:(t=N.inlineContent)==null?void 0:(R=t.compactVideoRenderer)==null?void 0:(I=R.thumbnail)==null?void 0:I.thumbnails);_.nZ(this.hostElement,
{"--yt-background-url":"url("+b+")"})}};
_.d.handleRequestCompletion=function(){this.hostElement.hidden&&_.Sx(this.hostElement,"yt-dismissible-item-dismissed")};
_.d.onPopupClosed=function(b){var h;((h=b.detail)==null?void 0:h.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.F8(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.d.handleInlineSurveyRatingSelect=function(b,h){var y=this;this.selectedRatingEndpoint=b;this.followUpSurveyCommand=h;this.expanded=!!b;this.getOptionRenderers().forEach(function(S,F){y.notifyPath("followUpSurveyCommand.followUpOptions."+F+".checkboxSurveyOptionRenderer.checked");y.set("followUpSurveyCommand.followUpOptions."+F+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),b=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.F8(this.hostElement,"yt-reel-non-video-content-dismissal-command",[b]))};
_.d.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.F8(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var b,h=(b=this.data)==null?void 0:b.dismissalEndpoint;h&&this.ytComponentBehavior.resolveCommand(h)}};
_.d.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.F8(this.hostElement,"yt-close-popup-action"))};
_.d.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var b=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{b=this.getOptionRenderers().filter(function(S){return S.checked});
if(b.length===0)return;b=b.map(function(S){return S.responseEndpoint})}var h=[];
b.forEach(function(S,F){F!==0&&(S=_.c(S,_.s9))&&S.feedbackToken&&h.push(S.feedbackToken)});
if(b=b[0]){var y={};h.length>0&&(y.extra_feedback_tokens=h);this.ytComponentBehavior.resolveCommand(b,{form:y})}}};
_.d.getOptionRenderers=function(){var b=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(h){b.isSingleSelect=!!_.c(h,JRE);return b.isSingleSelect?_.c(h,JRE):_.c(h,eLx)}):[]};
_.d.handleInlineSurveyOptionSelect=function(b){b=this.optionSelector.indexOf(b);b!==-1&&this.optionSelector.selectIndex(b)};
_.d.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.d.maybeGetBackgroundColor=function(b){return this.isDarkMode?b.section2Color:b.section3Color};
_.d.colorPaletteChanged=function(){var b=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;b=b&&this.maybeGetBackgroundColor(b);this.dismissibleEl.style.backgroundColor=!b||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.eI(b)};
_.tm.Object.defineProperties(SL.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
SL.prototype.colorPaletteChanged=SL.prototype.colorPaletteChanged;SL.prototype.onPopupClosed=SL.prototype.onPopupClosed;SL.prototype.handleRequestCompletion=SL.prototype.handleRequestCompletion;SL.prototype.dataChanged=SL.prototype.dataChanged;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],SL.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],SL.prototype,"actionHandlerBehavior",void 0);
_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],SL.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],SL.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.rP),_.f("design:type",Object)],SL.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.to("#follow-up-survey-options"),_.f("design:type",Object)],SL.prototype,"optionSelector",void 0);_.V([_.C(),_.f("design:type",Object)],SL.prototype,"data",void 0);
_.V([_.C(),_.f("design:type",Object)],SL.prototype,"disableAnimation",void 0);_.V([_.C(),_.f("design:type",Object)],SL.prototype,"isToggleOption",void 0);_.V([_.C(),_.f("design:type",Object)],SL.prototype,"followUpSurveyCommand",void 0);_.V([_.C(),_.f("design:type",Object)],SL.prototype,"selectedRatingEndpoint",void 0);_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],SL.prototype,"expanded",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],SL.prototype,"isSlimlineSurveyFollowUp",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],SL.prototype,"isShortsStyle",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],SL.prototype,"styleOverrideAttribute",void 0);_.V([_.C(),_.f("design:type",Boolean)],SL.prototype,"isSingleSelect",void 0);_.V([_.C(),_.f("design:type",Object)],SL.prototype,"isDarkMode",void 0);
_.V([_.C(),_.f("design:type",Object)],SL.prototype,"lightColorPalette",void 0);_.V([_.C(),_.f("design:type",Object)],SL.prototype,"darkColorPalette",void 0);_.V([_.W("selectedRatingEndpoint","isShortsStyle"),_.C({reflectToAttribute:!0}),_.f("design:type",Boolean),_.f("design:paramtypes",[])],SL.prototype,"isOptionSelected",null);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],SL.prototype,"roundedContainer",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],SL.prototype,"improveShortsResponseRate",void 0);_.V([_.to("#dismissible"),_.f("design:type",HTMLElement)],SL.prototype,"dismissibleEl",void 0);_.V([_.to("#dismiss-button yt-icon-button"),_.f("design:type",HTMLElement)],SL.prototype,"dismissButtonEl",void 0);_.V([_.to("#inline-survey-header yt-icon-button"),_.f("design:type",HTMLElement)],SL.prototype,"inlineHeaderDismissButtonEl",void 0);
_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],SL.prototype,"dataChanged",null);_.V([_.u3("yt-service-request-completed"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],SL.prototype,"handleRequestCompletion",null);_.V([_.u3("yt-popup-closed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],SL.prototype,"onPopupClosed",null);
_.V([_.OB("darkColorPalette","lightColorPalette","isDarkMode"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],SL.prototype,"colorPaletteChanged",null);_.V([_.Yx({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],SL);
_.k(SL,"ytd-inline-survey-renderer",function(){if(YPd!==void 0)return YPd;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return YPd=b},{mode:1});var GUE=["en-CA","en","es-MX","fr-CA"];_.kUX=_.T(function(b){var h=_.h6(b,{isOverlay:!1,isModern:!1}),y=h.captionIconType,S=h.onClick;b=h.ariaLabel;var F=h.ariaPressed,a=h.isOverlay,P=h.isModern;h=_.ZR("button",function(X){_.m6(X,127299)});
var K=_.Zv(function(X){_.vw(127299);S==null||S(X);return!1}),n={};
return _.M("ytm-closed-captioning-button",{class:_.P2("ytmClosedCaptioningButtonHost",(n.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return y()===-1&&a()},n.ytmClosedCaptioningButtonIconDisabled=function(){return y()===-1&&!a()},n))},_.M("button",{el:h,
class:"ytmClosedCaptioningButtonButton",title:b,"aria-label":b,"aria-pressed":F,"on:click":K},_.M(_.Xv,{icon:function(){var X="",u=P();var O=u?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";u=u?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var N=_.HT().get("hl");O=!N||GUE.includes(N)?O:u;u=y();switch(u){case -1:case 0:X=O;break;case 1:X=O+"_FILLED";break;default:_.m5(u)}return X}})))},"sh");
_.kUX.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.l9=function(b,h,y,S,F){var a={};h&&(a[h]=y);S?a.errorType=S:F&&(a.errorReason=F);_.qi(b,a);_.x2()};
_.qH=function(b){var h=_.Dh();return _.IxW(h,b,1)};
_.pZ({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 b=this.query;b&&(this.full||b[0]==="("||(b="("+b+")"),this._mq=window.matchMedia(b),this._add(),this.queryHandler(this._mq))},
queryHandler:function(b){this._setQueryMatches(b.matches)}});var tHx;var rRX;var cRq=function(){};
_.d=cRq.prototype;_.d.addOwnKeyBinding=function(){};
_.d.removeOwnKeyBindings=function(){};
_.d.keyboardEventMatchesKeys=function(){};
_.d._collectKeyBindings=function(){};
_.d._prepKeyBindings=function(){};
_.d._addKeyBinding=function(){};
_.d._resetKeyEventListeners=function(){};
_.d._listenKeyEventListeners=function(){};
_.d._unlistenKeyEventListeners=function(){};
_.d._onKeyBindingEvent=function(){};
_.d._triggerKeyHandler=function(){};
_.d._tapHandler=function(){};
_.d._focusChanged=function(){};
_.d._detectKeyboardFocus=function(){};
_.d._userActivate=function(){};
_.d._upHandler=function(){};
_.d._spaceKeyDownHandler=function(){};
_.d._spaceKeyUpHandler=function(){};
_.d._asyncClick=function(){};
_.d._pressedChanged=function(){};
_.d._ariaActiveAttributeChanged=function(){};
_.d._activeChanged=function(){};
_.d._controlStateChanged=function(){};
_.d._changedButtonState=function(){};
_.d._focusBlurHandler=function(){};
_.d._disabledChanged=function(){};
_.d._changedControlState=function(){};
_.d._downHandler=function(){};
_.d.ensureRipple=function(){};
_.d.getRipple=function(){};
_.d.hasRipple=function(){};
_.d._noinkChanged=function(){};
_.d._focusedChanged=function(){};
_.d._createRipple=function(){};
_.d.registered=function(){};
_.d._invalidChanged=function(){};
_.d.hasValidator=function(){};
_.d.validate=function(){};
_.d._getValidity=function(){};
_.d._requiredChanged=function(){};
_.d._valueChanged=function(){};
_.d._checkedChanged=function(){};
_.d._buttonStateChanged=function(){};
_.d._setPressed=function(){};
_.d._setPointerDown=function(){};
_.d._setReceivedFocusFromKeyboard=function(){};
_.d._setFocused=function(){};
cRq=_.pZ({is:"tp-yt-paper-radio-button",_template:function(){if(rRX!==void 0)return rRX;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;tHx===void 0&&(tHx=document.createElement("template"));var S=tHx;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return rRX=b},
behaviors:[_.S6e],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(){_.Ob(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var b=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),h=Math.floor(3*b);h%2!==b%2&&h++;this.updateStyles({"--paper-radio-button-ink-size":h+"px"})}})}});var RLA;var zLN;_.pZ({_template:function(){if(zLN!==void 0)return zLN;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;RLA===void 0&&(RLA=document.createElement("template"));var S=RLA;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return zLN=b},
is:"tp-yt-paper-radio-group",behaviors:[_.x$b],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(b){var h=this._valueToItem(b);if(!h||!h.hasAttribute("disabled")){if(this.selected){h=this._valueToItem(this.selected);if(this.selected==b)if(this.allowEmptySelection)b="";else{h&&(h.checked=!0);return}h&&
(h.checked=!1)}_.qh.select.apply(this,[b]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(b){this._focusPrevious();b.preventDefault();this._activateFocusedItem()},
_onDownKey:function(b){this._focusNext();b.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(b){_.q98._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(b){_.q98._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.qh._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.FV._resetTabindices.apply(this,arguments);this.items.forEach(function(b){b.removeAttribute("aria-selected")},this)}});var DSA;_.W2("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var xz=function(){return _.g.apply(this,arguments)||this};
_.z(xz,_.g);_.d=xz.prototype;_.d.computeHasPrimaryIcon=function(b){return!(!b.icon&&!b.thumbnail)};
_.d.computeHasSecondary=function(b){return!(!b.secondaryIcon&&!b.secondaryNotificationText)};
_.d.computeHideSecondaryString=function(b){return!_.r("disable_hide_empty_secondary_string")&&!b.secondaryNotificationText};
_.d.computeCompactLinkStyle=function(b){return b?b.toLowerCase().replace(/_/g,"-"):""};
_.d.computeHasFitHeight=function(b){return b==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.d.isActiveEndpoint=function(b){return(b=this.get("commandMetadata.webCommandMetadata.url",b))?_.W9(window.location.href)!=="/account_transfer_channel"&&_.W9(window.location.href)!=="/gaia_link"&&_.W9(window.location.href)!=="/channel_switcher"||b!=="/account"?_.W9(window.location.href)===b:!0:!1};
_.d.onTap=function(){var b;((b=this.data)==null?0:b.serviceEndpoint)&&_.dh(this.hostElement,[this.data.serviceEndpoint])};
xz.prototype.onTap=xz.prototype.onTap;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],xz.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],xz.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.f("design:type",Boolean)],xz.prototype,"active",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.f("design:type",String)],xz.prototype,"compactLinkStyle",void 0);
_.V([_.C({computed:"computeIcon_(data.icon)"}),_.f("design:type",Object)],xz.prototype,"icon",void 0);_.V([_.C({computed:"computeIcon_(data.secondaryIcon)"}),_.f("design:type",Object)],xz.prototype,"secondaryIcon",void 0);_.V([_.C({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.f("design:type",Boolean)],xz.prototype,"hasSecondary",void 0);_.V([_.C({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.f("design:type",Boolean)],xz.prototype,"hideSecondaryString",void 0);
_.V([_.u3("tap"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],xz.prototype,"onTap",null);_.V([_.Yx({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],xz);
_.k(xz,"ytd-compact-link-renderer",function(){if(DSA!==void 0)return DSA;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return DSA=b},{mode:1});var IRE;_.W2("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var Q1=function(){var b=_.g.apply(this,arguments)||this;b.role="link";b.tabindex="0";b.actionMap=_.r("kevlar_move_theme_action_handlers_killswitch")?{"yt-signal-action-toggle-dark-theme-on":"handleSignalActionToggleDarkThemeOn","yt-signal-action-toggle-dark-theme-off":"handleSignalActionToggleDarkThemeOff","yt-signal-action-toggle-dark-theme-device":"handleSignalActionToggleDarkThemeDevice"}:{};return b};
_.z(Q1,_.g);_.d=Q1.prototype;_.d.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.Vk()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.d.getCurrentTheme=function(){return _.E0()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Vk()};
_.d.onThemeSelected=function(b,h){var y=b||h?b:_.kg(),S=(y&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!y&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.X8U(_.W9(window.location.href));_.uE(0,165,b);_.uE(0,174,h);this.prefs.save();S&&_.F8(this.hostElement,"yt-dark-mode-toggled-action",[y]);_.F8(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.d.onTap=function(){this.data.serviceEndpoint&&_.dh(this.hostElement,[this.data.serviceEndpoint])};
_.d.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.d.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.d.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
Q1.prototype.onTap=Q1.prototype.onTap;Q1.prototype.dataChanged=Q1.prototype.dataChanged;_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],Q1.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Q1.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Rb),_.f("design:type",Object)],Q1.prototype,"paperItemBehaviors",void 0);_.V([_.C(),_.f("design:type",Object)],Q1.prototype,"data",void 0);_.V([_.C({value:function(){return _.HT()}}),
_.f("design:type",_.zy)],Q1.prototype,"prefs",void 0);_.V([_.C(),_.f("design:type",Object)],Q1.prototype,"label",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Q1.prototype,"role",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Q1.prototype,"tabindex",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Q1.prototype,"dataChanged",null);
_.V([_.u3("tap"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Q1.prototype,"onTap",null);_.V([_.Yx({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],Q1);
_.$S()(Q1,"ytd-toggle-theme-compact-link-renderer",function(){if(IRE===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);IRE=b}b=IRE;return b},{allowedProps:["data"],
mode:1});
}catch(e){_._DumpException(e)}
try{
var VHa,EJd,woA,lRP,qPA,xS2,QLX,mSA,vJP,ddY,dT,afA,hSE,FdN,SbE,ymA,b2X,j0a,$dF,Lda,PzY,jL,KdF,Z2f,X_Y,Lo,MMA,Ko,$c,P1,n6x,o6f,H2A,uuq,O2A,NkY,tMx,rmd,RSP,zSF,DdY,If2,Bkf,WdX,AmA,UdP,p_A,Jma,CzN,g62,s0A,Tkf,kNf,E6X,i2x,ff2,w_d,qbP,xdx,Q0Y,mdf,v6Y,bxY,hYN,SEf,jHX,dQN,Fpx,$Qa,anA,Lpf,M3a,ojf,KpX,Zxf,Z_,njE,HxA,uNq,Oxq,RYf,zYX,DQd,InP,BOA,Wpa,AeA,UQA,p5f,eYA,CXx,gjE,sHx,YEf,TOf,GtA,kt2,ixA,NOF;
_.FY=function(b){var h=new _.Gn("Error accessing DB");return _.zfY().then(function(y){return new Promise(function(S,F){try{var a=y.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(b);a.onsuccess=function(){var P=a.result;S(P?P.value:null)};
a.onerror=function(){h.params={key:b,source:"onerror"};F(h)}}catch(P){h.params={key:b,
thrownError:String(P)},F(h)}})},function(){return null})};
VHa=function(b,h){return _.Mm(b.entities,"inlineExpansionEntity",h)};
EJd=function(b,h){return _.Mm(b.entities,"flowStateEntity",h)};
_.iPY=function(b,h){if(b&&h){var y=_.Nn();y().set(b,h);_.hVq(y())}};
_.fRF=function(b,h){if(b&&h){var y=_.Nn();y().set(b,h);_.hVq(y())}};
woA=function(b,h){return _.Mm(b.entities,"contextNoteUserRatingEntityPayload",h)};
lRP=function(b){return _.p4(b,function(h){return h.languageCode==="en"})};
qPA=function(b){var h=aV;if(_.WVA(b))b.setOption("captions","stickyLoading",{}),b.setOption("captions","track",{});else{var y=_.p4(_.Kvf(b),function(S){return S.displayName===h});
b.setOption("captions","track",y)}};
xS2=function(b){if(!b)return 0;var h=b.getPresentingPlayerType(),y=b.getVideoData();return y&&y.isLive?(b=b.getProgressState(h),b.seekableEnd-b.seekableStart):b.getDuration(h)};
QLX=function(b,h){for(var y=_.L(Object.keys(b)),S=y.next();!S.done;S=y.next())if(S=S.value,b[S]!==h[S])return!1;return!0};
mSA=function(){return document.getElementById("player-control-overlay")};
vJP=function(b){b!==-1&&!_.r("player_controls_log_creation_killswitch")&&mSA()&&(_.pI("pcu_cs",b),_.pI("pcu_ce"))};
ddY=function(b,h){var y=_.bi(b,{}),S=b2X("top",h),F=b2X("bottom",h),a=b2X("left",h),P=b2X("right",h);return _.n9({top:function(){return dT(y().position,S)},
bottom:function(){return dT(y().position,F)},
left:function(){return dT(y().position,a)},
right:function(){return dT(y().position,P)},
position:function(){return dT(y().positionType,hSE)},
height:function(){return dT(y().height,jL)},
width:function(){return dT(y().width,jL)},
"min-width":function(){return dT(y().minWidth,jL)},
"min-height":function(){return dT(y().minHeight,jL)},
"max-width":function(){return dT(y().maxWidth,jL)},
"max-height":function(){return dT(y().maxHeight,jL)},
"aspect-ratio":function(){return dT(y().aspectRatio,String)},
"margin-top":function(){return dT(y().margin,S)},
"margin-bottom":function(){return dT(y().margin,F)},
"margin-left":function(){return dT(y().margin,a)},
"margin-right":function(){return dT(y().margin,P)},
"padding-top":function(){return dT(y().padding,S)},
"padding-bottom":function(){return dT(y().padding,F)},
"padding-left":function(){return dT(y().padding,a)},
"padding-right":function(){return dT(y().padding,P)},
"flex-direction":function(){return dT(y().flexDirection,ymA)},
"justify-content":function(){return dT(y().justifyContent,SbE)},
"align-items":function(){return dT(y().alignItems,FdN)},
"flex-grow":function(){return dT(y().flexGrow,String)},
"flex-shrink":function(){return dT(y().flexShrink,String)},
"flex-basis":function(){return dT(y().flexBasis,jL)},
"align-self":function(){return dT(y().alignSelf,FdN)},
"flex-wrap":function(){return dT(y().flexWrap,afA)},
"align-content":function(){return dT(y().alignContent,FdN)}})};
dT=function(b,h){return b!==void 0?h(b):void 0};
afA=function(b){switch(b){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
hSE=function(b){switch(b){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
FdN=function(b){switch(b){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"}};
SbE=function(b){switch(b){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"}};
ymA=function(b){switch(b){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"}};
b2X=function(b,h){var y=h==="rtl";switch(b){case "top":var S=j0a;break;case "bottom":S=$dF;break;case "left":S=Lda;break;default:S=PzY}return function(F){return dT(S(F,y),jL)}};
j0a=function(b){var h=b.top;var y=b.vertical;b=b.all;var S;return(S=h!=null?h:y)!=null?S:b};
$dF=function(b){var h=b.bottom;var y=b.vertical;b=b.all;var S;return(S=h!=null?h:y)!=null?S:b};
Lda=function(b,h){var y=b.left;var S=b.end;var F=b.start;var a=b.horizontal;b=b.all;var P,K;return(K=(P=y!=null?y:h?S:F)!=null?P:a)!=null?K:b};
PzY=function(b,h){var y=b.right;var S=b.end;var F=b.start;var a=b.horizontal;b=b.all;var P,K;return(K=(P=y!=null?y:h?F:S)!=null?P:a)!=null?K:b};
jL=function(b){var h=b.value;switch(b.unit){case "YPC_DIMENSION_UNIT_POINT":return h+"px";case "YPC_DIMENSION_UNIT_FRACTION":return h+"%";default:return""+h}};
KdF=function(b){switch(b){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"}};
Z2f=function(b){var h=b!=null?b:{};b=h.fontRole;var y=h.fontSize;h=h.fontWeight;if(b!==null&&y!==null)switch(b){case "YPC_FONT_ROLE_DISPLAY":switch(y){case "YPC_FONT_SIZE_L":return h==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return h==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return h==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return h==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(y){case "YPC_FONT_SIZE_L":return h==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return h==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return h===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return h==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(y){case "YPC_FONT_SIZE_XL":return h==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return h==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return h==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return h==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return h==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
X_Y=function(b,h,y){function S(O){return Object.values(O).map(function(N){var t=N.productId;N=N.pricingOptionIndex;return $c(F(t).pricingOptions,N).pricingOptionId})}
function F(O){return n().get(O)}
function a(O){O=S(O);y(O)}
function P(O,N){return Array.from(Lo(O.pricingOptions)).filter(function(t){t=_.L(t);t.next();t=t.next().value;return P1(t.pricingGroupAttributes,N)}).map(function(t){return _.L(t).next().value})}
var K=o6f([b,h],function(O,N){var t=O==null?void 0:O.selectedPricingOptions;O={};var R=!0;if(t&&N.length)for(var I=_.L(N),U=I.next();!U.done;U=I.next()){U=U.value;var p=MMA(U.pricingOptions,function(Y){a:{Y=Y.pricingOptionId;for(var w=_.L(t),x=w.next();!x.done;x=w.next())if(x.value===Y){Y=!0;break a}Y=!1}return Y});
if(p>=0){R=!1;var e=$c(U.pricingOptions,p),E=void 0;O[U.groupId]={productId:U.productId,pricingOptionIndex:p,pricingGroupAttributes:(E=e)==null?void 0:E.pricingGroupAttributes}}}R&&N.length&&(R=$c(N[0].pricingOptions,0),O[N[0].groupId]={productId:N[0].productId,pricingOptionIndex:0,pricingGroupAttributes:R==null?void 0:R.pricingGroupAttributes});return O}),n=o6f([h],function(O){return new Map(O.map(function(N){return[N.productId,
N]}))}),X=o6f([h],function(O){var N=new Map;
O=_.L(O);for(var t=O.next();!t.done;t=O.next()){var R=t.value;t=R.groupId;var I=R.productId;R=_.L(Lo(R.pricingOptions));for(var U=R.next();!U.done;U=R.next()){var p=_.L(U.value);U=p.next().value;p=p.next().value;N.set(p.pricingOptionId,{groupId:t,productId:I,index:U,pricingOption:p,pricingGroupAttributes:p.pricingGroupAttributes})}}return N}),u=o6f([h],function(O){var N=new Map;
O=_.L(O);for(var t=O.next();!t.done;t=O.next()){var R=t.value;t=R.groupId;var I=R.productId,U=void 0;R=_.L(Lo((U=R.pricingGroups)!=null?U:[]));for(U=R.next();!U.done;U=R.next()){var p=_.L(U.value);U=p.next().value;p=p.next().value;N.set(p.pricingGroupId,{groupId:t,productId:I,index:U,pricingGroup:p,pricingGroupAttributes:p.pricingGroupAttributes})}}return N});
return{getProductById:F,isProductSelected:function(O){var N=F(O);if(!N)return!1;var t;return((t=K()[N.groupId])==null?void 0:t.productId)===O},
getSelectedPricingOptions:function(){return Object.values(K()).map(function(O){var N=O.productId;O=O.pricingOptionIndex;return $c(F(N).pricingOptions,O)})},
getSelectedPricingGroupAttributesByGroupId:function(O){var N;return(O=(N=K()[O])==null?void 0:N.pricingGroupAttributes)?Array.from(O):void 0},
getSelectedProductByGroupId:function(O){var N;return(O=(N=K()[O])==null?void 0:N.productId)?F(O):void 0},
onProductSelected:function(O){var N=F(O);if(N){var t=K(),R;if(((R=t[N.groupId])==null?void 0:R.productId)!==O){var I=(R=(I=t[N.groupId])==null?void 0:I.productId)?F(R):void 0;var U;R=(U=t[N.groupId])==null?void 0:U.pricingGroupAttributes;var p;U=(p=t[N.groupId])==null?void 0:p.pricingOptionIndex;if(I&&U!==void 0)if(R){p=P(I,R).indexOf(U);if(p===-1)throw Error("ak`"+U+"`"+I.productId);U=P(N,R);p=p<U.length?U[p]:U.length>0?U[0]:0}else p=U<Ko(N.pricingOptions)?U:0;else p=0;Ko(N.pricingOptions)<=p&&(p=
0);U=$c(N.pricingOptions,p);var e;I={};a(Object.assign({},t,(I[N.groupId]={productId:O,pricingOptionIndex:p,pricingGroupAttributes:(e=U==null?void 0:U.pricingGroupAttributes)!=null?e:[]},I)))}}},
onPricingOptionSelected:function(O){var N=X().get(O);if(N){O=N.groupId;var t=N.productId;N=N.index;var R=K(),I,U;if(((I=R[O])==null?void 0:I.productId)!==t||((U=R[O])==null?void 0:U.pricingOptionIndex)!==N){var p,e;I={};a(Object.assign({},R,(I[O]={productId:t,pricingOptionIndex:N,pricingGroupAttributes:(e=(p=R[O])==null?void 0:p.pricingGroupAttributes)!=null?e:[]},I)))}}},
onPricingGroupSelected:function(O){var N=u().get(O);if(N){O=N.groupId;var t=N.productId,R=N.pricingGroup.pricingGroupAttributes,I=F(t);if(I){N=K();var U=N[O].pricingGroupAttributes,p;if(((p=N[O])==null?void 0:p.productId)!==t||!P1(n6x(U,Ko(R)),R)){p=Array.from(R);for(R=Ko(R);R<Ko(U);R++){var e="",E=!1,Y=Array.from(p);Y.push($c(U,R));for(var w=_.L(I.pricingGroups),x=w.next();!x.done;x=w.next())if(x=x.value,P1(x.pricingGroupAttributes,Y)){p.push($c(U,R));E=!0;break}else e===""&&Ko(x.pricingGroupAttributes)===
Y.length&&P1(n6x(x.pricingGroupAttributes,p.length),p)&&(e=$c(x.pricingGroupAttributes,R));E||p.push(e)}e=N[O].pricingOptionIndex;R=[];E=new Map;Y=0;I=_.L(Lo(I.pricingOptions));for(w=I.next();!w.done;w=I.next())x=_.L(w.value),w=x.next().value,x=x.next().value,P1(x.pricingGroupAttributes,p)&&R.push(w),P1(x.pricingGroupAttributes,U)&&E.set(w,Y++);R.length===0?U=0:(U=E.get(e),U=U!==void 0&&U<R.length?R[U]:R[0]);I={};a(Object.assign({},N,(I[O]={productId:t,pricingOptionIndex:U,pricingGroupAttributes:p},
I)))}}}},
onClearGroupSelected:function(O){var N=K();N[O]&&(N=Object.fromEntries(Object.entries(N).filter(function(t){return _.L(t).next().value!==O})),a(N))}}};
Lo=function(b){return function y(){var S,F,a,P,K;return _.nW(y,function(n){switch(n.nextAddress){case 1:_.p$(n,2),S=0,F=_.L(b),a=F.next();case 4:if(a.done){n.jumpTo(2);break}P=a.value;K=_.Xo;return n.yield([S++,P],7);case 7:K(n.yieldResult);a=F.next();n.jumpTo(4);break;case 2:_.U3(n),_.Jk(n,0)}})}()};
MMA=function(b,h){b=_.L(Lo(b));for(var y=b.next();!y.done;y=b.next()){var S=_.L(y.value);y=S.next().value;S=S.next().value;if(h(S))return y}return-1};
Ko=function(b){var h=0;for(b=b[Symbol.iterator]();!b.next().done;)++h;return h};
$c=function(b,h){b=_.L(Lo(b));for(var y=b.next();!y.done;y=b.next()){var S=_.L(y.value);y=S.next().value;S=S.next().value;if(y===h)return S}};
P1=function(b,h){if(!b&&!h)return!0;if(!b||!h)return!1;b=Array.from(b);h=Array.from(h);if(b.length!==h.length)return!1;for(var y=0;y<b.length;y++)if(b[y]!==h[y])return!1;return!0};
n6x=function(b,h){h=h===void 0?Infinity:h;var y=[];b=_.L(Lo(b));for(var S=b.next();!S.done;S=b.next()){var F=_.L(S.value);S=F.next().value;F=F.next().value;if(S>=h)break;S>=0&&y.push(F)}return y};
o6f=function(b,h){var y,S;return function(){for(var F=b.map(function(P){return P()}),a=0;a<F.length;a++)if(!y||F[a]!==y[a]){y=F;
S=h.apply(null,_.f$(F));break}return S}};
H2A=function(b,h,y){var S=[];b=_.L(b);for(var F=b.next();!F.done;F=b.next()){F=F.value;var a=void 0;((a=h)==null?0:a.length)&&!P1(F.pricingGroupAttributes,h)||S.push({pricingOption:F,isSelected:y.includes(F.pricingOptionId)})}return S};
uuq=function(b,h){return _.Mm(b.entities,"pdpStateEntity",h)};
O2A=function(b){var h,y;return!!(b.productId&&b.groupId&&((h=b.pricingOptions)==null?0:h.length)&&b.pricingOptions.every(function(S){return S.pricingOptionId})&&((y=b.pricingGroups)==null||!y.length||Array.isArray(b.pricingGroups)&&b.pricingGroups.every(function(S){return S.pricingGroupId&&S.pricingGroupAttributes&&S.pricingGroupAttributes.length>0})))};
NkY=function(b,h,y){return X_Y(b,o6f([h],function(S){return S.filter(O2A)}),y)};
tMx=function(b,h){return h.length===0?[b]:[b.slice(0,h[0]),b.slice(h[0])].filter(function(y){return y.length>0})};
rmd=function(b){switch(b){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""}};
RSP=function(b,h,y,S){S=Object.assign({},S);_.J6(S,cmq,{selectedOptionId:b,primaryButtonOverride:y});_.mc().dispatch(_.R7("flowStateEntity",h,S))};
zSF=function(b,h,y){!_.c(y,cmq)&&b.noPreselect&&h!==""&&b.defaultButtonOverride&&RSP("default",h,b.defaultButtonOverride,y)};
DdY=function(b){switch(b){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"}};
If2=function(b){switch(b){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"}};
Bkf=function(b,h){if(h)return"ytCardViewModelCardSelected";switch(b){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
WdX=function(b,h){h.includes(b)?h=h.filter(function(y){return y!==b}):h.push(b);
return[].concat(_.f$(h))};
AmA=function(b,h){return _.Mm(b.entities,"contextNoteFeedEntityPayload",h)};
UdP=function(b,h){switch(b){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return h==null?void 0:h.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return h==null?void 0:h.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return h==null?void 0:h.ratingNotHelpfulText}};
p_A=function(b,h,y){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:y||b.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:b.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:b.deleteDialogTitle}]},dialogMessages:[{runs:[{text:b.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:b.deleteActionText}]},command:{performCommentActionEndpoint:{action:h}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:b.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
Jma=function(b,h,y){var S;if(b&&((S=h())==null?0:S.includes(b))){var F;y((F=h())==null?void 0:F.filter(function(a){return a!==b}))}else y([].concat(_.f$(h()||[]),[b]))};
CzN=function(b,h){if(b){var y=[];h=_.L((h==null?void 0:h.checkboxes)||[]);for(var S=h.next();!S.done;S=h.next()){S=_.c(S.value,eSf);var F=void 0;((F=S)==null?0:F.value)&&b.includes(S.key||"")&&y.push(S.value)}return y}};
g62=function(b){b.style.height="auto";b.style.height=b.scrollHeight+"px"};
s0A=function(b){return[b.syncStep,b.asyncStep].filter(function(h){return h!==void 0})};
Tkf=function(b){var h,y,S;if(b=(h=b.structuredContextNoteFormSchema)==null?void 0:(y=h.fieldSchemas)==null?void 0:(S=y.noteBody)==null?void 0:S.validationSchema)for(h=_.L(s0A(b)),y=h.next();!y.done;y=h.next()){y=y.value.rules;if(!y)break;y=_.L(y);for(y=y.next();!y.done;y=y.next())return _.c(y.value,_.YbF)}};
kNf=function(b){if(b){b=_.L(s0A(b));for(var h=b.next();!h.done;h=b.next()){h=h.value.rules;if(!h)break;h=_.L(h);for(h=h.next();!h.done;h=h.next())return _.c(h.value,GNx)}}};
E6X=function(b){if(b){b=_.L(s0A(b));for(var h=b.next();!h.done;h=b.next()){h=h.value.rules;if(!h)break;h=_.L(h);for(h=h.next();!h.done;h=h.next())return _.c(h.value,VMa)}}};
i2x=function(b){b=/^https?:\/\//.test(b)?b:"http://"+b;try{var h=_.La(b)}catch(y){return!1}if(h.toString()!==b)return!1;b=h.JSC$10215_domain_.split(".");return b.length>1&&b.every(function(y){return!!y})};
ff2=function(b,h,y,S){var F;S=(F=S.structuredContextNoteData)==null?void 0:F.createCommentEndpoint;if(F=_.c(S,_.z47))return F.commentText=_.mk(b),F.videoPositionMention=h,F.sources=y,S};
w_d=function(b){return b==null?void 0:b.stringValue};
qbP=function(b,h,y){b=b.map(function(S,F){return{listItemViewModel:{title:S.title,subtitle:S.subtitle,leadingImage:S.leadingImage,trailingImage:F===h?lfF:void 0,rendererContext:{commandContext:{onTap:S.onTap}}}}});
return Object.assign({},y&&{header:{panelHeaderViewModel:{title:y}}},{content:{listViewModel:{listItems:b}}})};
xdx=function(b,h){if(b&&h)switch(h){case "SELECTION_TYPE_BOOL":return b.boolValue;case "SELECTION_TYPE_INT":return b.intValue;case "SELECTION_TYPE_STRING":return b.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return b.privacyStatusValue;case "SELECTION_TYPE_TIME_PICKER_FORMAT":return b.timePickerFormatValue}};
Q0Y=function(b){var h;b=(h=b.options)==null?void 0:h.findIndex(function(y){return y.isSelected});
return b===void 0?-1:b};
mdf=function(b,h,y){var S=function(){return b().label},F={},a=_.P2("ytDropdownViewModelLabel",(F.ytDropdownViewModelLabelError=h,F));
return _.M(_.H,{cond:function(){return b().label&&!(y()===-1&&b().label&&!b().placeholderText)},
then:function(){return _.M("div",{class:a},_.M(_.zv,{text:S}))}})};
v6Y=function(b,h){var y={};y=_.P2("ytDropdownViewModelTitle",(y.ytDropdownViewModelTitlePlaceholder=function(){return h()===-1},y));
return _.M("div",{class:y},_.M(_.zv,{text:function(){var S=b();var F=h();if(F===-1)S=S.placeholderText?S.placeholderText:S.label;else{var a,P;S=(a=S.options)==null?void 0:(P=a[F])==null?void 0:P.title}return S}}))};
bxY=function(b,h){var y=function(){return b().hint};
return _.M(_.OW,null,_.M(_.H,{cond:function(){return y()&&!h()},
then:function(){return _.M("div",{class:_.P2("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.M(_.zv,{text:y,className:"ytDropdownViewModelSupportText"}))}}),_.M(_.H,{cond:h,
then:function(){return _.M("div",{id:"dropdown-view-model-error",role:"alert",class:_.P2("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.M(_.Xv,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.M(_.zv,{text:h,className:"ytDropdownViewModelSupportText"}))}}))};
hYN=function(b,h){var y=_.H9().resolve(_.MFa);_.wg(function(){var S=b().id;S&&y!=null&&y.dropdownMap.set(S,h)})};
SEf=function(b){b=_.c(b.scheduleButton,yeX);b=_.c(b==null?void 0:b.primaryButton,_.cA);b=_.c(b==null?void 0:b.onTap,_.sQ);var h,y,S=((y=_.c(b,_.LI))==null?void 0:y.commands)||[b];y=_.L(S);for(b=y.next();!b.done&&!(h=_.c(b.value,_.r0W));b=y.next());var F;h=(F=h)==null?void 0:F.createBroadcastRequest;if(!h)throw Error("hk");return h};
jHX=function(b,h,y){y=y===void 0?{}:y;var S,F;return _.Z(function(a){if(S=Fpx(h))return a.return(S);(F=anA(b,h,y))&&dQN(h,F);return a.return(F)})};
dQN=function(b,h){var y=$Qa(b);y&&h.then(function(S){_.H9().resolve(_.QQ).put(y,new _.mE({innertubeResponse:S}))})};
Fpx=function(b){if(b=$Qa(b)){var h=_.H9().resolve(_.QQ);if(h.has(b))return h.get(b).then(function(y){return y==null?void 0:_.de(y)})}return null};
$Qa=function(b){var h=_.c(b.endpoint,_.wO);if(h!=null&&h.videoId)return h={videoId:h.videoId},_.r("web_imp_player_mute_params")&&(h.mutedAtStart=b.startPlaybackInMutedState),_.fx("inline_playback",h)};
anA=function(b,h,y){b=_.f9(b,h.endpoint,Lpf(h,y)).then(function(S){return S});
return Promise.resolve(b)};
Lpf=function(b,h){h=_.r("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!b.startPlaybackInMutedState},h):Object.assign({},{vis:5,autonav:"1"},h);var y;h={contentPlaybackContext:_.LW(h,(y=_.c(b.endpoint.commandMetadata,_.ZW))==null?void 0:y.url,window.location.href)};_.r("web_imp_player_mute_params")&&(h.overrideMutedAtStart=!b.startPlaybackInMutedState);return h};
M3a=function(b,h){var y=window.MutationObserver;y&&(PXf=new y(function(S,F){S=_.L(S);for(var a=S.next();!a.done;a=S.next()){a=a.value;var P;if(P=a.type==="childList"&&a.target)a:{P=b;a=KpX(a.target);P=KpX(P);for(var K=null,n=0;n<a.length;n++)if(P.includes(a[n])){if(n===0){P=!1;break a}K=a[n];break}K?(a=Zxf(a,K),P=Zxf(P,K),P=a<P):P=!1}if(P){h();F.disconnect();break}}}),(y=ojf())&&PXf.observe(y,{childList:!0,
subtree:!0}))};
ojf=function(){var b=document.getElementsByTagName("ytd-rich-grid-renderer");if(b.length>0)return b[0];b=document.getElementsByTagName("ytd-section-list-renderer");return b.length>0?b[0]:null};
KpX=function(b){for(var h=[];b;)h.push(b),b=b.parentElement;return h};
Zxf=function(b,h){var y=Array.from(h.children);h=b.indexOf(h);return h>0?y.indexOf(b[h-1]):-1};
Z_=function(b,h,y){y=y===void 0?{}:y;return _.Mt(b,y,h)};
njE=function(b){switch(b){case "MUSIC":return!0;default:return!1}};
HxA=function(b){if(b=b==null?void 0:b.find(function(S){var F,a;return((F=_.c(S,X5x))==null?void 0:(a=F.inlinePlaybackBadgeData)==null?void 0:a.replicateAsTimestamp)===!0}))if(b=_.c(b,X5x),b==null?0:b.icon){var h,y;
if((b=(h=_.q2q(b.icon))==null?void 0:(y=h.clientResource)==null?void 0:y.imageName)&&njE(b))return b}};
uNq=function(b){return b==null?void 0:b.filter(function(h){return h.premiereTrailerBadgeRenderer})};
Oxq=function(b){var h,y=b==null?void 0:(h=b.find(function(n){return n.thumbnailOverlayTimeStatusRenderer}))==null?void 0:h.thumbnailOverlayTimeStatusRenderer,S,F;
if((y==null?0:(S=y.icon)==null?0:S.iconType)&&njE(y==null?void 0:(F=y.icon)==null?void 0:F.iconType)){var a;return{icon:y==null?void 0:(a=y.icon)==null?void 0:a.iconType}}var P;if(h=b==null?void 0:(P=b.find(function(n){return n.thumbnailOverlayBadgeViewModel}))==null?void 0:P.thumbnailOverlayBadgeViewModel)if(P=HxA(h.thumbnailBadges))return{icon:P};
var K;if(b=b==null?void 0:(K=b.find(function(n){return n.thumbnailBottomOverlayViewModel}))==null?void 0:K.thumbnailBottomOverlayViewModel)if(K=HxA(b.badges))return{icon:K};
return{}};
RYf=function(b,h){var y=new NOF(function(a){F(a)},h);
h=_.L(_.pa(t3P(y),void 0,"D2uee"));var S=h.next().value,F=h.next().value;_.Qi(function(){Promise.resolve().then(function(){var a,P=(a=b())!=null?a:{};y.playerControlsData=P;y.lastSeenPlayerApi=_.k7(P.playerApi);reY(y)});
_.m2(function(){ceq(y)})},"xfRk8b");
return S};
zYX=function(b){return function(h){var y=b(),S={playerState:h};if(h===1){var F;(F=y.playerApi)==null||F.loadModule("captions")}if(h===0){var a;(a=y.playerApi)==null||a.unloadModule("captions")}h!==-1&&y.setState(S)}};
DQd=function(b){return function(h){b().setState({playbackRate:h})}};
InP=function(b){return function(h){var y=b(),S=y.playerApi,F=S==null?void 0:S.getVideoData(),a=(F==null?void 0:F.isLive)||!1;F=F==null?void 0:F.video_id;a={videoDuration:xS2(S||void 0),isLive:a,videoId:F};a.videoId!==y.videoId&&(a=Object.assign({},_.O7r(S),a));if(h==null?0:h.playertype)a.playerType=h.playertype;if(S){a.captionsAvailable=_.B_P(S);h=a;var P;F=(P=S.getStoryboardLevel(S.getNumberOfStoryboardLevels()-1))==null?void 0:P.intervalMs;h.storyboardInterval=F?F/1E3:void 0;a.captionsAvailable&&
(a.captionsEnabled=_.WVA(S))}a.volumeMuted=!(S==null||!S.isMuted());y.setState(a)}};
BOA=function(b){return function(h){var y=b(),S=y.playerApi;if(S){var F=S.getPresentingPlayerType();h={playedTime:h||0,percentLoaded:S.getVideoLoadedFraction(),playerType:F};y.playerState===0&&(h.playedTime=y.videoDuration);y.isLive&&(F=S.getProgressState(F),h.playedTime-=F.seekableStart,h.videoDuration=xS2(S));if(y.playerType===1)S=!1;else{var a;if((a=y.uxConfig)==null?0:a.showCuedOverlay){var P;S=!((P=y.playerApi)==null?0:P.getPlayerStateObject(y.playerType).isDomPaused)}else S=!0}S&&delete h.playedTime;
y.setState(h)}}};
Wpa=function(b){return function(){var h=b(),y,S,F,a={volume:(F=(y=h.playerApi)==null?void 0:y.getVolume())!=null?F:0,volumeMuted:!((S=h.playerApi)==null||!S.isMuted())};h.setState(a)}};
AeA=function(b){return function(){var h=b(),y=h.playerApi;if(y){var S={captionsAvailable:_.B_P(y)};S.captionsAvailable&&(S.captionsEnabled=_.WVA(y));h.setState(S)}}};
UQA=function(b){return{appApi:Object.assign({},_.Z75(),{showCaptionsToggleToast:function(h){var y,S;(S=(y=b()).showCaptionsToggleToast)==null||S.call(y,h)},
openInMiniplayer:function(){var h,y;(y=(h=b()).openInMiniplayer)==null||y.call(h)}})}};
p5f=function(b,h){var y,S,F;return!!(b==null?0:(y=b.playerResponse)==null?0:(S=y.playerConfig)==null?0:(F=S.inlinePlaybackConfig)==null?0:F.showScrubbingControls)&&!(h==null?0:h.hideScrubbingControls)};
_.JeE=function(b){var h=!b.miniplayerIsActive;return[5,2,0].includes(b.miniplayerPlaybackState)||h};
eYA={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};CXx=function(b){this.onStepChangeCallback=function(){};
this.flowRenderer=b};
CXx.prototype.getCurrentStep=function(){var b=this,h;return((h=this.flowRenderer.steps)!=null?h:[]).map(function(y){return _.c(y,_.ak)}).find(function(y){return y&&y.stepId===b.currentStepId})};
gjE=function(b,h){var y=h.flowStateEntityKey,S=b.flowStates.get(y);if(S)return S;h=new CXx(h);b.flowStates.set(y,h);return h};
sHx=function(b,h){for(var y=_.L(b.flowStates.entries()),S=y.next();!S.done;S=y.next()){var F=_.L(S.value);S=F.next().value;F=F.next().value;if(F.flowRenderer.targetId===h){b.flowStates.delete(S);break}}};
YEf=function(b,h){b.onStepChangeCallback=h;b.onStepChangeCallback(b.getCurrentStep())};
TOf=function(b,h){var y=b.getCurrentStep();if(y&&y.stepId===h)return!0;var S;return((S=b.flowRenderer.steps)!=null?S:[]).map(function(F){return _.c(F,_.ak)}).find(function(F){return F&&F.stepId===h})?(b.currentStepId=h,b.onStepChangeCallback(b.getCurrentStep()),!0):!1};
GtA=function(b,h){var y,S,F,a,P;_.Z(function(K){if(!h.length)return K.return([]);y=[];S=_.L(h);for(F=S.next();!F.done;F=S.next())a=F.value,(P=b.resolveIcon(a))&&!b.iconCache[P.url]&&y.push(_.tYX(b,P).then(function(){}).catch(function(){}));
return K.return(Promise.all(y))})};
kt2=function(b,h){var y=[];h=(new Set(h)).values();h=_.L(h);for(var S=h.next();!S.done;S=h.next()){S=S.value;for(var F=_.L(Object.values(eYA)),a=F.next();!a.done;a=F.next())y.push({iconName:S,iconStyle:a.value})}GtA(b.iconManager,y)};
_.V3f=function(b,h,y){var S=y!=null?y:b.iconsToFetch;S!=null&&S.length?h!==void 0&&h>=0?_.VT(_.xP,function(){kt2(b,S)},h):kt2(b,S):Promise.resolve()};
_.EjN=_.nc(function(b,h,y){if(b.nextWireType_!==5)return!1;_.X9(h,y,_.wQ(b.decoder_));return!0},function(b,h,y){h=_.c8M(h);
h!=null&&(_.HM(b,y,5),_.uJ(b.encoder_,h))},_.QNN);
ixA=[0,_.mP,_.EjN,-1];_.fnf=function(){return _.$8({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})};
NOF=function(b,h){var y=w5Y,S=this;this.renderFn=b;this.listeners=y;this.context=h;this.getPlayerApi=void 0;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var F;this.lastSeenPlayerApi=_.k7((F=this.playerControlsData)==null?void 0:F.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.O7r(),void 0);_.r("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){t3P(S).setState({playerState:-1});S.resetRecentlyNavigatedJobId&&
_.xP.cancelJob(S.resetRecentlyNavigatedJobId);S.recentlyNavigated=!0;S.resetRecentlyNavigatedJobId=_.xP.addJob(function(){S.recentlyNavigated=!1},8,1E4)})};
NOF.prototype.setState=function(b){if(!_.r("mweb_player_skip_no_op_state_changes")||!QLX(b,this.state))if(this.state=Object.assign({},this.state,b),!_.r("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)b=-1,_.r("player_controls_log_creation_killswitch")||mSA()||(b=(0,_.NO)()),_.pI("pcu_s"),_.pI("pcu_se"),_.pI("pcu_rs"),this.renderFn(t3P(this)),_.pI("pcu_re"),vJP(b),_.xP.addJob(function(){_.pI("pcu_ap")},8)};
var t3P=function(b){if(b.getPlayerApi)var h=_.k7(b.getPlayerApi());else{var y;h=_.k7((y=b.playerControlsData)==null?void 0:y.playerApi)}return Object.assign({},b.state,{setState:b.boundSetState,domMeasurements:{progressBarLineRect:b.progressBarLineRect},playerApi:h,appApi:b.context.appApi,playerContainer:b.context.playerContainer,playerControlContainer:b.context.playerControlContainer,uxConfig:b.context.uxConfig})},reY=function(b){b.listeners.forEach(function(h){b.eventListenerCleanupFunctions.push(h.register(function(){return t3P(b)},
function(){return b.getData()}))})},ceq=function(b){b.eventListenerCleanupFunctions.forEach(function(h){h()});
b.eventListenerCleanupFunctions.length=0};
NOF.prototype.getData=function(){return this.playerControlsData};var lnA=[0,_.oy,_.h2,_.oy,-1,_.h2,[0,_.yw,_.FH,-1],_.oy,-1];var qEa=[0,[1,2,3],_.dX,-2];var xQf=[0,_.oy];var QHx=new _.r4("crowdsourcedContextUserRatingFormFlowState");var mQY=new _.r4("noteViewModel");var oV=new _.r4("abuseReportFlowState");var vjf=new _.r4("feedbackFormFlowState");var bI2=new _.r4("inputBoxViewModel");_.YbF=new _.r4("lengthValidationRule");var GNx=new _.r4("regexValidationRule");var VMa=new _.r4("selectedValidationRule");var hbf=[0,_.FH,_.oy,_.Hm];var yLE=[0,_.h2,-2,ixA];var Sad=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(Sad,_.ZL);Sad.prototype.getFeature=function(){return _.gQ(this,6)};
Sad.prototype.hasFeature=function(){return _.zq(_.z4(this,6))!=null};var Fyx=[0,_.FH];var aWA=_.IR(Sad,[0,_.h2,-2,ixA,_.h2,_.FH,-1,_.b4,-1,_.FH,-3,_.HAM,_.yw,yLE,_.FH,-1,lnA,_.b4,_.FH,hbf,[0,[0,_.FH,-2,2,_.FH,-1,[0,_.FH],[0,_.oy,_.FH],[0,_.oy],[0,_.FH],2,[0,_.oy,2,[0,_.oy,-1],[0,_.L8,qEa],1,[0,xQf],1,[0,_.FH]],[0,_.yw],[0,[1,2],_.Pq,[0,_.FH],_.Pq,[0,_.FH,_.ZS,-1]],[0,_.oy],[0,_.FH,[0,[1,2,3,4],_.Pq,[0,[0,_.FH],Fyx],_.Pq,[0,[0,_.FH],Fyx],_.Pq,[0,Fyx],_.Pq,[0,[0,_.FH],Fyx]]],[0,_.FH],1,[0,_.FH,_.oy],1,[0,_.FH],[0,_.yw],[0,_.FH,_.oy,-1,[0,_.FH,-4]],[0,_.FH],[0,_.FH,-2],1,[0,_.FH],[0,
_.yw],[0,_.yw,_.FH],1,[0,_.yw],[0],[0]],_.FH,_.oy,_.mP,1,_.K8,_.FH,_.oy],_.h2,_.K8,_.oy,-1,_.h2]);var dtE=new _.r4("talkToRecsViewModel");var jwf=new _.r4("creatorGoalSetUpFlowDropdownItemViewModel");var $td=new _.r4("creatorGoalSetUpFlowDropdownViewModel");var X5x=new _.r4("thumbnailBadgeViewModel");var LyX=new _.r4("checkboxGroupViewModel");var eSf=new _.r4("checkboxItemViewModel");_.PEA=new _.r4("radioButtonGroupViewModel");var KyA=new _.r4("radioButtonItemViewModel");var yeX=new _.r4("panelFooterViewModel");var ZIN=new _.r4("ypcCancelRecurrenceCommand");var op2=new _.r4("cancellationFlowState");var cmq=new _.r4("premiumPurchaseFlowState");var MxY=new _.r4("surveyAnswerCardRenderer");var npF=new _.r4("showMoreButtonRenderer");var XTF;var HIY,u8q=function(){if(HIY!==void 0)return HIY;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;XTF===void 0&&(XTF=document.createElement("template"));var S=XTF;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return HIY=b};var Mw=function(){var b=_.g.apply(this,arguments)||this;b.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";b.goalDescription="";b.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";b.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";b.startButtonId="start-button";b.exampleButtonId="example-button";return b};
_.z(Mw,_.g);_.d=Mw.prototype;_.d.getGoalDropdownItems=function(){var b,h;return(h=_.c((b=this.data)==null?void 0:b.purchaseTargetDropdown,$td))==null?void 0:h.dropdownItems};
_.d.getTimerDropdownItems=function(){var b,h;return(h=_.c((b=this.data)==null?void 0:b.timerDropdown,$td))==null?void 0:h.dropdownItems};
_.d.getColorDropdownItems=function(){var b,h;return(h=_.c((b=this.data)==null?void 0:b.colorDropdown,$td))==null?void 0:h.dropdownItems};
_.d.getDropdownItemText=function(b){var h;return(h=_.c(b,jwf))==null?void 0:h.itemLabel};
_.d.getDropdownItemValue=function(b){b=_.c(b,jwf);return(b==null?void 0:b.timeLimit)||(b==null?void 0:b.purchaseTarget)||(b==null?void 0:b.eligiblePurchaseType)};
_.d.updateFlowState=function(b){_.F8(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:b}])};
_.d.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.d.updateGoalValue=function(b){this.goal=b.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.d.onTextValueChanged=function(b){this.goalDescription=b.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.d.updateTimerValue=function(b){this.timer=b.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.d.updateTierValue=function(b){this.tier=b.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.d.getButtonViewModel=function(b){b=(b==null?void 0:b.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var h,y=_.c((h=this.data)==null?void 0:h.startGoalButton,_.cA);return Object.assign({},y,{state:b})};
_.tm.Object.defineProperties(Mw,{template:{configurable:!0,enumerable:!0,get:function(){return u8q()}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Mw.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Mw.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],Mw.prototype,"goal",void 0);_.V([_.C(),_.f("design:type",Object)],Mw.prototype,"goalDescription",void 0);_.V([_.C(),_.f("design:type",Object)],Mw.prototype,"timer",void 0);_.V([_.C(),_.f("design:type",Object)],Mw.prototype,"tier",void 0);
_.V([_.C(),_.f("design:type",Object)],Mw.prototype,"startButtonId",void 0);_.V([_.C(),_.f("design:type",Object)],Mw.prototype,"exampleButtonId",void 0);_.V([_.sB({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],Mw);_.k(Mw,"yt-creator-goal-set-up-flow-view-model",function(){return u8q()},{mode:0});var OIf;var NhE;var txf;var rLf=function(){return _.g.apply(this,arguments)||this};
_.z(rLf,_.g);_.V([_.C(),_.f("design:type",Object)],rLf.prototype,"data",void 0);_.V([_.sB({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],rLf);
_.k(rLf,"yt-survey-answer-card-renderer",function(){if(txf===void 0){var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;NhE===void 0&&(NhE=document.createElement("template"));var S=NhE;y.call(h,S.content.cloneNode(!0),b.content.firstChild);txf=b}b=txf;return b},{mode:2});var cLA;var Rba;var no=function(){return _.g.apply(this,arguments)||this};
_.z(no,_.g);_.d=no.prototype;_.d.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.d.selectedItemChanged=function(b){_.F8(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[b.feedbackToken||""]}])};
_.d.surveyAnswerCardRendererClicked=function(b){if(b.target&&_.c(b.model.item,MxY)){var h=b.target;b=_.c(b.model.item,MxY);b.onTapCommand?_.jx(h,[b.onTapCommand],h):this.data.onTapCommand&&_.jx(h,[this.data.onTapCommand],h);this.selectedItemChanged(b)}};
_.d.checkIsCancellationStyle=function(b){return b==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.d.updateSelectedItemFromBinding=function(b){this.selectedItem=b.detail.value};
no.prototype.onSelectedItemChanged=no.prototype.onSelectedItemChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],no.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],no.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],no.prototype,"selectedItem",void 0);_.V([_.C({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.f("design:type",Boolean)],no.prototype,"isCancellationStyle",void 0);
_.V([_.OB("selectedItem"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],no.prototype,"onSelectedItemChanged",null);_.V([_.sB({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],no);
_.k(no,"yt-survey-flow-step-renderer",function(){if(Rba===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;cLA===void 0&&(cLA=document.createElement("template"));var S=cLA;y.call(h,S.content.cloneNode(!0),b.content.firstChild);Rba=b}b=Rba;return b},{mode:2});var XY=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return b};
_.z(XY,_.g);XY.prototype.handleSurveyFlowStepOptionChanged=function(b){this.ytdReduxBehavior.dispatch(_.$8({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:b}));_.F8(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:b}}])};
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],XY.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],XY.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],XY.prototype,"data",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],XY);
_.k(XY,"ytd-survey-flow-step-renderer",function(){if(OIf!==void 0)return OIf;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return OIf=b},{mode:1});_.Bhx=_.T(function(b){var h=b.data;var y=b.hideDivider;var S=b.isChannelInfoCard;b={};return _.M("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model"},_.M("div",{class:_.P2("yt-profile-identity-info-view-model__frame",(b["yt-profile-identity-info-view-model--frame-with-no-channel-banner"]=function(){return!h().channelBanner},b))},_.M(zbA,{profileIdentityInfoData:h}),_.M("div",{class:"yt-profile-identity-info-view-model__channel-info-section"},_.M("div",{class:"yt-profile-identity-info-view-model__avatar"},
_.M(_.rC,{data:function(){return h().avatar}},{avatarViewModel:_.OX})),_.M(DtP,{profileIdentityInfoData:h})),_.M(_.H,{cond:function(){return h().channelDescription},
then:function(F){var a={};return _.M("div",{class:_.P2((a["yt-profile-identity-info-view-model__channel-description-alternate"]=function(){return!(S==null||!S())},a["yt-profile-identity-info-view-model__channel-description"]=function(){return!(S==null?0:S())},a))},F)}}),_.M(IWE,{profileIdentityInfoData:h}),_.M(_.H,{cond:function(){return!(y==null?0:y())},
then:function(){return _.M("div",{class:"yt-profile-identity-info-view-model__divider"})}})))},"th");
_.Bhx.idomCompat=!0;var IWE=_.T(function(b){var h=b.profileIdentityInfoData;return _.M("div",{class:"yt-profile-identity-info-view-model__buttons"},_.M(_.Gw,{each:function(){return h().subscribeButton?[h().subscribeButton,h().channelAccess]:[h().channelAccess]}},function(y){return _.M("div",{class:"yt-profile-identity-info-view-model__wrap-button"},_.M("div",{class:"yt-profile-identity-info-view-model--button"},_.M(_.rC,{data:function(){return y}},{buttonViewModel:_.EG,
subscribeButtonViewModel:_.Oz})))}))},"uh"),DtP=_.T(function(b){var h=b.profileIdentityInfoData;
return _.M("div",{class:"yt-profile-identity-info-view-model__trio"},_.M("div",{class:"yt-profile-identity-info-view-model__channel-name-frame"},_.M(Wyf,{profileIdentityInfoData:h}),_.M(_.rC,{data:function(){return h().threeDotMenu}},{buttonViewModel:_.EG})),_.M(ALP,{profileIdentityInfoData:h}))},"vh"),Wyf=_.T(function(b){var h=b.profileIdentityInfoData;
return _.M("div",{class:"yt-profile-identity-info-view-model__channel-name-header"},_.M("div",{class:"yt-profile-identity-info-view-model__channel-name"},function(){return h().channelDisplayName}),_.M(_.H,{cond:function(){return h().verifiedOrOacBadge},
then:function(y){return _.M("div",{class:"yt-profile-identity-info-view-model__badge"},_.M(_.mI,{data:function(){return{thumbnails:[{url:y().badgeUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"wh"),zbA=_.T(function(b){var h=b.profileIdentityInfoData;
return _.M("div",{class:"yt-profile-identity-info-view-model__channel-banner-container"},_.M(_.rC,{data:function(){var y=h().channelBanner;if(y)return{imageBannerViewModel:{image:y.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(y){return _.M("div",{class:"yt-profile-identity-info-view-model__channel-banner"},_.M(_.UI,{data:y.data,
isPositionRelative:!0}))}}))},"xh"),ALP=_.T(function(b){var h=b.profileIdentityInfoData;
return _.M("div",{class:"yt-profile-identity-info-view-model__metadata"},_.M("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.M("div",{dir:"auto",class:"yt-profile-identity-info-view-model__metadata-handle-with-bold-font"},function(){return h().channelHandle}),_.M(_.H,{cond:function(){return h().channelPronouns&&h().channelHandle},
then:function(){return _.M("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.M("div",{dir:"auto",
class:"yt-profile-identity-info-view-model__metadata-pronouns"},function(){return h().channelPronouns})),_.M("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.M("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return h().leftOfBulletInfo}),_.M(_.H,{cond:function(){return h().leftOfBulletInfo&&h().rightOfBulletInfo},
then:function(){return _.M("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.M("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return h().rightOfBulletInfo})))},"yh");var Utd;var pTx=function(){return _.g.apply(this,arguments)||this};
_.z(pTx,_.g);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],pTx.prototype,"ytComponentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],pTx.prototype,"data",void 0);_.V([_.Yx({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],pTx);
_.k(pTx,"ytd-channel-history-renderer",function(){if(Utd!==void 0)return Utd;var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return Utd=b},{mode:1});var JLf;var ebA=function(){return _.g.apply(this,arguments)||this};
_.z(ebA,_.g);_.V([_.C(),_.f("design:type",Object)],ebA.prototype,"data",void 0);_.V([_.Yx({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],ebA);
_.k(ebA,"ytd-feature-enablement-info-renderer",function(){if(JLf!==void 0)return JLf;var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return JLf=b},{mode:1});var CEd;var gpf;var H1=function(){var b=_.g.apply(this,arguments)||this;b.textBoxMaxLength=_.r("enable_tvod_campaign_code_integration")?15:12;return b};
_.z(H1,_.g);_.d=H1.prototype;_.d.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.d.onSubmit=function(){var b=this.data.serviceEndpoint,h=_.c(b,_.Qe);h&&b&&(h.couponCode=this.userInput,_.H9().resolve(_.OM).resolveCommand(b,{form:{element:this.hostElement}}))};
_.d.validate=function(){var b=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=b&&!this.data.errorMessage;this.showErrorMessage=b&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.r("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.d.computeStyle=function(b){return b};
_.d.computeShowValidationBelowInput=function(b){return b!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.d.updateUserInputFromBinding=function(b){this.userInput=b.currentTarget.value};
_.d.updateShowErrorMessageFromBinding=function(b){this.showErrorMessage=b.detail.value};
_.tm.Object.defineProperties(H1.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
H1.prototype.dataChanged=H1.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],H1.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],H1.prototype,"data",void 0);_.V([_.C(),_.f("design:type",String)],H1.prototype,"userInput",void 0);_.V([_.C(),_.f("design:type",Boolean)],H1.prototype,"disableApplyButton",void 0);_.V([_.C(),_.f("design:type",Boolean)],H1.prototype,"hideApplyButton",void 0);
_.V([_.C(),_.f("design:type",Boolean)],H1.prototype,"hideErrorMessage",void 0);_.V([_.C(),_.f("design:type",Boolean)],H1.prototype,"showTick",void 0);_.V([_.C(),_.f("design:type",Boolean)],H1.prototype,"showErrorMessage",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.f("design:type",String)],H1.prototype,"couponStyle",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.f("design:type",Boolean)],H1.prototype,"showValidationBelowInput",void 0);_.V([_.C(),_.f("design:type",Object)],H1.prototype,"textBoxMaxLength",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],H1.prototype,"dataChanged",null);
_.V([_.W("showTick","showErrorMessage","userInput"),_.f("design:type",String),_.f("design:paramtypes",[])],H1.prototype,"validationState",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],H1);
_.k(H1,"ytd-ypc-coupon-renderer",function(){if(gpf!==void 0)return gpf;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return gpf=b},{mode:1});var uL=function(){return _.g.apply(this,arguments)||this};
_.z(uL,_.g);uL.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"}}}};
uL.prototype.computeStyle=function(b){return b};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],uL.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],uL.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],uL.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.f("design:type",String)],uL.prototype,"buttonStyle",void 0);_.V([_.Yx({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],uL);
_.k(uL,"ytd-flow-bottom-bar-renderer",function(){if(CEd!==void 0)return CEd;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return CEd=b},{mode:1});var swA;var Ya2;var ThX;var Oy=function(){return _.g.apply(this,arguments)||this};
_.z(Oy,_.g);Oy.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Oy.prototype.focus=function(b){this.title&&_.oh(this.title,b)};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Oy.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Oy.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Oy.prototype,"data",void 0);_.V([_.to("#title"),_.f("design:type",HTMLElement)],Oy.prototype,"title",void 0);_.V([_.Yx({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],Oy);
_.k(Oy,"ytd-flow-top-bar-renderer",function(){if(ThX!==void 0)return ThX;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return ThX=b},{mode:1});var GYE;var kYf;var Vxq;var Nw=function(){return _.g.apply(this,arguments)||this};
_.z(Nw,_.g);Nw.prototype.freeTextValueChanged=function(){_.F8(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
Nw.prototype.updateFreeTextValueFromBinding=function(b){this.freeTextValue=b.detail.value};
_.tm.Object.defineProperties(Nw.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var b,h,y=(h=(b=this.data)==null?void 0:b.responseMaxLength)!=null?h:500,S;return((S=this.freeTextValue)!=null?S:"").length>=y?"maxed-out":""}}});
Nw.prototype.freeTextValueChanged=Nw.prototype.freeTextValueChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Nw.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Nw.prototype,"data",void 0);_.V([_.C(),_.f("design:type",String)],Nw.prototype,"freeTextValue",void 0);_.V([_.to("#user-input"),_.f("design:type",HTMLTextAreaElement)],Nw.prototype,"input",void 0);
_.V([_.W("freeTextValue"),_.f("design:type",Object),_.f("design:paramtypes",[])],Nw.prototype,"characterLimitClass",null);_.V([_.OB("freeTextValue"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Nw.prototype,"freeTextValueChanged",null);_.V([_.sB({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],Nw);
_.k(Nw,"yt-free-text-input-flow-step-renderer",function(){if(Vxq===void 0){var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;kYf===void 0&&(kYf=document.createElement("template"));var S=kYf;y.call(h,S.content.cloneNode(!0),b.content.firstChild);Vxq=b}b=Vxq;return b},{mode:2});var ty=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return b};
_.z(ty,_.g);ty.prototype.handleFreeTextFlowStepInputChanged=function(b){_.F8(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:b}}])};
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],ty.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],ty.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],ty.prototype,"data",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],ty);
_.k(ty,"ytd-free-text-input-flow-step-renderer",function(){if(GYE!==void 0)return GYE;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return GYE=b},{mode:1});var Epd;var iIA;var fWd=function(){return _.g.apply(this,arguments)||this};
_.z(fWd,_.g);_.V([_.C(),_.f("design:type",Object)],fWd.prototype,"data",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],fWd);
_.k(fWd,"ytd-metadata-line-renderer",function(){if(iIA!==void 0)return iIA;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return iIA=b},{mode:1});var rT=function(){return _.g.apply(this,arguments)||this};
_.z(rT,_.g);rT.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],rT.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],rT.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],rT.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],rT.prototype,"isMasthead",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],rT);
_.k(rT,"ytd-media-product-renderer",function(){if(Epd!==void 0)return Epd;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return Epd=b},{mode:1});var wTa;var c1=function(){return _.g.apply(this,arguments)||this};
_.z(c1,_.g);c1.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
c1.prototype.onBillboardImageLoaded=function(){_.Sx(this.hostElement,"yt-refit")};
c1.prototype.onBillboardImageLoaded=c1.prototype.onBillboardImageLoaded;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],c1.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],c1.prototype,"data",void 0);_.V([_.to("#billboardImage"),_.f("design:type",Object)],c1.prototype,"billboardImage",void 0);_.V([_.u3("yt-img-shadow-loaded"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],c1.prototype,"onBillboardImageLoaded",null);
_.V([_.Yx({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],c1);
_.k(c1,"ytd-billboard-masthead-renderer",function(){if(wTa!==void 0)return wTa;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return wTa=b},{mode:1});var lWA;var RV=function(){var b=_.g.apply(this,arguments)||this;b.smallSize=!1;return b};
_.z(RV,_.g);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],RV.prototype,"ytComponentBehaviorType",void 0);_.V([_.C(),_.f("design:type",Object)],RV.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],RV.prototype,"smallSize",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],RV);
_.k(RV,"ytd-bullet-formatted-string",function(){if(lWA!==void 0)return lWA;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return lWA=b},{mode:1});var qa2;var z3=function(){return _.g.apply(this,arguments)||this};
_.z(z3,_.g);z3.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],z3.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],z3.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],z3.prototype,"data",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],z3);
_.k(z3,"ytd-offer-detail-renderer",function(){if(qa2!==void 0)return qa2;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return qa2=b},{mode:1});var xtd;var D_=function(){return _.g.apply(this,arguments)||this};
_.z(D_,_.g);D_.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"}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],D_.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],D_.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],D_.prototype,"data",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],D_);
_.k(D_,"ytd-offer-detail-step-renderer",function(){if(xtd!==void 0)return xtd;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return xtd=b},{mode:1});var QwA;var IV=function(){var b=_.g.apply(this,arguments)||this;b.isInOfferModule=!1;return b};
_.z(IV,_.g);_.d=IV.prototype;_.d.computeHasEndpoint=function(){var b;return!((b=this.data)==null||!b.onClickCommand)};
_.d.dataChanged=function(){var b;if((b=this.data)==null?0:b.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")};
_.d.detached=function(){var b;if((b=this.data)==null?0:b.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.d.handleClickEvent=function(){var b;if((b=this.data)==null?0:b.onClickCommand){var h;this.componentBehavior.resolveCommand((h=this.data)==null?void 0:h.onClickCommand)}};
_.d.onContentKeyDown=function(b){b.key==="Enter"?this.handleClickEvent(b):b.key===" "&&b.preventDefault()};
_.d.onContentKeyUp=function(b){b.key===" "&&this.handleClickEvent(b)};
IV.prototype.dataChanged=IV.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],IV.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],IV.prototype,"componentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],IV.prototype,"data",void 0);_.V([_.C({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.f("design:type",Boolean)],IV.prototype,"hasEndpoint",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],IV.prototype,"isInOfferModule",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],IV.prototype,"dataChanged",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],IV);
_.k(IV,"ytd-channel-masthead-renderer",function(){if(QwA!==void 0)return QwA;var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return QwA=b},{mode:1});var mta;var B1=function(){var b=_.g.apply(this,arguments)||this;b.thumbnailObjectFit="CONTAIN";b.thumbnailObjectPosition="LEFT";b.isExpanded=!1;return b};
_.z(B1,_.g);_.d=B1.prototype;_.d.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.d.dataChanged=function(){this.resetStates()};
_.d.computeisTapOnOfferInfoContainerEnabled=function(){var b;return((b=this.data)==null?void 0:b.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.d.onExpandBtnClick=function(){var b,h=_.c((b=this.data)==null?void 0:b.showMoreButtonRenderer,npF);h&&_.QG(_.rU(),h.trackingParams);this.isExpanded=!this.isExpanded};
_.d.onOfferInfoClick=function(b){this.isTapOnOfferInfoContainerEnabled&&(_.mf(_.Qk(b)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.v2(_.Qk(b)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.d.onBottomBarClick=function(){this.executeTapCommand()};
_.d.executeTapCommand=function(){var b,h=(b=this.data)==null?void 0:b.tapCommand;h&&this.ytComponentBehavior.resolveCommand(h)};
_.d.resetStates=function(){this.isExpanded=!1};
_.tm.Object.defineProperties(B1.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.data)==null||!b.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var b=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),h,y,S;return((h=this.data)==null?void 0:h.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&b&&!!((y=this.data)==null?0:(S=y.benefits)==null?0:S.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.data)==null?void 0:b.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var b,h,y;return((h=_.c((b=this.data)==null?void 0:b.showMoreButtonRenderer,npF))==null?void 0:h.showMoreButtonTitle)||((y=this.data)==null?void 0:y.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var b,h,y;return((h=_.c((b=this.data)==null?void 0:b.showMoreButtonRenderer,npF))==null?void 0:h.showLessButtonTitle)||((y=this.data)==null?void 0:y.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var b;return(b=this.showLessButtonTitle)!=null?b:""}var h;return(h=this.showMoreButtonTitle)!=null?h:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var b,h,y;return((b=this.data)==null?void 0:b.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((h=this.data)==null?0:h.footerTitle)||((y=this.data)==null?0:y.footerSubtitle))}}});
B1.prototype.dataChanged=B1.prototype.dataChanged;_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],B1.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],B1.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],B1.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",String)],B1.prototype,"thumbnailObjectFit",void 0);
_.V([_.C(),_.f("design:type",String)],B1.prototype,"thumbnailObjectPosition",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.f("design:type",Boolean)],B1.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.V([_.C(),_.f("design:type",Object)],B1.prototype,"isExpanded",void 0);_.V([_.C(),_.f("design:type",Object)],B1.prototype,"data",void 0);_.V([_.C({computed:"computeIcon_(data.footerIcon)"}),_.f("design:type",String)],B1.prototype,"icon",void 0);
_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],B1.prototype,"dataChanged",null);_.V([_.W("data.thumbnail"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],B1.prototype,"hasThumbnail",null);_.V([_.W("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],B1.prototype,"enableExpandButton",null);
_.V([_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],B1.prototype,"enableOfferContentIcon",null);_.V([_.W("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.f("design:type",Object),_.f("design:paramtypes",[])],B1.prototype,"showMoreButtonTitle",null);_.V([_.W("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.f("design:type",Object),_.f("design:paramtypes",[])],B1.prototype,"showLessButtonTitle",null);
_.V([_.W("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.f("design:type",String),_.f("design:paramtypes",[])],B1.prototype,"expandedBtnText",null);_.V([_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],B1.prototype,"enableBottomBar",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],B1);
_.k(B1,"ytd-offer-card-renderer",function(){if(mta!==void 0)return mta;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return mta=b},{mode:1});var vpf;var W1=function(){return _.g.apply(this,arguments)||this};
_.z(W1,_.g);W1.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"}}}};
W1.prototype.onClick=function(b){if(!_.mf(b.composedPath()||[],this.hostElement,["A".toString()])){var h,y;if((b=(y=_.c((h=this.data)==null?void 0:h.actionButton,_.OU))==null?void 0:y.command)&&!this.ytComponentBehavior.resolveCommand(b)){var S;(S=_.rU())==null||S.clickCommand(b);_.H9().resolve(_.OM).resolveCommand(b,{form:{element:this.hostElement}})}}};
_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],W1.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],W1.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],W1.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],W1.prototype,"data",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],W1);
_.k(W1,"ytd-offer-content-renderer",function(){if(vpf!==void 0)return vpf;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return vpf=b},{mode:1});var bi2;var Ay=function(){return _.g.apply(this,arguments)||this};
_.z(Ay,_.g);Ay.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.tm.Object.defineProperties(Ay.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var b,h;return!((b=this.data)==null||!b.title)||!((h=this.data)==null||!h.description)}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Ay.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Ay.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Ay.prototype,"data",void 0);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],Ay.prototype,"hasHeaderData",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],Ay);
_.k(Ay,"ytd-offer-section-renderer",function(){if(bi2!==void 0)return bi2;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return bi2=b},{mode:1});var hOA;var Uy=function(){return _.g.apply(this,arguments)||this};
_.z(Uy,_.g);
Uy.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"}}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Uy.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Uy.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Uy.prototype,"data",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],Uy);
_.k(Uy,"ytd-offer-selection-step-renderer",function(){if(hOA!==void 0)return hOA;var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return hOA=b},{mode:1});var ytx;var po=function(){return _.g.apply(this,arguments)||this};
_.z(po,_.g);po.prototype.computeStyle=function(b){return b};
po.prototype.computeImageWidth=function(b){return b==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.V([_.C({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.f("design:type",String)],po.prototype,"containerStyle",void 0);_.V([_.C({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.f("design:type",String)],po.prototype,"imageWidth",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],po.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],po.prototype,"data",void 0);
_.V([_.Yx({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],po);
_.k(po,"ytd-confirmation-masthead-renderer",function(){if(ytx!==void 0)return ytx;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return ytx=b},{mode:1});var Snf;var Jy=function(){return _.g.apply(this,arguments)||this};
_.z(Jy,_.g);Jy.prototype.computeStyle=function(b){return b};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Jy.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Jy.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.f("design:type",String)],Jy.prototype,"containerStyle",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],Jy);
_.k(Jy,"ytd-purchase-complete-detail-renderer",function(){if(Snf!==void 0)return Snf;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return Snf=b},{mode:1});var Fkf;var eL=function(){var b=_.g.apply(this,arguments)||this;b.scriptsAppended=!1;return b};
_.z(eL,_.g);eL.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"}}}};
eL.prototype.onDataChanged=function(){var b=this.get("data.gtmId");b&&(_.dc(b,_.QC("GL","")),this.setupConversionTracking())};
eL.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var b=document.createElement("noscript");b.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(b);this.scriptsAppended=!0}};
eL.prototype.onDataChanged=eL.prototype.onDataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],eL.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],eL.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],eL.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],eL.prototype,"scriptsAppended",void 0);
_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],eL.prototype,"onDataChanged",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],eL);
_.k(eL,"ytd-purchase-complete-step-renderer",function(){if(Fkf!==void 0)return Fkf;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return Fkf=b},{mode:1});var aUd;var Co=function(){return _.g.apply(this,arguments)||this};
_.z(Co,_.g);Co.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Co.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Co.prototype,"data",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],Co);
_.k(Co,"ytd-ypc-transaction-error-message-renderer",function(){if(aUd!==void 0)return aUd;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return aUd=b},{mode:1});var dmx;var jU2;var gT=function(){var b=_.g.apply(this,arguments)||this;b.handlePhoneVerificationSuccess=function(h){if(b.isValidPhoneVerificationCompletionMessageEvent(h)){var y;((y=b.data)==null?0:y.nextStepCommand)&&b.ytComponentBehavior.resolveCommand(b.data.nextStepCommand)}};
return b};
_.z(gT,_.g);gT.prototype.isValidPhoneVerificationCompletionMessageEvent=function(b){if(b.data!=="yt-phone-verification-complete")return!1;b=_.ZI(b.origin);return b!==null&&b.includes("youtube.com")};
gT.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
gT.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],gT.prototype,"ytComponentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],gT.prototype,"data",void 0);_.V([_.sB({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],gT);
_.k(gT,"yt-feature-enablement-soft-entry-renderer",function(){if(jU2===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;dmx===void 0&&(dmx=document.createElement("template"));var S=dmx;y.call(h,S.content.cloneNode(!0),b.content.firstChild);jU2=b}b=jU2;return b},{mode:1});var $mE;var LkP;var PSF;var KkX;var Zia=function(){return _.g.apply(this,arguments)||this};
_.z(Zia,_.g);_.V([_.C(),_.f("design:type",Object)],Zia.prototype,"data",void 0);_.V([_.sB({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],Zia);
_.k(Zia,"yt-benefits-item-renderer",function(){if(KkX===void 0){var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;PSF===void 0&&(PSF=document.createElement("template"));var S=PSF;y.call(h,S.content.cloneNode(!0),b.content.firstChild);KkX=b}b=KkX;return b},{mode:2});var o8a;var M7A;var sy=function(){return _.g.apply(this,arguments)||this};
_.z(sy,_.g);sy.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
sy.prototype.computeisWithoutPadding=function(){var b;return((b=this.data)==null?void 0:b.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],sy.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],sy.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.f("design:type",Boolean)],sy.prototype,"isWithoutPadding",void 0);_.V([_.sB({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],sy);
_.k(sy,"yt-benefits-section-renderer",function(){if(M7A===void 0){var b=document.createElement("template");_.D(b,'\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>');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;o8a===void 0&&(o8a=document.createElement("template"));var S=o8a;y.call(h,S.content.cloneNode(!0),b.content.firstChild);M7A=b}b=M7A;return b},{mode:2});var Yc=function(){return _.g.apply(this,arguments)||this};
_.z(Yc,_.g);Yc.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
Yc.prototype.computeisUsingLargeWidth=function(){var b;return((b=this.data)==null?void 0:b.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Yc.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Yc.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.f("design:type",Boolean)],Yc.prototype,"isUsingLargeWidth",void 0);_.V([_.sB({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],Yc);
_.k(Yc,"yt-benefits-flow-step-renderer",function(){if(LkP===void 0){var b=document.createElement("template");_.D(b,'\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>');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;$mE===void 0&&($mE=document.createElement("template"));var S=$mE;y.call(h,S.content.cloneNode(!0),b.content.firstChild);LkP=b}b=LkP;return b},{mode:2});var n8F;var XiX;var T3=function(){return _.g.apply(this,arguments)||this};
_.z(T3,_.g);T3.prototype.checkIsUsingLargeWidth=function(){var b;return((b=this.data)==null?void 0:b.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.V([_.C(),_.f("design:type",Object)],T3.prototype,"data",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],T3.prototype,"ytRendererBehavior",void 0);_.V([_.C({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.f("design:type",Boolean)],T3.prototype,"isUsingLargeWidth",void 0);_.V([_.sB({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],T3);
_.k(T3,"yt-confirmation-flow-step-renderer",function(){if(XiX===void 0){var b=document.createElement("template");_.D(b,'\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>');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;n8F===void 0&&(n8F=document.createElement("template"));var S=n8F;y.call(h,S.content.cloneNode(!0),b.content.firstChild);XiX=b}b=XiX;return b},{mode:2});var Hif;var uFF;var Oia=function(){return _.g.apply(this,arguments)||this};
_.z(Oia,_.g);_.V([_.C(),_.f("design:type",Object)],Oia.prototype,"data",void 0);_.V([_.sB({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],Oia);
_.k(Oia,"yt-info-flow-step-renderer",function(){if(uFF===void 0){var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;Hif===void 0&&(Hif=document.createElement("template"));var S=Hif;y.call(h,S.content.cloneNode(!0),b.content.firstChild);uFF=b}b=uFF;return b},{mode:2});var NRE;var t7Y;var rt2=function(){return _.g.apply(this,arguments)||this};
_.z(rt2,_.g);_.V([_.C(),_.f("design:type",Object)],rt2.prototype,"data",void 0);_.V([_.sB({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],rt2);
_.k(rt2,"yt-info-list-flow-step-renderer",function(){if(t7Y===void 0){var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;NRE===void 0&&(NRE=document.createElement("template"));var S=NRE;y.call(h,S.content.cloneNode(!0),b.content.firstChild);t7Y=b}b=t7Y;return b},{mode:2});var ctN=_.T(function(b){var h=b.data;return _.M("styled-text-view-model",{class:_.P2("ytStyledTextViewModelHost",function(){return Z2f(h().fontAttributes)},function(){return KdF(h().color)})},_.M(_.zv,{text:function(){return h().text},
ariaLabel:function(){var y,S,F;return(F=(y=h().accessibility)==null?void 0:(S=y.accessibilityData)==null?void 0:S.label)!=null?F:""}}))},"zh");
ctN.idomCompat=!0;var ROE=_.T(function(b){var h=function(){var F,a,P,K;return(K=(P=(F=b.alt)==null?void 0:F.call(b))!=null?P:(a=b.data().accessibilityData)==null?void 0:a.label)!=null?K:""},y=function(){return b.data().imageWidth},S=function(){return b.data().imageHeight};
return _.M("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.M(_.H,{cond:function(){var F=b.data();if(F){var a,P,K;var n=((a=_.H9().resolve(_.XS(_.cC)))==null?0:a())?(P=F.imageDark)!=null?P:F.imageLight:(K=F.imageLight)!=null?K:F.imageDark}else n=void 0;return n},
then:function(F){return _.M(_.mI,Object.assign({},b,{data:F,alt:h,targetWidth:y,targetHeight:S,preserveHeight:!0,preserveWidth:!0}))}}))},"Ah");
ROE.idomCompat=!0;var G3=_.T(function(b){var h=b.data;b=_.bi(function(){return h().slots},[]);
var y=_.bi(function(){return h().layoutProperties},{}),S=_.H9().resolve(_.fh);
return _.M("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:ddY(y,S)},_.M(_.Gw,{each:b,keyBy:"INDEX"},function(F){return _.M("div",{class:"ytContainerLayoutViewModelSlot",style:ddY(function(){return F().layoutProperties},S)},_.M(_.rC,{data:function(){return F().contents}},{containerLayoutViewModel:G3,
badgeViewModel:_.gE,buttonViewModel:_.EG,styledTextViewModel:ctN,contentPreviewImageViewModel:function(a){return _.M(_.fr,{data:a.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(a){return _.M(ROE,{data:a.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"Bh");
G3.idomCompat=!0;var zOf=_.T(function(b){var h=b.data;var y=b.stateFns;var S=function(){var X=h(),u=X.productId;return!(!X.clearGroupId&&!u)},F=function(){var X=h(),u=X.clearGroupId;
return(X=X.productId)?y().isProductSelected(X):u?y().getSelectedProductByGroupId(u)==null:!1},a=function(X){var u=h(),O=u.clearGroupId;
if(u=u.productId)y().onProductSelected(u),X==null||X.forEach(function(N){_.Va(N)});
else if(O)y().onClearGroupSelected(O)},P=function(){var X=h(),u=X.clearGroupId;
if(X=X.productId){var O;return"group:"+(((O=y().getProductById(X))==null?void 0:O.groupId)||"")}return u?"group:"+u:""},K=_.bi(function(){return h().header},[]),n=_.bi(function(){return h().body},[]);
return _.M("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.M(_.H,{cond:function(){return K().length>0||S()},
then:function(){return _.M("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.M("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.M(_.rC,{data:K},{containerLayoutViewModel:function(X){return _.M("div",{class:"ytPdpCardSectionViewModelContentItem"},_.M(G3,{data:X.data}))},
styledTextViewModel:function(X){return _.M("div",{class:"ytPdpCardSectionViewModelContentItem"},_.M(ctN,{data:X.data}))}})),_.M(_.H,{cond:S,
then:function(){return _.M("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.M(_.Dt,{checked:F,name:P,onChange:function(){a(h().onSelect)}}))}}))}}),_.M(_.H,{cond:function(){return n().length>0},
then:function(){return _.M("div",null,_.M(_.rC,{data:n},{containerLayoutViewModel:function(X){return _.M("div",{class:"ytPdpCardSectionViewModelContentItem"},_.M(G3,{data:X.data}))}}))}}))},"Ch");
zOf.idomCompat=!0;var DmP=_.T(function(b){var h=b.data;var y=b.stateFns;return _.M("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.M(_.H,{cond:function(){return h().banner},
then:function(S){return _.M("div",{class:"ytPdpCardViewModelBanner"},_.M(_.zv,{text:S}))}}),_.M(_.rC,{data:function(){return h().sections}},{pdpCardSectionViewModel:function(S){S=S.data;
var F={};return _.M("div",{class:_.P2("ytPdpCardViewModelSectionContainer",(F.ytPdpCardViewModelShowDividers=function(){return h().showDividers},F))},_.M(zOf,{data:S,
stateFns:y}))}}))},"Dh");
DmP.idomCompat=!0;var IUf=_.T(function(b){var h=b.data;var y=b.isOverlay;b={};return _.M("pdp-masthead-view-model",{class:_.P2("ytPdpMastheadViewModelHost",(b.ytPdpMastheadViewModelIsOverlay=y,b))},_.M(_.rC,{data:function(){return h().image}},{contentPreviewImageViewModel:_.fr,
themedImageViewModel:function(S){return _.M(ROE,{data:S.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.M(_.H,{cond:function(){return h().title},
then:function(S){return _.M("h1",{class:"ytPdpMastheadViewModelHeading"},_.M(_.zv,{text:S,isOverlay:y}))}}),_.M(_.Gw,{each:function(){var S;
return(S=h().finePrint)!=null?S:[]}},function(S){return _.M("div",{class:"ytPdpMastheadViewModelFinePrint"},_.M(_.zv,{text:S,
isOverlay:y}))}))},"Eh");
IUf.idomCompat=!0;var BRA=_.T(function(b){var h=b.data;var y=b.stateFns;var S=function(){return"pdp-pricing-group-selector-"+h().pricingGroupAttributeIds},F=_.bi(function(){return h().pricingGroupSelectorSectionHeader});
return _.M("pdp-pricing-group-selector-view-model",null,_.M(_.H,{cond:function(){return!!F()},
then:function(){return _.M(_.rC,{data:F},{sectionHeaderViewModel:function(a){a=a.data;var P={};return _.M("div",{class:_.P2("ytPdpPricingGroupSelectorViewModelSectionHeader",(P.ytPdpPricingGroupSelectorViewModelFullBleed=!0,P.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,P))},_.M(_.SE,{data:a}))}})}}),_.M("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.M(_.Gw,{each:function(){var a=y().getSelectedProductByGroupId(h().groupId);
if(!a)return _.mm(Error("bk`"+h().groupId)),[];var P,K=(P=h().pricingGroupAttributeIds)!=null?P:[],n;if((n=a.pricingGroups)==null||!n.length||!K.length)return[];P=a.pricingGroups.filter(function(N){return K.length?N.pricingGroupAttributes.every(function(t){return K.includes(t)}):!1});
a=[];if(K.length>0){P=[].concat(_.f$(P));n=_.L(K);for(var X=n.next(),u={};!X.done;u={targetAttrId:void 0},X=n.next())u.targetAttrId=X.value,X=P.findIndex(function(N){return function(t){return t.pricingGroupAttributes.includes(N.targetAttrId)}}(u)),X!==-1&&(a.push(P[X]),P.splice(X,1))}var O=y().getSelectedPricingGroupAttributesByGroupId(h().groupId);
return a.map(function(N){var t=!1;O&&N.pricingGroupAttributes&&(t=P1(N.pricingGroupAttributes,O));return{pricingGroup:N,isSelected:t}})},
keyBy:function(a){return a.pricingGroup.pricingGroupId}},function(a){return _.M("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.M("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.M(_.rC,{data:function(){return a().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:G3})),_.M("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.M(_.Dt,{checked:function(){return a().isSelected},
name:S,onClick:function(){var P=a().pricingGroup;y().onPricingGroupSelected(P.pricingGroupId);if(P=_.YS(P.onSelectPricingGroup)){var K;(K=_.H9().resolve(_.OM))==null||K.resolveCommand(P)}}})))})))},"Fh");
BRA.idomCompat=!0;var WkA=_.T(function(b){var h=b.data;var y=b.stateFns;var S=function(){var P=y().getSelectedPricingOptions().map(function(X){return X.pricingOptionId}),K=y().getSelectedProductByGroupId(h().groupId);
if(!K)return _.mm(Error("ck`"+h().groupId)),[];var n=y().getSelectedPricingGroupAttributesByGroupId(h().groupId);return H2A(K.pricingOptions,n,P)},F=_.bi(function(){return h().pricingOptionSelectorSectionHeader}),a=function(){return S().length>1};
return _.M("pdp-pricing-option-selector-view-model",null,_.M(_.H,{cond:function(){return!!F()&&a()},
then:function(){return _.M(_.rC,{data:F},{sectionHeaderViewModel:function(P){P=P.data;var K={};return _.M("div",{class:_.P2("ytPdpPricingOptionSelectorViewModelSectionHeader",(K.ytPdpPricingOptionSelectorViewModelFullBleed=!0,K.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,K))},_.M(_.SE,{data:P}))}})}}),_.M(_.H,{cond:a,
then:function(){return _.M("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.M(_.Gw,{each:S,keyBy:"INDEX"},function(P){return _.M("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.M("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.M(_.rC,{data:function(){return P().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:G3})),_.M("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.M(_.Dt,{checked:function(){return P().isSelected},
onClick:function(){y().onPricingOptionSelected(P().pricingOption.pricingOptionId);var K=P().pricingOption.onSelectPricingOption;if(K=_.YS(K)){var n;(n=_.H9().resolve(_.OM))==null||n.resolveCommand(K)}}})))}))}}))},"Gh");
WkA.idomCompat=!0;var Atd=_.T(function(b){var h=b.data;var y=b.stateFns;return _.M("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.M(_.rC,{data:function(){var S,F;return(F=(S=y().getSelectedPricingOptions()[0])==null?void 0:S.primaryButton)!=null?F:h().emptyStateButton}},{buttonViewModel:_.EG}))},"Hh");
Atd.idomCompat=!0;var Uma=_.T(function(b){var h=b.stateFns;return _.M("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.M(_.rC,{data:function(){return h().getSelectedPricingOptions().flatMap(function(y){return y.summaryLines}).filter(function(y){return!!y})}},{containerLayoutViewModel:function(y){return _.M("div",{class:"ytPdpSummaryViewModelLineItem"},_.M(G3,{data:y.data}))}}))},"Ih");
Uma.idomCompat=!0;var piN=_.T(function(b){function h(R){var I=P();_.vl(_.eD("pdpStateEntity",I,{key:I,selectedPricingOptions:R}))}
var y=b.data;var S=b.internalScrolling;var F=b.stateFnsForTesting;var a=_.bi(function(){return y().allProducts},[]),P=_.bi(function(){return y().pdpStateEntityKey},""),K=_.OF(uuq,P),n=_.s5(function(){_.bn(!0);
var R;return(R=F==null?void 0:F())!=null?R:NkY(K,a,h)},void 0,"Pzdsic"),X=_.bi(function(){return y().body},[]),u=_.bi(function(){return y().columnBreakHints},[]),O=function(){return y().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},N=function(){return O()||y().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},t=_.s5(function(){var R=_.EF(y().background),I;
if(R==null?0:(I=R.sources)==null?0:I.length){var U=U===void 0?!0:U;R=_.bs4(void 0,R.sources,void 0,U,U?1E3:void 0,U?void 0:1E3)}else R=null;return R},void 0,"RDPOae");
_.wg(function(){var R=y().onStartCommand;if(R&&(R=_.YS(R))){var I;(I=_.H9().resolve(_.OM))==null||I.resolveCommand(R)}});
b={};return _.M("pdp-view-model",{class:_.P2("ytPdpViewModelHost",(b.ytPdpViewModelHasBackground=function(){return N()||!!t()},b.ytPdpViewModelHasDarkBackground=N,b.ytPdpViewModelHasScrim=O,b.ytPdpViewModelInternalScrolling=S,b.ytPdpViewModelForceSingleColumn=function(){return u().length===0},b)),
style:_.n9({"--pdp-view-model-background":function(){return t()?"url("+t()+")":void 0}})},_.M("div",{class:"ytPdpViewModelColumnContainer"},_.M(_.Gw,{each:function(){return tMx(X(),u())},
keyBy:"INDEX"},function(R){return _.M("div",{class:"ytPdpViewModelColumn"},_.M(_.rC,{data:R},{containerLayoutViewModel:function(I){return _.M(kc,null,_.M(G3,{data:I.data}))},
dividerViewModel:function(I){return _.M(kc,{fullBleed:!0},_.M(_.dsW,{data:I.data}))},
pdpCardViewModel:function(I){return _.M(kc,null,_.M(DmP,{data:I.data,stateFns:n}))},
pdpMastheadViewModel:function(I){return _.M(kc,null,_.M(IUf,{data:I.data,isOverlay:N}))},
pdpPricingGroupSelectorViewModel:function(I){return _.M(kc,null,_.M(BRA,{data:I.data,stateFns:n}))},
pdpPricingOptionSelectorViewModel:function(I){return _.M(kc,null,_.M(WkA,{data:I.data,stateFns:n}))},
pdpPrimaryButtonViewModel:function(I){return _.M(kc,null,_.M(Atd,{data:I.data,stateFns:n}))},
pdpSummaryViewModel:function(I){return _.M(kc,null,_.M(Uma,{data:I.data,stateFns:n}))},
sectionHeaderViewModel:function(I){return _.M(kc,{fullBleed:!0,noVerticalPadding:!0},_.M(_.SE,{data:I.data}))}}))})))},"Jh");
piN.idomCompat=!0;var kc=_.T(function(b){var h={};return _.M("div",{class:_.P2("ytPdpViewModelItem",(h.ytPdpViewModelFullBleed=b.fullBleed,h.ytPdpViewModelNoVerticalPadding=b.noVerticalPadding,h))},b.children)},"Kh");_.yd(piN,"pdp-view-model",{props:{data:_.D4,stateFnsForTesting:_.v3,internalScrolling:_.v3}});var Jtf=_.T(function(b){var h=b.data;var y=b.className;var S=_.OF(_.bG,function(){return h().flowStateEntityKey});
return _.M("ytm-premium-purchase-button-renderer",{class:_.P2("ytPremiumPurchaseButtonRendererHost",y)},_.M(_.rC,{data:function(){var F;return(F=_.c(S(),cmq))==null?void 0:F.primaryButtonOverride}},{buttonRenderer:function(F){return _.M(_.Cr,{data:F.data,
className:y})},
buttonViewModel:function(F){return _.M(_.EG,{data:F.data,className:y})}}))},"Lh");
Jtf.idomCompat=!0;var eOA=_.T(function(b){var h=b.data;b=b.className;var y=function(){return rmd(h().style)},S=_.P2("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",y),F=_.P2("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",y);
return _.M("yt-flow-bottom-bar-renderer",{class:_.P2("yt-flow-bottom-bar-renderer",b,y)},_.M(_.rC,{data:function(){return h().secondaryButton}},{buttonRenderer:function(a){return _.M(_.Cr,{data:a.data,
className:F})},
buttonViewModel:function(a){return _.M(_.EG,{data:a.data,className:F})},
premiumPurchaseButtonRenderer:function(a){return _.M(Jtf,{data:a.data,className:F})}}),_.M(_.rC,{data:function(){return h().primaryButton}},{buttonRenderer:function(a){return _.M(_.Cr,{data:a.data,
className:S})},
buttonViewModel:function(a){return _.M(_.EG,{data:a.data,className:S})},
premiumPurchaseButtonRenderer:function(a){return _.M(Jtf,{data:a.data,className:S})}}))},"Mh");
eOA.idomCompat=!0;_.yd(eOA,"yt-flow-bottom-bar-renderer",{props:{data:_.D4,className:_.D4}});var CSf=_.T(function(b){var h=_.P2(b.className,"ytOfferSummaryRendererHost");return _.M("yt-offer-summary-renderer",{class:h},_.M("div",{class:"ytOfferSummaryRendererTextContainer"},_.M("div",{class:"ytOfferSummaryRendererEyebrowText"},_.M(_.zv,{text:function(){return b.data().eyebrowText}})),_.M("div",{class:"ytOfferSummaryRendererTitle"},_.M(_.zv,{text:function(){return b.data().title}})),_.M("div",{class:"ytOfferSummaryRendererSubtitle"},_.M(_.zv,{text:function(){return b.data().subtitle}})),_.M("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.M(_.Gw,{each:function(){var y;
return(y=b.data().featureListData)!=null?y:[]}},function(y){var S;
return _.M("div",{class:"ytOfferSummaryRendererFeatureList"},_.M(_.Xv,{icon:(S=y.icon)==null?void 0:S.iconType,active:function(){return y.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(y.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"}}}),_.M("div",{class:"ytOfferSummaryRendererFeatureListText"},_.M(_.zv,{text:y.text,
className:function(){return y.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.M("div",{class:"ytOfferSummaryRendererDescription"},_.M(_.zv,{text:function(){return b.data().description}}))))},"Nh");_.yd(_.T(function(b){var h={};h=_.P2("ytOfferSummaryFlowStepRendererHost",(h.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=b.shouldDisableHeaderTopMargin,h));return _.M("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:h},_.M("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.M("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.M(_.zv,{text:function(){return b.data().header}})),_.M("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.M(_.zv,{text:function(){return b.data().subtitle}}))),_.M("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.M(_.rC,{data:function(){return b.data().offerSummary}},{offerSummaryRenderer:function(y){return _.M(CSf,{data:y.data,
className:b.flowClassName})}})))},"Oh"),"yt-offer-summary-flow-step-renderer",{props:{data:_.v3,
flowClassName:_.v3,flowStateEntityKey:_.v3,shouldDisableHeaderTopMargin:_.v3}});var g82=_.T(function(b){var h=b.data;var y=b.className;var S=b.flowStateEntityKey;var F=b.selectionStepStyle;b=_.Zv(function(n){var X=h(),u=S==null?void 0:S();n.target&&(n.stopPropagation(),n=u||"",u=_.bG(_.mc().getState(),n),X=Object.assign({},u,{premiumPurchaseFlowState:{selectedOptionId:X.optionId,primaryButtonOverride:X.primaryButtonOverride}}),_.mc().dispatch(_.R7("flowStateEntity",n,X)));return!1});
var a=function(){return(S==null?void 0:S())||""},P=_.OF(_.bG,a);
_.wg(function(){var n=h(),X=a(),u=P();n.defaultSelected&&X!==""&&n.primaryButtonOverride&&RSP(n.optionId||"",X,n.primaryButtonOverride,u)});
var K={};return _.M("ytm-option-item-renderer",{"on:click":b,class:_.P2(y,"ytm-option-item-renderer",(K["ytm-option-item-renderer--lp2-style"]=function(){return(F==null?void 0:F())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},K))},_.M("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.M("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var n=h(),X=a(),u=P();u=_.c(u,cmq);return(u?(u==null?void 0:u.selectedOptionId)||"":n.defaultSelected&&X!==""?(n==null?void 0:n.optionId)||"":"")===h().optionId},
name:("input"+_.yR(_.rt)).toString()})),_.M("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.M(_.rC,{data:function(){return h().titleBadge}},{badgeViewModel:function(n){return _.M(_.gE,{data:n.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.M(_.H,{cond:function(){return h().eyebrowText},
then:function(){return _.M("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.M(_.zv,{text:function(){return h().eyebrowText}}))}}),_.M("div",{class:"ytm-option-item-renderer__option-item-title"},_.M(_.zv,{text:function(){return h().title}})),_.M("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.M(_.zv,{text:function(){return h().subtitle}})),_.M(_.H,{cond:function(){return h().featureListData},
then:function(){return _.M("div",{class:"ytm-option-item-renderer__feature-list-data"},_.M(_.Gw,{each:function(){return h().featureListData||[]}},function(n){var X,u=(X=n.icon)==null?void 0:X.iconType;
a:switch(n.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":X="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":X="ytm-option-item-renderer__feature-list-icon-small";break a;default:X="ytm-option-item-renderer__feature-list-icon-default"}return _.M("div",{class:"ytm-option-item-renderer__feature-list"},_.M(_.Xv,{icon:u,className:X,active:function(){return n.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.M("div",{class:"ytm-option-item-renderer__feature-list-text"},_.M(_.zv,{text:n.text,
className:function(){return n.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.M("div",{class:"ytm-option-item-renderer__option-item-description"},_.M(_.zv,{text:function(){return h().description}}))))},"Ph");var sUY=_.T(function(b){var h=b.data;var y=b.flowClassName;var S=b.flowStateEntityKey;var F=b.selectionStepStyle;return _.M("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"ytOptionSectionRendererHost"},_.M("div",{class:"ytOptionSectionRendererOptionSectionHeaderSection"},_.M("div",{class:"ytOptionSectionRendererOptionSectionHeader"},_.M(_.zv,{text:function(){return h().title}}),_.M(_.rC,{data:function(){return h().titleBadge}},{badgeViewModel:function(a){return _.M(_.gE,{data:a.data,
class:"ytOptionSectionRendererOptionSectionTitleBadge"})}})),_.M(_.H,{cond:function(){return h().subtitle},
then:function(){return _.M("div",{class:"ytOptionSectionRendererOptionSectionSubtitle"},_.M(_.zv,{text:function(){return h().subtitle}}))}}),_.M(_.H,{cond:function(){return h().featureListData},
then:function(a){return _.M("div",{class:"ytOptionSectionRendererOptionSectionFeatureList"},_.M(_.Gw,{each:a},function(P){var K;return _.M("div",{class:"ytOptionSectionRendererOptionSectionFeatureItem"},_.M(_.Xv,{icon:(K=P.icon)==null?void 0:K.iconType,active:function(){return P.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(P.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconSmall";default:return"ytOptionSectionRendererOptionSectionFeatureItemIconDefault"}}}),_.M("div",{class:"ytOptionSectionRendererOptionSectionFeatureItemText"},_.M(_.zv,{text:P.text,
className:function(){return P.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOptionSectionRendererOptionSectionFeatureItemTextSecondary":""}})))}))}}),_.M(_.H,{cond:function(){return h().secondaryTitle},
then:function(){return _.M("div",{class:"ytOptionSectionRendererOptionSectionSecondaryTitle"},_.M(_.zv,{text:function(){return h().secondaryTitle}}))}}),_.M(_.Gw,{each:function(){return h().sectionDisclaimers||[]}},function(a){return _.M("div",{class:"ytOptionSectionRendererOptionSectionDisclaimer"},_.M(_.zv,{text:a}))})),_.M(_.rC,{data:function(){return h().optionItems}},{optionItemRenderer:function(a){return _.M("div",{class:"ytOptionSectionRendererOptionItem"},_.M(g82,{data:a.data,
className:y,flowStateEntityKey:S,selectionStepStyle:F}))}}),_.M(_.H,{cond:function(){return h().offerText},
then:function(){return _.M("div",{class:"ytOptionSectionRendererOptionSectionOfferText"},_.M(_.zv,{text:function(){return h().offerText}}))}}))},"Qh");
sUY.idomCompat=!0;var Ynd=_.T(function(b){var h=b.data;var y=b.flowClassName;var S=b.flowStateEntityKey;b=b.isDesktop;var F=_.ZR("div"),a=function(){var u;return(u=h().flowStateEntityKey)!=null?u:S==null?void 0:S()},P=function(){return(a==null?void 0:a())||""},K=function(){return h().style},n=_.OF(_.bG,P);
_.wg(function(){zSF(h(),P(),n());setTimeout(function(){var u;(u=F.value)==null||u.focus()})});
var X={};return _.M("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.P2("ytm-option-selection-flow-step-renderer",(X["ytm-option-selection-flow-step-renderer--desktop"]=b,X["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return h().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},X))},_.M("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"},
_.M("div",{el:F,
tabindex:-1,role:"heading","aria-level":1,class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.M(_.zv,{text:function(){return h().header}})),_.M("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.M(_.zv,{text:function(){return h().subtitle}}))),_.M(_.rC,{data:function(){return h().optionItems||[]}},{optionItemRenderer:function(u){return _.M("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},
_.M(g82,{data:u.data,
className:y,flowStateEntityKey:a,selectionStepStyle:K}))},
optionSectionRenderer:function(u){return _.M("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.M(sUY,{data:u.data,flowClassName:y,flowStateEntityKey:a,selectionStepStyle:K}))}}))},"Rh");
Ynd.idomCompat=!0;_.yd(Ynd,"yt-option-selection-flow-step-renderer",{props:{data:_.D4,flowClassName:_.D4,flowStateEntityKey:_.D4,isDesktop:_.D4}});_.Vo=_.T(function(b){var h=_.h6(b,{type:1,disablePadding:!1,disablePrimaryButton:!1}),y=h.data,S=h.type;b=h.disablePadding;var F=h.disablePrimaryButton,a=h.onClickPrimaryButton,P=function(){return y().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},K=function(){return{disabled:F(),
state:F()?"disabled":"active"}},n=function(){return y().leadingLabel||y().trailingLabel};
h={};return _.M("yt-panel-footer-view-model",{class:_.P2("yt-panel-footer-view-model",(h["yt-panel-footer-view-model--hide-divider"]=function(){return y().shouldHideDivider},h["yt-panel-footer-view-model--disable-padding"]=b,h))},_.M(_.H,{cond:n,
then:function(){var X={},u={};return _.M("div",{class:_.P2("yt-panel-footer-view-model__text-row",(X["yt-panel-footer-view-model--row-bottom-padding"]=function(){var O=y();return!(!O.leadingLabel&&!O.trailingLabel||!O.primaryButton&&!O.secondaryButton)},X))},_.M(_.zv,{text:function(){return y().leadingLabel},
className:_.P2((u["yt-panel-footer-view-model--text-padding"]=n,u))}),_.M(_.zv,{text:function(){return y().trailingLabel}}))}}),_.M(_.H,{cond:P,
then:function(){var X={};return _.M("div",{class:"yt-panel-footer-view-model__button-stack"},_.M("div",{class:_.P2("yt-panel-footer-view-model__primary-button",(X["yt-panel-footer-view-model__button-stack--top-button"]=function(){return y().secondaryButton},X))},_.M(_.rC,{data:function(){return y().primaryButton}},{buttonViewModel:function(u){return _.M(_.EG,{data:u.data,
buttonOverrides:K,onClick:a})}})),_.M(_.rC,{data:function(){return y().secondaryButton}},{buttonViewModel:_.EG}))}}),_.M(_.H,{cond:function(){return!P()},
then:function(){var X={},u={},O={};return _.M("div",{class:_.P2("yt-panel-footer-view-model__button-row",(X["yt-panel-footer-view-model__button-row--trailing"]=function(){return 3===S()},X))},_.M("div",{class:_.P2("yt-panel-footer-view-model__button-row--left-button",(u["yt-panel-footer-view-model__button-row--full-width"]=function(){return 1===S()},u["yt-panel-footer-view-model__button-row--hidden"]=function(){return!y().secondaryButton||0===S()},u["yt-panel-footer-view-model__button-row--shrink"]=
function(){return 2===S()},u))},_.M(_.rC,{data:function(){return y().secondaryButton}},{buttonViewModel:_.EG})),_.M("div",{class:_.P2("yt-panel-footer-view-model__primary-button",(O["yt-panel-footer-view-model__button-row--full-width"]=function(){return 0===S()||1===S()},O["yt-panel-footer-view-model__button-row--expand"]=function(){return 2===S()},O))},_.M(_.rC,{data:function(){return y().primaryButton}},{buttonViewModel:function(N){return _.M(_.EG,{data:N.data,
buttonOverrides:K,onClick:a})}})))}}))},"Sh");
_.Vo.idomCompat=!0;_.TRA=_.T(function(b){b=_.h6(b,{disablePadding:!1});var h=b.data,y=b.disablePadding;b=_.mwI(function(){return h().formId},void 0,function(){return h().onSubmitSuccess});
var S=b.submitForm,F=b.isValid,a=b.isSubmitting;return _.M("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.M(_.rC,{data:function(){return h().panelFooter}},{panelFooterViewModel:function(P){return _.M(_.Vo,{data:P.data,
onClickPrimaryButton:function(){S()},
disablePrimaryButton:function(){return!F()||a()},
disablePadding:y})}}))},"Th");_.yd(_.TRA,"yt-form-footer-view-model",{props:{data:_.D4,disablePadding:_.D4}});var GDq=_.T(function(b){var h=_.r("enable_user_rating_web");return _.M("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.M("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.M(_.H,{cond:function(){var y;return(y=b.data())==null?void 0:y.image},
then:function(y){return _.M(_.mI,{data:y,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.M("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.M(_.zv,{text:function(){var y;
return(y=b.data())==null?void 0:y.title}})),_.M("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.M(_.zv,{text:function(){var y;
return(y=b.data())==null?void 0:y.subtitle}})),_.M(_.H,{cond:function(){return!h},
then:function(){return _.M(_.rC,{data:function(){var y;return(y=b.data())==null?void 0:y.viewTipsButton}},{buttonViewModel:function(y){return _.M(_.EG,{data:y.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"Uh");_.yd(GDq,"yt-contributor-zero-state-view-model",{props:{data:_.D4}});var kDA=_.T(function(b){var h=function(){var y;return(y=b.data())==null?void 0:y.image};
return _.M("yt-featured-content-item-view-model",{class:_.P2("ytFeaturedContentItemViewModelHost")},_.M("div",{class:_.P2(function(){return h()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.M("div",{class:function(){return h()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.M(_.H,{cond:h,
then:function(){return _.M("div",{class:"ytFeaturedContentItemViewModelImage"},_.M(_.rC,{data:function(){return b.data().image}},{themedImageViewModel:function(y){return _.M(ROE,{data:y.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.M(_.H,{cond:function(){var y;
return!h()&&((y=b.data())==null?void 0:y.iconName)},
then:function(){return _.M("div",{class:"ytFeaturedContentItemViewModelIcon"},_.M(_.Xv,{icon:function(){return b.data().iconName}}))}}),_.M("div",{class:"ytFeaturedContentItemViewModelContent"},_.M(_.H,{cond:function(){var y;
return(y=b.data())==null?void 0:y.title},
then:function(){return _.M("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.M(_.zv,{text:function(){return b.data().title}}))}}),_.M(_.H,{cond:function(){var y;
return(y=b.data())==null?void 0:y.body},
then:function(){return _.M("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.M(_.zv,{text:function(){return b.data().body}}))}})))))},"Vh");var V7Y=_.T(function(b){var h=function(){var F;return DdY((F=b.data())==null?void 0:F.titleFontSize)},y=function(){var F;
return If2((F=b.data())==null?void 0:F.descriptionFontSize)},S=function(){var F;
return((F=b.data())==null?void 0:F.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.M("yt-landing-page-view-model",{class:_.P2("ytLandingPageViewModelHost",b.className)},_.M("div",{class:"ytLandingPageViewModelHeader"},_.M(_.H,{cond:function(){var F;return(F=b.data())==null?void 0:F.bannerImage},
then:function(F){return _.M("div",{class:"ytLandingPageViewModelHeaderImage"},_.M(_.rC,{data:function(){return F()}},{imageBannerViewModel:function(a){return _.M(_.UI,{data:a.data,
isPositionRelative:!0})}}))}}),_.M(_.H,{cond:function(){var F;
return(F=b.data())==null?void 0:F.bannerAnimation},
then:function(F){return _.M(_.vj,{data:function(){var a=F();if(a==null?0:a.url){var P;a={path:(P=a==null?void 0:a.url)!=null?P:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(a==null?0:a.payload){var K;a={animationData:JSON.parse((K=a==null?void 0:a.payload)!=null?K:""),autoplay:!0,loop:!0,renderer:"svg"}}else a=void 0;return{animationConfig:a}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.M("div",{class:"ytLandingPageViewModelHeaderTitle"},_.M(_.H,{cond:function(){var F;
return(F=b.data())==null?void 0:F.title},
then:function(F){return _.M("div",{class:_.P2("ytLandingPageViewModelHeaderTitleContent",h)},_.M(_.zv,{text:function(){return F()}}))}}),_.M(_.H,{cond:function(){var F;
return(F=b.data())==null?void 0:F.description},
then:function(F){var a={};return _.M(_.zv,{className:_.P2("ytLandingPageViewModelHeaderTitleDescription",y,(a.ytLandingPageViewModelHeaderTitleDescriptionMargin=S,a)),text:function(){return F()}})}}))),_.M(_.H,{cond:function(){var F,a;
return(F=b.data())==null?void 0:(a=F.featuredContentList)==null?void 0:a.length},
then:function(){return _.M("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.M(_.rC,{data:function(){return b.data().featuredContentList}},{featuredContentItemViewModel:function(F){return _.M(kDA,{data:F.data})}}))}}),_.M(_.H,{cond:function(){var F,a;
return(F=b.data())==null?void 0:(a=F.expandableContentList)==null?void 0:a.length},
then:function(){return _.M("div",{class:"ytLandingPageViewModelFaqSection"},_.M(_.rC,{data:function(){return b.data().expandableContentList}},{faqEntryViewModel:function(F){return _.M("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.M(_.VJP,{data:F.data}))}}))}}),_.M("div",{class:"ytLandingPageViewModelFooter"},_.M(_.H,{cond:function(){var F;
return(F=b.data())==null?void 0:F.legalCopy},
then:function(F){return _.M("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.M(_.zv,{text:function(){return F()}}))}}),_.M(_.H,{cond:function(){var F;
return(F=b.data())==null?void 0:F.actions},
then:function(F){return _.M("div",null,_.M(_.rC,{data:function(){return F()}},{flexibleActionsViewModel:function(a){return _.M(_.tp,{data:a.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"Wh");_.yd(_.T(function(b){return _.M("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.M("div",{class:"ytLpSectionGroupViewModelContainer"},_.M(_.rC,{data:function(){return b.data().sections}},{landingPageViewModel:function(h){return _.M(V7Y,{data:h.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"Xh"),"yt-lp-section-group-view-model",{props:{data:_.D4}});var E8q=_.T(function(b){var h=b.data;var y=b.selectedKey;var S=b.onSelected;var F=b.groupName;var a=function(){return h().text},P=function(){return h().attributedText},K=function(){return h().subtext},n=function(){return h().attributedSubtext},X=_.M("div",{class:"ytRadioButtonItemViewModelLabel"},_.M(_.H,{cond:a,
then:function(){return _.M("div",null,a)}}),_.M(_.H,{cond:P,
then:function(){return _.M(_.zv,{text:P})}}),_.M(_.H,{cond:K,
then:function(){return _.M("div",{class:"ytRadioButtonItemViewModelSubText"},K)}}),_.M(_.H,{cond:n,
then:function(){return _.M("div",{class:"ytRadioButtonItemViewModelSubText"},_.M(_.zv,{text:n}))}})),u=function(){if(P()){var N;
return(N=P())==null?void 0:N.content}return a()},O=function(){if(n()){var N;
return(N=n())==null?void 0:N.content}return K()};
b={};return _.M("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.M(_.Dt,{name:F,checked:function(){return!(y==null||!y()||h().key!==(y==null?void 0:y()))},
onChange:function(N){S==null||S(N.target,h(),F==null?void 0:F())},
labelRenderable:function(){return X},
ariaLabel:function(){return O()?u()+", "+O():u()},
className:_.P2((b.ytRadioButtonItemViewModelSubTitle=function(){return!!h().subtext},b))}))},"Yh");_.iia=_.T(function(b){var h=b.data;var y=function(){var S;return _.ea((S=h())==null?void 0:S.rendererContext)};
b={};return _.M("content-list-item-view-model",{el:_.Qa(_.Ch(function(){return h().rendererContext})),
class:_.P2("ytContentListItemViewModelHost",(b.ytContentListItemViewModelTappable=y,b)),role:function(){return y()?"listitem":void 0},
tabindex:function(){return y()?0:void 0}},_.M("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.M("div",{class:"ytContentListItemViewModelImageContainer"},_.M(_.H,{cond:function(){return h().image},
then:function(S){return _.M(_.mI,{data:S,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.M(_.rC,{data:function(){var S;
return(S=h())==null?void 0:S.avatar}},{avatarViewModel:_.OX})),_.M("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.M("div",{class:_.P2("ytContentListItemViewModelTitle",function(){a:{switch(h().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var S="ytContentListItemViewModelProminentTitle";
break a}S=void 0}return S})},_.M(_.zv,{text:function(){return h().title}})),_.M("div",{class:"ytContentListItemViewModelMetadata"},_.M(_.rC,{data:function(){return h().metadata}},{contentMetadataViewModel:function(S){return _.M(_.lH,{data:S.data,
layout:1})}})))),_.M("div",{class:"ytContentListItemViewModelActionButton"},_.M(_.rC,{data:function(){var S;
return(S=h())==null?void 0:S.actionButton}},{buttonViewModel:_.EG,
toggleButtonViewModel:_.Ke})))},"Zh");var fUq=_.T(function(b){var h=b.data,y=function(){var F;return(F=h())==null?void 0:F.description},S=function(){var F;
return(F=h())==null?void 0:F.title};
return _.M("ytfc-youth-basic-section-header-view-model",{class:_.P2("ytfcYouthBasicSectionHeaderViewModelHost",b.className)},_.M("div",{class:"ytfcYouthBasicSectionHeaderViewModelLeading"},_.M(_.rC,{data:function(){var F;return(F=h())==null?void 0:F.avatar}},{avatarViewModel:_.OX}),_.M(_.H,{cond:function(){var F;
return _.EF((F=h())==null?void 0:F.themedImage)},
then:function(F){return _.M(_.mI,{data:F,alt:function(){var a,P;return(P=(a=S())==null?void 0:a.content)!=null?P:""},
className:"ytfcYouthBasicSectionHeaderViewModelImage"})}})),_.M("div",{class:"ytfcYouthBasicSectionHeaderViewModelDetails"},_.M(_.H,{cond:S,
then:function(){return _.M(_.zv,{text:S,className:"ytfcYouthBasicSectionHeaderViewModelTitle"})}}),_.M("div",{class:"ytfcYouthBasicSectionHeaderViewModelMetadata"},_.M(_.rC,{data:function(){var F;
return(F=h())==null?void 0:F.bottomBadge}},{badgeViewModel:function(F){return _.M("div",{class:"ytfcYouthBasicSectionHeaderViewModelBadge"},_.M(_.gE,{data:F.data}))}}),_.M(_.H,{cond:y,
then:function(){return _.M(_.zv,{text:y,className:"ytfcYouthBasicSectionHeaderViewModelDescription"})}}))))},"$h");var wiF=_.T(function(b){var h=b.data;return _.M("ytfc-youth-section-body-view-model",{class:_.P2("ytfcYouthSectionBodyViewModelHost",b.className)},_.M(_.rC,{data:function(){var y;return(y=h())==null?void 0:y.topContent}},{avatarStackViewModel:function(y){return _.M(_.tZ,{data:y.data,
className:"ytfcYouthSectionBodyViewModelAvatarStack"})}}),_.M(_.zv,{text:function(){var y;
return(y=h())==null?void 0:y.description},
className:"ytfcYouthSectionBodyViewModelDescription"}))},"ai");var lUA=_.T(function(b){var h=_.L(_.pa(!1,void 0,"SrK51e")),y=h.next().value,S=h.next().value,F=function(){return b.data().inlineExpansionEntityKey},a=_.OF(VHa,F),P=function(){if(b.isSelected!==void 0)return b.isSelected();
if(F()){var n;return(n=a())==null?void 0:n.expanded}return y()};
h={};var K={};return _.M("yt-inline-expander-view-model",{class:"ytInlineExpanderViewModelHost","on:click":_.Zv(function(){b.isSelected!==void 0||F()||S(!y())})},_.M("div",{class:"ytInlineExpanderViewModelHeader"},_.M(_.rC,{data:function(){return b.data().headerContent}},{youthBasicSectionHeaderViewModel:fUq}),_.M("div",{class:_.P2("ytInlineExpanderViewModelButton",(h.ytInlineExpanderViewModelButtonExpanded=P,h))},_.M(_.V5,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",toggleable:!0,toggled:P(),accessibilityLabel:P()?_.Mt("SHOW_LESS",void 0,"Show Less"):_.Mt("SHOW_MORE",void 0,"Show More")}},
iconName:"chevron_down"}))),_.M("div",{class:_.P2("ytInlineExpanderViewModelBody",(K.ytInlineExpanderViewModelBodyExpanded=P,K)),"aria-hidden":function(){return!P()}},_.M("div",{class:"ytInlineExpanderViewModelBodyContent"},_.M(_.rC,{data:function(){return b.data().bodyContent}},{youthSectionBodyViewModel:wiF}))))},"bi");var qnX=new _.ca("CONTENT_SECTION_VIEW_MODEL_TOKEN");_.xmF=_.T(function(b){var h=function(){return b.data().background},y=function(){return b.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},S=function(){return b.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"},F=_.H9().resolve(_.XS(qnX)),a={};
return _.M("yt-card-view-model",{el:_.Qa(_.Ch(function(){return b.data().rendererContext})),
class:_.P2("ytCardViewModelHost",b.className,(a.ytCardViewModelClickable=function(){return _.JB(b.data().rendererContext)},a))},_.M(_.qY,{contentId:function(){return b.data().contentId}},function(){var P={};
return _.M("div",{class:_.P2("ytCardViewModelCardViewModelInner",function(){var K;return Bkf(b.data().cardStyle,(K=b.isSelected)==null?void 0:K.call(b))},function(){if(b.isSelected===void 0){var K;
a:{switch((K=b.data().cardState)==null?void 0:K.selectionState){case "CARD_SELECTION_STATE_SELECTED":K="ytCardViewModelSelected";break a}K=void 0}return K}})},_.M(_.rC,{data:h},{cinematicContainerViewModel:function(K){return _.M(_.h8d,{data:K.data})}}),_.M("div",{class:"ytCardViewModelContentWrapper"},_.M(_.H,{cond:function(){return!y()},
then:function(){var K={},n={};return _.M("div",{class:"ytCardViewModelTopContentContainer"},_.M("div",{class:_.P2("ytCardViewModelTopContent",(K.ytCardViewModelInnerPadding=function(){return!b.data().disableTopContentPadding&&b.data().topContent},K))},_.M(_.rC,{data:function(){return b.data().topContent}},{contentListItemViewModel:function(X){return _.M(_.iia,{data:X.data})},
basicContentViewModel:_.zT,linearLayoutViewModel:_.B$})),_.M("div",{class:_.P2("ytCardViewModelInlineTrailingAction",(n.ytCardViewModelInlineCenterTrailingAction=S,n.ytCardViewModelInlineTrailingActionMargin=function(){return b.data().trailingAction},n))},_.M(_.rC,{data:function(){return b.data().trailingAction}},{buttonViewModel:function(X){return _.M(_.EG,{data:X.data})}})))}}),_.M("div",{class:_.P2((P.ytCardViewModelInnerPadding=function(){return!b.data().disableBodyContentPadding&&b.data().bodyContent},
P))},_.M(_.rC,{data:function(){return b.data().bodyContent}},Object.assign({},{channelAttributionViewModel:_.f7a,
contentListItemViewModel:_.iia,descriptionPreviewViewModel:_.hN,inlineExpanderViewModel:function(K){return _.M(lUA,{data:K.data,isSelected:b.isSelected})},
linearLayoutViewModel:_.B$,listItemViewModel:_.Iu},F&&{contentSectionViewModel:F})))),_.M(_.H,{cond:function(){return y()},
then:function(){return _.M("div",{class:"ytCardViewModelOverlayTrailingAction"},_.M(_.rC,{data:function(){return b.data().trailingAction}},{buttonViewModel:function(K){return _.M(_.EG,{data:K.data})}}))}}))}))},"ci");var QUN=_.T(function(b){var h=b.data,y=b.onSelected,S=b.selectedKey,F=b.groupName;b=b.className;var a=_.L(_.pa(!1,void 0,"mDtSad")),P=a.next().value,K=a.next().value,n=function(){if(S!==void 0){var X=S();return!(!X||h().key!==X)}return P()};
a=_.Zv(function(X){y?y(X.currentTarget,h(),F==null?void 0:F()):K(!P())});
return _.M("yt-selectable-item-view-model",{class:_.P2("ytSelectableItemViewModelHost",b,"ytSelectableItemViewModelContainer"),"on:click":a,"prop:checked":n},_.M(_.rC,{data:function(){return h().content}},{cardViewModel:function(X){return _.M(_.xmF,{data:X.data,
isSelected:n})}}))},"di");_.mm2=_.T(function(b){var h=b.data;var y=b.onSelected;var S=b.selectedKey;var F=b.groupName;var a=function(){return(F==null?void 0:F())||h().key};
return _.M("yt-radio-button-group-view-model",{class:_.P2("ytRadioButtonGroupViewModelHost",b.className)},_.M("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.M(_.rC,{data:function(){return h().radioButtons}},{radioButtonItemViewModel:function(P){return _.M(E8q,{data:P.data,
onSelected:y,selectedKey:S,groupName:a})},
selectableItemViewModel:function(P){return _.M(QUN,{data:P.data,onSelected:y,selectedKey:S,groupName:a})}})))},"ei");var v8N=_.T(function(b){_.wg(function(){if(b.controlledMode()&&b.data().defaultSelected)_.QT(Error("dk"));else{var a;!b.controlledMode()&&((a=b.selected)==null?0:a.call(b))&&_.QT(Error("ek"))}});
var h=_.L(_.ya(function(){if(!b.controlledMode())return b.data().defaultSelected})),y=h.next().value,S=h.next().value,F=function(){if(!b.controlledMode())return y();
var a;return(a=b.selected)==null?void 0:a.call(b)};
return _.M("yt-checkbox-item-view-model",{class:_.P2("ytCheckboxItemViewModelHost",b.className)},_.M(_.Iu,{data:function(){var a=b.data(),P=F();return{title:a.text,subtitle:a.subtext,superlabel:a.superlabel,isSelected:!!P,isDisabled:a.isDisabled,selectionStyle:"LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},
onTap:function(){!b.controlledMode()&&S(!y());var a,P;(P=b.onTap)==null||P.call(b,!!F(),b.data(),(a=b.groupName)==null?void 0:a.call(b))},
isCompact:b.isCompact}))},"fi");_.bRf=_.T(function(b){var h=b.data;var y=b.controlledMode;var S=b.selectedKeys;var F=b.onItemTap;var a=b.groupName;var P=function(){return(a==null?void 0:a())||h().key};
_.wg(function(){y()&&h().defaultSelectedKeys?_.QT(Error("fk")):!y()&&(S==null?0:S())&&_.QT(Error("gk"))});
b=_.L(_.ya(function(){if(!y())return h().defaultSelectedKeys}));
var K=b.next().value,n=b.next().value,X=function(u,O,N){u=[];!y()&&O.key&&(u=WdX(O.key,K()||[]),n(u));F==null||F(O,u,N)};
return _.M("yt-checkbox-group-view-model",{class:_.P2("ytCheckboxGroupViewModelHost")},_.M("fieldset",{class:_.P2("ytCheckboxGroupViewModelFieldset")},_.M("div",{role:"list"},_.M(_.rC,{data:function(){return h().checkboxes}},{checkboxItemViewModel:function(u){var O=u.data;
return _.M(v8N,{data:O,controlledMode:!0,selected:function(){var N=y()?(S==null?void 0:S())||[]:K()||[],t=O().key;return t?N.includes(t):!1},
onTap:X,groupName:P})}}))))},"gi");var Ey=_.T(function(b){var h=_.OF(AmA,_.bi(function(){var K;return(K=b.data())==null?void 0:K.noteFeedEntityKey},"")),y=_.OF(woA,_.bi(function(){var K;
return(K=b.data())==null?void 0:K.userRatingEntityKey},"")),S=_.r("enable_user_rating_web"),F=function(){var K,n,X;
return((K=h())==null?0:K.contributorNote)?(n=h())==null?void 0:n.contributorNote:(X=b.data())==null?void 0:X.existingNote},a=function(){var K,n;
return!!y()&&!!UdP((K=y())==null?void 0:K.helpfulnessValue,(n=b.data())==null?void 0:n.noteData)};
if(S){var P={};return _.M("yt-note-view-model",{class:_.P2("ytNoteViewModelHostUserRating",(P.ytNoteViewModelHostUserRatingPublishedNote=function(){var K,n,X,u;return((K=b.data())==null?void 0:(n=K.noteData)==null?void 0:n.isPublished)&&!((X=b.data())==null?0:(u=X.noteData)==null?0:u.isUserRatingForm)},P))},_.M("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.M("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.M(_.H,{cond:function(){var K,n;
return(K=b.data())==null?void 0:(n=K.noteData)==null?void 0:n.isPinned},
then:function(){return _.M(_.Xv,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.M(_.H,{cond:function(){var K,n;return(K=b.data())==null?void 0:(n=K.noteData)==null?void 0:n.isPublished},
then:function(){return _.M(_.Xv,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.M(_.rC,{data:function(){var K;
return(K=b.data())==null?void 0:K.metadata}},{contentMetadataViewModel:_.lH}),_.M("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var K,n;
return(n=_.c((K=b.data())==null?void 0:K.metadata,_.ndw))==null?void 0:n.delimiter}),_.M(_.zv,{text:function(){var K;
return(K=F())==null?void 0:K.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.M(_.H,{cond:function(){var K,n;return!((K=b.data())==null?0:(n=K.noteData)==null?0:n.isUserRatingForm)},
then:function(){return _.M(_.rC,{data:function(){var K,n,X,u,O,N,t,R=!!((K=b.data())==null?0:(n=K.noteData)==null?0:n.isPinned);K=a();n=(X=b.data())==null?void 0:X.noteData;X=(u=h())==null?void 0:(O=u.contributorNote)==null?void 0:O.deleteAction;u=(N=b.data())==null?void 0:N.overflowButtonNoteWithRatingOnTapOverride;N=(t=b.data())==null?void 0:t.overflowButton;var I;t=(I=_.c(N,_.cA))==null?void 0:I.accessibilityText;return R?p_A(n,X,t):K?{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",
state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",onTap:u,accessibilityText:t}}:N}},{buttonViewModel:function(K){return _.M(_.EG,{data:K.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})}})),_.M("div",{class:"ytNoteViewModelNoteContent"},_.M(_.zv,{text:function(){var K;
return(K=F())==null?void 0:K.text}})),_.M(_.H,{cond:function(){var K,n,X,u;
return!((K=b.data())==null?0:(n=K.noteData)==null?0:n.isPinned)&&!((X=b.data())==null?0:(u=X.noteData)==null?0:u.isUserRatingForm)},
then:function(){return _.M(_.H,{cond:a,then:function(){return _.M("div",{class:"ytNoteViewModelUserRatingContainer"},_.M(_.zv,{text:function(){var K,n;return UdP((K=y())==null?void 0:K.helpfulnessValue,(n=b.data())==null?void 0:n.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.M(_.rC,{data:function(){var K;return(K=b.data())==null?void 0:K.userRatingButton}},{buttonViewModel:function(K){return _.M(_.EG,{data:K.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.M(_.H,{cond:function(){var K,n,X,u;
return!((K=b.data())==null?0:(n=K.noteData)==null?0:n.ignoreDivider)&&!((X=b.data())==null?0:(u=X.noteData)==null?0:u.isUserRatingForm)},
then:function(){return _.M("div",{class:"ytNoteViewModelDivider"},_.M(_.rC,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(K){return _.M(_.dsW,{data:K.data})}}))}}))}return _.M("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.M("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.M("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.M(_.H,{cond:function(){var K,n;return(K=b.data())==null?void 0:(n=K.noteData)==null?void 0:n.isPinned},
then:function(){return _.M(_.Xv,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.M(_.H,{cond:function(){var K,n;return(K=b.data())==null?void 0:(n=K.noteData)==null?void 0:n.isPublished},
then:function(){return _.M(_.Xv,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.M(_.H,{cond:function(){return S},
then:function(){return _.M(_.rC,{data:function(){var K;return(K=b.data())==null?void 0:K.metadata}},{contentMetadataViewModel:function(K){return _.M(_.lH,{data:K.data})}})}}),_.M(_.zv,{text:function(){var K,n;
return(K=b.data())==null?void 0:(n=K.noteData)==null?void 0:n.headerText}}),_.M("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.M(_.zv,{text:function(){var K,n;
return(K=b.data())==null?void 0:(n=K.noteData)==null?void 0:n.delimiter}})),_.M(_.zv,{text:function(){var K,n;
return(K=h())==null?void 0:(n=K.contributorNote)==null?void 0:n.publishedTimeText}})),_.M(_.rC,{data:function(){var K,n,X;
return p_A((K=b.data())==null?void 0:K.noteData,(n=h())==null?void 0:(X=n.contributorNote)==null?void 0:X.deleteAction)}},{buttonViewModel:function(K){return _.M(_.EG,{data:K.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.M("div",{class:"ytNoteViewModelNoteContent"},_.M(_.zv,{text:function(){var K,n;
return(K=h())==null?void 0:(n=K.contributorNote)==null?void 0:n.text}})))},"hi");
Ey.idomCompat=!0;_.yd(_.T(function(b){var h=_.bi(function(){var e;return(e=b.data())==null?void 0:e.flowStateEntityKey},""),y=_.OF(_.bG,h),S=_.OF(AmA,_.bi(function(){var e;
return(e=b.data())==null?void 0:e.noteFeedEntityKey},"")),F=_.L(_.ya(function(){var e;
return(e=_.c(b.data().helpfulnessValue,_.PEA))==null?void 0:e.defaultSelectedKey})),a=F.next().value,P=F.next().value;
F=_.L(_.ya(function(){var e,E,Y;return(Y=_.c((e=_.c(b.data().helpfulnessValue,_.PEA))==null?void 0:(E=e.radioButtons)==null?void 0:E.find(function(w){var x;return((x=_.c(w,KyA))==null?void 0:x.key)===a()}),KyA))==null?void 0:Y.value}));
var K=F.next().value,n=F.next().value;F=_.L(_.ya(function(){var e;return(e=_.c(b.data().helpfulReasons,LyX))==null?void 0:e.defaultSelectedKeys}));
var X=F.next().value,u=F.next().value;F=_.L(_.ya(function(){var e;return(e=_.c(b.data().notHelpfulReasons,LyX))==null?void 0:e.defaultSelectedKeys}));
var O=F.next().value,N=F.next().value,t=function(e,E){P(E.key);n(E.value);u([]);N([])},R=function(){var e,E;
return((e=K())==null?void 0:e.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_HELPFUL"||((E=K())==null?void 0:E.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"},I=function(){var e,E;
return((e=K())==null?void 0:e.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"||((E=K())==null?void 0:E.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_NOT_HELPFUL"},U=function(e){Jma(e.key,X,u)},p=function(e){Jma(e.key,O,N)};
_.wg(function(){var e,E,Y;_.iPY((e=b.data())==null?void 0:(E=e.userRatingFormSchema)==null?void 0:E.id,{isValid:function(){return!!a()},
formData:function(){var w=K(),x=CzN(X(),_.c(b.data().helpfulReasons,LyX)),q=CzN(O(),_.c(b.data().notHelpfulReasons,LyX));w={helpfulnessValue:w==null?void 0:w.noteHelpfulnessValue};if(x){w.helpfulReasons=[];x=_.L(x);for(var dI=x.next();!dI.done;dI=x.next()){dI=dI.value;var L4=void 0;if((L4=dI)==null?0:L4.noteHelpfulReason)L4=void 0,w.helpfulReasons.push((L4=dI)==null?void 0:L4.noteHelpfulReason)}}if(q)for(w.notHelpfulReasons=[],q=_.L(q),x=q.next();!x.done;x=q.next())if(x=x.value,dI=void 0,(dI=x)==
null?0:dI.noteNotHelpfulReason)dI=void 0,w.notHelpfulReasons.push((dI=x)==null?void 0:dI.noteNotHelpfulReason);return{userRatingFormData:w}},
submitConfig:{submitId:"SUBMIT_ID_CROWDSOURCED_CONTEXT_USER_RATING_FORM",params:(Y=_.c(y(),QHx))==null?void 0:Y.submitFormParams},onSubmitResult:function(){var w,x=(w=_.c(y(),QHx))==null?void 0:w.userRatingEntityKey,q;w={key:x,helpfulnessValue:(q=K())==null?void 0:q.noteHelpfulnessValue};x&&_.vl(_.R7("contextNoteUserRatingEntityPayload",x,w));var dI;x=(dI=b.data())==null?void 0:dI.viewNoteFlowStepId;var L4;if((L4=S())==null||!L4.contributorNote){var Rq;x=(Rq=b.data())==null?void 0:Rq.zeroStateFlowStepId}(dI=
Object.assign({},y()))&&x&&(dI.currentStepId=x,dI.stepIdStack=[x],_.vl(_.R7("flowStateEntity",h(),dI)));var Xn;(dI=(Xn=b.data())==null?void 0:Xn.ratingSubmittedSnackbarCommand)&&_.Va(dI)},
disableDuringSubmission:!0})});
return _.M("yt-note-user-rating-view-model",{class:"ytNoteUserRatingViewModelHost"},_.M(_.rC,{data:function(){var e=_.c(y(),QHx);if(e){var E;var Y={noteViewModel:{metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:e==null?void 0:(E=e.note)==null?void 0:E.headerText}]}],delimiter:"\u2022"}},existingNote:e.note,noteData:{isUserRatingForm:!0},noteFeedEntityKey:"",userRatingEntityKey:""}}}else Y=void 0;return Y}},{noteViewModel:function(e){return _.M("div",{class:"ytNoteUserRatingViewModelNoteContainer"},
_.M(Ey,{data:e.data}))}}),_.M(_.rC,{data:function(){var e;
return(e=b.data())==null?void 0:e.helpfulnessValue}},{radioButtonGroupViewModel:function(e){return _.M("div",{class:"ytNoteUserRatingViewModelHelpfulnessValue"},_.M(_.mm2,{data:e.data,
onSelected:t,selectedKey:a}))}}),_.M(_.H,{cond:R,
then:function(){return _.M("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.M("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.M(_.zv,{text:function(){var e;return(e=b.data())==null?void 0:e.helpfulReasonQuestion}})),_.M(_.rC,{data:function(){var e;
return(e=b.data())==null?void 0:e.helpfulReasons}},{checkboxGroupViewModel:function(e){return _.M(_.bRf,{data:e.data,
onItemTap:U,selectedKeys:X,controlledMode:!0})}}))}}),_.M(_.H,{cond:I,
then:function(){return _.M("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.M("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.M(_.zv,{text:function(){var e;return(e=b.data())==null?void 0:e.notHelpfulReasonQuestion}})),_.M(_.rC,{data:function(){var e;
return(e=b.data())==null?void 0:e.notHelpfulReasons}},{checkboxGroupViewModel:function(e){return _.M(_.bRf,{data:e.data,
onItemTap:p,selectedKeys:O,controlledMode:!0})}}))}}),_.M(_.H,{cond:function(){return!R()&&!I()},
then:function(){return _.M(_.rC,{data:function(){var e;return(e=b.data())==null?void 0:e.helpfulNoteFeatures}},{alertBannerViewModel:function(e){return _.M("div",{class:"ytNoteUserRatingViewModelAlertBanner"},_.M(_.ZO8,{data:e.data}))}})}}))},"ii"),"yt-note-user-rating-view-model",{props:{data:_.D4}});_.yd(Ey,"yt-note-view-model",{props:{data:_.D4}});_.yd(_.T(function(b){var h=_.OF(AmA,_.bi(function(){var y;return(y=b.data())==null?void 0:y.noteFeedEntityKey},""));
return _.M("yt-notes-wrapper-view-model",{class:_.P2("ytNotesWrapperViewModelHost")},_.M(_.H,{cond:function(){var y,S,F;return!((y=b.data())==null||!y.existingNotes)||!((S=b.data())==null||!S.currentNote)&&!((F=h())==null||!F.contributorNote)},
then:function(){return _.M(_.OW,null,_.M(_.rC,{data:function(){var y,S,F,a;return((S=_.c((y=b.data())==null?void 0:y.currentNote,mQY))==null?0:(F=S.noteData)==null?0:F.isPublished)?(a=b.data())==null?void 0:a.currentNote:void 0}},{noteViewModel:function(y){return _.M(Ey,{data:y.data})}}),_.M(_.rC,{data:function(){var y;
return(y=b.data())==null?void 0:y.existingNotes}},{noteViewModel:function(y){var S=y.data;
return _.M(_.H,{cond:function(){var F,a;return(F=S())==null?void 0:(a=F.noteData)==null?void 0:a.isPublished},
then:function(){return _.M(Ey,{data:S})}})}}),_.M(_.rC,{data:function(){var y,S,F,a,P;
return((S=_.c((y=b.data())==null?void 0:y.currentNote,mQY))==null?0:(F=S.noteData)==null?0:F.isPublished)||(a=h())==null||!a.contributorNote?void 0:(P=b.data())==null?void 0:P.currentNote}},{noteViewModel:function(y){return _.M(Ey,{data:y.data})}}),_.M(_.rC,{data:function(){var y;
return(y=b.data())==null?void 0:y.existingNotes}},{noteViewModel:function(y){var S=y.data;
return _.M(_.H,{cond:function(){var F,a;return!((F=S())==null?0:(a=F.noteData)==null?0:a.isPublished)},
then:function(){return _.M(Ey,{data:S})}})}}))},
else:function(){return _.M(_.rC,{data:function(){var y;return(y=b.data())==null?void 0:y.zeroStateData}},{contributorZeroStateViewModel:GDq})}}))},"ji"),"yt-notes-wrapper-view-model",{props:{data:_.D4}});var yPf=_.T(function(b){var h=_.h6(b,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0,ariaLabel:void 0,timePickerData:void 0,hasError:!1}),y=h.label,S=h.text,F=h.placeholder,a=h.hint;b=h.rows;var P=h.overflowStyle,K=h.outline,n=h.disabled,X=h.disableNewLines,u=h.characterLimit,O=h.validation,N=h.onInput,t=h.ariaLabel,R=h.timePickerData,I=h.hasError,U=_.ZR("textarea");h=_.L(_.ya(function(){return S()}));
var p=h.next().value,e=h.next().value;h=_.L(_.pa(!1,void 0,"Z8Zese"));var E=h.next().value,Y=h.next().value,w=function(){Y(!0)},x=function(){Y(!1)};
_.wg(function(){var vF=U.value,xU=P(),Xa=p();xU==="expand-vertically"&&Xa&&g62(vF);U.value.addEventListener("focusin",w);U.value.addEventListener("focusout",x)});
_.m2(function(){U.value.removeEventListener("focusin",w);U.value.removeEventListener("focusout",x)});
var q=function(){var vF;return(vF=O())==null?void 0:vF.validate(p())},dI=function(){return u()&&!q()&&p().length>u().maxChars},L4=function(){return!!q()||dI()||I()};
h=_.Zv(function(vF){if(!vF.currentTarget)return!1;vF=vF.currentTarget;e(vF.value);P()==="expand-vertically"&&g62(vF);N==null||N(vF.value);return!0});
var Rq=_.Zv(function(vF){X()&&vF.key==="Enter"&&vF.preventDefault();return!1}),Xn=_.Zv(function(){U.value.focus()}),Ny=function(){return F()||y()},gI={},YU={},VN={},Hb={};
return _.M("textarea-shape",{class:_.P2("ytStandardsTextareaShapeHost",(gI.ytStandardsTextareaShapeTimePicker=function(){var vF;return(vF=R())==null?void 0:vF.useTimePickerStyles},gI))},_.M("div",{class:_.P2("ytStandardsTextareaShapeTextareaContainer",(YU.ytStandardsTextareaShapeTextareaContainerOutline=K,YU.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=n,YU.ytStandardsTextareaShapeTextareaContainerOutlineError=L4,YU)),
"on:click":Xn},_.M("label",{class:_.P2("ytStandardsTextareaShapeLabel",(VN.ytStandardsTextareaShapeLabelFocused=E,VN.ytStandardsTextareaShapeLabelDisabled=n,VN.ytStandardsTextareaShapeLabelError=function(){return L4()&&!n()},VN.ytStandardsTextareaShapeLabelHidden=function(){return!E()&&!p()&&!!Ny()},VN))},y),_.M("div",{class:_.P2("ytStandardsTextareaShapePlaceholder",(Hb.ytStandardsTextareaShapePlaceholderVisible=function(){return!E()&&!p()},Hb)),
"aria-hidden":"true"},Ny),_.M("textarea",{el:U,"aria-label":t,class:"ytStandardsTextareaShapeTextarea",rows:b,disabled:n,placeholder:Ny,"prop:value":p,"on:input":h,"on:keydown":Rq})),_.M(_.H,{cond:function(){return a()&&!L4()},
then:function(){var vF={};return _.M("div",{class:_.P2("ytStandardsTextareaShapeHint",(vF.ytStandardsTextareaShapeHintDisabled=n,vF))},_.M("div",{class:"ytStandardsTextareaShapeHintHintMessage"},a))}}),_.M(_.H,{cond:q,
then:function(){return _.M(hgY,{disabled:n},_.M("div",{class:"ytStandardsTextareaShapeErrorMessage"},q))}}),_.M(_.H,{cond:u,
then:function(vF){return _.M(_.H,{cond:dI,then:function(){return _.M(hgY,{disabled:n},_.M("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return vF().errorMessage}),_.M("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return p().length+"/"+vF().maxChars}))}})}}))},"ki");
yPf.idomCompat={callbacks:{onInput:!0}};var hgY=_.T(function(b){var h={};return _.M("div",{class:_.P2("ytStandardsTextareaShapeError",(h.ytStandardsTextareaShapeErrorDisabled=b.disabled,h)),role:"alert"},_.M(_.Xv,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),b.children)},"li");_.S0f=_.T(function(b){var h=b.data;return _.M("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.M(yPf,{text:b.text,label:function(){var y;return(y=h().contentProperties)==null?void 0:y.labelText},
placeholder:function(){var y;return(y=h().contentProperties)==null?void 0:y.placeholderText},
hint:function(){var y;return(y=h().contentProperties)==null?void 0:y.hintText},
outline:function(){var y;return!((y=h().displayProperties)==null?0:y.hideBorder)},
overflowStyle:function(){var y;return((y=h().displayProperties)==null?0:y.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:b.disabled,disableNewLines:function(){var y;return(y=h().displayProperties)==null?void 0:y.disableNewLines},
onInput:b.onInput,characterLimit:b.characterLimit,validation:b.validation,rows:function(){var y;return(y=h().displayProperties)==null?void 0:y.rows}}))},"mi");_.Fif=_.T(function(b){var h=b.data;return _.M("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.M(yPf,{text:b.text,label:function(){var y;return(y=h().contentProperties)==null?void 0:y.labelText},
placeholder:function(){var y;return(y=h().contentProperties)==null?void 0:y.placeholderText},
hint:function(){var y;return(y=h().contentProperties)==null?void 0:y.hintText},
outline:function(){var y;return!((y=h().displayProperties)==null?0:y.hideBorder)},
overflowStyle:function(){var y;return((y=h().displayProperties)==null?0:y.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var y;return(y=h().displayProperties)==null?void 0:y.disableNewLines},
onInput:b.onInput,characterLimit:b.characterLimit,validation:b.validation,rows:function(){var y;return(y=h().displayProperties)==null?void 0:y.rows}}))},"ni");var aTF=_.T(function(b){var h=_.L(_.ya(function(){var L4,Rq;return((L4=b.data().structuredContextNoteFormSchema)==null?0:(Rq=L4.initialValues)==null?0:Rq.noteBody)?b.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),y=h.next().value,S=h.next().value;
h=_.L(_.ya(function(){b.data();return!1}));
var F=h.next().value,a=h.next().value;h=_.L(_.ya(function(){b.data();return!1}));
var P=h.next().value,K=h.next().value;h=_.L(_.ya(function(){var L4,Rq;return((L4=b.data().structuredContextNoteFormSchema)==null?0:(Rq=L4.initialValues)==null?0:Rq.timestamp)?b.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var n=h.next().value,X=h.next().value;h=_.L(_.ya(function(){b.data();return!1}));
var u=h.next().value,O=h.next().value;h=_.L(_.ya(function(){var L4,Rq;return((L4=b.data().structuredContextNoteFormSchema)==null?0:(Rq=L4.initialValues)==null?0:Rq.sources)?[b.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var N=h.next().value,t=h.next().value;h=_.L(_.ya(function(){b.data();return!1}));
var R=h.next().value,I=h.next().value;h=_.L(_.ya(function(){return!1}));
var U=h.next().value,p=h.next().value;_.wg(function(){var L4;_.fRF((L4=b.data().structuredContextNoteFormSchema)==null?void 0:L4.id,{isSubmitting:U,onSubmit:function(){p(!0);var Rq=ff2(y(),n(),N(),b.data()),Xn=_.H9().resolve(_.OM);Rq&&Xn&&Xn.resolveCommand(Rq,{commandController:{onSuccess:function(){p(!1)}}})},
isValid:function(){return F()&&!P()&&!u()&&!R()}})});
var e=function(L4){if(L4!==void 0&&(S(L4),!F()&&L4.length>0&&a(!0),F())){var Rq=Tkf(b.data());if(Rq){var Xn=Rq.minLength;Rq=Rq.maxLength;Xn&&L4.length<Xn?K(!0):Rq&&L4.length>Rq?K(!0):K(!1)}}},E=function(L4){if(L4!==void 0){X(L4);
if(L4.length>0){var Rq,Xn,Ny,gI,YU=kNf((Rq=b.data())==null?void 0:(Xn=Rq.structuredContextNoteFormSchema)==null?void 0:(Ny=Xn.fieldSchemas)==null?void 0:(gI=Ny.timestamp)==null?void 0:gI.validationSchema);if(YU&&(Rq=YU.regex)&&!(new RegExp(Rq)).test(L4)){O(!0);return}}O(!1)}},Y=function(L4){if(L4!==void 0){var Rq=L4.split(/[ \n]/).map(function(Xn){return Xn.trim()});
t(Rq);if(L4.length>0)for(L4=_.L(Rq),Rq=L4.next();!Rq.done;Rq=L4.next())if(!i2x(Rq.value)){I(!0);return}I(!1)}},w=function(){return{validate:function(L4){if(F()){var Rq=Tkf(b.data());
if(Rq){var Xn=Rq.minLength;Rq=Rq.translations;if(Xn&&L4.length<Xn)return Rq==null?void 0:Rq.minLengthErrorMessage}}}}},x=function(){var L4=Tkf(b.data()),Rq=L4==null?void 0:L4.maxLength,Xn;
L4=L4==null?void 0:(Xn=L4.translations)==null?void 0:Xn.maxLengthErrorMessage;if(Rq&&L4)return{maxChars:Rq,errorMessage:L4}},q=function(){return{validate:function(L4){if(L4){var Rq,Xn,Ny,gI,YU=kNf((Rq=b.data())==null?void 0:(Xn=Rq.structuredContextNoteFormSchema)==null?void 0:(Ny=Xn.fieldSchemas)==null?void 0:(gI=Ny.timestamp)==null?void 0:gI.validationSchema);
if(YU&&(Rq=YU.regex,YU=YU.translations,Rq&&!(new RegExp(Rq)).test(L4)))return YU==null?void 0:YU.regexErrorMessage}}}},dI=function(){return{validate:function(L4){if(L4){var Rq,Xn,Ny,gI,YU=E6X((Rq=b.data())==null?void 0:(Xn=Rq.structuredContextNoteFormSchema)==null?void 0:(Ny=Xn.fieldSchemas)==null?void 0:(gI=Ny.sources)==null?void 0:gI.validationSchema);
if(YU&&(Rq=YU.translations,Rq==null?0:Rq.selectedErrorMessage))for(L4=L4.split(/[ \n]/).map(function(VN){return VN.trim()}),L4=_.L(L4),Xn=L4.next();!Xn.done;Xn=L4.next())if(!i2x(Xn.value))return L4=void 0,(L4=Rq)==null?void 0:L4.selectedErrorMessage}}}};
return _.M("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.M("div",{class:"ytStructuredContextNoteViewModelTextField"},_.M(_.rC,{data:function(){var L4;return(L4=b.data())==null?void 0:L4.noteContents}},{textFormFieldViewModel:function(L4){return _.M(_.Fif,{data:L4.data,
onInput:e,validation:w,characterLimit:x})},
textFieldViewModel:function(L4){return _.M(_.S0f,{data:L4.data,onInput:e,validation:w,characterLimit:x})}})),_.M("div",{class:"ytStructuredContextNoteViewModelTextField"},_.M(_.rC,{data:function(){var L4;
return(L4=b.data())==null?void 0:L4.noteTimestamp}},{textFormFieldViewModel:function(L4){return _.M(_.Fif,{data:L4.data,
onInput:E,validation:q})},
textFieldViewModel:function(L4){return _.M(_.S0f,{data:L4.data,onInput:E,validation:q})}})),_.M("div",{class:"ytStructuredContextNoteViewModelTextField"},_.M(_.rC,{data:function(){var L4;
return(L4=b.data())==null?void 0:L4.noteSources}},{textFormFieldViewModel:function(L4){return _.M(_.Fif,{data:L4.data,
onInput:Y,validation:dI})},
textFieldViewModel:function(L4){return _.M(_.S0f,{data:L4.data,onInput:Y,validation:dI})}})))},"oi");
aTF.idomCompat=!0;_.yd(aTF,"yt-structured-context-note-view-model",{props:{data:_.D4}});var dCP=_.T(function(b){var h=_.L(_.ya(function(){var a;if((a=b.controlled)==null?0:a.call(b))return[];var P;return(((P=b.data())==null?void 0:P.chips)||[]).map(function(K){K=_.c(K,_.Rk);if(K==null?0:K.selected)return w_d(K.chipValue)}).filter(function(K){return K!==void 0})})),y=h.next().value,S=h.next().value,F=function(a){var P=w_d(a.chipValue);
if(P!==void 0){var K;if((K=b.controlled)==null?0:K.call(b))return void b.controlled().onTap(P);a=y().includes(P)?[].concat(_.f$(y().filter(function(X){return X!==P}))):[].concat(_.f$(y()),[P]);
S(a);var n;if((n=b.uncontrolled)==null?0:n.call(b))b.uncontrolled().onUpdate(a)}};
return _.M("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost",role:"tablist"},_.M(_.Gw,{each:function(){return b.data().chips||[]}},function(a){return _.M("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.M(_.UXb,{data:function(){return _.c(a,_.Rk)},
selected:function(){var P;if(P=_.c(a,_.Rk)){var K=w_d(P.chipValue);if(K!==void 0){var n;P=((n=b.controlled)==null?0:n.call(b))?b.controlled().selectedValues.includes(K):y().includes(K)}else P=void 0}else P=!1;return P},
callback:F}))}))},"pi");var j3A=_.T(function(b){var h=b.data;var y=function(){var K;return((K=h())==null?void 0:K.flowStateKey)||""},S=_.OF(_.bG,y),F=function(){var K;
return(K=_.c(S(),vjf))==null?void 0:K.chips},a=function(K){if(K!==void 0){var n=F()||[];
n=n.find(function(X){return X===K})?n.filter(function(X){return X!==K}):[].concat(_.f$(n),[K]);
n=Object.assign({},S(),{feedbackFormFlowState:Object.assign({},_.c(S(),vjf),{chips:n})});_.vl(_.R7("flowStateEntity",y(),n))}},P=function(){var K;
return _.c((K=h())==null?void 0:K.inputBox,bI2)};
b=_.se(function(K){var n=P();n=!(n==null?0:n.maxChars)||K.length<=n.maxChars;K=Object.assign({},S(),{feedbackFormFlowState:Object.assign({},_.c(S(),vjf),{detail:K}),abuseReportFlowState:Object.assign({},_.c(S(),oV),{navigationEnabled:n})});_.vl(_.R7("flowStateEntity",y(),K))},150);
return _.M("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.M("div",{class:"ytFeedbackFormViewModelChips"},_.M(_.rC,{data:function(){var K;return(K=h())==null?void 0:K.chipSelection}},{chipSelectionFormFieldViewModel:function(K){return _.M(dCP,{data:K.data,
controlled:function(){return{selectedValues:F()||[],onTap:a}}})}})),_.M("div",{class:"ytFeedbackFormViewModelInputBox"},_.M(yPf,{text:function(){var K;
return(K=_.c(S(),vjf))==null?void 0:K.detail},
placeholder:function(){var K;return((K=P())==null?void 0:K.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var K=P();if(K&&K.maxChars)return{maxChars:K.maxChars,errorMessage:K.maxCharsExceededErrorMessage||""}},
onInput:b})),_.M("div",{class:"ytFeedbackFormViewModelFooterText"},_.M(_.zv,{text:function(){return h().footerText}})))},"qi");
j3A.idomCompat=!0;_.yd(j3A,"yt-feedback-form-view-model",{props:{data:_.D4}});var $CX=_.T(function(b){var h=b.data;var y=_.OF(EJd,function(){return h().flowStateKey||""}),S=function(){var F;
_.Va((F=_.c(y(),oV))==null?void 0:F.navigationCommand)};
return _.M("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.M("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.M(_.rC,{data:function(){return h().cancelButton}},{buttonViewModel:function(F){return _.M(_.EG,{data:F.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:S})}}),_.M(_.rC,{data:function(){var F;
if(h().navButton){var a=Object;var P=a.assign,K=_.c(h().navButton,_.cA),n=((F=_.c(y(),oV))==null?0:F.navigationEnabled)?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",X,u;F=_.c((X=_.c(y(),oV))==null?void 0:X.navigationCommand,_.sQ);X=(u=_.c(F,_.jH))==null?void 0:u.url;a={buttonViewModel:P.call(a,{},K,{state:n,iconName:X?"OPEN_IN_NEW":""})}}else a=void 0;return a}},{buttonViewModel:function(F){return _.M(_.EG,{data:F.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:S})}})))},"ri");
$CX.idomCompat=!0;_.yd($CX,"yt-report-form-bottom-bar-view-model",{props:{data:_.D4}});var Li2=_.T(function(b){var h=b.nextStep;return _.M("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.M("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.M(_.Xv,{icon:function(){return h().iconName||""}})),_.M("div",null,_.M(_.zv,{text:function(){return h().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"si"),PkP=_.T(function(b){var h=b.data;
var y,S=(y=_.H9().resolve(_.XS(_.cC)))==null?void 0:y(),F=_.OF(_.bG,function(){return h().flowStateKey||""});
return _.M("yt-report-form-confirmation-page-view-model",{class:function(){var a;return((a=_.c(F(),oV))==null?void 0:a.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.M("div",{class:function(){var a;
return((a=_.c(F(),oV))==null?void 0:a.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.M(_.mI,{data:function(){return S&&h().imageDark?h().imageDark:h().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.M("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.M("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return h().confirmationHeader}),_.M("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.M(_.zv,{text:function(){return h().confirmationText}})),_.M("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.M(_.zv,{text:function(){return h().lawEnforcementText}})),
_.M("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return h().whatToExpectHeader}),_.M(_.H,{cond:function(){return h().nextSteps},
then:function(a){return _.M("div",null,_.M(_.Gw,{each:a},function(P){return _.M(Li2,{nextStep:P})}))}}),_.M(_.H,{cond:function(){return h().legalReportText},
then:function(a){return _.M("div",null,_.M(_.zv,{text:a,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"ti");
PkP.idomCompat=!0;_.yd(PkP,"yt-report-form-confirmation-page-view-model",{props:{data:_.D4}});var Kif=_.T(function(b){var h=b.data;var y=function(){var a;return((a=_.c(h().inputBox,bI2))==null?void 0:a.maxChars)||500},S=function(){return h().flowStateKey||""},F=_.OF(_.bG,S);
b=_.se(function(a){a=Object.assign({},F(),{flowFormState:{isValid:a.length<=y()},abuseReportFlowState:{userComments:a,navigationEnabled:!(a.length>y()),isReportFormDirty:!0}});_.mc().dispatch(_.eD("flowStateEntity",S(),a))},150);
_.wg(function(){var a=Object.assign({},F(),{flowFormState:{isValid:!0}});_.mc().dispatch(_.eD("flowStateEntity",S(),a))});
return _.M("yt-report-form-details-page-view-model",{class:function(){var a;return((a=_.c(F(),oV))==null?void 0:a.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.M("h1",{class:function(){var a;
return((a=_.c(F(),oV))==null?void 0:a.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return h().detailsPageHeader}),_.M("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.M(_.zv,{text:function(){return h().bodyText}})),_.M("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.M(yPf,{label:function(){var a;
return((a=_.c(h().inputBox,bI2))==null?void 0:a.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var a;return{errorMessage:((a=_.c(h().inputBox,bI2))==null?void 0:a.maxCharsExceededErrorMessage)||"",maxChars:y()}},
onInput:b})))},"ui");
Kif.idomCompat=!0;_.yd(Kif,"yt-report-form-details-page-view-model",{props:{data:_.D4}});var ZRa=_.T(function(b){var h=b.data;var y=function(){return h().flowStateKey||""},S=_.OF(_.bG,y),F=function(){return _.c(S(),oV)};
return _.M("yt-report-form-reason-select-page-view-model",{class:function(){var a;return((a=F())==null?void 0:a.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.M("h1",{class:function(){var a;
return((a=F())==null?void 0:a.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return h().pageHeader}),_.M("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.M(_.zv,{text:function(){return h().bodyText}})),_.M("div",{class:function(){var a;
return((a=F())==null?void 0:a.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.M(_.mm2,{data:function(){return _.c(h().radioButtonGroup,_.PEA)},
onSelected:function(a,P){a=Object.assign({},S(),{abuseReportFlowState:Object.assign({},F(),{reasonKey:P.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:P.command})});_.vl(_.R7("flowStateEntity",y(),a))},
selectedKey:function(){var a;return(a=F())==null?void 0:a.reasonKey},
groupName:"report-form-reason-select-page"})))},"vi");
ZRa.idomCompat=!0;_.yd(ZRa,"yt-report-form-reason-select-page-view-model",{props:{data:_.D4}});var ogF=_.T(function(b){var h=b.data;var y,S=(y=_.H9().resolve(_.XS(_.cC)))==null?void 0:y();return _.M("yt-report-form-sign-in-page-view-model",{class:"ytReportFormSignInPageViewModelHost"},_.M("div",{class:"ytReportFormSignInPageViewModelSignInPromptImage"},_.M(_.mI,{data:function(){return S&&h().imageDark?h().imageDark:h().image},
alt:""})),_.M("div",{class:"ytReportFormSignInPageViewModelSignInTextContent"},_.M("h1",{class:"ytReportFormSignInPageViewModelSignInPromptHeader"},function(){return h().header}),_.M(_.zv,{text:function(){return h().text},
className:"ytReportFormSignInPageViewModelSignInPromptBody"})))},"wi");
ogF.idomCompat=!0;_.yd(ogF,"yt-report-form-sign-in-page-view-model",{props:{data:_.D4}});_.yd(_.T(function(b){var h=b.data;var y=_.NG(_.gnb.talkToRecsStateSelector),S=function(){return h().titleSuperscript},F=function(){return h().answersShelf},a=function(){return h().videoShelf},P=function(){var q;
return(q=h().textInputPlaceholder)==null?void 0:q.content},K=function(){return h().showOpenTextInput},n=function(){var q;
return(q=h().textInputValue)==null?void 0:q.content},X=function(){return h().isMultiTurnFlow?h().resetButtonViewModel:void 0},u="",O=function(){return h().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_ALLOW_DESELECTION"?2:1};
b=_.L(_.pa("",void 0,"GjDBze"));var N=b.next().value,t=b.next().value;b=_.L(_.pa(!1,void 0,"cHfsvd"));var R=b.next().value,I=b.next().value,U=function(){return{state:R()||N()?"active":"disabled",disabled:!(R()||N())}};
_.fl(function(){if(K()){n()&&t(n());var q;if(!X()&&((q=y())==null?0:q.stepStates)){var dI;q=Object.keys((dI=y())==null?void 0:dI.stepStates);dI=q[q.length-1];var L4,Rq;dI=(L4=y().stepStates[dI])==null?void 0:(Rq=L4.userQuery)==null?void 0:Rq.userQuery;_.vl(_.fnf());dI&&p(dI)}}});
var p=function(q){var dI=h().onUpdateText;dI&&_.Va(dI,{form:{userQuery:q}});t(q)},e=_.se(function(q){p(q.target.value.trim())},150),E=_.Zv(function(q){var dI;
u=(dI=q.target.value)==null?void 0:dI.trim();e(q);return!1}),Y=_.Zv(function(q){q.key==="Enter"&&(R()||N())&&(p(q.target.value.trim()),x());
return!1}),w=function(q,dI){I(dI);
if(dI){if(h().isMultiTurnFlow&&!u){var L4;p((L4=q==null?void 0:q.text)!=null?L4:"")}h().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_CLICK_TO_SUBMIT"&&x()}else t(u)},x=function(){var q=_.c(h().nextButtonViewModel,_.cA);
if(q==null?0:q.trackingParams){q=_.I_(q.trackingParams);var dI=_.UE();dI&&q&&_.qt(dI,q,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK")}(q=h().onNextStepCommand)&&_.Va(q)};
b={};return _.M("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost"},_.M("div",{class:"ytwTalkToRecsTopCornerButton"},_.M(_.rC,{data:function(){return h().topCornerButton}},{buttonViewModel:_.EG})),_.M("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.M("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.M(_.zv,{text:function(){return h().title}}),_.M(_.H,{cond:S,
then:function(){return _.M("sup",{class:"ytwTalkToRecsSuperScript"},_.M(_.zv,{text:S}))}})),_.M("div",{class:"ytwTalkToRecsSubtitle"},_.M(_.zv,{text:function(){return h().subtitle}})),_.M("div",{class:"ytwTalkToRecsResultsShelf"},_.M(_.H,{cond:F,
then:function(){return _.M(_.rC,{data:F},{chipsShelfViewModel:function(q){return _.M("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.M(_.Sd,{data:q.data,callback:w,selectionBehavior:O}))}})}}),_.M(_.H,{cond:a,
then:function(){return _.M(_.rC,{data:a},{horizontalShelfViewModel:function(q){return _.M("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.M(_.AN,{data:q.data,thumbnailAspectRatio:0}))}})}})),_.M("div",{class:_.P2("ytwTalkToRecsRefinementContainer",(b.ytwTalkToRecsBottomMargin=function(){return h().isMultiTurnFlow},b))},_.M(_.H,{cond:K,
then:function(){return _.M("div",{class:"ytwTalkToRecsUserInputBox"},_.M("input",{type:"text",class:"ytwTalkToRecsTextInput",title:P,placeholder:P,value:N,"on:input":E,"on:keyup":Y,maxlength:200}))}}),_.M(_.rC,{data:function(){return h().isMultiTurnFlow?h().nextButtonViewModel:void 0}},{buttonViewModel:function(q){return _.M("div",{class:"ytwTalkToRecsFlowControlButtons"},_.M(_.EG,{data:q.data,
buttonOverrides:U}))}}),_.M(_.rC,{data:X},{buttonViewModel:function(q){return _.M("div",{class:"ytwTalkToRecsFlowControlButtons"},_.M(_.EG,{data:q.data,
onClick:function(){var dI=_.c(h().resetButtonViewModel,_.cA);p(N());(dI=dI==null?void 0:dI.onTap)&&_.Va(dI)}}))}}))))},"yi"),"yt-talk-to-recs-view-model",{props:{data:_.D4}});var lfF={sources:[{clientResource:{imageName:"CHECK"}}]};_.MIa=_.T(function(b){var h=_.ZR("div");b=_.h6(b,{error:void 0});var y=b.data,S=b.error,F=b.onSelected;b=b.className;var a=_.L(_.ya(function(){return Q0Y(y())})),P=a.next().value,K=a.next().value;
hYN(y,function(t){K(t);var R,I,U=xdx((R=y().options)==null?void 0:(I=R[t])==null?void 0:I.value,y().type);F==null||F(U);h.value.focus()});
a=_.Zv(function(){if(!y().disabled){var t=y(),R=P(),I=h.value;t.options&&(t=qbP(t.options,R,t.label),_.H9().resolve(_.nk).openSheet({viewModel:t},I))}});
var n=_.Brn(),X=function(){return!!S()},u=function(){return!!y().disabled},O={},N={};
return _.M("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.M("div",{class:_.P2("ytDropdownViewModelDropdownContainer",b,(O.ytDropdownViewModelDropdownContainerErrorBorder=X,O.ytDropdownViewModelDropdownContainerDisabled=u,O)),"on:click":a,el:h,role:"combobox",tabindex:0,"on:keydown":n,"aria-invalid":X,"aria-disabled":u,"aria-describedby":function(){return X()?"dropdown-view-model-error":void 0}},_.M("div",{class:"ytDropdownViewModelText"},mdf(y,X,P),v6Y(y,P)),_.M("div",{class:_.P2("ytDropdownViewModelChevronDown",
(N.ytDropdownViewModelChevronDownDisabled=u,N))},_.M(_.Xv,{icon:"CHEVRON_DOWN"}))),bxY(y,S))},"zi");_.yd(_.T(function(b){var h=b.data;var y=function(F){var a=SEf(h());a.videoMetadata||(a.videoMetadata={});a.videoMetadata.sponsorshipsMetadata||(a.videoMetadata.sponsorshipsMetadata={});a.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(F)},S=function(F){var a=SEf(h());
a.scheduledRedirectMetadata||(a.scheduledRedirectMetadata={});a.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(F)};
return _.M("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.M("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.M("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.M(_.zv,{text:function(){return h().title}}),_.M(_.Xv,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.M(_.zv,{text:function(){return h().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.M(_.rC,{data:function(){return h().tierChoices}},{dropdownViewModel:function(F){return _.M("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.M(_.MIa,{data:F.data,
onSelected:y}))}}),_.M(_.rC,{data:function(){return h().startTimeChoices}},{dropdownViewModel:function(F){return _.M("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.M(_.MIa,{data:F.data,
onSelected:S}))}}),_.M(_.zv,{text:function(){return h().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.M("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.M(_.rC,{data:function(){return h().scheduleButton}},{panelFooterViewModel:_.Vo})))},"Ai"),"ytfz-schedule-fanzone-view-model",{props:{data:_.D4}});_.yd(_.T(function(b){var h=b.data;b=b.className===void 0?"":b.className;var y=_.OF(EJd,function(){return h().flowStateEntityKey||""}),S={};
S=_.P2("ytFlowBottomBarViewModelFlowBottomBarButtons",(S.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return h().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||h().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},S));
var F={},a=_.P2("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",S,(F.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return h().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},F.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return h().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},F));
F={};var P=_.P2("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",S,(F.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return h().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},F.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return h().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},F));
S={};S=_.P2("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(S.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return h().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},S.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return h().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},S.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return h().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
S));
b=_.P2("ytFlowBottomBarViewModelHost",b);return _.M("yt-flow-bottom-bar-view-model",{class:b},_.M(_.H,{cond:function(){var K;return(K=h())==null?void 0:K.textSection},
then:function(K){return _.M("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.M(_.zv,{text:K}))}}),_.M("div",{class:S},_.M(_.rC,{data:function(){return h().secondaryButton}},{buttonViewModel:function(K){return _.M(_.EG,{data:K.data,
className:P})}}),_.M(_.rC,{data:function(){return h().primaryButton}},{buttonViewModel:function(K){return _.M(_.EG,{data:K.data,
className:a,buttonOverrides:function(){var n;return{disabled:!((n=y())==null||!n.primaryButtonDisabled)}}})}})))},"Bi"),"yt-flow-bottom-bar-view-model",{props:{data:_.D4,
className:_.v3}});var ngx="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),iL=function(){var b=_.g.apply(this,arguments)||this;b.enableScrollingFix=!0;b.bottomBar=!1;b.fitContent=!1;return b};
_.z(iL,_.g);_.d=iL.prototype;_.d.ready=function(){_.r("enable_pdp_icon_prefetch")&&_.V3f(_.H9().resolve(_.W$f),0,ngx)};
_.d.focus=function(b){this.topBar?_.oh(this.topBar,b):this.paperDialog.focus(b)};
_.d.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$19585_scroller&&(this.JSC$19585_scroller.dialogElement=this.paperDialog,this.JSC$19585_scroller.attached&&typeof this.JSC$19585_scroller.attached==="function"&&this.JSC$19585_scroller.attached())};
_.d.onDataChanged=function(){var b;this.fitContent=!((b=this.data)==null||!b.fitContent);var h;this.bottomBar=!((h=this.data)==null||!h.bottomBar)};
_.d.onProgressChanged=function(){var b,h,y=((h=(b=this.data)==null?void 0:b.progress)!=null?h:0)*100;this.progressElement.style.width=y+"%"};
_.d.isProgressHidden=function(){var b;return!((b=this.data)==null?0:b.progress)};
_.d.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(b){return b&&!b.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
iL.prototype.onProgressChanged=iL.prototype.onProgressChanged;iL.prototype.onDataChanged=iL.prototype.onDataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],iL.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],iL.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],iL.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],iL.prototype,"enableScrollingFix",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],iL.prototype,"bottomBar",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],iL.prototype,"fitContent",void 0);_.V([_.to("#progress"),_.f("design:type",HTMLElement)],iL.prototype,"progressElement",void 0);_.V([_.to("#scroller"),_.f("design:type",Object)],iL.prototype,"JSC$19585_scroller",void 0);_.V([_.to("ytd-flow-top-bar-renderer"),_.f("design:type",HTMLElement)],iL.prototype,"topBar",void 0);
_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],iL.prototype,"onDataChanged",null);_.V([_.OB("data.progress"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],iL.prototype,"onProgressChanged",null);_.V([_.Yx({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],iL);
_.k(iL,"ytd-flow-step-renderer",function(){if(Ya2!==void 0)return Ya2;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return Ya2=b},{mode:1});var fo=function(b){this.resolveCommand=b;this.steps={}},XdF=function(b,h){h=_.L(h||[]);
for(var y=h.next();!y.done;y=h.next()){y=y.value;var S=Object.values(y)[0],F=void 0;if((F=S)==null?0:F.stepId)b.steps[S.stepId]=y}},udN=function(b,h){var y,S,F,a,P;
return _.Z(function(K){if((y=b.state)==null||!y.currentStepId)return K.return(void 0);S=b.getCurrentStep();if(!S)return K.return(HRA(b));if(F=_.c(S,_.ak))b.logVEScreen(F),((a=F)==null?0:a.onStepStartCommand)&&b.resolveCommand((P=F)==null?void 0:P.onStepStartCommand,{});F&&h&&(b.logFlowEvent(F,h),h.steps&&!h.steps.includes(S)&&h.steps.push(S));return K.return(S)})};
fo.prototype.back=function(){var b;(b=this.state)!=null&&b.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
fo.prototype.handleUpdateFlowCommand=function(b){b.steps&&XdF(this,b.steps);b.entityUpdateCommand&&this.resolveCommand(b.entityUpdateCommand,{});b.flowContinuationCommand&&(b=b.flowContinuationCommand)&&(this.getFlowContinuationCommand=b);this.awaitFlowContinuation&&(b=this.getCurrentStep(),this.awaitFlowContinuation(b),this.awaitFlowContinuation=void 0)};
fo.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var HRA=function(b){return _.Z(function(h){return b.getFlowContinuationCommand?h.return(new Promise(function(y){b.awaitFlowContinuation=y;b.getFlowContinuationCommand&&b.resolveCommand(b.getFlowContinuationCommand,{flow_state:b.state})})):h.return(Promise.resolve(void 0))})};
fo.prototype.getCurrentStep=function(){var b;if((b=this.state)!=null&&b.currentStepId)return this.steps[this.state.currentStepId]};
fo.prototype.logVEScreen=function(b){var h;((h=b.screenLoggingData)==null?0:h.screenVeType)&&_.w2(_.rU(),b.screenLoggingData.screenVeType)};
fo.prototype.logFlowEvent=function(b,h){var y,S,F,a;((y=h.flowLoggingData)==null?0:y.eventNamespace)&&((S=b.flowEventData)==null?0:S.eventType)&&((F=b.flowEventData)==null?0:F.eventMetadata)&&((a=h.flowLoggingData)==null?0:a.flowType)&&(b=_.nR(h.flowLoggingData.eventNamespace,b.flowEventData.eventType,b.flowEventData.eventMetadata),_.Xd().logFlowEvent(b,h.flowLoggingData.flowType))};
_.tm.Object.defineProperties(fo.prototype,{currentStepId:{configurable:!0,enumerable:!0,get:function(){var b;return(b=this.state)==null?void 0:b.currentStepId}},
nextStepIdOverride:{configurable:!0,enumerable:!0,get:function(){var b;if((b=this.state)!=null&&b.nextStepIdOverride)return this.state.nextStepIdOverride.reduce(function(h,y){y.key&&y.value&&(h[y.key]=y.value);return h},{})}}});var wT=function(){var b=_.g.apply(this,arguments)||this;b.flowState=_.r("web_use_flow_state_manager")?void 0:new fo(function(h,y){y=y===void 0?{}:y;_.nt.instance.resolveCommand(h,{form:{form:y,element:b.hostElement}})});
b.JSC$19596_flowStateManager=_.r("web_use_flow_state_manager")?_.H9().resolve(_.yJ):void 0;b.currentTargetId="";b.initialState=!0;b.isLoading=!1;b.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"};b.containsTalkToRecs=!1;return b};
_.z(wT,_.g);_.d=wT.prototype;_.d.onPopupClosed=function(b){if(!b||this.hostElement===b.detail.popupRenderer){if(this.JSC$19596_flowStateManager){var h;((h=this.data)==null?0:h.flowStateEntityKey)&&this.JSC$19596_flowStateManager.flowStates.delete(this.data.flowStateEntityKey);this.currentTargetId=""}else this.flowState&&this.flowState.reset();this.currentFlowStep=this.data=void 0;this.initialState=!0}};
_.d.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"}}}};
_.d.focus=function(b){var h=this;_.fZ(function(){var y=_.$x(h.hostElement).querySelector("ytd-flow-step-renderer");(y==null?0:y.topBar)?y.focus(b):h.topBar&&_.oh(h.topBar,b)},1)};
_.d.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.d.computeTopBarHidden=function(b){var h;return!((h=_.c(b,_.ak))==null||!h.topBarOverride)};
_.d.onCurrentFlowChange=function(){if(this.JSC$19596_flowStateManager&&this.data&&this.flow){var b=gjE(this.JSC$19596_flowStateManager,this.data),h;if(b&&((h=this.flow)==null?0:h.currentStepId)){b=TOf(b,this.flow.currentStepId);this.initialState=!1;this.isLoading=!this.currentFlowStep;var y;!b&&((y=this.data)==null?0:y.flowContinuationCommand)&&this.ytComponentBehavior.resolveCommand(this.data.flowContinuationCommand)}}};
_.d.observeData=function(){var b=this;if(this.JSC$19596_flowStateManager){var h=this.currentTargetId,y,S,F=(S=(y=this.data)==null?void 0:y.targetId)!=null?S:"";h!==F&&h&&sHx(this.JSC$19596_flowStateManager,h);this.currentTargetId=F;this.data&&YEf(gjE(this.JSC$19596_flowStateManager,this.data),function(a){a&&(b.initialState=!1,b.currentFlowStep={flowStepRenderer:a},b.isLoading=!b.currentFlowStep,b.autofocusAndRefit(),b.updateContainsTalkToRecs(),b.logVEScreen(),b.logFlowEvent())})}};
_.d.dataChanged=function(){var b=this,h,y;return _.Z(function(S){if(S.nextAddress==1){if(!b.flowState)return S.return();((h=b.data)==null?0:h.steps)&&XdF(b.flowState,b.data.steps);if((y=b.data)==null?0:y.flowContinuationCommand){var F=b.flowState,a=b.data.flowContinuationCommand;a&&(F.getFlowContinuationCommand=a)}return S.yield(udN(b.flowState,b.data),2)}b.currentFlowStep=S.yieldResult;_.g3(S)})};
_.d.flowChanged=function(){var b=this,h;return _.Z(function(y){if(y.nextAddress==1){if(!b.flowState||!b.flow)return y.return();b.flowState.state=b.flow;b.isLoading=!0;return y.yield(udN(b.flowState,b.data),2)}h=y.yieldResult;if(!h||b.flow.isLoading)return y.return();b.currentFlowStep=h;b.initialState=!1;b.isLoading=!1;b.autofocusAndRefit();b.updateContainsTalkToRecs();_.g3(y)})};
_.d.logVEScreen=function(){var b,h,y=(b=_.c(this.currentFlowStep,_.ak))==null?void 0:(h=b.screenLoggingData)==null?void 0:h.screenVeType;y&&_.w2(_.H9().resolve(_.Le),y)};
_.d.logFlowEvent=function(){var b=_.c(this.currentFlowStep,_.ak),h,y,S,F,a,P;(this==null?0:(h=this.data)==null?0:(y=h.flowLoggingData)==null?0:y.eventNamespace)&&(this==null?0:(S=this.data)==null?0:(F=S.flowLoggingData)==null?0:F.flowType)&&(b==null?0:(a=b.flowEventData)==null?0:a.eventType)&&(b==null?0:(P=b.flowEventData)==null?0:P.eventMetadata)&&(b=_.nR(this.data.flowLoggingData.eventNamespace,b.flowEventData.eventType,b.flowEventData.eventMetadata),_.Xd().logFlowEvent(b,this.data.flowLoggingData.flowType))};
_.d.updateContainsTalkToRecs=function(){var b,h=(b=_.c(this.currentFlowStep,_.ak))==null?void 0:b.content;this.containsTalkToRecs=!!h&&!!_.c(h,dtE)};
_.d.autofocusAndRefit=function(){var b=this,h=_.H9().resolve(_.XS(_.sG)),y=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),S=document.querySelector("yt-report-form-confirmation-page-view-model"),F=document.querySelector("yt-report-form-details-page-view-model"),a=document.querySelector("yt-report-form-reason-select-page-view-model"),P=document.querySelector("yt-contributor-zero-state-view-model"),
K=document.querySelector("yt-structured-context-note-view-model"),n=document.querySelector("yt-note-view-model");(!y&&h&&h.isKeyBoardInUse()||S||!y&&F||!y&&a||!y&&(P||K||n))&&_.Mi(this.hostElement);_.Ob(this,function(){_.Sx(b.hostElement,"yt-refit")})};
_.d.handleUpdateFlowCommand=function(b){this.flowState?this.data&&(b=_.c(b,_.aG8),b.targetId===this.data.targetId&&(b.flowContinuationCommand&&(this.data.flowContinuationCommand=b.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(b),this.autofocusAndRefit())):this.ytComponentBehavior.resolveCommand(b)};
_.d.handleFlowNextStepCommand=function(b){this.JSC$19596_flowStateManager?this.ytComponentBehavior.resolveCommand(b):this.data&&this.flow&&this.flow.key&&(b=_.c(b,_.hIo),b.targetId===this.data.targetId&&(b=b.stepId||"",this.ytdReduxBehavior.dispatch(_.eD("flowStateEntity",this.flow.key,{currentStepId:b,stepIdStack:(this.flow.stepIdStack||[]).concat(b)}))))};
_.d.handleFlowPrevStepCommand=function(b){if(this.JSC$19596_flowStateManager)this.ytComponentBehavior.resolveCommand(b);else if(this.data&&this.flow&&this.flow.key&&(b=_.c(b,_.yQ8),b.targetId===this.data.targetId)){var h=[].concat(_.f$(this.flow.stepIdStack||[]));h.length>1?(h.pop(),this.ytdReduxBehavior.dispatch(_.eD("flowStateEntity",this.flow.key,{currentStepId:h[h.length-1],stepIdStack:h}))):b.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(b.onFirstStepCommand)}};
_.d.handleYpcCancelRecurrenceCommand=function(b){if(this.data&&this.flow&&this.flow.key&&(b=_.c(b,ZIN),b.targetId===this.data.targetId&&b.endpointCommand)){var h=_.c(this.flow,op2);h&&_.c(b.endpointCommand,_.M9a)&&(_.c(b.endpointCommand,_.M9a).feedbackData=h.surveyFeedback);this.ytComponentBehavior.resolveCommand(b.endpointCommand)}};
_.d.handlePartialUpdateFlowStateEntity=function(b){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.eD("flowStateEntity",this.flow.key,b,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
wT.prototype.flowChanged=wT.prototype.flowChanged;wT.prototype.dataChanged=wT.prototype.dataChanged;wT.prototype.observeData=wT.prototype.observeData;wT.prototype.onCurrentFlowChange=wT.prototype.onCurrentFlowChange;wT.prototype.onPopupClosed=wT.prototype.onPopupClosed;_.V([_.B(_.NT),_.f("design:type",Object)],wT.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],wT.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],wT.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],wT.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],wT.prototype,"ytActionHandlerBehavior",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],wT.prototype,"initialState",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],wT.prototype,"isLoading",void 0);_.V([_.C(),_.f("design:type",Object)],wT.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],wT.prototype,"currentFlowStep",void 0);_.V([_.u3("yt-popup-closed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],wT.prototype,"onPopupClosed",null);
_.V([_.C({selectorArgs:["data.flowStateEntityKey"],selector:EJd}),_.f("design:type",Object)],wT.prototype,"flow",void 0);_.V([_.to("ytd-flow-top-bar-renderer"),_.f("design:type",HTMLElement)],wT.prototype,"topBar",void 0);_.V([_.OB("data","flow"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],wT.prototype,"onCurrentFlowChange",null);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],wT.prototype,"observeData",null);
_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype",Promise)],wT.prototype,"dataChanged",null);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],wT.prototype,"containsTalkToRecs",void 0);_.V([_.zj("flow"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype",Promise)],wT.prototype,"flowChanged",null);_.V([_.Yx({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],wT);
_.OR2=_.$S()(wT,"ytd-flow-root-renderer",function(){if(swA!==void 0)return swA;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return swA=b},{mode:_.Lt("kevlar_poly_si_batch_j025")?1:2});var NqP;var PXf=null;_.yd(_.T(function(b){return _.M("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.M("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.M(_.zv,{text:function(){return b.data().text}}),_.M("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"Ci"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.D4}});var tIA=_.T(function(b){var h=b.playerControlsProps;var y=b.isShortsPage;return _.M("yt-bigboard",null,_.M(_.H,{cond:function(){return h().isDragging},
then:function(){return _.M("div",{class:"ytBigboardStoryboardHost"},_.M(_.ydq,{progressBarProps:h,isShortsPage:y}))}}))},"Di");
tIA.idomCompat=!0;_.lL={ACCOUNT_LABEL:Z_("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:Z_("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:Z_("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:Z_("AD_BADGE_HINT"),AD_BADGE_TEXT:Z_("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:Z_("ALL_CHANNELS_LABEL"),AMBIENT_MODE:Z_("AMBIENT_MODE"),AMBIENT_MODE_OFF:Z_("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:Z_("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:Z_("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:Z_("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:Z_("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:Z_("APP_UPSELL_TITLE"),AUDIO_TRACK:Z_("AUDIO_TRACK","Audio Track"),AUTONAV_TOGGLE:Z_("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:Z_("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:Z_("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:Z_("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:Z_("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:Z_("AUTO_ZOOM","Auto zoom"),BACK:Z_("BACK"),CANCEL:Z_("CANCEL"),CHANNEL_SWITCHER_LABEL:Z_("CHANNEL_SWITCHER_LABEL"),CLOSE:Z_("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:Z_("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:Z_("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:Z_("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:Z_("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:Z_("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:Z_("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:Z_("COMMENT_MODAL_CONTENT"),CONFIRM_OK:Z_("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:Z_("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:Z_("COPIED_TO_CLIPBOARD"),COPY:Z_("COPY"),COPY_DEBUG_INFO:Z_("COPY_DEBUG_INFO"),COPY_EMBED_CODE:Z_("COPY_EMBED_CODE"),
COPY_LINK_LABEL:Z_("COPY_LINK_LABEL"),COPY_VIDEO_URL:Z_("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:Z_("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:Z_("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:Z_("DELETE_FROM_DOWNLOADS"),DIALOG:Z_("DIALOG"),DONE:Z_("DONE"),DOWNLOAD:Z_("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:Z_("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:Z_("FLAG_CONFIRM"),FLAG_CONTENT:Z_("FLAG_CONTENT"),FLAG_LABEL:Z_("FLAG_LABEL"),FLAG_TITLE:Z_("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:Z_("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:Z_("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:Z_("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:Z_("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:Z_("HIDE_SEARCH_FILTERS_LABEL"),HOME:Z_("HOME","Home"),INVALID_RESPONSE_RECEIVED:Z_("INVALID_RESPONSE_RECEIVED"),LIBRARY:Z_("LIBRARY","Library"),LISTENING:Z_("LISTENING"),LOADING:Z_("LOADING"),LONG_PRESS_MIC_TO_SPEAK:Z_("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:Z_("LOOP"),MENU_DESKTOP:Z_("MENU_DESKTOP"),
MENU_EXIT:Z_("MENU_EXIT"),MENU_FEEDBACK:Z_("MENU_FEEDBACK"),MENU_HELP:Z_("MENU_HELP"),MENU_IMPRESSUM:Z_("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:Z_("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:Z_("MENU_SETTINGS"),MENU_SIGN_IN:Z_("MENU_SIGN_IN"),MENU_TITLE:Z_("MENU_TITLE"),MENU_YOUR_DATA:Z_("MENU_YOUR_DATA"),MORE_INFO:Z_("MORE_INFO"),MORE_OPTIONS:Z_("MORE_OPTIONS"),MUTE_VOLUME:Z_("MUTE_VOLUME"),NEW_PLAYLIST:Z_("NEW_PLAYLIST"),NEXT_VIDEO:Z_("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:Z_("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:Z_("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:Z_("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:Z_("NOT_FOUND_TITLE"),NO_DOWNLOADS:Z_("NO_DOWNLOADS"),NO_MIC_INPUT:Z_("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:Z_("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:Z_("OOPS_MESSAGE"),OPEN_APP:Z_("OPEN_APP"),OPEN_YOUTUBE:Z_("OPEN_YOUTUBE"),PAUSE:Z_("PAUSE"),PLAY:Z_("PLAY"),PLAYER_CAPTION:Z_("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:Z_("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:Z_("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:Z_("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:Z_("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:Z_("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:Z_("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:Z_("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:Z_("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:Z_("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:Z_("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:Z_("PLAYER_MINIMIZE"),PLAYER_NEXT:Z_("PLAYER_NEXT"),PLAYER_PAUSE:Z_("PLAYER_PAUSE"),PLAYER_PLAY:Z_("PLAYER_PLAY"),
PLAYER_PREVIOUS:Z_("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:Z_("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:Z_("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:Z_("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:Z_("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:Z_("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:Z_("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:Z_("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:Z_("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:Z_("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:Z_("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:Z_("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:Z_("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:Z_("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:Z_("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:Z_("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:Z_("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:Z_("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:Z_("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:Z_("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:Z_("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:Z_("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:Z_("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:Z_("PLAY_ALL"),PLEASE_FIX_ERRORS:Z_("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:Z_("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:Z_("PREVIOUS_VIDEO"),PRIVACY_POLICY:Z_("PRIVACY_POLICY"),RELOAD:Z_("RELOAD"),REQUIRED_LABEL:Z_("REQUIRED_LABEL"),SAVE_PLAYLIST:Z_("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:Z_("SCRUB_SLIDE_USER_EDU"),SEARCH:Z_("SEARCH","Search"),
SEARCH_APPEND_LABEL:Z_("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:Z_("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:Z_("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:Z_("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:Z_("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:Z_("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:Z_("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:Z_("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:Z_("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:Z_("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:Z_("SEEK_SLIDER"),SETTINGS_LABEL:Z_("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:Z_("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:Z_("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:Z_("SHOW_LESS"),SHOW_MORE:Z_("SHOW_MORE"),SHOW_PLAYER_CONTROLS:Z_("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:Z_("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:Z_("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:Z_("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:Z_("SIGN_IN_ON_WEB"),STABLE_VOLUME:Z_("STABLE_VOLUME"),STABLE_VOLUME_OFF:Z_("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:Z_("STABLE_VOLUME_ON"),STATS_FOR_NERDS:Z_("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:Z_("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:Z_("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:Z_("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:Z_("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:Z_("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:Z_("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:Z_("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:Z_("TIMESTAMP_SECONDS"),TOGGLE_OFF:Z_("TOGGLE_OFF"),TOGGLE_ON:Z_("TOGGLE_ON"),TRENDING:Z_("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:Z_("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:Z_("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:Z_("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:Z_("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:Z_("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:Z_("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:Z_("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:Z_("VIDEO_LINK_LABEL")};var rPx=_.T(function(b){var h=b.playerApi;b=_.ZR("button",function(S){_.m6(S,36843)});
var y=Z_("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.M("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.M("button",{el:b,class:"ytPlayerControlsJumpForwardButtonButton",title:y,"aria-label":y,"on:click":_.Zv(function(){_.vw(36843);h&&h().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.M("span",null,_.M(_.Xv,{icon:"FAST_FORWARD"}))))},"Ei");var cPq=_.T(function(b){var h=b.appApi;b=_.ZR("button",function(S){_.m6(S,62946)});
var y=Z_("OPEN_IN_MINIPLAYER");return _.M("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.M("button",{el:b,class:"ytMiniplayerButtonButton",title:y,"aria-label":y,"on:click":_.Zv(function(){_.vw(62946);var S,F;(F=(S=h()).openInMiniplayer)==null||F.call(S);return!1})},_.M(_.Xv,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"Fi");var Rg2=_.T(function(b){var h=b.playerApi;b=_.ZR("button",function(a){_.m6(a,142812)});
var y=_.L(_.pa(!1,void 0,"eOMRAb")),S=y.next().value,F=y.next().value;y=function(){return Z_("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(S()?1:2)})};
return _.M("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.M("button",{el:b,class:"ytPlaybackSpeedButtonButton",title:y,"aria-label":y,"on:click":_.Zv(function(){_.vw(142812);if(h){var a=h(),P=S();a.setPlaybackRate(P?1:2);F(!S())}return!1})},_.M("span",null,_.M(_.Xv,{icon:function(){return S()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Gi");var zgF=_.T(function(b){var h=b.title;var y=b.ariaLabel;var S=b.icon;var F=b.command;var a=b.visualElementId;b=_.ZR("button",function(P){a&&_.m6(P,a())});
return _.M("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.M("button",{el:b,class:"ytdThumbnailOverlayButtonButton",title:h,"aria-label":y,"on:click":_.Zv(function(){a&&_.vw(a());F&&_.H9().resolve(_.OM).resolveCommand(F())})},_.M(_.Xv,{icon:S})))},"Hi");var aV="";var DCx=_.T(function(b){var h=b.playerControlsProps,y=b.onClickFn;b=_.s5(function(){var a=h(),P=-1;a.captionsAvailable&&(P=a.captionsEnabled?1:0);return P},void 0,"MZ0Wqe");
var S=_.s5(function(){var a=h();return a.captionsAvailable?_.Mt(a.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.Mt("CLOSED_CAPTIONS_DISABLED")},void 0,"ymFqJe"),F=_.s5(function(){var a=h();
a=a.captionsAvailable?a.captionsEnabled:void 0;return a},void 0,"fhuQRe");
return _.M("yt-closed-captions-toggle-button",null,_.M(_.kUX,{captionIconType:b,ariaLabel:S,ariaPressed:F,onClick:function(a){var P=h();if(P.captionsAvailable){var K=P.playerApi;if(K){var n=P.playerApi;if(n){var X=aV;if(X){n=n.getOption("captions","track");var u;aV=(u=n?n.displayName:null)!=null?u:X}else _.B_P(n)?(X=_.Kvf(n),aV=X.length?(u=lRP(X))?u.displayName:X[0].displayName:""):aV=""}qPA(K);_.r("mweb_disable_set_state_captions_killswitch")&&P.setState({captionsEnabled:!P.captionsEnabled})}}var O,
N;(N=(O=P.appApi).showCaptionsToggleToast)==null||N.call(O,P);y==null||y(a)},
isOverlay:!0}))},"Ii");var ITA=_.T(function(b){var h=b.data;return _.M("yt-premiere-trailer-badge",{class:"premiereTrailerBadgeHost"},_.M(_.z_,{data:function(){return{type:17,text:_.NiM(h().label)}}}))},"Ji");var BqA=_.T(function(b){var h=_.P2("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return b.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return b.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return b.size()==="small"?b.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
b.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.M("animated-seek-arrows",{class:_.P2("ytPlayerControlsAnimatedSeekArrowsHost")},_.M("span",{class:h}),_.M("span",{class:h}),_.M("span",{class:h}))},"Ki");
BqA.idomCompat=!0;var WiN=_.T(function(){var b=_.Mt("PLAYER_SECONDS",{seconds_placeholder:"30"}),h=_.L(_.pa(!1,void 0,"iRJu8c")),y=h.next().value,S=h.next().value,F=_.L(_.pa(!1,void 0,"MPnizf"));h=F.next().value;var a=F.next().value;F={};var P=_.P2("jumpForwardOverlayOverlay",(F.jumpForwardOverlayOverlayHidden=h,F));_.wg(function(){var K=null,n=null,X=function(){K!==null&&_.J_().cancelJob(K);n!==null&&_.J_().cancelJob(n);a(!0);S(!0);_.js(_.J_(),function(){a(!1)});
K=_.js(_.J_(),function(){a(!0);n=_.js(_.J_(),function(){S(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",X);_.m2(function(){window.removeEventListener("jump-forward-clicked",X)})});
return _.M("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.M(_.H,{cond:y,then:function(){return _.M("div",{class:P},_.M(BqA,{direction:1,size:"large"}),_.M("div",null,b))}}))},"Li");var APF=_.lL.MUTE_VOLUME,UCA=_.lL.UNMUTE_VOLUME,pdf=_.T(function(b){var h=b.muteIconType;var y=b.onClick;var S=b.useOutlineIcon;var F=b.useDelhiIcons;b=_.ZR("button",function(K){_.m6(K,28662)});
var a=function(){var K=h(),n=S==null?void 0:S(),X=F==null?void 0:F(),u="",O="";switch(K){case -1:case 0:u=n?"VOLUME_OFF":X?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";O=UCA;break;case 1:u=n?"VOLUME_UP_OUTLINE":X?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";O=APF;break;case 2:u=n?"VOLUME_DOWN_OUTLINE":X?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";O=APF;break;default:_.m5(K)}return{iconName:u,ariaLabel:O}},P=function(){return a().ariaLabel};
return _.M("ytm-mute-button",{class:"ytmMuteButtonHost"},_.M("button",{el:b,class:"ytmMuteButtonButton",title:P,"aria-label":P,"on:click":_.Zv(function(K){_.vw(28662);y==null||y(K);return!1})},_.M("span",null,_.M(_.Xv,{icon:function(){return a().iconName}}))))},"Mi");var JPd=_.T(function(b){var h=b.volumeProps;var y=b.onClickFn;var S=b.useOutlineIcon;var F=b.useDelhiIcons;return _.M("yt-mute-toggle-button",null,_.M(pdf,{muteIconType:function(){var a=h();return a.volumeMuted||a.volume===0?0:a.volume>50?1:2},
onClick:function(a){var P=h().playerApi;P&&(P.isMuted()?P.unMute():P.mute(!1));y==null||y(a)},
useOutlineIcon:function(){return!(S==null||!S())},
useDelhiIcons:function(){return!(F==null||!F())}}))},"Ni");
JPd.idomCompat=!0;var egE=_.T(function(b){var h=b.data;var y=_.ZR("ytm-paid-content-overlay-renderer");return _.M("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:y,"on:animationend":_.Zv(function(){y.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.M(_.YN,{command:function(){return h().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.M(_.H,{cond:function(){var S;return(S=h().icon)==null?void 0:S.iconType},
then:function(){return _.M("span",null,_.M(_.Xv,{icon:function(){var S;return(S=h().icon)==null?void 0:S.iconType}}))}}),_.M("div",{class:"ytmPaidContentOverlayText"},_.M(_.zv,{text:function(){return h().text}})),_.M(_.H,{cond:function(){return h().navigationEndpoint},
then:function(){return _.M(_.Xv,{icon:"CHEVRON_RIGHT"})}})))},"Oi");
egE.idomCompat=!0;var w5Y=[].concat(_.f$([{register:function(b){var h=Wpa(b),y;(y=b().playerApi)==null||y.addEventListener("onVolumeChange",h);return function(){}}},
{register:function(b){var h=AeA(b);b=b().playerApi;b==null||b.addEventListener("captionschanged",h);b==null||b.addEventListener("captionssettingschanged",h);b==null||b.addEventListener("onCaptionsTrackListChanged",h);return function(){}}}]),[{register:function(b){var h=zYX(b),y;
(y=b().playerApi)==null||y.addEventListener("onStateChange",h);return function(){}}},
{register:function(b){var h=DQd(b),y;(y=b().playerApi)==null||y.addEventListener("onPlaybackRateChange",h);return function(){}}},
{register:function(b){var h=InP(b),y;(y=b().playerApi)==null||y.addEventListener("onVideoDataChange",h);return function(){}}},
{register:function(b){var h=BOA(b),y,S;(y=b())==null||(S=y.playerApi)==null||S.addEventListener("onVideoProgress",h);return function(){}}}]);var Cka=_.T(function(b){var h=b.data;var y=function(){return _.Mt("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+h().playbackRate})};
return _.M(_.H,{cond:function(){return h().playbackRate&&h().playbackRate!==1},
then:function(){return _.M("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.M("div",{class:"ytPlaybackRateOverlayOverlay"},_.M(BqA,{direction:1,size:"small"}),_.M("div",{class:"ytPlaybackRateOverlayLabel"},y)))}})},"Qi");var ggE=_.T(function(b){var h=b.data;return _.M("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.M(_.H,{cond:function(){var y,S=(y=h())==null?void 0:y.playerResponse,F;return S==null?void 0:(F=S.paidContentOverlay)==null?void 0:F.paidContentOverlayRenderer},
then:function(y){return _.M(egE,{data:y})}}))},"Si"),s3A=_.T(function(b){var h=b.props;
var y=b.data;var S=b.options;var F=function(){var X,u,O,N;return(X=y())==null?void 0:(u=X.playerResponse)==null?void 0:(O=u.playerConfig)==null?void 0:(N=O.inlinePlaybackConfig)==null?void 0:N.showAudioControls},a=function(){var X,u;
if(F()&&((X=S())==null?void 0:(u=X.additionalButton)==null?void 0:u.button)!==void 0){var O,N,t;X=(O=y())==null?void 0:(N=O.playerApi)==null?void 0:(t=N.getSize())==null?void 0:t.height;if(!(X===void 0||X<180)){var R,I;return(R=S())==null?void 0:(I=R.additionalButton)==null?void 0:I.button}}},P=function(){var X,u;
return(X=S())==null?void 0:(u=X.additionalButton)==null?void 0:u.thumbnailOverlayButtonRenderers},K=function(){var X,u;
return(X=S())==null?void 0:(u=X.additionalButton)==null?void 0:u.thumbnailOverlayButtonViewModels},n=function(){var X=[_.M(JPd,{volumeProps:h})],u;
((u=S())==null?0:u.hideCaptionsToggleButton)||X.push(_.M(DCx,{playerControlsProps:h}));a()===1&&X.push(_.M(rPx,{playerApi:function(){return h().playerApi}}));
a()===2&&X.push(_.M(cPq,{appApi:function(){return h().appApi}}));
a()===3&&X.push(_.M(Rg2,{playerApi:function(){return h().playerApi}}));
u=P();if(a()===4&&u){u=_.L(u);for(var O=u.next(),N={};!O.done;N={tooltip$jscomp$2:void 0,ariaLabel$jscomp$19:void 0,icon$jscomp$49:void 0,command$jscomp$606:void 0},O=u.next()){O=O.value;N.tooltip$jscomp$2=O.tooltip;var t=void 0,R=void 0;N.ariaLabel$jscomp$19=((t=O.accessibility)==null?void 0:(R=t.accessibilityData)==null?void 0:R.label)||N.tooltip$jscomp$2;t=void 0;N.icon$jscomp$49=(t=O.icon)==null?void 0:t.iconType;N.command$jscomp$606=O.command;N.tooltip$jscomp$2&&N.ariaLabel$jscomp$19&&N.icon$jscomp$49&&
X.push(_.M(zgF,{title:function(I){return function(){return I.tooltip$jscomp$2}}(N),
ariaLabel:function(I){return function(){return I.ariaLabel$jscomp$19}}(N),
icon:function(I){return function(){return I.icon$jscomp$49}}(N),
command:function(I){return function(){return I.command$jscomp$606}}(N)}))}}u=K();
if(a()===4&&u)for(u=_.L(u),O=u.next(),N={};!O.done;N={tooltip$jscomp$3:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$50:void 0,command$jscomp$607:void 0,trackingParamsVeType:void 0},O=u.next())O=O.value,N.tooltip$jscomp$3=O.title,N.ariaLabel$jscomp$20=O.accessibilityText||N.tooltip$jscomp$3,N.icon$jscomp$50=O.iconName,N.command$jscomp$607=_.YS(O.onTap),R=t=void 0,N.trackingParamsVeType=((t=O.loggingDirectives)==null?0:t.trackingParams)?(R=aWA(_.h8(O.loggingDirectives.trackingParams)))==null?void 0:
_.rB(R,2):void 0,N.tooltip$jscomp$3&&N.ariaLabel$jscomp$20&&N.icon$jscomp$50&&X.push(_.M(zgF,{title:function(I){return function(){return I.tooltip$jscomp$3}}(N),
ariaLabel:function(I){return function(){return I.ariaLabel$jscomp$20}}(N),
icon:function(I){return function(){return I.icon$jscomp$50}}(N),
command:function(I){return function(){return I.command$jscomp$607}}(N),
visualElementId:function(I){return function(){return I.trackingParamsVeType}}(N)}));
return X};
return _.M(_.H,{cond:F,then:function(){return _.M("div",{class:"ytInlinePlayerControlsTopRightControls"},_.M(_.Gw,{each:n},function(X){return _.M("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.M("div",{class:"ytInlinePlayerControlsButtonIcon"},X))}))}})},"Ti"),GMA=_.T(function(b){var h=b.props;
var y=b.data;var S=b.options;b={};b=_.P2("ytInlinePlayerControlsBottomRightControls",(b.ytInlinePlayerControlsBottomRightControlsHidden=function(){var F;return p5f(y(),S())&&((F=S())==null?void 0:F.insetProgressBar)&&(h().isHovering||h().isDragging)},b));
return _.M("div",{class:b},_.M(Y02,{data:y}),_.M(_.H,{cond:function(){var F;return!((F=S())==null?0:F.hideTimeDisplay)},
then:function(){return _.M(TqN,{props:h,data:y})}}))},"Ui"),Y02=_.T(function(b){var h=b.data;
return _.M(_.rC,{data:function(){var y;return uNq((y=h())==null?void 0:y.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:ITA})},"Vi"),TqN=_.T(function(b){var h=b.props;
var y=b.data;return _.M(_.H,{cond:function(){return h().isLive},
then:function(){return _.M(kMd,{props:h,data:y})},
else:function(){return _.M(VIf,{props:h,data:y})}})},"Wi"),VIf=_.T(function(b){var h=b.props;
var y=b.data;var S=_.s5(function(){var F;return Oxq((F=y())==null?void 0:F.thumbnailOverlays)},void 0,"Pf9uIe");
return _.M("div",{class:_.P2("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.lL.PLAYER_TIME_ELAPSED+" "+_.Ydj(h().playedTime)}},_.M(_.z_,{data:function(){var F=_.Ydj(h().videoDuration-h().playedTime);
return Object.assign({},{type:17,text:F},S())}}))},"Xi"),Egq=_.T(function(b){b=b.badgeShapeData;
return _.M("div",{class:_.P2("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.M(_.z_,{data:b}))},"Yi"),kMd=_.T(function(b){var h=b.data;
b=_.s5(function(){if(_.r("use_thumbnail_overlay_time_status_renderer_for_live_badge")){var S,F=_.L(((S=h())==null?void 0:S.thumbnailOverlays)||[]);for(S=F.next();!S.done;S=F.next()){S=S.value;if(S.thumbnailOverlayTimeStatusRenderer||S.thumbnailOverlayBadgeViewModel)return S;var a=void 0;if((a=S.thumbnailBottomOverlayViewModel)==null?0:a.badges)if(S=S.thumbnailBottomOverlayViewModel.badges.find(function(P){return _.c(P,X5x)}))return S}}},void 0,"GPGpgc");
var y=_.s5(function(){var S,F,a,P,K,n;return _.DFf((S=h())==null?void 0:(F=S.playerApi)==null?void 0:(a=F.getSize())==null?void 0:a.width,(P=h())==null?void 0:(K=P.playerApi)==null?void 0:(n=K.getSize())==null?void 0:n.height)},void 0,"OeIVKe");
return _.M(_.H,{cond:b,then:function(S){return _.M(_.rC,{data:S},{thumbnailOverlayTimeStatusRenderer:function(F){var a=F.data;F=_.s5(function(){return _.ni4(a(),0)},void 0,"skoDC");
return _.M(Egq,{badgeShapeData:F})},
thumbnailBadgeViewModel:function(F){return _.M(_.rcW,{data:F.data,class:_.P2("ytInlinePlayerControlsLiveBadge","ytInlinePlayerControlsLiveBadgeDisplay")})},
thumbnailOverlayBadgeViewModel:function(F){return _.M(_.BKN,{data:F.data,thumbnailSize:y})}})},
else:function(){var S={type:18,text:_.lL.PLAYER_LIVE_LABEL,icon:"LIVE"};return _.M(Egq,{badgeShapeData:function(){return S}})}})},"Zi"),iRN=_.T(function(b){var h=b.props;
var y=b.data;var S=b.options;return _.M(_.$ia,{progressBarProps:h,config:function(){var F,a=_.c((F=y())==null?void 0:F.multiMarkersPlayerBar,_.TPe),P;F=((P=S())==null?0:P.insetProgressBar)?2:1;var K;P=(K=S())==null?void 0:K.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:F,chapterData:a,isInlinePlayback:!0,doSeekOnClick:P,playheadDotBehavior:P?1:0}}})},"$i");_.yd(_.T(function(b){var h=b.data;var y=b.appApi;var S=b.options;var F=RYf(h,UQA(y));b={};y={};return _.M("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.M("div",{class:_.P2("ytInlinePlayerControlsDarkenedOverlay",(b.ytInlinePlayerControlsDarkenedOverlayShow=function(){return F().isHovering},b))}),_.M(WiN,null),_.M(Cka,{data:F}),_.M(ggE,{data:h}),_.M(tIA,{playerControlsProps:F,
isShortsPage:!1}),_.M("div",{class:_.P2((y.ytInlinePlayerControlsControlsHidden=function(){return F().isDragging},y))},_.M(s3A,{props:F,
data:h,options:S}),_.M(GMA,{props:F,data:h,options:S})),_.M(_.H,{cond:function(){return p5f(h(),S())},
then:function(){return _.M(iRN,{props:F,data:h,options:S})}}))},"Ri"),"yt-inline-player-controls",{props:{data:_.D4,
appApi:_.v3,options:_.D4}});var qw=function(){var b=_.g.apply(this,arguments)||this;b.opts=null;b.playerControlsData=null;b.playerControlsAppApi={openInMiniplayer:function(){b.openInMiniplayer()}};
b.playerControlsOptions={};b.noAnimation=!1;b.playbackIntentTriggered=!1;b.positionData=null;b.hidden=!0;b.active=!1;b.playing=!1;b.persistentPanelVisible=!1;b.videoPreviewDataIndex=0;b.JSC$19639_playerPromise=null;b.player=null;b.enableAudioControls=!1;b.hasBeenUnmuted=!1;b.captionsHaveBeenTurnedOff=!1;b.JSC$19639_playerEvents=new Map;b.videoPreviewFetchRequest=null;b.scheduledPreviewEndJobId=null;b.JSC$19639_preventProgressSaveTimer=null;b.watchEndpointStartTimeUpdaterInterval=null;b.actionMap=
{"yt-open-video-preview-action":"handleOpenVideoPreviewAction","yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};b.windowOnBlurFn=function(){b.deactivate()};
return b};
_.z(qw,_.g);_.d=qw.prototype;
_.d.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model",
channelDisclosureViewModel:"yt-channel-disclosure-view-model"}}}};
_.d.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$19639_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19639_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$19639_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$19639_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.Hl(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.Hl(this,this.onScroll))};
_.d.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.Hl(this,this.onScroll))};
_.d.onPageTypeChange=function(){this.deactivate()};
_.d.onWindowResized=function(){this.deactivate()};
_.d.onPersistentPanelVisibleChange=function(){this.deactivate()};
_.d.onCaptionsChanged=function(b){b=!!b.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!b);this.setCaptionSize()};
_.d.setCaptionSize=function(){var b;if(this.active&&!this.captionsHaveBeenTurnedOff&&((b=this.player)==null?0:b.getCaptionWindowContainerId())){var h;(h=this.player)==null||h.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.d.currentPageAllowed=function(){return!this.isWatchPage};
_.d.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData||!_.r("web_imp_horizontal_oob_fix_killswitch")&&this.isOutOfBounds(this.positionData))return!1;var b=this.positionData,h=b.initialTopPosition,y=b.initialHorizontalPosition;_.nZ(this.hostElement,{"--ytd-video-preview-translate-left":b.finalHorizontalPosition-y+"px","--ytd-video-preview-translate-top":b.finalTopPosition-h+"px","--ytd-video-preview-original-top-position":h+
"px","--ytd-video-preview-original-horizontal-position":y+"px","--ytd-video-preview-initial-scale":"scale("+b.initialScale+")","--ytd-video-preview-width":b.videoPreviewWidth+"px","--ytd-video-preview-height":b.videoPreviewHeight+"px"});return!0};
_.d.isOutOfBounds=function(b){var h=b.initialHorizontalPosition+12;b=h+b.videoPreviewWidth>window.innerWidth;return h<0||this.ytdGuideStateAwareBehavior.guidePersistentAndVisible&&h<260||this.ytdGuideStateAwareBehavior.miniGuideVisible&&h<72||b};
_.d.handleOpenVideoPreviewAction=function(b){var h=this,y;return _.Z(function(S){if(!h.currentPageAllowed())return S.return(0);h.opts=b;return(y=h.alignVideoPreviewForAnimation(b.thumbnail))?S.return(h.activate()):S.return(0)})};
_.d.onMouseLeave=function(b){var h,y;(h=this.opts)==null||(y=h.mouseleaveCallback)==null||y.call(h);this.shouldDeactivateOnMouseLeave(b)&&this.deactivate()};
_.d.onScroll=function(){var b,h;((b=this.opts)==null?0:b.isAutoplay)&&((h=this.opts)==null?0:h.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.d.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.xP.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.d.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.d.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",qw.JSC$19638_DEFAULT_CLICK_LOCATION_BEHAVIOR,qw.JSC$19638_CLICK_LOCATION_ID_MAP)};
_.d.shouldDeactivateOnMouseLeave=function(b){b=b.relatedTarget;if(!b)return!0;var h;return(h=this.opts)!=null&&h.mediaRenderer?!_.KZ(this.opts.mediaRenderer).contains(b):!0};
_.d.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.d.onPlaybackStart=function(){var b=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$19639_preventProgressSaveTimer=
_.js(_.xP,function(){b.resetPreventProgressSaveTimer()},1E4);
var h;if((h=this.opts)==null?0:h.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.js(_.xP,function(){b.hasMultipleVideoPreviews()?b.startPlaybackForNextVideo():b.deactivate()},this.opts.videoPreviewDurationMs);
var y;this.player.setGlobalCrop(((y=this.opts)==null?0:y.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.d.getRoundedCornersSize=function(){var b;if((b=this.opts)==null?0:b.roundedCornersSize){var h;return(h=this.opts)==null?void 0:h.roundedCornersSize}var y;if((y=this.opts)==null?0:y.enableRounding){var S;if(((S=this.opts)==null?void 0:S.thumbnailSize)==="small")return 1;var F;if(((F=this.opts)==null?void 0:F.thumbnailSize)==="medium")return 2;var a;if(((a=this.opts)==null?void 0:a.thumbnailSize)==="large")return 3}return _.r("web_imp_inset_progress_bar")?3:0};
_.d.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.d.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.d.onMediaContainerClick=function(b){this.isShortcutClick(b)||(this.navigateToWatch(b),b.preventDefault(),b.stopPropagation())};
_.d.activate=function(){var b=this,h,y,S,F,a,P,K,n,X;return _.Z(function(u){switch(u.nextAddress){case 1:if(!b.currentPageAllowed())return u.return(0);y=(h=b.videoPreviewData)==null?void 0:h.inlinePlaybackEndpoint;S=_.Ek.instance;if(!y||!S)return u.return(0);b.playbackIntentTriggered=!0;((F=b.opts)==null?0:F.mediaRenderer)&&((a=b.opts)==null||!a.isAutoplay)&&M3a(b.opts.mediaRenderer,function(){b.deactivate()});
_.Ob(b,function(){b.revealPreviewUi()});
P={};_.r("enable_unknown_lact_fix_on_html5")&&(_.H9().resolve(_.rS),P.lact=_.td());b.videoPreviewFetchRequest=jHX(S,b.getInlinePlaybackRequestData(b.videoPreviewData),P);_.WE(u,2);return u.yield(b.videoPreviewFetchRequest,4);case 4:K=u.yieldResult;if(((n=K)==null?void 0:(X=n.playabilityStatus)==null?void 0:X.status)==="OK")return u.return(b.handlePlayerResponse(K));throw Error("ik");case 2:_.C$(u),b.deactivate();case 3:return u.return(1)}})};
_.d.getInlinePlaybackRequestData=function(b){var h,y=_.r("web_imp_player_mute_params")?((h=this.opts)==null?void 0:h.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:b.inlinePlaybackEndpoint,startPlaybackInMutedState:y}};
_.d.handlePlayerResponse=function(b){var h=this,y,S,F,a,P,K,n,X,u,O,N,t,R,I;return _.Z(function(U){if(U.nextAddress==1){y=h.getInlinePlaybackVideoId();if(!(((S=b)==null?0:(F=S.videoDetails)==null?0:F.videoId)&&h.currentPageAllowed()&&h.playbackIntentTriggered&&h.opts&&y))return h.deactivate(),U.return(0);if(b.videoDetails.videoId!==y)return U.return(0);h.enableAudioControls=!!((a=b.playerConfig)==null?0:(P=a.inlinePlaybackConfig)==null?0:P.showAudioControls);b.trackingParams=h.getInlinePlaybackTrackingParams();
if(!h.inlinePlayer)return U.return(0);K={};if(X=_.c((n=h.videoPreviewData)==null?void 0:n.inlinePlaybackEndpoint,_.wO))K.watch_endpoint=X;if(h.videoPreviewData){var p,e=(p=_.c(h.videoPreviewData.inlinePlaybackEndpoint,_.wO))==null?void 0:p.startTimeSeconds;e!==void 0&&(b.playerConfig||(b.playerConfig={}),b.playerConfig.playbackStartConfig||(b.playerConfig.playbackStartConfig={}),b.playerConfig.playbackStartConfig.startPosition||(b.playerConfig.playbackStartConfig.startPosition={}),b.playerConfig.playbackStartConfig.startSeconds=
e,b.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(e*1E3))}h.inlinePlayer.loadVideoWithPlayerResponse(b,K);if(h.JSC$19639_playerPromise)return U.jumpTo(2);h.JSC$19639_playerPromise=h.inlinePlayer.getPlayerPromise();return U.yield(h.JSC$19639_playerPromise,3)}U.nextAddress!=2&&(u=U.yieldResult,u.setInlinePreview(!0),O=!_.r("web_imp_theater_bugfix"),u.setSizeStyle(!1,O),h.ytPlayerListenerBehavior.listenToPlayerEvents(u,h.JSC$19639_playerEvents),h.player=u,_.Sx(h.hostElement,
"player-api-ready"));((N=h.opts)==null?0:N.showPlayerControls)&&h.videoPreviewData&&h.player&&(h.playerControlsData={playerResponse:b,isInlinePlayback:!0,thumbnailOverlays:h.videoPreviewData.thumbnailOverlays,playerApi:h.player},h.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!h.unroundCornersForPlayback,additionalButton:h.getAdditionalButtonType(h.videoPreviewData.thumbnailOverlays),hideTimeDisplay:(t=h.opts)==null?void 0:t.hideTimeDisplay,hideScrubbingControls:(R=h.opts)==
null?void 0:R.hideScrubber,hideCaptionsToggleButton:(I=h.opts)==null?void 0:I.hideCaptionsToggleButton});return U.return(2)})};
_.d.revealPreviewUi=function(){var b=this;this.playbackIntentTriggered&&_.INM(this,function(){b.hasThumbnailPositionChangedSinceTriggered()||(b.updateActiveState(!0),b.noAnimation=!1)})};
_.d.hasThumbnailPositionChangedSinceTriggered=function(){var b=this.positionData,h=this.getThumbnailPositionData();return(b==null?void 0:b.initialTopPosition)!==(h==null?void 0:h.initialTopPosition)||(b==null?void 0:b.initialHorizontalPosition)!==(h==null?void 0:h.initialHorizontalPosition)};
_.d.getThumbnailPositionData=function(){var b,h;if((h=this.opts)==null||!h.thumbnail)return null;h=this.opts.thumbnail;var y=((b=this.opts)==null?0:b.cropPlayerToFillThumbnailHorizontally)?!1:!0;var S=h.getBoundingClientRect();b=S.width;h=S.height;var F=S.top+window.scrollY;S=S.left+window.scrollX;var a=y?Math.ceil(b):b;y=y?Math.ceil(h):h;var P=b/a;b={initialScale:P,initialTopPosition:F-12*P,finalTopPosition:F-12-(y-h)/2,initialHorizontalPosition:S-(12+(a-b)/2),finalHorizontalPosition:S-12-(a-b)/
2,videoPreviewWidth:a,videoPreviewHeight:y};return b};
_.d.updateActiveState=function(b){this.active=b;this.ytdReduxBehavior.dispatch(_.$8({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:b}))};
_.d.stopPlayer=function(b){b=b.resetWatchEndpointStartTime===void 0?!1:b.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(b)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.xP.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.d.deactivate=function(b){b=b===void 0?{}:b;b=b.resetWatchEndpointStartTime===void 0?!1:b.resetWatchEndpointStartTime;PXf&&(PXf.disconnect(),PXf=null);this.stopPlayer({resetWatchEndpointStartTime:b});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.d.isValidThumbnailOverlayButton=function(b,h){b=b.thumbnailOverlayButtonRenderer;var y;return!!b&&!!b.tooltip&&!((y=b.icon)==null||!y.iconType)&&h.includes(b.icon.iconType)};
_.d.isValidThumbnailOverlayButtonViewModel=function(b,h){var y;b=_.c((y=b.thumbnailOverlayButtonViewModel)==null?void 0:y.overlayButton,_.cA);return!!b&&!!b.title&&!!b.iconName&&h.includes(b.iconName)};
_.d.getAdditionalButtonType=function(b){var h=this;if(_.r("web_imp_fastforward_button"))return{button:1};if(_.r("web_imp_miniplayer_button"))return{button:2};if(_.r("web_imp_playback_speed_button"))return{button:3};var y=["BOX_STACK_3"],S=(b||[]).filter(function(a){return h.isValidThumbnailOverlayButton(a,y)}).map(function(a){return a.thumbnailOverlayButtonRenderer});
if(S.length)return{button:4,thumbnailOverlayButtonRenderers:S};var F=["BOX_STACK_3"];b=(b||[]).filter(function(a){return h.isValidThumbnailOverlayButtonViewModel(a,F)}).map(function(a){return _.c(a.thumbnailOverlayButtonViewModel.overlayButton,_.cA)});
if(b.length)return{button:4,thumbnailOverlayButtonViewModels:b}};
_.d.allowCaptions=function(){var b;return!((b=this.opts)==null?0:b.forceCaptionsOff)};
_.d.allowUnmuting=function(){var b;return this.enableAudioControls&&!((b=this.opts)==null?0:b.forceMutedVolume)};
_.d.beginStartTimeUpdater=function(){var b=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.DI(function(){b.updateWatchEndpointStartTime()},1E3)};
_.d.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.d.resetPreventProgressSaveTimer=function(){this.JSC$19639_preventProgressSaveTimer!==null&&(_.xP.cancelJob(this.JSC$19639_preventProgressSaveTimer),this.JSC$19639_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.d.updateWatchEndpointStartTime=function(b){var h=this.videoPreviewData;if(this.player&&h!=null&&h.inlinePlaybackEndpoint&&!this.JSC$19639_preventProgressSaveTimer){b=b?0:Math.floor(this.player.getCurrentTime());var y=_.c(h.navigationEndpoint,_.wO);y&&(y.startTimeSeconds=b);if(h=_.c(h.inlinePlaybackEndpoint,_.wO))h.startTimeSeconds=b}};
_.d.isShortcutClick=function(b){return!!b&&(b.ctrlKey||b.shiftKey||b.metaKey)};
_.d.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.d.openInMiniplayer=function(){var b=this,h,y;return _.Z(function(S){if(S.nextAddress==1){y=(h=b.videoPreviewData)==null?void 0:h.navigationEndpoint;if(!y)return S.return();_.h0().lockupActivation=!0;return S.yield(_.qla(_.H9().resolve(_.Vp),y),2)}_.h0().userActivation=!0;_.g3(S)})};
_.d.navigateToWatch=function(b){var h,y=(h=this.videoPreviewData)==null?void 0:h.navigationEndpoint;if(y){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(y,b,!0);else{var S;_.r("web_thumbnail_to_watch_transition")&&((S=this.opts)==null?0:S.thumbnail)&&_.fgb(_.H9().resolve(_.$O),this.opts.thumbnail);_.Sx(this.hostElement,"yt-navigate",{endpoint:y})}this.deactivate()}};
_.d.getInlinePlaybackVideoId=function(){var b,h;return(h=_.c((b=this.videoPreviewData)==null?void 0:b.inlinePlaybackEndpoint,_.wO))==null?void 0:h.videoId};
_.d.getInlinePlaybackTrackingParams=function(){var b,h;return(b=this.videoPreviewData)==null?void 0:(h=b.inlinePlaybackEndpoint)==null?void 0:h.clickTrackingParams};
_.d.hasMultipleVideoPreviews=function(){var b;return!!(((b=this.opts)==null?0:b.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.d.startPlaybackForNextVideo=function(){var b;(b=this.opts)!=null&&b.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())};
_.tm.Object.defineProperties(qw.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.opts)==null?0:b.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.opts)==null||!b.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 b;if(Array.isArray((b=this.opts)==null?void 0:b.videoPreviewData)){var h;return(h=this.opts)==null?void 0:h.videoPreviewData[this.videoPreviewDataIndex]}var y;return(y=this.opts)==null?void 0:y.videoPreviewData}}});
qw.prototype.onIsAdsVideoChange=qw.prototype.onIsAdsVideoChange;qw.prototype.onInlinePreviewIsEnabledChange=qw.prototype.onInlinePreviewIsEnabledChange;qw.prototype.optsChanged=qw.prototype.optsChanged;qw.prototype.onMouseLeave=qw.prototype.onMouseLeave;qw.prototype.onPersistentPanelVisibleChange=qw.prototype.onPersistentPanelVisibleChange;qw.JSC$19638_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);
qw.JSC$19638_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"}];_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],qw.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],qw.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.UA.YtPlayerListenerBehavior),_.f("design:type",_.pf)],qw.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.B(_.DV.YtdGuideStateAwareBehavior),_.f("design:type",Object)],qw.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],qw.prototype,"componentBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],qw.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.NT),_.f("design:type",Object)],qw.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.TO.YtSparklesClickLocationBehavior),_.f("design:type",Object)],qw.prototype,"ytSparklesClickLocationBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],qw.prototype,"opts",void 0);_.V([_.C(),_.f("design:type",Object)],qw.prototype,"playerControlsData",void 0);_.V([_.C(),_.f("design:type",Object)],qw.prototype,"playerControlsAppApi",void 0);
_.V([_.C(),_.f("design:type",Object)],qw.prototype,"playerControlsOptions",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],qw.prototype,"noAnimation",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],qw.prototype,"hidden",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],qw.prototype,"active",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],qw.prototype,"playing",void 0);
_.V([_.C({selector:_.VSn}),_.f("design:type",Boolean)],qw.prototype,"inlinePreviewIsEnabled",void 0);_.V([_.C(),_.f("design:type",String)],qw.prototype,"pagePath",void 0);_.V([_.C({selector:_.TcY}),_.f("design:type",Boolean)],qw.prototype,"isWatchPage",void 0);_.V([_.C({selector:_.iM.persistentPanelVisibleSelector}),_.f("design:type",Object)],qw.prototype,"persistentPanelVisible",void 0);
_.V([_.W("videoPreviewData"),_.f("design:type",Object),_.f("design:paramtypes",[])],qw.prototype,"thumbnailData",null);_.V([_.W("opts","active"),_.C({reflectToAttribute:!0}),_.f("design:type",Boolean),_.f("design:paramtypes",[])],qw.prototype,"hidePlayerControls",null);_.V([_.W("opts"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],qw.prototype,"isAdsVideo",null);
_.V([_.W("opts"),_.C({reflectToAttribute:!0}),_.f("design:type",Boolean),_.f("design:paramtypes",[])],qw.prototype,"roundedCornersSmall",null);_.V([_.W("opts"),_.C({reflectToAttribute:!0}),_.f("design:type",Boolean),_.f("design:paramtypes",[])],qw.prototype,"roundedCornersMedium",null);_.V([_.W("opts"),_.C({reflectToAttribute:!0}),_.f("design:type",Boolean),_.f("design:paramtypes",[])],qw.prototype,"roundedCornersLarge",null);
_.V([_.W("opts"),_.C({reflectToAttribute:!0}),_.f("design:type",Boolean),_.f("design:paramtypes",[])],qw.prototype,"unroundCornersForPlayback",null);_.V([_.W("opts","videoPreviewDataIndex"),_.f("design:type",Object),_.f("design:paramtypes",[])],qw.prototype,"videoPreviewData",null);_.V([_.C(),_.f("design:type",Object)],qw.prototype,"videoPreviewDataIndex",void 0);_.V([_.to("#inline-player"),_.f("design:type",Object)],qw.prototype,"inlinePlayer",void 0);
_.V([_.OB("persistentPanelVisible"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],qw.prototype,"onPersistentPanelVisibleChange",null);_.V([_.u3("mouseleave"),_.f("design:type",Function),_.f("design:paramtypes",[MouseEvent]),_.f("design:returntype")],qw.prototype,"onMouseLeave",null);_.V([_.zj("opts"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],qw.prototype,"optsChanged",null);
_.V([_.zj("inlinePreviewIsEnabled"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],qw.prototype,"onInlinePreviewIsEnabledChange",null);_.V([_.OB("isAdsVideo"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],qw.prototype,"onIsAdsVideoChange",null);_.V([_.Yx({is:"ytd-video-preview",disableElementRegistration:!0})],qw);
_.k(qw,"ytd-video-preview",function(){if(NqP!==void 0)return NqP;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return NqP=b},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.Pn=function(b){return function(h,y){var S=b||y.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(h,y,{get:function(){var F;return this.$?this.$[S]:(F=_.Nh(this))==null?void 0:F.querySelector("#"+S)},
enumerable:!0,configurable:!0})}};_.KY=function(b){b=b===void 0?!1:b;_.ED.call(this);this.pubSub_=new _.Jj(b);_.pq(this,this.pubSub_)};
_.Pv(_.KY,_.ED);_.KY.prototype.subscribe=function(b,h,y){return this.isDisposed()?0:this.pubSub_.subscribe(b,h,y)};
_.KY.prototype.unsubscribe=function(b,h,y){return this.isDisposed()?!1:this.pubSub_.unsubscribe(b,h,y)};
_.KY.prototype.unsubscribeByKey=function(b){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(b)};
_.KY.prototype.publish=function(b,h){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var QR2=function(){_.l9("ypcRedeemFlowStarted")},m9J=function(b){_.l9("ypcRedeemFlowFailed",void 0,void 0,void 0,b)},v$9=function(b,h,y){h&&y&&(b.videos.forEach(function(S){S.videoId===h&&(S.itemId=y)}),b.recommendedVideos.forEach(function(S){S.videoId===h&&(S.itemId=y)}))};var b$R;var hhp;/*

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
*/
_.pZ({_template:function(){if(hhp!==void 0)return hhp;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;b$R===void 0&&(b$R=document.createElement("template"));var S=b$R;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return hhp=b},
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(b,h){var y=this._resolveSrc(b);y!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",b===""||h?this._setLoading(!1):(this._resolvedSrc=y,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 b=this.$.sizedImgDiv.style,h=this.$.placeholder.style;b.backgroundSize=h.backgroundSize=this.sizing;b.backgroundPosition=h.backgroundPosition=this.sizing?this.position:"";b.backgroundRepeat=h.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(b){b=_.Bo(b,this.$.baseURIAnchor.href);b.length>=2&&b[0]==="/"&&b[1]!=="/"&&(b=(location.origin||location.protocol+"//"+location.host)+b);return b}});var ykf;var S3L;_.pZ({_template:function(){if(S3L!==void 0)return S3L;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;ykf===void 0&&(ykf=document.createElement("template"));var S=ykf;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return S3L=b},
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(b){return b?"false":"true"},
_headingChanged:function(b){var h=this.getAttribute("heading"),y=this.getAttribute("aria-label");typeof y==="string"&&y!==h||this.setAttribute("aria-label",b)},
_computeHeadingClass:function(b){return b?" over-image":""},
_computeAnimated:function(b){return b}});var Ft9=new _.r4("addRendererToItemSectionAction");var aFp;var pm=function(){return _.g.apply(this,arguments)||this};
_.z(pm,_.g);pm.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],pm.prototype,"rendererBehavior",void 0);_.V([_.B(_.rP),_.f("design:type",Object)],pm.prototype,"dismissibleItemBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],pm.prototype,"rendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],pm.prototype,"data",void 0);_.V([_.Yx({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],pm);
_.k(pm,"ytd-comment-history-entry-renderer",function(){if(aFp!==void 0)return aFp;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return aFp=b},{mode:1});var d5_;_.W2("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.W2("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var JM=function(){return _.g.apply(this,arguments)||this};
_.z(JM,_.g);_.d=JM.prototype;_.d.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.d.onKeyUp=function(b){if(b.keyCode===13)this.onTap()};
_.d.onTap=function(){this.data.recordClickEndpoint&&_.H9().resolve(_.OM).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var b=this.data.navigationEndpoint;b&&_.c(b,_.Mu)&&_.H9().resolve(_.OM).resolveCommand(b,{form:{element:this.hostElement}})};
_.d.readChanged=function(){var b;_.Zm(this.hostElement,"unread",!((b=this.data)==null?0:b.read))};
_.d.dataChanged=function(){this.data&&_.Zm(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.d.computeThumbnailSize=function(){var b;return((b=this.data)==null?0:b.highPriorityNotification)?32:48};
_.d.getEndpointURL=function(b){return b&&!_.c(b,_.Mu)?this.componentBehavior.computeHref_(b):null};
_.d.getEndpointData=function(b){return b&&!_.c(b,_.Mu)?b:null};
JM.prototype.computeThumbnailSize=JM.prototype.computeThumbnailSize;JM.prototype.dataChanged=JM.prototype.dataChanged;JM.prototype.readChanged=JM.prototype.readChanged;JM.prototype.onKeyUp=JM.prototype.onKeyUp;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],JM.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],JM.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],JM.prototype,"componentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],JM.prototype,"data",void 0);_.V([_.C({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.f("design:type",Number)],JM.prototype,"thumbnailSize",void 0);_.V([_.u3("keyup"),_.f("design:type",Function),_.f("design:paramtypes",[KeyboardEvent]),_.f("design:returntype")],JM.prototype,"onKeyUp",null);
_.V([_.OB("data.read"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],JM.prototype,"readChanged",null);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],JM.prototype,"dataChanged",null);_.V([_.OB("data.highPriorityNotification"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],JM.prototype,"computeThumbnailSize",null);
_.V([_.Yx({is:"ytd-notification-renderer",disableElementRegistration:!0})],JM);
_.k(JM,"ytd-notification-renderer",function(){if(d5_!==void 0)return d5_;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return d5_=b},{mode:1});var jsM;var e_=function(){return _.g.apply(this,arguments)||this};
_.z(e_,_.g);e_.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"}}}};
e_.prototype.computeActionButtonClass=function(b){return!b.actionButtons||b.actionButtons.length<=1?"single-button":b.description?"vertical-buttons":"horizontal-buttons"};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],e_.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],e_.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],e_.prototype,"data",void 0);_.V([_.Yx({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],e_);
_.k(e_,"ytd-playlist-show-metadata-renderer",function(){if(jsM!==void 0)return jsM;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return jsM=b},{mode:1});var $5f;_.W2("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var Cm=function(){return _.g.apply(this,arguments)||this};
_.z(Cm,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Cm.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Cm.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Cm.prototype,"data",void 0);_.V([_.Yx({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],Cm);
_.k(Cm,"ytd-purchase-item-renderer",function(){if($5f!==void 0)return $5f;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return $5f=b},{mode:1});var Lt_;var PZ9={};PZ9.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(b){if(b)return b.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(b){if(b==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.W2("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var gu=function(){return _.g.apply(this,arguments)||this};
_.z(gu,_.g);gu.prototype.onYtNavigate=function(b){var h=this.openPopupBehavior.getNavigationEndpointPopupAction(b.detail.endpoint);h&&(b.stopPropagation(),this.openPopupBehavior.openPopup(h))};
gu.prototype.onYtNavigate=gu.prototype.onYtNavigate;_.V([_.B(PZ9.YtSimpleTextSectionBehavior),_.f("design:type",Object)],gu.prototype,"ytSimpleTextSectionBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],gu.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Y9),_.f("design:type",Object)],gu.prototype,"openPopupBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],gu.prototype,"data",void 0);
_.V([_.u3("yt-navigate"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],gu.prototype,"onYtNavigate",null);_.V([_.Yx({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],gu);
_.k(gu,"ytd-simple-text-section-renderer",function(){if(Lt_!==void 0)return Lt_;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return Lt_=b},{mode:1});var KtJ;_.W2("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var Z$x=function(){return _.g.apply(this,arguments)||this};
_.z(Z$x,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Z$x.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Z$x.prototype,"data",void 0);_.V([_.Yx({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],Z$x);
_.k(Z$x,"ytd-unlimited-page-feature-info-renderer",function(){if(KtJ!==void 0)return KtJ;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return KtJ=b},{mode:1});var ofA;var Mw9;var sq=function(){return _.g.apply(this,arguments)||this};
_.z(sq,_.g);sq.prototype.dataChanged=function(){if(this.data){var b=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);b&&(b=_.Ss(b,screen.width),this.hostElement.style.backgroundImage="url("+b+")")}};
sq.prototype.dataChanged=sq.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],sq.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],sq.prototype,"data",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],sq.prototype,"dataChanged",null);_.V([_.Yx({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],sq);
_.k(sq,"ytd-post-redemption-section-renderer",function(){if(Mw9!==void 0)return Mw9;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return Mw9=b},{mode:1});var nfJ;var YK=function(){return _.g.apply(this,arguments)||this};
_.z(YK,_.g);YK.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],YK.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],YK.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],YK.prototype,"data",void 0);_.V([_.Yx({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],YK);
_.k(YK,"ytd-ypc-post-redemption-renderer",function(){if(nfJ!==void 0)return nfJ;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return nfJ=b},{mode:1});_.W2("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var Ts=function(){var b=_.g.apply(this,arguments)||this;b.MIN_CODE_LENGTH=12;b.MAX_CODE_LENGTH=24;return b};
_.z(Ts,_.g);_.d=Ts.prototype;_.d.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.d.created=function(){this.riskService=new _.t8n;this.loadPaymentThenable=_.cHN(_.QC("YPC_MB_URL"))};
_.d.ready=function(){var b=this;this.code.addEventListener("keypress",function(h){b.onCodeInputKeypress(h)})};
_.d.dataChanged=function(){var b=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(h){h=_.L(h);for(var y=h.next();!y.done;y=h.next())y=y.value,y.type==="attributes"&&y.attributeName==="dark"&&b.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.d.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var b=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+b+")")}};
_.d.computeRedeemButton=function(b){(b=this.get("redeemButton.buttonRenderer",b))&&(b=Object.assign({},b,{serviceEndpoint:void 0}));return b};
_.d.onRedeemButtonTap=function(b){b.stopPropagation();QR2();this.redeemCode()};
_.d.redeemCode=function(){var b=this;this.isLoading=!0;var h=this.riskService.init();_.wb([h,this.loadPaymentThenable]).then(function(){var y=b.data.redeemButton.buttonRenderer.serviceEndpoint,S=_.rHY(),F=_.S4.payments.business.integration.ClientTokenFactory.createClientToken(_.c(y,_.u$G).countryCode,S);S={c:b.code.value.trim(),rd:window.btoa(S),ctk:F};y&&_.H9().resolve(_.OM).resolveCommand(y,{form:Object.assign({},S,{element:b.hostElement})})},function(){b.showGenericError();
m9J("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.v4(Error("$o"))})};
_.d.onYtServiceRequestCompleted=function(b){b.stopPropagation();this.isLoading=!1;var h,y;this.errorMessage=(h=b.detail)==null?void 0:(y=h.data)==null?void 0:y.errorMessage;var S,F;this.postRedemptionRenderer=(S=b.detail)==null?void 0:(F=S.data)==null?void 0:F.renderer;var a,P;if(b=(a=b.detail)==null?void 0:(P=a.data)==null?void 0:P.redirectEndpoint)this.isLoading=!0,_.Sx(this.hostElement,"yt-navigate",{endpoint:b});this.errorMessage?m9J("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
b)&&_.l9("ypcRedeemFlowSucceeded")};
_.d.onYtServiceRequestError=function(b){b.stopPropagation();this.isLoading=!1;if(b=this.get("detail.error.message",b))this.errorMessage=_.mk(b);m9J("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.d.onInvokeInstrumentManagerActionCompleted=function(b){b.stopPropagation();this.redeemCode()};
_.d.onInvokeInstrumentManagerActionError=function(b){b.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",b)){case "instrumentManagerLoadError":this.showGenericError();m9J("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();m9J("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.l9("ypcRedeemFlowCancelled")}};
_.d.onInput=function(){var b=this;_.wy(this,"onInput",function(){var h=b.code.value.trim();b.redeemButtonDisabled=h.length<b.MIN_CODE_LENGTH||h.length>b.MAX_CODE_LENGTH},200)};
_.d.onCodeInputKeypress=function(b){b.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(QR2(),this.redeemCode())};
_.d.computeImageUrl=function(b){return b?_.Ss(b.thumbnails,600):null};
_.d.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
Ts.prototype.onInvokeInstrumentManagerActionError=Ts.prototype.onInvokeInstrumentManagerActionError;Ts.prototype.onInvokeInstrumentManagerActionCompleted=Ts.prototype.onInvokeInstrumentManagerActionCompleted;Ts.prototype.onYtServiceRequestError=Ts.prototype.onYtServiceRequestError;Ts.prototype.onYtServiceRequestCompleted=Ts.prototype.onYtServiceRequestCompleted;Ts.prototype.dataChanged=Ts.prototype.dataChanged;
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Ts.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Ts.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Ts.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],Ts.prototype,"isLoading",void 0);_.V([_.C(),_.f("design:type",Boolean)],Ts.prototype,"redeemButtonDisabled",void 0);
_.V([_.C(),_.f("design:type",Object)],Ts.prototype,"errorMessage",void 0);_.V([_.C(),_.f("design:type",Object)],Ts.prototype,"postRedemptionRenderer",void 0);_.V([_.C(),_.f("design:type",Object)],Ts.prototype,"observer",void 0);_.V([_.to("#code"),_.f("design:type",HTMLInputElement)],Ts.prototype,"code",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Ts.prototype,"dataChanged",null);
_.V([_.u3("yt-service-request-completed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],Ts.prototype,"onYtServiceRequestCompleted",null);_.V([_.u3("yt-service-request-error"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],Ts.prototype,"onYtServiceRequestError",null);
_.V([_.u3("yt-invoke-instrument-manager-action-completed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],Ts.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.V([_.u3("yt-invoke-instrument-manager-action-error"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],Ts.prototype,"onInvokeInstrumentManagerActionError",null);_.V([_.Yx({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],Ts);
_.k(Ts,"ytd-redeem-code-renderer",function(){if(ofA!==void 0)return ofA;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return ofA=b},{mode:1});var XEp;_.W2("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var Gs=function(){var b=_.g.apply(this,arguments)||this;b.businessEmailDisplayState="HIDE_SECTION";return b};
_.z(Gs,_.g);_.d=Gs.prototype;_.d.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}}}}}};
_.d.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"};
_.d.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.d.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Tt(_.XSa),this.businessEmailDisplayState="CAPTCHA"))};
_.d.onYtServiceRequestCompleted=function(b){var h;if((h=b.detail.data)==null?0:h.businessEmail)this.businessEmail=b.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var y;if((y=b.detail.data)==null?0:y.errorMessage)this.businessEmailErrorMessage=b.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.d.computeEmailHref=function(b){return"mailto:"+b};
_.d.computeSafeUrl=function(b){if(b)return _.lJ(b)};
_.d.onBusinessEmailCaptchaSubmit=function(){var b;(b=this.data)!=null&&b.onBusinessEmailRevealClickCommand&&(b=this.JSC$22456_captchaTextarea.value)&&(b={recaptcha_response_token:b,channel_id:this.data.channelId},_.H9().resolve(_.OM).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},b,{element:this.hostElement})}))};
_.d.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.tm.Object.defineProperties(Gs.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 b,h;return!((b=this.data)==null||!b.primaryLinks)&&!((h=this.data)==null?0:h.links)&&this.data.primaryLinks.every(function(y){return y.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var b,h;return!((b=this.data)==null||!b.primaryLinks)&&!((h=this.data)==null?0:h.links)&&!this.shouldShowNewLinks}}});
Gs.prototype.onYtServiceRequestCompleted=Gs.prototype.onYtServiceRequestCompleted;Gs.prototype.dataChanged=Gs.prototype.dataChanged;_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],Gs.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Gs.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Gs.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.to("#g-recaptcha-response"),_.f("design:type",HTMLTextAreaElement)],Gs.prototype,"JSC$22456_captchaTextarea",void 0);_.V([_.C(),_.f("design:type",Object)],Gs.prototype,"data",void 0);_.V([_.C(),_.f("design:type",String)],Gs.prototype,"businessEmailDisplayState",void 0);_.V([_.C(),_.f("design:type",String)],Gs.prototype,"businessEmail",void 0);_.V([_.C(),_.f("design:type",String)],Gs.prototype,"businessEmailErrorMessage",void 0);
_.V([_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Gs.prototype,"hideDetailsSection",null);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Gs.prototype,"dataChanged",null);_.V([_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Gs.prototype,"shouldShowNewLinks",null);_.V([_.W("data","shouldShowLinks"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Gs.prototype,"shouldShowLegacyLinks",null);
_.V([_.u3("yt-service-request-completed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],Gs.prototype,"onYtServiceRequestCompleted",null);_.V([_.Yx({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],Gs);
_.k(Gs,"ytd-channel-about-metadata-renderer",function(){if(XEp!==void 0)return XEp;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return XEp=b},{mode:1});var H$9;_.W2("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var kK=function(){return _.g.apply(this,arguments)||this};
_.z(kK,_.g);kK.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]]"}}}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],kK.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],kK.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],kK.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Number)],kK.prototype,"lockupContainerType",void 0);_.V([_.C(),_.f("design:type",String)],kK.prototype,"thumbnailFixedWidth",void 0);
_.V([_.Yx({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],kK);
_.k(kK,"ytd-channel-featured-content-renderer",function(){if(H$9!==void 0)return H$9;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return H$9=b},{mode:1});var ug2;_.W2("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var V2=function(){var b=_.g.apply(this,arguments)||this;b.roundContainer=!0;b.amsterdamEnabled=_.r("enable_desktop_amsterdam_info_panels");return b};
_.z(V2,_.g);_.d=V2.prototype;_.d.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.d.dataChanged=function(){this.imageWidth=this.imageHeight=24;var b=this.data;b.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!b.style&&b.image&&b.image.thumbnails.length&&(b=b.image.thumbnails[0],this.imageWidth=b.width||0,this.imageHeight=b.height||0)};
_.d.computeSource=function(b){return b.secondarySource?_.vi(b.secondarySource):_.vi(b.source)};
_.d.computeClarifyStyle=function(b){return b?b.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.d.isLargeStyle=function(b){return b==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.d.computeBackgroundStyle=function(b){return b?b.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.d.computeHasActionButton=function(b){return!!b.actionButton};
_.d.computeHasBottomSection=function(b){return!!b.ctaHasBottomSection};
_.d.computeIsSourceMissing=function(b){return b.ctaHasBottomSection===!1?!0:b&&this.computeSource(b)?!1:!0};
_.d.computeSecondaryEndpoint=function(b){return b.secondaryEndpoint||b.endpoint};
V2.prototype.dataChanged=V2.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],V2.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],V2.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],V2.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Number)],V2.prototype,"imageWidth",void 0);_.V([_.C(),_.f("design:type",Number)],V2.prototype,"imageHeight",void 0);
_.V([_.C({computed:"computeSecondaryEndpoint(data)"}),_.f("design:type",Object)],V2.prototype,"secondaryEndpoint",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.f("design:type",Boolean)],V2.prototype,"hasActionButton",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.f("design:type",Boolean)],V2.prototype,"hasBottomSection",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.f("design:type",Boolean)],V2.prototype,"missingSource",void 0);_.V([_.C({computed:"computeIcon_(data.icon)"}),_.f("design:type",String)],V2.prototype,"icon",void 0);_.V([_.C({computed:"computeIcon_(data.secondaryIcon)"}),_.f("design:type",String)],V2.prototype,"secondaryIcon",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.f("design:type",String)],V2.prototype,"clarifyStyle",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.f("design:type",String)],V2.prototype,"backgroundStyle",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],V2.prototype,"roundContainer",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],V2.prototype,"amsterdamEnabled",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],V2.prototype,"dataChanged",null);
_.V([_.Yx({is:"ytd-clarification-renderer",disableElementRegistration:!0})],V2);
_.k(V2,"ytd-clarification-renderer",function(){if(ug2!==void 0)return ug2;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return ug2=b},{mode:1});var O$9;var N3R;var Eq=function(){var b=_.g.apply(this,arguments)||this;b.amsterdamEnabled=_.r("enable_desktop_amsterdam_info_panels");return b};
_.z(Eq,_.g);_.d=Eq.prototype;_.d.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.d.computeIcon=function(b){return b?"yt-icons:"+b.toLowerCase():null};
_.d.computeUseContacts=function(b){return!!b.contacts&&b.contacts.length>0};
_.d.computePhoneContact=function(b){var h,y;return(h=b.contacts)==null?void 0:(y=h.find(function(S){var F;return(S==null?void 0:(F=S.icon)==null?void 0:F.iconType)==="PHONE"}))==null?void 0:y.actionText};
_.d.computeSmsContact=function(b){var h,y;return(h=b.contacts)==null?void 0:(y=h.find(function(S){var F;return(S==null?void 0:(F=S.icon)==null?void 0:F.iconType)==="SMS"}))==null?void 0:y.actionText};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Eq.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Eq.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Eq.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],Eq.prototype,"amsterdamEnabled",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.f("design:type",Boolean)],Eq.prototype,"useContacts",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.f("design:type",String)],Eq.prototype,"phoneContact",void 0);_.V([_.Yx({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],Eq);
_.k(Eq,"ytd-single-action-emergency-support-renderer",function(){if(N3R!==void 0)return N3R;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return N3R=b},{mode:1});_.W2("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var iW=function(){var b=_.g.apply(this,arguments)||this;b.roundedContainer=!0;b.amsterdamEnabled=_.r("enable_desktop_amsterdam_info_panels");return b};
_.z(iW,_.g);iW.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"}}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],iW.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],iW.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],iW.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],iW.prototype,"roundedContainer",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],iW.prototype,"amsterdamEnabled",void 0);
_.V([_.Yx({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],iW);
_.k(iW,"ytd-emergency-onebox-renderer",function(){if(O$9!==void 0)return O$9;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return O$9=b},{mode:1});var tw2;_.W2("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var fm=function(){return _.g.apply(this,arguments)||this};
_.z(fm,_.g);fm.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"}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],fm.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],fm.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],fm.prototype,"data",void 0);_.V([_.Yx({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],fm);
_.k(fm,"ytd-exploratory-results-renderer",function(){if(tw2!==void 0)return tw2;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return tw2=b},{mode:1});var rkD;_.W2("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var wu=function(){var b=_.g.apply(this,arguments)||this;b.messageData=null;return b};
_.z(wu,_.g);_.d=wu.prototype;_.d.onServiceRequestCompleted=function(b,h){b=h.actions||[];h=0;for(var y=b.length;h<y;h++){var S=b[h],F=void 0,a=void 0;if((F=_.c(S,_.m8))==null?0:(a=F.item)==null?0:a.messageRenderer)this.messageData=_.c(S,_.m8).item.messageRenderer}};
_.d.dataChanged=function(){var b=this.data;this.hostElement.hidden=!1;_.Zm(this.hostElement,"is-channel",b&&!b.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.d.computeThumbnailWidth=function(b){return b?126:56};
_.d.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.d.onSubmitTap=function(){var b=this.data,h=this.selectedResponseIndex;b!==void 0&&h!==void 0&&(b=b.responses[h],b.responseData&&_.H9().resolve(_.OM).resolveCommand(b.responseData,{form:{element:this.hostElement}}))};
_.d.onDismissTap=function(){this.hostElement.hidden=!0;var b=this.data;b!==void 0&&b.dismissalEndpoint&&_.H9().resolve(_.OM).resolveCommand(b.dismissalEndpoint,{form:{element:this.hostElement}})};
_.d.updateSelectedResponseIndexFromBinding=function(b){this.selectedResponseIndex=b.detail.value};
wu.prototype.onSelectedResponseIndexChange=wu.prototype.onSelectedResponseIndexChange;wu.prototype.dataChanged=wu.prototype.dataChanged;wu.prototype.onServiceRequestCompleted=wu.prototype.onServiceRequestCompleted;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],wu.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],wu.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],wu.prototype,"messageData",void 0);
_.V([_.C(),_.f("design:type",Number)],wu.prototype,"selectedResponseIndex",void 0);_.V([_.to("#submit-button"),_.f("design:type",HTMLButtonElement)],wu.prototype,"submitButton",void 0);_.V([_.u3("yt-service-request-completed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,_.xE]),_.f("design:returntype")],wu.prototype,"onServiceRequestCompleted",null);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],wu.prototype,"dataChanged",null);
_.V([_.OB("selectedResponseIndex"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],wu.prototype,"onSelectedResponseIndexChange",null);_.V([_.Yx({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],wu);
_.k(wu,"ytd-feedback-elicitation-single-question-renderer",function(){if(rkD!==void 0)return rkD;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return rkD=b},{mode:1});var ckD;var lW=function(){return _.g.apply(this,arguments)||this};
_.z(lW,_.g);lW.prototype.computeThumbnailWidth=function(b){return b?602:428};
lW.prototype.updateWideFromBinding=function(b){this.wide=b.detail.value};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],lW.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],lW.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Boolean)],lW.prototype,"wide",void 0);_.V([_.Yx({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],lW);
_.k(lW,"ytd-newspaper-hero-video-renderer",function(){if(ckD!==void 0)return ckD;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return ckD=b},{mode:1});var Rh2;var zhx=function(){return _.g.apply(this,arguments)||this};
_.z(zhx,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],zhx.prototype,"rendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],zhx.prototype,"data",void 0);_.V([_.Yx({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],zhx);
_.k(zhx,"ytd-newspaper-mini-video-renderer",function(){if(Rh2!==void 0)return Rh2;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return Rh2=b},{mode:1});var D5P;_.W2("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var q_=function(){return _.g.apply(this,arguments)||this};
_.z(q_,_.g);q_.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"}}}};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],q_.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],q_.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],q_.prototype,"data",void 0);_.V([_.Yx({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],q_);
_.k(q_,"ytd-newspaper-renderer",function(){if(D5P!==void 0)return D5P;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return D5P=b},{mode:1});var IF_;_.W2("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var xK=function(){var b=_.g.apply(this,arguments)||this;b.isSegment=!1;b.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};b.nextContinuation={continuationType:"playlistVideoListContinuation"};return b};
_.z(xK,_.g);_.d=xK.prototype;_.d.created=function(){var b=this;this.JSC$22489_ytReorderableController=new _.LRW(101,function(h){b.handleDrop(h)})};
_.d.attached=function(){_.H9();var b;(b=_.H9().resolve(_.XS(_.Ks)))!=null&&(b.playlistVideoListElement=this.hostElement)};
_.d.detached=function(){var b;(b=_.H9().resolve(_.XS(_.Ks)))!=null&&(b.playlistVideoListElement=void 0);b=_.H9().resolve(_.XS(_.Qu));_.r("web_enable_voting_animation")&&b&&(b.parentElem=void 0,b.videos=[],b.continuationsPresent=!1,b.showRefreshPill=!1);_.F$(this.JSC$22489_ytReorderableController)};
_.d.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"}}}}}};
_.d.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.d.dataChanged=function(){var b=_.H9().resolve(_.XS(_.Qu));if(_.r("web_enable_voting_animation")&&this.data&&b){var h=_.$x(this.hostElement).querySelector("#contents");h&&(b.parentElem=h);b.addVideos(this.data.contents)}_.F$(this.JSC$22489_ytReorderableController)};
_.d.onRendererstamperFinished=function(){this.canReorder&&_.PP8(this.JSC$22489_ytReorderableController,_.$x(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.d.onPlaylistReloading=function(){this.isReloading=!0};
_.d.onUpdateSetVideoId=function(b){if(b.detail&&this.data&&this.data.contents){var h=b.detail;b=this.data.contents.findIndex(function(F){var a;return((a=F.playlistVideoRenderer)==null?void 0:a.videoId)===h.videoId});
if(!(b<0)&&h.setVideoId&&(this.set("data.contents."+b+".playlistVideoRenderer.setVideoId",h.setVideoId),_.r("web_enable_voting_animation"))){var y;if(b=_.c((y=this.data.contents[b].playlistVideoRenderer)==null?void 0:y.engagementBar,_.ksy)){var S;(S=b.actions)==null||S.forEach(function(F){if(F=_.c(F,_.V_U))F.itemId=h.setVideoId})}(y=_.H9().resolve(_.XS(_.Qu)))&&v$9(y,h.videoId,h.setVideoId)}}};
_.d.computeContentsClass=function(b){return b?"reloading":""};
_.d.computeIsSortable=function(b,h){return b&&h>0&&!this.isSegment&&!_.r("shorts_in_playlists_web")};
_.d.computeIsEditable=function(b){return b};
_.d.computeCanReorder=function(b){return b};
_.d.handlePlaylistRemoveVideosAction=function(b){if(this.get("playlistRemoveVideosAction.setVideoIds",b)&&this.data&&this.data.contents){b=_.c(b,_.YYG).setVideoIds;for(var h=this.data.contents.length-1;h>=0;){var y=this.data.contents[h].playlistVideoRenderer;y&&y.setVideoId&&b.includes(y.setVideoId)&&this.splice("data.contents",h,1);h--}_.F8(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.d.updateIndices=function(){if(this.data&&this.data.contents)for(var b=0;b<this.data.contents.length;b++)this.set("data.contents."+b+".playlistVideoRenderer.index",_.mk(String(b+1)))};
_.d.handleDrop=function(b){b=b.currDragItem;var h=_.C4(b.parentNode.childNodes,b),y=this.data.contents.splice(Number(_.vi(b.data.index))-1,1)[0];this.data.contents.splice(h,0,y);h=h?this.get("contents."+(h-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();b=this.buildReorderServiceEndpoint(b.data.setVideoId,h);this.ytComponentBehavior.resolveCommand(b)};
_.d.buildReorderServiceEndpoint=function(b,h){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",b),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",h),this.data.onReorderEndpoint):null};
_.d.handleUpdatePlaylistAction=function(b){var h;(b=_.c((h=_.c(b,_.T$a))==null?void 0:h.updatedRenderer,_.kvw))&&this.canReorder!==b.canReorder&&this.set("data.canReorder",b.canReorder);b&&b.contents&&(this.set("data.contents",b.contents),this.isReloading=!1);b&&b.continuations&&this.set("data.continuations",b.continuations)};
_.d.handleAddRendererToItemSectionAction=function(b){var h,y=(h=_.c(b,Ft9))==null?void 0:h.renderer,S;y&&((S=_.c(b,Ft9))==null?void 0:S.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,y),b=_.H9().resolve(_.XS(_.Qu)),_.r("web_enable_voting_animation")&&b&&(y&&(h=_.Gs5(y))&&b.recommendedVideos.push({itemId:h,videoId:_.EKq(y),voteCount:_.imI(y),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.d.isVotingEnabledOnPlaylist=function(b){if(!b)return!1;b=_.L(b);for(b=b.next();!b.done;b=b.next()){var h=void 0;return!!_.c((h=b.value.playlistVideoRenderer)==null?void 0:h.engagementBar,_.ksy)}return!1};
_.d.onAppendContinuationItemsActionFinished=function(){var b;this.isVotingEnabledOnPlaylist((b=this.data)==null?void 0:b.contents)&&(this.updateIndices(),b=_.H9().resolve(_.XS(_.Qu)),_.r("web_enable_voting_animation")&&b&&this.data&&b.addVideos(this.data.contents))};
_.d.updateVideoData=function(b){if(b.detail&&this.data&&this.data.contents){var h=b.detail;b=h.toIdx;var y=h.itemId,S=h.newVoteCount,F=h.voteStatus;h=h.hideItem;var a,P,K=(a=this.data)==null?void 0:(P=a.contents)==null?void 0:P.findIndex(function(O){return _.Gs5(O)===y});
if(!(K<0)){a=this.data.contents[K];var n;if((n=a.playlistVideoRenderer)==null?0:n.voteCount)a.playlistVideoRenderer.voteCount=S;var X;if(n=_.c((X=a.playlistVideoRenderer)==null?void 0:X.engagementBar,_.ksy)){var u;(u=n.actions)==null||u.forEach(function(O){(O=_.c(O,_.V_U))&&O.initialState&&(O.initialState.votes=S,O.initialState.status=F)})}this.data.contents.splice(K,1);
h||this.data.contents.splice(b,0,a);this.updateIndices()}}};
xK.prototype.updateVideoData=xK.prototype.updateVideoData;xK.prototype.onAppendContinuationItemsActionFinished=xK.prototype.onAppendContinuationItemsActionFinished;xK.prototype.onUpdateSetVideoId=xK.prototype.onUpdateSetVideoId;xK.prototype.onPlaylistReloading=xK.prototype.onPlaylistReloading;xK.prototype.onRendererstamperFinished=xK.prototype.onRendererstamperFinished;xK.prototype.dataChanged=xK.prototype.dataChanged;
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],xK.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],xK.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],xK.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.JC.YtNextContinuationBehavior),_.f("design:type",Object)],xK.prototype,"ytNextContinuationBehavior",void 0);
_.V([_.B(_.p1),_.f("design:type",Object)],xK.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],xK.prototype,"ytComponentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],xK.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Boolean)],xK.prototype,"isReloading",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],xK.prototype,"isSegment",void 0);
_.V([_.C({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.f("design:type",Boolean)],xK.prototype,"isSortable",void 0);_.V([_.C({computed:"computeIsEditable(data.isEditable)"}),_.f("design:type",Boolean)],xK.prototype,"isEditable",void 0);_.V([_.C({computed:"computeCanReorder(data.canReorder)"}),_.f("design:type",Boolean)],xK.prototype,"canReorder",void 0);
_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],xK.prototype,"dataChanged",null);_.V([_.u3("yt-rendererstamper-finished"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],xK.prototype,"onRendererstamperFinished",null);_.V([_.u3("yt-playlist-reloading"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],xK.prototype,"onPlaylistReloading",null);
_.V([_.u3("yt-update-set-video-id"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],xK.prototype,"onUpdateSetVideoId",null);_.V([_.u3("yt-append-continuation-items-action-finished"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],xK.prototype,"onAppendContinuationItemsActionFinished",null);
_.V([_.u3("yt-update-video-data-voting-animation"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],xK.prototype,"updateVideoData",null);_.V([_.Yx({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],xK);
_.k(xK,"ytd-playlist-video-list-renderer",function(){if(IF_!==void 0)return IF_;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return IF_=b},{mode:_.Lt("kevlar_poly_si_batch_j047")?1:2});var B3J;var Q2=function(){return _.g.apply(this,arguments)||this};
_.z(Q2,_.g);Q2.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"}}}}};
Q2.prototype.onTextWrapperTap=function(b){var h=this.data&&this.data.navigationEndpoint;h&&!_.mf(_.Qk(b),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.Sx(this.hostElement,"yt-navigate",{endpoint:h})};
Q2.prototype.dataChanged=function(){var b=this.get("data.offerButton.buttonRenderer.serviceEndpoint");b&&b.commandMetadata&&_.c(b.commandMetadata,_.Sg)&&_.c(b.commandMetadata,_.Sg).fireAutomatically&&_.H9().resolve(_.OM).resolveCommand(b,{form:{element:this.hostElement}})};
Q2.prototype.dataChanged=Q2.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Q2.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Q2.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Wg),_.f("design:type",Object)],Q2.prototype,"ytdLockupBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Q2.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,value:function(){return _.r("enable_desktop_search_bigger_thumbs")}}),
_.f("design:type",Boolean)],Q2.prototype,"useBiggerThumbs",void 0);_.V([_.C({reflectToAttribute:!0,value:function(){return _.rH("desktop_search_bigger_thumbs_style")}}),
_.f("design:type",String)],Q2.prototype,"biggerThumbsStyle",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],Q2.prototype,"leftAligned",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Q2.prototype,"dataChanged",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-movie-renderer"})],Q2);
_.k(Q2,"ytd-movie-renderer",function(){if(B3J!==void 0)return B3J;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return B3J=b},{mode:1});var Wtf;var mT=function(){var b=_.g.apply(this,arguments)||this;b.rounded=!0;b.pageAttachedTo=void 0;b.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return b};
_.z(mT,_.g);mT.prototype.attached=function(){this.pageAttachedTo=_.H9().resolve(_.bM).getCurrentPage();_.Sx(this.hostElement,"yt-player-attached",this.player)};
mT.prototype.detached=function(){var b;if((b=this.pageAttachedTo)==null?0:b.hostElement)_.Sx(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
mT.prototype.dataChanged=function(){var b;if((b=this.data)==null?0:b.videoId)b={video_id:this.data.videoId,autoplay:!0},!_.r("miniplayer_stop_channel_video_autoplay_killswitch")&&_.H9().resolve(_.Vp).isMiniplayerActive()&&(b.pause_at_start=!0,b.autoplay=!1),this.player.loadVideoWithPlayerVars(b)};
mT.prototype.handleSignalActionPausePlayer=function(){_.Sa().pause()};
mT.prototype.dataChanged=mT.prototype.dataChanged;_.V([_.C(),_.f("design:type",Object)],mT.prototype,"data",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],mT.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],mT.prototype,"ytActionHandlerBehavior",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],mT.prototype,"rounded",void 0);_.V([_.to("#player"),_.f("design:type",Object)],mT.prototype,"player",void 0);
_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],mT.prototype,"dataChanged",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],mT);
_.k(mT,"ytd-channel-video-player-renderer",function(){if(Wtf!==void 0)return Wtf;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return Wtf=b},{mode:1});var Ak2;var U5M;var pER;var vG=function(){var b=_.g.apply(this,arguments)||this;b.playing=!1;b.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.mM(b);b.active=!1;return b};
_.z(vG,_.g);_.d=vG.prototype;_.d.detached=function(){this.stop()};
_.d.play=function(){var b=this,h,y,S,F,a;return _.Z(function(P){if(P.nextAddress==1)return b.active=!0,h=b.get("data.inlinePlaybackEndpoint.watchEndpoint"),y=h.videoId||b.data.videoId,S=h.startTimeSeconds||0,F=h.playerParams||null,_.r("kevlar_player_update_killswitch")?P.yield(b.playerEl.update({args:{video_id:y,startSeconds:S,player_params:F}}),2):(b.playerEl.loadVideoWithPlayerVars({video_id:y,startSeconds:S,player_params:F,autoplay:!0}),P.jumpTo(2));if(P.nextAddress!=4)return P.yield(b.playerEl.getPlayerPromise(),
4);a=P.yieldResult;a.unloadModule("annotations_module");a.addEventListener("onStateChange",function(K){b.onPlayerStateChange(K)});
_.g3(P)})};
_.d.onPlayerStateChange=function(b){if(this.active)switch(this.playing=b===1,b){case 1:_.Sx(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.Sx(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.d.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.d.resize=function(){var b=this,h;return _.Z(function(y){if(y.nextAddress==1)return y.yield(b.playerEl.getPlayerPromise(),2);h=y.yieldResult;h.setSize(NaN,NaN);_.g3(y)})};
_.V([_.C(),_.f("design:type",Object)],vG.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],vG.prototype,"playing",void 0);_.V([_.C(),_.f("design:type",Object)],vG.prototype,"playerId",void 0);_.V([_.to("#player"),_.f("design:type",Object)],vG.prototype,"playerEl",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],vG);
_.k(vG,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(pER!==void 0)return pER;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return pER=b},{mode:1});var JkR;var eh9;var bb=function(){var b=_.g.apply(this,arguments)||this;b.width=0;return b};
_.z(bb,_.g);_.d=bb.prototype;_.d.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.Hl(this,this.onEnded));this.mp4El.addEventListener("error",_.Hl(this,this.onError))};
_.d.detached=function(){this.videoEl.removeEventListener("ended",_.Hl(this,this.onEnded));this.mp4El.removeEventListener("error",_.Hl(this,this.onError))};
_.d.play=function(){var b=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var h=this.videoEl.play();h?h.then(function(){b.handleVideoStartPlaying()}).catch(function(){_.Sx(b.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.Sx(this.hostElement,"yt-video-thumbnail-not-playing")};
_.d.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.d.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.d.dataChanged=function(){var b;if((b=this.data)==null?0:b.thumbnailPlaceholder)b=_.Ss(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+b+")";this.stop();this.autoplay&&this.play()};
_.d.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.d.onEnded=function(){this.stop();_.Sx(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.d.onError=function(){_.Sx(this.hostElement,"yt-video-thumbnail-error")};
_.d.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.d.getVideoThumbnail=function(b){if(b&&b.length)return b[0]};
bb.prototype.dataChanged=bb.prototype.dataChanged;_.V([_.C(),_.f("design:type",Object)],bb.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],bb.prototype,"animatePlaceholderOnEntrance",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],bb.prototype,"autoplay",void 0);_.V([_.C({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.f("design:type",Object)],bb.prototype,"videoThumbnail",void 0);
_.V([_.C(),_.f("design:type",Boolean)],bb.prototype,"loop",void 0);_.V([_.C(),_.f("design:type",Boolean)],bb.prototype,"isVideoPlaying",void 0);_.V([_.C(),_.f("design:type",Object)],bb.prototype,"width",void 0);_.V([_.to("#mp4"),_.f("design:type",HTMLElement)],bb.prototype,"mp4El",void 0);_.V([_.to("#placeholder"),_.f("design:type",HTMLElement)],bb.prototype,"placeholderEl",void 0);_.V([_.to("#video"),_.f("design:type",HTMLVideoElement)],bb.prototype,"videoEl",void 0);
_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],bb.prototype,"dataChanged",null);_.V([_.sB({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],bb);
_.k(bb,"yt-video-as-thumbnail-details",function(){if(eh9===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;JkR===void 0&&(JkR=document.createElement("template"));var S=JkR;y.call(h,S.content.cloneNode(!0),b.content.firstChild);eh9=b}b=eh9;return b},{mode:2});var hH=function(){var b=_.g.apply(this,arguments)||this;b.disableGridStateAware=!1;b.animationEnabled=_.r("enable_web_ketchup_hero_animation");b.transitioningOut=!1;b.narrow=!1;b.narrower=!1;b.isCarouselInFeed=!1;b.videoTimeoutJobId=0;b.panelTimeoutJobId=0;b.panelTimeoutJobStartMs=0;b.actionMap={"yt-window-resized":"onWindowResized"};return b};
_.z(hH,_.g);_.d=hH.prototype;_.d.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.d.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.d.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var b;this.player&&((b=this.data)==null?0:b.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.d.attached=function(){this.onWindowResized()};
_.d.detached=function(){this.clearTimeouts()};
_.d.onWindowResized=function(){this.updateSize()};
_.d.computePanelLayout=function(b){return b&&b.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.d.playVideo=function(){var b;this.video&&((b=this.data)==null?0:b.videoThumbnail)&&this.video.play();var h;this.player&&((h=this.data)==null?0:h.inlinePlaybackRenderer)&&this.player.play()};
_.d.stopVideo=function(){var b;this.video&&((b=this.data)==null?0:b.videoThumbnail)&&this.video.stop();var h;this.player&&((h=this.data)==null?0:h.inlinePlaybackRenderer)&&this.player.stop()};
_.d.transitionOut=function(){var b=this;this.transitioningOut=!0;return new Promise(function(h){b.player&&(b.player.playing=!1);var y=_.$x(b.hostElement).querySelector("#action-button");if(y){var S=function(){y.removeEventListener("animationend",S);_.xP.cancelJob(F);h();b.transitioningOut=!1};
var F=_.VT(_.xP,S,1E3);y.addEventListener("animationend",S)}else h(),b.transitioningOut=!1})};
_.d.computeMetadataOrder=function(b){return b&&b.metadataOrder&&b.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?b.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.d.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.d.computeAvatarSize=function(b){return b&&b.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.d.onContentClick=function(b){if(!_.mf(_.Qk(b),this.hostElement,["A".toString(),"BUTTON".toString()])){var h;if((h=this.data)==null?0:h.navigationEndpoint){var y;this.componentBehavior.resolveCommand((y=this.data)==null?void 0:y.navigationEndpoint)}}};
_.d.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.d.setBackgroundImage=function(b){if(b=this.getBackgroundImageUrl(b))_.$x(this.hostElement).querySelector("#hero").style.backgroundImage="url("+b+")"};
_.d.setScrimLayer=function(b){var h=this.getScrimLayerColorStops(b);b=((b==null?void 0:b.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(b=180);_.QC("HTML_DIR")==="rtl"&&(b=-b);h&&(_.$x(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+b+"deg, "+h+")")};
_.d.isNarrower=function(){return this.hostElement.clientWidth<hH.NARROW_VERSION_SIZE};
_.d.getScrimLayerColorStops=function(){var b,h=(b=this.data)==null?void 0:b.scrimColorValues;if(!h)return null;if(h.length===1)return b=_.CR(h[0]),b+" 0%, "+b+" 100%";if(h.length===3){var y=[0,72,98];return h.map(function(S,F){return _.CR(S)+" "+y[F]+"%"}).join(",")}return null};
_.d.getBackgroundImageUrl=function(b){return b&&b.largeFormFactorBackgroundThumbnail?_.Ss((b.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||b.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.d.onPlaying=function(){this.startVideoTimeout()};
_.d.onEnded=function(){this.rotate()};
_.d.startPanelTimeout=function(){var b=this;if(!this.panelTimeoutJobId){var h=this.get("data.minPanelDisplayDurationMs");h&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.VT(_.xP,function(){b.rotate()},h))}};
_.d.startVideoTimeout=function(){var b=this;if(!this.videoTimeoutJobId){_.xP.cancelJob(this.panelTimeoutJobId);var h=Date.now()-this.panelTimeoutJobStartMs;h=Math.max(0,this.get("data.minPanelDisplayDurationMs")-h);h=Math.max(this.get("data.minVideoPlayDurationMs")||0,h);this.videoTimeoutJobId=_.VT(_.xP,function(){b.rotate()},h)}};
_.d.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.xP.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.xP.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.d.rotate=function(){this.clearTimeouts();_.Sx(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.tm.Object.defineProperties(hH.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.$x(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.$x(this.hostElement).querySelector("#video")}}});
_.tm.Object.defineProperties(hH,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
hH.prototype.onEnded=hH.prototype.onEnded;hH.prototype.onPlaying=hH.prototype.onPlaying;hH.prototype.dataChanged=hH.prototype.dataChanged;_.V([_.B(_.Rp),_.f("design:type",Object)],hH.prototype,"ytdGridStateAwareBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],hH.prototype,"componentBehavior",void 0);_.V([_.B(_.DV.YtdGuideStateAwareBehavior),_.f("design:type",Object)],hH.prototype,"ytdGuideStateAwareBehavior",void 0);
_.V([_.B(_.aEf),_.f("design:type",Object)],hH.prototype,"ytBooleanLogicBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],hH.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],hH.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],hH.prototype,"ytRendererBehavior",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],hH.prototype,"disableGridStateAware",void 0);_.V([_.C(),_.f("design:type",Object)],hH.prototype,"data",void 0);_.V([_.C({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.f("design:type",String)],hH.prototype,"panelLayout",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],hH.prototype,"animationEnabled",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],hH.prototype,"transitioningOut",void 0);
_.V([_.C({computed:"computeMetadataOrder(data)"}),_.f("design:type",Boolean)],hH.prototype,"metadataOrder",void 0);_.V([_.C({computed:"computeByline(data)"}),_.f("design:type",Object)],hH.prototype,"byline",void 0);_.V([_.C({computed:"computeAvatarSize(data)"}),_.f("design:type",Number)],hH.prototype,"avatarSize",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],hH.prototype,"narrow",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],hH.prototype,"narrower",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],hH.prototype,"layoutStyle",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],hH.prototype,"isCarouselInFeed",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],hH.prototype,"dataChanged",null);_.V([_.u3("yt-default-promo-panel-renderer-playing"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],hH.prototype,"onPlaying",null);
_.V([_.u3("yt-default-promo-panel-renderer-ended"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],hH.prototype,"onEnded",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],hH);
_.k(hH,"ytd-default-promo-panel-renderer",function(){if(U5M!==void 0)return U5M;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return U5M=b},{mode:1});_.W2("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var yK=function(){var b=_.g.apply(this,arguments)||this;b.narrower=!1;b.dotMenuVisible=!1;b.paginationThumbnailsVisible=!1;b.active=!0;b.disableGridStateAware=!1;b.actionMap={"yt-window-resized":"onWindowResized"};return b};
_.z(yK,_.g);_.d=yK.prototype;_.d.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]]"}}}}}};
_.d.attached=function(){document.addEventListener("yt-page-type-changed",_.Hl(this,this.onPageTypeChange));this.currentPageSubtype=_.PHN(location.pathname);this.onWindowResized()};
_.d.detached=function(){this.jobId&&_.xP.cancelJob(this.jobId);this.updateSizeJobId&&_.xP.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.Hl(this,this.onPageTypeChange))};
_.d.onPageTypeChange=function(b){this.active=b.detail.newPageSubtype===this.currentPageSubtype};
_.d.onWindowResized=function(){this.updateSize()};
_.d.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.d.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.d.setCarouselItem=function(b){b>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.xP.cancelJob(this.jobId);var h=this.getCurrentPanelElement();h&&h.stopVideo();this.currentItemIndex=b%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(h||(h=this.getCurrentPanelElement()),h.playVideo()):this.startRotationJob()};
_.d.scrollThumbnails=function(b){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var h=this.getCurrentPaginationElement();if(h){var y=_.$x(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?y.style.transform="translateX(0)":(h=h.offsetWidth+8,y.style.transform="translateX(-"+h*(b-Math.ceil(Math.floor(this.overlay.offsetWidth/h)/2)+1)+"px)")}}};
_.d.onDataChanged=function(){var b=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.N$(_.xP,function(){var h;(h=b.getCurrentPanelElement())==null||h.updateSize();b.updateSize()}))};
_.d.getCurrentPanelElement=function(){return _.$x(_.$x(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.d.getCurrentPaginationElement=function(){return _.$x(_.$x(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.d.getNavigationClass=function(b,h){return b===h?"selected":""};
_.d.getNavigationDurationStyle=function(b){return"animation-duration:"+(this.get("data.carouselItems."+b+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.d.onNavigationTap=function(b){var h=this,y=b.model.index;y!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){h.setCarouselItem(y)}),this.autorotateActive=!1)};
_.d.onVideoThumbnailEnded=function(){var b=this;if(this.shouldRotate()){var h=this.getCurrentPaginationElement();h&&(h.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){h.classList.remove("finished");b.setNextCarouselItem()}))}};
_.d.onVideoThumbnailError=function(){this.startRotationJob()};
_.d.onVideoNotPlaying=function(){this.startRotationJob()};
_.d.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.d.startRotationJob=function(){var b=this;_.xP.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.xP.addLowPriorityJob(function(){b.getCurrentPanelElement().transitionOut().then(function(){b.setNextCarouselItem()})},this.rotationTimeout))};
_.d.computeDotMenuVisible=function(b,h){return!!b&&!!b.carouselItems&&b.carouselItems.length>1&&!b.paginationThumbnails||!!h};
_.d.computePaginationThumbnailsVisible=function(b,h){var y,S;return((S=b==null?void 0:(y=b.paginationThumbnails)==null?void 0:y.length)!=null?S:0)>1&&!h};
_.d.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.d.computePaginatorAlignment=function(b){return(b==null?void 0:b.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.d.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.d.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.d.isNarrower=function(b){return(b!=null?b:0)<hH.NARROW_VERSION_SIZE};
yK.prototype.activeChanged=yK.prototype.activeChanged;yK.prototype.onVideoNotPlaying=yK.prototype.onVideoNotPlaying;yK.prototype.onVideoThumbnailError=yK.prototype.onVideoThumbnailError;yK.prototype.onVideoThumbnailEnded=yK.prototype.onVideoThumbnailEnded;yK.prototype.onDataChanged=yK.prototype.onDataChanged;_.V([_.B(_.Rp),_.f("design:type",Object)],yK.prototype,"ytdGridStateAwareBehavior",void 0);
_.V([_.B(_.DV.YtdGuideStateAwareBehavior),_.f("design:type",Object)],yK.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],yK.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],yK.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],yK.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],yK.prototype,"currentItem",void 0);
_.V([_.C(),_.f("design:type",Number)],yK.prototype,"currentItemIndex",void 0);_.V([_.C(),_.f("design:type",Number)],yK.prototype,"rotationTimeout",void 0);_.V([_.C(),_.f("design:type",Number)],yK.prototype,"loopCount",void 0);_.V([_.C({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.f("design:type",String)],yK.prototype,"paginatorAlignment",void 0);_.V([_.C(),_.f("design:type",Number)],yK.prototype,"jobId",void 0);
_.V([_.C(),_.f("design:type",Number)],yK.prototype,"updateSizeJobId",void 0);_.V([_.C({value:!1,reflectToAttribute:!0}),_.f("design:type",Boolean)],yK.prototype,"isCarouselInFeed",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],yK.prototype,"narrower",void 0);_.V([_.C({computed:"computeDotMenuVisible(data, narrower)"}),_.f("design:type",Object)],yK.prototype,"dotMenuVisible",void 0);
_.V([_.C({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.f("design:type",Object)],yK.prototype,"paginationThumbnailsVisible",void 0);_.V([_.C({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.f("design:type",String)],yK.prototype,"layoutType",void 0);_.V([_.C({value:!0,reflectToAttribute:!0}),_.f("design:type",Boolean)],yK.prototype,"autorotateActive",void 0);_.V([_.C(),_.f("design:type",Object)],yK.prototype,"active",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],yK.prototype,"disableGridStateAware",void 0);_.V([_.to("#overlay"),_.f("design:type",HTMLElement)],yK.prototype,"overlay",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],yK.prototype,"onDataChanged",null);
_.V([_.u3("yt-video-thumbnail-ended"),_.u3("yt-default-promo-panel-renderer-rotate"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],yK.prototype,"onVideoThumbnailEnded",null);_.V([_.u3("yt-video-thumbnail-error"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],yK.prototype,"onVideoThumbnailError",null);
_.V([_.u3("yt-video-thumbnail-not-playing"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],yK.prototype,"onVideoNotPlaying",null);_.V([_.zj("active"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],yK.prototype,"activeChanged",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],yK);
_.k(yK,"ytd-carousel-item-renderer",function(){if(Ak2!==void 0)return Ak2;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return Ak2=b},{mode:2});var CZ9;var gfM;var ssR;var Y3R;var S8=function(){var b=_.g.apply(this,arguments)||this;b.originalQuery=null;b.originalEndpoint=null;return b};
_.z(S8,_.g);S8.prototype.computeShowOriginalQueryWithoutEndpoint_=function(b,h){return!(!b||h)};
_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],S8.prototype,"ytComponentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],S8.prototype,"correctedText",void 0);_.V([_.C(),_.f("design:type",Object)],S8.prototype,"correctedQuery",void 0);_.V([_.C(),_.f("design:type",Object)],S8.prototype,"correctedEndpoint",void 0);_.V([_.C(),_.f("design:type",Object)],S8.prototype,"originalText",void 0);_.V([_.C(),_.f("design:type",Object)],S8.prototype,"originalQuery",void 0);
_.V([_.C(),_.f("design:type",Object)],S8.prototype,"originalEndpoint",void 0);_.V([_.C({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.f("design:type",Boolean)],S8.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.V([_.sB({is:"yt-search-query-correction",disableElementRegistration:!0})],S8);
_.k(S8,"yt-search-query-correction",function(){if(Y3R===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;ssR===void 0&&(ssR=document.createElement("template"));var S=ssR;y.call(h,S.content.cloneNode(!0),b.content.firstChild);Y3R=b}b=Y3R;return b},{mode:2});_.W2("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var T39=function(){return _.g.apply(this,arguments)||this};
_.z(T39,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],T39.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],T39.prototype,"data",void 0);_.V([_.sB({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],T39);
_.k(T39,"yt-did-you-mean-renderer",function(){if(gfM===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;CZ9===void 0&&(CZ9=document.createElement("template"));var S=CZ9;y.call(h,S.content.cloneNode(!0),b.content.firstChild);gfM=b}b=gfM;return b},{mode:2});var GHc;var kHf;_.W2("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var Vw2=function(){return _.g.apply(this,arguments)||this};
_.z(Vw2,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Vw2.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Vw2.prototype,"data",void 0);_.V([_.sB({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],Vw2);
_.k(Vw2,"yt-including-results-for-renderer",function(){if(kHf===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;GHc===void 0&&(GHc=document.createElement("template"));var S=GHc;y.call(h,S.content.cloneNode(!0),b.content.firstChild);kHf=b}b=kHf;return b},{mode:2});var Ef_;var i$A;_.W2("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var FO=function(){return _.g.apply(this,arguments)||this};
_.z(FO,_.g);FO.prototype.computeExtraClasses_=function(b,h){var y="";b&&(y+=" "+b.toLowerCase().replace(/_/g,"-"));h&&(y+=" "+h.toLowerCase().replace(/_/g,"-"));return y};
FO.prototype.computeUrlImg_=function(){var b=this.data;b.image&&(_.$x(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.Ss(b.image.thumbnails,Number.MAX_VALUE)+")")};
FO.prototype.computeUrlImg_=FO.prototype.computeUrlImg_;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],FO.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],FO.prototype,"data",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],FO.prototype,"computeUrlImg_",null);_.V([_.sB({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],FO);
_.k(FO,"yt-music-pass-feature-info-renderer",function(){if(i$A===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;Ef_===void 0&&(Ef_=document.createElement("template"));var S=Ef_;y.call(h,S.content.cloneNode(!0),b.content.firstChild);i$A=b}b=i$A;return b},{mode:2});var fF9;var wE2;_.W2("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var lFD=function(){return _.g.apply(this,arguments)||this};
_.z(lFD,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],lFD.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],lFD.prototype,"data",void 0);_.V([_.sB({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],lFD);
_.k(lFD,"yt-no-results-found-showing-results-for-renderer",function(){if(wE2===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;fF9===void 0&&(fF9=document.createElement("template"));var S=fF9;y.call(h,S.content.cloneNode(!0),b.content.firstChild);wE2=b}b=wE2;return b},{mode:2});var q3M;var x5f;_.W2("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var QsA=function(){return _.g.apply(this,arguments)||this};
_.z(QsA,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],QsA.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],QsA.prototype,"data",void 0);_.V([_.sB({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],QsA);
_.k(QsA,"yt-results-without-quotes-renderer",function(){if(x5f===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;q3M===void 0&&(q3M=document.createElement("template"));var S=q3M;y.call(h,S.content.cloneNode(!0),b.content.firstChild);x5f=b}b=x5f;return b},{mode:2});var m5D;var vfc;_.W2("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var bDR=function(){return _.g.apply(this,arguments)||this};
_.z(bDR,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],bDR.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],bDR.prototype,"data",void 0);_.V([_.sB({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],bDR);
_.k(bDR,"yt-search-no-results-renderer",function(){if(vfc===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;m5D===void 0&&(m5D=document.createElement("template"));var S=m5D;y.call(h,S.content.cloneNode(!0),b.content.firstChild);vfc=b}b=vfc;return b},{mode:2});var hX_;var yg_;_.W2("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var SS9=function(){return _.g.apply(this,arguments)||this};
_.z(SS9,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],SS9.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],SS9.prototype,"data",void 0);_.V([_.sB({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],SS9);
_.k(SS9,"yt-showing-results-for-renderer",function(){if(yg_===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;hX_===void 0&&(hX_=document.createElement("template"));var S=hX_;y.call(h,S.content.cloneNode(!0),b.content.firstChild);yg_=b}b=yg_;return b},{mode:2});var FQp;var aKP;var dzx;var jaL;var ag=function(){var b=_.g.apply(this,arguments)||this;b.answerExpanded=!1;return b};
_.z(ag,_.g);ag.prototype.toggleAnswer_=function(b){var h=_.mi(b);h&&h.classList.contains("yt-simple-endpoint")||(b.preventDefault(),b.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
ag.prototype.toggleAnswer_=ag.prototype.toggleAnswer_;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],ag.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],ag.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],ag.prototype,"answerExpanded",void 0);_.V([_.u3("tap"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],ag.prototype,"toggleAnswer_",null);
_.V([_.sB({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],ag);
_.k(ag,"yt-generic-faq-question-renderer",function(){if(jaL===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;dzx===void 0&&(dzx=document.createElement("template"));var S=dzx;y.call(h,S.content.cloneNode(!0),b.content.firstChild);jaL=b}b=jaL;return b},{mode:2});_.W2("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var dL=function(){return _.g.apply(this,arguments)||this};
_.z(dL,_.g);dL.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],dL.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],dL.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],dL.prototype,"data",void 0);_.V([_.sB({is:"yt-faq-section-renderer",disableElementRegistration:!0})],dL);
_.k(dL,"yt-faq-section-renderer",function(){if(aKP===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;FQp===void 0&&(FQp=document.createElement("template"));var S=FQp;y.call(h,S.content.cloneNode(!0),b.content.firstChild);aKP=b}b=aKP;return b},{mode:2});var $z$;var LQ$;_.W2("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var j8=function(){return _.g.apply(this,arguments)||this};
_.z(j8,_.g);
j8.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"}}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],j8.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],j8.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],j8.prototype,"data",void 0);_.V([_.sB({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],j8);
_.k(j8,"yt-offer-item-expanded-renderer",function(){if(LQ$===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;$z$===void 0&&($z$=document.createElement("template"));var S=$z$;y.call(h,S.content.cloneNode(!0),b.content.firstChild);LQ$=b}b=LQ$;return b},{mode:2});var PRp;var KQ$;_.W2("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var $5=function(){return _.g.apply(this,arguments)||this};
_.z($5,_.g);
$5.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"}}}}};
$5.prototype.computeFullWidthMode=function(b){return!(!b||!b.fullWidthMode)};
$5.prototype.computeBorderlessMode=function(b){return!(!b||!b.borderlessMode)};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],$5.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],$5.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],$5.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.f("design:type",Boolean)],$5.prototype,"fullWidthMode",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.f("design:type",Boolean)],$5.prototype,"borderlessMode",void 0);_.V([_.sB({is:"yt-offer-item-renderer",disableElementRegistration:!0})],$5);
_.k($5,"yt-offer-item-renderer",function(){if(KQ$===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;PRp===void 0&&(PRp=document.createElement("template"));var S=PRp;y.call(h,S.content.cloneNode(!0),b.content.firstChild);KQ$=b}b=KQ$;return b},{mode:2});var ZD2;var obJ;_.W2("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var LQ=function(){return _.g.apply(this,arguments)||this};
_.z(LQ,_.g);LQ.prototype.computeAriaLevel_=function(b){return this.getLevelID_(b)};
LQ.prototype.getLevelID_=function(b){return(b=b.match(/[0-9]+$/))&&b.length==1?b[0]:"1"};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],LQ.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],LQ.prototype,"data",void 0);_.V([_.C({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.f("design:type",String)],LQ.prototype,"ariaLevel",void 0);_.V([_.C({value:"heading",reflectToAttribute:!0}),_.f("design:type",String)],LQ.prototype,"role",void 0);
_.V([_.C({value:-1,reflectToAttribute:!0}),_.f("design:type",Number)],LQ.prototype,"tabindex",void 0);_.V([_.sB({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],LQ);
_.k(LQ,"yt-subscription-product-header-renderer",function(){if(obJ===void 0){var b=document.createElement("template");_.D(b,"\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");b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;ZD2===void 0&&(ZD2=document.createElement("template"));var S=ZD2;y.call(h,S.content.cloneNode(!0),b.content.firstChild);obJ=b}b=obJ;return b},{mode:2});var MFJ;var nbJ;_.W2("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var Pp=function(){return _.g.apply(this,arguments)||this};
_.z(Pp,_.g);Pp.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:_.A4("menuRenderer"),events:!0}}};
Pp.prototype.onStampFinished_=function(){_.$x(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
Pp.prototype.onStampFinished_=Pp.prototype.onStampFinished_;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Pp.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Pp.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Pp.prototype,"data",void 0);_.V([_.u3("yt-rendererstamper-finished"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Pp.prototype,"onStampFinished_",null);
_.V([_.sB({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],Pp);
_.k(Pp,"yt-subscription-product-renderer",function(){if(nbJ===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;MFJ===void 0&&(MFJ=document.createElement("template"));var S=MFJ;y.call(h,S.content.cloneNode(!0),b.content.firstChild);nbJ=b}b=nbJ;return b},{mode:2});var XB_;var HD9;_.W2("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var KQ=function(){return _.g.apply(this,arguments)||this};
_.z(KQ,_.g);KQ.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
KQ.prototype.imageScrimColorValuesChanged_=function(){var b,h=(b=this.data)==null?void 0:b.imageScrimColorValues;_.$x(this.hostElement).querySelector("#scrim").style.backgroundColor=h?_.CR(h[0]):"transparent"};
KQ.prototype.imageScrimColorValuesChanged_=KQ.prototype.imageScrimColorValuesChanged_;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],KQ.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],KQ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],KQ.prototype,"data",void 0);
_.V([_.OB("data.imageScrimColorValues"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],KQ.prototype,"imageScrimColorValuesChanged_",null);_.V([_.sB({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],KQ);
_.k(KQ,"yt-subscription-product-upsell-offer-renderer",function(){if(HD9===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;XB_===void 0&&(XB_=document.createElement("template"));var S=XB_;y.call(h,S.content.cloneNode(!0),b.content.firstChild);HD9=b}b=HD9;return b},{mode:2});var uXp;var ODJ;var N1p;var tFJ;var rgP;var cg9;var ZO=function(){return _.g.apply(this,arguments)||this};
_.z(ZO,_.g);ZO.prototype.onYtServiceRequestError_=function(b){_.lM(this.hostElement,b.detail.error.message)};
ZO.prototype.onYtServiceRequestError_=ZO.prototype.onYtServiceRequestError_;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],ZO.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],ZO.prototype,"data",void 0);_.V([_.C({value:!1,reflectToAttribute:!0}),_.f("design:type",Boolean)],ZO.prototype,"collapsible",void 0);_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],ZO.prototype,"isManageRed",void 0);
_.V([_.u3("yt-service-request-error"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],ZO.prototype,"onYtServiceRequestError_",null);_.V([_.sB({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],ZO);
_.k(ZO,"yt-single-ypc-offer-renderer",function(){if(cg9===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;rgP===void 0&&(rgP=document.createElement("template"));var S=rgP;y.call(h,S.content.cloneNode(!0),b.content.firstChild);cg9=b}b=cg9;return b},{mode:2});var og=function(){return _.g.apply(this,arguments)||this};
_.z(og,_.g);og.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],og.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],og.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],og.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],og.prototype,"isManageRed",void 0);_.V([_.sB({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],og);
_.k(og,"yt-single-ypc-offer-list-renderer",function(){if(tFJ===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;N1p===void 0&&(N1p=document.createElement("template"));var S=N1p;y.call(h,S.content.cloneNode(!0),b.content.firstChild);tFJ=b}b=tFJ;return b},{mode:2});var RXf;var zX9;_.W2("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var MV=function(){return _.g.apply(this,arguments)||this};
_.z(MV,_.g);MV.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],MV.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],MV.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],MV.prototype,"data",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],MV.prototype,"isManageRed",void 0);_.V([_.sB({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],MV);
_.k(MV,"yt-ypc-offers-list-renderer",function(){if(zX9===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;RXf===void 0&&(RXf=document.createElement("template"));var S=RXf;y.call(h,S.content.cloneNode(!0),b.content.firstChild);zX9=b}b=zX9;return b},{mode:2});_.W2("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var nQ=function(){return _.g.apply(this,arguments)||this};
_.z(nQ,_.g);
nQ.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}}}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],nQ.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],nQ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],nQ.prototype,"data",void 0);_.V([_.sB({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],nQ);
_.k(nQ,"yt-unlimited-manage-subscription-page-renderer",function(){if(ODJ===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;uXp===void 0&&(uXp=document.createElement("template"));var S=uXp;y.call(h,S.content.cloneNode(!0),b.content.firstChild);ODJ=b}b=ODJ;return b},{mode:2});var DzL;var IK$;var XO=function(){return _.g.apply(this,arguments)||this};
_.z(XO,_.g);_.d=XO.prototype;_.d.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.d.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.d.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.d.onKeypress_=function(b){b.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.d.handleHeaderTap_=function(b){b.preventDefault();b.stopPropagation();this.expandOffers_()};
_.d.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.d.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
XO.prototype.dataChanged_=XO.prototype.dataChanged_;_.V([_.B(_.xq),_.f("design:type",Object)],XO.prototype,"ironA11yKeysBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],XO.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],XO.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],XO.prototype,"data",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],XO.prototype,"offersVisible_",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],XO.prototype,"dataChanged_",null);_.V([_.sB({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],XO);
_.k(XO,"yt-collapsible-ypc-offer-renderer",function(){if(IK$===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;DzL===void 0&&(DzL=document.createElement("template"));var S=DzL;y.call(h,S.content.cloneNode(!0),b.content.firstChild);IK$=b}b=IK$;return b},{mode:2});var B1$;var WQL;_.W2("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var Hp=function(){return _.g.apply(this,arguments)||this};
_.z(Hp,_.g);_.d=Hp.prototype;_.d.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.d.dataChanged_=function(){if(this.data.backgroundImage){var b=_.Ss(this.data.backgroundImage.thumbnails,screen.width),h=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=h?"linear-gradient(180deg, "+h+"), url("+b+")":"url("+b+")";this.data.gtmId&&_.dc(this.data.gtmId,_.QC("GL",""))}};
_.d.onYtServiceRequestError_=function(b){_.lM(this.hostElement,b.detail.error.message)};
_.d.getScrimLayerColorStops_=function(){var b,h,y=(b=this.data.unlimitedHeaderV2Data)==null?void 0:(h=b.unlimitedHeaderV2Data)==null?void 0:h.scrimLayerColors;if(!y)return null;var S=100/y.length;return y.map(function(F,a){a*=S;return _.CR(F)+" "+a+"%"}).join(",")};
_.d.computeLogoWithPadding=function(b){var h,y,S;return(b=(h=b.unlimitedLogoImage)==null?void 0:(y=h.thumbnails)==null?void 0:(S=y[0])==null?void 0:S.height)&&b%31===0?!0:!1};
Hp.prototype.onYtServiceRequestError_=Hp.prototype.onYtServiceRequestError_;Hp.prototype.dataChanged_=Hp.prototype.dataChanged_;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Hp.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Hp.prototype,"ytRendererBehavior",void 0);_.V([_.C({computed:"computeLogoWithPadding(data)"}),_.f("design:type",Boolean)],Hp.prototype,"logoWithPadding",void 0);
_.V([_.C(),_.f("design:type",Object)],Hp.prototype,"data",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Hp.prototype,"dataChanged_",null);_.V([_.u3("yt-service-request-error"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],Hp.prototype,"onYtServiceRequestError_",null);_.V([_.sB({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],Hp);
_.k(Hp,"yt-unlimited-page-header-renderer",function(){if(WQL===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;B1$===void 0&&(B1$=document.createElement("template"));var S=B1$;y.call(h,S.content.cloneNode(!0),b.content.firstChild);WQL=b}b=WQL;return b},{mode:2});var AgR;var UzJ;_.W2("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var ub=function(){return _.g.apply(this,arguments)||this};
_.z(ub,_.g);ub.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],ub.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],ub.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],ub.prototype,"data",void 0);_.V([_.sB({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],ub);
_.k(ub,"yt-unlimited-user-notification-renderer",function(){if(UzJ===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;AgR===void 0&&(AgR=document.createElement("template"));var S=AgR;y.call(h,S.content.cloneNode(!0),b.content.firstChild);UzJ=b}b=UzJ;return b},{mode:2});
}catch(e){_._DumpException(e)}
try{
var Qcq,vxa,hkF,SQd,FIE,j_2;_.M6=function(b){var h=b.clientMessageId;var y=b.playerOffsetMs;var S=b.pageContext;b=b.userInputText;return{inputComposerFormData:Object.assign({},{clientMessageId:h},!!y&&{playerOffsetMs:y},!!S&&{pageContext:S},!!b&&{userInputText:b})}};
_.xhq=function(b,h,y){h=h===void 0?5:h;if(h!==0){var S=typeof b==="function"?b():document.querySelector(b);S?(y==null?0:y.enableSmartFocus)?_.v0r(S):S.focus():setTimeout(function(){_.xhq(b,h-1,y)},500)}};
Qcq=function(b){return String.raw.apply(String,[{raw:b}].concat(_.f$(_.x$.apply(1,arguments).map(function(h){return h instanceof Array?h.join(""):h}))))};
vxa=function(b){var h=_.x$.apply(1,arguments),y=h.length;if(!Array.isArray(b)||!Array.isArray(b.raw)||b.length!==b.raw.length||!_.g$5&&b===b.raw||!(_.g$5&&!_.sRe||_.Tp(b))||y+1!==b.length)throw new TypeError("$");return new mhf(Object.freeze({strings:Object.freeze(b),args:Object.freeze(h)}))};
_.btY=function(b){return{continuationCommand:{token:b,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}}};
hkF=function(){return _.x$.apply(0,arguments).flat().filter(function(b){return b}).join(";")};
SQd=function(){return vxa(y6N,hkF.apply(null,_.f$(_.x$.apply(0,arguments))))};
FIE=function(b,h){if(_.r("web_enable_chat_autoscroll_to_user_turn")&&b&&h)return b-4+"px"};
_.a12=function(b,h){return _.Mm(b.entities,"youchatPendingResponseEntity",h)};
_.dJ2=function(b){return function(h){_.vl(_.R7("youchatPendingResponseEntity",b,{entityKey:b,isPendingResponse:h}))}};
j_2=function(b){b==null||b.addEventListener("DOMLoaded",function(){b.goToAndPlay(b.totalFrames-48,!0)})};
_.X5=function(b){this.__isSoyCss=!0;this.css=Qcq.apply(null,[b.strings].concat(_.f$(b.args)))};
_.X5.prototype.toString=function(){return this.css};
var mhf=function(){_.X5.apply(this,arguments)};
_.z(mhf,_.X5);var y6N=_.bm(["",""]);_.$JX=_.T(function(b){var h=_.h6(b,{numberOfChips:5}).numberOfChips;return _.M("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.M(_.Gw,{each:function(){return Array(h==null?void 0:h())}},function(){return _.M("div",{class:"ytGhostChipShelfChip"})}))},"aj");var LIP=_.T(function(b){var h=void 0,y=function(){return b.data()},S=function(){return!!_.WV(_.Ir(y())).optionColor},F=_.L(_.pa(-1,void 0,"m6Iyqc")),a=F.next().value,P=F.next().value,K=function(N){return a()===N},n=function(N){return y().correctAnswerIndex===N},X=function(){return a()!==-1};
F=_.L(_.pa("",void 0,"jvMkLd"));var u=F.next().value,O=F.next().value;return _.M("yoututor-quiz-view-model",{class:_.P2("learningQuizComponentHost","learningYoututorQuizHost",b.className),style:_.n9({background:function(){return _.WV(_.Ir(y())).backgroundColor}})},_.M("div",{"aria-live":"polite",
class:"learningYoututorQuizVisuallyHidden"},u),_.M("div",{class:"learningQuizComponentQuizContainer"},_.M("div",{class:"learningQuizComponentQuiz"},_.M("div",{class:"learningQuizComponentQuizContent"},_.M(_.H,{cond:function(){return!!y().aiGeneratedQuizLabel},
then:function(){return _.M("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.M(_.zv,{text:function(){return y().aiGeneratedQuizLabel}}))}}),_.M("div",{class:"learningQuizComponentQuizHeader"},_.M("div",{class:"learningQuizComponentQuizHeaderTextContainer"},_.M("div",{class:"learningYoututorQuizText",
style:_.n9({color:function(){return _.WV(_.Ir(y())).primaryTextColor}})},_.M(_.zv,{text:function(){return y().questionHeaderText}}))))),_.M("div",{role:"group",
class:_.P2("learningQuizComponentQuizOptionsList","learningYoututorQuizOptionsListGap")},_.M(_.Gw,{each:function(){return y().optionsData||[]}},function(N,t){var R={};
return _.M("button",{class:_.P2("learningQuizComponentQuizOptions","learningYoututorQuizOptionsGap","learningYoututorQuizOptionsBorderSquare",(R.learningQuizComponentQuizHover=function(){return!X()},R.learningQuizComponentQuizOptionWithCustomColor=S,R.learningYoututorQuizOptionSelectedCorrectOutline=function(){return X()&&n(t())},R.learningYoututorQuizOptionSelectedIncorrectOutline=function(){return a()!==y().correctAnswerIndex&&K(t())},R.learningQuizComponentQuizIncorrectShake=function(){return a()!==
y().correctAnswerIndex&&K(t())},R)),
"on:click":_.Zv(function(){_.Vd(_.rU(),{data:N});if(X())return!1;P(t());O(n(t())?y().correctAnswerAriaLabel||"":y().incorrectAnswerAriaLabel||"");return!1}),
style:_.n9({background:"transparent"}),"aria-description":function(){return X()?n(t())?y().correctAnswerAriaLabel:y().incorrectAnswerAriaLabel:""},
"aria-disabled":X,el:_.Qa(function(I){_.AF(271905,I,h,function(U){h=U})}),
"client-ve-type":271905},_.M("div",{class:"learningQuizComponentQuizOptionContainer"},_.M(_.zv,{text:N.optionText}),_.M(_.H,{cond:function(){var I=t();return X()&&(K(I)||n(I))},
then:function(){var I={};return _.M(_.Xv,{className:_.P2("learningYoututorQuizOptionIcon",(I.learningQuizComponentQuizPulse=function(){return a()===y().correctAnswerIndex&&n(t())},I)),
size:24,icon:function(){return n(t())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.M(_.H,{cond:X,
then:function(){return _.M("div",{class:"learningYoututorQuizExplanationContainer"},_.M("div",{class:"learningYoututorQuizExplanationText"},_.M(_.zv,{text:function(){return y().explanationHeaderText}})),_.M(_.zv,{text:function(){return y().optionsData[a()].explanationText},
className:"learningYoututorQuizExplanationDescriptionText"}))}})))))},"bj");
LIP.idomCompat=!0;var PiE=_.T(function(b){var h=b.thumbsUp,y=b.thumbsDown,S=b.rightAlignThumbs;b=_.L(_.pa(!1,void 0,"OxPsH"));var F=b.next().value,a=b.next().value;b=_.L(_.pa(!1,void 0,"V5vWne"));var P=b.next().value,K=b.next().value;b={};return _.M("div",{class:_.P2("ytwThumbsUpDownThumbs",(b.ytwThumbsUpDownRightAlign=function(){return S==null?void 0:S()},b))},_.M(_.Ke,{data:h,
onToggle:function(n){a(n);P()&&K(!1)},
buttonShapeOverrides:function(){return{toggled:F()}}}),_.M(_.Ke,{data:y,
onToggle:function(n){K(n);F()&&a(!1)},
buttonShapeOverrides:function(){return{toggled:P()}}}))},"cj");
PiE.idomCompat=!0;var ZtN=_.T(function(b){var h=function(){return b.data().pendingStateEntityKey||""},y=_.OF(_.a12,h),S=function(){var K;
if(!(K=b.disabled())){var n;K=!((n=y())==null||!n.isPendingResponse)}return K},F=_.L(_.pa(SQd(""),void 0,"Q6q6y")),a=F.next().value,P=F.next().value;
_.fl(function(){requestAnimationFrame(function(){var K=b.data().onShowAnimationMs||0;K=K>0?SQd("--chip-animation-duration: "+K+"ms;"):SQd("");P(K)})});
return _.M("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:a},_.M(_.Gw,{each:function(){return b.data().chipData||[]},
keyBy:"REFERENCE"},function(K){return _.M(KIE,{data:K,disabled:S,pendingStateKey:h,onError:b.onError})}))},"ej"),KIE=_.T(function(b){var h=_.MS("button"),y=_.L(_.pa(!0,void 0,"baSFEf")),S=y.next().value,F=y.next().value,a=function(){return b.data().text.content},P=function(){return b.data().transparentWhenLoading},K=_.NG(_.iM.currentPageSubTypeSelector),n=function(){var u;
return(u=_.H9().resolve(_.XS(_.ng)))==null?void 0:_.SSx(u,K())},X=_.Zv(function(u){var O,N,t,R,I,U,p,e;
return _.Z(function(E){switch(E.nextAddress){case 1:u.stopPropagation();if(b.disabled())return E.return();N=String(Math.floor(((O=_.o7())==null?void 0:O.getCurrentTime())||0)*1E3);t="youchat-"+Date.now();R=function(){_.TK(b.data().onClick||{});var Y=_.btY(b.data().continuation),w=_.M6({clientMessageId:t,playerOffsetMs:N,pageContext:n()});return new Promise(function(x,q){_.TK(Y,{form:{formData:w},commandController:{onSuccess:function(dI,L4){x(L4)},
onServerError:function(dI,L4){q(L4.error)}}})})};
I=_.dJ2(b.pendingStateKey());I(!0);_.xhq("#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");F(!1);_.WE(E,2);return E.yield(R(),4);case 4:_.Lz(E,3);break;case 2:U=_.C$(E),(e=(p=b).onError)==null||e.call(p,U);case 3:I(!1),_.g3(E)}})});
return _.M(_.H,{cond:S,then:function(){return _.M("div",{class:"ytwYouChatChipsDataChipWrapper"},_.M("button",{el:h,class:"ytwYouChatChipsDataChip","data-disabled":b.disabled,"data-transparent-loading":P,"on:click":X,tabindex:0},a))}})},"fj");var oSx=_.T(function(b){var h=b.data;var y=b.initiallyExpanded;var S=function(){var X;return(X=h().conversationResourceData)==null?void 0:X.learningGuideData};
b=_.L(_.ya(function(){var X;return(X=y==null?void 0:y())!=null?X:!1}));
var F=b.next().value,a=b.next().value,P=function(){var X,u=_.c((X=S())==null?void 0:X.expandButton,_.cA);u&&_.Vd(_.rU(),{data:u});a(!0)},K=_.s5(function(){var X,u;
return(u=(X=S())==null?void 0:X.sections)!=null?u:[]},void 0,"V7sYqc"),n=_.s5(function(){return K().length>4},void 0,"GFFPnd");
b=_.s5(function(){var X;return!F()&&n()&&(X=S())!=null&&X.expandButton?K().slice(0,4):K()},void 0,"Rbi7Ke");
return _.M("yt-conversation-resource-view-model",{class:_.P2("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.M(_.rC,{data:b},{expandableMetadataViewModel:_.K$f}),_.M(_.H,{cond:function(){return n()&&!F()},
then:function(){return _.M("div",{id:"showMoreButton"},_.M(_.rC,{data:function(){var X;return(X=S())==null?void 0:X.expandButton}},{buttonViewModel:function(X){return _.M(_.EG,{data:X.data,
onClick:P})}}))}}))},"gj");_.MjN=_.T(function(b){var h=function(){var e;return(e=b.data().text)==null?void 0:e.content},y=function(){var e,E;
return(e=b.data().webData)==null?void 0:(E=e.textResult)==null?void 0:E.content},S=_.H9().resolve(_.fh),F=_.Mn(),a=function(){return b.data().chatResponseStyle},P=function(){return!b.data().transparentBackground},K=function(){return b.data().rightAlignThumbs},n=function(){return b.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||b.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},X=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:n()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:b.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},u=function(){var e;
return b.data().webData||((e=b.data().text)==null?void 0:e.content)||b.data().videoResultsData||b.data().conversationResourceViewModel||b.data().quiz||b.data().yoututorQuiz||b.data().richContent},O=function(){return!!b.data().sectionHeader||u()},N=function(){var e;
return(e=b.data().videoResultsData)==null?void 0:e.videoShelf},t=function(){var e;
return(e=b.data().webData)==null?void 0:e.sourcesShelf},R=function(){return a()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||a()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:b.data().thumbsDownViewModel&&b.data().thumbsUpViewModel},I=function(){return _.c(b.data().thumbsUpViewModel,_.zc)},U=function(){return _.c(b.data().thumbsDownViewModel,_.zc)};
_.fl(function(){requestAnimationFrame(function(){var e;(e=b.shouldAnimateIcon)!=null&&e.call(b)&&j_2(F.lottieEl)})});
var p={};return _.M("you-chat-item-view-model",{class:_.P2("ytwYouChatItemViewModelYouChatItemViewModel",(p.ytwYouChatItemViewModelColumnLayout=function(){return n()},p)),
style:_.n9({"min-height":function(){var e,E;return FIE((e=b.containerHeight)==null?void 0:e.call(b),(E=b.isLastItem)==null?void 0:E.call(b))}}),
"data-target-id":function(){return b.data().id||""}},_.M(_.H,{cond:function(){return b.data().removeIcon?!1:O()},
then:function(){var e={};return _.M("div",{"aria-hidden":"true"},_.M(_.vj,{className:_.P2("ytwYouChatItemViewModelIcon",(e.ytwYouChatItemViewModelRtl=S==="rtl",e.ytwYouChatItemViewModelHidden=function(){return!(b.data().hideIcon||a()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||a()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:O())},e)),
animationName:"YOUCHAT_ICON",data:X,animationRef:F}))}}),_.M(_.H,{cond:O,
then:function(){var e={};return _.M("div",{class:_.P2("ytwYouChatItemViewModelHost",(e.ytwYouChatItemViewModelHostNoPadding=function(){return!!b.data().sectionHeader&&!u()},e.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return a()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},e.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return a()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},e.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return a()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
e.ytwYouChatItemViewModelGradientBackground=P,e.ytwYouChatItemViewModelHostAlignStart=function(){return!n()},e.ytwYouChatItemViewModelHostDefaultFlex=function(){return!n()},e)),
role:"alert"},_.M(_.H,{cond:h,then:function(E){return _.M(_.pU,{text:E,wrapCodeBlocks:!0})}}),_.M(_.rC,{data:function(){return b.data().sectionHeader}},{sectionHeaderViewModel:function(E){var Y={};
return _.M(_.SE,{data:E.data,className:_.P2("ytwYouChatItemViewModelSectionHeader",(Y.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!b.data().sectionHeader&&!u()},Y)),
forceSmallLayout:!0})}}),_.M(_.H,{cond:y,
then:function(E){return _.M(_.pU,{text:E,wrapCodeBlocks:!0})}}),_.M(_.H,{cond:N,
then:function(){return _.M("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.M(_.rC,{data:function(){var E;return(E=b.data().videoResultsData)==null?void 0:E.videoShelf}},{horizontalShelfViewModel:function(E){return _.M(_.AN,{data:E.data,
hasPeek:!0,disableArrows:!1,protectBackground:!0})}}))}}),_.M(_.H,{cond:t,
then:function(){return _.M("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.M(_.rC,{data:function(){var E;return(E=b.data().webData)==null?void 0:E.sourcesShelf}},{horizontalShelfViewModel:function(E){return _.M(_.AN,{data:E.data,
hasPeek:!0,disableArrows:!1})}}))}}),_.M(_.rC,{data:function(){return b.data().conversationResourceViewModel}},{conversationResourceViewModel:oSx}),_.M(_.rC,{data:function(){return b.data().quiz}},{learningJourneyQuizViewModel:_.G8a}),_.M(_.rC,{data:function(){return b.data().yoututorQuiz}},{yoututorQuizViewModel:LIP}),_.M(_.rC,{data:function(){return b.data().richContent}},{cardViewModel:_.xmF,
linearLayoutViewModel:_.B$}),_.M(_.H,{cond:R,then:function(){return _.M(PiE,{thumbsUp:I,thumbsDown:U,rightAlignThumbs:K})}}))}}),_.M(_.H,{cond:function(){return b.data().chipsData},
then:function(e){return _.M(ZtN,{data:e,disabled:b.pending,onError:b.onError})}}))},"ij");
_.MjN.idomCompat={callbacks:{onError:!0,onSend:!0}};_.nSA=_.T(function(b){var h=function(){return b.data().choiceSelectedText},y=function(){return b.data().hasGradientBackground},S={};
return _.M("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost",style:_.n9({"min-height":function(){var F,a;return FIE((F=b.containerHeight)==null?void 0:F.call(b),(a=b.isLastItem)==null?void 0:a.call(b))}}),
"data-target-id":function(){var F;return(F=b.data().itemTargetId)!=null?F:""}},_.M(_.H,{cond:h,
then:function(){return _.M("div",{class:"ytYouChatUserTurnChoiceSelected"},_.M(_.zv,{text:h}))}}),_.M("div",{class:_.P2("ytYouChatUserTurnUserMessage",(S.ytYouChatUserTurnGradientContainer=y,S.ytYouChatUserTurnDefaultContainer=function(){return!y()},S))},function(){return b.data().text}))},"jj");_.X3Y=_.T(function(b){var h=function(){var P;return((P=b.data)==null?void 0:P.call(b).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},y=_.Mn(),S=_.H9().resolve(_.fh);
_.fl(function(){requestAnimationFrame(function(){var P;(P=y.lottieEl)==null||P.addEventListener("DOMLoaded",function(){var K;(K=b.onLottieLoaded)==null||K.call(b)})})});
var F=function(){var P;return(P=b.data)==null?void 0:P.call(b).loadingAnimationA11yLabel},a={};
return _.M("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var P;return((P=b.data)==null?void 0:P.call(b).targetId)||""},
"aria-label":function(){return F()||""},
role:function(){return F()?"progressbar":void 0},
style:_.n9({"min-height":function(){var P,K;return FIE((P=b.containerHeight)==null?void 0:P.call(b),(K=b.isLastItem)==null?void 0:K.call(b))}})},_.M(_.vj,{"aria-hidden":"true",
className:_.P2((a.ytChatLoadingViewModelRtl=S==="rtl",a)),animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:h()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||h()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:h()}}},
animationRef:y}))},"lj");
}catch(e){_._DumpException(e)}
try{
var PNP,Kw_,Zn9;PNP=function(b){return _.r("kevlar_watch_cinematics_invisible")||b.fullscreen&&_.r("kevlar_watch_cinematics_invisible_in_fullscreen")||b.theater&&!b.fullscreen&&_.r("kevlar_watch_cinematics_invisible_in_theater")};
Kw_=function(){var b=document.createElement("canvas"),h=b.getContext("2d");if(!h)throw Error("dp");_.vq(b,{position:"absolute",width:"100%",height:"100%"});return{element:b,context:h}};
Zn9=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.r("kevlar_watch_cinematics_css_blur")};
_.o0x=function(b,h,y){return Math.abs(b-h)<=(y||1E-6)};
_.MRc=function(b,h){return b==h?!0:b&&h?b.width==h.width&&b.height==h.height:!1};_.n0J=new _.r4("notificationActionRenderer");var X9P=function(b){var h=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.MC;this.element.addEventListener("load",function(){h.loaded=!0;h.resolver.resolve(h.element)});
this.element.addEventListener("error",function(){h.failed=!0});
this.element.src=b};var Hnf=function(b,h){this.image=b;this.frame=h};
Hnf.prototype.drawToCanvas=function(b,h){var y=this.frame.width/this.frame.columns,S=this.frame.height/this.frame.rows,F=h.offsetX,a=h.offsetY;PNP(h)?(b.fillStyle=h.fullscreen?"#000":"#0f0f0f",b.fillRect(F,a,(h==null?void 0:h.width)||y,(h==null?void 0:h.height)||S)):b.drawImage(this.image,this.frame.column*y,this.frame.row*S,y,S,F,a,(h==null?void 0:h.width)||y,(h==null?void 0:h.height)||S)};
var uSc=function(b){this.color=b};
uSc.prototype.drawToCanvas=function(b,h){var y=h.offsetX,S=h.offsetY,F=h.width,a=h.height;b.fillStyle=PNP(h)?h.fullscreen?"#000":"#0f0f0f":this.color;b.fillRect(y,S,F,a)};var nJ=function(b,h){_.KY.call(this);this.playerApi=h;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.g1(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();Onc(this,b);NHR(this);this.update()};
_.z(nJ,_.KY);nJ.prototype.addEventListeners=function(){var b=this,h=function(){b.update()},y=function(F){b.paused||(F.type==="newdata"&&(b.mosaics.clear(),tRp(b),XZ(b)),NHR(b),b.update())},S=function(){b.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",h);this.playerApi.addEventListener("onVideoDataChange",y);this.playerApi.addEventListener("onStateChange",S);this.addOnDisposeCallback(function(){b.playerApi.removeEventListener("onVideoProgress",h);b.playerApi.removeEventListener("onVideoDataChange",y);b.playerApi.removeEventListener("onStateChange",S)})};
var Onc=function(b,h){b.cinematicContainerRenderer!==h&&(b.cinematicContainerRenderer=h,tRp(b),XZ(b),b.colorStoreUpdateJobId=_.xP.addLowPriorityJob(function(){var y;if((y=b.cinematicContainerRenderer.colorStore)!=null&&y.sampledColors){y=Infinity;for(var S=_.L(b.cinematicContainerRenderer.colorStore.sampledColors),F=S.next();!F.done;F=S.next()){F=F.value;var a=Number(F.key);a!==0&&a<y&&(y=a);a=_.CR(F.value);b.colorStore.set(F.key,a)}b.colorStoreTimeInterval=y}}))},tRp=function(b){b.colorStoreUpdateJobId&&
(_.xP.cancelJob(b.colorStoreUpdateJobId),b.colorStoreUpdateJobId=void 0);
b.colorStore.clear();b.currentStoryboardColor=void 0},rjD=function(b,h){var y;
return(y=b.getStoryboardFrame(h))==null?void 0:y.url};
nJ.prototype.onPlayerStateChange=function(){this.update()};
nJ.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var NHR=function(b){var h=b.getStoryboardFrame(0);h&&(h=new _.g1(h.width/h.columns,h.height/h.rows),_.MRc(b.currentStoryboardSize,h)||(b.currentStoryboardSize=h,b.publish("STORYBOARD_SIZE_CHANGED",b.currentStoryboardSize)))},cjJ=function(b,h){b.currentStoryboardIndex=h;
b.pendingStoryboardIndex=NaN;h=b.getStoryboardFrame(b.currentStoryboardIndex);b.currentStoryboard=new Hnf(b.mosaics.get(h.url).element,h);b.publish("STORYBOARD_CHANGED",b.currentStoryboard);b.lastUpdateTime=(0,_.NO)()};
nJ.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var XZ=function(b){b.currentStoryboardIndex=NaN;b.pendingStoryboardIndex=NaN;b.currentStoryboard&&(b.currentStoryboard=void 0,b.publish("STORYBOARD_CHANGED",void 0));b.lastUpdateTime=NaN};
nJ.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)XZ(this);else{var b=this.playerApi.getPlayerState(1);if(b===-1||b===5||b===0)XZ(this);else if(isNaN(this.lastUpdateTime)||!((0,_.NO)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(b=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){b=""+Math.round(b*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var h=this.colorStore.get(b);h?h!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=h,this.currentStoryboard=new uSc(h),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.NO)()):(_.vX(new _.Gn("Could not find color for timestamp: "+b,this.cinematicContainerRenderer)),XZ(this))}else XZ(this);else RpP(this,b)}};
var RpP=function(b,h){var y=b.getStoryboardFrameIndex(h);if(y!==b.currentStoryboardIndex&&y!==b.pendingStoryboardIndex){h=rjD(b,y);var S=b.mosaics.get(h);S?S.loaded&&cjJ(b,y):(b.pendingStoryboardIndex=y,y=new X9P(h),b.mosaics.set(h,y),y.resolver.promise.then(function(){if(!b.isDisposed()&&!b.paused&&!isNaN(b.pendingStoryboardIndex)){var F=rjD(b,b.pendingStoryboardIndex);if(F){var a;(a=b.mosaics.get(F))!=null&&a.loaded&&cjJ(b,b.pendingStoryboardIndex)}else XZ(b)}}))}};
nJ.prototype.getStoryboardFrameIndex=function(b){var h=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(b,h)};
nJ.prototype.getStoryboardFrame=function(b){var h=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,y,S;return((S=(y=this.playerApi).getStoryboardFrame)==null?void 0:S.call(y,b,h))||null};
nJ.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var uT=function(b,h,y,S){S=S===void 0?!1:S;_.ED.call(this);this.cinematicContainerRenderer=h;this.playerApi=y;this.theater=this.fullscreen=!1;var F;this.ambientLightThemeEnabled=!S&&!!(h==null?0:(F=h.config)==null?0:F.enableInLightTheme);this.ambientTheaterModeEnabled=(this.ambientFullscreenEnabled=S)&&!0;this.container=document.createElement("div");b.appendChild(this.container);this.innerContainer=document.createElement("div");this.container.appendChild(this.innerContainer);zpx(this);this.backCanvas=
Kw_();this.frontCanvas=Kw_();this.innerContainer.appendChild(this.backCanvas.element);this.innerContainer.appendChild(this.frontCanvas.element);this.storyboardManager=new nJ(h,this.playerApi);_.pq(this,this.storyboardManager);this.addEventListeners();DlP(this)?IIp(this,100+HS(this)*3*2,100+HS(this)*3*2):BH9(this);WwL(this,this.storyboardManager.currentStoryboard)};
_.z(uT,_.ED);
var zpx=function(b){var h=b.playerApi.getVideoAspectRatio();_.vq(b.container,{"aspect-ratio":""+h,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});var y;var S;if((b.fullscreen||b.theater)&&((y=b.cinematicContainerRenderer.config)==null?0:(S=y.watchFullscreenConfig)==null?0:S.colorSourceWidthMultiplier))y=b.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;else{var F;y=(F=
b.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?F:b.cinematicContainerRenderer.config.colorSourceSizeMultiplier}var a,P;if((b.fullscreen||b.theater)&&((a=b.cinematicContainerRenderer.config)==null?0:(P=a.watchFullscreenConfig)==null?0:P.colorSourceHeightMultiplier))F=b.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;else{var K;F=(K=b.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?K:b.cinematicContainerRenderer.config.colorSourceSizeMultiplier}_.vq(b.innerContainer,
{"aspect-ratio":""+h,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+y+", "+F+")"});Zn9()&&_.vq(b.innerContainer,"filter","blur("+_.tj("cinematic_watch_css_filter_blur_strength",40)+"px)")};
uT.prototype.setFullscreen=function(b,h){this.fullscreen=b;this.theater=!!h;zpx(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),b=this.storyboardManager.currentStoryboard,Aj2(this),b&&UlR(this,b)};
uT.prototype.addEventListeners=function(){var b=this,h=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(F){WwL(b,F)}),y=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){BH9(b)});
this.addOnDisposeCallback(function(){b.storyboardManager.unsubscribeByKey(h);b.storyboardManager.unsubscribeByKey(y)});
var S=function(){zpx(b)};
this.playerApi.addEventListener("onVideoDataChange",S);this.addOnDisposeCallback(function(){b.playerApi.removeEventListener("onVideoDataChange",S)})};
var BH9=function(b){if(!DlP(b)){var h=b.storyboardManager.currentStoryboardSize;isNaN(h.width)||isNaN(h.height)||IIp(b,Number(h.width)+HS(b)*3*2,Number(h.height)+HS(b)*3*2)}},IIp=function(b,h,y){b.backCanvas.element.width=h;
b.backCanvas.element.height=y;b.frontCanvas.element.width=h;b.frontCanvas.element.height=y},DlP=function(b){return b.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},WwL=function(b,h,y){y=y===void 0?!1:y;
var S=b.frontCanvas.element.getAnimations()[0];S?(S.pause(),b.backCanvas.context.globalAlpha=Number(getComputedStyle(b.frontCanvas.element).opacity),b.frontCanvas.element.style.opacity="0",S.finish()):b.backCanvas.context.globalAlpha=1;b.backCanvas.context.drawImage(b.frontCanvas.element,0,0,b.backCanvas.element.width,b.backCanvas.element.height);Aj2(b);h&&UlR(b,h);h=h?b.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.tj("cinematic_watch_fade_out_duration",500);S=_.tj("cinematic_watch_transition_frame_rate")/
1E3;var F={};S&&(F={easing:"steps("+Math.round(h*S)+")"});(y===void 0?0:y)||b.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:h,iterations:1},F));b.frontCanvas.element.style.opacity="1"},Aj2=function(b){var h=b.ambientLightThemeEnabled||b.ambientTheaterModeEnabled,y=b.ambientLightThemeEnabled||b.ambientFullscreenEnabled;
b.frontCanvas.context.fillStyle=b.theater&&h||b.fullscreen&&y?"#000":"#0f0f0f";Zn9()||(b.frontCanvas.context.filter="blur(0)");b.frontCanvas.context.fillRect(0,0,b.frontCanvas.element.width,b.frontCanvas.element.height)},UlR=function(b,h){Zn9()||(b.frontCanvas.context.filter="blur("+HS(b)+"px)");
b.frontCanvas.context.globalAlpha=b.fullscreen&&b.ambientFullscreenEnabled||b.theater&&b.ambientTheaterModeEnabled?_.tj("cinematic_watch_effect_letterbox_opacity",.4):_.tj("cinematic_watch_effect_opacity",.4);var y={offsetX:HS(b)*3,offsetY:HS(b)*3,theater:b.theater,fullscreen:b.fullscreen};DlP(b)&&(y.width=100,y.height=100);h.drawToCanvas(b.frontCanvas.context,y);b.frontCanvas.context.globalAlpha=1},HS=function(b){var h;
return(h=b.cinematicContainerRenderer.config.blurStrength)!=null?h:5};
uT.prototype.disposeInternal=function(){_.ED.prototype.disposeInternal.call(this);this.container.remove()};
uT.prototype.clear=function(){WwL(this,void 0,!0)};
uT.prototype.pause=function(){this.storyboardManager.pause()};var p9J;p9J=_.gX(function(){var b,h,y=!((h=(b=document.createElement("canvas")).getContext)==null||!h.call(b,"2d")),S;b=!((S=CSS)==null||!S.supports("filter: blur(0)"));S=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var F;return y&&b&&S&&!((F=CSS)==null||!F.supports("aspect-ratio: 1 / 1"))});
_.Ol=function(b,h){_.KY.call(this);this.container=b;this.playerApi=h;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=Jj$(this);this.update()};
_.z(_.Ol,_.KY);_.epM=function(b){var h=document.documentElement.hasAttribute("dark");b.isDarkModeEnabled=h;b.update()};
_.CNJ=function(b,h){b.settingEnabled=h;b.update()};
_.Ol.prototype.setFullscreen=function(b,h){this.fullscreen=b;this.theater=!!h;this.update()};
_.g09=function(b,h){b.cinematicContainerRenderer=h;b.cinematicContainerRenderer&&(b.cinematicsVe=_.Kh(b.isShorts()?227858:159022),_.lC(_.rU(),b.cinematicsVe),b.loggingClientData={watchCinematicContainerData:{presentationStyle:b.cinematicContainerRenderer.presentationStyle}});b.update()};
_.Ol.prototype.isShorts=function(){var b,h;return((b=this.cinematicContainerRenderer)==null?void 0:(h=b.config)==null?void 0:h.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.Ol.prototype.isAllowed=function(){var b;if(b=p9J()){var h,y,S;b=((y=this.cinematicContainerRenderer)==null?void 0:y.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((S=this.cinematicContainerRenderer)==null||!S.colorStore)||((h=this.cinematicContainerRenderer)==null?void 0:h.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(b)if(_.r("web_cinematics_pausing")){var F,a;b=this.isDarkModeEnabled||!!((F=this.cinematicContainerRenderer)==
null?0:(a=F.config)==null?0:a.enableInLightTheme)}else{var P,K;F=!!((P=this.cinematicContainerRenderer)==null?0:(K=P.config)==null?0:K.enableInLightTheme)&&(_.QC("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);b=this.isDarkModeEnabled||F}if(P=b){var n,X;P=!((X=(n=this.prefersReducedMotionQuery)==null?void 0:n.matches)!=null&&X)}return P};
_.sAL=function(b){var h;(h=b.currentCinematicEffect)==null||h.pause()};
_.YMJ=function(b){(b=b.currentCinematicEffect)!=null&&(b=b.storyboardManager,b.paused=!1,NHR(b),b.update())};
_.Ol.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var Jj$=function(b){if(!_.r("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var h=window.matchMedia("(prefers-reduced-motion: reduce)"),y=function(){b.update()};
h.addListener(y);b.addOnDisposeCallback(function(){h.removeListener(y)});
return h}};
_.Ol.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var b=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new uT(this.container,b,this.playerApi,this.isDarkModeEnabled),_.pq(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var h=this.currentCinematicEffect;h.cinematicContainerRenderer!==
b&&(h.cinematicContainerRenderer=b,Onc(h.storyboardManager,b),zpx(h));b=_.HT();_.uE(0,194,!0);b.save();b=_.UE();this.cinematicsVe&&b&&_.fI(b,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(b=_.UE(),this.cinematicsVe&&b&&_.wh(b,[this.cinematicsVe],!1,this.loggingClientData),_.nq(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.tm.Object.defineProperties(_.Ol.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var gZf;var seL;_.pZ({_template:function(){if(seL!==void 0)return seL;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=
b.content,y=h.insertBefore;gZf===void 0&&(gZf=document.createElement("template"));var S=gZf;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return seL=b},
is:"tp-yt-iron-pages",behaviors:[_.ab,_.qh],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var JW9;_.e9c=function(){if(_.r("kevlar_home_skeleton")&&!JW9){var b=document.querySelector("#home-page-skeleton");b&&(_.pI("hgcr"),_.sD(b),JW9=!0)}};
JW9=!1;_.bv=new _.r4("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var pBJ=function(b){return _.xYk(_.qXM(b&16777215))<.5},Jg_=function(b,h,y){var S=y.minimumRowsOfVideosBetweenSections===void 0?1:y.minimumRowsOfVideosBetweenSections;
return b<(y.minimumRowsOfVideosAtStart===void 0?2:y.minimumRowsOfVideosAtStart)||h!==null&&b-h<=S?!1:!0},eXM=function(b,h){var y=0,S=0;
b=_.L(b);for(var F=b.next();!F.done;F=b.next()){var a=F.value;if(a.richItemRenderer)a.richItemRenderer.rowIndex=S,a.richItemRenderer.colIndex=y++,y===h&&(y=0,S++);else if(a.richGroupRenderer&&a.richGroupRenderer.numColumns!==void 0)a.richGroupRenderer.rowIndex=S,a.richGroupRenderer.colIndex=y,y+=a.richGroupRenderer.numColumns,y===h&&(y=0,S++);else if(a.richSectionRenderer){var P=F=void 0;if(a=_.c((F=a)==null?void 0:(P=F.richSectionRenderer)==null?void 0:P.content,_.tQ8))a.rowIndex=S++}}},CRx=function(b,
h){var y=h.contentElement;
h=h.rendererToTagNameMap;if(y&&h&&h.size!==0){for(var S=new Map,F=_.L(y.children),a=F.next();!a.done;a=F.next()){a=a.value;var P=a.tagName.toLowerCase(),K=S.get(P);K||(K=[],S.set(P,K));K.push(a)}if(S.size!==0)for(F=Math.min(b.length,y.children.length),a=new Map,P=0;P<F;P++){K=Object.keys(b[P])[0];K=h.get(K);if(!K)break;var n=a.get(K);n===void 0&&(n=0,a.set(K,n));var X=S.get(K);if(!X||n>=X.length)break;a.set(K,n+1);K=X[n];n=y.children[P];n!==K&&(_.bp=!0,_.h4.set(K,!0),y.insertBefore(K,n),_.h4.delete(K),
_.bp=!1)}}},gbP=function(b,h,y,S,F,a,P){S=S===void 0?{}:S;
if(!b||!b.length)return{orderedContent:[]};b=b.slice();var K=[],n=[];F=null;for(var X=0,u=function(E){n.sort(function(x,q){return q.skippedOnRow-x.skippedOnRow});
for(var Y,w=(Y=n.shift())==null?void 0:Y.content;w;)!w.richSectionRenderer&&E||K.push(w),Y=void 0,w=(Y=n.shift())==null?void 0:Y.content},O=void 0,N=void 0,t=new Set;b.length>0||n.length>0;){for(var R=[],I=h;I>0;){var U=void 0,p=void 0,e=(p=n[0]&&n[0].skippedOnRow<X?(U=n.shift())==null?void 0:U.content:void 0)!=null?p:b.shift();
if(!e)break;if(e.richItemRenderer)U=e.richItemRenderer.targetId,p=void 0,U&&((p=P)==null?0:p.has(U))&&(p=P.get(U),!O||p&&p.timestamp>O.timestamp)&&(O=p,N&&t.add(N),N=U),R.push(e),I--;else if(e.richGroupRenderer&&e.richGroupRenderer.numColumns!==void 0)e.richGroupRenderer.numColumns<=I?(R.push(e),I-=e.richGroupRenderer.numColumns):I===h&&e.richGroupRenderer.numColumns>h?(R.push({richGroupRenderer:Object.assign({},e.richGroupRenderer,{numColumns:h})}),I=0):n.push({content:e,skippedOnRow:X});else if(e.richSectionRenderer)if(Jg_(X,
F,S)&&I===h){K.push(e);F=X;X++;continue}else n.push({content:e,skippedOnRow:X});else if(e.continuationItemRenderer){u(!0);K.push(e);I=0;break}if(I===0)K.push.apply(K,_.f$(R));else if(!y&&b.length===0){u(!1);K.push.apply(K,_.f$(R));I=0;break}}X++;O&&(K.push(O.content),X++);N=O=void 0}eXM(K,h);a&&CRx(K,a);return{orderedContent:K,pinnedContentNotShownTargetIds:t}},T1M=function(b,h){if(h){var y=_.hP().getState().entities.flowStateEntity,S=sax(b),F=[h];
S&&S!==h&&F.push(S);var a=!0,P;if(y&&b.flowStateEntityKey&&((P=y[b.flowStateEntityKey])==null?void 0:P.primaryButtonDisabled)!==void 0){var K;a=!((K=y[b.flowStateEntityKey])==null||!K.primaryButtonDisabled)}YSp(b,S!=null?S:h,F,a)}},kPf=function(b){return _.Fq(_.hP(),function(h){return h.entities.flowStateEntity},function(h,y){if(b.flowStateEntityKey){var S,F=h==null?void 0:(S=h[b.flowStateEntityKey])==null?void 0:S.currentStepId,a;
y=y==null?void 0:(a=y[b.flowStateEntityKey])==null?void 0:a.currentStepId;a=_.hP().getState().talkToRecs;if(F&&F!==y){var P;h=(h==null?void 0:(P=h[b.flowStateEntityKey])==null?void 0:P.stepIdStack)||Object.keys(a.stepStates);P=!GP2(a==null?void 0:a.stepStates[F]);YSp(b,F,h,P)}}})},Eb$=function(b){return _.Fq(_.hP(),VFA,function(h){var y=sax(b);
if(y){var S=Object.keys(h.stepStates);h=!GP2(h==null?void 0:h.stepStates[y]);YSp(b,y,S,h)}})},GP2=function(b){var h=Object.keys((b==null?void 0:b.selectionStates)||{}).reduce(function(a,P){return a||(b==null?void 0:b.selectionStates[P].isSelected)},!1),y,S,F=!!(b==null?0:(y=b.userQuery)==null?0:(S=y.userQuery)==null?0:S.trim());
return h||F},sax=function(b){if(b.flowStateEntityKey){var h,y,S=(h=_.hP().getState().entities.flowStateEntity)==null?void 0:(y=h[b.flowStateEntityKey])==null?void 0:y.currentStepId;
if(S)return S}},YSp=function(b,h,y,S){_.hP().dispatch(_.R7("flowStateEntity",b.flowStateEntityKey,{currentStepId:h,
stepIdStack:y,key:b.flowStateEntityKey,primaryButtonDisabled:S}))},iDA;var fK9;_.pZ({_template:function(){if(fK9!==void 0)return fK9;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);
var h=b.content,y=h.insertBefore;iDA===void 0&&(iDA=document.createElement("template"));var S=iDA;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return fK9=b},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var wBJ=new _.r4("flowRootRenderer");var lKf=new _.r4("chipsShelfViewModel");var qS_=new _.r4("responsiveContainerConfiguration");_.xzf=new _.r4("engagementPanelSectionListRenderer");var QaJ=function(){this.horizontal=!1},mzp=function(b,h){b.horizontal=h};
QaJ.prototype.position=function(b,h,y,S){S=S===void 0?1:S;b=this.delta(b)*S+h;S=Math.max(h,y);return b>=Math.min(h,y)&&b<=S?b:y};
QaJ.prototype.axis=function(b){b=this.direction(b);return b==="up"||b==="down"?"Y":"X"};var O4=function(b,h,y){h=h===void 0?_.hJ():h;this.target=b;this.manager=h;this.touchAction=y;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
O4.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(_.f$(this.events)));for(var b=_.L(this.events),h=b.next();!h.done;h=b.next())this.listen(h.value)}};
O4.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.f$(this.events)));for(var b=_.L(this.events),h=b.next();!h.done;h=b.next())this.unlisten(h.value)}};
O4.prototype.listen=function(b){this.eventMap[b]&&this.target.addEventListener(b,this.eventMap[b])};
O4.prototype.unlisten=function(b){this.eventMap[b]&&this.target.removeEventListener(b,this.eventMap[b])};var NV=function(){QaJ.apply(this,arguments)};
_.z(NV,QaJ);NV.prototype.direction=function(b){var h=b.detail;b=h.deltaY;h=h.deltaX;return b&&!this.horizontal?b>0?"down":"up":h&&this.horizontal?h>0?"right":"left":"none"};
NV.prototype.distance=function(b){return Math.abs(this.delta(b))};
NV.prototype.delta=function(b){var h=this.direction(b),y=b.detail;b=y.deltaX;y=y.deltaY;return h==="up"||h==="down"?y||0:b||0};
NV.prototype.velocity=function(b){var h=this.direction(b),y=b.detail;b=y.velocityX;y=y.velocityY;return Math.abs(h==="up"||h==="down"?y||0:b||0)};_.tH=function(b,h,y,S,F,a){F=F===void 0?new NV:F;a=a===void 0?_.hJ():a;O4.call(this,h,a,S);var P=this;this.element=b;this.target=h;this.config=y;this.input=F;this.manager=a;this.events=["panstart","panmove","panend"];this.onPanStart=function(){P.config.draggingClass&&P.element.classList.add(P.config.draggingClass);P.config.startAction&&P.config.startAction()};
this.onPanMove=function(K){var n=vbx(P,K);if(n){P.move(K,n);n.fade&&P.fade(K,n);var X=P.input.direction(K);n.moveAction&&n.moveAction(bqP(P,K,n),X)}};
this.onPanEnd=function(K){var n,X,u,O,N,t;return _.Z(function(R){if(R.nextAddress==1){P.animationRequestId&&cancelAnimationFrame(P.animationRequestId);P.animationRequestId=void 0;n=vbx(P,K);if(!n)return R.return();X=n;u=X.triggerAction;O=X.fade;N=X.disableFinish;t=X.translateBack;var I=P.input.velocity(K),U=P.input.distance(K),p=P.threshold(n);return I>.3&&U>10||U>p?N?R.jumpTo(6):O?R.yield(h9$(P,K),6):R.yield(yW2(P,K,n),6):t?R.yield(P.translateBack(K),3):R.jumpTo(3)}R.nextAddress!=3&&u&&u();P.config.draggingClass&&
P.element.classList.remove(P.config.draggingClass);P.reset();_.g3(R)})};
b=Object.keys(y.triggers);this.directions=new Set(b);mzp(this.input,this.directions.has("right")||this.directions.has("left"))};
_.z(_.tH,O4);_.tH.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var vbx=function(b,h){h=b.input.direction(h);return b.config.triggers[h]};
_.tH.prototype.move=function(b,h){var y=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var S=y.input.axis(b),F=y.input.position(b,y.config.startPosition,h.endPosition,h.moveRatio||1);y.element.style.transform="translate"+S+"("+F+"px)";y.animationRequestId=void 0}))};
var bqP=function(b,h,y){var S=y.moveRatio||1;y=Math.abs(b.config.startPosition-y.endPosition);return Math.min(b.input.distance(h)*S,y)/y};
_.tH.prototype.fade=function(b,h){var y=h.endOpacity;b=bqP(this,b,h);b>0&&(this.element.style.opacity=""+(((y||0)-1)*b+1))};
_.tH.prototype.threshold=function(b){return b.threshold?b.threshold:Math.abs(b.endPosition-this.config.startPosition)/3};
var yW2=function(b,h,y){var S,F,a,P,K,n,X;return _.Z(function(u){if(u.nextAddress==1)return S=b.input.delta(h)+b.config.startPosition,F=b.input.axis(h),a=y,P=a.endPosition,K=a.transitionEndPosition,X=(n=K)!=null?n:P,u.yield(b.element.animate([{transform:"translate"+F+"("+S+"px)"},{transform:"translate"+F+"("+X+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);b.element.style.transform="translate"+F+"("+X+"px)";_.g3(u)})};
_.tH.prototype.translateBack=function(b){var h=this,y,S;return _.Z(function(F){if(F.nextAddress==1){if(!h.element.style.transform)return F.return();y=h.input.axis(b);S=h.config.startPosition;return F.yield(h.element.animate([{transform:h.element.style.transform},{transform:"translate"+y+"("+S+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}h.element.style.transform="translate"+y+"("+S+"px)";_.g3(F)})};
var h9$=function(b,h){var y,S,F,a;return _.Z(function(P){if(P.nextAddress==1)return y=b.input.delta(h)+b.config.startPosition,S=b.input.axis(h),F=y+70,a=b.element.style.opacity===""?1:b.element.style.opacity,P.yield(b.element.animate([{transform:"translate"+S+"("+y+"px)",opacity:a},{transform:"translate"+S+"("+F+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);b.element.style.transform="translate"+S+"("+F+"px)";b.element.style.opacity="0";_.g3(P)})};var rL=function(){var b=_.cl.apply(this,arguments)||this;b._noAccessors=!0;b.scrollRate=3;b.autoScrollAnimationStart=0;b.autoScrollPaused=!1;b.autoScrollRafId=0;return b};
_.z(rL,_.cl);_.d=rL.prototype;_.d.created=function(){var b=this;this.boundAutoScrollHandler=function(h){b.autoScroll(h)}};
_.d.detached=function(){this.hostElement.removeEventListener("mouseout",_.Hl(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.Hl(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.Hl(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.d.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.Hl(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.Hl(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.Hl(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.Hl(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.Hl(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.Hl(this,this.endAutoScroll)),this.endAutoScroll())};
_.d.autoScroll=function(b){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=b);var h;if(h=!this.autoScrollPaused&&this.scrollTarget)h=this.scrollTarget,h=h.scrollHeight-h.scrollTop!==h.clientHeight;h&&(h=1E3/this.scrollRate,b-=this.autoScrollAnimationStart,b>h&&(this.scrollTarget.scrollTop+=Math.ceil(b/h),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.d.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.d.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
rL.prototype.autoScrollEnabledChanged=rL.prototype.autoScrollEnabledChanged;_.V([_.C(),_.f("design:type",Object)],rL.prototype,"scrollRate",void 0);_.V([_.C(),_.f("design:type",Object)],rL.prototype,"scrollTarget",void 0);_.V([_.C(),_.f("design:type",Boolean)],rL.prototype,"autoScrollEnabled",void 0);_.V([_.OB("autoScrollEnabled"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],rL.prototype,"autoScrollEnabledChanged",null);_.V([_.Rc()],rL);_.SDA=[rL.prototype];var FnM;var cp=function(){var b=_.g.apply(this,arguments)||this;b.dismissButtonOverrides={iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"};b.forceDarkTheme=!1;b.forceLightTheme=!1;b.dynamicTextHeight=94;b.hasOverflowButton=!1;b.isInfeedModernization=!1;return b};
_.z(cp,_.g);_.d=cp.prototype;_.d.computeUrlImg=function(b){if(b)return _.Fv(b.thumbnails)};
_.d.getLogoHeight=function(b){return this.logoWithPadding(b)?"31":"24"};
_.d.getLogoClassName=function(b){return this.logoWithPadding(b)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.d.logoWithPadding=function(b){var h,y;return(b=(h=b.thumbnails)==null?void 0:(y=h[0])==null?void 0:y.height)&&b%31===0?!0:!1};
_.d.sendImpressionEndpoints=function(b){b.impressionEndpoints&&_.dh(this.hostElement,b.impressionEndpoints)};
_.d.observeBasicPalette=function(){var b,h,y=(b=this.data)==null?void 0:(h=b.colorData)==null?void 0:h.basicColorPaletteData;y?_.IF(this.hostElement,y):_.IF(this.hostElement,{})};
_.d.observeDataChanged=function(){var b;this.dynamicTextHeight=((b=this.data)==null?0:b.supplementalText)?74:94;var h;this.hasSupplementalText=!((h=this.data)==null||!h.supplementalText);var y,S,F,a;b=(y=this.data)==null?void 0:(S=y.actionButton)==null?void 0:(F=S.buttonRenderer)==null?void 0:(a=F.colorData)==null?void 0:a.basicColorPaletteData;var P,K,n;if(!((P=this.data)==null?0:(K=P.actionButton)==null?0:(n=K.buttonRenderer)==null?0:n.style)&&b){this.computeIsInfeedModernization(this.data)||(b.borderColor=
b.foregroundTitleColor);var X,u;this.set("data.actionButton.buttonRenderer",_.lR.unsafeClone((X=this.data)==null?void 0:(u=X.actionButton)==null?void 0:u.buttonRenderer))}};
_.d.observeDataForCounterfactual=function(){if(_.r("kevlar_banner_cf_extra_logging")){var b;((b=this.data)==null?0:b.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.d.computeSupplementalStyle=function(){var b;if((b=this.data)!=null&&b.supplementalText){var h,y,S;if((h=this.data)==null?0:(y=h.colorData)==null?0:(S=y.basicColorPaletteData)==null?0:S.foregroundActivatedColor)return b=_.eI(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+b+"; --yt-endpoint-hover-color:"+b+"; --yt-endpoint-visited-color:"+b+"; --yt-formatted-string-bold-font-weight:700;"}};
_.d.computeForcedDarkTheme=function(){var b,h,y,S=(b=this.data)==null?void 0:(h=b.actionButton)==null?void 0:(y=h.buttonRenderer)==null?void 0:y.style,F,a,P;b=pBJ(((F=this.data)==null?void 0:(a=F.colorData)==null?void 0:(P=a.basicColorPaletteData)==null?void 0:P.backgroundColor)||0);return S&&b};
_.d.computeForcedLightTheme=function(){var b,h,y,S=(b=this.data)==null?void 0:(h=b.actionButton)==null?void 0:(y=h.buttonRenderer)==null?void 0:y.style,F,a,P;b=!pBJ(((F=this.data)==null?void 0:(a=F.colorData)==null?void 0:(P=a.basicColorPaletteData)==null?void 0:P.backgroundColor)||0);return S&&b};
_.d.computeHasOverflowButton=function(b){return!!b.overflowButton};
_.d.computeHasTitle=function(b){return!!b.title};
_.d.computeTitleMaxFontSize=function(b){return this.computeHasOverflowButton(b)?28:64};
_.d.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.d.computeIsInfeedModernization=function(){var b,h,y,S,F=(b=this.data)==null?void 0:(h=b.actionButton)==null?void 0:(y=h.buttonRenderer)==null?void 0:(S=y.colorData)==null?void 0:S.basicColorPaletteData;return(F==null?void 0:F.backgroundColor)===452984831||(F==null?void 0:F.backgroundColor)===218103808};
cp.prototype.observeDataForCounterfactual=cp.prototype.observeDataForCounterfactual;cp.prototype.observeDataChanged=cp.prototype.observeDataChanged;cp.prototype.observeBasicPalette=cp.prototype.observeBasicPalette;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],cp.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.rP),_.f("design:type",Object)],cp.prototype,"ytdDismissibleItemBehavior",void 0);
_.V([_.B(_.DV.YtdGuideStateAwareBehavior),_.f("design:type",Object)],cp.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],cp.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],cp.prototype,"hasSupplementalText",void 0);_.V([_.C(),_.f("design:type",Object)],cp.prototype,"dismissButtonOverrides",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.f("design:type",Boolean)],cp.prototype,"hasTitle",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.f("design:type",Object)],cp.prototype,"forceDarkTheme",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.f("design:type",Object)],cp.prototype,"forceLightTheme",void 0);_.V([_.C(),_.f("design:type",Object)],cp.prototype,"dynamicTextHeight",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.f("design:type",Object)],cp.prototype,"hasOverflowButton",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.f("design:type",Object)],cp.prototype,"isInfeedModernization",void 0);_.V([_.OB("data.colorData.basicColorPaletteData"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],cp.prototype,"observeBasicPalette",null);
_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],cp.prototype,"observeDataChanged",null);_.V([_.OB("data.isVisible"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],cp.prototype,"observeDataForCounterfactual",null);_.V([_.Yx({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],cp);
_.k(cp,"ytd-banner-promo-renderer",function(){if(FnM!==void 0)return FnM;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return FnM=b},{mode:1});var a9f;var dKp;var jYL;var $K$=function(){return _.g.apply(this,arguments)||this};
_.z($K$,_.g);_.V([_.C(),_.f("design:type",Object)],$K$.prototype,"data",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],$K$.prototype,"ytRendererBehavior",void 0);_.V([_.Yx({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],$K$);
_.k($K$,"ytd-hashtag-grid-tile-renderer",function(){if(jYL!==void 0)return jYL;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return jYL=b},{mode:1});var Rg=function(){return _.g.apply(this,arguments)||this};
_.z(Rg,_.g);Rg.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
Rg.prototype.updateRichGridTrendingHashtagsVisibility=function(){var b,h;if(((b=this.data)==null||!b.isExpanded)&&(h=this.data)!=null&&h.tiles){b=this.data.tiles.length;h=b>this.richGridItemsPerRow?this.richGridItemsPerRow+1:b;var y=Math.ceil(b/h);this.fullyVisibleRows=b%h===1&&y===2?1:Math.min(y,2);this.isShowMoreVisible=this.fullyVisibleRows<y}};
Rg.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
Rg.prototype.updateRichGridTrendingHashtagsVisibility=Rg.prototype.updateRichGridTrendingHashtagsVisibility;_.V([_.C(),_.f("design:type",Object)],Rg.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Number)],Rg.prototype,"fullyVisibleRows",void 0);_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],Rg.prototype,"isShowMoreVisible",void 0);_.V([_.C({selector:_.e7,value:0}),_.f("design:type",Number)],Rg.prototype,"richGridItemsPerRow",void 0);
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Rg.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Rg.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],Rg.prototype,"ytdReduxBehavior",void 0);_.V([_.OB("data","richGridItemsPerRow"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Rg.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.V([_.Yx({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],Rg);
_.k(Rg,"ytd-hashtag-grid-shelf-renderer",function(){if(dKp!==void 0)return dKp;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return dKp=b},{mode:1});var Ln9;var P5J;var zV=function(){var b=_.g.apply(this,arguments)||this;b.visibleVideos=[];b.hiddenVideos=[];b.modern=_.r("web_modern_buttons");b.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return b};
_.z(zV,_.g);_.d=zV.prototype;_.d.attached=function(){var b=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",b);this.onDarkModeToggledAction(b)};
_.d.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"}}}};
_.d.dataChanged=function(){var b=this;this.requestElementsPerRow();var h,y;this.currentColorPalette=this.isDarkTheme?(h=this.data)==null?void 0:h.darkColorData:(y=this.data)==null?void 0:y.lightColorData;var S;if((S=this.currentColorPalette)==null?0:S.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.Ob(this,function(){b.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.d.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.d.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.d.computeIsFirstFeedItem=function(b){return b};
_.d.onDarkModeToggledAction=function(b){b!==this.isDarkTheme&&this.set("isDarkTheme",b);this.data&&(this.currentColorPalette=b?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.d.getCurrentLogo=function(b,h){if(b)return h?b.darkLogoImage:b.lightLogoImage};
_.d.computeTitleStyle=function(b){var h;if((h=this.data)!=null&&h.title&&b&&b.textPrimary!==void 0)return"color:"+_.eI(b.textPrimary)+";"};
_.d.computeSubtitleStyle=function(b){var h;if((h=this.data)!=null&&h.subtitle&&b&&b.textSecondary!==void 0)return"color:"+_.eI(b.textSecondary)+";"};
_.d.computeDismissIconStyle=function(b){if(this.data&&this.data.dismissButton&&b&&b.textPrimary!==void 0)return"--yt-button-color:"+_.eI(b.textPrimary)+";"};
_.d.computeOverflowButtonStyle=function(b){if(this.data&&this.data.overflowButton&&b&&b.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.eI(b.textPrimary)+";--yt-spec-icon-active-other:"+_.eI(b.textPrimary)+";"};
_.d.computeBackgroundStyle=function(b){if(b&&this.data){var h="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var y=_.Fv((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);y&&(h+='background-image:url("'+y+'");')}b.backgroundColor!==void 0&&(h+="background-color:"+_.CR(b.backgroundColor)+";");return h}};
_.d.computeButton=function(){var b,h=Object.assign({},_.c((b=this.data)==null?void 0:b.showMoreButton,_.OU));if(this.modern&&h){h.style="STYLE_MONO_OUTLINE";var y;if(b=(y=this.currentColorPalette)==null?void 0:y.textPrimary)h.colorData={basicColorPaletteData:{foregroundTitleColor:b,borderColor:b}}}return h};
_.d.shouldShowBottomButton=function(b,h){return!(b==null?0:b.header)&&!(b==null||!b.primaryButton)&&h<3};
_.d.checkExpanded=function(b){this.isExpanded=b&&b.content?this.hiddenVideos.length===0:!0};
_.d.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.d.getLogoHeight=function(b){return this.logoWithPadding(b)?"26":"20"};
_.d.getLogoImageId=function(b){return this.logoWithPadding(b)?"logo-image-with-padding":"logo-image"};
_.d.computeHasSectionHeader=function(b){return!!b.header};
_.d.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var b;if((b=this.data.primaryButton)==null?0:b.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 h;((h=this.data.dismissButton)==null?0:h.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var y,S;((y=this.data)==null?0:(S=y.primaryButton)==null?0:S.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.d.setVisibleVideos=function(b){if(this.data&&this.data.content)if(this.data.content.length){var h=this.data.content.length;this.data.header?b?(this.visibleVideos=this.data.content.slice(0,Math.min(h,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(h,this.slimItemsPerRow),h)):(this.visibleVideos=this.data.content.slice(0,Math.min(h,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(h,this.elementsPerRow),h)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(h,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(h,this.elementsPerRow),h)):(this.visibleVideos=this.data.content.slice(0,Math.min(h,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(h,this.elementsPerRow-1),h))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.d.setHasMovieRenderer=function(){var b;if((b=this.data)!=null&&b.content){var h;this.hasMovieRenderer=!!_.c((h=this.data)==null?void 0:h.content[0],_.A0W)}else this.hasMovieRenderer=!1};
_.d.requestElementsPerRow=function(){_.Sx(this.hostElement,"yt-request-elements-per-row")};
_.d.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var b=_.L(this.hiddenMediaRenderers),h=b.next();!h.done;h=b.next())h.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(b=_.$x(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&b.focus()}};
_.d.updateTitleSpec=function(){var b;(b=this.data)!=null&&b.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.d.logoWithPadding=function(b){var h,y,S;return(b=(h=this.getCurrentLogo(b,this.isDarkTheme))==null?void 0:(y=h.thumbnails)==null?void 0:(S=y[0])==null?void 0:S.height)&&b%31===0?!0:!1};
_.d.onUpdateElementsPerRowAction=function(b,h,y){b&&this.elementsPerRow!==b&&(this.elementsPerRow=b);y&&this.slimItemsPerRow!==y&&(this.slimItemsPerRow=y)};
zV.prototype.slimItemsPerRowChanged=zV.prototype.slimItemsPerRowChanged;zV.prototype.elementsPerRowChanged=zV.prototype.elementsPerRowChanged;zV.prototype.dataChanged=zV.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],zV.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],zV.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.rP),_.f("design:type",Object)],zV.prototype,"ytdDismissibleItemBehavior",void 0);
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],zV.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],zV.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],zV.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],zV.prototype,"currentColorPalette",void 0);_.V([_.C(),_.f("design:type",Array)],zV.prototype,"visibleVideos",void 0);_.V([_.C(),_.f("design:type",Array)],zV.prototype,"hiddenVideos",void 0);
_.V([_.C(),_.f("design:type",Object)],zV.prototype,"primaryButton",void 0);_.V([_.C({reflectToAttribute:!0,value:3}),_.f("design:type",Number)],zV.prototype,"elementsPerRow",void 0);_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],zV.prototype,"isDarkTheme",void 0);_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],zV.prototype,"isExpanded",void 0);_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],zV.prototype,"largeTitle",void 0);
_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],zV.prototype,"hasMovieRenderer",void 0);_.V([_.C(),_.f("design:type",Number)],zV.prototype,"slimItemsPerRow",void 0);_.V([_.C(),_.f("design:type",Boolean)],zV.prototype,"showLightVideoMetadata",void 0);_.V([_.C(),_.f("design:type",Boolean)],zV.prototype,"showDarkVideoMetadata",void 0);_.V([_.C(),_.f("design:type",Number)],zV.prototype,"videoMetadataColor",void 0);
_.V([_.C({reflectToAttribute:!0,selector:_.Jt}),_.f("design:type",Boolean)],zV.prototype,"miniMode",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.f("design:type",Boolean)],zV.prototype,"isFirstFeedItem",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.f("design:type",Boolean)],zV.prototype,"hasSectionHeader",void 0);
_.V([_.C({reflectToAttribute:!0,value:!0}),_.f("design:type",Boolean)],zV.prototype,"roundedContainer",void 0);_.V([_.ry("#visible-video-container ytd-rich-grid-media"),_.f("design:type",Array)],zV.prototype,"visibleMediaRenderers",void 0);_.V([_.ry("#hidden-video-container ytd-rich-grid-media"),_.f("design:type",Array)],zV.prototype,"hiddenMediaRenderers",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],zV.prototype,"modern",void 0);
_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],zV.prototype,"dataChanged",null);_.V([_.OB("elementsPerRow"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],zV.prototype,"elementsPerRowChanged",null);_.V([_.OB("slimItemsPerRow"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],zV.prototype,"slimItemsPerRowChanged",null);
_.V([_.Yx({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],zV);
_.k(zV,"ytd-brand-video-shelf-renderer",function(){if(P5J!==void 0)return P5J;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return P5J=b},{mode:1});var Knc;var DO=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return b};
_.z(DO,_.g);_.d=DO.prototype;_.d.attached=function(){var b=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",b);this.onDarkModeToggledAction(b)};
_.d.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"}}}};
_.d.dataChanged=function(){this.requestElementsPerRow();var b,h;this.currentColorPalette=this.isDarkTheme?(b=this.data)==null?void 0:b.darkColorData:(h=this.data)==null?void 0:h.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.d.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.d.computeIsFirstFeedItem=function(b){return b};
_.d.onDarkModeToggledAction=function(b){b!==this.isDarkTheme&&this.set("isDarkTheme",b);this.data&&(this.currentColorPalette=b?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(b),this.updateButtonPalette())};
_.d.shouldShowThumbnailInMetadata=function(b){return b<=1};
_.d.computeVideoMetadataColor=function(){if(this.data){var b;if((b=this.currentColorPalette)==null?0:b.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.d.computeTitleStyle=function(b){var h;if((h=this.data)!=null&&h.title&&b&&b.textPrimary!==void 0)return"color:"+_.eI(b.textPrimary)+";"};
_.d.computeSubtitleStyle=function(b){var h;if((h=this.data)!=null&&h.subtitle&&b&&b.textSecondary!==void 0)return"color:"+_.eI(b.textSecondary)+";"};
_.d.computeOverflowButtonStyle=function(b){if(this.data&&this.data.overflowButton&&b.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.eI(b.textPrimary)+";--yt-spec-icon-active-other:"+_.eI(b.textPrimary)+";"};
_.d.computeBackgroundStyle=function(b){if(b&&this.data){var h="";b.backgroundColor!==void 0&&(h+="background-color:"+_.CR(b.backgroundColor)+";");return h}};
_.d.computeHasOverflowButton=function(b){return!!b.overflowButton};
_.d.updateButtonPalette=function(){if(this.data){var b;if((b=this.data.primaryButton)==null?0:b.buttonRenderer){var h;if((h=this.currentColorPalette)==null?0:h.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var y;((y=this.currentColorPalette)==null?0:y.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)})}}};
_.d.requestElementsPerRow=function(){_.Sx(this.hostElement,"yt-request-elements-per-row")};
_.d.updateTitleSpec=function(){var b;(b=this.data)!=null&&b.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")};
_.d.onUpdateElementsPerRowAction=function(b){b&&this.elementsPerRow!==b&&(this.elementsPerRow=b)};
DO.prototype.elementsPerRowChanged=DO.prototype.elementsPerRowChanged;DO.prototype.dataChanged=DO.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],DO.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],DO.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.rP),_.f("design:type",Object)],DO.prototype,"ytdDismissibleItemBehavior",void 0);
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],DO.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],DO.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],DO.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],DO.prototype,"currentColorPalette",void 0);_.V([_.C(),_.f("design:type",Object)],DO.prototype,"primaryButton",void 0);
_.V([_.C({reflectToAttribute:!0,value:3}),_.f("design:type",Number)],DO.prototype,"elementsPerRow",void 0);_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],DO.prototype,"isDarkTheme",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",String)],DO.prototype,"titleSize",void 0);_.V([_.C(),_.f("design:type",Number)],DO.prototype,"videoMetadataColor",void 0);_.V([_.C({reflectToAttribute:!0,selector:_.Jt}),_.f("design:type",Boolean)],DO.prototype,"miniMode",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.f("design:type",Boolean)],DO.prototype,"isFirstFeedItem",void 0);_.V([_.C({reflectToAttribute:!0,value:!0}),_.f("design:type",Boolean)],DO.prototype,"roundedContainer",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.f("design:type",Boolean)],DO.prototype,"hasOverflowButton",void 0);
_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],DO.prototype,"dataChanged",null);_.V([_.OB("elementsPerRow"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],DO.prototype,"elementsPerRowChanged",null);_.V([_.Yx({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],DO);
_.k(DO,"ytd-brand-video-singleton-renderer",function(){if(Knc!==void 0)return Knc;var b=document.createElement("template");_.D(b,'\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>');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return Knc=b},{mode:_.Lt("kevlar_poly_si_batch_j070")?1:2});var ZqA;var oTD=_.T(function(b){var h=b.data;return _.M(_.mI,{data:function(){return h().thumbnail},
alt:"",className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnailImage",targetHeight:function(){a:switch(h().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var y=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":y=88;break a;default:y=88}return y},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return h().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"zn"),nT_=_.T(function(b){var h=b.metadataRow;
var y=b.delimiter;return _.M(_.Gw,{each:function(){return h().textParts||[]},
keyBy:"INDEX"},function(S,F){return _.M(_.OW,null,_.M(_.zv,{text:S,noWrap:!0,userInput:!0}),_.M(MGA,{delimiter:y,max:function(){return h().textParts.length},
index:F}))})},"An"),MGA=_.T(function(b){var h=b.delimiter;
var y=b.max;var S=b.index;return _.M(_.H,{cond:function(){return(h==null?void 0:h())&&y()-1>S()},
then:function(){return _.M("span",null,h)}})},"Bn"),X0c=_.T(function(b){var h=b.data;
b={};return _.M("yt-profile-page-header-information-view-model",{class:_.P2("profilePageHeaderInformationViewModelHost",(b.profilePageHeaderInformationViewModelMobile=!1,b))},_.M(_.H,{cond:function(){return h().onTap},
then:function(){return _.M(_.YN,{className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail",command:function(){return _.YS(h().onTap)}},_.M(_.rC,{data:function(){return h().thumbnail}},{profilePageHeaderThumbnailViewModel:oTD}))},
else:function(){return _.M("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail"},_.M(_.rC,{data:function(){return h().thumbnail}},{profilePageHeaderThumbnailViewModel:oTD}))}}),_.M("div",{class:"profilePageHeaderInformationViewModelFlexContainer"},_.M(_.H,{cond:function(){return h().onTap},
then:function(){return _.M(_.rC,{data:function(){return h().title}},{profilePageHeaderTitleViewModel:function(y){var S=y.data;
return _.M(_.YN,{className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle",command:function(){return _.YS(S().onTap)}},_.M(_.zv,{text:function(){return S().title}}))}})},
else:function(){return _.M(_.rC,{data:function(){return h().title}},{profilePageHeaderTitleViewModel:function(y){var S=y.data;
return _.M(_.zv,{text:function(){return S().title},
className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle"})}})}}),_.M(_.rC,{data:function(){return h().metadata}},{profilePageHeaderMetadataViewModel:function(y){var S=y.data;
return _.M(_.H,{cond:function(){return S().metadataRows},
then:function(F){return _.M("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderMetadata"},_.M(_.Gw,{each:F,keyBy:"INDEX"},function(a,P){return _.M(_.OW,null,_.M(nT_,{metadataRow:a,delimiter:" \u2022 "}),_.M(MGA,{delimiter:" \u2022 ",max:function(){return F().length},
index:P}))}))}})}})))},"Cn");
X0c.idomCompat=!0;_.yd(X0c,"yt-profile-page-header-information-view-model",{props:{data:_.D4}});var Ig=function(){return _.g.apply(this,arguments)||this};
_.z(Ig,_.g);Ig.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Ig.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Ig.prototype,"data",void 0);_.V([_.Yx({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],Ig);
_.k(Ig,"ytd-effect-pivot-header-view-model",function(){if(ZqA!==void 0)return ZqA;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return ZqA=
b},{mode:1});var Hq9;var ib=function(){return _.g.apply(this,arguments)||this};
_.z(ib,_.g);ib.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],ib.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],ib.prototype,"data",void 0);_.V([_.Yx({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],ib);
_.k(ib,"ytd-source-pivot-header-renderer",function(){if(Hq9!==void 0)return Hq9;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return Hq9=b},{mode:1});_.yd(_.xmF,"yt-card-view-model",{props:{data:_.D4,className:_.D4,isSelected:_.D4}});var VFA=_.gnb.talkToRecsStateSelector;_.yd(_.T(function(b){var h=function(){return _.c(b.data().flowRoot,wBJ)};
_.wg(function(){var y=h(),S=function(){},F=function(){};
if(y){var a,P,K,n=((K=_.c((a=h())==null?void 0:(P=a.steps)==null?void 0:P[0],_.ak))==null?void 0:K.stepId)||"";T1M(y,n);S=kPf(y);F=Eb$(y)}_.m2(function(){var X=h();X&&_.hP().dispatch(_.R7("flowStateEntity",X.flowStateEntityKey));S();S=function(){};
F();F=function(){};
_.vl(_.fnf())})});
return _.M("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.M(_.qY,{contentId:function(){return b.data().contentId}},function(){return _.M("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.M(_.H,{cond:h,
then:function(y){return _.M(_.OR2,{data:y})}}))}))},"Dn"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.D4}});_.yd(_.T(function(){return _.M("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.M("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.M("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.M(_.$JX,null)),_.M(_.x0N,{data:{rows:1},isExploreHub:!0}))},"En"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.yd(_.T(function(b){var h=b.data;var y=b.standardUnitMinWidth;b=_.L((0,_.bS5)(h));var S=b.next().value,F=b.next().value,a=function(){var K,n=(K=S())==null?void 0:K.contents;return n==null||n.length===0},P=function(){F(Object.assign({},S(),{contents:[]}))};
return _.M("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.Qa(_.r_({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var K=_.c(h().chipsShelf,lKf);if(K!=null&&K!=null&&K.autoselectChipOnVisible){var n,X,u=_.c(K==null?void 0:(n=K.contents)==null?void 0:n[(X=K.autoselectedChipIndex)!=null?X:0],_.Rk);u&&u.tapCommand&&_.Va(u.tapCommand)}}}))},_.M(_.qY,{contentId:function(){return h().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.M("div",null,_.M("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.M(_.rC,{data:function(){return h().header}},{sectionHeaderViewModel:function(K){return _.M(_.SE,{data:K.data,
disableHorizontalPadding:!0})}})),_.M("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.M(_.rC,{data:function(){return h().chipsShelf}},{chipsShelfViewModel:function(K){return _.M(_.Sd,{data:K.data,
callback:P,selectionBehavior:1})}})),_.M("div",null,_.M(_.H,{cond:a,
then:function(){return _.M("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.M(_.x0N,{data:{rows:1},isExploreHub:!0}))}}),_.M(_.rC,{data:function(){var K;
return(K=S())==null?void 0:K.contents}},{richShelfRenderer:function(K){return _.M(_.KeN,{data:K.data,
isInnerShelf:!0,standardUnitMinWidth:y})}})))}))},"Fn"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.D4,
standardUnitMinWidth:_.D4}});var fQ=function(){return _.g.apply(this,arguments)||this};
_.z(fQ,_.g);
fQ.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer",
properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer",
feedNudgeRenderer:"ytd-feed-nudge-renderer",eduCardViewModel:"yt-edu-card-view-model",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",cardViewModel:"yt-card-view-model",chipsShelfWithVideoShelfRenderer:{component:"ytd-chips-shelf-with-video-shelf-renderer",properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0,disableGridStateAware:!0}},
messageRenderer:"ytd-message-renderer",alertBannerViewModel:{component:"yt-alert-banner-view-model",params:{isInRichGrid:!0}},chipsShelfWithVideoShelfGhostCardViewModel:"ytd-chips-shelf-with-video-shelf-ghost-card-view-model"},reuseComponents:!1}}};
fQ.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.V([_.B(_.NT),_.f("design:type",Object)],fQ.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],fQ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.p1),_.f("design:type",Object)],fQ.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],fQ.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],fQ.prototype,"data",void 0);
_.V([_.C(),_.f("design:type",Number)],fQ.prototype,"standardUnitMinWidth",void 0);_.V([_.Yx({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],fQ);
_.k(fQ,"ytd-rich-section-renderer",function(){if(Ln9!==void 0)return Ln9;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return Ln9=b},{mode:_.Lt("kevlar_poly_si_batch_j029")?
1:2});_.yd(_.Bhx,"yt-profile-identity-info-view-model",{props:{data:_.D4,hideDivider:_.D4,isChannelInfoCard:_.D4}});_.yd(_.LMf,"yt-page-header-view-model",{props:{data:_.D4,noPadding:_.D4,enableBanner:_.D4,cinematicContainerTopbarOffset:_.D4,allowCinematicContainerOverflow:_.D4,displayAsSidebar:_.D4,displayAsPanel:_.D4,alwaysUseMediumTextDescription:_.D4}});var uRf=_.T(function(){return _.M("div",{class:_.P2("ytdGhostGridViewModelGhostCard")},_.M("div",{class:_.P2("ytdGhostGridViewModelThumbnail","ytdGhostGridViewModelGhostColor")}),_.M("div",{class:_.P2("ytdGhostGridViewModelDetails")},_.M("div",{class:_.P2("ytdGhostGridViewModelChannelAvatar","ytdGhostGridViewModelGhostColor")}),_.M("div",{class:_.P2("ytdGhostGridViewModelDetailsTextShell")},_.M("div",{class:_.P2("ytdGhostGridViewModelVideoTitle","ytdGhostGridViewModelTextShell","ytdGhostGridViewModelGhostColor")}),
_.M("div",{class:_.P2("ytdGhostGridViewModelVideoMeta","ytdGhostGridViewModelTextShell","ytdGhostGridViewModelGhostColor")}))))},"Hn");_.yd(_.T(function(b){var h=b.data;var y=_.NG(_.e7);return _.M("ytd-ghost-grid-view-model",{class:_.P2("ytdGhostGridViewModelHost")},_.M(_.Gw,{each:function(){var S=Array,F;var a=((F=h().numRows)!=null?F:0)*y();return S(a)},
keyBy:"INDEX"},function(){return _.M(uRf,null)}))},"Gn"),"ytd-ghost-grid-view-model",{props:{data:_.D4}});_.yd(_.T(function(b){var h=b.data;var y=function(){var F;return(F=h().numColumns)!=null?F:2},S=function(){return y()>1?3:2};
b={};return _.M("ytd-rich-grid-group",{class:_.P2("ytdRichGridGroupHost",(b.ytdRichGridGroupHostFirstColumn=function(){return h().colIndex===0},b)),
style:_.n9({"--ytd-rich-grid-group-num-columns":y,"--ytd-rich-grid-items-per-group":S})},_.M("div",{class:"ytdRichGridGroupContents"},_.M(_.rC,{data:function(){var F;return(F=h().contents)==null?void 0:F.slice(0,S())}},{richItemRenderer:function(F){return _.M(_.Lee,{data:F.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"In"),"ytd-rich-grid-group",{props:{data:_.D4}});var wL=function(){var b=_.g.apply(this,arguments)||this;b.resizeOnObserverInit=!1;b.isInlinePreviewDisabled=_.r("web_disable_inline_preview");b.disableStickyFilterBar=!1;b.transparentBackgroundChipsBar=!1;b.hideChipsBar=!1;b.isScrolled=!1;b.isWatchDefaultLayout=!0;b.continuationShowButton=!1;b.rowReducedHorizontalMargin=!1;b.useCompactList=!1;b.manualDownloadsPresent=!1;b.smartDownloadsPresent=!1;b.isOnline=!1;b.shouldRenderDownloadsBanner=!1;b.shouldRenderDownloadsBannerUpsell=!1;b.hasOptedIntoSmartDownloads=
!1;b.elementsPerRow=4;b.typographyBump=!1;b.slimItemsPerRow=1;b.pageLoadingFromNavigation=!1;b.resizeObserver=null;b.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"};b.rendererToTagNameMap=new Map(Object.entries(b.contentMapping()).map(function(h){var y=
_.L(h);h=y.next().value;y=y.next().value;return[h,y.component]}));
b.insertedContent=new Map;return b};
_.z(wL,_.g);_.d=wL.prototype;_.d.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var b=_.L(_.$x(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),h=b.next();!h.done;h=b.next())h.value.useCompactList=this.useCompactList};
_.d.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var b=_.L(_.$x(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),h=b.next();!h.done;h=b.next())h=h.value,h.sizing=this.sizing,h.typographyBump=this.typographyBump};
_.d.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.d.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]]"}}}};
_.d.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",properties:{fluidWidth:"[[isDefaultGrid]]",disableSticky:"[[disableStickyFilterBar]]",transparentBackground:"[[transparentBackgroundChipsBar]]"}},chipBarViewModel:{component:"chip-bar-view-model",params:{className:"ytd-rich-grid-renderer chip-bar"}},pageHeaderViewModel:{component:"yt-page-header-view-model",params:{displayAsPanel:!0}},profileIdentityInfoViewModel:{component:"yt-profile-identity-info-view-model"}}},
bigYoodleData:{id:"big-yoodle",mapping:{brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",statementBannerRenderer:"ytd-statement-banner-renderer"},reuseComponents:!1},mastheadData:{id:"masthead-ad",mapping:{bannerPromoRenderer:"ytd-banner-promo-renderer",adSlotRenderer:"ytd-ad-slot-renderer"},reuseComponents:!1},shownItems:{id:"contents",mapping:this.contentMapping(),reuseComponents:!1},loadingContentRenderer:{id:"reload-content",
mapping:{ghostGridViewModel:{component:"ytd-ghost-grid-view-model"}}}}};
_.d.attached=function(){document.addEventListener("yt-page-type-changed",_.Hl(this,this.onPageChange));document.addEventListener("yt-feed-customization-scroll-up",_.Hl(this,this.onFeedCustomizationScrollUp));this.updateItemMinAndMaxWidth();this.JSC$22646_throttledOnResize=new _.MG(this.resizeObserved,_.tj("rich_grid_resize_delay_ms",50),this);this.showChipsOnScroll&&window.addEventListener("scroll",_.Hl(this,this.onScroll))};
_.d.detached=function(){var b;(b=this.resizeObserver)==null||b.disconnect();document.removeEventListener("yt-page-type-changed",_.Hl(this,this.onPageChange));document.removeEventListener("yt-feed-customization-scroll-up",_.Hl(this,this.onFeedCustomizationScrollUp));this.showChipsOnScroll&&window.removeEventListener("scroll",_.Hl(this,this.onScroll))};
_.d.insertRichSection=function(b){var h=b.richItemTargetId;b=b.richSectionRendererToInsert;h&&b&&(this.insertedContent.set(h,{content:b,timestamp:Date.now()}),this.reflowContent())};
_.d.computeIsInlinePreviewEnabled=function(b,h,y){return _.r("web_disable_inline_preview")?!1:!y&&_.JeE({miniplayerIsActive:b,miniplayerPlaybackState:h})};
_.d.computeSizing=function(){var b=_.r$f(this.data);if(b||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return b?this.useCompactList?"COMPACT":b:this.miniMode?"COMPACT":"STANDARD"};
_.d.updateItemMinAndMaxWidth=function(){var b=_.tj("rich_grid_max_item_width",500);b>0&&_.nZ(this.hostElement,{"--ytd-rich-grid-item-max-width":b+"px"});var h;b=this.getRichItemMinWidth((h=this.hostElement)==null?void 0:h.clientWidth);b>0&&_.nZ(this.hostElement,{"--ytd-rich-grid-item-min-width":b+"px"})};
_.d.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.d.resizeObserved=function(){_.aw(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.d.onPageChange=function(){var b=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.aw(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.xP.addJob(function(){b.pageLoadingFromNavigation=!1;b.setMasthead();b.maybeSetBigYoodle();b.forceRefreshAndLog();b.terminateVideoPreview()},8)):this.mastheadData&&(this.mastheadData=void 0)};
_.d.dataChanged=function(){var b=this;_.aw(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.Ob(this,function(){b.updateRichItemGridPositions();b.contentsElement&&_.nZ(b.hostElement,{"--ytd-rich-grid-content-offset-top":b.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.d.initResizeObserver=function(){var b=this;if(window.ResizeObserver){var h;(h=this.resizeObserver)==null||h.disconnect();var y=!1;this.resizeObserver=new ResizeObserver(function(){if(y){var S;(S=b.resizeObserver)==null||S.disconnect();var F;(F=b.JSC$22646_throttledOnResize)==null||F.fire();requestAnimationFrame(function(){var P;(P=b.JSC$22646_throttledOnResize)==null||P.fire();b.initResizeObserver()})}else if(y=!0,b.resizeOnObserverInit){var a;
(a=b.JSC$22646_throttledOnResize)==null||a.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.d.contentLengthChanged=function(){if(this.containerWidth||this.isShortsPanel)this.reflowContent(),_.aw(this.hostElement,"ytd-rich-item-index-update-action")};
_.d.updateElementsPerRow=function(){_.aw(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.$8({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.$8({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.d.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.d.onRichShelfRendererCollapse=function(b){if(this.shownItems){var h=b.detail;b=this.shownItems.findIndex(function(S){var F,a;return((a=_.c(S==null?void 0:(F=S.richSectionRenderer)==null?void 0:F.content,_.tQ8))==null?void 0:a.trackingParams)===h});
var y=b+1;b<0||y>=this.contentsElement.children.length||!this.shownItems[y].richItemRenderer||this.contentsElement.children[y].scrollIntoView({behavior:"smooth",block:"start"})}};
_.d.onSoftReloadPage=function(){this.scrollUpToTop()};
_.d.handleRerenderDownloadsData=function(){_.r("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.d.handlePlaylistRemoveVideosAction=function(b){var h;if(((h=_.c(b,_.YYG))==null?0:h.setVideoIds)&&this.data&&this.data.contents){b=_.c(b,_.YYG).setVideoIds;for(h=this.data.contents.length-1;h>=0;){var y=_.c(this.data.contents[h],_.FI);(y=y&&_.c(y.content,_.HA))&&y.setVideoId&&b.includes(y.setVideoId)&&this.splice("data.contents",h,1);h--}this.updateIndices()}};
_.d.updateIndices=function(){if(this.data&&this.data.contents)for(var b=0;b<this.data.contents.length;b++)this.set("data.contents."+b+".richItemRenderer.index",_.mk(String(b+1)))};
_.d.hasTopRowInlinePlayableVideoWithEndorsement=function(b){var h;return!((h=b.slice(0,this.getItemsPerRow()))==null||!h.some(function(y){var S;y=_.c(y==null?void 0:(S=y.richItemRenderer)==null?void 0:S.content,_.tT);var F;return(y==null?void 0:y.inlinePlaybackEndpoint)&&(y==null?void 0:(F=y.thumbnailOverlays)==null?void 0:F.some(function(a){return a.thumbnailOverlayEndorsementRenderer}))}))};
_.d.refreshGridLayoutNew=function(b,h,y,S){var F=S.postsPerRow;var a=S.slimItemsPerRow;var P=S.gameCardsPerRow;S=S.miniGameCardsPerRow;var K;if((K=this.data)==null||!K.contents||!this.containerWidth)return!1;var n;if((n=this.data.responsiveContainerConfiguration)==null?0:n.responsiveSize){var X=_.SZj(this.data.responsiveContainerConfiguration,this.containerWidth,2),u;K=_.kr(Object.assign({},X,{standardUnitMinWidth:(u=this.data)==null?void 0:u.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&X.isCompactList)}else K=_.kr({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(X=this.data)==null?void 0:X.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=K.typographyBump;u=!1;if(b||this.elementsPerRow!==K.numItems||this.postsPerRow!==F||this.slimItemsPerRow!==a||this.gameCardsPerRow!==
P||this.miniGameCardsPerRow!==S||this.gutter!==K.gutter)u=this.elementsPerRow!==K.numItems,this.elementsPerRow=K.numItems,this.postsPerRow=F,this.slimItemsPerRow=a,this.gameCardsPerRow=P,this.miniGameCardsPerRow=S,this.gutter=K.gutter,this.itemWidth=K.itemWidth,this.reflowContent(h),_.nZ(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":K.gutter+"px","--ytd-rich-grid-posts-per-row":""+this.postsPerRow,"--ytd-rich-grid-slim-items-per-row":""+this.slimItemsPerRow,
"--ytd-rich-grid-game-cards-per-row":""+this.gameCardsPerRow,"--ytd-rich-grid-mini-game-cards-per-row":""+this.miniGameCardsPerRow}),this.updateElementsPerRow(),this.updateMiniMode(y);this.ytdReduxBehavior.dispatch(_.$8({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:K.maxContainerWidth}));return u};
_.d.refreshGridLayout=function(b,h){var y,S=(y=this.hostElement)==null?void 0:y.clientWidth;this.containerWidth=this.adjustRichGridWidth(S,!0);var F;if((F=this.data)==null||!F.contents||!this.containerWidth)return b&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&(b=!0,this.pendingForceReflow=!1);y=this.getRichItemMinWidth(S);var a=this.isShortsPanel?146:194,P=this.getMiniGameCardMinWidth(),K=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:_.tj("rich_grid_default_max_items_per_row",
6);S=y=this.calcElementsPerRow(y,K);(F=y<=3&&this.miniModeAllowed())&&(y=this.calcElementsPerRow(240,4));var n=this.calcMaxSlimElementsPerRow(y,K,this.isDefaultGrid);K=this.calcElementsPerRow(a,n);var X=this.calcElementsPerRow(this.isCompactGrid?a:154,n);a=this.calcElementsPerRow(this.isCompactGrid?a:P,n);P=!1;if(this.sizing)return this.refreshGridLayoutNew(b,h,F,{postsPerRow:S,slimItemsPerRow:K,gameCardsPerRow:X,miniGameCardsPerRow:a});if(b||this.elementsPerRow!==y||this.postsPerRow!==S||this.slimItemsPerRow!==
K||this.gameCardsPerRow!==X||this.miniGameCardsPerRow!==a)P=this.elementsPerRow!==y,this.elementsPerRow=y,this.postsPerRow=S,this.slimItemsPerRow=K,this.gameCardsPerRow=X,this.miniGameCardsPerRow=a,this.reflowContent(h),this.updateElementsPerRow(),_.nZ(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)&&_.nZ(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(F);_.aw(this.hostElement,"yt-rich-grid-layout-refreshed");return P};
_.d.getRichItemMinWidth=function(b){var h=_.tj("rich_grid_min_item_width",310);if(!_.r("kevlar_disable_min_width_override")){var y,S;h=(S=(y=this.data)==null?void 0:y.minItemWidth)!=null?S:h}return h+_.XhM(b)};
_.d.calcMaxSlimElementsPerRow=function(b,h,y){return(y===void 0?0:y)?b===1?2:b%2===0?b/2*3:b+2:h*2};
_.d.adjustRichGridWidth=function(b,h){var y=_.r("disable_rich_grid_guide_compensation");if(!this.isWatch&&!y){y=_.H9().resolve(_.XS(_.zO));var S=y==null?void 0:y.guideElement;if(!(!y||y.getData()||S!=null&&S.opened||y.getMiniGuideVisible()))if(y.canFitPersistentGuide(b)&&y.getGuideExpandsAutomatically()){var F,a,P=Number((F=window.getComputedStyle(this.hostElement))==null?void 0:(a=F.getPropertyValue("--app-drawer-width"))==null?void 0:a.replace("px",""));b-=P||0}else if(y.canFitMiniGuide(b)){var K;
F=Number((P=window.getComputedStyle(this.hostElement))==null?void 0:(K=P.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:K.replace("px",""));b-=F||0}}b>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(b-=h?32:48));return b};
_.d.calcElementsPerRow=function(b,h){var y=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),S=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((y+S)/(b+S))||1,h)};
_.d.reflowContent=function(b){var h=this;if(!this.isReflowing){this.isReflowing=!0;var y,S,F=!!((y=this.data)==null?0:(S=y.contents)==null?0:S.some(function(K){return _.c(K,_.yp)}));
y=this.getItemsPerRow();var a;S=(a=this.data)==null?void 0:a.reflowOptions;b&&(_.pI("rgr_s"),_.Ob(this,function(){_.pI("rgr_nrf")}));
b={};(a=_.$x(this.hostElement).querySelector("#contents"))&&(b={contentElement:a,rendererToTagNameMap:this.rendererToTagNameMap});a=(a=this.data.contents)?a.slice():[];F=gbP(a,y,F,S,this.getRichGridStyle(),b,this.insertedContent);var P=F.orderedContent;if(F=F.pinnedContentNotShownTargetIds)for(F=_.L(F),y=F.next();!y.done;y=F.next())this.insertedContent.delete(y.value);F=function(){h.shownItems=P;h.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(P),_.Ob(this,F)):F()}};
_.d.getFirstRowItems=function(b){for(var h=[],y=0;y<b.length;y++){var S=void 0,F=void 0,a=void 0,P=void 0,K=void 0,n=void 0;if(((S=b[y])==null?void 0:(F=S.richItemRenderer)==null?void 0:F.rowIndex)===0||((a=b[y])==null?void 0:(P=a.richGroupRenderer)==null?void 0:P.rowIndex)===0||((K=b[y])==null?void 0:(n=K.richSectionRenderer)==null?void 0:n.rowIndex)===0)h.push(b[y]);else break}return h};
_.d.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.d.resetInsertedContentIfNeeded=function(){(_.r("web_explore_hub_on_hover")||_.r("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.d.handleChipCloudChipSelectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed()};
_.d.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()};
_.d.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.d.terminateVideoPreview=function(){_.aw(this.hostElement,"yt-terminate-video-preview-action")};
_.d.updateRichItemGridPositions=function(){var b={gridData:{gridColumnCount:this.elementsPerRow}},h;((h=this.data)==null?0:h.trackingParams)&&(h=_.UE())&&_.xp(h,_.I_(this.data.trackingParams),b);_.aw(this.hostElement,"ytd-rich-item-index-update-action")};
_.d.miniModeAllowed=function(){return this.isChannelPage};
_.d.getMiniGameCardMinWidth=function(){return 154};
_.d.updateMiniMode=function(b){this.miniMode=this.miniModeAllowed()&&b;this.ytdReduxBehavior.dispatch(_.$8({type:"SET_RICH_GRID_MINI_MODE",payload:b}))};
_.d.isCurrentPage=function(){return location.pathname===this.pagePath};
_.d.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var b=_.H9().resolve(_.bM).getCurrentPage();b&&b.setScrollTop(0)}};
_.d.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.d.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.d.maybeSetBigYoodle=function(){var b,h=(b=this.data)==null?void 0:b.bigYoodle;this.bigYoodleData!==h&&(this.bigYoodleData=h)};
_.d.setMasthead=function(){var b;((b=this.data)==null?0:b.masthead)?this.mastheadData=this.data.masthead:this.mastheadData=void 0};
_.d.getRichGridStyle=function(){var b,h;return(h=(b=this.data)==null?void 0:b.style)!=null?h:"RICH_GRID_STYLE_UNKNOWN"};
_.d.onIsShortsGridChange=function(){var b=this.ytdReduxBehavior,h=b.dispatch,y=this.getRichGridStyle();h.call(b,_.$8({type:"SET_RICH_GRID_STYLE",payload:y}))};
_.d.onFeedCustomizationScrollUp=function(){this.scrollUpToTop()};
_.d.onScroll=function(){this.isScrolled=window.scrollY>0};
_.tm.Object.defineProperties(wL.prototype,{showChipsOnScroll:{configurable:!0,enumerable:!0,get:function(){return _.r("kevlar_show_chips_on_scroll")&&this.isHomePage&&!this.isChannelPage&&!this.isFilteredFeed}},
loadingContentRenderer:{configurable:!0,enumerable:!0,get:function(){var b;return(b=this.ytContinuationHandlerBehavior)==null?void 0:b.reloadUiContent}},
hasLoadingContent:{configurable:!0,enumerable:!0,get:function(){return!!this.loadingContentRenderer}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.data)==null?void 0:b.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var b;return(((b=this.data)==null?void 0:b.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var b;return(((b=this.data)==null?void 0:b.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var b=_.H9().resolve(_.bM).getCurrentPage(),h,y,S;return(((h=this.data)==null?void 0:h.targetId)==="browse-feedFEsfv_audio_pivot"||_.r("web_enable_channel_pivot_panel")&&((y=this.data)==null?void 0:y.targetId)==="browse-feedFEsfv_channel_pivot"||_.r("web_enable_effect_pivot_panel")&&((S=this.data)==null?void 0:S.targetId)==="browse-feedFEsfv_effect_pivot")&&(b==null?void 0:b.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.r("kevlar_watch_grid_reduced_top_margin_rich_grid")}},
noTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&!this.isWatchDefaultLayout}},
topRowEndorsement:{configurable:!0,enumerable:!0,get:function(){return this.isInlinePreviewEnabled&&this.hasTopRowInlinePlayableVideoWithEndorsement(this.shownItems)}},
hideHeader:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.data)==null?0:b.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var b;return((b=_.H9().resolve(_.bM).getCurrentPage())==null?void 0:b.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var b;return((b=_.H9().resolve(_.bM).getCurrentPage())==null?void 0:b.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 b;return(((b=this.data)==null?void 0:b.targetId)||"")==="watch-next-feed"}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var b,h,y;return((b=this.data)==null?0:b.enableContentSpecificAspectRatio)||((h=this.data)==null?0:(y=h.responsiveContainerConfiguration)==null?0:y.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.tj("web_continuation_handler_margin",0):0}}});
wL.prototype.onIsShortsGridChange=wL.prototype.onIsShortsGridChange;wL.prototype.onReloadContinuationFinish=wL.prototype.onReloadContinuationFinish;wL.prototype.reflowContent=wL.prototype.reflowContent;wL.prototype.handleRerenderDownloadsData=wL.prototype.handleRerenderDownloadsData;wL.prototype.onRichShelfRendererCollapse=wL.prototype.onRichShelfRendererCollapse;wL.prototype.onRequestElementsPerRow=wL.prototype.onRequestElementsPerRow;wL.prototype.contentLengthChanged=wL.prototype.contentLengthChanged;
wL.prototype.dataChanged=wL.prototype.dataChanged;wL.prototype.onSizingChange=wL.prototype.onSizingChange;wL.prototype.onUseCompactListChange=wL.prototype.onUseCompactListChange;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],wL.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],wL.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ab),_.f("design:type",Object)],wL.prototype,"ironResizableBehavior",void 0);
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],wL.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.p1),_.f("design:type",Object)],wL.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],wL.prototype,"componentBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],wL.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],wL.prototype,"data",void 0);
_.V([_.C({reflectToAttribute:!0,selector:_.Jt}),_.f("design:type",Boolean)],wL.prototype,"miniMode",void 0);_.V([_.C({value:[]}),_.f("design:type",Array)],wL.prototype,"shownItems",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],wL.prototype,"isReflowing",void 0);_.V([_.C({value:!1,reflectToAttribute:!0}),_.f("design:type",Boolean)],wL.prototype,"isFilteredFeed",void 0);_.V([_.C({selector:_.sDY}),_.f("design:type",Boolean)],wL.prototype,"guideIsExpanded",void 0);
_.V([_.C({selectorArgs:["entitySelectorType"],selector:function(b,h){if(_.r("kevlar_modern_downloads_page")&&h&&h!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(h){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":h=b.entities;var y=_.At(h),S=_.Un(h),F=_.yKq(b),a=_.h4N(b),P=_.St8(b),K=_.I4M(h),n=_.RU(y),X=_.pi(h);return _.x74(y,S,K,_.UbM(h),F,a,n,X,P,_.awM(b),_.sn(b));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return b=_.At(b.entities),_.m7q(b);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return b=
_.RG5(b.entities),_.v4f(b);default:_.vX(new _.Gn("Error: entitySelectorType defined but not matched in selector.",b,h))}}}),
_.f("design:type",Object)],wL.prototype,"entityDrivenRichGridData",void 0);_.V([_.C(),_.f("design:type",Object)],wL.prototype,"resizeOnObserverInit",void 0);_.V([_.C(),_.f("design:type",Object)],wL.prototype,"bigYoodleData",void 0);_.V([_.C(),_.f("design:type",Object)],wL.prototype,"mastheadData",void 0);_.V([_.C(),_.f("design:type",Boolean)],wL.prototype,"isInlinePreviewDisabled",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],wL.prototype,"disableStickyFilterBar",void 0);
_.V([_.C(),_.f("design:type",Object)],wL.prototype,"transparentBackgroundChipsBar",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],wL.prototype,"hideChipsBar",void 0);_.V([_.C({reflectToAttribute:!0}),_.W("isHomePage","isFilteredFeed"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],wL.prototype,"showChipsOnScroll",null);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],wL.prototype,"isScrolled",void 0);
_.V([_.C(),_.f("design:type",Object)],wL.prototype,"isWatchDefaultLayout",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],wL.prototype,"continuationShowButton",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],wL.prototype,"rowReducedHorizontalMargin",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],wL.prototype,"useCompactList",void 0);_.V([_.C({selector:function(b){return _.Un(b.entities).length>0}}),
_.f("design:type",Object)],wL.prototype,"manualDownloadsPresent",void 0);_.V([_.C({selector:function(b){return _.At(b.entities).length>0}}),
_.f("design:type",Object)],wL.prototype,"smartDownloadsPresent",void 0);_.V([_.C({selector:_.sn}),_.f("design:type",Object)],wL.prototype,"isOnline",void 0);_.V([_.C({selector:_.h4N}),_.f("design:type",Object)],wL.prototype,"shouldRenderDownloadsBanner",void 0);_.V([_.C({selector:_.awM}),_.f("design:type",Object)],wL.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.V([_.C({selector:_.yKq}),_.f("design:type",Object)],wL.prototype,"hasOptedIntoSmartDownloads",void 0);
_.V([_.OB("useCompactList"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],wL.prototype,"onUseCompactListChange",null);_.V([_.OB("sizing","typographyBump"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],wL.prototype,"onSizingChange",null);_.V([_.C({selector:_.ENf}),_.f("design:type",Number)],wL.prototype,"miniplayerPlaybackState",void 0);_.V([_.C({selector:_.Ci}),_.f("design:type",Boolean)],wL.prototype,"miniplayerIsActive",void 0);
_.V([_.C({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.f("design:type",Boolean)],wL.prototype,"isInlinePreviewEnabled",void 0);_.V([_.C({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.f("design:type",String)],wL.prototype,"sizing",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],wL.prototype,"elementsPerRow",void 0);
_.V([_.C(),_.f("design:type",Object)],wL.prototype,"typographyBump",void 0);_.V([_.C(),_.f("design:type",Number)],wL.prototype,"itemWidth",void 0);_.V([_.to("#header"),_.f("design:type",HTMLElement)],wL.prototype,"headerElement",void 0);_.V([_.to("#contents"),_.f("design:type",HTMLElement)],wL.prototype,"contentsElement",void 0);_.V([_.W("reloadUiContent"),_.f("design:type",Object),_.f("design:paramtypes",[])],wL.prototype,"loadingContentRenderer",null);
_.V([_.W("reloadUiContent"),_.C({reflectToAttribute:!0}),_.f("design:type",Boolean),_.f("design:paramtypes",[])],wL.prototype,"hasLoadingContent",null);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],wL.prototype,"dataChanged",null);_.V([_.zj("data.contents.length"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],wL.prototype,"contentLengthChanged",null);
_.V([_.u3("yt-request-elements-per-row"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],wL.prototype,"onRequestElementsPerRow",null);_.V([_.u3("yt-rich-shelf-renderer-collapse"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],wL.prototype,"onRichShelfRendererCollapse",null);
_.V([_.zj("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],wL.prototype,"handleRerenderDownloadsData",null);_.V([_.W("data"),_.f("design:type",String),_.f("design:paramtypes",[])],wL.prototype,"entitySelectorType",null);
_.V([_.C({reflectToAttribute:!0}),_.W("data.targetId"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],wL.prototype,"isSub",null);_.V([_.C({reflectToAttribute:!0}),_.W("data.targetId"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],wL.prototype,"isWatch",null);_.V([_.C({reflectToAttribute:!0}),_.W("data.targetId"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],wL.prototype,"isShortsPanel",null);
_.V([_.C({reflectToAttribute:!0}),_.W("isWatch"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],wL.prototype,"reducedTopMargin",null);_.V([_.C({reflectToAttribute:!0}),_.W("data","isWatch","isWatchDefaultLayout"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],wL.prototype,"noTopMargin",null);_.V([_.C({reflectToAttribute:!0}),_.W("isInlinePreviewEnabled","shownItems"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],wL.prototype,"topRowEndorsement",null);
_.V([_.W("data.header"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],wL.prototype,"hideHeader",null);_.V([_.u3("yt-rich-grid-reflow"),_.f("design:type",Function),_.f("design:paramtypes",[Boolean]),_.f("design:returntype")],wL.prototype,"reflowContent",null);_.V([_.u3("yt-reload-continuation-finish"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],wL.prototype,"onReloadContinuationFinish",null);
_.V([_.W("data"),_.C({reflectToAttribute:!0}),_.f("design:type",Boolean),_.f("design:paramtypes",[])],wL.prototype,"isSlimGrid",null);_.V([_.W("data"),_.C({reflectToAttribute:!0}),_.f("design:type",Boolean),_.f("design:paramtypes",[])],wL.prototype,"isShortsGrid",null);_.V([_.W("data","isSlimGrid","isShortsGrid"),_.C(),_.f("design:type",Boolean),_.f("design:paramtypes",[])],wL.prototype,"noRichItemGutterMargins",null);
_.V([_.W("data"),_.C({reflectToAttribute:!0}),_.f("design:type",Boolean),_.f("design:paramtypes",[])],wL.prototype,"isShortsGridSlim",null);_.V([_.W("data"),_.C({reflectToAttribute:!0}),_.f("design:type",Boolean),_.f("design:paramtypes",[])],wL.prototype,"isCompactGrid",null);_.V([_.W("data"),_.C({reflectToAttribute:!0}),_.f("design:type",Boolean),_.f("design:paramtypes",[])],wL.prototype,"isDefaultGrid",null);
_.V([_.W("data.targetId"),_.C({reflectToAttribute:!0}),_.f("design:type",Boolean),_.f("design:paramtypes",[])],wL.prototype,"hideChipsBarOnWatch",null);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],wL.prototype,"onIsShortsGridChange",null);_.V([_.W("data.enableContentSpecificAspectRatio"),_.C(),_.f("design:type",Boolean),_.f("design:paramtypes",[])],wL.prototype,"force16By9ThumbnailAspectRatio",null);
_.V([_.W("data"),_.f("design:type",Number),_.f("design:paramtypes",[])],wL.prototype,"continuationTriggerOffset",null);_.V([_.Yx({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],wL);
_.k(wL,"ytd-rich-grid-renderer",function(){if(a9f!==void 0)return a9f;var b=document.createElement("template");_.D(b,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[hideHeader]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="big-yoodle" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="masthead-ad" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-rich-grid-renderer">\n  <div id="title" class="style-scope ytd-rich-grid-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="contents" hidden="[[hasLoadingContent]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="reload-content" class="style-scope ytd-rich-grid-renderer"></div>\n');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return a9f=b},{mode:2});var OqJ=_.T(function(b){return _.M("yt-feedback-prompt-view-model",{class:_.P2("ytFeedbackPromptViewModelHost",b.className)},_.M(_.H,{cond:function(){return b.data().text},
then:function(h){return _.M(_.zv,{text:h,className:"ytFeedbackPromptViewModelPrompt"})}}),_.M(_.rC,{data:function(){return b.data().likeButton}},{likeButtonViewModel:function(h){return _.M(_.cD,{data:h.data,
className:"ytFeedbackPromptViewModelLikeButton"})}}),_.M(_.rC,{data:function(){return b.data().dislikeButton}},{dislikeButtonViewModel:_.r7}))},"Jn");var NB9=_.T(function(b){var h=_.L((0,_.Sia)(b.data)).next().value,y=function(){var S,F;return(F=(S=h().contents)==null?void 0:S.length)!=null?F:0};
return _.M("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return b.data().targetId||""},
"aria-busy":function(){var S,F;return(F=(S=h().contents)==null?void 0:S.some(function(a){return!!a.chatLoadingViewModel}))!=null?F:!1}},_.M(_.rC,{data:function(){return b.data().header}},{chipBarViewModel:_.a2W,
sectionHeaderViewModel:_.SE}),_.M(_.rC,{data:function(){return h().contents}},{accordionViewModel:_.iO8,
alertBannerViewModel:_.ZO8,chatLoadingViewModel:function(S,F){return _.M(_.X3Y,{data:S.data,containerHeight:b.containerHeight,isLastItem:function(){return F()===y()-1}})},
chatUserTurnViewModel:function(S,F){return _.M(_.nSA,{data:S.data,containerHeight:b.containerHeight,isLastItem:function(){return F()===y()-1}})},
feedbackPromptViewModel:OqJ,gridShelfViewModel:function(S){return _.M(_.Ru,{data:S.data,shouldUseOwnContainerSize:!0,marginSettings:b.marginSettings,useUpdatedMargin:!0})},
learningJourneyLoaderViewModel:_.gmW,linearLayoutViewModel:_.B$,lockupViewModel:function(S){return _.M(_.vQ,{data:S.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:b.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
sectionHeaderViewModel:_.SE,videoOverviewViewModel:_.b4A,youChatItemViewModel:function(S,F){return _.M(_.MjN,{data:S.data,pending:!1,containerHeight:b.containerHeight,isLastItem:function(){return F()===y()-1}})}}))},"Kn");_.yd(_.T(function(b){var h=_.L((0,_.Sia)(b.data)).next().value,y=_.L(_.Rr()),S=y.next().value;y=y.next().value;var F=_.Qa(y);y=_.L(_.pa(void 0,void 0,"fqbUqd"));var a=y.next().value,P=y.next().value,K=function(){var n;return _.c((n=b.data().sectionListLayoutConfiguration)==null?void 0:n.layoutConfiguration,qS_)};
_.wg(function(){var n,X=(n=F.value)==null?void 0:n.clientWidth;n=K()?_.YZr(X,K()):void 0;P(n)});
y={};return _.M("yt-section-list-renderer",{class:_.P2("ytSectionListRendererHost",b.className,(y.ytSectionListRendererHostOverscrollContain=function(){var n;return(n=b.overscrollContain)==null?void 0:n.call(b)},y)),
el:F,"data-target-id":function(){return b.data().targetId||""}},_.M(_.rC,{data:function(){return h().contents}},{itemSectionRenderer:function(n){return _.M(NB9,{data:n.data,
containerLayoutConfig:a,marginSettings:b.marginSettings,containerHeight:function(){return S.height()}})}}))},"Ln"),"yt-section-list-renderer",{props:{data:_.D4,
className:_.v3,marginSettings:_.D4,overscrollContain:_.D4}});var tGc;var rWA;var cWD=function(){return _.g.apply(this,arguments)||this};
_.z(cWD,_.g);_.V([_.C(),_.f("design:type",Object)],cWD.prototype,"data",void 0);_.V([_.sB({is:"yt-alert-renderer",disableElementRegistration:!0})],cWD);
_.k(cWD,"yt-alert-renderer",function(){if(rWA===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;tGc===void 0&&(tGc=document.createElement("template"));var S=tGc;y.call(h,S.content.cloneNode(!0),b.content.firstChild);rWA=b}b=rWA;return b},{mode:2});
}catch(e){_._DumpException(e)}
try{
var fTA;fTA=function(b,h,y,S){y||(b?S&&(S.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||S.WINDOW_SIZE_CHANGED&&(h.width!==window.innerWidth||h.height!==window.innerHeight)||S.SAFARI_ABORTED_BY_NEW_TRANSITION&&b instanceof DOMException&&b.name==="AbortError"&&b.message.includes("Old view transition aborted by new view transition"))||_.QT(b):_.QT(Error("zj")))};
_.wdE=function(b,h){h=h===void 0?{}:h;var y,S,F,a,P,K,n,X,u,O,N,t,R;return _.Z(function(I){switch(I.nextAddress){case 1:y=h;S=y.shouldWrap===void 0?!0:y.shouldWrap;F=y.skipTransitionTimeoutMs===void 0?300:y.skipTransitionTimeoutMs;a=y.beforeTransition;P=y.afterTransition;if(!S||!document.startViewTransition||document.visibilityState==="hidden")return I.return(b());K={width:window.innerWidth,height:window.innerHeight};n=!1;(X=a)==null||X();_.WE(I,2);u=document.startViewTransition(b);O=setTimeout(function(){u.skipTransition();
n=!0},F);
return I.yield(u.ready,4);case 4:return clearTimeout(O),I.yield(u.finished,5);case 5:clearTimeout(O);(N=P)==null||N();_.Lz(I,0);break;case 2:t=_.C$(I),(R=P)==null||R(),fTA(t,K,n,h.ignoredErrors),_.g3(I)}})};
_.lTf=function(b,h){var y=_.H$n(h);y!=="javascript:"&&y!=="data:"&&b.setAttribute("href",h)};
_.xc=function(){for(var b=Array(36),h=0,y,S=0;S<36;S++)S==8||S==13||S==18||S==23?b[S]="-":S==14?b[S]="4":(h<=2&&(h=33554432+Math.random()*16777216|0),y=h&15,h>>=4,b[S]=_.hWk[S==19?y&3|8:y]);return b.join("")};
_.q0q=function(b,h,y){b.persistentPanelContainerMap.set(y,h)};/*

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 xCa=_.bm(['<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>']),
Q3E=_.YBP(xCa);Q3E.setAttribute("style","display: none;");document.head.appendChild(Q3E.content);_.Qo=_.r9M(function(b){var h=_.gB("DIV");b&&(h.className=b);h.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";b=_.gB("DIV");_.Jg7(b,"200px","200px");h.appendChild(b);document.body.appendChild(h);b=h.offsetWidth-h.clientWidth;_.sD(h);return b});var mCA;var vgf;var mO=function(){var b=_.g.apply(this,arguments)||this;b.icon=null;return b};
_.z(mO,_.g);mO.prototype.dismiss=function(){_.Sx(this.hostElement,"yt-live-chat-error-message-dismiss")};
mO.prototype.computeIcon=function(b){return b&&b.iconType?"yt-icons:"+b.iconType.toLowerCase():"yt-icons:close"};
_.V([_.C(),_.f("design:type",Object)],mO.prototype,"data",void 0);_.V([_.C({computed:"computeIcon(data.icon)"}),_.f("design:type",Object)],mO.prototype,"icon",void 0);_.V([_.sB({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],mO);
_.k(mO,"yt-live-chat-error-message-renderer",function(){if(vgf===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;mCA===void 0&&(mCA=document.createElement("template"));var S=mCA;y.call(h,S.content.cloneNode(!0),b.content.firstChild);vgf=b}b=vgf;return b},{mode:0});
}catch(e){_._DumpException(e)}
try{
var EPR,izA,fBP,wLP,xOx,vPD,bKM,hmA,ydp,SuJ,FmA,a7c,diP,Ul,jh2,$iJ,Lm2,PF9,KmL,ZKM,o2D,MZL,n2_,HKx,up$,OKc,NdA,tZ2,rdf,cdJ,RmD,zmf,DiJ,I7$,Bdc,WmA,AdP,Ui_,emA,g2D,Yu9,TdD,GE$,kEx,pXf,Jdp,iKP,f7J,wX2,l7f,quD,xi2,Qh_,miL,VZx;EPR=function(b,h){return _.Mm(b.entities,"timedMarkersListSyncEntity",h)};
izA=function(b,h){return _.Mm(b.entities,"liveReactionsDataEntity",h)};
fBP=function(b,h){b=_.Mm(b.entities,"booleanEntity",h);return!(!b||!b.value)};
wLP=function(b,h){var y=_.UE();y&&b&&_.Vh(y,_.I_(b),h)};
_.lBf=function(b){return b.watch.isWatchActive};
_.qvR=function(b){return!_.i_k(b)};
_.AI=function(b){return b.watch.watchScrollTop};
xOx=function(b){return b.watch.isLiveChatCollapsed};
_.Q2x=function(){_.r("web_watch_log_theater_mode")&&_.M0r("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.mOc=function(b,h,y){if(!b.includes("START_TIME_PLACEHOLDER")||!b.includes("END_TIME_PLACEHOLDER"))return b;var S=new Date(0),F=new Date(0);S.setUTCMilliseconds(h);F.setUTCMilliseconds(y);return b.replace("START_TIME_PLACEHOLDER",_.qm(S,7)).replace("END_TIME_PLACEHOLDER",_.qm(F,7))};
vPD=function(b){return{listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:b}}]}}}};
bKM=function(b,h,y){var S=_.r("web_enable_chat_autoscroll_to_user_turn")?"user_turn_message_id-"+Date.now():void 0;h=Object.assign({},{text:h,hasGradientBackground:y},S&&{itemTargetId:S});S=_.r("web_enable_chat_autoscroll_to_user_turn")&&S?{scrollToItem:{scrollPosition:"SCROLL_POSITION_START",item:{itemTargetId:S,sectionTargetId:"youchat_section_list"}}}:void 0;return{listMutationCommand:{operations:Object.assign({},{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:h}],insertByPositionInSection:{sectionTargetId:b,
position:"INSERTION_POSITION_LAST"}}}]},S?{scrollConfig:S}:{})}}};
hmA=function(b,h){return _.Mm(b.entities,"booleanEntity",h)};
ydp=function(){return function(b){_.vl(_.R7("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:b}))}};
SuJ=function(b){switch(b){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}};
FmA=function(b,h,y){var S=_.YS(y);b&&h&&S&&b.getPlayerPromise().then(function(F){_.uYf(S)&&_.x2();(new _.n1(F)).executeCommand(S,h);_.r("continue_playback_on_desktop_companion_click")||F.pauseVideo()})};
a7c=function(b){var h=_.ye(),y;if(y=_.hj("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var S;y=(S=y())==null?void 0:S.layoutId}else y=null;FmA(h,y,b)};
diP=function(b){var h=_.ye(),y;if(y=_.hj("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var S;y=(S=y())==null?void 0:S.layoutId}else y=null;FmA(h,y,b)};
Ul=function(b,h){var y=b<0?"-":"";b=Math.abs(b);var S=Math.floor(b/3600),F=Math.floor(b)%3600,a=Math.floor(F/60);F=Math.floor(F)%60;var P="";(h===void 0?0:h)&&(P="."+Math.round((b-Math.floor(b))*10));return S>0?y+S+":"+(a<10?"0"+a:""+a)+":"+(F<10?"0"+F:""+F)+P:y+a+":"+(F<10?"0"+F:""+F)+P};
jh2=function(b){var h=b.match(/[^0-9:\.]/g);if(h&&h.length>0)return null;b=b.split(":");if(b.length===0||b.length>3)return null;h=1;for(var y=0;b.length>0;){var S=b.pop();if(S===void 0)break;var F=Number(S);if(S===""||isNaN(F))return null;y+=F*h;h*=60}return y};
$iJ=function(b,h,y,S){b=Math.max(y,b);h=Math.min(h,S-y);b+h>S?(y=S,b=y-h):y=b+h;return{start:b,end:y}};
Lm2=function(b,h,y,S,F,a){b<y?b=y:b+F>S&&(b=S-F);h>S&&(h=S);h=Math.min(b+a,Math.max(b+F,h));return{start:b,end:h}};
PF9=function(b,h,y,S,F,a){h>S?h=S:h-F<y&&(h=y+F);b<y&&(b=y);b=Math.min(h-F,Math.max(h-a,b));return{start:b,end:h}};
KmL=function(b){return _.r("web_transcript_cue_id_killswitch")?String(b):"ytd-transcript-renderer_"+b};
ZKM=function(b){return _.r("web_transcript_cue_id_killswitch")?!0:b.startsWith("ytd-transcript-renderer")};
o2D=function(b){var h=_.ye(),y;if(y=_.hj("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var S;y=(S=y())==null?void 0:S.layoutId}else y=null;FmA(h,y,b)};
MZL=function(b){b.style.height="auto";b.style.height=Math.min(b.scrollHeight||20,80)+"px"};
n2_=function(){var b;return String(Math.floor(((b=_.o7())==null?void 0:b.getCurrentTime())||0)*1E3)};
HKx=function(b){if(b.onWelcomeCommand)return _.YS(b.onWelcomeCommand);b=_.c(b.inputComposerViewModel,XX9);if(b==null?0:b.welcomeFeatureContinuation)return _.btY(b.welcomeFeatureContinuation)};
up$=function(b){var h=_.ye(),y;y=(y=_.hj("yt.www.ads.eventcache.getLastCompanionData"))?(y=y())&&y.layoutId:null;FmA(h,y,b)};
OKc=function(b){var h=_.ye(),y;y=(y=_.hj("yt.www.ads.eventcache.getLastCompanionData"))?(y=y())&&y.layoutId:null;FmA(h,y,b)};
NdA=function(b){if(b.simpleText)return[{text:b.simpleText}];var h;return(h=b.runs)!=null?h:[]};
tZ2=function(b){var h=b.startEndTimeTemplate,y=b.startTimeUtcMillis;b=b.endTimeUtcMillis;if(h&&y&&b)return _.mk(_.mOc(_.vi(h),Number(y),Number(b)))};
rdf=function(b,h){var y,S,F=b==null?void 0:(y=b.viewCount)==null?void 0:(S=y.videoViewCountRenderer)==null?void 0:S.shortViewCount;if(!h&&F)return F;var a,P;return b==null?void 0:(a=b.viewCount)==null?void 0:(P=a.videoViewCountRenderer)==null?void 0:P.viewCount};
cdJ=function(b,h){var y=b==null?void 0:b.relativeDateText;return!h&&y?[y,!0]:[b==null?void 0:b.dateText,!1]};
RmD=function(b,h,y,S,F){S=S===void 0?"":S;F=F===void 0?!1:F;var a=rdf(b,h),P=_.L(cdJ(b,h)),K=P.next().value;P=P.next().value;h=h?b==null?void 0:b.sponsorsOnlyFirstTimeLongText:b==null?void 0:b.sponsorsOnlyFirstTimeShortText;var n=[];y&&a&&n.push(a);!y&&P||!K||n.push(K);b=[F?b==null?void 0:b.subtitle:void 0].concat(_.f$(n),[h,b==null?void 0:b.stationName,b==null?void 0:b.rating,b?tZ2(b):void 0,b==null?void 0:b.upNextProgramText,b==null?void 0:b.superTitleLink]).filter(function(X){return!!X});
y={runs:[]};for(F=0;F<b.length;F++)y.runs.push.apply(y.runs,_.f$(NdA(b[F]))),F<b.length-1&&y.runs.push({text:" "+S+" "});return y};
zmf=function(b){return b.filter(function(h){return!_.c(h,_.iG)})};
DiJ=function(b){var h,y,S,F;if(b=b==null?void 0:(h=b.contents)==null?void 0:(y=h.twoColumnWatchNextResults)==null?void 0:(S=y.results)==null?void 0:(F=S.results)==null?void 0:F.contents){var a,P;return(P=(a=b.find(function(K){return!!K.videoPrimaryInfoRenderer}))==null?void 0:a.videoPrimaryInfoRenderer)==null?void 0:P.updatedMetadataEndpoint}};
I7$=function(b,h){var y;return(y=b.sourceConfigs)==null?void 0:y.find(function(S){return S.videoId===h})};
Bdc=function(b){return b==="End of video"||b==="End of playlist"};
WmA=function(b){var h,y,S,F;return(h=b.getWatchNextResponse())==null?void 0:(y=h.contents)==null?void 0:(S=y.twoColumnWatchNextResults)==null?void 0:(F=S.playlist)==null?void 0:F.playlist};
AdP=function(b){var h,y,S,F,a,P;return(h=WmA(b))==null?void 0:(y=h.playlistButtons)==null?void 0:(S=y.menuRenderer)==null?void 0:(F=S.topLevelButtons)==null?void 0:(a=F[0])==null?void 0:(P=a.playlistLoopButtonRenderer)==null?void 0:P.playlistLoopStateEntityKey};
Ui_=function(b){var h=_.H9().resolve(_.Rz),y;return(h=(y=_.c(h.getAutoplayEndpoint(),_.wO))==null?void 0:y.playlistId)&&h===b};
emA=function(b,h,y,S,F){function a(){_.xP.cancelJob(pJ);var P=pXf(h,y/b.getPlaybackRate()),K=P.hours,n=P.minutes;P=(P.seconds*1E3||6E4)/b.getPlaybackRate();b.setVideoTimeLeft(Jdp(K,n));S&&b.getPlayerState()!==0&&b.setSleepTimerTimeLeft(Jdp(K,n,!0));(K>0||n>0)&&!F&&(pJ=_.I7(_.xP,a,P))}
_.xP.cancelJob(pJ);pJ=_.I7(_.xP,a)};
g2D=function(b,h,y){function S(){_.xP.cancelJob(CFM);var F=pXf(h,y),a=F.hours;F=F.minutes;var P=6E4/b.getPlaybackRate();if(a>0||F>0)b.setSleepTimerTimeLeft(Jdp(a,F,!0)),CFM=_.I7(_.xP,S,P)}
_.xP.cancelJob(CFM);CFM=_.I7(_.xP,S)};
Yu9=function(b,h){var y=b.getVolume()/(h/500),S=function(F){_.xP.cancelJob(shM);var a=Math.floor(F-y);b.setVolume(a,!1);a>0&&(shM=_.I7(_.xP,function(){S(a)},500))};
_.xP.cancelJob(shM);shM=_.I7(_.xP,function(){S(b.getVolume())})};
TdD=function(b,h){_.xP.cancelJob(shM);h&&b.syncVolume()};
GE$=function(){var b={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.Mt("SLEEP_TIMER_DISRUPTED")}}}}};_.H9().resolve(_.OM).resolveCommand(b)};
kEx=function(b){return(b.getDuration()-b.getProgressState().current)*1E3};
pXf=function(b,h){b=b+h-(0,_.NO)();if(b<=0)return{hours:0,minutes:0,seconds:0};var y=new VZx(0,0,0,0,0,0,b);b=y.getHours();h=y.getMinutes();y=y.getSeconds();y!==0&&h++;h!==0&&h%60===0&&(b++,h=0);return{hours:b,minutes:h,seconds:y}};
Jdp=function(b,h,y){return b>0&&h>0?y?_.Mt("TIME_LEFT_HOURS_MINUTES",{hours:b.toString(),minutes:h.toString()}):_.Mt("TIME_HOURS_MINUTES",{hours:b.toString(),minutes:h.toString()}):b>0?y?_.nI("TIME_LEFT_HOURS",b):_.nI("TIME_HOURS",b):y?_.Mt("TIME_LEFT_MINUTES",{minutes:h.toString()}):_.Mt("TIME_MINUTES",{minutes:h.toString()})};
iKP=function(b,h){if(b.timelyActions)return b.timelyActions.find(function(y){var S;return((S=_.c(y,E2P))==null?void 0:S.cueRangeId)===h})};
f7J=function(b){var h=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.pG(b);b.keyMap_.forEach(function(y,S){_.sj(h,S)||this.remove(S)},b)};
wX2=function(b,h){b.reloadContinuationItemsCommandMatcher=h};
l7f=function(b,h){var y;return _.Z(function(S){return S.nextAddress==1?h&&b.lastWelcomeContinuationSent!==h?_.VZX(b)?S.yield(b.panelController.isVisible("PAai_companion"),3):S.jumpTo(2):S.return(!1):S.nextAddress==2||(y=S.yieldResult,y)?S.return(!0):S.return(!1)})};
quD=function(b){var h,y,S,F,a;return _.Z(function(P){if(P.nextAddress==1){if(!b.welcomeOptions)return P.return();h=b.welcomeOptions;y=h.command;S=h.setPending;if(y){var K;var n=(K=_.c(y,_.sk))==null?void 0:K.token}else n=void 0;F=n;return P.yield(l7f(b,F),2)}if(!P.yieldResult)return P.return();b.lastWelcomeContinuationSent=F;(a=S)==null||a(!0);n="youchat-"+Date.now();K=(K=_.o7())?String(Math.floor(K.getCurrentTime())*1E3):void 0;_.TK(y,{form:{formData:_.M6({clientMessageId:n,playerOffsetMs:K,pageContext:_.SSx(b,
b.pageSubtype)})}});_.g3(P)})};
xi2=function(b,h){_.Z(function(y){b.welcomeOptions=h;return y.yield(quD(b),0)})};
_.JI=function(b,h){b.insertBefore(h,b.childNodes[0]||null)};
Qh_=function(b){if(b>=48&&b<=57||b>=96&&b<=106||b>=65&&b<=90||_.Hv&&b==0)return!0;switch(b){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 _.XW;default:return!1}};
miL=function(b){if(b.altKey&&!b.ctrlKey||b.metaKey||b.keyCode>=112&&b.keyCode<=123)return!1;if(Qh_(b.keyCode))return!0;switch(b.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!_.XW;default:return b.keyCode<166||b.keyCode>183}};
VZx=function(b,h,y,S,F,a,P){this.date=typeof b==="number"?new Date(b,h||0,y||1,S||0,F||0,a||0,P||0):new Date(b&&b.getTime?b.getTime():_.LF())};
_.Pv(VZx,_.xe);_.d=VZx.prototype;_.d.getHours=function(){return this.date.getHours()};
_.d.getMinutes=function(){return this.date.getMinutes()};
_.d.getSeconds=function(){return this.date.getSeconds()};
_.d.getMilliseconds=function(){return this.date.getMilliseconds()};
_.d.getUTCDay=function(){return this.date.getUTCDay()};
_.d.getUTCHours=function(){return this.date.getUTCHours()};
_.d.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.d.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.d.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.d.setHours=function(b){this.date.setHours(b)};
_.d.setMinutes=function(b){this.date.setMinutes(b)};
_.d.setSeconds=function(b){this.date.setSeconds(b)};
_.d.setMilliseconds=function(b){this.date.setMilliseconds(b)};
_.d.setUTCHours=function(b){this.date.setUTCHours(b)};
_.d.setUTCMinutes=function(b){this.date.setUTCMinutes(b)};
_.d.setUTCSeconds=function(b){this.date.setUTCSeconds(b)};
_.d.setUTCMilliseconds=function(b){this.date.setUTCMilliseconds(b)};
_.d.add=function(b){_.xe.prototype.add.call(this,b);b.hours&&this.setUTCHours(this.date.getUTCHours()+b.hours);b.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+b.minutes);b.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+b.seconds)};
_.d.JSC$11513_toIsoString=function(b){var h=_.xe.prototype.JSC$11513_toIsoString.call(this,b);return b?h+"T"+_.NM(this.getHours(),2)+":"+_.NM(this.getMinutes(),2)+":"+_.NM(this.getSeconds(),2):h+"T"+_.NM(this.getHours(),2)+_.NM(this.getMinutes(),2)+_.NM(this.getSeconds(),2)};
_.d.equals=function(b){return this.getTime()==b.getTime()};
_.d.toString=function(){return this.JSC$11513_toIsoString()};
_.d.clone=function(){var b=new VZx(this.date);b.firstDayOfWeek_=this.firstDayOfWeek_;b.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return b};
_.v2R=function(b){return _.$8({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:b}})};var bPA=new _.r4("imageTileRenderer");var hLM=new _.r4("promotedSparklesWebRenderer");var yRL=new _.r4("adGridCardCollectionViewModel");var SP2=new _.r4("carouselTitleViewModel");var FVP=new _.r4("ctaCarouselItemViewModel");var aRA=new _.r4("textFieldViewModel");_.dSc=new _.r4("engagementPanelHeaderShowNavigationButtonCommand");var jLD=new _.r4("hideEngagementPanelScrimAction");var $SR=new _.r4("setActivePanelItemAction");var LV9=new _.r4("showEngagementPanelScrimAction");var PhD=new _.r4("updateEngagementPanelAction");var KVD=new _.r4("updateSearchInVideoResultsAction");var ZPD=new _.r4("transcriptCueGroupRenderer");var oJP=new _.r4("transcriptCueRenderer");var MHM=new _.r4("transcriptFooterRenderer");var nJx=new _.r4("engagementPanelAdSubtitleRenderer");var Xop=new _.r4("videoDescriptionFantasySectionViewModel");var HPp=new _.r4("deleteClipEngagementPanelCommand");var uCA=new _.r4("loopCommand");var OP$=new _.r4("changeCreatorEndscreenVisibilityCommand");var N_9=new _.r4("liveChatCallForQuestionsRenderer");var tH9=new _.r4("updateTimedMarkersSyncObserverCommand");var E2P=new _.r4("timelyActionViewModel");var rRx=new _.r4("timelyActionsOverlayViewModel");var cRp=new _.r4("repeatChapterCommand");var RLc=new _.r4("watchPlayerOverflowMenuCommand");var zLM=new _.r4("compositeVideoOverlayRenderer");var DS9=new _.r4("sortFilterSubMenuRenderer");var IRL=new _.r4("switchListItemViewModel");var XX9=new _.r4("inputComposerViewModel");var B_R=new _.r4("transcriptEditSegmentCommand");var WVf=new _.r4("transcriptUpdateSegmentTextCommand");var AR2=new _.r4("transcriptSearchBoxRenderer");var US9=new _.r4("transcriptSegmentListRenderer");var po9=new _.r4("transcriptSegmentRenderer");_.JRL=new _.r4("updateDateTextAction");var eL9=new _.r4("updateTitleAction");var ChL=new _.r4("updateViewershipAction");var gJL=new _.r4("relatedChipCommand");var sLp=new _.r4("carouselLockupRenderer");var er=new _.r4("expandableVideoDescriptionBodyRenderer");var YP2=new _.r4("videoDescriptionHeaderRenderer");var T_R=new _.r4("videoDescriptionYouchatSectionViewModel");_.CJ=_.tj("kevlar_watch_page_horizontal_margin",24);_.GUL=_.tj("kevlar_watch_page_columns_top_padding",24);_.kUx=426+_.CJ*2;_.gM=_.tj("kevlar_watch_two_column_width_threshold",1E3);_.VHJ=_.CJ*2;_.EJ2=_.tj("kevlar_watch_secondary_width",402);_.iPA=_.tj("kevlar_watch_max_player_width",1280);_.fR$=_.tj("kevlar_watch_flexy_metadata_height",136);_.wof=_.VHJ+310+_.CJ;_.lRR=_.VHJ+360+_.CJ;var qP9={PAUSE_CHAT:18};var xSP;var QLx;var sl=function(){return _.g.apply(this,arguments)||this};
_.z(sl,_.g);sl.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
sl.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var b=_.c(this.data.button,_.cA);b&&(b.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.tm.Object.defineProperties(sl,{template:{configurable:!0,enumerable:!0,get:function(){if(QLx===void 0){var b=document.createElement("template");_.D(b,'\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>');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;xSP===void 0&&(xSP=document.createElement("template"));var S=xSP;y.call(h,S.content.cloneNode(!0),b.content.firstChild);QLx=b}b=QLx;return b}}});
_.V([_.B(_.Xc),_.f("design:type",Object)],sl.prototype,"ytLiveChatReduxBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],sl.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C({selectorArgs:["data.enabledEntityKey"],selector:fBP,observer:"onEnabledChange"}),_.f("design:type",Boolean)],sl.prototype,"enabled",void 0);_.V([_.C(),_.f("design:type",Object)],sl.prototype,"data",void 0);_.V([_.sB({is:"yt-disableable-button-view-model",noInjection:!0})],sl);var mS9;var vJR;var b2x=["transVert01","transVert02","transVert03"],hSL="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),Y_=function(){var b=_.g.apply(this,arguments)||this;b.emojiManager=_.I$;b.isDarkTheme=document.documentElement.hasAttribute("dark");b.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};b.reactionBuckets=[];b.noEmojiIdentifier="NO_EMOJI";return b};
_.z(Y_,_.g);_.d=Y_.prototype;_.d.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.d.desktopFountainEmojiSizePxChanged=function(){_.nZ(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.d.createUserReactionAnimation=function(b){this.createEmojiAnimation(b,!0)};
_.d.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var b;((b=this.data)==null?0:b.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.R7("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.f$(this.emojiContainer.children)).forEach(function(h){h.remove()})};
_.d.detached=function(){this.cleanupFountain()};
_.d.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var b;this.reactionBuckets=_.lR.unsafeClone((b=this.emojiFountainData)==null?void 0:b.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.d.processEmojiBucket=function(b){var h=this;if(this.reactionBuckets&&!(b>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var y=this.reactionBuckets[b];this.generateEmojiAnimations(y);if(b<this.reactionBuckets.length-1){var S;if(y==null?0:(S=y.duration)==null?0:S.seconds)this.emojiBucketTimerId=setTimeout(function(){h.processEmojiBucket(b+1)},Number(y.duration.seconds)*1E3)}}};
_.d.generateEmojiAnimations=function(b){var h=this,y=this.getRandomEmojiIdFromBucketWithOverride(b);if(y&&y!==this.noEmojiIdentifier){var S=0;b.targetEps?(S=this.linearInterpolateBounded(1,20,100,12,b.emojiSizeIndex||0),this.createEmojiAnimation(y,!1,b.emojiAnimationMs,S),S=this.getEmojiDelayMsFromTargetEps(b.targetEps)):(this.createEmojiAnimation(y),S=this.getEmojiDelayMsFromDistribution(b.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){h.generateEmojiAnimations(b)},S)}};
_.d.getRandomEmojiIdFromBucketWithOverride=function(b){if(!(b&&b.reactionsData&&b.reactionsData.length&&b.totalReactions))return this.noEmojiIdentifier;for(var h=b.totalReactions,y=1,S=_.L(b.reactionsData),F=S.next();!F.done;F=S.next())F=F.value,(F.reactionWeightOverride||F.reactionWeightOverride===0)&&F.reactionCount&&(h-=F.reactionCount,y-=F.reactionWeightOverride);S=!0;y<0&&(S=!1,h=b.totalReactions,y=1);if(S&&y>0&&h===0)if(y===1){F=0;for(var a=_.L(b.reactionsData),P=a.next();!P.done;P=a.next())P=
P.value,P.reactionCount&&P.reactionCount>0&&F++;F=1/F;a=_.L(b.reactionsData);for(P=a.next();!P.done;P=a.next())P.value.reactionWeightOverride=F}else for(F=1/(1-y),a=_.L(b.reactionsData),P=a.next();!P.done;P=a.next())P=P.value,P.reactionWeightOverride&&(P.reactionWeightOverride*=F);F=Math.random();a=0;P=_.L(b.reactionsData);for(var K=P.next();!K.done;K=P.next())if(K=K.value,K.reactionCount&&(a=(K.reactionWeightOverride||K.reactionWeightOverride===0)&&S?a+K.reactionWeightOverride:a+y*K.reactionCount/
h,a>F&&(K.reactionCount--,b.totalReactions--,K=this.reactionItemToEmojiString(K),K!==this.noEmojiIdentifier)))return K;return this.noEmojiIdentifier};
_.d.reactionItemToEmojiString=function(b){if(b.unicodeEmojiId)return b.unicodeEmojiId;if(b.emoteId)return b.emoteId;if(b.videoReactionType)switch(b.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.d.createEmojiAnimation=function(b,h,y,S){h=h===void 0?!1:h;this.lastEmojiRequestedForTesting=b;var F=b.startsWith("yt-icons:"),a=_.zu(this.emojiManager,b);if(a||F){var P=document.createElement("emoji");P.classList.add("yt-emoji-fountain-view-model");P.classList.add(b2x[Math.floor(Math.random()*b2x.length)]);var K=document.createElement("div");K.classList.add("yt-emoji-fountain-view-model");K.classList.add("horizontal-container");K.classList.add(hSL[Math.floor(Math.random()*hSL.length)]);h?(y=document.createElement("div"),
y.classList.add("user-reaction-bubble"),y.classList.add("yt-emoji-fountain-view-model"),K.appendChild(y)):(y&&(P.style.animationDuration=y+"ms",K.style.animationDuration=y+"ms"),S&&(P.style.width=S+"px",P.style.height=S+"px"));F?(F=document.createElement("yt-icon"),F.polymerController.icon=b,S&&(F.style.width=S+"px",F.style.height=S+"px"),b=F):b=this.emojiManager.createEmoji(a,!1);b.classList.add("yt-emoji-fountain-view-model");K.appendChild(b);P.appendChild(K);this.emojiContainer.appendChild(P);
P.addEventListener("animationend",function(){P.remove()});
var n,X;if((n=this.data)==null?0:(X=n.loggingDirectives)==null?0:X.trackingParams)h=h?_.Kh(183501):_.Kh(183500),wLP(this.data.loggingDirectives.trackingParams,h),_.yOF(h);setTimeout(function(){P&&P.remove()},2E3)}};
_.d.getEmojiDelayMsFromDistribution=function(b){return Math.random()*(b||1)*1E3};
_.d.getEmojiDelayMsFromTargetEps=function(b){return Math.random()*2*(1/b)*1E3};
_.d.linearInterpolateBounded=function(b,h,y,S,F){F=Math.min(Math.max(F,b),y);return(h*(y-F)+S*(F-b))/(y-b)};
Y_.prototype.onEmojiFountainDataEntityUpdate=Y_.prototype.onEmojiFountainDataEntityUpdate;Y_.prototype.desktopFountainEmojiSizePxChanged=Y_.prototype.desktopFountainEmojiSizePxChanged;Y_.prototype.isActiveChanged=Y_.prototype.isActiveChanged;_.V([_.C(),_.f("design:type",_.R$)],Y_.prototype,"emojiManager",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Y_.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Xc),_.f("design:type",Object)],Y_.prototype,"ytLiveChatReduxBehavior",void 0);
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],Y_.prototype,"ytActionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Y_.prototype,"data",void 0);_.V([_.C({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(b,h){return _.Mm(b.entities,"emojiFountainDataEntity",h)}}),
_.f("design:type",Object)],Y_.prototype,"emojiFountainData",void 0);_.V([_.C(),_.f("design:type",Boolean)],Y_.prototype,"isActive",void 0);_.V([_.OB("isActive"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Y_.prototype,"isActiveChanged",null);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Y_.prototype,"isDarkTheme",void 0);_.V([_.C(),_.f("design:type",String)],Y_.prototype,"lastEmojiRequestedForTesting",void 0);
_.V([_.C({value:function(){return _.tj("desktop_fountain_emoji_size_px",20)}}),
_.f("design:type",Number)],Y_.prototype,"desktopFountainEmojiSizePx",void 0);_.V([_.OB("desktopFountainEmojiSizePx"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Y_.prototype,"desktopFountainEmojiSizePxChanged",null);_.V([_.to("#emoji-container"),_.f("design:type",HTMLElement)],Y_.prototype,"emojiContainer",void 0);
_.V([_.OB("emojiFountainData"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Y_.prototype,"onEmojiFountainDataEntityUpdate",null);_.V([_.sB({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],Y_);
_.k(Y_,"yt-emoji-fountain-view-model",function(){if(vJR===void 0){var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;mS9===void 0&&(mS9=document.createElement("template"));var S=mS9;y.call(h,S.content.cloneNode(!0),b.content.firstChild);vJR=b}b=vJR;return b},{mode:0});var ym9;var SbL;var Tx=function(){return _.g.apply(this,arguments)||this};
_.z(Tx,_.g);Tx.prototype.onChoiceChanged=function(){this.data&&_.nZ(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
Tx.prototype.onChoiceChanged=Tx.prototype.onChoiceChanged;_.V([_.C(),_.f("design:type",Object)],Tx.prototype,"data",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Tx.prototype,"onChoiceChanged",null);_.V([_.Yx({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],Tx);
_.k(Tx,"yt-live-chat-banner-poll-choice",function(){if(SbL===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;ym9===void 0&&(ym9=document.createElement("template"));var S=ym9;y.call(h,S.content.cloneNode(!0),b.content.firstChild);SbL=b}b=SbL;return b},{mode:0});var FdM;var afc;var Gx=function(){var b=_.g.apply(this,arguments)||this;b.modern=_.r("web_button_rework_with_live");b.small=!1;return b};
_.z(Gx,_.g);Gx.prototype.computeIsSmall=function(){var b;return((b=this.buttonOverrides)==null?void 0:b.size)==="S"};
Gx.prototype.computeId=function(){return this.data&&this.data.targetId};
_.V([_.B(_.Hj.YtLiveChatTooltipTargetingBehavior),_.f("design:type",Object)],Gx.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.V([_.C({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.f("design:type",String)],Gx.prototype,"id",void 0);_.V([_.C(),_.f("design:type",Object)],Gx.prototype,"buttonOverrides",void 0);_.V([_.C(),_.f("design:type",Object)],Gx.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Gx.prototype,"modern",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.f("design:type",Object)],Gx.prototype,"small",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"yt-live-chat-button"})],Gx);
_.k(Gx,"yt-live-chat-button",function(){if(afc===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;FdM===void 0&&(FdM=document.createElement("template"));var S=FdM;y.call(h,S.content.cloneNode(!0),b.content.firstChild);afc=b}b=afc;return b},{mode:0});var ddA;var j0J;var k_=function(){var b=_.g.apply(this,arguments)||this;b.inCollapsedBanner=!1;b.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};b.questionButtonOverrides={style:"mono",type:"filled"};return b};
_.z(k_,_.g);_.d=k_.prototype;_.d.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]]"}}}}}};
_.d.onContextMenuButtonClick=function(b){this.ytLiveChatItemBehavior.showContextMenu(b)};
_.d.onYtRendererstamperFinished=function(){this.menuButton=_.$x(this.hostElement).querySelector("#menu-button")};
_.d.dataChanged=function(){var b,h;if((h=_.c((b=this.data)==null?void 0:b.overflowMenuButton,_.OU))==null?0:h.command)this.data.contextMenuEndpoint=_.c(this.data.overflowMenuButton,_.OU).command};
_.d.onButtonClick=function(){var b,h=_.c((b=this.data)==null?void 0:b.askQuestionButton,_.OU);if(h){if(h.trackingParams&&(b=_.I_(h.trackingParams))){var y=_.UE();y&&_.lE(y,b)}_.Sx(this.hostElement,"innertube-command",h.command)}};
k_.prototype.onYtRendererstamperFinished=k_.prototype.onYtRendererstamperFinished;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],k_.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Xc),_.f("design:type",Object)],k_.prototype,"ytLiveChatReduxBehavior",void 0);_.V([_.B(_.BP.YtLiveChatItemBehavior),_.f("design:type",_.WP)],k_.prototype,"ytLiveChatItemBehavior",void 0);_.V([_.C({observer:"dataChanged"}),_.f("design:type",Object)],k_.prototype,"data",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],k_.prototype,"inCollapsedBanner",void 0);_.V([_.C(),_.f("design:type",Object)],k_.prototype,"buttonOverrides",void 0);_.V([_.C(),_.f("design:type",Object)],k_.prototype,"questionButtonOverrides",void 0);_.V([_.u3("yt-rendererstamper-finished"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],k_.prototype,"onYtRendererstamperFinished",null);
_.V([_.Yx({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],k_);
_.k(k_,"yt-live-chat-call-for-questions-renderer",function(){if(j0J===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;ddA===void 0&&(ddA=document.createElement("template"));var S=ddA;y.call(h,S.content.cloneNode(!0),b.content.firstChild);j0J=b}b=j0J;return b},{mode:0});var $d$={};$d$.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 b=this;window.requestAnimationFrame(function(){b.restoreFocusNode_||(b.restoreFocusNode_=document.activeElement);var h=_.C47(b.hostElement);h.length&&h[h.length-1].focus()})},
isAttachedChanged_:function(b,h){b?this.focusChild_():h&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(b){this.hidden||_.Qk(b).indexOf(this.hostElement)!==-1||(b.stopPropagation(),this.focusChild_())}};var LdJ;var PzA;var V9=function(){return _.g.apply(this,arguments)||this};
_.z(V9,_.g);V9.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
V9.prototype.onClick=function(b){b.target!==this.confirmButton&&b.target!==this.cancelButton&&(this.hidden=!0)};
_.V([_.to("#confirm_button"),_.f("design:type",Object)],V9.prototype,"confirmButton",void 0);_.V([_.to("#cancel_button"),_.f("design:type",Object)],V9.prototype,"cancelButton",void 0);_.V([_.C(),_.f("design:type",Kd$)],V9.prototype,"data",void 0);_.V([_.C({value:!0,reflectToAttribute:!0}),_.f("design:type",Boolean)],V9.prototype,"hidden",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],V9.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B($d$.YtLiveChatDialogBehavior),_.f("design:type",Object)],V9.prototype,"ytLiveChatDialogBehavior",void 0);_.V([_.sB({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],V9);
var Kd$=_.k(V9,"yt-live-chat-dialog-renderer",function(){if(PzA===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;LdJ===void 0&&(LdJ=document.createElement("template"));var S=LdJ;y.call(h,S.content.cloneNode(!0),b.content.firstChild);PzA=b}b=PzA;return b},{mode:0});var Z2_;var o6_,MMf=function(){if(o6_!==void 0)return o6_;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;Z2_===void 0&&(Z2_=document.createElement("template"));var S=Z2_;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return o6_=b};var n69;var X_A;var El=function(){var b=_.g.apply(this,arguments)||this;b.tooltip=null;b.data=null;b.id="";b.active=!1;b.icon="";b.disabled=!1;b.showTooltip=!1;b.useToggledActiveState=!0;b.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return b};
_.z(El,_.g);_.d=El.prototype;
_.d.dataChanged=function(){var b;((b=this.data)==null?0:b.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,_.Mh)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var h;if((h=this.data)==null?0:h.disabled)this.disabled=!0};
_.d.computeId=function(b){return b};
_.d.computeIcon=function(b,h){if(!b)return"";if(this.useToggledActiveState)return"yt-icons:"+b.toLowerCase();var y,S;return h&&((y=this.data)==null?0:(S=y.toggledIcon)==null?0:S.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+b.toLowerCase()};
_.d.logPDGEntryPoint=function(){_.dY8(_.nR("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")};
_.d.immediatelyShowTooltip=function(){var b=_.$x(this.hostElement).querySelector("#tooltip");b.animationDelay=0;b.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};b.show()};
_.d.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.d.onClick=function(b){var h;((h=this.data)==null?0:h.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(),b.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.Sx(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.d.computeShowTooltip=function(b,h){return!!(b&&b.tooltip&&h)};
_.d.maybeUpdateTooltipText=function(){var b=this,h;if((h=this.data)==null?0:h.tooltip){var y=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.Mh)(b.tooltip).textContent=y},250)}};
_.d.handleLiveChatActions=function(b){var h=this;b.length&&(this.id!=="creator"&&this.id!=="product-picker"||b.forEach(function(y){(y=h.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",y))&&y.durationSec===y.fullDurationSec&&h.startBubble(h.colorFromDecimal(y.startBackgroundColor))}))};
_.d.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.d.startBubble=function(b){_.nZ(this.hostElement,{"--yt-live-chat-monetization-button-glow":b});this.hostElement.setAttribute("bubble","")};
_.d.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.d.colorFromDecimal=function(b){typeof b==="string"&&(b=Number(b));return"rgba("+[b>>16&255,b>>8&255,b&255,(b>>24&255)/255].join()+")"};
El.prototype.onAnimationEnd=El.prototype.onAnimationEnd;El.prototype.disabledChanged=El.prototype.disabledChanged;El.prototype.dataChanged=El.prototype.dataChanged;_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],El.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],El.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.Hj.YtLiveChatTooltipTargetingBehavior),_.f("design:type",Object)],El.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],El.prototype,"data",void 0);_.V([_.C({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.f("design:type",Object)],El.prototype,"id",void 0);_.V([_.C({notify:!0,reflectToAttribute:!0}),_.f("design:type",Object)],El.prototype,"active",void 0);
_.V([_.C({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.f("design:type",Object)],El.prototype,"icon",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],El.prototype,"disabled",void 0);_.V([_.C({computed:"computeShowTooltip(data, disabled)"}),_.f("design:type",Object)],El.prototype,"showTooltip",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],El.prototype,"useToggledActiveState",void 0);
_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],El.prototype,"dataChanged",null);_.V([_.OB("disabled"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],El.prototype,"disabledChanged",null);_.V([_.u3("animationend"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],El.prototype,"onAnimationEnd",null);
_.V([_.sB({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],El);
_.k(El,"yt-live-chat-icon-toggle-button-renderer",function(){if(X_A===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;n69===void 0&&(n69=document.createElement("template"));var S=n69;y.call(h,S.content.cloneNode(!0),b.content.firstChild);X_A=b}b=X_A;return b},{mode:0});var H2f;var uup;var iT=function(){return _.g.apply(this,arguments)||this};
_.z(iT,_.g);iT.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.V([_.C(),_.f("design:type",Object)],iT.prototype,"data",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],iT.prototype,"ytRendererstamperBehavior",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],iT);
_.k(iT,"yt-live-chat-message-input-prompt-header-renderer",function(){if(uup===void 0){var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;H2f===void 0&&(H2f=document.createElement("template"));var S=H2f;y.call(h,S.content.cloneNode(!0),b.content.firstChild);uup=b}b=uup;return b},{mode:0});var O2c;var NkA;var tM9;var rm2;var cmp;var RSR;var zS$=function(){return _.g.apply(this,arguments)||this};
_.z(zS$,_.g);_.V([_.C(),_.f("design:type",Object)],zS$.prototype,"data",void 0);_.V([_.sB({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],zS$);
_.k(zS$,"yt-live-chat-message-subtext-renderer",function(){if(RSR===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;cmp===void 0&&(cmp=document.createElement("template"));var S=cmp;y.call(h,S.content.cloneNode(!0),b.content.firstChild);RSR=b}b=RSR;return b},{mode:0});var fJ=function(){var b=_.g.apply(this,arguments)||this;b.subtextOnBottom=!1;b.buttonOverrides={style:"mono",type:"tonal"};return b};
_.z(fJ,_.g);fJ.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"}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],fJ.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],fJ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],fJ.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],fJ.prototype,"subtextOnBottom",void 0);_.V([_.C(),_.f("design:type",Object)],fJ.prototype,"buttonOverrides",void 0);
_.V([_.sB({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],fJ);
_.k(fJ,"yt-live-chat-message-renderer",function(){if(rm2===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;tM9===void 0&&(tM9=document.createElement("template"));var S=tM9;y.call(h,S.content.cloneNode(!0),b.content.firstChild);rm2=b}b=rm2;return b},{mode:0});var DdA;var IfP;var wM=function(){var b=_.g.apply(this,arguments)||this;b.isRemovable=!1;b.hasPrefilledText=!1;b.isInputDirty=!1;b.overCharacterLimit=!1;b.underCharacterLimit=!1;b.showErrorMessage=!1;return b};
_.z(wM,_.g);_.d=wM.prototype;_.d.computeId=function(){return this.data.id};
_.d.computeInputData=function(){return this.data.inputData};
_.d.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.d.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.d.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.d.getLiveChatRichMessageInput=function(){return _.$x(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.d.clearInput=function(){_.$x(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.d.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.d.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.d.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.d.handleTextInputCharCountChanged=function(b){b=b.detail&&b.detail.characterCount;b!==void 0&&(this.characterCount=b,b!==0&&(this.isInputDirty=!0))};
_.d.onInputFocusOut=function(){this.isInputDirty=!0};
_.d.onClickCloseButton=function(){_.Sx(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
wM.prototype.handleTextInputCharCountChanged=wM.prototype.handleTextInputCharCountChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],wM.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],wM.prototype,"data",void 0);_.V([_.C({computed:"computeId(data.id)"}),_.f("design:type",String)],wM.prototype,"id",void 0);_.V([_.C({computed:"computeInputData(data.inputData)"}),_.f("design:type",Object)],wM.prototype,"inputData",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.f("design:type",Object)],wM.prototype,"isRemovable",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.f("design:type",Object)],wM.prototype,"hasPrefilledText",void 0);_.V([_.C({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.f("design:type",Number)],wM.prototype,"charactersRemaining",void 0);
_.V([_.C(),_.f("design:type",Number)],wM.prototype,"characterCount",void 0);_.V([_.C(),_.f("design:type",Object)],wM.prototype,"isInputDirty",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.f("design:type",Object)],wM.prototype,"overCharacterLimit",void 0);_.V([_.C({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.f("design:type",Object)],wM.prototype,"underCharacterLimit",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.f("design:type",Object)],wM.prototype,"showErrorMessage",void 0);_.V([_.u3("yt-live-chat-text-input-field-renderer-character-count-changed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],wM.prototype,"handleTextInputCharCountChanged",null);
_.V([_.sB({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],wM);
_.k(wM,"yt-live-chat-poll-editor-input",function(){if(IfP===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;DdA===void 0&&(DdA=document.createElement("template"));var S=DdA;y.call(h,S.content.cloneNode(!0),b.content.firstChild);IfP=b}b=IfP;return b},{mode:0});var Bk_;var Wdx;var Amc={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},lT=function(){var b=_.g.apply(this,arguments)||this;b.modern=_.r("web_button_rework_with_live");b.closeButtonOverrides={iconPosition:"icon-only"};b.startButtonOverrides={style:"mono",type:"filled"};b.addOptionButtonOverrides={style:"mono",type:"text"};return b};
_.z(lT,_.g);_.d=lT.prototype;
_.d.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"}}}}};
_.d.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var b;_.c((b=this.data)==null?void 0:b.startButton,_.OU)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.d.computeId=function(){return this.data&&this.data.id||""};
_.d.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.d.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.d.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.d.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.d.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var b=0;b<this.pollEditorInfoWithDefaults.minPollOptions;b++)this.addPollOptionData()};
_.d.getIsValidPoll=function(){var b=this;if(!this.pollEditorInfoWithDefaults)return!1;var h=this.pollEditorInfoWithDefaults,y=h.minPollOptionChars,S=h.maxPollOptionChars,F=h.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>h.maxPollQuestionChars)return!1;h=_.$x(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(h).every(function(a,P){a=a.characterCount;!a&&F[P]&&(a=b.ytRendererBehavior.getSimpleString(F[P]).length);return a!==void 0&&a>=y&&a<=S})};
_.d.isValidPollChanged=function(){var b;_.c((b=this.data)==null?void 0:b.startButton,_.OU)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.d.addPollOptionData=function(){var b=this.pollEditorInfoWithDefaults,h=b.maxPollOptionChars,y=b.optionPlaceholderText,S=b.customOptionPlaceholderText,F=b.pollOptionData;this.currentNumPollOptions>=b.maxPollOptions||(b={liveChatPollOptionInput:{inputData:{placeholder:S[this.currentNumPollOptions]||y,maxCharacterLimit:h},maxCharacterLimit:h,minCharacterLimit:b.minPollOptionChars,hasPrefilledText:!!S[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=b.minPollOptions}},F.charCountErrorText&&
(b.liveChatPollOptionInput.charCountErrorText=F.charCountErrorText),F.charsRemainingAltLabel&&(b.liveChatPollOptionInput.charsRemainingAltLabel=F.charsRemainingAltLabel),F.removeOptionAltText&&(b.liveChatPollOptionInput.removeOptionAltText=F.removeOptionAltText),this.push("pollOptionsData",b),F=Array.from(_.$x(_.$x(this.hostElement).querySelector("#poll-options")).children),F.forEach(function(a,P){a.polymerController.set("data.id",P)}),_.$x(F[F.length-1]).querySelector("#input").focus())};
_.d.getPollOptionInputValues=function(){var b=this,h=[],y=_.$x(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),S=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(y).forEach(function(F,a){var P=null;F=F.getLiveChatRichMessageInput();var K;(F==null?0:(K=F.textSegments)==null?0:K.length)?P=_.GA(F):S[a]&&(P=b.formattedStringToLiveChatRichMessageInput(S[a]));h.push(P)});
return h};
_.d.requestCreateAndStartPoll=function(b){var h=this.getPollOptionInputValues();if(!h.some(function(S){return!S})){h={optionText:h};
var y=_.$x(_.$x(this.hostElement).querySelector("#poll-question")).firstChild;y&&y.liveChatRichMessageInput&&(h.questionText=_.GA(y.liveChatRichMessageInput));_.dh(this.hostElement,[b,h])}};
_.d.selectedChanged=function(){if(this.selected){var b=_.$x(_.$x(this.hostElement).querySelector("#start-button")).firstElementChild;if(b){var h;(h=_.$x(b).querySelector("#button")||_.KZ(b).querySelector("button"))==null||h.focus()}}};
_.d.handleTextInputChanged=function(b){var h;((h=b.target)==null?void 0:h.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=b.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.d.handleStartButtonAction=function(b){b.detail.actionName==="yt-service-request"&&(b.stopPropagation(),(b=b.detail.args[1])&&this.requestCreateAndStartPoll(b))};
_.d.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.d.handleServiceRequestCompleted=function(b){this.createPollRequestInFlight=!1;(b=b.detail&&b.detail.data)&&b.success&&(_.Sx(this.hostElement,"picker-cancelled"),_.F8(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.d.onCloseClick=function(){_.Sx(this.hostElement,"picker-cancelled");_.F8(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.d.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.d.handlePollEditorInputClosed=function(b){var h=this.pollOptionsData.findIndex(function(y){return y.liveChatPollOptionInput.id===b.detail.id});
this.splice("pollOptionsData",h,1);this.isValidPoll=this.getIsValidPoll()};
_.d.onPickerCancelled=function(){this.reset()};
_.d.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var b=_.$x(_.$x(this.hostElement).querySelector("#poll-question")).firstChild;b&&b.setLiveChatRichMessageInput(null);if(b=_.$x(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){b=_.L(Array.from(b));for(var h=b.next();!h.done;h=b.next())h.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.d.formattedStringToLiveChatRichMessageInput=function(b){return b.simpleText?{text_segments:[b.simpleText]}:{text_segments:b.runs}};
_.tm.Object.defineProperties(lT.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(Amc,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
lT.prototype.onPickerCancelled=lT.prototype.onPickerCancelled;lT.prototype.handlePollEditorInputClosed=lT.prototype.handlePollEditorInputClosed;lT.prototype.handleServiceRequestCompleted=lT.prototype.handleServiceRequestCompleted;lT.prototype.handleServiceRequestSent=lT.prototype.handleServiceRequestSent;lT.prototype.handleTextInputChanged=lT.prototype.handleTextInputChanged;lT.prototype.selectedChanged=lT.prototype.selectedChanged;lT.prototype.isValidPollChanged=lT.prototype.isValidPollChanged;
lT.prototype.shouldInitializePollChanged=lT.prototype.shouldInitializePollChanged;lT.prototype.dataChanged=lT.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],lT.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],lT.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],lT.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],lT.prototype,"modern",void 0);
_.V([_.C(),_.f("design:type",Object)],lT.prototype,"closeButtonOverrides",void 0);_.V([_.C(),_.f("design:type",Object)],lT.prototype,"startButtonOverrides",void 0);_.V([_.C(),_.f("design:type",Object)],lT.prototype,"addOptionButtonOverrides",void 0);_.V([_.C({computed:"computeId(data.id)",reflectToAttribute:!0}),_.f("design:type",String)],lT.prototype,"id",void 0);_.V([_.C({value:function(){return[]}}),
_.f("design:type",Array)],lT.prototype,"pollOptionsData",void 0);_.V([_.W("pollEditorInfoWithDefaults"),_.f("design:type",Object),_.f("design:paramtypes",[])],lT.prototype,"pollQuestionData",null);_.V([_.C({value:0}),_.f("design:type",Number)],lT.prototype,"pollQuestionCharacterCount",void 0);_.V([_.W("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.f("design:type",Object),_.f("design:paramtypes",[])],lT.prototype,"pollQuestionCharactersRemaining",null);
_.V([_.C({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.f("design:type",Boolean)],lT.prototype,"overQuestionCharacterLimit",void 0);_.V([_.W("data.pollEditorInfo"),_.f("design:type",Object),_.f("design:paramtypes",[])],lT.prototype,"pollEditorInfoWithDefaults",null);_.V([_.C({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.f("design:type",Number)],lT.prototype,"currentNumPollOptions",void 0);
_.V([_.C({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.f("design:type",Boolean)],lT.prototype,"hasMaxNumPollOptions",void 0);_.V([_.W("pollEditorInfoWithDefaults","pollOptionsData"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],lT.prototype,"shouldInitializePoll",null);_.V([_.C(),_.f("design:type",Object)],lT.prototype,"isValidPoll",void 0);
_.V([_.C({value:!1,reflectToAttribute:!0}),_.f("design:type",Boolean)],lT.prototype,"createPollRequestInFlight",void 0);_.V([_.C(),_.f("design:type",Object)],lT.prototype,"selected",void 0);_.V([_.C({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.f("design:type",Boolean)],lT.prototype,"showQuestionErrorMessage",void 0);
_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],lT.prototype,"dataChanged",null);_.V([_.OB("shouldInitializePoll"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],lT.prototype,"shouldInitializePollChanged",null);_.V([_.OB("isValidPoll"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],lT.prototype,"isValidPollChanged",null);
_.V([_.OB("selected"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],lT.prototype,"selectedChanged",null);_.V([_.u3("yt-live-chat-text-input-field-renderer-character-count-changed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],lT.prototype,"handleTextInputChanged",null);
_.V([_.u3("yt-service-request-sent"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],lT.prototype,"handleServiceRequestSent",null);_.V([_.u3("yt-service-request-completed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],lT.prototype,"handleServiceRequestCompleted",null);
_.V([_.u3("yt-live-chat-poll-editor-input-closed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],lT.prototype,"handlePollEditorInputClosed",null);_.V([_.u3("picker-cancelled"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],lT.prototype,"onPickerCancelled",null);_.V([_.sB({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],lT);
_.k(lT,"yt-live-chat-poll-editor-panel-renderer",function(){if(Wdx===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;Bk_===void 0&&(Bk_=document.createElement("template"));var S=Bk_;y.call(h,S.content.cloneNode(!0),b.content.firstChild);Wdx=b}b=Wdx;return b},{mode:0});var UdR;var p_f;var qa=function(){return _.g.apply(this,arguments)||this};
_.z(qa,_.g);qa.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
qa.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.tm.Object.defineProperties(qa.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var b,h;return(b=this.data)==null?void 0:(h=b.title)==null?void 0:h.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.data)==null||!b.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var b;return _.YS((b=this.data)==null?void 0:b.onTapCommand)}}});
_.V([_.B(_.Q5.YtEndpointBehavior),_.f("design:type",Object)],qa.prototype,"ytEndpointBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],qa.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],qa.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],qa.prototype,"itemId",null);
_.V([_.C({reflectToAttribute:!0}),_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],qa.prototype,"hasPromotion",null);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],qa.prototype,"innertubeCommand",null);_.V([_.sB({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],qa);
_.k(qa,"yt-live-chat-product-picker-panel-item-view-model",function(){if(p_f===void 0){var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;UdR===void 0&&(UdR=document.createElement("template"));var S=UdR;y.call(h,S.content.cloneNode(!0),b.content.firstChild);p_f=b}b=p_f;return b},{mode:0});var JmJ;var eSD;var x_=function(){var b=_.g.apply(this,arguments)||this;b.id="product-picker";b.selected=!1;b.closeButtonId="close-button";b.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return b};
_.z(x_,_.g);_.d=x_.prototype;_.d.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.d.observeSelected=function(){this.selected&&this.hostElement.focus();var b=_.$x(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");b.length&&b[0].focus()};
_.d.onCloseBuyFlow=function(){_.Sx(this.hostElement,"picker-cancelled")};
_.d.onCloseClick=function(){_.Sx(this.hostElement,"picker-cancelled");var b;((b=this.data)==null?0:b.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.c(this.data.closeButton,_.cA))};
_.d.onCloseEngageWithAudienceEditorPanels=function(){_.Sx(this.hostElement,"picker-cancelled")};
x_.prototype.observeSelected=x_.prototype.observeSelected;_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],x_.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],x_.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],x_.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],x_.prototype,"data",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],x_.prototype,"id",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],x_.prototype,"selected",void 0);_.V([_.C(),_.f("design:type",Object)],x_.prototype,"closeButtonId",void 0);_.V([_.OB("selected"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],x_.prototype,"observeSelected",null);
_.V([_.sB({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],x_);
_.k(x_,"yt-live-chat-product-picker-panel-view-model",function(){if(eSD===void 0){var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;JmJ===void 0&&(JmJ=document.createElement("template"));var S=JmJ;y.call(h,S.content.cloneNode(!0),b.content.firstChild);eSD=b}b=eSD;return b},{mode:0});var CzM;var g6P;var Q9=function(){var b=_.g.apply(this,arguments)||this;b.iconId="";b.icon="";b.disabled=!1;b.systemIcons=_.r("kevlar_system_icons");return b};
_.z(Q9,_.g);_.d=Q9.prototype;_.d.computeIconId=function(b){return b&&b.icon&&b.icon.iconType?b.icon.iconType.toLowerCase():""};
_.d.computeIcon=function(b){return b&&b.icon&&b.icon.iconType?(b=b.icon.iconType.toLowerCase(),(b.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+b):""};
_.d.computeDisabled=function(b){return!!b};
_.d.computeCommand=function(b,h){return h?void 0:b};
_.d.computeTooltip=function(b,h){return h&&b?b:""};
_.d.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.tm.Object.defineProperties(Q9.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var b="",h,y,S;if((h=this.data)==null?0:(y=h.text)==null?0:(S=y.runs)==null?0:S.length)b=this.data.text.runs[0].text||"";else{var F,a;if((F=this.data)==null?0:(a=F.text)==null?0:a.simpleText)b=this.data.text.simpleText}var P,K,n;if((P=this.data)==null?0:(K=P.subtext)==null?0:(n=K.runs)==null?0:n.length)b&&(b+=". "),b+=this.data.subtext.runs[0].text||"";else{var X,u;if((X=this.data)==null?0:(u=X.subtext)==
null?0:u.simpleText)b&&(b+=". "),b+=this.data.subtext.simpleText}return b}}});
_.V([_.B(_.Q5.YtEndpointBehavior),_.f("design:type",Object)],Q9.prototype,"ytEndpointBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Q9.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Q9.prototype,"data",void 0);_.V([_.C({computed:"computeIconId(data)",reflectToAttribute:!0}),_.f("design:type",Object)],Q9.prototype,"iconId",void 0);
_.V([_.C({computed:"computeIcon(data)",reflectToAttribute:!0}),_.f("design:type",Object)],Q9.prototype,"icon",void 0);_.V([_.C({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.f("design:type",Object)],Q9.prototype,"disabled",void 0);_.V([_.C({computed:"computeCommand(data.command, disabled)"}),_.f("design:type",Object)],Q9.prototype,"command",void 0);_.V([_.C({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.f("design:type",String)],Q9.prototype,"tooltip",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Q9.prototype,"systemIcons",void 0);_.V([_.W("data.text","data.subtext"),_.C(),_.f("design:type",String),_.f("design:paramtypes",[])],Q9.prototype,"ariaLabel",null);_.V([_.sB({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],Q9);
_.k(Q9,"yt-live-chat-product-button-renderer",function(){if(g6P===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;CzM===void 0&&(CzM=document.createElement("template"));var S=CzM;y.call(h,S.content.cloneNode(!0),b.content.firstChild);g6P=b}b=g6P;return b},{mode:0});var s0f;var Yb$;var me=function(){var b=_.g.apply(this,arguments)||this;b.selected=!1;b.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 b};
_.z(me,_.g);_.d=me.prototype;_.d.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"}}}};
_.d.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.d.computeId=function(b){return b.id||""};
_.d.onCloseClick=function(){_.Sx(this.hostElement,"picker-cancelled")};
_.d.observeSelected=function(){this.selected&&this.hostElement.focus();var b=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");b.length&&b[0].focus()};
_.d.onCloseBuyFlow=function(){_.Sx(this.hostElement,"picker-cancelled")};
_.d.onCloseEngageWithAudienceEditorPanels=function(){_.Sx(this.hostElement,"picker-cancelled")};
me.prototype.observeSelected=me.prototype.observeSelected;_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],me.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],me.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],me.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],me.prototype,"data",void 0);
_.V([_.C({computed:"computeId(data)",reflectToAttribute:!0}),_.f("design:type",String)],me.prototype,"id",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],me.prototype,"selected",void 0);_.V([_.OB("selected"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],me.prototype,"observeSelected",null);_.V([_.sB({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],me);
_.k(me,"yt-live-chat-product-picker-renderer",function(){if(Yb$===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;s0f===void 0&&(s0f=document.createElement("template"));var S=s0f;y.call(h,S.content.cloneNode(!0),b.content.firstChild);Yb$=b}b=Yb$;return b},{mode:0});var Tk_;var GN9;var kND;var VMJ;var vS=function(){return _.g.apply(this,arguments)||this};
_.z(vS,_.g);vS.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()};
vS.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
vS.prototype.created=function(){this.ids={background:_.xc(),maskOne:_.xc(),maskTwo:_.xc(),gradient:_.xc(),largeBackground:_.xc(),largeGradientOne:_.xc(),largeGradientTwo:_.xc(),largeGradientPath:_.xc()}};
vS.prototype.maybeLoadAnimationBackground=vS.prototype.maybeLoadAnimationBackground;_.V([_.C({value:!1}),_.f("design:type",Boolean)],vS.prototype,"useLargeBackground",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],vS.prototype,"useAnimationBackground",void 0);_.V([_.C({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.f("design:type",Boolean)],vS.prototype,"useRegularBackground",void 0);
_.V([_.C(),_.f("design:type",Object)],vS.prototype,"ids",void 0);_.V([_.C(),_.f("design:type",Object)],vS.prototype,"lottieAnimation",void 0);_.V([_.to("#animation-background"),_.f("design:type",HTMLDivElement)],vS.prototype,"animationBackground",void 0);_.V([_.OB("useAnimationBackground"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],vS.prototype,"maybeLoadAnimationBackground",null);
_.V([_.sB({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],vS);
_.k(vS,"yt-live-interactivity-component-background",function(){if(VMJ===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;kND===void 0&&(kND=document.createElement("template"));var S=kND;y.call(h,S.content.cloneNode(!0),b.content.firstChild);VMJ=b}b=VMJ;return b},{mode:0});var bd=function(){var b=_.g.apply(this,arguments)||this;b.characterCount=0;b.showInputErrorMessage=!1;b.startQnaRequestInFlight=!1;b.modern=_.r("web_button_rework_with_live");b.buttonOverrides={style:"mono",type:"filled"};b.closeButtonOverrides={iconPosition:"icon-only"};b.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return b};
_.z(bd,_.g);_.d=bd.prototype;
_.d.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]]"}}}}}};
_.d.onCharacterCountChanged=function(b){var h,y,S,F,a=(y=_.c(this==null?void 0:(h=this.data)==null?void 0:h.creatorCallForQuestions,N_9))==null?void 0:(S=y.inputField)==null?void 0:(F=S.liveChatTextInputFieldRenderer)==null?void 0:F.maxCharacterLimit,P,K;a!=null&&(b==null?void 0:(P=b.detail)==null?void 0:P.characterCount)!=null&&_.c(this==null?void 0:(K=this.data)==null?void 0:K.startButton,_.OU)&&(h=b.detail.characterCount>a,this.set("data.startButton.buttonRenderer.isDisabled",b.detail.characterCount===
0||h),this.showInputErrorMessage=h)};
_.d.onCloseClick=function(){_.Sx(this.hostElement,"picker-cancelled");_.F8(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.d.onPickerCancelled=function(){var b=_.$x(this.hostElement).querySelector("#qna-creator-text-input-field");b&&b.setLiveChatRichMessageInput(null)};
_.d.handleOpenQnaStartPanel=function(){var b=_.$x(this.hostElement).querySelector("#qna-creator-text-input-field");b&&b.focus()};
_.d.handleStartButtonAction=function(b){var h=this;if(b.detail.actionName==="yt-service-request"&&(b.stopPropagation(),b=b.detail.args[1])){var y=_.$x(this.hostElement).querySelector("#qna-creator-text-input-field"),S;(y==null?0:(S=y.liveChatRichMessageInput)==null?0:S.textSegments)&&y.liveChatRichMessageInput.textSegments.length!==0&&(S={rich_message:_.GA(y.liveChatRichMessageInput)},_.dh(this.hostElement,[b,S]).then(function(){_.Sx(h.hostElement,"picker-cancelled")}))}};
_.d.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.d.handleServiceRequestCompleted=function(b){var h;b=b==null?void 0:(h=b.detail)==null?void 0:h.data;(b==null?0:b.actions)&&b.actions.length>0?this.startQnaRequestInFlight=!1:_.F8(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.d.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
bd.prototype.handleServiceRequestError=bd.prototype.handleServiceRequestError;bd.prototype.handleServiceRequestCompleted=bd.prototype.handleServiceRequestCompleted;bd.prototype.handleServiceRequestSent=bd.prototype.handleServiceRequestSent;bd.prototype.onPickerCancelled=bd.prototype.onPickerCancelled;bd.prototype.onCharacterCountChanged=bd.prototype.onCharacterCountChanged;_.V([_.C(),_.f("design:type",Object)],bd.prototype,"characterCount",void 0);
_.V([_.C(),_.f("design:type",Object)],bd.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],bd.prototype,"showInputErrorMessage",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],bd.prototype,"startQnaRequestInFlight",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],bd.prototype,"modern",void 0);_.V([_.C(),_.f("design:type",Object)],bd.prototype,"buttonOverrides",void 0);
_.V([_.C(),_.f("design:type",Object)],bd.prototype,"closeButtonOverrides",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],bd.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Xc),_.f("design:type",Object)],bd.prototype,"ytLiveChatReduxBehavior",void 0);_.V([_.B(_.BP.YtLiveChatItemBehavior),_.f("design:type",_.WP)],bd.prototype,"ytLiveChatItemBehavior",void 0);
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],bd.prototype,"ytActionHandlerBehavior",void 0);_.V([_.u3("yt-live-chat-text-input-field-renderer-character-count-changed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],bd.prototype,"onCharacterCountChanged",null);_.V([_.u3("picker-cancelled"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],bd.prototype,"onPickerCancelled",null);
_.V([_.u3("yt-service-request-sent"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],bd.prototype,"handleServiceRequestSent",null);_.V([_.u3("yt-service-request-completed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],bd.prototype,"handleServiceRequestCompleted",null);
_.V([_.u3("yt-service-request-error"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],bd.prototype,"handleServiceRequestError",null);_.V([_.Yx({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],bd);
_.k(bd,"yt-live-chat-qna-start-panel-renderer",function(){if(GN9===void 0){var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;Tk_===void 0&&(Tk_=document.createElement("template"));var S=Tk_;y.call(h,S.content.cloneNode(!0),b.content.firstChild);GN9=b}b=GN9;return b},{mode:0});var E6x;var i29;var hb=function(){return _.g.apply(this,arguments)||this};
_.z(hb,_.g);hb.prototype.dismiss=function(){_.Sx(this.hostElement,"yt-live-chat-error-message-dismiss")};
hb.prototype.edit=function(){_.Sx(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.V([_.C(),_.f("design:type",Object)],hb.prototype,"data",void 0);_.V([_.sB({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],hb);
_.k(hb,"yt-live-chat-text-actions-error-message-renderer",function(){if(i29===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;E6x===void 0&&(E6x=document.createElement("template"));var S=E6x;y.call(h,S.content.cloneNode(!0),b.content.firstChild);i29=b}b=i29;return b},{mode:0});var ffP;var w_2;var lf$;var qbR;var yl=function(){var b=_.g.apply(this,arguments)||this;b.isDarkTheme=document.documentElement.hasAttribute("dark");b.newnessDotEligible=!1;return b};
_.z(yl,_.g);yl.prototype.sendReaction=function(){var b,h,y=((b=this.data)==null?void 0:b.emojiId)||((h=this.data)==null?void 0:h.emoteId),S;y&&((S=this.data)==null?0:S.shouldTriggerAnimation)&&_.F8(this.hostElement,"yt-create-user-reaction-animation",[y]);var F;(b=_.YS((F=this.data)==null?void 0:F.onTap))&&_.Xb(b,this.hostElement);this.showNewnessDot&&_.F8(this.hostElement,"yt-hide-newness-dot")};
yl.prototype.onClick=function(b){(!b||b.clientX||b.clientY)&&this.sendReaction()};
yl.prototype.onKeyDown=function(b){b.key!=="Enter"&&b.key!==" "||b.repeat||this.sendReaction()};
_.tm.Object.defineProperties(yl.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.data)==null||!b.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var b,h;return!!(((b=this.data)==null?0:b.emojiId)||((h=this.data)==null?0:h.emoteId))}}});
_.V([_.C(),_.f("design:type",Object)],yl.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],yl.prototype,"isDarkTheme",void 0);_.V([_.C(),_.f("design:type",Object)],yl.prototype,"newnessDotEligible",void 0);_.V([_.W("data.maybeShowNewnessDot"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],yl.prototype,"showNewnessDot",null);_.V([_.W("data.emojiId","data.emoteId"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],yl.prototype,"useYtImage",null);
_.V([_.sB({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],yl);
_.k(yl,"yt-reaction-control-panel-button-view-model",function(){if(qbR===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;lf$===void 0&&(lf$=document.createElement("template"));var S=lf$;y.call(h,S.content.cloneNode(!0),b.content.firstChild);qbR=b}b=qbR;return b},{mode:0});var xd9;var Q0A;var SJ=function(){var b=_.g.apply(this,arguments)||this;b.reactionControlPanelExpanded=!1;b.isDarkTheme=document.documentElement.hasAttribute("dark");b.newnessDotEligible=!1;return b};
_.z(SJ,_.g);_.d=SJ.prototype;_.d.expandedButtonsChanged=function(){var b,h;_.nZ(this.hostElement,{"--expanded-buttons-height":((h=(b=this.expandedButtonsData)==null?void 0:b.length)!=null?h:0)*36+"px"})};
_.d.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}}};
_.d.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.d.onMouseLeave=function(){var b=this;this.collapseTimer=setTimeout(function(){b.reactionControlPanelExpanded=!1},500)};
_.d.onFocusIn=function(){this.onMouseEnter()};
_.d.onFocusOut=function(){this.onMouseLeave()};
_.d.onCollapsedButtonFocusIn=function(){var b=this;setTimeout(function(){var h;(h=b.expandedButtons.querySelector("button"))==null||h.focus()},100)};
_.d.onCollapsedButtonFocusOut=function(b){b.stopPropagation()};
_.tm.Object.defineProperties(SJ.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var b,h;return _.lR.unsafeClone((b=this.liveReactionsData)==null?void 0:b.emojiButtonData)||((h=this.data)==null?void 0:h.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var b;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((b=this.data)==null||!b.maybeShowNewnessDot)}}});
SJ.prototype.expandedButtonsChanged=SJ.prototype.expandedButtonsChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],SJ.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],SJ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Xc),_.f("design:type",Object)],SJ.prototype,"ytLiveChatReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],SJ.prototype,"data",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],SJ.prototype,"reactionControlPanelExpanded",void 0);_.V([_.C({selectorArgs:["data.liveReactionsDataEntityKey"],selector:izA}),_.f("design:type",Object)],SJ.prototype,"liveReactionsData",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],SJ.prototype,"isDarkTheme",void 0);_.V([_.C(),_.f("design:type",Object)],SJ.prototype,"newnessDotEligible",void 0);
_.V([_.W("liveReactionsData","data.expandedButtons"),_.f("design:type",Object),_.f("design:paramtypes",[])],SJ.prototype,"expandedButtonsData",null);_.V([_.W("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.C({reflectToAttribute:!0}),_.f("design:type",Object),_.f("design:paramtypes",[])],SJ.prototype,"showNewnessDot",null);_.V([_.to("#expanded-buttons"),_.f("design:type",HTMLElement)],SJ.prototype,"expandedButtons",void 0);
_.V([_.OB("expandedButtonsData"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],SJ.prototype,"expandedButtonsChanged",null);_.V([_.sB({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],SJ);
_.k(SJ,"yt-reaction-control-panel-view-model",function(){if(Q0A===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;xd9===void 0&&(xd9=document.createElement("template"));var S=xd9;y.call(h,S.content.cloneNode(!0),b.content.firstChild);Q0A=b}b=Q0A;return b},{mode:0});var Fj=new _.SZ("yt-live-chat"),md_=Date.parse("2024-7-24"),aM=function(){var b=_.g.apply(this,arguments)||this;b.emojiManager=_.I$;b.newnessDotEligible=!1;b.newnessDotImpressionCounted=!1;b.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return b};
_.z(aM,_.g);_.d=aM.prototype;_.d.emojiCustomizationEnabledChanged=function(){var b;((b=this.data)==null?0:b.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((b=Fj.getCreationTime("emoji-customization-count"))&&b<md_&&Fj.set("emoji-customization-count","0"),b=Number(Fj.get("emoji-customization-count"))||0,b<3&&(this.newnessDotEligible=!0,Fj.set("emoji-customization-count",(b+1).toString())),this.newnessDotImpressionCounted=!0)};
_.d.hideNewnessDot=function(){this.newnessDotEligible=!1;Fj.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.d.handleReactionsMute=function(b){var h=_.UE(),y=_.Kh(206221),S={checkboxData:{state:b?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};h&&_.lE(h,y,S);this.reactionsMuted=b};
_.d.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.d.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}}};
_.tm.Object.defineProperties(aM.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var b;return(!((b=this.liveReactionsData)==null||!b.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
aM.prototype.liveReactionsSettingChanged=aM.prototype.liveReactionsSettingChanged;aM.prototype.emojiCustomizationEnabledChanged=aM.prototype.emojiCustomizationEnabledChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],aM.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],aM.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Xc),_.f("design:type",Object)],aM.prototype,"ytLiveChatReduxBehavior",void 0);
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],aM.prototype,"ytActionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],aM.prototype,"data",void 0);_.V([_.C(),_.f("design:type",_.R$)],aM.prototype,"emojiManager",void 0);_.V([_.C(),_.f("design:type",Object)],aM.prototype,"newnessDotEligible",void 0);_.V([_.C(),_.f("design:type",Object)],aM.prototype,"newnessDotImpressionCounted",void 0);
_.V([_.C({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:fBP}),_.f("design:type",Boolean)],aM.prototype,"liveReactionsSetting",void 0);_.V([_.C({selectorArgs:["data.liveReactionsDataEntityKey"],selector:izA}),_.f("design:type",Object)],aM.prototype,"liveReactionsData",void 0);_.V([_.C({value:function(){var b=_.r("enable_lwe_web_mute"),h=Fj.get("allow-reactions");return h===void 0?!1:!h&&b}}),
_.f("design:type",Boolean)],aM.prototype,"reactionsMuted",void 0);_.V([_.C({reflectToAttribute:!0}),_.W("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],aM.prototype,"liveReactionsEnabled",null);_.V([_.OB("data.emojiCustomizationEnabled"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],aM.prototype,"emojiCustomizationEnabledChanged",null);
_.V([_.OB("liveReactionsEnabled"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],aM.prototype,"liveReactionsSettingChanged",null);_.V([_.sB({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],aM);
_.k(aM,"yt-reaction-control-panel-overlay-view-model",function(){if(w_2===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;ffP===void 0&&(ffP=document.createElement("template"));var S=ffP;y.call(h,S.content.cloneNode(!0),b.content.firstChild);w_2=b}b=w_2;return b},{mode:0});var v6A={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(b){var h=this.$.pickers.selected;if(h){_.$x(this.hostElement).removeAttribute(h+"-open");var y="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(y="#picker-buttons",h==="emoji"&&_.$x(this.hostElement).querySelector("#emoji-picker-button")&&(y="#emoji-picker-button"));if(y=_.$x(this.hostElement).querySelector(y).querySelector("#"+h))y.active=!1}y=b;h==b&&(y=null);h!=
b&&_.$x(this.hostElement).setAttribute(b+"-open","");this.$.pickers.selected=y;_.F8(this.hostElement,"yt-live-chat-picker-changed",[y])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var dW=function(){var b=_.g.apply(this,arguments)||this;b.numSentMessages=0;b.timeoutDurationMs=0;b.timeoutMs=0;b.lastTimeoutTimeMs=0;b.pendingMessageId="";b.hasFiredInitialFocusActions=!1;b.isBeforeFocusEnabled=!0;b.id="";b.characterCount=0;b.maxCharacterLimit=0;b.remainingCharacterCount=0;b.inputExpanded=!1;b.buttonOverrides={iconPosition:"icon-only"};b.inReplyPanel=!1;b.countdownRatio=0;b.isTooltipVisible=!1;b.tooltipTimeout=1E4;b.systemIcons=_.r("kevlar_system_icons");b.tallerEmojiPicker=_.r("live_chat_taller_emoji_picker");
b.sendReplyMessageInFlight=!1;b.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"};b.onResize=function(){b.maybeToggleCharacterCount()};
return b};
_.z(dW,_.g);_.d=dW.prototype;
_.d.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"}}}};
_.d.attached=function(){window.addEventListener("resize",this.onResize)};
_.d.detached=function(){window.removeEventListener("resize",this.onResize)};
_.d.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.d.sendMessage=function(){var b=this,h,y,S,F;return _.Z(function(a){if(b.sendDisabled)return a.return();b.isTooltipVisible&&_.F8(b.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(b.data.sendButton&&b.data.sendButton.buttonRenderer){b.input.completeEmojis();h=b.data.sendButton.buttonRenderer.serviceEndpoint;if(!h)return a.return();S=((y=_.c(h,_.Hj8))==null?void 0:y.clientIdPrefix)||"";F={client_message_id:S+String(b.numSentMessages++),rich_message:_.GA(b.input.liveChatRichMessageInput)};
b.pendingMessageId=F.client_message_id;b.inReplyPanel&&(b.sendReplyMessageInFlight=!0);_.dh(b.hostElement,[h,F]);b.input.setLiveChatRichMessageInput(null)}_.g3(a)})};
_.d.handleSendButtonAction=function(b){b.detail.actionName==="yt-service-request"&&(b.stopPropagation(),this.sendMessage())};
_.d.onSendCompleted=function(b,h){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(b=this.get("timeoutDurationUsec",h.data))&&this.handleTimeout(Number(b)/1E3);this.errorMessage=this.get("errorMessage",h.data);this.pendingMessageId=""};
_.d.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.F8(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.d.handlePickerButtonToggle=function(b){b=b.detail.targetId;this.ytPickerBehavior.togglePicker_(b);if(b==="emoji")this.input.focus();else if(b==="qna-start-panel"){var h,y;(h=_.$x(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(y=h.querySelector("#qna-creator-text-input-field"))==null||y.focus()}};
_.d.onComponentReplaced=function(b){var h,y;b.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((h=b.replacement.liveChatMessageInputRenderer)==null?0:(y=h.headerRenderer)==null?0:y.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.d.onEmojiSelect=function(b){this.input.focus();this.input.insertEmoji(b.detail)};
_.d.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.d.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.F8(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.F8(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.d.onOpenPopupAction=function(b,h){var y=this;h===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.F8(y.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.d.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.d.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.d.focusChanged=function(){this.maybeToggleCharacterCount()};
_.d.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var b=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",b>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.d.computeId=function(){return this.data&&this.data.targetId||""};
_.d.computeSendDisabled=function(b,h,y,S){b=!!(!b||h&&b>h||S);(h=_.$x(this.hostElement).querySelector("#send-button"))&&h.children.length&&(h.children[0].disabled=b);return b};
_.d.handleTimeout=function(b){this.timeoutDurationMs=this.timeoutMs=b;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.d.updateTimeout=function(b){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(b-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=b,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.d.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.d.onErrorMessageEdit=function(b){this.input.setLiveChatRichMessageInput(b.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.d.errorMessageChanged=function(){var b=this;_.fZ(function(){_.F8(b.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.d.computeAuthorNameColor=function(b){var h;if(_.r("live_chat_author_name_color_usernames")&&(b==null?0:(h=b.authorName)==null?0:h.simpleText))return _.ruy(_.cuf(b.authorName.simpleText));if(_.r("live_chat_seed_color_usernames")&&(b==null?0:b.authorSeedColorArgb))return _.ruy(_.Kt(b.authorSeedColorArgb));if(_.r("live_chat_colored_usernames"))return"#cc0000";var y;return _.r("live_chat_simple_color_usernames")&&(b==null?0:(y=b.authorName)==null?0:y.simpleText)&&(b==null?0:b.authorUsernameColorLight)&&
(b==null?0:b.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.Kt(b.authorUsernameColorDark):_.Kt(b.authorUsernameColorLight):""};
_.d.onIsTooltipVisibleChanged=function(){var b=_.$x(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){b.hidden=!1;b.setAttribute("role","alert")},0):(b.hidden=!0,b.removeAttribute("role"))};
_.d.onFocusedChanged=function(b){this.inputFocused=b.detail.value};
_.tm.Object.defineProperties(dW.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 b;return!((b=this.data)==null||!b.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var b,h;return((b=this.data)==null?void 0:(h=b.pickers)==null?void 0:h.find(function(y){return y.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var b=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return b?this.ytRendererBehavior.getSimpleString(b):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
dW.prototype.onIsTooltipVisibleChanged=dW.prototype.onIsTooltipVisibleChanged;dW.prototype.errorMessageChanged=dW.prototype.errorMessageChanged;dW.prototype.onErrorMessageEdit=dW.prototype.onErrorMessageEdit;dW.prototype.onErrorMessageDismiss=dW.prototype.onErrorMessageDismiss;dW.prototype.focusChanged=dW.prototype.focusChanged;dW.prototype.characterCountChanged=dW.prototype.characterCountChanged;dW.prototype.onEmojiSelect=dW.prototype.onEmojiSelect;dW.prototype.handlePickerButtonToggle=dW.prototype.handlePickerButtonToggle;
dW.prototype.onSendError=dW.prototype.onSendError;dW.prototype.onSendCompleted=dW.prototype.onSendCompleted;dW.prototype.sendMessage=dW.prototype.sendMessage;dW.prototype.dataChanged=dW.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],dW.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],dW.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.B(v6A.YtPickerBehavior),_.f("design:type",Object)],dW.prototype,"ytPickerBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],dW.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Hj.YtLiveChatTooltipTargetingBehavior),_.f("design:type",Object)],dW.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],dW.prototype,"hasFiredInitialFocusActions",void 0);
_.V([_.C(),_.f("design:type",Object)],dW.prototype,"isBeforeFocusEnabled",void 0);_.V([_.C(),_.f("design:type",Object)],dW.prototype,"data",void 0);_.V([_.C({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.f("design:type",Object)],dW.prototype,"id",void 0);_.V([_.C(),_.f("design:type",Object)],dW.prototype,"characterCount",void 0);_.V([_.C(),_.f("design:type",Object)],dW.prototype,"maxCharacterLimit",void 0);
_.V([_.C(),_.f("design:type",Object)],dW.prototype,"remainingCharacterCount",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],dW.prototype,"inputExpanded",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],dW.prototype,"inputFocused",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],dW.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.V([_.C(),_.f("design:type",_.pe)],dW.prototype,"participantsManager",void 0);
_.V([_.C(),_.f("design:type",Object)],dW.prototype,"buttonOverrides",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],dW.prototype,"inReplyPanel",void 0);_.V([_.W("characterCount, maxCharacterLimit, countdownActive"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],dW.prototype,"sendDisabled",null);_.V([_.C(),_.f("design:type",Object)],dW.prototype,"countdownRatio",void 0);
_.V([_.W("countdownRatio"),_.f("design:type",Number),_.f("design:paramtypes",[])],dW.prototype,"countdownStrokeDashOffset",null);_.V([_.W("countdownRatio"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],dW.prototype,"countdownActive",null);_.V([_.W("data.interactionMessage"),_.C({reflectToAttribute:!0}),_.f("design:type",Boolean),_.f("design:paramtypes",[])],dW.prototype,"hasInteractionMessage",null);
_.V([_.W("data.emojiPickerButton"),_.C({reflectToAttribute:!0}),_.f("design:type",Boolean),_.f("design:paramtypes",[])],dW.prototype,"hasEmojiPickerButton",null);_.V([_.W("data, characterCount"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],dW.prototype,"showAvatar",null);_.V([_.W("data.pickers"),_.C({reflectToAttribute:!0}),_.f("design:type",Boolean),_.f("design:paramtypes",[])],dW.prototype,"hasProductPickerPanelViewModel",null);
_.V([_.C(),_.f("design:type",Object)],dW.prototype,"errorMessage",void 0);_.V([_.C(),_.f("design:type",Object)],dW.prototype,"genericErrorMessage",void 0);_.V([_.C(),_.f("design:type",Object)],dW.prototype,"isTooltipVisible",void 0);_.V([_.C(),_.f("design:type",Object)],dW.prototype,"tooltipTimeout",void 0);_.V([_.W("data.onInitialFocusCommand"),_.f("design:type",String),_.f("design:paramtypes",[])],dW.prototype,"tooltipMessage",null);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],dW.prototype,"systemIcons",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],dW.prototype,"tallerEmojiPicker",void 0);_.V([_.W("data"),_.f("design:type",String),_.f("design:paramtypes",[])],dW.prototype,"authorNameColor",null);_.V([_.C(),_.f("design:type",Object)],dW.prototype,"sendReplyMessageInFlight",void 0);_.V([_.to("#input"),_.f("design:type",_.byb)],dW.prototype,"input",void 0);
_.V([_.to("#count"),_.f("design:type",HTMLElement)],dW.prototype,"count",void 0);_.V([_.to("#input-container"),_.f("design:type",HTMLElement)],dW.prototype,"inputContainer",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],dW.prototype,"dataChanged",null);_.V([_.u3("yt-live-chat-send-message"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype",Promise)],dW.prototype,"sendMessage",null);
_.V([_.u3("yt-service-request-completed"),_.f("design:type",Function),_.f("design:paramtypes",[Event,_.xE]),_.f("design:returntype")],dW.prototype,"onSendCompleted",null);_.V([_.u3("yt-service-request-error"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],dW.prototype,"onSendError",null);
_.V([_.u3("yt-live-chat-icon-toggle-button-renderer-toggle"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],dW.prototype,"handlePickerButtonToggle",null);_.V([_.u3("yt-emoji-select"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],dW.prototype,"onEmojiSelect",null);
_.V([_.OB("characterCount"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],dW.prototype,"characterCountChanged",null);_.V([_.OB("inputFocused"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],dW.prototype,"focusChanged",null);_.V([_.u3("yt-live-chat-error-message-dismiss"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],dW.prototype,"onErrorMessageDismiss",null);
_.V([_.u3("yt-live-chat-error-message-edit"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],dW.prototype,"onErrorMessageEdit",null);_.V([_.OB("errorMessage"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],dW.prototype,"errorMessageChanged",null);_.V([_.OB("isTooltipVisible"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],dW.prototype,"onIsTooltipVisibleChanged",null);
_.V([_.sB({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],dW);
_.k(dW,"yt-live-chat-message-input-renderer",function(){if(NkA===void 0){var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;O2c===void 0&&(O2c=document.createElement("template"));var S=O2c;y.call(h,S.content.cloneNode(!0),b.content.firstChild);NkA=b}b=NkA;return b},{mode:0});var bxA;var hYM;var jJ=function(){var b=_.g.apply(this,arguments)||this;b.systemIcons=_.r("kevlar_system_icons");b.firedOnClickCommand=!1;b.inReplyPanel=!1;return b};
_.z(jJ,_.g);
jJ.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"}}}};
jJ.prototype.onButtonToggle=function(b){b.target.disabled||this.ytPickerBehavior.togglePicker_(b.detail.targetId)};
jJ.prototype.onClick=function(){var b=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.F8(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return b.firedOnClickCommand=!1},5E3))};
_.tm.Object.defineProperties(jJ.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var b,h;return((b=this.data)==null?void 0:(h=b.panels)==null?void 0:h.find(function(y){return y.liveChatProductPickerPanelViewModel}))!==void 0}}});
jJ.prototype.onButtonToggle=jJ.prototype.onButtonToggle;_.V([_.B(v6A.YtPickerBehavior),_.f("design:type",Object)],jJ.prototype,"ytPickerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],jJ.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],jJ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],jJ.prototype,"data",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],jJ.prototype,"systemIcons",void 0);_.V([_.C({reflectToAttribute:!1}),_.f("design:type",Object)],jJ.prototype,"firedOnClickCommand",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],jJ.prototype,"inReplyPanel",void 0);_.V([_.W("data.pickers"),_.C({reflectToAttribute:!0}),_.f("design:type",Boolean),_.f("design:paramtypes",[])],jJ.prototype,"hasProductPickerPanelViewModel",null);
_.V([_.u3("yt-live-chat-icon-toggle-button-renderer-toggle"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],jJ.prototype,"onButtonToggle",null);_.V([_.sB({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],jJ);
_.k(jJ,"yt-live-chat-restricted-participation-renderer",function(){if(hYM===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;bxA===void 0&&(bxA=document.createElement("template"));var S=bxA;y.call(h,S.content.cloneNode(!0),b.content.firstChild);hYM=b}b=hYM;return b},{mode:0});var $v=function(){var b=_.g.apply(this,arguments)||this;b.genericErrorMessage=_.mk("Error, try again.");b.inReplyPanel=!1;b.hideBorder=!1;return b};
_.z($v,_.g);$v.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}}}}}};
_.tm.Object.defineProperties($v,{template:{configurable:!0,enumerable:!0,get:function(){return MMf()}}});
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],$v.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],$v.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],$v.prototype,"genericErrorMessage",void 0);_.V([_.C(),_.f("design:type",Object)],$v.prototype,"inReplyPanel",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],$v.prototype,"hideBorder",void 0);
_.V([_.sB({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],$v);_.k($v,"yt-live-chat-engagement-panel-input-renderer",function(){return MMf()},{mode:0});var yex,SE_;yex=_.Kh(115994);SE_=_.Kh(115993);_.L7=function(b,h,y){var S=this;var F=y.dragDownAction;this.layer=0;this.JSC$23251_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return S.dragDownAction()}}}};
this.JSC$23251_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return S.dragDownAction()}}}};
this.fullscreen=!1;var a=_.rU();_.qu(a,yex,this.layer);_.qu(a,SE_,this.layer);this.dragDownAction=function(){F();_.Vd(a,{visualElement:S.fullscreen?yex:SE_})};
this.gesture=new _.tH(b,h,this.getConfig(!1),"pandown");this.attach()};
_.L7.prototype.attach=function(){this.gesture.attach()};
_.L7.prototype.detach=function(){this.gesture.detach()};
_.L7.prototype.update=function(b){this.fullscreen=b;var h=this.gesture;b=this.getConfig(b);h.config=b};
_.L7.prototype.getConfig=function(b){return b?this.JSC$23251_watchFullScreenConfig:this.JSC$23251_watchConfig};var Fp9={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(b){if(b&&b.length==1&&Array.isArray(b[0].loggingUrls)){b=_.lR.unsafeClone(b[0]);var h=this.macros||{},y=this.getAdModuleClient_();if(!y)return _.$p();b.loggingUrls.forEach(function(S){if(S.baseUrl){var F=S.baseUrl;var a=h;a=a===void 0?{}:a;F=y.getOptions().includes("replaceUrlMacros")?_.NYW(y,"replaceUrlMacros",{url:F,additionalMapping:a}):F;S.baseUrl=F}},this);
b=[b]}return _.dh(this.hostElement,b)},
getAdModuleClient_:function(){var b=_.ye(this);return b?(b=b.getPlayer())?new _.n1(b):null:null}}]};var an9;var dQM;var Pt=function(){return _.g.apply(this,arguments)||this};
_.z(Pt,_.g);Pt.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Pt.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Pt.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Pt.prototype,"data",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],Pt);
_.k(Pt,"ytd-compact-tvfilm-entry-point-renderer",function(){if(dQM!==void 0)return dQM;var b=document.createElement("template");_.D(b,'\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>');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return dQM=b},{mode:1});var jHx;var $QJ;var LpD;var K7=function(){return _.g.apply(this,arguments)||this};
_.z(K7,_.g);K7.prototype.ready=function(){this.initializeDefs()};
K7.prototype.initializeDefs=function(){var b=this.meta.byKey("yt-icons"),h=_.$x(b).querySelector("#star"),y=_.$x(b).querySelector("#star_half");b=_.$x(b).querySelector("#star_border");h&&this.defs.appendChild(h.cloneNode(!0));y&&this.defs.appendChild(y.cloneNode(!0));b&&this.defs.appendChild(b.cloneNode(!0))};
K7.prototype.percentChanged=function(){for(var b=this.rating;b.firstChild;)b.removeChild(b.firstChild);var h=Math.round(this.percent/10);b=Math.floor(h/2);h%=2;var y=5-b-h;this.appendStars("star",b,0);this.appendStars("star_half",h,b);this.appendStars("star_border",y,b+h)};
K7.prototype.appendStars=function(b,h,y){for(var S=0;S<h;S++){var F=(18+this.spacing)*(S+y),a=document.createElementNS("http://www.w3.org/2000/svg","use");_.lTf(a,"#"+b);a.setAttribute("x",""+F);a.setAttribute("y","0");this.rating.appendChild(a)}};
K7.prototype.percentChanged=K7.prototype.percentChanged;_.V([_.to("#defs"),_.f("design:type",HTMLElement)],K7.prototype,"defs",void 0);_.V([_.to("#rating"),_.f("design:type",HTMLElement)],K7.prototype,"rating",void 0);_.V([_.C(),_.f("design:type",Number)],K7.prototype,"percent",void 0);_.V([_.C({value:6}),_.f("design:type",Number)],K7.prototype,"spacing",void 0);_.V([_.C({value:_.qE.create("iron-meta",{type:"iconset"})}),_.f("design:type",_.hQ)],K7.prototype,"meta",void 0);
_.V([_.OB("percent"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],K7.prototype,"percentChanged",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-ratings"})],K7);
_.k(K7,"ytd-ratings",function(){if(LpD!==void 0)return LpD;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return LpD=b},{mode:1});var PX_=function(){return _.g.apply(this,arguments)||this};
_.z(PX_,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],PX_.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],PX_.prototype,"data",void 0);_.V([_.Yx({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],PX_);
_.k(PX_,"ytd-offer-review-renderer",function(){if($QJ!==void 0)return $QJ;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return $QJ=b},{mode:1});var Zo=function(){var b=_.g.apply(this,arguments)||this;b.badges=[{textBadge:{label:_.mk("CC")}}];return b};
_.z(Zo,_.g);_.d=Zo.prototype;_.d.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.d.dataChanged=function(){var b=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(b&&b.commandMetadata&&_.c(b.commandMetadata,_.Sg)&&_.c(b.commandMetadata,_.Sg).fireAutomatically)_.H9().resolve(_.OM).resolveCommand(b,{form:{element:this.hostElement}});else{var h;b&&((h=_.c(b,_.Sg))==null?0:h.fireAutomatically)&&_.H9().resolve(_.OM).resolveCommand(b,{form:{element:this.hostElement}})}};
_.d.isEmptyContent=function(b){return this.isStorefrontEntryPointEmpty(b)&&this.shouldHideOfferModule(b)};
_.d.isStorefrontEntryPointEmpty=function(b){return!b||!b.storefrontEntryPoint};
_.d.shouldHideOfferModule=function(b){return!!b.hideVideoDetails};
_.d.isOfferModuleNavigationInactive=function(b){return!b.navigationEndpoint&&!b.serviceEndpoint};
_.d.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.H9().resolve(_.OM).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
Zo.prototype.dataChanged=Zo.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Zo.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Zo.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Zo.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.f("design:type",Boolean)],Zo.prototype,"hidden",void 0);
_.V([_.C(),_.f("design:type",Object)],Zo.prototype,"badges",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Zo.prototype,"dataChanged",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],Zo);
_.k(Zo,"ytd-movie-offer-module-renderer",function(){if(jHx!==void 0)return jHx;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return jHx=b},{mode:1});var Kpx;var ZxD=function(){return _.g.apply(this,arguments)||this};
_.z(ZxD,_.g);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],ZxD.prototype,"componentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],ZxD.prototype,"data",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],ZxD);
_.k(ZxD,"ytd-media-masthead-renderer",function(){if(Kpx!==void 0)return Kpx;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return Kpx=b},{mode:1});var oj_;_.yd(_.ara,"course-metadata-view-model",{props:{data:_.v3,isOverlay:_.v3}});var oM=function(){var b=_.g.apply(this,arguments)||this;b.isMetadataVisible=!1;b.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return b};
_.z(oM,_.g);_.d=oM.prototype;
_.d.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"}}}}};
_.d.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.d.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.d.expanderChanged=function(){var b;if((b=this.data)==null?0:b.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.d.isExpandButtonToggled=function(){var b,h;return(h=_.c((b=this.data)==null?void 0:b.expandMetadataButton,_.zc))==null?void 0:h.isToggled};
_.d.onVisibilityButtonClick=function(){var b;if((b=this.data)==null?0:b.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.d.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
oM.prototype.expanderChanged=oM.prototype.expanderChanged;oM.prototype.dataChanged=oM.prototype.dataChanged;oM.prototype.descriptionChanged=oM.prototype.descriptionChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],oM.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],oM.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B([_.mx.YtActionHandlerBehavior]),_.f("design:type",Object)],oM.prototype,"actionHandlerBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],oM.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],oM.prototype,"isMetadataVisible",void 0);_.V([_.to("#expander"),_.f("design:type",Object)],oM.prototype,"expander",void 0);_.V([_.OB("data.description"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],oM.prototype,"descriptionChanged",null);
_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],oM.prototype,"dataChanged",null);_.V([_.OB("isMetadataVisible"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],oM.prototype,"expanderChanged",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],oM);
_.k(oM,"ytd-tvfilm-offer-module-renderer",function(){if(oj_!==void 0)return oj_;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return oj_=b},{mode:2});var M3J;var M4=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return b};
_.z(M4,_.g);M4.prototype.dataChanged=function(){this.hostElement.hidden=!1};
M4.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
M4.prototype.onThumbnailTap=function(b){this.data&&this.data.serviceEndpoint&&(_.H9().resolve(_.OM).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),b.stopPropagation())};
M4.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
M4.prototype.dataChanged=M4.prototype.dataChanged;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],M4.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],M4.prototype,"rendererBehaviors",void 0);_.V([_.B([_.mx.YtActionHandlerBehavior]),_.f("design:type",Object)],M4.prototype,"actionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],M4.prototype,"data",void 0);
_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],M4.prototype,"dataChanged",null);_.V([_.Yx({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],M4);
_.k(M4,"ytd-unlimited-offer-module-renderer",function(){if(M3J!==void 0)return M3J;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return M3J=b},{mode:1});var njL;var X59;var n7=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return b};
_.z(n7,_.g);n7.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
n7.prototype.handleRelatedChipCommand=function(b){b=_.c(b,gJL);var h=b.contents;h?_.aw(this.hostElement,"yt-item-section-replace-action",[h,b.targetSectionIdentifier]):_.aw(this.hostElement,"yt-item-section-continuation-action",[b.continuationData,b.targetSectionIdentifier])};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],n7.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],n7.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],n7.prototype,"actionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],n7.prototype,"data",void 0);_.V([_.sB({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],n7);
_.k(n7,"yt-related-chip-cloud-renderer",function(){if(X59===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;njL===void 0&&(njL=document.createElement("template"));var S=njL;y.call(h,S.content.cloneNode(!0),b.content.firstChild);X59=b}b=X59;return b},{mode:2});var Xj=function(){var b=_.g.apply(this,arguments)||this;b.isTwoColumns=!0;b.watchFeedBigThumbs=_.r("kevlar_watch_feed_big_thumbs");b.watchFeedBigThumbsOnLockup=_.r("web_watch_next_big_thumbs");b.watchFeedBigThumbsCompactLayout=_.r("web_watch_next_big_thumbs")&&_.r("web_watch_next_big_thumbs_compact_layout");b.watchFeedBigThumbsExpandedLayout=_.r("web_watch_next_big_thumbs")&&_.r("web_watch_next_big_thumbs_expanded_layout");b.watchNextGridHideChips=_.r("kevlar_watch_grid_hide_chips");b.eligibleToSwitchToGrid=
!0;b.disableShortsShelfHeightOverride=_.r("web_shorts_wn_shelf_ratio_tuning");b.isWatchNextGrid=!1;b.reuseComponents=!_.r("kevlar_watch_grid");b.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return b};
_.z(Xj,_.g);_.d=Xj.prototype;
_.d.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]",
useBigThumbs:"[[watchFeedBigThumbsOnLockup]]"}},reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.r("web_watch_grid_resize_on_observer_init_killswitch")}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",
properties:{showButton:"[[showButton]]"}}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]"}}},renderPriority:0}}};
_.d.getItemsPath=function(){return"data.results"};
_.d.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.d.created=function(){this.ytLazyListBehavior.initialCount=1};
_.d.ready=function(){_.nZ(this.hostElement,{"--yt-img-shadow-placeholder-color":"var(--yt-spec-outline)","--yt-img-shadow-min-height":"100%","--yt-img-shadow-min-width":"100%"})};
_.d.resultsChanged=function(){if(this.data&&this.data.results){for(var b=this.data.results,h=null,y=null,S=0;S<b.length;S++)b[S].relatedChipCloudRenderer?h=b[S].relatedChipCloudRenderer:b[S].itemSectionRenderer&&(y=b[S].itemSectionRenderer);if(h&&y)for(this.set("data.continuations",[]),b=_.c(h.content,_.L08).chips,h=0;h<b.length;h++)if(S=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",b[h]),S.loadCached||!S.contents){S.contents=y.contents;break}}};
_.d.dataChanged=function(){var b=this,h;if((h=this.data)!=null&&h.results&&this.hasAllowedInstreamAd(this.playerData)){if(h=this.data.results.filter(function(K){return!!K.promotedSparklesWebRenderer})){for(var y=0;y<h.length;y++){var S=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",h[y]);
if(S)for(var F=0;F<S.length;F++)S[F]&&S[F].baseUrl&&_.$2(S[F].baseUrl)}this.set("data.results",this.data.results.filter(function(K){return!K.promotedSparklesWebRenderer}))}if(h=this.data.results.filter(function(K){return!!b.getSparklesAd(K)})){h=_.L(h);
for(F=h.next();!F.done;F=h.next())if(S=y=void 0,F=(y=this.getSparklesAd(F.value))==null?void 0:(S=y.errorCommand)==null?void 0:S.loggingUrls)for(y=_.L(F),S=y.next();!S.done;S=y.next())(S=S.value)&&S.baseUrl&&_.$2(S.baseUrl);var a,P;this.set("data.results",(a=this.data)==null?void 0:(P=a.results)==null?void 0:P.filter(function(K){return!K.adSlotRenderer}))}}};
_.d.getSparklesAd=function(b){var h,y;b=_.c((h=b.adSlotRenderer)==null?void 0:(y=h.fulfillmentContent)==null?void 0:y.fulfilledLayout,_.U8b);return _.c(b==null?void 0:b.renderingContent,hLM)};
_.d.hasAllowedInstreamAd=function(b){b=this.get("adPlacements",b)||[];for(var h=0;h<b.length;h++){var y=this.get("adPlacementRenderer.config.adPlacementConfig",b[h]);if(y&&y.suppressDisplayAd)return!0}return!1};
_.d.computeHideUnlimitedOfferModule=function(b,h){return b&&b.offerModule&&h&&b.offerModule.unlimitedOfferModuleRenderer&&b.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(h)?!0:!1};
_.d.hideUnlimitedOfferModuleChanged=function(){var b=_.$x(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");b&&(b.hidden=this.hideUnlimitedOfferModule)};
_.d.updateLockupContainerTypes=function(b){if(this.eligibleToSwitchToGrid){var h;(h=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||h.forEach(function(y){y.containerType=b})}};
_.d.computeHideTvfilmOfferModule=function(b,h){var y,S;return!!((b==null?0:(y=b.offerModule)==null?0:(S=y.tvfilmOfferModuleRenderer)==null?0:S.clientShouldSuppressIfCompanionAdDisplayed)&&h&&this.hasCompanionAds(h))};
_.d.hideTvfilmOfferModuleChanged=function(){var b=_.$x(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");b&&(b.hidden=this.hideTvfilmOfferModule)};
_.d.hasCompanionAds=function(b){b=this.get("adPlacements",b)||[];for(var h=0;h<b.length;h++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",b[h]))return!0;var y=void 0,S=void 0,F=void 0;if(!_.r("web_watch_top_banner_companion_check_killswitch")&&((y=b[h])==null?0:(S=y.adPlacementRenderer)==null?0:(F=S.renderer)==null?0:F.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.d.hasSuppressedResults=function(b){return b==null?!0:b.filter(function(h){return!h.continuationItemRenderer&&!h.compactPromotedVideoRenderer&&!h.promotedSparklesWebRenderer}).length===0};
_.d.computeShowButton=function(b,h){return this.isWatchNextGrid?b:b||this.hasSuppressedResults(h)};
_.d.showButtonChanged=function(){if(this.isWatchNextGrid){var b=_.$x(this.hostElement).querySelector("ytd-rich-grid-renderer");b&&this.showButton!==null&&(b.continuationShowButton=this.showButton)}else{b=_.$x(this.hostElement).querySelector("yt-next-continuation");var h=_.$x(this.hostElement).querySelector("ytd-continuation-item-renderer"),y=_.$x(this.hostElement).querySelector("ytd-item-section-renderer");b&&(b.showButton=this.showButton);h&&(h.showButton=this.showButton);y&&(y.continuationShowButton=
this.showButton)}};
_.d.continuationTap=function(b){var h;if(((h=this.data)==null?void 0:h.continuations)!=null&&b.target.tagName==="TP-YT-PAPER-BUTTON")for(b=this.data.continuations,h=0;h<b.length;h++)b[h].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(b[h].nextContinuationData||{})};
_.d.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ut("shown-items-changed",this.shownItems))};
_.tm.Object.defineProperties(Xj.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 b;return!((b=this.shownItems)==null||!b.some(function(h){return!!h.lockupViewModel||h.compactVideoRenderer}))}}});
Xj.prototype.shownItemsChangedForBinding=Xj.prototype.shownItemsChangedForBinding;Xj.prototype.showButtonChanged=Xj.prototype.showButtonChanged;Xj.prototype.hideTvfilmOfferModuleChanged=Xj.prototype.hideTvfilmOfferModuleChanged;Xj.prototype.updateLockupContainerTypes=Xj.prototype.updateLockupContainerTypes;Xj.prototype.hideUnlimitedOfferModuleChanged=Xj.prototype.hideUnlimitedOfferModuleChanged;Xj.prototype.dataChanged=Xj.prototype.dataChanged;Xj.prototype.resultsChanged=Xj.prototype.resultsChanged;
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Xj.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Xj.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.GO.YtLazyListBehavior),_.f("design:type",Object)],Xj.prototype,"ytLazyListBehavior",void 0);_.V([_.B(_.JC.YtNextContinuationBehavior),_.f("design:type",Object)],Xj.prototype,"ytNextContinuationBehavior",void 0);
_.V([_.B(_.p1),_.f("design:type",Object)],Xj.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],Xj.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Xj.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],Xj.prototype,"playerData",void 0);_.V([_.C({value:!0}),_.f("design:type",Boolean)],Xj.prototype,"autoFill",void 0);_.V([_.C({value:60}),_.f("design:type",Number)],Xj.prototype,"targetFramerate",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Xj.prototype,"isTwoColumns",void 0);_.V([_.C(),_.f("design:type",Object)],Xj.prototype,"shownItems",void 0);_.V([_.C({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.f("design:type",Boolean)],Xj.prototype,"hideUnlimitedOfferModule",void 0);_.V([_.C({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.f("design:type",Boolean)],Xj.prototype,"hideTvfilmOfferModule",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Xj.prototype,"watchFeedBigThumbs",void 0);_.V([_.C(),_.f("design:type",Object)],Xj.prototype,"watchFeedBigThumbsOnLockup",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Xj.prototype,"watchFeedBigThumbsCompactLayout",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Xj.prototype,"watchFeedBigThumbsExpandedLayout",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Xj.prototype,"watchNextGridHideChips",void 0);_.V([_.C(),_.f("design:type",Object)],Xj.prototype,"eligibleToSwitchToGrid",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Xj.prototype,"disableShortsShelfHeightOverride",void 0);_.V([_.C({selector:_.C9,reflectToAttribute:!0}),_.f("design:type",Object)],Xj.prototype,"isGridViewEnabled",void 0);
_.V([_.C({selector:_.V$N,reflectToAttribute:!0}),_.f("design:type",Object)],Xj.prototype,"isSwatcherooActive",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],Xj.prototype,"showMoreButton",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Xj.prototype,"isWatchNextGrid",void 0);_.V([_.C({computed:"computeShowButton(showMoreButton, data.results)"}),_.f("design:type",Boolean)],Xj.prototype,"showButton",void 0);
_.V([_.zj("data.results.*"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Xj.prototype,"resultsChanged",null);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Xj.prototype,"dataChanged",null);_.V([_.OB("hideUnlimitedOfferModule"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Xj.prototype,"hideUnlimitedOfferModuleChanged",null);
_.V([_.W("isGridViewEnabled","containsLockups","data"),_.C({reflectToAttribute:!0}),_.f("design:type",Number),_.f("design:paramtypes",[])],Xj.prototype,"lockupContainerType",null);_.V([_.OB("lockupContainerType","data"),_.f("design:type",Function),_.f("design:paramtypes",[Number]),_.f("design:returntype")],Xj.prototype,"updateLockupContainerTypes",null);
_.V([_.OB("hideTvfilmOfferModule"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Xj.prototype,"hideTvfilmOfferModuleChanged",null);_.V([_.OB("showButton"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Xj.prototype,"showButtonChanged",null);_.V([_.OB("shownItems"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Xj.prototype,"shownItemsChangedForBinding",null);
_.V([_.W("shownItems"),_.C({reflectToAttribute:!0}),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Xj.prototype,"containsLockups",null);
_.k(Xj,"ytd-watch-next-secondary-results-renderer",function(){if(an9===void 0){var b=document.createElement("template");_.D(b,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);an9=b}b=an9;return b},{mode:1});var Hxf;var Ht=function(){var b=_.g.apply(this,arguments)||this;b.isCollapsed=!1;b.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return b};
_.z(Ht,_.g);_.d=Ht.prototype;_.d.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.d.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.d.onDonateTap=function(){var b=this.get("data.donateButton.buttonRenderer.command");if(b){var h=_.UE(),y=this.get("data.donateButton.buttonRenderer.trackingParams");h&&y&&_.lE(h,_.I_(y));this.ytOpenPopupBehavior.openPopup(b)}};
_.d.onShowMore=function(){this.isCollapsed=!1;var b=_.UE(),h=this.get("data.expandButton.buttonRenderer.trackingParams");b&&h&&_.lE(b,_.I_(h))};
_.d.onShowLess=function(){this.isCollapsed=!0};
_.d.dataChanged=function(){_.nZ(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.d.onDarkModeToggledAction=function(b){this.isDarkTheme=b};
_.d.handleUpdate=function(b){if(b=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",b))this.set("data.startLabel",b.startLabel),this.set("data.endLabel",b.endLabel),this.set("data.progress",b.progress),this.set("data.amountRaisedLabel",b.amountRaisedLabel),this.dataChanged()};
_.d.handleOpenPopupAction=function(b){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",b)&&_.F8(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.d.computeHeaderBackgroundUrl=function(b,h){if(b)return h?b.headerBackgroundDarkUrl:b.headerBackgroundUrl};
_.d.isProgressBarVisible=function(b){return!(!b||b.progress===void 0)};
_.d.headerBackgroundClass=function(){return _.QC("HTML_DIR")==="rtl"?"flip":""};
Ht.prototype.dataChanged=Ht.prototype.dataChanged;_.V([_.B(_.xN.YtOpenPopupBehavior),_.f("design:type",Object)],Ht.prototype,"ytOpenPopupBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Ht.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Ht.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],Ht.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],Ht.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],Ht.prototype,"isCollapsed",void 0);_.V([_.C({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.f("design:type",String)],Ht.prototype,"headerBackgroundUrl",void 0);_.V([_.C(),_.f("design:type",Boolean)],Ht.prototype,"isDarkTheme",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Ht.prototype,"dataChanged",null);
_.V([_.Yx({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],Ht);
_.k(Ht,"ytd-donation-shelf-renderer",function(){if(Hxf!==void 0)return Hxf;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return Hxf=b},{mode:1});var uNp;var Oxp=function(){return _.g.apply(this,arguments)||this};
_.z(Oxp,_.g);_.V([_.C(),_.f("design:type",Object)],Oxp.prototype,"data",void 0);_.V([_.Yx({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],Oxp);
_.k(Oxp,"ytd-donation-unavailable-renderer",function(){if(uNp!==void 0)return uNp;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return uNp=b},{mode:1});var NO$;var ud=function(){return _.g.apply(this,arguments)||this};
_.z(ud,_.g);ud.prototype.computeIconType=function(b){return b?"yt-icons:"+b.toLowerCase():null};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],ud.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],ud.prototype,"data",void 0);_.V([_.Yx({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],ud);
_.k(ud,"ytd-limited-state-message-renderer",function(){if(NO$!==void 0)return NO$;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return NO$=b},{mode:1});var t3R;var Od=function(){return _.g.apply(this,arguments)||this};
_.z(Od,_.g);Od.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
Od.prototype.onTap=function(b){var h=this.data&&this.data.endpoint;h&&!_.mf(_.Qk(b),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.Sx(this.hostElement,"yt-navigate",{endpoint:h})};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Od.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Od.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Od.prototype,"data",void 0);_.V([_.Yx({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],Od);
_.k(Od,"ytd-autotagging-metadata-renderer",function(){if(t3R!==void 0)return t3R;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return t3R=b},{mode:1});var reA;var N4=function(){return _.g.apply(this,arguments)||this};
_.z(N4,_.g);N4.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],N4.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],N4.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],N4.prototype,"data",void 0);_.V([_.Yx({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],N4);
_.k(N4,"ytd-autotagging-metadata-row-renderer",function(){if(reA!==void 0)return reA;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return reA=b},{mode:1});var cep;var RY_;var tb=function(){var b=_.g.apply(this,arguments)||this;b.engagementPanelContent=!1;return b};
_.z(tb,_.g);tb.prototype.computeHasDividerLine=function(b,h){return b&&!h};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],tb.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],tb.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.f("design:type",Boolean)],tb.prototype,"hasDividerLine",void 0);_.V([_.C(),_.f("design:type",Object)],tb.prototype,"engagementPanelContent",void 0);
_.V([_.Yx({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],tb);
_.k(tb,"ytd-metadata-row-header-renderer",function(){if(RY_!==void 0)return RY_;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return RY_=b},{mode:1});var zYx;var rW=function(){return _.g.apply(this,arguments)||this};
_.z(rW,_.g);rW.prototype.computeHasDividerLine=function(b){return b};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],rW.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],rW.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.f("design:type",Boolean)],rW.prototype,"hasDividerLine",void 0);_.V([_.Yx({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],rW);
_.k(rW,"ytd-metadata-row-renderer",function(){if(zYx!==void 0)return zYx;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return zYx=b},{mode:1});var DQ2;var InR=function(){return _.g.apply(this,arguments)||this};
_.z(InR,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],InR.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],InR.prototype,"data",void 0);_.V([_.Yx({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],InR);
_.k(InR,"ytd-metadata-with-image-row-renderer",function(){if(DQ2!==void 0)return DQ2;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return DQ2=b},{mode:1});var BOf;var ct=function(){var b=_.g.apply(this,arguments)||this;b.rounded=!0;b.fixie=!1;b.fullWidth=!1;return b};
_.z(ct,_.g);_.d=ct.prototype;_.d.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.d.onDataChanged=function(){var b=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(h){b.onEndpointLinkKeyPress(h)}))};
_.d.onEndpointLinkKeyPress=function(b){b.target===this.endpointLink&&b.keyCode===13&&_.Sx(this.hostElement,"click")};
_.d.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var b;if((b=this.data)==null?0:b.endpoint)_.jx(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.d.onYtNavigate=function(b){this.endpointHref||(b.stopPropagation(),b.preventDefault())};
_.d.onInformationButtonContainerClick=function(b){b.target.id!=="information-button-container"&&(b.stopPropagation(),b.preventDefault())};
_.d.computeStyle=function(b){return b};
_.d.computeIsThumbnailStyle=function(b){return b==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.d.computeThumbnailWidth=function(b){switch(b){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}};
_.d.computeThumbnailObjectFit=function(b){switch(b){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.tm.Object.defineProperties(ct.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.data)==null?0:b.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
ct.prototype.onYtNavigate=ct.prototype.onYtNavigate;ct.prototype.onClick=ct.prototype.onClick;ct.prototype.onDataChanged=ct.prototype.onDataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],ct.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],ct.prototype,"componentBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],ct.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],ct.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.f("design:type",String)],ct.prototype,"componentStyle",void 0);_.V([_.C({computed:"computeIsThumbnailStyle(data.style)"}),_.f("design:type",Boolean)],ct.prototype,"isThumbnailStyle",void 0);_.V([_.C({computed:"computeThumbnailObjectFit(data.style)"}),_.f("design:type",String)],ct.prototype,"thumbnailObjectFit",void 0);
_.V([_.C({computed:"computeThumbnailWidth(data.style)"}),_.f("design:type",Number)],ct.prototype,"thumbnailWidth",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],ct.prototype,"rounded",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],ct.prototype,"fixie",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],ct.prototype,"fullWidth",void 0);_.V([_.to("#endpoint-link"),_.f("design:type",HTMLAnchorElement)],ct.prototype,"endpointLink",void 0);
_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],ct.prototype,"onDataChanged",null);_.V([_.W("data.endpoint"),_.f("design:type",Object),_.f("design:paramtypes",[])],ct.prototype,"endpointHref",null);_.V([_.u3("click"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],ct.prototype,"onClick",null);
_.V([_.u3("yt-navigate"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],ct.prototype,"onYtNavigate",null);_.V([_.Yx({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],ct);
_.k(ct,"ytd-rich-metadata-renderer",function(){if(BOf!==void 0)return BOf;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return BOf=b},{mode:_.Lt("kevlar_poly_si_batch_j075")?1:2});var WpJ;var RM=function(){var b=_.g.apply(this,arguments)||this;b.fixie=!1;b.fullWidth=!1;return b};
_.z(RM,_.g);RM.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
RM.prototype.computeHasDividerLine=function(b){return b};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],RM.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],RM.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.f("design:type",Boolean)],RM.prototype,"hasDividerLine",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],RM.prototype,"fixie",void 0);_.V([_.C(),_.f("design:type",Object)],RM.prototype,"fullWidth",void 0);
_.V([_.Yx({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],RM);
_.k(RM,"ytd-rich-metadata-row-renderer",function(){if(WpJ!==void 0)return WpJ;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return WpJ=b},{mode:1});var zF=function(){var b=_.g.apply(this,arguments)||this;b.engagementPanelContent=!1;b.fixie=!1;b.fullWidth=!1;return b};
_.z(zF,_.g);
zF.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"}}}};
zF.prototype.computeCollapsibleItems=function(b,h,y){return b===void 0||h===void 0||y===void 0||y?[]:b.slice(h)};
zF.prototype.computeAlwaysShownItems=function(b,h){return b&&b.length?b.slice(0,h):[]};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],zF.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],zF.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],zF.prototype,"data",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],zF.prototype,"collapsed",void 0);
_.V([_.C({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.f("design:type",Array)],zF.prototype,"alwaysShownItems",void 0);_.V([_.C({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.f("design:type",Array)],zF.prototype,"collapsibleItems",void 0);_.V([_.C(),_.f("design:type",Object)],zF.prototype,"engagementPanelContent",void 0);_.V([_.C(),_.f("design:type",Object)],zF.prototype,"fixie",void 0);
_.V([_.C(),_.f("design:type",Object)],zF.prototype,"fullWidth",void 0);_.V([_.Yx({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],zF);
_.k(zF,"ytd-metadata-row-container-renderer",function(){if(cep!==void 0)return cep;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return cep=b},{mode:1});var Aec;var Do=function(){var b=_.g.apply(this,arguments)||this;b.currentPageUrl="";b.baseUrl="";b.isHiddenByUser=null;b.hidden=!1;b.showAboveScrim=!1;b.watchNextGrid=_.r("kevlar_watch_grid");b.modernButtons=_.r("web_modern_buttons");b.roundedContainer=!0;b.noBorder=!1;b.roundBackground=!_.r("live_chat_round_background_killswitch");b.overflowHideChat=_.r("live_chat_overflow_hide_chat");b.forceDarkTheme=!1;b.theaterWatchWhile=!1;b.isListeningForPlayerProgress=!1;b.JSC$23322_playerEvents=new Map;b.isFrameReady=
!1;b.player=null;b.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 b};
_.z(Do,_.g);_.d=Do.prototype;_.d.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.aw(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.d.created=function(){var b=this;this.handleIframeEventListener=function(h){b.handleIframeEvent(h)};
this.handleKeyboardEventListener=function(h){b.handleKeyboardEvent(h)};
this.JSC$23322_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$23322_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$23322_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$23322_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$23322_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.d.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()};
_.d.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};
_.d.computeBaseUrl=function(b){var h="/live_chat";this.isChatReplay()&&(h="/live_chat_replay");return _.IE(_.Dl(_.zS(_.La(b),h),null),"").toString()};
_.d.dataChanged=function(){_.r("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.d.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var b=this.url;if(this.isChatReplay()&&this.player){var h=Math.floor(this.player.getProgressState().current*1E3);b=_.Ka(_.La(b),"playerOffsetMs",h.toString()).toString()}h=this.chatframe;try{var y=b==="about:blank"?_.Y_G:_.lJ(b),S=h.contentDocument.location,F=_.QD(y);F!==void 0&&S.replace(F)}catch(a){h.src=b}}};
_.d.collapsedChanged=function(){_.Sx(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.d.handleIframeEvent=function(b){if(b&&this.baseUrl.startsWith(b.origin)&&b.source===this.chatframe.contentWindow&&_.lf(b.data))if(b.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(b);else if(b.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(b.data["yt-show-feedback-dialog"]){var h=_.H9().resolve(_.XS(_.kpA));if(h){var y=b.ports,S;y&&y.length&&(S=function(){y[0].postMessage({})});
b=b.data["yt-show-feedback-dialog"];h.showFeedbackDialog(b.customProductData,b.feedbackContent,S,b.bucket)}}else if(b.data["yt-show-survey"])_.Sx(this.hostElement,"yt-show-survey",b.data["yt-show-survey"]);else if(b.data["yt-purchase-membership"])_.H9().resolve(_.OM).resolveCommand(b.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(b.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(b.data["yt-tunnel-out-live-service-request"]);else if(b.data["yt-user-activity"])_.Ni();
else if(b.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(b.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(b.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(b.data["yt-open-popup"]);else if(b.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(b.data["yt-log-flow-logging-event-command"]);else if(b.data["yt-hide-live-chat"])this.onShowHideChat();else b.data["yt-report-moderation-state-log"]&&
this.player&&(h={cpn:this.player.getVideoData().cpn},_.qi("liveChatBeingModerated",h))};
_.d.attachLiveChatResponseVeTrackingParams=function(b){b=_.I_(b);var h=_.UE(),y=_.hj("liveChatRenderer.trackingParams",this.data);h&&y&&_.Vh(h,_.I_(y),b)};
_.d.handleBuyflowMessages=function(b){var h=b.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,y=b.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,S=b.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.DVy(_.Fo(_.xg),h.replace(/-/g,"+").replace(/_/g,"/"),function(F){b.ports[0].postMessage({success:!0,buyFlowResponse:F})},void 0,function(F){b.ports[0].postMessage({success:!1,
error:F&&F.message||"Buyflow rejected without error."})},_.HT().get("hl"),void 0,function(){b.ports[0].postMessage({closed:!0})},y,S)};
_.d.setupPlayerProgressRelay=function(){var b=this;if(!this.isListeningForPlayerProgress){var h=_.Sa();h!=null&&h.getPlayerPromise&&(h.getPlayerPromise().then(function(y){b.playerApiReady(y)}),this.isListeningForPlayerProgress=!0)}};
_.d.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.d.playerApiReady=function(b){this.setPlayer(b)};
_.d.playerProgressHandler=function(){if(this.player){var b=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":b.current})}};
_.d.playerAdStartHandler=function(b){this.postToContentWindow({"yt-player-ad-start":b})};
_.d.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.d.playerStateChangeHandler=function(b){this.postToContentWindow({"yt-player-state-change":b})};
_.d.setPlayer=function(b){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23322_playerEvents);b&&(this.player=b,this.ytPlayerListenerBehavior.listenToPlayerEvents(b,this.JSC$23322_playerEvents),_.Sx(this.hostElement,"player-api-ready"))};
_.d.liveChatPageUrl=function(b,h,y,S){return!y||h?"about:blank":y.liveChatRenderer?(h=_.La(this.currentPageUrl).JSC$10215_queryData_,f7J(h),b=_.La(b),h.add("continuation",y.liveChatRenderer.continuations[0].reloadContinuationData.continuation),y=_.Vk()==="USER_INTERFACE_THEME_DARK",(S||y)&&h.add("dark_theme","true"),_.Dl(b,h),S=_.La(b.toString()),y=S.JSC$10215_queryData_,"SESSION_INDEX"in _.qU&&(y.add("authuser",_.QC("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.qU&&y.add("pageId",_.QC("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.qU&&y.add("sdc",_.QC("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),S.toString()):""};
_.d.isCollapsed=function(b,h){return h!==null?h:this.isChatReplay()||b&&b.conversationBarRenderer&&b.conversationBarRenderer.availabilityMessage?!0:b?b.liveChatRenderer?b.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.r("live_chat_hide_premiere_replay_message")||b.conversationBarRenderer&&b.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.d.isHidden=function(b,h,y){var S=h&&h.conversationBarRenderer&&h.conversationBarRenderer.availabilityMessage,F=h&&h.liveChatRenderer&&h.liveChatRenderer.showHideButton,a=h&&h.liveChatRenderer&&h.liveChatRenderer.showButton;return y&&b&&!S&&!a||!y&&b&&!S&&!F?!0:h&&h.liveChatRenderer&&h.liveChatRenderer.initialDisplayState?h.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.d.computeButtonOverride=function(b,h){if(b&&h)return{type:"outline"}};
_.d.setCollapsedState=function(b){_.c(b,_.JQ8)&&((this.isHiddenByUser=!!_.c(b,_.JQ8).collapsed)||_.F8(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.d.forwardReduxActionToIframe=function(b){this.postToContentWindow({"yt-live-chat-forward-redux-action":b})};
_.d.onLoopRangeChange=function(b){this.showAboveScrim=!(b==null||!b.postId)};
_.d.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.d.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.d.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.d.sendDarkThemePostMessage=function(b){this.postToContentWindow({"yt-live-chat-set-dark-theme":b})};
_.d.onLiveChatBuyFlowCallback=function(b){this.postToContentWindow({"yt-live-chat-buy-flow-callback":b})};
_.d.handleKeyboardEvent=function(b){(0,_.lR.containsValue)(qP9,b.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:b.type,keyCode:b.keyCode}})};
_.d.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.d.postToContentWindow=function(b){if(this.isFrameReady)try{var h=window.location.protocol+"//"+window.location.host,y;(y=this.chatframe)!=null&&y.contentWindow?this.chatframe.contentWindow.postMessage(b,h):_.vX(new _.Gn("Tried posting a message to an iframe with no content window",b))}catch(S){_.QT(S)}};
_.d.shouldHideChatFrame=function(b){return b&&_.r("hide_live_chat_button_when_collapsed")};
_.tm.Object.defineProperties(Do.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.r("live_chat_overflow_hide_chat")||_.r("web_watch_chat_hide_button_killswitch"))return _.r("live_chat_overflow_hide_chat");var b,h,y,S;return!!((b=this.data)==null?0:(h=b.liveChatRenderer)==null?0:(y=h.header)==null?0:(S=y.liveChatHeaderRenderer)==null?0:S.collapseButton)}}});
Do.prototype.collapsedChanged=Do.prototype.collapsedChanged;Do.prototype.urlChanged=Do.prototype.urlChanged;Do.prototype.dataChanged=Do.prototype.dataChanged;Do.prototype.onShowHideChat=Do.prototype.onShowHideChat;_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],Do.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Do.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],Do.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.UA.YtPlayerListenerBehavior),_.f("design:type",_.pf)],Do.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.B(_.xN.YtOpenPopupBehavior),_.f("design:type",Object)],Do.prototype,"ytOpenPopupBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Do.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],Do.prototype,"currentPageUrl",void 0);
_.V([_.C({computed:"computeBaseUrl(currentPageUrl,data)"}),_.f("design:type",Object)],Do.prototype,"baseUrl",void 0);_.V([_.C({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.f("design:type",String)],Do.prototype,"url",void 0);_.V([_.C(),_.f("design:type",Object)],Do.prototype,"isHiddenByUser",void 0);_.V([_.C({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.f("design:type",Object)],Do.prototype,"hidden",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.f("design:type",Boolean)],Do.prototype,"collapsed",void 0);_.V([_.C({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.f("design:type",Boolean)],Do.prototype,"hideChatFrame",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Do.prototype,"showAboveScrim",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Do.prototype,"watchNextGrid",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],Do.prototype,"modernButtons",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Do.prototype,"roundedContainer",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Do.prototype,"noBorder",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],Do.prototype,"roundBackground",void 0);
_.V([_.C({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.f("design:type",Object)],Do.prototype,"toggleButtonOverride",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],Do.prototype,"overflowHideChat",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Do.prototype,"forceDarkTheme",void 0);_.V([_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Do.prototype,"enableShowWithoutHideChatButton",null);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Do.prototype,"theaterWatchWhile",void 0);_.V([_.to("#chatframe"),_.f("design:type",HTMLIFrameElement)],Do.prototype,"chatframe",void 0);_.V([_.u3("yt-toggle-button"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Do.prototype,"onShowHideChat",null);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Do.prototype,"dataChanged",null);
_.V([_.OB("url"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Do.prototype,"urlChanged",null);_.V([_.OB("collapsed"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Do.prototype,"collapsedChanged",null);_.V([_.Yx({is:"ytd-live-chat-frame",disableElementRegistration:!0})],Do);
_.k(Do,"ytd-live-chat-frame",function(){if(Aec!==void 0)return Aec;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return Aec=b},{mode:1});var UQ9;var IM=function(){var b=_.g.apply(this,arguments)||this;b.modern=_.r("web_modern_buttons");b.buttonOverrides={style:"call-to-action",type:"filled"};return b};
_.z(IM,_.g);IM.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=_.eI(this.data.backgroundColor)))};
IM.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var b=this.getFormattedStringLoggingDirectives(this.data.headline);b&&this.rendererBehavior.logExplicitClick(b)}};
IM.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var b=this.getFormattedStringLoggingDirectives(this.data.description);b&&this.rendererBehavior.logExplicitClick(b)}};
IM.prototype.getFormattedStringLoggingDirectives=function(b){return b&&b.runs&&b.runs.length>0&&b.runs[0]&&b.runs[0].loggingDirectives?b.runs[0].loggingDirectives:null};
IM.prototype.dataChanged=IM.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],IM.prototype,"rendererBehavior",void 0);_.V([_.B(Fp9.YtMacroReplacementBehavior),_.f("design:type",Object)],IM.prototype,"macroReplacementBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],IM.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],IM.prototype,"navigationEndpoint",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],IM.prototype,"enableColors",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],IM.prototype,"modern",void 0);_.V([_.C(),_.f("design:type",Object)],IM.prototype,"buttonOverrides",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],IM.prototype,"dataChanged",null);_.V([_.Yx({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],IM);
_.k(IM,"ytd-action-basic-immersive-content-renderer",function(){if(UQ9!==void 0)return UQ9;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return UQ9=b},{mode:1});var p5_;var JeL;var Bt=function(){return _.g.apply(this,arguments)||this};
_.z(Bt,_.g);Bt.prototype.dataChanged=function(){var b;((b=this.data)==null?void 0:b.backgroundColor)!==void 0&&_.nZ(this.hostElement,{"--bgu-color":_.eI(this.data.backgroundColor)})};
Bt.prototype.onImageTileClick=function(){var b;((b=this.data)==null?0:b.navigationEndpoint)&&_.Sx(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var h;((h=this.data)==null?0:h.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.tm.Object.defineProperties(Bt.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.data)==null?void 0:b.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var b;if(((b=this.data)==null?void 0:b.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 b;return((b=this.data)==null?void 0:b.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var b,h,y;if(((b=this.data)==null?void 0:(h=b.detailsLine)==null?void 0:h.texts)!=null&&((y=this.data)==null?void 0:y.detailsLine.texts.length)>0){var S;return(S=this.data)==null?void 0:S.detailsLine.texts.map(function(F){return F.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var b,h,y;if(((b=this.data)==null?void 0:(h=b.optionalDetailsLine)==null?void 0:h.texts)!=null&&((y=this.data)==null?void 0:y.optionalDetailsLine.texts.length)>0){var S;return(S=this.data)==null?void 0:S.optionalDetailsLine.texts.map(function(F){return F.text}).join("")}return null}}});
Bt.prototype.dataChanged=Bt.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Bt.prototype,"rendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],Bt.prototype,"componentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Bt.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.W("data.backgroundColor"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Bt.prototype,"hasBackgroundColor",null);
_.V([_.W("data.objectFit"),_.f("design:type",Object),_.f("design:paramtypes",[])],Bt.prototype,"getObjectFit",null);_.V([_.C({reflectToAttribute:!0}),_.W("data.tileRenderingStyle"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Bt.prototype,"hasTileMetadata",null);_.V([_.W("data.detailsLine"),_.f("design:type",Object),_.f("design:paramtypes",[])],Bt.prototype,"getSecondaryDetails",null);
_.V([_.W("data.optionalDetailsLine"),_.f("design:type",Object),_.f("design:paramtypes",[])],Bt.prototype,"getOptionalDetails",null);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Bt.prototype,"dataChanged",null);_.V([_.Yx({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],Bt);
_.k(Bt,"ytd-image-tile-renderer",function(){if(JeL!==void 0)return JeL;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return JeL=b},{mode:1});var eY9;var Wt=function(){return _.g.apply(this,arguments)||this};
_.z(Wt,_.g);Wt.prototype.getOpenLinkIcon=function(){return _.r("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
Wt.prototype.onSitelinkTap=function(){_.Sx(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.r("kevlar_command_handler_migration_killswitch"))_.jx(this.hostElement,this.data.clickCommands,this.hostElement);else for(var b=_.L(this.data.clickCommands),h=b.next();!h.done;h=b.next())this.ytComponentBehavior.resolveCommand(h.value)};
_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],Wt.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Wt.prototype,"rendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Wt.prototype,"data",void 0);_.V([_.Yx({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],Wt);
_.k(Wt,"ytd-sitelink-renderer",function(){if(eY9!==void 0)return eY9;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return eY9=b},{mode:1});var Ab=function(){var b=_.g.apply(this,arguments)||this;b.paddingFix=_.r("enable_ads_web_ep_buenos_aires_and_padding_fix");return b};
_.z(Ab,_.g);Ab.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"}}}};
Ab.prototype.dataChanged=function(){var b=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(h){h.clickTrackingParams&&delete h.clickTrackingParams;b.ytMacroReplacementBehavior.sendServiceRequestAction([h])})};
Ab.prototype.shouldHideFooter=function(b){return!(b&&_.r("use_ads_engagement_panel_desktop_footer_cta"))};
_.tm.Object.defineProperties(Ab.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var b,h;return((b=this.data)==null?void 0:b.imageTileRenderers)===void 0||((h=this.data)==null?void 0:h.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(y){var S;return(S=_.c(y,bPA))==null?void 0:S.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var b,h;return((b=this.data)==null?void 0:b.imageTileRenderers)===void 0||((h=this.data)==null?void 0:h.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(y){var S;return((S=_.c(y,bPA))==null?void 0:S.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
Ab.prototype.dataChanged=Ab.prototype.dataChanged;_.V([_.B(Fp9.YtMacroReplacementBehavior),_.f("design:type",Object)],Ab.prototype,"ytMacroReplacementBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Ab.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Ab.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Ab.prototype,"data",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Ab.prototype,"paddingFix",void 0);_.V([_.C({reflectToAttribute:!0}),_.W("data.imageTileRenderers"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Ab.prototype,"removeBorderFromImageTiles",null);_.V([_.C({reflectToAttribute:!0}),_.W("data.imageTileRenderers"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Ab.prototype,"useFooteredMetadataRenderingStyle",null);
_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Ab.prototype,"dataChanged",null);_.V([_.Yx({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],Ab);
_.k(Ab,"ytd-action-engagement-panel-content-renderer",function(){if(p5_!==void 0)return p5_;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return p5_=b},{mode:1});var CX9;var gjL=_.T(function(b){var h=b.data;var y=b.customCommandResolver;return _.M("ad-grid-card-image-full-metadata-view-model",{class:function(){var S;return((S=h().interaction)==null?0:S.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.Qa(_.r_({visibilityCallback:function(S){var F,a=(F=h().interaction)==null?void 0:F.onFirstVisible;S&&a&&_.Va(a)},
showOption:_.VZ}),_.Go(function(){return h().interaction},y)),
"aria-label":function(){var S,F;return(S=h().interaction)==null?void 0:(F=S.accessibility)==null?void 0:F.label}},_.M("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.M(_.rC,{data:function(){return h().adImage}},{adImageViewModel:function(S){return _.M(_.a9,{data:S.data,
customCommandResolver:y})}})),_.M("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.M(_.H,{cond:function(){return h().headline},
then:function(S){return _.M(_.zv,{text:S,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.M(_.H,{cond:function(){return h().detailsLine},
then:function(S){return _.M("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.M(_.rC,{data:S},{adDetailsLineViewModel:function(F){return _.M(_.QZ,{data:F.data,customCommandResolver:y,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.M(_.H,{cond:function(){return h().secondaryDetailsLine},
then:function(S){return _.M("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.M(_.rC,{data:S},{adDetailsLineViewModel:function(F){return _.M(_.QZ,{data:F.data,customCommandResolver:y,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"eo");var sH9=_.T(function(b){var h=b.data;var y=b.customCommandResolver;return _.M("ad-grid-card-image-view-model",{class:function(){var S;return((S=h().interaction)==null?0:S.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.Qa(_.r_({visibilityCallback:function(S){var F,a=(F=h().interaction)==null?void 0:F.onFirstVisible;S&&a&&_.Va(a)},
showOption:_.VZ}),_.Go(function(){return h().interaction},y)),
"aria-label":function(){var S,F;return(S=h().interaction)==null?void 0:(F=S.accessibility)==null?void 0:F.label}},_.M(_.rC,{data:function(){return h().adImage}},{adImageViewModel:function(S){return _.M(_.a9,{data:S.data,
customCommandResolver:y})}}),_.M("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.M(_.rC,{data:function(){return h().adCardBadge}},{adCardBadgeViewModel:_.lcG})))},"fo");var YED=_.T(function(b){var h=b.data;var y=b.customCommandResolver;return _.M("ad-grid-card-text-view-model",{class:function(){var S;return((S=h().interaction)==null?0:S.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.Qa(_.r_({visibilityCallback:function(S){var F,a=(F=h().interaction)==null?void 0:F.onFirstVisible;S&&a&&_.Va(a)},
showOption:_.VZ}),_.Go(function(){return h().interaction},y)),
"aria-label":function(){var S,F;return(S=h().interaction)==null?void 0:(F=S.accessibility)==null?void 0:F.label}},_.M("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.M(_.H,{cond:function(){return h().title},
then:function(S){return _.M(_.zv,{text:S,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.M("div",{class:"ytwAdGridCardTextViewModelHostMetadataDescriptionInline"},_.M(_.Gw,{each:function(){var S;
return((S=h())==null?void 0:S.descriptions)||[]},
keyBy:"INDEX"},function(S){return _.M(_.zv,{text:S,className:"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline"})}))),_.M("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.M(_.rC,{data:function(){return h().moreInfoButton}},{adButtonViewModel:function(S){return _.M(_.iH,{data:S.data,
customCommandResolver:y})}})))},"go");var TO_=_.T(function(b){var h=b.data;var y=b.customCommandResolver;var S=b.adGridCardCollectionStyle;return _.M("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.Qa(_.r_({visibilityCallback:function(F){var a,P=(a=h().interaction)==null?void 0:a.onFirstVisible;F&&P&&_.Va(P)},
showOption:_.VZ})),style:function(){return"grid-template-columns: repeat("+SuJ(S?S():h().style)+", minmax(0, 1fr));"}},_.M(_.rC,{data:function(){var F;
return(F=h())==null?void 0:F.gridCards}},{adGridCardImageViewModel:function(F){return _.M(sH9,{data:F.data,
customCommandResolver:y})},
adGridCardImageFullMetadataViewModel:function(F){return _.M(gjL,{data:F.data,customCommandResolver:y})},
adGridCardTextViewModel:function(F){return _.M(YED,{data:F.data,customCommandResolver:y})}}))},"ho");_.yd(_.T(function(b){var h=b.data;return _.M("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.Qa(_.r_({visibilityCallback:function(y){var S,F=(S=h().interaction)==null?void 0:S.onFirstVisible;y&&F&&_.Va(F)},
showOption:_.VZ}),_.Go(function(){return h().interaction},a7c))},_.M("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.M(_.H,{cond:_.dRN("(min-width: "+((0,_.Qo)()+_.gM)+"px)"),
then:function(){return _.M(_.rC,{data:function(){return h().adGridCardCollection}},{adGridCardCollectionViewModel:function(y){return _.M(TO_,{data:y.data,
customCommandResolver:a7c})}})},
else:function(){return _.M(_.rC,{data:function(){return h().adGridCardCollection}},{adGridCardCollectionViewModel:function(y){return _.M(TO_,{data:y.data,
customCommandResolver:a7c,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.M("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.M(_.rC,{data:function(){return h().adButton}},{adButtonViewModel:function(y){return _.M(_.iH,{data:y.data,
customCommandResolver:a7c})}})))},"io"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.D4}});_.yd(_.T(function(b){var h=b.data;return _.M("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.Qa(_.r_({visibilityCallback:function(y){var S,F=(S=h().interaction)==null?void 0:S.onFirstVisible;y&&F&&_.Va(F)},
showOption:_.VZ}),_.Go(function(){return h().interaction},diP))},_.M("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.M(_.rC,{data:function(){if(_.dRN("(min-width: "+((0,_.Qo)()+_.gM)+"px)")())var y=h().adGridCardCollection;
else{y=Object.assign({},_.c(h().adGridCardCollection,yRL));var S;y.gridCards!==void 0&&((S=y.gridCards)==null?void 0:S.length)>1?y.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":y.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";y={adGridCardCollectionViewModel:y}}return y}},{adGridCardCollectionViewModel:function(y){return _.M(TO_,{data:y.data,
customCommandResolver:diP})}})),_.M("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.M(_.rC,{data:function(){return h().adButton}},{adButtonViewModel:function(y){return _.M(_.iH,{data:y.data,
customCommandResolver:diP})}})))},"jo"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.D4}});var Ud=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return b};
_.z(Ud,_.g);_.d=Ud.prototype;_.d.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"}}}};
_.d.attached=function(){this.getDataFromPlayerAndRender()};
_.d.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.d.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.d.getDataFromPlayerAndRender=function(){var b=this,h=_.ye(this.hostElement);h&&h.getPlayerPromise().then(function(y){b.getCachedDataAndListen(y)})};
_.d.getCachedDataAndListen=function(b){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(b,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(b,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=b)};
_.d.resolveCachedActions=function(){var b=_.hj("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(b=b&&b())&&!_.lR.isEmpty(b)&&this.sendUpdateEngagementPanelAction(b);(b=(b=_.hj("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&b())&&!_.lR.isEmpty(b)&&this.sendChangeEngagementPanelVisibilityAction(b);(b=(b=_.hj("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&b())&&!_.lR.isEmpty(b)&&this.sendScrollToEngagementPanelCommand(b)};
_.d.sendUpdateEngagementPanelAction=function(b){var h;_.F8(this.hostElement,"yt-update-engagement-panel-action",[(h=_.lR.get(b,"action"))!=null?h:b])};
_.d.sendChangeEngagementPanelVisibilityAction=function(b){_.F8(this.hostElement,"yt-change-engagement-panel-visibility-action",[b])};
_.d.sendScrollToEngagementPanelCommand=function(b){_.F8(this.hostElement,"yt-scroll-to-engagement-panel-command",[b])};
_.d.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.r("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.vX(Error("np"))};
Ud.prototype.dataChanged=Ud.prototype.dataChanged;_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],Ud.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],Ud.prototype,"componentBehavior",void 0);_.V([_.B(_.UA.YtPlayerListenerBehavior),_.f("design:type",_.pf)],Ud.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Ud.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Ud.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Ud.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],Ud.prototype,"player",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Ud.prototype,"dataChanged",null);_.V([_.Yx({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],Ud);
_.k(Ud,"ytd-ads-engagement-panel-content-renderer",function(){if(CX9!==void 0)return CX9;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);
return CX9=b},{mode:1});var Gt9;var p7=function(){var b=_.g.apply(this,arguments)||this;b.player=null;b.JSC$23359_playerEvents=new Map;b.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return b};
_.z(p7,_.g);_.d=p7.prototype;_.d.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]]"}}}}}};
_.d.created=function(){this.player=null;this.JSC$23359_playerEvents=new Map;this.JSC$23359_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$23359_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$23359_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$23359_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.d.attached=function(){var b=this,h=_.ye();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));h&&h.getPlayerPromise().then(function(y){b.setPlayer(y);b.set("isPageLoad",!1)})};
_.d.setPlayer=function(b){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23359_playerEvents);this.set("player",b);b&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(b,this.JSC$23359_playerEvents),b.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.d.onLoopRangeChange=function(b){var h=_.H9().resolve(_.XS(_.bM));if((!h||h.isOnWatch())&&this.hostElement.clientHeight){var y;!b&&((y=this.data)==null?0:y.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.d.onVideoProgress=function(b){var h,y,S=((h=this.player)==null?void 0:(y=h.getPresentingPlayerType)==null?void 0:y.call(h))===2;this.isAdPlaying!==S&&this.set("isAdPlaying",S);var F;if(!S&&(F=this.player)!=null&&F.getLoopRange()){y=this.player.getLoopRange();h=y.startTimeMs;y=y.endTimeMs;S=this.player.getProgressState(1).seekableStart;var a;h<S*1E3&&((a=this.data)==null?0:a.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
b=y<b*1E3;var P;((P=this.player)==null?0:P.getLoopRange())&&b&&this.player.seekTo(h/1E3)}};
_.d.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.d.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.d.onYtDeleteClipEngagementPanelCommand=function(b){_.c(b,HPp).command&&this.ytComponentBehavior.resolveCommand(_.c(b,HPp).command)};
_.tm.Object.defineProperties(p7.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.data)==null?void 0:b.voteCount)||_.mk("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var b;return(b=this.data)==null?void 0:b.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],p7.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],p7.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],p7.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],p7.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.UA.YtPlayerListenerBehavior),_.f("design:type",_.pf)],p7.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],p7.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],p7.prototype,"isAdPlaying",void 0);_.V([_.C({reflectToAttribute:!0,value:!0}),_.f("design:type",Boolean)],p7.prototype,"isPageLoad",void 0);_.V([_.C({reflectToAttribute:!0,value:!0}),_.f("design:type",Boolean)],p7.prototype,"isDarkTheme",void 0);
_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],p7.prototype,"voteCount",null);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],p7.prototype,"channelEndpoint",null);_.V([_.W("channelEndpoint"),_.f("design:type",Object),_.f("design:paramtypes",[])],p7.prototype,"channelHref",null);_.V([_.Yx({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],p7);
_.k(p7,"ytd-clip-attribution-renderer",function(){if(Gt9!==void 0)return Gt9;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return Gt9=b},{mode:1});var ktP;var Jb=function(){var b=_.g.apply(this,arguments)||this;b.player=null;b.JSC$23364_playerEvents=new Map;return b};
_.z(Jb,_.g);_.d=Jb.prototype;_.d.created=function(){this.player=null;this.JSC$23364_playerEvents=new Map;this.JSC$23364_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$23364_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$23364_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.d.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.d.attached=function(){var b=this,h=_.ye();h&&h.getPlayerPromise().then(function(y){b.setPlayer(y);b.set("isPageLoad",!1)})};
_.d.setPlayer=function(b){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23364_playerEvents);this.set("player",b);if(b){this.ytPlayerListenerBehavior.listenToPlayerEvents(b,this.JSC$23364_playerEvents);var h;(b==null?void 0:(h=b.getPresentingPlayerType)==null?void 0:h.call(b))===2&&this.playerAdStartHandler()}};
_.d.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.d.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.d.onVideoProgress=function(){var b,h,y=((b=this.player)==null?void 0:(h=b.getPresentingPlayerType)==null?void 0:h.call(b))===2;this.isAdPlaying!==y&&this.set("isAdPlaying",y)};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Jb.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Jb.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.UA.YtPlayerListenerBehavior),_.f("design:type",_.pf)],Jb.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Jb.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],Jb.prototype,"isAdPlaying",void 0);
_.V([_.C({reflectToAttribute:!0,value:!0}),_.f("design:type",Boolean)],Jb.prototype,"isPageLoad",void 0);_.V([_.Yx({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],Jb);
_.k(Jb,"ytd-clip-section-footer-renderer",function(){if(ktP!==void 0)return ktP;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return ktP=b},{mode:1});var V3D;var EjM;var ixf=function(){return _.g.apply(this,arguments)||this};
_.z(ixf,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],ixf.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],ixf.prototype,"data",void 0);_.V([_.Yx({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],ixf);
_.k(ixf,"ytd-clip-ad-state-renderer",function(){if(EjM!==void 0)return EjM;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return EjM=b},{mode:1});var fnD;var eJ=function(){var b=_.g.apply(this,arguments)||this;b.value="";b.valid=!1;b.userChangedValue=!1;b.disabled=!1;b.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return b};
_.z(eJ,_.g);_.d=eJ.prototype;_.d.detached=function(){this.userChangedValue=!1};
_.d.handleKeyDown=function(b){if(_.XW)var h=13;else _.gUG&&_.Hv?h=13:h=13;b.keyCode===h&&b.preventDefault()};
_.d.handleInput=function(){var b=_.$x(this.hostElement).querySelector("#title");if(b){var h=(b.value||"").replace(/\r|\n/g," ");this.set("value",h);b.value=h;this.valid=b.validate();this.userChangedValue=!0}};
_.d.handleBlur=function(){this.valid=_.$x(this.hostElement).querySelector("#title").validate()};
_.d.onValueChanged=function(){_.Sx(this.hostElement,"title-changed",{title:this.value})};
_.d.onValidChanged=function(){_.Sx(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.d.setInput=function(b,h){var y=_.$x(this.hostElement).querySelector("#title");y&&(y.value=b,this.handleInput(),h&&(y.invalid=!1,this.valid=!0))};
_.d.onClipCreationDisable=function(){this.set("disabled",!0)};
_.d.onClipCreationEnable=function(){this.set("disabled",!1)};
_.d.onClipCreationVisibilityChange=function(b){var h=this;b.visible?requestAnimationFrame(function(){var y;((y=_.$x(h.hostElement).querySelector("#title"))==null?void 0:y.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
eJ.prototype.onValidChanged=eJ.prototype.onValidChanged;eJ.prototype.onValueChanged=eJ.prototype.onValueChanged;eJ.prototype.handleBlur=eJ.prototype.handleBlur;eJ.prototype.handleInput=eJ.prototype.handleInput;eJ.prototype.handleKeyDown=eJ.prototype.handleKeyDown;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],eJ.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],eJ.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],eJ.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],eJ.prototype,"value",void 0);_.V([_.C(),_.f("design:type",Object)],eJ.prototype,"valid",void 0);_.V([_.C(),_.f("design:type",Object)],eJ.prototype,"userChangedValue",void 0);_.V([_.C(),_.f("design:type",Object)],eJ.prototype,"disabled",void 0);_.V([_.u3("keydown"),_.f("design:type",Function),_.f("design:paramtypes",[KeyboardEvent]),_.f("design:returntype")],eJ.prototype,"handleKeyDown",null);
_.V([_.u3("input"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],eJ.prototype,"handleInput",null);_.V([_.u3("blur"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],eJ.prototype,"handleBlur",null);_.V([_.OB("value"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],eJ.prototype,"onValueChanged",null);
_.V([_.OB("valid"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],eJ.prototype,"onValidChanged",null);_.V([_.Yx({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],eJ);
_.k(eJ,"ytd-clip-creation-text-input-renderer",function(){if(fnD!==void 0)return fnD;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return fnD=b},{mode:1});var w5A;var lnc;var qEJ;var xQ_;var QH9;var C7=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};b.pendingStoryboardImages_={};b.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];b.tickLabelInterval=30;b.mediumTickInterval=5;b.largeTickInterval=15;b.aboveRulerHeight=32;b.rulerHeight=50;b.smallTickHeight=4;b.mediumTickHeight=8;b.largeTickHeight=16;b.mediaListeners_=
{};return b};
_.z(C7,_.g);_.d=C7.prototype;_.d.attached=function(){var b=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(h){h=_.L(["screen and (min-resolution: "+h+")","screen and (max-resolution: "+h+")"]);for(var y=h.next();!y.done;y=h.next()){y=y.value;var S=window.matchMedia(y);S&&(b.mediaListeners_[y]=b.updatePixelRatio_.bind(b),S.addEventListener?S.addEventListener("change",b.mediaListeners_[y]):S.addListener?S.addListener(b.mediaListeners_[y]):delete b.mediaListeners_[y])}})};
_.d.detached=function(){this.setPlayer(null);for(var b=_.L(Object.keys(this.mediaListeners_)),h=b.next();!h.done;h=b.next()){var y=h.value;h=this.mediaListeners_[y];(y=window.matchMedia(y))&&(y.removeEventListener?y.removeEventListener("change",h):y.removeListener&&y.removeListener(h))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.d.onVisibilityChangedAction_=function(b){var h=this;b.visible&&!this.player_&&(b=_.ye())&&b.getPlayerPromise().then(function(y){h.setPlayer(y)})};
_.d.setPlayer=function(b){b&&this.set("player_",b)};
_.d.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.d.setUpCanvas_=function(){var b=this.rulerWidth,h=this.devicePixelRatio_,y=this.visible;this.set("canvasReady_",!1);if(y&&h!==0){y=this.aboveRulerHeight+this.rulerHeight;var S=_.$x(this.hostElement).querySelector("#ticks");S.width=b*h;S.height=y*h;S.style.width=b+"px";S.style.height=y+"px";S.getContext("2d").scale(h,h);this.set("canvasReady_",!0)}};
_.d.drawRuler_=function(b,h,y,S,F,a,P,K,n,X,u,O){b&&y&&h&&(b=_.$x(this.hostElement).querySelector("#ticks"),h=b.getContext("2d"),h.clearRect(0,0,b.width,b.height),h.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),h.lineWidth=2,h.beginPath(),h.moveTo(0,this.aboveRulerHeight),h.lineTo(b.width,this.aboveRulerHeight),h.moveTo(0,b.height),h.lineTo(b.width,b.height),h.stroke(),this.drawRulerTicks_(b,a,F,S),this.drawStoryboardImages_(b,y,a,F,S),h.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
h.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(P-a,S,!1),this.rulerHeight),y=this.timeToPixels_(K-a,S,!1),h.fillRect(y,this.aboveRulerHeight,b.width-y,this.rulerHeight),this.drawSpeedLines_(b,a,O))};
_.d.drawRulerTicks_=function(b,h,y,S){var F=b.getContext("2d");F.save();F.lineWidth=1;for(var a=Math.floor(Math.max(0,h-this.tickLabelInterval));a<h+y;a++){F.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var P=(a-h)*S;F.beginPath();F.moveTo(P,b.height);var K=this.smallTickHeight;a%this.largeTickInterval===0?K=this.largeTickHeight:a%this.mediumTickInterval===0&&(K=this.mediumTickHeight);F.lineTo(P,b.height-K);F.stroke();a%this.tickLabelInterval===0&&(F.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),F.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),F.fillText(Ul(a),P+4,12),F.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),F.moveTo(P,0),F.lineTo(P,this.aboveRulerHeight),F.stroke())}F.restore()};
_.d.percentToHex_=function(b){b=Math.round(b*255).toString(16);b.length<2&&(b="0"+b);return b};
_.d.drawSpeedLines_=function(b,h,y){var S=b.getContext("2d");S.save();var F=Math.min(25,Math.abs(y)-15)/25,a=b.width*.3*F,P=b.width*-.3,K=b.width*1.3,n=this.aboveRulerHeight;b=b.height;var X=Math.round(4*F),u=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");u.length<7&&(u="#"+u.substring(1,4).repeat(2));var O=this.percentToHex_(.5+F/2);O=u+O;u+="00";if(F>0)for(F=0;F<X;F++){var N=P+Math.random()*(K-P),t=n+Math.random()*(b-n),R=a+h%a,I=S.createLinearGradient(N,t,N+R,t);
y<0?(I.addColorStop(0,O),I.addColorStop(.4,O),I.addColorStop(.9,u)):(I.addColorStop(.1,u),I.addColorStop(.6,O),I.addColorStop(1,O));S.strokeStyle=I;S.lineWidth=1;S.beginPath();S.moveTo(N,t);S.lineTo(N+R,t);S.stroke()}S.restore()};
_.d.getStoryboardForTime_=function(b,h,y){y===void 0&&(y=h.getNumberOfStoryboardLevels()-1);b=h.getStoryboardFrameIndex(b,y);return h.getStoryboardFrame(b,y)};
_.d.drawStoryboardImages_=function(b,h,y,S,F){if(!this.disabled){b=b.getContext("2d");var a=this.getStoryboardForTime_(0,h);if(a){var P=a.width/a.columns;a=a.height/a.rows;var K=P/a,n=this.rulerHeight*K;n=this.tickLabelInterval*(K<this.tickLabelInterval*F/this.rulerHeight?1/Math.floor(this.tickLabelInterval*F/n):Math.round(n/(this.tickLabelInterval*F)));var X=n*F,u=this.rulerHeight,O=X/this.rulerHeight,N=Math.floor(Math.max(0,y-n));for(N-=N%n;N<y+S;N+=n){var t=this.getStoryboardForTime_(N,h),R=this.getPreloadedStoryboard_(t.url);
if(R){var I=(N-y)*F,U=this.aboveRulerHeight,p=t.column*P,e=t.row*a;if(K<O){var E=u/(X/K);t=P;E*=a;e+=(a-E)/2}else t=X/(u*K)*P,E=a,p+=(P-t)/2;b.drawImage(R,p,e,t,E,I,U,X,u)}else this.fetchStoryboardImage_(t)}}}};
_.d.getPreloadedStoryboard_=function(b){return this.storyboardImages_.find(function(h){if(h.src==b)return!0;var y=h.src.indexOf(b);return y!=-1&&y==h.src.length-b.length})};
_.d.fetchStoryboardImage_=function(b){var h=this,y=this.getPreloadedStoryboard_(b.url),S=this.pendingStoryboardImages_[b.url];y||S!==void 0||(y=new Promise(function(F){var a=new Image(b.width,b.height);a.src=b.url;a.onload=function(){F(a)};
a.onerror=function(){F(null)}}),this.pendingStoryboardImages_[b.url]=y,y.then(function(F){F&&h.push("storyboardImages_",F);
return F}).finally(function(){delete h.pendingStoryboardImages_[b.url]}))};
_.d.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.d.timeToPixels_=function(b,h,y){b*=h;return y===void 0||y?b+"px":b};
_.d.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
C7.prototype.drawRuler_=C7.prototype.drawRuler_;C7.prototype.setUpCanvas_=C7.prototype.setUpCanvas_;_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],C7.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],C7.prototype,"ytRendererBehavior",void 0);_.V([_.C({value:0}),_.f("design:type",Number)],C7.prototype,"start",void 0);_.V([_.C({value:30}),_.f("design:type",Number)],C7.prototype,"end",void 0);
_.V([_.C({value:!1}),_.f("design:type",Boolean)],C7.prototype,"visible",void 0);_.V([_.C(),_.f("design:type",Object)],C7.prototype,"player_",void 0);_.V([_.C(),_.f("design:type",Number)],C7.prototype,"tickSpacing",void 0);_.V([_.C(),_.f("design:type",Number)],C7.prototype,"windowSizeSec",void 0);_.V([_.C({value:0}),_.f("design:type",Number)],C7.prototype,"rulerWidth",void 0);_.V([_.C({value:0}),_.f("design:type",Number)],C7.prototype,"rulerShift",void 0);
_.V([_.C({value:!1}),_.f("design:type",Boolean)],C7.prototype,"canvasReady_",void 0);_.V([_.C({value:function(){return[]}}),
_.f("design:type",Array)],C7.prototype,"storyboardImages_",void 0);_.V([_.C({value:!1,reflectToAttribute:!0}),_.f("design:type",Boolean)],C7.prototype,"disabled",void 0);_.V([_.C({value:0}),_.f("design:type",Number)],C7.prototype,"forceRender_",void 0);_.V([_.C({value:1}),_.f("design:type",Number)],C7.prototype,"devicePixelRatio_",void 0);_.V([_.C({value:0}),_.f("design:type",Number)],C7.prototype,"windowSpeed",void 0);
_.V([_.OB("visible","devicePixelRatio_","rulerWidth"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],C7.prototype,"setUpCanvas_",null);
_.V([_.OB("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.f("design:type",Function),_.f("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.f("design:returntype")],C7.prototype,"drawRuler_",null);_.V([_.sB({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],C7);
_.k(C7,"yt-clip-creation-scrubber-canvas",function(){if(QH9===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);QH9=b}b=QH9;return b},
{mode:2});var mQA;var vj_;var gW=function(){var b=_.g.apply(this,arguments)||this;b.start=0;b.end=30;b.visible=!1;b.draggingLeft_=!1;b.draggingRight_=!1;b.draggingRuler_=!1;b.draggingWindow_=!1;b.seekableStart=0;b.seekableEnd=0;b.rulerWidth_=0;b.rulerShift_=0;b.windowSlideSpeed=0;b.disabled=!1;b.initialized=!1;b.durationAccessibilityLabel="";b.activeLoopRange_=!1;b.rulerDragMouseStart_=0;b.rulerDragRulerStart_=0;b.rulerDragStartTime_=0;b.rulerDragEndTime_=0;b.dragMouseLastX_=0;b.scrollInterval_=null;b.scrubberVe_=null;b.boundHandlers_=
{};b.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return b};
_.z(gW,_.g);_.d=gW.prototype;
_.d.created=function(){var b=this;this.JSC$23377_playerEvents=new Map;this.JSC$23377_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$23377_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$23377_playerEvents.set("onStateChange",this.onStateChange_);var h={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(h).forEach(function(y){b.boundHandlers_[y]=h[y].bind(b)})};
_.d.attached=function(){this.activeLoopRange_=!1;_.$x(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.$x(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.Kh(156731)};
_.d.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.$x(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.$x(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.d.onVisibilityChangedAction_=function(b){var h=this;b.visible&&!this.player_&&(b=_.ye())&&b.getPlayerPromise().then(function(y){h.setPlayer(y)})};
_.d.setPlayer=function(b){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$23377_playerEvents);b&&(this.set("player_",b),this.ytPlayerListenerBehavior.listenToPlayerEvents(b,this.JSC$23377_playerEvents))};
_.d.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.d.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.d.beginHandleDrag_=function(b){this.disabled||(b.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=b.clientX,b.target===_.$x(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():b.target===_.$x(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.d.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.d.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.d.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.d.beginRulerDrag_=function(b){this.disabled||(b.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=b.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.d.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.d.beginWindowScroll_=function(){var b=this;this.scrollInterval_=setInterval(function(){var h=b.windowSlideSpeed;if(h=_.o0x(b.start,b.boundedRulerStartLimit_())?h-.1:_.o0x(b.end,b.boundedRulerEndLimit_())?h+.1:0){var y=b.capRulerOffset_(b.rulerShift_+h);y==b.rulerShift_?h=0:(b.set("rulerShift_",y),_.Sx(b.hostElement,"set-fixed-length-range",{start:b.start+h,duration:b.end-b.start}))}b.set("windowSlideSpeed",h)},33)};
_.d.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.d.endDrag_=function(){this.logClick();var b=void 0;this.draggingRight_?b=this.end-1:this.draggingLeft_&&(b=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,b);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))};
_.d.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.d.updateRulerSize_=function(){this.set("rulerWidth_",_.$x(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.d.handleMouseDrag_=function(b){b.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(b):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(b):this.draggingWindow_&&this.handleWindowDrag_(b))};
_.d.handleRulerDrag_=function(b){b=this.pixelsToTime_(b.clientX-this.rulerDragMouseStart_);b=this.capRulerOffset_(this.rulerDragRulerStart_-b);this.set("rulerShift_",b);var h=this.rulerDragStartTime_-(this.rulerDragRulerStart_-b);_.Sx(this.hostElement,"set-fixed-length-range",{start:h,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-b)-h})};
_.d.handleWindowDrag_=function(b){var h=b.clientX-this.dragMouseLastX_;this.dragMouseLastX_=b.clientX;b=this.pixelsToTime_(h);_.Sx(this.hostElement,"set-fixed-length-range",{start:this.start+b,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.d.capRulerOffset_=function(b){var h=this.seekableStart-this.pixelsToTime_(16),y=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(h,b),y)};
_.d.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.d.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.d.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.d.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.d.handleWindowHandleDrag_=function(b){var h=b.clientX-this.dragMouseLastX_;this.dragMouseLastX_=b.clientX;b=this.pixelsToTime_(h);if(this.draggingLeft_){var y=this.start+b;var S=this.end}else this.draggingRight_&&(y=this.start,S=this.end+b);_.Sx(this.hostElement,"set-range",{start:y,end:S,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.d.onVideoProgress_=function(b){this.disabled||(b=this.timeToPixels_(b-this.rulerShift_,this.tickSpacing_),_.$x(this.hostElement).querySelector("#playhead").style.transform="translateX("+b+")")};
_.d.onClipCreationDisable_=function(){this.endDrag_()};
_.d.timeToPixels_=function(b,h,y){b*=h;return y===void 0||y?b+"px":b};
_.d.pixelsToTime_=function(b){return b/this.tickSpacing_};
_.d.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.d.centerRuler_=function(b,h,y){this.set("rulerShift_",this.capRulerOffset_(b+(h-b)/2-y/2))};
_.d.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.d.updateLoopRange_=function(b,h,y,S,F,a,P){b&&(h&&S&&!y?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(b.pauseVideo(),b.seekTo(F,!1,void 0,void 0,50)):this.draggingRight_?(b.pauseVideo(),b.seekTo(a-.1,!1,void 0,void 0,50)):(P!==void 0?b.seekTo(P,!0,void 0,void 0,50):(h=b.getCurrentTime(),h<F||h>a?b.seekTo(F,!0,void 0,void 0,50):b.seekTo(h,!0,void 0,void 0,50)),b.playVideo()),b.setLoopRange({startTimeMs:F*1E3,endTimeMs:a*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(b.getCurrentTime())):
this.activeLoopRange_&&(b.setLoopRange(null),this.activeLoopRange_=!1))};
_.d.updateHandles_=function(){_.$x(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.$x(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.d.updateRuler_=function(){var b=this.end,h=this.start,y=this.draggableStartLimit_(),S=this.draggableEndLimit_();(h<y-.001||b>S+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.d.computeDurationLabel_=function(b,h){return b?b.replace("$clip_length",parseFloat(h).toFixed(1)):""};
_.d.computeDuration_=function(b,h){return this.isValidTime_(b)&&this.isValidTime_(h)&&b<h?h-b:0};
_.d.isValidTime_=function(b){return isNaN(parseFloat(b))||b<0?!1:this.player_?b>=this.seekableStart&&b<=this.seekableEnd:!0};
_.d.computeWindowSizeSec_=function(b,h,y){return Math.min((b||12E4)/1E3,y-h)};
_.d.computeTickSpacing_=function(b,h){return h?h/b:1};
_.d.onDragStateChanged_=function(){_.Sx(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.d.centerRangeOnTime_=function(b){var h=this.duration;b=$iJ(b-h/2,h,this.seekableStart,this.seekableEnd);_.Sx(this.hostElement,"set-fixed-length-range",{start:b.start,duration:b.end-b.start})};
_.d.nearlyLessThan_=function(b,h,y){return b+(y===void 0?1E-6:y)<h};
_.d.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var b=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(b,this.start)||this.nearlyLessThan_(this.end,b))&&this.centerRangeOnTime_(b)}};
_.d.onStateChange_=function(b){this.visible&&!this.disabled&&b==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.d.computeDragState_=function(b,h,y,S){return b?"left":h?"right":y?"ruler":S?"window":"none"};
_.d.logClick=function(){var b=_.UE(),h=_.Ae();b&&h&&this.scrubberVe_&&(_.r("combine_ve_grafts")?_.lC(_.rU(),this.scrubberVe_,h):_.Vh(b,h,this.scrubberVe_),_.lE(b,this.scrubberVe_))};
gW.prototype.onDragStateChanged_=gW.prototype.onDragStateChanged_;gW.prototype.updateRuler_=gW.prototype.updateRuler_;gW.prototype.updateHandles_=gW.prototype.updateHandles_;gW.prototype.onUpdateLoopRange=gW.prototype.onUpdateLoopRange;gW.prototype.onInitializedChanged_=gW.prototype.onInitializedChanged_;gW.prototype.onVisibleChanged_=gW.prototype.onVisibleChanged_;_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],gW.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.B(_.UA.YtPlayerListenerBehavior),_.f("design:type",Object)],gW.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],gW.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],gW.prototype,"start",void 0);_.V([_.C(),_.f("design:type",Object)],gW.prototype,"end",void 0);_.V([_.C({computed:"computeDuration_(start, end)"}),_.f("design:type",Number)],gW.prototype,"duration",void 0);
_.V([_.C(),_.f("design:type",String)],gW.prototype,"lengthTemplate",void 0);_.V([_.C({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.f("design:type",String)],gW.prototype,"durationLabel",void 0);_.V([_.C(),_.f("design:type",Object)],gW.prototype,"visible",void 0);_.V([_.C(),_.f("design:type",Object)],gW.prototype,"player_",void 0);_.V([_.C(),_.f("design:type",Object)],gW.prototype,"draggingLeft_",void 0);_.V([_.C(),_.f("design:type",Object)],gW.prototype,"draggingRight_",void 0);
_.V([_.C(),_.f("design:type",Object)],gW.prototype,"draggingRuler_",void 0);_.V([_.C({value:!1}),_.f("design:type",Object)],gW.prototype,"draggingWindow_",void 0);_.V([_.C({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.f("design:type",Number)],gW.prototype,"tickSpacing_",void 0);_.V([_.C(),_.f("design:type",Object)],gW.prototype,"seekableStart",void 0);_.V([_.C(),_.f("design:type",Object)],gW.prototype,"seekableEnd",void 0);
_.V([_.C(),_.f("design:type",Number)],gW.prototype,"windowSizeMs",void 0);_.V([_.C({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.f("design:type",Number)],gW.prototype,"windowSizeSec_",void 0);_.V([_.C(),_.f("design:type",Object)],gW.prototype,"rulerWidth_",void 0);_.V([_.C(),_.f("design:type",Object)],gW.prototype,"rulerShift_",void 0);_.V([_.C(),_.f("design:type",Object)],gW.prototype,"windowSlideSpeed",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],gW.prototype,"disabled",void 0);_.V([_.C(),_.f("design:type",Object)],gW.prototype,"initialized",void 0);_.V([_.C(),_.f("design:type",Object)],gW.prototype,"durationAccessibilityLabel",void 0);_.V([_.C({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.f("design:type",String)],gW.prototype,"dragState",void 0);
_.V([_.OB("visible"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],gW.prototype,"onVisibleChanged_",null);_.V([_.OB("initialized"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],gW.prototype,"onInitializedChanged_",null);_.V([_.OB("player_","visible","disabled","initialized","start","end"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],gW.prototype,"onUpdateLoopRange",null);
_.V([_.OB("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],gW.prototype,"updateHandles_",null);_.V([_.OB("start","end"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],gW.prototype,"updateRuler_",null);
_.V([_.OB("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],gW.prototype,"onDragStateChanged_",null);_.V([_.sB({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],gW);
_.k(gW,"yt-clip-creation-scrubber-view",function(){if(vj_===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;mQA===void 0&&(mQA=document.createElement("template"));var S=mQA;y.call(h,S.content.cloneNode(!0),b.content.firstChild);vj_=b}b=vj_;return b},{mode:2});var sd=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};b.startHighlightTimeout=0;b.endHighlightTimeout=0;return b};
_.z(sd,_.g);_.d=sd.prototype;_.d.attached=function(){var b=this;this.startInput.addEventListener("input",function(h){return b.handleStartInput_(h)});
this.endInput.addEventListener("input",function(h){return b.handleEndInput_(h)});
this.startInput.addEventListener("focusout",function(h){return b.handleStartBlur_(h)});
this.endInput.addEventListener("focusout",function(h){return b.handleEndBlur_(h)})};
_.d.setPlayer=function(b){this.set("player_",b)};
_.d.onSetFixedLengthRange_=function(b){var h=b.detail;b=h.start;var y=h.duration,S=h.startLimit;h=h.endLimit;S||(S=this.seekableStart_);h||(h=this.seekableEnd_);b=$iJ(b,y,S,h);this.start=b.start;this.end=b.end};
_.d.onSetRange_=function(b){var h=b.detail;b=h.start;var y=h.end,S=h.startLimit;h=h.endLimit;S||(S=this.seekableStart_);h||(h=this.seekableEnd_);if(b=Lm2(b,y,S,h,this.minLengthSec,this.maxLengthSec))this.start=b.start,this.end=b.end};
_.d.updateInputs_=function(){var b=this.end,h=this.start;this.startInput.focused||(this.startInput.value=Ul(h,!0));this.endInput.focused||(this.endInput.value=Ul(b,!0))};
_.d.handleStartInput_=function(b){b=jh2(b.target.value);if(b===null)this.set("startValid",!1);else{var h=this.end,y=Lm2(b,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);y?(this.set("endWillUpdate",y.end!==h),this.set("startValid",y.start===b)):this.set("startValid",!1)}};
_.d.handleEndInput_=function(b){b=jh2(b.target.value);if(b===null)this.set("endValid",!1);else{var h=this.start,y=PF9(this.start,b,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);y?(this.set("startWillUpdate",y.start!==h),this.set("endValid",y.end===b)):this.set("endValid",!1)}};
_.d.handleStartBlur_=function(b){b=jh2(b.target.value);b===null?this.startInput.value=Ul(this.start,!0):this.forceUpdateInputs_(Lm2(b,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.d.handleEndBlur_=function(b){b=jh2(b.target.value);b===null?this.endInput.value=Ul(this.end,!0):this.forceUpdateInputs_(PF9(this.start,b,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.d.forceUpdateInputs_=function(b){b&&(this.start=b.start,this.end=b.end);this.startInput.value=Ul(this.start,!0);this.endInput.value=Ul(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.d.initializeClipRange_=function(){var b=this.seekableEnd_,h=this.seekableStart_,y=this.visible_,S=this.player_;if(!S||!y||h===null||!b)this.set("initialized",!1);else if(!this.initialized){var F=S.getCurrentTime(),a=this.getDefaultLengthSec_();y=S.getVideoData();var P=S.getPlayerState()==1,K=y.isLive;a=Math.min(a,b-h);F=Math.max(0,F);b=K?PF9(F-a,F,h,b,this.minLengthSec,this.maxLengthSec):P?$iJ(F-a/2,a,h,b):$iJ(F,a,h,b);this.start=b.start;this.end=b.end;this.set("initialized",!0);y.isLive&&S.seekTo(b.start);
this.startInput.value=Ul(this.start,!0);this.endInput.value=Ul(this.end,!0)}};
_.d.onStartChanged_=function(){var b=this;_.Sx(this.hostElement,"start-changed",{start:this.start});var h;isNaN((h=this.oldStart)!=null?h:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){b.set("highlightStart",!1);b.startHighlightTimeout=0;b.oldStart=b.start},3E3))};
_.d.onEndChanged_=function(){var b=this;_.Sx(this.hostElement,"end-changed",{end:this.end});var h;isNaN((h=this.oldEnd)!=null?h:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){b.set("highlightEnd",!1);b.endHighlightTimeout=0;b.oldEnd=b.end},3E3))};
_.d.onVisibilityChangedAction_=function(b){var h=this;this.set("visible_",b.visible);this.visible_&&!this.player_&&(b=_.ye())&&b.getPlayerPromise().then(function(y){h.setPlayer(y)})};
_.d.computeMinLengthSec_=function(b){return b/1E3||5};
_.d.computeMaxLengthSec_=function(b){return b/1E3||60};
_.d.computeDefaultLengthSec_=function(b){return b/1E3};
_.d.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.d.computeSeekableStart_=function(b,h){return b&&h?b.getProgressState(1).seekableStart:0};
_.d.computeSeekableEnd_=function(b,h){return b&&h?b.getProgressState(1).seekableEnd:0};
_.d.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.d.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.d.onDragState_=function(b){this.set("highlightStart",b.detail.startChanging);this.set("highlightEnd",b.detail.endChanging)};
sd.prototype.onDragState_=sd.prototype.onDragState_;sd.prototype.onEndChanged_=sd.prototype.onEndChanged_;sd.prototype.onStartChanged_=sd.prototype.onStartChanged_;sd.prototype.initializeClipRange_=sd.prototype.initializeClipRange_;sd.prototype.updateInputs_=sd.prototype.updateInputs_;sd.prototype.onSetRange_=sd.prototype.onSetRange_;sd.prototype.onSetFixedLengthRange_=sd.prototype.onSetFixedLengthRange_;
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],sd.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],sd.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],sd.prototype,"data",void 0);_.V([_.C({value:0}),_.f("design:type",Number)],sd.prototype,"start",void 0);_.V([_.C({value:!0}),_.f("design:type",Boolean)],sd.prototype,"startValid",void 0);
_.V([_.C({value:!1,reflectToAttribute:!0}),_.f("design:type",Boolean)],sd.prototype,"startWillUpdate",void 0);_.V([_.C({value:30}),_.f("design:type",Number)],sd.prototype,"end",void 0);_.V([_.C({value:!0}),_.f("design:type",Boolean)],sd.prototype,"endValid",void 0);_.V([_.C({value:!1,reflectToAttribute:!0}),_.f("design:type",Boolean)],sd.prototype,"endWillUpdate",void 0);_.V([_.C({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.f("design:type",Number)],sd.prototype,"minLengthSec",void 0);
_.V([_.C({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.f("design:type",Number)],sd.prototype,"maxLengthSec",void 0);_.V([_.C({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.f("design:type",Number)],sd.prototype,"defaultLengthSec",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],sd.prototype,"visible_",void 0);_.V([_.C(),_.f("design:type",Object)],sd.prototype,"player_",void 0);
_.V([_.C({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.f("design:type",Number)],sd.prototype,"seekableStart_",void 0);_.V([_.C({computed:"computeSeekableEnd_(player_, visible_)"}),_.f("design:type",Number)],sd.prototype,"seekableEnd_",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],sd.prototype,"initialized",void 0);_.V([_.C({value:!1,reflectToAttribute:!0}),_.f("design:type",Boolean)],sd.prototype,"disabled",void 0);
_.V([_.C({value:!1,reflectToAttribute:!0}),_.f("design:type",Boolean)],sd.prototype,"highlightStart",void 0);_.V([_.C({value:!1,reflectToAttribute:!0}),_.f("design:type",Boolean)],sd.prototype,"highlightEnd",void 0);_.V([_.to("#start"),_.f("design:type",HTMLInputElement)],sd.prototype,"startInput",void 0);_.V([_.to("#end"),_.f("design:type",HTMLInputElement)],sd.prototype,"endInput",void 0);
_.V([_.u3("set-fixed-length-range"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],sd.prototype,"onSetFixedLengthRange_",null);_.V([_.u3("set-range"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],sd.prototype,"onSetRange_",null);_.V([_.OB("start","end"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],sd.prototype,"updateInputs_",null);
_.V([_.OB("player_","visible_","seekableStart_","seekableEnd_"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],sd.prototype,"initializeClipRange_",null);_.V([_.OB("start"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],sd.prototype,"onStartChanged_",null);_.V([_.OB("end"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],sd.prototype,"onEndChanged_",null);
_.V([_.u3("clips-drag-state"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],sd.prototype,"onDragState_",null);_.V([_.sB({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],sd);
_.k(sd,"yt-clip-creation-scrubber-renderer",function(){if(xQ_===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;qEJ===void 0&&(qEJ=document.createElement("template"));var S=qEJ;y.call(h,S.content.cloneNode(!0),b.content.firstChild);xQ_=b}b=xQ_;return b},{mode:2});var Yv=function(){var b=_.g.apply(this,arguments)||this;b.player_=null;b.JSC$23391_playerEvents=new Map;b.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return b};
_.z(Yv,_.g);_.d=Yv.prototype;_.d.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"}}}};
_.d.created=function(){this.JSC$23391_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$23391_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$23391_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$23391_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.d.detached=function(){this.setPlayer(null)};
_.d.onVisibilityChangedAction_=function(b){var h=this,y;if((y=this.data)==null?0:y.externalVideoId){var S;this.videoId=(S=this.data)==null?void 0:S.externalVideoId}this.getPlayer().then(function(F){if(b.visible)h.returnTime=F.getCurrentTime(),h.isAtLiveHead=F.getProgressState().isAtLiveHead;else{var a=h.returnTime;h.isAtLiveHead&&(a=Number.POSITIVE_INFINITY);F.seekTo(a,void 0,void 0,void 0,51)}})};
_.d.getPlayer=function(){var b=this;if(!this.player_){var h=_.ye();if(h)return h.getPlayerPromise().then(function(y){b.setPlayer(y);return y})}return Promise.resolve(this.player_)};
_.d.setPlayer=function(b){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$23391_playerEvents);if(b){this.player_=b;var h;((h=this.data)==null?0:h.externalVideoId)||this.set("videoId",b.getVideoData().video_id||"");var y;(b==null?void 0:(y=b.getPresentingPlayerType)==null?void 0:y.call(b))===2&&(this.set("isAdPlaying",!0),_.F8(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(b,this.JSC$23391_playerEvents)}};
_.d.ready=function(){_.$x(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.d.onTitleChanged_=function(b){this.set("titleValue",b.detail.title)};
_.d.onStartChanged_=function(b){this.set("start",b.detail.start)};
_.d.onEndChanged_=function(b){this.set("end",b.detail.end)};
_.d.onTitleValidChanged_=function(b){this.set("titleValid",b.detail.valid)};
_.d.onStartValidChanged_=function(b){this.set("startValid",b.detail.valid)};
_.d.onEndValidChanged_=function(b){this.set("endValid",b.detail.valid)};
_.d.onVideoDataChange_=function(){var b;if((b=this.data)==null||!b.externalVideoId){var h;this.set("videoId",((h=this.player_)==null?void 0:h.getVideoData().video_id)||"")}};
_.d.computeFormValid_=function(b,h,y,S){return!!(b&&h&&y&&S)};
_.d.computeCancelButton_=function(b,h,y){return b&&_.c(b,_.OU)?{buttonRenderer:Object.assign({},_.c(b,_.OU),{isDisabled:h||y})}:null};
_.d.computeSubmitButton_=function(b,h,y){return b&&_.c(b,_.OU)?{buttonRenderer:Object.assign({},_.c(b,_.OU),{command:void 0,isDisabled:!this.formValid||h||y})}:null};
_.d.computeSubmitCommand_=function(b){return b||null};
_.d.onSubmit_=function(b){var h=this;b.stopPropagation();b.preventDefault();this.submitCommand_&&(b={},b.comment_text=this.titleValue,b.clip_external_video_id=this.videoId,b.clip_offset_ms=parseInt(this.start*1E3,10),b.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.dh(this.hostElement,[this.submitCommand_,b]).then(function(){h.set("isLoading_",!1)},function(){h.set("isLoading_",!1)}))};
_.d.playerAdStartHandler_=function(){_.F8(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.d.playerAdEndHandler_=function(){_.F8(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.d.onVideoProgress_=function(){var b=this;this.getPlayer().then(function(h){var y,S=(h==null?void 0:(y=h.getPresentingPlayerType)==null?void 0:y.call(h))===2;b.isAdPlaying!==S&&(S?b.playerAdStartHandler_():b.playerAdEndHandler_())})};
Yv.prototype.onEndValidChanged_=Yv.prototype.onEndValidChanged_;Yv.prototype.onStartValidChanged_=Yv.prototype.onStartValidChanged_;Yv.prototype.onTitleValidChanged_=Yv.prototype.onTitleValidChanged_;Yv.prototype.onEndChanged_=Yv.prototype.onEndChanged_;Yv.prototype.onStartChanged_=Yv.prototype.onStartChanged_;Yv.prototype.onTitleChanged_=Yv.prototype.onTitleChanged_;_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],Yv.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.B(_.UA.YtPlayerListenerBehavior),_.f("design:type",Object)],Yv.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Yv.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Yv.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Yv.prototype,"data",void 0);_.V([_.C({value:""}),_.f("design:type",String)],Yv.prototype,"titleValue",void 0);
_.V([_.C({value:!1}),_.f("design:type",Boolean)],Yv.prototype,"titleValid",void 0);_.V([_.C({value:0}),_.f("design:type",Number)],Yv.prototype,"start",void 0);_.V([_.C({value:!0}),_.f("design:type",Boolean)],Yv.prototype,"startValid",void 0);_.V([_.C({value:0}),_.f("design:type",Number)],Yv.prototype,"end",void 0);_.V([_.C({value:!0}),_.f("design:type",Boolean)],Yv.prototype,"endValid",void 0);_.V([_.C({value:""}),_.f("design:type",String)],Yv.prototype,"videoId",void 0);
_.V([_.C({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.f("design:type",Boolean)],Yv.prototype,"formValid",void 0);_.V([_.C({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.f("design:type",Object)],Yv.prototype,"submitButton_",void 0);_.V([_.C({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.f("design:type",Object)],Yv.prototype,"submitCommand_",void 0);
_.V([_.C({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.f("design:type",Object)],Yv.prototype,"cancelButton_",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],Yv.prototype,"isLoading_",void 0);_.V([_.C({value:!1,reflectToAttribute:!0}),_.f("design:type",Boolean)],Yv.prototype,"isAdPlaying",void 0);_.V([_.C({value:0}),_.f("design:type",Number)],Yv.prototype,"returnTime",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],Yv.prototype,"isAtLiveHead",void 0);
_.V([_.u3("title-changed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],Yv.prototype,"onTitleChanged_",null);_.V([_.u3("start-changed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],Yv.prototype,"onStartChanged_",null);_.V([_.u3("end-changed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],Yv.prototype,"onEndChanged_",null);
_.V([_.u3("title-valid-changed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],Yv.prototype,"onTitleValidChanged_",null);_.V([_.u3("start-valid-changed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],Yv.prototype,"onStartValidChanged_",null);_.V([_.u3("end-valid-changed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],Yv.prototype,"onEndValidChanged_",null);
_.V([_.sB({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],Yv);
_.k(Yv,"yt-clip-creation-renderer",function(){if(lnc===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;w5A===void 0&&(w5A=document.createElement("template"));var S=w5A;y.call(h,S.content.cloneNode(!0),b.content.firstChild);lnc=b}b=lnc;return b},{mode:2});var TF=function(){return _.g.apply(this,arguments)||this};
_.z(TF,_.g);TF.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"}}}};
TF.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(b){return b.hasOwnProperty("clipCreationRenderer")})&&_.F8(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
TF.prototype.onPanelContentVisibleChanged=TF.prototype.onPanelContentVisibleChanged;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],TF.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],TF.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.tJ.YtVisibilityBehavior),_.f("design:type",Object)],TF.prototype,"ytVisibilityBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],TF.prototype,"ytdReduxBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],TF.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],TF.prototype,"panelContentVisible",void 0);_.V([_.OB("panelContentVisible"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],TF.prototype,"onPanelContentVisibleChanged",null);_.V([_.Yx({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],TF);
_.k(TF,"ytd-clip-section-renderer",function(){if(V3D!==void 0)return V3D;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return V3D=b},{mode:1});var bIP;var GF=function(){return _.g.apply(this,arguments)||this};
_.z(GF,_.g);_.d=GF.prototype;
_.d.onKeyDown=function(b){if(this.snippetElements.length!==0&&(b=b.keyCode,b===38||b===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);b===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.Y7(this.highlightedIndex,-1,this.snippetElements.length);b=this.snippetElements.length;var h=this.highlightedIndex%b;this.highlightedIndex=h*b<0?h+b:h;b=this.snippetElements[this.highlightedIndex];this.highlightSnippet(b);this.ensureVisible(b)}};
_.d.onKeyUp=function(b){var h=this;miL(b)&&(b.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.xP.cancelJob(this.inputTimerId),this.inputTimerId=_.xP.addLowPriorityJob(function(){h.typedValue&&(h.fetchSnippets(h.typedValue),h.logInputGesture(h.data))},1E3))};
_.d.onClick=function(b){(b=_.WQ8(b.target,null,"snippet-item"))&&this.selectSnippet(b)};
_.d.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.d.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.d.ready=function(){var b=this;this.inputElement.addEventListener("focus",function(){b.snippetsWrapper.style.removeProperty("display")})};
_.d.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.d.getSourceTimelines=function(){if(!this.data)return[];var b=[];if(this.data.searchInVideoSources)for(var h=_.L(this.data.searchInVideoSources),y=h.next();!y.done;y=h.next())y=y.value,y==="SEARCH_IN_VIDEO_SOURCE_ASR"?b.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):y==="SEARCH_IN_VIDEO_SOURCE_OCR"&&b.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return b};
_.d.fetchSnippets=function(b){var h=_.F8(this.hostElement,"yt-get-current-video-id-action")[0],y=this.getSourceTimelines();b={getSearchInVideoCommand:{externalVideoId:h,query:b!=null?b:"",sourceTimelines:y},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.H9().resolve(_.OM).resolveCommand(b,{form:{element:this.hostElement}})};
_.d.filterSnippets=function(b,h){var y=this;if(h){this.filteredSnippets=(0,_.lR.unsafeClone)(b);var S=RegExp(_.Y$q(h),"i");this.filteredSnippets=this.filteredSnippets.filter(function(P){return S.test(y.ytRendererBehavior.getSimpleString(P.snippet))});
b=_.L(this.filteredSnippets);for(var F=b.next();!F.done;F=b.next()){F=F.value;var a=this.ytRendererBehavior.getSimpleString(F.snippet);F.snippet={runs:[{text:a.substring(0,a.toLowerCase().indexOf(h))},{text:a.substring(a.toLowerCase().indexOf(h),a.toLowerCase().indexOf(h)+h.length),bold:!0},{text:a.substring(a.toLowerCase().indexOf(h)+h.length,a.length)}]}}}else this.filteredSnippets=b};
_.d.onUpdateSearchInVideoResults=function(b){if(!(this.snippets.length>0)){var h,y,S;if((S=(h=_.c(b,KVD))==null?void 0:(y=h.results)==null?void 0:y.length)!=null&&S){var F;this.filteredSnippets=this.snippets=((F=_.c(b,KVD))==null?void 0:F.results).map(function(a){var P,K,n;return{startMs:a==null?void 0:(P=a.searchInVideoResultRenderer)==null?void 0:P.startMs,startTimeText:a==null?void 0:(K=a.searchInVideoResultRenderer)==null?void 0:K.startTimeText,snippet:a==null?void 0:(n=a.searchInVideoResultRenderer)==
null?void 0:n.snippet}})}}};
_.d.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};
_.d.highlightSnippet=function(b){b.classList.add("highlighted")};
_.d.removeSnippetHighlight=function(b){b.classList.remove("highlighted")};
_.d.selectSnippet=function(b){this.typedValue=String(b.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(b);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.d.ensureVisible=function(b){var h=this.snippetsWrapper.scrollTop,y=h+this.snippetsWrapper.clientHeight,S=b.offsetTop-this.snippetsWrapper.offsetTop;b=S+b.clientHeight;S<h?this.snippetsWrapper.scrollTop-=h-S:b>y&&(this.snippetsWrapper.scrollTop+=b-y)};
_.d.seekPlayer=function(b){var h,y;return _.Z(function(S){if(S.nextAddress==1){if(!b)return S.jumpTo(0);h=Number(b.dataset.startOffset);return S.yield(_.Sa().getPlayerPromise(),3)}y=S.yieldResult;y.seekTo(h/1E3,!0);y.wakeUpControls();_.g3(S)})};
_.d.logInputGesture=function(b){var h=_.UE();h&&(b==null?0:b.trackingParams)&&_.qt(h,_.I_(b.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.d.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ut("typed-value-changed",this.typedValue))};
_.d.updateTypedValueFromBinding=function(b){this.typedValue=b.currentTarget.value};
GF.prototype.typedValueChangedForBinding=GF.prototype.typedValueChangedForBinding;GF.prototype.dataChanged=GF.prototype.dataChanged;GF.prototype.panelContentVisibleChanged=GF.prototype.panelContentVisibleChanged;GF.prototype.onClick=GF.prototype.onClick;GF.prototype.onKeyUp=GF.prototype.onKeyUp;GF.prototype.onKeyDown=GF.prototype.onKeyDown;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],GF.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],GF.prototype,"ytActionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],GF.prototype,"data",void 0);_.V([_.C({value:[]}),_.f("design:type",Array)],GF.prototype,"snippets",void 0);_.V([_.C({value:[]}),_.f("design:type",Array)],GF.prototype,"filteredSnippets",void 0);_.V([_.C({value:[]}),_.f("design:type",Array)],GF.prototype,"snippetElements",void 0);
_.V([_.to("#siv-input"),_.f("design:type",HTMLElement)],GF.prototype,"inputElement",void 0);_.V([_.to("#siv-snippets-wrapper"),_.f("design:type",HTMLElement)],GF.prototype,"snippetsWrapper",void 0);_.V([_.C(),_.f("design:type",String)],GF.prototype,"typedValue",void 0);_.V([_.C({value:-1}),_.f("design:type",Number)],GF.prototype,"highlightedIndex",void 0);_.V([_.u3("keydown"),_.f("design:type",Function),_.f("design:paramtypes",[_.Cv]),_.f("design:returntype")],GF.prototype,"onKeyDown",null);
_.V([_.u3("keyup"),_.f("design:type",Function),_.f("design:paramtypes",[_.Cv]),_.f("design:returntype")],GF.prototype,"onKeyUp",null);_.V([_.u3("click"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],GF.prototype,"onClick",null);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],GF.prototype,"panelContentVisible",void 0);
_.V([_.OB("panelContentVisible"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],GF.prototype,"panelContentVisibleChanged",null);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],GF.prototype,"dataChanged",null);_.V([_.OB("typedValue"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],GF.prototype,"typedValueChangedForBinding",null);
_.V([_.Yx({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],GF);
_.k(GF,"ytd-search-in-video-renderer",function(){if(bIP!==void 0)return bIP;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return bIP=b},{mode:1});var hbD;var kv=function(){return _.g.apply(this,arguments)||this};
_.z(kv,_.g);kv.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
kv.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]]"}}}}}};
kv.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var b,h,y,S,F=(h=_.c((b=this.data)==null?void 0:b.onClickCommand,_.RH8))==null?void 0:(y=h.item)==null?void 0:(S=y.notificationTextRenderer)==null?void 0:S.successResponseText;F&&_.vtq(this.hostElement,F)}};
_.tm.Object.defineProperties(kv.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.data)==null||!b.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var b,h,y,S;return this.isProductPlaceholder&&((b=this.data)==null?void 0:(h=b.hiddenProductOptions)==null?void 0:h.showDropCountdown)&&!!((y=this.data)==null?0:(S=y.hiddenProductOptions)==null?0:S.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var b;return!this.isProductPlaceholder&&!((b=this.data)==null?0:b.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.data)==null||!b.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var b,h;return!((b=this.data)==null?0:b.priceReplacementText)&&!((h=this.data)==null||!h.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],kv.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],kv.prototype,"componentBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],kv.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],kv.prototype,"data",void 0);
_.V([_.C({reflectToAttribute:!0}),_.W("isProductPlaceholder"),_.f("design:type",Object),_.f("design:paramtypes",[])],kv.prototype,"useCenterLayoutContainer",null);_.V([_.C({computed:"computeButtonOverride(data)"}),_.f("design:type",Object)],kv.prototype,"buttonOverride",void 0);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],kv.prototype,"isProductPlaceholder",null);
_.V([_.W("isProductPlaceholder"),_.f("design:type",Object),_.f("design:paramtypes",[])],kv.prototype,"showDropCountdown",null);_.V([_.W("isProductPlaceholder","data"),_.f("design:type",Object),_.f("design:paramtypes",[])],kv.prototype,"showBrandName",null);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],kv.prototype,"showPriceReplacementText",null);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],kv.prototype,"showPrice",null);
_.V([_.W("isProductPlaceholder"),_.f("design:type",Object),_.f("design:paramtypes",[])],kv.prototype,"showMetadata",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],kv);
_.k(kv,"ytd-product-list-item-renderer",function(){if(hbD!==void 0)return hbD;var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return hbD=b},{mode:1});var yLL;var Vl=function(){return _.g.apply(this,arguments)||this};
_.z(Vl,_.g);Vl.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
Vl.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
Vl.prototype.panelContentVisibleChanged=function(){var b=this,h;return _.Z(function(y){if(y.nextAddress==1)return b.playerApi?y.jumpTo(2):y.yield(_.Sa().getPlayerPromise(),3);y.nextAddress!=2&&(b.playerApi=y.yieldResult);(h=b.playerApi)==null||h.productsInVideoVisibilityUpdated(!!b.panelContentVisible);_.g3(y)})};
Vl.prototype.panelContentVisibleChanged=Vl.prototype.panelContentVisibleChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Vl.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Vl.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],Vl.prototype,"panelContentVisible",void 0);_.V([_.C(),_.f("design:type",Object)],Vl.prototype,"data",void 0);
_.V([_.OB("panelContentVisible"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype",Promise)],Vl.prototype,"panelContentVisibleChanged",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],Vl);
_.k(Vl,"ytd-product-list-renderer",function(){if(yLL!==void 0)return yLL;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return yLL=b},{mode:1});var Sa2;var Ed=function(){var b=_.g.apply(this,arguments)||this;b.hideTimestamps=!!_.Wd("hide-transcript-timestamps");b.currentCueIndex=-1;b.flatCues=[];b.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};b.TEST_ONLY={getFlatCues:function(){return b.flatCues}};
return b};
_.z(Ed,_.g);_.d=Ed.prototype;_.d.hideTimestampsChanged=function(){_.Bd("hide-transcript-timestamps",this.hideTimestamps)};
_.d.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.d.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.d.dataChanged=function(){var b;if((b=this.data)!=null&&b.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;b=_.L(this.data.cueGroups);for(var h=b.next();!h.done;h=b.next()){h=_.L(_.c(h.value,ZPD).cues);for(var y=h.next();!y.done;y=h.next())this.flatCues.push(Number(_.c(y.value,oJP).startOffsetMs))}}};
_.d.onYtPlayerTimeChanged=function(b){if(!(b<0)){for(var h=this.currentCueIndex,y=h;;){var S=y>=0?this.flatCues[y]/1E3:-1;if(b+.5<S)--y;else if(S=y+1<this.flatCues.length?this.flatCues[y+1]/1E3:Infinity,b+.5>S)y+=1;else break}y!==h&&(h>=0&&((b=this.getCueElement(h))&&b.classList.remove("active"),(h=this.getCueGroupElement(h))&&h.classList.remove("active")),(h=this.getCueElement(y))&&h.classList.add("active"),(h=this.getCueGroupElement(y))&&h.classList.add("active"),this.currentCueIndex=y,this.isHovered||
this.scrollElementToTop(y))}};
_.d.scrollElementToTop=function(b){b=this.getCueElement(b>=3?b-3:0);this.hostElement.scrollTop=Math.min(b.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.d.getCueElement=function(b){return _.$x(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[b]+'"]')};
_.d.getCueGroupElement=function(b){return(b=this.getCueElement(b))&&b.parentElement?b.parentElement.parentElement:null};
_.d.onTap=function(b){var h=_.mi(b);b.target.classList.contains("cue")&&this.seekCueElement(h)};
_.d.onKeyPress=function(b){b.keyCode==13&&(b=_.WQ8(b.target,null,"cue"))&&this.seekCueElement(b)};
_.d.seekCueElement=function(b){b=Number(b.getAttribute("start-offset"));_.F8(this.hostElement,"yt-transcript-player-seek",[b/1E3])};
_.d.onMouseEnter=function(){this.isHovered=!0};
_.d.onMouseLeave=function(){this.isHovered=!1};
Ed.prototype.onMouseLeave=Ed.prototype.onMouseLeave;Ed.prototype.onMouseEnter=Ed.prototype.onMouseEnter;Ed.prototype.onKeyPress=Ed.prototype.onKeyPress;Ed.prototype.onTap=Ed.prototype.onTap;Ed.prototype.dataChanged=Ed.prototype.dataChanged;Ed.prototype.hideTimestampsChanged=Ed.prototype.hideTimestampsChanged;_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],Ed.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Ed.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Ed.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Ed.prototype,"hideTimestamps",void 0);_.V([_.C(),_.f("design:type",Boolean)],Ed.prototype,"isHovered",void 0);_.V([_.OB("hideTimestamps"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Ed.prototype,"hideTimestampsChanged",null);
_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Ed.prototype,"dataChanged",null);_.V([_.u3("tap"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],Ed.prototype,"onTap",null);_.V([_.u3("keypress"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],Ed.prototype,"onKeyPress",null);
_.V([_.u3("mouseenter"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Ed.prototype,"onMouseEnter",null);_.V([_.u3("mouseleave"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Ed.prototype,"onMouseLeave",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],Ed);
_.k(Ed,"ytd-transcript-body-renderer",function(){if(Sa2!==void 0)return Sa2;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return Sa2=b},{mode:1});var Fy9;var id=function(){var b=_.g.apply(this,arguments)||this;b.darkerPanels=_.r("web_watch_darker_panels");return b};
_.z(id,_.g);id.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],id.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],id.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],id.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],id.prototype,"darkerPanels",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],id);
_.k(id,"ytd-transcript-footer-renderer",function(){if(Fy9!==void 0)return Fy9;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return Fy9=b},{mode:1});var aWf;var dtL;var f7=function(){var b=_.g.apply(this,arguments)||this;b.systemIcons=_.r("kevlar_system_icons");b.showClearButton=!1;return b};
_.z(f7,_.g);_.d=f7.prototype;_.d.handleInput=function(b){var h=this;b.target.value.length?_.wy(this,"ytdTranscriptSearchBoxSearch",function(){h.emitSearchEvent(b)},500):(_.Bj5(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=b.target.value.length>0};
_.d.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.d.handleClick=function(){var b,h=(b=this.data)==null?void 0:b.trackingParams;h&&_.QG(_.rU(),h)};
_.d.handleClear=function(){_.Bj5(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var b,h,y=(h=_.c((b=this.data)==null?void 0:b.clearButton,_.OU))==null?void 0:h.trackingParams;y&&_.QG(_.rU(),y);this.clear()};
_.d.emitSearchEvent=function(b){_.Sx(this.hostElement,"yt-transcript-search-box-search",{query:b.target.value});var h,y;(b=(y=_.c((h=this.data)==null?void 0:h.searchButton,_.OU))==null?void 0:y.trackingParams)&&_.QG(_.rU(),b)};
_.d.emitClearEvent=function(){_.Sx(this.hostElement,"yt-transcript-search-box-clear")};
_.tm.Object.defineProperties(f7.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.$x(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],f7.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],f7.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],f7.prototype,"systemIcons",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],f7);
_.k(f7,"ytd-transcript-search-box-renderer",function(){if(dtL!==void 0)return dtL;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return dtL=b},{mode:1});var jwD;var $t2;var wW=function(){return _.g.apply(this,arguments)||this};
_.z(wW,_.g);wW.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var b,h;this.sectionHeaderAriaLabel=(b=this.data)==null?void 0:(h=b.accessibility)==null?void 0:h.accessibilityData.label}};
wW.prototype.fireSelectedEvent=function(b){_.Sx(this.hostElement,"ytd-transcript-section-header",{startMs:b})};
wW.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
wW.prototype.handleKeyPress=function(b){this.data&&b.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.tm.Object.defineProperties(wW.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var b,h;return(h=(b=this.data)==null?void 0:b.enableTappableTranscriptHeader)!=null?h:!1}}});
wW.prototype.dataChanged=wW.prototype.dataChanged;_.V([_.C(),_.f("design:type",Object)],wW.prototype,"data",void 0);_.V([_.C(),_.f("design:type",String)],wW.prototype,"sectionHeaderAriaLabel",void 0);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],wW.prototype,"enableTappableTranscriptHeader",null);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],wW.prototype,"dataChanged",null);
_.V([_.Yx({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],wW);
_.k(wW,"ytd-transcript-section-header-renderer",function(){if($t2!==void 0)return $t2;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return $t2=b},{mode:1});var Lyx;var PEc;var ld=function(){var b=_.g.apply(this,arguments)||this;b.isEditMode=!1;b.touchCaptionsEnabled=!1;b.deleteCaptionCorrectionPopupCommand=null;b.voteCaptionCorrectionPopupCommand=null;b.roundedContainer=!0;b.mouseOver=!1;b.textChanged=!1;b.messages={suggest_correction:_.Mt("suggest_correction",void 0,"Edit caption"),suggested_caption:_.Mt("suggested_caption",void 0,"Suggested caption"),submit_correction:_.Mt("submit_correction",void 0,"Submit for review"),cancel_correction:_.Mt("cancel_correction",
void 0,"Cancel"),replay_segment:_.Mt("replay_segment",void 0,"Re-play segment"),delete_correction:_.Mt("delete_correction",void 0,"Delete correction")};b.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return b};
_.z(ld,_.g);_.d=ld.prototype;_.d.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)};
_.d.handleDelete=function(b){if(this.deleteCaptionCorrectionPopupCommand){var h=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);h&&this.ytdOpenPopupBehavior.openPopup(h);b.stopPropagation()}};
_.d.handleSubmit=function(b){if(this.data&&this.data.submitCaptionCorrectionCommand&&(b.stopPropagation(),this.textChanged)){var h;b=(h=_.c(this.data.submitCaptionCorrectionCommand,_.WEP))==null?void 0:h.params;h=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:b,correctionText:String(this.ironTextAreaElement.value),originalText:_.vi(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(h);this.isEditMode=!1}};
_.d.handleUpdateSegmentText=function(b){(b=_.c(b,WVf))&&b.targetId&&this.data&&b.targetId===this.data.targetId&&(b.userCorrection&&(this.editedText=b.userCorrection),b.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.vi(this.data.snippet)),b.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=b.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=b.voteCaptionCorrectionPopupCommand?
b.voteCaptionCorrectionPopupCommand:null,b.accessibility&&(this.segmentAriaLabel=b.accessibility.accessibilityData.label))};
_.d.handleCancel=function(b){this.isEditMode=!1;b.stopPropagation();this.logClientVe(159409)};
_.d.handleEditSegmentCommand=function(b){(b=_.c(b,B_R))&&b.targetId&&this.data&&b.targetId===this.data.targetId&&this.handleEdit()};
_.d.handleEditButtonClick=function(b){this.data&&(this.handleEdit(),b.stopPropagation())};
_.d.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var b;(b=this.ironTextAreaElement.textarea)==null||b.focus();this.logClientVe(159407)}};
_.d.handleMouseEnter=function(){this.mouseOver=!0};
_.d.handleMouseLeave=function(){this.mouseOver=!1};
_.d.handleReplay=function(b){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),b.stopPropagation(),this.logClientVe(159408))};
_.d.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()))};
_.d.handleKeypress=function(b){this.data&&(this.isEditMode?b.stopPropagation():this.isEnterPress(b)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(b)&&this.logClientVe(138758))};
_.d.handleTextboxClick=function(b){b.stopPropagation()};
_.d.handleTextboxKeydown=function(b){this.isControlEnterPress(b)?this.handleSubmit(b):b.key==="Escape"&&this.handleCancel(b)};
_.d.handleTextboxKeyup=function(){this.textChanged=_.vi(this.latestText)!==String(this.ironTextAreaElement.value)};
_.d.fireSelectedEvent=function(b){_.Sx(this.hostElement,"yt-transcript-segment-selected",{startMs:b})};
_.d.fireReplayEvent=function(b,h){_.Sx(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(b-100,0),endMs:h})};
_.d.fireEditEvent=function(b,h){_.Sx(this.hostElement,"yt-transcript-segment-edit",{startMs:b,endMs:h})};
_.d.isEnterPress=function(b){return b.key==="Enter"||b.code==="Enter"||b.code==="NumpadEnter"||b.keyCode===13?!0:!1};
_.d.isControlEnterPress=function(b){var h=b.key==="Enter"||b.code==="Enter"||b.code==="NumpadEnter"||b.keyCode===13;return(b.ctrlKey||b.metaKey)&&h};
_.d.isCopyPress=function(b){var h=b.ctrlKey;return b.key==="c"&&h};
_.d.logClick=function(){var b,h=(b=this.data)==null?void 0:b.trackingParams;h&&_.QG(_.rU(),h)};
_.d.logClientVe=function(b){_.xa(_.rU(),_.Kh(b))};
_.tm.Object.defineProperties(ld.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}}});
ld.prototype.handleMouseLeave=ld.prototype.handleMouseLeave;ld.prototype.handleMouseEnter=ld.prototype.handleMouseEnter;ld.prototype.dataChanged=ld.prototype.dataChanged;_.V([_.B(_.mx.YtActionHandlerBehavior),_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],ld.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Y9),_.f("design:type",Object)],ld.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],ld.prototype,"ytRendererBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],ld.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],ld.prototype,"isEditMode",void 0);_.V([_.C(),_.f("design:type",Object)],ld.prototype,"touchCaptionsEnabled",void 0);_.V([_.C(),_.f("design:type",Object)],ld.prototype,"editedText",void 0);_.V([_.C(),_.f("design:type",Object)],ld.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.V([_.C(),_.f("design:type",Object)],ld.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.V([_.C(),_.f("design:type",String)],ld.prototype,"segmentAriaLabel",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],ld.prototype,"roundedContainer",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],ld.prototype,"mouseOver",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],ld.prototype,"textChanged",void 0);_.V([_.C(),_.f("design:type",Object)],ld.prototype,"messages",void 0);
_.V([_.to("#suggestion"),_.f("design:type",Object)],ld.prototype,"ironTextAreaElement",void 0);_.V([_.W("data","editedText"),_.f("design:type",Object),_.f("design:paramtypes",[])],ld.prototype,"latestText",null);_.V([_.W("touchCaptionsEnabled","isEditMode"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],ld.prototype,"enableEditButton",null);
_.V([_.W("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],ld.prototype,"enableUndoButton",null);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],ld.prototype,"dataChanged",null);_.V([_.u3("mouseenter"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],ld.prototype,"handleMouseEnter",null);
_.V([_.u3("mouseleave"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],ld.prototype,"handleMouseLeave",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],ld);
_.k(ld,"ytd-transcript-segment-renderer",function(){if(PEc!==void 0)return PEc;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return PEc=b},{mode:1});var q4=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};b.isError=!1;b.darkerPanels=_.r("web_watch_darker_panels");b.useParentMaxHeight=_.r("web_watch_transscript_use_parent_max_height");b.segmentOffsets=[];b.segmentIndex=-1;return b};
_.z(q4,_.g);_.d=q4.prototype;_.d.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"}}}}};
_.d.segmentsChanged=function(){this.updateOffsets()};
_.d.onYtPlayerTimeChanged=function(b){for(var h=this.segmentIndex,y=h;;){if(y>=0){var S=this.segmentOffsets[y].start;var F=this.segmentOffsets[y].isAutoScrollable}else S=-1,F=!0;var a=b+.5;if(!F){S=y+1<this.segmentOffsets.length?this.segmentOffsets[y+1].start:Infinity;if(a>=S){y+=1;continue}y=-1;break}if(a<S)S=y-1>=0&&this.segmentOffsets[y-1].isAutoScrollable,F=y===0||S?1:2,y-=F;else if(F=y+1<this.segmentOffsets.length&&this.segmentOffsets[y+1].isAutoScrollable?1:2,S=y+F<this.segmentOffsets.length?
this.segmentOffsets[y+F].start:Infinity,a>S)y+=F;else{if(y<0)break;y<this.segmentOffsets.length&&a>this.segmentOffsets[y].end&&(y=-1);break}}if(h!==y){if(h>=0){var P;(P=this.getSegmentElement(h))==null||P.classList.remove("active")}this.segmentIndex=y;if(!(y<0)){var K;(K=this.getSegmentElement(y))==null||K.classList.add("active");this.isHovered||this.scrollElementToTop(y)}}};
_.d.handleSegmentEdit=function(b){b.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=b.target,_.F8(this.hostElement,"yt-transcript-player-edit",[b.detail.startMs/1E3,b.detail.endMs/1E3]))};
_.d.handleSegmentSelected=function(b){_.F8(this.hostElement,"yt-transcript-player-seek",[b.detail.startMs/1E3])};
_.d.handleSegmentReplay=function(b){_.F8(this.hostElement,"yt-transcript-player-replay",[b.detail.startMs/1E3,b.detail.endMs/1E3])};
_.d.handleSectionHeaderSelected=function(b){_.F8(this.hostElement,"yt-transcript-player-seek",[b.detail.startMs/1E3])};
_.d.onMouseEnter=function(){this.isHovered=!0};
_.d.onMouseLeave=function(){this.isHovered=!1};
_.d.onRetryButtonClick=function(){_.Sx(this.hostElement,"transcript-retry-button-click")};
_.d.getSegmentElement=function(b){return _.$x(this.hostElement).querySelector(":nth-child("+(b+1)+")")};
_.d.scrollElementToTop=function(b){b=this.getSegmentElement(b>=2?b-2:0);this.hostElement.scrollTop=Math.min(b.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.d.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(b){var h,y=(h=b.transcriptSegmentRenderer)!=null?h:b.transcriptSectionHeaderRenderer;return{start:Number(y.startMs)/1E3,end:Number(y.endMs)/1E3,isAutoScrollable:b.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.d.clearHighlightedSegments=function(){var b=_.$x(this.hostElement);b=_.L(b.querySelectorAll("ytd-transcript-segment-renderer"));for(var h=b.next();!h.done;h=b.next())h.value.classList.remove("active")};
_.tm.Object.defineProperties(q4.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var b,h;return((b=this.data)==null?void 0:b.searchResultSegments)||((h=this.data)==null?void 0:h.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
q4.prototype.onMouseLeave=q4.prototype.onMouseLeave;q4.prototype.onMouseEnter=q4.prototype.onMouseEnter;q4.prototype.handleSectionHeaderSelected=q4.prototype.handleSectionHeaderSelected;q4.prototype.handleSegmentReplay=q4.prototype.handleSegmentReplay;q4.prototype.handleSegmentSelected=q4.prototype.handleSegmentSelected;q4.prototype.handleSegmentEdit=q4.prototype.handleSegmentEdit;q4.prototype.segmentsChanged=q4.prototype.segmentsChanged;
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],q4.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],q4.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],q4.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],q4.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],q4.prototype,"isError",void 0);
_.V([_.C(),_.f("design:type",Object)],q4.prototype,"noResultLabel",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],q4.prototype,"darkerPanels",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],q4.prototype,"useParentMaxHeight",void 0);_.V([_.W("data"),_.f("design:type",Array),_.f("design:paramtypes",[])],q4.prototype,"segments",null);
_.V([_.W("segments","noResultLabel"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],q4.prototype,"displayNoResults",null);_.V([_.OB("segments"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],q4.prototype,"segmentsChanged",null);_.V([_.u3("yt-transcript-segment-edit"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],q4.prototype,"handleSegmentEdit",null);
_.V([_.u3("yt-transcript-segment-selected"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],q4.prototype,"handleSegmentSelected",null);_.V([_.u3("yt-transcript-segment-replay"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],q4.prototype,"handleSegmentReplay",null);
_.V([_.u3("ytd-transcript-section-header"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],q4.prototype,"handleSectionHeaderSelected",null);_.V([_.u3("mouseenter"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],q4.prototype,"onMouseEnter",null);_.V([_.u3("mouseleave"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],q4.prototype,"onMouseLeave",null);
_.V([_.Yx({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],q4);
_.k(q4,"ytd-transcript-segment-list-renderer",function(){if(Lyx!==void 0)return Lyx;var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return Lyx=b},{mode:1});var xv=function(){var b=_.g.apply(this,arguments)||this;b.hideTimestamps=!!_.Wd("hide-transcript-timestamps");b.isLoadingTranscripts=!1;b.darkerPanels=_.r("web_watch_darker_panels");b.isError=!1;b.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return b};
_.z(xv,_.g);_.d=xv.prototype;_.d.headerChanged=function(){var b,h;this.baseGetTranscriptsCommand=(h=_.c((b=this.data)==null?void 0:b.header,AR2))==null?void 0:h.onTextChangeCommand};
_.d.bodyChanged=function(){var b=this.getBodyRenderer();b&&(b.initialSegments&&(this.initialTranscriptsRenderer=b),b.noResultLabel&&(this.noResultLabel=b.noResultLabel),b.retryLabel&&(this.retryLabel=b.retryLabel))};
_.d.detached=function(){this.clearSearchBoxText()};
_.d.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.d.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"}}}};
_.d.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.d.fireSearch=function(b){var h=this;if(b){var y=b.detail.query;if(this.baseGetTranscriptsCommand){var S;b=(S=_.c(this.baseGetTranscriptsCommand,_.B55))==null?void 0:S.params;var F;S=_.c((F=this.data)==null?void 0:F.footer,MHM);var a;if((F=(a=_.c(S==null?void 0:S.languageMenu,DS9))==null?void 0:a.subMenuItems)&&F.length>0&&(a=F.find(function(n){return n.selected}))){var P,K;
b=(P=a.continuation)==null?void 0:(K=P.reloadContinuationData)==null?void 0:K.continuation}P=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:b,searchQuery:y}});this.ytComponentBehavior.resolveCommand(P,{commandController:{onServerError:function(){h.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});wX2(this.ytContinuationHandlerBehavior,function(){return y===h.getCurrentSearchBoxText()})}}};
_.d.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.d.onRetryButtonClick=function(){this.isError=!1;var b={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:b}))};
_.d.hideTimestampsChanged=function(){_.Bd("hide-transcript-timestamps",this.hideTimestamps)};
_.d.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.d.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.d.handleSignalActionCopyTranscript=function(){var b=this,h=this.getBodyRenderer();h&&(h=((h==null?void 0:h.searchResultSegments)||(h==null?void 0:h.initialSegments)||[]).map(function(y){return _.c(y,po9)}).filter(function(y){return!!y}).map(function(y){return{snippet:y.snippet||{runs:[{text:""}]},
startTimeText:y.startTimeText||{simpleText:""}}}).map(function(y){var S=(y.snippet.runs||[]).reduce(function(F,a){return F+a.text},"");
return b.hideTimestamps?S:y.startTimeText.simpleText+" "+S}).join("\n"),this.copyToClipboard(h))};
_.d.copyToClipboard=function(b){navigator.clipboard&&navigator.clipboard.writeText(b)};
_.d.getCurrentSearchBoxText=function(){var b;return(b=this.searchBox)==null?void 0:b.value};
_.d.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.d.getBodyRenderer=function(){var b;return _.c((b=this.data)==null?void 0:b.body,US9)};
_.d.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.tm.Object.defineProperties(xv.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.$x(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
xv.prototype.hideTimestampsChanged=xv.prototype.hideTimestampsChanged;xv.prototype.searchCleared=xv.prototype.searchCleared;xv.prototype.fireSearch=xv.prototype.fireSearch;xv.prototype.onReloadContinuationFinish=xv.prototype.onReloadContinuationFinish;xv.prototype.bodyChanged=xv.prototype.bodyChanged;xv.prototype.headerChanged=xv.prototype.headerChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],xv.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],xv.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],xv.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.p1),_.f("design:type",Object)],xv.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],xv.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],xv.prototype,"hideTimestamps",void 0);
_.V([_.C(),_.f("design:type",Object)],xv.prototype,"isLoadingTranscripts",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],xv.prototype,"darkerPanels",void 0);_.V([_.C(),_.f("design:type",Object)],xv.prototype,"isError",void 0);_.V([_.OB("data.header"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],xv.prototype,"headerChanged",null);
_.V([_.zj("data.body"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],xv.prototype,"bodyChanged",null);_.V([_.u3("yt-reload-continuation-finish"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],xv.prototype,"onReloadContinuationFinish",null);_.V([_.u3("yt-transcript-search-box-search"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],xv.prototype,"fireSearch",null);
_.V([_.u3("yt-transcript-search-box-clear"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],xv.prototype,"searchCleared",null);_.V([_.OB("hideTimestamps"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],xv.prototype,"hideTimestampsChanged",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],xv);
_.k(xv,"ytd-transcript-search-panel-renderer",function(){if(jwD!==void 0)return jwD;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return jwD=b},{mode:1});var Ql=function(){var b=_.g.apply(this,arguments)||this;b.player=null;b.playerPollJobId=0;return b};
_.z(Ql,_.g);_.d=Ql.prototype;_.d.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.d.onLoadReloadContinuation=function(b){_.r("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:b.target.data.continuation}}):(b={clickTrackingParams:b.target.data.clickTrackingParams,getTranscriptEndpoint:{params:b.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.H9().resolve(_.OM).resolveCommand(b,{form:{element:this.hostElement}}))};
_.d.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"}}}};
_.d.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.d.attached=function(){this.updatePlayerListening()};
_.d.detached=function(){this.updatePlayerListening()};
_.d.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.d.startPlayerListening=function(){var b=this,h;return _.Z(function(y){if(y.nextAddress==1)return(h=_.ye())?y.yield(h.getPlayerPromise(),2):y.return();b.player=y.yieldResult;b.playerPollJobId=_.xP.addLowPriorityJob(function(){b.getPlayerVideoProgress()},1E3);
b.player.addEventListener("onCueRangeEnter",function(S){b.onCueRangeEnter(S)});
b.player.addEventListener("onCueRangeExit",function(S){b.onCueRangeExit(S)});
b.player.addEventListener("onStateChange",function(S){b.onPlayerStateChange(S)});
b.player.addEventListener("SEEK_TO",function(S){b.onPlayerSeek(S)});
_.g3(y)})};
_.d.getPlayerVideoProgress=function(){var b=this;_.xP.cancelJob(this.playerPollJobId);if(this.player){var h=this.player.getCurrentTime();_.F8(this.hostElement,"yt-player-time-changed",[h])}this.playerPollJobId=_.xP.addLowPriorityJob(function(){b.getPlayerVideoProgress()},1E3)};
_.d.stopPlayerListening=function(){this.player=null;_.xP.cancelJob(this.playerPollJobId)};
_.d.onPlayerStateChange=function(b){b===2&&this.removePendingCue()};
_.d.onPlayerSeek=function(b){var h;if(h=this.pendingReplayCueId)h=this.pendingReplayCueId,h=b===(_.r("web_transcript_cue_id_killswitch")?Number(h):Number(h.split("_")[1]));h||this.removePendingCue()};
_.d.onCueRangeEnter=function(b){ZKM(b)&&(this.pendingReplayCueId=b)};
_.d.onCueRangeExit=function(b){ZKM(b)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.d.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.d.onYtTranscriptPlayerSeek=function(b){this.player&&this.player.seekTo(b,!0)};
_.d.onYtTranscriptPlayerReplay=function(b,h){this.player&&(this.player.addCueRange(KmL(b),b,h),this.player.seekTo(b,!0),this.player.playVideo())};
_.d.onYtTranscriptPlayerEdit=function(b,h){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(KmL(b),b,h),this.player.seekTo(b,!0))};
Ql.prototype.onLoadReloadContinuation=Ql.prototype.onLoadReloadContinuation;Ql.prototype.panelContentVisibleChanged=Ql.prototype.panelContentVisibleChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Ql.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],Ql.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Ql.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],Ql.prototype,"ytActionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Ql.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],Ql.prototype,"panelContentVisible",void 0);_.V([_.OB("panelContentVisible"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Ql.prototype,"panelContentVisibleChanged",null);
_.V([_.u3("yt-load-reload-continuation"),_.f("design:type",Function),_.f("design:paramtypes",[Object]),_.f("design:returntype")],Ql.prototype,"onLoadReloadContinuation",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],Ql);
_.k(Ql,"ytd-transcript-renderer",function(){if(aWf!==void 0)return aWf;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return aWf=b},{mode:1});var Kyf;var ZIM;var mj=function(){return _.g.apply(this,arguments)||this};
_.z(mj,_.g);mj.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.Sx(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.jx(this.hostElement,[this.data.clickCommand],this.hostElement))};
mj.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.Qo)()+_.gM)+"px)"};
mj.prototype.updateShouldHideFromBinding=function(b){this.shouldHide=b.detail.value};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],mj.prototype,"rendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],mj.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Boolean)],mj.prototype,"shouldHide",void 0);_.V([_.Yx({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],mj);
_.k(mj,"ytd-ad-engagement-panel-banner-renderer",function(){if(ZIM!==void 0)return ZIM;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return ZIM=b},{mode:_.Lt("kevlar_poly_si_batch_j070")?1:2});var opP;var vt=function(){var b=_.g.apply(this,arguments)||this;b.buttonUpdate=_.r("web_modern_buttons");b.adsSemanticText=_.r("enable_ads_web_ep_buenos_aires_and_padding_fix");return b};
_.z(vt,_.g);vt.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.V([_.C(),_.f("design:type",Object)],vt.prototype,"data",void 0);_.V([_.C({computed:"computeHideDefaultAdBadge(data)"}),_.f("design:type",Boolean)],vt.prototype,"hideDefaultAdBadge",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],vt.prototype,"buttonUpdate",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],vt.prototype,"adsSemanticText",void 0);_.V([_.Yx({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],vt);
_.k(vt,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(opP!==void 0)return opP;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return opP=b},{mode:1});var MxA;var bA=function(){var b=_.g.apply(this,arguments)||this;b.darkerPanels=_.r("web_watch_darker_panels");b.enableSqueezebackPanels=_.r("web_shorts_enable_squeezeback_panels");b.enableAnchoredPanel=_.r("desktop_shorts_v2_anchored_panel");b.headerClickListener=function(h){b.onHeaderClick(h)};
b.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return b};
_.z(bA,_.g);_.d=bA.prototype;_.d.computeAdsInfoButton=function(){if(_.r("web_modern_buttons")){var b,h;return(h=_.c((b=this.data)==null?void 0:b.subtitleComplex,nJx))==null?void 0:h.adInfoRenderer}};
_.d.updateHeaderClickListener=function(){var b,h,y;((b=this.data)==null?0:b.navigationEndpoint)||((h=this.data)==null?0:h.onClickCommand)||_.c((y=this.data)==null?void 0:y.visibilityButton,_.Nu)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.d.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}}}}}};
_.d.collapsedChanged=function(){var b;(b=this.data)!=null&&b.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.r("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.d.focus=function(b){var h=this;this.titleElement&&_.xP.addJob(function(){_.oh(h.titleElement,b)},0,500)};
_.d.computeTitleAriaLabel=function(b){var h=[];if(b.title){var y,S;h.push(this.ytRendererBehavior.getSimpleString(b.title)||((y=b.title.accessibility)==null?void 0:(S=y.accessibilityData)==null?void 0:S.label))}b.contextualInfo&&h.push(this.ytRendererBehavior.getSimpleString(b.contextualInfo));return h.join(" ")};
_.d.onHeaderClick=function(b){this.shouldTriggerHeaderClick(b)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.Sx(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.jx(this.hostElement,[this.data.onClickCommand],this.hostElement)):(b=this.getVisibilityToggleButton())&&b.click())};
_.d.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var b=_.c(this.data.visibilityButton,_.OU)||_.c(this.data.visibilityButton,_.Nu);b&&this.ytRendererBehavior.logExplicitClick(b)}};
_.d.getVisibilityToggleButton=function(){var b=_.$x(this.hostElement).querySelector("#visibility-button").firstElementChild;return(b==null?void 0:b.is)==="ytd-toggle-button-renderer"?b:null};
_.d.shouldTriggerHeaderClick=function(b){return!_.mf(_.Qk(b),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.d.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(b){b=_.c(b,_.dSc);this.targetId&&(b==null?void 0:b.targetId)===this.targetId&&(b=b.navigationButton)&&this.set("data.navigationButton",b)};
_.tm.Object.defineProperties(bA.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.r("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var b;return!!(((b=this.entity)==null?0:b.isActionButtonHidden)||this.hideActionButton)}}});
bA.prototype.collapsedChanged=bA.prototype.collapsedChanged;bA.prototype.updateHeaderClickListener=bA.prototype.updateHeaderClickListener;_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],bA.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],bA.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],bA.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.NT),_.f("design:type",Object)],bA.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],bA.prototype,"data",void 0);_.V([_.C(),_.f("design:type",String)],bA.prototype,"targetId",void 0);_.V([_.C(),_.f("design:type",Boolean)],bA.prototype,"collapsed",void 0);_.V([_.C(),_.f("design:type",Boolean)],bA.prototype,"hideActionButton",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],bA.prototype,"shortsPanel",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],bA.prototype,"liveChatEngagementPanel",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],bA.prototype,"learningChatEngagementPanel",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],bA.prototype,"darkerPanels",void 0);_.V([_.to("#title"),_.f("design:type",HTMLElement)],bA.prototype,"titleElement",void 0);_.V([_.to("#header"),_.f("design:type",HTMLElement)],bA.prototype,"headerElement",void 0);
_.V([_.C({computed:"computeAdsInfoButton(data)"}),_.f("design:type",Object)],bA.prototype,"adsInfoButton",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],bA.prototype,"enableSqueezebackPanels",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],bA.prototype,"enableAnchoredPanel",void 0);_.V([_.C({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(b,h){return _.Mm(b.entities,"engagementPanelTitleHeaderEntity",h)}}),
_.f("design:type",Object)],bA.prototype,"entity",void 0);_.V([_.C({reflectToAttribute:!0}),_.W("targetId"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],bA.prototype,"adsSemanticText",null);_.V([_.OB("data","data.navigationEndpoint","data.onClickCommand"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],bA.prototype,"updateHeaderClickListener",null);
_.V([_.zj("collapsed"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],bA.prototype,"collapsedChanged",null);_.V([_.W("entity","hideActionButton"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],bA.prototype,"isActionButtonHidden",null);_.V([_.Yx({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],bA);
_.k(bA,"ytd-engagement-panel-title-header-renderer",function(){if(MxA!==void 0)return MxA;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return MxA=b},{mode:1});var np$;var hh=function(){return _.g.apply(this,arguments)||this};
_.z(hh,_.g);hh.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],hh.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],hh.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],hh.prototype,"data",void 0);_.V([_.Yx({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],hh);
_.k(hh,"ytd-macro-markers-info-item-renderer",function(){if(np$!==void 0)return np$;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return np$=b},{mode:1});var XT$;var y3=function(b,h,y,S,F,a){_.ED.call(this);var P=this;this.JSC$23491_containerElement=b;this.hostElement=h;this.supportedSyncItems=y;this.syncEntityKey=S;this.options=F;this.renderLazyListItems=a;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;HIA(this);u8p(this);this.JSC$23491_scrollAnimation=new _.CC(function(K){b.scrollTop=K});
_.pq(this,this.JSC$23491_scrollAnimation);this.addOnDisposeCallback(function(){OID(P,!1);P.activeItem&&P.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.z(y3,_.ED);var HIA=function(b){var h=_.Fq(_.H9().resolve(_.nd),function(y){return y.entities.markersEngagementPanelSyncEntity||{}},function(y,S){var F;
if(y[b.syncEntityKey]!==S[b.syncEntityKey]&&((F=y[b.syncEntityKey])==null?void 0:F.activeItemIndex)!==void 0)if(S=y[b.syncEntityKey].activeItemIndex,y=b.getItemByIndex(S)){if(NhL(b,y),b.contentVisible)if(b.browsingMode){var a;((a=b.options)==null?void 0:a.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(a=txD(b),y.offsetTop<b.JSC$23491_containerElement.clientHeight+b.JSC$23491_containerElement.scrollTop&&a&&!b.activeItemBelowSyncPosition&&OID(b,!1));rL_(b)}else b.scrollToItem(y)}else _.vX(new _.Gn("Could not find "+
b.supportedSyncItems+" sync child to set active.",S,b.JSC$23491_containerElement.querySelectorAll(b.supportedSyncItems).length))});
b.unsubscribeFromTimedMarkersListSyncEntity=h;b.addOnDisposeCallback(h);cL9(b)},cL9=function(b){var h=_.H9().resolve(_.nd);
h=_.SJF(h.getState(),b.syncEntityKey);(h==null?void 0:h.activeItemIndex)!==void 0&&(h=b.getItemByIndex(h.activeItemIndex))&&NhL(b,h)},u8p=function(b){var h=new _.MG(b.onScroll,50,b);
_.pq(b,h);var y=function(){h.fire()};
b.JSC$23491_containerElement.addEventListener("scroll",y);b.addOnDisposeCallback(function(){b.JSC$23491_containerElement.removeEventListener("scroll",y)})};
y3.prototype.getItemByIndex=function(b){var h;(h=this.renderLazyListItems)==null||h.call(this,b);h=this.JSC$23491_containerElement.querySelectorAll(this.supportedSyncItems);if(h.length>b)return h[b]};
var NhL=function(b,h){b.activeItem&&b.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));h.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));b.activeItem=h};
y3.prototype.scrollToItem=function(b){b=this.getScrollPositionForItem(b);this.JSC$23491_containerElement.scrollTop!==b&&this.JSC$23491_scrollAnimation.start(this.JSC$23491_containerElement.scrollTop,b,300)};
y3.prototype.getScrollPositionForItem=function(b){if(this.JSC$23491_containerElement.querySelectorAll(this.supportedSyncItems)[0]===b)return 0;var h,y=((h=this.options)==null?0:h.percentOffset)?this.JSC$23491_containerElement.clientHeight*this.options.percentOffset:0;b=_.vB(b).y+this.JSC$23491_containerElement.scrollTop-(_.vB(this.JSC$23491_containerElement).y+y);return Math.max(0,Math.min(b,this.JSC$23491_containerElement.scrollHeight-this.JSC$23491_containerElement.offsetHeight))};
y3.prototype.onScroll=function(){this.activeItemBelowSyncPosition=txD(this);if(this.activeItem&&!this.JSC$23491_scrollAnimation.isAnimating()&&Math.abs(this.JSC$23491_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var b;switch((b=this.options)==null?void 0:b.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":RbJ(this,!zbf(this));rL_(this);break;default:RbJ(this,!0)}}};
var RbJ=function(b,h){var y,S;_.Z(function(F){if(F.nextAddress==1){if(b.browsingMode)return F.return();b.browsingMode=!0;h&&b.hostElement.classList.add("browsing-mode");b.playerExitBrowsingModeListener=function(){OID(b,!1)};
return F.yield(_.Z5(),2)}y=F.yieldResult;(S=y)==null||S.addEventListener("SEEK_TO",b.playerExitBrowsingModeListener);_.g3(F)})},OID=function(b,h){h=h===void 0?!0:h;
b.browsingMode&&(b.browsingMode=!1,b.hostElement.classList.remove("browsing-mode"),h&&b.scrollToItem(b.activeItem),DtR(b))},DtR=function(b){var h,y;
_.Z(function(S){if(S.nextAddress==1)return b.playerExitBrowsingModeListener?S.yield(_.Z5(),3):S.jumpTo(0);h=S.yieldResult;(y=h)==null||y.removeEventListener("SEEK_TO",b.playerExitBrowsingModeListener);b.playerExitBrowsingModeListener=void 0;_.g3(S)})},rL_=function(b){var h;
((h=b.options)==null?void 0:h.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(zbf(b)?b.hostElement.classList.remove("browsing-mode"):b.activeItem&&b.hostElement.classList.add("browsing-mode"))},txD=function(b){if(!b.activeItem)return!1;
var h,y=((h=b.options)==null?0:h.percentOffset)?b.JSC$23491_containerElement.clientHeight*b.options.percentOffset:0;return b.activeItem.offsetTop>=b.JSC$23491_containerElement.scrollTop+y},zbf=function(b){if(!b.activeItem)return!1;
var h=b.activeItem.offsetTop+14<=b.JSC$23491_containerElement.scrollTop+b.JSC$23491_containerElement.clientHeight;return b.activeItem.offsetTop+b.activeItem.clientHeight-14>=b.JSC$23491_containerElement.scrollTop&&h};
y3.prototype.panelContentVisibleChanged=function(b){(this.contentVisible=b)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var IWL=function(b,h){b.syncEntityKey=h;var y;(y=b.unsubscribeFromTimedMarkersListSyncEntity)==null||y.call(b);HIA(b)},Bh9=function(b,h){b.options=h};var SX=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return b};
_.z(SX,_.g);_.d=SX.prototype;_.d.detached=function(){var b;(b=this.scrollController)==null||b.dispose();this.scrollController=void 0};
_.d.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"}}}};
_.d.dataChanged=function(){var b=this;_.Ob(this,function(){if(b.scrollController){var h;(h=b.scrollController)==null||OID(h,!1);var y,S,F;(S=b.scrollController)==null||IWL(S,(F=(y=b.data)==null?void 0:y.syncModelEntityKey)!=null?F:"default-macro-markers-list-renderer-entity-key");var a,P,K;(K=b.scrollController)==null||Bh9(K,{percentOffset:(a=b.data)==null?void 0:a.selectedItemAlignmentPercentOffset,floatingPillType:(P=b.data)==null?void 0:P.floatingPillType})}else{var n,X,u,O;b.scrollController=
new y3(b.contents,b.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(O=(n=b.data)==null?void 0:n.syncModelEntityKey)!=null?O:"default-macro-markers-list-renderer-entity-key",{percentOffset:(X=b.data)==null?void 0:X.selectedItemAlignmentPercentOffset,floatingPillType:(u=b.data)==null?void 0:u.floatingPillType},function(N){b.renderLazyListItems(N)})}b.scrollController.panelContentVisibleChanged(!!b.panelContentVisible)})};
_.d.computeButtonShape=function(){var b=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){b.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.d.renderLazyListItems=function(b){for(var h=this.contents.children,y=0,S=0;S<h.length;S++){var F=void 0;(F=h[S].ytLazyListBehavior)==null||F.fillRemainingListItems();var a=void 0,P=void 0;F=_.c((a=this.data)==null?void 0:(P=a.contents)==null?void 0:P[S],_.o9W);P=a=void 0;if((a=F)==null?0:(P=a.contents)==null?0:P.length)y+=F.contents.length;if(y>=b)break}};
_.d.handleSetActivePanelItemAction=function(b){if((b=_.c(b,$SR))&&this.panelTargetId===b.panelTargetId){b=b.itemIndex;var h,y,S=(y=(h=this.data)==null?void 0:h.syncModelEntityKey)!=null?y:"default-macro-markers-list-renderer-entity-key",F;((F=this.syncEntity)==null?void 0:F.activeItemIndex)!==b&&this.ytdReduxBehavior.dispatch(_.R7("markersEngagementPanelSyncEntity",S,{key:S,activeItemIndex:b}))}};
_.d.onSyncClick=function(){var b;(b=this.scrollController)==null||OID(b)};
_.d.panelContentVisibleChanged=function(){var b;(b=this.scrollController)==null||b.panelContentVisibleChanged(!!this.panelContentVisible)};
SX.prototype.panelContentVisibleChanged=SX.prototype.panelContentVisibleChanged;SX.prototype.dataChanged=SX.prototype.dataChanged;_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],SX.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],SX.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],SX.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.NT),_.f("design:type",Object)],SX.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],SX.prototype,"data",void 0);_.V([_.C({value:!1,reflectToAttribute:!0}),_.f("design:type",Boolean)],SX.prototype,"useCustomColors",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",String)],SX.prototype,"panelTargetId",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],SX.prototype,"panelContentVisible",void 0);
_.V([_.to("#contents"),_.f("design:type",HTMLElement)],SX.prototype,"contents",void 0);_.V([_.C({selectorArgs:["data.syncModelEntityKey"],selector:_.SJF}),_.f("design:type",Object)],SX.prototype,"syncEntity",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],SX.prototype,"dataChanged",null);
_.V([_.OB("panelContentVisible"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],SX.prototype,"panelContentVisibleChanged",null);_.V([_.Yx({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],SX);
_.k(SX,"ytd-macro-markers-list-renderer",function(){if(XT$!==void 0)return XT$;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return XT$=b},{mode:1});var WyD;var Fm=function(){return _.g.apply(this,arguments)||this};
_.z(Fm,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Fm.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],Fm.prototype,"ytComponentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Fm.prototype,"data",void 0);_.V([_.Yx({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],Fm);
_.k(Fm,"ytd-error-corrections-section-item-renderer",function(){if(WyD!==void 0)return WyD;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return WyD=b},{mode:1});var ALR;var ad=function(){return _.g.apply(this,arguments)||this};
_.z(ad,_.g);ad.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],ad.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],ad.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],ad.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],ad.prototype,"data",void 0);_.V([_.Yx({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],ad);
_.k(ad,"ytd-error-corrections-section-renderer",function(){if(ALR!==void 0)return ALR;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return ALR=b},{mode:1});var Ut2;var dZ=function(){return _.g.apply(this,arguments)||this};
_.z(dZ,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],dZ.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],dZ.prototype,"componentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],dZ.prototype,"data",void 0);_.V([_.Yx({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],dZ);
_.k(dZ,"ytd-topic-link-renderer",function(){if(Ut2!==void 0)return Ut2;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return Ut2=b},{mode:1});var pT9;var jX=function(){var b=_.g.apply(this,arguments)||this;b.modernLockupV2=_.r("modernize_structured_description_playlist_lockups_v2");return b};
_.z(jX,_.g);jX.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"}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],jX.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],jX.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],jX.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],jX.prototype,"modernLockupV2",void 0);_.V([_.Yx({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],jX);
_.k(jX,"ytd-video-description-course-section-renderer",function(){if(pT9!==void 0)return pT9;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return pT9=b},{mode:1});var JL_;var $m=function(){return _.g.apply(this,arguments)||this};
_.z($m,_.g);$m.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"}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],$m.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],$m.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],$m.prototype,"data",void 0);_.V([_.Yx({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],$m);
_.k($m,"ytd-video-description-files-section-renderer",function(){if(JL_!==void 0)return JL_;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return JL_=b},{mode:1});var ebf;var LO=function(){return _.g.apply(this,arguments)||this};
_.z(LO,_.g);LO.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"}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],LO.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],LO.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],LO.prototype,"data",void 0);_.V([_.Yx({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],LO);
_.k(LO,"ytd-video-description-gaming-section-renderer",function(){if(ebf!==void 0)return ebf;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return ebf=b},{mode:1});var CE2;var Pc=function(){var b=_.g.apply(this,arguments)||this;b.isExpanded=!1;return b};
_.z(Pc,_.g);Pc.prototype.computeHasDefaultMetadataEndpoint=function(b){var h;b=b==null?void 0:(h=b.defaultMetadata)==null?void 0:h.runs;return!(!b||b.length!==1||!b[0].navigationEndpoint)};
Pc.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.tm.Object.defineProperties(Pc.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.data)==null||!b.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Pc.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Pc.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Pc.prototype,"isExpanded",void 0);_.V([_.C({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.f("design:type",Boolean)],Pc.prototype,"hasDefaultMetadataEndpoint",void 0);
_.V([_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Pc.prototype,"isExpandable",null);_.V([_.W("data","isExpandable","isExpanded"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Pc.prototype,"showExpandedMetadata",null);_.V([_.Yx({is:"ytd-info-row-renderer",disableElementRegistration:!0})],Pc);
_.k(Pc,"ytd-info-row-renderer",function(){if(CE2!==void 0)return CE2;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return CE2=b},{mode:1});var gp_;var KO=function(){var b=_.g.apply(this,arguments)||this;b.currentIndex=0;b.supportComponentResize=!0;b.JSC$23520_lastScrollContainerWidth=NaN;return b};
_.z(KO,_.g);_.d=KO.prototype;
_.d.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"}}}};
_.d.getItemsPath=function(){return"videoLockups"};
_.d.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.d.onIronResize=function(){this.updateVideoLockupStyles()};
_.d.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.d.updateVideoLockupStyles=function(){var b;this.JSC$23520_scrollContainer!==void 0&&(b=this.videoLockups)!=null&&b.length&&(b=this.JSC$23520_scrollContainer.clientWidth,b!==this.JSC$23520_lastScrollContainerWidth&&(this.JSC$23520_lastScrollContainerWidth=b,_.nZ(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(b*.8,415)+"px"}),_.Sx(this.hostElement,"iron-resize")))};
_.tm.Object.defineProperties(KO.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var b=[],h;if((h=this.data)==null||!h.carouselLockups)return b;h=_.L(this.data.carouselLockups);for(var y=h.next();!y.done;y=h.next()){y=y.value;var S=void 0;((S=_.c(y,sLp))==null?0:S.videoLockup)&&b.push(_.c(y,sLp).videoLockup)}return b}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.videoLockups)==null||!b.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var b=[],h;if((h=this.data)==null||!h.carouselLockups)return b;var y;return(y=_.c(this.data.carouselLockups[this.scrollCount],sLp))==null?void 0:y.infoRows}}});
KO.prototype.dataChanged=KO.prototype.dataChanged;KO.prototype.onIronResize=KO.prototype.onIronResize;KO.prototype.hiddenChanged=KO.prototype.hiddenChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],KO.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],KO.prototype,"componentBehavior",void 0);_.V([_.B(_.kd.YtdHorizontalListBehavior),_.f("design:type",Object)],KO.prototype,"ytdHorizontalListBehavior",void 0);
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],KO.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],KO.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],KO.prototype,"inlineStructuredDescription",void 0);_.V([_.C({value:2}),_.f("design:type",Number)],KO.prototype,"initialCount",void 0);_.V([_.C(),_.f("design:type",Object)],KO.prototype,"currentIndex",void 0);
_.V([_.C(),_.f("design:type",Number)],KO.prototype,"scrollCount",void 0);_.V([_.C(),_.f("design:type",Object)],KO.prototype,"supportComponentResize",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],KO.prototype,"contentHidden",void 0);_.V([_.to("#scroll-container"),_.f("design:type",HTMLDivElement)],KO.prototype,"JSC$23520_scrollContainer",void 0);
_.V([_.OB("contentHidden"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],KO.prototype,"hiddenChanged",null);_.V([_.W("data"),_.f("design:type",Array),_.f("design:paramtypes",[])],KO.prototype,"videoLockups",null);_.V([_.W("videoLockups"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],KO.prototype,"hasVideoLockups",null);
_.V([_.u3("iron-resize"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],KO.prototype,"onIronResize",null);_.V([_.W("data","scrollCount"),_.f("design:type",Object),_.f("design:paramtypes",[])],KO.prototype,"infoRows",null);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],KO.prototype,"dataChanged",null);_.V([_.Yx({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],KO);
_.k(KO,"ytd-video-description-music-section-renderer",function(){if(gp_!==void 0)return gp_;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return gp_=b},{mode:_.Lt("kevlar_poly_si_batch_j081")?1:2});var sw9;var Z2=function(){return _.g.apply(this,arguments)||this};
_.z(Z2,_.g);Z2.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Z2.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Z2.prototype,"ytRendererBehavior",void 0);_.V([_.C({}),_.f("design:type",Object)],Z2.prototype,"data",void 0);_.V([_.Yx({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],Z2);
_.k(Z2,"ytd-video-description-transcript-section-renderer",function(){if(sw9!==void 0)return sw9;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return sw9=b},{mode:1});var YaP;_.yd(_.T(function(b){var h=_.OF(_.dNn,function(){return b.data().firstProviderLinkStatusEntityKey}),y=_.OF(_.dNn,function(){return b.data().secondProviderLinkStatusEntityKey}),S=function(){var F,a;
return((F=h())==null?void 0:F.linked)||((a=y())==null?void 0:a.linked)};
return _.M("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.M(_.zv,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return b.data().sectionTitle}}),_.M(_.zv,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return S()?b.data().connectedMessage:b.data().notConnectedMessage}}),_.M(_.H,{cond:S,
then:function(){return _.M(_.rC,{data:function(){return b.data().connectedButton}},{buttonViewModel:function(F){return _.M(_.EG,{data:F.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.M(_.H,{cond:function(){return!S()},
then:function(){return _.M(_.rC,{data:function(){return b.data().notConnectedButton}},{buttonViewModel:function(F){return _.M(_.EG,{data:F.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"ko"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.D4}});_.yd(_.T(function(b){var h=b.data;return _.M("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.M("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.M(_.zv,{text:function(){return h().sectionTitle}})),_.M("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.M(_.zv,{text:function(){return h().bodyHeader}})),_.M("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.M(_.zv,{text:function(){return h().bodyText}})),_.M(_.H,{cond:function(){return h().attributionText},
then:function(){return _.M("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.M(_.zv,{text:function(){return h().attributionText}}))}}))},"lo"),"how-this-was-made-section-view-model",{props:{data:_.D4}});_.yd(_.T(function(b){return _.M("yt-video-description-youchat-section-view-model",{class:_.P2("ytVideoDescriptionYouchatSectionViewModelHost")},_.M("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.M(_.zv,{text:function(){return b.data().sectionTitle}})),_.M("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.M(_.zv,{text:function(){return b.data().subHeaderText}})),_.M("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.M(_.EG,{data:function(){return _.c(b.data().primaryButton,
_.cA)}})))},"mo"),"yt-video-description-youchat-section-view-model",{props:{data:_.D4}});var od=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return b};
_.z(od,_.g);_.d=od.prototype;
_.d.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}}}}}};
_.d.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.d.dataChanged=function(){var b,h;this.hasDescriptionOnly=!(((b=this.data)==null?void 0:(h=b.items)==null?void 0:h.length)!==1||!_.c(this.data.items[0],er))};
_.d.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.d.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.d.autoFocusDescription=function(){var b;((b=_.H9().resolve(_.XS(_.sG)))==null?0:b.isKeyBoardInUse())&&this.description&&_.Mi(this.description)};
_.d.resize=function(){if(_.r("kevlar_disable_sd_resize"))this.JSC$23528_cardList&&_.Sx(this.JSC$23528_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.Sx(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.Sx(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.d.scrollToSection=function(b){if(b=this.getSectionElement(b))_.F8(this.hostElement,"yt-scroll-to-watch-element",[b]),b.focus()};
_.d.getSectionElement=function(b){switch(b){case "infocards-item-section":var h;return(h=this.infocardsSection)!=null?h:null;case "transcript-item-section":var y;return(y=this.transcriptSection)!=null?y:null;case "how-this-was-made-section-item-section":var S;return(S=this.howThisWasMadeSection)!=null?S:null;case "files-item-section":var F;return(F=this.filesSection)!=null?F:null;default:return null}};
_.d.handleSetActiveItemAction=function(b){var h=_.c(b,$SR),y=h&&(h==null?void 0:h.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$23528_cardList;if(h&&y){b=this.currentActiveChapter;var S=this.currentActiveProblem;h=y==null?void 0:y.getItemByIndex(h.itemIndex);var F=y=!0;h&&(h.active=!0,h.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(y=b!==h,F=!1,this.currentActiveChapter=h):(h==null?void 0:h.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(y=!1,F=S!==h,this.currentActiveProblem=h));b&&y&&(b.active=!1);S&&F&&(S.active=!1)}};
_.tm.Object.defineProperties(od.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.Ff("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
od.prototype.onYtExpanderMoreTapped=od.prototype.onYtExpanderMoreTapped;od.prototype.onHiddenChanged=od.prototype.onHiddenChanged;od.prototype.dataChanged=od.prototype.dataChanged;od.prototype.panelContentVisibleChanged=od.prototype.panelContentVisibleChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],od.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],od.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],od.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.ab),_.f("design:type",Object)],od.prototype,"ironResizableBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],od.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Boolean)],od.prototype,"panelContentVisible",void 0);_.V([_.C(),_.f("design:type",Boolean)],od.prototype,"hasDescriptionOnly",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],od.prototype,"inlineStructuredDescription",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],od.prototype,"hidden",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],od.prototype,"shortsPanel",void 0);_.V([_.C(),_.f("design:type",Object)],od.prototype,"videoSummary",void 0);_.V([_.C(),_.f("design:type",Object)],od.prototype,"merchShelf",void 0);
_.V([_.W("videoSummary"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],od.prototype,"showVideoSummary",null);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],od.prototype,"engagementPanel",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],od.prototype,"watchWhileSdp",void 0);_.V([_.to("ytd-expandable-video-description-body-renderer"),_.f("design:type",Object)],od.prototype,"description",void 0);
_.V([_.to("ytd-horizontal-card-list-renderer"),_.f("design:type",Object)],od.prototype,"JSC$23528_cardList",void 0);_.V([_.to("ytd-horizontal-card-list-renderer[center-items]"),_.f("design:type",Object)],od.prototype,"problemWalkthroughCardList",void 0);_.V([_.to("ytd-shelf-renderer"),_.f("design:type",Object)],od.prototype,"shelfSection",void 0);_.V([_.to("ytd-video-description-music-section-renderer"),_.f("design:type",Object)],od.prototype,"musicMetadataSection",void 0);
_.V([_.to("ytd-video-description-infocards-section-renderer"),_.f("design:type",Object)],od.prototype,"infocardsSection",void 0);_.V([_.to("ytd-video-description-transcript-section-renderer"),_.f("design:type",Object)],od.prototype,"transcriptSection",void 0);_.V([_.to("how-this-was-made-section-view-model"),_.f("design:type",Object)],od.prototype,"howThisWasMadeSection",void 0);_.V([_.to("ytd-video-description-files-section-renderer"),_.f("design:type",Object)],od.prototype,"filesSection",void 0);
_.V([_.OB("panelContentVisible"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],od.prototype,"panelContentVisibleChanged",null);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],od.prototype,"dataChanged",null);_.V([_.OB("hidden"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],od.prototype,"onHiddenChanged",null);
_.V([_.u3("yt-expander-more-tapped"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],od.prototype,"onYtExpanderMoreTapped",null);_.V([_.Yx({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],od);
_.k(od,"ytd-structured-description-content-renderer",function(){if(YaP!==void 0)return YaP;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return YaP=b},{mode:2});var Thx;var GYL;var Ms=function(){return _.g.apply(this,arguments)||this};
_.z(Ms,_.g);Ms.prototype.computeAriaLabel=function(b){var h,y;return(b==null?void 0:(h=b.accessibility)==null?void 0:(y=h.accessibilityData)==null?void 0:y.label)||_.Mt("LOADING",void 0,"Loading")};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Ms.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Ms.prototype,"data",void 0);_.V([_.C({computed:"computeAriaLabel(data)"}),_.f("design:type",String)],Ms.prototype,"ariaLabel",void 0);_.V([_.sB({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],Ms);
_.k(Ms,"yt-content-loading-renderer",function(){if(GYL===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;Thx===void 0&&(Thx=document.createElement("template"));var S=Thx;y.call(h,S.content.cloneNode(!0),b.content.firstChild);GYL=b}b=GYL;return b},{mode:1});_.yd(_.T(function(b){var h=_.L(_.pa(!1,void 0,"OZMtVb")),y=h.next().value,S=h.next().value;h=_.L(_.pa(!1,void 0,"qWERsf"));var F=h.next().value,a=h.next().value;_.wg(function(){var n=_.c(b.data().collaboratePlaylistCollaborationSetting,IRL);n&&S(n.switchedOnByDefault);var X=_.c(b.data().allowNewCollaboratorsPlaylistCollaborationSetting,IRL);X&&a(X.switchedOnByDefault);if(!n&&!X||!n&&b.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")S(!0),a(!0)});
var P=function(n){S(n);a(n);var X=b.data().playlistCollaborationEntityKey||"";var u=_.mc().getState();(u=_.Mm(u.entities,"playlistCollaborationEntity",X))&&(u==null?void 0:u.isCollaborative)===n||_.mc().dispatch(_.R7("playlistCollaborationEntity",X,Object.assign({},u,{isCollaborative:n})))},K=function(n){a(n)};
return _.M("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.M("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.M(_.rC,{data:function(){return b.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(n){return _.M(_.ch8,{data:n.data,
onSwitch:P})}})),_.M(_.H,{cond:y,
then:function(){return _.M(_.OW,null,_.M("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.M(_.rC,{data:function(){return b.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(n){return _.M(_.ch8,{data:n.data,
onSwitch:K,overrideDisabled:!1})}})),_.M(_.H,{cond:F,
then:function(){return _.M("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.M(_.rC,{data:function(){return b.data().copyLinkButton}},{buttonViewModel:_.EG}))}}),_.M("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.M(_.rC,{data:function(){return b.data().playlistCollaborators}},{contentListItemViewModel:_.iia})))}}))},"no"),"playlist-collaboration-view-model",{props:{data:_.D4}});var kYD=_.T(function(b){var h=b.data;var y=b.customCommandResolver;return _.M(_.OW,null,_.M("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.M(_.rC,{data:function(){return h().adAvatar}},{adAvatarViewModel:function(S){return _.M(_.wr5,{data:S.data,
customCommandResolver:y})}})),_.M("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.M(_.H,{cond:function(){return h().headline},
then:function(S){return _.M(_.zv,{text:S,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.M("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.M(_.rC,{data:function(){return h().adBadge}},{adBadgeViewModel:function(S){return _.M(_.xw,{data:S.data,
hasDot:function(){return h().primaryDetailsLine!==void 0},
customCommandResolver:y,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.M(_.rC,{data:function(){return h().primaryDetailsLine}},{adDetailsLineViewModel:function(S){return _.M(_.QZ,{data:S.data,
customCommandResolver:y,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"oo"),Vxp=_.T(function(b){var h=b.data;
var y=b.customCommandResolver;return _.M("ad-avatar-lockup-view-model",{class:function(){var S;return((S=h().interaction)==null?0:S.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.Qa(_.r_({visibilityCallback:function(S){var F,a=(F=h().interaction)==null?void 0:F.onFirstVisible;S&&a&&_.Va(a)},
showOption:_.VZ}),_.Go(function(){return h().interaction},y)),
"aria-label":function(){var S,F;return(S=h().interaction)==null?void 0:(F=S.accessibility)==null?void 0:F.label}},_.M(_.kZ,null,_.M(_.YZ,{when:function(){return h().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.M(kYD,{data:h,
customCommandResolver:y})}),_.M(_.Tw,null,function(){return null})))},"po");_.yd(_.T(function(b){var h=b.data;var y=b.panelContentVisibility;b=_.r_({visibilityCallback:function(a){var P,K=(P=h().interaction)==null?void 0:P.onFirstVisible;a&&K&&_.Va(K)},
showOption:_.VZ});var S=_.Go(function(){return h().interaction},o2D);
_.xH(function(){var a,P;if(P=_.hj("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var K;P=(K=P())==null?void 0:K.onLayoutVisibleCallback}else P=null;(a=P)==null||a()},"qo");
var F=function(){return y()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.M("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.Qa(b,S)},_.M("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.M("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.M(_.H,{cond:_.dRN("(min-width: "+((0,_.Qo)()+_.gM)+"px) or (max-width: 600px)"),then:function(){return _.M(_.rC,{data:function(){return h().adImage}},{adImageViewModel:function(a){return _.M(_.a9,{data:a.data,
targetHeight:80,customCommandResolver:o2D})}})}})),_.M("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.M("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.M(_.rC,{data:function(){return h().adAvatarLockup}},{adAvatarLockupViewModel:function(a){return _.M(Vxp,{data:a.data,
customCommandResolver:o2D})}})),_.M(_.H,{cond:F,
then:function(){return _.M(_.rC,{data:function(){return h().adButton}},{adButtonViewModel:function(a){return _.M(_.iH,{data:a.data,
customCommandResolver:o2D})}})},
else:function(){return _.M(_.rC,{data:function(){return h().menu}},{buttonViewModel:_.EG})}}),_.M("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.M(_.rC,{data:function(){var a=_.c(h().toggleButton,_.zc);
return{toggleButtonViewModel:Object.assign({},a,{isTogglingDisabled:!0,isToggled:F()})}}},{toggleButtonViewModel:_.Ke})))))},"ro"),"panel-ad-header-image-lockup-view-model",{props:{data:_.D4,
panelContentVisibility:_.D4}});_.yd(_.T(function(b){var h=function(){return _.c(b.data().inputComposerViewModel,XX9)},y=_.NG(_.iM.currentPageSubTypeSelector),S=_.NG(_.iM.persistentPanelVisibleSelector),F=_.L(_.pa(!1,void 0,"RXGzYc")),a=F.next().value,P=F.next().value;
F=_.L(_.pa(!1,void 0,"oyonKd"));var K=F.next().value,n=F.next().value,X=function(){I(!0);var Ny;_.Va(((Ny=h())==null?void 0:Ny.onSubmitCommand)||{})},u=function(){if(S()&&!K()){var Ny;
(Ny=_.o7())==null||Ny.removeCueRange("aic-proactive");P(!1);n(!0);X();_.TK(_.btY(h().endOfVideoContinuation),{form:{formData:_.M6({clientMessageId:"youchat-"+Date.now(),pageContext:Rq()})},commandController:{onSuccess:function(){I(!1)},
onServerError:function(){_.TK(vPD(E()));I(!1)}}})}},O=function(){var Ny=_.o7();
if(Ny&&!a()&&!K()){var gI=Ny.getDuration();gI>60&&(Ny.addCueRange("aic-proactive",gI-60,gI-20),P(!0))}},N=function(){var Ny;
return((Ny=h())==null?void 0:Ny.youchatPendingResponseEntityKey)||""},t=_.OF(_.a12,N),R=function(){var Ny;
return!((Ny=t())==null||!Ny.isPendingResponse)},I=function(Ny){_.dJ2(N())(Ny)};
F=_.L(_.pa(!0,void 0,"umCoCf"));var U=F.next().value,p=F.next().value,e=function(){var Ny,gI;var YU=_.c((gI=h())==null?void 0:gI.inputFormField,aRA);return YU==null?void 0:(Ny=YU.contentProperties)==null?void 0:Ny.placeholderText},E=function(){return h().sectionTargetId||"youchat_messages_section"};
F=_.MS("yt-chat-input-view-model");var Y=_.ZR("textarea"),w=_.OF(hmA,"chat_input_view_model_state"),x=ydp(),q=function(){var Ny;return!((Ny=w())==null||!Ny.value)},dI=function(){return b.data().environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"},L4=function(){var Ny;
(Ny=_.o7())==null||Ny.removeCueRange("aic-proactive");P(!1);n(!1);var gI;_.r("enable_navigational_proactive_messages_on_ai_companion")&&((gI=h())==null?0:gI.navigationContinuation)&&S()&&(X(),_.TK(_.btY(h().navigationContinuation),{form:{formData:_.M6({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:n2_(),pageContext:Rq()})},commandController:{onSuccess:function(){I(!1)},
onServerError:function(){_.TK(vPD(E()));I(!1)}}}))},Rq=function(){var Ny;
return(Ny=_.H9().resolve(_.XS(_.ng)))==null?void 0:_.SSx(Ny,y())};
_.wg(function(){if(_.Ff("enable_ai_chat_controller")){var Ny;(Ny=_.H9().resolve(_.XS(_.ng)))==null||Ny.init(b.data().environment)}else if(Ny=HKx(b.data()),!q()&&Ny){var gI;((gI=h())==null?0:gI.setPendingResponseOnWelcome)&&I(!0);_.TK(Ny,{form:{formData:_.M6({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:n2_(),pageContext:Rq()})}});x(!0)}var YU=E(),VN=_.H9().resolve(_.XS(_.QI)),Hb=function(){_.tB.remove(YU);if(_.Ff("enable_ai_chat_controller")){var xU;(xU=_.H9().resolve(_.XS(_.ng)))!=null&&
xU.environment==="CHAT_ENVIRONMENT_ENUM_YOUCHAT"&&(xU.lastWelcomeContinuationSent=void 0)}else x(!1)},vF=function(){_.Ar(function(){if(dI()&&(L4(YU),y()==="watch")){var xU=_.o7();
xU&&(xU.addEventListener("onStateChange",O),xU.addEventListener("onCueRangeEnter",u))}})};
gI=_.r("enable_ai_companion")?!dI():!0;VN==null||VN.addEventListener("yt-navigate-start",Hb,{once:gI});VN==null||VN.addEventListener("yt-navigate-finish",vF,{once:gI});_.m2(function(){VN==null||VN.removeEventListener("yt-navigate-start",Hb);VN==null||VN.removeEventListener("yt-navigate-finish",vF);var xU=_.o7();xU&&(xU.removeEventListener("onCueRangeEnter",u),xU.removeEventListener("onStateChange",O),xU.removeCueRange("aic-proactive"))})});
_.Qi(function(){if(_.Ff("enable_ai_chat_controller")){var Ny=HKx(b.data());if(Ny){var gI,YU=((gI=h())==null?0:gI.setPendingResponseOnWelcome)?I:void 0,VN;(VN=_.H9().resolve(_.XS(_.ng)))==null||xi2(VN,{command:Ny,setPending:YU})}}},"SXTMBe");
var Xn=function(){var Ny=Y.value.value;Y.value.value="";MZL(Y.value);var gI,YU=((gI=h())==null?void 0:gI.enableGradientColorBg)||!1;gI=bKM(E(),Ny,YU);_.TK(gI);X();var VN,Hb,vF;gI=(vF=_.YS((VN=b.data())==null?void 0:VN.sendUserQueryCommand))!=null?vF:_.btY((Hb=h())==null?void 0:Hb.continuation);_.TK(gI,{form:{formData:_.M6({clientMessageId:"youchat-"+Date.now(),userInputText:Ny,playerOffsetMs:n2_(),pageContext:Rq()})},commandController:{onSuccess:function(){I(!1)},
onServerError:function(){_.TK(vPD(E()));I(!1)}}})};
return _.M("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:F},_.M("div",{class:"chatInputViewModelChatInputWrapper"},_.M("form",{class:"chatInputViewModelChatInputForm"},_.M("textarea",{class:"chatInputViewModelChatInput",el:Y,"on:keydown":_.Zv(function(Ny){var gI=R()||!1;MZL(Y.value);gI||Ny.key!=="Enter"||Ny.shiftKey||(Ny.preventDefault(),Xn());return!1}),
"on:keyup":_.Zv(function(){p(Y.value.value.length===0);return!1}),
"aria-label":function(){return R()?b.data().loadingAnimationA11yLabel||"":e()},
placeholder:e,rows:1}),_.M(_.EG,{data:function(){return _.c(b.data().sendButton,_.cA)},
onClick:function(Ny){Ny.preventDefault();Xn();p(Y.value.value.length===0)},
buttonOverrides:function(){return{disabled:U()||R()}}})),_.M(_.zv,{className:"chatInputViewModelChatDisclaimer",
text:function(){var Ny;return b.data().disclaimerText||((Ny=_.c(b.data().disclaimer,_.MmN))==null?void 0:Ny.text)}})))},"to"),"yt-chat-input-view-model",{props:{data:_.D4}});var Ep2=["engagement-panel-clip-create","engagement-panel-clip-view"],iIc=0,nO=function(){var b=_.g.apply(this,arguments)||this;var h;b.headerData=(h=b.data)==null?void 0:h.header;b.darkerPanels=_.r("web_watch_darker_panels");b.matchContentTheme=_.r("web_watch_panel_content_match_theme");b.disableAutoFill=!1;b.isFullscreen=!1;b.isTheaterMode=!1;b.liveChatReplyPanel=!1;b.enableAnchoredPanel=_.r("desktop_shorts_v2_anchored_panel");b.disableBackdropFilter=_.r("web_disable_backdrop_filter");b.isPersistentPanel=
!1;b.trackEngagementPanelVisibility=_.r("web_watch_track_engagement_panel_visibility");b.overscrollContain=!1;b.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 b};
_.z(nO,_.g);_.d=nO.prototype;
_.d.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(b){var h;return(b==null?void 0:(h=b.webComponentHint)==null?void 0:h.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]",overscrollContain:"[[overscrollContain]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.d.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var b;if((b=this.hostElement.parentElement)==null?0:b.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.d.detached=function(){this.updateTheaterDisablement()};
_.d.showPanel=function(){var b=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.xP.addJob(function(){b.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.d.maybeScrollToItemSection=function(b){var h=this,y,S=b==null?void 0:(y=b.sectionListEngagementPanelExtras)==null?void 0:y.scrollToItemSectionIdentifier;S&&_.xP.addJob(function(){var F;(F=h.sectionListRendererElement)==null||F.scrollToItemSection(S)},8)};
_.d.hidePanel=function(){var b=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.xP.addJob(function(){b.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.d.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.d.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.d.updatePanel=function(b,h,y,S){var F=this;if((b=b==null?void 0:b.engagementPanelSectionListRenderer)||S){if(b){S=b.header;var a=b.content,P=b.footer;(b=b.targetId)&&this.set("data.targetId",b);S&&this.set("data.header",S);a&&this.set("data.content",a);P&&this.set("data.footer",P)}else S&&(b=S.content,a=S.secondaryHeaderContent,P=S.targetId,S=S.loggingDirectives,P&&this.set("data.targetId",P),b&&this.set("data.content",b),S&&_.r("web_update_panel_visibility_logging_fix")&&this.set("data.loggingDirectives",
S),a&&(this.secondaryHeaderData=a));this.updateChildVisibilityProperties();if(h){var K;_.r("kevlar_update_panel_focus_scroll_killswitch")||(K={preventScroll:!0});this.focus(K)}_.Ob(this,function(){_.Sx(F.hostElement,"yt-refit");F.maybeScrollToItemSection(y)})}};
_.d.computeHeaderData=function(){var b,h=(0,_.lR.unsafeClone)((b=this.data)==null?void 0:b.header);if(h){b=new _.r4(Object.keys(h)[0]);var y=_.c(h,b),S=_.c(this.secondaryHeaderData,b);S&&_.J6(h,b,Object.assign({},S,y))}return h};
_.d.getReloadContinuation=function(){var b,h,y,S=_.L(((b=this.data)==null?void 0:(h=b.content)==null?void 0:(y=h.sectionListRenderer)==null?void 0:y.continuations)||[]);for(b=S.next();!b.done;b=S.next())if(b=b.value,b.reloadContinuationData)return b.reloadContinuationData.continuation};
_.d.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var b;((b=this.data)==null?0:b.targetId)&&(b=this.contentElement.firstElementChild)&&b.setAttribute("panel-target-id",this.data.targetId)};
_.d.forwardPopupClosedToFlowRootRenderer=function(){var b=_.$x(this.hostElement).querySelector("ytd-flow-root-renderer");if(b&&this.hostElement.closest("ytd-popup-container"))b.onPopupClosed()};
_.d.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var b;if(!Ep2.includes((b=this.theaterDisablementPanelIdentifier)!=null?b:""))if(b=_.r("web_watch_imax_theater_mode")&&this.isTheaterMode,b=_.r("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||b,_.r("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||b){var h;this.visibility=(h=this.data)==null?void 0:h.visibility;var y;this.trackEngagementPanelVisibility&&((y=this.data)==null?void 0:y.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var S,F,a,P;this.contentEmpty=!!(((S=this.data)==null?0:(F=S.content)==null?0:F.structuredDescriptionContentRenderer)&&Object.keys((a=this.data)==null?void 0:(P=a.content)==null?void 0:
P.structuredDescriptionContentRenderer).length===0);(h=_.H9().resolve(_.Mp))&&h.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.d.isTheaterModeChanged=function(){_.r("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.isAiCompanionPanel||this.hidePanel())};
_.d.isFullscreenChanged=function(){_.r("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.isAiCompanionPanel||this.hidePanel())};
_.d.focus=function(b){if(this.header)this.header.focus(b);else{var h;(h=_.$x(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||h.focus(b)}};
_.d.visibilityChanged=function(){if(!_.r("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var b=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",h=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",y=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",S=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",F=S||!this.lastVisibility,a,P,K,n=((a=this.data)==null?void 0:(P=a.identifier)==null?void 0:
P.tag)||((K=this.data)==null?void 0:K.panelIdentifier);if(b&&F){var X;((X=this.data)==null?0:X.onShowCommands)&&_.jx(this.hostElement,this.data.onShowCommands,this.hostElement);n&&_.hP().dispatch(_.$8({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:n}}))}else if(h&&y){var u;((u=this.data)==null?0:u.onHideCommands)&&_.jx(this.hostElement,this.data.onHideCommands,this.hostElement);n&&_.hP().dispatch(_.$8({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:n}}))}b&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*iIc++));_.r("kevlar_watch_focus_on_engagement_panels")&&b&&S&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.d.notifyVisibilityChanged=function(b){var h;_.aw(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,b,(h=this.data)==null?void 0:h.targetId]);if(_.r("autonav_pause_for_comments_ep")){var y;_.Sx(this.hostElement,"yt-autonav-engagement-panel-visible-changed",{visible:b==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",targetId:(y=this.data)==null?void 0:y.targetId})}};
_.d.updateTheaterDisablement=function(){if(!_.r("kevlar_watch_theater_disablement_killswitch")){var b=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&Ep2.includes(b)&&!_.r("watch_next_grid_ignore_disallowed_panels")){var h=_.J4(_.hP().getState()),y=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";b!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():y?(this.originalTheaterState===void 0&&(this.originalTheaterState=h,this.theaterDisablementPanelIdentifier=
b),h&&_.F8(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.d.clearTheaterDisablement=function(){_.F8(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.d.updateChildVisibilityProperties=function(){this.hostElement||_.r("kevlar_panel_property_init_killswitch")||this._enableProperties();var b=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=b);var h,y=(h=this.headerElement)==null?void 0:h.firstElementChild;if(y&&!this.adHeaderImageLockupViewModel){h=b==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";y.collapsed=h;y=_.$x(y).querySelector("#visibility-button");if(!y)return;(y=y.firstElementChild)&&
y.polymerController.is==="ytd-toggle-button-renderer"&&y.polymerController.data.isToggled!==h&&y.polymerController.set("data.isToggled",h)}var S;if(h=(S=this.contentElement)==null?void 0:S.firstElementChild)if(b&&b!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")h.removeAttribute("panel-content-visible");else{h.setAttribute("panel-content-visible","");var F;(F=h.markDirty)==null||F.call(h)}};
_.d.onYtChangeEngagementPanelVisibilityAction=function(b){var h=this,y,S=(y=this.data)==null?void 0:y.targetId,F,a,P;y=((F=this.data)==null?void 0:(a=F.identifier)==null?void 0:a.tag)||((P=this.data)==null?void 0:P.panelIdentifier);var K=_.c(b,_.eZM),n;b=S&&(K==null?void 0:K.targetId)===S||y&&(K==null?void 0:(n=K.panelIdentifier)==null?void 0:n.tag)===y;this.dialog&&b&&(K==null?void 0:K.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(S==="engagement-panel-comments-section"?_.F8(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.F8(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",y]));!_.r("kevlar_use_engagement_panel_management_component")&&b&&(S=K.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!S?_.xP.addJob(function(){h.visibility=K.visibility},2,this.hideDelayMs):this.visibility=K.visibility,K.visibility&&this.notifyVisibilityChanged(K.visibility))};
_.d.onYtScrollToEngagementPanelCommand=function(b){var h,y=(h=this.data)==null?void 0:h.targetId,S,F,a;h=((S=this.data)==null?void 0:(F=S.identifier)==null?void 0:F.tag)||((a=this.data)==null?void 0:a.panelIdentifier);b=_.c(b,_.wHN);var P;(y&&(b==null?void 0:b.targetId)===y||h&&(b==null?void 0:(P=b.panelIdentifier)==null?void 0:P.tag)===h)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.F8(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.d.attachVEs=function(b){var h,y;(b==null?0:(h=b.content)==null?0:(y=h.productListRenderer)==null?0:y.trackingParams)&&_.rU().graftServerVe(b.content.productListRenderer.trackingParams);var S,F;(b==null?0:(S=b.content)==null?0:(F=S.transcriptRenderer)==null?0:F.trackingParams)&&_.rU().graftServerVe(b.content.transcriptRenderer.trackingParams)};
_.d.onYtUpdateEngagementPanelAction=function(b){var h,y=(h=this.data)==null?void 0:h.targetId;b=_.c(b,PhD);y&&(b==null?void 0:b.targetId)===y&&(this.updatePanel({engagementPanelSectionListRenderer:{header:b==null?void 0:b.header,content:b==null?void 0:b.content}},!1),this.attachVEs(b))};
_.d.onYtShowEngagementPanelScrimAction=function(b){var h,y=(h=this.data)==null?void 0:h.targetId;b=_.c(b,LV9);y&&(b==null?void 0:b.engagementPanelTargetId)===y&&(this.scrimmed=!0)};
_.d.onYtHideEngagementPanelScrimAction=function(b){var h,y=(h=this.data)==null?void 0:h.targetId;b=_.c(b,jLD);y&&(b==null?void 0:b.engagementPanelTargetId)===y&&(this.scrimmed=!1)};
_.d.getIdentifier=function(){var b,h,y;return((b=this.data)==null?void 0:b.panelIdentifier)||((h=this.data)==null?void 0:(y=h.identifier)==null?void 0:y.tag)};
_.d.getSurface=function(){var b,h;return(b=this.data)==null?void 0:(h=b.identifier)==null?void 0:h.surface};
_.tm.Object.defineProperties(nO.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var b;return(b=this.data)==null?void 0:b.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var b;return(b=this.data)==null?void 0:b.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var b=this.getIdentifier();return b==="engagement-panel-youchat"||b==="PAyouchat"}},
isAiCompanionPanel:{configurable:!0,enumerable:!0,get:function(){return this.getIdentifier()==="PAai_companion"}}});
nO.prototype.visibilityChanged=nO.prototype.visibilityChanged;nO.prototype.isFullscreenChanged=nO.prototype.isFullscreenChanged;nO.prototype.isTheaterModeChanged=nO.prototype.isTheaterModeChanged;nO.prototype.dataChanged=nO.prototype.dataChanged;nO.prototype.forwardPopupClosedToFlowRootRenderer=nO.prototype.forwardPopupClosedToFlowRootRenderer;nO.prototype.onYtRendererstamperFinished=nO.prototype.onYtRendererstamperFinished;
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],nO.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],nO.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],nO.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.PQ.YtEventForwardingBehavior),_.f("design:type",Object)],nO.prototype,"ytEventForwardingBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],nO.prototype,"data",void 0);
_.V([_.C({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.f("design:type",Object)],nO.prototype,"headerData",void 0);_.V([_.C(),_.f("design:type",Object)],nO.prototype,"secondaryHeaderData",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],nO.prototype,"visibility",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],nO.prototype,"contentEmpty",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],nO.prototype,"scrimmed",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],nO.prototype,"dialog",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],nO.prototype,"dropdown",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],nO.prototype,"darkerPanels",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],nO.prototype,"matchContentTheme",void 0);_.V([_.C(),_.f("design:type",Object)],nO.prototype,"disableAutoFill",void 0);
_.V([_.C({reflectToAttribute:!0,value:_.r("optimal_reading_width_comments_ep")}),_.f("design:type",Boolean)],nO.prototype,"optimalReadingWidthComments",void 0);_.V([_.C(),_.f("design:type",Number)],nO.prototype,"hideDelayMs",void 0);_.V([_.C({selector:_.es,reflectToAttribute:!0}),_.f("design:type",Object)],nO.prototype,"isFullscreen",void 0);_.V([_.C({selector:_.J4,reflectToAttribute:!0}),_.f("design:type",Object)],nO.prototype,"isTheaterMode",void 0);
_.V([_.C(),_.f("design:type",Number)],nO.prototype,"showDelayMs",void 0);_.V([_.C({reflectToAttribute:!0}),_.W("data.targetId"),_.f("design:type",Object),_.f("design:paramtypes",[])],nO.prototype,"targetId",null);_.V([_.C({reflectToAttribute:!0}),_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],nO.prototype,"webSize",null);_.V([_.C(),_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],nO.prototype,"hideFooterBorder",null);
_.V([_.C(),_.f("design:type",Object)],nO.prototype,"isWatch",void 0);_.V([_.C(),_.f("design:type",Object)],nO.prototype,"originalTheaterState",void 0);_.V([_.C(),_.f("design:type",Object)],nO.prototype,"theaterDisablementPanelIdentifier",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],nO.prototype,"isWatchWhilePanel",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],nO.prototype,"shortsPanel",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],nO.prototype,"liveChatEngagementPanel",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],nO.prototype,"learningChatEngagementPanel",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],nO.prototype,"liveChatReplyPanel",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],nO.prototype,"enableAnchoredPanel",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],nO.prototype,"disableBackdropFilter",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],nO.prototype,"isPersistentPanel",void 0);_.V([_.C(),_.f("design:type",Object)],nO.prototype,"trackEngagementPanelVisibility",void 0);_.V([_.C(),_.f("design:type",Object)],nO.prototype,"overscrollContain",void 0);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],nO.prototype,"isAiCompanionPanel",null);
_.V([_.to("#header"),_.f("design:type",HTMLElement)],nO.prototype,"headerElement",void 0);_.V([_.to("#header > *"),_.f("design:type",HTMLElement)],nO.prototype,"header",void 0);_.V([_.to("ytd-section-list-renderer"),_.f("design:type",Object)],nO.prototype,"sectionListRendererElement",void 0);_.V([_.to("panel-ad-header-image-lockup-view-model"),_.f("design:type",HTMLElement)],nO.prototype,"adHeaderImageLockupViewModel",void 0);
_.V([_.to("#content"),_.f("design:type",HTMLElement)],nO.prototype,"contentElement",void 0);_.V([_.u3("yt-rendererstamper-finished"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],nO.prototype,"onYtRendererstamperFinished",null);_.V([_.u3("yt-popup-closed"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],nO.prototype,"forwardPopupClosedToFlowRootRenderer",null);
_.V([_.zj("data","isFullscreen","isTheaterMode"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],nO.prototype,"dataChanged",null);_.V([_.OB("isTheaterMode"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],nO.prototype,"isTheaterModeChanged",null);_.V([_.OB("isFullscreen"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],nO.prototype,"isFullscreenChanged",null);
_.V([_.OB("visibility"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],nO.prototype,"visibilityChanged",null);_.V([_.Yx({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],nO);
_.k(nO,"ytd-engagement-panel-section-list-renderer",function(){if(Kyf!==void 0)return Kyf;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return Kyf=b},{mode:_.Lt("kevlar_poly_si_batch_j028")?1:2});var fW2;var Xm=function(){var b=_.g.apply(this,arguments)||this;b.lastRenderedPanelIds=new Set;b.visiblePanels=[];b.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return b};
_.z(Xm,_.g);_.d=Xm.prototype;_.d.dataChanged=function(){if(this.data){for(var b=[],h=_.L(this.data),y=h.next();!y.done;y=h.next()){y=y.value;var S=void 0,F=void 0,a=(S=y)==null?void 0:(F=S.engagementPanelSectionListRenderer)==null?void 0:F.visibility;F=S=void 0;((S=y)==null?0:(F=S.engagementPanelSectionListRenderer)==null?0:F.targetId)&&a!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&b.push(y)}this.visiblePanels=b}else this.visiblePanels=[]};
_.d.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}}};
_.d.withoutVisiblePanelById=function(b){return this.visiblePanels.filter(function(h){var y;return((y=h.engagementPanelSectionListRenderer)==null?void 0:y.targetId)!==b})};
_.d.onYtChangeEngagementPanelVisibilityAction=function(b){var h=this,y=_.c(b,_.eZM);if(this.data&&(y==null?0:y.targetId)&&(y==null?0:y.visibility)){var S,F=(S=this.data.find(function(P){var K;return((K=P.engagementPanelSectionListRenderer)==null?void 0:K.targetId)===y.targetId}))==null?void 0:S.engagementPanelSectionListRenderer;
if(F){var a=this.withoutVisiblePanelById(y.targetId);y.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(b=this.data.find(function(P){var K;return((K=P.engagementPanelSectionListRenderer)==null?void 0:K.targetId)===y.targetId}))&&(a=[b].concat(_.f$(a)));
this.hideDelayMs&&y.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&a.length===0?_.xP.addJob(function(){F.visibility=y.visibility;h.visiblePanels=a},10,this.hideDelayMs):(F.visibility=y.visibility,this.visiblePanels=a);
_.aw(this.hostElement,"yt-engagement-panels-visible-changed",[a])}}};
_.d.onRendererstamperFinished=function(){var b=new Set(this.visiblePanels.map(function(h){var y;return(y=h.engagementPanelSectionListRenderer)==null?void 0:y.targetId}));
this.handlePanelVisibilityChange(b,this.lastRenderedPanelIds);this.lastRenderedPanelIds=b};
_.d.handlePanelVisibilityChange=function(b,h){b=b===void 0?new Set:b;h=h===void 0?new Set:h;if(this.data)for(var y=_.L(this.data),S=y.next();!S.done;S=y.next()){S=S.value;var F=void 0,a=void 0,P=(F=S)==null?void 0:(a=F.engagementPanelSectionListRenderer)==null?void 0:a.targetId;if(P&&(F=h.has(P),a=b.has(P),P=void 0,!F&&a?(a=F=void 0,P=(F=S)==null?void 0:(a=F.engagementPanelSectionListRenderer)==null?void 0:a.onShowCommands):F&&!a&&(a=F=void 0,P=(F=S)==null?void 0:(a=F.engagementPanelSectionListRenderer)==
null?void 0:a.onHideCommands),P))for(S=_.L(P),P=S.next();!P.done;P=S.next())this.ytComponentBehavior.resolveCommand(P.value)}};
Xm.prototype.onRendererstamperFinished=Xm.prototype.onRendererstamperFinished;Xm.prototype.dataChanged=Xm.prototype.dataChanged;_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],Xm.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],Xm.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Xm.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Xm.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Xm.prototype,"lastRenderedPanelIds",void 0);_.V([_.C(),_.f("design:type",Number)],Xm.prototype,"hideDelayMs",void 0);_.V([_.C(),_.f("design:type",Array)],Xm.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Array)],Xm.prototype,"visiblePanels",void 0);_.V([_.C(),_.f("design:type",Boolean)],Xm.prototype,"isWatchWhilePanel",void 0);
_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Xm.prototype,"dataChanged",null);_.V([_.u3("yt-rendererstamper-finished"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Xm.prototype,"onRendererstamperFinished",null);_.V([_.Yx({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],Xm);
_.k(Xm,"ytd-watch-engagement-panels",function(){if(fW2!==void 0)return fW2;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return fW2=b},{mode:1});var wTJ;var Hc=function(){return _.g.apply(this,arguments)||this};
_.z(Hc,_.g);Hc.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.M5(_.$x(this.hostElement).querySelector("#text"),_.fFP(_.q3b,this.data.companionLegalText))};
Hc.prototype.computeAutoScrollEnabled=function(b,h){return b&&!h};
Hc.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
Hc.prototype.onToggleTap=function(){this.expanded=!this.expanded};
Hc.prototype.expandedChanged=Hc.prototype.expandedChanged;Hc.prototype.dataChanged=Hc.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Hc.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.SDA),_.f("design:type",Object)],Hc.prototype,"ytdAutoScrollBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Hc.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],Hc.prototype,"expanded",void 0);
_.V([_.C({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.f("design:type",Boolean)],Hc.prototype,"autoScrollEnabled",void 0);_.V([_.C(),_.f("design:type",String)],Hc.prototype,"expanderIcon",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Hc.prototype,"dataChanged",null);
_.V([_.OB("expanded"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Hc.prototype,"expandedChanged",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],Hc);
_.k(Hc,"ytd-companion-legal-text-renderer",function(){if(wTJ!==void 0)return wTJ;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return wTJ=b},{mode:1});var lWc;var uA=function(){var b=_.g.apply(this,arguments)||this;b.buttonUpdate=_.r("web_modern_buttons");b.kevlarWatchGrid=_.r("kevlar_watch_grid");b.centerAlignDescription=_.r("action_companion_center_align_description");b.truncateDomain=_.r("action_companion_truncate_domain");b.enableMonoStyle=_.r("enable_default_mono_cta_migration_web_client");return b};
_.z(uA,_.g);_.d=uA.prototype;_.d.computeButtonOverride=function(){if(this.buttonUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:"filled"}};
_.d.getOnLayoutVisibleCallback=function(){var b=_.hj("yt.www.ads.eventcache.getLastCompanionData");return b?(b=b())&&b.onLayoutVisibleCallback:null};
_.d.getLayoutId=function(){var b=_.hj("yt.www.ads.eventcache.getLastCompanionData");return b?(b=b())&&b.layoutId:null};
_.d.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",uA.JSC$23573_DEFAULT_AD_BADGE_RENDERER);var b=this.getOnLayoutVisibleCallback();b&&b()}};
_.d.getButtonRenderer=function(b){return b.actionButton&&_.c(b.actionButton,_.OU)?(delete _.c(b.actionButton,_.OU).navigationEndpoint,_.c(b.actionButton,_.OU)):{}};
_.d.onClick=function(b){var h=this;if((!_.r("web_modern_buttons")||!_.mf(_.Qk(b),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){b=_.ye();var y=this.getLayoutId();b&&y&&_.r("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?b.getPlayerPromise().then(function(S){(new _.n1(S)).executeCommand(h.data.navigationEndpoint,y)}):_.r("kevlar_companion_resolve_command_killswitch")?_.Sx(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.F8(this.hostElement,"yt-companion-ad-clicked",["action-companion",y])}};
_.tm.Object.defineProperties(uA.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var b,h,y;return((b=this.data)==null?0:(h=b.detailsLine)==null?0:(y=h.adRating)==null?0:y.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 b,h,y,S;return((b=this.data)==null?0:(h=b.detailsLine)==null?0:(y=h.adRating)==null?0:(S=y.ratingIcon)==null?0:S.iconType)?_.o_(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var b,h,y,S;return((b=this.data)==null?0:(h=b.detailsLine)==null?0:(y=h.texts)==null?0:(S=y[0])==null?0:S.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 b,h;return((b=this.data)==null?0:(h=b.description)==null?0:h.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var b=_.hj("yt.www.ads.eventcache.getLastCompanionData");return b?(b=b())&&b.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var b=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return b?b.indexOf("/default_banner")!==-1:!0}}});
uA.prototype.onClick=uA.prototype.onClick;uA.prototype.dataChanged=uA.prototype.dataChanged;uA.JSC$23573_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Mt("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],uA.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],uA.prototype,"rendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],uA.prototype,"data",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],uA.prototype,"buttonUpdate",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],uA.prototype,"kevlarWatchGrid",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],uA.prototype,"centerAlignDescription",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],uA.prototype,"truncateDomain",void 0);
_.V([_.C({computed:"computeButtonOverride(buttonUpdate)"}),_.f("design:type",Object)],uA.prototype,"buttonOverride",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],uA.prototype,"enableMonoStyle",void 0);_.V([_.W("data.detailsLine.adRating.ratingText"),_.f("design:type",Object),_.f("design:paramtypes",[])],uA.prototype,"getRating",null);_.V([_.W("getRating"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],uA.prototype,"computeRatingHidden",null);
_.V([_.W("data.detailsLine.adRating.ratingIcon.iconType"),_.f("design:type",Object),_.f("design:paramtypes",[])],uA.prototype,"iconType",null);_.V([_.W("data.detailsLine.texts.0.text"),_.f("design:type",Object),_.f("design:paramtypes",[])],uA.prototype,"getDetailsLine",null);_.V([_.W("getDetailsLine"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],uA.prototype,"computeDetailsLineHidden",null);
_.V([_.W("data.description.text"),_.f("design:type",Object),_.f("design:paramtypes",[])],uA.prototype,"getDescriptionText",null);_.V([_.W("getDescriptionText"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],uA.prototype,"computeDescriptionTextHidden",null);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],uA.prototype,"interactionLoggingClientData",null);
_.V([_.C({reflectToAttribute:!0}),_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],uA.prototype,"hideBanner",null);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],uA.prototype,"dataChanged",null);_.V([_.u3("click"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],uA.prototype,"onClick",null);_.V([_.Yx({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],uA);
_.k(uA,"ytd-action-companion-ad-renderer",function(){if(lWc!==void 0)return lWc;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return lWc=b},{mode:_.Lt("kevlar_poly_si_batch_j067")?1:2});var qaP;var xt2;var OT=function(){var b=_.g.apply(this,arguments)||this;b.buttonUpdate=_.r("web_modern_buttons");b.hideLegacyBanner=_.r("enable_dsa_one_click_ata_translators_infeed_elements");b.adInfoButtonStyle="mono";b.adInfoButtonType="text";b.noDotAdBadge=!0;return b};
_.z(OT,_.g);_.d=OT.prototype;_.d.getOnLayoutVisibleCallback=function(){var b=_.hj("yt.www.ads.eventcache.getLastCompanionData");return b?(b=b())&&b.onLayoutVisibleCallback:null};
_.d.getLayoutId=function(){var b=_.hj("yt.www.ads.eventcache.getLastCompanionData");return b?(b=b())&&b.layoutId:null};
_.d.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 b=this.data.image.thumbnail.thumbnails[0];this.imageSrc=b.url?_.lJ(b.url):void 0;this.imageWidth=b.width||0;this.imageHeight=b.height||0}this.data.clickthroughEndpoint&&_.c(this.data.clickthroughEndpoint,_.jH)&&(b=_.c(this.data.clickthroughEndpoint,_.jH).url,_.r("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
b||"":b?(b=_.lJ(b),this.clickThroughUrl=_.E_(b)):this.clickThroughUrl=void 0);(b=this.getOnLayoutVisibleCallback())&&b()}};
_.d.onClick=function(b){_.mf(_.Qk(b),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(b)};
_.d.handleClick=function(){var b=this;this.data&&this.data.clickthroughEndpoint&&(_.Sx(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(h){b.macroReplacementBehavior.sendServiceRequestAction([h])}),_.F8(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.d.onLoad=function(){_.aw(this.hostElement,"yt-refit-popups-action")};
_.tm.Object.defineProperties(OT.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var b=_.hj("yt.www.ads.eventcache.getLastCompanionData");return b?(b=b())&&b.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var b=_.hj("yt.www.ads.eventcache.getLastCompanionData");return b?(b=b())&&b.interactionLoggingClientData:null}}});
OT.prototype.onLoad=OT.prototype.onLoad;OT.prototype.onClick=OT.prototype.onClick;OT.prototype.dataChanged=OT.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],OT.prototype,"rendererBehavior",void 0);_.V([_.B(Fp9.YtMacroReplacementBehavior),_.f("design:type",Object)],OT.prototype,"macroReplacementBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],OT.prototype,"data",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],OT.prototype,"buttonUpdate",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],OT.prototype,"hideLegacyBanner",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],OT.prototype,"adInfoButtonStyle",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],OT.prototype,"adInfoButtonType",void 0);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],OT.prototype,"macros",null);
_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],OT.prototype,"interactionLoggingClientData",null);_.V([_.C(),_.f("design:type",String)],OT.prototype,"clickThroughUrl",void 0);_.V([_.C(),_.f("design:type",_.Gp)],OT.prototype,"imageSrc",void 0);_.V([_.C(),_.f("design:type",Number)],OT.prototype,"imageWidth",void 0);_.V([_.C(),_.f("design:type",Number)],OT.prototype,"imageHeight",void 0);_.V([_.C(),_.f("design:type",Object)],OT.prototype,"noDotAdBadge",void 0);
_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],OT.prototype,"dataChanged",null);_.V([_.u3("click"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],OT.prototype,"onClick",null);_.V([_.u3("load"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],OT.prototype,"onLoad",null);_.V([_.Yx({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],OT);
_.k(OT,"ytd-image-companion-renderer",function(){if(xt2!==void 0)return xt2;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return xt2=b},{mode:_.Lt("kevlar_poly_si_batch_j067")?1:2});var Qw9;var Ns=function(){return _.g.apply(this,arguments)||this};
_.z(Ns,_.g);_.d=Ns.prototype;_.d.dataChanged=function(){this.set("data.adBadge",Ns.JSC$23582_DEFAULT_AD_BADGE_RENDERER);if(this.data){var b=this.getOnLayoutVisibleCallback();b&&b()}};
_.d.getOnLayoutVisibleCallback=function(){var b=_.hj("yt.www.ads.eventcache.getLastCompanionData");return b?(b=b())&&b.onLayoutVisibleCallback:null};
_.d.getLayoutId=function(){var b=_.hj("yt.www.ads.eventcache.getLastCompanionData");return b?(b=b())&&b.layoutId:null};
_.d.onCompanionClicked=function(b){this.data&&(b.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.F8(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.d.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var b=_.ye(),h=this.getLayoutId(),y=this.data.clickToAdvSiteEndpoint;b&&h&&_.r("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?b.getPlayerPromise().then(function(S){(new _.n1(S)).executeCommand(y,h)}):_.Sx(this.hostElement,"yt-navigate",{endpoint:y})}};
_.d.sendTrackingPings=function(b){if(b&&b.length!==0&&b[0].loggingUrls&&(b=b[0].loggingUrls.map(this.getBaseUrl)))for(var h=0;h<b.length;h++)_.$2(b[h])};
_.d.getBaseUrl=function(b){return b.baseUrl||""};
_.tm.Object.defineProperties(Ns.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var b=_.hj("yt.www.ads.eventcache.getLastCompanionData");return b?(b=b())&&b.interactionLoggingClientData:null}}});
Ns.prototype.onCompanionClicked=Ns.prototype.onCompanionClicked;Ns.prototype.dataChanged=Ns.prototype.dataChanged;Ns.JSC$23582_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Mt("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Ns.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Ns.prototype,"data",void 0);_.V([_.to("#title"),_.f("design:type",HTMLElement)],Ns.prototype,"shopTitle",void 0);
_.V([_.zj("data.impressionEndpoints"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Ns.prototype,"dataChanged",null);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],Ns.prototype,"interactionLoggingClientData",null);_.V([_.u3("yt-navigate"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],Ns.prototype,"onCompanionClicked",null);
_.V([_.Yx({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],Ns);
_.k(Ns,"ytd-shopping-companion-renderer",function(){if(Qw9!==void 0)return Qw9;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return Qw9=b},{mode:1});_.yd(_.T(function(b){var h=b.data;b=_.r_({visibilityCallback:function(S){var F,a=(F=h().interaction)==null?void 0:F.onFirstVisible;S&&a&&_.Va(a)},
showOption:_.VZ});var y=_.Go(function(){return h().interaction},up$);
_.xH(function(){var S,F;F=(F=_.hj("yt.www.ads.eventcache.getLastCompanionData"))?(F=F())&&F.onLayoutVisibleCallback:null;(S=F)==null||S()},"uo");
return _.M("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.Zv(function(S){_.aw(S.currentTarget,"yt-refit-popups-action")}),
el:_.Qa(b,y),"aria-label":function(){var S,F;return(S=h().interaction)==null?void 0:(F=S.accessibility)==null?void 0:F.label}},_.M("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.M(_.rC,{data:function(){return h().adImage}},{adImageViewModel:function(S){return _.M(_.a9,{data:S.data,
targetHeight:80,customCommandResolver:up$})}})),_.M("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.M("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.M(_.rC,{data:function(){return h().adBadge}},{adBadgeViewModel:function(S){return _.M(_.xw,{data:S.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.M("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.M(_.rC,{data:function(){return h().menu}},{buttonViewModel:_.EG}))))},"vo"),"banner-image-layout-view-model",{props:{data:_.D4}});_.yd(_.T(function(b){var h=b.data;b=_.r_({visibilityCallback:function(S){var F,a=(F=h().interaction)==null?void 0:F.onFirstVisible;S&&a&&_.Va(a)},
showOption:_.VZ});var y=_.Go(function(){return h().interaction},OKc);
_.xH(function(){var S,F;F=(F=_.hj("yt.www.ads.eventcache.getLastCompanionData"))?(F=F())&&F.onLayoutVisibleCallback:null;(S=F)==null||S()},"wo");
return _.M("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.Qa(b,y)},_.M("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.M(_.rC,{data:function(){return h().adImage}},{adImageViewModel:function(S){return _.M(_.a9,{data:S.data,
targetHeight:80,customCommandResolver:OKc})}})),_.M("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.M("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.M(_.rC,{data:function(){return h().adAvatarLockup}},{adAvatarLockupViewModel:function(S){return _.M(Vxp,{data:S.data,
customCommandResolver:OKc})}})),_.M(_.rC,{data:function(){return h().adButton}},{adButtonViewModel:function(S){return _.M(_.iH,{data:S.data,
customCommandResolver:OKc})}}),_.M("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.M(_.rC,{data:function(){return h().menu}},{buttonViewModel:_.EG}))))},"xo"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.D4}});var mtJ={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 b=_.g.apply(this,arguments)||this;b.updateCompanionDataJobId=0;b.contentVideoId=null;b.player=null;b.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return b};
_.z(th,_.g);_.d=th.prototype;_.d.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:mtJ}}};
_.d.attached=function(){var b=this,h=_.ye();h&&h.getPlayerPromise().then(function(y){b.getCachedDataAndListen(y)})};
_.d.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.d.updateRendererStamper=function(){var b={};if(this.data)for(var h in mtJ)if(this.data[h]){b[h]=this.data[h];break}if(this.oneofRenderer!=void 0||Object.keys(b).length)this.oneofRenderer=b};
_.d.getCachedDataAndListen=function(b){var h=this.retrieveCachedCompanionData();h&&Object.keys(h).length&&this.receiveCompanionData(h);this.ytPlayerListenerBehavior.listenToPlayerEvent(b,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=b};
_.d.retrieveCachedCompanionData=function(){return _.S5.yt&&_.S5.yt.www&&_.S5.yt.www.ads&&_.S5.yt.www.ads.eventcache&&_.S5.yt.www.ads.eventcache.getLastCompanionData?_.S5.yt.www.ads.eventcache.getLastCompanionData():null};
_.d.receiveCompanionData=function(b){b&&Object.keys(b).length?(this.contentVideoId=b.contentVideoId,this.setCompanionData(b)):this.setCompanionData(b)};
_.d.setCompanionData=function(b){this.cancelPendingCompanionAdJobs();if(b){this.updateCompanionDataJobId=0;for(var h in mtJ)mtJ.hasOwnProperty(h)&&(this.data[h]=void 0);b.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",b.shoppingCompanionCarouselRenderer):b.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",b.imageCompanionAdRenderer):b.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",b.actionCompanionAdRenderer),_.aw(this.hostElement,
"yt-hide-unlimited-offer-module"),_.aw(this.hostElement,"yt-hide-tvfilm-offer-module")):b.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",b.bannerImageLayoutViewModel):b.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",b.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.d.dataChanged=function(){var b=this,h=_.ye();h?h.getPlayerPromise().then(function(y){b.contentVideoId&&y.getVideoUrl().includes("v="+b.contentVideoId)||(b.cancelPendingCompanionAdJobs(),b.updateRendererStamper())}):_.yb(Error("op"))};
_.d.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.xP.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.d.handleCompanionAdClicked=function(b,h){this.player.onAdUxClicked(b,h);this.player.pauseVideo()};
th.prototype.dataChanged=th.prototype.dataChanged;_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],th.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],th.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],th.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],th.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.UA.YtPlayerListenerBehavior),_.f("design:type",_.pf)],th.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],th.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],th.prototype,"oneofRenderer",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],th.prototype,"dataChanged",null);_.V([_.Yx({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],th);
_.k(th,"ytd-companion-slot-renderer",function(){if(qaP!==void 0)return qaP;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return qaP=b},{mode:_.Lt("kevlar_poly_si_batch_j067")?
1:2});var vpD;var rZ=function(){return _.g.apply(this,arguments)||this};
_.z(rZ,_.g);rZ.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
rZ.prototype.dataChanged=rZ.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],rZ.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],rZ.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],rZ.prototype,"companionSlotData",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],rZ.prototype,"dataChanged",null);
_.V([_.Yx({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],rZ);
_.k(rZ,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(vpD!==void 0)return vpD;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return vpD=b},{mode:1});var biP;var cc=function(){var b=_.g.apply(this,arguments)||this;b.skinnyMode=!1;b.COMPACT_EVENT_COUNT=4;b.onShelfToggleButtonTap=function(){b.logTap(b.data);b.showingMore=!b.showingMore};
b.onShelfToggleButtonFocus=function(){b.showingMore||(b.logTap(b.data),b.showingMore=!0,_.Ob(b,function(){var h=b.COMPACT_EVENT_COUNT-1,y;(y=_.$x(b.hostElement).querySelector("#event-"+h))==null||y.focus()}))};
return b};
_.z(cc,_.g);_.d=cc.prototype;_.d.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.d.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.d.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.Hl(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.Hl(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.Hl(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.Hl(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.Hl(this.infoTooltip,this.infoTooltip.hide))};
_.d.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.Hl(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.Hl(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.Hl(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.Hl(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.Hl(this.infoTooltip,this.infoTooltip.hide))};
_.d.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)};
_.d.onShowingMoreChanged=function(){var b;this.showingMoreChanged((b=this.showingMore)!=null?b:!1)};
_.d.showingMoreChanged=function(b){var h=this.get("data.events")||[];this.set("restEvents",h.slice(1,b?h.length:this.COMPACT_EVENT_COUNT).map(function(y){return y.ticketEventRenderer}));
h.slice(0,b?h.length:this.COMPACT_EVENT_COUNT).forEach(function(y){var S=_.UE();y=y.ticketEventRenderer.trackingParams;_.Ae()&&S&&y&&(y=_.I_(y),S&&_.iE(S,y))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.d.computeAriaLabel=function(b){return b.subtitle1+", "+b.subtitle2};
_.d.logTap=function(b){_.Ae()&&this.ytRendererBehavior.logExplicitClick(b)};
_.d.isKeyboardAction=function(b){return this.get("detail.x",b)===0&&this.get("detail.y",b)===0};
_.d.onFirstEventTap=function(b){b.target&&this.handleTap(b.target,this.firstEvent,this.isKeyboardAction(b))};
_.d.onTicketLinkTap=function(b){b.target&&this.handleTap(b.target,b.model.item,this.isKeyboardAction(b))};
_.d.handleTap=function(b,h,y){if(h.buttonCommand)if(h.hasMultipleOffers)Object.assign(_.c(h.buttonCommand,_.yG),{properties:{source:y?"keyboard":"tap"}}),this.logTap(h),this.popupPositionTarget=b,_.jx(this.hostElement,[h.buttonCommand],this.hostElement);else{var S;if((S=_.c(h.buttonCommand,_.jH))==null?0:S.url)this.logTap(h),_.d3(window,_.c(h.buttonCommand,_.jH).url)}};
cc.prototype.onShowingMoreChanged=cc.prototype.onShowingMoreChanged;cc.prototype.dataChanged=cc.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],cc.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],cc.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],cc.prototype,"firstEvent",void 0);_.V([_.C(),_.f("design:type",Object)],cc.prototype,"restEvents",void 0);_.V([_.C(),_.f("design:type",String)],cc.prototype,"imageUrl",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],cc.prototype,"showingMore",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],cc.prototype,"canShowMore",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],cc.prototype,"skinnyMode",void 0);_.V([_.C(),_.f("design:type",HTMLElement)],cc.prototype,"popupPositionTarget",void 0);_.V([_.to("#banner-info-tooltip"),_.f("design:type",Object)],cc.prototype,"infoTooltip",void 0);
_.V([_.to("#info-container"),_.f("design:type",HTMLElement)],cc.prototype,"infoContainer",void 0);_.V([_.to("#shelf-toggler"),_.f("design:type",HTMLElement)],cc.prototype,"shelfToggleButton",void 0);_.V([_.to("#separator"),_.f("design:type",HTMLDivElement)],cc.prototype,"separator",void 0);_.V([_.C(),_.f("design:type",String)],cc.prototype,"shelfTogglerLabelText",void 0);_.V([_.C(),_.f("design:type",String)],cc.prototype,"shelfTogglerIcon",void 0);
_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],cc.prototype,"dataChanged",null);_.V([_.zj("showingMore"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],cc.prototype,"onShowingMoreChanged",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],cc);
_.k(cc,"ytd-ticket-shelf-renderer",function(){if(biP!==void 0)return biP;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return biP=b},{mode:1});var hOc;var yt9;var SnD=function(){return _.g.apply(this,arguments)||this};
_.z(SnD,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],SnD.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],SnD.prototype,"data",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],SnD);
_.k(SnD,"ytd-comments-entry-point-message-renderer",function(){if(yt9!==void 0)return yt9;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return yt9=b},{mode:1});var FkD;var Rd=function(){return _.g.apply(this,arguments)||this};
_.z(Rd,_.g);_.tm.Object.defineProperties(Rd.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.data)==null||!b.teaserAvatar)}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Rd.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Rd.prototype,"data",void 0);_.V([_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Rd.prototype,"hasAvatar",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],Rd);
_.k(Rd,"ytd-comments-entry-point-teaser-renderer",function(){if(FkD!==void 0)return FkD;var b=document.createElement("template");_.D(b,'\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>');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return FkD=b},{mode:1});var aU2;var dm9=function(){return _.g.apply(this,arguments)||this};
_.z(dm9,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],dm9.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],dm9.prototype,"data",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],dm9);
_.k(dm9,"ytd-comments-simplebox-renderer",function(){if(aU2!==void 0)return aU2;var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return aU2=b},{mode:1});var z8=function(){var b=_.g.apply(this,arguments)||this;b.fullHeight=!_.r("comment_teaser_full_height_kill_switch")&&_.r("kevlar_watch_grid");return b};
_.z(z8,_.g);z8.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"}}}};
z8.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
z8.prototype.onTap=function(){var b=this.tapCommand;b&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(b))};
z8.prototype.onKeyUp=function(b){if(b.keyCode===13)this.onTap()};
_.tm.Object.defineProperties(z8.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var b;if((b=this.data)==null?0:b.onTap)return this.data.onTap;var h,y;if(((h=this.data)==null?0:h.teaserContent)||((y=this.data)==null?0:y.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var b;return(b=this.data)==null?void 0:b.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var b;return(b=this.data)==null?void 0:b.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var b;return(b=this.data)==null?void 0:b.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var b;return(b=this.data)==null?void 0:b.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var b;return(b=this.data)==null?void 0:b.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var b;return(b=this.data)==null?void 0:b.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var b;return(b=this.data)!=null&&b.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
z8.prototype.onKeyUp=z8.prototype.onKeyUp;z8.prototype.onTap=z8.prototype.onTap;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],z8.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],z8.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],z8.prototype,"ytComponentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],z8.prototype,"data",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],z8.prototype,"fullHeight",void 0);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],z8.prototype,"tapCommand",null);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],z8.prototype,"simpleboxPlaceholder",null);_.V([_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],z8.prototype,"hasSimpleboxPlaceholder",null);
_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],z8.prototype,"simpleboxAvatar",null);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],z8.prototype,"teaserContent",null);_.V([_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],z8.prototype,"hasTeaserContent",null);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],z8.prototype,"teaserAvatar",null);
_.V([_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],z8.prototype,"hasTeaserAvatar",null);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],z8.prototype,"messageText",null);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],z8.prototype,"contentRenderer",null);_.V([_.W("data"),_.C({reflectToAttribute:!0}),_.f("design:type",Boolean),_.f("design:paramtypes",[])],z8.prototype,"hasContents",null);
_.V([_.W("data"),_.C({reflectToAttribute:!0}),_.f("design:type",Boolean),_.f("design:paramtypes",[])],z8.prototype,"hasContentRenderer",null);_.V([_.u3("click"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],z8.prototype,"onTap",null);_.V([_.u3("keypress"),_.f("design:type",Function),_.f("design:paramtypes",[_.Cv]),_.f("design:returntype")],z8.prototype,"onKeyUp",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],z8);
_.k(z8,"ytd-comments-entry-point-header-renderer",function(){if(hOc!==void 0)return hOc;var b=document.createElement("template");_.D(b,'\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>');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return hOc=b},{mode:1});var jUP;_.yd(_.kW8,"yt-animated-rolling-number",{props:{numberText:_.D4,numberValue:_.D4,heightPx:_.D4,fontSizeMultiplier:_.D4,shouldAnimate:_.D4,forceRollUp:_.D4}});var $mL=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),LkR={numberText:"",heightPx:2*$mL,shouldAnimate:!1},D2=function(){var b=_.g.apply(this,arguments)||this;b.usingAnimatedComponents=!0;b.wasDetailed=!1;b.JSC$23619_browserSupportsAnimation=_.r("web_supports_animations_api");b.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};b.detailed=!1;b.shouldAnimate=!1;b.viewCountProps=LkR;b.dateTextProps=
LkR;b.metadataBadgesInDescription=_.r("web_metadata_badges_in_description");return b};
_.z(D2,_.g);_.d=D2.prototype;_.d.attached=function(){var b=this;_.H9().resolve(_.l7).subtitleChangeCallbackMap.set("ytd-watch-info-text",function(h){b.set("videoPrimaryInfoRenderer.subtitle",h)})};
_.d.detached=function(){_.H9().resolve(_.l7).subtitleChangeCallbackMap.delete("ytd-watch-info-text")};
_.d.resetAnimationState=function(){this.shouldAnimate=!1};
_.d.updateDynamicMetadata=function(){if(this.JSC$23619_browserSupportsAnimation){if(!this.detailed){var b,h,y,S;var F=(b=this.videoPrimaryInfoRenderer)==null?void 0:(h=b.viewCount)==null?void 0:(y=h.videoViewCountRenderer)==null?void 0:(S=y.extraShortViewCount)==null?void 0:S.simpleText;var a,P,K,n;var X=(a=this.videoPrimaryInfoRenderer)==null?void 0:(P=a.viewCount)==null?void 0:(K=P.videoViewCountRenderer)==null?void 0:(n=K.shortViewCount)==null?void 0:n.simpleText}if(!X){var u,O,N,t;F=(u=this.videoPrimaryInfoRenderer)==
null?void 0:(O=u.viewCount)==null?void 0:(N=O.videoViewCountRenderer)==null?void 0:(t=N.unlabeledViewCountValue)==null?void 0:t.simpleText;var R,I,U,p;X=(R=this.videoPrimaryInfoRenderer)==null?void 0:(I=R.viewCount)==null?void 0:(U=I.videoViewCountRenderer)==null?void 0:(p=U.viewCount)==null?void 0:p.simpleText}var e,E,Y;b=Number((e=this.videoPrimaryInfoRenderer)==null?void 0:(E=e.viewCount)==null?void 0:(Y=E.videoViewCountRenderer)==null?void 0:Y.originalViewCount);var w,x;e=(w=this.videoPrimaryInfoRenderer)==
null?void 0:(x=w.relativeDateText)==null?void 0:x.simpleText;var q;w=!((q=this.videoPrimaryInfoRenderer)==null||!q.relativeDateText);if(F&&X&&b&&(e||!w)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;q=X.split(new RegExp("("+F+")"));F=_.mk(q[0]);var dI;X={numberText:(dI=q[1])!=null?dI:"",numberValue:b,heightPx:2*$mL,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var L4;dI=((L4=q[2])!=null?L4:"")+"  ";this.setViewCount(X,F,_.mk(dI));if(!this.detailed&&
w){F=e.split(/(\d+)/);L4=_.mk(F[0]);var Rq;dI={numberText:(Rq=F[1])!=null?Rq:"",heightPx:2*$mL,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var Xn;Rq=((Xn=F[2])!=null?Xn:"")+"  ";this.setDateText(dI,L4,_.mk(Rq))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.d.setViewCount=function(b,h,y){_.vi(h)!==_.vi(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=h);this.viewCountProps.numberText!==(b==null?void 0:b.numberText)&&(this.viewCountProps=b||LkR);_.vi(y)!==_.vi(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=y)};
_.d.setDateText=function(b,h,y){_.vi(h)!==_.vi(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=h);this.dateTextProps.numberText!==(b==null?void 0:b.numberText)&&(this.dateTextProps=b||LkR);_.vi(y)!==_.vi(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=y)};
_.d.onYtUpdateViewershipAction=function(b){this.videoPrimaryInfoRenderer&&(_.c(b,ChL).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.c(b,ChL).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.c(b,ChL).viewCount)))};
_.d.onYtUpdateDateTextAction=function(b){if(this.videoPrimaryInfoRenderer){b=_.c(b,_.JRL).dateText;this.shouldAnimate=!0;var h;((h=this.videoPrimaryInfoRenderer)==null?0:h.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",b):this.set("videoPrimaryInfoRenderer.dateText",b)}};
_.tm.Object.defineProperties(D2.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return RmD(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.vi(RmD(this.videoPrimaryInfoRenderer,!0,!0,"\u2022",!0))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.vi(this.viewCountPreNumberText),this.viewCountProps.numberText,_.vi(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.vi(this.dateTextPreNumberText),this.dateTextProps.numberText,_.vi(this.dateTextPostNumberText)].join("")}}});
D2.prototype.updateDynamicMetadata=D2.prototype.updateDynamicMetadata;D2.prototype.resetAnimationState=D2.prototype.resetAnimationState;_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],D2.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],D2.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],D2.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],D2.prototype,"ytActionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],D2.prototype,"videoPrimaryInfoRenderer",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],D2.prototype,"detailed",void 0);_.V([_.C(),_.f("design:type",Object)],D2.prototype,"shouldAnimate",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],D2.prototype,"viewCountPreNumberText",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],D2.prototype,"viewCountProps",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],D2.prototype,"viewCountPostNumberText",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],D2.prototype,"dateTextPreNumberText",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],D2.prototype,"dateTextProps",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],D2.prototype,"dateTextPostNumberText",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],D2.prototype,"metadataBadgesInDescription",void 0);_.V([_.W("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.f("design:type",Object),_.f("design:paramtypes",[])],D2.prototype,"infoText",null);
_.V([_.W("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.f("design:type",String),_.f("design:paramtypes",[])],D2.prototype,"descriptionInfoTooltipText",null);_.V([_.W("detailed"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],D2.prototype,"showDescriptionInfoTooltip",null);
_.V([_.W("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.f("design:type",String),_.f("design:paramtypes",[])],D2.prototype,"animatedViewCountAccessibilityLabel",null);_.V([_.W("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.f("design:type",String),_.f("design:paramtypes",[])],D2.prototype,"animatedDateTextAccessibilityLabel",null);
_.V([_.OB("videoPrimaryInfoRenderer"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],D2.prototype,"resetAnimationState",null);_.V([_.OB("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],D2.prototype,"updateDynamicMetadata",null);
_.V([_.Yx({disableElementRegistration:!0,is:"ytd-watch-info-text"})],D2);
_.k(D2,"ytd-watch-info-text",function(){if(jUP!==void 0)return jUP;var b=document.createElement("template");_.D(b,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <template is="dom-if" if="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string id="subtitle" ellipsis-truncate="" text="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    </yt-formatted-string>\n  </template>\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<template is="dom-if" restamp="" if="[[showDescriptionInfoTooltip]]" class="style-scope ytd-watch-info-text">\n  <tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n</template>\n');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return jUP=b},{mode:1});var PS$;var Kkx="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var ZiJ=_.T(function(b){var h=b.data;var y=b.setTapCommand;_.Qi(function(){var S=_.YS(h().onTap);y(S)},"CLm0Xe");
return _.M("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.M(_.rC,{data:function(){return h().avatar}},{avatarViewModel:_.OX}),_.M("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.M("span",null,function(){return h().simpleboxText})))},"zo");var o8J=_.T(function(b){return _.M("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.M(_.H,{cond:function(){return _.c(b.data().avatar,_.sF)},
then:function(h){return _.M(_.OX,{data:h,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.M("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.M(_.zv,{text:function(){return b.data().teaserText}})))},"Ao");var M7c=_.T(function(b){var h=b.data;var y=b.setTapCommand;_.Qi(function(){var S=_.YS(h().onTap);y(S)},"qxjCCd");
return _.M("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.M(_.rC,{data:function(){return h().teasers}},{commentsEntryPointTeaserViewModel:o8J}))},"Co");var n8$=_.T(function(b){var h=b.data;var y=b.setTapCommand;_.Qi(function(){var S=_.YS(h().onTap);y(S)},"CRZByf");
return _.M("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.M(_.zv,{text:function(){return h().messageText}}))},"Eo");var Xix=_.T(function(b){var h=b.data;var y=b.setTapCommand;var S=b.isDisabled;_.Qi(function(){var F=(S==null?0:S())?void 0:_.YS(h().onTap);y(F)},"GZxRqd");
return _.M("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.M(_.Xv,{icon:function(){return h().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.M(_.H,{cond:function(){return h().image},
then:function(F){return _.M(_.mI,{data:F,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.M(_.zv,{text:function(){return h().text},
className:function(){return h().image||h().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.M(_.rC,{data:function(){return h().button}},{buttonViewModel:function(F){return _.M(_.EG,{data:F.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:S==null?void 0:S()}}})}}))},"Go");var Hi_=_.T(function(b){var h=b.data;var y=b.itemIndex;var S=b.selectedIndex;var F=b.indexUpdatedCallback;var a=b.observer;b=b.title;var P=_.ZR("yt-carousel-item-view-model",function(O){a&&a().observe(O)}),K=function(O){y()===S()&&F(O)},n=_.NG(xOx),X=_.NG(_.fHk),u=function(){var O,N,t,R,I;
return((O=h())==null?void 0:O.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!n()||((N=h())==null?void 0:N.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&((t=X())==null?void 0:t.includes("PAposts_by_host"))||((R=h())==null?void 0:R.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&((I=X())==null?void 0:I.includes("PAyouchat"))};
return _.M("yt-carousel-item-view-model",{el:P,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":b},_.M(_.rC,{data:function(){var O,N;return(N=(O=_.c(h().carouselItem,FVP))==null?void 0:O.textCarousel)!=null?N:h().carouselItem}},{textCarouselItemViewModel:function(O){return _.M(Xix,{data:O.data,
setTapCommand:K,isDisabled:u})},
commentTeaserCarouselItemViewModel:function(O){return _.M(M7c,{data:O.data,setTapCommand:K})},
commentInputBoxCarouselItemViewModel:function(O){return _.M(ZiJ,{data:O.data,setTapCommand:K})},
commentsEntryPointMessageViewModel:function(O){return _.M(n8$,{data:O.data,setTapCommand:K})}}))},"Ho");var uF$=_.T(function(b){var h=b.numDots;var y=b.activeIndex;return _.M("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.M(_.Gw,{each:function(){return Array.from({length:h()})},
keyBy:"INDEX"},function(S,F){return _.M("div",{class:function(){var a={};return _.AB("ytCarouselDotsShapeDot",(a.ytCarouselDotsShapeDotActive=F===y(),a))}})}))},"Io");var OiJ=_.T(function(b){var h=b.data;var y=b.handleCarouselNavigation;var S=b.numItems;var F=b.selectedIndex;var a=function(){return{disabled:F()===0}},P=function(){return{disabled:F()===S()-1}};
return _.M("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.M("div",null,_.M("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return h().title}),_.M(_.H,{cond:function(){return h().subtitle},
then:function(K){return _.M("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return h().subtitleAccessibilityText}},K)}})),_.M(_.H,{cond:function(){return S()>1},
then:function(){return _.M("div",{class:"ytCarouselTitleViewModelNavigation"},_.M(uF$,{numDots:S,activeIndex:F}),_.M(_.H,{cond:function(){return h().previousButton},
then:function(K){return _.M(_.rC,{data:K},{buttonViewModel:function(n){return _.M(_.EG,{data:n.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return y(-1)},
buttonOverrides:a})}})}}),_.M(_.H,{cond:function(){return h().nextButton},
then:function(K){return _.M(_.rC,{data:K},{buttonViewModel:function(n){return _.M(_.EG,{data:n.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return y(1)},
buttonOverrides:P})}})}}))}}))},"Jo");_.yd(_.T(function(b){var h=b.data;var y,S=_.ZR("yt-video-metadata-carousel-view-model"),F=_.ZR("div",function(w){var x=function(){var q=w.offsetWidth*I(),dI=24*(I()-1);N(q+dI)};
x();window.ResizeObserver&&(y=new ResizeObserver(x),y.observe(w))}),a=_.QC("HTML_DIR")==="rtl",P=!1,K=0,n=0;
b=_.L(_.pa(0,void 0,"M49TDf"));var X=b.next().value,u=b.next().value;b=_.L(_.pa(0,void 0,"zLIok"));var O=b.next().value,N=b.next().value;b=_.L(_.pa(!1,void 0,"bhelhc"));var t=b.next().value,R=b.next().value,I=function(){var w,x,q;return(q=(w=h())==null?void 0:(x=w.carouselTitles)==null?void 0:x.length)!=null?q:0},U=function(){F.value&&F.value.scrollLeft!==K&&u((a?F.value.scrollLeft<K:F.value.scrollLeft>K)?Math.min(X()+1,I()-1):Math.max(X()-1,0))},p;
window.IntersectionObserver&&(p=new IntersectionObserver(function(w){w=_.L(w);for(var x=w.next();!x.done;x=w.next())if(x.value.isIntersecting){if(P){P=!1;break}U()}else u(n)},{threshold:.2}));
_.Qi(function(){if(F.value){var w=(a?-1:1)*(O()/I()+12)*(t()&&p?n:X());typeof F.value.scrollTo==="function"?F.value.scrollTo({left:w,behavior:"smooth"}):F.value.scrollLeft=w;K=w;n=t()&&p?n:X()}},"s9rbgc");
var e,E=function(w){e=w};
_.m2(function(){var w;(w=y)==null||w.disconnect();var x;(x=p)==null||x.disconnect()});
var Y=function(w){w=X()+w;w>=0&&w<I()&&(P=!0,u(w))};
return _.M("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:S,"on:click":_.Zv(function(w){if(_.ph(_.UF(w),S.value,["BUTTON".toString()])||!e)return!1;_.H9().resolve(_.OM).resolveCommand(e,{forceClickLogging:!0});return!1}),
"on:touchstart":_.Zv(function(){R(!0);return!1}),
"on:touchend":_.Zv(function(){p||U();R(!1);return!1}),
hidden:function(){var w,x;return!((w=h())==null?0:(x=w.carouselItems)==null?0:x.length)}},_.M("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.M(_.H,{cond:function(){return h().carouselTitles},
then:function(w){return _.M(_.rC,{data:function(){return w()[t()&&p?n:X()]}},{carouselTitleViewModel:function(x){return _.M(OiJ,{data:x.data,
handleCarouselNavigation:Y,numItems:I,selectedIndex:X})}})}})),_.M("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:F},_.M("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+O()+"px;"}},_.M(_.H,{cond:function(){return h().carouselItems},
then:function(w){return _.M(_.Gw,{each:w},function(x,q){return _.M(_.rC,{data:function(){return x}},{carouselItemViewModel:function(dI){return _.M(Hi_,{data:dI.data,
itemIndex:q,selectedIndex:X,indexUpdatedCallback:E,observer:p,title:function(){a:{var L4=q();var Rq,Xn=(Rq=h())==null?void 0:Rq.carouselTitles;if(Xn&&(L4=Xn[L4])){var Ny;L4=(Ny=_.c(L4,SP2))==null?void 0:Ny.title;break a}L4=void 0}return L4}})}})})}}))))},"Lo"),"yt-video-metadata-carousel-view-model",{props:{data:_.D4}});var NRL=_.r("web_action_buttons_update_owner_width")?32:12,Id=function(){var b=_.g.apply(this,arguments)||this;b.isHovering=!1;b.enableColorSampling=_.r("web_delhi_colorful_sd");b.metadataBadgesInDescription=_.r("web_metadata_badges_in_description");b.descriptionCollapsed=!0;b.useFadedScrimDescription=_.r("kevlar_enable_faded_scrim_on_description");b.skinnyMode=!1;b.playlist=!1;b.isDark=document.documentElement.hasAttribute("dark");b.disableVideoOwnerOnTap=_.r("swatchie_video_owner_on_tap_ks");b.swatcherooDelayLoad=
_.r("swatcheroo_enable_ghost_cards");b.primaryMenuWidth=0;b.videoId="";b.titleHeadlineXs=_.r("web_watch_typography_title_headline_xs");b.titleHeadlineS=_.r("web_watch_typography_title_headline_s");b.titleHeadlineM=_.r("web_watch_typography_title_headline_m");b.titleHashtagBlackLinkified=_.r("web_title_hashtag_black_linkified");b.titleHashtagGreyLinkified=_.r("web_title_hashtag_grey_linkified");b.actionButtonsUpdateOwnerWidth=_.r("web_action_buttons_update_owner_width");b.shouldForceIconOnly=!1;b.actionMap=
{"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};b.isFullscreen=!1;b.isTheaterMode=!1;return b};
_.z(Id,_.g);_.d=Id.prototype;_.d.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.d.updateOwnerAndDescriptionPosition=function(){_.r("kevlar_watch_grid")&&this.titleElement&&this.descriptionElement&&this.bottomRowElement&&this.ownerElement&&this.topRowElement&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.JI(this.bottomRowElement,this.ownerElement)):(_.JI(this.bottomRowElement,this.descriptionElement),_.JI(this.topRowElement,this.ownerElement)))};
_.d.titleOnTap=function(b){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.mf(_.Qk(b)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var h;((h=window.getSelection())==null?0:h.toString().length)||this.handleExpandDescriptionCommands()}};
_.d.videoOwnerOnTap=function(b){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.mf(_.Qk(b)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.d.detached=function(){var b=this,h;return _.Z(function(y){(h=b.resizeObserver)==null||h.disconnect();_.g3(y)})};
_.d.maybeAttachResizeObserver=function(){var b=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.MG(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){b.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.d.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var b=this.hostElement.clientWidth,h=Math.max(this.largerItemWrap?400:350,b/2-NRL);_.r("web_action_buttons_update_owner_width")&&(h=this.ownerElement.clientWidth+NRL);this.actionsOnSeparateLine=this.primaryMenuWidth>b-h?!0:!1}};
_.d.stripAttributedDescription=function(b){return{content:b.content.replace(/[\r\n]{2,}/g,"\n")}};
_.d.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.r("web_modern_buttons"),forceIconButton:!_.r("web_modern_buttons")},properties:{topLevelIconsOnly:"[[skinnyMode]]"}}},events:!0},"videoSecondaryInfoRenderer.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:{component:"ytd-subscribe-button-renderer",
params:{withCount:!0,showTextWhileAnimating:!0},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"}}}};
_.d.videoPrimaryInfoRendererChanged=function(){var b;if((b=this.videoPrimaryInfoRenderer)==null?0:b.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.d.videoSecondaryInfoRendererChanged=function(){var b,h;(b=this.descriptionInlineExpander)==null||(h=b.collapse)==null||h.call(b);this.descriptionExpandClientVe=_.Kh(110509);this.descriptionCollapseClientVe=_.Kh(110510);b=_.UE();h=_.Ae();b&&h&&(_.r("combine_ve_grafts")?(_.lC(_.rU(),this.descriptionExpandClientVe,h),_.lC(_.rU(),this.descriptionCollapseClientVe,h)):_.Ea(b,h,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.d.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.d.updateTopLevelIconsOnly=function(){var b=this;_.r("top_level_update_killswitch")||this.menu&&_.xP.addLowPriorityJob(function(){b.menu.topLevelIconsOnly=b.skinnyMode},_.tj("swathceroo_delay_flexible_menu_update",100))};
_.d.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=!0};
_.d.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.d.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.d.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.d.onYtTextInlineExpanderExpandedChanged=function(){if(!_.r("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var b,h;(h=(b=this.structuredDescriptionContentRendererElement).resize)==null||h.call(b)}};
_.d.onRenderStamperFinished=function(b){(b==null?void 0:b.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.d.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.d.onYtExpanderLessTapped=function(){var b,h=(b=this.videoSecondaryInfoRenderer)==null?void 0:b.showLessCommand;h&&this.ytComponentBehavior.resolveCommand(h)};
_.d.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.d.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.d.onDescriptionClick=function(b){if(!_.mf(_.Qk(b)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var h;((h=window.getSelection())==null?0:h.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.r("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.d.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.d.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.d.logCollapseClick=function(){var b=_.UE();b&&this.descriptionCollapseClientVe&&_.lE(b,this.descriptionCollapseClientVe)};
_.d.logExpandClick=function(){var b=_.UE();b&&this.descriptionExpandClientVe&&_.lE(b,this.descriptionExpandClientVe)};
_.d.collapseDescription=function(){this.descriptionCollapsed=!0};
_.d.scrollToTopOfContainer=function(){_.F8(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.d.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.d.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.d.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.d.resize=function(){if(this.videoSecondaryInfoRenderer)if(this.descriptionInlineExpander){var b,h;(h=(b=this.descriptionInlineExpander).resize)==null||h.call(b)}else _.vX(new _.Gn("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var y;(y=this.menu)==null||y.maybeFlushDebouncer();this.updatePrimaryMenuWidth();this.primaryMenuWidth!==0&&this.maybeUpdateActionsOnSeparateLine()}};
_.d.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var b,h,y,S,F=_.r("web_action_buttons_update_owner_width")?(y=(b=_.$x(this.menu).querySelector("#button-shape"))==null?void 0:b.clientWidth)!=null?y:0:(S=(h=_.$x(this.menu).querySelector("#button"))==null?void 0:h.clientWidth)!=null?S:0,a,P;b=((P=(a=_.$x(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:a.clientWidth)!=null?P:0)+8+F;var K,n;F=(n=(K=_.$x(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:K.children.length)!=null?n:2;b<=8*F||(this.primaryMenuWidth=b)}};
_.d.onYtUpdateTitleAction=function(b){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.c(b,eL9).title)};
_.d.onYtUpdateDescriptionAction=function(b){if(b=_.c(b,_.ecW)){var h,y=!((h=this.videoSecondaryInfoRenderer)==null||!h.attributedDescription);b.isEmpty||!b.description&&!b.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):b.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",b.attributedDescription):b.description&&(y?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.ej(b.description)):this.set("videoSecondaryInfoRenderer.description",b.description))}};
_.d.onYtDarkModeToggledAction=function(b){this.isDark=b};
_.d.registerPanel=function(){if(!_.r("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var b=_.r("web_watch_imax_theater_mode")&&this.isTheaterMode;b=_.r("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||b;var h=_.H9().resolve(_.Mp);h&&!b&&h.registerPanel("engagement-panel-structured-description",this)}};
_.d.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.d.parseColorSamplingData=function(){var b;if(_.r("web_delhi_colorful_sd")&&((b=this.structuredDescriptionContentRenderer)==null?0:b.items)&&(b=this.structuredDescriptionContentRenderer.items.find(function(F){return!!_.c(F,er)}))){var h,y;
this.hoverColor={lightTheme:(h=_.c(b,er))==null?void 0:h.lightThemeColorPalette,darkTheme:(y=_.c(b,er))==null?void 0:y.darkThemeColorPalette};var S;this.hoverText=(S=_.c(b,er))==null?void 0:S.colorSampledDescriptionBodyText}};
_.d.updateHoverColor=function(){if(_.r("web_delhi_colorful_sd")){var b=this.hoverColor,h={},y;b=(y=this.isDark?b==null?void 0:b.darkTheme:b==null?void 0:b.lightTheme)!=null?y:{};y=_.L(Kkx);for(var S=y.next();!S.done;S=y.next()){S=S.value;var F=b[S];h["--yt-saturated-"+_.MQ(S)]=F?_.CR(F):"initial"}_.nZ(this.hostElement,h)}};
_.d.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.d.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.d.showPanel=function(b){this.expandDescription();var h=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;h.resize();var y,S=b==null?void 0:(y=b.sectionListEngagementPanelExtras)==null?void 0:y.scrollToItemSectionIdentifier;S?_.xP.addJob(function(){h==null||h.scrollToSection(S)},8):this.scrollToTopOfContainer()};
_.d.isVisible=function(){return!this.descriptionCollapsed};
_.d.getReloadContinuation=function(){};
_.d.hidePanel=function(){};
_.d.updatePanel=function(){};
_.tm.Object.defineProperties(Id.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var b;return _.r("web_delhi_colorful_sd")&&(b=this.structuredDescriptionContentRenderer)!=null&&b.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(h){return!_.c(h,er)&&!_.c(h,YP2)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var b;if((b=this.structuredDescriptionContentRendererComputed)!=null&&b.items){var h;b=_.L((h=this.structuredDescriptionContentRendererComputed)==null?void 0:h.items);for(h=b.next();!h.done;h=b.next())if(h=_.c(h.value,_.Ih5))return h}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.videoPrimaryInfoRenderer)==null?0:b.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var b,h,y;return!!((b=this.videoSecondaryInfoRenderer)==null?0:(h=b.owner)==null?0:(y=h.videoOwnerRenderer)==null?0:y.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var b,h;if((b=this.videoSecondaryInfoRenderer)==null?0:(h=b.attributedDescription)==null?0:h.content){var y,S;return(S=this.stripAttributedDescription((y=this.videoSecondaryInfoRenderer)==null?void 0:y.attributedDescription))!=null?S:{runs:[]}}}if(_.r("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var F,a,P,K;return(K=(P=(F=this.videoSecondaryInfoRenderer)==
null?void 0:F.description)!=null?P:(a=this.videoSecondaryInfoRenderer)==null?void 0:a.attributedDescription)!=null?K:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var b,h;return(h=(b=this.videoSecondaryInfoRenderer)==null?void 0:b.headerRuns)!=null?h:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.commentsEntryPointHeaderRenderer)==null||!b.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.videoMetadataCarousel)==null||!b.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.tj("swatchie_desc_lines",3):this.hasTeaserCarousel?2:3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var b,h,y=Object.assign({},(b=this.videoSecondaryInfoRenderer)==null?void 0:(h=b.metadataRowContainer)==null?void 0:h.metadataRowContainerRenderer);if(y&&y.rows&&y.collapsedItemCount!==void 0&&!(y.rows.length<=y.collapsedItemCount))return y.rows=y.rows.slice(y.collapsedItemCount),y.collapsedItemCount=0,y}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var b,h,y=Object.assign({},(b=this.videoSecondaryInfoRenderer)==null?void 0:(h=b.metadataRowContainer)==null?void 0:h.metadataRowContainerRenderer);if(y&&y.rows&&y.collapsedItemCount!==void 0)return y.rows=y.rows.slice(0,y.collapsedItemCount),y.collapsedItemCount=y.rows.length,y}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var b,h;return!!((b=this.structuredDescriptionContentRendererComputed)==null?0:(h=b.items)==null?0:h.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 b;return(b=this.videoSecondaryInfoRenderer)==null?void 0:b.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var b,h,y;return((b=this.videoSecondaryInfoRenderer)==null?0:(h=b.owner)==null?0:(y=h.videoOwnerRenderer)==null?0:y.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var b,h,y,S;return!!((b=this.videoPrimaryInfoRenderer)==null?0:(h=b.videoActions)==null?0:(y=h.menuRenderer)==null?0:(S=y.flexibleItems)==null?0:S.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.li(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.li(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var b=this;if(_.r("web_title_hashtag_grey_delinkified")){var h,y=_.lR.unsafeClone((h=this.videoPrimaryInfoRenderer)==null?void 0:h.title);(h=y==null?void 0:y.runs)&&h.forEach(function(S){if(S==null?0:S.navigationEndpoint)S.textColor=4284506208,b.isDark&&(S.textColor=4289374890)});
return y}return(y=this.videoPrimaryInfoRenderer)==null?void 0:y.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.r("web_title_hashtag_black_delinkified")||_.r("web_title_hashtag_grey_delinkified")}}});
Id.prototype.updateHoverColor=Id.prototype.updateHoverColor;Id.prototype.parseColorSamplingData=Id.prototype.parseColorSamplingData;Id.prototype.resetDescriptionState=Id.prototype.resetDescriptionState;Id.prototype.registerPanel=Id.prototype.registerPanel;Id.prototype.onYtExpanderLessTapped=Id.prototype.onYtExpanderLessTapped;Id.prototype.onYtExpanderMoreTapped=Id.prototype.onYtExpanderMoreTapped;Id.prototype.onRenderStamperFinished=Id.prototype.onRenderStamperFinished;
Id.prototype.onYtTextInlineExpanderExpandedChanged=Id.prototype.onYtTextInlineExpanderExpandedChanged;Id.prototype.onYtTextInlineExpanderCollapseClicked=Id.prototype.onYtTextInlineExpanderCollapseClicked;Id.prototype.onYtTextInlineExpanderExpandClicked=Id.prototype.onYtTextInlineExpanderExpandClicked;Id.prototype.moveActionsElement=Id.prototype.moveActionsElement;Id.prototype.updateShouldForceIconOnly=Id.prototype.updateShouldForceIconOnly;Id.prototype.updateTopLevelIconsOnly=Id.prototype.updateTopLevelIconsOnly;
Id.prototype.structuredDescriptionContentRendererChanged=Id.prototype.structuredDescriptionContentRendererChanged;Id.prototype.videoSecondaryInfoRendererChanged=Id.prototype.videoSecondaryInfoRendererChanged;Id.prototype.videoPrimaryInfoRendererChanged=Id.prototype.videoPrimaryInfoRendererChanged;Id.prototype.maybeUpdateActionsOnSeparateLine=Id.prototype.maybeUpdateActionsOnSeparateLine;Id.prototype.updateOwnerAndDescriptionPosition=Id.prototype.updateOwnerAndDescriptionPosition;
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],Id.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],Id.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Id.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Id.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.NT),_.f("design:type",Object)],Id.prototype,"ytdReduxBehavior",void 0);_.V([_.to("#above-the-fold"),_.f("design:type",HTMLElement)],Id.prototype,"aboveTheFoldContainer",void 0);_.V([_.to("#menu ytd-menu-renderer"),_.f("design:type",Object)],Id.prototype,"menu",void 0);_.V([_.to("#description-inline-expander"),_.f("design:type",Object)],Id.prototype,"descriptionInlineExpander",void 0);
_.V([_.to("#faded-structured-description"),_.f("design:type",Object)],Id.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.V([_.to("#structured-description"),_.f("design:type",Object)],Id.prototype,"structuredDescriptionContentRendererElement",void 0);_.V([_.to("#title"),_.f("design:type",HTMLElement)],Id.prototype,"titleElement",void 0);_.V([_.to("#description"),_.f("design:type",HTMLElement)],Id.prototype,"descriptionElement",void 0);
_.V([_.to("#description-interaction"),_.f("design:type",Object)],Id.prototype,"descriptionInteraction",void 0);_.V([_.to("#owner"),_.f("design:type",HTMLElement)],Id.prototype,"ownerElement",void 0);_.V([_.to("#top-row"),_.f("design:type",HTMLElement)],Id.prototype,"topRowElement",void 0);_.V([_.to("#bottom-row"),_.f("design:type",HTMLElement)],Id.prototype,"bottomRowElement",void 0);_.V([_.to("#actions"),_.f("design:type",HTMLElement)],Id.prototype,"actionsElement",void 0);
_.V([_.to("#bottom-actions"),_.f("design:type",HTMLElement)],Id.prototype,"bottomActionsElement",void 0);_.V([_.to("#ytd-watch-info-text"),_.f("design:type",Object)],Id.prototype,"watchInfoTextElement",void 0);_.V([_.C(),_.f("design:type",Object)],Id.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],Id.prototype,"videoPrimaryInfoRenderer",void 0);_.V([_.C(),_.f("design:type",Object)],Id.prototype,"videoSecondaryInfoRenderer",void 0);
_.V([_.C(),_.f("design:type",Object)],Id.prototype,"commentsEntryPointHeaderRenderer",void 0);_.V([_.C(),_.f("design:type",Object)],Id.prototype,"videoMetadataCarousel",void 0);_.V([_.C(),_.f("design:type",Object)],Id.prototype,"structuredDescriptionContentRenderer",void 0);_.V([_.W("structuredDescriptionContentRenderer"),_.f("design:type",Object),_.f("design:paramtypes",[])],Id.prototype,"structuredDescriptionContentRendererComputed",null);
_.V([_.C(),_.f("design:type",Object)],Id.prototype,"videoSummary",void 0);_.V([_.C(),_.f("design:type",Object)],Id.prototype,"merchShelf",void 0);_.V([_.C(),_.f("design:type",Object)],Id.prototype,"infoPanelBelowMetadata",void 0);_.V([_.C(),_.f("design:type",Object)],Id.prototype,"hoverColor",void 0);_.V([_.C(),_.f("design:type",Object)],Id.prototype,"hoverText",void 0);_.V([_.C(),_.f("design:type",Object)],Id.prototype,"isHovering",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Id.prototype,"enableColorSampling",void 0);_.V([_.W("structuredDescriptionContentRendererComputed"),_.f("design:type",Object),_.f("design:paramtypes",[])],Id.prototype,"productShelf",null);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Id.prototype,"metadataBadgesInDescription",void 0);_.V([_.W("videoPrimaryInfoRenderer"),_.f("design:type",Object),_.f("design:paramtypes",[])],Id.prototype,"shouldHideBadges",null);
_.V([_.W("productShelf","descriptionCollapsed"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Id.prototype,"shouldShowProductShelf",null);_.V([_.C(),_.f("design:type",Boolean)],Id.prototype,"isWatchFlexy",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Id.prototype,"descriptionCollapsed",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],Id.prototype,"useFadedScrimDescription",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Id.prototype,"skinnyMode",void 0);_.V([_.C({reflectToAttribute:!0}),_.W("videoSecondaryInfoRenderer"),_.f("design:type",Object),_.f("design:paramtypes",[])],Id.prototype,"largerItemWrap",null);_.V([_.C(),_.f("design:type",Object)],Id.prototype,"playlist",void 0);_.V([_.C(),_.f("design:type",Object)],Id.prototype,"clarifyBox",void 0);_.V([_.C(),_.f("design:type",Object)],Id.prototype,"playerAds",void 0);
_.V([_.C(),_.f("design:type",Boolean)],Id.prototype,"isDark",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],Id.prototype,"actionsOnSeparateLine",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Id.prototype,"disableVideoOwnerOnTap",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Id.prototype,"swatcherooDelayLoad",void 0);_.V([_.C(),_.f("design:type",Boolean)],Id.prototype,"suppressTopLevelMetadataRows",void 0);
_.V([_.C(),_.f("design:type",Object)],Id.prototype,"primaryMenuWidth",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Id.prototype,"videoId",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Id.prototype,"titleHeadlineXs",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Id.prototype,"titleHeadlineS",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Id.prototype,"titleHeadlineM",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Id.prototype,"titleHashtagBlackLinkified",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Id.prototype,"titleHashtagGreyLinkified",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Id.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.V([_.C(),_.f("design:type",Object)],Id.prototype,"shouldForceIconOnly",void 0);
_.V([_.zj("skinnyMode"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Id.prototype,"updateOwnerAndDescriptionPosition",null);_.V([_.zj("skinnyMode"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Id.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.V([_.W("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.f("design:type",Object),_.f("design:paramtypes",[])],Id.prototype,"descriptionText",null);_.V([_.W("videoSecondaryInfoRenderer.headerRuns"),_.f("design:type",Array),_.f("design:paramtypes",[])],Id.prototype,"headerRuns",null);
_.V([_.C({value:!1}),_.W("commentsEntryPointHeaderRenderer"),_.f("design:type",Object),_.f("design:paramtypes",[])],Id.prototype,"hasTeaser",null);_.V([_.C({value:!1,reflectToAttribute:!0}),_.W("videoMetadataCarousel"),_.f("design:type",Object),_.f("design:paramtypes",[])],Id.prototype,"hasTeaserCarousel",null);_.V([_.C({value:3}),_.W("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.f("design:type",Object),_.f("design:paramtypes",[])],Id.prototype,"descriptionMaxLines",null);
_.V([_.W("videoSecondaryInfoRenderer.metadataRowContainer"),_.f("design:type",Object),_.f("design:paramtypes",[])],Id.prototype,"collapsibleMetadataRows",null);_.V([_.W("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.f("design:type",Object),_.f("design:paramtypes",[])],Id.prototype,"alwaysVisibleMetadataRows",null);
_.V([_.W("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Id.prototype,"hasInlineStructuredDescription",null);_.V([_.W("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Id.prototype,"showInlineStructuredDescription",null);
_.V([_.W("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.f("design:type",Object),_.f("design:paramtypes",[])],Id.prototype,"descriptionExpandCommand",null);_.V([_.W("videoSecondaryInfoRenderer.owner"),_.f("design:type",Object),_.f("design:paramtypes",[])],Id.prototype,"videoOwnerCommand",null);_.V([_.C({reflectToAttribute:!0}),_.W("videoPrimaryInfoRenderer.videoActions"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Id.prototype,"flexMenuEnabled",null);
_.V([_.C({selector:_.es,reflectToAttribute:!0}),_.f("design:type",Object)],Id.prototype,"isFullscreen",void 0);_.V([_.C({selector:_.J4,reflectToAttribute:!0}),_.f("design:type",Object)],Id.prototype,"isTheaterMode",void 0);_.V([_.W("descriptionText","useFadedScrimDescription"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Id.prototype,"showAttributedStringDescription",null);
_.V([_.W("descriptionText","useFadedScrimDescription"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Id.prototype,"showFormattedStringDescription",null);_.V([_.W("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Id.prototype,"showFadedStructuredDescription",null);
_.V([_.zj("videoPrimaryInfoRenderer"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Id.prototype,"videoPrimaryInfoRendererChanged",null);_.V([_.W("videoPrimaryInfoRenderer.title"),_.f("design:type",Object),_.f("design:paramtypes",[])],Id.prototype,"videoTitle",null);_.V([_.W("videoPrimaryInfoRenderer"),_.f("design:type",Object),_.f("design:paramtypes",[])],Id.prototype,"noEndpoints",null);
_.V([_.zj("videoSecondaryInfoRenderer"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Id.prototype,"videoSecondaryInfoRendererChanged",null);_.V([_.OB("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Id.prototype,"structuredDescriptionContentRendererChanged",null);
_.V([_.OB("skinnyMode"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Id.prototype,"updateTopLevelIconsOnly",null);_.V([_.OB("skinnyMode"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Id.prototype,"updateShouldForceIconOnly",null);_.V([_.OB("skinnyMode"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Id.prototype,"moveActionsElement",null);
_.V([_.u3("yt-text-inline-expander-expand-clicked"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Id.prototype,"onYtTextInlineExpanderExpandClicked",null);_.V([_.u3("yt-text-inline-expander-collapse-clicked"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Id.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.V([_.u3("yt-text-inline-expander-expanded-changed"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Id.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.V([_.u3("yt-rendererstamper-finished"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],Id.prototype,"onRenderStamperFinished",null);
_.V([_.u3("yt-expander-more-tapped"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Id.prototype,"onYtExpanderMoreTapped",null);_.V([_.u3("yt-expander-less-tapped"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Id.prototype,"onYtExpanderLessTapped",null);
_.V([_.OB("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Id.prototype,"registerPanel",null);_.V([_.OB("videoSecondaryInfoRenderer"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Id.prototype,"resetDescriptionState",null);
_.V([_.OB("structuredDescriptionContentRenderer"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Id.prototype,"parseColorSamplingData",null);_.V([_.OB("hoverColor","isDark"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Id.prototype,"updateHoverColor",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-watch-metadata"})],Id);
_.k(Id,"ytd-watch-metadata",function(){if(PS$!==void 0)return PS$;var b=document.createElement("template");_.D(b,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-metadata--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="above-the-fold" class="style-scope ytd-watch-metadata">\n  <div id="title" on-click="titleOnTap" class="style-scope ytd-watch-metadata">\n    <ytd-badge-supported-renderer hidden="[[!videoPrimaryInfoRenderer.topStandaloneBadge]]" top-standalone-badge="[[videoPrimaryInfoRenderer.topStandaloneBadge]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n    <h1 class="style-scope ytd-watch-metadata">\n      <yt-formatted-string force-default-style="" no-endpoints="[[noEndpoints]]" text="[[videoTitle]]" title="[[getSimpleString(videoPrimaryInfoRenderer.title)]]" class="style-scope ytd-watch-metadata">\n      </yt-formatted-string>\n    </h1>\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[shouldHideBadges]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n  </div>\n\n  <div id="top-row" class="style-scope ytd-watch-metadata">\n    <div id="owner" class="item style-scope ytd-watch-metadata" hidden="[[!videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" on-click="videoOwnerOnTap">\n      <ytd-video-owner-renderer data="[[videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" subscribe-key="[[videoSecondaryInfoRenderer.subscribeButton.subscribeButtonRenderer.subscribedEntityKey]]" watch-metadata-refresh="" class="style-scope ytd-watch-metadata">\n      </ytd-video-owner-renderer>\n      <div id="subscribe-button" class="style-scope ytd-watch-metadata"></div>\n    </div>\n    <div id="actions" class="item style-scope ytd-watch-metadata">\n      <div id="actions-inner" class="style-scope ytd-watch-metadata">\n        <div id="menu" class="style-scope ytd-watch-metadata"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="middle-row" class="style-scope ytd-watch-metadata"></div>\n\n  <div id="bottom-row" class="style-scope ytd-watch-metadata">\n    <template is="dom-if" if="[[videoSecondaryInfoRenderer]]" id="description-wrapper" class="style-scope ytd-watch-metadata">\n      <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick" on-mouseenter="onDescriptionMouseEnter" on-mouseleave="onDescriptionMouseLeave">\n        <div id="description-inner" class="style-scope ytd-watch-metadata">\n          <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n          \n          <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n            <ytd-merch-shelf-renderer data="[[productShelf]]" detailed-description-override="[[!descriptionCollapsed]]" class="style-scope ytd-watch-metadata">\n            </ytd-merch-shelf-renderer>\n          </template>\n          <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n            <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden$="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n            </yt-attributed-string>\n            \n            <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n            </yt-formatted-string>\n            <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRendererComputed]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n            <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n          </div>\n          <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n            <div slot="extra-content" class="style-scope ytd-watch-metadata">\n              <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRendererComputed]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n              </ytd-structured-description-content-renderer>\n              <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n              </ytd-metadata-row-container-renderer>\n            </div>\n          </ytd-text-inline-expander>\n        </div>\n        <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n      </div>\n    </template>\n    <div id="bottom-actions" class="style-scope ytd-watch-metadata"></div>\n    <div id="comment-teaser" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaser]]"></div>\n    <div id="teaser-carousel" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaserCarousel]]"></div>\n  </div>\n</div>\n\n<ytd-metadata-row-container-renderer data="[[alwaysVisibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n</ytd-metadata-row-container-renderer>\n');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return PS$=b},{mode:2});_.BR9=function(b){_.ED.call(this);this.JSC$23644_watchApi=b;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;t7A(this);rtP(this);ctM(this);ROL(this);zO_(this);DmR(this);IU_(this)};
_.z(_.BR9,_.ED);var ctM=function(b){var h=function(){_.r("kevlar_is_pupi_enabled")||Bc(b)};
b.JSC$23644_watchApi.getRoot().addEventListener("yt-player-updated",h);b.addOnDisposeCallback(function(){b.JSC$23644_watchApi.getRoot().removeEventListener("yt-player-updated",h)})},zO_=function(b){if(_.r("kevlar_endscreen_auto_theater_mode")){var h=b.JSC$23644_watchApi.subscribeToActiveChanged(function(){Wkc(b)},!1);
b.addOnDisposeCallback(h)}},t7A=function(b){var h,y,S,F,a;
_.Z(function(P){if(P.nextAddress==1)return P.yield(b.JSC$23644_watchApi.playerApi,2);h=P.yieldResult;y=function(K){K=!!K;At2(b)&&(K=K?2:1,_.g2.getInstance().setState(K,!0,!1))};
S=function(K){K&&_.qvR(_.hP().getState())&&(_.F8(b.JSC$23644_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),b.temporaryTheaterMode=!0)};
F=function(K){_.r("kevlar_player_update_autonav_on_new_data")&&K.type==="newdata"&&(_.r("kevlar_is_pupi_enabled")||Bc(b))};
a=function(K){b.onPlayerStateChange(K)};
_.r("kevlar_endscreen_auto_theater_mode")&&h.addEventListener("onAutonavCancelled",S);h.addEventListener("onAutonavChangeRequest",y);h.addEventListener("onVideoDataChange",F);h.addEventListener("onStateChange",a);b.addOnDisposeCallback(function(){h.removeEventListener("onAutonavChangeRequest",y);h.removeEventListener("onVideoDataChange",F);h.removeEventListener("onStateChange",a);_.r("kevlar_endscreen_auto_theater_mode")&&h.removeEventListener("onAutonavCancelled",S)});
_.g3(P)})},rtP=function(b){b.JSC$23644_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){b.autonavCancelledBySignal=!0;
_.r("kevlar_is_pupi_enabled")||Bc(b)});
b.JSC$23644_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(h,y,S){y&&Bc(b,S)});
b.JSC$23644_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){At2(b)&&_.g2.getInstance().setState(2,!0,!0)});
b.JSC$23644_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){At2(b)&&_.g2.getInstance().setState(1,!0,!0)});
b.addOnDisposeCallback(function(){b.JSC$23644_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");b.JSC$23644_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");b.JSC$23644_watchApi.unregisterActionHandler("yt-enable-autoplay-command");b.JSC$23644_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},ROL=function(b){var h=b.JSC$23644_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){IU_(b)}),y=b.JSC$23644_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){DmR(b)});
b.addOnDisposeCallback(function(){b.JSC$23644_watchApi.unsubscribeByKey(h);b.JSC$23644_watchApi.unsubscribeByKey(y)})},IU_=function(b){b.autonavCancelledBySignal=!1;
_.r("kevlar_is_pupi_enabled")||Bc(b)},DmR=function(b){var h=b.JSC$23644_watchApi.getWatchNextResponse(),y,S;
var F=(h=(S=_.c(h==null?void 0:(F=h.playerOverlays)==null?void 0:(y=F.playerOverlayRenderer)==null?void 0:y.autonavToggle,_.YA8))==null?void 0:S.enabled)?2:1;_.r("kevlar_is_pupi_enabled")?_.g2.getInstance().setState(F,!1,!1):Bc(b);_.r("web_persist_server_autonav_state_on_client")&&typeof h==="boolean"&&_.tpk(F===2)},At2=function(b){if(b.autonavCancelledBySignal)return!1;
var h,y,S,F;return!!((h=b.JSC$23644_watchApi.getWatchNextResponse())==null?0:(y=h.contents)==null?0:(S=y.twoColumnWatchNextResults)==null?0:(F=S.autoplay)==null?0:F.autoplay)};
_.BR9.prototype.onPlayerStateChange=function(b){if(b===0){b=!_.g2.getInstance().isAutoplaySetExplicitly();var h=this.JSC$23644_watchApi.getWatchNextResponse(),y,S,F,a;h=_.c(h==null?void 0:(y=h.contents)==null?void 0:(S=y.twoColumnWatchNextResults)==null?void 0:(F=S.autoplay)==null?void 0:(a=F.autoplay)==null?void 0:a.autoplayExplicitChoiceDialogRenderer,_.F0w);At2(this)&&b&&h&&_.nt.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:h},popupType:"DIALOG"}})}else Wkc(this)};
var Wkc=function(b){b.temporaryTheaterMode&&(b.temporaryTheaterMode=!1,_.F8(b.JSC$23644_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},Bc=function(b,h){h=h===void 0?!1:h;
var y;_.Z(function(S){if(S.nextAddress==1)return S.yield(b.JSC$23644_watchApi.playerApi,2);y=S.yieldResult;At2(b)?y.setAutonavState(_.g2.getInstance().getState(),h):y.setAutonavState(1,h);_.g3(S)})};var UmJ={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"};_.JtD=function(b){_.ED.call(this);var h=this;this.JSC$23649_watchApi=b;var y=this.JSC$23649_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){piM(h)});
this.addOnDisposeCallback(function(){h.JSC$23649_watchApi.unsubscribeByKey(y)});
piM(this)};
_.z(_.JtD,_.ED);var piM=function(b){var h=b.JSC$23649_watchApi.getPlayerResponse(),y=b.JSC$23649_watchApi.getWatchNextResponse();if(!_.WSq(h==null?void 0:h.playabilityStatus,y==null?void 0:y.playerOverlays)){var S;var F=h==null?void 0:(S=h.playabilityStatus)==null?void 0:S.errorScreen}b.JSC$23649_watchApi.provideRenderingData("ERROR_SCREEN",F)};var eOf=_.T(function(b){return _.M("yt-player-grid-renderer",{class:_.P2("ytPlayerGridRendererHost",b.className)},_.M(_.rC,{data:b.data},{lockupViewModel:function(h){return _.M(_.vQ,{data:h.data,useOverlayStyling:!0})}}))},"Mo");var CSD=_.T(function(b){var h=b.data;b=_.r("web_watch_video_details_hide_subtitle");var y=_.r("web_watch_video_details_single_line_title"),S=_.Zv(function(){var K=h().onTap;K&&_.H9().resolve(_.OM).resolveCommand(K)}),F={},a={},P={};
return _.M("yt-player-overlay-video-details-renderer",{class:_.P2("ytPlayerOverlayVideoDetailsRendererHost",(F.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.r("web_watch_video_details_transparent_background"),F)),"on:click":S,role:"button"},_.M("h2",{class:_.P2("ytPlayerOverlayVideoDetailsRendererTitle",(a.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return y},a))},_.M(_.zv,{text:function(){return h().title}})),_.M("div",{class:_.P2("ytPlayerOverlayVideoDetailsRendererSubtitle",
(P.ytPlayerOverlayVideoDetailsRendererHideSubtitle=b,P))},_.M(_.zv,{text:function(){return h().subtitle}})))},"No");var Wc={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},g8P=_.T(function(b){var h=b.data;var y=_.NG(_.es),S=_.r("web_watch_action_bar_resize_buttons"),F=_.r("web_watch_video_action_dsdvb"),a=_.r("delhi_modern_web_player_icons")&&!_.r("enable_web_delhi_icons");b=_.r("delhi_modern_web_player_disable_frosted_glass");var P=_.r("delhi_modern_web_player_compact_video_actions_controls"),
K=_.r("web_player_quick_action_buttons_icon_only"),n=function(){var u=S&&!y(),O={};P?O.size="S":u&&(O.size="M");K&&(O.iconPosition="icon-only");if(Object.keys(O).length!==0)return O},X={};
return _.M("yt-player-quick-action-buttons",{class:_.P2("ytPlayerQuickActionButtonsHost",(X.ytPlayerQuickActionButtonsHostCompactControls=function(){return!y()||P},X.ytPlayerQuickActionButtonsHostDisableBackdropFilter=b,X))},_.M(_.Gw,{each:function(){var u=h();
if(a){u=JSON.parse(JSON.stringify(u));for(var O=_.L(u),N=O.next();!N.done;N=O.next()){var t=N.value,R=void 0;N=_.c((R=_.c(t,_.E9))==null?void 0:R.toggleButtonViewModel,_.zc);var I=void 0;R=_.c((I=_.c(t,_.iG))==null?void 0:I.toggleButtonViewModel,_.zc);I=_.c(t,_.cA);t=_.c(t,_.zc);if(N)R=_.c(N.defaultButtonViewModel,_.cA),N=_.c(N.toggledButtonViewModel,_.cA),R&&R.iconName&&(R.iconName=Wc[R.iconName]),N&&N.iconName&&(N.iconName=Wc[N.iconName]);else if(R)N=_.c(R.defaultButtonViewModel,_.cA),R=_.c(R.toggledButtonViewModel,
_.cA),N&&N.iconName&&(N.iconName=Wc[N.iconName]),R&&R.iconName&&(R.iconName=Wc[R.iconName]);else if(I)I.iconName&&(I.iconName=Wc[I.iconName]);else if(t){N=_.c(t.defaultButtonViewModel,_.cA);R=_.c(t.toggledButtonViewModel,_.cA);t=void 0;if((t=N)==null?0:t.iconName)N.iconName=Wc[N.iconName];N=void 0;if((N=R)==null?0:N.iconName)R.iconName=Wc[R.iconName]}}}F&&(u=zmf(u));return u}},function(u){return _.M(_.rC,{data:function(){return u}},{buttonViewModel:function(O){return _.M(_.EG,{data:O.data,
buttonOverrides:n})},
likeButtonViewModel:function(O){return _.M(_.cD,{data:O.data,buttonShapeOverrideables:n})},
dislikeButtonViewModel:function(O){return _.M(_.r7,{data:O.data,buttonShapeOverrideables:n})},
toggleButtonViewModel:function(O){return _.M(_.Ke,{data:O.data,buttonShapeOverrides:n})}})}))},"Oo");_.Yn2=function(b){_.ED.call(this);var h=this;this.JSC$23655_watchApi=b;b=_.L(_.pa({},void 0,"OB6c5e"));this.quickActionsViewModel=b.next().value;this.setQuickActionsViewModel=b.next().value;b=_.L(_.pa({},void 0,"ZCXW8c"));this.playerOverlayVideoDetailsRenderer=b.next().value;this.setPlayerOverlayVideoDetailsRenderer=b.next().value;b=_.L(_.pa([],void 0,"A7tRk"));this.lockupViewModels=b.next().value;this.setLockupViewModels=b.next().value;var y=this.JSC$23655_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){sUA(h)});
this.addOnDisposeCallback(function(){h.JSC$23655_watchApi.unsubscribeByKey(y)});
sUA(this)};
_.z(_.Yn2,_.ED);
var sUA=function(b){var h,y,S,F,a,P,K,n,X,u,O,N,t,R,I,U,p;_.Z(function(e){if(e.nextAddress==1)return e.yield(b.JSC$23655_watchApi.playerApi,2);h=e.yieldResult;y=b.JSC$23655_watchApi.getWatchNextResponse();a=(S=y)==null?void 0:(F=S.playerOverlays)==null?void 0:F.playerOverlayRenderer;K=_.c((P=a)==null?void 0:P.fullscreenQuickActionsBar,_.YGW);(X=(n=b).setQuickActionsViewModel)==null||X.call(n,K||{});K&&TRc(b,h);N=(u=a)==null?void 0:(O=u.videoDetails)==null?void 0:O.playerOverlayVideoDetailsRenderer;(R=
(t=b).setPlayerOverlayVideoDetailsRenderer)==null||R.call(t,N||{});N&&GDp(b,h);if(_.r("web_player_use_external_grid_component")){var E=[],Y,w,x,q,dI=y==null?void 0:(Y=y.contents)==null?void 0:(w=Y.twoColumnWatchNextResults)==null?void 0:(x=w.secondaryResults)==null?void 0:(q=x.secondaryResults)==null?void 0:q.results;if(dI)for(Y=_.L(dI),w=Y.next();!w.done;w=Y.next())if(w=w.value,w.lockupViewModel)E.push(w);else if(x=void 0,(x=w.itemSectionRenderer)==null?0:x.contents)for(w=_.L(w.itemSectionRenderer.contents),
x=w.next();!x.done;x=w.next())x=x.value,x.lockupViewModel&&E.push(x);I=E;(p=(U=b).setLockupViewModels)==null||p.call(U,I||[]);kD9(b,h)}_.g3(e)})},TRc=function(b,h){if(!b.quickActionButtonsContainer)if(h.setFullscreenQuickActions){b.quickActionButtonsContainer=document.createElement("div");
h.setFullscreenQuickActions(b.quickActionButtonsContainer);var y=function(){return b.quickActionsViewModel().quickActionButtons||[]},S=_.EW(b.quickActionButtonsContainer,function(){return _.M(g8P,{data:y})},"Po");
b.addOnDisposeCallback(function(){h.setFullscreenQuickActions(void 0);S()})}else _.vX(new _.Gn("setFullscreenQuickActions not defined",{playerApi:Object.keys(h),
isReady:h.isReady(),appState:h.getAppState()}))},GDp=function(b,h){if(!b.playerOverlayVideoDetailsRendererContainer)if(h.setPlayerOverlayVideoDetailsRenderer){b.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
h.setPlayerOverlayVideoDetailsRenderer(b.playerOverlayVideoDetailsRendererContainer);var y=_.EW(b.playerOverlayVideoDetailsRendererContainer,function(){return _.M(CSD,{data:b.playerOverlayVideoDetailsRenderer})},"Qo");
b.addOnDisposeCallback(function(){h.setPlayerOverlayVideoDetailsRenderer(void 0);y()})}else _.vX(new _.Gn("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(h),
isReady:h.isReady(),appState:h.getAppState()}))},kD9=function(b,h){if(!b.gridRendererContainer)if(h.setFullscreenGrid){b.gridRendererContainer=document.createElement("div");
h.setFullscreenGrid(b.gridRendererContainer);var y=_.EW(b.gridRendererContainer,function(){return _.M(eOf,{data:b.lockupViewModels})},"Ro");
b.addOnDisposeCallback(function(){h.setFullscreenGrid(void 0);y()})}else _.vX(new _.Gn("setFullscreenGrid not defined",{playerApi:Object.keys(h),
isReady:h.isReady(),appState:h.getAppState()}))};_.Ah=function(b){_.ED.call(this);var h=this;this.JSC$23661_watchApi=b;this.JSC$23661_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;b=_.Fq(_.hP(),_.es,function(y){h.onFullscreenChanged(y)});
this.addOnDisposeCallback(b);b=_.Fq(_.hP(),_.AI,function(y){h.onWatchScroll(y)});
this.addOnDisposeCallback(b);_.r("kevlar_watch_while_v2")&&(b=_.Fq(_.hP(),_.Ci,function(y){V7A(h,y)}),this.addOnDisposeCallback(b));
E8p(this);iiJ(this);fUp();this.onWatchScroll(_.AI(_.hP().getState()));_.m$("START_IN_FULL_WINDOW_MODE")&&this.JSC$23661_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.z(_.Ah,_.ED);var E8p=function(b){b.JSC$23661_watchApi.registerActionHandler("yt-fullscreen-change-action",function(h){var y=b.JSC$23661_watchApi.isActive();h&&!y||_.hP().dispatch(_.$8({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!h}}))});
b.addOnDisposeCallback(function(){b.JSC$23661_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},iiJ=function(b){var h,y;
_.Z(function(S){if(S.nextAddress==1)return S.yield(b.JSC$23661_watchApi.playerApi,2);h=S.yieldResult;y=function(){b.onFullerscreenEduClicked()};
h.addEventListener("onFullerscreenEduClicked",y);b.addOnDisposeCallback(function(){h.removeEventListener("onFullerscreenEduClicked",y)});
_.g3(S)})};
_.Ah.prototype.onFullscreenChanged=function(b){var h=this,y;return _.Z(function(S){if(S.nextAddress==1)return h.isFullscreen=!!_.v5(),S.yield(h.JSC$23661_watchApi.playerApi,2);y=S.yieldResult;h.JSC$23661_miniplayerActive||y.setFauxFullscreen(h.isFullscreen);if(b&&(h.JSC$23661_watchApi.focusOnPlayer(),!h.fullerscreenEduButtonShownThisPlayback)){h.fullerscreenEduButtonShownThisPlayback=!0;var F=_.Wd("yt-fullerscreen-edu-button-shown-count")||0;_.Bd("yt-fullerscreen-edu-button-shown-count",F+1,31536E3);
h.updateFullerscreenEduButtonSubtleModeState()}_.g3(S)})};
var V7A=function(b,h){var y;_.Z(function(S){if(S.nextAddress==1)return b.JSC$23661_miniplayerActive=h,S.yield(b.JSC$23661_watchApi.playerApi,2);y=S.yieldResult;y.setFauxFullscreen(!b.JSC$23661_miniplayerActive&&b.isFullscreen);_.g3(S)})};
_.Ah.prototype.onWatchScroll=function(b){var h=this,y,S;return _.Z(function(F){if(F.nextAddress==1)return _.r("external_fullscreen_with_edu")?F.yield(h.JSC$23661_watchApi.playerApi,2):F.return();y=F.yieldResult;S=b<=0;h.shouldShowFullerscreenEdu!==S&&(h.shouldShowFullerscreenEdu=S,y.updateFullerscreenEduButtonVisibility(!h.shouldShowFullerscreenEdu));_.g3(F)})};
_.Ah.prototype.onFullerscreenEduClicked=function(){this.JSC$23661_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var b=_.Wd("yt-fullerscreen-edu-button-click-count")||0;_.Bd("yt-fullerscreen-edu-button-click-count",b+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.Ah.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var b=this,h,y,S,F,a,P;return _.Z(function(K){if(K.nextAddress==1)return h=_.Wd("yt-fullerscreen-edu-button-click-count")||0,y=_.Wd("yt-fullerscreen-edu-button-shown-count")||0,S=_.tj("external_fullscreen_button_click_threshold"),F=_.tj("external_fullscreen_button_shown_threshold"),a=h>=S||y>=F,K.yield(b.JSC$23661_watchApi.playerApi,2);P=K.yieldResult;P.updateFullerscreenEduButtonSubtleModeState(a);_.g3(K)})};
_.Ah.prototype.disposeInternal=function(){_.ED.prototype.disposeInternal.call(this);var b=_.v5();_.r("kevlar_exit_fullscreen_leaving_watch")&&b&&_.bE(b)};
var fUp=function(){if(_.r("web_watch_add_viewport_meta_tag")){var b=document.querySelector("meta[name=viewport]"),h=document.head;h&&!b&&(b=document.createElement("meta"),b.name="viewport",b.content="width=device-width, initial-scale=1.0, viewport-fit=cover",h.appendChild(b))}};_.lUf=function(b){_.ED.call(this);var h=this;this.JSC$23664_watchApi=b;this.jobId=0;this.pendingRequestId=void 0;var y=this.JSC$23664_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){wi$(h)});
this.addOnDisposeCallback(function(){h.JSC$23664_watchApi.unsubscribeByKey(y)});
wi$(this)};
_.z(_.lUf,_.ED);var qnx=function(b){_.xP.cancelJob(b.jobId);b.pendingRequestId=void 0},wi$=function(b){qnx(b);
var h=DiJ(b.JSC$23664_watchApi.getWatchNextResponse());if(h){var y=250,S,F=(S=_.c(h,_.s$W))==null?void 0:S.initialDelayMs;_.r("web_watch_updated_metadata_server_initial_delay")&&F&&(y=F);b.jobId=_.xP.addLowPriorityJob(function(){return b.fetchUpdatedMetadata(h)},y)}};
_.lUf.prototype.fetchUpdatedMetadata=function(b,h){var y=this,S,F,a,P,K,n,X,u,O,N,t,R,I,U,p;return _.Z(function(e){switch(e.nextAddress){case 1:h&&(S={continuation:h});if(!_.r("web_get_updated_metadata_fantasy_panel_continuation_params")){e.jumpTo(2);break}F=_.H9().resolve(_.Mp);a="PAsports_fantasy";return e.yield(F.isVisible(a,!0),3);case 3:e.yieldResult&&(X=(K=(P=F).getUpdatePanelContinuationData)==null?void 0:(n=K.call(P,a))==null?void 0:n.updatePanelContinuationRequest)&&(S||(S={}),S.clientParams=
{panelContinuationParams:{panelContinuation:X}});case 2:u=_.H9().resolve(_.DT);if(!u)return _.QT(Error("pp")),e.return();O={};y.pendingRequestId=O;return e.yield(_.f9(u,b,S),4);case 4:N=e.yieldResult;if(O!==y.pendingRequestId)return e.return();I=(t=N)==null?void 0:(R=t.continuation)==null?void 0:R.timedContinuationData;((U=I)==null?0:U.continuation)&&((p=I)==null?0:p.timeoutMs)&&(y.jobId=_.xP.addLowPriorityJob(function(){return y.fetchUpdatedMetadata(b,I.continuation)},I.timeoutMs));
_.g3(e)}})};
_.lUf.prototype.disposeInternal=function(){_.ED.prototype.disposeInternal.call(this);qnx(this)};var xm$=_.T(function(b){var h=_.Zv(function(){var S=b.data().videoId;if(b.active())S=_.FF(S),_.H9().resolve(_.OM).resolveCommand(S);else{var F=b.playerApi(),a=F.getAvailableAudioTracks(),P,K,n=(P=b.sourceVideoConfig().audioTracks)==null?void 0:(K=P.find(function(X){return X.isDefaultForSource}))==null?void 0:K.id;
if(a=a.find(function(X){return X.getLanguageInfo().getId()===n}))F.setAudioTrack(a,!0),F.setCompositeParam({activeVideoId:S}),b.setActiveSourceId(S)}}),y={};
return _.M("ytw-composite-source-video-overlay",{class:_.P2("ytwCompositeSourceVideoOverlayHost",(y.ytwCompositeSourceVideoOverlayActive=b.active,y.ytwCompositeSourceVideoOverlayInteracting=b.interacting,y)),style:_.n9({left:function(){var S;return((S=b.data().topLeftCornerX)!=null?S:0)*100+"%"},
top:function(){var S;return((S=b.data().topLeftCornerY)!=null?S:0)*100+"%"},
width:function(){var S;return((S=b.data().width)!=null?S:0)*100+"%"},
height:function(){var S;return((S=b.data().height)!=null?S:0)*100+"%"}}),
"on:click":h},_.M("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"So");var QUM=_.T(function(b){var h=_.L(_.ya(function(){var P,K=(P=b.data().sources)==null?void 0:P.find(function(n){return n.isActive});
if(K)return K.videoId})),y=h.next().value,S=h.next().value;
h=_.L(_.pa(!1,void 0,"rmRJ8d"));var F=h.next().value,a=h.next().value;return _.M("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.Zv(function(){a(!0)}),
"on:mouseout":_.Zv(function(){a(!1)})},_.M(_.H,{cond:function(){return b.data().sources},
then:function(P){return _.M(_.Gw,{each:P},function(K){return _.M(xm$,{data:K,active:function(){return K.videoId===y()},
setActiveSourceId:S,interacting:F,playerApi:b.playerApi,sourceVideoConfig:function(){return I7$(b.compositeVideoConfig(),K.videoId)}})})}}))},"To");_.bR_=function(b){_.ED.call(this);this.JSC$23679_watchApi=b;b=_.L(_.pa({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=b.next().value;this.setCompositeVideoOverlayRenderer=b.next().value;b=_.L(_.pa({},void 0,"OlaJpc"));this.compositeVideoConfig=b.next().value;this.setCompositeVideoConfig=b.next().value;mmP(this);v8M(this)};
_.z(_.bR_,_.ED);var mmP=function(b){var h=b.JSC$23679_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){v8M(b)});
b.addOnDisposeCallback(function(){b.JSC$23679_watchApi.unsubscribeByKey(h)})},hgA=function(b){var h;
return _.Z(function(y){if(y.nextAddress==1)return y.yield(b.JSC$23679_watchApi.playerApi,2);h=y.yieldResult;h.setCompositeVideoOverlayRendererComponent(b.container);_.g3(y)})},yPD=function(b){var h;
return _.Z(function(y){if(y.nextAddress==1)return y.yield(b.JSC$23679_watchApi.playerApi,2);h=y.yieldResult;h.setCompositeVideoOverlayRendererComponent(void 0);_.g3(y)})},S0_=function(b){var h,y;
return _.Z(function(S){if(S.nextAddress==1)return S.yield(b.JSC$23679_watchApi.playerApi,2);h=S.yieldResult;b.container=document.createElement("div");y=_.EW(b.container,function(){return _.M(QUM,{data:b.compositeVideoOverlayRenderer,compositeVideoConfig:b.compositeVideoConfig,playerApi:h})},"Uo");
b.addOnDisposeCallback(y);_.g3(S)})},v8M=function(b){var h,y,S,F,a,P,K,n;
_.Z(function(X){return X.nextAddress==1?(h=b.JSC$23679_watchApi.getPlayerResponse(),a=_.c((y=h)==null?void 0:(S=y.overlay)==null?void 0:(F=S.playerControlsOverlayRenderer)==null?void 0:F.compositeVideoOverlay,zLM),n=(P=h)==null?void 0:(K=P.playerConfig)==null?void 0:K.compositeVideoConfig,a&&b.setCompositeVideoOverlayRenderer(a),n&&b.setCompositeVideoConfig(n),a&&n?b.container?X.jumpTo(6):X.yield(S0_(b),6):FiD(b)?X.yield(yPD(b),0):X.jumpTo(0)):FiD(b)?X.jumpTo(0):X.yield(hgA(b),0)})},FiD=function(b){var h;
return!((h=b.container)==null||!h.parentElement)};
_.bR_.prototype.disposeInternal=function(){FiD(this)&&yPD(this);_.ED.prototype.disposeInternal.call(this)};_.LiP=function(b){_.ED.call(this);var h=this;this.JSC$23685_watchApi=b;var y=this.JSC$23685_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var S=h.JSC$23685_watchApi.getPlayerResponse();if(S){var F,a;if(S=_.c((F=S.endscreen)==null?void 0:(a=F.endscreenRenderer)==null?void 0:a.hideButton,_.zc)){var P;(P=h.setEndscreenHideButton)==null||P.call(h,S);aT$(h)}}});
this.addOnDisposeCallback(function(){h.JSC$23685_watchApi.unsubscribeByKey(y)});
b=_.L(_.pa({},void 0,"ER3tqb"));this.endscreenHideButton=b.next().value;this.setEndscreenHideButton=b.next().value;dCR(this);j3f(this);$Cx(this)};
_.z(_.LiP,_.ED);
var aT$=function(b){var h,y;_.Z(function(S){if(S.nextAddress==1)return b.creatorEndscreenHideButtonContainer?S.return():S.yield(b.JSC$23685_watchApi.playerApi,2);h=S.yieldResult;b.creatorEndscreenHideButtonContainer=document.createElement("div");_.ZC(b.creatorEndscreenHideButtonContainer,!1);h.setCreatorEndscreenHideButton(b.creatorEndscreenHideButtonContainer);y=_.EW(b.creatorEndscreenHideButtonContainer,function(){return _.M(_.Ke,{data:b.endscreenHideButton,useOutlinedIcon:!0})},"Vo");
b.addOnDisposeCallback(function(){y();var F;(F=h)==null||F.setCreatorEndscreenHideButton(void 0)});
_.g3(S)})},dCR=function(b){var h,y;
_.Z(function(S){if(S.nextAddress==1)return S.yield(b.JSC$23685_watchApi.playerApi,2);h=S.yieldResult;y=function(){b.creatorEndscreenHideButtonContainer&&_.ZC(b.creatorEndscreenHideButtonContainer,!0)};
h.addEventListener("endscreenelementshown",y);b.addOnDisposeCallback(function(){var F;(F=h)==null||F.removeEventListener("endscreenelementshown",y)});
_.g3(S)})},j3f=function(b){var h=function(){b.creatorEndscreenHideButtonContainer&&_.ZC(b.creatorEndscreenHideButtonContainer,!1)},y=b.JSC$23685_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",h),S=b.JSC$23685_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",h);
b.addOnDisposeCallback(function(){b.JSC$23685_watchApi.unsubscribeByKey(y);b.JSC$23685_watchApi.unsubscribeByKey(S)})},$Cx=function(b){b.JSC$23685_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(h){var y=_.c(h,OP$);
b.JSC$23685_watchApi.playerApi.then(function(S){S==null||S.setCreatorEndscreenVisibility(!!y.hide)})});
b.addOnDisposeCallback(function(){b.JSC$23685_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.KiD=function(b){_.ED.call(this);this.JSC$23691_watchApi=b;PkR(this)};
_.z(_.KiD,_.ED);var PkR=function(b){var h,y;_.Z(function(S){if(S.nextAddress==1)return S.yield(b.JSC$23691_watchApi.playerApi,2);h=S.yieldResult;y=function(F){_.hP().dispatch(_.$8({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:F}}))};
h.addEventListener("onRetroModeChanged",y);b.addOnDisposeCallback(function(){h.removeEventListener("onRetroModeChanged",y)});
_.g3(S)})};var CFM=0,pJ=0,shM=0;var ZRJ;ZRJ=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.UT=function(b){_.ED.call(this);this.JSC$23696_watchApi=b;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;og$(this)};
_.z(_.UT,_.ED);
var og$=function(b){var h,y,S;_.Z(function(F){if(F.nextAddress==1)return F.yield(b.JSC$23696_watchApi.playerApi,2);h=F.yieldResult;if(b.isDisposed())return F.return();b.sessionStorage=_.o0X("yt-sleep-timer");b.sessionStorage||_.vX(new _.Gn("SessionStorage for Sleep Timer is undefined."));((y=b.sessionStorage)==null?void 0:y.get("yt-sleep-timer"))==="true"&&(GE$(),(S=b.sessionStorage)==null||S.remove("yt-sleep-timer"),h.syncVolume());MIJ(b,h);ng9(b,h);Xd$(b,h);_.g3(F)})},MIJ=function(b,h){var y=function(X){b.onSleepTimerSettingsChanged(X,
h)},S=function(X){b.onPlayerStateChange(X,h)},F=function(){b.onLoopChange(h)},a=function(){b.onCloseMiniplayer(h)},P=function(){emA(h,(0,_.NO)(),kEx(h),b.selectedOption==="End of video",h.getPlayerState()!==1)},K=function(){b.onSeekComplete(h)},n=function(){_.xP.cancelJob(pJ);
var X=h.getCurrentTime()>=h.getDuration(),u=b.selectedOption==="End of video"||b.selectedOption==="End of playlist"&&!Ui_(b.playlistId);X&&u&&HRf(b,h)};
h.addEventListener("onSleepTimerSettingsChanged",y);h.addEventListener("onLoopChange",F);h.addEventListener("onLoopRangeChange",F);h.addEventListener("onStateChange",S);h.addEventListener("onCloseMiniplayer",a);h.addEventListener("onSleepTimerFeatureAvailable",P);h.addEventListener("SEEK_COMPLETE",K);h.addEventListener("onAdStart",n);b.addOnDisposeCallback(function(){h.removeEventListener("onSleepTimerSettingsChanged",y);h.removeEventListener("onLoopChange",F);h.removeEventListener("onLoopRangeChange",
F);h.removeEventListener("onStateChange",S);h.removeEventListener("onCloseMiniplayer",a);h.removeEventListener("onSleepTimerFeatureAvailable",P);h.removeEventListener("SEEK_COMPLETE",K);h.removeEventListener("onAdStart",n)})},ng9=function(b,h){var y=b.JSC$23696_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var S=h.getVideoData().video_id,F,a=(F=WmA(b.JSC$23696_watchApi))==null?void 0:F.playlistId;
b.pauseAutonavPlayback&&(h.pauseVideo(),h.syncVolume(),b.pauseAutonavPlayback=!1);if(b.selectedOption==="End of video"&&S!==b.videoId)pO(b,h);else{if(b.selectedOption==="End of playlist"){F=Ui_(b.playlistId);if(a!==b.playlistId){pO(b,h);break a}F?F&&udM(b,h):ORP(b,h)}b.videoId=S;b.playlistId=a}}});
b.addOnDisposeCallback(function(){b.JSC$23696_watchApi.unsubscribeByKey(y)})},Xd$=function(b,h){var y=_.H9().resolve(_.nd),S=_.Fq(y,_.Gv5,function(a){a&&b.selectedOption!=="Off"&&pO(b,h)}),F=b.JSC$23696_watchApi.subscribeToActiveChanged(function(a){var P,K;
return _.Z(function(n){if(n.nextAddress==1)return n.yield(_.h0().navigationFinishPromise,2);P=!_.Frw();K=_.H9().resolve(_.Vp).isMiniplayerActive();a||!Bdc(b.selectedOption)||K||P||pO(b,h);_.g3(n)})},!1);
y=_.Fq(y,function(a){return a.entities.playlistLoopStateEntity||{}},function(a){a=a===void 0?{}:a;
var P=AdP(b.JSC$23696_watchApi);if(P){var K;((K=a[P])==null?void 0:K.state)==="PLAYLIST_LOOP_STATE_ALL"&&Bdc(b.selectedOption)&&pO(b,h)}});
b.addOnDisposeCallback(S);b.addOnDisposeCallback(y);b.addOnDisposeCallback(F)};
_.UT.prototype.onSleepTimerSettingsChanged=function(b,h){switch(b){case "Off":this.selectedOption!=="Off"&&pO(this,h);break;case "End of video":case "End of playlist":NqR(this,b,h);break;default:NqR(this,b,h,ZRJ.get(b))}};
_.UT.prototype.onLoopChange=function(b){(b.getLoopVideo()||b.getLoopRange())&&Bdc(this.selectedOption)&&pO(this,b)};
_.UT.prototype.onCloseMiniplayer=function(b){Bdc(this.selectedOption)&&pO(this,b)};
var NqR=function(b,h,y,S){tIc(b,y);b.selectedOption=h;b.videoId=y.getVideoData().video_id;b.playlistId="";var F;(F=b.sessionStorage)==null||F.set("yt-sleep-timer","true");b.adjustmentsCount++;emA(y,(0,_.NO)(),kEx(y),b.selectedOption==="End of video");if(b.selectedOption==="End of video")ORP(b,y),rP9(b,y);else if(b.selectedOption==="End of playlist"){rP9(b,y);var a,P;b.playlistId=(P=(a=WmA(b.JSC$23696_watchApi))==null?void 0:a.playlistId)!=null?P:"";Ui_(b.playlistId)||ORP(b,y)}else S&&(b.presetFadeSchedulerId=
_.I7(_.xP,function(){Yu9(y,15E3)},S-15E3),b.presetPauseSchedulerId=_.I7(_.xP,function(){HRf(b,y)},S),g2D(y,(0,_.NO)(),S))},HRf=function(b,h){if(b.JSC$23696_watchApi.isActive()){var y={dismissDialogEndpoint:{}};
var S={commandExecutorCommand:{commands:[y,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};y={buttonViewModel:{title:_.Mt("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:y}}};S={buttonViewModel:{title:_.Mt("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:S}}};var F={dialogHeaderViewModel:{headline:{content:_.Mt("SLEEP_TIMER_ENDED_TITLE")}}},
a={basicContentViewModel:{paragraphs:[{text:{content:_.Mt("SLEEP_TIMER_ENDED_TEXT")}}]}};y={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:F,content:a,footer:{panelFooterViewModel:{primaryButton:y,secondaryButton:S,shouldHideDivider:!0}}}}}}};_.H9().resolve(_.OM).resolveCommand(y,{form:{element:b}})}else GE$();cPp(b,!1);RgP(b,h);h.pauseVideo();_.g2.getInstance().getState()===2&&h.getPlayerState()===5&&(b.pauseAutonavPlayback=!0)},pO=function(b,h){cPp(b,!0);
RgP(b,h);GE$()},RgP=function(b,h){tIc(b,h);
b.selectedOption="Off";b.videoId="";b.playlistId="";b.adjustmentsCount=0;var y;(y=b.sessionStorage)==null||y.remove("yt-sleep-timer");_.xP.cancelJob(CFM);h.resetSleepTimerMenuSettings()},cPp=function(b,h){h={timer_length_adjustment_times_during_session:b.adjustmentsCount-1,
is_session_cancelled:h};switch(b.selectedOption){case "Off":h.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":h.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":h.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:h.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",h.option_duration_in_minutes=ZRJ.get(b.selectedOption)/6E4}_.qi("sleepTimerSessionFinishEvent",h)};
_.UT.prototype.onPlayerStateChange=function(b,h){b===1?emA(h,(0,_.NO)(),kEx(h),this.selectedOption==="End of video"):b===0?(_.xP.cancelJob(pJ),h.setVideoTimeLeft(Jdp(0,0))):b===2&&_.xP.cancelJob(pJ);this.selectedOption==="End of video"?b===0?HRf(this,h):b===2&&TdD(h):this.selectedOption!=="End of playlist"||Ui_(this.playlistId)||(b===0?HRf(this,h):b===2&&TdD(h))};
_.UT.prototype.onSeekComplete=function(b){b.getPlayerState()===2&&emA(b,(0,_.NO)(),kEx(b),this.selectedOption==="End of video",!0)};
_.UT.prototype.onCueRangeEnter=function(b,h){b==="sleep-timer-fade-audio"&&Yu9(h,(h.getDuration()-h.getProgressState().current)*1E3)};
_.UT.prototype.onCueRangeExit=function(b,h){b==="sleep-timer-fade-audio"&&h.getPlayerState()!==0&&TdD(h,!0)};
var ORP=function(b,h){h.addCueRange("sleep-timer-fade-audio",h.getDuration()-15,h.getDuration());h.addEventListener("onCueRangeEnter",function(y){b.onCueRangeEnter(y,h)});
h.addEventListener("onCueRangeExit",function(y){b.onCueRangeExit(y,h)})},udM=function(b,h){h.removeCueRange("sleep-timer-fade-audio");
h.removeEventListener("onCueRangeEnter",function(y){b.onCueRangeEnter(y,h)});
h.removeEventListener("onCueRangeExit",function(y){b.onCueRangeExit(y,h)})},tIc=function(b,h){Bdc(b.selectedOption)?udM(b,h):(_.xP.cancelJob(b.presetPauseSchedulerId),_.xP.cancelJob(b.presetFadeSchedulerId),b.presetPauseSchedulerId=0,b.presetFadeSchedulerId=0);
TdD(h,!0)},rP9=function(b,h){h.setLoop(!1);
h.setLoopVideo(!1);h.setLoopRange(null);(b=AdP(b.JSC$23696_watchApi))&&_.H9().resolve(_.nd).dispatch(_.R7("playlistLoopStateEntity",b,{key:b,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.WiM=function(b){_.ED.call(this);var h=this;this.JSC$23699_watchApi=b;_.r("web_watch_force_start_in_theater_mode")&&zg$(this,!0,!1);DC9(this);ITc(this);Bqf(this);var y=this.JSC$23699_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){_.tj("theater_mode_cookie_max_age_seconds",-1)!==-1&&_.Cn.get("wide",void 0)==="1"&&_.gH("wide","1",_.tj("theater_mode_cookie_max_age_seconds",-1))});
this.addOnDisposeCallback(function(){h.JSC$23699_watchApi.unsubscribeByKey(y)});
b=b.getRoot();if(b.is==="ytd-watch-flexy"||b.is==="ytd-watch-grid")b.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.Q2x();_.r("web_watch_log_theater_mode_cookie_state")&&_.Cn.get("wide","0")==="1"&&_.M0r("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.z(_.WiM,_.ED);var DC9=function(b){var h,y;_.Z(function(S){if(S.nextAddress==1)return S.yield(b.JSC$23699_watchApi.playerApi,2);h=S.yieldResult;y=function(F){zg$(b,!!F)};
h.addEventListener("SIZE_CLICKED",y);b.addOnDisposeCallback(function(){h.removeEventListener("SIZE_CLICKED",y)});
_.g3(S)})},ITc=function(b){b.JSC$23699_watchApi.registerActionHandler("yt-toggle-theater-mode",function(h,y){zg$(b,h,y===void 0?!0:y)});
b.addOnDisposeCallback(function(){b.JSC$23699_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.WiM.prototype.getState=function(){return _.J4(_.hP().getState())};
var zg$=function(b,h,y){y=y===void 0?!0:y;var S,F,a,P=_.r("enable_player_resize_transition")&&!!b.JSC$23699_watchApi.getWatchNextResponse()&&!((S=b.JSC$23699_watchApi.getWatchNextResponse())==null?0:(F=S.contents)==null?0:(a=F.twoColumnWatchNextResults)==null?0:a.conversationBar);_.wdE(function(){_.hP().dispatch(_.$8({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:h}}));_.r("theater_mode_scroll_to_top_killswitch")||b.JSC$23699_watchApi.scrollWatchTo(0,!1);_.v5()&&_.r("external_fullscreen")&&_.bE(document.documentElement);
Bqf(b);y&&_.gH("wide",h?"1":"0",_.tj("theater_mode_cookie_max_age_seconds",-1));_.F8(b.JSC$23699_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);b.JSC$23699_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:h});h&&_.Q2x()},{shouldWrap:P})},Bqf=function(b){var h;
_.Z(function(y){if(y.nextAddress==1)return y.yield(b.JSC$23699_watchApi.playerApi,2);h=y.yieldResult;h.setSizeStyle(!0,b.getState());_.g3(y)})};var pd_=function(b){_.ED.call(this);var h=this;this.playerApi=b;this.timeToPanelSyncKeyMap={};var y;if(b==null?0:(y=b.isReady)==null?0:y.call(b)){y=_.Fq(_.H9().resolve(_.nd),function(F){return F.entities.timedMarkersListSyncEntity||{}},function(F,a){F=F===void 0?{}:F;
a=a===void 0?{}:a;for(var P=_.L(Object.keys(a)),K=P.next();!K.done;K=P.next())K=K.value,F[K]!==a[K]&&AP$(h,a[K]);a=_.L(Object.keys(F));for(P=a.next();!P.done;P=a.next())P=P.value,K=F[P],h.timeToPanelSyncKeyMap[P]&&UCc(h,K)});
this.addOnDisposeCallback(y);var S=function(F){h.onCueRangeEnter(F)};
b.addEventListener("onCueRangeEnter",S);this.addOnDisposeCallback(function(){var F;(F=b.removeEventListener)==null||F.call(b,"onCueRangeEnter",S)})}};
_.z(pd_,_.ED);
var UCc=function(b,h){var y,S;if((y=b.playerApi)==null?0:(S=y.isReady)==null?0:S.call(y)){var F;if((y=h==null?void 0:(F=h.timedListData)==null?void 0:F.sections)&&h!=null&&h.key)for(F=_.L(y),y=F.next();!y.done;y=F.next())if(y=y.value,y.timedSyncDataList&&y.sectionId)for(S=0;S<y.timedSyncDataList.length;S++){var a=y.timedSyncDataList[S];a.syncItemId&&b.playerApi.addCueRange(y.sectionId+"_"+h.key+"_"+a.syncItemId,Number(a.videoTimeMs)/1E3,S===y.timedSyncDataList.length-1?0x8000000000000:Number(y.timedSyncDataList[S+
1].videoTimeMs)/1E3)}}},AP$=function(b,h){var y,S;
if((y=b.playerApi)==null?0:(S=y.isReady)==null?0:S.call(y)){var F;if((y=h==null?void 0:(F=h.timedListData)==null?void 0:F.sections)&&h!=null&&h.key)for(F=_.L(y),y=F.next();!y.done;y=F.next())if(y=y.value,y.timedSyncDataList&&y.sectionId){S=_.L(y.timedSyncDataList);for(var a=S.next();!a.done;a=S.next())a=a.value,a.syncItemId&&b.playerApi.removeCueRange(y.sectionId+"_"+h.key+"_"+a.syncItemId)}}};
pd_.prototype.onCueRangeEnter=function(b){for(var h=_.L(Object.keys(this.timeToPanelSyncKeyMap)),y=h.next();!y.done;y=h.next()){y=y.value;var S=_.L(b.split("_"+y+"_")),F=S.next().value;S=S.next().value;if(F&&S){b=_.H9().resolve(_.nd);h=this.timeToPanelSyncKeyMap[y];var a=_.SJF(b.getState(),h);y=JP2(y,F,S);if(y===-1)break;y={activeSyncId:S,activeItemIndex:y,activeSectionInfo:{sectionIdentifier:F}};a?b.dispatch(_.eD("markersEngagementPanelSyncEntity",h,y)):b.dispatch(_.R7("markersEngagementPanelSyncEntity",
h,Object.assign({},{key:h},y)));break}}};
var JP2=function(b,h,y){var S=_.H9().resolve(_.nd),F,a;b=(F=EPR(S.getState(),b))==null?void 0:(a=F.timedListData)==null?void 0:a.sections;if(!b)return-1;F=0;a=_.L(b);for(b=a.next();!b.done;b=a.next()){b=b.value;S=b.timedSyncDataList||[];if(b.sectionId===h)return h=S.findIndex(function(P){return P.syncItemId===y}),h===-1?h:F+h;
F+=S.length}return-1};_.ggL=function(b){_.ED.call(this);var h=this;this.JSC$23712_watchApi=b;this.unresolvedCommands=[];this.JSC$23712_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(y){egL(h,y)});
this.addOnDisposeCallback(function(){h.JSC$23712_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
CkJ(this)};
_.z(_.ggL,_.ED);var CkJ=function(b){var h;_.Z(function(y){if(y.nextAddress==1)return y.yield(b.JSC$23712_watchApi.playerApi,2);h=y.yieldResult;if(b.isDisposed())return y.return();b.timedSyncObserver=new pd_(h);b.unresolvedCommands.length&&(b.unresolvedCommands.forEach(function(S){return egL(b,S)}),b.unresolvedCommands=[]);
_.pq(b,b.timedSyncObserver);_.g3(y)})},egL=function(b,h){if(b.timedSyncObserver){var y=_.c(h,tH9);
if(y&&y.timedSyncEntityKey&&y.panelSyncEntityKey){b=b.timedSyncObserver;h=y.timedSyncEntityKey;var S=y.panelSyncEntityKey;y=!!y.isEnabled;y=y===void 0?!0:y;var F=_.H9().resolve(_.nd);F=EPR(F.getState(),h);y?b.timeToPanelSyncKeyMap[h]||(b.timeToPanelSyncKeyMap[h]=S,UCc(b,F)):(delete b.timeToPanelSyncKeyMap[h],AP$(b,F))}}else b.unresolvedCommands.push(h)};var s3c=_.T(function(b){var h=b.data,y=b.maybeLogSmartSkipClientData,S=null,F=null,a=_.r("web_enable_auto_focus_for_timely_action_button"),P=function(){S=document.activeElement},K=function(){h().smartSkipMetadata&&(S=document.activeElement,_.xhq(function(){return F}))},n=function(u){if(h().smartSkipMetadata&&(!u||u.key!=="Enter")){S&&S.isConnected&&(_.xhq(function(){return S}),S=null);
var O;(O=F)==null||O.blur()}};
b=_.Zv(function(){y==null||y(!0,h());return!1});
var X=_.Qa(_.Ch(function(){return h().rendererContext},{onTap:function(u,O){O({disableClickTracking:!0})}}),_.r_({visibilityCallback:function(u){if(a)u?F&&h().smartSkipMetadata&&(K(),document.addEventListener("focusin",P)):(document.removeEventListener("focusin",P),n());
else if(u){u=_.JB(h().rendererContext);var O=Number(h().maxVisibleDurationMilliseconds),N,t=(N=_.c(h().rendererContext,_.zR))==null?void 0:N.label;u&&O&&t&&(N={label:t,command:u,durationMs:O},_.H9().resolve(_.ez).enqueue(N))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.fl(function(){if(a){var u;if((F=(u=X.value)==null?void 0:u.querySelector("button"))&&h().smartSkipMetadata){var O;(O=X.value)==null||O.addEventListener("keydown",n)}}});
_.m2(function(){a&&(F&&h().smartSkipMetadata&&F.removeEventListener("keydown",n),document.removeEventListener("focusin",P),n())});
return _.M("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:X,"on:click":b},_.M(_.rC,{data:function(){return h().content}},{buttonViewModel:_.EG}))},"Xo");var Y0P=_.T(function(b){var h=b.data,y=b.playerApi,S=_.H9().resolve(_.AgP);b=_.L(_.ya(function(){h()}));
var F=b.next().value,a=b.next().value,P=function(){return iKP(h(),F())},K=function(X,u){var O,N,t=(O=_.c(u==null?void 0:u.rendererContext,_.c3))==null?void 0:(N=O.loggingDirectives)==null?void 0:N.trackingParams;
if((u=u==null?void 0:u.smartSkipMetadata)&&u.loggingData&&(N=u.loggingData,u=N.algorithmId,O=N.startMilliseconds,N=N.endMilliseconds,u&&O!==void 0&&N!==void 0)){var R,I;X={smartSkipData:Object.assign({},{versionName:u,startMediaTimeMs:O,endMediaTimeMs:N},X&&{userInteractionMediaTimeMs:(Math.floor(((R=_.ye())==null?void 0:(I=R.getPlayer())==null?void 0:I.getCurrentTime())||0)*1E3).toString()})};R=_.UE();var U;t&&(U=_.I_(t));R&&U&&_.xp(R,U,X)}},n=function(X,u){var O=iKP(h(),X);
if(O){var N=_.c(O,E2P),t;if(t=u)t=y(),O=_.c(O,E2P),t=O!=null&&O.smartSkipMetadata?!(t==null?0:t.isSameMarkerTypeVisible((O==null?void 0:O.smartSkipMetadata.markerKey)||"")):!0;if(t){var R,I;(N==null?0:(R=N.smartSkipMetadata)==null?0:(I=R.loggingData)==null?0:I.isCounterfactual)||(K(!1,N),a(X))}else u||F()!==X||a(void 0)}};
_.Qi(function(){var X=h().timelyActions;if(X){X=_.L(X);for(var u=X.next();!u.done;u=X.next()){u=_.c(u.value,E2P);var O=void 0;(O=u)!=null&&O.cueRangeId&&S.timelyActionsMap.set(u.cueRangeId,n)}_.m2(function(){S.timelyActionsMap.clear()})}},"l2RtC");
return _.M("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.M(_.rC,{data:P},{timelyActionViewModel:function(X){return _.M(s3c,{data:X.data,maybeLogSmartSkipClientData:function(){K(!0,_.c(P(),E2P))}})}}))},"Zo");_.GMc=function(b){_.ED.call(this);this.JSC$23724_watchApi=b;b=_.L(_.pa({},void 0,"UN7k5e"));this.timelyActionsOverlay=b.next().value;this.setTimelyActionsOverlay=b.next().value;TqM(this)};
_.z(_.GMc,_.ED);var TqM=function(b){var h,y,S,F;_.Z(function(a){if(a.nextAddress==1)return kM2(b),VID(b),b.timelyActionsContainer=document.createElement("div"),a.yield(b.JSC$23724_watchApi.playerApi,2);h=a.yieldResult;(S=(y=h).insertTimelyActionUi)==null||S.call(y,b.timelyActionsContainer);F=_.EW(b.timelyActionsContainer,function(){return _.M(Y0P,{data:b.timelyActionsOverlay,playerApi:h})},"$o");
b.addOnDisposeCallback(F);_.g3(a)})},VID=function(b){var h=b.JSC$23724_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){kM2(b)});
b.addOnDisposeCallback(function(){b.JSC$23724_watchApi.unsubscribeByKey(h)})},kM2=function(b){var h=b.JSC$23724_watchApi.getWatchNextResponse();
if(h){var y,S;if(h=_.c((y=h.playerOverlays)==null?void 0:(S=y.playerOverlayRenderer)==null?void 0:S.timelyActionsOverlayViewModel,rRx)){var F;(F=b.setTimelyActionsOverlay)==null||F.call(b,h)}}};_.iRM=function(b){_.ED.call(this);this.JSC$23728_watchApi=b;Egp(this)};
_.z(_.iRM,_.ED);var Egp=function(b){var h,y;_.Z(function(S){if(S.nextAddress==1)return S.yield(b.JSC$23728_watchApi.playerApi,2);h=S.yieldResult;y=function(F){_.nt.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.c(F,_.n0J)},popupType:"TOAST"}})};
h.addEventListener("onYtShowToast",y);b.addOnDisposeCallback(function(){h.removeEventListener("onYtShowToast",y)});
_.g3(S)})};var fTc,q0p,bZ_,wdL,lTD,vg_,Q3L,mC9,hq9,SB$;fTc=!1;_.xCJ=function(b){_.ED.call(this);this.JSC$23731_watchApi=b;this.fullscreen=this.theater=!1;wdL(this);lTD(this);q0p(this)};
_.z(_.xCJ,_.ED);q0p=function(b){var h,y,S;_.Z(function(F){if(F.nextAddress==1)return F.yield(b.JSC$23731_watchApi.playerApi,2);h=F.yieldResult;if(b.isDisposed())return F.return();y=b.JSC$23731_watchApi.getElement("CINEMATICS");if(!y)return F.return();b.JSC$23731_cinematicController=new _.Ol(y,h);_.pq(b,b.JSC$23731_cinematicController);_.epM(b.JSC$23731_cinematicController);Q3L(b,_.GVy());S=b.JSC$23731_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(a){mC9(b,a)});
b.addOnDisposeCallback(function(){b.JSC$23731_watchApi.unsubscribeByKey(S)});
vg_(b);mC9(b,b.JSC$23731_cinematicController.isAllowed());bZ_(b);hq9(b);_.g3(F)})};
bZ_=function(b){b.fullscreen=_.es(_.hP().getState());b.theater=_.J4(_.hP().getState());_.yoc(b,b.fullscreen,b.theater);var h=_.Fq(_.hP(),_.es,function(S){b.fullscreen=S;_.yoc(b,b.fullscreen,b.theater)}),y=_.Fq(_.hP(),_.J4,function(S){b.theater=S;
_.yoc(b,b.fullscreen,b.theater)});
b.addOnDisposeCallback(h);b.addOnDisposeCallback(y)};
wdL=function(b){var h=b.JSC$23731_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){vg_(b)});
b.addOnDisposeCallback(function(){b.JSC$23731_watchApi.unsubscribeByKey(h)})};
lTD=function(b){var h,y;_.Z(function(S){if(S.nextAddress==1)return S.yield(b.JSC$23731_watchApi.playerApi,2);h=S.yieldResult;y=function(F){Q3L(b,F)};
h.addEventListener("cinematicSettingsToggleChange",y);b.addOnDisposeCallback(function(){h.removeEventListener("cinematicSettingsToggleChange",y)});
_.g3(S)})};
vg_=function(b){var h=b.JSC$23731_watchApi.getWatchNextResponse(),y;h=_.c(h==null?void 0:(y=h.pageVisualEffects)==null?void 0:y[0],_.bv);var S;(S=b.JSC$23731_cinematicController)==null||_.g09(S,h)};
Q3L=function(b,h){var y;(y=b.JSC$23731_cinematicController)==null||_.CNJ(y,h);SB$(b)};
mC9=function(b,h){var y;_.Z(function(S){if(S.nextAddress==1)return _.r("kevlar_watch_cinematics_invisible")&&(h=!1),S.yield(b.JSC$23731_watchApi.playerApi,2);y=S.yieldResult;y.updateCinematicSettings(h);SB$(b);_.g3(S)})};
hq9=function(b){var h=_.HT();if(_.r("kevlar_measure_ambient_mode_idle")&&!h.getFlag(192)&&!fTc){fTc=!0;var y=_.VT(_.xP,function(){_.H9().resolve(_.Kwf).start(1E4)},5E3);
b.addOnDisposeCallback(function(){_.xP.cancelJob(y);_.H9().resolve(_.Kwf).stop()})}};
_.yoc=function(b,h,y){b.fullscreen=h;b.theater=y;var S;(S=b.JSC$23731_cinematicController)==null||S.setFullscreen(b.fullscreen,b.theater);if(_.r("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(b.theater||b.fullscreen){var F;(F=b.JSC$23731_cinematicController)==null||_.YMJ(F)}else{var a;(a=b.JSC$23731_cinematicController)==null||_.sAL(a)}};
SB$=function(b){var h;b.JSC$23731_watchApi.getRoot().toggleCinematicsActive(!((h=b.JSC$23731_cinematicController)==null||!h.isEnabled()))};_.jcx=function(b){_.ED.call(this);var h=this;this.JSC$23734_watchApi=b;this.commentsReady=!1;this.setCommentsJobId=0;b=_.Fq(_.hP(),_.AI,function(){Fcp(h)});
this.addOnDisposeCallback(b);var y=this.JSC$23734_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){amf(h)}),S=this.JSC$23734_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){amf(h)});
this.addOnDisposeCallback(function(){h.JSC$23734_watchApi.unsubscribeByKey(y);h.JSC$23734_watchApi.unsubscribeByKey(S)});
var F=function(){_.r("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&dhM(h,"false")};
this.JSC$23734_watchApi.getRoot().addEventListener("yt-page-data-will-update",F);this.addOnDisposeCallback(function(){h.JSC$23734_watchApi.getRoot().removeEventListener("yt-page-data-will-update",F)});
amf(this)};
_.z(_.jcx,_.ED);var amf=function(b){b.commentsReady=!1;_.xP.cancelJob(b.setCommentsJobId);b.setCommentsJobId=_.VT(_.xP,function(){Fcp(b)},1E3)},Fcp=function(b){if(!b.commentsReady){_.pI("cmi");
_.xP.cancelJob(b.setCommentsJobId);var h,y,S,F,a=(h=b.JSC$23734_watchApi.getWatchNextResponse())==null?void 0:(y=h.contents)==null?void 0:(S=y.twoColumnWatchNextResults)==null?void 0:(F=S.results)==null?void 0:F.results.contents;h=void 0;if(a&&a.length)for(a=_.L(a),y=a.next();!y.done;y=a.next())if(y=y.value,F=S=void 0,((S=y)==null?void 0:(F=S.itemSectionRenderer)==null?void 0:F.sectionIdentifier)==="comment-item-section"){_.r("web_watch_provide_undefined_comments")?h=y.itemSectionRenderer:b.JSC$23734_watchApi.provideRenderingData("COMMENTS",
y.itemSectionRenderer);dhM(b,"true");break}_.r("web_watch_provide_undefined_comments")&&b.JSC$23734_watchApi.provideRenderingData("COMMENTS",h);b.commentsReady=!0;b.JSC$23734_watchApi.dispatchEvent("yt-watch-comments-ready")}},dhM=function(b,h){var y;
(y=b.JSC$23734_watchApi.getElement("COMMENTS"))==null||y.setAttribute("canScheduleJobs",h)};_.ZZf=function(b){_.ED.call(this);var h=this;this.JSC$23737_watchApi=b;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.r("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.r("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.r("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.tj("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)$h9(this);
else{var y=this.JSC$23737_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Lcc(h);Jh(h)}),S=this.JSC$23737_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){eX(h);
Jh(h)});
this.JSC$23737_watchApi.getRoot().is==="ytd-watch-grid"&&_.r("swatcheroo_pbs_load_grid")&&(P3L(this),Kc9(this));this.addOnDisposeCallback(function(){h.JSC$23737_watchApi.unsubscribeByKey(y);h.JSC$23737_watchApi.unsubscribeByKey(S);_.xP.cancelJob(h.provideRichGridJobId)});
Lcc(this);eX(this)}};
_.z(_.ZZf,_.ED);var $h9=function(b){var h=b.JSC$23737_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){b.providePlayerJobId=_.N$(_.xP,function(){Lcc(b);Jh(b)},b.provideAllDataDelayMs)}),y=b.JSC$23737_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){b.provideWatchNextJobId=_.N$(_.xP,function(){eX(b);
Jh(b)},b.provideAllDataDelayMs)}),S=b.JSC$23737_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){b.provideWatchNextJobId=_.N$(_.xP,function(){eX(b);
Jh(b)},b.provideAllDataDelayMs)});
b.JSC$23737_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.VT(_.xP,function(){Lcc(b);eX(b);Jh(b)},100)});
b.JSC$23737_watchApi.addPageDisposeJob(function(){_.xP.cancelJob(b.provideWatchNextJobId);_.xP.cancelJob(b.providePlayerJobId)});
b.addOnDisposeCallback(function(){b.JSC$23737_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");b.JSC$23737_watchApi.unsubscribeByKey(h);b.JSC$23737_watchApi.unsubscribeByKey(y);b.JSC$23737_watchApi.unsubscribeByKey(S);_.xP.cancelJob(b.providePlayerJobId);_.xP.cancelJob(b.provideWatchNextJobId)});
Lcc(b);eX(b)},Lcc=function(b){var h=b.JSC$23737_watchApi.getPlayerResponse(),y,S,F=(S=h==null?void 0:(y=h.playabilityStatus)==null?void 0:y.messageRenderers)!=null?S:[],a,P;
h=(P=h==null?void 0:(a=h.playabilityStatus)==null?void 0:a.messages)!=null?P:[];a=_.L(h);for(P=a.next();!P.done;P=a.next())F.push({alertRenderer:{text:_.mk(P.value),type:"WARNING"}});b.JSC$23737_watchApi.provideRenderingData("ALERTS",F)},eX=function(b){var h=[],y,S,F,a=b.JSC$23737_watchApi.getWatchNextResponse(),P,K,n,X,u=a==null?void 0:(P=a.contents)==null?void 0:(K=P.twoColumnWatchNextResults)==null?void 0:(n=K.results)==null?void 0:(X=n.results)==null?void 0:X.contents;
if(u)for(P=_.L(u),K=P.next();!K.done;K=P.next())if(K=K.value,K.videoPrimaryInfoRenderer)var O=K;else if(K.videoSecondaryInfoRenderer){var N=K;X=n=void 0;K=Object.assign({},(n=K.videoSecondaryInfoRenderer)==null?void 0:(X=n.metadataRowContainer)==null?void 0:X.metadataRowContainerRenderer);if(K.rows&&K.collapsedItemCount!==void 0){K.rows=K.rows.slice(0,K.collapsedItemCount).filter(function(QW){return!!QW.richMetadataRowRenderer});
K.collapsedItemCount=K.rows.length;var t={metadataRowContainerRenderer:K}}}else if(K.merchandiseShelfRenderer)var R=K;else if(K.ticketShelfRenderer)var I=K;else if(K.expandableMetadataRenderer)var U=K;else if(K.itemSectionRenderer)if(n=K.itemSectionRenderer.contents,X=void 0,b.directlyProvideComments&&((X=K.itemSectionRenderer)==null?void 0:X.sectionIdentifier)==="comment-item-section")_.pI("cmi"),b.JSC$23737_watchApi.provideRenderingData("COMMENTS",K.itemSectionRenderer);else if(n)for(K=_.L(n),n=
K.next();!n.done;n=K.next())if(n=n.value,n.commentsEntryPointHeaderRenderer)var p=n;else if(n.clarificationRenderer||n.infoPanelContainerRenderer||n.infoPanelContentRenderer||n.emergencyOneboxRenderer){h.push(n);var e=e||!!N}else n.limitedStateMessageRenderer?S=n:n.videoMetadataCarouselViewModel&&(F=n);if(_.r("web_watch_merch_in_sd_when_ticket_shelf_present")&&R&&I){var E=R;R=void 0}if(b.provideWatchNextSecondaryResults){var Y,w,x;b.JSC$23737_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
a==null?void 0:(Y=a.contents)==null?void 0:(w=Y.twoColumnWatchNextResults)==null?void 0:(x=w.secondaryResults)==null?void 0:x.secondaryResults)}if(b.JSC$23737_watchApi.getRoot().is==="ytd-watch-grid"){var q,dI;b.JSC$23737_watchApi.provideRenderingData("LIVE_CHAT",a==null?void 0:(q=a.contents)==null?void 0:(dI=q.twoColumnWatchNextResults)==null?void 0:dI.conversationBar)}var L4,Rq,Xn,Ny;(Y=a==null?void 0:(L4=a.contents)==null?void 0:(Rq=L4.twoColumnWatchNextResults)==null?void 0:(Xn=Rq.secondaryResults)==
null?void 0:(Ny=Xn.secondaryResults)==null?void 0:Ny.offerModule)&&(Y.donationShelfRenderer||Y.donationUnavailableRenderer)&&b.JSC$23737_watchApi.getRoot().is!=="ytd-watch-grid"&&(y=Y);L4=b.JSC$23737_watchApi.getPlayerResponse();if(!L4||!_.WSq(L4.playabilityStatus,a==null?void 0:a.playerOverlays)){var gI;if(a==null?0:(gI=a.contents)==null?0:gI.singleColumnWatchNextResults){var YU,VN;var Hb=a==null?void 0:(YU=a.contents.singleColumnWatchNextResults.results)==null?void 0:(VN=YU.results)==null?void 0:
VN.contents}else{var vF,xU,Xa,rG;gI=!!(u==null?0:(vF=u[0])==null?0:(xU=vF.itemSectionRenderer)==null?0:(Xa=xU.contents)==null?0:(rG=Xa[0])==null?0:rG.backgroundPromoRenderer);var Wb,Xx;vF=!!(a==null?0:(Wb=a.contents)==null?0:(Xx=Wb.twoColumnWatchNextResults)==null?0:Xx.secondaryResults);gI&&!vF&&(Hb=u)}}u=h[0];Wb=h[1];e&&h.length===1&&(Wb=u,u=void 0);b.JSC$23737_watchApi.provideRenderingData("PRIMARY_INFO",O);b.JSC$23737_watchApi.provideRenderingData("SECONDARY_INFO",N);b.JSC$23737_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
p);b.JSC$23737_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",F);b.JSC$23737_watchApi.provideRenderingData("CLARIFICATION",u);b.JSC$23737_watchApi.provideRenderingData("RICH_METADATA",t);b.JSC$23737_watchApi.provideRenderingData("MERCH_SHELF",R);_.r("web_watch_merch_in_sd_when_ticket_shelf_present")&&b.JSC$23737_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",E);b.JSC$23737_watchApi.provideRenderingData("TICKET_SHELF",I);b.JSC$23737_watchApi.provideRenderingData("LIMITED_STATE",S);b.JSC$23737_watchApi.getRoot().is!==
"ytd-watch-grid"&&b.JSC$23737_watchApi.provideRenderingData("DONATION_SHELF",y);b.JSC$23737_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",Hb);b.JSC$23737_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",Wb);b.JSC$23737_watchApi.provideRenderingData("EXPANDABLE_METADATA",U);if(b.swatcherooProvideAllDataOnScheduledJob){var Bb,oq,kU,O7,io,cb;O=a==null?void 0:(Bb=a.contents)==null?void 0:(oq=Bb.twoColumnWatchNextResults)==null?void 0:(kU=oq.secondaryResults)==null?void 0:(O7=kU.secondaryResults)==
null?void 0:(io=O7.results)==null?void 0:(cb=io[0])==null?void 0:cb.richGridRenderer;b.JSC$23737_watchApi.provideRenderingData("RICH_GRID_RENDERER",O)}};
_.ZZf.prototype.hasCompanionAds=function(b){var h,y;return(y=b==null?void 0:(h=b.adPlacements)==null?void 0:h.some(function(S){var F,a,P,K;return(S==null?void 0:(F=S.adPlacementRenderer)==null?void 0:(a=F.renderer)==null?void 0:a.actionCompanionAdRenderer)||(S==null?void 0:(P=S.adPlacementRenderer)==null?void 0:(K=P.renderer)==null?void 0:K.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?y:!1};
var Jh=function(b){if(!_.r("swaterdoo_ps_wn_handle_ks")){b.swatcherooProvideAllDataOnScheduledJob||Kc9(b,3E3);var h=b.JSC$23737_watchApi.getPlayerResponse(),y,S,F,a,P,K=(y=b.JSC$23737_watchApi.getWatchNextResponse())==null?void 0:(S=y.contents)==null?void 0:(F=S.twoColumnWatchNextResults)==null?void 0:(a=F.secondaryResults)==null?void 0:(P=a.secondaryResults)==null?void 0:P.offerModule;h=b.hasCompanionAds(h);var n,X;y=(K==null?void 0:(n=K.tvfilmOfferModuleRenderer)==null?void 0:n.clientShouldSuppressIfCompanionAdDisplayed)||
(K==null?void 0:(X=K.unlimitedOfferModuleRenderer)==null?void 0:X.suppressIfCompanionAds);n=h&&y;b.JSC$23737_watchApi.getRoot().is==="ytd-watch-grid"&&b.JSC$23737_watchApi.provideRenderingData("OFFER_MODULE",n?void 0:K)}},Kc9=function(b,h){_.r("swatcheroo_pbs_load_grid")&&(b.provideRichGridJobId&&_.xP.cancelJob(b.provideRichGridJobId),b.provideRichGridJobId=_.N$(_.xP,function(){b.provideRichGridJobId=0;
var y,S,F,a,P,K,n,X=(y=b.JSC$23737_watchApi.getWatchNextResponse())==null?void 0:(S=y.contents)==null?void 0:(F=S.twoColumnWatchNextResults)==null?void 0:(a=F.secondaryResults)==null?void 0:(P=a.secondaryResults)==null?void 0:(K=P.results)==null?void 0:(n=K[0])==null?void 0:n.richGridRenderer;X&&b.JSC$23737_watchApi.provideRenderingData("RICH_GRID_RENDERER",X)},h))},P3L=function(b){var h,y;
_.Z(function(S){if(S.nextAddress==1)return S.yield(b.JSC$23737_watchApi.playerApi,2);h=S.yieldResult;y=function(){b.onPlaybackStart()};
h.addEventListener("onPlaybackStartExternal",y);b.addOnDisposeCallback(function(){h.removeEventListener("onPlaybackStartExternal",y)});
_.g3(S)})};
_.ZZf.prototype.onPlaybackStart=function(){Kc9(this)};_.MCp=function(b){_.ED.call(this);var h=this;this.JSC$23749_watchApi=b;b.playerApi.then(function(y){h.player=y});
this.gestures=new _.L7(this.JSC$23749_watchApi.getRoot(),b.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.lBf(_.hP().getState())&&_.AI(_.hP().getState())<=0)if(_.es(_.hP().getState())){var y;(y=h.player)==null||y.toggleFullscreen()}else _.F8(h.JSC$23749_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
ox9(this)};
_.z(_.MCp,_.ED);var ox9=function(b){var h=_.Fq(_.hP(),_.es,function(y){b.onFullscreenChanged(y)});
b.addOnDisposeCallback(h);h=_.Fq(_.hP(),_.AI,function(y){b.gestures&&(y>0?b.gestures.detach():b.gestures.attach())});
b.addOnDisposeCallback(h)};
_.MCp.prototype.onFullscreenChanged=function(b){this.gestures&&this.gestures.update(b)};var nx9;nx9=["PLAYLIST"];_.HZ9=function(b){_.ED.call(this);var h=this;this.JSC$23752_watchApi=b;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(b.subscribeToActiveChanged(function(y){h.onActiveChanged(y)}));
Xl_(this)};
_.z(_.HZ9,_.ED);var uf2=function(b){b.pageDisposalDataTypes=Object.values(UmJ).filter(function(h){return!nx9.includes(h)})},Xl_=function(b){if(_.r("swatcheroo_enable_ghost_cards")||_.r("web_watch_clear_data_on_page_dispose"))uf2(b),b.JSC$23752_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.xP.cancelJob(b.clearDataJobId);
b.clearDataJobId=0}),b.runPageDisposeJob=function(){var h=_.H9().resolve(_.bM).getDestinationPageType()==="watch";
b.clearDataJobId=_.N$(_.xP,b.runClearDataJob,h?0:_.tj("web_watch_delay_page_dispose_ms",1E4))},b.runClearDataJob=function(){OZD(b)},b.runOnYtNavigateAwayFinish=function(){b.clearDataJobId&&(_.xP.cancelJob(b.clearDataJobId),b.clearDataJobId=0,OZD(b))},document.addEventListener("yt-navigate-finish",b.runOnYtNavigateAwayFinish),b.JSC$23752_watchApi.addPageDisposeJob(b.runPageDisposeJob),b.addOnDisposeCallback(function(){b.JSC$23752_watchApi.removePageDisposeJob(b.runPageDisposeJob);
b.JSC$23752_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",b.runOnYtNavigateAwayFinish)})},OZD=function(b){b.pageDisposalDataTypes.forEach(function(h){b.JSC$23752_watchApi.provideRenderingData(h,void 0)});
b.clearDataJobId=0};
_.HZ9.prototype.onActiveChanged=function(b){b&&((b=document.querySelector("#watch-page-skeleton"))&&_.sD(b),NyL(this),document.body.removeAttribute("no-y-overflow"),_.m$("IS_SHELL_LOAD")&&_.e9c())};
var NyL=function(b){_.Z(function(h){if(h.nextAddress==1)return h.yield(b.JSC$23752_watchApi.playerApi,2);_.Eo();_.g3(h)})};var tC9;tC9=_.r("kevlar_watch_while_counterfactual")?0:.25;_.zq_=function(b){_.ED.call(this);this.JSC$23755_watchApi=b;this.JSC$23755_watchWhileEnabled=_.r("kevlar_watch_while_v2");this.JSC$23755_watchPipEnabled=_.r("web_watch_pip");rof(this);coM(this);Rq$(this)};
_.z(_.zq_,_.ED);var rof=function(b){b.JSC$23755_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){DhJ(b)});
b.addOnDisposeCallback(function(){b.JSC$23755_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},coM=function(b){var h,y;
_.Z(function(S){if(S.nextAddress==1)return S.yield(b.JSC$23755_watchApi.playerApi,2);h=S.yieldResult;y=function(F){F&&b.JSC$23755_watchPipEnabled?(F=_.H9().resolve(_.bM),_.h0().watchPipActivation=!0,_.OKA(_.H9().resolve(_.Vp),F.data)):DhJ(b)};
h.addEventListener("onCollapseMiniplayer",y);b.addOnDisposeCallback(function(){h.removeEventListener("onCollapseMiniplayer",y)});
_.g3(S)})},Rq$=function(b){var h=b.JSC$23755_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&h&&b.JSC$23755_watchWhileEnabled&&(b.playerIntersectionObserver=new IntersectionObserver(function(y){b.handleIntersect(y)},{threshold:[tC9]}),b.playerIntersectionObserver.observe(h),b.addOnDisposeCallback(function(){var y;
(y=b.playerIntersectionObserver)==null||y.disconnect()}))},DhJ=function(b){var h,y,S;
_.Z(function(F){if(F.nextAddress==1)return h=_.H9().resolve(_.bM),y=h.data,S=_.PdF(y.response,y.playerResponse),_.h0().miniplayerButtonActivation=!0,_.H9().resolve(_.Vp).collapse(),F.yield(_.h0().navigationFinishPromise,2);if(F.nextAddress!=3)return _.h0().currentEndpoint=S.watchEndpoint||null,F.yield(_.H9().resolve(_.Vp).activate(b.JSC$23755_watchApi.getElement("PLAYER"),S,y),3);_.h0().userActivation=!0;_.g3(F)})};
_.zq_.prototype.handleIntersect=function(b){Im9(this,b[b.length-1])};
var Im9=function(b,h){b.watchWhileJobId&&_.xP.cancelJob(b.watchWhileJobId);b.watchWhileJobId=_.xP.addLowPriorityJob(function(){var y,S;return _.Z(function(F){if(F.nextAddress==1)return b.watchWhileJobId=void 0,y=_.H9().resolve(_.Vp),h.intersectionRatio>tC9?y.isMiniplayerActive()?F.yield(y.deactivate(),0):F.jumpTo(0):(S=!y.isMiniplayerActive())?F.yield(Byx(b),5):F.jumpTo(4);F.nextAddress!=4&&(S=F.yieldResult);if(!S)return F.jumpTo(0);_.h0().watchWhileActivation=!0;return F.yield(Wcf(b),0)})},100)},
Byx=function(b){return _.Z(function(h){return h.nextAddress==1?_.r("kevlar_watch_while_paused")?h.return(!0):h.yield(b.isPlayerPlaying(),2):h.return(h.yieldResult)})};
_.zq_.prototype.isPlayerPlaying=function(){var b=this,h;return _.Z(function(y){if(y.nextAddress==1)return y.yield(b.JSC$23755_watchApi.playerApi,2);h=y.yieldResult;return y.return(h.getPlayerStateObject().isPlaying)})};
var Wcf=function(b){var h,y;return _.Z(function(S){h=_.H9().resolve(_.bM).data;y=_.PdF(h.response,h.playerResponse);_.h0().currentEndpoint=y.watchEndpoint||null;return S.yield(_.H9().resolve(_.Vp).activate(b.JSC$23755_watchApi.getElement("PLAYER"),y,h),0)})};_.pl9=function(b){_.ED.call(this);this.JSC$23759_watchApi=b;Aoc(this);UhD(this)};
_.z(_.pl9,_.ED);var UhD=function(b){var h,y;_.Z(function(S){if(S.nextAddress==1)return S.yield(b.JSC$23759_watchApi.playerApi,2);h=S.yieldResult;y=function(F){var a;F.sessionData&&F.sessionData.itct&&(a=F.sessionData.itct);var P=F.watchEndpoint;if(P&&F.sessionData&&F.sessionData.autonav)P=_.IqN(P,a);else{var K;P=_.FF(F.videoId,(K=F.listId)!=null?K:void 0,a)}a={endpoint:P};F.sessionData&&(a.tempData=F.sessionData);b.JSC$23759_watchApi.dispatchEvent("yt-navigate",a)};
h.addEventListener("onPlayVideo",y);b.addOnDisposeCallback(function(){h.removeEventListener("onPlayVideo",y)});
_.g3(S)})},Aoc=function(b){var h=function(y){b.onYtNavigate(y)};
b.JSC$23759_watchApi.getRoot().addEventListener("yt-navigate",h);b.addOnDisposeCallback(function(){b.JSC$23759_watchApi.getRoot().removeEventListener("yt-navigate",h)})};
_.pl9.prototype.onYtNavigate=function(b){var h=this,y,S,F,a,P,K,n,X,u;return _.Z(function(O){if(O.nextAddress==1){if(!((y=b.detail)==null?0:(S=y.endpoint)==null?0:S.watchEndpoint))return O.return();F=b.detail.endpoint.watchEndpoint;a=h.JSC$23759_watchApi.getWatchNextResponse();K=_.c((P=a)==null?void 0:P.currentVideoEndpoint,_.wO);if(!K)return O.return();if(F.videoId!==K.videoId||F.playlistId&&F.playlistId!==K.playlistId||typeof F.startTimeSeconds!=="number")return O.jumpTo(0);b.stopPropagation();
(n=_.r("kevlar_watch_while_v2")&&!_.r("kevlar_watch_while_counterfactual"))&&_.H9().resolve(_.Vp).isMiniplayerActive()||h.JSC$23759_watchApi.scrollWatchTo(0,!0);return O.yield(h.JSC$23759_watchApi.playerApi,3)}X=O.yieldResult;u=F.startTimeSeconds;X.seekTo(u,void 0,void 0,void 0,84);X.wakeUpControls();u<X.getDuration()&&X.playVideo();_.g3(O)})};_.eqL=function(b){_.ED.call(this);var h=this;this.JSC$23762_watchApi=b;var y=this.JSC$23762_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){JoL(h)});
this.addOnDisposeCallback(function(){h.JSC$23762_watchApi.unsubscribeByKey(y)});
JoL(this);_.r("enable_ai_companion")&&(b=this.JSC$23762_watchApi.getElement("PERSISTENT_PANEL_CONTAINER"))&&_.q0q(_.H9().resolve(_.HD),b,"WATCH")};
_.z(_.eqL,_.ED);var JoL=function(b){var h=b.JSC$23762_watchApi.getWatchNextResponse();if(h){var y,S=[].concat(_.f$((y=h==null?void 0:h.engagementPanels)!=null?y:[]));_.r("web_watch_comments_visible_by_default")&&(y=S.find(function(F){var a;return((a=F.engagementPanelSectionListRenderer)==null?void 0:a.targetId)==="engagement-panel-comments-section"}),y==null?0:y.engagementPanelSectionListRenderer)&&(y.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");
S.unshift.apply(S,_.f$(C3f(h)));b.JSC$23762_watchApi.provideRenderingData("ENGAGEMENT_PANELS",S)}},scD=function(b){var h,y,S,F=(h=b.engagementPanels)==null?void 0:(y=h.find(function(t){var R;
return((R=t.engagementPanelSectionListRenderer)==null?void 0:R.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(S=y.engagementPanelSectionListRenderer.content)==null?void 0:S.structuredDescriptionContentRenderer,a;
if(_.c(F==null?void 0:(a=F.items)==null?void 0:a.find(function(t){return!!_.c(t,T_R)}),T_R))return!0;
var P,K,n,X;if(b=(((P=b.contents)==null?void 0:(K=P.twoColumnWatchNextResults)==null?void 0:(n=K.results)==null?void 0:(X=n.results)==null?void 0:X.contents)||[]).find(function(t){return t.videoPrimaryInfoRenderer})){var u,O,N;
return(((u=b.videoPrimaryInfoRenderer)==null?void 0:(O=u.videoActions)==null?void 0:(N=O.menuRenderer)==null?void 0:N.flexibleItems)||[]).some(function(t){t=_.c(t,_.d1W);if(!t)return!1;var R,I;t=(R=t.topLevelButton)==null?void 0:(I=R.buttonViewModel)==null?void 0:I.onTap;if(!t)return!1;R=_.YS(t);if(!R)return!1;if(gxc(R))return!0;if(_.r("enable_creator_chatbot")){R=_.c(R,_.LI);if(!R)return!1;var U;return(U=R.commands)==null?void 0:U.some(function(p){return gxc(p)})}return!1})}return!1},gxc=function(b){var h;
return((h=_.c(b,_.ge))==null?void 0:h.panelIdentifier)==="PAyouchat"},C3f=function(b){var h=[];
if(!_.r("web_watch_inject_placeholder_fantasy_panel_killswitch")){var y,S,F,a=(y=b.engagementPanels)==null?void 0:(S=y.find(function(K){var n;return((n=K.engagementPanelSectionListRenderer)==null?void 0:n.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(F=S.engagementPanelSectionListRenderer.content)==null?void 0:F.structuredDescriptionContentRenderer,P;
_.c(a==null?void 0:(P=a.items)==null?void 0:P.find(function(K){return!!_.c(K,Xop)}),Xop)&&(y=_.$V8("PAsports_fantasy"),y.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",h.push(y))}scD(b)&&(b=_.$V8("PAyouchat"),b.engagementPanelSectionListRenderer.targetId="PAyouchat",b.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",h.push(b));
return h};_.Ty_=function(b){_.ED.call(this);this.JSC$23765_watchApi=b;YB9(this)};
_.z(_.Ty_,_.ED);var YB9=function(b){b.JSC$23765_watchApi.registerActionHandler("yt-loop-command",function(h){GjL(b,h)});
b.JSC$23765_watchApi.registerActionHandler("yt-repeat-chapter-command",function(h){kj2(b,h)});
b.addOnDisposeCallback(function(){b.JSC$23765_watchApi.unregisterActionHandler("yt-loop-command");b.JSC$23765_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},GjL=function(b,h){var y;
_.Z(function(S){if(S.nextAddress==1)return S.yield(b.JSC$23765_watchApi.playerApi,2);y=S.yieldResult;_.c(h,uCA).loop?(y.setLoopRange({startTimeMs:Number(_.c(h,uCA).startTimeMs),endTimeMs:Number(_.c(h,uCA).endTimeMs),postId:_.c(h,uCA).postId,type:"clips"}),y.playVideo()):y.setLoopRange(null);_.g3(S)})},kj2=function(b,h){var y,S;
_.Z(function(F){if(F.nextAddress==1)return F.yield(b.JSC$23765_watchApi.playerApi,2);y=F.yieldResult;S=_.c(h,cRp).repeat;S==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(y.setLoopRange({startTimeMs:Number(_.c(h,cRp).startTimeMs),endTimeMs:Number(_.c(h,cRp).endTimeMs),type:"repeatChapter"}),y.playVideo()):S==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&y.setLoopRange(null);_.g3(F)})};_.Exx=function(b){_.ED.call(this);this.JSC$23770_watchApi=b;VC$(this)};
_.z(_.Exx,_.ED);var VC$=function(b){b.JSC$23770_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(h){iZJ(b,h)});
b.addOnDisposeCallback(function(){b.JSC$23770_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},iZJ=function(b,h){var y,S,F,a,P,K,n,X,u,O,N;
_.Z(function(t){if(t.nextAddress==1)return t.yield(b.JSC$23770_watchApi.playerApi,2);y=t.yieldResult;if(a=(F=(S=_.c(h,RLc))==null?void 0:S.highlightedMenuItemKey)!=null?F:"")(K=(P=y).highlightSettingsMenuItem)==null||K.call(P,a);if(u=(X=(n=_.c(h,RLc))==null?void 0:n.openMenuItemKey)!=null?X:"")(N=(O=y).openSettingsMenuItem)==null||N.call(O,u);_.g3(t)})};var fmJ=_.oU("/youtube/app/watch/player_state","playerStateEntity");_.CO=function(b){_.ED.call(this);this.JSC$23773_watchApi=b;wl2(this)};
_.z(_.CO,_.ED);var lmP=function(b){switch(b){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"}},wl2=function(b){var h,y,S,F,a;
_.Z(function(P){if(P.nextAddress==1)return P.yield(b.JSC$23773_watchApi.playerApi,2);h=P.yieldResult;if(b.isDisposed())return P.return();y=function(K){b.onPlayerStateChange(K)};
S=function(K){b.onAdStateChange(K)};
F=function(){b.onAdSkip()};
a=function(K){b.onVideoDataChange(K)};
h.addEventListener("onStateChange",y);h.addEventListener("onAdStateChange",S);h.addEventListener("onAdSkip",F);h.addEventListener("onVideoDataChange",a);b.addOnDisposeCallback(function(){h.removeEventListener("onStateChange",y);h.removeEventListener("onAdStateChange",S);h.removeEventListener("onAdSkip",F);h.removeEventListener("onVideoDataChange",a)});
_.g3(P)})},qBx=function(b){var h=_.mc(),y=h.dispatch;
a:switch(b.adsState){case -1:case 0:var S="ADS_STATE_NONE";break a;case 1:case 2:case 3:S="ADS_STATE_PLAYING";break a;default:S="ADS_STATE_UNKNOWN"}y.call(h,_.R7("playerStateEntity",fmJ,{key:fmJ,playerState:lmP(b.playerState),adsState:S,videoId:b.videoId}))};
_.CO.prototype.onPlayerStateChange=function(b){var h=this,y;return _.Z(function(S){if(S.nextAddress==1)return S.yield(h.JSC$23773_watchApi.playerApi,2);y=S.yieldResult;if(h.isDisposed())return S.return();h.playerState=b;h.videoId=y.getVideoData().video_id;qBx(h);_.g3(S)})};
_.CO.prototype.onAdStateChange=function(b){this.adsState=b;qBx(this)};
_.CO.prototype.onAdSkip=function(){this.adsState=0;qBx(this)};
_.CO.prototype.onVideoDataChange=function(b){b.type==="newdata"&&(this.adsState=-1,qBx(this))};_.Qcp=function(b){_.ED.call(this);var h=this;this.JSC$23777_watchApi=b;this.enableExternalPlaylistPanelInPlayer=_.r("delhi_web_player_use_external_playlist_panel");_.H9().resolve(_.Rz).setPlayer(this.JSC$23777_watchApi.getElement("PLAYER"));b=this.JSC$23777_watchApi.subscribeToActiveChanged(function(y){h.onActiveChanged(y)});
this.addOnDisposeCallback(b);xhp(this)};
_.z(_.Qcp,_.ED);var xhp=function(b){var h,y;_.Z(function(S){if(S.nextAddress==1)return b.enableExternalPlaylistPanelInPlayer?S.yield(b.JSC$23777_watchApi.playerApi,2):S.return();h=S.yieldResult;y=function(){if(b.playlistPanelElement)b.playlistPanelElement.onToggleExpanded()};
h.addEventListener("onToggleExternalPlaylistPanel",y);b.addOnDisposeCallback(function(){h.removeEventListener("onToggleExternalPlaylistPanel",y)});
_.g3(S)})};
_.Qcp.prototype.onActiveChanged=function(b){var h=this,y=_.H9().resolve(_.Rz),S=function(){mh_(h)};
b?(this.playlistPanelElement=this.JSC$23777_watchApi.getElement("PLAYLIST_PANEL"))?(y.setPlaylistComponent(this.playlistPanelElement),y.addEventListener("yt-playlist-data-updated",S),this.addOnDisposeCallback(function(){y.removeEventListener("yt-playlist-data-updated",S)}),mh_(this)):_.yb(Error("qp")):(y.removeEventListener("yt-playlist-data-updated",S),y.cancelVideoSkip())};
var mh_=function(b){var h=_.H9().resolve(_.Rz);b.JSC$23777_watchApi.provideRenderingData("PLAYLIST",h.getPlaylistData())};_.gZ=function(b){_.ED.call(this);var h=this;this.JSC$23780_watchApi=b;this.onPageScroll=function(){h.scrollThrottle.fire();h.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.MG(this.onThrottledScroll,200,this);_.pq(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.MG(this.onMastheadThrottledScroll,50,this);_.pq(this,this.mastheadScrollThrottle);this.animation=new _.CC(function(y){h.JSC$23780_watchApi.getRoot().setScrollTop(y)});
b=_.Fq(_.hP(),_.es,function(){h.onFullscreenChanged()});
this.addOnDisposeCallback(b);vxJ(this);btA(this);this.onThrottledScroll()};
_.z(_.gZ,_.ED);
_.gZ.prototype.onFullscreenChanged=function(){var b=this,h=this.JSC$23780_watchApi.getRoot();!this.pageScrollElement&&h.pageScrollElement?(this.pageScrollElement=h.pageScrollElement,h.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){b.pageScrollElement&&b.pageScrollElement.removeEventListener("scroll",b.onPageScroll)})):this.pageScrollElement&&!h.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var vxJ=function(b){window.addEventListener("scroll",b.onPageScroll);b.addOnDisposeCallback(function(){window.removeEventListener("scroll",b.onPageScroll)})},btA=function(b){b.JSC$23780_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(h){a:{var y;
if(y=b.JSC$23780_watchApi.getRoot().contains(h)&&!b.animation.isAnimating()){y=h.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var S,F,a=(h==null?void 0:(S=h.parentElement)==null?void 0:(F=S.parentElement)==null?void 0:F.id)==="fixed-secondary";y=!(y&&a)}if(y){if(_.r("kevlar_watch_scroll_manager_absolute_offset_killswitch"))S=h.offsetTop;else for(S=0,F=h;F!==null;)S+=F.offsetTop,S-=F.scrollTop,F=F.offsetParent;F=S;S=F-24;h=F+h.offsetHeight+24;F=b.JSC$23780_watchApi.getRoot().getPageScrollingElement();
y=b.JSC$23780_watchApi.getRoot().getScrollTop();a=y+F.clientHeight-56;if(S<y+56)h=S-56;else if(h>a)h-=F.clientHeight;else break a;b.scrollWatchTo(Math.max(0,h),!0)}}});
b.addOnDisposeCallback(function(){b.JSC$23780_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.gZ.prototype.onThrottledScroll=function(){var b=_.hP(),h=b.dispatch,y=this.JSC$23780_watchApi.getRoot().getScrollTop();h.call(b,_.$8({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:y}}))};
_.gZ.prototype.onMastheadThrottledScroll=function(){this.JSC$23780_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$23780_watchApi.getRoot().getScrollTop())};
_.gZ.prototype.scrollWatchTo=function(b,h){(h===void 0?0:h)?this.animation.start(this.JSC$23780_watchApi.getRoot().getScrollTop(),Math.max(0,b),500):this.JSC$23780_watchApi.getRoot().setScrollTop(b)};_.SQ2=function(b){_.ED.call(this);var h=this;this.JSC$23783_watchApi=b;var y=this.JSC$23783_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){hk$(h)}),S=this.JSC$23783_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){y6M(h)});
this.addOnDisposeCallback(function(){h.JSC$23783_watchApi.unsubscribeByKey(y);h.JSC$23783_watchApi.unsubscribeByKey(S)});
hk$(this);y6M(this)};
_.z(_.SQ2,_.ED);
var hk$=function(b){var h,y,S,F=(S=(h=b.JSC$23783_watchApi.getPlayerResponse())==null?void 0:(y=h.videoDetails)==null?void 0:y.title)!=null?S:"";b.JSC$23783_watchApi.dispatchEvent("yt-update-title",F)},y6M=function(b){var h,y,S,F,a,P,K,n=(K=((P=(h=b.JSC$23783_watchApi.getWatchNextResponse())==null?void 0:(y=h.contents)==null?void 0:(S=y.twoColumnWatchNextResults)==null?void 0:(F=S.results)==null?void 0:(a=F.results)==null?void 0:a.contents)!=null?P:[]).find(function(X){return!!X.videoPrimaryInfoRenderer}))==null?
void 0:K.videoPrimaryInfoRenderer;
(h=_.vi(n==null?void 0:n.title))&&b.JSC$23783_watchApi.dispatchEvent("yt-update-title",h)};_.a1P=function(b){_.ED.call(this);this.JSC$23786_watchApi=b;FIL(this)};
_.z(_.a1P,_.ED);var FIL=function(b){var h,y;_.Z(function(S){if(S.nextAddress==1)return S.yield(b.JSC$23786_watchApi.playerApi,2);h=S.yieldResult;y=function(){b.onYpcContentRequest()};
h.addEventListener("onYpcContentRequest",y);b.addOnDisposeCallback(function(){h.removeEventListener("onYpcContentRequest",y)});
_.g3(S)})};
_.a1P.prototype.onYpcContentRequest=function(){var b,h,y,S,F,a=(b=this.JSC$23786_watchApi.getWatchNextResponse())==null?void 0:(h=b.contents)==null?void 0:(y=h.twoColumnWatchNextResults)==null?void 0:(S=y.secondaryResults)==null?void 0:(F=S.secondaryResults)==null?void 0:F.offerModule,P,K,n,X;b=(X=(n=(K=(P=a==null?void 0:a.episodeOfferModuleRenderer)!=null?P:a==null?void 0:a.movieOfferModuleRenderer)!=null?K:a==null?void 0:a.unlimitedOfferModuleRenderer)!=null?n:a==null?void 0:a.liveOfferModuleRenderer)!=
null?X:a==null?void 0:a.tvfilmOfferModuleRenderer;var u,O,N;a=(N=a==null?void 0:(u=a.tvfilmOfferModuleRenderer)==null?void 0:(O=u.actionButtons)==null?void 0:O.length)!=null?N:0;O=Math.max(a-1,0);var t,R,I;u=(I=b==null?void 0:(t=b.offerButton)==null?void 0:t.buttonRenderer)!=null?I:b==null?void 0:(R=b.actionButtons)==null?void 0:R[O].buttonRenderer;var U,p;(t=(p=(U=u==null?void 0:u.navigationEndpoint)!=null?U:u==null?void 0:u.serviceEndpoint)!=null?p:u==null?void 0:u.command)&&_.nt.instance.resolveCommand(t)};
}catch(e){_._DumpException(e)}
try{
var YBA,C3A,plA;_.eqE=function(){var b=_.lR.clone(Uhf),h;return(new _.Uu(function(y,S){b.onSuccess=function(F){_.u8k(F)?y(new plA(F)):S(new _.JoE("Request failed, status="+_.RA(F),"net.badstatus",F))};
b.onError=function(F){S(new _.JoE("Unknown request error","net.unknown",F))};
b.onTimeout=function(F){S(new _.JoE("Request timed out","net.timeout",F))};
h=_.Aj("//googleads.g.doubleclick.net/pagead/id",b)})).thenCatch(function(y){if(y instanceof _.GR){var S;
(S=h)==null||S.abort()}return _.UQ(y)})};
_.gxA=function(b){a:{var h="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(h="EMBEDDED_PLAYER_MODE_PFL");var y=b.raw_embedded_player_response;if(!y&&(b=b.embedded_player_response))try{y=JSON.parse(b)}catch(F){break a}if(y)b:for(var S in C3A)if(C3A[S]==y.embeddedPlayerMode){h=C3A[S];break b}}return h==="EMBEDDED_PLAYER_MODE_PFL"};
_.scf=function(){if(_.r("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("wf");if(!_.yQr())return Error("xf");var b=_.QC("PLAYER_VARS",{});if(_.lR.get(b,"privembed",!1)=="1")return Error("yf");if(_.gxA(b))return Error("zf")};
YBA=function(b){switch(b){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:_.m5(b,"unknown result type")}};
_.Tyf=function(b,h,y){h=_.FzI[h];y={detected:b===0,source:h.sBJ,detectionResult:YBA(b),contentCpn:y};_.qi("biscottiBasedDetection",y);_.Qv8.increment(h.sBJ,b);h.igF!==void 0&&_.xZ("CATSTAT",_.yZn(b,h))};
_.GjE=function(b,h){var y={};y.key=b;y.value=h;return _.zfY().then(function(S){return new Promise(function(F,a){try{var P=S.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(y);P.onsuccess=function(){F()};
P.onerror=function(){a()}}catch(K){a(K)}})})};
_.VCF=function(){var b=_.tj("user_engagement_experiments_rate_limit_ms"),h=kjd.get("last-user-engagement-exp-trigger-timestamp");return!h||(0,_.NO)()>=h+b?(kjd.set("last-user-engagement-exp-trigger-timestamp",(0,_.NO)()),!0):!1};
_.LY=function(b,h,y,S,F){h=h===void 0?null:h;y=y===void 0?null:y;S=S===void 0?null:S;F=F===void 0?null:F;b={youThereEventType:b};y&&(b.lactThresholdMs=y.lactThresholdMs,b.mediaPosSec=y.promptDelaySec,b.lactServerRequestMs=y.lactServerRequestMs,b.triggerReason=y.triggerReason);F!=null&&(b.renderingMediaPosSec=Math.round(F));h||(h=_.UE());h&&(b.clientScreenNonce=h);S&&(b.clientPlaybackNonce=S);_.qi("youThere",b)};
C3A={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"};plA=function(b){this.xhr=b};
_.JoE=function(b,h,y){_.bf.call(this,b+", errorCode="+h);this.errorCode=h;this.xhr=y;this.name="PromiseAjaxError"};
_.z(_.JoE,_.bf);var Uhf={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var kjd=new _.SZ("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.AoA=function(b){return _.$8({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:b})};
}catch(e){_._DumpException(e)}
try{
var V3,J6f,Cip,gS_,s_$,YQD,GKc,xJp,Q_L,mJp,TUP,ekc,itJ,ESD,hzD;_.p32=function(){var b=window.location.hash;b.charAt(0)==="#"&&(b=b.charAt(1)==="!"?b.substring(2):b.substring(1));return _.aA(b)};
V3=function(b,h,y){var S;return _.Z(function(F){if(F.nextAddress==1)return F.yield(h(),2);S=F.yieldResult;y(S,b);_.g3(F)})};
J6f=function(){return _.Z(function(b){return b.nextAddress==1?b.yield((_.scf()!==void 0?_.UQ(Error("Af")):_.eqE()).then(function(){return 1},function(h){if(h.message==="Biscotti id is disabled")return 3;
_.vX("Failed fetching bid");return 0}),2):b.return(b.yieldResult)})};
Cip=function(){var b=_.a3("MzV4Z2V5dC1oYXZlbi1lbWJlZC1wbGF5ZXIjeHhnNDRneQ=="),h=_.a3("YW1lI2RjY3JldHF4MGxmYWlmcg==");return document.querySelector(h+ekc+b)?0:1};
gS_=function(){return _.V9Y(_.p0)};
s_$=function(){return _.Eoy()===0?0:_.ikF()};
YQD=function(){return _.xpj(_.PUY([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
GKc=function(){return _.eEy(TUP)};
_.kKJ=function(b){_.Z(function(h){switch(h.nextAddress){case 1:return h.yield(V3("b.f_",J6f,b),2);case 2:return h.yield(V3("j.s_",_.pDN,b),3);case 3:return h.yield(V3("r.s_",_.Wqf,b),4);case 4:return h.yield(V3("e.h_",GKc,b),5);case 5:if(!_.r("ab_det_sc_inj")){h.jumpTo(6);break}return h.yield(V3("s.i_",_.G_I,b),6);case 6:if(_.r("ab_deg_unex_thr")){h.jumpTo(8);break}return h.yield(V3("a.o_",_.Yzy,b),8);case 8:if(_.r("ks_get_o_pp")){h.jumpTo(10);break}return h.yield(V3("g.o_",_.sxI,b),10);case 10:if(_.r("ks_det_gpbl")){h.jumpTo(12);
break}return h.yield(V3("p.i_",_.gon,b),12);case 12:return h.yield(V3("f.i_",_.u$I,b),14);case 14:return h.yield(V3("a.b_",_.IPU,b),15);case 15:return h.yield(V3("p.m_",_.t9n,b),16);case 16:if(!_.r("ab_det_el_h_v2")){h.jumpTo(17);break}return h.yield(V3("n.h_",YQD,b),17);case 17:return h.yield(V3("o.p_",gS_,b),19);case 19:return h.yield(V3("e.i_",Cip,b),20);case 20:if(_.r("ab_det_apm"))return h.yield(V3("o.a_",s_$,b),0);h.jumpTo(0)}})};
_.Vjc=function(b,h){b={videoId:b};h&&(b.playlistId=h);return b};
_.f1A=function(){if(_.yQr()){var b=_.QC("PLAYER_VARS",{});if(_.lR.get(b,"privembed",!1)!="1"&&!_.gxA(b)){var h=function(){ESD=!0;"google_ad_status"in window?_.xZ("DCLKSTAT",1):_.xZ("DCLKSTAT",2)};
try{_.Tt(_.ykA,h)}catch(y){}itJ.push(_.xP.addLowPriorityJob(function(){if(!(ESD||"google_ad_status"in window)){try{_.lXI(_.ykA.toString(),h)}catch(y){}ESD=!0;_.xZ("DCLKSTAT",3)}},5E3))}}};
_.w39=function(b,h,y){y=y===void 0?!1:y;var S=Math.max(b.width,_.kUx);if(_.r("kevlar_watch_feed_big_thumbs")&&b.width>=1550-_.Qo()&&b.height>=800)S-=_.lRR;else if(b.width>=_.gM){var F=_.VHJ+_.EJ2+_.CJ;_.r("kevlar_watch_feed_big_thumbs")&&(F=_.wof);S-=F}else S-=_.VHJ;S=Math.min(S,_.iPA);F=240;y&&(F=380);h<.5624||(!_.r("kevlar_watch_flexy_disable_small_window_sizing")&&(b.height<630&&b.width>=657||b.height>=630&&b.width>=_.gM&&b.width<1327)?F=360:!_.r("kevlar_watch_flexy_disable_large_window_sizing")&&
b.height>=630&&b.width>=1327&&(F=480));var a=Math.min(S*h,b.height-(56+_.GUL+_.fR$));a=Math.max(a,F);h<1?S=a/h:b.width>=_.gM&&(S=_.w39(b,.5625,y).width);return new _.g1(Math.round(S),Math.round(a))};
_.l1$=function(b){var h=0;b.indexOf("h")!=-1&&(b=b.split("h"),h=b[0]*60*60,b=b[1]);b.indexOf("m")!=-1&&(b=b.split("m"),h=b[0]*60+h,b=b[1]);b.indexOf("s")!=-1?(b=b.split("s"),h=b[0]*1+h):h=b*1+h;return h};
_.qQD=function(){_.tj("service_worker_push_logged_out_prompt_watches")!=-1&&_.FY("WatchCount").then(function(b){b>=100||_.GjE("WatchCount",b+1)})};
xJp=function(b){var h=b.externalVideoId||"";return h?b.isShortsEligible?"https://www.youtube.com/shorts/"+h:"https://www.youtube.com/watch?v="+h:""};
Q_L=function(b){var h=[];b.viewCount&&h.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:b.viewCount});b.likeCount&&h.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:b.likeCount});return h};
mJp=function(b){var h,y,S={"@context":"https://schema.org","@type":"VideoObject",description:_.vi(b.description),duration:"PT"+(b.lengthSeconds||"0")+"S",embedUrl:b.embed?b.embed.iframeUrl:"",name:_.vi(b.title),thumbnailUrl:((h=b.thumbnail)==null?void 0:(y=h.thumbnails)==null?void 0:y.map(function(u){return u&&u.url||""}))||[],
uploadDate:b.publishDate};_.r("mweb_video_schema_id_killswitch")||(S["@id"]=xJp(b));h=Q_L(b);h.length&&(S.interactionStatistic=h);b.category&&(S.genre=b.category);b.ownerChannelName&&(S.author=b.ownerChannelName);b.liveBroadcastDetails&&(S.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:b.liveBroadcastDetails.startTimestamp,endDate:b.liveBroadcastDetails.endTimestamp}]);if(b.learningResource){b=b.learningResource;S["@type"]=["VideoObject","LearningResource"];var F;if((F=b.learningResourceType)==
null?0:F.length)S.learningResourceType=b.learningResourceType[0];var a;if((a=b.educationalAlignment)==null?0:a.length)S.educationalAlignment={"@type":"AlignmentObject",targetName:b.educationalAlignment[0]};var P;if((P=b.educationalLevel)==null?0:P.length){F=b.educationalLevel[0];var K;if((K=b.educationalLevelCountry)==null?0:K.length)F+=" ("+b.educationalLevelCountry+")";S.educationalLevel=F}var n,X;if(((n=b.learningResourceType)==null?0:n.length)&&b.learningResourceType[0]==="Problem walkthrough"&&
((X=b.problemDescriptions)==null?0:X.length))for(S.hasPart=[],K=_.L(b.problemDescriptions),n=K.next();!n.done;n=K.next())F=n.value,n=F.problemDescriptionText,X=F.startOffset,F=F.url,n&&X!==void 0&&F&&S.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:n,text:n,startOffset:X,url:F})}return S};
_.vSc=function(b){return _.$8({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:b}})};
TUP=[[["I2xvbmd4cG5wZmtrcXByaW1hcnk=",null,null],[null,["LXJlbmRlcmVyIzgxNHZjYmxuMWVmZXl0ZC10d28tY29sdW1uLWJyb3dzZS1yZXN1bHRz","eHN0eWxlLXNjb3BlIzlmNmJ0MXVncXJz"],null],["aWQ3bW1hc3RoZWFkLWFkI3A4cXBsejk=",["aXhoeXRkLXJpY2gtZ3JpZC1yZW5kZXJlciN6M3RmaGVicmg="],null],[null,["cnl0eXRkLXJpY2gtZ3JpZC1yZW5kZXJlciNseWpma2o0Mzg=","anN0eWxlLXNjb3BlI2VvYnRjZW9vNmI5"],null],[null,["LWJhbm5lci1wcm9tby1yZW5kZXJlciNzN2Z1N3JzanlqdWR5dGQ=","bHN0eWxlLXNjb3BlI2xocDY0OGYxa3Bk"],null],[null,["ZHU1ZXMyb3l0ZC1hZC1zbG90LXJlbmRlcmVyI2M1OGp5"],
null]],[["d3BjY3BsYXllci1hZHMjd21mNWMxOGg=",null,null]],[[null,null,"dGxyLWJhbm5lci1jdGEtcmVuZGVyZXIjYmk0d2U1YmVoNTI1eQ=="]]];ekc="#";itJ=[];ESD=!1;_.b9$=["engagement-panel-ads"];hzD=new _.r4("updateSentimentBarStateCommand");_.y4$=new _.r4("showSurveyCommand");_.ET=new _.r4("changeMarkersVisibilityCommand");var FfR,avM,LfJ,$GL,jF2,iA;_.Skc=function(b,h){this.playerProvider_=b;this.actionSenderElement_=h;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.Skc.prototype.reset=function(){FfR(this);this.isUserPredictedAbsent_=!1};
FfR=function(b,h){!b.youThereData_||b.showWarningJob_||h!==void 0&&h||(_.LY("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.UE(),b.youThereData_,b.clientPlaybackNonce_),_.x2());_.xP.cancelJob(b.showWarningJob_);b.showWarningJob_=0;_.xP.cancelJob(b.showBlockingWarningJob_);b.showBlockingWarningJob_=0;_.xP.cancelJob(b.pausePlaybackJob_);b.pausePlaybackJob_=0;b.youThereData_=null;b.clientPlaybackNonce_=void 0;b.inYouThereFlow_=!1};
_.dGc=function(b,h){var y,S,F;_.Z(function(a){if(a.nextAddress==1)return b.reset(),a.yield(b.playerProvider_().getPlayerPromise(),2);y=a.yieldResult;b.clientPlaybackNonce_=y.getVideoData().cpn;b.youThereData_=h.configData.youThereData;if(!b.youThereData_)return a.return();if(b.youThereData_.triggerReason&&b.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.VCF())return _.LY("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.UE(),b.youThereData_,b.clientPlaybackNonce_),a.return();S=b.youThereData_.promptDelaySec;
F=y.getCurrentTime();b.showWarningJob_=_.xP.addLowPriorityJob(function(){return _.Z(function(P){b.showWarningJob_=0;return P.yield(avM(b),0)})},Math.max(S-F,0)*1E3);
_.g3(a)})};
avM=function(b){var h,y,S,F,a,P;return _.Z(function(K){if(K.nextAddress==1)return K.yield(b.playerProvider_().getPlayerPromise(),2);if(K.nextAddress!=3)return h=K.yieldResult,y=h.getCurrentTime(),K.yield(jF2(b),3);S=K.yieldResult;if(!S||!b.youThereData_)return K.return();if(_.r("check_user_lact_at_prompt_shown_time_on_web")&&(F=parseInt(b.youThereData_.lactThresholdMs,10),_.td()<F))return _.LY("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.UE(),b.youThereData_,b.clientPlaybackNonce_),K.return();if(b.youThereData_.playbackPauseDelayMs<=
0)return $GL(b),K.return();!_.r("external_fullscreen")&&(a=_.v5())&&(b.ignoreFullscreenExitUserActivity_=!0,_.xP.addLowPriorityJob(function(){b.ignoreFullscreenExitUserActivity_=!1},2E3),_.bE(a));
b.youThereData_.showToastWarningPrompt&&(iA(b,b.youThereData_.showWarningActions),b.inYouThereFlow_=!0,_.LY("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.UE(),b.youThereData_,b.clientPlaybackNonce_,y),_.LY("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.UE(),b.youThereData_,b.clientPlaybackNonce_,y));P=0;b.youThereData_.blockingPromptDelayMs&&(P=b.youThereData_.blockingPromptDelayMs);b.showBlockingWarningJob_=_.xP.addLowPriorityJob(function(){return _.Z(function(n){b.showBlockingWarningJob_=0;return n.yield(LfJ(b),
0)})},P);
_.g3(K)})};
LfJ=function(b){var h,y,S;return _.Z(function(F){if(F.nextAddress==1)return F.yield(jF2(b),2);h=F.yieldResult;if(!b.youThereData_)return F.return();h&&(b.youThereData_.showBlockingWarningAction&&(_.LY("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.UE(),b.youThereData_,b.clientPlaybackNonce_),(y=_.c(b.youThereData_.showBlockingWarningAction,_.LI))?iA(b,y.commands):iA(b,[b.youThereData_.showBlockingWarningAction]),b.inYouThereFlow_=!0),S=b.youThereData_.playbackPauseDelayMs,b.pausePlaybackJob_=
_.xP.addLowPriorityJob(function(){return _.Z(function(a){b.pausePlaybackJob_=0;return a.yield($GL(b),0)})},S));
_.g3(F)})};
$GL=function(b){var h;return _.Z(function(y){if(y.nextAddress==1)return y.yield(jF2(b),2);h=y.yieldResult;if(!b.youThereData_)return y.return();h&&(_.LY("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.UE(),b.youThereData_,b.clientPlaybackNonce_),iA(b,b.youThereData_.showPausedActions),b.inYouThereFlow_=!0);_.g3(y)})};
_.Skc.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var b=_.c(this.youThereData_.userActiveDuringFlowAction,_.LI);b?iA(this,b.commands):iA(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.LY("YOU_THERE_EVENT_TYPE_LACT_RESET",_.UE(),this.youThereData_,this.clientPlaybackNonce_),_.x2());FfR(this,!0)}_.PpL(this,!1)};
_.Kf2=function(b){_.LY("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.UE(),b.youThereData_,b.clientPlaybackNonce_)};
jF2=function(b){var h,y;return _.Z(function(S){if(S.nextAddress==1)return S.yield(b.playerProvider_().getPlayerPromise(),2);h=S.yieldResult;y=h.getPlayerState();return S.return(y==-1||y==1||y==3)})};
_.PpL=function(b,h){var y;_.Z(function(S){if(S.nextAddress==1){if(b.isUserPredictedAbsent_==h)return S.jumpTo(0);b.isUserPredictedAbsent_=h;return S.yield(b.playerProvider_().getPlayerPromise(),3)}y=S.yieldResult;y.setUserEngagement(h);h&&_.LY("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.UE(),b.youThereData_,b.clientPlaybackNonce_);_.g3(S)})};
iA=function(b,h){if(_.r("handle_service_request_actions")||_.r("kevlar_youthere_service_endpoint_actions_killswitch"))_.jx(b.actionSenderElement_,h,b.actionSenderElement_);else{h=_.L(h);for(var y=h.next();!y.done;y=h.next())y=y.value,y.commandMetadata&&y.commandMetadata.webCommandMetadata&&y.commandMetadata.webCommandMetadata.sendPost?_.dh(b.actionSenderElement_,[y]):_.jx(b.actionSenderElement_,[y],b.actionSenderElement_)}};var Z9A;var oEx;var fO=function(){var b=_.g.apply(this,arguments)||this;b.systemIcons=_.r("kevlar_system_icons");b.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return b};
_.z(fO,_.g);fO.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var b=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(b=this.data.percentIfLiked||0,this.activated=!0):(b=this.data.percentIfIndifferent||0,this.activated=!1);_.$x(this.hostElement).querySelector("#like-bar").style.width=b+"%"}};
fO.prototype.handleUpdateSentimentBarStateCommand=function(b){this.data&&this.set("data.likeStatus",_.c(b,hzD).likeStatus)};
fO.prototype.observeLikeStatus=fO.prototype.observeLikeStatus;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],fO.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],fO.prototype,"ytActionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],fO.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],fO.prototype,"activated",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],fO.prototype,"systemIcons",void 0);_.V([_.OB("data.likeStatus"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],fO.prototype,"observeLikeStatus",null);_.V([_.Yx({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],fO);
_.k(fO,"ytd-sentiment-bar-renderer",function(){if(oEx!==void 0)return oEx;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return oEx=b},{mode:1});var MsR;var wZ=function(){var b=_.g.apply(this,arguments)||this;b.small=!0;return b};
_.z(wZ,_.g);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],wZ.prototype,"ytComponentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],wZ.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],wZ.prototype,"small",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],wZ);
_.k(wZ,"ytd-video-view-count-renderer",function(){if(MsR!==void 0)return MsR;var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return MsR=b},{mode:_.Lt("kevlar_poly_si_batch_j080")?1:2});var lA=function(){var b=_.g.apply(this,arguments)||this;b.infoFormattedStrings=[];b.wrapVideoActions=_.r("kevar_watch_wrap_video_actions");b.hideSentimentBar=_.r("kevlar_watch_hide_sentiment_bar");b.actionMap={};return b};
_.z(lA,_.g);_.d=lA.prototype;_.d.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.r("web_modern_buttons"),forceIconButton:!_.r("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.d.dataChanged=function(){_.r("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.d.computeInfoFormattedStrings=function(b){if(!b)return[];var h=[];b.dateText&&h.push(b.dateText);b.stationName&&h.push(b.stationName);b.rating&&h.push(b.rating);b.startEndTimeTemplate&&b.startTimeUtcMillis&&b.endTimeUtcMillis&&h.push(_.mk(_.mOc(_.vi(b.startEndTimeTemplate),Number(b.startTimeUtcMillis),Number(b.endTimeUtcMillis))));b.upNextProgramText&&h.push(b.upNextProgramText);return h};
_.d.scheduleInitialUpdatedMetadataRequest=function(){var b,h=(b=this.data)==null?void 0:b.updatedMetadataEndpoint;if(h){var y;b=Number((y=_.c(h,_.s$W))==null?void 0:y.initialDelayMs);y=isNaN(b)?250:b;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),y)}};
_.d.setSentimentBarWidth=function(){var b=this;_.Ob(this,function(){var h=_.$x(b.hostElement).querySelector("ytd-menu-renderer");if(h){h=h.topLevelButtons;for(var y=0,S=0;S<h.length;S++){var F=h[S],a=b.get("toggleButtonSupportedData.toggleButtonIdData.id",F.data);if(a==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||a==="TOGGLE_BUTTON_ID_TYPE_LIKE")y+=F.clientWidth+8;else break}y&&(b.sentiment.style.width=y-8+" px")}})};
_.d.fetchUpdatedMetadata=function(b){var h;b&&(h={continuation:b});var y;(b=(y=this.data)==null?void 0:y.updatedMetadataEndpoint)&&_.H9().resolve(_.OM).resolveCommand(b,{form:Object.assign({},h,{element:this.hostElement})})};
_.d.onYtServiceRequestSent=function(b,h){h.endpoint&&_.c(h.endpoint,_.$a)&&(this.hasUpdateSentimentBarStateCommands()&&!_.r("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.c(h.endpoint,_.$a).status),this.setSentimentBarWidth())};
_.d.hasUpdateSentimentBarStateCommands=function(){var b,h,y,S,F=(S=(b=this.data)==null?void 0:(h=b.videoActions)==null?void 0:(y=h.menuRenderer)==null?void 0:y.topLevelButtons)!=null?S:[];b=_.L(F);for(h=b.next();!h.done;h=b.next()){h=h.value;F=S=y=void 0;var a=(y=h.toggleButtonRenderer)==null?void 0:(S=y.toggleButtonSupportedData)==null?void 0:(F=S.toggleButtonIdData)==null?void 0:F.id;if(a==="TOGGLE_BUTTON_ID_TYPE_LIKE"||a==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){S=y=void 0;h=(S=_.c((y=h.toggleButtonRenderer)==
null?void 0:y.defaultServiceEndpoint,_.LI))==null?void 0:S.commands;if(!h)break;h=_.L(h);for(y=h.next();!y.done;y=h.next())if(_.c(y.value,hzD))return!0}}return!1};
_.d.onYtServiceRequestCompleted=function(b,h){var y;(b=(y=h.data)==null?void 0:y.loggingDirectives)&&_.g_n(_.rU(),b);this.get("continuation.timedContinuationData",h.data)&&this.data&&this.data.updatedMetadataEndpoint&&(h=h.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,h.continuation),h.timeoutMs))};
_.d.computeHasDateText=function(b){return!!b&&!!b.dateText};
_.tm.Object.defineProperties(lA.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var b,h,y,S;return!((S=(b=this.data)==null?void 0:(h=b.videoActions)==null?void 0:(y=h.menuRenderer)==null?void 0:y.flexibleItems)==null||!S.length)}}});
lA.prototype.onYtServiceRequestCompleted=lA.prototype.onYtServiceRequestCompleted;lA.prototype.onYtServiceRequestSent=lA.prototype.onYtServiceRequestSent;lA.prototype.dataChanged=lA.prototype.dataChanged;_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],lA.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],lA.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],lA.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.UG.YtTaskEmitterBehavior),_.f("design:type",Object)],lA.prototype,"ytTaskEmitterBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],lA.prototype,"data",void 0);_.V([_.C({computed:"computeInfoFormattedStrings(data)"}),_.f("design:type",Array)],lA.prototype,"infoFormattedStrings",void 0);
_.V([_.C({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.f("design:type",Boolean)],lA.prototype,"hasDateText",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],lA.prototype,"wrapVideoActions",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],lA.prototype,"hideSentimentBar",void 0);_.V([_.C({reflectToAttribute:!0}),_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],lA.prototype,"flexMenuEnabled",null);
_.V([_.to("#sentiment"),_.f("design:type",Object)],lA.prototype,"sentiment",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],lA.prototype,"dataChanged",null);_.V([_.u3("yt-service-request-sent"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,_.kE]),_.f("design:returntype")],lA.prototype,"onYtServiceRequestSent",null);
_.V([_.u3("yt-service-request-completed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,_.xE]),_.f("design:returntype")],lA.prototype,"onYtServiceRequestCompleted",null);
_.k(lA,"ytd-video-primary-info-renderer",function(){if(Z9A===void 0){var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);Z9A=b}b=Z9A;return b},{mode:1});var nE_;var qs=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return b};
_.z(qs,_.g);_.d=qs.prototype;_.d.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"}}}};
_.d.dataChanged=function(){var b;this.descriptionToggled=!((b=this.data)==null||!b.defaultExpanded);var h;this.collapsed=this.descriptionAlwaysCollapsed||!((h=this.data)==null?0:h.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.Kh(110509);this.showLessClientVe=_.Kh(110510);b=_.UE();h=_.Ae();b&&h&&_.Ea(b,h,[this.showMoreClientVe,this.showLessClientVe])};
_.d.onYtExpanderMoreTapped=function(){var b,h=(b=this.data)==null?void 0:b.showMoreCommand;h&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(h);(b=_.UE())&&this.showMoreClientVe&&_.lE(b,this.showMoreClientVe)};
_.d.onYtExpanderLessTapped=function(){var b=_.UE();b&&this.showLessClientVe&&_.lE(b,this.showLessClientVe);var h;(b=(h=this.data)==null?void 0:h.showLessCommand)&&this.componentBehavior.resolveCommand(b)};
_.d.handleUpdateDateTextAction=function(b){this.data&&this.data.dateText&&this.set("data.dateText",_.c(b,_.JRL).dateText)};
_.d.handleUpdateDescriptionAction=function(b){if(b=_.c(b,_.ecW))b.isEmpty||!b.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.ej(b.description)):this.set("data.description",b.description)};
_.d.onYtChangeEngagementPanelVisibilityAction=function(b){if(_.r("web_structured_description_show_more")||_.r("web_engagement_panel_open_description")){var h,y=(h=_.c(b,_.eZM))==null?void 0:h.targetId,S;b=((S=_.c(b,_.eZM))==null?void 0:S.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";y==="engagement-panel-structured-description"&&b&&(this.descriptionToggled=!0)}};
_.d.updateCollapsedFromBinding=function(b){this.collapsed=b.detail.value};
_.d.updateDescriptionToggledFromBinding=function(b){this.descriptionToggled=b.detail.value};
_.d.updateCanCollapseFromBinding=function(b){this.canCollapse=b.detail.value};
_.tm.Object.defineProperties(qs.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var b,h,y=(b=this.data)==null?void 0:(h=b.metadataRowContainer)==null?void 0:h.metadataRowContainerRenderer;return!!y&&!!y.rows&&y.rows.length>y.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.data)==null||!b.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}}});
qs.prototype.onYtExpanderLessTapped=qs.prototype.onYtExpanderLessTapped;qs.prototype.onYtExpanderMoreTapped=qs.prototype.onYtExpanderMoreTapped;qs.prototype.dataChanged=qs.prototype.dataChanged;_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],qs.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],qs.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],qs.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],qs.prototype,"componentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],qs.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Boolean)],qs.prototype,"collapsed",void 0);_.V([_.C(),_.f("design:type",Boolean)],qs.prototype,"descriptionToggled",void 0);
_.V([_.C(),_.f("design:type",Boolean)],qs.prototype,"canCollapse",void 0);_.V([_.C(),_.f("design:type",Object)],qs.prototype,"subscribeButtonData",void 0);_.V([_.C(),_.f("design:type",Number)],qs.prototype,"descriptionCollapsedHeight",void 0);_.V([_.C(),_.f("design:type",Object)],qs.prototype,"structuredDescriptionContentRenderer",void 0);_.V([_.C({value:function(){return _.r("web_watch_description_always_collapsed")}}),
_.f("design:type",Boolean)],qs.prototype,"descriptionAlwaysCollapsed",void 0);_.V([_.to("#description"),_.f("design:type",HTMLDivElement)],qs.prototype,"description",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],qs.prototype,"dataChanged",null);_.V([_.u3("yt-expander-more-tapped"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],qs.prototype,"onYtExpanderMoreTapped",null);
_.V([_.u3("yt-expander-less-tapped"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],qs.prototype,"onYtExpanderLessTapped",null);_.V([_.W("data.metadataRowContainer"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],qs.prototype,"metadataCollapsible",null);_.V([_.W("data","structuredDescriptionContentRenderer"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],qs.prototype,"hasInlineStructuredDescription",null);
_.V([_.W("data.attributedDescription"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],qs.prototype,"hasAttributedDescription",null);_.V([_.W("hasInlineStructuredDescription","collapsed"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],qs.prototype,"loadStructuredDescription",null);_.V([_.W("data","structuredDescriptionContentRenderer","collapsed"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],qs.prototype,"showInlineStructuredDescription",null);
_.V([_.W("data","hasInlineStructuredDescription","metadataCollapsible"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],qs.prototype,"descriptionAlwaysCollapsible",null);
_.k(qs,"ytd-video-secondary-info-renderer",function(){if(nE_===void 0){var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);nE_=b}b=nE_;return b},{mode:2});var X2f;var xm=function(){return _.g.apply(this,arguments)||this};
_.z(xm,_.g);xm.prototype.configureRendererStamper=function(){return{"data.scrollUpButton":{id:"scroll-up",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.r("web_modern_buttons"),forceIconButton:!_.r("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
xm.prototype.activate=function(b){b.appendTo(this.player);b.getPlayerPromise().then(function(h){h.setMinimized(!0)});
this.active=!0};
xm.prototype.deactivate=function(){var b=this.player.firstElementChild;b.getPlayerPromise().then(function(h){h.setMinimized(!1)});
this.active=!1;return b};
xm.prototype.onScrollUpTap=function(){var b=_.H9().resolve(_.bM).getCurrentPage();b&&b.setScrollTop(0)};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],xm.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],xm.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],xm.prototype,"componentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],xm.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],xm.prototype,"active",void 0);
_.V([_.C({reflectToAttribute:!0,value:function(){return _.r("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.f("design:type",Boolean)],xm.prototype,"darkLaunch",void 0);_.V([_.to("#player"),_.f("design:type",HTMLDivElement)],xm.prototype,"player",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],xm);
_.k(xm,"ytd-miniplayer-bar-renderer",function(){if(X2f!==void 0)return X2f;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return X2f=b},{mode:1});_.yd(_.T(function(b){var h=_.ZR("script");_.Qi(function(){var y;if(y=JSON)y=mJp(b.data()),y=_.L$(JSON.stringify(y).replace(/</g,"\\u003C"));var S=b.data(),F=_.vi(S.title).trim().length===0,a=!S.publishDate||S.publishDate.trim().length===0,P,K,n,X,u=!((P=S.thumbnail)==null?0:(K=P.thumbnails)==null?0:K.length)||!((n=S.thumbnail)==null?0:n.thumbnails[0].url)||((X=S.thumbnail)==null?void 0:X.thumbnails[0].url.trim().length)===0;h.value&&y&&!(F||a||u)&&_.K$(h.value,y)},"Vy9K7b");
return _.M("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.M("script",{el:h,type:"application/ld+json"}))},"bp"),"player-microformat-renderer",{props:{data:_.v3}});
}catch(e){_._DumpException(e)}
try{
var j_P,LIR;_.dJP=function(b){return b.watch.watchWindowSize};
j_P=function(b,h,y,S){if(b.isLockupToWatchTransitionEnabled){if(h){var F={};F=(F["watch-next-appears"]="player-watch-next-loaded",F);F["lockup-to-watch"]=b.lockupToWatchPlayerTransitionType==="fade-in"?"player-lockup-to-watch-fade-in":"player-lockup-to-watch-fade-in-and-zoom";b.viewTransitionCoordinator.registerElement(h,F)}y&&(h={},b.viewTransitionCoordinator.registerElement(y,(h["lockup-to-watch"]="below-lockup-to-watch",h["watch-next-appears"]="below-watch-next-loaded",h)));S&&(y={},b.viewTransitionCoordinator.registerElement(S,
(y["watch-next-appears"]="secondary-watch-next-loaded",y)))}};
_.$Jx=function(b){return _.$8({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:b}})};
LIR=new _.r4("webWatchNextResponseExtensionData");var KIL=function(b){_.ED.call(this);var h=this;this.JSC$23790_watchApi=b;this.observer=null;var y=this.JSC$23790_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){PiL(h)});
this.addOnDisposeCallback(function(){h.JSC$23790_watchApi.unsubscribeByKey(y);h.observer&&(h.observer.disconnect(),h.observer=null)});
PiL(this)};
_.z(KIL,_.ED);var PiL=function(b){var h,y,S,F,a;_.Z(function(P){if(P.nextAddress==1){b.observer&&(b.observer.disconnect(),b.observer=null);h=b.JSC$23790_watchApi.getWatchNextResponse();if(!h)return P.return();y=_.c(h,LIR);return((S=y)==null?0:S.enableCreatorChatbot)&&y.creatorChannelId?_.r("enable_creator_chatbot_link_out")?P.yield((0,_.DR)("NSzT5"),6):P.yield((0,_.DR)("NSzT5"),5):P.jumpTo(0)}if(P.nextAddress!=6)return F=_.ZtM,F(y.creatorChannelId),P.jumpTo(0);a=_.oS9;a(y.creatorChannelId);_.g3(P)})};var sT=function(b){_.ED.call(this);this.JSC$23794_watchApi=b;this.isShelfVisible=this.isTheaterMode=this.isAdPlaying=this.isSeeking=!1;MjM(this)};
_.z(sT,_.ED);var MjM=function(b){_.Z(function(h){if(h.nextAddress==1)return h.yield(nSf(b),2);X3A(b);_.g3(h)})},nSf=function(b){var h,y,S,F,a,P,K,n,X;
return _.Z(function(u){if(u.nextAddress==1)return u.yield(b.JSC$23794_watchApi.playerApi,2);h=u.yieldResult;b.JSC$23794_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){HtP(b)});
b.JSC$23794_watchApi.registerActionHandler("yt-request-timely-shelf-state",function(){b.isShelfVisible?ubx(b):Ym(b)});
y=_.hP().subscribe(function(){b.isTheaterMode=_.J4(_.hP().getState());b.isTheaterMode?Ym(b):Ot9(b)});
S=b.JSC$23794_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){X3A(b)});
F=function(O){b.onCueRangeEnter(O)};
h.addEventListener("onCueRangeEnter",F);a=function(O){b.onCueRangeExit(O)};
h.addEventListener("onCueRangeExit",a);P=function(){b.isSeeking=!0};
h.addEventListener("SEEK_TO",P);K=function(){b.onSeekComplete()};
h.addEventListener("SEEK_COMPLETE",K);n=function(){b.onAdStart()};
h.addEventListener("onAdStart",n);X=function(){b.onAdComplete()};
h.addEventListener("onAdComplete",X);b.addOnDisposeCallback(function(){y();b.JSC$23794_watchApi.unsubscribeByKey(S);h.removeEventListener("onCueRangeEnter",F);h.removeEventListener("onCueRangeExit",a);h.removeEventListener("SEEK_TO",P);h.removeEventListener("SEEK_COMPLETE",K);h.removeEventListener("onAdStart",n);h.removeEventListener("onAdComplete",X)});
_.g3(u)})},NUP=function(b){var h,y,S,F,a,P,K,n,X;
return(a=(h=b.contents)==null?void 0:(y=h.twoColumnWatchNextResults)==null?void 0:(S=y.results)==null?void 0:(F=S.results)==null?void 0:F.contents)==null?void 0:(P=a.find(function(u){var O,N,t;return(O=u.itemSectionRenderer)==null?void 0:(N=O.contents)==null?void 0:(t=N[0])==null?void 0:t.shoppingTimelyShelfViewModel}))==null?void 0:(K=P.itemSectionRenderer)==null?void 0:(n=K.contents)==null?void 0:(X=n[0])==null?void 0:X.shoppingTimelyShelfViewModel},X3A=function(b){var h;
_.Z(function(y){if(y.nextAddress==1)return(h=b.JSC$23794_watchApi.getWatchNextResponse())?y.yield(HtP(b),2):y.return();b.shoppingTimelyShelfViewModel=NUP(h);tjP(b);r6_(b);_.g3(y)})},tjP=function(b){var h,y=(h=b.shoppingTimelyShelfViewModel)==null?void 0:h.offerIdToVariants;
y&&(h=y.filter(function(S){return S.key&&S.value}).map(function(S){return[S.key,
S.value]}),b.variantsMap=new Map(h))},r6_=function(b){var h,y,S,F,a,P;
_.Z(function(K){if(K.nextAddress==1)return(y=(h=b.shoppingTimelyShelfViewModel)==null?void 0:h.cueRanges)?K.yield(b.JSC$23794_watchApi.playerApi,2):K.return();S=K.yieldResult;b.cueRanges=y;F=_.L(y);for(a=F.next();!a.done;a=F.next())P=a.value,P.startTime!==void 0&&P.endTime!==void 0&&P.id!==void 0&&S.addCueRange("shopping_timely_shelf"+P.id,c6M(P.startTime),c6M(P.endTime));_.g3(K)})},c6M=function(b){return Number(b.seconds||0)+(b.nanos||0)/1E9};
sT.prototype.onCueRangeEnter=function(b){if(b.startsWith("shopping_timely_shelf")&&(this.activeCueId=b,!(this.isSeeking||this.isAdPlaying||this.isTheaterMode))){b=b.substring(21);var h,y,S=(h=this.variantsMap)==null?void 0:(y=h.get(b))==null?void 0:y.shelf;S&&(this.JSC$23794_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",S),ubx(this))}};
sT.prototype.onCueRangeExit=function(b){b.startsWith("shopping_timely_shelf")&&(this.activeCueId=void 0,this.isSeeking||Ym(this))};
sT.prototype.onSeekComplete=function(){this.isSeeking=!1;Ot9(this)};
var ubx=function(b){b.shoppingTimelyShelfViewModel&&(b.isShelfVisible=!0,_.$J.getInstance().triggerAction("yt-show-shopping-timely-shelf"))},Ym=function(b){b.shoppingTimelyShelfViewModel&&b.isShelfVisible&&(b.isShelfVisible=!1,_.$J.getInstance().triggerAction("yt-hide-shopping-timely-shelf"))},HtP=function(b){var h,y,S,F,a;
return _.Z(function(P){if(P.nextAddress==1)return P.yield(b.JSC$23794_watchApi.playerApi,2);h=P.yieldResult;if(b.cueRanges)for(y=_.L(b.cueRanges),S=y.next();!S.done;S=y.next())F=S.value,F.id&&(a="shopping_timely_shelf"+F.id,h.removeCueRange(a));b.JSC$23794_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});Ym(b);b.shoppingTimelyShelfViewModel=void 0;b.cueRanges=void 0;b.variantsMap=void 0;b.isSeeking=!1;b.activeCueId=void 0;_.g3(P)})};
sT.prototype.onAdStart=function(){this.isAdPlaying=!0;Ym(this)};
sT.prototype.onAdComplete=function(){this.isAdPlaying=!1;Ot9(this)};
var Ot9=function(b){if(b.activeCueId)b.onCueRangeEnter(b.activeCueId);else Ym(b)};var BUf=function(b){_.ED.call(this);var h=this;this.JSC$23801_watchApi=b;b=_.Fq(_.hP(),_.EsF,function(){RkM(h)});
this.addOnDisposeCallback(b);b=_.Fq(_.hP(),_.dJP,function(){RkM(h)});
this.addOnDisposeCallback(b);zkP(this);DJ_(this);I1x()};
_.z(BUf,_.ED);var zkP=function(b){var h=function(S){_.hP().dispatch(_.v2R(S.matches))},y=window.matchMedia("(max-width: "+(999+_.Qo())+"px)");
y.addListener(h);b.addOnDisposeCallback(function(){y.removeListener(h)});
h(y)},DJ_=function(b){b.JSC$23801_watchApi.registerActionHandler("yt-window-resized",function(){I1x()});
b.addOnDisposeCallback(function(){b.JSC$23801_watchApi.unregisterActionHandler("yt-window-resized")})},I1x=function(){var b=_.rq();
_.hP().dispatch(_.$8({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:b.width,height:b.height}}}))},RkM=function(b){var h;
_.Z(function(y){if(y.nextAddress==1)return y.yield(b.JSC$23801_watchApi.playerApi,2);h=y.yieldResult;h.setSize(NaN,NaN);_.g3(y)})};var WI2=function(b){_.ED.call(this);var h=_.H9().resolve(_.$O);j_P(h,b.getElement("PLAYER_CONTAINER"),b.getElement("BELOW_THE_PLAYER"),b.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var y=b.getElement("PLAYER_CONTAINER"),S=b.getElement("BELOW_THE_PLAYER"),F=b.getElement("SECONDARY");h.isLockupToWatchTransitionEnabled&&(y&&_.To(h.viewTransitionCoordinator,y),S&&_.To(h.viewTransitionCoordinator,S),F&&_.To(h.viewTransitionCoordinator,F))})};
_.z(WI2,_.ED);_.T8=function(b){_.KY.call(this);var h=this;this.rootElement=b;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return h.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(y){h.initOrDisposeActiveModules(y)}));
this.onAttached()};
_.z(_.T8,_.KY);_.d=_.T8.prototype;_.d.getRoot=function(){return this.rootElement};
_.d.getElement=function(b){return this.rootElement.getElement(b)};
_.d.setPlayerResponse=function(b){this.playerResponse=b;this.publish("PLAYER_RESPONSE_UPDATED",b)};
_.d.getPlayerResponse=function(){return this.playerResponse};
_.d.setWatchNextResponse=function(b){this.watchNextResponse===b?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=b,this.publish("WATCH_NEXT_RESPONSE_UPDATED",b))};
_.d.getWatchNextResponse=function(){return this.watchNextResponse};
_.d.registerActionHandler=function(b,h){var y=this;if(_.r("web_watch_controller_reg_multiple_handlers_killswitch")){var S={};_.LP(_.$J.getInstance(),(S[b]=h,S),this.getRoot())}else this.actionHandlers.has(b)||(this.actionHandlers.set(b,[]),S={},_.LP(_.$J.getInstance(),(S[b]=function(){var F=_.x$.apply(0,arguments);return(y.actionHandlers.get(b)||[]).map(function(a){return a.apply(null,_.f$(F))})},S),this.getRoot())),this.actionHandlers.get(b).push(h)};
_.d.unregisterActionHandler=function(b){if(_.r("web_watch_controller_reg_multiple_handlers_killswitch")){var h={};_.Po(_.$J.getInstance(),(h[b]=!0,h),this.getRoot())}else(h=this.actionHandlers.get(b))?(h.pop(),h.length===0&&(h={},_.Po(_.$J.getInstance(),(h[b]=!0,h),this.getRoot()),this.actionHandlers.delete(b))):_.vX(new _.Gn("Attempted to unregister an action handler which is not registered.",b))};
_.d.addPageDisposeJob=function(b){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.AYf(this.rootElement.pageDisposeJobs,b)};
_.d.removePageDisposeJob=function(b){this.rootElement.pageDisposeJobs&&_.Gk(this.rootElement.pageDisposeJobs,b)};
_.d.dispatchEvent=function(b,h){_.Sx(this.rootElement,b,h)};
_.d.provideRenderingData=function(b,h){this.rootElement.provideRenderingData(b,h)};
_.d.scrollWatchTo=function(b,h){var y;(y=this.watchScrollManager)==null||y.scrollWatchTo(b,h)};
_.d.focusOnPlayer=function(){var b=this.getElement("PLAYER");_.Ob(b,function(){if(b&&b.firstElementChild){var h=b.querySelector(".html5-video-player");h&&(_.Yd(_.H9().resolve(_.rS)),h.focus())}else _.vX(Error("rp"))})};
_.d.subscribeToActiveChanged=function(b,h){h=h===void 0?!0:h;var y=_.Fq(_.hP(),_.lBf,function(S){b(S)});
h&&b(_.lBf(_.hP().getState()));return y};
_.d.isActive=function(){return _.lBf(_.hP().getState())};
_.d.onAttached=function(){var b=_.r("external_fullscreen");_.r("use_unified_flag_accessor")&&(b=_.H9().resolve(_.fbf).retriever.getFlag(_.tKw));(b||_.m$("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var A6D=function(b){return b.getRoot().is==="ytd-watch-flexy"||b.getRoot().is==="ytd-watch-grid"},G8=function(b){return b.getRoot().is==="ytd-watch-fixie"};
_.T8.prototype.initPersistentModules=function(){if(G8(this)||A6D(this)&&_.r("kevlar_watch_flexy_theater_manager")){var b=new _.WiM(this);_.pq(this,b)}b=new _.HZ9(this);_.pq(this,b);b=new _.Ah(this);_.pq(this,b);b=new _.ZZf(this);_.pq(this,b);b=new _.CO(this);_.pq(this,b);b=new _.UT(this);_.pq(this,b);if(G8(this)||A6D(this)&&_.r("kevlar_watch_flexy_playlist_manager"))b=new _.Qcp(this),_.pq(this,b);_.r("web_thumbnail_to_watch_transition")&&(b=new WI2(this),_.pq(this,b))};
_.T8.prototype.initOrDisposeActiveModules=function(b){b?(this.watchScrollManager=new _.gZ(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.pl9(this)),_.r("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new sT(this)),this.activeModules.push(new _.BR9(this)),G8(this)&&this.activeModules.push(new BUf(this)),this.activeModules.push(new _.SQ2(this)),this.activeModules.push(new _.zq_(this)),(G8(this)||_.r("kevlar_watch_flexy_error_screen_data_provider"))&&
this.activeModules.push(new _.JtD(this)),this.activeModules.push(new _.Ty_(this)),(G8(this)||_.r("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.a1P(this)),(G8(this)||_.r("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.iRM(this)),_.Ff("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.xCJ(this),this.activeModules.push(this.watchCinematicManager)),_.r("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.Exx(this)),_.r("kevlar_watch_flexy_gestures_manager")&&
this.activeModules.push(new _.MCp(this)),b=_.r("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.r("kevlar_watch_flexy_comments_manager")&&!b&&this.activeModules.push(new _.jcx(this)),_.r("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.lUf(this)),this.activeModules.push(new _.ggL(this)),this.activeModules.push(new _.eqL(this)),_.r("web_enable_timely_actions")&&this.activeModules.push(new _.GMc(this)),_.r("web_enable_player_creator_endscreen_manager")&&
this.activeModules.push(new _.LiP(this)),_.r("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.bR_(this)),_.r("web_fullscreen_components")&&this.activeModules.push(new _.Yn2(this)),_.r("web_player_rtr_ctrls")&&this.activeModules.push(new _.KiD(this)),(_.r("enable_creator_chatbot")||_.r("enable_creator_chatbot_link_out"))&&this.activeModules.push(new KIL(this))):(_.H0(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.T8.prototype.disposeInternal=function(){_.KY.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.tm.Object.defineProperties(_.T8.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var gTR,yL,sYP,YDM,G$D,k$p,TBJ,VG9;gTR=function(){var b=_.Oa();b.info||(b.info={});return b.info};
yL=function(b){return Math.round(_.cT()+b)};
sYP=function(){var b;if(_.r("csi_use_performance_navigation_timing")){var h,y,S,F=_.rh==null?void 0:(b=_.rh.getEntriesByType)==null?void 0:(h=b.call(_.rh,"navigation"))==null?void 0:(y=h[0])==null?void 0:(S=y.toJSON)==null?void 0:S.call(y);F?(F.requestStart=yL(F.requestStart),F.responseEnd=yL(F.responseEnd),F.redirectStart=yL(F.redirectStart),F.redirectEnd=yL(F.redirectEnd),F.domainLookupEnd=yL(F.domainLookupEnd),F.connectStart=yL(F.connectStart),F.connectEnd=yL(F.connectEnd),F.responseStart=yL(F.responseStart),
F.secureConnectionStart=yL(F.secureConnectionStart),F.domainLookupStart=yL(F.domainLookupStart),F.isPerformanceNavigationTiming=!0,b=F):b=_.rh.timing}else b=_.r("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.rh.timing)):_.rh.timing;return b};
YDM=function(){if(_.rh.getEntriesByType){var b=_.rh.getEntriesByType("paint");if(b=_.p4(b,function(y){return y.name==="first-paint"}))return yL(b.startTime)}var h;
_.r("csi_use_performance_navigation_timing")?h=_.rh.getEntriesByType("first-paint")[0].startTime:h=_.rh.timing.msFirstPaint;return h?Math.max(0,h):0};
G$D=function(){var b=window.location.protocol,h=_.rh.getEntriesByType("resource");h=_.oX(h,function(y){return y.name.indexOf(b+"//fonts.gstatic.com/s/")===0});
(h=TBJ(h,function(y,S){return S.duration>y.duration?S:y}))&&h.startTime>0&&h.responseEnd>0&&(_.Rw("wffs",yL(h.startTime)),_.Rw("wffe",yL(h.responseEnd)))};
k$p=function(b,h){b=document.querySelector(b);if(!b)return!1;var y="",S=b.nodeName;S==="SCRIPT"?(y=b.src,y||(y=b.getAttribute("data-timing-href"))&&(y=window.location.protocol+y)):S==="LINK"&&(y=b.href);_.jw(document)&&b.setAttribute("nonce",_.jw(document));return y?(b=_.rh.getEntriesByName(y))&&b[0]&&(b=b[0],y=_.cT(),_.Rw("rsf_"+h,y+Math.round(b.fetchStart)),_.Rw("rse_"+h,y+Math.round(b.responseEnd)),b.transferSize!==void 0&&b.transferSize===0)?!0:!1:!1};
_.ETD=function(b,h){_.bN(function(){_.tL("").info.actionType=b;h&&_.xZ("TIMING_AFT_KEYS",h);_.xZ("TIMING_ACTION",b);var y=_.wJf(_.QC("TIMING_INFO",{}));Object.keys(y).length>0&&_.zY(y);y={isNavigation:!0,actionType:_.JQr(_.QC("TIMING_ACTION"))};var S=_.QC("PREVIOUS_ACTION");S&&(y.previousAction=_.JQr(S));if(S=_.QC("CLIENT_PROTOCOL"))y.httpProtocol=S;if(S=_.QC("CLIENT_TRANSPORT"))y.transportProtocol=S;(S=_.UE())&&S!=="UNDEFINED_CSN"&&(y.clientScreenNonce=S);S=_.fGM();if(S===1||S===-1)y.isVisible=!0;
S=_.zIy().loadType==="cold";var F=gTR();S||(S=F.yt_lt==="cold");if(S){y.loadType="cold";S=gTR();F=sYP();var a=_.cT(),P=_.QC("CSI_START_TIMESTAMP_MILLIS",0);P>0&&!_.r("embeds_web_enable_csi_start_override_killswitch")&&(a=P);a&&(_.Rw("srt",F.responseStart),S.prerender!==1&&_.Ypj(a));S=YDM();S>0&&_.Rw("fpt",S);S=sYP();S.isPerformanceNavigationTiming&&_.zY({performanceNavigationTiming:!0},void 0);_.Rw("nreqs",S.requestStart,void 0);_.Rw("nress",S.responseStart,void 0);_.Rw("nrese",S.responseEnd,void 0);
S.redirectEnd-S.redirectStart>0&&(_.Rw("nrs",S.redirectStart,void 0),_.Rw("nre",S.redirectEnd,void 0));S.domainLookupEnd-S.domainLookupStart>0&&(_.Rw("ndnss",S.domainLookupStart,void 0),_.Rw("ndnse",S.domainLookupEnd,void 0));S.connectEnd-S.connectStart>0&&(_.Rw("ntcps",S.connectStart,void 0),_.Rw("ntcpe",S.connectEnd,void 0));S.secureConnectionStart>=_.cT()&&S.connectEnd-S.secureConnectionStart>0&&(_.Rw("nstcps",S.secureConnectionStart,void 0),_.Rw("ntcpe",S.connectEnd,void 0));_.rh&&"getEntriesByType"in
_.rh&&G$D();S=[];if(document.querySelector&&_.rh&&_.rh.getEntriesByName)for(var K in VG9)VG9.hasOwnProperty(K)&&(F=VG9[K],k$p(K,F)&&S.push(F));if(S.length>0)for(y.resourceInfo=[],K=_.L(S),S=K.next();!S.done;S=K.next())y.resourceInfo.push({resourceCache:S.value})}_.zY(y);y=_.Nt();y.preLoggedGelInfos||(y.preLoggedGelInfos=[]);K=y.preLoggedGelInfos;y=_.IGj();S=void 0;for(F=0;F<K.length;F++)if(a=K[F],a.loadType){S=a.loadType;break}if(_.zIy().loadType==="cold"&&(y.loadType==="cold"||S==="cold")){S=_.Dek();
F=_.Nt();F=F.gelTicks?F.gelTicks:F.gelTicks={};for(var n in S)if(!(n in F))if(typeof S[n]==="number")_.Rw(n,_.Iw(n));else if(_.r("log_repeated_ytcsi_ticks"))for(a=_.L(S[n]),P=a.next();!P.done;P=a.next())P=P.value,_.Rw(n.slice(1),P);n={};S=!1;K=_.L(K);for(F=K.next();!F.done;F=K.next())S=F.value,_.gO(y,S),_.gO(n,S),S=!0;S&&_.zY(n)}_.qpq(!0);n=_.QC("TIMING_ACTION");_.hj("ytglobal.timingready_")&&n&&_.FJj()&&_.lGj()&&_.ELn()})()};
TBJ=function(b,h){return Array.prototype.reduce.call(b,h,{duration:0})};
VG9={'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 iqc={};iqc.YtVisibilityRootBehavior=[_.uJG.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.nq(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.QC("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var b=_.QC("INNERTUBE_CLIENT_NAME")!=="WEB";_.r("kevlar_use_vimio_behavior")&&b&&_.GeW()}}];_.So={};_.So.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(b){b.detail.contextProvider=this;b.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
iqc.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.wS();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(b){var h=this;this.pageCount+=1;_.r("kevlar_use_vimio_behavior")&&(_.QC("INNERTUBE_CLIENT_NAME")==="WEB"?_.xP.addJob(function(){h.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(b)},
loadPage_:function(b){this.data=b},
ytPageBehaviorActiveObserver_:function(b){var h=this;_.r("kevlar_use_vimio_behavior")&&(b?_.QC("INNERTUBE_CLIENT_NAME")==="WEB"?_.xP.addJob(function(){h.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(b){if(!this.setScrollTopJobId_){var h=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){h.setScrollTopJobId_=0;var y=_.H9().resolve(_.XS(_.rS));y&&_.Yd(y);this.getPageScrollingElement().scrollTop=b}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.Vw(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var C5f;var h3=function(){var b=_.g.apply(this,arguments)||this;b.playerListenerConfig=null;b.actionMap={"yt-show-watch-page-survey":"openSurvey"};return b};
_.z(h3,_.g);_.d=h3.prototype;_.d.dataChanged=function(){var b=this,h=_.ye();h&&h.getPlayerPromise().then(function(S){b.maybeRemovePlayerListeners(S)});
var y=this.data&&this.data.survey;y&&((y=(y=y.singleOptionSurveyRenderer||y.checkboxSurveyRenderer||y.multiStageSurveyRenderer)&&y.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(h,y):this.openSurvey())};
_.d.triggerWatchPageSurvey=function(b,h){var y=this,S,F,a,P,K,n,X,u,O;return _.Z(function(N){if(N.nextAddress==1)return b?N.yield(b.getPlayerPromise(),2):N.return();y.player=N.yieldResult;if(!y.player)return N.return();S={};F=_.L(h);for(a=F.next();!a.done;a=F.next())P=a.value,K=_.L(y.createEventListenerPair(P)),n=K.next().value,X=K.next().value,u=n,O=X,u&&O&&(S[u]=O,y.ytPlayerListenerBehavior.listenToPlayerEvent(y.player,u,O));y.playerListenerConfig=S;_.g3(N)})};
_.d.createEventListenerPair=function(b){var h=b.playbackEventTrigger;return h?this.handlePlaybackTrigger(h):(b=b.watchTimeTrigger)?this.handleWatchTimeTrigger(b):[void 0,void 0]};
_.d.handleWatchTimeTrigger=function(b){var h=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var y=b.videoWatchFraction,S=b.watchTimeSec;return S&&y?["onVideoProgress",function(){h.player&&h.isWatchTimeConditionMet(h.player,y,S)&&h.showSurvey()}]:[void 0,
void 0]};
_.d.isWatchTimeConditionMet=function(b,h,y){var S=b.getProgressState(),F=S.current-this.lastKnownPlaybackPosition;F<5&&(this.accumulatedMediaTime+=F);this.lastKnownPlaybackPosition=S.current;S=Math.round(this.accumulatedMediaTime/S.duration*1E3)/1E3;return b.getPresentingPlayerType&&b.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>y||S>h)};
_.d.handlePlaybackTrigger=function(b){var h=this;b=b.playbackEvent;if(b==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var y="onStateChange";var S=function(F){F===0&&h.showSurvey()}}else b==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(y="onVideoProgress",S=function(F){h.player&&h.player.getPresentingPlayerType&&h.player.getPresentingPlayerType()===1&&F&&h.showSurvey()}):b==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(y="onAdEnd",S=this.showSurvey);
return[y,S]};
_.d.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.d.openSurvey=function(){var b=this,h=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.AoA(!!h));_.xP.addJob(function(){b.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:h}})},0,0)};
_.d.maybeRemovePlayerListeners=function(b){if(this.playerListenerConfig){for(var h=_.L(Object.keys(this.playerListenerConfig)),y=h.next();!y.done;y=h.next())y=y.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(b,y,this.playerListenerConfig[y]);this.playerListenerConfig=null}};
h3.prototype.dataChanged=h3.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],h3.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Y9),_.f("design:type",Object)],h3.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.B(_.UA.YtPlayerListenerBehavior),_.f("design:type",_.pf)],h3.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],h3.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.B(_.NT),_.f("design:type",Object)],h3.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],h3.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],h3.prototype,"playerListenerConfig",void 0);_.V([_.C({value:0}),_.f("design:type",Number)],h3.prototype,"lastKnownPlaybackPosition",void 0);_.V([_.C({value:0}),_.f("design:type",Number)],h3.prototype,"accumulatedMediaTime",void 0);_.V([_.C(),_.f("design:type",Object)],h3.prototype,"player",void 0);
_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],h3.prototype,"dataChanged",null);_.V([_.Yx({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],h3);
_.k(h3,"ytd-survey-trigger-renderer",function(){if(C5f!==void 0)return C5f;var b=document.createElement("template");_.D(b,"\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");b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return C5f=b},{mode:1});
}catch(e){_._DumpException(e)}
try{
var Ht2;_.nY=function(b){var h=document.createElement("link");_.Xg(h,b,"stylesheet");document.head.appendChild(h)};
_.X4=function(b,h){var y,S;return _.Z(function(F){y=document.createElement("div");y.id=b.id;b.className&&(y.className=b.className);S=b.element;if(!S)throw Error("jk");if(b.location==="prepend")S.prepend(y);else if(b.location==="appendChild")S.appendChild(y);else if(b.location==="after")S.after(y);else throw Error("kk");return F.return(_.EW(y,h,"nj"))})};
_.Hn=function(b){var h;return _.Z(function(y){(h=document.getElementById(b))&&h.remove();_.g3(y)})};
_.ux=function(b,h){var y=document.querySelector(b);y?h(y):setTimeout(function(){_.ux(b,h)},1E3)};
_.ubX=function(b,h,y){var S;_.Z(function(F){if(F.nextAddress==1)return(S=document.getElementById(b))?F.jumpTo(2):F.yield(Ht2(b,h,y),2);if(S=document.getElementById(b))S.style.display="block";_.g3(F)})};
Ht2=function(b,h,y){return _.Z(function(S){return S.return(new Promise(function(F){_.ux("div #panels",function(a){_.X4({element:a,location:"appendChild",id:b,className:"ytprototypesEngagementPanelComponentEngagementPanelMountPoint "+y},h);F()})}))})};_.O1=_.T(function(b){var h=b.text;var y=b.onClick;var S=b.color;var F=b.backgroundColor;var a=b.buttonSize;var P=b.disabled;var K=b.iconName;var n=b.iconSize;var X=b.className;var u=b.iconClassName;b=b.ariaLabel;var O=_.Zv(function(t){y(t)}),N={};
return _.M("button",{class:_.P2("ytpStandardButtonsHost",(N.ytpStandardButtonsLarge=function(){return(a==null?void 0:a())==="large"},N),X),
"on:click":O,style:_.n9({color:S,"background-color":F}),disabled:P,"aria-label":b},_.M(_.H,{cond:K,then:function(){return _.M(_.Xv,{className:_.P2("ytpStandardButtonsIconContainer",u),icon:K,size:n})}}),h)},"mj");_.OtA=_.T(function(b){var h,y,S={};return _.M("div",{class:_.P2("ytprototypesEngagementPanelComponentHost",(S.ytprototypesEngagementPanelComponentHostMweb=b.isMweb,S),b.className),id:b.id},_.M("div",{class:_.P2("ytprototypesEngagementPanelComponentEngagementPanelHeader",b.headerClassName)},_.M("div",null,b.header()),_.M("div",{class:"ytprototypesEngagementPanelComponentHeaderButtons"},_.M("div",{class:"ytprototypesEngagementPanelComponentHeaderButtonProp"},(h=b.HeaderButton)==null?void 0:h.call(b)),
_.M(_.O1,{iconName:"close",buttonSize:"large",iconSize:24,className:"yt-icon-button",ariaLabel:"Close",onClick:function(){var F;(F=b.onHide)==null||F.call(b);var a;if((a=b.preventDefault)==null||!a.call(b))if(F=b.id(),F=document.getElementById(F))F.style.display="none"}}))),_.M("div",{class:_.P2("ytprototypesEngagementPanelComponentEngagementPanelContent",b.contentClassName),
style:function(){var F,a;return"height: "+(((F=b.height)==null?0:F.call(b))||((a=b.isMweb)==null?0:a.call(b))?"100%":"800px")+";"}},b.content()),_.M("div",null,(y=b.Footer)==null?void 0:y.call(b)))},"oj");
}catch(e){_._DumpException(e)}
try{
var R9c=new _.r4("replaceFeedContentAction");var z99;var DKD;var I9$=function(){return _.g.apply(this,arguments)||this};
_.z(I9$,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],I9$.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],I9$.prototype,"data",void 0);_.V([_.Yx({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],I9$);
_.k(I9$,"ytd-sub-feed-option-renderer",function(){if(DKD!==void 0)return DKD;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return DKD=b},{mode:1});var BBc;var lb=function(){return _.g.apply(this,arguments)||this};
_.z(lb,_.g);lb.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],lb.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],lb.prototype,"ytRendererStamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],lb.prototype,"data",void 0);_.V([_.Yx({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],lb);
_.k(lb,"ytd-sub-feed-selector-renderer",function(){if(BBc!==void 0)return BBc;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return BBc=b},{mode:1});var qV=function(){return _.g.apply(this,arguments)||this};
_.z(qV,_.g);
qV.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}}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],qV.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],qV.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],qV.prototype,"data",void 0);_.V([_.Yx({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],qV);
_.k(qV,"ytd-browse-feed-actions-renderer",function(){if(z99!==void 0)return z99;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return z99=b},{mode:1});var Wn_;var AW9;var x5=function(){return _.g.apply(this,arguments)||this};
_.z(x5,_.g);x5.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],x5.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],x5.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],x5.prototype,"data",void 0);_.V([_.Yx({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],x5);
_.k(x5,"ytd-mini-channel-renderer",function(){if(AW9!==void 0)return AW9;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return AW9=b},{mode:1});var UKJ;var QK=function(){return _.g.apply(this,arguments)||this};
_.z(QK,_.g);QK.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],QK.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],QK.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],QK.prototype,"data",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],QK);
_.k(QK,"ytd-vertical-channel-section-renderer",function(){if(UKJ!==void 0)return UKJ;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return UKJ=b},{mode:1});var mv=function(){return _.g.apply(this,arguments)||this};
_.z(mv,_.g);mv.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],mv.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],mv.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],mv.prototype,"data",void 0);_.V([_.Yx({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],mv);
_.k(mv,"ytd-browse-secondary-contents-renderer",function(){if(Wn_!==void 0)return Wn_;var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);
return Wn_=b},{mode:1});var p0p;var vp=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};b.notActive=!1;b.isConstrainedList=!1;b.marginSettings=0;return b};
_.z(vp,_.g);_.d=vp.prototype;
_.d.configureRendererStamper=function(){return{content:{id:"primary",mapping:{richGridRenderer:{component:"ytd-rich-grid-renderer"},sectionListRenderer:{component:"ytd-section-list-renderer",properties:{initialCount:"[[initialCount]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]",marginSettings:"[[marginSettings]]"},matcher:function(b){var h;return(b==null?void 0:(h=b.webComponentHint)==null?void 0:h.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}}}}};
_.d.getPath=function(b,h){var y="data.tabs.#"+h+".";b.tabs[h].tabRenderer?y+="tabRenderer.":b.tabs[h].expandableTabRenderer&&(y+="expandableTabRenderer.");return y+"content.sectionListRenderer"};
_.d.computeDisplayedContent=function(b){this.unlinkPaths("content");if(b&&b.tabs)for(var h=b.tabs.length,y=0;y<h;y++){var S=b.tabs[y].tabRenderer||b.tabs[y].expandableTabRenderer;if(S.selected&&S.content)return this.linkPaths("content",this.getPath(b,y)),S.content}return null};
_.d.computeHasSecondaryColumnData=function(b){return!!b&&!!b.secondaryContents};
_.d.onRetrieveLocation=function(b,h){h.locationRetrieved(h.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);b.stopPropagation()};
_.d.onYtServiceRequestSent=function(b,h){_.r("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(h)};
_.d.onYtServiceRequestCompleted=function(b,h){_.r("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(h)};
_.d.onReplaceFeedContentAction=function(b){if(!_.r("replace_feed_content_action_killswitch")&&!this.notActive){var h;(b=(h=_.c(b,R9c))==null?void 0:h.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(b)}};
_.d.handleServiceRequestActions=function(b){if(b=b.actions){b=_.L(b);for(var h=b.next();!h.done;h=b.next()){h=h.value;var y=void 0;((y=_.c(h,R9c))==null?0:y.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.c(h,R9c).items)}}};
vp.prototype.onYtServiceRequestCompleted=vp.prototype.onYtServiceRequestCompleted;vp.prototype.onYtServiceRequestSent=vp.prototype.onYtServiceRequestSent;vp.prototype.onRetrieveLocation=vp.prototype.onRetrieveLocation;_.V([_.B(_.Rp),_.f("design:type",Object)],vp.prototype,"ytdGridStateAwareBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],vp.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],vp.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],vp.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],vp.prototype,"data",void 0);_.V([_.C({computed:"computeDisplayedContent(data)"}),_.f("design:type",Object)],vp.prototype,"content",void 0);
_.V([_.C({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.f("design:type",Boolean)],vp.prototype,"hasSecondaryColumnData",void 0);_.V([_.C({value:function(){return window.outerHeight>1024?3:2}}),
_.f("design:type",Number)],vp.prototype,"initialCount",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",String)],vp.prototype,"pageSubtype",void 0);_.V([_.to("ytd-section-list-renderer"),_.f("design:type",Object)],vp.prototype,"listRenderer",void 0);_.V([_.C(),_.f("design:type",Object)],vp.prototype,"notActive",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],vp.prototype,"isConstrainedList",void 0);
_.V([_.C(),_.f("design:type",String)],vp.prototype,"responsiveSizing",void 0);_.V([_.C(),_.f("design:type",Number)],vp.prototype,"marginSettings",void 0);_.V([_.u3("yt-retrieve-location"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,Object]),_.f("design:returntype")],vp.prototype,"onRetrieveLocation",null);
_.V([_.u3("yt-service-request-sent"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,_.kE]),_.f("design:returntype")],vp.prototype,"onYtServiceRequestSent",null);_.V([_.u3("yt-service-request-completed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,_.xE]),_.f("design:returntype")],vp.prototype,"onYtServiceRequestCompleted",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],vp);
_.k(vp,"ytd-two-column-browse-results-renderer",function(){if(p0p!==void 0)return p0p;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return p0p=b},{mode:2});
}catch(e){_._DumpException(e)}
try{
var H9R=function(b){if((b==null?void 0:b.value)===void 0||b==null||!b.unit)return"initial";a:{switch(b.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var h="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":h="%";break a}h=void 0}return h?""+b.value+h:"initial"};_.yd(_.T(function(b){var h=b.data;b=_.L(_.pa(!1,void 0,"VotqNe"));var y=b.next().value,S=b.next().value;_.wg(function(){_.$J.getInstance().triggerAction("yt-request-timely-shelf-state")});
var F=_.s5(function(){var X,u,O=(X=_.c(h().rendererContext,_.c3))==null?void 0:(u=X.loggingDirectives)==null?void 0:u.trackingParams;if(O)return _.I_(O)},void 0,"AvMXxb");
_.LP(_.$J.getInstance(),{"yt-hide-shopping-timely-shelf":function(){S(!1);var X=_.UE(),u=F();X&&u&&_.wh(X,[u])},
"yt-show-shopping-timely-shelf":function(){requestAnimationFrame(function(){S(!0);var X=_.UE(),u=F();X&&u&&_.fI(X,[u])})}});
var a=function(){var X;return(X=h().image)==null?void 0:X.image},P=function(){var X,u;
return!!((X=a())==null?0:(u=X.sources)==null?0:u.some(function(O){var N;return!!(O==null?0:(N=O.clientResource)==null?0:N.imageName)}))},K=function(){var X;
return((X=h().image)==null?void 0:X.height)||40},n=function(){var X;
return(X=h().image)==null?void 0:X.backgroundColor};
b={};return _.M("yt-shopping-timely-shelf-content-view-model",{el:_.Qa(_.Ch(function(){return h().rendererContext})),
class:_.P2("ytShoppingTimelyShelfContentViewModelHost",(b.ytShoppingTimelyShelfContentViewModelIsVisible=function(){return!!(h().image||h().avatar||h().line1)&&y()},b)),
style:_.n9({"--shopping-timely-shelf-content-padding-top":function(){var X;return H9R((X=h().padding)==null?void 0:X.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var X;return H9R((X=h().padding)==null?void 0:X.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var X;return H9R((X=h().padding)==null?void 0:X.start)},
"--shopping-timely-shelf-content-padding-end":function(){var X;return H9R((X=h().padding)==null?void 0:X.end)},
"--yt-shopping-timely-shelf-background-color":function(){return h().backgroundColor!==void 0?_.CR(h().backgroundColor):"initial"},
"--yt-shopping-timely-shelf-image-corner-radius":function(){var X,u;return((u=(X=h().image)==null?void 0:X.cornerRadius)!=null?u:0)+"px"},
"--yt-shopping-timely-shelf-image-background-color":function(){return n()!==void 0?_.CR(n()):"initial"},
"--yt-shopping-timely-shelf-image-width":function(){var X;return(((X=h().image)==null?void 0:X.width)||40)+"px"}})},_.M(_.H,{cond:a,
then:function(X){var u={};return _.M(_.mI,{preserveHeight:!0,preserveWidth:!0,height:K,data:X,alt:"",className:_.P2("ytShoppingTimelyShelfContentViewModelImage",(u.ytShoppingTimelyShelfContentViewModelIcon=P,u))})}}),_.M(_.rC,{data:function(){return h().avatar}},{avatarViewModel:_.OX}),_.M("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.M(_.rC,{data:function(){return h().line1}},{shoppingContentLineViewModel:function(X){return _.M(_.eE,{data:X.data,
className:"ytShoppingTimelyShelfContentViewModelLine1"})}}),_.M(_.rC,{data:function(){return h().line2}},{shoppingContentLineViewModel:function(X){return _.M(_.eE,{data:X.data,
className:"ytShoppingTimelyShelfContentViewModelLine2"})}})),_.M("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.M(_.rC,{data:function(){var X;
return(X=h().button)!=null?X:[]}},{buttonViewModel:function(X){var u=X.data;
return _.M(_.EG,{data:u,className:"ytShoppingTimelyShelfContentViewModelButton",onClick:function(O){u().onTap&&O.stopPropagation()}})}})))},"cp"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.D4}});_.uv2={};
_.uv2.YtdWatchBehavior=[_.Q.YtRendererBehavior,_.UA.YtPlayerListenerBehavior,_.Cd.YtRendererstamperBehavior,_.mx.YtActionHandlerBehavior,_.So.YtPageBehavior,_.Q5.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 _.m$("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.r("web_watch_provide_secondary_results_renderer")}},
fullscreen:{type:Boolean,reflectToAttribute:!0},playlist:{type:Boolean,reflectToAttribute:!0,computed:"hasPlaylist_(playlistData, loadingData.playlist)",observer:"secondaryColumnModulePresenceChanged_"},alerts:{type:Object,computed:"getAlerts_(playerData.playabilityStatus, alertsValue)"},alertsValue:{type:Object},microformat:{type:Object,computed:"getPlayerMicroformatRenderer_(playerData.microformat)"},commentsReady:{type:Boolean,observer:"commentsReadyChanged_"},theaterRequested_:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.m$("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isTwoColumnsInitialized:{type:Boolean,value:!1},isSingleColumn:{type:Boolean,reflectToAttribute:!0,computed:"computeIsSingleColumn(isTwoColumns_, isTwoColumnsInitialized)"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},
isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},
showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.r("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,
computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},swatcherooSqueezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"swatcherooSqueezebackChanged",computed:"computeSwatcherooSqueezeback(panelExpanded, fullBleedPlayer, isTwoColumns_)"},squeezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"squeezebackChanged",computed:"computeSqueezeback(engagementPanelExpanded,liveChatPresentAndExpanded, playlistPanelExpanded, fullscreen, theater)"},
richItemMinWidth:{type:Number,value:function(){return _.tj("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.tj("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},
newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.r("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater, isSingleColumn)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("swatcheroo_split_scroll")}},
persistPanelOnDataChange:{type:Boolean,value:function(){return _.r("web_watch_persist_panel_on_data_change")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.r("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.r("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("swatcheroo_binary_layout")}},
ghostCardsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("swatcheroo_enable_ghost_cards")||_.r("web_watch_enable_ghost_cards")}},
showGhostMetadata:{type:Boolean,computed:"computeShowGhostMetadata_(ghostCardsEnabled, loading, videoPrimaryInfoRenderer)"},showGhostRelated:{type:Boolean,computed:"computeShowGhostRelated_(ghostCardsEnabled, loading, watchNextSecondaryResults)"},metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("web_watch_full_bleed_no_max_width_columns")}},
fixedPanels:{type:Boolean,reflectToAttribute:!0},panelsBesidePlayer:{type:Boolean,reflectToAttribute:!0},watchWhileWider:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("web_watch_while_panel_margin")}},
watchWhilePanelsActive:{type:Boolean,reflectToAttribute:!0,computed:"computeWatchWhilePanelsActive(fixedPanels, panelsBesidePlayer)"},noBorderOnChat:{type:Boolean,computed:"computeNoBorderOnChat(watchWhilePanelsActive)"},forceDarkPanelTheme:{type:Boolean,computed:"computeForceDarkPanelTheme(panelsBesidePlayer)"},hasMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeHasMetadata(videoPrimaryInfoRenderer)"},watchWhileWindowSizeSufficient:{type:Boolean,observer:"watchWhileWindowSizeSufficientChanged"},
thumbnailToWatchTransition:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean},persistentPanelVisible:{type:Boolean,value:!1,reflectToAttribute:!0},aiCompanionEnabled:{type:Boolean,value:function(){return _.r("enable_ai_companion")}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);updatePanelsLocation(liveChatPresentAndExpanded, theater, fullscreen);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
computeShowGhostMetadata_:function(b,h,y){return b&&(h||!y)},
computeShowGhostRelated_:function(b,h,y){return b&&(h||!y)},
monitorScroll:!0,configureRendererStamper:function(){var b={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:_.qH(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.qH(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},
"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}};this.is!=="ytd-watch-grid"||_.r("swa_prov_panels_ks")?b.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}:(b.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},b.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return b},
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 b=this;this.watchController=void 0;this.pageDisposeJobs=[function(){b.showMetadataPlaceholder_()},
function(){_.r("web_watch_dont_clear_comments")||b.clearComments_()},
function(){b.clearPlayerAds_()},
function(){b.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.is==="ytd-watch-grid"&&(this.visiblePanelIdentifiers_=new Set);this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.r("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.r("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=
!1);this.youThereManager_=new _.Skc(function(){return _.hB(b)},this.hostElement);
this.pageDisposeJobs.push(function(){b.youThereManager_.reset()});
_.r("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){b.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.CT;this.playerEvents_.set("onFeedbackStartRequest",this.onPlayerFeedbackStartRequest_);this.playerEvents_.set("onFeedbackArticleRequest",this.onPlayerFeedbackArticleRequest_);this.playerEvents_.set("onYpcContentRequest",this.onPlayerYpcContentRequest_);this.playerEvents_.set("onAutonavPauseRequest",this.onPlayerAutonavPauseRequest_);this.playerEvents_.set("onAdStateChange",this.onAdStateChange_);this.playerEvents_.set("onStateChange",
this.onPlayerStateChange_);this.playerEvents_.set("SUBSCRIBE",this.onPlayerSubscribe_);this.playerEvents_.set("UNSUBSCRIBE",this.onPlayerUnsubscribe_);this.playerEvents_.set("onYtShowToast",this.onPlayerAdYtShowToast_);this.playerEvents_.set("onFullscreenChange",this.onPlayerFullscreenChange_);this.playerEvents_.set("onVideoDataChange",this.onPlayerPresentingVideoDataChange_);this.engagementPanelScrimOnClickCommands_=null;this.watchMetadata=void 0;_.r("kevlar_watch_flexy_theater_manager")||(this.actionMap["yt-toggle-theater-mode"]=
"setTheaterModeRequested",this.actionMap["yt-is-theater"]="isTheater_",this.playerEvents_.set("SIZE_CLICKED",this.setTheaterModeRequested));_.r("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Hl(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(b){b&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:b}),b.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(b){_.r("kevlar_watch_flexy_theater_manager")&&(this.theater=b,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(b){!_.r("kevlar_watch_while_v2")&&!_.r("web_watch_pip")||b||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(b){this.active!==void 0&&(this.fullscreen=b,_.r("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(b){this.active!==void 0&&(_.Sx(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.r("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.r("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(b>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(b){this.initCsi_();this.updatePageData_(b)},
updatePageData_:function(b){var h=this;if(b)if(this.data===b){this.onPageLoadWithSameData_();var y;(y=this.watchController)==null||y.setWatchNextResponse(this.data)}else this.data=b;this.playlist&&_.WT({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.pI("nw");this.loading=!1;_.VT(_.xP,function(){h.initDclkstatus_();var S,F=((S=h.player)==null?void 0:S.getVideoData().cpn)||"";_.kKJ(function(a,P){_.Tyf(a,P,F)})})},
onPageLoadWithSameData_:function(){_.r("kevlar_watch_flexy_comments_manager")||this.initComments_();this.setPlayerAds_()},
setLoadingState_:function(){this.hostElement.classList.remove("hide-skeleton");this.hostElement.classList.add("show-skeleton");this.setPlayerLoadingState_();this.hostElement.classList.add("loading");var b=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!b);this.set("loadingData.playlistLoading",b&&b!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),b=this.watchNextSkeletonEl_.firstElementChild;b;)b.classList.remove("hidden"),b=b.nextElementSibling;if(_.r("kevlar_watch_frame0_loading_state")){var h,y,S;b=(h=this.loadingData)==null?void 0:(y=h.endpoint)==null?void 0:(S=y.watchEndpoint)==null?void 0:S.videoId;var F;b&&(F="https://i.ytimg.com/vi/"+b+"/frame0.jpg");_.$x(this.hostElement).querySelector("#player").style.backgroundImage=F?"url("+F+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var b=_.$x(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&b&&(b.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var h,y;(y=(h=this.watchMetadata).updateSentimentBarWidth)==
null||y.call(h);var S,F;(F=(S=this.watchMetadata).resize)==null||F.call(S)}_.r("kevlar_watch_frame0_loading_state")&&(_.$x(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(b){var h=_.$x(this.hostElement).querySelector(b);h?_.hL(h,!1):_.vX(new _.Gn("Overscroll monitor not found for component: ",b))},
removeSplitScrollMouseTrap:function(b){var h=_.$x(this.hostElement).querySelector(b);h?_.yh(h):_.vX(new _.Gn("Disposal component for  overscroll monitoring not found: ",b))},
onLoadingChanged_:function(b){b?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.r("web_thumbnail_to_watch_transition")&&!_.MKf||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.r("web_thumbnail_to_watch_transition")&&!_.MKf||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(b){var h=this;b?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.xP.addLowPriorityJob(function(){h.onWindowResized_(_.rq(!0))})},
updateTheaterModeState_:function(b){if(!_.r("kevlar_watch_flexy_theater_manager")){b=b||this.fullWindowMode_;if(this.theater!==void 0||b)this.theater=b;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();b&&_.Q2x()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var b=this.fullBleedPlayer?_.$x(this.hostElement).querySelector("#player-full-bleed-container"):_.$x(this.hostElement).querySelector("#player-container-inner");var h=this.getPlayerContainer(),y=_.r("kevlar_watch_while_v2")||_.r("web_watch_pip");h.parentElement!==b&&(y&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():_.hB(this).appendTo(b,h))},
updateErrorScreenLocation:function(){var b=_.$x(this.hostElement).querySelector("#error-screen"),h=this.fullBleedPlayer?_.$x(this.hostElement).querySelector("#player-full-bleed-container"):_.$x(this.hostElement).querySelector("#player");b.parentElement!==h&&h.appendChild(b)},
deactivateMiniplayerAndResetPlayer:function(){var b=this;return _.Z(function(h){if(h.nextAddress==1)return h.yield(_.H9().resolve(_.Vp).deactivate(),2);b.updatePlayerLocation();_.g3(h)})},
updateCinematicsLocation:function(){var b=this.getElement("CINEMATICS");if(b){var h=this.getCinematicsLocationContainer();b.parentElement!==h&&h.appendChild(b)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.isSingleColumn)?_.$x(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.$x(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(b,h,y){var S=document.documentElement.hasAttribute("dark"),F=!S&&this.cinematicLightTheme;return y||b&&S||h&&S||(h||b)&&F},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var b=this,h;(h=this.watchController)==null||h.setWatchNextResponse(this.data);_.r("kevlar_watch_flexy_comments_manager")||this.initComments_();_.r("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.H9().resolve(_.Rz).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&!this.persistPanelOnDataChange&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());if(this.is==="ytd-watch-grid")if(this.liveChatCollapsed=
!0,this.visiblePanelIdentifiers_.clear(),this.engagementPanelExpanded=!1,_.r("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.xP.addLowPriorityJob(function(){_.aw(b.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.r("web_watch_start_chat_in_theater_mode")){var y,S,F;if((y=this.data)==null?0:(S=y.contents)==null?0:(F=S.twoColumnWatchNextResults)==null?0:F.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var a,P;((a=this.data)==null?0:(P=a.contents)==null?0:P.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(b){var h;(h=this.watchController)==null||h.setPlayerResponse(this.playerData);b&&b.playabilityStatus&&(h=this.isVideoPlayable_(b.playabilityStatus,this.getPlayerOverlays_(this.data)),b=this.isLiveStreamOffline_(b.playabilityStatus),h&&!b||_.Ob(this,function(){_.pI("pbu")}));
this.setPlayerAds_();_.aw(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(b,h){if((_.r("kevlar_watch_while_v2")||_.r("web_watch_pip"))&&this.playerData&&h)return this.playerData.videoDetails},
watchPageActiveChanged_:function(b){_.hP().dispatch(_.$Jx(this.active));b?this.activate_():this.deactivate_()},
attached:function(){var b=this;this.watchController=new _.T8(this.hostElement);this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.addSplitScrollMouseTrap("#primary"),this.addSplitScrollMouseTrap("#fixed-secondary"));this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.r("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var h=_.hB(this);_.r("kevlar_disable_prepare_player")||
h.preparePlayer();_.r("kevlar_watch_flexy_playlist_manager")||_.H9().resolve(_.Rz).setPlayer(h);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();h={"--ytd-watch-flexy-scrollbar-width":_.Qo()+"px"};this.is==="ytd-watch-grid"&&(_.hP().dispatch(_.$8({type:"SET_IS_SWATCHEROO_ACTIVE",payload:{isSwatcherooActive:!0}})),h["--ytd-watch-flexy-sidebar-width"]=_.EJ2+"px",h["--ytd-watch-grid-horizontal-page-margins"]=_.CJ+"px",h["--ytd-watch-grid-columns-top-margins"]=
_.GUL+"px",h["--ytd-watch-grid-min-player-height-medium"]="360px");!_.tj("kv_pl_mx_sz_ks")&&_.tj("kevlar_watch_max_player_width")&&(h["--ytd-watch-flexy-max-player-width-wide-screen"]=_.iPA+"px");_.tj("kevlar_watch_flexy_metadata_height")&&(h["--ytd-watch-flexy-space-below-player"]=_.fR$+"px");this.safeUpdateStyles(h);_.r("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.L7(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return b.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.$x(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var b=_.Qo(),h=_.gM+b,y=h;this.fixedPanels&&(h+=_.EJ2);var S=657+b;b=1327+b;_.$x(this.hostElement).querySelector("#two-column-query").query="(min-width: "+h+"px)";_.$x(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(S+"px), (min-height: 630px) and (min-width: ")+(h+"px) and (max-width: ")+(b+"px)");_.$x(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(b+"px)");
_.$x(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+y+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var b=_.$x(this.hostElement).querySelector("#miniplayer-bar").firstChild,h=this.squeezeback&&!_.r("web_watch_squeezeback_player_size_killswitch");return b&&b.active||this.theater||_.r("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||h||!this.active||!this.windowSize_||this.fullBleedPlayer?new _.g1(NaN,NaN):_.w39(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.w39(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.nq(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var b=this;this.onWindowResized_(_.rq());_.r("browse_skeleton_removal_on_watch_killswitch")||_.m$("IS_SHELL_LOAD")&&_.e9c();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var h=_.hB(this);h.addEventListener("yt-player-updated",_.Hl(this,this.onPlayerUpdated_));h.getPlayerPromise().then(function(y){b.playerApiReady_(y)});
_.r("kevlar_watch_flexy_playlist_manager")||(h=_.H9().resolve(_.Rz),_.r("kevlar_watch_observe_playlist_navigations_killswitch")&&h.addEventListener("yt-navigate",_.Hl(this,this.onYtNavigate_)),h.setPlaylistComponent(_.$x(this.hostElement).querySelector("#playlist")),h.addEventListener("yt-playlist-data-updated",_.Hl(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.xP.addLowPriorityJob(function(){_.Sx(b.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.hB(this).removeEventListener("yt-player-updated",_.Hl(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.r("kevlar_watch_flexy_playlist_manager")){var b=_.H9().resolve(_.Rz);_.r("kevlar_watch_observe_playlist_navigations_killswitch")&&b.removeEventListener("yt-navigate",_.Hl(this,this.onYtNavigate_));
b.cancelVideoSkip();b.removeEventListener("yt-playlist-data-updated",_.Hl(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.r("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.Sx(this.hostElement,"yt-autonav-pause-player",!1);b=_.v5();_.r("kevlar_exit_fullscreen_leaving_watch")&&b&&_.bE(b)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(b){this.player&&this.player.updateVideoData({rvs:b.rvs})},
getPageContents:function(b){return b&&b.contents&&b.contents.twoColumnWatchNextResults&&b.contents.twoColumnWatchNextResults.results&&b.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(b){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",b)},
onRetrieveLocation_:function(b,h){h.hasComments?h.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):h.locationRetrieved("/related_ajax",void 0);b.stopPropagation()},
onSubscriptionChanged_:function(b,h){this.player&&(h?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.ETD("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.$x(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.$x(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(b){this.player=b;this.setPlayerState(b.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.r("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.r("kevlar_unified_player")||_.r("kevlar_player_new_bootstrap_adoption"))&&_.Eo()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(b,h){h=h===void 0?!0:h;_.v5()&&_.r("external_fullscreen")&&_.bE(document.documentElement);this.theaterRequested_=b;h&&_.gH("wide",b?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.F8(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.Sx(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(b){_.bh(b,typeof this.player),this.player&&_.bh(b,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var b;((b=this.player)==null?0:b.isFullscreen())?this.player.toggleFullscreen():_.F8(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(b,h){return this.loading?h:!!Object.keys(b).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(b){if(b){b=_.L(b);for(var h=b.next();!h.done;h=b.next())h=h.value,h.youThereRenderer&&_.dGc(this.youThereManager_,h.youThereRenderer)}},
setPlaylistData_:function(b){return b||{}},
userEngagementConfigDataChanged_:function(b){if(b)if(b.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var h=this.youThereManager_;_.td()<b.lowEngagementThresholdMs||_.PpL(h,!0)}else b.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.F8(this.hostElement,"yt-autonav-pause-user-engagement",[b])},
isPlayerUnavailable_:function(b,h,y){return!!b&&!this.isVideoPlayable_(b,y)&&!h},
getPlayerOverlays_:function(b){return(b==null?void 0:b.playerOverlays)||null},
isVideoPlayable_:function(b,h){if(!b)return!1;var y=b.status==="OK"||b.status==="LIVE_STREAM_OFFLINE",S=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",b)||this.get("errorScreen.ypcTrailerRenderer",b);b=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",b);var F;h=h==null?void 0:(F=h.playerOverlayRenderer)==null?void 0:F.gatedActionsOverlayRenderer;return!!y||!!S||!!b||!!h},
hasWatchNextResponseErrorRenderer:function(b){var h=this.getPageContents(b),y,S,F,a,P;return!(b==null?0:(y=b.contents)==null?0:(S=y.twoColumnWatchNextResults)==null?0:S.secondaryResults)&&!!((F=h[0])==null?0:(a=F.itemSectionRenderer)==null?0:(P=a.contents[0])==null?0:P.backgroundPromoRenderer)},
isLiveStreamOffline_:function(b){return b?b.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(b,h,y){var S=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",h),F=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];F=_.r("web_no_skip_video_on_verification_checks")?(b==null?void 0:b.status)&&F.includes(b.status):b&&b.status==="AGE_CHECK_REQUIRED";var a=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",b);a==void 0&&(a=!0);!y||this.isVideoPlayable_(b,this.getPlayerOverlays_(h))||
S||F||!a||_.H9().resolve(_.Rz).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.qQD()},
onPlayerFeedbackStartRequest_:function(b){_.F8(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:b}])},
onPlayerFeedbackArticleRequest_:function(b){_.F8(this.hostElement,"yt-help-dialog-requested",[b])},
onPlayerYpcContentRequest_:function(){var b,h,y,S,F,a,P,K,n=((b=this.data)==null?NaN:(h=b.contents)==null?NaN:(y=h.twoColumnWatchNextResults)==null?NaN:(S=y.secondaryResults)==null?NaN:(F=S.secondaryResults)==null?NaN:(a=F.offerModule)==null?NaN:(P=a.tvfilmOfferModuleRenderer)==null?NaN:(K=P.actionButtons)==null?NaN:K.length)-1;b=[".offerButton.buttonRenderer.",".actionButtons."+(n>=0?n:0)+".buttonRenderer."];h=_.L(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(y=h.next();!y.done;y=h.next())for(y=y.value,S=_.L(b),F=S.next();!F.done;F=S.next())if(F="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+y+F.value,F=this.get(F+"navigationEndpoint",this.data)||this.get(F+"serviceEndpoint",this.data)||this.get(F+"command",this.data)){_.Xb(F,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(b){_.Sx(this.hostElement,"yt-autonav-pause-player",b)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(b){b()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(b){switch(b){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(b){switch(b){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.Sx(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(b)},
setPlayerState:function(b){_.hP().dispatch(_.axW(b))},
onPlayerSubscribe_:function(b){_.F8(this.hostElement,"yt-player-subscribe",[b])},
onPlayerUnsubscribe_:function(b){_.F8(this.hostElement,"yt-player-unsubscribe",[b])},
onPlayerAdYtShowToast_:function(b){_.F8(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:b.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(b){if(b)return b},
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(b){return!_.Ff("web_watch_move_summary_to_sd")&&!!b},
computeWatchMetadataRefresh:function(){return this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.r("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var b,h,y,S;this.watchNextSecondaryResults=(b=this.data)==null?void 0:(h=b.contents)==null?void 0:(y=h.twoColumnWatchNextResults)==null?void 0:(S=y.secondaryResults)==null?void 0:S.secondaryResults}},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var b,h=(b=this.data)==null?void 0:b.engagementPanels;if(h==null?0:h.length){b=null;h=_.L(h);for(var y=h.next();!y.done;y=h.next()){y=y.value;var S=void 0;if(((S=y.engagementPanelSectionListRenderer)==null?void 0:S.targetId)==="engagement-panel-structured-description"){b=y;break}}var F,a,P;b=(F=b)==null?void 0:(a=F.engagementPanelSectionListRenderer)==null?void 0:(P=a.content)==null?void 0:P.structuredDescriptionContentRenderer;if(b==null?0:b.items){F=
[];a=_.L(b.items);for(P=a.next();!P.done;P=a.next()){P=P.value;if(!_.r("sd_horizontal_list_show_nav_killswitch")){var K=S=y=h=b=void 0,n=void 0,X=(b=P.horizontalCardListRenderer)==null?void 0:(h=b.header)==null?void 0:(y=h.richListHeaderRenderer)==null?void 0:(S=y.navigationButton)==null?void 0:(K=S.buttonRenderer)==null?void 0:(n=K.command)==null?void 0:n.commandExecutorCommand;X&&X.commands&&(X.commands=X.commands.filter(function(u){return!_.c(u,_.dSc)}))}(!P.expandableVideoDescriptionBodyRenderer&&
!P.videoDescriptionHeaderRenderer||_.r("web_delhi_colorful_sd"))&&F.push(P)}return{items:F}}}},
constructWarning_:function(b){return{text:_.mk(b),type:"WARNING"}},
isPlaShelfEnabled_:function(b){if((this.get("adPlacements",b)||[]).length)return!0;b=this.get("playerAds",b)||[];return!(!b.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",b[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var b=this;_.Sx(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.r("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var h=this.getScrollTop()>0;this.gestures_&&(h?this.gestures_.detach():this.gestures_.attach());h!==this.showFullerscreenEdu_&&_.r("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=h,_.hB(this).getPlayerPromise().then(function(y){y.updateFullerscreenEduButtonVisibility(b.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.Sx(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var b=this;this.commentsReady=!1;_.xP.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.VT(_.xP,function(){b.setComments_()},1E3)},
setComments_:function(){if(!_.r("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.pI("cmi");_.xP.cancelJob(this.setCommentsJobId_);var b=this.getPageContents(this.data);if(b&&b.length){b=_.L(b);for(var h=b.next();!h.done;h=b.next())if(h=h.value,this.get("itemSectionRenderer.sectionIdentifier",h)==="comment-item-section"){this.comments=h.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Sx(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.r("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.r("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.pI("cmc")},
doRemoveComments_:function(){this.comments={};_.r("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.xP.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.xP.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(b,h){var y=_.c(h.endpoint,_.wO);y&&(!(h=this.get("data.currentVideoEndpoint.watchEndpoint"))||y.videoId!==h.videoId||y.playlistId&&y.playlistId!==h.playlistId||y.index!==void 0&&y.index!==h.index||typeof y.startTimeSeconds!=="number"||(b.stopPropagation(),this.setScrollTop(0),_.hB(this).getPlayerPromise().then(function(S){var F=y.startTimeSeconds;S.seekTo(F);S.wakeUpControls();F<S.getDuration()&&S.playVideo()})))},
updatePlayerStartTime_:function(){var b=_.p32();"t"in b&&(b=_.l1$(b.t),this.player.seekTo(b,!0))},
updateTitleFromWatchNext:function(b){b=this.getPageContents(b);var h,y;(b=_.vi(b==null?void 0:(h=b[0])==null?void 0:(y=h.videoPrimaryInfoRenderer)==null?void 0:y.title))&&_.Sx(this.hostElement,"yt-update-title",b)},
updateTitle_:function(b){b=this.get("videoDetails.title",b)||"";_.Sx(this.hostElement,"yt-update-title",b)},
syncWithRemoteVideo_:function(b,h,y){if(this.active&&this.player){var S=this.player.getVideoData();if(S.video_id===y&&(y=S.list,_.r("polymer_enable_mdx_queue")&&y&&y.startsWith("RQ")&&(y=void 0),S.video_id!==b||y!=h)){var F;_.r("kevlar_player_watch_endpoint_navigation")?F=_.IqN(_.Vjc(b,h)):F=this.buildWatchEndpoint_(b,h);_.Sx(this.hostElement,"yt-navigate",{endpoint:F,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(b,h,y){return _.FF(b,h,y)},
initDclkstatus_:function(){_.f1A()},
attachWatchPageSkeleton_:function(){var b=document.querySelector("#watch-page-skeleton");if(b){var h=b.querySelector("#primary-info"),y=b.querySelector("#secondary-info"),S=b.querySelector("#related");h&&_.$x(this.hostElement).querySelector("#info-skeleton").appendChild(h);y&&_.$x(this.hostElement).querySelector("#meta-skeleton").appendChild(y);S&&(_.$x(this.hostElement).querySelector("#related-skeleton").appendChild(S),this.watchNextSkeletonEl_=S);_.sD(b)}},
handlePlayerUpdated_:function(){_.hB(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(b,h){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof h!=="undefined"){var y=this.watchNextSkeletonEl_.children,S=b&&b.indexSplices.length?b.indexSplices[0].index:0;b=Math.min(this.watchNextShownItems.length,y.length);h||(S=0,b=y.length);if(!this.ghostCardsEnabled)for(h=S;h<b;h++)y[h].classList.add("hidden")}},
onPlayerFullscreenChange_:function(b){_.r("external_fullscreen")||_.F8(this.hostElement,"yt-player-fullscreen",[b.fullscreen])},
onFullscreenChange_:function(b){this.fullscreen=b;this.gestures_&&this.gestures_.update(this.fullscreen);var h=_.hB(this);h.getPlayerPromise().then(function(y){y.setFauxFullscreen(!!_.v5())});
this.updateFullBleedElementLocations();b&&(h.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(b,h){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!h},
computeIsDonationShelfCollapsed_:function(b){return b},
computeShouldShowMerchShelf:function(b,h){return h&&!!b},
computeResponseHasComments:function(b){var h,y,S,F,a;return!!(b==null?0:(h=b.contents)==null?0:(y=h.twoColumnWatchNextResults)==null?0:(S=y.results)==null?0:(F=S.results)==null?0:(a=F.contents)==null?0:a.some(function(P){var K;return(P==null?void 0:(K=P.itemSectionRenderer)==null?void 0:K.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(b,h,y,S){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&S?!1:!!b&&!!Object.keys(b).length&&!h},
identity:_.e5,onWindowResized_:function(b){this.windowSize_=b;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.r("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(b){var h=this;b&&b.type!=="dataloaded"&&b.type!=="dataupdated"||_.hB(this).getPlayerPromise().then(function(y){var S=y.getPlayerState();S!==5&&S!==0&&(y=1/y.getVideoAspectRatio(),h.videoHeightToWidthRatio_!==y&&(h.videoHeightToWidthRatio_=y))})},
schedulePlayerSizeUpdate_:function(b){var h=this,y=_.r("kevlar_watch_while_v2")||_.r("web_watch_pip"),S=function(){if(h.watchMetadata){var F,a;(a=(F=h.watchMetadata).resize)==null||a.call(F)}_.hB(h).getPlayerPromise().then(function(P){if(_.Ff("kevlar_set_internal_player_size")){if(!y||!h.isMiniplayerActive()){var K=h.calculateCurrentPlayerSize_();P.setInternalSize(K.width,K.height)}}else P.setSize(NaN,NaN);_.r("kevlar_watch_while")&&h.updateWatchWhileScrollThreshold_()})};
b?S():_.N$(_.xP,S)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(b){this.set("data.survey",b.detail)},
onYtShowSurveyCommand_:function(b){this.set("data.survey",_.c(b,_.y4$).survey)},
onDownloadedVideoDeleted:function(b){var h=this,y,S;return _.Z(function(F){if(F.nextAddress==1){if(!h.active||(y=h.playerData)==null||!y.offlineState||h.videoId!==b)return F.return();(S=h.player)==null||S.stopVideo();_.h0().navigatingAwayFromWatchDeletedVideo=!0;_.Xb(_.eB4,h.hostElement);return F.yield(_.h0().navigationFinishPromise,2)}_.h0().navigatingAwayFromWatchDeletedVideo=!1;_.g3(F)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var b;this.theater?b=_.Y7(.5625*this.windowSize_.width,480,this.windowSize_.height-185):b=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==b&&(this.watchWhileScrollThreshold_=b,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var b=_.$x(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&b){var h=this.windowSize_.height>=624,y=this.active?this.getScrollTop():0;!b.active&&h&&y>=this.watchWhileScrollThreshold_?(b.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):b.active&&(!h||y<this.watchWhileScrollThreshold_&&!_.v5())&&(b.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var b=_.$x(this.hostElement).querySelector("#secondary-inner");if(b){var h=_.$x(this.hostElement).querySelector("#below"),y=_.$x(this.hostElement).querySelector("#secondary"),S=_.$x(this.hostElement).querySelector("#comments");S&&y&&h&&(this.defaultTwoColumnLayout?(b.appendChild(S),y.appendChild(b)):(h.appendChild(S),_.JI(h,b)))}}},
isTwoColumnsChanged_:function(b,h){if(b!==!0||h!==void 0)if(this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(b=_.$x(this.hostElement).querySelector("#secondary-inner"))){h=_.$x(this.hostElement).querySelector("#below");var y=_.$x(this.hostElement).querySelector("#secondary"),S=_.$x(this.hostElement).querySelector("#comments");S&&y&&h&&(this.isTwoColumns_?(b.appendChild(S),y.appendChild(b)):(h.appendChild(S),_.JI(h,b)))}}else{b=!_.r("web_watch_enable_fs_squeezeback_panels");
h=_.$x(this.hostElement).querySelector("#panels");var F=_.$x(this.hostElement).querySelector("#alerts"),a=_.$x(this.hostElement).querySelector("#shopping-timely-shelf");y=_.$x(this.hostElement).querySelector("#playlist");S=_.$x(this.hostElement).querySelector("#related");var P=_.$x(this.hostElement).querySelector("#donation-shelf"),K=_.$x(this.hostElement).querySelector("#comments"),n=_.$x(this.hostElement).querySelector("#persistent-panel-container");this.isTwoColumns_?(F=_.$x(this.hostElement).querySelector("#secondary-inner"),
b&&(F.appendChild(h),F.appendChild(y),this.aiCompanionEnabled&&n&&F.appendChild(n)),F.appendChild(P),F.appendChild(S)):(b&&(_.l4(h,F),_.l4(y,F),this.aiCompanionEnabled&&n&&_.l4(n,F),_.l4(a,y)),_.l4(P,F),K&&_.l4(S,K));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.r("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.r("web_watch_enable_fs_squeezeback_panels")&&_.r("web_watch_theater_chat")){var b=_.$x(this.hostElement).querySelector("#chat-container"),h=this.theater&&!this.fullscreen||_.r("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&h?(h=_.$x(this.hostElement).querySelector("#columns"),(b==null?void 0:b.parentElement)!==h&&h.append(b),this.fixedPanels=!0):(this.fixedPanels=
!1,h=_.$x(this.hostElement).querySelector("#playlist"),b&&h?_.qM(b,h):_.vX(new _.Gn("Missing element when updating chat location",{"chatContainer defined":!!b,"playlist defined":!!h})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(b,h){return _.r("sw_metadata_vis_toggle_ks")?!0:!!b||!!h},
computeForceDarkPanelTheme:function(b){return _.r("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&b:!1},
safeUpdateStyles:function(b){try{_.nZ(this.hostElement,b)}catch(h){_.vX(h)}},
videoHeightToWidthRatioChanged_:function(b,h){h&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(b){this.videoHeightToWidthRatio_=1/b},
computeIsVerticalVideo_:function(b){return b>=1},
computeIsFourThreeToSixteenNineVideo_:function(b){return b<=.7501&&b>=.5624},
computeIsExtraWideVideo_:function(b){return b<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.hB(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.hB(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.Kf2(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(b){var h=_.Wd(b)||0;_.Bd(b,h+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var b=_.Wd("yt-fullerscreen-edu-button-click-count")||0,h=_.Wd("yt-fullerscreen-edu-button-shown-count")||0,y=_.tj("external_fullscreen_button_shown_threshold"),S=b>=_.tj("external_fullscreen_button_click_threshold")||h>=y;_.hB(this).getPlayerPromise().then(function(F){F.updateFullerscreenEduButtonSubtleModeState(S)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(b,h){return h},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.H9().resolve(_.Rz).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var b=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.xP.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.xP.addLowPriorityJob(function(){b.fullHeightPanelPositionUpdateJobId=0;var h=_.$x(b.hostElement).querySelector("#secondary"),y=_.$x(b.hostElement).querySelector("#fixed-secondary");h=h.getBoundingClientRect();var S=h.width;b.swatcherooSqueezeback&&
(S+=_.CJ);if(b.swatcherooSqueezeback){var F=_.$x(b.hostElement).querySelector("#squeezeback-constraining-container");F.style.width=S+"px";F.style.flex="0 0 "+S+"px"}y.style.width=S+"px";y.style.left=h.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var b=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.xP.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.xP.addLowPriorityJob(function(){b.panelMaxHeightUpdateJob_=0;var h;!b.isTwoColumns_||b.theater||b.fullscreen?h=460:h=b.calculateNormalPlayerSize_().height;var y=h+"px";_.r("live_chat_taller_height")&&!b.theater&&(y="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.r("live_chat_medium_height")&&!b.theater&&(y="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.r("live_chat_scaled_height")&&!b.theater&&(y="calc(100vh - var(--ytd-toolbar-height) - 238px)");b.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":h+"px","--ytd-watch-flexy-chat-max-height":y,"--ytd-watch-flexy-structured-description-max-height":h+"px","--ytd-watch-flexy-comments-panel-max-height":h+"px","--ytd-comments-engagement-panel-content-height":h+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(b){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",b)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.jx(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(b){var h=_.$x(this.hostElement).querySelector("#engagement-panel-scrim");b?h.addEventListener("tap",_.Hl(this,this.onEngagementPanelScrimClick_)):h.removeEventListener("tap",_.Hl(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(b){if(this.hostElement.contains(b)&&!this.scrollToAnimation_.isAnimating()){var h=b.offsetTop-24;b=b.offsetTop+b.offsetHeight+24;var y=this.getPageScrollingElement(),S=this.getScrollTop(),F=S+y.clientHeight-56;if(h<S+56)h-=56;else if(b>F)h=b-y.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,h),500)}},
onYtSignalActionScrollToComments:function(){var b=this.hostElement.querySelector("#comments");if(b&&!this.scrollToAnimation_.isAnimating()){b=b.offsetTop-56-24;if(_.r("kevlar_comment_teaser_scroll_to_midpoint")&&(b-=_.sS().height/3,b<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,b),500)}},
onYtEngagementPanelVisibleChanged:function(b,h,y){if(this.active&&this.trackEngagementPanelVisibility&&!_.b9$.includes(y)){if(h==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.aw(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var S=_.H9().resolve(_.Mp);this.visiblePanelIdentifiers_.forEach(function(F){F!==y&&S.hidePanel({identifier:F})})}this.visiblePanelIdentifiers_.add(y)}h!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&h!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(y);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(b){return b?"":"watch-active-metadata"},
computeNewMetadataClass:function(b){return b?"watch-active-metadata":""},
computeIsSingleColumn:function(b,h){return h&&!b},
computeFullBleedPlayer:function(b,h,y){return _.r("external_fullscreen")&&b||h||y},
computeDefaultLayout:function(b){return!b},
computeDefaultTwoColumnLayout:function(b,h){return!b&&h},
updatePanelsLocation:function(){if(_.r("web_watch_enable_fs_squeezeback_panels")){var b=_.$x(this.hostElement).querySelector("#below"),h=_.$x(this.hostElement).querySelector("#panels"),y=_.$x(this.hostElement).querySelector("#playlist"),S=_.$x(this.hostElement).querySelector("#chat-container"),F=_.$x(this.hostElement).querySelector("#panels-full-bleed-container"),a=_.$x(this.hostElement).querySelector("#secondary-inner"),P=_.$x(this.hostElement).querySelector("#shopping-timely-shelf"),K=_.$x(this.hostElement).querySelector("#persistent-panel-container");
if(b&&h&&y&&S&&F&&a&&P&&(this.aiCompanionEnabled?K:1)){var n=this.fullscreen||this.theater&&this.iMaxTheaterMode,X=this.theater&&!this.fullscreen&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;X?(X=_.$x(this.hostElement).querySelector("#columns"),(S==null?void 0:S.parentElement)!==X&&X.append(S),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):n?F.appendChild(S):this.isTwoColumns_?_.JI(a,S):_.JI(b,S);n?(F.appendChild(h),F.appendChild(y),
this.aiCompanionEnabled&&K&&F.appendChild(K)):(this.isTwoColumns_?(_.JI(a,h),_.JI(a,y),this.aiCompanionEnabled&&K&&_.JI(a,K)):(_.JI(b,h),_.JI(b,y),this.aiCompanionEnabled&&K&&_.JI(b,K)),_.JI(b,P))}}},
swatcherooUpdatePanelsLocation:function(b,h,y,S,F,a){if(this.is==="ytd-watch-grid"){h=b&&!h;this.swatcherooSplitScroll&&(h?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));y=_.$x(this.hostElement).querySelector("#panels");var P=_.$x(this.hostElement).querySelector("#playlist"),K=_.$x(this.hostElement).querySelector("#persistent-panel-container"),
n=_.$x(this.hostElement).querySelector("#fixed-secondary"),X=_.$x(this.hostElement).querySelector("#fixed-below"),u=_.$x(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),O=_.$x(this.hostElement).querySelector("#chat-container");a&&(b?(n.appendChild(y),this.aiCompanionEnabled&&K&&n.appendChild(K)):(X.appendChild(y),this.aiCompanionEnabled&&K&&X.appendChild(K)));F?b?n.appendChild(O):X.appendChild(O):_.qM(O,u);S?b?n.appendChild(P):X.appendChild(P):_.qM(P,
u);this.swatcherooSplitScroll&&(b=_.$x(this.hostElement).querySelector("#secondary"),S=_.$x(this.hostElement).querySelector("#columns"),F=_.$x(this.hostElement).querySelector("#fixed-columns-secondary"),h?F.appendChild(b):S.appendChild(b))}},
computeMetadataSkinnyMode:function(b,h,y){return this.is!=="ytd-watch-grid"?!1:b?y:h},
computeWatchWhilePanelsActive:function(b,h){return b||h},
computeNoBorderOnChat:function(b){return _.r("web_watch_theater_chat_no_border")&&b},
computeLiveChatPresentAndExpanded:function(b,h){return b&&!h},
computePanelExpanded:function(b,h,y){return b||h||y},
computeSqueezeback:function(b,h,y,S){if(_.r("web_watch_enable_fs_squeezeback_panels")){var F=this.iMaxTheaterMode&&this.theater,a=this.theater&&!this.iMaxTheaterMode;return(b||h||y)&&(F||S)||h&&a}},
computeSwatcherooSqueezeback:function(b,h,y){return this.is!=="ytd-watch-grid"||_.r("ww_squeezeback_killswitch")?!1:b&&h&&y},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(b){_.hB(this).getPlayerPromise().then(function(h){var y;(y=h.changeMarkerVisibility)==null||y.call(h,_.c(b,_.ET).isVisible||!1,_.c(b,_.ET).entityKeys||[],_.c(b,_.ET).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(b){this.liveChatCollapsed=b.detail;_.hP().dispatch(_.vSc(b.detail));if(!this.liveChatCollapsed&&this.squeezeback){var h=_.H9().resolve(_.Mp);this.visiblePanelIdentifiers_.forEach(function(y){h.hidePanel({identifier:y})})}},
onSetPlaylistCollapsed:function(b){_.r("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!b)},
provideRenderingData:function(b,h){switch(b){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=h;break;case "PRIMARY_INFO":_.r("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=h);this.videoPrimaryInfoRendererValue=h==null?void 0:h.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.r("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=h);this.videoSecondaryInfoRendererValue=h==null?void 0:h.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
h;break;case "CLARIFICATION":this.clarifyBoxValue=h;break;case "LIVE_CHAT":this.conversationBar=h;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=h;break;case "PLAYLIST":this.externalPlaylistData_=h!=null?h:{};break;case "MERCH_SHELF":this.merchShelfValue=h==null?void 0:h.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=h;break;case "TICKET_SHELF":this.ticket=h;break;case "OFFER_MODULE":this.offerModule=h;break;case "LIMITED_STATE":this.limitedStateValue=
h;break;case "DONATION_SHELF":this.donation=h;break;case "ALERTS":this.alertsValue=h;break;case "COMMENTS":this.comments=h;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=h;break;case "ENGAGEMENT_PANELS":this.engagementPanels=h;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=h;break;case "RICH_GRID_RENDERER":this.richGridRendererData=h;break;case "EXPANDABLE_METADATA":this.expandableMetadata=h;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
h;break;case "IS_TWO_COLUMNS":this.isTwoColumns_=h;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=h}},
toggleCinematicsActive:function(b){this.cinematicsActive=b},
isMiniplayerActive:function(){return _.H9().resolve(_.Vp).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var iZa;_.ExX=function(b){if(!(0,_.Poa)(b))throw Error("K``"+String(b));};
_.fma=function(b){return b.findIndex(function(h){return iZa.indexOf(h.tagName)>-1})>-1};
_.wld=function(){var b=_.H9().resolve(_.Sc);_.Oty(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(b.isFullscreenEnabled()?_.bE(document.documentElement):_.L8U(document.documentElement))};
iZa=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.ZQ=new Map;_.ZQ.set(32,59972);_.ZQ.set(27,50765);_.ZQ.set(70,60102);_.ZQ.set(76,60221);_.ZQ.set(77,60222);_.ZQ.set(74,60223);_.ZQ.set(84,60224);_.ZQ.set(38,61941);_.ZQ.set(40,61942);_.ZQ.set(73,62521);_.ZQ.set(67,62522);_.ZQ.set(80,63390);_.ZQ.set(78,63397);_.ZQ.set(75,59972);_.ZQ.set(188,63385);_.ZQ.set(190,63384);_.ZQ.set(36,63387);
_.ZQ.set(35,63386);_.ZQ.set(37,63388);_.ZQ.set(39,63389);_.ZQ.set(79,63423);_.ZQ.set(87,63424);_.ZQ.set(107,63426);_.ZQ.set(109,63425);_.ZQ.set(65,63428);_.ZQ.set(83,63430);_.ZQ.set(68,63429);_.ZQ.set(221,63431);_.ZQ.set(219,63432);_.ZQ.set(97,63439);_.ZQ.set(98,63440);_.ZQ.set(99,63441);_.ZQ.set(100,63442);_.ZQ.set(101,63443);_.ZQ.set(102,63444);_.ZQ.set(103,63445);_.ZQ.set(104,63446);_.ZQ.set(105,63447);_.oJ=new Map;_.oJ.set(80,63390);_.oJ.set(78,63397);_.oJ.set(188,63400);_.oJ.set(190,63401);
_.oJ.set(191,60765);_.oJ.set(13,247917);_.lm2=new Map;_.qBX=new Map;
}catch(e){_._DumpException(e)}
try{
var amA,$hx,LcA,P3E;_.bZf=function(b){return b.ui.guideIsVisibleButNotPersistent};
_.hqx=function(b){return b.ui.scrollAtTop};
_.yoA=function(b){return b.ui.tabGesturesIsActive};
_.SBF=function(){var b=_.rH("service_worker_scope");try{return navigator.serviceWorker.getRegistration(b)}catch(h){return Promise.reject(h)}};
_.Fcq=function(b){return!(!b||!b.pushManager)};
amA=function(){return _.SBF().then(_.Fcq).catch(function(){return!1})};
_.dhN=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?amA():Promise.resolve(!1)};
_.jcX=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
$hx=function(){var b,h,y;return _.Z(function(S){switch(S.nextAddress){case 1:return S.yield(_.K0.getInstance(),2);case 2:b=S.yieldResult;if(!b){h=void 0;S.jumpTo(3);break}return S.yield(b.get("lmqf"),4);case 4:h=S.yieldResult;case 3:switch((y=h)||(y="SD"),y){case "HD":return S.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return S.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return S.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return S.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return S.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
LcA=function(b){var h,y,S;return _.Z(function(F){if(F.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.r("disable_av1_setting")){var a=window.localStorage["yt-player-av1-pref"];a=a==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":a==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else a="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(h=b===a)return F.jumpTo(2);S=y=b;return F.yield($hx(),3)}F.nextAddress!=2&&(h=S===F.yieldResult);return F.return(h)})};var Kcx;var ZZA=_.vI.IronButtonState,oxx=(0,_.lY)(HTMLElement);
_.pZ({_template:function(){if(Kcx!==void 0)return Kcx;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;P3E===void 0&&(P3E=document.createElement("template"));var S=P3E;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return Kcx=b},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[ZZA,_.Q0,_.bV,_.Sp],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(b){var h=(0,_.GU)(this);h.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:b});h.shadowRoot.appendChild(b);return oxx.prototype._attachDom.call(this,b)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var b=this.contentElement;b&&b.selectedItem&&this._setSelectedItem(b.selectedItem)},
get contentElement(){for(var b=_.rO(this.$.content).getDistributedNodes(),h=0,y=b.length;h<y;h++)if(b[h].nodeType===Node.ELEMENT_NODE)return b[h]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(b){this._setSelectedItem(b.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(b){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(b)===this&&this.open()},
_selectedItemChanged:function(b){var h="";b?h=b.label||b.getAttribute("label")||b.textContent.trim():h="";this.value=h;this._setSelectedItemLabel(h)},
_computeMenuVerticalOffset:function(b,h){return h?h:b?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var b=this.opened?"true":"false",h=this.contentElement;h&&h.setAttribute("aria-expanded",b)}});_.MCq=new _.r4("navigateAction");var nxA=new _.r4("formRenderer");var v1=function(){var b=_.cl.apply(this,arguments)||this;b.showInput=!1;return b};
_.z(v1,_.cl);_.d=v1.prototype;_.d.detached=function(){this.showInput&&window.removeEventListener("click",_.Hl(this,this.closeOnOutsideClick_))};
_.d.stopPropagation_=function(b){this.showInput&&b.stopPropagation()};
_.d.closeOnOutsideClick_=function(b){this.closeOnOutsideClickCondition(b)&&(this.showInput=!1,window.removeEventListener("click",_.Hl(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.d.closeOnOutsideClickCondition=function(){return!0};
_.d.closeOnOutsideClickHandler=function(){};
_.d.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.Hl(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.d.openOnClickHandler=function(){};
_.d.showInputChanged=function(){};
_.d.setShowInput=function(b){this.showInput=b};
v1.prototype.setShowInput=v1.prototype.setShowInput;v1.prototype.showInputChanged=v1.prototype.showInputChanged;v1.prototype.openOnClickHandler=v1.prototype.openOnClickHandler;v1.prototype.openOnClick_=v1.prototype.openOnClick_;v1.prototype.closeOnOutsideClickHandler=v1.prototype.closeOnOutsideClickHandler;v1.prototype.closeOnOutsideClickCondition=v1.prototype.closeOnOutsideClickCondition;v1.prototype.closeOnOutsideClick_=v1.prototype.closeOnOutsideClick_;v1.prototype.stopPropagation_=v1.prototype.stopPropagation_;
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],v1.prototype,"showInput",void 0);_.V([_.u3("click"),_.u3("keydown"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],v1.prototype,"stopPropagation_",null);_.V([_.OB("showInput"),_.f("design:type",Function),_.f("design:paramtypes",[Boolean]),_.f("design:returntype")],v1.prototype,"showInputChanged",null);_.V([_.Rc()],v1);_.Xlf=[v1.prototype];var HZx;var ufd;var bx=function(){return _.g.apply(this,arguments)||this};
_.z(bx,_.g);_.d=bx.prototype;_.d.computePreselectedOption=function(b,h){return h===this.itemSelected_?b:void 0};
_.d.dataChanged_=function(){var b=this;this.preselectedSubreason=this.itemSelected_=-1;var h;(h=this.data)!=null&&h.key&&_.Ob(this,function(){var y,S=Number((y=b.data)==null?void 0:y.key);!Number.isNaN(S)&&(b.itemSelected_=S,y=(y=(b.data.items||[])[S])&&y.optionSelectableItemRenderer&&y.optionSelectableItemRenderer.preselectedIndex)&&(b.preselectedSubreason=y)})};
_.d.isSubReasonHidden_=function(b,h){return b!=h};
_.d.onTopItemSelected_=function(b,h){for(var y=_.$x(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),S=0,F=y.length;S<F;S++)y[S].select(0);_.F8(this.hostElement,"yt-report-form-update",[h.item.value]);b.stopPropagation()};
_.d.onItemSelected_=function(b,h){_.F8(this.hostElement,"yt-report-form-update",[h.item.value]);b.stopPropagation()};
_.d.getItem_=function(b){return b.serviceItem?b.serviceItem:b.navigationItem?b.navigationItem:b.optionSelectableItemRenderer?b.optionSelectableItemRenderer:null};
_.d.computeText_=function(b){return(b=this.getItem_(b))?this.ytRendererBehavior.getSimpleString(b.text):null};
_.d.validate=function(){return this.itemSelected_!==-1};
_.d.computeAriaLabel_=function(b){var h=_.vi(b.text);(b=b.accessibility&&b.accessibility.accessibilityData&&b.accessibility.accessibilityData.label)&&(h+=". "+b);return h};
_.d.computeItemSelected_=function(b){return b};
_.d.preventSelection_=function(b){b.stopPropagation();this.tooltipTapped=!0};
_.d.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.d.updateItemSelectedFromBinding=function(b){this.itemSelected_=b.detail.value};
_.d.save=function(){var b;this.validate()&&(b=this.data)!=null&&b.items&&(b=this.data.items[this.itemSelected_],b!=null&&b.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(b.optionSelectableItemRenderer.submitEndpoint)||_.dh(this.hostElement,[b.optionSelectableItemRenderer.submitEndpoint])))};
bx.prototype.onPaperRippleTransitionEnd_=bx.prototype.onPaperRippleTransitionEnd_;bx.prototype.dataChanged_=bx.prototype.dataChanged_;_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],bx.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],bx.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],bx.prototype,"data",void 0);_.V([_.C({value:-1}),_.f("design:type",Number)],bx.prototype,"itemSelected_",void 0);
_.V([_.C({computed:"computeItemSelected_(itemSelected_)"}),_.f("design:type",Number)],bx.prototype,"value",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],bx.prototype,"restoreFocusOnClose",void 0);_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],bx.prototype,"tooltipTapped",void 0);_.V([_.C({value:-1}),_.f("design:type",Number)],bx.prototype,"preselectedSubreason",void 0);
_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],bx.prototype,"dataChanged_",null);_.V([_.u3("transitionend"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],bx.prototype,"onPaperRippleTransitionEnd_",null);_.V([_.sB({is:"yt-options-renderer",disableElementRegistration:!0})],bx);
_.k(bx,"yt-options-renderer",function(){if(ufd===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;HZx===void 0&&(HZx=document.createElement("template"));var S=HZx;y.call(h,S.content.cloneNode(!0),b.content.firstChild);ufd=b}b=ufd;return b},{mode:2});var OZf;var NyE;var tCx;var roA;var coN;var RqF;var hS=function(){return _.g.apply(this,arguments)||this};
_.z(hS,_.g);hS.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
hS.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
hS.prototype.onTap=function(b){if(this.hostElement.classList.contains("selected")||_.F8(this.hostElement,"yt-share-panel-can-select-contact-action")[0])b&&b.detail&&(b.detail.x||b.detail.y)&&_.$x(this.hostElement).querySelector("#target").blur(),(b=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),b={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:b?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.F8(this.hostElement,"yt-share-panel-select-contact-action",[b])};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],hS.prototype,"ytRendererBehavior",void 0);_.V([_.C({observer:"onDataChanged"}),_.f("design:type",Object)],hS.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.f("design:type",String)],hS.prototype,"componentTitle",void 0);_.V([_.to("#thumbnail"),_.f("design:type",Object)],hS.prototype,"thumbnail",void 0);_.V([_.sB({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],hS);
_.k(hS,"yt-enrolled-contact-renderer",function(){if(RqF===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;coN===void 0&&(coN=document.createElement("template"));var S=coN;y.call(h,S.content.cloneNode(!0),b.content.firstChild);RqF=b}b=RqF;return b},{mode:2});var zqf;var Dha;var yc=function(){return _.g.apply(this,arguments)||this};
_.z(yc,_.g);yc.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
yc.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
yc.prototype.onTap=function(b){if(this.hostElement.classList.contains("selected")||_.F8(this.hostElement,"yt-share-panel-can-select-contact-action")[0])b&&b.detail&&(b.detail.x||b.detail.y)&&_.$x(this.hostElement).querySelector("#target").blur(),(b=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),b={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:b?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.F8(this.hostElement,"yt-share-panel-select-contact-action",[b])};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],yc.prototype,"ytRendererBehavior",void 0);_.V([_.C({observer:"onDataChanged"}),_.f("design:type",Object)],yc.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.f("design:type",String)],yc.prototype,"componentTitle",void 0);_.V([_.to("#thumbnail"),_.f("design:type",Object)],yc.prototype,"thumbnail",void 0);_.V([_.sB({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],yc);
_.k(yc,"yt-suggested-contact-renderer",function(){if(Dha===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;zqf===void 0&&(zqf=document.createElement("template"));var S=zqf;y.call(h,S.content.cloneNode(!0),b.content.firstChild);Dha=b}b=Dha;return b},{mode:2});var Su=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-share-panel-reset-action":"onReset"};return b};
_.z(Su,_.g);Su.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"}}}}}};
Su.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.F8(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
Su.prototype.onReset=function(){for(var b=_.$x(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),h=b.length-1;h>=0;h--)b[h].classList.toggle("selected")};
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],Su.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Su.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Su.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C({observer:"onDataChanged"}),_.f("design:type",Object)],Su.prototype,"data",void 0);
_.V([_.sB({is:"yt-contact-section-renderer",disableElementRegistration:!0})],Su);
_.k(Su,"yt-contact-section-renderer",function(){if(roA===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;tCx===void 0&&(tCx=document.createElement("template"));var S=tCx;y.call(h,S.content.cloneNode(!0),b.content.firstChild);roA=b}b=roA;return b},{mode:2});var F4=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return b};
_.z(F4,_.g);_.d=F4.prototype;_.d.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"}}}};
_.d.onYtRefreshFormCommand=function(b){var h;(b=_.c((h=_.c(b,_.ipG))==null?void 0:h.formRenderer,nxA))&&this.set("data",b)};
_.d.reset=function(){var b=_.$x(this.hostElement).querySelector("#fields").children;b=_.L(b);for(var h=b.next();!h.done;h=b.next())h=h.value,h.reset&&h.reset()};
_.d.getForm=function(){var b={},h=_.$x(this.hostElement).querySelector("#fields").children;h=_.L(h);for(var y=h.next();!y.done;y=h.next()){y=y.value;if(!y.validate())return null;b[y.data.key]=y.value}return b};
_.d.submitFormFields=function(){if(this.fields)for(var b=_.L(this.fields),h=b.next();!h.done;h=b.next())h=h.value,h.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?h.save():h.nodeName==="YT-OPTIONS-RENDERER"&&h.save()};
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],F4.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],F4.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],F4.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],F4.prototype,"data",void 0);_.V([_.ry("#fields > *"),_.f("design:type",Array)],F4.prototype,"fields",void 0);
_.V([_.sB({is:"yt-form-renderer",disableElementRegistration:!0})],F4);
_.k(F4,"yt-form-renderer",function(){if(NyE===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;OZf===void 0&&(OZf=document.createElement("template"));var S=OZf;y.call(h,S.content.cloneNode(!0),b.content.firstChild);NyE=b}b=NyE;return b},{mode:2});var ImA;var aJ=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return b};
_.z(aJ,_.g);aJ.prototype.onCheckboxChange=function(b){this.data&&(b=(this.checked=_.mi(b).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.H9().resolve(_.OM).resolveCommand(b,{form:{element:this.hostElement}})};
aJ.prototype.handleUpdateCheckboxCommand=function(b){(b=_.c(b,_.$B8))&&this.data&&this.data.id===b.id&&(this.set("data.disabled",b.disabled),this.set("data.title",b.title))};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],aJ.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],aJ.prototype,"ytActionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],aJ.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Boolean)],aJ.prototype,"checked",void 0);_.V([_.Yx({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],aJ);
_.k(aJ,"ytd-settings-checkbox-renderer",function(){if(ImA!==void 0)return ImA;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return ImA=b},{mode:1});var ByX;var ju=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return b};
_.z(ju,_.g);ju.prototype.dataChanged=function(){var b=this,h;return _.Z(function(y){if(y.nextAddress==1)return b.radio.removeAttribute("checked"),!b.data||!b.data.id||b.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.jcX()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(h=b.data&&b.data.id)?y.yield(LcA(b.data.id),4):y.jumpTo(3):(b.set("data.hidden",!0),y.jumpTo(0));y.nextAddress!=3&&(h=y.yieldResult);h&&_.F8(b.hostElement,"yt-select-settings-radio-option",[b.data.id]);_.g3(y)})};
ju.prototype.onButtonChanged=function(b){_.mi(b).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.H9().resolve(_.OM).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.F8(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
ju.prototype.onSelectOption=function(b){this.data&&this.data.id&&(this.data.id===b?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
ju.prototype.dataChanged=ju.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],ju.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],ju.prototype,"ytActionHandlerBehavior",void 0);_.V([_.to("#radio"),_.f("design:type",Object)],ju.prototype,"radio",void 0);_.V([_.C(),_.f("design:type",Object)],ju.prototype,"data",void 0);
_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype",Promise)],ju.prototype,"dataChanged",null);_.V([_.Yx({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],ju);
_.k(ju,"ytd-settings-radio-option-renderer",function(){if(ByX!==void 0)return ByX;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return ByX=b},{mode:1});var WcA;var $k=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return b};
_.z($k,_.g);
$k.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"}}}};
$k.prototype.handleUpdateTextCommand=function(b){(b=_.c(b,_.Lsa))&&this.data&&this.data.id===b.id&&this.set("data",b)};
$k.prototype.handleUpdateConnectedAppRendererCommand=function(b){if(_.c(b,_.ZTe)&&this.data){var h,y;if(b=(h=_.c(b,_.ZTe))==null?void 0:(y=h.newConnectedAppRenderer)==null?void 0:y.connectedAppRenderer)this.data=b}};
$k.prototype.computeConnectedAppStyle=function(b){return b.style?b.style.toLowerCase().replace(/_/g,"-"):""};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],$k.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],$k.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],$k.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],$k.prototype,"data",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.f("design:type",String)],$k.prototype,"connectedAppStyle",void 0);_.V([_.Yx({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],$k);
_.k($k,"ytd-connected-app-renderer",function(){if(WcA!==void 0)return WcA;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return WcA=b},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.QY("iuT5Oc");

_.mn();
}catch(e){_._DumpException(e)}
try{
_.QY("NSzT5");
var ez_=function(){var b;return _.Z(function(h){if(h.nextAddress==1)return h.yield(_.H9().resolve(_.ja),2);(b=h.yieldResult)&&b.pauseVideo();_.g3(h)})};var Cp2=_.bm(["https://portraits.google.com"]),gE_=_.bm(["https://portraits.google.com/gallery?ytChannelId=","&mode=embed"]),sF2=_.bm(["https://portraits.google.com/gallery?ytChannelId=","&mode=linkout"]),YkA=_.Ra(Cp2),TS_=_.T(function(b){function h(O){var N;if(O=(N=O.detail)==null?void 0:N.endpoint){N=_.c(O,_.O0);var t;N&&((t=N.browseId)==null?0:t.startsWith("UC"))&&N.browseId!==F()&&(_.Hn("creator-chatbots-panel-persistent"),X.removeEventListener("yt-navigate-start",h))}}
var y=b.usePlayerHeight;var S=b.isPersistentPanel;var F=b.creatorChannelId;var a=_.NG(_.i_k),P=_.Qa(function(O){var N=F();N=_.Ra(gE_,N);_.as(O,1,N)}),K=function(){var O,N,t;
return _.Z(function(R){return R.nextAddress==1?R.yield(_.H9().resolve(_.ja),2):(O=R.yieldResult)?R.return({video_id:(t=(N=O.getVideoData())==null?void 0:N.video_id)!=null?t:"",timestamp_sec:O.getCurrentTime().toString()}):R.return({})})};
_.NS("message",function(O){var N,t,R,I,U,p,e;return _.Z(function(E){if(E.nextAddress==1){if(O.origin!==YkA.toString())return console.warn("Received message from untrusted origin:",O.origin),E.return();N=O.data;if(typeof N!=="object"||N===null||!N.action)return E.return();if(N.action==="pause")return E.yield(ez_(),0);if(N.action!=="getYouTubeContext")return E.jumpTo(0);if(((t=S)==null?0:t())&&O.source)return(R=O.source)==null||R.postMessage(JSON.stringify({youTubeContext:{}}),{targetOrigin:O.origin}),
E.jumpTo(0);if(!O.source)return E.jumpTo(0);I=O.source;U=I.postMessage;p=JSON;e=p.stringify;return E.yield(K(),8)}U.call(I,e.call(p,{youTubeContext:E.yieldResult}),{targetOrigin:O.origin});return E.jumpTo(0)})});
var n=function(){var O,N;(O=P.value)==null||(N=O.contentWindow)==null||N.postMessage("ep_closed",YkA.toString());(S==null?0:S())||_.Hn("creator-chatbots-panel")};
_.NS("yt-page-type-changed",function(){if(S==null?0:S()){var O;((O=_.H9().resolve(_.bM).getCurrentPage())==null?void 0:O.pageSubtype)!=="channels"&&(O=document.getElementById("creator-chatbots-panel-persistent"))&&(O.style.display="none")}});
var X=_.H9().resolve(_.QI),u;(u=X)==null||u.addEventListener("yt-navigate-start",h);_.m2(function(){var O;(O=X)==null||O.removeEventListener("yt-navigate-start",h)});
b={};return _.M("div",{class:_.P2("ytprotoCreatorChatbotsAppHost",(b.ytprotoCreatorChatbotsAppHostSingleColumn=function(){return a()},b)),
style:_.n9({height:function(){return(y==null?0:y())?"var(--ytd-watch-flexy-panel-max-height)":"100%"}})},_.M(_.OtA,{id:function(){return(S==null?0:S())?"creator-chatbots-panel-persistent":"creator-chatbots-panel"},
preventDefault:function(){return!(S==null?0:S())},
height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",onHide:n,header:function(){return _.M("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.M("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to Creator's Portrait"),_.M(_.z_,{data:{text:"AI experiment",type:0,accessibilityText:"AI experiment"}}))},
HeaderButton:function(){return _.M(_.O1,{iconName:"OPEN_IN_NEW",buttonSize:"large",iconSize:24,className:"yt-icon-button",ariaLabel:"Open in new tab",onClick:function(){var O=_.fc("https://portraits.google.com/gallery?ytChannelId="+F());O&&_.d3(window,O,"_blank");n()}})},
content:function(){return _.M("iframe",{el:P,class:"ytprotoCreatorChatbotsAppLabsIframe",allow:"microphone; clipboard-read; clipboard-write self "+YkA.toString()})}}))},"dp"),GAA=_.T(function(b){var h=b.creatorChannelId;
var y=_.NG(_.i_k),S=_.Qa(function(a){var P=h();P=_.Ra(sF2,P);_.as(a,1,P)}),F=_.NJ(_.rU(),{veType:281629});
b={};return _.M("div",{class:_.P2("ytprotoCreatorChatbotsAppHost",(b.ytprotoCreatorChatbotsAppHostSingleColumn=function(){return y()},b)),
style:"height: var(--ytd-watch-flexy-panel-max-height);"},_.M(_.OtA,{id:"creator-chatbots-panel",height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",header:function(){return _.M("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.M("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to Creator's Portrait"),_.M(_.z_,{data:{text:"AI experiment",
type:0}}))},
content:function(){return _.M("iframe",{el:S,class:"ytprotoCreatorChatbotsAppLabsIframe"})},
Footer:function(){return _.M("div",{class:"ytprotoCreatorChatbotsAppPanelFooter"},_.M(_.O1,{iconName:"OPEN_IN_NEW",text:"Chat now",buttonSize:"large",backgroundColor:"#1E6350",iconSize:24,className:"ytprotoCreatorChatbotsAppChatNowButton",iconClassName:"ytprotoCreatorChatbotsAppLinkoutIcon",onClick:function(){var a=_.fc("https://portraits.google.com/gallery?ytChannelId="+h());a&&_.d3(window,a,"_blank");ez_();F&&_.Vd(_.rU(),{visualElement:F})},
"client-ve-type":281629}),_.M("div",null,"This will take you to Google Portraits"))}}))},"ep");var kAf,VsR;kAf=_.bm(["https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth,wght@8..144,25..151,100..1000&display=swap"]);VsR=_.Ra(kAf);_.ZtM=function(b){b=b===void 0?"":b;_.Hn("creator-chatbots-panel");_.nY(VsR);_.ux("ytd-watch-metadata #top-level-buttons-computed",function(){document.getElementById("creator-chatbots-panel")||_.ubX("creator-chatbots-panel",function(){return _.M(TS_,{usePlayerHeight:!0,creatorChannelId:b})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")})};
_.oS9=function(b){b=b===void 0?"":b;_.Hn("creator-chatbots-panel");_.ux("ytd-watch-metadata #top-level-buttons-computed",function(){_.ubX("creator-chatbots-panel",function(){return _.M(GAA,{creatorChannelId:b})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")})};
_.lIq=function(b,h,y){b=b===void 0?"":b;h=h===void 0?!1:h;y=y===void 0?"CREATOR_CHATBOT_ENGAGEMENT_PANEL_SURFACE_UNKNOWN":y;var S,F;return _.Z(function(a){if(y==="CREATOR_CHATBOT_ENGAGEMENT_PANEL_SURFACE_WATCH_PAGE"){if(S=document.getElementById("creator-chatbots-panel"))S.style.display="block";return a.jumpTo(0)}F=document.getElementById("creator-chatbots-panel-persistent");return!h||F?(!h&&F&&F.style.display==="none"&&(F.style.display="block"),a.jumpTo(0)):a.yield(new Promise(function(P){_.ux("ytd-app",
function(K){_.X4({element:K,location:"appendChild",id:"creator-chatbots-panel-persistent",className:"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint ytprotoCreatorChatbotsExtensionPersistentEngagementPanel"},function(){return _.M(TS_,{isPersistentPanel:!0,creatorChannelId:b})});
P()})}),0)})};
_.mn();
}catch(e){_._DumpException(e)}
try{
_.QY("L3n37");
var zzx=function(b){return b.watch.isLearningJourneyActive},DGA=_.Kh(115994),Iv9=_.Kh(115993),BSL=function(b,h,y){var S=this;
var F=y.dragDownAction;this.layer=0;this.JSC$23869_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return S.dragDownAction()}}}};
this.JSC$23869_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return S.dragDownAction()}}}};
this.fullscreen=!1;var a=_.rU();_.qu(a,DGA,this.layer);_.qu(a,Iv9,this.layer);this.dragDownAction=function(){F();_.Vd(a,{visualElement:S.fullscreen?DGA:Iv9})};
this.gesture=new _.tH(b,h,this.getConfig(!1),"pandown");this.attach()};
BSL.prototype.attach=function(){this.gesture.attach()};
BSL.prototype.detach=function(){this.gesture.detach()};
BSL.prototype.update=function(b){this.fullscreen=b;var h=this.gesture;b=this.getConfig(b);h.config=b};
BSL.prototype.getConfig=function(b){return b?this.JSC$23869_watchFullScreenConfig:this.JSC$23869_watchConfig};var WfA=function(b){_.KY.call(this);var h=this;this.rootElement=b;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return h.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(y){h.initOrDisposeActiveModules(y)}));
this.onAttached()};
_.z(WfA,_.KY);_.d=WfA.prototype;_.d.getRoot=function(){return this.rootElement};
_.d.getElement=function(b){return this.rootElement.getElement(b)};
_.d.setPlayerResponse=function(b){this.playerResponse=b;this.publish("PLAYER_RESPONSE_UPDATED",b)};
_.d.getPlayerResponse=function(){return this.playerResponse};
_.d.setWatchNextResponse=function(b){this.watchNextResponse===b?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=b,this.publish("WATCH_NEXT_RESPONSE_UPDATED",b))};
_.d.getWatchNextResponse=function(){return this.watchNextResponse};
_.d.registerActionHandler=function(b,h){var y=this;if(_.r("web_watch_controller_reg_multiple_handlers_killswitch")){var S={};_.LP(_.$J.getInstance(),(S[b]=h,S),this.getRoot())}else this.actionHandlers.has(b)||(this.actionHandlers.set(b,[]),S={},_.LP(_.$J.getInstance(),(S[b]=function(){var F=_.x$.apply(0,arguments);return(y.actionHandlers.get(b)||[]).map(function(a){return a.apply(null,_.f$(F))})},S),this.getRoot())),this.actionHandlers.get(b).push(h)};
_.d.unregisterActionHandler=function(b){if(_.r("web_watch_controller_reg_multiple_handlers_killswitch")){var h={};_.Po(_.$J.getInstance(),(h[b]=!0,h),this.getRoot())}else(h=this.actionHandlers.get(b))?(h.pop(),h.length===0&&(h={},_.Po(_.$J.getInstance(),(h[b]=!0,h),this.getRoot()),this.actionHandlers.delete(b))):_.vX(new _.Gn("Attempted to unregister an action handler which is not registered.",b))};
_.d.addPageDisposeJob=function(b){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.AYf(this.rootElement.pageDisposeJobs,b)};
_.d.removePageDisposeJob=function(b){this.rootElement.pageDisposeJobs&&_.Gk(this.rootElement.pageDisposeJobs,b)};
_.d.dispatchEvent=function(b,h){_.Sx(this.rootElement,b,h)};
_.d.provideRenderingData=function(b,h){this.rootElement.provideRenderingData(b,h)};
_.d.scrollWatchTo=function(b,h){var y;(y=this.watchScrollManager)==null||y.scrollWatchTo(b,h)};
_.d.focusOnPlayer=function(){var b=this.getElement("PLAYER");_.Ob(b,function(){if(b&&b.firstElementChild){var h=b.querySelector(".html5-video-player");h&&(_.Yd(_.H9().resolve(_.rS)),h.focus())}else _.vX(Error("rp"))})};
var A4J=function(b){var h=!!b.rootElement.theater,y=!!b.rootElement.fullscreen,S;(S=b.watchCinematicManager)==null||_.yoc(S,y,h)};
_.d=WfA.prototype;_.d.subscribeToActiveChanged=function(b,h){h=h===void 0?!0:h;var y=_.Fq(_.hP(),zzx,function(S){b(S)});
h&&b(zzx(_.hP().getState()));return y};
_.d.isActive=function(){return zzx(_.hP().getState())};
_.d.onAttached=function(){var b=_.r("external_fullscreen");_.r("use_unified_flag_accessor")&&(b=_.H9().resolve(_.fbf).retriever.getFlag(_.tKw));(b||_.m$("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.d.initPersistentModules=function(){if(_.r("kevlar_watch_flexy_theater_manager")){var b=new _.WiM(this);_.pq(this,b)}b=new _.HZ9(this);_.pq(this,b);b=new _.Ah(this);_.pq(this,b);b=new _.ZZf(this);_.pq(this,b);b=new _.CO(this);_.pq(this,b);b=new _.UT(this);_.pq(this,b);_.r("kevlar_watch_flexy_playlist_manager")&&(b=new _.Qcp(this),_.pq(this,b))};
_.d.initOrDisposeActiveModules=function(b){b?(this.watchScrollManager=new _.gZ(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.pl9(this)),this.activeModules.push(new _.BR9(this)),this.activeModules.push(new _.SQ2(this)),this.activeModules.push(new _.zq_(this)),_.r("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.JtD(this)),this.activeModules.push(new _.Ty_(this)),_.r("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.a1P(this)),
_.r("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.iRM(this)),_.Ff("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.xCJ(this),this.activeModules.push(this.watchCinematicManager),A4J(this)),_.r("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.Exx(this)),_.r("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.MCp(this)),b=_.r("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.r("kevlar_watch_flexy_comments_manager")&&
!b&&this.activeModules.push(new _.jcx(this)),_.r("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.lUf(this)),this.activeModules.push(new _.ggL(this)),this.activeModules.push(new _.eqL(this)),_.r("web_enable_timely_actions")&&this.activeModules.push(new _.GMc(this)),_.r("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.LiP(this)),_.r("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.bR_(this)),_.r("web_fullscreen_components")&&
this.activeModules.push(new _.Yn2(this)),_.r("web_player_rtr_ctrls")&&this.activeModules.push(new _.KiD(this))):(_.H0(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.d.disposeInternal=function(){_.KY.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.tm.Object.defineProperties(WfA.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var UGR={},p2D=["learning-journey-engagement-panel","PAlearning_chat"];
UGR.YtdLearningJourneyWatchBehavior=[_.Q.YtRendererBehavior,_.UA.YtPlayerListenerBehavior,_.Cd.YtRendererstamperBehavior,_.mx.YtActionHandlerBehavior,_.So.YtPageBehavior,_.Q5.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 _.m$("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.r("web_watch_provide_secondary_results_renderer")}},
fullscreen:{type:Boolean,reflectToAttribute:!0},playlist:{type:Boolean,reflectToAttribute:!0,computed:"hasPlaylist_(playlistData, loadingData.playlist)",observer:"secondaryColumnModulePresenceChanged_"},alerts:{type:Object,computed:"getAlerts_(playerData.playabilityStatus, alertsValue)"},alertsValue:{type:Object},microformat:{type:Object,computed:"getPlayerMicroformatRenderer_(playerData.microformat)"},commentsReady:{type:Boolean,observer:"commentsReadyChanged_"},theaterRequested_:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.m$("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,
reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},jsPanelHeight_:{type:Boolean,value:function(){return _.r("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.r("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},
richItemMinWidth:{type:Number,value:function(){return _.tj("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.tj("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},
videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,
reflectToAttribute:!0,value:function(){return _.Ff("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("web_watch_rounded_player_large")||_.r("watch_next_grid_round_player")}},
showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},trackEngagementPanelVisibility:{type:Boolean,
value:function(){return _.r("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.r("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("web_watch_full_bleed_no_max_width_columns")}},
fixedPanels:{type:Boolean,reflectToAttribute:!0},panelsBesidePlayer:{type:Boolean,reflectToAttribute:!0},watchWhileWider:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("web_watch_while_panel_margin")}},
watchWhilePanelsActive:{type:Boolean,reflectToAttribute:!0,computed:"computeWatchWhilePanelsActive(fixedPanels, panelsBesidePlayer)"},noBorderOnChat:{type:Boolean,computed:"computeNoBorderOnChat(watchWhilePanelsActive)"},forceDarkPanelTheme:{type:Boolean,computed:"computeForceDarkPanelTheme(panelsBesidePlayer)"},hasMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeHasMetadata(videoPrimaryInfoRenderer)"},watchWhileWindowSizeSufficient:{type:Boolean,observer:"watchWhileWindowSizeSufficientChanged"},
thumbnailToWatchTransition:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);updateChatLocation(liveChatPresentAndExpanded);watchNextSecondaryResultsChanged(data)".split(";"),monitorScroll:!0,configureRendererStamper:function(){return{info:{id:"info-contents",
mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",
properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},
tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},
clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},
initialRenderPriority:3,waitForSignal:_.qH(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.qH(["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 b=this;this.watchController=void 0;this.pageDisposeJobs=[function(){b.showMetadataPlaceholder_()},
function(){_.r("web_watch_dont_clear_comments")||b.clearComments_()},
function(){b.clearPlayerAds_()},
function(){b.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.r("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.r("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=new _.Skc(function(){return _.hB(b)},
this.hostElement);
this.pageDisposeJobs.push(function(){b.youThereManager_.reset()});
_.r("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){b.resetFullerscreenEduButtonForNewPlayback_()}));
_.r("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.CT;this.playerEvents_.set("onFeedbackStartRequest",this.onPlayerFeedbackStartRequest_);this.playerEvents_.set("onFeedbackArticleRequest",this.onPlayerFeedbackArticleRequest_);this.playerEvents_.set("onYpcContentRequest",this.onPlayerYpcContentRequest_);this.playerEvents_.set("onAutonavPauseRequest",this.onPlayerAutonavPauseRequest_);this.playerEvents_.set("onAdStateChange",
this.onAdStateChange_);this.playerEvents_.set("onStateChange",this.onPlayerStateChange_);this.playerEvents_.set("SUBSCRIBE",this.onPlayerSubscribe_);this.playerEvents_.set("UNSUBSCRIBE",this.onPlayerUnsubscribe_);this.playerEvents_.set("onYtShowToast",this.onPlayerAdYtShowToast_);this.playerEvents_.set("onFullscreenChange",this.onPlayerFullscreenChange_);this.playerEvents_.set("onVideoDataChange",this.onPlayerPresentingVideoDataChange_);this.engagementPanelScrimOnClickCommands_=null;_.r("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.r("kevlar_watch_flexy_theater_manager")||(this.actionMap["yt-toggle-theater-mode"]="setTheaterModeRequested",this.actionMap["yt-is-theater"]="isTheater_",this.playerEvents_.set("SIZE_CLICKED",this.setTheaterModeRequested));_.r("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Hl(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(b){b&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:b}),b.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(b){_.r("kevlar_watch_flexy_theater_manager")&&(this.theater=b,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.r("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(b){!_.r("kevlar_watch_while_v2")&&!_.r("web_watch_pip")||b||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(b){this.active!==void 0&&(this.fullscreen=b,_.r("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(b){this.active!==void 0&&(_.Sx(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.r("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.r("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(b>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(b){this.initCsi_();this.updatePageData_(b)},
updatePageData_:function(b){var h=this;if(b)if(this.data===b){this.onPageLoadWithSameData_();var y;(y=this.watchController)==null||y.setWatchNextResponse(this.data)}else this.data=b;this.playlist&&_.WT({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.pI("nw");this.loading=!1;_.VT(_.xP,function(){h.initDclkstatus_();var S,F=((S=h.player)==null?void 0:S.getVideoData().cpn)||"";_.kKJ(function(a,P){_.Tyf(a,P,F)})})},
onPageLoadWithSameData_:function(){_.r("kevlar_watch_flexy_comments_manager")||this.initComments_();this.setPlayerAds_()},
setLoadingState_:function(){this.hostElement.classList.remove("hide-skeleton");this.hostElement.classList.add("show-skeleton");this.setPlayerLoadingState_();this.hostElement.classList.add("loading");var b=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!b);this.set("loadingData.playlistLoading",b&&b!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),b=this.watchNextSkeletonEl_.firstElementChild;b;)b.classList.remove("hidden"),b=b.nextElementSibling;var h,y,S;b=(h=this.loadingData)==null?void 0:(y=h.endpoint)==null?void 0:(S=y.watchEndpoint)==null?void 0:S.videoId;var F;b&&(F="https://i.ytimg.com/vi/"+b+"/frame0.jpg");_.$x(this.hostElement).querySelector("#player").style.backgroundImage=F?"url("+F+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var b=_.$x(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&b&&(b.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var h,y;(y=(h=this.watchMetadata).updateSentimentBarWidth)==
null||y.call(h);var S,F;(F=(S=this.watchMetadata).resize)==null||F.call(S)}_.$x(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(b){var h=_.$x(this.hostElement).querySelector(b);h?_.hL(h,!1):_.vX(new _.Gn("Overscroll monitor not found for component: ",b))},
removeSplitScrollMouseTrap:function(b){var h=_.$x(this.hostElement).querySelector(b);h?_.yh(h):_.vX(new _.Gn("Disposal component for  overscroll monitoring not found: ",b))},
onLoadingChanged_:function(b){b?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(b){var h=this;b?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.xP.addLowPriorityJob(function(){h.onWindowResized_(_.rq(!0))})},
updateTheaterModeState_:function(b){if(!_.r("kevlar_watch_flexy_theater_manager")){b=b||this.fullWindowMode_;if(this.theater!==void 0||b)this.theater=b;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();b&&_.Q2x()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var b=this.theater;_.r("external_fullscreen")&&this.fullscreen&&(b=!0);b=b?_.$x(this.hostElement).querySelector("#player-full-bleed-container"):_.$x(this.hostElement).querySelector("#player-container-inner");var h=this.getPlayerContainer(),y=_.r("kevlar_watch_while_v2")||_.r("web_watch_pip");h.parentElement!==b&&(y&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.hB(this).appendTo(b,h),b.appendChild(_.$x(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var b=this;return _.Z(function(h){if(h.nextAddress==1)return h.yield(_.H9().resolve(_.Vp).deactivate(),2);b.updatePlayerLocation();_.g3(h)})},
updateCinematicsLocation:function(){var b=this.getElement("CINEMATICS");if(b){var h=this.getCinematicsLocationContainer();b.parentElement!==h&&h.appendChild(b);var y;(y=this.watchController)==null||A4J(y)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.$x(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.$x(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(b,h){var y=document.documentElement.hasAttribute("dark"),S=!y&&this.cinematicLightTheme;return b&&y||h&&y||(h||b)&&S},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var b;(b=this.watchController)==null||b.setWatchNextResponse(this.data);_.r("kevlar_watch_flexy_comments_manager")||this.initComments_();_.r("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.H9().resolve(_.Rz).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.r("web_watch_start_chat_in_theater_mode")){var h,
y,S;if((h=this.data)==null?0:(y=h.contents)==null?0:(S=y.twoColumnWatchNextResults)==null?0:S.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var F,a;((F=this.data)==null?0:(a=F.contents)==null?0:a.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(b){var h;(h=this.watchController)==null||h.setPlayerResponse(this.playerData);b&&b.playabilityStatus&&(h=this.isVideoPlayable_(b.playabilityStatus,this.getPlayerOverlays_(this.data)),b=this.isLiveStreamOffline_(b.playabilityStatus),h&&!b||_.Ob(this,function(){_.pI("pbu")}));
this.setPlayerAds_();_.aw(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(b){_.hP().dispatch(_.$8({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));b?this.activate_():this.deactivate_()},
attached:function(){var b=this;this.watchController=new WfA(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.r("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var h=_.hB(this);_.r("kevlar_disable_prepare_player")||h.preparePlayer();_.r("kevlar_watch_flexy_playlist_manager")||_.H9().resolve(_.Rz).setPlayer(h);this.updatePageMediaQueries();h={"--ytd-watch-flexy-scrollbar-width":_.Qo()+
"px"};!_.tj("kv_pl_mx_sz_ks")&&_.tj("kevlar_watch_max_player_width")&&(h["--ytd-watch-flexy-max-player-width-wide-screen"]=_.iPA+"px");_.tj("kevlar_watch_flexy_metadata_height")&&(h["--ytd-watch-flexy-space-below-player"]=_.fR$+"px");this.safeUpdateStyles(h);_.r("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new BSL(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return b.onPlayerTouchPanDown_()}}));
_.r("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.$x(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var b=_.Qo(),h=_.gM+b,y=h;this.fixedPanels&&(h+=_.EJ2);var S=657+b;b=1327+b;_.$x(this.hostElement).querySelector("#two-column-query").query="(min-width: "+h+"px)";_.$x(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(S+"px), (min-height: 630px) and (min-width: ")+(h+"px) and (max-width: ")+(b+"px)");_.$x(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(b+"px)");
_.$x(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+y+"px)"},
calculateCurrentPlayerSize_:function(){var b=_.$x(this.hostElement).querySelector("#miniplayer-bar").firstChild;return b&&b.active||this.theater||_.r("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.g1(NaN,NaN):_.w39(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.w39(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.nq(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var b=this;this.onWindowResized_(_.rq());_.r("browse_skeleton_removal_on_watch_killswitch")||_.m$("IS_SHELL_LOAD")&&_.e9c();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var h=_.hB(this);h.addEventListener("yt-player-updated",_.Hl(this,this.onPlayerUpdated_));h.getPlayerPromise().then(function(y){b.playerApiReady_(y)});
_.r("kevlar_watch_flexy_playlist_manager")||(h=_.H9().resolve(_.Rz),_.r("kevlar_watch_observe_playlist_navigations_killswitch")&&h.addEventListener("yt-navigate",_.Hl(this,this.onYtNavigate_)),h.setPlaylistComponent(_.$x(this.hostElement).querySelector("#playlist")),h.addEventListener("yt-playlist-data-updated",_.Hl(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.xP.addLowPriorityJob(function(){_.Sx(b.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.hB(this).removeEventListener("yt-player-updated",_.Hl(this,this.onPlayerUpdated_));if(!_.r("kevlar_watch_flexy_playlist_manager")){var b=_.H9().resolve(_.Rz);_.r("kevlar_watch_observe_playlist_navigations_killswitch")&&b.removeEventListener("yt-navigate",_.Hl(this,this.onYtNavigate_));b.cancelVideoSkip();b.removeEventListener("yt-playlist-data-updated",_.Hl(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.r("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.Sx(this.hostElement,"yt-autonav-pause-player",!1);b=_.v5();_.r("kevlar_exit_fullscreen_leaving_watch")&&b&&_.bE(b)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(b){this.player&&this.player.updateVideoData({rvs:b.rvs})},
getPageContents:function(b){return b&&b.contents&&b.contents.twoColumnWatchNextResults&&b.contents.twoColumnWatchNextResults.results&&b.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(b){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",b)},
onRetrieveLocation_:function(b,h){h.hasComments?h.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):h.locationRetrieved("/related_ajax",void 0);b.stopPropagation()},
onSubscriptionChanged_:function(b,h){this.player&&(h?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.ETD("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.$x(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.$x(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(b){this.player=b;this.setPlayerState(b.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.r("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.r("kevlar_unified_player")||_.r("kevlar_player_new_bootstrap_adoption"))&&_.Eo()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(b,h){h=h===void 0?!0:h;_.v5()&&_.r("external_fullscreen")&&_.bE(document.documentElement);this.theaterRequested_=b;h&&_.gH("wide",b?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.r("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.F8(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.Sx(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(b){_.bh(b,typeof this.player),this.player&&_.bh(b,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var b;((b=this.player)==null?0:b.isFullscreen())?this.player.toggleFullscreen():_.F8(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(b,h){return this.loading?h:!!Object.keys(b).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(b){if(b){b=_.L(b);for(var h=b.next();!h.done;h=b.next())h=h.value,h.youThereRenderer&&_.dGc(this.youThereManager_,h.youThereRenderer)}},
setPlaylistData_:function(b){return b||{}},
userEngagementConfigDataChanged_:function(b){if(b)if(b.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var h=this.youThereManager_;_.td()<b.lowEngagementThresholdMs||_.PpL(h,!0)}else b.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.F8(this.hostElement,"yt-autonav-pause-user-engagement",[b])},
isPlayerUnavailable_:function(b,h,y){return!!b&&!this.isVideoPlayable_(b,y)&&!h},
getPlayerOverlays_:function(b){return(b==null?void 0:b.playerOverlays)||null},
isVideoPlayable_:function(b,h){if(!b)return!1;var y=b.status==="OK"||b.status==="LIVE_STREAM_OFFLINE",S=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",b)||this.get("errorScreen.ypcTrailerRenderer",b);b=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",b);var F;h=h==null?void 0:(F=h.playerOverlayRenderer)==null?void 0:F.gatedActionsOverlayRenderer;return!!y||!!S||!!b||!!h},
hasWatchNextResponseErrorRenderer:function(b){var h=this.getPageContents(b),y,S,F,a,P;return!(b==null?0:(y=b.contents)==null?0:(S=y.twoColumnWatchNextResults)==null?0:S.secondaryResults)&&!!((F=h[0])==null?0:(a=F.itemSectionRenderer)==null?0:(P=a.contents[0])==null?0:P.backgroundPromoRenderer)},
isLiveStreamOffline_:function(b){return b?b.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(b,h,y){var S=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",h),F=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];F=_.r("web_no_skip_video_on_verification_checks")?(b==null?void 0:b.status)&&F.includes(b.status):b&&b.status==="AGE_CHECK_REQUIRED";var a=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",b);a==void 0&&(a=!0);!y||this.isVideoPlayable_(b,this.getPlayerOverlays_(h))||
S||F||!a||_.H9().resolve(_.Rz).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.qQD()},
onPlayerFeedbackStartRequest_:function(b){_.F8(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:b}])},
onPlayerFeedbackArticleRequest_:function(b){_.F8(this.hostElement,"yt-help-dialog-requested",[b])},
onPlayerYpcContentRequest_:function(){var b,h,y,S,F,a,P,K,n=((b=this.data)==null?NaN:(h=b.contents)==null?NaN:(y=h.twoColumnWatchNextResults)==null?NaN:(S=y.secondaryResults)==null?NaN:(F=S.secondaryResults)==null?NaN:(a=F.offerModule)==null?NaN:(P=a.tvfilmOfferModuleRenderer)==null?NaN:(K=P.actionButtons)==null?NaN:K.length)-1;b=[".offerButton.buttonRenderer.",".actionButtons."+(n>=0?n:0)+".buttonRenderer."];h=_.L(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(y=h.next();!y.done;y=h.next())for(y=y.value,S=_.L(b),F=S.next();!F.done;F=S.next())if(F="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+y+F.value,F=this.get(F+"navigationEndpoint",this.data)||this.get(F+"serviceEndpoint",this.data)||this.get(F+"command",this.data)){_.Xb(F,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(b){_.Sx(this.hostElement,"yt-autonav-pause-player",b)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(b){b()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(b){switch(b){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(b){switch(b){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.Sx(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(b)},
setPlayerState:function(b){_.hP().dispatch(_.axW(b))},
onPlayerSubscribe_:function(b){_.F8(this.hostElement,"yt-player-subscribe",[b])},
onPlayerUnsubscribe_:function(b){_.F8(this.hostElement,"yt-player-unsubscribe",[b])},
onPlayerAdYtShowToast_:function(b){_.F8(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:b.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(b){if(b)return b},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(b){return!_.Ff("web_watch_move_summary_to_sd")&&!!b},
computeWatchMetadataRefresh:function(){return _.r("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var b,h,y,S;this.watchNextSecondaryResults=(b=this.data)==null?void 0:(h=b.contents)==null?void 0:(y=h.twoColumnWatchNextResults)==null?void 0:(S=y.secondaryResults)==null?void 0:S.secondaryResults}},
setRichGridRendererData:function(b){this.richGridRendererData=b},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var b,h=(b=this.data)==null?void 0:b.engagementPanels;if(h==null?0:h.length){b=null;h=_.L(h);for(var y=h.next();!y.done;y=h.next()){y=y.value;var S=void 0;if(((S=y.engagementPanelSectionListRenderer)==null?void 0:S.targetId)==="engagement-panel-structured-description"){b=y;break}}var F,a,P;b=(F=b)==null?void 0:(a=F.engagementPanelSectionListRenderer)==null?void 0:(P=a.content)==null?void 0:P.structuredDescriptionContentRenderer;if(b==null?0:b.items){F=
[];a=_.L(b.items);for(P=a.next();!P.done;P=a.next()){P=P.value;if(!_.r("sd_horizontal_list_show_nav_killswitch")){var K=S=y=h=b=void 0,n=void 0,X=(b=P.horizontalCardListRenderer)==null?void 0:(h=b.header)==null?void 0:(y=h.richListHeaderRenderer)==null?void 0:(S=y.navigationButton)==null?void 0:(K=S.buttonRenderer)==null?void 0:(n=K.command)==null?void 0:n.commandExecutorCommand;X&&X.commands&&(X.commands=X.commands.filter(function(u){return!_.c(u,_.dSc)}))}P.expandableVideoDescriptionBodyRenderer||
P.videoDescriptionHeaderRenderer||F.push(P)}return{items:F}}}},
constructWarning_:function(b){return{text:_.mk(b),type:"WARNING"}},
isPlaShelfEnabled_:function(b){if((this.get("adPlacements",b)||[]).length)return!0;b=this.get("playerAds",b)||[];return!(!b.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",b[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var b=this;_.Sx(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.r("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var h=this.getScrollTop()>0;this.gestures_&&(h?this.gestures_.detach():this.gestures_.attach());h!==this.showFullerscreenEdu_&&_.r("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=h,_.hB(this).getPlayerPromise().then(function(y){y.updateFullerscreenEduButtonVisibility(b.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.Sx(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var b=this;this.commentsReady=!1;_.xP.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.VT(_.xP,function(){b.setComments_()},1E3)},
setComments_:function(){if(!_.r("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.pI("cmi");_.xP.cancelJob(this.setCommentsJobId_);var b=this.getPageContents(this.data);if(b&&b.length){b=_.L(b);for(var h=b.next();!h.done;h=b.next())if(h=h.value,this.get("itemSectionRenderer.sectionIdentifier",h)==="comment-item-section"){this.comments=h.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Sx(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.r("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.r("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.pI("cmc")},
doRemoveComments_:function(){this.comments={};_.r("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.xP.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.xP.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(b,h){var y=_.c(h.endpoint,_.wO);y&&(!(h=this.get("data.currentVideoEndpoint.watchEndpoint"))||y.videoId!==h.videoId||y.playlistId&&y.playlistId!==h.playlistId||y.index!==void 0&&y.index!==h.index||typeof y.startTimeSeconds!=="number"||(b.stopPropagation(),this.setScrollTop(0),_.hB(this).getPlayerPromise().then(function(S){var F=y.startTimeSeconds;S.seekTo(F);S.wakeUpControls();F<S.getDuration()&&S.playVideo()})))},
updatePlayerStartTime_:function(){var b=_.p32();"t"in b&&(b=_.l1$(b.t),this.player.seekTo(b,!0))},
updateTitleFromWatchNext:function(b){b=this.getPageContents(b);var h,y;(b=_.vi(b==null?void 0:(h=b[0])==null?void 0:(y=h.videoPrimaryInfoRenderer)==null?void 0:y.title))&&_.Sx(this.hostElement,"yt-update-title",b)},
updateTitle_:function(b){b=this.get("videoDetails.title",b)||"";_.Sx(this.hostElement,"yt-update-title",b)},
syncWithRemoteVideo_:function(b,h,y){if(this.active&&this.player){var S=this.player.getVideoData();if(S.video_id===y&&(y=S.list,_.r("polymer_enable_mdx_queue")&&y&&y.startsWith("RQ")&&(y=void 0),S.video_id!==b||y!=h)){var F;_.r("kevlar_player_watch_endpoint_navigation")?F=_.IqN(_.Vjc(b,h)):F=this.buildWatchEndpoint_(b,h);_.Sx(this.hostElement,"yt-navigate",{endpoint:F,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(b,h,y){return _.FF(b,h,y)},
initDclkstatus_:function(){_.f1A()},
attachWatchPageSkeleton_:function(){var b=document.querySelector("#watch-page-skeleton");if(b){var h=b.querySelector("#primary-info"),y=b.querySelector("#secondary-info"),S=b.querySelector("#related");h&&_.$x(this.hostElement).querySelector("#info-skeleton").appendChild(h);y&&_.$x(this.hostElement).querySelector("#meta-skeleton").appendChild(y);S&&(_.$x(this.hostElement).querySelector("#related-skeleton").appendChild(S),this.watchNextSkeletonEl_=S);_.sD(b)}},
handlePlayerUpdated_:function(){_.hB(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(b,h){if(this.watchNextSkeletonEl_&&typeof h!=="undefined"){var y=this.watchNextSkeletonEl_.children,S=b&&b.indexSplices.length?b.indexSplices[0].index:0;b=Math.min(this.watchNextShownItems.length,y.length);h||(S=0,b=y.length);for(h=S;h<b;h++)y[h].classList.add("hidden")}},
onPlayerFullscreenChange_:function(b){_.r("external_fullscreen")||_.F8(this.hostElement,"yt-player-fullscreen",[b.fullscreen])},
onFullscreenChange_:function(b){this.fullscreen=b;this.gestures_&&this.gestures_.update(this.fullscreen);var h=_.hB(this);h.getPlayerPromise().then(function(y){y.setFauxFullscreen(!!_.v5())});
this.updateFullBleedElementLocations();b&&(h.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(b,h){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!h},
computeIsDonationShelfCollapsed_:function(b){return b},
computeShouldShowMerchShelf:function(b,h){return h&&!!b},
computeResponseHasComments:function(b){var h,y,S,F,a;return!!(b==null?0:(h=b.contents)==null?0:(y=h.twoColumnWatchNextResults)==null?0:(S=y.results)==null?0:(F=S.results)==null?0:(a=F.contents)==null?0:a.some(function(P){var K;return(P==null?void 0:(K=P.itemSectionRenderer)==null?void 0:K.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(b,h){this.responseHasComments=this.computeResponseHasComments(this.data);return!!b&&!!Object.keys(b).length&&!h},
identity:_.e5,onWindowResized_:function(b){this.windowSize_=b;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.r("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.r("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(b){var h=this;b&&b.type!=="dataloaded"&&b.type!=="dataupdated"||_.hB(this).getPlayerPromise().then(function(y){var S=y.getPlayerState();S!==5&&S!==0&&(y=1/y.getVideoAspectRatio(),h.videoHeightToWidthRatio_!==y&&(h.videoHeightToWidthRatio_=y))})},
schedulePlayerSizeUpdate_:function(b){var h=this,y=_.r("kevlar_watch_while_v2")||_.r("web_watch_pip"),S=function(){if(h.watchMetadata){var F,a;(a=(F=h.watchMetadata).resize)==null||a.call(F)}_.hB(h).getPlayerPromise().then(function(P){if(_.Ff("kevlar_set_internal_player_size")){if(!y||!h.isMiniplayerActive()){var K=h.calculateCurrentPlayerSize_();P.setInternalSize(K.width,K.height)}}else P.setSize(NaN,NaN);_.r("kevlar_watch_while")&&h.updateWatchWhileScrollThreshold_()})};
b?S():_.N$(_.xP,S)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(b){this.set("data.survey",b.detail)},
onYtShowSurveyCommand_:function(b){this.set("data.survey",_.c(b,_.y4$).survey)},
onDownloadedVideoDeleted:function(b){var h=this,y,S;return _.Z(function(F){if(F.nextAddress==1){if(!h.active||(y=h.playerData)==null||!y.offlineState||h.videoId!==b)return F.return();(S=h.player)==null||S.stopVideo();_.h0().navigatingAwayFromWatchDeletedVideo=!0;_.Xb(_.eB4,h.hostElement);return F.yield(_.h0().navigationFinishPromise,2)}_.h0().navigatingAwayFromWatchDeletedVideo=!1;_.g3(F)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var b;this.theater?b=_.Y7(.5625*this.windowSize_.width,480,this.windowSize_.height-185):b=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==b&&(this.watchWhileScrollThreshold_=b,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var b=_.$x(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&b){var h=this.windowSize_.height>=624,y=this.active?this.getScrollTop():0;!b.active&&h&&y>=this.watchWhileScrollThreshold_?(b.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):b.active&&(!h||y<this.watchWhileScrollThreshold_&&!_.v5())&&(b.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(b,h){if(b!==!0||h!==void 0){b=!_.r("live_chat_over_engagement_panels");h=_.$x(this.hostElement).querySelector("#chat-container");var y=_.$x(this.hostElement).querySelector("#plj-sidebar"),S=_.$x(this.hostElement).querySelector("#panels"),F=_.$x(this.hostElement).querySelector("#plj-panels"),a=_.$x(this.hostElement).querySelector("#plj-playlist"),P=_.$x(this.hostElement).querySelector("#alerts"),K=_.$x(this.hostElement).querySelector("#playlist"),n=_.$x(this.hostElement).querySelector("#related"),
X=_.$x(this.hostElement).querySelector("#donation-shelf"),u=_.$x(this.hostElement).querySelector("#comments");this.isTwoColumns_?(P=_.$x(this.hostElement).querySelector("#secondary-inner"),P.appendChild(y),y.appendChild(a),a.appendChild(K),y.appendChild(F),b&&P.appendChild(S),_.r("web_watch_theater_chat")||P.appendChild(h),b||P.appendChild(S),P.appendChild(X),P.appendChild(n)):(b&&_.l4(S,P),_.l4(K,P),_.r("web_watch_theater_chat")||_.l4(h,P),b||_.l4(S,P),_.l4(X,P),u&&(F&&_.l4(F,u),_.l4(n,u)));_.r("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.r("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.r("web_watch_theater_chat")){var b=_.$x(this.hostElement).querySelector("#chat-container"),h=this.theater&&!this.fullscreen||_.r("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&h?_.r("web_watch_theater_chat_beside_player")?(h=_.$x(this.hostElement).querySelector("#panels-full-bleed-container"),(b==null?void 0:b.parentElement)!==h&&h.append(b),this.panelsBesidePlayer=!0):_.r("web_watch_theater_fixed_chat")&&
(h=_.$x(this.hostElement).querySelector("#columns"),(b==null?void 0:b.parentElement)!==h&&h.append(b),this.fixedPanels=!0):(_.r("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.r("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),h=_.$x(this.hostElement).querySelector("#playlist"),b&&h?_.qM(b,h):_.vX(new _.Gn("Missing element when updating chat location",{"chatContainer defined":!!b,"playlist defined":!!h})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(b,h){return _.r("sw_metadata_vis_toggle_ks")?!0:!!b||!!h},
computeForceDarkPanelTheme:function(b){return _.r("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&b:!1},
safeUpdateStyles:function(b){try{_.nZ(this.hostElement,b)}catch(h){_.vX(h)}},
videoHeightToWidthRatioChanged_:function(b,h){h&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.r("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(b){this.videoHeightToWidthRatio_=1/b},
computeIsVerticalVideo_:function(b){return b>=1},
computeIsFourThreeToSixteenNineVideo_:function(b){return b<=.7501&&b>=.5624},
computeIsExtraWideVideo_:function(b){return b<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.hB(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.hB(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.Kf2(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(b){var h=_.Wd(b)||0;_.Bd(b,h+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var b=_.Wd("yt-fullerscreen-edu-button-click-count")||0,h=_.Wd("yt-fullerscreen-edu-button-shown-count")||0,y=_.tj("external_fullscreen_button_shown_threshold"),S=b>=_.tj("external_fullscreen_button_click_threshold")||h>=y;_.hB(this).getPlayerPromise().then(function(F){F.updateFullerscreenEduButtonSubtleModeState(S)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(b,h){return h},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.H9().resolve(_.Rz).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var b=this;this.panelMaxHeightUpdateJob_&&_.xP.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.xP.addLowPriorityJob(function(){b.panelMaxHeightUpdateJob_=0;var h;!b.isTwoColumns_||b.theater||b.fullscreen?h=460:h=b.calculateNormalPlayerSize_().height;var y=h+"px";_.r("live_chat_taller_height")&&!b.theater&&(y="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.r("live_chat_medium_height")&&
!b.theater&&(y="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.r("live_chat_scaled_height")&&!b.theater&&(y="calc(100vh - var(--ytd-toolbar-height) - 238px)");b.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":h+"px","--ytd-watch-flexy-chat-max-height":y,"--ytd-watch-flexy-structured-description-max-height":h+"px","--ytd-watch-flexy-comments-panel-max-height":h+"px","--ytd-comments-engagement-panel-content-height":h+"px"})})},
onYtShowEngagementPanelScrimAction_:function(b){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",b)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.jx(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(b){var h=_.$x(this.hostElement).querySelector("#engagement-panel-scrim");b?h.addEventListener("tap",_.Hl(this,this.onEngagementPanelScrimClick_)):h.removeEventListener("tap",_.Hl(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(b){if(this.hostElement.contains(b)&&!this.scrollToAnimation_.isAnimating()){var h=b.offsetTop-24;b=b.offsetTop+b.offsetHeight+24;var y=this.getPageScrollingElement(),S=this.getScrollTop(),F=S+y.clientHeight-56;if(h<S+56)h-=56;else if(b>F)h=b-y.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,h),500)}},
onYtSignalActionScrollToComments:function(){var b=this.hostElement.querySelector("#comments");if(b&&!this.scrollToAnimation_.isAnimating()){b=b.offsetTop-56-24;if(_.r("kevlar_comment_teaser_scroll_to_midpoint")&&(b-=_.sS().height/3,b<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,b),500)}},
onYtEngagementPanelVisibleChanged:function(b,h,y){this.active&&this.trackEngagementPanelVisibility&&!_.b9$.includes(y)&&(h==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(y),h!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&h!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(y),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(b){return b?"":"watch-active-metadata"},
computeNewMetadataClass:function(b){return b?"watch-active-metadata":""},
computeFullBleedPlayer:function(b,h){return b||h},
computeDefaultLayout:function(b){return!b},
computeDefaultTwoColumnLayout:function(b,h){return!b&&h},
computeWatchWhilePanelsActive:function(b,h){return b||h},
computeNoBorderOnChat:function(b){return _.r("web_watch_theater_chat_no_border")&&b},
computeLiveChatPresentAndExpanded:function(b,h){return b&&!h},
computePanelExpanded:function(b,h,y){return b||h||y},
onChangeMarkersVisibility:function(b){_.hB(this).getPlayerPromise().then(function(h){var y;(y=h.changeMarkerVisibility)==null||y.call(h,_.c(b,_.ET).isVisible||!1,_.c(b,_.ET).entityKeys||[],_.c(b,_.ET).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(b){this.liveChatCollapsed=b.detail;_.hP().dispatch(_.vSc(b.detail))},
provideRenderingData:function(b,h){switch(b){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=h;break;case "PRIMARY_INFO":_.r("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=h);this.videoPrimaryInfoRendererValue=h==null?void 0:h.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.r("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=h);this.videoSecondaryInfoRendererValue=h==null?void 0:h.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
h;break;case "CLARIFICATION":this.clarifyBoxValue=h;break;case "LIVE_CHAT":this.conversationBar=h;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=h;break;case "PLAYLIST":this.externalPlaylistData_=h!=null?h:{};break;case "MERCH_SHELF":this.merchShelfValue=h==null?void 0:h.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=h;break;case "OFFER_MODULE":this.offerModule=h;break;case "LIMITED_STATE":this.limitedStateValue=h;break;case "DONATION_SHELF":this.donation=h;break;
case "ALERTS":this.alertsValue=h;break;case "COMMENTS":this.comments=h;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=h;break;case "ENGAGEMENT_PANELS":this.engagementPanels=h;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=h;break;case "RICH_GRID_RENDERER":this.richGridRendererData=h;break;case "EXPANDABLE_METADATA":this.expandableMetadata=h;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=h}},
toggleCinematicsActive:function(b){this.cinematicsActive=b},
isMiniplayerActive:function(){return _.H9().resolve(_.Vp).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(b){return p2D.map(function(h){return b.find(function(y){var S;return(y==null?void 0:(S=y.engagementPanelSectionListRenderer)==null?void 0:S.targetId)===h})}).filter(function(h){return h!==void 0})},
getNonLearningJourneyEngagementPanels:function(b){return b.filter(function(h){var y;return!p2D.includes((h==null?void 0:(y=h.engagementPanelSectionListRenderer)==null?void 0:y.targetId)||"")})}}];var J4f;var vc=function(){var b=_.g.apply(this,arguments)||this;b.flexy=!0;b.learningJourney=!0;b.viewTransitionEnabled=_.r("enable_player_resize_transition");b.smallerChatMinHeight=_.r("live_chat_smaller_min_height");b.isDarkTheme=document.documentElement.hasAttribute("dark");b.theaterLargerPlayer=_.r("web_watch_theater_larger_player");b.defaultCollapsePlaylist=_.r("web_watch_default_collapse_playlist");b.enableCanvasLayout=_.r("web_enable_canvas_on_learning_journey");return b};
_.z(vc,_.g);_.d=vc.prototype;_.d.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.d.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.d.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.d.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.d.ready=function(){var b=this,h=function(){b.onColumnScroll()};
this.primary.addEventListener("scroll",h);this.secondary.addEventListener("scroll",h)};
_.d.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.d.updateIsTwoColumnsFromBinding=function(b){_.r("web_watch_update_narrow_width_killswitch")||_.hP().dispatch(_.v2R(!b.detail.value));this.ytdWatchBehavior.isTwoColumns_=b.detail.value};
_.d.updateFlexySmallWindowFromBinding=function(b){this.ytdWatchBehavior.flexySmallWindow_=b.detail.value};
_.d.updateFlexyLargeWindowFromBinding=function(b){this.ytdWatchBehavior.flexyLargeWindow_=b.detail.value};
_.d.updateWatchWhileWindowSizeSufficientFromBinding=function(b){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=b.detail.value};
_.d.updateWatchNextCanShowMoreFromBinding=function(b){this.ytdWatchBehavior.watchNextCanShowMore=b.detail.value};
_.d.updateShownItemsFromBinding=function(b){b.detail.path?this.set(b.detail.path,b.detail.value):this.ytdWatchBehavior.watchNextShownItems=b.detail.value};
_.d.getElement=function(b){switch(b){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23878_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23878_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.tm.Object.defineProperties(vc.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 b;if((b=this.data)==null||!b.pageVisualEffects)return!1;for(var h=0;h<this.data.pageVisualEffects.length;h++)if(b=_.c(this.data.pageVisualEffects[h],_.bv))return h=void 0,(h=b.config)==null?void 0:h.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.learningJourneyEngagementPanels)==null?void 0:b.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var b,h=(b=this.learningJourneyEngagementPanels)==null?void 0:b.find(function(N){var t;return(N==null?void 0:(t=N.engagementPanelSectionListRenderer)==null?void 0:t.panelIdentifier)==="learning-journey-engagement-panel"});
if(h){var y,S,F,a,P,K,n,X,u;if(b=(X=((n=(P=((a=h==null?void 0:(y=h.engagementPanelSectionListRenderer)==null?void 0:(S=y.content)==null?void 0:(F=S.sectionListRenderer)==null?void 0:F.contents)!=null?a:[])[0])==null?void 0:(K=P.itemSectionRenderer)==null?void 0:K.contents)!=null?n:[])[0])==null?void 0:(u=X.accordionViewModel)==null?void 0:u.onTitleTap){var O=_.YS(b);if(O)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.nt.instance.resolveCommand(O)}}}}}}});
_.tm.Object.defineProperties(vc,{template:{configurable:!0,enumerable:!0,get:function(){if(J4f===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);J4f=b}b=J4f;return b}}});
vc.prototype.updateMiniplayerIsActiveValue=vc.prototype.updateMiniplayerIsActiveValue;vc.prototype.updateScrollTopValue=vc.prototype.updateScrollTopValue;vc.prototype.updateFullscreenValue=vc.prototype.updateFullscreenValue;vc.prototype.updateTheaterValue=vc.prototype.updateTheaterValue;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],vc.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],vc.prototype,"ytComponentBehavior",void 0);
_.V([_.B(UGR.YtdLearningJourneyWatchBehavior),_.f("design:type",Object)],vc.prototype,"ytdWatchBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],vc.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],vc.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],vc.prototype,"playerData",void 0);_.V([_.C(),_.f("design:type",Object)],vc.prototype,"browseData",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],vc.prototype,"flexy",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],vc.prototype,"learningJourney",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],vc.prototype,"viewTransitionEnabled",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],vc.prototype,"smallerChatMinHeight",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],vc.prototype,"isDarkTheme",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],vc.prototype,"theaterLargerPlayer",void 0);_.V([_.C(),_.f("design:type",Object)],vc.prototype,"defaultCollapsePlaylist",void 0);_.V([_.C(),_.f("design:type",Object)],vc.prototype,"enableCanvasLayout",void 0);_.V([_.C({reflectToAttribute:!0}),_.W("playerData","browseData","enableCanvasLayout"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],vc.prototype,"showBrowseResponse",null);
_.V([_.C({reflectToAttribute:!0}),_.W("playerData","enableCanvasLayout"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],vc.prototype,"showWatchResponse",null);_.V([_.C({selector:_.J4}),_.f("design:type",Object)],vc.prototype,"theaterValue",void 0);_.V([_.C({selector:_.es}),_.f("design:type",Object)],vc.prototype,"fullscreenValue",void 0);_.V([_.C({selector:_.AI}),_.f("design:type",Object)],vc.prototype,"scrollTopValue",void 0);
_.V([_.C({selector:_.Ci}),_.f("design:type",Object)],vc.prototype,"miniplayerIsActiveValue",void 0);_.V([_.to("#ytd-plj-player"),_.f("design:type",HTMLElement)],vc.prototype,"ytdPlayer",void 0);_.V([_.to("#playlist"),_.f("design:type",HTMLElement)],vc.prototype,"JSC$23878_ytdPlaylistPanelRenderer",void 0);_.V([_.Pn("ytd-comments"),_.f("design:type",HTMLElement)],vc.prototype,"ytdComments",void 0);_.V([_.to("#primary"),_.f("design:type",HTMLElement)],vc.prototype,"primary",void 0);
_.V([_.to("#secondary"),_.f("design:type",HTMLElement)],vc.prototype,"secondary",void 0);_.V([_.to("#player-container"),_.f("design:type",HTMLElement)],vc.prototype,"playerContainer",void 0);_.V([_.to("#cinematics"),_.f("design:type",HTMLElement)],vc.prototype,"JSC$23878_cinematics",void 0);_.V([_.OB("theaterValue"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],vc.prototype,"updateTheaterValue",null);
_.V([_.OB("fullscreenValue"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],vc.prototype,"updateFullscreenValue",null);_.V([_.OB("scrollTopValue"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],vc.prototype,"updateScrollTopValue",null);_.V([_.OB("miniplayerIsActiveValue"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],vc.prototype,"updateMiniplayerIsActiveValue",null);
_.V([_.C({reflectToAttribute:!0}),_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],vc.prototype,"cinematicLightTheme",null);_.V([_.C({reflectToAttribute:!0}),_.W("learningJourneyEngagementPanels"),_.f("design:type",Object),_.f("design:paramtypes",[])],vc.prototype,"hasLearningJourneyPanels",null);_.V([_.W("learningJourneyEngagementPanels"),_.f("design:type",Object),_.f("design:paramtypes",[])],vc.prototype,"backButtonData",null);_.V([_.Yx({is:"ytd-watch-learning-journey"})],vc);_.N1.registerService(_.dsN,vc);
_.mn();
}catch(e){_._DumpException(e)}
try{
_.QY("Tm0L3c");
var NS2;var ts2;var r4$=function(){return _.g.apply(this,arguments)||this};
_.z(r4$,_.g);_.V([_.Yx({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],r4$);
_.k(r4$,"ytd-ghost-comments-renderer",function(){if(ts2===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);ts2=b}b=ts2;return b},{mode:1});var c4P;var Rz_=function(){return _.g.apply(this,arguments)||this};
_.z(Rz_,_.g);_.V([_.Yx({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],Rz_);
_.k(Rz_,"ytd-ghost-watch-metadata-renderer",function(){if(c4P===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);c4P=b}b=c4P;return b},{mode:1});var mU=function(){var b=_.g.apply(this,arguments)||this;b.ghostGridRenderer={rows:6};b.smallerChatMinHeight=_.r("live_chat_smaller_min_height");b.darkerPanels=_.r("web_watch_darker_panels");b.isDarkTheme=document.documentElement.hasAttribute("dark");return b};
_.z(mU,_.g);_.d=mU.prototype;_.d.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.d.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.d.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.d.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.d.ready=function(){var b=this,h=function(){b.onColumnScroll()};
this.primary.addEventListener("scroll",h);this.secondary.addEventListener("scroll",h)};
_.d.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.d.updateIsTwoColumnsFromBinding=function(b){this.ytdWatchBehavior.isTwoColumns_=b.detail.value};
_.d.updateFlexySmallWindowFromBinding=function(b){this.ytdWatchBehavior.flexySmallWindow_=b.detail.value};
_.d.updateFlexyLargeWindowFromBinding=function(b){this.ytdWatchBehavior.flexyLargeWindow_=b.detail.value};
_.d.updateWatchWhileWindowSizeSufficientFromBinding=function(b){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=b.detail.value};
_.d.updateWatchNextCanShowMoreFromBinding=function(b){this.ytdWatchBehavior.watchNextCanShowMore=b.detail.value};
_.d.updateShownItemsFromBinding=function(b){_.r("swatcheroo_direct_use_rich_grid")||(b.detail.path?this.set(b.detail.path,b.detail.value):this.ytdWatchBehavior.watchNextShownItems=b.detail.value)};
_.d.getElement=function(b){switch(b){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23866_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23866_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.tm.Object.defineProperties(mU.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var b;if((b=this.data)==null||!b.pageVisualEffects)return!1;for(var h=0;h<this.data.pageVisualEffects.length;h++)if(b=_.c(this.data.pageVisualEffects[h],_.bv))return h=void 0,(h=b.config)==null?void 0:h.enableInLightTheme;return!1}}});
mU.prototype.updateMiniplayerIsActiveValue=mU.prototype.updateMiniplayerIsActiveValue;mU.prototype.updateScrollTopValue=mU.prototype.updateScrollTopValue;mU.prototype.updateFullscreenValue=mU.prototype.updateFullscreenValue;mU.prototype.updateTheaterValue=mU.prototype.updateTheaterValue;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],mU.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],mU.prototype,"ytComponentBehavior",void 0);
_.V([_.B(_.uv2.YtdWatchBehavior),_.f("design:type",Object)],mU.prototype,"ytdWatchBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],mU.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],mU.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],mU.prototype,"ghostGridRenderer",void 0);_.V([_.C(),_.f("design:type",Object)],mU.prototype,"playerData",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],mU.prototype,"smallerChatMinHeight",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],mU.prototype,"darkerPanels",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],mU.prototype,"isDarkTheme",void 0);_.V([_.C({selector:_.J4}),_.f("design:type",Object)],mU.prototype,"theaterValue",void 0);_.V([_.C({selector:_.es}),_.f("design:type",Object)],mU.prototype,"fullscreenValue",void 0);_.V([_.C({selector:_.AI}),_.f("design:type",Object)],mU.prototype,"scrollTopValue",void 0);
_.V([_.C({selector:_.Ci}),_.f("design:type",Object)],mU.prototype,"miniplayerIsActiveValue",void 0);_.V([_.to("#ytd-player"),_.f("design:type",HTMLElement)],mU.prototype,"ytdPlayer",void 0);_.V([_.to("#playlist"),_.f("design:type",HTMLElement)],mU.prototype,"JSC$23866_ytdPlaylistPanelRenderer",void 0);_.V([_.to("#ytd-comments"),_.f("design:type",HTMLElement)],mU.prototype,"ytdComments",void 0);_.V([_.to("#primary"),_.f("design:type",HTMLElement)],mU.prototype,"primary",void 0);
_.V([_.to("#secondary"),_.f("design:type",HTMLElement)],mU.prototype,"secondary",void 0);_.V([_.to("#player-container"),_.f("design:type",HTMLElement)],mU.prototype,"playerContainer",void 0);_.V([_.to("#cinematics"),_.f("design:type",HTMLElement)],mU.prototype,"JSC$23866_cinematics",void 0);_.V([_.OB("theaterValue"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],mU.prototype,"updateTheaterValue",null);
_.V([_.OB("fullscreenValue"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],mU.prototype,"updateFullscreenValue",null);_.V([_.OB("scrollTopValue"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],mU.prototype,"updateScrollTopValue",null);_.V([_.OB("miniplayerIsActiveValue"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],mU.prototype,"updateMiniplayerIsActiveValue",null);
_.V([_.C({reflectToAttribute:!0}),_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],mU.prototype,"cinematicLightTheme",null);
_.k(mU,"ytd-watch-grid",function(){if(NS2===void 0){var b=document.createElement("template");_.D(b,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-grid--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-grid"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-grid"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-grid"></div>\n\n<div id="player-full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-grid">\n  </div>\n  <div id="squeezeback-constraining-container" hidden="[[!squeezeback]]" class="style-scope ytd-watch-grid"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-grid"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="primary" class="style-scope ytd-watch-grid">\n    <div id="primary-inner" class="style-scope ytd-watch-grid">\n      <div id="player" class="style-scope ytd-watch-grid">\n        <div id="cinematics-container" class="style-scope ytd-watch-grid">\n          <div id="cinematics" class="style-scope ytd-watch-grid"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-grid">\n          <div id="player-container-inner" class="style-scope ytd-watch-grid">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-grid">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-grid">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-grid">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-grid">\n        <div id="fixed-below" class="style-scope ytd-watch-grid"></div>\n        <div id="bottom-grid" class="style-scope ytd-watch-grid">\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" hide-offer-modules="[[hideOfferModules]]" is-two-columns="[[isTwoColumns_]]" is-watch-next-grid="" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-grid">\n          </ytd-watch-next-secondary-results-renderer>\n          <ytd-ghost-grid-renderer data="[[ghostGridRenderer]]" hidden="[[data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" is-watch-next="" rich-item-min-width="[[richItemMinWidth]]" class="style-scope ytd-watch-grid"></ytd-ghost-grid-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="secondary" class="style-scope ytd-watch-grid">\n    <div id="fixed-secondary" class="style-scope ytd-watch-grid">\n      <div id="panels" class="style-scope ytd-watch-grid">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-engagement-panels>\n      </div>\n      <div id="chat-container" class="style-scope ytd-watch-grid">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-grid">\n          <ytd-live-chat-frame id="chat" data="[[conversationBar]]" class="style-scope ytd-watch-grid">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n    </div>\n    <div id="secondary-inner" class="style-scope ytd-watch-grid">\n        <ytd-watch-metadata clarify-box="[[clarifyBox]]" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" hidden="[[!videoPrimaryInfoRenderer]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" player-ads="[[playerAds]]" playlist="[[playlist]]" skinny-mode="[[metadataSkinnyMode]]" swatcheroo-enable-double-metadata="[[swatcherooUseDoubleMetadata]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-metadata>\n        <ytd-ghost-watch-metadata-renderer hidden="[[hasMetadata]]" class="style-scope ytd-watch-grid"></ytd-ghost-watch-metadata-renderer>\n        <div id="inline-panels" class="style-scope ytd-watch-grid"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-grid"></div>\n        <div id="alerts" class="style-scope ytd-watch-grid"></div>\n        <div id="messages" class="style-scope ytd-watch-grid"></div>\n        <div id="related" class="style-scope ytd-watch-grid">\n          <div id="player-ads" class="style-scope ytd-watch-grid"></div>\n          <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n        </div>\n        <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[!playlistPanelExpanded]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" meta-panel="[[swatcherooSplitScroll]]" class="style-scope ytd-watch-grid">\n        </ytd-playlist-panel-renderer>\n        <div id="expandable-metadata" hidden="[[!expandableMetadata]]" class="style-scope ytd-watch-grid"></div>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-grid" hidden="">\n          <div id="info" class="style-scope ytd-watch-grid">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-grid">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n        </div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-grid"></div>\n      <div id="offer-module" class="style-scope ytd-watch-grid"></div>\n      <div id="donation-shelf" class="style-scope ytd-watch-grid"></div>\n      <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-grid"></div>\n      \n      <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-grid">\n        <ytd-merch-shelf-renderer data="[[merchShelf]]" meta-panel="[[swatcherooSplitScroll]]" skinny-mode="[[isTwoColumns_]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid">\n        </ytd-merch-shelf-renderer>\n      </template>\n      <ytd-ghost-comments-renderer hidden="[[comments]]" class="style-scope ytd-watch-grid"></ytd-ghost-comments-renderer>\n      <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat, commentsEntryPointHeaderRenderer)]]" hide-panel-button="[[!defaultTwoColumnLayout]]" is-watch-grid="" class="style-scope ytd-watch-grid">\n      </ytd-comments>\n    </div>\n  </div>\n</div>\n<div id="fixed-columns-secondary" hidden="[[!swatcherooSplitScroll]]" class="style-scope ytd-watch-grid"> </div>\n\n<div id="survey" class="style-scope ytd-watch-grid"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-grid"></div>\n');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);NS2=b}b=NS2;return b},{mode:2});_.N1.registerService(_.a2U,mU);
_.mn();
}catch(e){_._DumpException(e)}
try{
_.QY("CF909");
var O9D;var Q3=function(){var b=_.g.apply(this,arguments)||this;b.viewTransitionEnabled=_.r("enable_player_resize_transition");b.smallerChatMinHeight=_.r("live_chat_smaller_min_height");b.isDarkTheme=document.documentElement.hasAttribute("dark");b.defaultCollapsePlaylist=_.r("web_watch_default_collapse_playlist");b.respectAspectRatio=_.r("web_enable_aspect_ratio_fix");b.retroModeReduxValue=!1;b.persistentPanelVisibleValue=!1;return b};
_.z(Q3,_.g);_.d=Q3.prototype;_.d.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.d.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.d.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.d.updateRetroModeReduxValue=function(){_.r("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.d.updatePersistentPanelVisibleValue=function(){_.r("enable_ai_companion")&&(this.ytdWatchBehavior.persistentPanelVisible=this.persistentPanelVisibleValue)};
_.d.ready=function(){var b=this,h=function(){b.onColumnScroll()};
this.primary.addEventListener("scroll",h);this.secondary.addEventListener("scroll",h)};
_.d.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.d.updateIsTwoColumnsFromBinding=function(b){_.r("web_watch_update_narrow_width_killswitch")||_.hP().dispatch(_.v2R(!b.detail.value));this.ytdWatchBehavior.isTwoColumns_=b.detail.value};
_.d.updateFlexySmallWindowFromBinding=function(b){this.ytdWatchBehavior.flexySmallWindow_=b.detail.value};
_.d.updateFlexyLargeWindowFromBinding=function(b){this.ytdWatchBehavior.flexyLargeWindow_=b.detail.value};
_.d.updateWatchWhileWindowSizeSufficientFromBinding=function(b){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=b.detail.value};
_.d.updateWatchNextCanShowMoreFromBinding=function(b){this.ytdWatchBehavior.watchNextCanShowMore=b.detail.value};
_.d.updateShownItemsFromBinding=function(b){b.detail.path?this.set(b.detail.path,b.detail.value):this.ytdWatchBehavior.watchNextShownItems=b.detail.value};
_.d.getElement=function(b){switch(b){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23861_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23861_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}};
_.tm.Object.defineProperties(Q3.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var b;if((b=this.data)==null||!b.pageVisualEffects)return!1;for(var h=0;h<this.data.pageVisualEffects.length;h++)if(b=_.c(this.data.pageVisualEffects[h],_.bv))return h=void 0,(h=b.config)==null?void 0:h.enableInLightTheme;return!1}}});
_.tm.Object.defineProperties(Q3,{template:{configurable:!0,enumerable:!0,get:function(){if(O9D===void 0){var b=document.createElement("template");_.D(b,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="shopping-timely-shelf" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy" hidden$="[[!showGhostMetadata]]">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy" hidden$="[[!showGhostRelated]]"></div>\n      </div>\n      <div id="persistent-panel-container" class="style-scope ytd-watch-flexy"></div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);O9D=b}b=O9D;return b}}});
Q3.prototype.updatePersistentPanelVisibleValue=Q3.prototype.updatePersistentPanelVisibleValue;Q3.prototype.updateRetroModeReduxValue=Q3.prototype.updateRetroModeReduxValue;Q3.prototype.updateScrollTopValue=Q3.prototype.updateScrollTopValue;Q3.prototype.updateFullscreenValue=Q3.prototype.updateFullscreenValue;Q3.prototype.updateTheaterValue=Q3.prototype.updateTheaterValue;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Q3.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],Q3.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.uv2.YtdWatchBehavior),_.f("design:type",Object)],Q3.prototype,"ytdWatchBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],Q3.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Q3.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],Q3.prototype,"playerData",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Q3.prototype,"viewTransitionEnabled",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Q3.prototype,"smallerChatMinHeight",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Q3.prototype,"isDarkTheme",void 0);_.V([_.C(),_.f("design:type",Object)],Q3.prototype,"defaultCollapsePlaylist",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Q3.prototype,"respectAspectRatio",void 0);
_.V([_.C({selector:_.J4}),_.f("design:type",Object)],Q3.prototype,"theaterValue",void 0);_.V([_.C({selector:_.es}),_.f("design:type",Object)],Q3.prototype,"fullscreenValue",void 0);_.V([_.C({selector:_.AI}),_.f("design:type",Object)],Q3.prototype,"scrollTopValue",void 0);_.V([_.C({selector:_.Ci}),_.f("design:type",Object)],Q3.prototype,"miniplayerIsActive",void 0);_.V([_.C({selector:function(b){return b.watch.isWatchRetroMode}}),
_.f("design:type",Object)],Q3.prototype,"retroModeReduxValue",void 0);_.V([_.C({selector:_.iM.persistentPanelVisibleSelector}),_.f("design:type",Object)],Q3.prototype,"persistentPanelVisibleValue",void 0);_.V([_.Pn("ytd-player"),_.f("design:type",HTMLElement)],Q3.prototype,"ytdPlayer",void 0);_.V([_.to("#playlist"),_.f("design:type",HTMLElement)],Q3.prototype,"JSC$23861_ytdPlaylistPanelRenderer",void 0);_.V([_.Pn("ytd-comments"),_.f("design:type",HTMLElement)],Q3.prototype,"ytdComments",void 0);
_.V([_.to("#primary"),_.f("design:type",HTMLElement)],Q3.prototype,"primary",void 0);_.V([_.to("#secondary"),_.f("design:type",HTMLElement)],Q3.prototype,"secondary",void 0);_.V([_.to("#player-container"),_.f("design:type",HTMLElement)],Q3.prototype,"playerContainer",void 0);_.V([_.to("#below"),_.f("design:type",HTMLElement)],Q3.prototype,"below",void 0);_.V([_.to("#cinematics"),_.f("design:type",HTMLElement)],Q3.prototype,"JSC$23861_cinematics",void 0);
_.V([_.to("#persistent-panel-container"),_.f("design:type",HTMLElement)],Q3.prototype,"persistentPanelContainer",void 0);_.V([_.OB("theaterValue"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Q3.prototype,"updateTheaterValue",null);_.V([_.OB("fullscreenValue"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Q3.prototype,"updateFullscreenValue",null);
_.V([_.OB("scrollTopValue"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Q3.prototype,"updateScrollTopValue",null);_.V([_.OB("retroModeReduxValue"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Q3.prototype,"updateRetroModeReduxValue",null);_.V([_.OB("persistentPanelVisibleValue"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Q3.prototype,"updatePersistentPanelVisibleValue",null);
_.V([_.C({reflectToAttribute:!0}),_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],Q3.prototype,"cinematicLightTheme",null);_.V([_.Yx({is:"ytd-watch-flexy"})],Q3);_.N1.registerService(_.FUN,Q3);
_.mn();
}catch(e){_._DumpException(e)}
try{
_.QY("nmfa2d");
var UJ9;var km=function(){var b=_.g.apply(this,arguments)||this;b.hidden=!1;b.errorScreen=null;b.playlistData={};return b};
_.z(km,_.g);_.d=km.prototype;_.d.getPlayer=function(){return this.ytdPlayer};
_.d.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:_.qH(["aa","eocs"])}}};
_.d.onActiveChanged=function(){_.hP().dispatch(_.$Jx(this.ytPageBehavior.active))};
_.d.playerDataChanged=function(){var b;(b=this.watchController)==null||b.setPlayerResponse(this.playerData)};
_.d.dataChanged=function(){var b;(b=this.watchController)==null||b.setWatchNextResponse(this.data)};
_.d.sizeChanged=function(){var b,h;(h=(b=this.metadata).resize)==null||h.call(b)};
_.d.attached=function(){this.watchController=new _.T8(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.d.detached=function(){_.nq(this.watchController);this.watchController=void 0};
_.d.getPlayerContainer=function(){return this.playerContainer};
_.d.getElement=function(b){switch(b){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.d.provideRenderingData=function(b,h){switch(b){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=h;break;case "ERROR_SCREEN":this.errorScreen=h!=null?h:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=h;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=h;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=h;break;case "RICH_METADATA":this.richMetadataRowContainer=h;break;case "CLARIFICATION":this.clarificationData=h;break;case "PLAYLIST":this.playlistData=
h!=null?h:{};break;case "MERCH_SHELF":this.merchShelf=h;break;case "TICKET_SHELF":this.ticketShelf=h;break;case "LIMITED_STATE":this.limitedState=h;break;case "DONATION_SHELF":this.donationShelf=h;break;case "ALERTS":this.alerts=h}};
_.tm.Object.defineProperties(km.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var b,h,y;return!this.hidden&&!!((b=this.data)==null?0:(h=b.contents)==null?0:(y=h.twoColumnWatchNextResults)==null?0:y.conversationBar)}}});
km.prototype.sizeChanged=km.prototype.sizeChanged;km.prototype.dataChanged=km.prototype.dataChanged;km.prototype.playerDataChanged=km.prototype.playerDataChanged;km.prototype.onActiveChanged=km.prototype.onActiveChanged;_.V([_.B(_.So.YtPageBehavior),_.f("design:type",Object)],km.prototype,"ytPageBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],km.prototype,"ytComponentBehavior",void 0);
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],km.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],km.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],km.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],km.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],km.prototype,"playerData",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],km.prototype,"hidden",void 0);_.V([_.to("#ytd-player"),_.f("design:type",HTMLElement)],km.prototype,"ytdPlayer",void 0);_.V([_.to("#player-container"),_.f("design:type",HTMLElement)],km.prototype,"playerContainer",void 0);_.V([_.to("#metadata"),_.f("design:type",Object)],km.prototype,"metadata",void 0);_.V([_.to("#playlist"),_.f("design:type",HTMLElement)],km.prototype,"playlistPanel",void 0);
_.V([_.C({selector:_.qvR,reflectToAttribute:!0}),_.f("design:type",Object)],km.prototype,"fixie",void 0);_.V([_.C({selector:_.i_k,reflectToAttribute:!0}),_.f("design:type",Object)],km.prototype,"singleColumn",void 0);_.V([_.C({selector:function(b){return _.J4(b)&&!_.es(b)},
reflectToAttribute:!0}),_.f("design:type",Object)],km.prototype,"theater",void 0);_.V([_.C({selector:_.es,reflectToAttribute:!0}),_.f("design:type",Object)],km.prototype,"fullscreen",void 0);_.V([_.C({selector:_.dJP}),_.f("design:type",Object)],km.prototype,"windowSize",void 0);_.V([_.C(),_.f("design:type",Object)],km.prototype,"singleColumnContents",void 0);_.V([_.C(),_.f("design:type",Object)],km.prototype,"errorScreen",void 0);_.V([_.C(),_.f("design:type",Object)],km.prototype,"playlistData",void 0);
_.V([_.C(),_.f("design:type",Object)],km.prototype,"videoPrimaryInfoRenderer",void 0);_.V([_.C(),_.f("design:type",Object)],km.prototype,"videoSecondaryInfoRenderer",void 0);_.V([_.C(),_.f("design:type",Object)],km.prototype,"richMetadataRowContainer",void 0);_.V([_.C(),_.f("design:type",Object)],km.prototype,"clarificationData",void 0);_.V([_.C(),_.f("design:type",Object)],km.prototype,"commentsEntryPointHeaderRenderer",void 0);_.V([_.C(),_.f("design:type",Object)],km.prototype,"ticketShelf",void 0);
_.V([_.C(),_.f("design:type",Object)],km.prototype,"merchShelf",void 0);_.V([_.C(),_.f("design:type",Object)],km.prototype,"donationShelf",void 0);_.V([_.C(),_.f("design:type",Object)],km.prototype,"limitedState",void 0);_.V([_.C(),_.f("design:type",Object)],km.prototype,"alerts",void 0);_.V([_.W("playlistData"),_.f("design:type",Object),_.f("design:paramtypes",[])],km.prototype,"hasPlaylistData",null);
_.V([_.W("data","hidden"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],km.prototype,"hasChat",null);_.V([_.OB("active"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],km.prototype,"onActiveChanged",null);_.V([_.OB("playerData"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],km.prototype,"playerDataChanged",null);
_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],km.prototype,"dataChanged",null);_.V([_.OB("windowSize","singleColumn"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],km.prototype,"sizeChanged",null);
_.k(km,"ytd-watch-fixie",function(){if(UJ9===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);UJ9=b}b=UJ9;return b},{mode:1});_.N1.registerService(_.STI,km);
_.mn();
}catch(e){_._DumpException(e)}
try{
_.QY("xwEKAe");
var THL=function(b){b=b.command;var h=_.c(b,_.cd);return{command:b,reelPlayerOverlayRenderer:_.c(h==null?void 0:h.overlay,_.vNM),thumbnail:h==null?void 0:h.thumbnail,videoId:h.videoId}},Gn_=function(b){b=b.command;
var h=_.c(b,_.XI);return{command:b,reelNonVideoContentRenderer:_.c(h==null?void 0:h.renderer,_.uC)}},knf=function(b){return b.entries?b.entries.map(function(h){return _.c(h==null?void 0:h.command,_.cd)?THL(h):Gn_(h)}):[]},VRD=function(b){return b.prevEntries?b.prevEntries.map(function(h){return _.c(h==null?void 0:h.command,_.cd)?THL(h):Gn_(h)}):[]},E09=function(b){return _.nK(b)?b.getAttribute("jsname")==="coFSxe":!1},in_=function(b,h){h.id||(h.id="ow"+_.mM(h));
b.setAttribute("jsowner",h.id);b.__owner=h;var y=_.b5(h,E09);y&&(_.CXa.has(y)||_.CXa.set(y,[]),_.CXa.get(y).push(b));(y=_.eYP.get(h))||_.eYP.set(h,y=[]);y.includes(b)||y.push(b);h.setAttribute("__IS_OWNER",!0)},fIc=function(){var b=_.Bwq(1);
b=_.u_(b,_.ev4);if(!(_.IBy(b)||b[_.UQy]&&!b.__hasBeenSet))return b.value},w9D=function(b){return(b=_.fpY(b))?_.lpU(b):0},lIp=function(b){return b.shorts.isSmallScreenSqueezeback},qM2=function(b){return b.shorts.isPlaybackStarted},xl2=function(b){var h=_.HT();
if(h.getFlag(202))h=h.getFlag(201);else{var y;h=(b==null?void 0:(y=b.config)==null?void 0:y.settingOnByDefault)!==void 0?b.config.settingOnByDefault:!_.Ff("web_shorts_cinematics_disabled_by_default")}return h},QAP=function(b){var h=_.HT();
_.uE(0,201,b);_.uE(0,202,!0);h.save()},bzc=function(b){var h=_.Bwq(2),y=new Set;
_.m2(function(){return void y.forEach(function(S){return void S()})});
return function(S){var F=_.Hs(h);try{var a=ml9(v0L(b),S);y.add(a);return function(){a();y.delete(a)}}finally{_.Hs(F)}}},hvf=function(b){var h=b.children;
var y=b.root;_.fl(function(){var S=bzc(y)(h);_.m2(S)});
return document.createTextNode("")},ml9=function(b,h){var y=y9c(b);
(b=fIc())&&in_(y,b);_.Db.setUp();h=_.L(_.hlY(h,!0));b=h.next().value;var S=h.next().value;h=_.L(b);for(b=h.next();!b.done;b=h.next())y.appendChild(b.value);_.Db.log(y);_.Db.tearDown();return function(){S();y.remove()}},v0L=function(b){if(typeof b==="string")return b=document.querySelector(b),_.ExX(b),b;
if(_.ti(b)&&b.nodeType===Node.ELEMENT_NODE)return b;if(!b.__value&&!b.__optional){var h=_.Jer.USE_ELEMENT_NOT_ASSIGNED(b.__expectedTagName);b.__hasErrored=!0;throw h;}return b.value},y9c=function(b){var h=document.createElementNS(b.namespaceURI,b.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return b.appendChild(h)},aBA=function(b,h,y,S){if(b)return S=S||b.likeStatus,h?{style:{styleType:"STYLE_TEXT"},
toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:S==="LIKE",isDisabled:!b.likesAllowed,defaultIcon:{iconType:y},defaultText:S==="LIKE"?b.likeCountWithUnlikeText:b.likeCountText,toggledText:S==="LIKE"?b.likeCountText:b.likeCountWithLikeText,defaultNavigationEndpoint:SvM(b,"LIKE"),defaultServiceEndpoint:FBP(b,"LIKE"),toggledServiceEndpoint:FBP(b,"INDIFFERENT"),defaultTooltip:_.vi(b.likeCountTooltipText),toggledTooltip:_.vi(b.likeCountTooltipText),targetId:b.targetId}:{style:{styleType:"STYLE_TEXT"},
toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:S==="DISLIKE",isDisabled:!b.likesAllowed,defaultIcon:{iconType:y},defaultText:S==="DISLIKE"?b.dislikeCountWithUndislikeText:b.dislikeCountText,toggledText:S==="DISLIKE"?b.dislikeCountText:b.dislikeCountWithDislikeText,defaultNavigationEndpoint:SvM(b,"DISLIKE"),defaultServiceEndpoint:FBP(b,"DISLIKE"),toggledServiceEndpoint:FBP(b,"INDIFFERENT"),defaultTooltip:_.vi(b.dislikeCountTooltipText),toggledTooltip:_.vi(b.dislikeCountTooltipText)}},SvM=
function(b,h){if(h==="LIKE")return b.likeCommand;
if(h==="DISLIKE")return b.dislikeNavigationEndpoint},FBP=function(b,h){var y;
return(y=b.serviceEndpoints)==null?void 0:y.find(function(S){var F;return((F=_.c(S,_.$a))==null?void 0:F.status)===h})},dOD=function(b,h,y,S){b=h-b;
y=S-y;return Math.sqrt(b*b+y*y)},j2M=function(b){var h=b>>8&255,y=b&255;
return"#"+(b>>16&255).toString(16).padStart(2,"0")+h.toString(16).padStart(2,"0")+y.toString(16).padStart(2,"0")},$OM=function(b,h){b&&_.H9().resolve(_.OM).resolveCommand(b,{forceClickLogging:!0,
form:{element:h}})},LBP=function(){return _.H9().resolve(_.Sc).dismissedIndices},PjP=function(b,h){var y,S,F,a,P,K,n,X,u;
return _.Z(function(O){if(O.nextAddress==1){y=_.H9().resolve(_.b$);a=(S=y)==null?void 0:(F=S.reelWatchEndpointMap)==null?void 0:F.reelWatchSequence;K=(P=b.innertubeTransportService)!=null?P:_.H9().resolve(_.DT);if(!a)return O.jumpTo(2);n=a();return(X=n.JSC$14356_getRequest(h,{}))?O.yield(_.cy(K,X.innerTubeRequest,X.input,h.clickTrackingParams,X.config),4):O.jumpTo(2)}return O.nextAddress!=2?(u=O.yieldResult,O.return(u)):O.return(void 0)})},KB2=function(b,h,y){var S,F=(S=_.c(h,_.cd))==null?void 0:
S.videoId;
S=!(!F||!b.find(function(P){return P.videoId&&P.videoId===F}));
var a=!!b.find(function(P){var K;return((K=_.c(P.command,_.cd))==null?void 0:K.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"});
b=!!b.find(function(P){return!!_.c(P.command,_.XI)&&!!_.c(h,_.XI)&&P.command===h});
return y?S||b:S||a||b},Zz9=function(b,h,y){var S=[].concat(_.f$(b)),F=0,a=y?knf(y):[];
y=y?VRD(y):[];a.length&&!KB2(b,a[0].command,!0)&&S.push.apply(S,_.f$(a));h&&!KB2(S,h.command)&&S.unshift(h);h&&y.length&&!KB2(b,y[0].command)&&(_.r("web_enable_shorts_sequence_refactor_unify")?S.push.apply(S,_.f$(y.reverse())):S.unshift.apply(S,_.f$(y.reverse())),F=y.length);return{newContentList:S,indexChange:F}},oPD=function(b){var h;
(h=b.currentCinematicEffect)==null||h.clear()},MKD=function(b){return _.$8({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:b}})},nPP=function(b){return _.$8({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:b}})},XLA=function(b){return _.$8({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:b}})};var Na=function(b,h){if(b instanceof Na)this.array_=b.array_;else{var y;if(y=_.f4(b))a:{for(var S=y=0;S<b.length;S++){if(!_.f4(b[S])||y>0&&b[S].length!=y){y=!1;break a}for(var F=0;F<b[S].length;F++)if(typeof b[S][F]!=="number"){y=!1;break a}y==0&&(y=b[S].length)}y=y!=0}if(y)this.array_=_.Ej(b);else if(b instanceof _.g1)this.array_=Hzx(b.height,b.width);else if(typeof b==="number"&&typeof h==="number"&&b>0&&h>0)this.array_=Hzx(b,h);else throw Error("ep");}this.size_=new _.g1(this.array_[0].length,
this.array_.length)},ulR=function(b,h,y){for(var S=0;S<b.getSize().height;S++)for(var F=0;F<b.getSize().width;F++)h.call(y,b.array_[S][F],S,F,b)},Ozx=function(b,h){var y=new Na(b.getSize());
ulR(b,function(S,F,a){y.array_[F][a]=h.call(void 0,S,F,a,b)});
return y},Hzx=function(b,h){for(var y=[],S=0;S<b;S++){y[S]=[];
for(var F=0;F<h;F++)y[S][F]=0}return y};
Na.prototype.add=function(b){if(!_.MRc(this.size_,b.getSize()))throw Error("fp");return Ozx(this,function(h,y,S){return h+b.array_[y][S]})};
Na.prototype.equals=function(b,h){if(this.size_.width!=b.size_.width||this.size_.height!=b.size_.height)return!1;h=h||0;for(var y=0;y<this.size_.height;y++)for(var S=0;S<this.size_.width;S++)if(!_.o0x(this.array_[y][S],b.array_[y][S],h))return!1;return!0};
Na.prototype.getSize=function(){return this.size_};
var tI=function(b,h,y){return h>=0&&h<b.size_.height&&y>=0&&y<b.size_.width?b.array_[h][y]:null};
Na.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var NwD=function(b,h,y,S){if(!(h>=0&&h<b.size_.height&&y>=0&&y<b.size_.width))throw Error("gp`"+h+"`"+y+"`"+b.size_.height+"`"+b.size_.width);b.array_[h][y]=S};
Na.prototype.multiply=function(b){if(b instanceof Na){if(this.size_.width!=b.getSize().height)throw Error("hp");return tK2(this,b)}if(typeof b==="number")return r9A(this,b);throw Error("ip");};
var tK2=function(b,h){var y=new Na(b.size_.height,h.getSize().width);ulR(y,function(S,F,a){for(var P=S=0;P<this.size_.width;P++)S+=tI(this,F,P)*tI(h,P,a);NwD(y,F,a,S)},b);
return y},r9A=function(b,h){return Ozx(b,function(y){return y*h})};var c92=new _.r4("inlineSurveyRenderer");var RvM=new _.r4("interstitialViewModel");var zv$=new _.r4("reelNavigateCommand");var DO9=new _.r4("reelNonVideoContentDismissalCommand");var IB9=new _.r4("showReelsCommentsOverlayCommand");var BwR=new _.r4("videoInteractionPopUpRenderer");var WBD=new _.r4("pollChoiceData");var A9A;var UOx;var pLD;var rM=function(){var b=_.g.apply(this,arguments)||this;b.ctaVisualElement=null;b.currentCsn=null;return b};
_.z(rM,_.g);_.d=rM.prototype;_.d.onDataChanged=function(){this.maybeLogShows()};
_.d.computeButtonShape=function(){var b=this;if(this.data)return{buttonText:_.vi(this.data.text),state:"active",onTap:function(){b.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.d.maybeCreateCtaVe=function(){var b;if((b=this.data)!=null&&b.badgeInteractionLogging){var h;if(b=(h=this.data.badgeInteractionLogging)==null?void 0:h.trackingParams)this.ctaVisualElement=_.I_(b)}};
_.d.maybeLogClicks=function(){this.currentCsn=_.UE(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.lE(this.currentCsn,this.ctaVisualElement)};
_.d.maybeLogShows=function(){this.currentCsn=_.UE(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.fI(this.currentCsn,[this.ctaVisualElement])};
_.d.onTap=function(){var b;if((b=this.data)!=null&&b.onClickCommand){var h;this.ytComponentBehavior.resolveCommand((h=this.data)==null?void 0:h.onClickCommand);this.maybeLogClicks()}};
rM.prototype.onDataChanged=rM.prototype.onDataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],rM.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],rM.prototype,"ytComponentBehavior",void 0);_.V([_.C({}),_.f("design:type",Object)],rM.prototype,"data",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],rM.prototype,"onDataChanged",null);
_.V([_.Yx({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],rM);
_.k(rM,"ytd-shopping-overlay-badge-renderer",function(){if(pLD!==void 0)return pLD;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return pLD=b},{mode:1});var J9p;var cS=function(){return _.g.apply(this,arguments)||this};
_.z(cS,_.g);cS.prototype.computeShouldButtonBeVertical=function(b,h){return b||h};
cS.prototype.onYtServiceRequestSent=function(b,h){(b=_.c(h.endpoint,_.$a))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.R7("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:b.status})):this.handleLikeEndpoint(b))};
cS.prototype.computelikeStatusEntityKey=function(b){return b==null?void 0:b.likeStatusEntityKey};
cS.prototype.handleLikeEndpoint=function(b){b.status==="LIKE"?this.JSC$23044_ytdDislikeToggleButtonRenderer.toggle(!1):b.status==="DISLIKE"?this.JSC$23044_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$23044_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$23044_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.tm.Object.defineProperties(cS.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var b;return aBA(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(b=this.likeStatusEntity)==null?void 0:b.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var b;if(this.data&&((b=this.data)==null||!b.hideDislikeButton)){var h;return aBA(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(h=this.likeStatusEntity)==null?void 0:h.likeStatus)}}}});
cS.prototype.onYtServiceRequestSent=cS.prototype.onYtServiceRequestSent;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],cS.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],cS.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],cS.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],cS.prototype,"vertical",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",String)],cS.prototype,"textTransform",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],cS.prototype,"useShortsIcon",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],cS.prototype,"underIconLabel",void 0);_.V([_.C({value:"left"}),_.f("design:type",String)],cS.prototype,"buttonTooltipPosition",void 0);_.V([_.C(),_.f("design:type",Object)],cS.prototype,"overrides",void 0);
_.V([_.to("#like-button"),_.f("design:type",Object)],cS.prototype,"JSC$23044_ytdLikeToggleButtonRenderer",void 0);_.V([_.to("#dislike-button"),_.f("design:type",Object)],cS.prototype,"JSC$23044_ytdDislikeToggleButtonRenderer",void 0);_.V([_.W("data","likeStatusEntity.likeStatus","useShortsIcon"),_.f("design:type",Object),_.f("design:paramtypes",[])],cS.prototype,"likeButton",null);
_.V([_.W("data","likeStatusEntity.likeStatus","useShortsIcon"),_.f("design:type",Object),_.f("design:paramtypes",[])],cS.prototype,"dislikeButton",null);_.V([_.C({computed:"computelikeStatusEntityKey(data)"}),_.f("design:type",String)],cS.prototype,"likeStatusEntityKey",void 0);_.V([_.C({selectorArgs:["likeStatusEntityKey"],selector:_.gS}),_.f("design:type",Object)],cS.prototype,"likeStatusEntity",void 0);
_.V([_.u3("yt-service-request-sent"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,_.kE]),_.f("design:returntype")],cS.prototype,"onYtServiceRequestSent",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],cS);
_.$S()(cS,"ytd-like-button-renderer",function(){if(J9p===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);J9p=b}b=J9p;return b},{mode:1});_.yd(_.oZx,"reel-sound-metadata-view-model",{props:{data:_.v3,overlayDensity:_.v3}});_.yd(_.FAf,"player-disclosure-view-model",{props:{data:_.D4,extractOverlay:_.D4}});_.yd(_.vQN,"pivot-button-view-model",{props:{data:_.v3,className:_.v3}});_.yd(_.bma,"reel-action-bar-view-model",{props:{data:_.D4,buttonShapeOverrideables:_.D4}});_.yd(_.XXx,"yt-reel-metapanel-view-model",{props:{data:_.D4,overlayDensity:_.D4,extractOverlay:_.D4}});var evc=_.T(function(b){var h=b.children;var y=b.region;b=_.L(_.pa(void 0,void 0,"flxBBc"));var S=b.next().value,F=b.next().value;b=_.L(_.pa("0px",void 0,"IAR7k"));var a=b.next().value,P=b.next().value;b=_.L(_.pa("0px",void 0,"QV4iWb"));var K=b.next().value,n=b.next().value;b=_.L(_.pa(0,void 0,"Q2oK6b"));var X=b.next().value,u=b.next().value;b=_.L(_.pa(0,void 0,"hYKowe"));var O=b.next().value,N=b.next().value,t=function(){var E=S();if(E){var Y;if(((Y=_.o7())==null?void 0:Y.getPlayerState())!==-1){E.style.display=
"inherit";var w;(w=_.o7())==null||w.removeEventListener("onStateChange",t)}else E.style.display="none";I()}},R=function(){var E;
return(E=_.ye())==null?void 0:E.querySelector("video")},I=function(){var E=R();
if(E){u(E.getBoundingClientRect().width);N(E.getBoundingClientRect().height);var Y;P((E==null?void 0:(Y=E.style)==null?void 0:Y.left)||"0px");var w;n((E==null?void 0:(w=E.style)==null?void 0:w.top)||"0px")}};
_.Qi(function(){var E=S();if(E){var Y,w,x;if(((Y=_.o7())==null?void 0:Y.getPlayerState())===-1&&Math.round(((x=(w=_.o7())==null?void 0:w.getVideoAspectRatio())!=null?x:0)*100)!==Math.round(X()/O()*100)){E.style.display="none";var q,dI;N(X()/((dI=(q=_.o7())==null?void 0:q.getVideoAspectRatio())!=null?dI:1))}}},"N29KDe");
var U=function(){I()},p;
_.fl(function(){I();var E;if(!(y==null?0:(E=y())==null?0:E.transformationMatrix))throw Error("mp");var Y;(Y=_.o7())==null||Y.addEventListener("onStateChange",t);if(window.ResizeObserver){if(E=R())p=new ResizeObserver(U),p.observe(E)}else window.addEventListener("resize",I);_.m2(function(){var w;(w=_.o7())==null||w.removeEventListener("onStateChange",t);p?p.disconnect():window.removeEventListener("resize",I)})});
var e=function(){var E,Y,w=(Y=y==null?void 0:(E=y())==null?void 0:E.transformationMatrix)!=null?Y:[];E=X();Y=O();for(var x=[],q=0,dI=-1;q<w.length;q++)q%3===0&&(dI++,x[dI]=[]),x[dI].push(w[q]);w=new Na(x);x=new Na([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);x=w.multiply(x);w=new Na([[0,0],[0,0],[0,0],[0,0]]);for(q=0;q<x.getSize().width;q++){dI=tI(x,0,q);var L4=tI(x,1,q);if(dI===null||L4===null)throw Error("lp`"+(q+1).toString());NwD(w,q,0,dI*E);NwD(w,q,1,L4*Y)}E=tI(w,0,0);q=tI(w,1,0);Y=tI(w,0,1);dI=tI(w,1,1);
if(E===null||q===null||Y===null||dI===null)throw Error("jp");x=dOD(E,q,Y,dI);L4=tI(w,3,0);w=tI(w,3,1);if(L4===null||w===null)throw Error("kp");w=dOD(E,L4,Y,w);dI=(Number((dI*-1).toFixed(2))-Number((Y*-1).toFixed(2)))/(Number(q.toFixed(2))-Number(E.toFixed(2)));L4=Math.atan(dI)*180/Math.PI;q=dI===Number.POSITIVE_INFINITY?-90:dI===Number.NEGATIVE_INFINITY?90:Object.is(dI,-0)?180:dI===0?0:dI>0?L4*-1:E<q?L4*-1:Math.abs(L4)+180;return"left:calc("+E+"px + "+a()+"); top:calc("+(Y+"px + "+K()+"); width:")+
(x+"px; height:")+(w+"px; transform:rotate(")+(q+"deg);\n        --sticker-width:"+x+";")};
return _.M(hvf,{root:"#sticker-layer"},function(){return _.M("yt-overlay-sticker",{el:_.Qa(F),style:e,class:"ytOverlayStickerHost"},h)})},"Wn");var Cj$=_.T(function(b){function h(){var t,R,I,U,p=(R=_.c((t=n())==null?void 0:t.command,_.RH8))==null?void 0:(I=R.item)==null?void 0:(U=I.notificationTextRenderer)==null?void 0:U.successResponseText;if(p)t=_.SI(p),_.F8(S.value,"yt-open-popup-action",[t,S.value]);else if(X())$OM(X(),S.value);else{var e;$OM((e=n())==null?void 0:e.command,S.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var y=b.data;var S=_.ZR("svg"),F=_.L(_.pa(!1,void 0,"e9onLe"));b=F.next().value;var a=F.next().value,P=_.L(_.pa(!1,void 0,"ptnIQd"));F=P.next().value;var K=P.next().value,n=function(){var t;return _.c((t=y())==null?void 0:t.popUp,BwR)},X=function(){var t;
return(t=y())==null?void 0:t.command},u=function(){return _.c(X(),_.zo)!==void 0};
P=_.Zv(function(){h();return!1});
var O={},N={};return _.M("svg",{"on:mouseover":_.Zv(function(){u()&&a(!0);K(!0);return!1}),
"on:mouseout":_.Zv(function(){a(!1);K(!1);return!1}),
"on:keydown":_.Zv(function(t){t.key==="Enter"&&h();return!1}),
"on:focus":_.Zv(function(){u()&&a(!0);return!1}),
"on:blur":_.Zv(function(){u()&&a(!1);return!1}),
el:S,tabindex:0,"aria-label":function(){var t;return(t=y())==null?void 0:t.a11yString},
id:"player-overlay-video-interaction-svg",class:_.P2("ytPlayerOverlayInteractionInteractionsSvg",(O.ytPlayerOverlayInteractionInteractionsSvgHover=b,O),(N.ytPlayerOverlayInteractionInteractionsSvgHideOutline=F,N)),role:"button","on:click":P})},"Zn");_.yd(_.T(function(b){var h=b.data;_.fl(function(){var y;if((y=h())==null?0:y.trackingParams){var S;_.rU().graftServerVe((S=h().trackingParams)!=null?S:"")}});
return _.M("yt-player-overlay-interaction",null,_.M(evc,{region:function(){var y,S;return(y=h())==null?void 0:(S=y.regions)==null?void 0:S[0]}},_.M(Cj$,Object.assign({},b))))},"Yn"),"yt-player-overlay-interaction",{props:{data:_.D4}});var gPJ=_.T(function(b){var h=b.data;var y=b.index;var S=b.selectedChoice;var F=function(){var a;return _.c((a=h())==null?void 0:a.renderer,WBD)};
b={};return _.M("yt-overlay-poll-sticker-choice",{class:_.P2("ytOverlayPollStickerChoiceHost"),style:_.n9({"--displayed-percentage":function(){var a,P,K,n;return""+Math.ceil(Number((S==null?void 0:S())===y()?(a=F())==null?void 0:(P=a.selected)==null?void 0:P.progressBarWidth:(K=F())==null?void 0:(n=K.unselected)==null?void 0:n.progressBarWidth)*100)}})},_.M("div",{class:_.P2("ytOverlayPollStickerChoicePollChoice",(b.ytOverlayPollStickerChoiceShowVotePercentage=function(){return(S==null?void 0:S())!==
void 0},b.ytOverlayPollStickerChoicePollChoiceSelected=function(){return(S==null?void 0:S())===y()},b))},_.M("div",{class:"ytOverlayPollStickerChoicePollChoiceText"},function(){var a;
return((a=F())==null?void 0:a.text)||""}),_.M("div",{class:"ytOverlayPollStickerChoiceVotePercentage"},function(){if(typeof(S==null?void 0:S())==="undefined")var a="";
else{var P,K,n,X;a=(S==null?void 0:S())===y()?(P=F())==null?void 0:(K=P.selected)==null?void 0:K.votePercentage:(n=F())==null?void 0:(X=n.unselected)==null?void 0:X.votePercentage}return a})))},"$n");var s2_=_.T(function(b){var h=b.data;var y=b.enableDebuggingFeatures;var S=_.NG(function(a){var P,K=((P=h())==null?void 0:P.postPollStateEntityKey)||"";a=_.Mm(a.entities,"postPollStateEntity",K);var n;return((n=h())==null?0:n.viewerIsOwner)?Object.assign({},a,{selectedOptionId:-1,voted:!0}):a}),F=_.H9().resolve(_.OM);
b={};return _.M("yt-overlay-poll-sticker",null,_.M(evc,{region:function(){var a,P;return(a=h())==null?void 0:(P=a.region)==null?void 0:P.interactionRegion}},_.M("div",{class:_.P2("ytOverlayPollStickerHost",(b.ytOverlayPollStickerDebugStyle=function(){return y==null?void 0:y()},b)),
style:_.n9({"--original-height":function(){var a;return""+(((a=h())==null?void 0:a.mainBodyHeight)||1)},
"--original-width":function(){var a;return""+(((a=h())==null?void 0:a.mainBodyWidth)||1)},
"--scaled-width":function(){var a;return""+(((a=h())==null?void 0:a.mainBodyWidth)||1)},
"--primary-surface":function(){var a,P;return j2M(((a=h())==null?void 0:(P=a.theme)==null?void 0:P.primarySurface)||0)},
"--raised-surface":function(){var a,P;return j2M(((a=h())==null?void 0:(P=a.theme)==null?void 0:P.raisedSurface)||0)},
"--secondary-surface":function(){var a,P;return j2M(((a=h())==null?void 0:(P=a.theme)==null?void 0:P.secondarySurface)||0)},
"--primary-text":function(){var a,P;return j2M(((a=h())==null?void 0:(P=a.theme)==null?void 0:P.primaryText)||0)},
"--secondary-text":function(){var a,P;return j2M(((a=h())==null?void 0:(P=a.theme)==null?void 0:P.secondaryText)||0)}})},_.M("h1",{class:"ytOverlayPollStickerQuestionText"}," ",function(){return h().questionText}," "),_.M(_.Gw,{each:function(){return h().pollChoiceConfigs||[]}},function(a,P){return _.M("div",{class:"ytOverlayPollStickerPollChoice",
"on:click":_.Zv(function(){var K=P(),n;if((n=h())==null||!n.viewerIsOwner){var X,u;n=(X=h())==null?void 0:(u=X.pollChoiceConfigs)==null?void 0:u[K];if(u=(n==null?0:n.renderer)?_.c(n.renderer,WBD):void 0){var O;X=((O=S())==null?void 0:O.selectedOptionId)!==K;var N;if(O=(N=X?u.selectedPollCommand:u.deselectedPollCommand)==null?void 0:N.innertubeCommand){F.resolveCommand(O);var t,R;_.mc().dispatch(_.R7("postPollStateEntity",((t=S())==null?void 0:t.key)||"",{key:((R=S())==null?void 0:R.key)||"",selectedOptionId:X?
K:-1,voted:X}))}}}})},_.M(gPJ,{data:a,
index:P,selectedChoice:function(){var K,n;return((K=S())==null?0:K.voted)?(n=S())==null?void 0:n.selectedOptionId:void 0}}))}),_.M("div",{class:"ytOverlayPollStickerVoteCount"},function(){var a,P;
return((a=S())==null?0:a.voted)&&((P=S())==null?void 0:P.selectedOptionId)!==-1?h().postVoteCountText:h().preVoteCountText}))))},"ao");_.yd(_.T(function(b){var h=b.data;b=_.s5(function(){var y;return _.r("enable_shorts_poll_stickers_web")?(((y=h())==null?void 0:y.stickers)||[]).filter(function(S){return S.pollSticker}):[]},void 0,"Cflxwb");
return _.M("yt-stickers-layer",null,_.M(_.Gw,{each:b},function(y){return _.M(s2_,{data:y.pollSticker,enableDebuggingFeatures:function(){var S;return(S=h())==null?void 0:S.enableDebuggingFeatures}})}))},"bo"),"yt-stickers-layer",{props:{data:_.D4}});var Ro=function(){var b=_.g.apply(this,arguments)||this;b.showScrubber=!1;b.isWatchWhileMode=!1;b.enableAnchoredPanel=_.r("desktop_shorts_v2_anchored_panel");b.enablePollStickers=_.r("enable_shorts_poll_stickers_web");b.enableShortsModernControls=_.r("web_shorts_modern_controls");b.anchoredPanelActive=!1;b.enableLivingroomLayout=_.r("reels_enable_livingroom_layout");b.enablePlayerMetadataContainer=_.r("reels_web_enable_metadata_container");b.enableSqueezebackPanels=_.r("web_shorts_enable_squeezeback_panels");
b.useAspectRatio=_.r("web_use_aspect_ratio");b.isSqueezebackActive=!1;b.smallScreenSqueezeback=!1;b.isPlayerStarted=!1;b.overlayDensity=0;b.extractOverlay=!1;b.extractActionBar=!1;b.isOverlay=!1;b.isImmersive=!1;b.isImmersiveHorizontal=!1;b.isFullscreen=!1;b.onWindowResized=function(){var h;b.set("isImmersive",((h=window.getComputedStyle(b.hostElement))==null?void 0:h.getPropertyValue("--immersive-mode-on"))==="1");b.set("isImmersiveHorizontal",b.isImmersive&&b.enableLivingroomLayout&&!b.isWatchWhileMode)};
return b};
_.z(Ro,_.g);_.d=Ro.prototype;_.d.updateIsOverlay=function(b){this.isOverlay=b.detail.value};
_.d.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.d.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.d.computeActionBarButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",iconPosition:"icon-with-label",size:"L"}};
_.d.computeButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.d.onOverlayDensityChange=function(){var b=_.$x(this.hostElement).querySelector("ytd-info-panel-container-renderer");b&&(b.set("extractOverlay",this.extractOverlay),b.set("roundedContainer",this.extractOverlay))};
_.d.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.d.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.d.ready=function(){(_.r("enable_reel_action_bar_view_model")||this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer"))&&(!_.r("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.rH("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.rH("reels_action_justified_content")||"flex-start")};
_.d.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:0},"data.disclosure":{id:"disclosure",mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},
renderPriority:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",properties:{roundedContainer:"[[extractOverlay]]",extractOverlay:"[[extractOverlay]]"}}},renderPriority:0}}};
_.d.setFakeLoadingButtons=function(){_.r("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.Mt("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.Mt("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.Mt("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.Mt("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.Mt("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()};
_.d.setEmptyOverlayMetadata=function(){_.r("web_shorts_deflate_inactive_slides")&&(this.set("data.multiFormatLink",{reelMultiFormatLinkViewModel:void 0}),this.set("data.multimixAttributionLabel",void 0),this.set("data.suggestedAction",{shoppingOverlayRenderer:void 0,shortsSuggestedActionRenderer:void 0}),this.set("data.soundMetadata",{reelSoundMetadataViewModel:void 0}))};
_.tm.Object.defineProperties(Ro.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.data)==null||!b.infoPanel)}}});
Ro.prototype.onOverlayDensityChange=Ro.prototype.onOverlayDensityChange;Ro.prototype.onIsActiveChanged=Ro.prototype.onIsActiveChanged;_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],Ro.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Ro.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],Ro.prototype,"ytdReduxBehavior",void 0);
_.V([_.B(_.DV.YtdGuideStateAwareBehavior),_.f("design:type",Object)],Ro.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Ro.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Boolean)],Ro.prototype,"isActive",void 0);_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],Ro.prototype,"hidden",void 0);_.V([_.C({value:!0}),_.f("design:type",Boolean)],Ro.prototype,"useShortsIcon",void 0);
_.V([_.C({value:"left"}),_.f("design:type",String)],Ro.prototype,"buttonTooltipPosition",void 0);_.V([_.C({value:_.r("reels_enable_livingroom_layout")?"top":"left"}),_.f("design:type",String)],Ro.prototype,"likeButtonTooltipPosition",void 0);_.V([_.C({value:"none"}),_.f("design:type",String)],Ro.prototype,"textTransform",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Ro.prototype,"showScrubber",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Ro.prototype,"isWatchWhileMode",void 0);_.V([_.C({reflectToAttribute:!0}),_.W("data.infoPanel"),_.f("design:type",Object),_.f("design:paramtypes",[])],Ro.prototype,"hasInfoPanel",null);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Ro.prototype,"enableAnchoredPanel",void 0);_.V([_.C(),_.f("design:type",Object)],Ro.prototype,"enablePollStickers",void 0);
_.V([_.C(),_.f("design:type",Object)],Ro.prototype,"enableShortsModernControls",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Ro.prototype,"anchoredPanelActive",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Ro.prototype,"enableLivingroomLayout",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],Ro.prototype,"enablePlayerMetadataContainer",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Ro.prototype,"enableSqueezebackPanels",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Ro.prototype,"useAspectRatio",void 0);_.V([_.C({selector:_.AcF,reflectToAttribute:!0}),_.f("design:type",Object)],Ro.prototype,"isSqueezebackActive",void 0);_.V([_.C({selector:lIp,reflectToAttribute:!0}),_.f("design:type",Object)],Ro.prototype,"smallScreenSqueezeback",void 0);
_.V([_.C({selector:qM2}),_.f("design:type",Object)],Ro.prototype,"isPlayerStarted",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Ro.prototype,"overlayDensity",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Ro.prototype,"extractOverlay",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Ro.prototype,"extractActionBar",void 0);_.V([_.C(),_.f("design:type",Object)],Ro.prototype,"isOverlay",void 0);
_.V([_.C(),_.f("design:type",Object)],Ro.prototype,"isImmersive",void 0);_.V([_.C(),_.f("design:type",Object)],Ro.prototype,"isImmersiveHorizontal",void 0);_.V([_.C({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.f("design:type",Boolean)],Ro.prototype,"isShortsImmersive",void 0);_.V([_.C({computed:"computeButtonOverride(extractActionBar)"}),_.f("design:type",Object)],Ro.prototype,"buttonOverride",void 0);
_.V([_.C({computed:"computeActionBarButtonOverride(extractActionBar)"}),_.f("design:type",Object)],Ro.prototype,"actionBarButtonOverride",void 0);_.V([_.C({selector:_.jD,reflectToAttribute:!0}),_.f("design:type",Object)],Ro.prototype,"isFullscreen",void 0);_.V([_.OB("isActive"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Ro.prototype,"onIsActiveChanged",null);
_.V([_.OB("extractOverlay"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Ro.prototype,"onOverlayDensityChange",null);_.V([_.Yx({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],Ro);
_.k(Ro,"ytd-reel-player-overlay-renderer",function(){if(UOx!==void 0)return UOx;var b=document.createElement("template");_.D(b,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!data.videoInteractions.elementsInteractionsLayer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-interaction data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer"> </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enablePollStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <yt-stickers-layer data="[[data.videoInteractions.elementsInteractionsLayer.stickersLayerRenderer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      </yt-stickers-layer>\n  </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" extract-overlay="[[extractOverlay]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!enableShortsModernControls]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[!extractActionBar]]" overrides="[[actionBarButtonOverride]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[actionBarButtonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return UOx=b},{mode:1});var Yvc;var zx=function(){var b=_.g.apply(this,arguments)||this;b.videoDuration=0;b.playedTime=0;b.isActive=!1;b.JSC$23070_playerEvents=new Map;return b};
_.z(zx,_.g);_.d=zx.prototype;_.d.created=function(){this.JSC$23070_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$23070_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.d.attached=function(){this.getPlayerAndInitializeListeners()};
_.d.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23070_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.Hl(this,this.onPageChanged))};
_.d.getPlayerAndInitializeListeners=function(){var b=this,h;return _.Z(function(y){if(y.nextAddress==1)return h=_.ye(),h?y.yield(h.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Hl(b,b.onPageChanged)),y.jumpTo(0));b.player=y.yieldResult;b.initializePlayerListeners();_.g3(y)})};
_.d.onPageChanged=function(b){var h=this;return _.Z(function(y){if(y.nextAddress==1)return b.detail.newPageType!=="ytd-shorts"?y.return():y.yield(_.Sa().getPlayerPromise(),2);h.player=y.yieldResult;h.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Hl(h,h.onPageChanged));_.g3(y)})};
_.d.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$23070_playerEvents)};
_.d.onVideoDataChange=function(b){var h=this;return _.Z(function(y){if(!h.player||b.type!=="newdata")return y.return();h.videoDuration=_.r("web_shorts_use_progress_state_for_gapless")?h.player.getProgressState(b.playertype).seekableEnd:h.player.getDuration(b.playertype);h.playedTime=0;_.g3(y)})};
_.d.onVideoProgress=function(b){var h=this,y,S;return _.Z(function(F){if(!h.player)return F.return();y=h.player.getPresentingPlayerType();S=h.player.getPlayerState();h.videoDuration=_.r("web_shorts_use_progress_state_for_gapless")?h.player.getProgressState(y).seekableEnd:h.player.getDuration(y);h.playedTime=S===0?h.videoDuration:b;_.g3(F)})};
_.d.getPercentPlayed=function(b,h){return b?_.Y7(h/b,0,1):0};
_.tm.Object.defineProperties(zx.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 b="";return b=this.videoDuration&&this.playedTime?b+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):b+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],zx.prototype,"componentBehavior",void 0);_.V([_.B(_.UA.YtPlayerListenerBehavior),_.f("design:type",_.pf)],zx.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],zx.prototype,"player",void 0);_.V([_.C(),_.f("design:type",Object)],zx.prototype,"videoDuration",void 0);_.V([_.C(),_.f("design:type",Object)],zx.prototype,"playedTime",void 0);_.V([_.C(),_.f("design:type",Object)],zx.prototype,"isActive",void 0);
_.V([_.W("videoDuration","playedTime"),_.f("design:type",Number),_.f("design:paramtypes",[])],zx.prototype,"percentPlayed",null);_.V([_.W("videoDuration","playedTime"),_.f("design:type",Object),_.f("design:paramtypes",[])],zx.prototype,"percentPlayedStyle",null);_.V([_.W("videoDuration","isActive"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],zx.prototype,"hideProgressBar",null);
_.k(zx,"ytd-progress-bar-line",function(){if(Yvc===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);Yvc=b}b=Yvc;return b},{mode:_.Lt("kevlar_poly_si_batch_j028")?1:2});var Tw9;_.yd(_.kUX,"ytm-closed-captioning-button",{props:{captionIconType:_.D4,onClick:_.v3,ariaLabel:_.D4,ariaPressed:_.D4,isOverlay:_.v3,isModern:_.v3}});_.yd(_.KmE,"desktop-shorts-volume-controls",{props:{orientation:_.D4}});var DZ=function(){var b=_.g.apply(this,arguments)||this;b.playerState=null;b.isMuted=!1;b.shortsModernControlsEnabled=_.r("web_shorts_modern_controls");b.volumeControlsOrientationState="horizontal_right";b.isOverlay=!0;b.isAdsOverlay=!1;b.captionIconType=-1;b.ariaLabel="";b.overlayDensity=0;b.JSC$23073_playerEvents=new Map;b.onClosedCaptionsButtonClick=function(){b.player&&_.B_P(b.player)&&(b.player.toggleSubtitles(),b.updateCaptionIconType())};
return b};
_.z(DZ,_.g);_.d=DZ.prototype;_.d.created=function(){this.JSC$23073_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$23073_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$23073_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.d.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.Kh(28662);this.playPauseButtonClientVE=_.Kh(36842);this.fullscreenButtonToggleOffClientVE=_.Kh(222256);this.fullscreenButtonToggleOnClientVE=_.Kh(222257);var b=_.UE(),h=_.Ae();b&&h&&(_.r("combine_ve_grafts")?(_.lC(_.rU(),this.muteButtonClientVE,h),_.lC(_.rU(),this.playPauseButtonClientVE,h)):_.Ea(b,h,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.d.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23073_playerEvents),this.player=null)};
_.d.updateCaptionIconType=function(){var b=-1,h=void 0,y=_.Mt("CLOSED_CAPTIONS_DISABLED");this.player&&_.B_P(this.player)&&(_.WVA(this.player)?(h=!0,y=_.Mt("CLOSED_CAPTIONS_ON"),b=1):(h=!1,y=_.Mt("CLOSED_CAPTIONS_OFF"),b=0));this.captionIconType=b;this.ariaPressedState=h;this.ariaLabel=y};
_.d.computeActionBarButtonOverride=function(){return{style:"overlay-dark",iconPosition:"icon-only",size:"L",disableBackdropFilter:!0,customColors:{backgroundColor:"transparent",color:"var(--yt-spec-overlay-icon-active-other)"}}};
_.d.getPlayerAndInitializeListeners=function(){var b=this,h;return _.Z(function(y){if(y.nextAddress==1)return h=_.ye(),h?y.yield(h.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Hl(b,b.onPageChanged)),y.jumpTo(0));b.player=y.yieldResult;b.initializePlayerListeners();_.g3(y)})};
_.d.onPageChanged=function(b){var h=this;return _.Z(function(y){if(y.nextAddress==1)return b.detail.newPageType!=="ytd-shorts"?y.return():y.yield(_.Sa().getPlayerPromise(),2);h.player=y.yieldResult;h.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Hl(h,h.onPageChanged));_.g3(y)})};
_.d.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$23073_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.d.onPlayerStateChange=function(b){this.playerState=b};
_.d.onPlayerVolumeChange=function(b){this.isMuted=b.muted};
_.d.onPlayPauseButtonClick=function(){var b=this,h,y;return _.Z(function(S){if(S.nextAddress==1)return S.yield(_.Sa().getPlayerPromise(),2);h=S.yieldResult;(y=_.UE())&&b.playPauseButtonClientVE&&_.lE(y,b.playPauseButtonClientVE);h.getPlayerState()!==1?h.playVideo():h.pauseVideo();_.g3(S)})};
_.d.computePlayPauseIcon=function(b){return b===2||b===-1||b===5?_.r("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.r("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.r("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.d.computeFullscreenLabel=function(b){return b?_.Mt("FULLSCREEN_EXIT_LABEL"):_.Mt("FULLSCREEN_ENTER_LABEL")};
_.d.computePlayPauseLabel=function(b){return b===1||b===3?_.Mt("PLAYER_LABEL_PAUSE"):_.Mt("PLAYER_LABEL_PLAY")};
_.d.onMuteButtonClick=function(){var b=this,h,y;return _.Z(function(S){if(S.nextAddress==1)return S.yield(_.Sa().getPlayerPromise(),2);h=S.yieldResult;(y=_.UE())&&b.muteButtonClientVE&&_.lE(y,b.muteButtonClientVE);h.isMuted()?h.unMute(!0):h.mute(!0);_.g3(S)})};
_.d.computeMuteIcon=function(b){return b?"miniplayer:volume-off":"miniplayer:volume-up"};
_.d.computeMuteLabel=function(b){return b?_.Mt("PLAYER_LABEL_UNMUTE"):_.Mt("PLAYER_LABEL_MUTE")};
_.d.onFullscreenButtonClick=function(){var b=_.UE();b&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.lE(b,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.lE(b,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.wld()};
_.tm.Object.defineProperties(DZ.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var b=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(){b.onPlayPauseButtonClick()},
disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"var(--yt-spec-overlay-background-medium-light)"}:{}}}},
fullscreenButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeFullscreenLabel(this.isFullscreen),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeFullscreenLabel(this.isFullscreen),disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"transparent"}:{}}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?_.r("web_shorts_modern_controls")?"player_full_exit_alt":_.r("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.r("web_shorts_modern_controls")?"player_full_enter_alt":_.r("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],DZ.prototype,"componentBehavior",void 0);_.V([_.B(_.UA.YtPlayerListenerBehavior),_.f("design:type",_.pf)],DZ.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],DZ.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],DZ.prototype,"player",void 0);_.V([_.C(),_.f("design:type",Object)],DZ.prototype,"playerState",void 0);_.V([_.C(),_.f("design:type",Object)],DZ.prototype,"isMuted",void 0);
_.V([_.C({computed:"computePlayPauseIcon(playerState)"}),_.f("design:type",String)],DZ.prototype,"playPauseIcon",void 0);_.V([_.C({computed:"computeMuteIcon(isMuted)"}),_.f("design:type",String)],DZ.prototype,"muteIcon",void 0);_.V([_.C({selector:_.jD}),_.f("design:type",Boolean)],DZ.prototype,"isFullscreen",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],DZ.prototype,"shortsModernControlsEnabled",void 0);
_.V([_.C(),_.f("design:type",Object)],DZ.prototype,"volumeControlsOrientationState",void 0);_.V([_.C(),_.f("design:type",Object)],DZ.prototype,"isOverlay",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],DZ.prototype,"isAdsOverlay",void 0);_.V([_.C(),_.f("design:type",Object)],DZ.prototype,"captionIconType",void 0);_.V([_.C(),_.f("design:type",Object)],DZ.prototype,"ariaLabel",void 0);_.V([_.C(),_.f("design:type",Object)],DZ.prototype,"ariaPressedState",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],DZ.prototype,"overlayDensity",void 0);_.V([_.C(),_.f("design:type",Object)],DZ.prototype,"data",void 0);_.V([_.C({computed:"computeActionBarButtonOverride()"}),_.f("design:type",Object)],DZ.prototype,"actionBarButtonOverride",void 0);_.V([_.W("playerState"),_.f("design:type",Object),_.f("design:paramtypes",[])],DZ.prototype,"playPauseButtonData",null);
_.V([_.W("isFullscreen"),_.f("design:type",Object),_.f("design:paramtypes",[])],DZ.prototype,"fullscreenButtonData",null);_.V([_.C(),_.f("design:type",Object)],DZ.prototype,"onClosedCaptionsButtonClick",void 0);_.V([_.W("isFullscreen"),_.f("design:type",String),_.f("design:paramtypes",[])],DZ.prototype,"fullscreenIcon",null);
_.k(DZ,"ytd-shorts-player-controls",function(){if(Tw9===void 0){var b=document.createElement("template");_.D(b,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <div id="left-controls" class="style-scope ytd-shorts-player-controls">\n    <yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n    </yt-button-shape>\n    <desktop-shorts-volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  </div>\n  <div id="right-controls" class="style-scope ytd-shorts-player-controls">\n    <div id="closed-captioning-button-container" class="style-scope ytd-shorts-player-controls">\n      <ytm-closed-captioning-button aria-label="[[ariaLabel]]" aria-pressed="[[ariaPressedState]]" caption-icon-type="[[captionIconType]]" is-modern="[[shortsModernControlsEnabled]]" is-overlay="[[isOverlay]]" on-click="[[onClosedCaptionsButtonClick]]" class="style-scope ytd-shorts-player-controls">\n      </ytm-closed-captioning-button>\n    </div>\n    <div id="menu-button" class="button-container style-scope ytd-shorts-player-controls">\n      <ytd-menu-renderer data="[[data]]" is-overlay="[[isOverlay]]" three-dot-button-override="[[actionBarButtonOverride]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-shorts-player-controls"></ytd-menu-renderer>\n    </div>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</div>\n</template>\n<template is="dom-if" if="[[!shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n  <desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>\n');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);Tw9=b}b=Tw9;return b},{mode:1});var G6$;_.yd(_.q_F,"yt-interstitial-view-model",{props:{data:_.D4}});var k6_=_.T(function(b){var h=b.data;return _.M("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.M("h1",{class:"reelWatchBreakViewModelHostTitle"},_.M(_.zv,{text:function(){return h().title}})),_.M("h2",{class:"reelWatchBreakViewModelHostBody"},_.M(_.zv,{text:function(){return h().body},
isOverlay:!0})),_.M(_.rC,{data:function(){return h().buttons}},{buttonViewModel:function(y,S){return _.M("div",{class:function(){return S()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.M(_.EG,{data:y.data}))}}))},"co");
k6_.idomCompat=!0;_.yd(k6_,"reel-watch-break-view-model",{props:{data:_.D4}});var Io=function(){return _.g.apply(this,arguments)||this};
_.z(Io,_.g);Io.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}}};
_.tm.Object.defineProperties(Io.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var b;return!!_.c((b=this.data)==null?void 0:b.renderer,c92)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var b;return!!_.c((b=this.data)==null?void 0:b.renderer,RvM)}}});
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Io.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],Io.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],Io.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Io.prototype,"data",void 0);
_.V([_.C({reflectToAttribute:!0}),_.W("data.renderer"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Io.prototype,"isSurvey",null);_.V([_.C({reflectToAttribute:!0}),_.W("data.renderer"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Io.prototype,"isInterstitialViewModel",null);_.V([_.Yx({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],Io);
_.k(Io,"ytd-reel-non-video-content-renderer",function(){if(G6$!==void 0)return G6$;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);
return G6$=b},{mode:_.Lt("kevlar_poly_si_batch_j028")?1:2});var VKf;_.yd(_.PFx,"desktop-shorts-player-controls",{});var BS=function(){var b=_.g.apply(this,arguments)||this;b.isPlayerPaused=!1;b.isPlayerStarted=!1;b.showPlayerControls=!1;b.showScrubber=!1;b.autoHideJobId=0;b.overlayType=_.rH("web_shorts_expanded_overlay_type");b.panelData=void 0;b.isWatchWhileMode=!1;b.hasError=!1;b.panelShowDelayMs=1;b.scrubberComponent={};b.isFullscreen=!1;b.shouldHideOverlay=!1;b.enableAnchoredPanel=_.r("desktop_shorts_v2_anchored_panel");b.enablePersistentAnchoredPanel=_.r("desktop_shorts_v2_persistent_anchored_panel");b.hideWatchWhilePanel=
_.r("web_shorts_hide_watch_while_panel");b.useAspectRatio=_.r("web_use_aspect_ratio");b.enableShortsModernControls=_.r("web_shorts_modern_controls");b.isPersistentPanelActive=!1;b.anchoredPanelActive=!1;b.isShortsPipActive=!1;b.smallScreenSqueezeback=!1;b.enableFlexibleOverlay=_.r("web_enable_flexible_overlay");b.overlayDensity=0;b.extractOverlay=!1;b.extractActionBar=!1;b.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
b.onWindowResized=function(){_.wy(b,"calculateOverlayDensity",function(){b.calculateOverlayDensity()},100)};
return b};
_.z(BS,_.g);_.d=BS.prototype;_.d.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.d.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.d.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var b=_.H9().resolve(_.Mp);this.isWatchWhileMode&&_.xP.addJob(function(){b.showPanel({identifier:"shorts-comments-panel",target:null})},0)}}else this.panelData=void 0};
_.d.handleShowReelsCommentsOverlayCommand=function(b){b=_.c(b,IB9);this.isActive&&(b==null?0:b.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))};
_.d.updateEngagementPanelVisibility=function(b,h){b&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:h?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:b}})};
_.d.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;window.removeEventListener("resize",this.onWindowResized)};
_.d.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.H9().resolve(_.Sc).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.d.handleWatchWhilePanelScrimClick=function(){var b=_.H9().resolve(_.Mp);this.activeWatchWhilePanel&&(b.hidePanel({identifier:this.activeWatchWhilePanel}),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.d.attached=function(){this.isFirstReel()&&this.handlePlayerClick();window.addEventListener("resize",this.onWindowResized);this.calculateOverlayDensity()};
_.d.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}},renderPriority:0}}};
_.d.handlePlayerClick=function(b){var h=this,y,S;if((S=(y=window).matchMedia)!=null&&S.call(y,"(any-pointer: coarse)").matches||!b)this.showPlayerControls=!0,_.xP.cancelJob(this.autoHideJobId),this.autoHideJobId=_.VT(_.xP,function(){h.showPlayerControls=!1},4E3)};
_.d.isFirstReel=function(){return this.index===0};
_.d.handleMouseenter=function(){_.xP.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.d.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.d.handleScrubberEnter=function(){this.showScrubber=!0};
_.d.handleScrubberLeave=function(){this.showScrubber=!1};
_.d.maybeLogNonDefaultAspectRatio=function(){var b;(b=this.data)!=null&&b.thumbnail&&this.isActive&&.5625!==w9D(this.data.thumbnail)&&_.M0r("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.d.calculateOverlayDensity=function(){var b=document.querySelector("#shorts-container");if(b){var h=!1,y,S=this.playerContainer.offsetWidth,F=this.playerContainer.offsetHeight;b=b.offsetWidth/2-S/2;b>=368?(b=1,h=y=!0):b>=72?(b=0,y=!0):(b=2,y=!1);S>=600&&F>=840?b=1:window.innerWidth<=599&&(b=2,y=h=!1);this.isPersistentPanelActive&&(b=0,h=!1);this.extractActionBar=y;_.r("web_enable_flexible_overlay")&&(this.overlayDensity=b,this.extractOverlay=h);var a;(a=this.onOverlayDensityChanged)==null||a.call(this,
this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar)}};
_.d.onOverlayDensityChange=function(){var b;(b=this.onOverlayDensityChanged)==null||b.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar);if(b=_.$x(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))b.set("overlayDensity",this.overlayDensity),b.set("extractOverlay",this.extractOverlay),b.set("extractActionBar",this.extractActionBar);if(b=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))b.overlayDensity=this.overlayDensity,b.extractOverlay=
this.extractOverlay,b.extractActionBar=this.extractActionBar};
_.d.isVideoContent=function(b){_.H9().resolve(_.Sc);return!!_.c(b,_.cd)};
_.d.isNonVideoContent=function(b){_.H9().resolve(_.Sc);return!!_.c(b,_.XI)};
_.d.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.tm.Object.defineProperties(BS.prototype,{isAdsOverlay:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.data)==null||!b.adsOverlay)}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.r("web_shorts_modern_controls"))}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var b;return!this.isActive||!this.isPlayerStarted||(b=this.data)!=null&&b.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var b;if(((b=this.data)==null?0:b.command)&&this.isVideoContent(this.data.command)){var h,y;if(((h=this.data)==null?0:h.adsOverlay)&&Object.keys((y=this.data)==null?void 0:y.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var S,F;if(((S=this.data)==null?0:S.reelPlayerOverlayRenderer)&&Object.keys((F=this.data)==null?void 0:F.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
BS.prototype.onOverlayDensityChange=BS.prototype.onOverlayDensityChange;BS.prototype.calculateOverlayDensity=BS.prototype.calculateOverlayDensity;BS.prototype.maybeLogNonDefaultAspectRatio=BS.prototype.maybeLogNonDefaultAspectRatio;BS.prototype.onEngagementPanelsChanged=BS.prototype.onEngagementPanelsChanged;BS.prototype.onScrubberDataChange=BS.prototype.onScrubberDataChange;BS.prototype.updateShouldHideOverlay=BS.prototype.updateShouldHideOverlay;
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],BS.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],BS.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.DV.YtdGuideStateAwareBehavior),_.f("design:type",Object)],BS.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],BS.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Number)],BS.prototype,"index",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],BS.prototype,"isActive",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],BS.prototype,"isHiddenInDom",void 0);_.V([_.C(),_.f("design:type",Object)],BS.prototype,"isPlayerPaused",void 0);_.V([_.C({selector:qM2}),_.f("design:type",Object)],BS.prototype,"isPlayerStarted",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],BS.prototype,"showPlayerControls",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],BS.prototype,"showScrubber",void 0);_.V([_.C(),_.f("design:type",Object)],BS.prototype,"autoHideJobId",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],BS.prototype,"overlayType",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],BS.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],BS.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],BS.prototype,"watchWhileEngagementPanels",void 0);_.V([_.C(),_.f("design:type",Object)],BS.prototype,"panelData",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],BS.prototype,"isWatchWhileMode",void 0);_.V([_.C(),_.f("design:type",String)],BS.prototype,"activeWatchWhilePanel",void 0);_.V([_.C(),_.f("design:type",Object)],BS.prototype,"hasError",void 0);_.V([_.C(),_.f("design:type",Object)],BS.prototype,"panelShowDelayMs",void 0);
_.V([_.C(),_.f("design:type",Object)],BS.prototype,"scrubberComponent",void 0);_.V([_.C({selector:_.jD,reflectToAttribute:!0}),_.f("design:type",Object)],BS.prototype,"isFullscreen",void 0);_.V([_.C(),_.f("design:type",Object)],BS.prototype,"shouldHideOverlay",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],BS.prototype,"enableAnchoredPanel",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],BS.prototype,"enablePersistentAnchoredPanel",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],BS.prototype,"hideWatchWhilePanel",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],BS.prototype,"useAspectRatio",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],BS.prototype,"enableShortsModernControls",void 0);_.V([_.C({selector:_.AcF,reflectToAttribute:!0}),_.f("design:type",Object)],BS.prototype,"isPersistentPanelActive",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],BS.prototype,"anchoredPanelActive",void 0);_.V([_.C({selector:_.$G,reflectToAttribute:!0}),_.f("design:type",Object)],BS.prototype,"isShortsPipActive",void 0);_.V([_.C({selector:lIp,reflectToAttribute:!0}),_.f("design:type",Object)],BS.prototype,"smallScreenSqueezeback",void 0);_.V([_.C({reflectToAttribute:!0}),_.W("data.adsOverlay"),_.f("design:type",Object),_.f("design:paramtypes",[])],BS.prototype,"isAdsOverlay",null);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],BS.prototype,"enableFlexibleOverlay",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],BS.prototype,"overlayDensity",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],BS.prototype,"extractOverlay",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],BS.prototype,"extractActionBar",void 0);_.V([_.C(),_.f("design:type",Function)],BS.prototype,"onOverlayDensityChanged",void 0);
_.V([_.C(),_.W("isActive","hasError","isPlayerStarted"),_.f("design:type",Object),_.f("design:paramtypes",[])],BS.prototype,"shouldRenderPlayerElements",null);_.V([_.C(),_.W("isActive","isWatchWhileMode"),_.f("design:type",Object),_.f("design:paramtypes",[])],BS.prototype,"watchWhileOrPersistentActive",null);_.V([_.OB("isActive","hasError","showingExpandedOverlay"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],BS.prototype,"updateShouldHideOverlay",null);
_.V([_.C({reflectToAttribute:!0}),_.W("isActive","isPlayerStarted","data"),_.f("design:type",Object),_.f("design:paramtypes",[])],BS.prototype,"shouldRenderScrubber",null);_.V([_.OB("shouldRenderScrubber"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],BS.prototype,"onScrubberDataChange",null);_.V([_.W("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.f("design:type",Object),_.f("design:paramtypes",[])],BS.prototype,"overlayComponent",null);
_.V([_.OB("watchWhileEngagementPanels"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],BS.prototype,"onEngagementPanelsChanged",null);_.V([_.to("#player-container"),_.f("design:type",HTMLElement)],BS.prototype,"playerContainer",void 0);_.V([_.to("#cinematic-container"),_.f("design:type",HTMLElement)],BS.prototype,"cinematicContainer",void 0);
_.V([_.OB("isPersistentPanelActive","data.thumbnail"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],BS.prototype,"maybeLogNonDefaultAspectRatio",null);_.V([_.OB("isPersistentPanelActive"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],BS.prototype,"calculateOverlayDensity",null);
_.V([_.OB("overlayDensity","extractOverlay","extractActionBar"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],BS.prototype,"onOverlayDensityChange",null);_.V([_.Yx({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],BS);
_.k(BS,"ytd-reel-video-renderer",function(){if(VKf!==void 0)return VKf;var b=document.createElement("template");_.D(b,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="sticker-layer" class="sticker-layer style-scope ytd-reel-video-renderer"></div>\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls data="[[data.reelPlayerOverlayRenderer.menu.menuRenderer]]" disable-upgrade="[[!isActive]]" is-ads-overlay="[[isAdsOverlay]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return VKf=b},{mode:_.Lt("kevlar_poly_si_batch_j028")?1:2});var WS=function(){var b=_.g.apply(this,arguments)||this;b.isPreviousPageShorts=!1;b.index=0;b.delayedActiveIndex=0;b.playablePreviousIndex=null;b.isPlayerPaused=!1;b.isPlayerStarted=!1;b.intersectionObserverThreshold=.6;b.fitToVisibleBounds=!1;b.pageSubtype="shorts";b.enablePreviousContinuation=_.r("shorts_in_playlists_web");b.shortsPipEnabled=_.r("web_shorts_pip");b.isDark=document.documentElement.hasAttribute("dark");b.shortsViewTransitions=_.r("web_shorts_view_transitions");b.isFullscreen=!1;b.isShortsPipActive=
!1;b.buttonOverride={iconPosition:"icon-only",size:"XL"};b.anchoredPanelActive=!1;b.isActive=!1;b.smallScreenPersistentPanel=!1;b.isPersistentPanelActive=!1;b.smallScreenSqueezeBack=!1;b.enableScrollIntoViewCenter=_.r("web_scroll_into_view_center");b.enableFlexibleOverlay=_.r("web_enable_flexible_overlay");b.extractOverlay=!1;b.useAspectRatio=_.r("web_use_aspect_ratio");b.enableShortsSequenceRefactorUnify=_.r("web_enable_shorts_sequence_refactor_unify");b.continuationRequestPending=!1;b.carouselContainers=
[];b.isShortsInitialized=!1;b.shortsContentList=[];b.hasDataUpdated=!1;b.playerInPosition=!1;b.hidePreviousButtonImmediately=!1;b.showPreviousButtonImmediately=!1;b.endOfNextContinuation=!1;b.currentPlayerIndex=0;b.nextReelVe=_.Kh(56921);b.prevReelVe=_.Kh(56922);b.loopToggleOffVe=_.Kh(198013);b.loopToggleOnVe=_.Kh(198014);b.ambientModeToggleVe=_.Kh(227860);b.reelPlayerPausedStateRendererVe=_.Kh(141313);b.storedPlaybackSpeed=null;b.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"};b.onOverlayDensityChanged=function(h,y,S,F){h=b.getActiveReelVideo(h);b.extractOverlay=!!S;h==null||h.setAttribute("overlay-density",String(y));S===void 0||h!=null&&h.toggleAttribute("extract-overlay",S);F===void 0||h!=null&&h.toggleAttribute("extract-action-bar",F)};
return b};
_.z(WS,_.g);_.d=WS.prototype;_.d.setFirstShortsData=function(){!this.firstShortsData&&this.data&&(this.firstShortsData=this.getCurrentShort())};
_.d.setShortsContentList=function(){var b=this;if(this.enableShortsSequenceRefactorUnify){var h=this.shortsContentList&&this.reelWatchSequenceResponse?[].concat(_.f$(this.shortsContentList)):[],y=this.firstShortsData;if(y){var S=this.reelWatchSequenceResponse;(y=this.shortsController==null?void 0:Zz9(h,y,S!=null?S:null))&&y.newContentList&&(y=y.newContentList,y.length!==h.length&&(this.shortsContentList=y,_.Ob(this,function(){b.observeShorts()})))}}};
_.d.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.d.onResize=function(){var b=_.hP(),h=b.dispatch,y=this.calculateIsSmallWidth();h.call(b,_.$8({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:y}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.d.configureRendererStamper=function(){return{"data.overlay.reelPlayerOverlayRenderer.backNavigationButton":{id:"back-nav-button",mapping:{buttonRenderer:"ytd-button-renderer"},renderPriority:0},"data.watchStatus":{id:"offline-container",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer"},renderPriority:0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatchWhilePanel:!0,shortsPanel:!0}}},
renderPriority:0}}};
_.d.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var b=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,h=b,y=0;b<250&&(h=b+this.shortsInnerContainer.clientWidth,y=24);_.nZ(this.hostElement,{"--ytd-shorts-header-width":h+"px","--ytd-shorts-top-spacing":y+"px"})}};
_.d.isFirstShorts=function(b){return b&&!this.enableShortsSequenceRefactorUnify?this.index===-b.length:this.index===0};
_.d.isActiveReel=function(b,h,y){y&&(h=this.calculatePrevIndex(h,y));return b===h};
_.d.onFullscreenChange=function(){_.r("web_fullscreen_shorts")&&(this.scrollToVideoThrottle.fire(this.activeIndex,"instant"),this.isFullscreen&&this.isShortsPipActive&&_.H9().resolve(_.Vp).close(!0))};
_.d.engagementPanelsChanged=function(){var b;this.watchWhileEngagementPanels=(b=this.data)==null?void 0:b.engagementPanels};
_.d.unregisterPanels=function(){var b=_.H9().resolve(_.Mp);if(this.watchWhileEngagementPanels)for(var h=_.L(this.watchWhileEngagementPanels),y=h.next();!y.done;y=h.next()){var S=y.value,F=void 0,a=void 0;y=(F=S.engagementPanelSectionListRenderer)==null?void 0:(a=F.identifier)==null?void 0:a.tag;S=this.getPanelIdentifier(S.engagementPanelSectionListRenderer);b&&(y&&b.panelMap.delete(y),S&&_.r("web_shorts_panel_caching_bugfix")&&(F=y=void 0,(F=(y=b).unregisterPanelContent)==null||F.call(y,S)))}};
_.d.isVideoContent=function(b){return this.isVideoContentCommand(b==null?void 0:b.command)};
_.d.getActiveReelVideo=function(b){return _.$x(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+b+'"]')};
_.d.calculatePrevIndex=function(b,h){return h?b-((h==null?void 0:h.length)||0):-1};
_.d.onKeydown=function(b){var h=_.Qk(b)||[];if(!_.fma(h))if(b.code==="ArrowUp")b.preventDefault(),this.handlePrevButtonClick();else if(b.code==="ArrowDown")b.preventDefault(),this.handleNextButtonClick();else if(b.code==="KeyM")this.toggleMuteUnmuteVideo();else if(b.code==="KeyK"||b.code==="Space")this.togglePlayPauseVideo();else if((b.code==="KeyA"||b.code==="ArrowLeft")&&_.r("web_shorts_keyboard_enable_seek_shortcuts")){var y;(y=this.player)==null||y.seekBy(-5)}else if((b.code==="KeyD"||b.code===
"ArrowRight")&&_.r("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var S;(S=this.player)==null||S.seekBy(5)}};
_.d.onServiceRequestCompleted=function(b,h){b=h.data;if(this.enableShortsSequenceRefactorUnify){if(this.continuationRequestPending=!1,b.continuationEndpoint||b.prevContinuationEndpoint)this.reelWatchSequenceResponse=b}else b.continuationEndpoint&&b.entries?(this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:b.entries,continuationEndpoint:b.continuationEndpoint}}),this.cachedReelWatchSequenceResponse=b):b.prevContinuationEndpoint&&
b.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:b.prevEntries,prevContinuationEndpoint:b.prevContinuationEndpoint}}):this.shortsProcessedSequence&&this.index>0&&(this.endOfNextContinuation=!0)};
_.d.handleEngagementPanelVisibilityChanged=function(b,h){var y=_.H9().resolve(_.Mp);if(b&&y){var S=this.getPanelIdentifier(b);if(h==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==S){y.hidePanel({identifier:this.activePanel});var F;this.activePanel=((F=b.identifier)==null?void 0:F.tag)||b.panelIdentifier}else this.isPersistentPanelActive=!0,_.hP().dispatch(MKD(!0)),this.anchoredPanelActive=!0,this.activePanel=S;else h==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===S&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.hP().dispatch(MKD(!1)))}};
_.d.handlePanelScrimClick=function(){var b=_.H9().resolve(_.Mp);this.activePanel&&(b.hidePanel({identifier:this.activePanel}),_.hP().dispatch(MKD(!1)))};
_.d.getShortsLoopSetting=function(){var b,h,y,S,F;return _.Z(function(a){switch(a.nextAddress){case 1:return _.r("kevlar_shorts_auto_advance")?a.yield(_.K0.getInstance(),2):a.return(!0);case 2:return(b=a.yieldResult)?a.yield(b.get("sfvles"),3):a.return(!0);case 3:return y=(h=a.yieldResult)!=null?h:!1,a.yield(b.get("sfvle"),4);case 4:return F=(S=a.yieldResult)!=null?S:!0,y?a.return(F):a.return(!0)}})};
_.d.handleSignalActionToggleLoopShortsOff=function(){var b=this,h,y,S;return _.Z(function(F){switch(F.nextAddress){case 1:if(!b.player)return F.return();b.player.setLoopVideo(!1);h=_.rU();_.xa(h,b.loopToggleOffVe);return F.yield(_.K0.getInstance(),2);case 2:return(y=F.yieldResult)?F.yield(y.set("sfvle",!1),3):F.return();case 3:return F.yield(y.set("sfvles",!0),4);case 4:S=_.HT(),_.uE(0,203,!1),_.uE(0,204,!0),S.save(),_.g3(F)}})};
_.d.handleSignalActionToggleLoopShortsOn=function(){var b=this,h,y,S;return _.Z(function(F){switch(F.nextAddress){case 1:if(!b.player)return F.return();b.player.setLoopVideo(!0);h=_.rU();_.xa(h,b.loopToggleOnVe);return F.yield(_.K0.getInstance(),2);case 2:return(y=F.yieldResult)?F.yield(y.set("sfvle",!0),3):F.return();case 3:return F.yield(y.set("sfvles",!0),4);case 4:S=_.HT(),_.uE(0,203,!0),_.uE(0,204,!0),S.save(),_.g3(F)}})};
_.d.handleSignalActionToggleCinematicShortsOn=function(){QAP(!0);var b;(b=this.JSC$23097_cinematicController)==null||_.CNJ(b,!0);_.xa(_.rU(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.d.handleSignalActionToggleCinematicShortsOff=function(){QAP(!1);var b;(b=this.JSC$23097_cinematicController)==null||_.CNJ(b,!1);_.xa(_.rU(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.d.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.d.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.d.unhideCurrentOverlay=function(){this.hasDataUpdated=!0;if(this.overlayContainer&&this.playerInPosition){var b=this.overlayContainer.querySelector("#experiment-overlay");b&&_.xP.addLowPriorityJob(function(){b.style.display="unset"},100)}else if(this.overlayContainer){var h;
((h=this.playerElement.getPlayer())==null?void 0:h.getPlayerState())===-1&&this.movePlayerToVideo(this.index)}};
_.d.getCurrentShort=function(){if(this.currentEndpoint){var b=this.currentEndpoint;if(this.isNonVideoContentCommand(b)){var h=_.c(b,_.XI);return{reelNonVideoContentRenderer:_.c(h==null?void 0:h.renderer,_.uC),command:b}}if(this.data){var y;h=(y=_.c(this.currentEndpoint,_.cd))==null?void 0:y.thumbnail;var S;y=(S=this.data.overlay)==null?void 0:S.reelPlayerOverlayRenderer;_.H9().resolve(_.Sc);b=this.data;var F,a;S=(F=b.overlay)==null?void 0:(a=F.shortsAdsRenderer)==null?void 0:a.adSlots;if(S!==void 0)S.length===
0?(_.wC("Shorts ads returned no ad slots."),b=void 0):(S.length>1&&_.wC("Shorts ads has more than one ad slots."),b=_.c(S[0],_.Jqb));else{var P,K;b=_.c((P=b.overlay)==null?void 0:(K=P.shortsAdsRenderer)==null?void 0:K.overlay,_.Jqb)}P=b;b=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.c(this.currentEndpoint,_.cd),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});var n;return{reelPlayerOverlayRenderer:y,thumbnail:h,command:b,adsOverlay:P,
videoId:(n=_.c(this.currentEndpoint,_.cd))==null?void 0:n.videoId}}}};
_.d.created=function(){var b=this;this.scrollToVideoThrottle=new _.MG(function(h,y){y=y===void 0?"smooth":y;var S;(S=b.getActiveReelVideo(h))==null||S.scrollIntoView({behavior:y,block:"nearest",inline:b.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.shortsController=_.H9().resolve(_.Sc);this.maybeCreateIntersectionObserver()};
_.d.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.d.attached=function(){var b=this;_.H9().resolve(_.Sc).registerRootElement(this);this.pageScrollElement=_.$x(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.Hl(this,this.processResetAction));_.r("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){b.maybeCreateIntersectionObserver();b.scrollToVideoThrottle.fire(b.activeIndex,"instant");b.shortsContainer.style.overflowY=
"scroll"}))};
_.d.updateReelWatchSequenceResponse=function(){var b=this,h;if(_.r("web_enable_delay_shorts_sequence_call_new")&&this.currentEndpoint&&((h=_.c(this.currentEndpoint,_.cd))==null?0:h.sequenceParams)&&!this.reelWatchSequenceResponse){var y;(y=this.shortsController)==null||PjP(y,this.currentEndpoint).then(function(S){S&&(b.reelWatchSequenceResponse=S,b.cachedReelWatchSequenceResponse=S,_.xP.addLowPriorityJob(function(){b.observeShorts()}))})}};
_.d.calculateSqueezebackPanelSize=function(){var b=this,h=window.innerWidth-456-(window.innerHeight-106)*.5625;_.xP.addLowPriorityJob(function(){h<360?(b.hostElement.style.setProperty("--anchored-panel-width","480px"),_.hP().dispatch(nPP(!0))):(b.hostElement.style.setProperty("--anchored-panel-width",Math.min(h,480)+"px"),_.hP().dispatch(nPP(!1)))})};
_.d.detached=function(){var b=_.H9().resolve(_.Sc);b.rootElement=void 0;var h;(h=b.unsubscribeFromStore)==null||h.call(b);b.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.Hl(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.d.onResizeFinished=function(b,h){var y=this,S=new ResizeObserver(function(){y.shortsContainer.style.overflowY="hidden";_.xP.addLowPriorityJob(function(){h()},100)});
S.observe(b);return S};
_.d.resetDocumentScrollTop=function(){var b,h;if((b=document)==null?0:(h=b.scrollingElement)==null?0:h.scrollTop)document.scrollingElement.scrollTop=0};
_.d.loadPage_=function(b){var h=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),b){var y;if((y=_.c(this.currentEndpoint,_.cd))==null?0:y.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=b;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){h.isPlayerStarted&&
(h.handleOnPlaybackCommand(),h.afterPlayerStarted=function(){})};
this.registerPanel(b)}};
_.d.afterPlayerStarted=function(){};
_.d.handleOnPlaybackCommand=function(){if(_.r("web_shorts_comment_stickers")&&this.isPlayerStarted){var b,h=(b=_.c(this.currentEndpoint,_.cd))==null?void 0:b.onPlaybackCommand;h&&this.ytComponentBehavior.resolveCommand(h)}};
_.d.maybeCreateIntersectionObserver=function(){var b=this,h=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==h){this.intersectionObserverThreshold=h;var y={rootMargin:"0px",threshold:h},S;(S=this.intersectionObserver)==null||S.disconnect();this.intersectionObserver=new IntersectionObserver(function(F){F=_.L(F);for(var a=F.next();!a.done;a=F.next())if(a=a.value,a.intersectionRatio>h){a=Number(a.target.id);if(isNaN(a))break;if(a===b.index)break;
_.hMy();b.loadVideo(a);_.ex("r_vtc")}},y);
this.enableShortsSequenceRefactorUnify||this.observeShorts()}};
_.d.observeShorts=function(){var b,h,y,S=this.enableShortsSequenceRefactorUnify?((b=this.shortsContentList)==null?void 0:b.length)||0:(((h=this.shortsProcessedPrevSequence)==null?void 0:h.length)||0)+(((y=this.shortsProcessedSequence)==null?void 0:y.length)||0);if(this.carouselContainers.length<S&&(this.carouselContainers=[].concat(_.f$(_.$x(this.hostElement).querySelectorAll(".reel-video-in-sequence-new"))),this.enableShortsSequenceRefactorUnify))for(b=_.L(this.carouselContainers),h=b.next();!h.done;h=
b.next())h=h.value,y=void 0,(y=this.intersectionObserver)==null||y.observe(h);if(!this.enableShortsSequenceRefactorUnify)for(b=_.L(this.carouselContainers),h=b.next();!h.done;h=b.next())h=h.value,y=void 0,(y=this.intersectionObserver)==null||y.observe(h)};
_.d.initCsi=function(){_.ETD("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var b={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"}},h,y;if((h=this.playerData)==null?0:(y=h.cacheMetadata)==null?0:y.isCacheHit)b.isCacheHit=!0;var S;if(h=(S=_.c(this.currentEndpoint,_.cd))==null?void 0:
S.prefetchTaskId)b.prefetchInfo={taskId:h};_.WT(b)};
_.d.isAd=function(){var b,h;return!!((b=_.c(this.currentEndpoint,_.cd))==null?0:(h=b.adClientParams)==null?0:h.isAd)};
_.d.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.d.getPlayerContainer=function(){var b;return(b=_.$x(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:b.playerContainer};
_.d.onPlayerStateChange=function(b){var h=this;this.isPlayerPaused=b===2;b!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?b===1&&this.index===0&&(this.isPlayerStarted||_.hP().dispatch(XLA(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.hP().dispatch(XLA(!0)));this.player&&!this.player.getLoopVideo()&&_.xP.addLowPriorityJob(function(){h.getShortsLoopSetting().then(function(y){var S;(S=h.player)==null||S.setLoopVideo(y)})});
this.isPlayerPaused&&_.r("web_shorts_paused_state_logging")&&_.fI(_.UE(),[this.reelPlayerPausedStateRendererVe])};
_.d.isShortPlayable=function(){if(_.r("kevlar_playable_short_killswitch"))return!0;var b;return(b=this.playerData)!=null&&b.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.d.setNormalPlaybackSpeed=function(){var b=this,h,y;return _.Z(function(S){if(S.nextAddress==1)return S.yield(b.getPlayer().getPlayerPromise(),2);h=S.yieldResult;y=h.getPlaybackRate();y!==1&&(b.storedPlaybackSpeed=y,h.setPlaybackRate(1));_.g3(S)})};
_.d.restorePlaybackSpeed=function(){var b=this,h;return _.Z(function(y){if(y.nextAddress==1)return b.storedPlaybackSpeed===null?y.jumpTo(0):y.yield(b.getPlayer().getPlayerPromise(),3);h=y.yieldResult;h.setPlaybackRate(b.storedPlaybackSpeed);b.storedPlaybackSpeed=null;_.g3(y)})};
_.d.playerDataChanged=function(){var b=this,h,y,S,F,a,P,K,n,X;return _.Z(function(u){if(u.nextAddress==1){h=b.getPlayer();b.enableShortsSequenceRefactorUnify||(y=b.intersectionObserver)==null||y.disconnect();if(b.playerData){if(((S=b.playerData.videoDetails)==null?void 0:S.videoId)!==((F=h.getPlayer())==null?void 0:F.getVideoData().video_id)){a={};if(P=_.c(b.currentEndpoint,_.cd))a.watch_endpoint=P,P.endTimeSeconds&&(a.end=P.endTimeSeconds);h.loadVideoWithPlayerResponse(b.playerData,a)}}else return u.return();
return b.player?u.jumpTo(2):u.yield(h.getPlayerPromise(),3)}u.nextAddress!=2&&(b.player=u.yieldResult,b.JSC$23097_playerStateChangeListener=b.onPlayerStateChange.bind(b),b.player.addEventListener("onStateChange",b.JSC$23097_playerStateChangeListener),_.r("kevlar_client_enable_shorts_player_bootstrap")&&_.Eo(),b.scrollToVideoThrottle.fire(b.index),b.movePlayerToVideo(b.index),_.xP.addLowPriorityJob(function(){b.getShortsLoopSetting().then(function(O){var N;(N=b.player)==null||N.setLoopVideo(O)})}),
_.l3W.resolve(b.player),b.player.syncVolume(),b.getPlayer().focusOnPlayer());
_.xP.addLowPriorityJob(function(){b.observeShorts()},100);
K=b.player.getPlayerState(b.player.getPresentingPlayerType());K!==1||b.isPlayerStarted||_.hP().dispatch(XLA(!0));b.updateBackNavContainerWidth();n=_.c(b.currentEndpoint,_.cd);((X=n)==null?0:X.startTimeSeconds)&&b.player.seekTo(n.startTimeSeconds);if(b.JSC$23097_cinematicController||b.cinematicsInitializeJobId)return u.return();b.cinematicsInitializeJobId=_.xP.addLowPriorityJob(function(){b.initCinematicController();b.cinematicsInitializeJobId=void 0});
_.g3(u)})};
_.d.onShortUndoDismiss=function(){var b=this,h=LBP().pop();h!==void 0&&(_.Ob(this,function(){b.showCardWithIndex(h)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.d.onShortsDismiss=function(b){if(b=b.detail.reelDismissalActionRenderer)(b=_.c(b.onDismissalCompletionRenderer,_.n0J))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:b}}}),this.scrollAndDismissCard()};
_.d.processReelNonVideoContentDismissalCommand=function(b){var h=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);b=_.c(b,DO9);this.activeDimissalTimeout=setTimeout(function(){h.scrollAndDismissCard()},Number(b==null?void 0:b.delayMs))};
_.d.scrollAndDismissCard=function(){var b=this,h=this.index;LBP().push(h);_.Ob(this,function(){var y=b.getPlayableNextIndex();y!==null&&(b.hideCardWithIndex(h),b.scrollToVideoThrottle.fire(y))})};
_.d.hideCardWithIndex=function(b){if(b=this.getActiveReelVideo(b))b.hidden=!0};
_.d.showCardWithIndex=function(b){if(b=this.getActiveReelVideo(b))b.hidden=!1};
_.d.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.d.activeChanged=function(b){_.hP().dispatch(_.$8({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:b}}));if(b)document.addEventListener("keydown",_.Hl(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var h;(h=this.player)==null||h.sendAbandonmentPing()}var y;(y=this.player)==null||y.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.Hl(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.d.graftClientVisualElements=function(){if(this.data){var b=_.rU();_.iX5(b,_.$p({response:this.reelWatchSequenceResponse}));_.lC(b,this.nextReelVe);_.lC(b,this.prevReelVe);_.r("kevlar_shorts_auto_advance")&&(_.lC(b,this.loopToggleOffVe),_.lC(b,this.loopToggleOnVe));_.lC(b,this.ambientModeToggleVe);_.fI(_.UE(),[this.nextReelVe,this.prevReelVe]);_.r("web_shorts_paused_state_logging")&&_.lC(b,this.reelPlayerPausedStateRendererVe)}};
_.d.graftNvcRenderer=function(){var b,h,y,S,F,a,P=this.enableShortsSequenceRefactorUnify?(b=this.shortsContentList)==null?void 0:(h=b[this.index])==null?void 0:h.command:this.index<0?(y=this.shortsProcessedPrevSequence)==null?void 0:(S=y[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:S.command:(F=this.shortsProcessedSequence)==null?void 0:(a=F[this.index])==null?void 0:a.command;if(P&&this.isNonVideoContentCommand(P)){b=_.c(P,_.XI);var K,n;(b=(K=_.c(b==null?void 0:b.renderer,_.uC))==
null?void 0:(n=K.loggingDirectives)==null?void 0:n.trackingParams)&&_.rU().graftServerVe(b)}};
_.d.setActiveIndex=function(){_.H9().resolve(_.Sc).setActiveIndex(this.index)};
_.d.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.d.lazyUpdateMiniplayerData=function(){var b=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.xP.addLowPriorityJob(function(){b.updateMiniplayerData();b.updateMiniplayerDataJobId=void 0}))};
_.d.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.xP.cancelJob(this.updateMiniplayerDataJobId)};
_.d.updateMiniplayerData=function(){var b,h,y,S=_.H9().resolve(_.Vp),F={shortsData:this.getCurrentShort(),previousButtonDisabled:!((b=this.prevButtonData)==null||!b.isDisabled),nextButtonDisabled:!((h=this.nextButtonData)==null||!h.isDisabled),playabilityStatus:(y=this.playerData)==null?void 0:y.playabilityStatus};_.wN(S,F)};
_.d.resetPlayerLocation=function(){var b=this.getPlayer();this.initialPlayerContainer&&b.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.d.movePlayerToVideo=function(b,h){var y=this;h=h===void 0?!0:h;var S=this.getActiveReelVideo(b),F=this.getPlayer();if(S){this.overlayContainer?S.appendChild(this.overlayContainer):(this.overlayContainer=_.$x(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,S.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||F.appendTo(this.overlayContainer.playerContainer,void 0,!0));var a;(a=this.player)==null||a.setSize(NaN,NaN);this.isActive||_.VT(_.xP,function(){y.isActive=
!0});
F.style.visibility="visible";this.playerInPosition=!0;this.hasDataUpdated&&this.unhideCurrentOverlay();_.r("reels_web_disable_rtr_tick")||_.r("reels_web_use_pbs_first_shorts")&&b===0||_.pI("r_tr");this.currentPlayerIndex=b;S.appendChild(this.errorScreenContainer);var P;(P=this.JSC$23097_cinematicController)==null||_.YMJ(P)}else h?_.xP.addLowPriorityJob(function(){y.movePlayerToVideo(y.index,!1)}):Math.random()<=_.tj("web_shorts_error_logging_threshold")&&_.mm(new _.Gn("Trying to movePlayerToVideo with undefined container.",
{firstAttempt:h,
index:b}))};
_.d.getAspectRatio=function(b){return(b==null?0:b.thumbnail)&&w9D(b.thumbnail)?"--ytd-shorts-player-ratio: "+w9D(b.thumbnail):"--ytd-shorts-player-ratio: 0.5625"};
_.d.getBackgroundImage=function(b){if(b!=null&&b.thumbnail)return(b=_.Fv(b.thumbnail.thumbnails))?'background-image:url("'+b+'");':"background-color:black;"};
_.d.onPersistentPanelActiveChanged=function(){var b=this.getCurrentShort();if(b&&(b==null?0:b.thumbnail)&&w9D(b.thumbnail)!==.5625){var h;(h=this.player)==null||h.setSize(NaN,NaN)}};
_.d.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.d.moveCinematicsToVideo=function(){var b=_.$x(this.hostElement).querySelector("ytd-reel-video-renderer");(b==null?0:b.cinematicContainer)&&b.cinematicContainer!==this.shortsCinematicContainer.parentElement&&b.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.d.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.d.updatePrevButtonData=function(){var b=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);b?this.prevButtonData=b=Object.assign({},b,{accessibility:{label:_.Mt("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},tooltip:this.isUpArrowHidden?"":_.Mt("PREVIOUS_VIDEO_LABEL")}):this.prevButtonData&&(this.prevButtonData=b=Object.assign({},this.prevButtonData,{isDisabled:!1}))};
_.d.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.d.updateNextButtonData=function(){var b=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);b&&(this.nextButtonData=b=Object.assign({},b,{accessibility:{label:_.Mt("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},tooltip:_.Mt("NEXT_VIDEO_LABEL")||""}))};
_.d.getPlayablePreviousIndex=function(){for(var b,h=this.index-1;h>=-(((b=this.prevShortsSequence)==null?void 0:b.length)||0);h--)if(!LBP().includes(h))return h;return null};
_.d.getIndexInSequence=function(b,h){return b.findIndex(function(y){var S;return((S=_.c(y.command,_.cd))==null?void 0:S.videoId)===h})};
_.d.handlePrevButtonClick=function(b){var h=this,y,S;return _.Z(function(F){y=h.getPlayablePreviousIndex();if(y===null)return F.return();h.gestureType=((S=b)==null?void 0:S.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";y===0&&(h.hidePreviousButtonImmediately=!0);if(h.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){h.scrollToVideoThrottle.fire(y,"auto")}),F.return();
h.scrollToVideoThrottle.fire(y);_.g3(F)})};
_.d.getPlayableNextIndex=function(){for(var b,h,y=this.index+1;y<(this.enableShortsSequenceRefactorUnify?(b=this.shortsContentList)==null?void 0:b.length:((h=this.shortsProcessedSequence)==null?void 0:h.length)||0);y++)if(!LBP().includes(y))return y;return null};
_.d.handleNextButtonClick=function(b,h){var y=this,S,F;return _.Z(function(a){S=y.getPlayableNextIndex();if(S===null)return a.return();S===1&&(y.showPreviousButtonImmediately=!0);y.gestureType=((F=b)==null?void 0:F.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";h&&(y.gestureType=h);if(y.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){y.scrollToVideoThrottle.fire(S,"auto")}),a.return();
y.scrollToVideoThrottle.fire(S);_.g3(a)})};
_.d.handleReelNavigateCommand=function(b,h,y){(b=_.c(b,zv$))&&h&&b.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(y)};
_.d.loadVideo=function(b,h){var y=this;h=h===void 0?!1:h;if(b!==this.currentPlayerIndex){_.hP().dispatch(XLA(!1));if(this.isAd()&&!h){var S;(S=this.player)==null||S.notifyShortsAdSwipeEvent()}var F;(F=this.JSC$23097_cinematicController)==null||_.sAL(F);var a;(a=this.JSC$23097_cinematicController)==null||oPD(a);S=b>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(S));this.getPlayer().style.visibility="hidden";this.hasDataUpdated=this.playerInPosition=
!1;this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var P,K,n,X,u,O;h=this.enableShortsSequenceRefactorUnify?(P=this.shortsContentList)==null?void 0:(K=P[b])==null?void 0:K.command:b<0?(n=this.shortsProcessedPrevSequence)==null?void 0:(X=n[this.shortsProcessedPrevSequence.length+b])==null?void 0:X.command:(u=this.shortsProcessedSequence)==null?void 0:(O=u[b])==null?void 0:O.command;this.index=b;this.gestureType||(this.gestureType=S?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":
"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");h&&this.isVideoContentCommand(h)&&(this.ytComponentBehavior.resolveCommand(h,{form:{createScreenConfig:{clickedVisualElement:S?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(h&&this.isNonVideoContentCommand(h)){this.currentEndpoint=h;this.data=void 0;P=_.rU();K=_.c(h,_.XI);var N,t;(K=(N=_.c(K==null?void 0:K.renderer,_.uC))==null?void 0:(t=N.screenLoggingData)==null?void 0:t.screenVeType)&&_.w2(P,K);
this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&this.player.pauseVideo();(N=this.getActiveReelVideo(b))&&N.appendChild(this.overlayContainer)}var R,I;N=this.enableShortsSequenceRefactorUnify?((R=this.shortsContentList)==null?NaN:R.length)-4<=b:((I=this.reelWatchSequenceResponse)==null?void 0:I.entries)&&b===this.reelWatchSequenceResponse.entries.length-1;var U;if(((U=this.reelWatchSequenceResponse)==null?0:U.continuationEndpoint)&&N){var p,e,E={contentPlaybackContext:_.LW({},(e=_.c((p=
this.currentEndpoint)==null?void 0:p.commandMetadata,_.ZW))==null?void 0:e.url,window.location.href)};this.enableShortsSequenceRefactorUnify?this.continuationRequestPending||(_.N$(_.xP,function(){y.ytComponentBehavior.resolveCommand(y.reelWatchSequenceResponse.continuationEndpoint,{form:E})}),this.continuationRequestPending=!0):this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:E})}var Y,w;
b=this.enableShortsSequenceRefactorUnify?!1:b===-(((Y=this.reelWatchSequenceResponse)==null?void 0:(w=Y.prevEntries)==null?void 0:w.length)||0);var x,q;((x=this.reelWatchSequenceResponse)==null?0:x.prevContinuationEndpoint)&&((q=this.reelWatchSequenceResponse)==null?0:q.prevEntries)&&b&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.d.setMiniplayerPreview=function(b){b=(b===void 0?0:b)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var h,y,S,F,a=_.H9().resolve(_.Vp),P={shortsData:void 0,shortsPreviewThumbnail:b?this.enableShortsSequenceRefactorUnify?(h=this.shortsContentList)==null?void 0:(y=h[b])==null?void 0:y.thumbnail:(S=this.shortsProcessedSequence)==null?void 0:(F=S[b])==null?void 0:F.thumbnail:void 0};_.wN(a,P)};
_.d.updateTitle=function(b){var h,y;b=(b==null?0:b.adSlots)?"":(y=b==null?void 0:(h=b.videoDetails)==null?void 0:h.title)!=null?y:"";_.Sx(this.hostElement,"yt-update-title",b)};
_.d.registerPanel=function(b){var h=_.H9().resolve(_.Mp);if(h){b=_.L(b.engagementPanels||[]);for(var y=b.next();!y.done;y=b.next()){y=y.value;var S=this.getPanelIdentifier(y.engagementPanelSectionListRenderer),F=void 0,a=void 0;(a=(F=h).registerPanelContent)==null||a.call(F,S,y)}}};
_.d.getPanelIdentifier=function(b){var h;return(b==null?void 0:(h=b.identifier)==null?void 0:h.tag)||(b==null?void 0:b.panelIdentifier)||(b==null?void 0:b.targetId)};
_.d.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.firstShortsData=this.reelWatchSequenceResponse=this.data=void 0;this.shortsContentList=[];this.currentEndpoint=void 0;this.continuationRequestPending=this.endOfNextContinuation=this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.hP().dispatch(XLA(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;this.carouselContainers=
[];_.hP().dispatch(MKD(!1));var b;(b=this.shortsController)!=null&&(b.dismissedIndices=[]);var h;(h=this.shortsController)!=null&&h.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.H9().resolve(_.Vp).close(!0)};
_.d.processAppendReelWatchSequenceContinuationEntriesAction=function(b){var h=this,y;(y=this.intersectionObserver)==null||y.disconnect();b=b.appendReelWatchSequenceContinuationEntriesAction;if(b==null?0:b.entries){var S;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.f$(((S=this.reelWatchSequenceResponse)==null?void 0:S.entries)||[]),_.f$(b.entries)),continuationEndpoint:b.continuationEndpoint})}else if(b==null?0:b.prevEntries){var F;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.f$(((F=this.reelWatchSequenceResponse)==null?void 0:F.prevEntries)||[]),_.f$(b.prevEntries)),prevContinuationEndpoint:b.prevContinuationEndpoint});_.xP.addLowPriorityJob(function(){h.movePlayerToVideo(h.index);h.scrollToVideoThrottle.fire(h.index,"instant")})}else return;
_.xP.addLowPriorityJob(function(){h.observeShorts()},100)};
_.d.processWatchSequence=function(b){var h=this;return b.map(function(y){y=y.command;if(h.isVideoContentCommand(y)){var S=_.c(y,_.cd);return{reelPlayerOverlayRenderer:_.c(S==null?void 0:S.overlay,_.vNM),thumbnail:S.thumbnail,command:y}}return h.isNonVideoContentCommand(y)?(S=_.c(y,_.XI),{reelNonVideoContentRenderer:_.c(S==null?void 0:S.renderer,_.uC),command:y}):{command:y}})};
_.d.calculateIntersectionObserverThreshold=function(){var b=_.$x(this.hostElement).querySelector("ytd-reel-video-renderer"),h=1;(b==null?0:b.offsetHeight)&&(b==null?0:b.offsetWidth)&&(h=Math.min(b.offsetHeight,this.shortsContainer.offsetHeight)/b.offsetHeight*(Math.min(b.offsetWidth,this.shortsContainer.offsetWidth)/b.offsetWidth));return Math.round(h*.6*10)/10};
_.d.isVideoContentCommand=function(b){_.H9().resolve(_.Sc);return!!_.c(b,_.cd)};
_.d.isNonVideoContentCommand=function(b){_.H9().resolve(_.Sc);return!!_.c(b,_.XI)};
_.d.initCinematicController=function(){var b=this;if(this.player&&this.shortsCinematicContainer){this.JSC$23097_cinematicController=new _.Ol(this.shortsCinematicContainer,this.player);var h,y=_.c((h=this.data)==null?void 0:h.background,_.bv);_.g09(this.JSC$23097_cinematicController,y);_.CNJ(this.JSC$23097_cinematicController,xl2(y));_.epM(this.JSC$23097_cinematicController);_.xP.addLowPriorityJob(function(){b.moveCinematicsToVideo()})}};
_.d.handleMiniplayerNavigateShorts=function(b){b==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():b==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.d.handleSignalActionToggleShortsPictureInPicture=function(){if(_.H9().resolve(_.Vp).pictureInPictureSupported()){var b=_.H9().resolve(_.Sc);if(_.r("web_shorts_pip")){var h=_.H9().resolve(_.Vp);b.isShortsPipActive()?h.deactivate():h.isMiniplayerActive()||(_.h0().shortsPipActivation=!0,_.NdY(h))}}else(b=this.player)==null||b.togglePictureInPicture()};
_.tm.Object.defineProperties(WS.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var b;if((b=this.reelWatchSequenceResponse)!=null&&b.prevEntries)return this.processWatchSequence([].concat(_.f$(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence)return this.index>0?this.shortsProcessedPrevSequence:this.shortsProcessedPrevSequence&&this.prevShortsSequence&&this.shortsProcessedPrevSequence.length===this.prevShortsSequence.length?this.shortsProcessedPrevSequence:[].concat(_.f$(this.prevShortsSequence))}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var b;if((b=this.reelWatchSequenceResponse)!=null&&b.entries&&!this.enableShortsSequenceRefactorUnify)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){var b=this;if(this.firstShortsData){if(!this.shortsSequence)return[this.firstShortsData];var h;if(this.index<0||this.shortsProcessedSequence&&this.shortsSequence&&((h=this.shortsProcessedSequence)==null?void 0:h.length)>this.shortsSequence.length)return this.shortsProcessedSequence;var y;h=_.c((y=this.firstShortsData)==null?void 0:y.command,_.cd);if(h==null||!h.videoId)return this.shortsProcessedSequence;y=this.getIndexInSequence(this.shortsSequence,
h.videoId);if(y!==-1){if(this.shortsProcessedSequence&&this.shortsSequence&&this.shortsProcessedSequence.length===this.shortsSequence.length)return this.shortsProcessedSequence;this.index===0&&(this.currentPlayerIndex=this.index=y,_.xP.addLowPriorityJob(function(){b.scrollToVideoThrottle.fire(b.index,"auto");b.movePlayerToVideo(b.index)}));
return[].concat(_.f$(this.shortsSequence))}this.shortsProcessedPrevSequence||_.N$(_.xP,function(){b.observeShorts()},100);
return[this.firstShortsData].concat(_.f$(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var b=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;b&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(b)return!1;this.showPreviousButtonImmediately=!1}return this.hidePreviousButtonImmediately||this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null}},
isDownArrowHidden:{configurable:!0,enumerable:!0,get:function(){if(this.enableShortsSequenceRefactorUnify){var b;return this.index===((b=this.shortsContentList)==null?NaN:b.length)-1}if(this.endOfNextContinuation){var h,y;return this.index===((h=this.reelWatchSequenceResponse)==null?void 0:(y=h.entries)==null?void 0:y.length)}var S;return!((S=this.reelWatchSequenceResponse)==null?0:S.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var b;(b=this.delayedActiveIndexUpdateDebouncer)==null||b.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var b,h,y;return this.isShortPlayable()||((h=_.c((b=this.data)==null?void 0:b.watchStatus,_.$1N))==null?void 0:(y=h.style)==null?void 0:y.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var b=this,h=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),y;if((this.data||h)&&(((y=this.data)==null?0:y.engagementPanels)||this.isAd()||h)){h=!1;this.activePanel="shorts-comments-panel";var S;y=_.L(((S=this.data)==null?void 0:S.engagementPanels)||[]);for(S=y.next();!S.done;S=y.next())if(this.getPanelIdentifier(S.value.engagementPanelSectionListRenderer)===this.activePanel){h=!0;break}if(this.isPersistentPanelActive){var F=
_.H9().resolve(_.Mp);_.VT(_.xP,function(){F.showPanel({identifier:b.activePanel,target:null})},100)}var a;
S=[].concat(_.f$(Object.values(((a=this.data)==null?void 0:a.engagementPanels)||{})));a=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);y=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return a===void 0&&y===void 0||(a==null?0:a.isDisabled)||(y==null?void 0:y.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||
!h?(h=S==null?void 0:S.findIndex(function(P){var K,n;return((K=P.engagementPanelSectionListRenderer)==null?void 0:(n=K.identifier)==null?void 0:n.tag)==="shorts-comments-panel"}),h===-1||h===void 0||S!=null&&S.splice(h,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.Mt("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.Mt("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:_.Mt("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.Mt("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(_.f$(Object.values(S||
{})))):S}}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var b=this,h,y,S;if((h=this.playerData)==null?0:(y=h.playabilityStatus)==null?0:(S=y.errorScreen)==null?0:S.playerInterstitialRenderer)return _.xP.addLowPriorityJob(function(){b.movePlayerToVideo(b.index)}),this.playerData.playabilityStatus.errorScreen;
var F,a;return((F=this.data)==null?void 0:F.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((a=this.data)==null?0:a.watchStatus)&&_.c(this.data.watchStatus,_.IG7)?(_.xP.addLowPriorityJob(function(){b.movePlayerToVideo(b.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.tm.Object.defineProperties(WS,{template:{configurable:!0,enumerable:!0,get:function(){if(A9A===void 0){var b=document.createElement("template");_.D(b,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-backgrounds="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <template is="dom-if" if="[[!enableShortsSequenceRefactorUnify]]" class="style-scope ytd-shorts">\n      <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n        <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n          <template class="style-scope ytd-shorts">\n            <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n              <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n              </div>\n            </div>\n          </template>\n        </dom-repeat>\n      </template>\n      <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <template is="dom-if" if="[[enableShortsSequenceRefactorUnify]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsContentList]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n    </ytd-reel-video-renderer>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);A9A=b}b=A9A;return b}}});
WS.prototype.onNextButtonDataChange=WS.prototype.onNextButtonDataChange;WS.prototype.onPrevButtonDataChange=WS.prototype.onPrevButtonDataChange;WS.prototype.onPersistentPanelActiveChanged=WS.prototype.onPersistentPanelActiveChanged;WS.prototype.lazyUpdateMiniplayerData=WS.prototype.lazyUpdateMiniplayerData;WS.prototype.onShortsPipActiveChanged=WS.prototype.onShortsPipActiveChanged;WS.prototype.setActiveIndex=WS.prototype.setActiveIndex;WS.prototype.graftNvcRenderer=WS.prototype.graftNvcRenderer;
WS.prototype.graftClientVisualElements=WS.prototype.graftClientVisualElements;WS.prototype.onActiveChanged=WS.prototype.onActiveChanged;WS.prototype.onShortsDismiss=WS.prototype.onShortsDismiss;WS.prototype.onShortUndoDismiss=WS.prototype.onShortUndoDismiss;WS.prototype.playerDataChanged=WS.prototype.playerDataChanged;WS.prototype.afterPlayerStarted=WS.prototype.afterPlayerStarted;WS.prototype.updateReelWatchSequenceResponse=WS.prototype.updateReelWatchSequenceResponse;
WS.prototype.unhideCurrentOverlay=WS.prototype.unhideCurrentOverlay;WS.prototype.onServiceRequestCompleted=WS.prototype.onServiceRequestCompleted;WS.prototype.engagementPanelsChanged=WS.prototype.engagementPanelsChanged;WS.prototype.onFullscreenChange=WS.prototype.onFullscreenChange;WS.prototype.onResize=WS.prototype.onResize;WS.prototype.setShortsContentList=WS.prototype.setShortsContentList;WS.prototype.setFirstShortsData=WS.prototype.setFirstShortsData;
_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],WS.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.So.YtPageBehavior),_.f("design:type",Object)],WS.prototype,"ytPageBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],WS.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.ab),_.f("design:type",Object)],WS.prototype,"ironResizableBehavior",void 0);
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],WS.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.rP),_.f("design:type",Object)],WS.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.B(_.DV.YtdGuideStateAwareBehavior),_.f("design:type",Object)],WS.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],WS.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],WS.prototype,"data",void 0);
_.V([_.C(),_.f("design:type",Object)],WS.prototype,"playerData",void 0);_.V([_.C(),_.f("design:type",Object)],WS.prototype,"reelWatchSequenceResponse",void 0);_.V([_.C(),_.f("design:type",Object)],WS.prototype,"cachedReelWatchSequenceResponse",void 0);_.V([_.C(),_.f("design:type",Object)],WS.prototype,"cachedSequenceParams",void 0);_.V([_.C(),_.f("design:type",Object)],WS.prototype,"cachedSequenceProvider",void 0);_.V([_.C(),_.f("design:type",Object)],WS.prototype,"currentEndpoint",void 0);
_.V([_.C(),_.f("design:type",Object)],WS.prototype,"nextButtonData",void 0);_.V([_.C(),_.f("design:type",Object)],WS.prototype,"prevButtonData",void 0);_.V([_.C(),_.f("design:type",Object)],WS.prototype,"isPreviousPageShorts",void 0);_.V([_.C(),_.f("design:type",Object)],WS.prototype,"index",void 0);_.V([_.C(),_.f("design:type",Object)],WS.prototype,"delayedActiveIndex",void 0);_.V([_.C(),_.f("design:type",Object)],WS.prototype,"playablePreviousIndex",void 0);
_.V([_.C(),_.f("design:type",Object)],WS.prototype,"player",void 0);_.V([_.C(),_.f("design:type",Object)],WS.prototype,"isPlayerPaused",void 0);_.V([_.C({selector:qM2}),_.f("design:type",Object)],WS.prototype,"isPlayerStarted",void 0);_.V([_.C(),_.f("design:type",Object)],WS.prototype,"intersectionObserver",void 0);_.V([_.C(),_.f("design:type",Number)],WS.prototype,"cinematicsInitializeJobId",void 0);_.V([_.C(),_.f("design:type",Number)],WS.prototype,"updateMiniplayerDataJobId",void 0);
_.V([_.C(),_.f("design:type",Object)],WS.prototype,"fitToVisibleBounds",void 0);_.V([_.C(),_.f("design:type",Object)],WS.prototype,"pageSubtype",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],WS.prototype,"enablePreviousContinuation",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],WS.prototype,"shortsPipEnabled",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],WS.prototype,"isDark",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],WS.prototype,"shortsViewTransitions",void 0);_.V([_.C({selector:_.jD,reflectToAttribute:!0}),_.f("design:type",Object)],WS.prototype,"isFullscreen",void 0);_.V([_.C({selector:_.$G,reflectToAttribute:!0}),_.f("design:type",Object)],WS.prototype,"isShortsPipActive",void 0);_.V([_.to("#shorts-inner-container"),_.f("design:type",HTMLElement)],WS.prototype,"shortsInnerContainer",void 0);
_.V([_.to("#back-nav-button ytd-button-renderer"),_.f("design:type",_.Gu)],WS.prototype,"backNavButton",void 0);_.V([_.to("#shorts-container"),_.f("design:type",HTMLElement)],WS.prototype,"shortsContainer",void 0);_.V([_.Pn("error-screen"),_.f("design:type",HTMLElement)],WS.prototype,"errorScreenContainer",void 0);_.V([_.Pn("player"),_.f("design:type",Object)],WS.prototype,"playerElement",void 0);
_.V([_.Pn("shorts-cinematic-container"),_.f("design:type",HTMLElement)],WS.prototype,"shortsCinematicContainer",void 0);_.V([_.Pn("initial-player-container"),_.f("design:type",HTMLElement)],WS.prototype,"initialPlayerContainer",void 0);_.V([_.C(),_.f("design:type",Object)],WS.prototype,"buttonOverride",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],WS.prototype,"anchoredPanelActive",void 0);_.V([_.C(),_.f("design:type",String)],WS.prototype,"activePanel",void 0);
_.V([_.C(),_.f("design:type",Object)],WS.prototype,"isActive",void 0);_.V([_.C({selector:lIp,reflectToAttribute:!0}),_.f("design:type",Object)],WS.prototype,"smallScreenPersistentPanel",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],WS.prototype,"isPersistentPanelActive",void 0);_.V([_.C(),_.f("design:type",Object)],WS.prototype,"smallScreenSqueezeBack",void 0);_.V([_.C(),_.f("design:type",Object)],WS.prototype,"enableScrollIntoViewCenter",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],WS.prototype,"enableFlexibleOverlay",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],WS.prototype,"extractOverlay",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],WS.prototype,"useAspectRatio",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],WS.prototype,"enableShortsSequenceRefactorUnify",void 0);
_.V([_.C(),_.f("design:type",Object)],WS.prototype,"continuationRequestPending",void 0);_.V([_.C(),_.f("design:type",Object)],WS.prototype,"shortsController",void 0);_.V([_.C(),_.f("design:type",Object)],WS.prototype,"panelContainer",void 0);_.V([_.C(),_.f("design:type",Object)],WS.prototype,"overlayContainer",void 0);_.V([_.C(),_.f("design:type",Array)],WS.prototype,"carouselContainers",void 0);_.V([_.C(),_.f("design:type",Object)],WS.prototype,"isShortsInitialized",void 0);
_.V([_.C(),_.f("design:type",Object)],WS.prototype,"firstShortsData",void 0);_.V([_.C(),_.f("design:type",Object)],WS.prototype,"firstShortsDataModel",void 0);_.V([_.C(),_.f("design:type",Array)],WS.prototype,"shortsContentList",void 0);_.V([_.W("reelWatchSequenceResponse"),_.f("design:type",Object),_.f("design:paramtypes",[])],WS.prototype,"prevShortsSequence",null);
_.V([_.W("data","prevShortsSequence"),_.f("design:type",Object),_.f("design:paramtypes",[])],WS.prototype,"shortsProcessedPrevSequence",null);_.V([_.W("reelWatchSequenceResponse"),_.f("design:type",Object),_.f("design:paramtypes",[])],WS.prototype,"shortsSequence",null);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],WS.prototype,"setFirstShortsData",null);
_.V([_.OB("reelWatchSequenceResponse","firstShortsData"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],WS.prototype,"setShortsContentList",null);_.V([_.W("data","shortsSequence","firstShortsData"),_.f("design:type",Object),_.f("design:paramtypes",[])],WS.prototype,"shortsProcessedSequence",null);
_.V([_.C({reflectToAttribute:!0}),_.W("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],WS.prototype,"isUpArrowHidden",null);_.V([_.C({reflectToAttribute:!0}),_.W("reelWatchSequenceResponse","index","endOfNextContinuation","shortsContentList"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],WS.prototype,"isDownArrowHidden",null);
_.V([_.C(),_.W("index"),_.f("design:type",Number),_.f("design:paramtypes",[])],WS.prototype,"activeIndex",null);_.V([_.W("isShortPlayable","data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],WS.prototype,"shouldRenderOfflineContent",null);_.V([_.u3("iron-resize"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],WS.prototype,"onResize",null);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],WS.prototype,"anchoredEngagementPanels",null);
_.V([_.C(),_.f("design:type",Object)],WS.prototype,"watchWhileEngagementPanels",void 0);_.V([_.OB("isFullscreen"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],WS.prototype,"onFullscreenChange",null);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],WS.prototype,"engagementPanelsChanged",null);
_.V([_.u3("yt-service-request-completed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,_.xE]),_.f("design:returntype")],WS.prototype,"onServiceRequestCompleted",null);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],WS.prototype,"unhideCurrentOverlay",null);_.V([_.OB("currentEndpoint"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],WS.prototype,"updateReelWatchSequenceResponse",null);
_.V([_.OB("isPlayerStarted"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],WS.prototype,"afterPlayerStarted",null);_.V([_.W("playerData","reelWatchSequenceResponse","data"),_.f("design:type",Object),_.f("design:paramtypes",[])],WS.prototype,"errorScreen",null);_.V([_.W("errorScreen"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],WS.prototype,"hasError",null);
_.V([_.OB("playerData"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype",Promise)],WS.prototype,"playerDataChanged",null);_.V([_.u3("yt-dismissible-item-undo-feedback"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],WS.prototype,"onShortUndoDismiss",null);_.V([_.u3("yt-disable-lockup-interaction"),_.f("design:type",Function),_.f("design:paramtypes",[Object]),_.f("design:returntype")],WS.prototype,"onShortsDismiss",null);
_.V([_.zj("active"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],WS.prototype,"onActiveChanged",null);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],WS.prototype,"graftClientVisualElements",null);_.V([_.OB("currentPlayerIndex"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],WS.prototype,"graftNvcRenderer",null);
_.V([_.OB("index"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],WS.prototype,"setActiveIndex",null);_.V([_.OB("isShortsPipActive"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],WS.prototype,"onShortsPipActiveChanged",null);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],WS.prototype,"lazyUpdateMiniplayerData",null);
_.V([_.C(),_.f("design:type",Object)],WS.prototype,"onOverlayDensityChanged",void 0);_.V([_.OB("isPersistentPanelActive"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],WS.prototype,"onPersistentPanelActiveChanged",null);_.V([_.OB("index","data","isUpArrowHidden"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],WS.prototype,"onPrevButtonDataChange",null);
_.V([_.OB("index","data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],WS.prototype,"onNextButtonDataChange",null);_.V([_.Yx({is:"ytd-shorts"})],WS);_.N1.registerService(_.yhY,WS);
_.mn();
}catch(e){_._DumpException(e)}
try{
_.QY("JzFVk");
var YWR;var Tgx;var v6=function(){return _.g.apply(this,arguments)||this};
_.z(v6,_.g);v6.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
v6.prototype.computeBlueBottomLink=function(b){return b};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],v6.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],v6.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],v6.prototype,"data",void 0);_.V([_.C({computed:"computeIcon_(data.bottomIcon)"}),_.f("design:type",String)],v6.prototype,"bottomIcon",void 0);
_.V([_.C({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.f("design:type",Boolean)],v6.prototype,"enableBlueBottomLink",void 0);_.V([_.Yx({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],v6);
_.k(v6,"ytd-web-answer-renderer",function(){if(Tgx!==void 0)return Tgx;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return Tgx=b},{mode:_.Lt("kevlar_poly_si_batch_j035")?1:2});var GwP;var bT=function(){var b=_.g.apply(this,arguments)||this;b.hasChipBar=!1;return b};
_.z(bT,_.g);bT.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}}};
bT.prototype.computeHasChipBar=function(b){return!(b==null||!b.chipBar)};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],bT.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],bT.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],bT.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.f("design:type",Object)],bT.prototype,"hasChipBar",void 0);_.V([_.Yx({is:"ytd-search-header-renderer",disableElementRegistration:!0})],bT);
_.k(bT,"ytd-search-header-renderer",function(){if(GwP!==void 0)return GwP;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return GwP=b},{mode:1});var kw_;var hI=function(){return _.g.apply(this,arguments)||this};
_.z(hI,_.g);hI.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],hI.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],hI.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],hI.prototype,"data",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-page-continuation"})],hI);
_.k(hI,"ytd-page-continuation",function(){if(kw_!==void 0)return kw_;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return kw_=b},{mode:1});var VYJ;var EZD;var ilx;var fb_=function(){return _.g.apply(this,arguments)||this};
_.z(fb_,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],fb_.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],fb_.prototype,"data",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],fb_);
_.k(fb_,"ytd-watch-card-one-vs-one-event",function(){if(ilx!==void 0)return ilx;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return ilx=b},{mode:1});var w4f=function(){return _.g.apply(this,arguments)||this};
_.z(w4f,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],w4f.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],w4f.prototype,"data",void 0);_.V([_.Yx({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],w4f);
_.k(w4f,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(EZD!==void 0)return EZD;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return EZD=b},{mode:1});var lbA;var qWP=function(){return _.g.apply(this,arguments)||this};
_.z(qWP,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],qWP.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],qWP.prototype,"data",void 0);_.V([_.Yx({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],qWP);
_.k(qWP,"ytd-banner-and-box-hero-image-renderer",function(){if(lbA!==void 0)return lbA;var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return lbA=b},{mode:1});var xUD;var y9=function(){var b=_.g.apply(this,arguments)||this;b.modern=_.r("web_modern_buttons");return b};
_.z(y9,_.g);y9.prototype.computeIcon=function(){var b,h,y=(b=this.data)==null?void 0:(h=b.icon)==null?void 0:h.iconType;if(y)return _.o_(y)};
y9.prototype.computeButtonShape=function(){var b;return{buttonText:_.vi((b=this.data)==null?void 0:b.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.tm.Object.defineProperties(y9.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"}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],y9.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],y9.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],y9.prototype,"modern",void 0);_.V([_.C({type:_.r("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.W("data.style"),_.f("design:type",Object),_.f("design:paramtypes",[])],y9.prototype,"buttonColor",null);
_.V([_.Yx({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],y9);
_.k(y9,"ytd-call-to-action-button-renderer",function(){if(xUD!==void 0)return xUD;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return xUD=b},{mode:1});var Qe9;var Sr=function(){return _.g.apply(this,arguments)||this};
_.z(Sr,_.g);Sr.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.$x(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.Ss(this.data.leftThumbnail.thumbnails,216)+")")};
Sr.prototype.onLeftThumbnailChanged=Sr.prototype.onLeftThumbnailChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Sr.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Sr.prototype,"data",void 0);_.V([_.OB("data.leftThumbnail"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Sr.prototype,"onLeftThumbnailChanged",null);_.V([_.Yx({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],Sr);
_.k(Sr,"ytd-collage-hero-image-renderer",function(){if(Qe9!==void 0)return Qe9;var b=document.createElement("template");_.D(b,'\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>');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return Qe9=b},{mode:1});var mU_;var FZ=function(){return _.g.apply(this,arguments)||this};
_.z(FZ,_.g);FZ.prototype.computeStyle=function(b){return b};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],FZ.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],FZ.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.f("design:type",String)],FZ.prototype,"componentStyle",void 0);_.V([_.Yx({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],FZ);
_.k(FZ,"ytd-single-hero-image-renderer",function(){if(mU_!==void 0)return mU_;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return mU_=b},{mode:1});var vZ2;var ao=function(){return _.g.apply(this,arguments)||this};
_.z(ao,_.g);_.d=ao.prototype;
_.d.configureRendererStamper=function(){return{"data.heroImage":{id:"hero-image",mapping:{bannerAndBoxHeroImageRenderer:"ytd-banner-and-box-hero-image-renderer",singleHeroImageRenderer:"ytd-single-hero-image-renderer",collageHeroImageRenderer:"ytd-collage-hero-image-renderer"}},"data.callToActionButton":{id:"call-to-action-button",mapping:{callToActionButtonRenderer:"ytd-call-to-action-button-renderer"}},"data.reminderButton":{id:"reminder-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",
buttonRenderer:"ytd-button-renderer"}},"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayResumePlaybackRenderer:"ytd-thumbnail-overlay-resume-playback-renderer",thumbnailOverlaySidePanelRenderer:"ytd-thumbnail-overlay-side-panel-renderer",thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayToggleButtonRenderer:"ytd-thumbnail-overlay-toggle-button-renderer"},
initialRenderPriority:_.r("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.d.computeSubtitle=function(b){if(this.data){var h;if(this.data.upcomingEventData){b=_.vi(b.subtitle);var y=Number(this.data.upcomingEventData.startTime);isNaN(y)||(h=_.mk(_.BC(b,y)))}else h=b.subtitle;return h}};
_.d.onHeroTap=function(b){b.preventDefault();var h=this.data&&this.data.navigationEndpoint;!h||!_.mf(_.Qk(b),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.mf(_.Qk(b),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.r("kevlar_watchcard_hero_video_renderer_killswitch")?_.Sx(this.hostElement,"yt-navigate",{navigationEndpoint:h}):this.ytComponentBehavior.resolveCommand(h))};
_.d.computeHeroTabIndex=function(b){return b&&b.simpleText?-1:0};
_.d.computeHeroRole=function(b){return b&&b.simpleText?"":"link"};
_.d.computeIsReminderButtonPresent=function(b){return!(!b||!b.reminderButton)};
_.d.computeHideBottomItems=function(b){return!(this.computeIsReminderButtonPresent(b)||b.subtitle)};
_.d.dataChanged=function(){var b=this.get("data.buttons.buttonRenderer.serviceEndpoint"),h;((h=_.c(b==null?void 0:b.commandMetadata,_.Sg))==null?0:h.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(b)};
ao.prototype.dataChanged=ao.prototype.dataChanged;_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],ao.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],ao.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],ao.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],ao.prototype,"data",void 0);
_.V([_.C({computed:"computeSubtitle(data)"}),_.f("design:type",String)],ao.prototype,"subtitle",void 0);_.V([_.C({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.f("design:type",Boolean)],ao.prototype,"isReminderButtonPresent",void 0);_.V([_.C({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.f("design:type",Boolean)],ao.prototype,"hideBottomItems",void 0);
_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],ao.prototype,"dataChanged",null);_.V([_.Yx({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],ao);
_.k(ao,"ytd-watch-card-hero-video-renderer",function(){if(vZ2!==void 0)return vZ2;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return vZ2=b},{mode:1});var bn$;var dM=function(){return _.g.apply(this,arguments)||this};
_.z(dM,_.g);_.d=dM.prototype;_.d.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"}}}};
_.d.computeTitleBadges=function(b){return b?[b]:[]};
_.d.computeHeaderStyle=function(b){return b?b.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.d.computeAvatarAriaLabel=function(b){if(b){var h,y,S,F;return(F=(h=b.avatar)==null?void 0:(y=h.accessibility)==null?void 0:(S=y.accessibilityData)==null?void 0:S.label)!=null?F:_.vi(b==null?void 0:b.title)}};
_.d.computeAvatarHeight=function(b){return b==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.d.computeBadgeRowClass=function(b){return(b==null?0:b[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],dM.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],dM.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],dM.prototype,"data",void 0);_.V([_.C({computed:"computeTitleBadges(data.titleBadge)"}),_.f("design:type",Array)],dM.prototype,"titleBadges",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.f("design:type",String)],dM.prototype,"headerStyle",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.f("design:type",String)],dM.prototype,"badgeRowClass",void 0);_.V([_.Yx({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],dM);
_.k(dM,"ytd-watch-card-rich-header-renderer",function(){if(bn$!==void 0)return bn$;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return bn$=b},{mode:1});var hpA;var yjD;var jr=function(){return _.g.apply(this,arguments)||this};
_.z(jr,_.g);jr.prototype.onMetadataTap=function(b){var h=this.data&&this.data.navigationEndpoint;h&&!_.mf(_.Qk(b),this.hostElement,["A".toString()])&&_.Sx(this.hostElement,"yt-navigate",{endpoint:h})};
_.tm.Object.defineProperties(jr.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 b;if(this.data.upcomingEventData){var h=_.vi(this.data.subtitle),y=Number(this.data.upcomingEventData.startTime);isNaN(y)||(b=_.mk(_.BC(h,y)))}else b=this.data.subtitle;return b}}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],jr.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],jr.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.W("data.style"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],jr.prototype,"isCondensed",null);_.V([_.C({reflectToAttribute:!0}),_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],jr.prototype,"subtitle",null);
_.V([_.Yx({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],jr);
_.k(jr,"ytd-watch-card-compact-video-renderer",function(){if(yjD!==void 0)return yjD;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return yjD=b},{mode:1});var SMA;var FwP=function(){return _.g.apply(this,arguments)||this};
_.z(FwP,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],FwP.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],FwP.prototype,"data",void 0);_.V([_.Yx({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],FwP);
_.k(FwP,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(SMA!==void 0)return SMA;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return SMA=b},{mode:1});var $_=function(){return _.g.apply(this,arguments)||this};
_.z($_,_.g);$_.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}}}}};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],$_.prototype,"ytRendererStamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],$_.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],$_.prototype,"data",void 0);_.V([_.Yx({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],$_);
_.k($_,"ytd-vertical-watch-card-list-renderer",function(){if(hpA!==void 0)return hpA;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return hpA=b},{mode:1});var aIM;var LJ=function(){var b=_.g.apply(this,arguments)||this;b.ariaExpanded="false";return b};
_.z(LJ,_.g);_.d=LJ.prototype;_.d.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.d.dataChanged=function(){var b;this.currentSeasonIndex=((b=this.data)==null?void 0:b.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.d.computeEpisodesInfo=function(b,h,y){if(b!==void 0&&h.length===b.length)return b[y]};
_.d.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.d.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.d.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.d.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.d.getUppercaseSimpleString=function(b){return this.ytRendererBehavior.getSimpleString(b).toUpperCase()};
_.d.updateCurrentSeasonIndexFromBinding=function(b){this.currentSeasonIndex=b.detail.value};
LJ.prototype.onIronOverlayClosed=LJ.prototype.onIronOverlayClosed;LJ.prototype.currentSeasonIndexChanged=LJ.prototype.currentSeasonIndexChanged;LJ.prototype.dataChanged=LJ.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],LJ.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],LJ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],LJ.prototype,"data",void 0);
_.V([_.C(),_.f("design:type",String)],LJ.prototype,"label",void 0);_.V([_.C({value:0}),_.f("design:type",Number)],LJ.prototype,"currentSeasonIndex",void 0);_.V([_.C({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.f("design:type",Object)],LJ.prototype,"episodesInfo",void 0);_.V([_.C({value:"false"}),_.f("design:type",Object)],LJ.prototype,"ariaExpanded",void 0);_.V([_.to("#lists"),_.f("design:type",Object)],LJ.prototype,"lists",void 0);
_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],LJ.prototype,"dataChanged",null);_.V([_.zj("currentSeasonIndex"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],LJ.prototype,"currentSeasonIndexChanged",null);_.V([_.u3("iron-overlay-closed"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],LJ.prototype,"onIronOverlayClosed",null);
_.V([_.Yx({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],LJ);
_.k(LJ,"ytd-watch-card-section-dropdown-renderer",function(){if(aIM!==void 0)return aIM;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return aIM=b},{mode:1});var dlM;var PS=function(){var b=_.g.apply(this,arguments)||this;b.isSearch=!1;return b};
_.z(PS,_.g);PS.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}}}}};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],PS.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],PS.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],PS.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],PS.prototype,"isSearch",void 0);_.V([_.Yx({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],PS);
_.k(PS,"ytd-watch-card-section-sequence-renderer",function(){if(dlM!==void 0)return dlM;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);
return dlM=b},{mode:1});var jAA=_.T(function(b){return _.M("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.M(_.rC,{data:function(){return b.data().ctaButton}},{buttonViewModel:_.EG}),_.M(_.zv,{text:function(){return b.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"Qn");
jAA.idomCompat=!0;_.yd(jAA,"ytd-button-banner-view-model",{props:{data:_.D4}});var KJ=function(){var b=_.g.apply(this,arguments)||this;b.isSearch=!1;return b};
_.z(KJ,_.g);
KJ.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"}}}};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],KJ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],KJ.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],KJ.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,value:!0}),_.f("design:type",Boolean)],KJ.prototype,"rounded",void 0);_.V([_.C(),_.f("design:type",Object)],KJ.prototype,"isSearch",void 0);
_.V([_.Yx({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],KJ);
_.k(KJ,"ytd-universal-watch-card-renderer",function(){if(VYJ!==void 0)return VYJ;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return VYJ=b},{mode:1});var $lD;_.yd(_.T(function(b){var h=b.data;var y;b=!((y=_.H9().resolve(_.XS(_.cC)))==null||!y());y={};return _.M("overview-message-view-model",{class:_.P2("ytwOverviewMessageViewModelHost",(y.ytwOverviewMessageViewModelDarkBackground=b,y.ytwOverviewMessageViewModelLightBackground=!b,y))},_.M(_.H,{cond:function(){return h().primaryImage},
then:function(S){return _.M(_.mI,{data:S,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.M(_.H,{cond:function(){return h().primaryText},
then:function(){return _.M("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.M(_.zv,{text:function(){return h().primaryText}}))}}),_.M(_.H,{cond:function(){return h().secondaryText},
then:function(){return _.M("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.M(_.zv,{text:function(){return h().secondaryText}}))}}))},"Rn"),"overview-message-view-model",{props:{data:_.D4}});_.yd(_.nUf,"ytd-overview-answer-view-model",{props:{data:_.D4}});var ZZ=function(){return _.g.apply(this,arguments)||this};
_.z(ZZ,_.g);ZZ.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"}}}};
ZZ.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],ZZ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],ZZ.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.p1),_.f("design:type",Object)],ZZ.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],ZZ.prototype,"data",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],ZZ.prototype,"isSearch",void 0);
_.V([_.Yx({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],ZZ);
_.k(ZZ,"ytd-secondary-search-container-renderer",function(){if($lD!==void 0)return $lD;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);
return $lD=b},{mode:1});var LwM;var oo=function(){var b=_.g.apply(this,arguments)||this;b.renderSecondarySearchContainer=!1;b.isSearch=!1;return b};
_.z(oo,_.g);_.d=oo.prototype;_.d.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"}}}};
_.d.created=function(){var b=this;this.boundStampSecondarySearchContainerIfFits=function(){b.stampSecondarySearchContainerIfFits()};
_.xZ("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.d.computeIsSearchFrictionPage=function(b){var h,y,S,F,a;b=b==null?void 0:(h=b.primaryContents)==null?void 0:(y=h.sectionListRenderer)==null?void 0:(S=y.contents)==null?void 0:(F=S[0])==null?void 0:(a=F.itemSectionRenderer)==null?void 0:a.contents;if(!b)return!1;h=_.L(b);for(y=h.next();!y.done;y=h.next())if(S=void 0,(S=y.value)==null?0:S.searchFrictionViewModel)return!0;return!1};
_.d.computeShowSecondaryColumn=function(b,h){return!!(h&&h.secondaryContents&&b)};
_.d.activeChanged=function(){var b=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.Hl(this,this.debounceStampSecondarySearchContainerIfFits)),_.fZ(function(){b.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.Hl(this,this.debounceStampSecondarySearchContainerIfFits))};
_.d.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.d.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.d.debounceStampSecondarySearchContainerIfFits=function(){_.wy(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.d.onRetrieveLocation=function(b,h){h.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);b.stopPropagation()};
_.d.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
oo.prototype.dataChanged=oo.prototype.dataChanged;oo.prototype.onRetrieveLocation=oo.prototype.onRetrieveLocation;oo.prototype.persistentGuideChanged=oo.prototype.persistentGuideChanged;oo.prototype.activeChanged=oo.prototype.activeChanged;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],oo.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],oo.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.DV.YtdGuideStateAwareBehavior),_.f("design:type",Object)],oo.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.B(_.ab),_.f("design:type",Object)],oo.prototype,"ironResizableBehavior",void 0);_.V([_.C(),_.f("design:type",Boolean)],oo.prototype,"active",void 0);_.V([_.C(),_.f("design:type",Object)],oo.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,value:function(){return _.r("enable_desktop_search_bigger_thumbs")}}),
_.f("design:type",Boolean)],oo.prototype,"useBiggerThumbs",void 0);_.V([_.C({reflectToAttribute:!0,value:function(){return _.rH("desktop_search_bigger_thumbs_style")}}),
_.f("design:type",String)],oo.prototype,"biggerThumbsStyle",void 0);_.V([_.C(),_.f("design:type",Object)],oo.prototype,"renderSecondarySearchContainer",void 0);_.V([_.C({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.f("design:type",Boolean)],oo.prototype,"showSecondaryColumn",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.f("design:type",Boolean)],oo.prototype,"isSearchFrictionPage",void 0);
_.V([_.C(),_.f("design:type",Object)],oo.prototype,"isSearch",void 0);_.V([_.OB("active"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],oo.prototype,"activeChanged",null);_.V([_.OB("guidePersistentAndVisible"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],oo.prototype,"persistentGuideChanged",null);
_.V([_.u3("yt-retrieve-location"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,Object]),_.f("design:returntype")],oo.prototype,"onRetrieveLocation",null);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],oo.prototype,"dataChanged",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],oo);
_.k(oo,"ytd-two-column-search-results-renderer",function(){if(LwM!==void 0)return LwM;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return LwM=b},{mode:1});var Ma=function(){var b=_.g.apply(this,arguments)||this;b.hasSearchHeader=!1;b.hasSecondaryContent=!1;b.hasBiggerThumbs=_.r("enable_desktop_search_bigger_thumbs");b.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return b};
_.z(Ma,_.g);_.d=Ma.prototype;_.d.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:_.qH(["aa","eocs"])}}};
_.d.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.d.loadPage_=function(b){this.initCsi();b&&(this.data=b,_.xZ("REFINEMENTS_TUPLE",["FromSearchResponse",b.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.Mi(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.d.initCsi=function(){_.ETD("results",["ol","cpt"])};
_.d.updateTitle=function(){var b=_.jh(window.location.href,"q");b||(b=_.jh(window.location.href,"search_query"));_.Sx(this.hostElement,"yt-update-title",b||"")};
_.d.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.d.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.r("web_srp_data_changed_terminate_imp_killswitch")||_.F8(this.hostElement,"yt-terminate-video-preview-action")};
_.d.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.d.computeHasSearchHeader=function(b){var h;b=b==null?void 0:(h=b.header)==null?void 0:h.searchHeaderRenderer;return!!b&&(!!b.searchFilterButton||!!b.chipBar)};
_.d.computeHasSecondaryContent=function(b){var h,y;return!!(b==null?0:(h=b.contents)==null?0:(y=h.twoColumnSearchResultsRenderer)==null?0:y.secondaryContents)};
_.tm.Object.defineProperties(Ma,{template:{configurable:!0,enumerable:!0,get:function(){if(YWR===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);YWR=b}b=YWR;return b}}});
Ma.prototype.onReloadContinuationFinish=Ma.prototype.onReloadContinuationFinish;Ma.prototype.dataChanged=Ma.prototype.dataChanged;_.V([_.B(_.So.YtPageBehavior),_.f("design:type",Object)],Ma.prototype,"ytPageBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],Ma.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Ma.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Ma.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.p1),_.f("design:type",Object)],Ma.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Ma.prototype,"data",void 0);_.V([_.C({value:!0}),_.f("design:type",Boolean)],Ma.prototype,"monitorScroll",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Ma.prototype,"hasSearchHeader",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Ma.prototype,"hasSecondaryContent",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Ma.prototype,"hasBiggerThumbs",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Ma.prototype,"dataChanged",null);
_.V([_.u3("yt-reload-continuation-finish"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Ma.prototype,"onReloadContinuationFinish",null);_.V([_.Yx({is:"ytd-search"})],Ma);_.N1.registerService(_.hCf,Ma);
_.mn();
}catch(e){_._DumpException(e)}
try{
_.QY("h8y2qb");
var f9x=function(b){if(b=_.fpY(b)){var h;(h=b.sources)!=null&&h[0]?(h=_.lpU(b),h=h<1?"VERTICAL":h>1?"HORIZONTAL":"SQUARE"):h=void 0;return h}},F6=function(b){_.fG.call(this,"upload");
this.opts.query=b},l99=function(b,h){return _.M(w0p,{data:b,
onYtNavigate:h})},qDA=function(b,h){return _.Mm(b.entities,"pageHeaderEntity",h)},QY2=function(b,h){return b.map(function(y){if(y.tabRenderer)return xKL(y.tabRenderer);
if(y.expandableTabRenderer&&h){var S=y.expandableTabRenderer;return{customTabRenderable:function(){return h(S)}}}return{}})},xKL=function(b){return{identifier:b.tabIdentifier,
aTagConfig:_.GK({innertubeCommand:b.endpoint,forceNewState:!0}),title:b.title,selected:b.selected,disabled:b.unselectable,icon:b.icon}},mK2=function(b){return _.$8({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:b})},vTM=function(b){if(!_.FQ(document,"gtm-noscript")){var h=document.createElement("noscript");
h.id="gtm-noscript";h.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+b+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(h)}};_.Pv(F6,_.fG);F6.prototype.JSC$10257_setLabel=function(b){F6.superClass_.JSC$10257_setLabel.call(this,b);return this};
F6.prototype.addUploadMetadata=function(b,h){F6.superClass_.addUploadMetadata.call(this,b,h);return this};var baA=function(b){if(b!=="youtubebanner"&&b!=="youtube-channel-banner")throw Error("ap");F6.call(this,b)};
_.z(baA,F6);baA.prototype.JSC$10257_setLabel=function(b){F6.prototype.JSC$10257_setLabel.call(this,b);return this};
baA.prototype.addUploadMetadata=function(b,h){F6.prototype.addUploadMetadata.call(this,b,h);return this};var hu_=[_.ab,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(b){_.rO(b).path[0]!==this&&(this.resetLayout(),b.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var b=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.JD(this._layoutDebouncer,_.A6,b);_.ey(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var b=this;requestAnimationFrame(function(){b.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(b){this.resizerShouldNotify(b)&&this._notifyDescendant(b)},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 yr9=[_.m$5,{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(b,h){var y=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[b];if(!y)throw new ReferenceError(this._getUndefinedMsg(b));b=this._boundEffect(y,h||{});b.setUp();return b},
_effectsChanged:function(b,h,y){this._tearDownEffects();b&&y&&(b.split(" ").forEach(function(S){var F;S!==""&&((F=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[S])?this._effects.push(this._boundEffect(F,h[S])):console.warn(this._getUndefinedMsg(S)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(b,h){h=h||{};var y=parseFloat(h.startsAt||0),S=parseFloat(h.endsAt||1),F=S-y,a=function(){};
S=y===0&&S===1?b.run:function(P,K){b.run.call(this,Math.max(0,(P-y)/F),K)};
return{setUp:b.setUp?b.setUp.bind(this,h):a,run:b.run?S.bind(this):a,tearDown:b.tearDown?b.tearDown.bind(this):a}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(b){b.setUp()!==!1&&this._effectsRunFn.push(b.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(b){b.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(b,h){this._effectsRunFn&&this._effectsRunFn.forEach(function(y){y(b,h)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var b=this._clampedScrollTop;this._updateScrollState(b);this.threshold>0&&this._setThresholdTriggered(b>=this.threshold)}},
_getDOMRef:function(b){console.warn("_getDOMRef","`"+b+"` is undefined")},
_getUndefinedMsg:function(b){return"Scroll effect `"+b+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+b+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("bp`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(b){var h={};b=parseFloat(b.scalar);h.background=this._getDOMRef("background");h.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");h.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");h.deltaBg=h.backgroundFrontLayer.offsetHeight-h.background.offsetHeight;h.deltaBg===0?(isNaN(b)&&(b=.8),h.deltaBg=(this._dHeight||0)*b):(isNaN(b)&&(b=
1),h.deltaBg*=b);this._fxParallaxBackground=h},
run:function(b){var h=this._fxParallaxBackground;this.transform("translate3d(0px, "+h.deltaBg*Math.min(1,b)+"px, 0px)",h.backgroundFrontLayer);h.backgroundRearLayer&&this.transform("translate3d(0px, "+h.deltaBg*Math.min(1,b)+"px, 0px)",h.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var S5$;var F2M;var aCD=function(){};
_.d=aCD.prototype;_.d._scrollTargetChanged=function(){};
_.d.scroll=function(){};
_.d._isValidScrollTarget=function(){};
_.d._toggleScrollListener=function(){};
_.d.toggleScrollListener=function(){};
_.d.createEffect=function(){};
_.d._effectsChanged=function(){};
_.d._layoutIfDirty=function(){};
_.d._boundEffect=function(){};
_.d._setUpEffect=function(){};
_.d._tearDownEffects=function(){};
_.d._runEffects=function(){};
_.d._scrollHandler=function(){};
_.d._scrollStateChanged=function(){};
_.d._getUndefinedMsg=function(){};
_.d.notifyResize=function(){};
_.d.assignParentResizable=function(){};
_.d.stopResizeNotificationsFor=function(){};
_.d._subscribeIronResize=function(){};
_.d._unsubscribeIronResize=function(){};
_.d.resizerShouldNotify=function(){};
_.d._onDescendantIronResize=function(){};
_.d._fireResize=function(){};
_.d._onIronRequestResizeNotifications=function(){};
_.d._parentResizableChanged=function(){};
_.d._notifyDescendant=function(){};
_.d._requestResizeNotifications=function(){};
_.d._findParent=function(){};
_.d._appResetLayoutHandler=function(){};
_.d.resetLayout=function(){};
_.d._notifyLayoutChanged=function(){};
_.d._notifyDescendantResize=function(){};
_.d._setThresholdTriggered=function(){};
aCD=_.pZ({_template:function(){if(F2M!==void 0)return F2M;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;S5$===void 0&&(S5$=document.createElement("template"));var S=S5$;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return F2M=b},
is:"tp-yt-app-header",behaviors:[yr9,hu_],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 b=_.rO(this.$.slot).getDistributedNodes(),h=0,y;y=b[h];h++)if(y.nodeType===Node.ELEMENT_NODE)if(y.hasAttribute("sticky")){this._stickyElRef=y;break}else this._stickyElRef||(this._stickyElRef=y);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var b=this._clampedScrollTop,h=this._height===0||b===0,y=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;h||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();h?this._updateScrollState(b,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=y}},
_updateScrollState:function(b,h){if(this._height!==0){var y=0,S=this._top;var F=this._maxHeaderTop;var a=b-this._lastScrollTop,P=Math.abs(a),K=b>this._lastScrollTop,n=performance.now();this._mayMove()&&(y=this._clamp(this.reveals?S+a:b,0,F));b>=this._dHeight&&(y=this.condenses&&!this.fixed?Math.max(this._dHeight,y):y,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&P<100){if(n-this._initTimestamp>300||this._wasScrollingDown!==K)this._initScrollTop=b,this._initTimestamp=n;b>=F&&
(Math.abs(this._initScrollTop-b)>30||P>10?(K&&b>=F?y=F:!K&&b>=this._dHeight&&(y=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((y-S)/(a/(n-this._lastTimestamp)),0,300)+"ms"):y=this._top)}F=this._dHeight===0?b>0?1:0:y/this._dHeight;h||(this._lastScrollTop=b,this._top=y,this._wasScrollingDown=K,this._lastTimestamp=n);if(h||F!==this._progress||S!==y||b===0)this._progress=F,this._runEffects(F,y),this._transformHeader(y)}},
_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(b){this.translate3d(0,-b+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&b>=this._stickyElTop?Math.min(b,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(b,h,y){return Math.min(y,Math.max(h,b))},
_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),_.rO(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(b){switch(b){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.rO(this).querySelector("[main-title]");case "condensedTitle":return _.rO(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var dop;var j4M;_.pZ({_template:function(){if(j4M!==void 0)return j4M;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;dop===void 0&&(dop=document.createElement("template"));var S=dop;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return j4M=b},
is:"tp-yt-app-header-layout",behaviors:[hu_],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0},rafId:{type:Number,value:-1},useRaf:{type:Boolean,value:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.rO(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){this.useRaf?(cancelAnimationFrame(this.rafId),this.rafId=requestAnimationFrame(this.performUpdate.bind(this))):this.performUpdate()},
performUpdate:function(){var b=this.header;if(this.isAttached&&b){this.$.wrapper.classList.remove("initializing");b.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)b.style.left="",b.style.right="";else{var h=this.getBoundingClientRect(),y=document.documentElement.clientWidth-h.right;b.style.left=h.left+"px";b.style.right=y+"px"}h=this.$.contentContainer.style;y=b.offsetHeight;b.fixed&&!b.condenses&&this.hasScrollingRegion?
(h.marginTop=y+"px",h.paddingTop=""):(h.paddingTop=y+"px",h.marginTop="")}}});var $oc=new _.r4("alertCommand");var L22=new _.r4("manageLabsStateCommand");var P_x=new _.r4("inlineFormRenderer");var K2P=new _.r4("playlistSidebarPrimaryInfoRenderer");var Zaf=new _.r4("productDetailsThumbnailRenderer"),oHM=new _.r4("productDetailsVariantRenderer"),MhR=new _.r4("productDetailsVariantOptionRenderer"),nHJ=new _.r4("productDetailsOffersContainerRenderer"),Xs9=new _.r4("productDetailsOfferRenderer");var HaJ=new _.r4("shoppingFlaggingRenderer");var uk9=new _.r4("playlistBylineRenderer");var Oac=new _.r4("insertChannelTabCommand");var af=function(){return _.cl.apply(this,arguments)||this};
_.z(af,_.cl);_.d=af.prototype;_.d.activeChanged=function(){if(this.active){var b=_.$x(this.hostElement).querySelector("#header");b&&_.Sx(b,"iron-resize");window.addEventListener("scroll",_.Hl(this,this.onScroll))}else window.removeEventListener("scroll",_.Hl(this,this.onScroll)),_.Sx(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.d.guideVisibleChanged=function(){var b=_.$x(this.hostElement).querySelector("#header");b&&_.Sx(b,"iron-resize")};
_.d.onScroll=function(){var b=this;_.wy(this,"onScroll",function(){var h=_.$x(b.hostElement).querySelector("#header");h&&h.polymerController&&(h=h.polymerController.getScrollState().progress===1?"standard":"seamed",_.Sx(b.hostElement,"yt-request-panel-mode-change",{mode:h}))},10)};
_.d.tabsChanged=function(){if(this.tabs){for(var b=null,h=0,y=this.tabs.length;h<y;++h){var S=this.tabs[h].tabRenderer;if(S&&S.selected){b=h;break}}this.selected=b}};
_.d.onTabsActivate=function(b){_.Sx(this.hostElement,"yt-navigate",{endpoint:this.tabs[b.detail.selected].tabRenderer.endpoint})};
af.prototype.tabsChanged=af.prototype.tabsChanged;af.prototype.guideVisibleChanged=af.prototype.guideVisibleChanged;af.prototype.activeChanged=af.prototype.activeChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],af.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.DV.YtdGuideStateAwareBehavior),_.f("design:type",Object)],af.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.C(),_.f("design:type",Array)],af.prototype,"tabs",void 0);
_.V([_.C(),_.f("design:type",Object)],af.prototype,"selected",void 0);_.V([_.C(),_.f("design:type",Boolean)],af.prototype,"active",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],af.prototype,"disableHeaderFluidWidth",void 0);_.V([_.OB("active"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],af.prototype,"activeChanged",null);
_.V([_.OB("guidePersistentAndVisible"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],af.prototype,"guideVisibleChanged",null);_.V([_.OB("tabs"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],af.prototype,"tabsChanged",null);_.V([_.Rc()],af);var Nsp=[_.Q.YtRendererBehavior,_.DV.YtdGuideStateAwareBehavior,af.prototype];var th2=2/3,rrM=_.Kh(130749),cr9=function(b,h){var y=this;this.element=b;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){y.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:th2,moveAction:function(S){y.moveAction(S)},
triggerAction:function(){y.element.isReloading=!0;_.Vd(_.rU(),{visualElement:rrM});_.nt.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:y.element}})}}}};
_.qu(_.rU(),rrM,this.layer);this.gesture=new _.tH(b,h,this.refreshConfig,"pan-down");this.attach()};
_.d=cr9.prototype;_.d.attach=function(){this.gesture.attach()};
_.d.detach=function(){this.gesture.detach()};
_.d.reset=function(){this.element.close()};
_.d.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.d.moveAction=function(b){this.element.rotation=b*360};var Ruc=_.Kh(130750),Do$=function(b,h,y,S,F){var a=this;this.element=b;this.parent=y;this.channelHeader=S;this.ytdReduxDispatch=F;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){a.tabsStartAtInPx=a.channelHeader.clientHeight-48;var P;(P=a.selectedTab)!=null&&P.title&&(P=_.H9().resolve(_.XS(_.bM)))&&(P=P.getCurrentPage(),a.lastVisitedTabScrollPosition=P.getScrollTop(),a.previousTab&&
((a.lastVisitedTabScrollPosition===void 0?0:a.lastVisitedTabScrollPosition<a.channelHeader.clientHeight-48)?a.scrollPositionForTabs.has(a.selectedTab.title)&&a.scrollPositionForTabs.delete(a.selectedTab.title):a.scrollPositionForTabs.set(a.selectedTab.title,P.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:zuJ(),triggerAction:function(){a.navigate(a.previousTab)},
moveAction:function(P,K){a.moveAction(P,K)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-zuJ(),triggerAction:function(){a.navigate(a.nextTab)},
moveAction:function(P,K){a.moveAction(P,K)}}}};
_.qu(_.rU(),Ruc,this.layer);this.gesture=new _.tH(b,h,this.tabConfig);this.attach()};
_.d=Do$.prototype;_.d.attach=function(){this.gesture.attach()};
_.d.detach=function(){this.gesture.detach()};
_.d.tabsChanged=function(b){if(b){var h=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;b=_.L(b);for(var y=b.next();!y.done;y=b.next()){y=y.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=y);var S=void 0;if((S=y)==null?0:S.selected)this.previousTab=h,this.selectedTab=y;h=y}h=this.gesture;b=this.getConfig();h.config=b;this.scrollPositionNeedsUpdate=!0}};
_.d.getConfig=function(){return this.previousTab?this.nextTab?this.tabConfig:Object.assign({},this.tabConfig,{triggers:{right:this.tabConfig.triggers.right}}):Object.assign({},this.tabConfig,{triggers:{left:this.tabConfig.triggers.left}})};
_.d.moveAction=function(b,h){if(!this.tabsElement){var y;this.tabsElement=(y=this.parent.header)==null?void 0:y.tabsElement;h==="right"&&this.previousTab?(y=this.previousTab.endpoint,_.ZqY(_.H9().resolve(_.A_),y,{},"")):h==="left"&&this.nextTab&&(y=this.nextTab.endpoint,_.ZqY(_.H9().resolve(_.A_),y,{},""));if(!this.tabsElement)return}y=this.tabsElement._pos;h==="right"&&(b*=-1);this.tabsElement._positionBar(y.width,y.left*1+y.width*b)};
var zuJ=function(){var b,h;return(h=(b=_.H9().resolve(_.bM).getCurrentPage())==null?void 0:b.clientWidth)!=null?h:0};
Do$.prototype.navigate=function(b){this.element.data=void 0;if(b=b==null?void 0:b.endpoint)this.ytdReduxDispatch(mK2(!0)),_.Vd(_.rU(),{visualElement:Ruc}),_.nt.instance.resolveCommand({navigateAction:{endpoint:b}},{form:{element:this.element}})};var IC9;var Bsc;var d8=function(){return _.g.apply(this,arguments)||this};
_.z(d8,_.g);d8.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],d8.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],d8.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],d8.prototype,"data",void 0);_.V([_.Yx({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],d8);
_.k(d8,"ytd-labs-edit-renderer",function(){if(Bsc!==void 0)return Bsc;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return Bsc=b},{mode:1});var W2_;var jo=function(){var b=_.g.apply(this,arguments)||this;b.dark=!1;b.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";b.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";b.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return b};
_.z(jo,_.g);jo.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
jo.prototype.ready=function(){var b=document.documentElement.hasAttribute("dark");this.setBackgroundImage(b);this.dark=b};
jo.prototype.onDarkModeToggledAction=function(b){this.setBackgroundImage(b);this.dark=b};
jo.prototype.setBackgroundImage=function(b){_.nZ(this.hostElement,{"--yt-labs-header-background":"url("+(b?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],jo.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],jo.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],jo.prototype,"ytActionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],jo.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],jo.prototype,"dark",void 0);
_.V([_.Yx({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],jo);
_.k(jo,"ytd-labs-header-renderer",function(){if(W2_!==void 0)return W2_;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return W2_=b},{mode:1});var Arp;var $n=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return b};
_.z($n,_.g);$n.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"}}}}}};
$n.prototype.onYtToggleButton=function(b){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",b.detail.toggled)};
$n.prototype.onManageLabsState=function(b){if(b=_.c(b,L22))b.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?b.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&b.labsItemId===this.data.labsItemId&&(b.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.F8(this.hostElement,"yt-check-labs-opted-in-state").some(function(h){return h})&&this.data.confirmationDialogCommand?_.jx(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.H9().resolve(_.OM).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&b.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.H9().resolve(_.OM).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
$n.prototype.onCheckLabsOptedInState=function(){var b=this.get("data.primaryButton.toggleButtonRenderer");return b?b.isToggled:!1};
_.tm.Object.defineProperties($n.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
$n.prototype.onYtToggleButton=$n.prototype.onYtToggleButton;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],$n.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],$n.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],$n.prototype,"ytActionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],$n.prototype,"data",void 0);
_.V([_.C({reflectToAttribute:!0}),_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],$n.prototype,"itemStyle",null);_.V([_.u3("yt-toggle-button"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],$n.prototype,"onYtToggleButton",null);_.V([_.Yx({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],$n);
_.k($n,"ytd-labs-item-renderer",function(){if(Arp!==void 0)return Arp;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return Arp=b},{mode:1});var Uo9;var psf;var Jr_=function(){return _.g.apply(this,arguments)||this};
_.z(Jr_,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Jr_.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Jr_.prototype,"data",void 0);_.V([_.Yx({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],Jr_);
_.k(Jr_,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(psf!==void 0)return psf;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return psf=b},{mode:1});var eu$;var L5=function(){return _.g.apply(this,arguments)||this};
_.z(L5,_.g);L5.prototype.observeSuperchatChip=function(){if(this.data){var b={"--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)};_.nZ(this.hostElement,b)}};
L5.prototype.colorFromDecimal=function(b){return _.CR(Number(b||0))};
L5.prototype.observeSuperchatChip=L5.prototype.observeSuperchatChip;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],L5.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],L5.prototype,"data",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],L5.prototype,"observeSuperchatChip",null);_.V([_.Yx({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],L5);
_.k(L5,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(eu$!==void 0)return eu$;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return eu$=b},{mode:1});var P6=function(){return _.g.apply(this,arguments)||this};
_.z(P6,_.g);P6.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"}}}};
_.tm.Object.defineProperties(P6.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],P6.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],P6.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.rP),_.f("design:type",Object)],P6.prototype,"ytdDismissibleItemBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],P6.prototype,"data",void 0);_.V([_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],P6.prototype,"hideMessageBlock",null);
_.V([_.Yx({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],P6);
_.k(P6,"ytd-live-chat-history-entry-renderer",function(){if(Uo9!==void 0)return Uo9;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return Uo9=b},{mode:1});var C_L;var gHc=function(){return _.g.apply(this,arguments)||this};
_.z(gHc,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],gHc.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],gHc.prototype,"data",void 0);_.V([_.Yx({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],gHc);
_.k(gHc,"ytd-channel-options-renderer",function(){if(C_L!==void 0)return C_L;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return C_L=b},{mode:1});var s4c;var K5=function(){return _.g.apply(this,arguments)||this};
_.z(K5,_.g);K5.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],K5.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],K5.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],K5.prototype,"data",void 0);_.V([_.Yx({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],K5);
_.k(K5,"ytd-settings-email-item-renderer",function(){if(s4c!==void 0)return s4c;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return s4c=b},{mode:1});var Y5M;var Zg=function(){return _.g.apply(this,arguments)||this};
_.z(Zg,_.g);Zg.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"}}}};
Zg.prototype.getExpansionIcon=function(b){return b?"COLLAPSE":"EXPAND"};
Zg.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.tm.Object.defineProperties(Zg.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Zg.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Zg.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Zg.prototype,"data",void 0);_.V([_.C({value:!1,reflectToAttribute:!0}),_.f("design:type",Boolean)],Zg.prototype,"expanded",void 0);_.V([_.W("expanded"),_.f("design:type",String),_.f("design:paramtypes",[])],Zg.prototype,"emailListExpanded",null);
_.V([_.to("#options"),_.f("design:type",Object)],Zg.prototype,"options",void 0);_.V([_.Yx({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],Zg);
_.k(Zg,"ytd-settings-email-list-renderer",function(){if(Y5M!==void 0)return Y5M;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return Y5M=b},{mode:1});var Tsc;var of=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return b};
_.z(of,_.g);of.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"}}}};
of.prototype.handleSignalActionSubmitForm=function(){var b,h=(b=this.formRenderer)==null?void 0:b.getForm();h&&this.data.serviceEndpoint&&_.H9().resolve(_.OM).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},h,{element:this.hostElement})})};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],of.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],of.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],of.prototype,"ytActionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],of.prototype,"data",void 0);_.V([_.to("yt-form-renderer"),_.f("design:type",Object)],of.prototype,"formRenderer",void 0);
_.V([_.Yx({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],of);
_.k(of,"ytd-settings-gaia-link-renderer",function(){if(Tsc!==void 0)return Tsc;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return Tsc=b},{mode:1});var GrL;_.yd(_.zT,"basic-content-view-model",{props:{data:_.v3,className:_.v3}});var MX=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return b};
_.z(MX,_.g);MX.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.jcX()&&this.set("data.hidden",!1)};
MX.prototype.onSwitchReady=function(){var b=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.r("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.dhN().then(function(h){h&&(Notification.permission==="default"?b.set("data.hidden",!1):Notification.permission==="granted"&&_.FY("NotificationsDisabled").then(function(y){y||_.F8(b.hostElement,"yt-toggle-settings-switch",[b.data.id,!y]);b.set("data.hidden",!1)}).catch(function(){}))})})};
MX.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{channelOptionsRenderer:{component:"ytd-channel-options-renderer",noInjection:!0},copyLinkRenderer:{component:"yt-copy-link-renderer",noInjection:!0,params:{adaptiveFullWidth:!0}},dropdownRenderer:{component:"ytd-dropdown-renderer",params:{hasBackground:!0,verticalAlign:"bottom",noUnderline:!0},noInjection:!0},settingsCheckboxRenderer:{component:"ytd-settings-checkbox-renderer",noInjection:!0},settingsEmailListRenderer:{component:"ytd-settings-email-list-renderer",
noInjection:!0},settingsGaiaLinkRenderer:{component:"ytd-settings-gaia-link-renderer",noInjection:!0},settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0},settingsSwitchRenderer:{component:"ytd-settings-switch-renderer",noInjection:!0},connectedAppRenderer:{component:"ytd-connected-app-renderer",noInjection:!0},basicContentViewModel:{component:"basic-content-view-model",noInjection:!0}}}}};
MX.prototype.handleUpdateOptionsCommand=function(b){(b=_.c(b,_.Pt5))&&this.data&&this.data.id===b.id&&(this.set("data.hidden",b.hidden),b.text!==void 0&&this.set("data.text",b.text),b.clearOptions&&this.set("data.options",[]))};
MX.prototype.onSwitchReady=MX.prototype.onSwitchReady;MX.prototype.dataChanged=MX.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],MX.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],MX.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],MX.prototype,"ytActionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],MX.prototype,"data",void 0);
_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],MX.prototype,"dataChanged",null);_.V([_.u3("yt-settings-switch-ready"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],MX.prototype,"onSwitchReady",null);_.V([_.Yx({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],MX);
_.k(MX,"ytd-settings-options-renderer",function(){if(GrL!==void 0)return GrL;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return GrL=b},{mode:1});var krM;var n5=function(){return _.g.apply(this,arguments)||this};
_.z(n5,_.g);n5.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
n5.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
n5.prototype.onYtExpanderMoreTapped=n5.prototype.onYtExpanderMoreTapped;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],n5.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],n5.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],n5.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],n5.prototype,"data",void 0);
_.V([_.u3("yt-expander-more-tapped"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],n5.prototype,"onYtExpanderMoreTapped",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],n5);
_.k(n5,"ytd-product-details-description-renderer",function(){if(krM!==void 0)return krM;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return krM=b},{mode:1});var VhP;var X6=function(){var b=_.g.apply(this,arguments)||this;b.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";b.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";b.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";b.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return b};
_.z(X6,_.g);X6.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.tm.Object.defineProperties(X6.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var b,h;return((b=this.data)==null?void 0:(h=b.offerData)==null?void 0:h.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var b,h;return((b=this.data)==null?void 0:b.purchaseButtonRenderers)!==void 0&&((h=this.data)==null?void 0:h.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var b,h;return!((b=this.data)==null||!b.formattedFromMerchantText)&&(!((h=this.data)==null||!h.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],X6.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],X6.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],X6.prototype,"ytComponentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],X6.prototype,"data",void 0);
_.V([_.C({type:_.r("kevlar_property_type_migration_killswitch")?String:void 0}),_.f("design:type",Object)],X6.prototype,"shippingIcon",void 0);_.V([_.C({type:_.r("kevlar_property_type_migration_killswitch")?String:void 0}),_.f("design:type",Object)],X6.prototype,"shippingAddressIcon",void 0);_.V([_.C({type:_.r("kevlar_property_type_migration_killswitch")?String:void 0}),_.f("design:type",Object)],X6.prototype,"googleGuaranteeIcon",void 0);
_.V([_.C({type:_.r("kevlar_property_type_migration_killswitch")?String:void 0}),_.f("design:type",Object)],X6.prototype,"returnPolicyIcon",void 0);_.V([_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],X6.prototype,"showAdditionalFees",null);_.V([_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],X6.prototype,"showMultiPurchaseButtons",null);
_.V([_.W("data","showMultiPurchaseButtons"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],X6.prototype,"showPurchaseData",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],X6);
_.k(X6,"ytd-product-details-hero-offer-renderer",function(){if(VhP!==void 0)return VhP;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return VhP=b},{mode:1});var EH9;var iaf;var H6=function(){return _.g.apply(this,arguments)||this};
_.z(H6,_.g);_.d=H6.prototype;_.d.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.d.onKeyDown=function(b){b=b.keyCode;b!==13&&b!==32||this.handleSelection()};
_.d.onMouseEnterImage=function(){var b;((b=this.data)==null?void 0:b.thumbnailDetails)!==void 0&&_.aw(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.d.onMouseLeaveImage=function(){_.aw(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.d.handleSelection=function(){this.data&&_.Sx(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.tm.Object.defineProperties(H6.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.data)==null||!b.isSelected)}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],H6.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],H6.prototype,"data",void 0);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],H6.prototype,"isSelected",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],H6);
_.k(H6,"ytd-product-details-thumbnail-renderer",function(){if(iaf!==void 0)return iaf;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return iaf=b},{mode:1});var uv=function(){var b=_.g.apply(this,arguments)||this;var h={};b.actionMap=(h["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",h["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",h);b.selectedThumbnailIndex=0;b.selectItem=function(y){y.target.onKeyDown(y)};
return b};
_.z(uv,_.g);_.d=uv.prototype;_.d.handlePreviewImageSelect=function(b){this.hoverThumbnail=b};
_.d.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.d.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.d.onThumbnailSelected=function(b,h){this.selectedThumbnailIndex=h};
_.d.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.d.updateOffset=function(){var b=_.$x(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-b));this.ytdHorizontalListBehavior.reposition_()};
_.tm.Object.defineProperties(uv.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var b;if((b=this.data)==null?0:b.imageRenderer){var h,y;return((h=this.data)==null?void 0:(y=h.imageRenderer)==null?void 0:y.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var b;if((b=this.data)==null?0:b.imageRenderer){var h;return(h=_.c(this.data.imageRenderer[this.selectedThumbnailIndex],Zaf))==null?void 0:h.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var b=this,h,y,S,F=(S=(h=this.data)==null?void 0:(y=h.imageRenderer)==null?void 0:y.map(function(a,P){return{productDetailsThumbnailRenderer:Object.assign({},_.c(a,Zaf),{index:P,isSelected:P===b.selectedThumbnailIndex})}}))!=null?S:[];
return Object.assign({},this.data,{imageRenderer:F})}}});
uv.prototype.updateOffset=uv.prototype.updateOffset;uv.prototype.dataChanged=uv.prototype.dataChanged;uv.prototype.onThumbnailSelected=uv.prototype.onThumbnailSelected;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],uv.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],uv.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.kd.YtdHorizontalListBehavior),_.f("design:type",Object)],uv.prototype,"ytdHorizontalListBehavior",void 0);
_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],uv.prototype,"componentBehavior",void 0);_.V([_.B([_.mx.YtActionHandlerBehavior]),_.f("design:type",Object)],uv.prototype,"actionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],uv.prototype,"data",void 0);_.V([_.C({value:"$.items.children"}),_.f("design:type",String)],uv.prototype,"itemsPath",void 0);_.V([_.C({value:3}),_.f("design:type",Number)],uv.prototype,"initialCount",void 0);
_.V([_.to("#items"),_.f("design:type",Object)],uv.prototype,"items",void 0);_.V([_.C(),_.f("design:type",Object)],uv.prototype,"selectedThumbnailIndex",void 0);_.V([_.C(),_.f("design:type",Object)],uv.prototype,"hoverThumbnail",void 0);_.V([_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],uv.prototype,"showThumbnails",null);
_.V([_.u3("ytd-product-details-thumbnail-renderer-selected"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,Number]),_.f("design:returntype")],uv.prototype,"onThumbnailSelected",null);_.V([_.W("data","selectedThumbnailIndex","hoverThumbnail"),_.f("design:type",Object),_.f("design:paramtypes",[])],uv.prototype,"thumbnailDetails",null);_.V([_.W("data","selectedThumbnailIndex"),_.f("design:type",Object),_.f("design:paramtypes",[])],uv.prototype,"populatedData",null);
_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],uv.prototype,"dataChanged",null);_.V([_.u3("iron-resize"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],uv.prototype,"updateOffset",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],uv);
_.k(uv,"ytd-product-details-image-carousel-renderer",function(){if(EH9!==void 0)return EH9;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return EH9=b},{mode:_.Lt("kevlar_poly_si_batch_j079")?1:2});var fC_;var OO=function(){return _.g.apply(this,arguments)||this};
_.z(OO,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],OO.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],OO.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],OO.prototype,"componentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],OO.prototype,"data",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],OO);
_.k(OO,"ytd-product-details-offer-renderer",function(){if(fC_!==void 0)return fC_;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return fC_=b},{mode:1});var wsx;var NX=function(){var b=_.g.apply(this,arguments)||this;b.isOffersHidden=!0;return b};
_.z(NX,_.g);NX.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var b,h=_.c((b=this.data)==null?void 0:b.viewOffersButton,_.OU);h&&this.ytRendererBehavior.logExplicitClick(h)};
NX.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.tm.Object.defineProperties(NX.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var b,h,y,S;return(y=_.c((b=this.data)==null?void 0:(h=b.offers)==null?void 0:h[0],Xs9))==null?void 0:(S=y.offerData)==null?void 0:S.vendorLogoUrl}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],NX.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],NX.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],NX.prototype,"componentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],NX.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],NX.prototype,"isOffersHidden",void 0);
_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],NX.prototype,"firstOfferVendorLogoUrl",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],NX);
_.k(NX,"ytd-product-details-offers-container-renderer",function(){if(wsx!==void 0)return wsx;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return wsx=b},{mode:1});var lCP;var q5L;var t3=function(){return _.g.apply(this,arguments)||this};
_.z(t3,_.g);t3.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
t3.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.aw(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
t3.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.aw(this,"ytd-product-details-variant-image-unselect")};
_.tm.Object.defineProperties(t3.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 b;return((b=this.data)==null?void 0:b.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var b,h,y;return((b=this.data)==null?void 0:b.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((h=this.data)==null?void 0:h.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((y=this.data)==null?void 0:y.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var b;if(((b=this.data)==null?void 0:b.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var b,h;return this.isUnavailable?(b=this.data)==null?void 0:b.variantOptionUnavailableAccessibilityLabel:(h=this.data)==null?void 0:h.variantOptionAccessibilityLabel}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],t3.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],t3.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],t3.prototype,"componentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],t3.prototype,"data",void 0);_.V([_.C(),_.f("design:type",String)],t3.prototype,"displayType",void 0);
_.V([_.W("displayType","data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],t3.prototype,"isImageButton",null);_.V([_.W("displayType","data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],t3.prototype,"isPillButton",null);_.V([_.W("data"),_.C({reflectToAttribute:!0}),_.f("design:type",Boolean),_.f("design:paramtypes",[])],t3.prototype,"isActive",null);
_.V([_.W("data"),_.C({reflectToAttribute:!0}),_.f("design:type",Boolean),_.f("design:paramtypes",[])],t3.prototype,"isUnavailable",null);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],t3.prototype,"thumbnailDetails",null);_.V([_.W("isUnavailable","data"),_.f("design:type",Object),_.f("design:paramtypes",[])],t3.prototype,"accessibilityLabel",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],t3);
_.k(t3,"ytd-product-details-variant-option-renderer",function(){if(q5L!==void 0)return q5L;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return q5L=b},{mode:1});var xoA;var r8=function(){var b=_.g.apply(this,arguments)||this;b.variantsExpanded=!1;b.hideShowMoreLessVariantButton=!0;b.initialized=!1;b.computeVariantsDebouncer=null;b.computeVariants=function(h){h=h===void 0?!1:h;b.variantsExpanded||b.showOptions()||!h||(b.variantsExpanded=!0);if(b.variantsExpanded){h=_.L(b.items.children);for(var y=h.next();!y.done;y=h.next())y.value.hidden=!1}b.initialized=!0};
return b};
_.z(r8,_.g);_.d=r8.prototype;_.d.ready=function(){var b=this;setTimeout(function(){b.computeVariants(!0)})};
_.d.showOptions=function(){for(var b=_.L(this.items.children),h=b.next();!h.done;h=b.next())h.value.hidden=!0;var y=this.container.getBoundingClientRect().width,S=0,F=b=0;h=!1;for(var a=_.L(this.items.children),P=a.next();!P.done;P=a.next()){P=P.value;P.hidden=!1;var K=P.getBoundingClientRect().width;if(S+K<y)S+=K;else if(++F<2)S=K;else break;b+=1;P.hasAttribute("is-active")&&(h=!0)}for(y=b;y<this.items.children.length;y++)this.items.children[y].hidden=!0;this.hideShowMoreLessVariantButton=b===this.items.children.length;
return h};
_.d.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.JD(this.computeVariantsDebouncer,_.tD.after(100),this.computeVariants)};
_.d.onShowMoreLessVariantsButtonClick=function(){var b;(b=this.data)!=null&&b.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.d.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.tm.Object.defineProperties(r8.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var b,h,y=(b=this.data)==null?void 0:(h=b.variantOptionRenderers)==null?void 0:h.find(function(a){return _.c(a,MhR).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),S,F;
return(F=(S=_.c(y,MhR))==null?void 0:S.name)!=null?F:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.data)==null?void 0:b.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"}}}});
r8.prototype.debouncedComputeVariants=r8.prototype.debouncedComputeVariants;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],r8.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],r8.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],r8.prototype,"componentBehavior",void 0);_.V([_.B(_.ab),_.f("design:type",Object)],r8.prototype,"ironResizableBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],r8.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],r8.prototype,"variantsExpanded",void 0);_.V([_.C(),_.f("design:type",Object)],r8.prototype,"hideShowMoreLessVariantButton",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],r8.prototype,"initialized",void 0);_.V([_.to("#items"),_.f("design:type",HTMLDivElement)],r8.prototype,"items",void 0);_.V([_.to("#container"),_.f("design:type",HTMLDivElement)],r8.prototype,"container",void 0);
_.V([_.to("#more-variants-button"),_.f("design:type",HTMLElement)],r8.prototype,"moreVariantsButton",void 0);_.V([_.W("data"),_.f("design:type",String),_.f("design:paramtypes",[])],r8.prototype,"selectedOptionName",null);_.V([_.OB("data","variantsExpanded"),_.u3("iron-resize"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],r8.prototype,"debouncedComputeVariants",null);
_.V([_.W("data"),_.f("design:type",String),_.f("design:paramtypes",[])],r8.prototype,"displayType",null);_.V([_.W("displayType"),_.f("design:type",Object),_.f("design:paramtypes",[])],r8.prototype,"variantItemsClassname",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],r8);
_.k(r8,"ytd-product-details-variant-renderer",function(){if(xoA!==void 0)return xoA;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return xoA=b},{mode:1});var c6=function(){return _.g.apply(this,arguments)||this};
_.z(c6,_.g);
c6.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"}}}};
_.tm.Object.defineProperties(c6.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.data)==null||!b.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.data)==null||!b.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.data)==null||!b.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var b,h,y=(h=_.c((b=this.data)==null?void 0:b.offersContainerRenderer,nHJ))==null?void 0:h.offers;return y!==void 0&&(y==null?void 0:y.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 b,h,y;return((y=(b=this.data)==null?void 0:(h=b.variants)==null?void 0:h.map(function(S){var F,a;S=(a=(F=_.c(S,oHM))==null?void 0:F.variantOptionRenderers)==null?void 0:a.find(function(K){var n;return((n=_.c(K,MhR))==null?void 0:n.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var P;return(P=_.c(S,MhR))==null?void 0:P.name}).filter(function(S){return typeof S==="string"}))!=null?y:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var b,h,y,S=(h=_.c((b=this.data)==null?void 0:b.shoppingFlaggingRenderer,HaJ))==null?void 0:(y=h.reportButton)==null?void 0:y.buttonRenderer;if(S)return{text:S.text,command:S.command,icon:{iconType:"FLAG"},accessibilityData:S.accessibilityData,trackingParams:S.trackingParams,loggingDirectives:S.loggingDirectives}}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],c6.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],c6.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],c6.prototype,"componentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],c6.prototype,"data",void 0);_.V([_.to("#image-carousel-renderer"),_.f("design:type",Object)],c6.prototype,"imageCarouselRenderer",void 0);
_.V([_.to("#hero-offer-renderer"),_.f("design:type",Object)],c6.prototype,"productDetailsHeroOfferRenderer",void 0);_.V([_.to("#variants"),_.f("design:type",Object)],c6.prototype,"productDetailsVariantRenderer",void 0);_.V([_.to("#offers"),_.f("design:type",Object)],c6.prototype,"productDetailsOffersContainerRenderer",void 0);_.V([_.to("#description-renderer"),_.f("design:type",Object)],c6.prototype,"productDetailsDescriptionRenderer",void 0);
_.V([_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],c6.prototype,"showPurchaseData",null);_.V([_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],c6.prototype,"showHeroOfferRenderer",null);_.V([_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],c6.prototype,"showBrandText",null);_.V([_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],c6.prototype,"showOffers",null);
_.V([_.W("showOffers","showPurchaseData"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],c6.prototype,"showBuySeparator",null);_.V([_.W("showOffers","showPurchaseData"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],c6.prototype,"showBuyCard",null);_.V([_.W("data"),_.f("design:type",String),_.f("design:paramtypes",[])],c6.prototype,"selectedVariantsText",null);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],c6.prototype,"shoppingReportingButtonData",null);
_.V([_.Yx({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],c6);
_.k(c6,"ytd-product-details-renderer",function(){if(lCP!==void 0)return lCP;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return lCP=b},{mode:1});var Q4f;var moR;var vHp;var Rf=function(){return _.g.apply(this,arguments)||this};
_.z(Rf,_.g);Rf.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.tm.Object.defineProperties(Rf.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Rf.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Rf.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Rf.prototype,"data",void 0);_.V([_.C(),_.f("design:type",String)],Rf.prototype,"formattedAmount",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Rf.prototype,"ariaLabel",void 0);
_.V([_.C({reflectToAttribute:!0}),_.W("data.style"),_.f("design:type",String),_.f("design:paramtypes",[])],Rf.prototype,"vcBalanceWidgetStyle",null);_.V([_.sB({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],Rf);
_.k(Rf,"yt-vc-balance-renderer",function(){if(vHp===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;moR===void 0&&(moR=document.createElement("template"));var S=moR;y.call(h,S.content.cloneNode(!0),b.content.firstChild);vHp=b}b=vHp;return b},{mode:2});_.W2("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var z5=function(){return _.g.apply(this,arguments)||this};
_.z(z5,_.g);_.tm.Object.defineProperties(z5.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:""}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],z5.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],z5.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],z5.prototype,"data",void 0);_.V([_.C({selectorArgs:["data.vcBalanceEntityKey"],selector:function(b,h){return _.Mm(b.entities,"vcBalanceEntity",h)}}),
_.f("design:type",Object)],z5.prototype,"vcBalanceEntity",void 0);_.V([_.W("vcBalanceEntity"),_.f("design:type",String),_.f("design:paramtypes",[])],z5.prototype,"formattedAmount",null);_.V([_.W("vcBalanceEntity"),_.f("design:type",String),_.f("design:paramtypes",[])],z5.prototype,"vcBalanceAriaLabel",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],z5);
_.k(z5,"ytd-vc-balance-renderer",function(){if(Q4f!==void 0)return Q4f;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return Q4f=b},{mode:1});var blM;var Dg=function(){var b=_.g.apply(this,arguments)||this;b.rotation=0;b.isReloading=!1;return b};
_.z(Dg,_.g);Dg.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
Dg.prototype.reset=function(){this.hostElement.style.opacity=""};
Dg.prototype.close=function(){var b=this;return _.Z(function(h){if(h.nextAddress==1)return h.yield(b.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);b.hostElement.style.opacity="0";_.g3(h)})};
Dg.prototype.rotationChanged=Dg.prototype.rotationChanged;_.V([_.C(),_.f("design:type",Object)],Dg.prototype,"rotation",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Dg.prototype,"isReloading",void 0);_.V([_.to("#icon"),_.f("design:type",HTMLElement)],Dg.prototype,"icon",void 0);_.V([_.OB("rotation"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Dg.prototype,"rotationChanged",null);
_.V([_.Yx({disableElementRegistration:!0,is:"ytd-refresh"})],Dg);
_.k(Dg,"ytd-refresh",function(){if(blM!==void 0)return blM;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return blM=b},{mode:1});var hr$;var If=function(){var b=_.g.apply(this,arguments)||this;b.useRaf=!_.r("web_use_raf_app_header_layout_killswitch");return b};
_.z(If,_.g);If.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"}}}};
If.prototype.dataChanged=function(){if(this.data){var b=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var h=_.Ss(this.data.banner.thumbnails,this.hostElement.clientWidth);h&&(h.indexOf("//")===0&&(h="https:"+h),this.hasBannerArt=!0,_.nZ(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+h+")"}))}this.hasBannerArt!==b&&_.$x(this.hostElement).querySelector("#header").fire("iron-resize")}};
If.prototype.updateSelectedFromBinding=function(b){this.selected=b.detail.value};
If.prototype.dataChanged=If.prototype.dataChanged;_.V([_.B(Nsp),_.f("design:type",Object)],If.prototype,"ytdTabbedHeaderBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],If.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Rp),_.f("design:type",Object)],If.prototype,"ytdGridStateAwareBehavior",void 0);_.V([_.B(_.DV.YtdGuideStateAwareBehavior),_.f("design:type",Object)],If.prototype,"ytdGuideStateAwareBehavior",void 0);
_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],If.prototype,"componentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],If.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Number)],If.prototype,"selected",void 0);_.V([_.C(),_.f("design:type",Boolean)],If.prototype,"active",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],If.prototype,"hasBannerArt",void 0);_.V([_.C(),_.f("design:type",Object)],If.prototype,"useRaf",void 0);
_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],If.prototype,"dataChanged",null);_.V([_.Yx({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],If);
_.k(If,"ytd-interactive-tabbed-header-renderer",function(){if(hr$!==void 0)return hr$;var b=document.createElement("template");_.D(b,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-interactive-tabbed-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout use-raf="[[useRaf]]" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-app-header id="header" slot="header" condenses="" disabled="[[!active]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-interactive-tabbed-header-renderer"><svg id="bg" viewBox="0 0 1439 304" preserveAspectRatio="xMinYMid slice" class="style-scope ytd-interactive-tabbed-header-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path></svg><div id="content-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="content" class="style-scope ytd-interactive-tabbed-header-renderer"><yt-img-shadow id="box-art" object-fit="COVER" thumbnail="[[data.boxArt]]" class="style-scope ytd-interactive-tabbed-header-renderer"></yt-img-shadow><div id="details" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="title" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.title)]]</div><div id="auto-generated" hidden="[[!data.autoGenerated]]" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.autoGenerated)]]</div><div id="description" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.description)]]</div><div id="metadata" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.metadata)]]</div><ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-interactive-tabbed-header-renderer"></ytd-badge-supported-renderer><div id="buttons" class="style-scope ytd-interactive-tabbed-header-renderer"></div></div></div></div><tp-yt-app-toolbar sticky="" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-inner-container" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tabs noink="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-interactive-tabbed-header-renderer"><template is="dom-repeat" items="[[tabs]]" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tab hidden="[[!item.tabRenderer]]" class="style-scope ytd-interactive-tabbed-header-renderer">\n                [[item.tabRenderer.title]]\n              </tp-yt-paper-tab></template></tp-yt-paper-tabs></div></div></tp-yt-app-toolbar></tp-yt-app-header></tp-yt-app-header-layout>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return hr$=b},{mode:1});var yic;var B6=function(){return _.g.apply(this,arguments)||this};
_.z(B6,_.g);B6.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
B6.prototype.computeActionsAlignment=function(b){return(b==null?void 0:b.actionsAlignment)||""};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],B6.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],B6.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],B6.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.f("design:type",String)],B6.prototype,"actionsAlignment",void 0);
_.V([_.Yx({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],B6);
_.k(B6,"ytd-page-footer-renderer",function(){if(yic!==void 0)return yic;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return yic=b},{mode:1});var SW9;var F$J;var W6=function(){var b=_.g.apply(this,arguments)||this;b.isEditing=!1;b.useSlot=!1;b.isMultiline=!1;return b};
_.z(W6,_.g);_.d=W6.prototype;_.d.onKeydown=function(b){if(b.keyCode===13&&!this.isMultiline)this.onSave();else if(b.keyCode===27)this.onCancel()};
_.d.computeComponentStyle=function(b){return(b==null?0:b.style)?b.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.d.computeisMultiline=function(b){if(this.multilineOverride!==void 0)return this.multilineOverride;var h,y;return!!(b==null?0:(h=b.formField)==null?0:(y=h.textInputFormFieldRenderer)==null?0:y.isMultiline)};
_.d.computeTextDisplayed=function(b,h){if(b)return b;if(h)return h};
_.d.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.d.onSave=function(){if(this.textForm.validate()){this.textForm.save();var b=this.textForm.value;if(b)this.set("data.textDisplayed",_.mk(b));else{var h;((h=this.data)==null?0:h.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.Ut("inline-form-changed",this.data));this.isEditing=!1}};
_.d.onCancel=function(){var b=_.vi(this.data.textDisplayed);b===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(b);this.isEditing=!1};
W6.prototype.onKeydown=W6.prototype.onKeydown;_.V([_.B(_.PQ.YtEventForwardingBehavior),_.f("design:type",Object)],W6.prototype,"ytEventForwardingBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],W6.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],W6.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],W6.prototype,"data",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],W6.prototype,"isEditing",void 0);_.V([_.C(),_.f("design:type",Object)],W6.prototype,"useSlot",void 0);_.V([_.C(),_.f("design:type",Boolean)],W6.prototype,"multilineOverride",void 0);_.V([_.C(),_.f("design:type",Boolean)],W6.prototype,"enableOverlayTheme",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.f("design:type",String)],W6.prototype,"componentStyle",void 0);
_.V([_.C({computed:"computeisMultiline(data)"}),_.f("design:type",Object)],W6.prototype,"isMultiline",void 0);_.V([_.to("#text-form"),_.f("design:type",Object)],W6.prototype,"textForm",void 0);_.V([_.u3("keydown"),_.f("design:type",Function),_.f("design:paramtypes",[KeyboardEvent]),_.f("design:returntype")],W6.prototype,"onKeydown",null);_.V([_.Yx({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],W6);
_.k(W6,"ytd-inline-form-renderer",function(){if(F$J!==void 0)return F$J;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return F$J=b},{mode:1});var abA;var A3=function(){var b=_.g.apply(this,arguments)||this;b.previousSelectValue=void 0;b.selectedItemMessage=void 0;return b};
_.z(A3,_.g);A3.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
A3.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var b,h,y,S,F=(b=this.data)==null?void 0:(h=b.dropdown)==null?void 0:(y=h.dropdownRenderer)==null?void 0:(S=y.entries)==null?void 0:S.map(function(K){return K.privacyDropdownItemRenderer});
b=_.L(F!=null?F:[]);for(h=b.next();!h.done;h=b.next())if((h=h.value)&&h.int32Value===this.selectedValue){this.selectedItemMessage=h.itemMessage;break}}else this.selectedItemMessage=void 0;var a;(a=this.onValueChanged)==null||a.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var P;(P=this.data)!=null&&P.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
A3.prototype.onValueChangedForSelectedValue=function(b){this.selectedValue=b.detail.value};
A3.prototype.selectedValueChanged=A3.prototype.selectedValueChanged;_.V([_.B(_.PQ.YtEventForwardingBehavior),_.f("design:type",Object)],A3.prototype,"ytEventForwardingBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],A3.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],A3.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],A3.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],A3.prototype,"data",void 0);_.V([_.C(),_.f("design:type",String)],A3.prototype,"theme",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Number)],A3.prototype,"selectedValue",void 0);_.V([_.C(),_.f("design:type",Function)],A3.prototype,"onValueChanged",void 0);
_.V([_.zj("selectedValue"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],A3.prototype,"selectedValueChanged",null);_.V([_.Yx({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],A3);
_.k(A3,"ytd-dropdown-form-field-renderer",function(){if(abA!==void 0)return abA;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return abA=b},{mode:_.Lt("kevlar_poly_si_batch_j025")?1:2});var dUf;var UO=function(){return _.g.apply(this,arguments)||this};
_.z(UO,_.g);_.tm.Object.defineProperties(UO.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var b=[],h=_.L(this.data||[]),y=h.next();!y.done;y=h.next())(y=_.c(y.value,uk9))&&b.push(y);return b}}});
_.V([_.C(),_.f("design:type",Array)],UO.prototype,"data",void 0);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],UO.prototype,"byline",null);_.V([_.Yx({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],UO);
_.k(UO,"ytd-playlist-byline-renderer",function(){if(dUf!==void 0)return dUf;var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return dUf=b},{mode:1});var jeJ;var p5=function(){var b=_.g.apply(this,arguments)||this;b.rtlBullet=_.r("web_playlist_stats_rtl_bullet_icon_killswitch");b.modern=_.r("web_modern_buttons");b.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return b};
_.z(p5,_.g);_.d=p5.prototype;_.d.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"}}}}};
_.d.attached=function(){};
_.d.computeIsCustomThumbnail=function(b){return b?!!b.playlistCustomThumbnailRenderer:!1};
_.d.onYtNavigate=function(b,h){if(h&&h.actions&&h.actions.indexOf("shuffle")>-1){b=_.H9().resolve(_.Rz);var y=h.tempData||{};y.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);h.tempData=y;b.isShuffleNextPlaylist=!0}};
_.d.onUpdatePlaylistAction=function(b){var h;b=(h=_.c(b,_.T$a))==null?void 0:h.updatedRenderer;if(h=_.c(b,K2P))this.data=h};
_.d.computeStyleType=function(b){return b?b.toLowerCase().replace(/_/g,"-"):""};
_.d.computeThumbnailWidth=function(b){return b==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.d.computeHideThumbnailAria=function(b){if(b==null?0:b.thumbnailOverlays)for(var h=0;h<b.thumbnailOverlays.length;h++){var y=void 0;if((y=b.thumbnailOverlays[h])==null?0:y.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
p5.prototype.onYtNavigate=p5.prototype.onYtNavigate;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],p5.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],p5.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],p5.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],p5.prototype,"ytComponentBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],p5.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],p5.prototype,"rtlBullet",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.f("design:type",String)],p5.prototype,"styleType",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.f("design:type",Number)],p5.prototype,"thumbnailWidth",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],p5.prototype,"modern",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.f("design:type",Boolean)],p5.prototype,"isCustomThumbnail",void 0);_.V([_.u3("yt-navigate"),_.f("design:type",Function),_.f("design:paramtypes",[Event,Object]),_.f("design:returntype")],p5.prototype,"onYtNavigate",null);_.V([_.Yx({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],p5);
_.k(p5,"ytd-playlist-sidebar-primary-info-renderer",function(){if(jeJ!==void 0)return jeJ;var b=document.createElement("template");_.D(b,'\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>');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return jeJ=b},{mode:1});var $U2;var J3=function(){return _.g.apply(this,arguments)||this};
_.z(J3,_.g);J3.prototype.computeOwnerVisibility=function(b){return!(!b.videoOwner&&!b.button)};
J3.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"}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],J3.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],J3.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],J3.prototype,"data",void 0);_.V([_.Yx({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],J3);
_.k(J3,"ytd-playlist-sidebar-secondary-info-renderer",function(){if($U2!==void 0)return $U2;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return $U2=b},{mode:1});var L$$;var eo=function(){var b=_.g.apply(this,arguments)||this;b.expanded=!1;b.isCompact=!1;return b};
_.z(eo,_.g);_.d=eo.prototype;_.d.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.d.dataChanged=function(){this.data&&_.M5(_.$x(this.text),_.fFP(_.q3b,_.vi(this.data.text||null)))};
_.d.computeAutoScrollEnabled=function(b,h){return b&&!h};
_.d.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.d.toggleOnTap=function(){this.expanded=!this.expanded};
eo.prototype.expandedChanged=eo.prototype.expandedChanged;eo.prototype.dataChanged=eo.prototype.dataChanged;_.V([_.B(_.SDA),_.f("design:type",Object)],eo.prototype,"ytdAutoScrollBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],eo.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],eo.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],eo.prototype,"expanded",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],eo.prototype,"isCompact",void 0);_.V([_.C({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.f("design:type",Boolean)],eo.prototype,"autoScrollEnabled",void 0);_.V([_.to("#text"),_.f("design:type",Object)],eo.prototype,"text",void 0);_.V([_.to("#expander-icon"),_.f("design:type",Object)],eo.prototype,"expanderIcon",void 0);
_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],eo.prototype,"dataChanged",null);_.V([_.OB("expanded"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],eo.prototype,"expandedChanged",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],eo);
_.k(eo,"ytd-channel-legal-info-renderer",function(){if(L$$!==void 0)return L$$;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return L$$=b},{mode:1});var PnL;var K$D=_.Mt("DOWNLOAD",{},"Download"),Zlx=_.Mt("DOWNLOADING",{},"Downloading"),oZ9=_.Mt("DOWNLOADED",{},"Downloaded"),C5=function(){var b=_.g.apply(this,arguments)||this;b.downloadProgress=0;b.isDownloadComplete=!1;b.transferState="TRANSFER_STATE_UNKNOWN";return b};
_.z(C5,_.g);_.d=C5.prototype;_.d.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.d.dataChanged=function(){var b;(b=this.data)!=null&&b.tooltip||(b=_.TD(_.hP().getState(),this.playlistId),this.updateButtonState(b))};
_.d.computePlaylistId=function(b){return b};
_.d.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.d.updateButtonState=function(b){if(this.data&&(this.data.tooltip!==Zlx||!_.ci(b))){this.isDownloadComplete=!1;switch(b){case "TRANSFER_STATE_UNKNOWN":b=K$D;var h="OFFLINE_DOWNLOAD";var y="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":b=oZ9;h="OFFLINE_PIN";y="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":b=Zlx;h="OFFLINE_DOWNLOADING_ZERO";y="ACTION_REMOVE_WITH_PROMPT";
break;default:b=K$D,h="OFFLINE_DOWNLOAD",y="ACTION_ADD"}var S=Object.assign({},this.data);S.tooltip=b;S.accessibilityData={accessibilityData:{label:b}};S.icon={iconType:h};S.size="SIZE_DEFAULT";_.c(S.command,_.uM)&&(_.c(S.command,_.uM).action=y);this.set("data",S)}};
_.d.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var b="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?b="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?b="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?b="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?b="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?b="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(b="OFFLINE_PIN",this.isDownloadComplete=!0);var h;b!==((h=this.data.icon)==null?void 0:h.iconType)&&(h=Object.assign({},this.data),h.tooltip=Zlx,h.accessibilityData={accessibilityData:{label:Zlx}},h.icon={iconType:b},_.c(h.command,_.uM)&&(_.c(h.command,_.uM).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",h))}};
C5.prototype.updateProgress=C5.prototype.updateProgress;C5.prototype.onTransferStateChanged=C5.prototype.onTransferStateChanged;C5.prototype.dataChanged=C5.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],C5.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],C5.prototype,"ytdReduxBehavior",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],C5.prototype,"forceIconButton",void 0);
_.V([_.C({value:!0}),_.f("design:type",Boolean)],C5.prototype,"forceIconOnly",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],C5.prototype,"overrides",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],C5.prototype,"buttonTooltipPosition",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],C5.prototype,"styleActionButton",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],C5.prototype,"disableTextTransform",void 0);
_.V([_.C({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.f("design:type",String)],C5.prototype,"playlistId",void 0);_.V([_.C(),_.f("design:type",Object)],C5.prototype,"data",void 0);_.V([_.C({selector:_.QDM,selectorArgs:["playlistId"]}),_.f("design:type",Object)],C5.prototype,"downloadProgress",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],C5.prototype,"isDownloadComplete",void 0);
_.V([_.C({selector:_.TD,selectorArgs:["playlistId"]}),_.f("design:type",String)],C5.prototype,"transferState",void 0);_.V([_.C({value:!0}),_.f("design:type",Boolean)],C5.prototype,"showTooltips",void 0);_.V([_.C({value:!0}),_.f("design:type",Boolean)],C5.prototype,"sendCommandWhenDisabled",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],C5.prototype,"disabled",void 0);
_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],C5.prototype,"dataChanged",null);_.V([_.zj("transferState"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],C5.prototype,"onTransferStateChanged",null);_.V([_.zj("downloadProgress"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],C5.prototype,"updateProgress",null);
_.V([_.Yx({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],C5);
_.k(C5,"ytd-download-playlist-button-renderer",function(){if(PnL!==void 0)return PnL;var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return PnL=b},{mode:1});var MY2;_.yd(_.RBa,"thumbnail-overlay-button-view-model",{props:{data:_.D4,lockupExperiments:_.D4}});var g8=function(){var b=_.g.apply(this,arguments)||this;b.isSquare=!1;b.isVertical=!1;return b};
_.z(g8,_.g);g8.prototype.computeIsSquare=function(b){return b!=null&&b.thumbnail?f9x(b.thumbnail)==="SQUARE":!1};
g8.prototype.computeIsVertical=function(b){return b!=null&&b.thumbnail?f9x(b.thumbnail)==="VERTICAL":!1};
g8.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],g8.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],g8.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.f("design:type",Object)],g8.prototype,"isSquare",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.f("design:type",Object)],g8.prototype,"isVertical",void 0);
_.V([_.C(),_.f("design:type",Object)],g8.prototype,"data",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],g8);
_.k(g8,"ytd-hero-playlist-thumbnail-renderer",function(){if(MY2!==void 0)return MY2;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return MY2=b},{mode:1});var sO=function(){var b=_.g.apply(this,arguments)||this;b.isDarkTheme=!1;b.isUltraWide=!1;b.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return b};
_.z(sO,_.g);_.d=sO.prototype;_.d.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.H9();var b;(b=_.H9().resolve(_.XS(_.Ks)))!=null&&(b.headerElement=this.hostElement)};
_.d.detached=function(){var b;(b=_.H9().resolve(_.XS(_.Ks)))!=null&&(b.headerElement=void 0)};
_.d.onUpdateHeader=function(b){(b=b.detail)&&this.set("data",b)};
_.d.computeTextDisplayed=function(b){if(b)return b.textDisplayed?b.textDisplayed:b.placeholder};
_.d.gradientColorToLinearGradientStop=function(b){var h=this.isDarkTheme?b.darkThemeColor:b.lightThemeColor;return h?_.CR(h)+" "+((b==null?void 0:b.startLocation)||0)*100+"%":"transparent"};
_.d.onWindowResize=function(){var b;((b=this.data)==null?0:b.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.d.onIronResize=function(b){this.isUltraWide=!b.detail.value};
_.d.onDarkModeToggledAction=function(b){this.isDarkTheme=b};
_.d.onUpdatePlaylistName=function(b){var h=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},b.detail.value));_.Ob(this,function(){var y;(y=h.editableTitle)==null||y.resize()})};
_.d.onUpdatePlaylistDescription=function(b){var h=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},b.detail.value));_.Ob(this,function(){var y;(y=h.editableDescriptionInlineExpander)==null||y.resize()})};
_.d.getCinematicData=function(b){return _.c(b==null?void 0:b.cinematicContainer,_.bv)};
_.tm.Object.defineProperties(sO.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 b,h=(b=this.getCinematicData(this.data))==null?void 0:b.config;return(b=this.isDarkTheme?h==null?void 0:h.darkThemeBackgroundColor:h==null?void 0:h.lightThemeBackgroundColor)?"background-color:"+_.eI(b)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var b;return _.c((b=this.data)==null?void 0:b.descriptionForm,P_x)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var b=this,h,y,S;return"background:linear-gradient(to bottom, "+(((S=(h=this.getCinematicData(this.data))==null?void 0:(y=h.gradientColorConfig)==null?void 0:y.map(function(F){return b.gradientColorToLinearGradientStop(F)}))==null?void 0:S.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var b;return _.vi((b=this.data)==null?void 0:b.descriptionTapText)}}});
sO.prototype.onUpdateHeader=sO.prototype.onUpdateHeader;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],sO.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],sO.prototype,"actionHandlerBehavior",void 0);_.V([_.to("#description-inline-expander"),_.f("design:type",Object)],sO.prototype,"descriptionInlineExpander",void 0);
_.V([_.to("#editable-description-inline-expander"),_.f("design:type",Object)],sO.prototype,"editableDescriptionInlineExpander",void 0);_.V([_.C(),_.f("design:type",Object)],sO.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],sO.prototype,"isUltraWide",void 0);_.V([_.to("#editable-title-display"),_.f("design:type",Object)],sO.prototype,"editableTitle",void 0);_.V([_.W("isUltraWide"),_.f("design:type",Object),_.f("design:paramtypes",[])],sO.prototype,"maxDescriptionLines",null);
_.V([_.C({reflectToAttribute:!0}),_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],sO.prototype,"noCinematicData",null);_.V([_.u3("yt-new-playlist-header"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],sO.prototype,"onUpdateHeader",null);_.V([_.W("data","isDarkTheme"),_.f("design:type",Object),_.f("design:paramtypes",[])],sO.prototype,"backgroundStyle",null);
_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],sO.prototype,"descriptionFormData",null);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],sO.prototype,"getDropdownTheme",null);_.V([_.W("data","isDarkTheme"),_.f("design:type",String),_.f("design:paramtypes",[])],sO.prototype,"gradientStyle",null);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],sO.prototype,"descriptionTapText",null);
_.V([_.Yx({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],sO);
_.k(sO,"ytd-playlist-header-renderer",function(){if(SW9!==void 0)return SW9;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return SW9=b},{mode:_.Lt("kevlar_poly_si_batch_j078")?1:2});var nZ9;var X4M;var Yn=function(){return _.g.apply(this,arguments)||this};
_.z(Yn,_.g);Yn.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Yn.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Yn.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Yn.prototype,"data",void 0);_.V([_.Yx({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],Yn);
_.k(Yn,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(X4M!==void 0)return X4M;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return X4M=b},{mode:1});var T5=function(){return _.g.apply(this,arguments)||this};
_.z(T5,_.g);
T5.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}}}}};
T5.prototype.computeUsePremiumShowStyle=function(b){if(!b||!b.items)return!1;for(var h=0;h<b.items.length;h++)if(_.c(b.items[h],K2P)){var y=void 0;return((y=_.c(b.items[h],K2P))==null?void 0:y.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],T5.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],T5.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],T5.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.f("design:type",Boolean)],T5.prototype,"usePremiumShowStyle",void 0);
_.V([_.Yx({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],T5);
_.k(T5,"ytd-playlist-sidebar-renderer",function(){if(nZ9!==void 0)return nZ9;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return nZ9=b},{mode:1});var HlR;var u5c;var Ol2=function(b,h,y,S,F,a,P,K){this.minWidth=b;this.minHeight=h;this.recommendedWidth=y;this.recommendedHeight=S;this.JSC$22868_maxFileSize=F;this.title=a;this.bannerGalleryTitle=P;this.channelId=K;this.picker_=null;b=_.XQf("yt-banner");h=b.addView;y=(new baA("youtubebanner")).addUploadMetadata("silo_id","19");y.opts.ytMaxFileSize=this.JSC$22868_maxFileSize;S=this.recommendedHeight;y.opts.ytRecWidth=this.recommendedWidth;y.opts.ytRecHeight=S;h.call(b,y);b.addView(new _.qI);h=b.addView;y=new _.qI;
y.opts.type="ytbanner";h.call(b,y.JSC$10257_setLabel(this.bannerGalleryTitle));h=b.setTitle(this.title).setSize(1E3);h.urlParamMap_.set("thumbs","orig");y=this.minWidth;S=this.minHeight;if(isNaN(y)||isNaN(S))throw Error("hb`"+y+"`"+S);h.urlParamMap_.set("minSize",y+"x"+S);h.urlParamMap_.set("cropMode","ytcb");this.builder_=b};
Ol2.prototype.open=function(){var b=this;return new _.Uu(function(h,y){_.JR8(b.builder_,function(S){S.action=="picked"?h(S):S.action=="cancel"&&y(Error("cp"))});
b.picker_&&b.picker_.dispose();b.picker_=b.builder_.build();b.picker_.setVisible(!0)})};
Ol2.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var Ng_=function(b){this.channelId=b};
Ng_.prototype.upload=function(b){var h="";b.viewToken&&(h=b.viewToken[2].type);var y=b.docs[0];b=y.crop;h={channel_id:this.channelId,fife_url:y.thumbnails[0].url,photo_id:y.id,is_gallery_image:h=="ytbanner"};b&&(h.crop_top=b.top,h.crop_right=b.right,h.crop_bottom=b.bottom,h.crop_left=b.left);return _.heq("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:h})};var G5=function(){var b=_.g.apply(this,arguments)||this;b.ariaLabel=null;return b};
_.z(G5,_.g);_.d=G5.prototype;_.d.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.d.detached=function(){this.picker&&this.picker.dispose()};
_.d.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.d.computeAriaLabel=function(b){return b};
_.d.onTap=function(){var b=this,h;if((h=this.data)==null||!h.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new Ol2(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 y;(y=this.picker)==null||y.open().then(function(S){b.handleBannerPicked(S)},function(){})}};
_.d.handleBannerPicked=function(b){var h=this;this.uploader||(this.uploader=new Ng_(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(b).then(function(y){h.handleBannerUploadSucceeded(y)},function(y){h.handleBannerUploadFailed(y)})};
_.d.handleBannerUploadSucceeded=function(b){b&&b.errors?this.handleBannerUploadFailed(b):(_.Sx(this.hostElement,"yt-banner-updated",b),this.message=null)};
_.d.handleBannerUploadFailed=function(b){this.message=b&&b.errors&&b.errors.length?b.errors[0]:null};
G5.prototype.dataChanged=G5.prototype.dataChanged;_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],G5.prototype,"componentBehavior",void 0);_.V([_.B(_.jp),_.f("design:type",Object)],G5.prototype,"ironButtonState",void 0);_.V([_.C(),_.f("design:type",Object)],G5.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.f("design:type",Object)],G5.prototype,"ariaLabel",void 0);
_.V([_.C(),_.f("design:type",Object)],G5.prototype,"message",void 0);_.V([_.C(),_.f("design:type",Object)],G5.prototype,"picker",void 0);_.V([_.C(),_.f("design:type",Object)],G5.prototype,"uploader",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],G5.prototype,"dataChanged",null);_.V([_.Yx({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],G5);
_.k(G5,"ytd-channel-banner-editor-renderer",function(){if(u5c!==void 0)return u5c;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return u5c=b},{mode:1});var tYx;var rip=_.bm(["#"]),kn=function(){return _.g.apply(this,arguments)||this};
_.z(kn,_.g);kn.prototype.computeHrefWithDefault=function(b){return this.ytComponentBehavior.computeHref_(b,!0)||_.nff(rip)};
kn.prototype.dataChanged=function(){var b=this.data;b&&b.targetId&&_.vy(_.bg(),b.targetId,this.moreIcon)};
kn.prototype.dataChanged=kn.prototype.dataChanged;_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],kn.prototype,"ytComponentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],kn.prototype,"data",void 0);_.V([_.to("#more-icon"),_.f("design:type",Object)],kn.prototype,"moreIcon",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],kn.prototype,"dataChanged",null);
_.V([_.Yx({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],kn);
_.k(kn,"ytd-channel-tagline-renderer",function(){if(tYx!==void 0)return tYx;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return tYx=b},{mode:1});var ciP;var VL=function(){return _.g.apply(this,arguments)||this};
_.z(VL,_.g);_.d=VL.prototype;_.d.ready=function(){var b=this;_.$x(this.hostElement).querySelector("#form").addEventListener("submit",function(h){b.onSubmit(h)})};
_.d.onDataChanged=function(){var b;((b=this.data)==null?0:b.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.d.onIconButtonKeydown=function(b){b.keyCode===13&&this.iconButton.click()};
_.d.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.d.openOnClickHandler=function(){this.input.focus()};
_.d.onSubmit=function(b){b.preventDefault();return!1};
_.d.submitOnEnterKeyUp=function(b){var h;if(b.keyCode===13&&((h=this.data)==null?0:h.expandedText)){b=this.data.endpoint;h=_.lR.unsafeClone(b);var y;((y=_.c(h==null?void 0:h.commandMetadata,_.ZW))==null?0:y.url)?(_.c(h.commandMetadata,_.ZW).url=_.SH(_.c(h.commandMetadata,_.ZW).url,"query",this.data.expandedText),_.c(h,_.O0)&&(_.c(h,_.O0).query=this.data.expandedText),_.Sx(this.hostElement,"yt-navigate",{endpoint:h,tempData:{disableCache:!0}})):(y=new _.Gn("Error: Trying to navigate to an endpoint without url",
b),_.QT(y))}};
_.d.updateDataExpandedTextFromBinding=function(b){this.set("data.expandedText",b.detail.value)};
_.tm.Object.defineProperties(VL.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.r("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
VL.prototype.onDataChanged=VL.prototype.onDataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],VL.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Xlf),_.f("design:type",Object)],VL.prototype,"ytdExpandableInputBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],VL.prototype,"data",void 0);_.V([_.to("#input"),_.f("design:type",Object)],VL.prototype,"input",void 0);_.V([_.to("#icon-button"),_.f("design:type",HTMLElement)],VL.prototype,"iconButton",void 0);
_.V([_.C(),_.f("design:type",String),_.f("design:paramtypes",[])],VL.prototype,"searchIcon",null);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],VL.prototype,"onDataChanged",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],VL);
var w0p=_.$S()(VL,"ytd-expandable-tab-renderer",function(){if(ciP===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);ciP=b}b=ciP;return b},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var Rrx;var EO=function(){var b=_.g.apply(this,arguments)||this;b.avatarSize=80;b.ariaLabel=_.Mt("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return b};
_.z(EO,_.g);EO.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
EO.prototype.computeHref=function(b){var h;return((h=_.c(b,_.jH))==null?0:h.url)?this.componentBehavior.computeHref_(b):null};
EO.prototype.onTap=function(){var b,h;(b=this.data)==null||!b.editAvatarServiceEndpoint||((h=_.c(this.data.editAvatarServiceEndpoint,_.jH))==null?0:h.url)||_.H9().resolve(_.OM).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.V([_.B(_.jp),_.f("design:type",Object)],EO.prototype,"ironButtonState",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],EO.prototype,"componentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],EO.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],EO.prototype,"avatarSize",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",String)],EO.prototype,"ariaLabel",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],EO);
_.k(EO,"ytd-channel-avatar-editor",function(){if(Rrx!==void 0)return Rrx;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return Rrx=b},{mode:1});var zr9=_.T(function(b){var h=b.data;var y=b.noPadding;var S=b.enableBanner;var F=b.cinematicContainerTopbarOffset;var a=b.allowCinematicContainerOverflow;var P=b.displayAsSidebar;b=b.className;_.Qi(function(){h().tagManagerId&&(_.dc(h().tagManagerId,_.QC("GL")),vTM(h().tagManagerId))},"vUc8md");
var K=_.OF(qDA,function(){return h().pageHeaderEntityKey});
return _.M("yt-page-header-renderer",{class:_.P2("pageHeaderRendererHost",b)},_.M(_.rC,{data:function(){var n;return((n=K())==null?0:n.header)?K().header:(P==null?0:P())&&h().sidebarContent?h().sidebarContent:h().content}},{pageHeaderViewModel:function(n){return _.M(_.LMf,{data:n.data,
noPadding:y,enableBanner:S,cinematicContainerTopbarOffset:F,allowCinematicContainerOverflow:a,displayAsSidebar:function(){return(P==null?void 0:P())&&h().enableSidebarView}})}}))},"Nn");
zr9.idomCompat=!0;_.yd(zr9,"yt-page-header-renderer",{props:{data:_.D4,noPadding:_.D4,enableBanner:_.D4,cinematicContainerTopbarOffset:_.D4,allowCinematicContainerOverflow:_.D4,displayAsSidebar:_.D4,className:_.D4}});_.yd(_.UI,"yt-image-banner-view-model",{props:{data:_.D4,isPositionRelative:_.D4}});_.yd(_.BIf,"yt-tab-group-shape",{props:{shape:_.D4}});var DUx=_.iM.persistentPanelVisibleSelector,iv=function(){var b=_.g.apply(this,arguments)||this;b.expandableCustomTabRenderable=function(h){return l99(h,function(){return void b.onSearchNavigate()})};
b.isRichGrid=!1;b.isConstrainedList=!1;b.richGridMiniMode=!1;b.richGridStyle="RICH_GRID_STYLE_UNKNOWN";b.isRichGridShorts=!1;b.responsiveSizing="COMPACT";b.disableGridStateAware=!1;b.useRaf=!_.r("web_use_raf_app_header_layout_killswitch");b.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return b};
_.z(iv,_.g);_.d=iv.prototype;_.d.computeHeaderDisabled=function(b,h){return h||!b||this.tabsHidden};
_.d.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.d.computeIsRichGridShorts=function(b){return b==="RICH_GRID_STYLE_SHORTS_GRID"||b==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.d.computeImageBannerViewModel=function(){var b,h;return _.c((h=_.c((b=this.data)==null?void 0:b.content,_.Hfo))==null?void 0:h.banner,_.Pwo)};
_.d.computeHasCinematicContainer=function(){var b,h;return!((h=_.c((b=this.data)==null?void 0:b.content,_.Hfo))==null||!h.background)};
_.d.handleHeaderResize=function(){var b=_.$x(this.hostElement).querySelector("#header");b&&_.Sx(b,"iron-resize")};
_.d.handleInsertTabCommand=function(b){var h=_.c(b,Oac);h&&(h.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(y){return y.tabRenderer&&y.tabRenderer.tabIdentifier===h.tabIdentifier})||this.splice("tabs",h.tabIndex||-1,0,h.tab))};
_.d.handleRefreshChannelTabAction=function(b){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===b&&_.Sx(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.d.persistentPanelVisibleChanged=function(){this.handleHeaderResize()};
_.d.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.nZ(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.d.observerRichGridSlimItemsPerRow=function(){_.nZ(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.d.updateCssVars=function(){this.richGridItemsPerRow&&_.nZ(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.tj("rich_grid_max_item_width",500))+16)-16+"px"})};
_.d.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.nZ(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.d.onDataChanged=function(){this.handleHeaderResize()};
_.d.onWindowResize=function(){this.handleHeaderResize()};
_.d.onFocusedChanged=function(b){(b=_.mi(b))&&b.is==="tp-yt-paper-tab"&&b.hasRipple()&&(b.getRipple().holdDown=!b.pointerDown&&b.focused)};
_.d.updateSelectedFromBinding=function(b){this.ytdTabbedHeaderBehavior.selected=b.detail.value};
_.d.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.tm.Object.defineProperties(iv.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:QY2(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.imageBannerViewModel)==null?void 0:b.style)==="IMAGE_BANNER_STYLE_INSET"}}});
iv.prototype.onDataChanged=iv.prototype.onDataChanged;iv.prototype.updateCssVarsForResponsiveGrid=iv.prototype.updateCssVarsForResponsiveGrid;iv.prototype.updateCssVars=iv.prototype.updateCssVars;iv.prototype.observerRichGridSlimItemsPerRow=iv.prototype.observerRichGridSlimItemsPerRow;iv.prototype.observerRichGridItemsPerRow=iv.prototype.observerRichGridItemsPerRow;iv.prototype.persistentPanelVisibleChanged=iv.prototype.persistentPanelVisibleChanged;
_.V([_.B(_.Rp),_.f("design:type",Object)],iv.prototype,"ytdGridStateAwareBehavior",void 0);_.V([_.B(Nsp),_.f("design:type",Object)],iv.prototype,"ytdTabbedHeaderBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],iv.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],iv.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.DV.YtdGuideStateAwareBehavior),_.f("design:type",Object)],iv.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],iv.prototype,"ytdReduxBehavior",void 0);_.V([_.to("#tabs"),_.f("design:type",Object)],iv.prototype,"tabsElement",void 0);_.V([_.C(),_.f("design:type",Array)],iv.prototype,"tabs",void 0);_.V([_.C(),_.f("design:type",Object)],iv.prototype,"expandableCustomTabRenderable",void 0);
_.V([_.W("tabs.*"),_.f("design:type",Object),_.f("design:paramtypes",[])],iv.prototype,"tabGroupShape",null);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],iv.prototype,"isRichGrid",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],iv.prototype,"isConstrainedList",void 0);_.V([_.C({reflectToAttribute:!0,selector:_.Jt}),_.f("design:type",Object)],iv.prototype,"richGridMiniMode",void 0);_.V([_.C({selector:function(b){return b.ui.richGridStyle}}),
_.f("design:type",Object)],iv.prototype,"richGridStyle",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.f("design:type",Object)],iv.prototype,"isRichGridShorts",void 0);_.V([_.C({selector:_.e7}),_.f("design:type",Number)],iv.prototype,"richGridItemsPerRow",void 0);_.V([_.C({selector:function(b){return b.ui.richGridContainerWidth}}),
_.f("design:type",Number)],iv.prototype,"richGridContainerWidth",void 0);_.V([_.C({selector:_.gNI}),_.f("design:type",Number)],iv.prototype,"richGridSlimItemsPerRow",void 0);_.V([_.C(),_.f("design:type",Object)],iv.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],iv.prototype,"responsiveSizing",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],iv.prototype,"disableGridStateAware",void 0);
_.V([_.C({computed:"computeImageBannerViewModel(data)"}),_.f("design:type",Object)],iv.prototype,"imageBannerViewModel",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.f("design:type",Boolean)],iv.prototype,"hasCinematicContainer",void 0);_.V([_.C({selector:_.bZf,reflectToAttribute:!0}),_.f("design:type",Boolean)],iv.prototype,"guideIsVisibleButNotPersistent",void 0);
_.V([_.C({selector:DUx}),_.f("design:type",Boolean)],iv.prototype,"persistentPanelVisible",void 0);_.V([_.C({reflectToAttribute:!0}),_.W("imageBannerViewModel"),_.f("design:type",Object),_.f("design:paramtypes",[])],iv.prototype,"hasBanner",null);_.V([_.C({reflectToAttribute:!0}),_.W("imageBannerViewModel"),_.f("design:type",Object),_.f("design:paramtypes",[])],iv.prototype,"hasInsetBanner",null);_.V([_.C(),_.f("design:type",Object)],iv.prototype,"useRaf",void 0);
_.V([_.C({computed:"computeTabsHidden(tabs)",value:!0}),_.f("design:type",Boolean)],iv.prototype,"tabsHidden",void 0);_.V([_.OB("persistentPanelVisible"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],iv.prototype,"persistentPanelVisibleChanged",null);_.V([_.OB("richGridItemsPerRow","isRichGrid"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],iv.prototype,"observerRichGridItemsPerRow",null);
_.V([_.OB("richGridSlimItemsPerRow"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],iv.prototype,"observerRichGridSlimItemsPerRow",null);_.V([_.OB("richGridItemsPerRow","richGridMiniMode"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],iv.prototype,"updateCssVars",null);
_.V([_.OB("richGridContainerWidth"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],iv.prototype,"updateCssVarsForResponsiveGrid",null);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],iv.prototype,"onDataChanged",null);_.V([_.Yx({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],iv);
_.k(iv,"ytd-tabbed-page-header",function(){if(HlR!==void 0)return HlR;var b=document.createElement("template");_.D(b,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tabbed-page-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <tp-yt-app-header-layout use-raf="[[useRaf]]" class="style-scope ytd-tabbed-page-header">\n    <tp-yt-app-header id="header" slot="header" condenses="" disabled="[[computeHeaderDisabled(active, guideIsVisibleButNotPersistent, tabs)]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n        <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n          <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n            <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n              <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header">\n              </yt-image-banner-view-model>\n            </div>\n          </div>\n        </template>\n        <div id="page-header" class="style-scope ytd-tabbed-page-header">\n          <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[tabsHidden]]" no-padding="" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n        </div>\n      </div>\n      <tp-yt-app-toolbar disable-upgrade$="[[tabsHidden]]" sticky="" class="style-scope ytd-tabbed-page-header">\n        <div id="tabs-container" class="style-scope ytd-tabbed-page-header">\n          \n          <div id="tabs-inner-container" class="style-scope ytd-tabbed-page-header">\n            <div id="tabs-divider" class="style-scope ytd-tabbed-page-header"></div>\n            <tp-yt-paper-tabs id="tabs" disable-upgrade$="[[tabsHidden]]" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-tabbed-page-header">\n              <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-tabbed-page-header"> </yt-tab-group-shape>\n            </tp-yt-paper-tabs>\n          </div>\n        </div>\n      </tp-yt-app-toolbar>\n    </tp-yt-app-header>\n  </tp-yt-app-header-layout>\n</template>\n<template is="dom-if" if="[[tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n    <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n        <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n          <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header"> </yt-image-banner-view-model>\n        </div>\n      </div>\n    </template>\n    <div id="page-header" class="style-scope ytd-tabbed-page-header">\n      <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[!tabsHidden]]" no-padding="true" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n    </div>\n  </div>\n</template>\n');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return HlR=b},{mode:1});var Ibc;var f5=function(){return _.g.apply(this,arguments)||this};
_.z(f5,_.g);f5.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.nZ(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.tm.Object.defineProperties(f5.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var b,h;return this.componentBehavior.computeIcon_(((h=_.c((b=this.data)==null?void 0:b.badge,_.rV7))==null?void 0:h.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var b,h;return(h=_.c((b=this.data)==null?void 0:b.badge,_.rV7))==null?void 0:h.label}}});
f5.prototype.observerRichGridItemsPerRow=f5.prototype.observerRichGridItemsPerRow;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],f5.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],f5.prototype,"componentBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],f5.prototype,"ytdReduxBehavior",void 0);_.V([_.C({reflectToAttribute:!0,selector:_.Jt}),_.f("design:type",Boolean)],f5.prototype,"richGridMiniMode",void 0);
_.V([_.C({selector:_.e7}),_.f("design:type",Number)],f5.prototype,"richGridItemsPerRow",void 0);_.V([_.C(),_.f("design:type",Object)],f5.prototype,"data",void 0);_.V([_.OB("richGridItemsPerRow"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],f5.prototype,"observerRichGridItemsPerRow",null);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],f5.prototype,"badgeIconName",null);
_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],f5.prototype,"badgeLabel",null);_.V([_.Yx({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],f5);
_.k(f5,"ytd-member-hub-profile-renderer",function(){if(Ibc!==void 0)return Ibc;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return Ibc=b},{mode:1});var Bgf;var w8=function(){return _.g.apply(this,arguments)||this};
_.z(w8,_.g);w8.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],w8.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],w8.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],w8.prototype,"data",void 0);_.V([_.Yx({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],w8);
_.k(w8,"ytd-settings-sidebar-renderer",function(){if(Bgf!==void 0)return Bgf;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return Bgf=b},{mode:1});var W$D;var lv=function(){var b=_.g.apply(this,arguments)||this;b.expandableCustomTabRenderable=function(h){return l99(h,function(){return void b.onSearchNavigate()})};
return b};
_.z(lv,_.g);lv.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
lv.prototype.onSearchNavigate=function(){this.selected=void 0};
lv.prototype.onTabsChange=function(){var b,h=(b=this.tabs)==null?void 0:b.findIndex(function(y){var S;return y==null?void 0:(S=y.tabRenderer)==null?void 0:S.selected});
h!==void 0&&(this.selected=h)};
lv.prototype.onTabsActive=function(b){if(this.tabs!==void 0){var h,y;(b=(h=this.tabs[b.detail.selected])==null?void 0:(y=h.tabRenderer)==null?void 0:y.endpoint)&&_.Sx(this.hostElement,"yt-navigate",{endpoint:b})}};
_.tm.Object.defineProperties(lv.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:QY2(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
lv.prototype.onTabsChange=lv.prototype.onTabsChange;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],lv.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Rp),_.f("design:type",Object)],lv.prototype,"ytdGridStateAwareBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],lv.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.DV.YtdGuideStateAwareBehavior),_.f("design:type",Object)],lv.prototype,"ytdGuideStateAwareBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],lv.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Array)],lv.prototype,"tabs",void 0);_.V([_.C(),_.f("design:type",Number)],lv.prototype,"selected",void 0);_.V([_.W("tabs.*"),_.f("design:type",Object),_.f("design:paramtypes",[])],lv.prototype,"tabGroupShape",null);_.V([_.C(),_.f("design:type",Object)],lv.prototype,"expandableCustomTabRenderable",void 0);
_.V([_.W("tabs"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],lv.prototype,"tabsEnabled",null);_.V([_.zj("tabs"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],lv.prototype,"onTabsChange",null);_.V([_.Yx({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],lv);
_.k(lv,"ytd-topic-channel-details-renderer",function(){if(W$D!==void 0)return W$D;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return W$D=b},{mode:1});var Aif;var qX=function(){var b=_.g.apply(this,arguments)||this;b.disableGridStateAware=!1;return b};
_.z(qX,_.g);qX.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]]"}}}}}};
qX.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
qX.prototype.updateCssVars=function(){_.nZ(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.tj("rich_grid_max_item_width",500))+16)-16+"px"})};
qX.prototype.updateCssVars=qX.prototype.updateCssVars;qX.prototype.activeChanged=qX.prototype.activeChanged;_.V([_.B(_.DV.YtdGuideStateAwareBehavior),_.f("design:type",Object)],qX.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],qX.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],qX.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],qX.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],qX.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Array)],qX.prototype,"tabs",void 0);_.V([_.C(),_.f("design:type",Boolean)],qX.prototype,"active",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],qX.prototype,"disableGridStateAware",void 0);
_.V([_.C({selector:_.e7}),_.f("design:type",Number)],qX.prototype,"richGridItemsPerRow",void 0);_.V([_.C({selector:_.Jt}),_.f("design:type",Boolean)],qX.prototype,"richGridMiniMode",void 0);_.V([_.to("ytd-carousel-item-renderer"),_.f("design:type",Object)],qX.prototype,"carousel",void 0);_.V([_.OB("active"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],qX.prototype,"activeChanged",null);
_.V([_.OB("richGridItemsPerRow","richGridMiniMode"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],qX.prototype,"updateCssVars",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],qX);
_.k(qX,"ytd-carousel-header-renderer",function(){if(Aif!==void 0)return Aif;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return Aif=b},{mode:1});var UUp;var p4x=_.bm(["https://www.google-analytics.com/analytics.js"]),xn=function(){var b=_.g.apply(this,arguments)||this;b.scriptAnalyticsAdded=!1;return b};
_.z(xn,_.g);xn.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var b,h=(b=this.data)==null?void 0:b.tagManagerId;h&&(_.dc(h,_.QC("GL")),vTM(h))};
xn.prototype.sendGoogleAnalyticsPageview=function(b){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var y=_.x$.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(y)};
var h=window.ga;h("set","page",window.location.pathname);h.l=+new Date;h("set","forceSSL",!0);h("create",b,"'auto'");h("send","pageview")};
xn.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var b=_.gB("SCRIPT");b.name="ga-analytics";var h=_.Ra(p4x);_.ZF(b,h);b.async=!0;_.$x(this.hostElement).appendChild(b)};
xn.prototype.dataChanged=xn.prototype.dataChanged;_.V([_.C(),_.f("design:type",Object)],xn.prototype,"data",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],xn.prototype,"dataChanged",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],xn);
_.k(xn,"ytd-channel-metadata-renderer",function(){if(UUp!==void 0)return UUp;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return UUp=b},{mode:1});var JiM;var erL;var QL=function(){var b=_.g.apply(this,arguments)||this;b.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"]);b.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"]);b.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return b};
_.z(QL,_.g);_.d=QL.prototype;_.d.attached=function(){this.requestElementsPerRow()};
_.d.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_]]"}}}}}};
_.d.onUpdateElementsPerRowAction=function(b){b&&this.elementsPerRow!==b&&(this.elementsPerRow=b)};
_.d.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.d.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.d.computeAlertStyle_=function(b){return b};
_.d.observerElementsPerRow=function(){this.elementsPerRow&&_.nZ(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.d.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.d.requestElementsPerRow=function(){_.Sx(this.hostElement,"yt-request-elements-per-row")};
QL.prototype.onIsVisibleChanged_=QL.prototype.onIsVisibleChanged_;QL.prototype.observerElementsPerRow=QL.prototype.observerElementsPerRow;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],QL.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],QL.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],QL.prototype,"actionHandlerBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],QL.prototype,"data",void 0);_.V([_.C({value:6,reflectToAttribute:!0}),_.f("design:type",Number)],QL.prototype,"elementsPerRow",void 0);_.V([_.C({value:!1,reflectToAttribute:!0}),_.f("design:type",Boolean)],QL.prototype,"wrapButtons",void 0);_.V([_.C({value:_.QC("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.f("design:type",Boolean)],QL.prototype,"isMusic",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.f("design:type",String)],QL.prototype,"alertStyle",void 0);_.V([_.C({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.f("design:type",Function)],QL.prototype,"dismissBoundButtonTap_",void 0);_.V([_.C({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.f("design:type",Function)],QL.prototype,"acceptBoundButtonTap_",void 0);_.V([_.OB("elementsPerRow"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],QL.prototype,"observerElementsPerRow",null);_.V([_.OB("data.isVisible"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],QL.prototype,"onIsVisibleChanged_",null);_.V([_.sB({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],QL);
_.k(QL,"yt-alert-with-actions-renderer",function(){if(erL===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;JiM===void 0&&(JiM=document.createElement("template"));var S=JiM;y.call(h,S.content.cloneNode(!0),b.content.firstChild);erL=b}b=erL;return b},{mode:2});var Cn9=_.T(function(b){var h={};return _.M(_.zv,{text:b.text,className:_.P2("ytPersonalGreetingViewModelHeadline",(h.ytPersonalGreetingViewModelHeadlineSmall=b.isSmallHeadline,h))})},"Pn");_.yd(_.T(function(b){var h=_.Ch(function(){var N;return(N=b.data())==null?void 0:N.rendererContext},void 0,void 0,void 0,!0),y=function(){return b.data().canvasPromoData},S=function(){var N;
return(N=b.data().bannerHeight)!=null?N:56},F=_.L(_.Rr({throttleMs:100})),a=F.next().value;
F=F.next().value;var P=_.L(_.Rr({throttleMs:100})),K=P.next().value;P=P.next().value;var n=_.L(_.Rr({throttleMs:100})),X=n.next().value;n=n.next().value;var u=function(){return K.width()-a.width()>1},O=function(){return S()===48};
return _.M("yt-personal-greeting-view-model",{el:_.Qa(h,F),"aria-hidden":u,class:_.P2(b.className,"ytPersonalGreetingViewModelHost"),style:_.n9({height:(0,_.c$)(function(){return u()?0:S()})})},_.M(_.H,{cond:function(){return b.data().avatar&&!(X.width()+(b.data().avatar?48:0)-a.width()>1)},
then:function(){return _.M(_.rC,{data:function(){return b.data().avatar}},{decoratedAvatarViewModel:function(N){return _.M(_.NY,{data:N.data,
className:_.P2("ytPersonalGreetingViewModelAvatar")})}})}}),_.M("h1",null,_.M(Cn9,{text:function(){var N;
return(y==null?void 0:(N=y())==null?void 0:N.headline)||(X.width()+(b.data().avatar?48:0)-a.width()>1?b.data().shorterGreeting:b.data().greeting)},
isSmallHeadline:O})),_.M("span",{el:_.Qa(n),class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},_.M(Cn9,{text:function(){return b.data().greeting},
isSmallHeadline:O})),_.M("span",{el:_.Qa(P),class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},_.M(Cn9,{text:function(){return b.data().shorterGreeting},
isSmallHeadline:O})))},"On"),"yt-personal-greeting-view-model",{props:{data:_.D4,
className:_.D4}});var mS=function(){var b=_.g.apply(this,arguments)||this;b.hidden=!1;b.isConstrainedList=!1;b.responsiveSizing="COMPACT";b.attachedPlayers=_.r("kevlar_channel_trailer_multi_attach")?[]:void 0;b.player=null;b.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return b};
_.z(mS,_.g);_.d=mS.prototype;
_.d.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}}}}};
_.d.created=function(){var b=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){b.disposeMastheadAd()}]};
_.d.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new cr9(this.refresh,this.contents))};
_.d.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.d.activeChanged=function(){var b=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=b)};
_.d.tabsChanged=function(){var b=this,h,y;if(this.pageSubtype==="channels"||_.r("kevlar_tab_gestures_for_tabbed_header_data")&&((h=this.data)==null?0:(y=h.header)==null?0:y.carouselHeaderRenderer))this.tabGestures=new Do$(this.contents,this.contents,this.hostElement,this.header,function(P){b.ytdReduxBehavior.dispatch(P)});
var S,F,a;h=(S=this.data)==null?void 0:(F=S.contents)==null?void 0:(a=F.twoColumnBrowseResultsRenderer)==null?void 0:a.tabs;this.tabGestures&&this.tabGestures.tabsChanged(h)};
_.d.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.d.engagementPanelsChanged=function(){var b=_.H9().resolve(_.Mp);if(b){if(this.engagementPanels)for(var h=_.L(this.engagementPanels),y=h.next();!y.done;y=h.next()){var S=void 0;(y=(S=y.value.identifier)==null?void 0:S.tag)&&b.panelMap.delete(y)}this.engagementPanels=[];var F;h=_.L(((F=this.data)==null?void 0:F.panels)||[]);for(F=h.next();!F.done;F=h.next()){F=_.c(F.value,_.xzf);var a=y=void 0,P=void 0,K=void 0;if(S=((y=F)==null?void 0:y.targetId)||((a=F)==null?void 0:a.panelIdentifier)||((P=F)==
null?void 0:(K=P.identifier)==null?void 0:K.tag))a=y=void 0,(a=(y=b).registerPanelContent)==null||a.call(y,S,{engagementPanelSectionListRenderer:F}),this.engagementPanels.push(F)}}};
_.d.onStampFinished=function(){var b=this;_.Ob(this,function(){if(b.tabGestures){var h=b.tabGestures;if(h.scrollPositionNeedsUpdate){var y=_.H9().resolve(_.XS(_.bM)),S;if((S=h.selectedTab)!=null&&S.title&&y&&(S=y.getCurrentPage())){if(h.scrollPositionForTabs.has(h.selectedTab.title)){var F,a;y=(a=(F=y.getCurrentPage())==null?void 0:F.clientHeight)!=null?a:0;F=h.scrollPositionForTabs.get(h.selectedTab.title);S.setScrollTop(F);y>F+100&&(h.scrollPositionNeedsUpdate=!1)}else S.setScrollTop(Math.min(h.lastVisitedTabScrollPosition!==
void 0?h.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,h.tabsStartAtInPx)),h.scrollPositionNeedsUpdate=!1;h.ytdReduxDispatch(mK2(!1))}}}})};
_.d.loadPage_=function(b){this.initCsi();b&&(this.data=b);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.d.getTitle=function(b){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",b))return this.get("microformat.microformatDataRenderer.title",b);if(this.get("header.feedTabbedHeaderRenderer.title",b))return _.vi(this.get("header.feedTabbedHeaderRenderer.title",b));if(this.get("header.interactiveTabbedHeaderRenderer.title",b))return this.get("header.interactiveTabbedHeaderRenderer.title",b);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
b))return _.vi(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",b));var h,y;return(b==null?0:(h=b.header)==null?0:(y=h.pageHeaderRenderer)==null?0:y.pageTitle)?b.header.pageHeaderRenderer.pageTitle:""};
_.d.updateTitle=function(b){_.Sx(this.hostElement,"yt-update-title",this.getTitle(b))};
_.d.initCsi=function(){_.ETD(this.pageSubtype||"browse",["ol","cpt"])};
_.d.getPlayer=function(){if(_.r("kevlar_channel_trailer_multi_attach")){for(var b=_.L(this.attachedPlayers),h=b.next();!h.done;h=b.next())if(h=h.value,h.isConnected||_.ds(this.hostElement,h))return h;return null}return this.player};
_.d.getPlayerContainer=function(){return null};
_.d.onPlayerAttached=function(b,h){_.r("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(h):this.player=h};
_.d.onPlayerDetached=function(b,h){_.r("kevlar_channel_trailer_multi_attach")?(b=this.attachedPlayers.indexOf(h),b<0||this.attachedPlayers.splice(b,1)):this.player=null};
_.d.getServiceTrackingParams=function(){var b,h;return((b=this.data)==null?void 0:(h=b.responseContext)==null?void 0:h.serviceTrackingParams)||[]};
_.d.setMastheadAd=function(b){b&&b.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=b&&b.mastheadAd};
_.d.dataChanged=function(){var b=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.e9c();_.Ob(this,function(){_.aw(b.hostElement,"ytd-update-grid-state-action")})};
_.d.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.d.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var b=this.data.alerts;return b&&b.find(function(h){return!!h.alertWithActionsRenderer})}};
_.d.computeGreetingData=function(){if(this.data&&this.data.alerts){var b=this.data.alerts;return b&&b.find(function(h){return!!h.personalGreetingViewModel})}};
_.d.computeHasMemberHubProfileRenderer=function(b){var h;return!!(b==null?0:(h=b.header)==null?0:h.memberHubProfileRenderer)};
_.d.handleAlertCommand=function(b){this.get("alertCommand.alert.alertWithActionsRenderer",b)&&(b=_.c(b,$oc),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",b.alert))};
_.d.handleYtPlaylistDeletionRedirect=function(b){b=this.get("playlistDeletionRedirectCommand.redirectEndpoint",b);_.Sx(this.hostElement,"yt-navigate",{endpoint:b})};
_.d.computeFluidWidth=function(b,h,y){if(h==="mini_app"||y)return!0;var S,F,a;b=b==null?void 0:(S=b.contents)==null?void 0:(F=S.twoColumnBrowseResultsRenderer)==null?void 0:(a=F.tabs)==null?void 0:a.find(function(n){var X;return n==null?void 0:(X=n.tabRenderer)==null?void 0:X.selected});
if(!b)return!1;var P,K;return!!((P=b.tabRenderer)==null?0:(K=P.content)==null?0:K.richGridRenderer)&&!["channel","channels","playables"].includes(h)};
_.d.computeHeaderFluidWidth=function(b){return b==="hashtag-landing-page"};
_.d.computeHasSidebar=function(b){var h;return!!(b.sidebar||((h=b.header)==null?0:h.playlistHeaderRenderer))};
_.d.computeHasPageHeaderSidebar=function(b){var h,y;return!!((h=b.header)==null?0:(y=h.pageHeaderRenderer)==null?0:y.enableSidebarView)};
_.d.computeUseUnifiedShowPageLayout=function(b){if(!b||this.pageSubtype!=="show"||!b.sidebar||!b.sidebar.playlistSidebarRenderer)return!1;b=b.sidebar.playlistSidebarRenderer;if(!b.items)return!1;for(var h=0;h<b.items.length;h++)if(_.c(b.items[h],K2P)){var y=void 0;return((y=_.c(b.items[h],K2P))==null?void 0:y.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.d.computeIsConstrainedList=function(b){return b==="subscriptions-channels"};
_.d.computeResponsiveSizing=function(b){return b==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.tm.Object.defineProperties(mS.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var b,h;return((b=this.data)==null?0:(h=b.header)==null?0:h.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var b,h;if(!((b=this.data)==null?0:(h=b.sidebar)==null?0:h.playlistSidebarRenderer))return!1;var y;return(y=this.data)!=null&&y.header?!1:!0}}});
_.tm.Object.defineProperties(mS,{template:{configurable:!0,enumerable:!0,get:function(){if(IC9===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);IC9=b}b=IC9;return b}}});
mS.prototype.dataChanged=mS.prototype.dataChanged;mS.prototype.onPlayerDetached=mS.prototype.onPlayerDetached;mS.prototype.onPlayerAttached=mS.prototype.onPlayerAttached;mS.prototype.onStampFinished=mS.prototype.onStampFinished;mS.prototype.engagementPanelsChanged=mS.prototype.engagementPanelsChanged;mS.prototype.scrollAtTopChanged=mS.prototype.scrollAtTopChanged;mS.prototype.tabsChanged=mS.prototype.tabsChanged;mS.prototype.activeChanged=mS.prototype.activeChanged;
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],mS.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.Y9),_.f("design:type",Object)],mS.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],mS.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],mS.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.So.YtPageBehavior),_.f("design:type",Object)],mS.prototype,"ytPageBehavior",void 0);
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],mS.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.DV.YtdGuideStateAwareBehavior),_.f("design:type",Object)],mS.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],mS.prototype,"ytComponentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],mS.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],mS.prototype,"hidden",void 0);
_.V([_.C(),_.f("design:type",Object)],mS.prototype,"mastheadAdData",void 0);_.V([_.C({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.f("design:type",Object)],mS.prototype,"alertBannerData",void 0);_.V([_.C({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.f("design:type",Object)],mS.prototype,"greetingData",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",String)],mS.prototype,"pageSubtype",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.f("design:type",Boolean)],mS.prototype,"hasMemberHubProfileRenderer",void 0);_.V([_.C({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.f("design:type",Boolean)],mS.prototype,"hasSidebar",void 0);_.V([_.C({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.f("design:type",Boolean)],mS.prototype,"hasPageHeaderSidebar",void 0);
_.V([_.C({reflectToAttribute:!0,value:!0}),_.f("design:type",Boolean)],mS.prototype,"roundedContainer",void 0);_.V([_.C({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.f("design:type",Boolean)],mS.prototype,"useUnifiedShowPageLayout",void 0);_.V([_.C({computed:"computeIsConstrainedList(pageSubtype)"}),_.f("design:type",Object)],mS.prototype,"isConstrainedList",void 0);
_.V([_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],mS.prototype,"usePlaylistHeaderRenderer",null);_.V([_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],mS.prototype,"useOldPlaylistSidebarRenderer",null);_.V([_.C({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.f("design:type",Boolean)],mS.prototype,"fluidWidth",void 0);_.V([_.C({selector:_.hqx}),_.f("design:type",Boolean)],mS.prototype,"scrollAtTop",void 0);
_.V([_.C({selector:_.yoA}),_.f("design:type",Boolean)],mS.prototype,"tabGesturesIsActive",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.f("design:type",Boolean)],mS.prototype,"disableHeaderFluidWidth",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.f("design:type",String)],mS.prototype,"responsiveSizing",void 0);
_.V([_.to("ytd-two-column-browse-results-renderer"),_.f("design:type",HTMLElement)],mS.prototype,"contents",void 0);_.V([_.to("#header"),_.f("design:type",HTMLElement)],mS.prototype,"header",void 0);_.V([_.to("ytd-refresh"),_.f("design:type",Object)],mS.prototype,"refresh",void 0);_.V([_.OB("active"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],mS.prototype,"activeChanged",null);
_.V([_.OB("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],mS.prototype,"tabsChanged",null);_.V([_.OB("scrollAtTop"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],mS.prototype,"scrollAtTopChanged",null);_.V([_.C(),_.f("design:type",Object)],mS.prototype,"engagementPanels",void 0);
_.V([_.OB("data.panels"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],mS.prototype,"engagementPanelsChanged",null);_.V([_.u3("yt-rendererstamper-finished"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],mS.prototype,"onStampFinished",null);_.V([_.u3("yt-player-attached"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,Element]),_.f("design:returntype")],mS.prototype,"onPlayerAttached",null);
_.V([_.u3("yt-player-detached"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,Element]),_.f("design:returntype")],mS.prototype,"onPlayerDetached",null);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],mS.prototype,"dataChanged",null);_.V([_.Yx({is:"ytd-browse"})],mS);_.N1.registerService(_.bOq,mS);
_.mn();
}catch(e){_._DumpException(e)}
try{
_.QY("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 N6,NU2,tj2,r6f,c6N,RkN,zk2,DJf,I1X,BUA,WId,A6f,UJA,p3d,ekA,Ciq,s_F,YQf,TU2,kKa,VjA,ESf,ita,tS,w3A,l1F,qQf,xJq,Q_E,mJq,vSA,SkA,avN,y4F,J6A,dGA,jFd,$GE,Lfa,PpE,Kfd,Z9Y,nEf,X2A,O9f,NSd,r4F,Rzf,zzX,DGY,BSE,A4a,UGP,p2f,J4A,ezf,Cpd,gEf,sFd,YkY,TSf,GAY,kAA,i9a,fvX,w2F,lvf,qkA,xGf,QFf,mGN,bhE,hTY,yBf,SFE,Fla,a5A,dnY,j7f,$nq,LlF,PMf,KlX,ZhA,orA,Maf,nrP,XCY,Hhf,uQx,OhA,NCA,taP,rBA,cBA,RJ,RTx,zTf,ABq,TCA,ErX,ihP,xnf,mnx,qFA,wCX,aAf,$DE,MDf,f5a,Pqx,dDq,Q7F,XVE,OwA,rFA,Nxa,tDd,cFN,IAx,zlA,Bx2,Wox,DDN,RlX,
AFN,Bn,gGA,srF,YoP,Wn,TxA,GRP,kRY,lAA,qoF,AS,U1,Qrx,xDN,mDx,vG2,bWN,hNA,pY,Lgf,JS,PGa,Kga,ZWY,eu,uoN,M4Y,HWA,OWA,n7Y,t4d,XfY,RNq,r_f,c_N,zNq,IaF,D$A,U$2,CGq,Yk,TL,J_F,s8A,eNA,g7a,GL,Vc,E1,ix,dqA,x$N,LPN,Pm2,KPf,ZFA,Mkd,iWY,faX,lx,laY,fY,wo,q9E,oYd,jXP,wfF,xk,DqP,BQf,WPP,INY,r1A,UqX,eyf,NQX,uWA,OFP,sXf,tkE,vn,J1N,c1P,pvA,zyE,HFN,RyX,TQd,G4Y,k4F,EYE,fNF,wvx,lNa,qVN,QXY,xqX,vYf,b8q,y2q,SeE,aSd,dMA,jyq,$Mq,LLF,P4d,Z8E,KLN,oBA,XqF,H8A,uHd,yA,O8d,NXx,tVd,r2a,c22,RoY,zo2,DMA,ISF,BXA,WLA,UMf,pqA,J2f,eoE,
syA,TXd,GGa,VVx,kGx,EBP,i82,fSE,wqa,qeA,xM2,Qy2,mMX,vBF,bvf,hWq,yUq,S62,FXF,ayN,LXA,Ped,j6a,$kq,dkA,KXN,MWf,Zvx,oyx,HvE,nyf,XmA,u0A,Ovf,Nbq,tWf,cUq,RWA,zWE,Iyf,Bbx,AUF,pmx,eWf,gyE,Y6F,GIP,VWa,ivE,lyF,xkA,Q6Y,mkx,bGP,vyd,y7X,Swx,FWN,ala,Fh,dIa,jEA,$Id,NvE,r7x,c7A,Ilf,j0,BvA,WWA,A7a,pRA,UIN,J7A,e0P,CDA,guP,sEN,Dnd,YwA,Tva,Ce2,GSf,kSf,c42,VAY,EuA,iGf,flf,wRd,llA;
N6=function(b){if(!b)return"browse";var h=b.page,y=b.url,S,F,a,P=(S=b.response)==null?void 0:(F=S.responseContext)==null?void 0:(a=F.webResponseContextExtensionData)==null?void 0:a.pageTheme;if(P)h=P.toLowerCase().replace(/_/g,"-");else if(h!=="watch"&&h!=="learning_journey_watch"){var K,n;if((h==="browse"||h==="settings")&&((K=b.response)==null?0:(n=K.sidebar)==null?0:n.settingsSidebarRenderer))h="WEB_PAGE_TYPE_SETTINGS";else{var X,u;h==="browse"&&((X=b.response)==null?0:(u=X.metadata)==null?0:u.channelMetadataRenderer)?
h="channel":y&&(h=_.PHN(y)||h)}}return h};
NU2=function(){return new Promise(function(b){var h=window;h.attmp!==void 0?b(h.attmp):(h.attmq===void 0&&(h.attmq=[]),h.attmq.push(function(y){b(y)}))})};
tj2=function(){var b=_.hj("yt.aba.att");return b?b:_.hs.instance!==void 0?_.hs.instance.qzg.bind(_.hs.instance):null};
r6f=function(b,h){var y,S;return _.Z(function(F){return F.nextAddress==1?_.r("attmusi")&&_.r("attmusi_ue")?F.yield(NU2(),3):F.jumpTo(2):F.nextAddress!=2?(y=F.yieldResult,F.return(y.s(b,h,6E4))):(S=tj2())?F.return(S(b,h,6E4)):F.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
c6N=function(b,h,y,S,F){h=h===void 0?[]:h;F=F?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:F}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.aU(b),dialogMessages:h.map(function(a){return _.aU(a)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.aU(y),serviceEndpoint:F}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.aU(S)}}}}}};
RkN=function(b,h,y){y=y===void 0?!1:y;var S=_.h0(),F=!!_.Wy().queueProxy,a,P,K;b=b==null?void 0:(a=b.response)==null?void 0:(P=a.currentVideoEndpoint)==null?void 0:(K=P.watchEndpoint)==null?void 0:K.playlistId;if((F||b)&&!_.r("web_watch_disable_playlist_auto_miniplayer"))return y&&(S.playlistWatchPageActivation=!0),!0;switch(N6(h)){case "yts-products":return y&&(S.productDetailsPageActivation=!0),!0;case "mini_app":return y&&(S.miniAppPageActivation=!0),!0;case "playables":return y&&(S.playablesDestPageActivation=
!0),!0;case "companion-canvas":return y&&(S.companionCanvasActivation=!0),!0;default:return!1}};
zk2=function(b){b=_.jqF(b);b.length>0&&b[0].focus()};
DJf=function(b,h,y){for(var S=typeof b==="string"?b.split(""):b,F=b.length-1;F>=0;--F)F in S&&h.call(y,S[F],F,b)};
I1X=function(b,h){h=_.BIN(b,h);h>=0&&_.Uyk(b,h)};
BUA=function(b){return Array.prototype.concat.apply([],arguments)};
WId=function(b){var h=0;h=h===void 0?0:h;if(!_.aP(b))throw _.yW("uint64");var y=typeof b;switch(h){case 512:switch(y){case "string":return _.J8N(b);case "bigint":return String((0,_.tX)(64,b));default:return _.UPF(b)}case 1024:switch(y){case "string":return _.ew4(b);case "bigint":return _.YW((0,_.tX)(64,b));default:return _.pb8(b)}case 0:switch(y){case "string":return _.J8N(b);case "bigint":return _.YW((0,_.tX)(64,b));default:return _.A85(b)}default:return _.m5(h,"Unknown format requested type for int64")}};
A6f=function(b,h,y){if(h)return _.cN(b);var S;return(S=_.zq(b))!=null?S:y?"":void 0};
UJA=function(b){b!=null&&(b=b.JSC$9003_value_||"",b=typeof b==="string"?b:new Uint8Array(b));return b};
p3d=function(b,h){if(/-[a-z]/.test(h))return null;if(_.$KW&&b.dataset){if(_.O4q()&&!(h in b.dataset))return null;b=b.dataset[h];return b===void 0?null:b}return b.getAttribute("data-"+_.MQ(h))};
ekA=function(){var b=J6A;_.hj("yt.ads.biscotti.getId_")||_.HL("yt.ads.biscotti.getId_",b)};
Ciq=function(b){_.HL("yt.ads.biscotti.lastId_",b)};
s_F=function(){var b={};for(_.wH=new gSf(b.handleError===void 0?_.mm:b.handleError,b.logEvent===void 0?_.qi:b.logEvent);_.lN.length>0;)switch(b=_.lN.shift(),b.type){case "ERROR":_.wH.logError(b.payload);break;case "EVENT":_.wH.logEvent(b.eventType,b.payload)}};
YQf=function(b,h,y){return _.NRr(function(S){return y?S.userIdentifier!==void 0&&!b.includes(S.userIdentifier)&&y.includes(S.publicName):S.userIdentifier!==void 0&&!b.includes(S.userIdentifier)},h)};
TU2=function(b){var h,y;return _.Z(function(S){if(S.nextAddress==1)return h=_.Y0("YtIdbMeta hasAnyMeta other"),S.yield(_.NRr(function(F){return F.userIdentifier!==void 0&&F.userIdentifier!==h},b),2);
y=S.yieldResult;return S.return(y.length>0)})};
kKa=function(b,h){GKA||(GKA=_.xP.addLowPriorityJob(function(){var y,S,F,a,P;return _.Z(function(K){switch(K.nextAddress){case 1:return K.yield(_.uj(),2);case 2:y=K.yieldResult;if(!y)return K.return();S=!0;_.WE(K,3);return K.yield(YQf(b,y,h),5);case 5:F=K.yieldResult;if(!F.length){S=!1;K.jumpTo(6);break}a=F[0];return K.yield(_.PL(a.actualName),7);case 7:return K.yield(_.o2(a.actualName,y),6);case 6:_.Lz(K,4);break;case 3:P=_.C$(K),_.ql(P),S=!1;case 4:_.xP.cancelJob(GKA),GKA=0,S&&kKa(b,h),_.g3(K)}})}))};
VjA=function(){var b;return _.Z(function(h){return h.nextAddress==1?h.yield(_.uj(),2):(b=h.yieldResult)?h.return(TU2(b)):h.return(!1)})};
ESf=function(b){var h=100;h=h===void 0?500:h;var y,S,F,a,P,K;return _.Z(function(n){return n.nextAddress==1?(y=_.QC("INNERTUBE_CONTEXT_CLIENT_NAME",0),S=[y,(0,_.NO)()-2592E6],F=[y,(0,_.NO)()],a=IDBKeyRange.bound(S,F),n.yield(_.wl8(b),2)):n.nextAddress!=3?(P=n.yieldResult,K=[],n.yield(_.ZB(P,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(X){K.length=0;return _.t9(X.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:a,direction:"prev"},function(u){if(u.getValue()&&K.length<
h)return K.push(u.getValue()),u.delete().then(function(){return u.continue()})})}),3)):n.return(K)})};
ita=function(){var b;return _.Z(function(h){if(h.nextAddress==1)return h.yield(_.uj(),2);b=h.yieldResult;if(!b||!_.Tn()&&!_.r("nwl_init_require_datasync_id_killswitch")||!_.ZtF())return h.jumpTo(0);_.MjF=!0;_.oSn.isNwlInitialized=_.MjF;return h.yield(_.WkM().awaitInitialization(),0)})};
tS=function(b,h){_.UJy[b]=!0;var y=_.rd();y&&y.publish.apply(y,arguments);_.UJy[b]=!1};
w3A=function(){if(_.$hn()&&!f1Y){var b=function(y){y=y.data;if(y.op==="serializedGelBatch"){var S=_.p2N.get(y.key);S&&(_.ezj(y.serializedBatch,S.client,S.resolve,S.networklessOptions,S.isIsolated,S.useVSSEndpoint,S.dangerousLogToVisitorSession,S.requestsOutstanding),_.p2N.delete(y.key))}},h=_.jcY();
h&&(h.addEventListener("message",b),h.onerror=function(){_.p2N.clear()});
f1Y=!0}};
l1F=function(){this.relativeTimeStart_=_.LF()};
qQf=function(b,h){b!=null&&this.append.apply(this,arguments)};
xJq=function(){return _.sE("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
Q_E=function(b,h,y){y=y===void 0?!1:y;var S,F,a,P,K;return _.Z(function(n){switch(n.nextAddress){case 1:_.gH("SOCS",b,34128E3,"youtube.com",!0);if(_.OV)return F=fetch(h,{method:"POST",mode:_.EE(h),credentials:_.VB(h),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),a=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.EE("/upgrade_visitor_cookie?eom=1"),credentials:_.VB("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),n.yield(Promise.all([F,a]).then(function(X){return X[1]}),5);
fetch(h,{method:"POST",mode:_.EE(h),credentials:_.VB(h),cache:"no-store",headers:{"Content-Type":"text/plain"}});return n.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.EE("/upgrade_visitor_cookie?eom=1"),credentials:_.VB("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:S=n.yieldResult;n.jumpTo(3);break;case 5:S=P=n.yieldResult;case 3:if(!S.ok)throw Error("vf");return n.yield(S.text(),7);case 7:K=n.yieldResult,
!K.includes('"state_switch":true')&&!y||K.includes("skip_reload_for_test")||window.location.reload(),_.g3(n)}})};
mJq=function(b){return _.Z(function(h){return h.nextAddress==1?h.yield(Q_E(b.socsCookie,b.savePreferenceUrl,!0),2):h.return()})};
vSA=function(b){return _.Z(function(h){return h.nextAddress==1?h.yield(Q_E(b.socsCookie,b.savePreferenceUrl),2):h.return()})};
SkA=function(b){b=b.xhr.responseText;if(!_.aq(b,")]}'"))throw new b9F;b=JSON.parse(b.substr(4));if((b.type||1)>1)throw new b9F;b=b.id;Ciq(b);hzf=_.AT(b);y4F(18E5,2);return b};
avN=function(b,h){h=new FfP(h);Ciq("");hzf=_.CHa(h);b>0&&y4F(12E4,b-1);throw h;};
y4F=function(b,h){_.zn(function(){_.eqE().then(SkA,function(y){return avN(h,y)}).thenCatch(_.C8)},b)};
J6A=function(){var b=_.scf();if(b!==void 0)return _.UQ(b);hzf||(hzf=_.eqE().then(SkA).thenCatch(function(h){return avN(2,h)}));
return hzf};
dGA=function(){var b=document;return _.p4(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(h){return"on"+h.toLowerCase()in b})};
jFd=function(b){b.addEventListener("click",function(h){var y=h.target;y&&y.getAttribute("href")&&(y=y.getAttribute("href"),_.d3(window,y,"_blank"),h.preventDefault(),h.stopImmediatePropagation())})};
$GE=function(b){var h,y,S,F=(S=(y=((h=b.mainDownloadsListEntity)!=null?h:{})[_.Bcr])==null?void 0:y.refresh)!=null?S:"",a;b=(a=b.refresh)==null?void 0:a[F];F=b!=null?b:{};return(F==null?0:F.refreshTime)?Number(F==null?void 0:F.refreshTime):0};
Lfa=function(b,h){var y=_.Bi(b);return h.every(function(S){var F;S=S==null?void 0:(F=S.playbackDataEntity)==null?void 0:F.key;if(!S)return!1;F=_.oU(_.Pi(S).entityId,"mainVideoEntity");return!!y[F]})};
PpE=function(b){b=_.zD(b.entities);return _.V15(b).length};
Kfd=function(b,h){if(h){var y;b=(y=_.Mm(b.entities,"downloadQualityPickerEntity",h))!=null?y:void 0}else b=void 0;return b};
Z9Y=function(b){var h=document.getElementsByTagName("ytd-enforcement-message-view-model");h.length===0||getComputedStyle(h[0]).display==="none"?b(0,"p.h_"):b(1,"p.h_")};
nEf=function(){oEX=0;var b=[_.rq(!0)];MsP&&_.aw(MsP,"yt-window-resized",b)};
X2A=function(){oEX||(oEX=_.xP.addLowPriorityJob(nEf,200))};
O9f=function(){H9P=0;uvd=_.LQW(document);var b=[uvd];MsP&&_.aw(MsP,"yt-window-scrolled",b)};
NSd=function(){H9P||(H9P=_.xP.addLowPriorityJob(O9f,200))};
r4F=function(b){b=b===void 0?null:b;tsd.push(_.uF(window,"resize",X2A));tsd.push(_.uF(window,"scroll",NSd));b&&(MsP=b)};
Rzf=function(){var b=_.I3.getLocalStorage();b&&c42(b,b.mechanism.__iterator__(!0))};
zzX=function(b){_.Z(function(h){if(h.nextAddress==1)return h.yield(b.delete("yt-appshell-assets"),2);_.g3(h)})};
DGY=function(b){return _.Kz((0,_.YI8)(),b)};
BSE=function(){var b;_.Z(function(h){return h.nextAddress==1?h.yield(ro.getInstance(),2):(b=h.yieldResult)?h.yield(Ivx(b),0):h.jumpTo(0)})};
A4a=function(){var b;_.Z(function(h){return h.nextAddress==1?h.yield(cn.getInstance(),2):(b=h.yieldResult)?h.yield(WfY(b),0):h.jumpTo(0)})};
UGP=function(b){zzX(b);BSE();A4a()};
p2f=function(b){var h,y;return _.Z(function(S){if(S.nextAddress==1)return S.yield(_.pQN(b),2);if(h=S.yieldResult){var F;a:{if(h.headers&&(F=h.headers.get("date"))&&(F=Date.parse(F),!isNaN(F))){F=Math.round((0,_.NO)()-F);break a}F=-1}y=F;if(y>-1)return S.return(y)}return S.return(-1)})};
J4A=function(){var b=_.S5.caches,h=_.m$("IS_SHELL_LOAD"),y,S;_.Z(function(F){if(F.nextAddress==1)return y=-1,h?F.yield(p2f(b),3):(S=_.cT(),y=Math.round((0,_.NO)()-S),F.jumpTo(2));F.nextAddress!=2&&(y=F.yieldResult);y>=0&&y<2147483648&&_.WT({appInstallDataAgeMs:y});_.g3(F)})};
ezf=function(b){var h=_.La(_.S5.location.href),y={};"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(S){var F=h.JSC$10215_queryData_.getValues(S);if(F==null?0:F.length)y[S]=F});
return _.zP(b,new Map(Object.entries(y)))};
Cpd=function(b){b=b.match(/(.*)::.*::.*/);if(b!==null)return b[1]};
gEf=function(b){if(_.QQY()){var h=Object.keys(window.localStorage);h=_.L(h);for(var y=h.next();!y.done;y=h.next()){y=y.value;var S=Cpd(y);S===void 0||b.includes(S)||self.localStorage.removeItem(y)}}};
sFd=function(){if(!_.QQY())return!1;var b=_.Y0(),h=Object.keys(window.localStorage);h=_.L(h);for(var y=h.next();!y.done;y=h.next())if(y=Cpd(y.value),y!==void 0&&y!==b)return!0;return!1};
YkY=function(b){return _.GjE("NotificationsDisabled",b)};
TSf=function(){return Notification.permission!="granted"?Promise.resolve():_.SBF().then(function(b){return b?b.pushManager.getSubscription().then(function(h){if(h)return Promise.resolve();h={userVisibleOnly:!0,applicationServerKey:_.h8("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return b.pushManager.subscribe(h).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
GAY=function(b){return _.SBF().then(function(h){if(!h||!h.active)return Promise.reject(new _.Gn("serviceworker.postMessage",b,h));try{return h.active.postMessage(b),Promise.resolve()}catch(y){return Promise.reject(y)}})};
kAA=function(){GAY({type:"notifications_register",data:_.QC("ID_TOKEN")})};
i9a=function(){var b={isWide:_.Cn.get("wide","0")==="1"},h=_.HT();if(h=h.getFlag(165)||h.getFlag(174))b.theme=_.Vk(!0);if(_.nI5()){var y=_.kg()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";b.systemTheme=y}!h&&_.r("parent_tools_enable_app_settings")&&_.dH(window.location.href).theme!==void 0&&(b.theme=_.Vk());if((h=VsP)?!_.lR.equals(h,b):b)h={currentValue:b},EEN&&(h.timeSinceLastSnapshotSecs=Math.round(((0,_.NO)()-EEN)/1E3)),VsP&&(h.previousValue=VsP),_.qi("appSettingsCaptured",h),VsP=
b,EEN=(0,_.NO)()};
fvX=function(){if(!_.m$("LOGGED_IN"))return Promise.resolve(!1);var b=_.rH("service_worker_push_force_notification_prompt_tag");return b?_.FY("PromptTags").then(function(h){if(!h)return!0;var y=[];try{y=JSON.parse(h)}catch(S){return!1}return y&&y.indexOf(b)==-1}):Promise.resolve(!1)};
w2F=function(){var b=_.tj("service_worker_push_prompt_delay_microseconds");return b?_.FY("PromptTime").then(function(h){return Promise.resolve(Date.now()-b>(h||0))}):Promise.resolve(!0)};
lvf=function(){var b=_.tj("service_worker_push_logged_out_prompt_watches");return b==-1?Promise.resolve(!1):_.FY("WatchCount").then(function(h){return h>=b})};
qkA=function(){var b=_.FQ(document,"yt-push-prompt-modal-bg");b&&_.sD(b)};
xGf=function(){return _.tj("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.FY("PromptCount").then(function(b){b||(b=0);return Promise.resolve(b<_.tj("service_worker_push_prompt_cap"))})};
QFf=function(b){return _.m$("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.m$("LOGGED_IN")&&(b===void 0?0:b)?fvX().then(function(h){if(h)return!0;h=[xGf(),w2F()];_.m$("LOGGED_IN")||h.push(lvf());return Promise.all(h).then(function(y){return y.every(function(S){return S})})}):Promise.resolve(!1)};
mGN=function(){_.FY("PromptCount").then(function(b){return _.GjE("PromptCount",b+1)}).then(function(){return _.GjE("PromptTime",Date.now())}).then(function(){var b=_.rH("service_worker_push_force_notification_prompt_tag");
if(b)return _.FY("PromptTags").then(function(h){var y=[];if(h)try{y=JSON.parse(h)}catch(S){return!1}y||(y=[]);y.push(b);return _.GjE("PromptTags",JSON.stringify(y))})})};
bhE=function(){vEx||qkA()};
hTY=function(b){b.style.zIndex=2147483648;b.style.pointerEvents="auto";b.style.backgroundColor="rgba(0, 0, 0, 0.6)";b.style.width="100%";b.style.height="100vh";b.style.position="absolute";b.style.top="0";b.style.left="0";b.style.border="none"};
yBf=function(){var b=_.FQ(document,"yt-push-prompt-modal-bg");vEx=_.r("service_worker_push_prompt_modal_ignore_click");b?hTY(b):(b=_.Ee("div",{id:"yt-push-prompt-modal-bg"}),hTY(b),document.body.appendChild(b),_.DJj(document,"click",bhE))};
SFE=function(){var b=arguments;_.r("service_worker_push_prompt_modal_enable")&&yBf();return Notification.requestPermission().then(function(h){qkA();var y=document.getElementById("ticker");y&&(y.className=y.classList.remove("show"));if(h=="granted")return TSf().then(function(){YkY(!1);kAA();return Promise.resolve(!0)});
h=="denied"&&kAA();return Promise.resolve(!1)}).catch(function(){qkA();
return Promise.reject.apply(Promise,_.f$(b))})};
Fla=function(b){b=b===void 0?!1:b;var h=_.NnY().client;if(h&&h.browserVersion){var y=h.browserVersion,S=h.browserName=="CHROME"&&_.n4(y,"50.0.0")<0;h=h.browserName=="OPERA"&&_.n4(y,"42.0.0")<0;if(S||h)return Promise.resolve()}return _.dhN().then(function(F){if(!F)return Promise.resolve();F=TSf().then(function(){return GAY({type:"notifications_check_registration",data:_.QC("ID_TOKEN")})});
return Notification.permission!="default"?F.catch(function(){}):F.then(function(){return QFf(b)}).then(function(a){if(a)return mGN(),SFE().then(function(){})}).catch(function(){})})};
a5A=function(b){return _.Fcq(b)?Fla():Promise.resolve()};
dnY=function(b){var h=b.installing||b.waiting;return b.active||!h?Promise.resolve(b):new Promise(function(y){var S=function(F){F=F.target;if(F.state==="activated"||F.state==="redundant")h.removeEventListener("statechange",S),y(b)};
h.addEventListener("statechange",S)})};
j7f=function(){var b=new _.eK8("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.Hf(b,{mainAppWeb:_.wq()});var h=_.aDe;_.r("service_worker_forward_exp_params")&&(h=ezf(h));try{var y=_.cCM(h).catch(function(){_.uG(b,"FAILURE");return new Promise(function(){})});
_.r("service_worker_push_enabled")&&y.then(function(S){_.uG(b,"SUCCESS");return S}).then(dnY).then(a5A)}catch(S){if(_.uG(b,"FAILURE"),S.name!=="SecurityError")throw S;
}};
$nq=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&j7f()};
LlF=function(b,h){var y={};h&&(y.serializedYpcFamilyCreateLoggingParams=h);_.qi(b,y);_.x2()};
PMf=function(b,h){var y={};y.serializedYpcRefundFlowLoggingParams=h;b&&(y.eventType=b);_.qi("ypcRefundFlowEvent",y);_.x2()};
KlX=function(b){b&&_.zxM("transactionFlowSucceeded",b)};
ZhA=function(b){b&&_.l9("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",b,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
orA=function(b){var h,y,S,F,a,P,K;_.Z(function(n){if(n.nextAddress==1)return n.yield(_.Vty(),2);if(n.nextAddress!=3){if(!n.yieldResult)return n.return(!1);h=[];return n.yield(_.$E.keys(),3)}y=n.yieldResult;S=_.L(y);for(F=S.next();!F.done;F=S.next())a=F.value,P=_.GWk(a),K=P.datasyncId,!K||b.includes(K)||h.push(_.$E.delete(a));return n.return(Promise.all(h).then(function(X){return X.some(function(u){return u})}))})};
Maf=function(){var b,h,y,S,F,a,P;return _.Z(function(K){if(K.nextAddress==1)return K.yield(_.Vty(),2);if(K.nextAddress!=3){if(!K.yieldResult)return K.return(!1);b=_.Y0("cache contains other");return K.yield(_.$E.keys(),3)}h=K.yieldResult;y=_.L(h);for(S=y.next();!S.done;S=y.next())if(F=S.value,a=_.GWk(F),(P=a.datasyncId)&&P!==b)return K.return(!0);return K.return(!1)})};
nrP=function(){var b=_.H9().resolve(_.XS(_.$6a));return b?b.getCurrentTime():0};
XCY=function(){var b,h,y,S,F,a,P,K,n,X,u,O,N,t;return _.Z(function(R){switch(R.nextAddress){case 1:b={},h=_.fqj(),y=_.L(Object.entries(h)),S=y.next();case 4:if(S.done){R.jumpTo(3);break}F=S.value;a=_.L(F);P=a.next().value;K=a.next().value;n=P;X=K;if(!X){R.jumpTo(5);break}return R.yield(X(),8);case 8:b[n]=R.yieldResult;case 5:S=y.next();R.jumpTo(4);break;case 2:u=_.L(),O=u.next();case 9:if(O.done){R.jumpTo(3);break}N=O.value;t=h[N];if(!t){R.jumpTo(10);break}return R.yield(t(),13);case 13:b[N]=R.yieldResult;
case 10:O=u.next();R.jumpTo(9);break;case 3:return R.return(b)}})};
Hhf=function(){var b;_.Z(function(h){if(h.nextAddress==1)return h.yield(XCY(),2);b=h.yieldResult;return h.yield(navigator.clipboard.writeText(JSON.stringify(b,null,2)),0)})};
uQx=function(b,h){return _.Mm(b.entities,"superThanksSelectedTierEntity",h)};
OhA=function(b,h){return{popup:{searchSuggestionReportDialog:{searchQuery:b,title:_.Mt("SBOX_INAPPROPRIATE_TITLE"),suggestions:h,categoryLabel:_.Mt("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.Mt("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.Mt("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.Mt("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.Mt("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.Mt("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.Mt("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.Mt("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.Mt("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.Mt("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
NCA=function(b){var h,y,S,F,a,P,K,n,X,u,O,N,t,R,I,U,p,e,E;return _.Z(function(Y){switch(Y.nextAddress){case 1:return Y.yield(_.Hi(),2);case 2:return(h=Y.yieldResult)?Y.yield(_.hAy(h),3):Y.return();case 3:y=Y.yieldResult;if(!y)return Y.return();F=((S=y.offlineVideos)==null?void 0:S.length)||0;P=((a=y.offlinePlaylists)==null?void 0:a.length)||0;if(F===0&&P===0)return Y.return();K=0;if(y.offlineVideos)for(n=_.L(y.offlineVideos),X=n.next();!X.done;X=n.next())u=X.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
u.videoState&&(K+=1);b.offline_videos_count=F.toString();_.r("kevlar_log_offline_current_network_type_ks")||(b.offline_current_network_type=(O=_.xt8())!=null?O:"CONN_INVALID");_.r("kevlar_log_updated_time_for_smart_downloads")&&(N=_.hP().getState().entities,t=_.pi(N),R=$GE(N),b.offline_smart_downloads_last_sync_time_ms=t.toString(),b.offline_smart_downloads_next_sync_time_ms=R.toString());b.offline_videos_playable=K.toString();b.offline_playlists_count=P.toString();y.offlineVideos&&(I=y.offlineVideos.reduce(function(w,
x){x.downloadedBytes&&(w+=Number(x.downloadedBytes));return w},0).toString())&&(b.offline_used_disk_space_bytes=I);
if(!((U=navigator)==null?0:(p=U.storage)==null?0:p.estimate)){Y.jumpTo(4);break}return Y.yield(navigator.storage.estimate(),5);case 5:e=Y.yieldResult,b.offline_free_disk_space_bytes=(((E=e)==null?void 0:E.quota)||0).toString();case 4:b.offline_client_state=JSON.stringify(y),_.g3(Y)}})};
taP=function(b){b=b.match(/(.*)::.*::.*/);if(b!==null)return b[1]};
rBA=function(b){if(_.cIN()){var h=Object.keys(window.sessionStorage);h=_.L(h);for(var y=h.next();!y.done;y=h.next()){y=y.value;var S=taP(y);S===void 0||b.includes(S)||self.sessionStorage.removeItem(y)}}};
cBA=function(){if(!_.cIN())return!1;var b=_.Y0(),h=Object.keys(window.sessionStorage);h=_.L(h);for(var y=h.next();!y.done;y=h.next())if(y=taP(y.value),y!==void 0&&y!==b)return!0;return!1};
RJ=function(b,h,y){(_.r("desktop_keyboard_shortcut_usage_log")||y&&_.r("web_shorts_keyboard_shortcut_usage_log"))&&(h?_.oJ.get(b):_.ZQ.get(b))&&(b=h?_.qBX.get(b):_.lm2.get(b))&&_.lE(_.UE(),b)};
RTx=function(b,h){return b.findIndex(function(y){return y.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(h.keyCode):!1};
zTf=function(b,h){h.stack&&(b.stack+="\n"+h.stack);return b};
ABq=function(b){var h=Dnd(b,"Content-Type");if(!h)return null;h=h.toLowerCase();if(h.startsWith("application/json"))return h.startsWith("application/json+protobuf")?new I5F:new _.pT;if(h.startsWith("application/x-protobuf")){b=Dnd(b,"Content-Transfer-Encoding");if(!b)return new BCE;if(b.toLowerCase()=="base64")return new WlA}return null};
TCA=function(b,h,y,S){var F=new Unx(function(K,n){return pCq.has(n)?K.sentinel==="gal"&&K.event!==void 0:!1},function(K){K.event?(K=JBA(K.event),K=!K||eTx(S,K)?!0:_.IX(b.lastEvent,zL,2,DQ)?!_.IX(K,IJ,1,DQ)&&!_.IX(K,zL,2,DQ):!_.IX(K,IJ,1,DQ)&&!_.IX(K,zL,3,DQ)):K=!0;
return K});
y=_.zP(b.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",CMa(y)]]));if(b.nestedOrigins!==void 0)for(var a=_.L(b.nestedOrigins),P=a.next();!P.done;P=a.next())y=_.zP(y,new Map([["origin",P.value]]));return grP(F,y,h).then(function(K){K=s7A(K.event);if(_.IX(K,IJ,1,DQ)){var n,X=(n=_.kY(K,IJ,1,DQ))==null?void 0:_.sV(n,2);X&&S.JSC$19934_logErrorEvent(YF2(X));n=_.kY(K,IJ,1,DQ);_.sV(n,2)===4?(K=_.kY(K,IJ,1,DQ),K={statusCode:11,statusMessage:_.gQ(K,
3)}):(K=_.kY(K,IJ,1,DQ),K={statusCode:12,statusMessage:_.gQ(K,3)});return K}_.IX(K,zL,3,DQ)?(K=_.kY(K,zL,3,DQ),K={statusCode:1,consentLanguageKeys:_.gQ(K,2)}):K={statusCode:1};return K}).catch(function(K){return K.errorCode!==void 0?{statusCode:K.errorCode,
statusMessage:K.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
ErX=function(b){var h={};if(b===void 0||b===null)return h;b.getToken()!==void 0&&God(b.getToken())&&God(b.getToken()).length>0&&(h.scopes=new Set(God(b.getToken())));b.getToken()!==void 0&&koA(b.getToken())&&koA(b.getToken()).length>0&&(h.capabilities=new Set(koA(b.getToken())));_.gQ(b,3)!==void 0&&(h.consistencyKey=_.gQ(b,3));b.getName()!==void 0&&b.getName()!==""&&(h.linkName=b.getName());_.DN(b,Vaa,4)&&(b=_.cL(b,Vaa,4),b=Object.assign({},_.gQ(b,1)&&{userId:_.gQ(b,1)},_.gQ(b,2)&&{displayName:_.gQ(b,
2)},_.gQ(b,3)&&{email:_.gQ(b,3)},_.gQ(b,5)&&{username:_.gQ(b,5)},_.gQ(b,4)&&{profilePicture:_.gQ(b,4)}),h.profile=b);return h};
ihP=function(b,h){var y=b.flowParams,S;return{serviceId:y.serviceId,sessionId:y.sessionId,currentFlow:b.currentFlow,googleScopesString:h,linkingSessionSerialized:b.session.serialize(),consentLanguageKeys:y.consentLanguageKeys,callerState:b.callerState,dynamicUrlParameters:y.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(S=y.partnerConfigMinReadTimestamp)==null?void 0:S.serialize()}};
xnf=function(b){var h=b.googleScopes!==void 0?Array.from(b.googleScopes).join(","):"";f5a(ihP(b,h),b.config.localStorage);h=wCX(b);return h===null?Promise.resolve(l52):h.start().then(function(y){var S,F=(S=y.link)==null?void 0:S.consistencyKey;return y.statusCode===1&&b.googleScopes!==void 0&&b.googleScopes.size>0&&F!==void 0?(S=b.flowParams,qFA(S.serviceId,S.sessionId,b.googleScopes,F,S.galService,b.config,y)):y})};
mnx=function(b){var h=wCX(b);return h===null?Promise.resolve(Q7F({statusCode:7,statusMessage:"Failed to create flow object"},b.callerState)):h.complete().then(function(y){var S,F=(S=y.link)==null?void 0:S.consistencyKey;return y.statusCode===1&&b.googleScopes!==void 0&&b.googleScopes.size>0&&F!==void 0?(S=b.flowParams,qFA(S.serviceId,S.sessionId,b.googleScopes,F,S.galService,b.config,y)):Q7F(y,b.callerState)},function(y){return Q7F({statusCode:12,
statusMessage:"Failed to complete the flow: "+y.message},b.callerState)})};
qFA=function(b,h,y,S,F,a,P){return vrY(F,{serviceId:b,sessionId:h,googleScopes:y,consistencyKey:S}).then(function(){return P},function(K){return F.deleteLink({serviceId:b,
sessionId:h,accountLinkingEntryPoint:a.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+K.message}},function(n){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+n.message}})})};
wCX=function(b){switch(b.currentFlow){case 1:var h=b.flowParams;b=_.cL(b.session,bwP,1);return hlX.createOAuthFlow(h,b);case 2:case 3:return h=b.flowParams,b=_.cL(b.session,yFN,6),SoY.createStreamlinedFlow(h,b);default:return null}};
aAf=function(b,h){b===2&&(b=3);var y=0;Foa.indexOf(b)!==-1&&(y=Foa.indexOf(b)+1);for(b=y;b<Foa.length;b++)if(h.has(Foa[b]))return Foa[b]};
$DE=function(b){var h=b.serviceId;var y=b.sessionId;var S=b.config;var F=b.galService;var a=b.capabilities;var P=b.scopes;var K=b.loginHint;var n=b.callerState;var X=b.consentLanguageKeys;var u=b.linkName;var O=b.dynamicUrlParameters;var N=b.partnerConfigMinReadTimestamp;b=S.dataUsageNoticeConfig?S.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return F.startLinkingSession({serviceId:h,sessionId:y,capabilities:a,scopes:P,loginHint:K,callerState:n,supportedFlows:dDq(S.supportedFlows),completionUrl:S.completionUrl,
accountLinkingEntryPoint:S.accountLinkingEntryPoint,consentLanguageKeys:X,dataUsageNoticeConfig:b,linkName:u,dynamicUrlParameters:O,partnerConfigMinReadTimestamp:N}).then(function(t){return new jrF(h,y,S,F,t,void 0,n,X,O,N)})};
MDf=function(b,h,y){var S=(new LoY(h.localStorage)).getSession(b);if(S===null)return Promise.resolve({statusCode:2});Pqx(b,h.localStorage);var F=Ko2(S.linkingSessionSerialized),a=S.googleScopesString!==""&&S.googleScopesString!==void 0?new Set(S.googleScopesString.split(",")):void 0,P=S.partnerConfigMinReadTimestampSerialized?Zwq(S.partnerConfigMinReadTimestampSerialized):void 0;return oGf(new jrF(b,S.sessionId,h,y,F,a,S.callerState,S.consentLanguageKeys,S.dynamicUrlParameters,P),S.currentFlow,S.consentLanguageKeys)};
f5a=function(b,h){h=new LoY(h);h.storage!==null&&h.storage.set("SAVED_SESSION",b)};
Pqx=function(b,h){h=new LoY(h);if(h.storage!==null){var y=h.storage.get("SAVED_SESSION");y!==void 0&&y.serviceId===b&&h.storage.remove("SAVED_SESSION")}};
dDq=function(b){var h=new Set;b=_.L(b);for(var y=b.next();!y.done;y=b.next())y=y.value,y!==1&&nGY.has(y)&&h.add(nGY.get(y));return h};
Q7F=function(b,h){h!==void 0&&(b.callerState=h);return b};
XVE=function(b){switch(b){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
OwA=function(b){return new Hwq(b,new usY(b))};
rFA=function(b,h){h=h===void 0?!1:h;var y=document.createElement("div");b&&(y.style.transform="scaleX(-1)");y.style.backgroundColor=h?"rgba(138,180,248,.24)":"#e8f0fe";y.style.height="4px";y.style.overflow="hidden";y.style.position="absolute";y.style.top="0";y.style.width="100%";y.style.zIndex="1500";y.setAttribute("aria-label","Loading");y.setAttribute("aria-live","polite");b=document.createElement("style");b.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  }";
y.appendChild(b);b=Nxa();b.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";b.style.left="-145.166611%";var S=tDd(h);S.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";b.appendChild(S);y.appendChild(b);b=Nxa();b.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";b.style.left="-54.888891%";h=tDd(h);h.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
b.appendChild(h);y.appendChild(b);return y};
Nxa=function(){var b=document.createElement("div");b.style.height="100%";b.style.position="absolute";b.style.transformOrigin="top left";b.style.width="100%";return b};
tDd=function(b){var h=document.createElement("span");h.style.borderTop=b?"4px solid #669df6":"4px solid #4285f4";h.style.display="inline-block";h.style.position="absolute";h.style.width="100%";return h};
cFN=function(b){return b==null?void 0:_.X0M(b).valueOf()};
IAx=function(b){var h=document.body,y=!1,S=function(){y||(y=!0,RlX(F,a),setTimeout(function(){h.removeChild(a);h.removeChild(F)},150))},F=zlA(b,getComputedStyle(h).direction==="rtl",S),a=DDN(S);
RlX(F,a);h.appendChild(a);h.appendChild(F);window.requestAnimationFrame(function(){a.style.opacity="1";F.style.opacity="1";F.style.transform="translate(-50%, -50%) scale(1)";F.children[0].focus()})};
zlA=function(b,h,y){var S=document.createElement("div");S.style.position="fixed";S.style.alignItems="center";S.style.backgroundColor=b?"rgb(32, 33, 36)":"white";S.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";S.style.display="flex";S.style.flexDirection="column";S.style.justifyContent="center";S.style.left="50%";S.style.top="50%";S.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";S.style.zIndex="2002";document.body.clientWidth>=
660?(S.style.borderRadius="8px",S.style.minHeight="220px",S.style.maxHeight="90%",S.style.maxWidth="90%",S.style.minWidth="540px"):(S.style.height="100%",S.style.width="100%");S.setAttribute("aria-label","Error");S.setAttribute("aria-modal","true");S.setAttribute("role","alertdialog");S.addEventListener("keydown",function(a){a.key==="Escape"&&y()});
h=Bx2(b,h,y);S.appendChild(Wox(h));S.appendChild(h);var F=document.createElement("img");F.src=b?"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";F.style.height="72px";F.style.width="72px";F.style.color="#9aa0a6";F.setAttribute("alt","");S.appendChild(F);F=document.createElement("h1");F.textContent="Something went wrong.  Try again.";
F.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";F.style.lineHeight="24px";F.style.fontSize="16px";F.style.textAlign="center";F.style.letterSpacing="0.1px";F.style.color=b?"rgb(232,234,237)":"#3c4043";S.appendChild(F);S.appendChild(Wox(h));return S};
Bx2=function(b,h,y){var S=document.createElement("button");S.style.backgroundColor="transparent";S.style.border="none";S.style.borderRadius="50%";S.style.cursor="pointer";S.style.outline="none";S.style.padding="12px";S.setAttribute("aria-label","Close dialog");S.style.position="absolute";S.style.top="0";h?S.style.right="0":S.style.left="0";S.addEventListener("focus",function(){S.style.backgroundColor=b?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
S.addEventListener("blur",function(){S.style.backgroundColor="transparent"});
S.addEventListener("mouseenter",function(){S.style.backgroundColor=b?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
S.addEventListener("mouseleave",function(){S.style.backgroundColor="transparent"});
S.addEventListener("click",y);S.addEventListener("keydown",function(F){F.key!=="Enter"&&F.key!=="Space"||y()});
h=document.createElement("img");h.src=b?"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";h.style.display="block";h.style.height="24px";h.style.width="24px";h.setAttribute("alt","");S.appendChild(h);return S};
Wox=function(b){var h=document.createElement("div");h.setAttribute("tabindex","0");h.setAttribute("aria-hidden","true");h.addEventListener("focus",function(){return void b.focus()});
return h};
DDN=function(b){var h=document.createElement("div");h.style.backgroundColor="rgba(32,33,36,0.6)";h.style.bottom="0";h.style.left="0";h.style.position="fixed";h.style.right="0";h.style.top="0";h.style.transition=" opacity 150 ms linear";h.style.zIndex="2001";h.addEventListener("click",b);return h};
RlX=function(b,h){h.style.opacity="0";b.style.opacity="0";b.style.transform="translate(-50%, -50%) scale(0.8)"};
AFN=function(b,h){b.sandbox&&b.sandbox.add&&(b.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),b.sandbox.add("allow-downloads"));b.src=h};
Bn=function(b){UDF.call(this,b)};
gGA=function(b,h){h=h===void 0?!1:h;this.parsedImageUrl_=null;b instanceof pVd||(JFN==void 0&&(JFN=new elf),b=JFN.parse(b.toString(),h));b=this.parsedImageUrl_=b;b.JSC$20147_parsedOptions_==void 0&&((h=b.getOptions())||(h=""),b.JSC$20147_parsedOptions_=(new Cqx).parse(h));UDF.call(this,b.JSC$20147_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;b=this.parsedImageUrl_;h=b.uri_.JSC$10215_port_;this.JSC$20149_domain_=b.uri_.JSC$10215_domain_+(h?":"+h:"");this.JSC$20149_query_=
this.parsedImageUrl_.uri_.JSC$10215_queryData_.toString()};
srF=function(b){this.mode=4;this.data=b;this.parsedData=[];b=0;for(var h=this.data.length;b<h;b++){var y=[],S=this.data.charCodeAt(b);S>65536?(y[0]=240|(S&1835008)>>>18,y[1]=128|(S&258048)>>>12,y[2]=128|(S&4032)>>>6,y[3]=128|S&63):S>2048?(y[0]=224|(S&61440)>>>12,y[1]=128|(S&4032)>>>6,y[2]=128|S&63):S>128?(y[0]=192|(S&1984)>>>6,y[1]=128|S&63):y[0]=S;this.parsedData.push(y)}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))};
YoP=function(b){this.typeNumber=0;this.errorCorrectLevel=b===void 0?2:b;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
Wn=function(b,h){if(b.length==void 0)throw Error("Sk`"+b.length+"`"+h);for(var y=0;y<b.length&&b[y]==0;)y++;this.num=Array(b.length-y+h);for(h=0;h<b.length-y;h++)this.num[h]=b[h+y]};
TxA=function(b,h){this.totalCount=b;this.dataCount=h};
GRP=function(){this.buffer=[];this.length=0};
kRY=function(){var b=!1;if(_.cYy()){b=_.HF();var h="";_.DyY()?(h=/Windows (?:NT|Phone) ([0-9.]+)/,h=(b=h.exec(b))?b[1]:"0.0"):_.AY()?(h=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,h=(b=h.exec(b))&&b[1].replace(/_/g,".")):_.z8U()?(h=/Mac OS X ([0-9_.]+)/,h=(b=h.exec(b))?b[1].replace(/_/g,"."):"10"):_.Zr(_.HF(),"KaiOS")?(h=/(?:KaiOS)\/(\S+)/i,h=(b=h.exec(b))&&b[1]):_.cYy()?(h=/Android\s+([^\);]+)(\)|;)/,h=(b=h.exec(b))&&b[1]):_.Irk()&&(h=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,h=(b=h.exec(b))&&b[1]);b=
h||""}return b};
lAA=function(b,h){this.JSC$20172__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(h)for(var y in h)this.JSC$20172__htOption[y]=h[y];this.JSC$20172__htOption.useSVG&&(VDd=EGP);this.JSC$20172__android=kRY();this.JSC$20172__el=b;this._oQRCode=null;this._oDrawing=new VDd(this.JSC$20172__el,this.JSC$20172__htOption);this.JSC$20172__htOption.text&&(b=this.JSC$20172__htOption.text,this._oQRCode=new YoP(this.JSC$20172__htOption.correctLevel),iwY(this._oQRCode,
b),h=this._oQRCode,fAA(h,!1,wVN(h)),this.JSC$20172__el.title=b,this._oDrawing.draw(this._oQRCode),this.makeImage())};
qoF=function(b,h,y,S,F){b.save();var a=new Path2D;a.roundRect(h,y,S*7,S*7,S*2);a.roundRect(h+S,y+S,S*5,S*5,S*1.3);a.roundRect(h+2*S,y+2*S,S*3,S*3,S);b.clip(a,"evenodd");b.fillStyle=F;b.fillRect(0,0,b.canvas.width,b.canvas.height);b.restore()};
AS=function(b,h){if(typeof b!=="function")throw Error("Vk");return _.S5.setTimeout(function(){b()},h)};
U1=function(){};
Qrx=function(b,h,y,S,F){(new U1).debug("TestLoadImageWithRetries: "+F);if(S==0)y(!1);else{var a=F||0;S--;xDN(b,h,function(P){P?y(!0):_.S5.setTimeout(function(){Qrx(b,h,y,S,a)},a)})}};
xDN=function(b,h,y){var S=new U1;S.debug("TestLoadImage: loading "+b);var F=new Image;F.onload=function(){try{S.debug("TestLoadImage: loaded"),mDx(F),y(!0)}catch(a){}};
F.onerror=function(){try{S.debug("TestLoadImage: error"),mDx(F),y(!1)}catch(a){}};
F.onabort=function(){try{S.debug("TestLoadImage: abort"),mDx(F),y(!1)}catch(a){}};
F.ontimeout=function(){try{S.debug("TestLoadImage: timeout"),mDx(F),y(!1)}catch(a){}};
_.S5.setTimeout(function(){if(F.ontimeout)F.ontimeout()},h);
F.src=b};
mDx=function(b){b.onload=null;b.onerror=null;b.onabort=null;b.ontimeout=null};
vG2=function(){this.front_=[];this.back_=[]};
bWN=function(b,h){this.action=b;this.params=h||{}};
hNA=function(b,h){_.ED.call(this);this.delay_=new _.fq(this.JSC$20298_onTick_,0,this);_.pq(this,this.delay_);this.JSC$20296_interval_=5E3;this.nextTickTime_=0;if(typeof b==="function")h&&(b=(0,_.i5)(b,h));else if(b&&typeof b.handleEvent==="function")b=(0,_.i5)(b.handleEvent,b);else throw Error("ya");this.JSC$20298_listener_=b};
pY=function(b,h,y,S,F,a,P,K,n,X,u,O,N,t,R){var I=this;y=y===void 0?!1:y;S=S===void 0?function(){return""}:S;
F=F===void 0?!1:F;a=a===void 0?!1:a;P=P===void 0?!1:P;K=K===void 0?function(){return _.$p({})}:K;
n=n===void 0?!1:n;u=u===void 0?!1:u;O=O===void 0?!1:O;N=N===void 0?!1:N;t=t===void 0?!1:t;this.JSC$20299_pathPrefix_=b;this.defaultQueryParams_=h;this.pubsub_=new _.Jj;this.reconnectTimer_=(this.isInitialReconnectTimer_=!!R)?R(function(){I.safeReconnect_()}):new hNA(this.safeReconnect_,this);
this.JSC$20299_channel_=null;this.JSC$20299_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$20299_pendingMessages_=[];this.enableAsyncTest_=y;this.JSC$20299_getXsrfToken_=S;this.useAsyncBrowserChannelHandler_=a;this.getAuthorizationHeader_=K;this.getAuthorizationHeaderSync_=X;this.enableCachedUpdateAuthorizationHeader_=P;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.$p();this.enableLoungeTokenRefresh_=F;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=
n;this.disableMdxAuthForNonPlaybackMessages_=u;this.disableMdxAuthForAdMessages_=O;this.enableMdxAuthForConnectionOnly_=N;this.disableMdxAuthForShortsMessages_=t;this.JSC$20299_channelOpenedCounter=new y_A;this.JSC$20299_channelClosedCounter=new S9q;this.channelMessageSentCounter=new Fgq;this.JSC$20299_channelMessageReceivedCounter=new aaa;this.JSC$20299_channelErrorCounter=new d$Y;this.pendingMapsOnClosedCounter=new j8F;this.undeliveredMapsOnClosedCounter=new $$F};
Lgf=function(b){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;b=b||document.location.href;var h=Number(_.Kn(b)[4]||null)||"";h&&(this.port=":"+h);this.domain=_.ZI(b)||"";b=_.HF();b.search("MSIE")>=0&&_.n4(b.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
JS=function(b){b=b||{};this.name=b.name||"";this.id=b.id||b.screenId||"";this.token=b.token||b.loungeToken||"";this.uuid=b.uuid||b.dialId||"";this.idType=b.screenIdType||"normal";this.secret=b.screenIdSecret||""};
PGa=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(b){var h=Math.random()*16|0;return(b=="x"?h:h&3|8).toString(16)})};
Kga=function(b){return _.qz(b,function(h){return{key:h.id,name:h.name}})};
ZWY=function(b,h){return _.p4(b,function(y){return y||h?!y!=!h?!1:y.id==h.id:!0})};
eu=function(b,h){return _.p4(b,function(y){return o7x(y,h)})};
uoN=function(){var b=M4Y(),h=n7Y();if(XfY()){var y=b,S=_.gUI(y,h);S<0&&_.JYk(y,-(S+1),0,h)}b=HWA(b);if(b.length==0)try{_.fW8("remote_sid")}catch(F){}else try{_.gH("remote_sid",b.join(","),-1)}catch(F){}};
M4Y=function(){var b=_.Wd("yt-remote-connected-devices")||[];b.sort(_.Cfr);return b};
HWA=function(b){if(b.length==0)return[];var h=b[0].indexOf("#"),y=h==-1?b[0]:b[0].substring(0,h);return _.qz(b,function(S,F){return F==0?S:S.substring(y.length)})};
OWA=function(b){_.Bd("yt-remote-connected-devices",b,86400)};
n7Y=function(){if(NeF)return NeF;var b=_.Wd("yt-remote-device-id");b||(b=PGa(),_.Bd("yt-remote-device-id",b,31536E3));for(var h=M4Y(),y=1,S=b;_.sj(h,S);)y++,S=b+"#"+y;return NeF=S};
t4d=function(){return _.Wd("yt-remote-session-browser-channel")};
XfY=function(){return _.Wd("yt-remote-session-screen-id")};
RNq=function(b){b.length>5&&(b=b.slice(b.length-5));var h=_.qz(r_f(),function(S){return S.loungeToken}),y=_.qz(b,function(S){return S.loungeToken});
_.liF(y,function(S){return!_.sj(h,S)})&&c_N();
_.Bd("yt-remote-local-screens",b,31536E3)};
r_f=function(){return _.Wd("yt-remote-local-screens")||[]};
c_N=function(){_.Bd("yt-remote-lounge-token-expiration",!0,86400)};
zNq=function(b){b||(_.AP("yt-remote-session-screen-id"),_.AP("yt-remote-session-video-id"));uoN();b=M4Y();_.Gk(b,n7Y());OWA(b)};
IaF=function(){D$A();return CY?!!CY.get("yt-remote-use-staging-server"):!1};
D$A=function(){if(!CY){var b=_.fn();b&&(CY=new _.k0(b))}};
U$2=function(b,h,y,S,F){y=y===void 0?function(){return""}:y;
var a=function(){return new pY(go(b,"/bc"),h,!1,y,S)};
return _.r("enable_mdx_web_channel_desktop")?new BeY(function(){return new WgF(go(b,"/wc"),h,y)}):new A_A(a,F)};
CGq=function(){var b=pfP;J_F();s1.push(b);eNA()};
Yk=function(b,h){J_F();var y=g7a(b,String(h));s1.length==0?s8A(y):(eNA(),_.FS(s1,function(S){S(y)}))};
TL=function(b){Yk("CP",b)};
J_F=function(){s1||(s1=_.hj("yt.mdx.remote.debug.handlers_")||[],_.HL("yt.mdx.remote.debug.handlers_",s1))};
s8A=function(b){var h=(Y9Y+1)%50;Y9Y=h;Teq[h]=b;Gf2||(Gf2=h==49)};
eNA=function(){var b=s1;if(Teq[0]){var h=Gf2?Y9Y:-1,y={};do y={record$jscomp$15:void 0},h=(h+1)%50,y.record$jscomp$15=Teq[h],_.FS(b,function(S){return function(F){F(S.record$jscomp$15)}}(y));
while(h!=Y9Y);Teq=Array(50);Y9Y=-1;Gf2=!1}};
g7a=function(b,h){var y=(Date.now()-kff)/1E3;y.toFixed&&(y=y.toFixed(3));var S=[];S.push("[",y+"s","] ");S.push("[","yt.mdx.remote","] ");S.push(b+": "+h,"\n");return S.join("")};
GL=function(b){_.KY.call(this);this.JSC$20324_logName_=b;this.screens=[]};
Vc=function(b){GL.call(this,"LocalScreenService");this.JSC$20331_http_=b;this.loungeTokenRefreshTimer_=NaN;kk(this);this.info("Initializing with "+V4A(this.screens))};
E1=function(b,h){h=h===void 0?!1:h;GL.call(this,"ScreenService");this.JSC$20337_http_=b;this.disableAutomaticScreenCache_=h;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};E7P(this)};
ix=function(b,h,y){_.KY.call(this);this.JSC$20341_logName_=y;this.JSC$20341_screenService_=b;this.receiver_=h;this.screen_=null};
dqA=function(b,h,y){y.disableCastApi?fY("Cannot initialize because disabled by Mdx config."):iWY()?faX(b,y)&&(wfF(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?laY(h):(window.__onGCastApiAvailable=function(S,F){S?laY(h):(wo("Failed to load cast API: "+F),q9E(!1),wfF(!1),_.AP("yt-remote-cast-available"),_.AP("yt-remote-cast-receiver"),x$N(),h(!1))},y.loadCastApiSetupScript?_.Tt(Q8a):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
m$Y()>=60&&v72():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?bFf():m$Y()>=89?hyX():(y1x(),SVE(FPN.map(aNN))))):fY("Cannot initialize because not running Chrome")};
x$N=function(){fY("dispose");var b=lx();b&&b.dispose();_.HL("yt.mdx.remote.cloudview.instance_",null);jXP(!1);_.p38($q2);$q2.length=0};
LPN=function(){return!!_.Wd("yt-remote-cast-installed")};
Pm2=function(){var b=_.Wd("yt-remote-cast-receiver");return b?b.friendlyName:null};
KPf=function(){fY("clearCurrentReceiver");_.AP("yt-remote-cast-receiver")};
ZFA=function(){return LPN()?lx()?lx().getCastSession():(wo("getCastSelector: Cast is not initialized."),null):(wo("getCastSelector: Cast API is not installed!"),null)};
Mkd=function(b,h){oYd()?lx().setConnectedScreenStatus(b,h):wo("setConnectedScreenStatus called before ready.")};
iWY=function(){var b=_.HF().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.Nq||b};
faX=function(b,h){var y=!1;lx()||(b=new q6(b,h),b.subscribe("yt-remote-cast2-availability-change",function(S){_.Bd("yt-remote-cast-available",S);tS("yt-remote-cast2-availability-change",S)}),b.subscribe("yt-remote-cast2-receiver-selected",function(S){fY("onReceiverSelected: "+S.friendlyName);
_.Bd("yt-remote-cast-receiver",S);tS("yt-remote-cast2-receiver-selected",S)}),b.subscribe("yt-remote-cast2-receiver-resumed",function(S){fY("onReceiverResumed: "+S.friendlyName);
_.Bd("yt-remote-cast-receiver",S);tS("yt-remote-cast2-receiver-resumed",S)}),b.subscribe("yt-remote-cast2-session-change",function(S){fY("onSessionChange: "+nYP(S));
S||_.AP("yt-remote-cast-receiver");tS("yt-remote-cast2-session-change",S)}),_.HL("yt.mdx.remote.cloudview.instance_",b),y=!0);
fY("cloudview.createSingleton_: "+y);return y};
lx=function(){return _.hj("yt.mdx.remote.cloudview.instance_")};
laY=function(b){q9E(!0);wfF(!1);lx().init(!1,function(h){h?(jXP(!0),_.J6I("yt-remote-cast2-api-ready")):(wo("Failed to initialize cast API."),q9E(!1),_.AP("yt-remote-cast-available"),_.AP("yt-remote-cast-receiver"),x$N());b(h)})};
fY=function(b){Yk("cloudview",b)};
wo=function(b){Yk("cloudview",b)};
q9E=function(b){fY("setCastInstalled_ "+b);_.Bd("yt-remote-cast-installed",b)};
oYd=function(){return!!_.hj("yt.mdx.remote.cloudview.apiReady_")};
jXP=function(b){fY("setApiReady_ "+b);_.HL("yt.mdx.remote.cloudview.apiReady_",b)};
wfF=function(b){_.HL("yt.mdx.remote.cloudview.initializing_",b)};
xk=function(b){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(b)};
DqP=function(b){D$A();if(!CY||!CY.get("yt-remote-disable-remote-module-for-dev")){b=_.QC("MDX_CONFIG")||b;Rzf();uoN();Xvd||(Xvd=new Lgf(b?b.loungeApiHost:void 0),IaF()&&(Xvd.basePath="/api/loungedev"));Qc||(Qc=_.hj("yt.mdx.remote.deferredProxies_")||[],_.HL("yt.mdx.remote.deferredProxies_",Qc));HFN();var h=uWA();if(!h){var y=new E1(Xvd,b?b.disableAutomaticScreenCache||!1:!1);_.HL("yt.mdx.remote.screenService_",y);h=uWA();var S={};b&&(S={appId:b.appId,disableDial:b.disableDial,theme:b.theme,loadCastApiSetupScript:b.loadCastApiSetupScript,
disableCastApi:b.disableCastApi,enableDialLoungeToken:b.enableDialLoungeToken,enableCastLoungeToken:b.enableCastLoungeToken,forceMirroring:b.forceMirroring});_.HL("yt.mdx.remote.enableConnectWithInitialState_",b?b.enableConnectWithInitialState||!1:!1);dqA(y,function(a){a?OFP()&&Mkd(OFP(),"YouTube TV"):y.subscribe("onlineScreenChange",function(){tS("yt-remote-receiver-availability-change")})},S)}if(b&&!_.hj("yt.mdx.remote.initialized_")){_.HL("yt.mdx.remote.initialized_",!0);
NQX("Initializing: "+(0,_.Q4)(b));m_.push(_.zE("yt-remote-cast2-api-ready",function(){tS("yt-remote-api-ready")}));
m_.push(_.zE("yt-remote-cast2-availability-change",function(){tS("yt-remote-receiver-availability-change")}));
m_.push(_.zE("yt-remote-cast2-receiver-selected",function(){tkE();tS("yt-remote-auto-connect","cast-selector-receiver")}));
m_.push(_.zE("yt-remote-cast2-receiver-resumed",function(){tS("yt-remote-receiver-resumed","cast-selector-receiver")}));
m_.push(_.zE("yt-remote-cast2-session-change",r1A));m_.push(_.zE("yt-remote-connection-change",function(a){a?Mkd(OFP(),"YouTube TV"):c1P()||(Mkd(null,null),KPf())}));
m_.push(_.zE("yt-remote-cast2-session-failed",function(){tS("yt-remote-connection-failed")}));
S=RyX();b.isAuto&&(S.id+="#dial");var F=b.capabilities||[];F.length>0&&(S.capabilities=F);S.name=b.device;S.app=b.app;(b=b.theme)&&(S.theme=b);NQX(" -- with channel params: "+(0,_.Q4)(S));S?(_.Bd("yt-remote-session-app",S.app),_.Bd("yt-remote-session-name",S.name)):(_.AP("yt-remote-session-app"),_.AP("yt-remote-session-name"));_.HL("yt.mdx.remote.channelParams_",S);h.start();OFP()||zyE()}}};
BQf=function(){var b=uWA().instance_.$_gos();var h=INY();h&&vn()&&(ZWY(b,h)||b.push(h));return Kga(b)};
WPP=function(){var b=BQf(),h=INY();h||(h=c1P());return _.p4(b,function(y){return h&&o7x(h,y.key)?!0:!1})};
INY=function(){var b=OFP();if(!b)return null;var h=uWA().getScreens();return eu(h,b)};
r1A=function(b){NQX("remote.onCastSessionChange_: "+nYP(b));if(b){var h=INY();if(h&&h.id==b.id){if(Mkd(h.id,"YouTube TV"),b.idType=="shortLived"&&(b=b.token))A1E&&(A1E.token=b),(h=vn())&&h.setLoungeToken(b)}else h&&UqX(),pvA(b,1)}else vn()&&UqX()};
UqX=function(){oYd()?lx().stopSession():wo("stopSession called before API ready.");var b=vn();b&&(b.disconnect(1),J1N(null))};
eyf=function(){var b=vn();return b&&b.getProxyState()!=3?new bP(vn(),void 0):null};
NQX=function(b){Yk("remote",b)};
uWA=function(){if(!CmA){var b=_.hj("yt.mdx.remote.screenService_");CmA=b?new gYN(b):null}return CmA};
OFP=function(){return _.hj("yt.mdx.remote.currentScreenId_")};
sXf=function(b){_.HL("yt.mdx.remote.currentScreenId_",b)};
tkE=function(){_.HL("yt.mdx.remote.connectData_",null)};
vn=function(){return _.hj("yt.mdx.remote.connection_")};
J1N=function(b){var h=vn();tkE();b||sXf("");_.HL("yt.mdx.remote.connection_",b);Qc&&(_.FS(Qc,function(y){y(b)}),Qc.length=0);
h&&!b?tS("yt-remote-connection-change",!1):!h&&b&&tS("yt-remote-connection-change",!0)};
c1P=function(){var b=XfY();if(!b)return null;var h=uWA();if(!h)return null;h=h.getScreens();return eu(h,b)};
pvA=function(b,h){YVY?A1E=b:(sXf(b.id),b=new hw(Xvd,b,RyX(),_.hj("yt.mdx.remote.enableConnectWithInitialState_")||!1),b.connect(h,_.hj("yt.mdx.remote.connectData_")),b.subscribe("beforeDisconnect",function(y){tS("yt-remote-before-disconnect",y)}),b.subscribe("beforeDispose",function(){vn()&&J1N(null)}),b.subscribe("browserChannelAuthError",function(){var y=INY();
y&&y.idType=="shortLived"&&(oYd()?lx().handleBrowserChannelAuthError():wo("refreshLoungeToken called before API ready."))}),J1N(b))};
zyE=function(){var b=c1P();b?(NQX("Resume connection to: "+nYP(b)),pvA(b,0)):(zNq(),KPf(),NQX("Skipping connecting because no session screen found."))};
HFN=function(){var b=RyX();if(_.lR.isEmpty(b)){b=n7Y();var h=_.Wd("yt-remote-session-name")||"",y=_.Wd("yt-remote-session-app")||"";b={device:"REMOTE_CONTROL",id:b,name:h,app:y,mdxVersion:3};b.authuser=String(_.QC("SESSION_INDEX","0"));(h=_.QC("DELEGATED_SESSION_ID"))&&(b.pageId=String(h));_.HL("yt.mdx.remote.channelParams_",b)}};
RyX=function(){return _.hj("yt.mdx.remote.channelParams_")||{}};
TQd=function(){var b,h;return _.Z(function(y){if(y.nextAddress==1)return(_.nSI()||_.r("use_new_nwl"))&&_.KIr().isNetworkAvailable()?y.yield(_.uj(),2):y.return();if(y.nextAddress!=3)return(b=y.yieldResult)?y.yield(ESf(b),3):y.return();h=y.yieldResult;if(!h.length)return y.return();h.forEach(function(S){var F={timestamp:S.timestamp};S=S.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:S.appShellAssetLoadReport,options:F}:S.clientError?{payloadName:"clientError",payload:S.clientError,
options:F}:void 0;S&&_.qi(S.payloadName,S.payload,S.options)});
h.length===100&&_.xP.addLowPriorityJob(TQd);_.g3(y)})};
G4Y=function(b){if(b.playerResponse){if(b=b.playerResponse,b.messages&&b.messages.length>0&&(b=b.messages.find(function(h){return!(!h||!h.mealbarPromoRenderer)}))&&b.mealbarPromoRenderer)return b.mealbarPromoRenderer}else if(b.response&&(b=b.response)&&b.overlay&&b.overlay.mealbarPromoRenderer)return b.overlay.mealbarPromoRenderer};
k4F=function(b){if(b.response){var h=b.response;if(h&&h.overlay&&h.overlay.tooltipRenderer)return h.overlay.tooltipRenderer}if(b.playerResponse&&(b=b.playerResponse,b.messages&&b.messages.length>0&&(b=b.messages.find(function(y){return!(!y||!y.tooltipRenderer)}))&&b.tooltipRenderer))return b.tooltipRenderer};
EYE=function(b){if(!Vkf&&(b=b||_.QC("ZWIEBACK_PING_URLS"))&&b.length){Vkf=!0;for(var h=0;h<b.length;h++)_.$2(b[h])}};
fNF=function(b){if(_.lR.get(_.QC("PLAYER_VARS",{}),"privembed",!1)!="1"){b&&ekA();try{iF2().then(function(){},function(){}),_.zn(fNF,18E5)}catch(h){_.v4(h)}}};
wvx=function(){var b=_.HT(),h=b.getFlag(119),y=window.devicePixelRatio>1;document.body&&_.Zl(document.body,"exp-invert-logo")&&(y&&!_.Zl(document.body,"inverted-hdpi")?_.xS(document.body,"inverted-hdpi"):!y&&_.Zl(document.body,"inverted-hdpi")&&_.qJ(document.body,"inverted-hdpi"));h!=y&&(_.uE(0,119,y),b.save())};
lNa=function(b){return b.filter(function(h){return"ypcGetCartEndpoint"in h||"ypcFixInstrumentEndpoint"in h})};
qVN=function(b){return b.filter(function(h){return!_.c(h,_.XDP)})};
QXY=function(b,h){var y,S,F,a,P,K,n;_.Z(function(X){switch(X.nextAddress){case 1:y=_.fR.getInstance();S=_.nt.instance;F=_.Ek.instance;if(!F)return xqX(b,S,h),X.return();_.WE(X,2);b.onLoadingCommand&&S.resolveCommand(b.onLoadingCommand);return X.yield(y.getCurrentPositionFromGeolocation(),4);case 4:a=X.yieldResult;if(!b.resolveLocationCommand){X.jumpTo(5);break}P=y.createLocationInfo(a);return X.yield(_.f9(F,b.resolveLocationCommand,{locationInfo:P}),6);case 6:K=X.yieldResult;if(!K||"error"in K&&K.error||
K.errorMetadata)return xqX(b,S,h),X.return();var u;if(K==null?0:(u=K.onResponseReceivedActions)==null?0:u.length){u=_.L(K.onResponseReceivedActions);for(var O=u.next();!O.done;O=u.next())S.resolveCommand(O.value)}(_.c(b.onSuccessCommand,_.wO)||_.c(b.onSuccessCommand,_.O0))&&_.Sx(h.hostElement,"yt-navigate",{endpoint:b.onSuccessCommand,reload:!0});case 5:_.Lz(X,0);break;case 2:n=_.C$(X);if(n instanceof GeolocationPositionError&&n.code===GeolocationPositionError.PERMISSION_DENIED)return b.onDeniedCommand&&
S.resolveCommand(b.onDeniedCommand),X.return();xqX(b,S,h);_.g3(X)}})};
xqX=function(b,h,y){b.onFailureCommand&&(h.resolveCommand(b.onFailureCommand),_.F8(y.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
vYf=function(b,h){var y=_.c(b,_.GQa);if(y&&h){b=y.videoIds||[y.videoId];var S;h=(S=_.Sx(h,"yt-lockup-requested",{videoIds:b}).detail)==null?void 0:S.returnValue;var F;y.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?F=h?h:b.map(function(a){return{videoId:a,navigationEndpoint:y.videoCommand}}):h&&(F=h);
F&&(S=F.map(function(a){var P=Object,K=P.assign;var n=a.navigationEndpoint;if(!_.c(n,_.cd)){var X=_.c(n,_.wO);if(X){if(delete X.index,delete X.playlistId,X=_.c(n==null?void 0:n.commandMetadata,_.ZW),X==null?0:X.url){var u=X.url;u=_.mp(u,"list");u=_.mp(u,"index");X.url=u}}else n=void 0}return K.call(P,{},a,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:n})}),mqF(S,y))}};
b8q=function(b){var h=_.Wy();if(b=_.c(b,_.kQ7))b.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&h.clearQueue(),b.closeMiniplayer&&_.H9().resolve(_.Vp).close(!0)};
y2q=function(b){hoq(_.Wy(),b)};
SeE=function(b){var h;(b=(h=_.c(b,_.YYG))==null?void 0:h.setVideoIds)&&b.forEach(function(y){_.C0o(_.Wy(),y)})};
aSd=function(b){FL2(_.Wy(),b)};
dMA=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(b){return!1}};
jyq=function(b,h){var y=_.LDb(h,{},b,!0);return new Promise(function(S,F){y.listenOnce("n",function(){F(Error("Gl`"+y.JSC$30279_getErrorDescription()))});
y.listenOnce("l",function(){var a=y.getResponseCode();if(a!==200)F(Error("Hl`"+h+"`"+b.type+"`"+b.size+"`"+a));else try{S(JSON.parse(y.getResponseText()).encryptedBlobId)}catch(P){F(P)}});
y.run()})};
$Mq=function(b){return b.substring(b.indexOf(":")+1,b.indexOf(";"))};
LLF=function(b){return new Promise(function(h,y){var S=new FileReader;S.onloadend=function(){try{var F=new Uint8Array(S.result);F.length<8&&y(void 0);var a=F.subarray(0,8);F="";for(var P=0;P<a.length;P++)F+=("0"+a[P].toString(16)).substr(-2);F.startsWith("ffd8ff")?h("image/jpeg"):F.startsWith("47494638")?h("image/gif"):F.startsWith("89504e470d0a1a0a")?h("image/png"):F.startsWith("424d")?h("image/bmp"):h(void 0)}catch(K){y(K)}};
S.onerror=y;S.readAsArrayBuffer(b)})};
P4d=function(b){return new Promise(function(h,y){var S=new Image;S.crossOrigin="anonymous";S.onload=function(){var F=document.createElement("canvas");F.width=S.naturalWidth;F.height=S.naturalHeight;var a=F.getContext("2d");if(!a)throw Error("Il");a.drawImage(S,0,0);a=$Mq(b);F.toBlob(function(P){P?h(P):y()},a)};
S.src=b})};
Z8E=function(b,h){var y;if(((y=_.c(b,_.cd))==null?void 0:y.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var S;_.Sx((S=h.hostElement)!=null?S:h,"yt-shorts-reset");_.LnA(_.H9().resolve(_.Sc),b).then(function(a){KLN(a,h,b)})}else{var F;
_.dh((F=h.hostElement)!=null?F:h,[b]).then(function(a){a&&KLN(a.data,h,b)})}};
KLN=function(b,h,y){if(b){var S=_.c(b.replacementEndpoint,_.cd);if(S){b.sequenceContinuation&&(S.sequenceParams=b.sequenceContinuation);var F;_.Sx((F=h.hostElement)!=null?F:h,"yt-navigate",{endpoint:b.replacementEndpoint})}else if((b==null?void 0:b.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(b==null?0:b.watchStatus)&&_.c(b.watchStatus,_.IG7)){var a;_.Sx((a=h.hostElement)!=null?a:h,"yt-navigate",{endpoint:y})}}};
oBA=function(b){var h=_.H9().resolve(_.nd),y=_.iM.currentPageTypeSelector(h.getState())||"";h=_.iM.currentPageSubTypeSelector(h.getState())||"";y=y==="ytd-browse"&&h==="home";return _.r("web_guide_entry_enable_cache_for_non_home_pages")?(b=(b==null?void 0:b.navigationEndpoint)&&_.uk(b.navigationEndpoint)==="home",{disableCache:y&&b}):{disableCache:y}};
XqF=function(b,h,y,S){if(b&&b.length){var F={};if(h){var a=void 0;y&&(a={commandContext:{onTap:{innertubeCommand:y||{}}}});F.header={panelHeaderViewModel:{title:_.ej(h),rendererContext:a}}}h=[];b=_.L(b);for(y=b.next();!y.done;y=b.next()){a=y.value;y=_.c(a,MVx);a=_.c(a,nBP);var P=void 0,K=void 0;if((P=a)==null?0:(K=P.expandableItems)==null?0:K.length)for(a=_.L(a.expandableItems),P=a.next();!P.done;P=a.next()){P=P.value.guideEntryRenderer;var n=K=void 0;if(((K=P)==null?void 0:(n=K.icon)==null?void 0:
n.iconType)==="VIEW_LIST_CAIRO"){y=P;break}}K=P=void 0;a=((P=y)==null?0:P.formattedTitle)?_.ej((K=y)==null?void 0:K.formattedTitle):void 0;P=void 0;K=(P=y)==null?void 0:P.isPrimary;if(y&&a&&!K){a={title:a};y.navigationEndpoint&&(a.rendererContext={commandContext:{onTap:{innertubeCommand:y.navigationEndpoint}}});P=[];n=K=void 0;if(((K=y)==null?0:(n=K.thumbnail)==null?0:n.thumbnails)&&y.thumbnail.thumbnails.length>0){K=_.L(y.thumbnail.thumbnails);for(n=K.next();!n.done;n=K.next())P.push({url:n.value.url});
a.leadingAccessory={avatarViewModel:{image:{sources:P},avatarImageSize:"AVATAR_SIZE_XS"}}}else if(K=void 0,(K=y.icon)==null?0:K.iconType)P.push({clientResource:{imageName:y.icon.iconType||""}}),a.leadingImage={sources:P};K=P=void 0;((P=y)==null?0:(K=P.badges)==null?0:K.liveBroadcasting)?(a.trailingImageAccessoryType="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON",a.trailingImage={sources:[{clientResource:{imageName:"live",imageColor:4294901760}}]},a.trailingIconAccessorySize="LIST_ITEM_ICON_ACCESSORY_SIZE_SMALL"):
y.presentationStyle==="GUIDE_ENTRY_PRESENTATION_STYLE_NEW_CONTENT"?a.trailingImageAccessoryType="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR":y.count&&(a.trailingLabel={content:y.count.toString()});h.push({listItemViewModel:a})}}h.length!==0?(F.content={listViewModel:{listItems:h}},S===0&&(F.rendererContext={commandContext:{onHoverEnd:{hideSheetCommand:{}}}})):F=void 0;if(F)return h=void 0,S===0&&(h={preventCloseWhileHovered:!0,hideDelayMs:3E3}),{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:F}},
contextualSheetPresentationConfig:{position:"SHEET_POSITION_RIGHT",hoverConfig:h}}}}};
H8A=function(b,h,y,S){if(h!=null&&h.isPrimary){switch(S){case 1:if(h.serviceEndpoint)break;y=XqF(y,h.formattedTitle,h.navigationEndpoint,S);if(!y)break;h.serviceEndpoint=y;h.navigationEndpoint=void 0;break;case 0:!h.mouseEnterEndpoint&&(y=XqF(y,h.formattedTitle,void 0,S))&&(h.mouseEnterEndpoint=y,h.mouseLeaveEndpoint={hideSheetCommand:{}})}b.push({guideEntryRenderer:h})}};
uHd=function(b){if(!b)return!1;try{if(b.host&&b.host.tagName==="YT-FORMATTED-STRING"&&b.host.id==="contenteditable-textarea"||b.nodeType===Node.ELEMENT_NODE&&b.tagName==="YTD-COMMENT-INPUT")return!0}catch(h){return!1}return uHd(b.parentNode)};
yA=function(b){return b?b.tagName==="A"&&b.href&&b.classList.contains("yt-simple-endpoint"):!1};
O8d=function(b){return b?b.tagName==="IMG"&&b.classList.contains("emoji"):!1};
NXx=function(b,h,y){if(!b)return null;var S=yA(b);if(S&&y)return h=b.pathname.substring(b.pathname.indexOf("/channel/")+9),document.createTextNode("@"+h);if(S&&!y)return document.createTextNode("");if(O8d(b))return y=b.alt,b=b.dataset.emojiId,!b&&h&&(h=_.PV(h,y))&&h.isCustomEmoji&&(b=h.emojiId),b?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+b+">"):document.createTextNode(y);S=b.cloneNode(!1);for(var F=0;F<b.childNodes.length;++F){var a=NXx(b.childNodes[F],h,y);a&&S.appendChild(a)}return S};
tVd=function(b){return b?yA(b)?b:tVd(b.lastChild):null};
r2a=function(b){return b?yA(b)?b:r2a(b.firstChild):null};
c22=function(b){if(!b)return null;for(var h=b.previousSibling;h;)if(h.nodeType===Node.ELEMENT_NODE&&h.nodeName==="BR")h=h.previousSibling;else if(h.nodeType===Node.TEXT_NODE&&/\s+/.test(h.textContent))h=h.previousSibling;else break;(h=tVd(h))?b=h:b=(b=b.parentNode)?tVd(b.previousElementSibling):null;return b};
RoY=function(b){if(!b)return null;for(var h=b.nextSibling;h;)if(h.nodeType===Node.ELEMENT_NODE&&h.nodeName==="BR")h=h.nextSibling;else if(h.nodeType===Node.TEXT_NODE&&/\s+/.test(h.textContent))h=h.nextSibling;else break;return(h=r2a(h))?h:RoY(b.parentNode)};
zo2=function(b){var h=_.ZA(),y=h.JSC$11530_getStartNode();if(!uHd(y.parentNode))return null;h=h.JSC$11530_getStartOffset();if(y.nodeType===Node.TEXT_NODE){var S=_.b5(y,yA);if(S){if(b&&h===0||!b&&h===y.length)return S}else{if(b&&h===y.length)return!y||y.nodeName==="BR"||y.nextElementSibling&&_.or(y.nextElementSibling,"display")==="block"?null:r2a(y.nextElementSibling);if(!b&&h===0)return y?tVd(y.previousElementSibling):null}}if(y.nodeType===Node.ELEMENT_NODE)if(b){if(0<=h&&h<y.childNodes.length)return r2a(y.childNodes[h])}else if(0<
h&&h<=y.childNodes.length)return tVd(y.childNodes[h-1]);return null};
DMA=function(b,h,y){if(!b)return null;if(b.nodeType===Node.TEXT_NODE)if(y){var S=c22(b);if(S&&!/^\s+\S/.test(b.wholeText.substr(0,h)))return S}else if((S=RoY(b))&&!/\S\s+/.test(b.wholeText.substr(h,b.wholeText.length)))return S;return b.nodeType===Node.ELEMENT_NODE?y?c22(b.childNodes[h]):RoY(b.childNodes[h]):DMA(b.parentNode,h,y)};
ISF=function(b){if(b.hasChildNodes())switch(b.tagName){case "DIV":case "A":case "SPAN":var h="";for(b=b.firstChild;b;b=b.nextSibling)h+=ISF(b);return h;default:return""}else switch(b.nodeType){case 3:return b.textContent;default:return""}};
BXA=function(b){switch(b){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"}};
WLA=function(b){return b.map(function(h){return{settingsRadioOptionRenderer:{title:_.j7(h.name),asideText:_.j7(h.approximateSize),id:BXA(h.format)}}})};
UMf=function(b){if(b&&b.length!==0)return b.filter(A2A()).map(function(h){return{settingsRadioOptionRenderer:{title:h.name,asideText:h.approximateSize,id:BXA(h.formatType)}}})};
pqA=function(b){if(b)return b.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
J2f=function(b,h){b=new Set(b!=null?b:[]);if(b.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(b.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(b.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(b.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(b.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(h)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
eoE=function(b){var h=b.indexOf("(");return h!==-1?b.substring(h+1,b.length-1):b};
_.gBA=function(b,h,y,S,F){y||(y=C4f);var a;(a=_.c(y.commandMetadata,_.ZW))!=null&&a.url||(y=Error("Nl`"+JSON.stringify(y)),_.QT(y),y=C4f);y=_.lR.unsafeClone(y);a=_.SH(_.c(y.commandMetadata,_.ZW).url,"search_query",b);_.jh(location.href,"sv")==="1"&&(_.c(y,_.NC).params="EgOAAgE%3D",a=_.SH(a,"sv","1"));_.c(y,_.NC)&&(_.c(y,_.NC).query=b);a=a.replace(/%20/g,"+");_.c(y.commandMetadata,_.ZW).url=a;F=_.r("desktop_enable_entity_suggest")?{entityMid:F}:{};_.H9().resolve(_.OM).resolveCommand(y,{form:{tempData:Object.assign({},
{gs_l:h,oq:S!=null?S:b},F),isFromShorts:_.ml()==="shorts"}})};
syA=function(b){switch(b){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
TXd=function(b,h,y,S,F,a){var P=_.lR.clone(YeX);P.locale=_.QC("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;P.report={description:F||"<empty>"};F=_.QC("SBOX_SETTINGS",{});h=h.join(",");var K=Date.now();b={choice_cc:S,choice_id_cc:y,choices_sc:h,gl:F.REQUEST_DOMAIN,hl:F.REQUEST_LANGUAGE,query:b,time:K};a&&(b.choice_additional_comment_cc=a);_.M6e(P,b)};
GGa=function(b){var h=new Map;h.set("authuser",_.QC("SESSION_INDEX","0"));return _.zP(b,h)};
VVx=function(b){var h;return _.Z(function(y){switch(y.nextAddress){case 1:if(!b||!kGx(b))return y.return(null);h=null;switch(_.QC("INNERTUBE_CLIENT_NAME")){case "WEB":return y.jumpTo(2);case "WEB_REMIX":h=b.getPlayer()}y.jumpTo(3);break;case 2:return y.yield(b.getPlayerPromise(),4);case 4:h=y.yieldResult;y.jumpTo(3);break;case 3:return y.return(h)}})};
kGx=function(b){return["ytd-player","ytmusic-player"].includes(String(b.tagName||"").toLowerCase())};
EBP=function(b){b=Math.round(b);return b%2?b-1:b};
i82=function(b){b=Math.round(b);return b%2===0?b-1:b};
fSE=function(b){var h=["h","m","s"],y=_.Ej(h);y.reverse();var S={};b=(b.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(P){var K=(P.match(/[hms]/)||[""])[0];return K?(S[K]=parseInt(P.match(/\d+/)[0],10),!1):!0});
for(b.reverse();b.length&&y.length;){var F=y.shift();F in S||(S[F]=parseInt(b.shift(),10))}if(b.length||S.s>59||S.m>59||S.h>9)return null;var a="";h.forEach(function(P){S[P]&&(a+=""+S[P]+P)});
return a||null};
wqa=function(b){var h,y,S;if(b=(h=b.createPlaylistDialogFormSchema)==null?void 0:(y=h.fieldSchemas)==null?void 0:(S=y.title)==null?void 0:S.validationSchema)for(h=[b.syncStep,b.asyncStep].filter(function(F){return F!==void 0}),h=_.L(h),y=h.next();!y.done;y=h.next()){y=y.value.rules;
if(!y)break;y=_.L(y);for(y=y.next();!y.done;y=y.next())return _.c(y.value,_.YbF)}};
qeA=function(b){var h,y,S;if(b=(h=b.createPlaylistDialogFormSchema)==null?void 0:(y=h.fieldSchemas)==null?void 0:(S=y.visibility)==null?void 0:S.validationSchema)for(h=[b.syncStep,b.asyncStep].filter(function(F){return F!==void 0}),h=_.L(h),y=h.next();!y.done;y=h.next()){y=y.value.rules;
if(!y)break;y=_.L(y);for(S=y.next();!S.done;S=y.next())if(S=_.c(S.value,lSX))return h=void 0,(h=S.translations)==null?void 0:h.visibilityNotValidErrorMessage}};
xM2=function(){var b,h;return(h=(b=_.H9().resolve(_.XS(_.cC)))==null?void 0:b())!=null?h:!1};
Qy2=function(b){var h=21;if(!b)return h;h+=b.headerTitle?27:0;h+=b.headerTitle&&b.hasHeaderActionHeader?4:0;return h+=b.headerTitle&&b.headerSubtitle?16:0};
mMX=function(b){var h=0;if(!b)return h;h+=b.hasFooterPrimaryButton||b.hasFooterSecondaryButton?48:0;h+=b.footerTrailingLabel||b.footerLeadingLabel?30:0;return h+=b.hasFooterPrimaryButton||b.hasFooterSecondaryButton||!b.footerTrailingLabel&&!b.footerLeadingLabel?0:12};
vBF=function(b){var h=new _.Jj,y=b;return{subscribe:function(S){h.subscribe("changed",S)},
dispatch:function(S,F){var a=y;if(S==="Touch Start")y=Object.assign({},a,{isAnimating:!1,initialY:F.event.touches[0].clientY});else if(S==="Touch Move"){S=F.contentScrollable?-1*(a.initialY-24):0;var P,K=(P=F.headerDivHeight)!=null?P:Qy2(F.header),n;P=(n=F.footerDivHeight)!=null?n:mMX(F.footer);n=Math.min(F.fullContentWrapperHeight,F.heightMap[F.contentWrapperId]+K-P);y=Object.assign({},a,{currentY:Math.max(S,F.event.touches[0].clientY-a.initialY),maxHeightForContentWrapper:Math.min(n,Math.max(0,
(a.isFullScreen?n:F.contentWrapperHeight)-a.currentY))})}else y=S==="Snap To Full Screen"?Object.assign({},a,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:F.maxHeight}):S==="Snap To Neutral Position"?Object.assign({},a,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:F.maxHeight}):S==="Close Sheet"?Object.assign({},a,{isAnimating:!0,currentY:F.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:F.maxHeight}):a;h.publish("changed",y)}}};
bvf=function(){_.H9().resolve(_.nk).closeSheet()};
hWq=function(b){var h,y,S,F,a,P,K,n,X,u,O;return{headerTitle:(h=b.headerTitle)==null?void 0:h.call(b),headerSubtitle:(y=b.headerSubtitle)==null?void 0:y.call(b),headerActionHeader:b.headerActionHeader,footerPrimaryButton:b.footerPrimaryButton,footerSecondaryButton:b.footerSecondaryButton,footerButtonType:(S=b.footerButtonType)==null?void 0:S.call(b),footerLeadingLabel:(F=b.footerLeadingLabel)==null?void 0:F.call(b),footerTrailingLabel:(a=b.footerTrailingLabel)==null?void 0:a.call(b),shouldShowIcons:(P=
b.shouldShowIcons)==null?void 0:P.call(b),skipContentClick:(K=b.skipContentClick)==null?void 0:K.call(b),additionalClassName:(n=b.additionalClassName)==null?void 0:n.call(b),onClosedCallback:b.onClosedCallback,focusOnClose:(X=b.focusOnClose)==null?void 0:X.call(b),isDisabled:(u=b.isDisabled)==null?void 0:u.call(b),disabledCommand:(O=b.disabledCommand)==null?void 0:O.call(b),headerFn:b.headerFn,contentFn:b.contentFn,footerFn:b.footerFn,hasHeaderFn:b.hasHeaderFn(),hasContentFn:b.hasContentFn(),hasFooterFn:b.hasFooterFn(),
hasFooterPrimaryButton:b.hasFooterPrimaryButton(),hasFooterSecondaryButton:b.hasFooterSecondaryButton(),hasHeaderActionHeader:b.hasHeaderActionHeader()}};
yUq=function(b){switch(b){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""}};
S62=function(b){switch(b){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""}};
FXF=function(b){switch(b){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""}};
ayN=function(b,h,y){h.forEach(function(S){_.QG(_.H9().resolve(_.Le),S)});
_.F8(b,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",y])};
LXA=function(b,h,y,S){var F=_.c(y,_.De).commandLifeCycleConfig;F&&F.onStartCommand&&_.jx(b,[F.onStartCommand],h);_.kG(h);var a=_.Ek.instance;a&&_.ip(a,y)?_.f9(a,y,S).then(function(P){if(!P||(P==null?0:P.error))return P=_.c(y,_.De).serializedTransactionFlowLoggingParams,_.VH(h),_.UQ(new S0("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",P));_.VH(h);return{data:P}}).then(function(P){_.VH(h);
dkA(P.data);var K=P.data.command;K&&_.jx(b,[K],h);K=j6a(y,P.data);if(!K){var n=P.data;P=!1;if(n&&n.command&&_.c(n.command,_.LI)){var X;n=((X=_.c(n.command,_.LI))==null?void 0:X.commands)||[];for(X=0;X<n.length;X++)if(_.c(n[X],_.vda)){P=!0;break}}P||_.jS('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!K&&F&&F.onSuccessCommand?_.jx(b,[F.onSuccessCommand],h):K&&F&&F.onFailureCommand&&_.jx(b,[F.onFailureCommand],h)},function(){_.VH(h);
F&&F.onFailureCommand&&_.jx(b,[F.onFailureCommand],h);$kq(y)}):_.QT(Error("Zl"),"ERROR")};
Ped=function(b,h,y){var S=[h];y&&S.push(y);return _.dh(b,S).then(function(F){var a=_.c(h,_.De).serializedTransactionFlowLoggingParams,P=F.data,K=j6a(h,P);K?F=_.UQ(new S0(K,a)):dkA(P);return F},function(){var F=_.c(h,_.De).serializedTransactionFlowLoggingParams;
$kq(h);return _.UQ(new S0("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",F))})};
j6a=function(b,h){b=_.c(b,_.De).serializedTransactionFlowLoggingParams;var y=null;switch(h.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":y="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":y="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":y="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}y?_.qC(y,b):KlX(b);return y};
$kq=function(b){_.qC("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.c(b,_.De).serializedTransactionFlowLoggingParams)};
dkA=function(b){if(b.trackingParams){var h=_.UE(),y=_.Ae();h&&y&&_.Vh(h,y,_.I_(b.trackingParams))}};
KXN=function(b,h,y){var S=_.Ek.instance,F=_.cHN(_.QC("YPC_MB_URL")),a=(new _.t8n).init(),P=_.rHY(),K=_.c(y,_.qAM).languageCode;K===void 0?_.QT(Error("Li"),"ERROR"):_.wb([a,F]).then(function(){var n={ctk:_.S4.payments.business.integration.ClientTokenFactory.createClientToken(K,P)};S&&_.ip(S,y)?_.f9(S,y,n).then(function(X){return{data:X}}).then(function(X){_.Sx(h,"yt-service-request-completed",X);
X.code!=="ERROR"&&(X=X.data.command)&&_.jx(b,[X],h)}):_.QT(Error("Zl"),"ERROR")})};
MWf=function(b,h,y,S){var F=_.Ek.instance;F&&_.ip(F,y)?_.f9(F,y,S).then(function(a){return{data:a}}).then(function(a){Zvx(b,h,y,a)},function(){oyx(y)}):(F=_.H9().resolve(_.XS(_.zM)))&&F.requestDataForServiceEndpoint(y,S).then(function(a){Zvx(b,h,y,a)},function(){oyx(y)})};
Zvx=function(b,h,y,S){_.Sx(h,"yt-service-request-completed",S);if(S.code&&S.code=="ERROR")oyx(y);else{(S=S.data.commands)&&_.jx(b,S,h);var F;(b=(F=_.c(y,_.hE5))==null?void 0:F.serializedYpcPauseFlowLoggingParams)&&b&&_.l9("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",b)}};
oyx=function(b){var h;(b=(h=_.c(b,_.hE5))==null?void 0:h.serializedYpcPauseFlowLoggingParams)&&b&&_.l9("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",b,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
HvE=function(b,h,y){var S=_.Ek.instance;S&&_.ip(S,y)?_.f9(S,y).then(function(F){return{data:F}}).then(function(F){nyf(b,h,y,F)},function(){XmA(y)}):(S=_.H9().resolve(_.XS(_.zM)))&&S.requestDataForServiceEndpoint(y).then(function(F){nyf(b,h,y,F)},function(){XmA(y)})};
nyf=function(b,h,y,S){_.Sx(h,"yt-service-request-completed",S);S.code&&S.code=="ERROR"?XmA(y):((S=S.data.commands)&&_.jx(b,S,h),(b=_.c(y,_.ypa).serializedYpcResumeFlowLoggingParams)&&b&&_.l9("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",b))};
XmA=function(b){(b=_.c(b,_.ypa).serializedYpcResumeFlowLoggingParams)&&b&&_.l9("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",b,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
u0A=function(b){b=b===void 0?{}:b;_.H9().resolve(_.kpA).showFeedbackDialog(b.customProductData,b.feedbackContent,b.onFeedbackSubmitted,b.bucket)};
Ovf=function(b){b=b===void 0?{}:b;_.H9().resolve(_.kpA).showHelpDialog(b.helpContext,b.articleId,b.productData)};
Nbq=function(){Ovf()};
tWf=function(){u0A()};
cUq=function(b,h,y){var S,F,a,P,K,n,X;return _.Z(function(u){switch(u.nextAddress){case 1:S=_.c(b,rUa);if((F=S)==null?0:F.productId){n={productId:S.productId,bucket:S.bucket,enableAnonymousFeedback:(K=S.enableAnonymousFeedback)!=null?K:!0,allowNonLoggedInFeedback:!0};X={feedbackChoice:y.feedbackChoice};if(!_.r("web_collect_offline_state")){u.jumpTo(8);break}_.WE(u,9);return u.yield(NCA(X),11)}P={bucket:(a=S)==null?void 0:a.bucket};if(!_.r("web_collect_offline_state")){u.jumpTo(4);break}P.customProductData=
{};_.WE(u,5);return u.yield(NCA(P.customProductData),7);case 7:_.Lz(u,4);break;case 5:_.C$(u);case 4:u0A(P);u.jumpTo(0);break;case 11:_.Lz(u,8);break;case 9:_.C$(u);case 8:_.$_8(X),_.jKr("GFEEDBACK",X),S.productId==="5295751"&&(X.client_attestation=Number(_.QC("CATSTAT",0))),S.productId==="5295751"&&(X.client_time=Date.now()/1E3/3600),S.productId==="5295751"&&(X.original_playback_id=_.wee||""),_.M6e(n,X),_.g3(u)}})};
RWA=function(b){if(b=_.c(b,_.Z_q)){var h={bucket:b.bucketIdentifier};b.additionalDatas&&(h.customProductData={},b.additionalDatas.forEach(function(y){if(y=y.userFeedbackEndpointProductSpecificValueData)h.customProductData[y.key]=y.value}));
u0A(h)}};
zWE=function(b){var h=_.$J.getInstance();var y=_.Mt("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var S=_.Mt("DELETE",void 0,"Delete"),F=_.Mt("CANCEL",void 0,"Cancel");y=c6N(y,void 0,S,F,{signal:"DELETE_ALL_DOWNLOADS"});_.aO(h,[{openPopupAction:y}],b)};
Iyf=function(){return _.Z(function(b){return b.nextAddress==1?b.yield(_.H9().resolve(_.Dq),2):b.yield(DkN(),0)})};
Bbx=function(b){var h,y;return _.Z(function(S){return S.nextAddress==1?(y=(h=_.c(b,_.aL))==null?void 0:h.targetId)?S.yield(_.H9().resolve(_.Dq),3):S.jumpTo(0):S.yield(_.H9().resolve(_.zi).deleteVideo(y),0)})};
AUF=function(b){var h,y;return _.Z(function(S){return S.nextAddress==1?(y=(h=_.c(b,_.aL))==null?void 0:h.targetId)?S.yield(_.H9().resolve(_.Dq),3):S.jumpTo(0):S.yield(WXx(_.H9().resolve(_.zi),y),0)})};
pmx=function(b){var h,y;return _.Z(function(S){return(y=(h=_.c(b,_.aL))==null?void 0:h.targetId)?S.yield(UkA(y),0):S.jumpTo(0)})};
eWf=function(){_.r("kevlar_woffle_refresh_dl_load_killswitch")||JUd()};
gyE=function(){_.r("kevlar_woffle")&&_.ik.instance&&Ce2()};
Y6F=function(b){var h;if((h=_.c(b,_.HC))==null||!h.videoId)return!1;s6F(_.H9().resolve(_.zi),_.c(b,_.HC),b.clickTrackingParams);return!0};
GIP=function(b){var h;if((h=_.c(b,_.uM))==null||!h.playlistId)return!1;TbA(_.H9().resolve(_.zi),_.c(b,_.uM),b.clickTrackingParams);return!0};
VWa=function(b){var h=_.c(b,_.Tao);(h==null?void 0:h.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(h==null?void 0:h.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||kIA(_.H9().resolve(_.zi),_.c(b,_.Tao))};
ivE=function(b){b=_.c(b,_.nNW);var h;(b==null?0:(h=b.actions)==null?0:h.length)&&EyF(b)};
lyF=function(b){var h,y;return _.Z(function(S){h=_.c(b,fy2);return(y=h)!=null&&y.localWatchHistoryCommandType?S.yield(wmA(h),0):S.return()})};
xkA=function(){return _.Z(function(b){return _.r("kevlar_enable_download_to_mobile")?b.yield(q6a(),0):b.return()})};
Q6Y=function(b){setTimeout(function(){requestAnimationFrame(b)},80)};
mkx=function(b){return Object.entries(b).map(function(h){return h.join(":")}).join(";")};
bGP=function(b){var h,y,S;_.Z(function(F){if(F.nextAddress==1)return F.yield(vyd(),2);h=F.yieldResult;y=_.nt.instance;switch(h){case "granted":S=b.getLocationCommand;break;case "denied":S=b.openDeniedDialogAction;break;case "prompt":S=b.openCollectionDialogAction;break;default:S=b.openCollectionDialogAction}S&&y.resolveCommand(S);_.g3(F)})};
vyd=function(){var b,h;return _.Z(function(y){if(y.nextAddress==1)return b="prompt",navigator.permissions?y.yield(navigator.permissions.query({name:"geolocation"}),3):y.jumpTo(2);y.nextAddress!=2&&(h=y.yieldResult,b=h.state);return y.return(b)})};
y7X=function(){_.Z(function(b){return b.yield(_.h0N(),0)})};
Swx=function(){var b,h,y;return _.Z(function(S){if(S.nextAddress==1)return b=_.H9().resolve(_.DT),b?S.yield(_.f9(b,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.vX(Error("bm")),S.return(void 0));if(h=S.yieldResult){if(h.errorMetadata)return _.vX(Error("cm`"+h.errorMetadata.status+"`"+h.error)),S.return(void 0);y=h.datasyncIds;_.hXf=y.length;return S.return(y)}_.vX(Error("dm"));return S.return(void 0)})};
FWN=function(){Swx().then(function(b){b&&(kKa(b),orA(b),gEf(b),rBA(b))})};
ala=function(b){_.xP.addLowPriorityJob(function(){var h,y,S,F,a;return _.Z(function(P){switch(P.nextAddress){case 1:if(_.r("ytidb_clear_optimizations_killswitch")){P.jumpTo(2);break}h=_.Y0("clear");if(h.startsWith("V")&&h.endsWith("||")){var K=[h];kKa(K);orA(K);gEf(K);rBA(K);return P.return()}y=sFd();S=cBA();return P.yield(Maf(),3);case 3:return F=P.yieldResult,P.yield(VjA(),4);case 4:if(a=P.yieldResult,!(y||S||F||a))return P.return();case 2:b.isNetworkAvailable()?FWN():b.listenOnce("publicytnetworkstatus-online",
FWN),_.g3(P)}})})};
Fh=function(b){b={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.mk(b)}}}};_.nt.instance&&_.nt.instance.resolveCommand(b)};
dIa=function(b){if(b){var h=_.rU();_.w2(h,3854,void 0,{layer:0,parentLayer:4});switch(b){case 1:var y=238708;break;case 2:y=238715;break;case 3:y=238710;break;case 6:y=238709}y&&(b=_.NJ(h,{veType:y}))&&_.xa(h,b)}};
jEA=function(b){if(b){var h=_.rU();_.w2(h,3854,void 0,{layer:0,parentLayer:4});switch(b){case 1:var y=238714;break;case 2:y=238711;break;case 8:y=238709;break;case 7:y=238713;break;case 3:case 4:case 5:y=238712}y&&(b=_.NJ(h,{veType:y}))&&_.xa(h,b)}};
$Id=function(b){switch(b.latencyType){case 0:_.Ua("consent_primitive_flow");_.pI("cpit",b.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.pI("cpist",b.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.pI("cprtif",b.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.pI("cprtli",b.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.pI("cprt",b.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.pI("cpdt",b.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.pI("cpjct",b.timestampEpochMillis,"consent_primitive_flow")}};
NvE=function(b,h){var y,S,F,a,P,K,n,X,u,O,N,t,R,I,U,p,e,E,Y,w;return _.Z(function(x){switch(x.nextAddress){case 1:_.WE(x,2);(S=(y=_.c(b,LWF))==null?void 0:y.serializedConsentRequest)||(S=(F=_.c(b,PDA))==null?void 0:F.serializedConsentRequest);S&&(a=KW2(_.h8(S)));if(a===void 0)return x.return();P=ZGN(a);P.latencyCallback=$Id;h&&ouF(P,function(){h.then(function(q){q.pauseVideo();(new MAd).increment()})});
return((K=_.c(b,LWF))==null?void 0:K.consentAction)==="CONSENT_ACTION_PREWARM"||((n=_.c(b,PDA))==null?void 0:n.consentAction)==="CONSENT_ACTION_PREWARM"?x.yield(nuE(P),5):x.yield(XRY(P),6);case 6:X=x.yieldResult;u=_.Wv(X,at);if(u===1){if(((O=_.kY(X,HGA,1,at))==null?void 0:_.sV(O,1))===1||((N=_.kY(X,HGA,1,at))==null?void 0:_.sV(N,1))===2||((t=_.kY(X,HGA,1,at))==null?void 0:_.sV(t,1))===3)_.c(b,PDA)?Fh(_.Mt("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
Fh(_.Mt("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));dIa((R=_.kY(X,HGA,1,at))==null?void 0:_.sV(R,1),_.NK(X,uif,3,_.tW()))}else u===2?(((I=OGa(X))==null?void 0:_.sV(I,1))===5?_.c(b,PDA)?Fh(_.Mt("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):Fh(_.Mt("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((U=OGa(X))==null?void 0:_.sV(U,1))===1||((p=OGa(X))==null?void 0:_.sV(p,1))===4?
Fh(_.Mt("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")):((e=OGa(X))==null?void 0:_.sV(e,1))===7&&((E=a)==null?void 0:(Y=_.cL(E,dr,4))==null?void 0:_.sV(Y,4))!==1&&Fh(_.Mt("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),jEA((w=OGa(X))==null?void 0:_.sV(w,1))):Fh(_.Mt("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));x.jumpTo(5);break;case 5:_.Lz(x,0);break;case 2:_.C$(x),Fh(_.Mt("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),
_.g3(x)}})};
r7x=function(){if(!tAP.has("Worker")){tAP.set("Worker",!0);var b={api:"BROWSER_API_WEB_WORKER"};b.available="Worker"in window?!0:!1;_.qi("apiTest",b)}};
c7A=function(b){return typeof b==="undefined"?"-1":String(Math.ceil(b/1048576))};
Ilf=function(b,h){R0A(new z0A(_.c(h,DIE).addToken,_.c(h,DIE).commonToken)).then(function(){_.Sx(b,"yt-invoke-instrument-manager-action-completed")},function(y){_.Sx(b,"yt-invoke-instrument-manager-action-error",y)})};
j0=function(){return _.QC("HTML_DIR")==="rtl"};
BvA=function(){var b,h;return(h=(b=window).matchMedia)==null?void 0:h.call(b,"(prefers-reduced-motion: reduce)").matches};
WWA=function(b){var h=_.H9().resolve(_.XS(_.$O));if(h&&h.isAnyTransitionEnabled){var y={};h.viewTransitionCoordinator.registerElement(b,(y.slide="miniplayer-page-transition",y["lockup-to-watch"]="miniplayer-page-transition",y["learning-journey"]="miniplayer-page-transition",y))}};
A7a=function(b,h,y){return{horizontalAlignment:b.x+y.width/2<h.width/2?"west":"east",verticalAlignment:b.y+y.height/2<h.height/2?"north":"south"}};
pRA=function(b,h,y,S,F){F=F===void 0?new _.xb(0,0):F;b=UIN(b,h,y,S,!1);return new _.xb(b.x+F.x,b.y+F.y)};
UIN=function(b,h,y,S,F){F=(F===void 0?0:F)?400:0;return new _.xb(b==="west"?16+(j0()?F:0):y.width-S.width-16-(j0()?0:F),h==="north"?16:y.height-S.height-16)};
J7A=function(b,h){var y=0;b&&(y+=76);h&&(y+=285);return y};
e0P=function(b){return _.fF(b)};
CDA=function(b){var h=1;b=b.split(":");for(var y=[];h>0&&b.length;)y.push(b.shift()),h--;b.length&&y.push(b.join(":"));return y};
guP=function(b){var h=new _.I6;return _.V7(h,11,b)};
sEN=function(b){var h={};b=b.getAllResponseHeaders().split("\r\n");for(var y=0;y<b.length;y++)if(!_.$U(b[y])){var S=CDA(b[y]),F=S[0];S=S[1];if(typeof S==="string"){S=S.trim();var a=h[F]||[];h[F]=a;a.push(S)}}return _.lR.map(h,function(P){return P.join(", ")})};
Dnd=function(b,h){return b.JSC$9979_xhr_?b.JSC$9979_xhr_.getResponseHeader(h):null};
YwA=function(b,h){if(b.isDisposed())throw Error("Ea");b.fj.nW("n");var y=_.yF(b.fj,function(){return b.qVj([h.yn,h.g6S,h.o7r,h.b6k])},"n");
b.fj.lLg(y.length);b.fj.jA();return y};
Tva=function(b,h,y){Array.isArray(y)||(y=[String(y)]);_.XXa(b.JSC$10215_queryData_,h,y);return b};
Ce2=function(){var b=_.ik.instance;_.Z(function(h){return b.deferredInstallPrompt?h.yield(b.deferredInstallPrompt.prompt(),0):h.jumpTo(0)})};
GSf=function(b,h,y){if(_.f4(b))_.FS(b,h,y);else for(b=_.Bha(b);;){var S=b.next();if(S.done)break;h.call(y,S.value,void 0,b)}};
kSf=function(b,h){var y=[];GSf(h,function(S){try{var F=_.Am.prototype.getWrapper.call(this,S,!0)}catch(a){if(a=="Storage: Invalid value was encountered")return;throw a;}F===void 0?y.push(S):_.IW8(F)&&y.push(S)},b);
return y};
c42=function(b,h){kSf(b,h).forEach(function(y){_.Am.prototype.remove.call(this,y)},b)};
VAY=function(b){var h=_.Op;h._minimumZ=Math.max(h._minimumZ,b)};
EuA=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];iGf=function(b,h){_.nq(b.vm);b.vm=h};
flf=function(b,h,y,S){b.setState(5);var F=!!b.cnO&&EuA.includes(_.ZI(b.cnO)||"");try{var a=new _.SA({program:h,globalName:y,gRB:{disable:!_.r("att_web_record_metrics")||!_.r("att_skip_metrics_for_cookieless_domains_ks")&&F,jF:"aGIf"}});a.h8f.then(function(){b.setState(6);S&&S(h)});
iGf(b,a)}catch(P){b.setState(7),P instanceof Error&&_.vX(P)}};
wRd=function(b,h,y,S,F,a){var P=P===void 0?"trayride":P;y?(b.setState(2),_.Tt(_.wB(y),function(){if(window[P])flf(b,S,P,F);else{b.setState(3);var K=_.qRI(y),n=document.getElementById(K);n&&(_.Cik(K),n.parentNode.removeChild(n));_.vX(new _.Gn("BL:ULB",y))}},a)):h?(a=_.gB("SCRIPT"),h instanceof _.$f?_.K$(a,h):a.textContent=h,a.nonce=_.jw(document),document.head.appendChild(a),document.head.removeChild(a),window[P]?flf(b,S,P,F):(b.setState(4),_.vX(new _.Gn("BL:ULBJ")))):_.vX(new _.Gn("BL:ULV"))};
llA=function(){this.state=1;this.vm=null;this.cnO=void 0};
_.d=llA.prototype;_.d.initialize=function(b,h,y,S){this.cnO=S;if(b.program){var F;S=(F=b.interpreterUrl)!=null?F:null;if(b.interpreterSafeScript)F=_.SBU(b.interpreterSafeScript);else{var a;F=(a=b.interpreterScript)!=null?a:null}b.interpreterSafeUrl&&(S=_.QV(b.interpreterSafeUrl).toString());wRd(this,F,S,b.program,h,y)}else _.vX(Error("tf"))};
_.d.isInitialized=function(){return!!this.vm};
_.d.getState=function(){return this.state};
_.d.isLoading=function(){return this.state===2};
_.d.invoke=function(b){b=b===void 0?{}:b;var h;this.vm?h=YwA(this.vm,{yn:b}):h=null;return h};
_.d.dispose=function(){iGf(this,null);this.setState(8)};
_.d.setState=function(b){this.state=b};
var qwA=function(b,h){return b.vm.snapshot(h)},xIN=function(b,h){var y=_.tj("botguard_async_snapshot_timeout_ms",3E3);
h=h===void 0?{}:h;y=y===void 0?3E3:y;return b.vm?new Promise(function(S,F){var a=!1,P=_.xP.addJob(function(){a=!0;F(Error("uf"))},1,y);
b.vm?qwA(b,{yn:h}).then(function(K){_.xP.cancelJob(P);a||S(K)}).catch(function(K){_.xP.cancelJob(P);
a||F(K)}):(_.xP.cancelJob(P),S(null))}):Promise.resolve(null)},QEf=["att/log"],C4f;
C4f={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var mIq={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},vud=function(b,h){return _.Nm(b,{mode:"readwrite",enableRetries:!0},function(y){return _.IhM(y,h,"settingEntity")})},bHX=function(b,h,y){return _.Nm(b,{mode:"readonly",
enableRetries:!0},function(S){return _.I3G(S,h,y)})},hHY=function(b){if(!b.storage)return!1;
a:{if(b.storage){try{var h=b.storage.get("TLPQtimestamp")}catch(y){}b=Number(h);if(!isNaN(b))break a}b=void 0}return b?Date.now()-b<864E5:!1},yqE=function(b){if(b.storage){try{var h=b.storage.get("TLPQindex")}catch(y){}b=Number(h);
if(!isNaN(b))return b}},S$x=function(b,h){b.queueProxy&&h.forEach(function(y){if(y.videoId&&y.trackingParams&&b.queueProxy instanceof _.t0){var S=_.UE();
b.queueProxy.attributionData.set(y.videoId,{enqueueingVe:_.I_(y.trackingParams).getAsJson(),enqueueingCsn:S?S:void 0,clientEnqueueingTimeMs:Math.floor((0,_.NO)()).toString()})}})},FDq=function(b){var h=_.KuW(b);
h!=b.currentSnapState_&&(b.currentSnapState_=h,b.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},$i=function(b){this.JSC$13407_networkManager_=b;
this.partCallbacks_=[]};
$i.prototype.getCacheKeyForEndpoint=function(b){return _.nwI(b,!1)};
$i.prototype.onPartsCallback_=function(b){this.partCallbacks_.forEach(function(h){b&&h(b)})};
var LV=function(b,h,y){$i.call(this,b);this.player_=h;this.autoplayData_=y};
_.z(LV,$i);LV.prototype.getCacheKeyForEndpoint=function(b){return _.nwI(b,!!this.autoplayData_)};
LV.prototype.getTempData=function(b,h){h=h.timeBeforeNextVideo;b={itct:b.clickTrackingParams,lact:_.td(),pbis:h,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(b.autonav=1);return b};
LV.prototype.getXhrParams=function(b){return Object.assign({pbj:"prefetch"},b)};
LV.prototype.getParams=function(b){b={frags:b.fragmentsRequested.join(",")};_.r("kevlar_droppable_prefetchable_requests")&&(b.prefetch=1);return b};
var a6f=function(b){b.playerEvents_.forEach(function(h){b.player.removeEventListener(h.eventName,h.callback)});
b.playerEvents_.length=0},d8X=function(b,h,y){this.player=b;
this.JSC$13417_taskManager=h;this.prefetchDelay=y;this.completionResolver_=null;this.playerEvents_=[]};
d8X.prototype.start=function(){var b=this;this.completionResolver_=_.wS();_.le(this.completionResolver_.promise,function(){a6f(b);b.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var jGN=function(b,h,y){b.player.addEventListener(h,y);b.playerEvents_.push({eventName:h,callback:y})},$8a={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},LDN={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},PcA=function(b,h,y){d8X.call(this,b,h,y);this.cueId_="playbackTrigger-"+Math.random()};
_.z(PcA,d8X);
PcA.prototype.prepareTrigger=function(b){var h=this,y=this.player.getDuration(),S=this.player.getVideoData(),F=S.isLive&&S.hasProgressBarBoundaries;if(F&&S.progressBarEndPositionUtcTimeMillis){var a=S.progressBarEndPositionUtcTimeMillis/1E3;isNaN(a)||(y=a)}var P=0;this.prefetchDelay>=0?F?S.progressBarStartPositionUtcTimeMillis&&(S=S.progressBarStartPositionUtcTimeMillis/1E3,isNaN(S)||(P=S+this.prefetchDelay)):P=this.prefetchDelay:P=y+this.prefetchDelay;F?this.player.addUtcCueRange(this.cueId_,P,y):
this.player.addCueRange(this.cueId_,P,y);_.le(b.promise,function(){h.player.removeCueRange(h.cueId_)});
jGN(this,"onCueRangeEnter",function(K){K==h.cueId_&&b.resolve(y-P)})};
var KDE=function(b,h){b.fragmentConfiguration_[h].requiredKeys.every(function(y){return!!b.prefetchedData_[y]})&&(b.validatedFragments_.push(h),h=b.missingFragments_.indexOf(h),h!==-1&&b.missingFragments_.splice(h,1))},ZHq=function(b){b.prefetchedFragments_.forEach(function(h){KDE(b,h)})},oRA=function(b,h,y){this.pageFragments_=b;
this.prefetchedFragments_=h;this.fragmentConfiguration_=LDN;this.prefetchedData_=y;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;ZHq(this)},M62=function(){},nRA=function(b){this.JSC$13431_playlistManager_=b};
_.z(nRA,M62);nRA.prototype.getPrefetchEndpoint=function(){return this.JSC$13431_playlistManager_.getAutoplayEndpoint()};
var XaY=function(b){this.autonavEndpoints_=b};
_.z(XaY,M62);XaY.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var HHq=function(b,h,y,S,F){this.autonavEndpoints=b;this.foregroundTrigger=h;this.backgroundTrigger=y;this.pageType=S;this.isInPlaylist=F},ueP=function(b,h){if(b.webPrefetchData&&b.webPrefetchData.navigationEndpoints&&b.webPrefetchData.navigationEndpoints.length){b=b.webPrefetchData.navigationEndpoints;
var y=_.c(b[0],_.wO);if(y.watchEndpointSupportedPrefetchConfig&&y.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var S=y.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;y=S.playbackRelativeSecondsPrefetchCondition;y=typeof y==="number"&&Math.abs(y)<h.videoDuration?y:void 0;S=S.countdownUiRelativeSecondsPrefetchCondition;S=typeof S!=="number"||_.r("prefetch_job_config_cleanup_ks")&&h.inPlaylist?void 0:S;if(typeof S==="number")return new HHq(b,h.makeUpNextTrigger(S),h.makePlaybackTrigger(S),
"watch",h.inPlaylist);if(typeof y==="number")return new HHq(b,h.makePlaybackTrigger(y),null,"watch",h.inPlaylist)}}},OHf=function(b){return b.prefetchJobConfig_.backgroundTrigger?_.bN(_.fGM)()==0?b.prefetchJobConfig_.backgroundTrigger:b.prefetchJobConfig_.foregroundTrigger:b.prefetchJobConfig_.foregroundTrigger},N4x=function(b){_.Yy(document,"visibilitychange",b.onVisibilityChange_,!1,b)},PK=function(b){$i.call(this,b)};
_.z(PK,$i);PK.prototype.getCacheKeyForEndpoint=function(b){return $i.prototype.getCacheKeyForEndpoint.call(this,b)};
PK.prototype.getTempData=function(){return{}};
PK.prototype.getXhrParams=function(b){return b};
PK.prototype.getParams=function(){return{}};
var t6P=function(b,h,y){var S=b.prefetchDelay*1E3;if(Math.abs(S)>h)y.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var F=S,a=h-S;S<0&&(F=h+S,a=Math.abs(S));var P=b.JSC$13417_taskManager.addJob(function(){y.resolve(a/1E3)},10,F);
y.promise.thenCatch(function(){b.JSC$13417_taskManager.cancelJob(P)})}},rqN=function(b,h,y){d8X.call(this,b,h,y)};
_.z(rqN,d8X);rqN.prototype.prepareTrigger=function(b){var h=this;jGN(this,"onAutonavCoundownStarted",function(y){t6P(h,y,b)})};
var cqa=function(b){b.pendingPrefetchJob_&&(b.pendingPrefetchJob_.cancel(),b.pendingPrefetchJob_=null)},RHX=function(b,h,y){if(!b.triggeredTargets.has(h)){var S=_.Wub(b,h);
S.action=y;_.BtP(b,h,S)}},zHX=function(b){_.tt7();
_.SUq("cpt")&&_.vX(Error("mh"));_.S5.requestAnimationFrame(function(){_.S5.setTimeout(function(){_.pI("cpt");var h=_.CI("vpl"),y=_.CI("cpt");h&&y&&_.pI("ol",Math.max(h,y))})});
try{_.pI("fr_s"),b()}catch(h){_.QT(h)}_.S5.requestAnimationFrame(function(){_.pI("bcp")})},D8F=function(b,h){b.serviceEndpointHandlers.push(h)},I6N=function(b,h){h=b.pendingPages_.indexOf(h);
h>-1&&b.pendingPages_.splice(h,1)},B42=function(b,h){var y=_.qyW.indexOf(h);
y>-1&&_.qyW.splice(y,1);b.targetPage_==h?(b.abort(),_.QVa(b)):I6N(b,h)},WDP=function(b,h,y,S){h={challenge:h};
y&&(h.webResponse=y);return _.cy(b.innertubeTransportService,h,_.yk(QEf),S)},AqE=function(b,h,y){if(!h.challenge)throw Error("ti");
if(h.botguardData&&h.botguardData.program){var S=new llA;S.initialize(h.botguardData,function(){xIN(S,{atr_challenge:h.challenge}).then(function(F){if(!F)throw Error("ui");return WDP(b,h.challenge,F,y)}).catch(function(F){_.vX(F);
return WDP(b,h.challenge,void 0,y)})},void 0)}else WDP(b,h.challenge,void 0,y)},U8N=function(b,h,y){var S={};
h.ids&&(S.ids=[].concat(_.f$(h.ids)));h.engagementType&&(S.engagementType=h.engagementType);return _.cy(b.innertubeTransportService,S,_.yk(_.ire),y).then(function(F){if(!F)throw new _.Gn("GetAttestationChallenge returned falsy");AqE(b,F,y)}).thenCatch(function(F){_.QT(F)})},pad=function(b,h,y){return new _.Uu(function(S,F){var a;
return _.Z(function(P){if(P.nextAddress==1){var K=P.yield,n=h.engagementType,X=h.ids,u={};X=_.L(X!=null?X:[]);for(var O=X.next();!O.done;O=X.next())O=O.value,O.encryptedVideoId?u.encryptedVideoId=O.encryptedVideoId:O.externalChannelId?u.externalChannelId=O.externalChannelId:O.commentId?u.commentId=O.commentId:O.externalOwnerId?u.externalOwnerId=O.externalOwnerId:O.artistId?u.artistId=O.artistId:O.playlistId?u.playlistId=O.playlistId:O.externalPostId?u.externalPostId=O.externalPostId:O.shareId&&(u.shareId=
O.shareId);return K.call(P,r6f(n,u),2)}a=P.yieldResult;if(!a.challenge)return _.vX(Error("vi")),U8N(b,h,y).then(S,F),P.return();K=a;n={challenge:K.challenge};n.webResponse=K.webResponse;n.engagementType=h.engagementType;n.ids=h.ids;_.cy(b.innertubeTransportService,n,_.yk(QEf),y).then(S,F);_.g3(P)})})},FL2=function(b,h){var y,S,F,a;
_.Z(function(P){if(P.nextAddress==1){y=_.c(h,_.Ee8);if(!(y&&y.listId&&b.response&&b.response.playingVideoId)||b.listId!==y.listId)return P.return();b.index===void 0&&(b.index=0);return P.yield(_.oOo(b.JSC$13270_playlistNetworkManager,y.listId,b.index,b.response.playingVideoId),2)}S=P.yieldResult;if(!S)return P.return();F=S.playlistId;a=S.playlistPanelRenderer;b.setPlaylistData(F,a,S.autoplayRenderer);_.g3(P)})},JqN=function(b,h,y){var S=b.getParams(y),F=_.Zh4(h,S),a=b.getTempData(h,y);
a.endpoint=JSON.stringify(h);_.r("enable_unknown_lact_fix_on_html5")&&(_.H9().resolve(_.rS),a.lact=_.td());var P={headers:{"X-YouTube-STS":_.QC("STS"),"x-youtube-csoc":1}};_.QB(F,a);return new _.Uu(function(K,n){var X=b.getXhrParams(S),u;_.r("kevlar_cache_on_ttl_player")&&(u=_.H9().resolve(_.A_));u&&_.dKq(u,h)?_.ZqY(u,h,a,window.location.href).then(function(O){O?K(O):n()},n):_.i_a(b.JSC$13407_networkManager_,h,X,b.onPartsCallback_.bind(b),P).then(function(O){O?K(O):n()},n)})},eHx=function(b,h){b.triggerPromise_=
h.start();
b.triggerPromise_.then(function(y){var S=b.prefetchEndpointProvider_.getPrefetchEndpoint();if(S){var F=$8a[b.prefetchJobConfig_.pageType].prefetchedFragments;b.prefetchRequestPromise_=JqN(b.JSC$13443_networkPrefetchRequest_,S,{fragmentsRequested:F,timeBeforeNextVideo:y});b.prefetchResponseCacheKey_=b.JSC$13443_networkPrefetchRequest_.getCacheKeyForEndpoint(S);N4x(b);b.prefetchRequestPromise_.then(function(a){b.storePrefetchedDataCallback_(b.prefetchResponseCacheKey_,a);if(_.r("web_prefetch_preload_video")&&
F.length===1&&F[0]==="pl"&&a&&!a.playerAds&&!a.adPlacements){var P=_.c(S,_.cd),K=P!=null,n={raw_player_response:a,watch_endpoint:P};(a=_.H9().resolve(K?_.qce:_.ja))&&S&&a.then(function(X){K&&_.r("web_queue_preload_video")?(n.prefer_gapless=!0,X.queueNextVideo(n)):X.preloadVideoByPlayerVars(n)})}})}})},KV=function(b,h,y,S){this.prefetchEndpointProvider_=b;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=h;this.prefetchJobConfig_=y;this.JSC$13443_networkPrefetchRequest_=S;this.prefetchResponseCacheKey_=null};
KV.prototype.enqueue=function(){this.triggerPromise_||(eHx(this,OHf(this)),_.W3(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
KV.prototype.resolve=function(){this.cancel()};
KV.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.");N4x(this)};
KV.prototype.onVisibilityChange_=function(){var b=this;_.bN(_.fGM)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){b.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||eHx(this,OHf(this))};
var Ccx=function(b,h,y,S,F){h&&(h==null?0:h.videoId)&&y&&y.entries&&_.r("kevlar_enable_shorts_prefetch_in_sequence")&&(cqa(b),h=y.entries.map(function(a){var P;return(P=_.c(a.command,_.cd))==null?void 0:P.videoId}).indexOf(h.videoId),y=y.entries[h+1],y!=null&&y.command&&!_.c(y==null?void 0:y.command,_.XI)&&(S=new HHq([y.command],new PcA(S,_.xP,1),null,"shorts",!1),b.pendingPrefetchJob_=new KV(new XaY(S.autonavEndpoints),function(){return!1},S,new PK(F)),b.pendingPrefetchJob_.enqueue()))},gRq=function(b,
h,y,S,F,a){var P=_.g2.getInstance();
if(!_.r("block_all_player_prefetch_requests")){cqa(b);var K=!!y.getPlaylistId(),n=y.getVideoData().isLive&&y.getVideoData().hasProgressBarBoundaries;if((P.getState()==2||K||n)&&(!y.getVideoData().isLive||n)){P={inPlaylist:K,videoDuration:y.getDuration(),makeUpNextTrigger:function(u){return new rqN(y,_.xP,u)},
makePlaybackTrigger:function(u){return new PcA(y,_.xP,u)}};
var X=ueP(h,P);X&&(b.pendingPrefetchJob_=new KV(X.isInPlaylist?new nRA(F):new XaY(X.autonavEndpoints),function(u,O){O=new oRA($8a[X.pageType].pageFragments,$8a[X.pageType].prefetchedFragments,O);return _.OUa(O)?(b.prefetchCache_.set(u,O),!0):!1},X,new LV(S,y,a,F)),b.pendingPrefetchJob_.enqueue())}}},sGX=function(){var b=_.Wy();
b.signals.parkOrScheduleJob(function(){var h=b.storage;if(h.storage)if(hHY(h)){var y=h.getPlaylistId();h=yqE(h);y=!!y&&h!==void 0}else h.clear(),y=!1;else y=!1;if(y){y=b.JSC$13270_pageManager.isOnWatch();a:{var S=b.storage;if(S.storage&&hHY(S)&&(h=S.getPlaylistId(),S=yqE(S),h&&S!==void 0)){y={recoverPlaylistCommand:{listId:h,index:S,openMiniplayer:!y,openListPanel:y,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}y=void 0}y&&_.aO(b.JSC$13270_actionRouter,[y],null)}},0,"ma")},Y$P=function(b,h,y,
S,F,a){var P=_.Kh(7111);
_.lC(b.JSC$18792_screenManager,P,a?_.I_(a):void 0);_.xa(b.JSC$18792_screenManager,P,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:S,offlineId:h,offlineabilityFormatType:y,isDefaultFormatType:F==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:F}})},T4F=function(b,h,y,S,F){var a,P,K,n,X;
return _.Z(function(u){if(u.nextAddress==1)return u.yield(b.JSC$18792_playerApiPromise,2);a=u.yieldResult;Y$P(b,h,y,"OFFLINE_OBJECT_TYPE_PLAYLIST",S,F);if(K=_.e3G[b.entityTypeMap.listEntityType])X={},P=(X[K]={maximumDownloadQuality:(n=y)!=null?n:void 0},X);return u.yield(a.queueOfflineAction(h,b.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",P),0)})},GyA=function(b,h){var y,S,F,a;
return _.Z(function(P){if(P.nextAddress==1)return P.yield(b.JSC$18792_persistentStorePromiseAccessor(),2);if(P.nextAddress!=3){y=P.yieldResult;if(!y)return _.vX(new _.Gn("PES is undefined")),P.return();S=_.oU(h,"downloadStatusEntity");return P.yield(bHX(y,S,"downloadStatusEntity"),3)}F=P.yieldResult;return P.return((a=F)==null?void 0:a.downloadState)})},ky2=function(b,h,y,S,F){var a,P,K,n,X,u;
return _.Z(function(O){switch(O.nextAddress){case 1:return O.yield(b.JSC$18792_playerApiPromise,2);case 2:a=O.yieldResult;Y$P(b,h,y,"OFFLINE_OBJECT_TYPE_VIDEO",S,F);if(K=_.e3G[b.entityTypeMap.singleEntityType])X={},P=(X[K]={maximumDownloadQuality:(n=y)!=null?n:void 0},X);return O.yield(GyA(b,h),3);case 3:u=O.yieldResult;if(u!=="DOWNLOAD_STATE_USER_DELETED"){O.jumpTo(4);break}return O.yield(b.deleteVideo(h),4);case 4:return O.yield(a.queueOfflineAction(h,b.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
P),0)}})},V6A=function(b,h,y,S,F){return _.Z(function(a){return a.nextAddress==1?a.yield(b.deleteVideo(h,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):a.yield(ky2(b,h,y,S,F),0)})},ERY=function(b,h,y){var S,F;
return _.Z(function(a){if(a.nextAddress==1)return a.yield(b.JSC$18792_playerApiPromise,2);S=a.yieldResult;F=_.oU(h,"mainVideoDownloadStateEntity");return a.yield(S.updateDownloadState(F,y),0)})},UkA=function(b){var h=_.H9().resolve(_.zi);
return _.Z(function(y){if(y.nextAddress==1)return h.previousDownloadStateForVideo[b]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&h.previousDownloadStateForVideo[b]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?y.jumpTo(2):y.yield(h.resumeVideoDownload(b),2);if(y.nextAddress!=4)return y.yield(ERY(h,b,h.previousDownloadStateForVideo[b]),4);delete h.previousDownloadStateForVideo[b];_.g3(y)})},WXx=function(b,h){var y;
return _.Z(function(S){if(S.nextAddress==1)return S.yield(b.JSC$18792_playerApiPromise,2);y=S.yieldResult;return S.yield(y.queueOfflineAction(h,b.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},DkN=function(){var b=_.H9().resolve(_.zi),h,y;
return _.Z(function(S){if(S.nextAddress==1)return S.yield(b.JSC$18792_playerApiPromise,2);if(S.nextAddress!=3)return h=S.yieldResult,y={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},S.yield(h.queueOfflineAction("!*$_ALL_ENTITIES_!*$",b.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",y),3);var F=b.JSC$18792_commandHandler,a=F.resolveCommand,P=_.Mt("DELETING_ALL",void 0,"Downloads are being deleted");a.call(F,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.aU(P)}},
popupType:"TOAST"}});_.g3(S)})},iHX=function(b,h){var y,S,F,a,P,K;
return _.Z(function(n){if(n.nextAddress==1)return n.yield(b.JSC$18792_persistentStorePromiseAccessor(),2);if(n.nextAddress!=3)return y=n.yieldResult,y?n.yield(bHX(y,_.Wi,"downloadsPageViewConfigurationEntity"),3):(_.vX(new _.Gn("PES is undefined")),n.return());F=(S=n.yieldResult)!=null?S:{};K=(P=(a=F)==null?void 0:a.downloadsUpsellBannerVisibility)!=null?P:{};return K.visibleWithConnection?n.yield(h.refreshAllStaleEntities(0),0):n.jumpTo(0)})},f6x=function(b){var h,y;
return _.Z(function(S){if(S.nextAddress==1)return S.yield(b.JSC$18792_prefStorage,2);h=S.yieldResult;return S.return((y=h)==null?void 0:y.get("sdois"))})},waY=function(b){var h,y,S,F,a,P;
return _.Z(function(K){if(K.nextAddress==1)return K.yield(b.JSC$18792_persistentStorePromiseAccessor(),2);if(K.nextAddress!=3){h=K.yieldResult;if(!h)return _.vX(new _.Gn("PES is undefined")),K.return();y=_.oU("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return K.yield(bHX(h,y,"settingEntity"),3)}S=K.yieldResult;return K.return((P=(F=S)==null?void 0:(a=F.settingOptionValue)==null?void 0:a.boolValue)!=null?P:!1)})},l6P=function(b,h){var y,S,F,a;
return _.Z(function(P){switch(P.nextAddress){case 1:return((y=h)==null?void 0:y.formatType)===void 0?P.return():P.yield(b.JSC$18792_prefStorage,2);case 2:S=P.yieldResult;if(S===void 0)return P.return();if(((F=h)==null?void 0:F.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return P.yield(S.set("lmqf",h.formatType),8);if(((a=h)==null?void 0:a.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){P.jumpTo(0);break}return P.yield(S.set("lmqf",h.formatType),6);case 6:return P.yield(S.set("lmqflst",
Math.floor((0,_.NO)())),0);case 8:return P.yield(S.remove("lmqflst"),0)}})},q$F=function(b){var h,y;
return _.Z(function(S){switch(S.nextAddress){case 1:return S.yield(b.JSC$18792_prefStorage,2);case 2:h=S.yieldResult;if(!h){S.jumpTo(3);break}return S.yield(h.get("lmqflst"),4);case 4:if(y=S.yieldResult,y!==void 0)return S.return(y);case 3:return S.return(0)}})},x8f=function(b){var h,y,S;
return _.Z(function(F){return F.nextAddress==1?F.yield(b.JSC$18792_prefStorage,2):F.nextAddress!=3?(h=F.yieldResult,F.yield((y=h)==null?void 0:y.get("ldtmes"),3)):F.return((S=F.yieldResult)!=null?S:!1)})},q6a=function(){var b=_.H9().resolve(_.zi),h;
return _.Z(function(y){if(y.nextAddress==1)return y.yield(b.JSC$18792_prefStorage,2);h=y.yieldResult;return h===void 0?y.return():y.yield(h.set("ldtmes",!0),0)})},QGN=function(b){var h,y;
return _.Z(function(S){switch(S.nextAddress){case 1:return S.yield(b.JSC$18792_prefStorage,2);case 2:h=S.yieldResult;if(h===void 0){S.jumpTo(3);break}return S.yield(h.get("lmqf"),4);case 4:if(y=S.yieldResult,y!==void 0)return S.return(y);case 3:return S.return("SD")}})},TbA=function(b,h,y){var S,F,a,P,K,n,X,u;
_.Z(function(O){switch(O.nextAddress){case 1:return O.yield(l6P(b,(S=h)==null?void 0:S.actionParams),2);case 2:F=h.playlistId;if(!F)return O.return();if(h.action==="ACTION_ADD")return((P=h.actionParams)==null?0:P.formatType)?O.yield(T4F(b,F,h.actionParams.formatType,(u=h.actionParams)==null?void 0:u.settingsAction,y),0):O.yield(b.offlineWebClientEligibility,14);if(h.action==="ACTION_REMOVE_WITH_PROMPT"){var N=b.JSC$18792_commandHandler,t=N.resolveCommand,R=_.QC("INNERTUBE_CLIENT_NAME");var I=R===
"WEB_REMIX"?_.Mt("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.Mt("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var U=R==="WEB_REMIX"?[_.Mt("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];R=R==="WEB_REMIX"?_.Mt("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.Mt("DELETE",void 0,"Delete");var p=_.Mt("CANCEL",void 0,"Cancel");I=c6N(I,U,R,p,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:F});t.call(N,{openPopupAction:I});return O.return()}if(h.action===
"ACTION_REMOVE")return O.yield(WXx(b,F),0);if(h.action!=="ACTION_SYNC"){O.jumpTo(0);break}return O.yield(b.JSC$18792_playerApiPromise,9);case 9:return a=O.yieldResult,O.yield(a.queueOfflineAction(F,b.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return K=O.yieldResult,O.yield(QGN(b),15);case 15:return n=O.yieldResult,O.yield(q$F(b),16);case 16:X=O.yieldResult,h.onAddCommand&&b.JSC$18792_commandHandler.resolveCommand(h.onAddCommand,{form:{preferredFormatType:n,
offlineWebClientEligibility:K,lastOfflineQualitySettingsSavedMs:X.toString()}}),O.jumpTo(0)}})},s6F=function(b,h,y){var S,F,a,P,K,n,X,u,O,N,t,R,I,U,p,e,E,Y,w,x;
_.Z(function(q){switch(q.nextAddress){case 1:return q.yield(l6P(b,(S=h)==null?void 0:S.actionParams),2);case 2:F=h.videoId;if(!F)return q.return();if(h.action==="ACTION_REMOVE_WITH_PROMPT"){var dI=b.JSC$18792_commandHandler,L4=dI.resolveCommand,Rq=_.QC("INNERTUBE_CLIENT_NAME");var Xn=Rq==="WEB_REMIX"?_.Mt("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.Mt("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var Ny=Rq==="WEB_REMIX"?[_.Mt("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",void 0,
"This track won't be available to listen offline.")]:[];Rq=Rq==="WEB_REMIX"?_.Mt("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.Mt("DELETE",void 0,"Delete");var gI=_.Mt("CANCEL",void 0,"Cancel");Xn=c6N(Xn,Ny,Rq,gI,{signal:"DELETE_DOWNLOAD",targetId:F});L4.call(dI,{openPopupAction:Xn});return q.return()}if(h.action==="ACTION_ADD")return((e=h.actionParams)==null?0:e.formatType)?q.yield(ky2(b,F,h.actionParams.formatType,(x=h.actionParams)==null?void 0:x.settingsAction,y),0):q.yield(b.offlineWebClientEligibility,
28);if(h.action==="ACTION_RETRY")return q.yield(QGN(b),24);if(h.action==="ACTION_PAUSE")return q.yield(b.pauseVideoDownload(F),0);if(h.action==="ACTION_RESUME")return q.yield(b.resumeVideoDownload(F),0);if(h.action==="ACTION_REMOVE")return q.yield(GyA(b,F),18);if(!_.r("kevlar_enable_download_to_mobile")){q.jumpTo(0);break}a=_.c(h.onAddCommand,_.Qd);K=(P=a)==null?void 0:P.isCrossDeviceDownload;if(!h.onAddCommand||!K){q.jumpTo(0);break}n="HD";return q.yield(q$F(b),16);case 16:return X=q.yieldResult,
q.yield(x8f(b),17);case 17:u=q.yieldResult;b.JSC$18792_commandHandler.resolveCommand(h.onAddCommand,{form:{preferredFormatType:n,lastOfflineQualitySettingsSavedMs:X.toString(),downloadToMobileEduShown:u}});q.jumpTo(0);break;case 18:return O=q.yieldResult,b.previousDownloadStateForVideo[F]=(N=O)!=null?N:"DOWNLOAD_STATE_UNKNOWN",q.yield(ERY(b,F,"DOWNLOAD_STATE_USER_DELETED"),19);case 19:if(b.previousDownloadStateForVideo[F]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&b.previousDownloadStateForVideo[F]!==
"DOWNLOAD_STATE_PENDING_DOWNLOAD"){q.jumpTo(20);break}return q.yield(b.pauseVideoDownload(F),20);case 20:dI=_.Mt("DELETED_VIDEO",void 0,"Video deleted from downloads.");L4=_.Mt("UNDO_ACTION",void 0,"Undo");Xn=_.Mt("CLOSE",void 0,"Close");t={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.aU(dI),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.aU(L4),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:F}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:dI+" "+L4}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:F}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:Xn}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};b.JSC$18792_commandHandler.resolveCommand(t);
q.jumpTo(0);break;case 24:R=q.yieldResult;R==="UNKNOWN_FORMAT_TYPE"&&(R="SD");I="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((U=h.actionParams)==null?0:U.formatType)R=h.actionParams.formatType,I=(p=h.actionParams)==null?void 0:p.settingsAction;return q.yield(V6A(b,F,R,I,y),25);case 25:return q.return();case 28:return E=q.yieldResult,q.yield(QGN(b),29);case 29:return Y=q.yieldResult,q.yield(q$F(b),30);case 30:w=q.yieldResult,h.onAddCommand&&b.JSC$18792_commandHandler.resolveCommand(h.onAddCommand,
{form:{preferredFormatType:Y,offlineWebClientEligibility:E,lastOfflineQualitySettingsSavedMs:w.toString()}}),q.jumpTo(0)}})},m8A=function(b,h){var y,S,F,a,P,K,n;
return _.Z(function(X){if(X.nextAddress==1)return X.yield(b.JSC$18792_persistentStorePromiseAccessor(),2);y=X.yieldResult;if(!y)return _.vX(new _.Gn("PES is undefined")),X.return();if((S=h)==null||!S.settingItemId)return X.return();F=h;a=F.settingItemId;P=F.boolValue;K=_.oU(a,"settingEntity");n={key:K,settingOptionValue:{boolValue:P}};return X.yield(vud(y,n),0)})},vRf=function(b,h){var y,S,F,a,P,K,n;
return _.Z(function(X){switch(X.nextAddress){case 1:return X.yield(b.JSC$18792_prefStorage,2);case 2:return y=X.yieldResult,S=_.HT(),X.yield(b.JSC$18792_persistentStorePromiseAccessor(),3);case 3:return F=X.yieldResult,y?F?X.yield(y.get("sdois"),4):(_.vX(new _.Gn("PES is undefined")),X.return()):(_.vX(new _.Gn("prefStorage is undefined")),X.return());case 4:a=X.yieldResult;K=(P=h)==null?void 0:P.boolValue;K===void 0||_.r("kevlar_set_sd_enabled_flag_killswitch")||_.uE(0,197,!0);a===void 0&&K===void 0&&
(K=!1);if(K===void 0){X.jumpTo(0);break}return X.yield(y.set("sdois",K),6);case 6:return _.r("kevlar_set_sd_enabled_flag_killswitch")||(_.uE(0,196,K),S.save()),n={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:K},X.yield(m8A(b,n),0)}})},bpd=function(b,h,y){var S,F,a,P,K;
return _.Z(function(n){switch(n.nextAddress){case 1:return n.yield(f6x(b),2);case 2:return S=n.yieldResult,n.yield(vRf(b,y),3);case 3:return n.yield(f6x(b),4);case 4:return F=n.yieldResult,a=F!==S,n.yield(waY(b),5);case 5:P=n.yieldResult&&!_.r("kevlar_modern_downloads_page");if((K=!F&&!P)||a)return n.yield(h.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);n.jumpTo(0)}})},JUd=function(){var b=_.H9().resolve(_.zi),
h;
_.Z(function(y){switch(y.nextAddress){case 1:return y.yield(b.JSC$18792_playerApiPromise,2);case 2:h=y.yieldResult;if(!_.r("kevlar_force_refresh_smart_downloads")){y.jumpTo(3);break}return y.yield(h.refreshAllStaleEntities(0),4);case 4:return y.return();case 3:return y.yield(h.refreshAllStaleEntities(),5);case 5:return y.yield(bpd(b,h),6);case 6:if(_.r("enable_download_pep_for_premium_countries_web"))return y.yield(iHX(b,h),0);y.jumpTo(0)}})},kIA=function(b,h){var y,S;
_.Z(function(F){switch(F.nextAddress){case 1:return F.yield(b.JSC$18792_playerApiPromise,2);case 2:y=F.yieldResult;switch((S=h)==null?void 0:S.settingItemId){case "SMART_DOWNLOADS_ENABLED":return F.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return F.jumpTo(4)}F.jumpTo(0);break;case 3:return F.yield(bpd(b,y,h),6);case 6:F.jumpTo(0);break;case 4:return F.yield(m8A(b,h),7);case 7:F.jumpTo(0)}})},hZA=function(b,h){var y,S,F;
return _.Z(function(a){if(a.nextAddress==1)return a.yield(b.JSC$18792_persistentStorePromiseAccessor(),2);if(a.nextAddress!=3){y=a.yieldResult;if(!y)return _.vX(new _.Gn("PES is undefined")),a.return(!1);if(!h)return a.return(!1);S=_.oU(h,"mainVideoEntity");return a.yield(bHX(y,S,"mainVideoEntity"),3)}F=a.yieldResult;return a.return(F!==void 0)})},EyF=function(b){var h=_.H9().resolve(_.zi),y,S,F,a,P,K,n,X,u,O,N;
_.Z(function(t){switch(t.nextAddress){case 1:return t.yield(h.JSC$18792_playerApiPromise,2);case 2:y=t.yieldResult;F=(S=b)==null?void 0:S.actions;if(!F)return t.return();a=_.L(F);P=a.next();case 3:if(P.done){t.jumpTo(0);break}K=P.value;X=n=void 0;if(!(((n=K)==null?0:n.entityKey)&&((X=K)==null?0:X.actionType))){t.jumpTo(4);break}u=_.Pi(K.entityKey);O=u.entityId;N=u.entityType;return t.yield(y.queueOfflineAction(O,N,K.actionType),4);case 4:P=a.next(),t.jumpTo(3)}})},yDA=function(b,h){var y,S,F,a,P;
return _.Z(function(K){if(K.nextAddress==1)return K.yield(b.JSC$18792_prefStorage,2);if(K.nextAddress!=3)return(y=K.yieldResult)?K.yield(y.get("psi"),3):K.return();S=K.yieldResult;P={isPaused:h,lastSyncTimestamp:(a=(F=S)==null?void 0:F.lastSyncTimestamp)!=null?a:"0"};return K.yield(y.set("psi",P),0)})},wmA=function(b){var h=_.H9().resolve(_.zi),y,S,F,a,P,K,n,X;
return _.Z(function(u){switch(u.nextAddress){case 1:return u.yield(h.JSC$18792_playerApiPromise,2);case 2:y=u.yieldResult;F=((S=b)==null?void 0:S.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((K=b)==null?void 0:K.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":a="!*$_ALL_ENTITIES_!*$";P="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return u.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return u.jumpTo(4)}u.jumpTo(5);break;case 3:return u.yield(yDA(h,F),6);case 6:u.jumpTo(5);break;case 4:return u.yield(hZA(h,(n=b)==null?void 0:n.videoId),7);case 7:u.yieldResult&&(a=(X=b)==null?void 0:X.videoId,P="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");u.jumpTo(5);break;case 5:if(a&&P)return u.yield(y.queueOfflineAction(a,"videoPlaybackPositionEntity",P),0);u.jumpTo(0)}})},SYf=function(b,h,y){b.hasRegisteredHoverCallbacks=!0;
b.hoverEnterCallback=h!=null?h:void 0;b.hoverLeaveCallback=y!=null?y:void 0},Fbq=function(b,h){var y;
h!==1||((y=b.currentPersistentToast)==null?0:y.isOpened())?b.openToast():b.currentPersistentToast=void 0},a$A=function(b,h){var y;
return(y=b.transitionTasksMap.get(h))!=null?y:[]},dEF=function(b,h){var y=[];
b.elementTasksMap.forEach(function(S){(S=S.get(h))&&y.push(S)});
return y},jOX=function(b,h,y,S,F){F=F===void 0?{}:F;
var a=h.defaultViewTransitionOptions;return Object.assign({},a,F,{beforeTransition:function(){S.forEach(function(X){X.beforeTransition()});
var P;(P=a.beforeTransition)==null||P.call(a);var K,n;(n=(K=F).beforeTransition)==null||n.call(K);y.forEach(function(X){X.beforeTransition()})},
afterTransition:function(){S.forEach(function(X){X.afterTransition()});
var P;(P=a.afterTransition)==null||P.call(a);var K,n;(n=(K=F).afterTransition)==null||n.call(K);y.forEach(function(X){X.afterTransition()})},
ignoredErrors:b.config.ignoredErrors})},$EA=function(b,h,y){b.transitionTasksMap.has(h)?b.transitionTasksMap.get(h).push(y):(b=new _.Gn("Transition task registered for unknown transition type",h),_.QT(b))},Lbf=function(b,h,y){if(b.transitionTasksMap.has(h)){var S=b.transitionTasksMap.get(h).filter(function(F){return F!==y});
b.transitionTasksMap.set(h,S)}},PY2=function(b,h){var y=a$A(b,h);
y=_.L(y);for(var S=y.next();!S.done;S=y.next())S=S.value,S.runOnce&&Lbf(b,h,S);b.elementTasksMap.forEach(function(F,a){F.forEach(function(P,K){P.runOnce&&h===K&&(F.delete(K),F.size===0&&b.elementTasksMap.delete(a))})})},Kbf=function(b,h,y){var S,F,a,P,K,n,X,u,O;
_.Z(function(N){if(N.nextAddress==1){if(b.config.disableAllTransitions)return N.return(h());if((S=y)==null||!S.transitionType)return N.return(_.wdE(h,Object.assign({},(F=y)==null?void 0:F.viewTransitionOptions,{ignoredErrors:b.config.ignoredErrors})));a=y;P=a.transitionType;K=a.viewTransitionOptions;n=b.config.transitionConfigs.get(P);if(!n)return N.return(h());X=a$A(b,P);u=dEF(b,P);O=_.wdE(h,jOX(b,n,X,u,K));return N.yield(O,2)}PY2(b,P);_.g3(N)})},ZpA=function(){var b,h,y,S;
return _.Z(function(F){if(F.nextAddress==1)return b=navigator,(h=b.storage)!=null&&h.persisted?F.yield((y=b.storage)==null?void 0:y.persisted(),2):F.return("PERSISTED_STATE_NOT_SUPPORTED");S=F.yieldResult;return F.return(S?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},oeA=function(){var b,h,y,S;
return _.Z(function(F){if(F.nextAddress==1)return b=navigator,(h=b.storage)!=null&&h.persist?F.yield((y=b.storage)==null?void 0:y.persist(),2):F.return("PERSISTED_STATE_NOT_SUPPORTED");S=F.yieldResult;return F.return(S?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},Mya=function(){var b,h;
return _.Z(function(y){switch(y.nextAddress){case 1:return b="PERSISTED_STATE_NOT_SUPPORTED",_.WE(y,2),y.yield(ZpA(),4);case 4:b=y.yieldResult;if(b!=="PERSISTED_STATE_NOT_GRANTED"){y.jumpTo(5);break}return y.yield(oeA(),6);case 6:b=y.yieldResult;case 5:_.Lz(y,3);break;case 2:h=_.C$(y),h instanceof Error&&_.QT(h);case 3:return _.qi("persistentStorageStateChecked",{persistedState:b}),y.return(b)}})},neY=function(b,h){var y=[],S=!1;
h=_.L(h);for(var F=h.next();!F.done;F=h.next()){F=b.moduleRegistry[F.value];var a=void 0,P=void 0;((a=F)==null?0:a.isFetching)&&((P=F)==null?0:P.resolver)?(y.push(F.resolver.promise),S=!0):(F=new _.MC,F.resolve(void 0),y.push(F.promise))}return S?Promise.all(y):void 0},XHf=function(b,h,y){if(b.isAnyTransitionEnabled){var S={beforeTransition:function(){y(!0);
h.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){h.style.viewTransitionName&&(h.style.viewTransitionName="",y(!1))}};
$EA(b.viewTransitionCoordinator,"slide",S);$EA(b.viewTransitionCoordinator,"lockup-to-watch",S);$EA(b.viewTransitionCoordinator,"watch-next-appears",S);$EA(b.viewTransitionCoordinator,"learning-journey",S)}},HpX=function(b,h){b.isBrowseTransitionEnabled?Kbf(b.viewTransitionCoordinator,h,{transitionType:"slide"}):(h(),Promise.resolve())},u3a=function(b,h){b.isLockupToWatchTransitionEnabled?Kbf(b.viewTransitionCoordinator,h,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){b.registeredLockupThumbnail=void 0;b.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(h(),Promise.resolve())},OpA=function(b,h){b.isLockupToWatchTransitionEnabled?Kbf(b.viewTransitionCoordinator,h,{transitionType:"watch-next-appears"}):(h(),Promise.resolve())},N$f=function(b,h){b.isLearningJourneyTransitionEnabled?Kbf(b.viewTransitionCoordinator,h,{transitionType:"learning-journey"}):(h(),Promise.resolve())},tyF=function(b,h,y){if(b.isInitialized()){var S=
N6(y),F=S==="watch";
S=S==="shorts";var a=N6(h)==="watch";if(F)a||(b.backgroundPageData=h),b.watchPipMode&&a||b.deactivate(y.endpoint);else if(S){if(N6(h)!=="shorts"){var P;(P=b.getPlayerElement())==null||P.pause()}}else a&&!b.watchPipMode&&(RkN(h,y,!0)?(b.watchWhileMode&&_.zmA(b,!1),_.OKA(b,h)):b.isMiniplayerActive()&&b.watchWhileMode&&b.deactivate());a&&_.I7F(b);b.shortsPipMode&&!S&&(window.focus(),b.deactivate());if(b.pictureInPictureEnabled())if(S&&b.shortsPipEnabled||F&&b.JSC$19214_watchPipEnabled&&(!b.watchPipManualOnlyEnabled||
_.LSr()&&_.rYI("Chromium")>=142))_.KSr(b.handleMediaSessionPipActivation);else if(!b.isMiniplayerActive()&&(b.shortsPipEnabled||b.JSC$19214_watchPipEnabled)&&_.LSr()){b=_.Pv8().mediaSession;try{b.setActionHandler("enterpictureinpicture",null)}catch(K){}}}},rDN=function(b,h){var y,S;
_.Z(function(F){if(F.nextAddress==1){if(!b||!b.navigationEndpoint)return F.return();_.h0().lockupActivation=!0;var a;h?a=_.mk(_.Mt("QUEUE",void 0,"Queue")):a=b.longBylineText;S=(y=a)&&b.title?{miniplayerTitle:b.title,miniplayerSubtitle:y,playlistData:null}:void 0;return F.yield(_.qla(_.H9().resolve(_.Vp),b.navigationEndpoint,!0,S),2)}_.h0().userActivation=!0;_.g3(F)})},hoq=function(b,h){var y,S,F,a,P,K;
_.Z(function(n){if(n.nextAddress==1){y=_.c(h,_.Vye);if(!y||!y.listId)return n.return();b.index=y.index||b.index||0;S=b.response&&b.response.playingVideoId||void 0;return n.yield(_.oOo(b.JSC$13270_playlistNetworkManager,y.listId,b.index,S),2)}F=n.yieldResult;if(!F)return n.return();a=F.playlistId;P=F.playlistPanelRenderer;!b.queueProxy&&a&&P&&a.startsWith("TLPQ")&&(b.queueProxy=new _.t0(b.JSC$13270_playlistNetworkManager,a,b.setPlaylistData.bind(b),b.clearQueue.bind(b),_.aPY(P),b.storage));if(y.openMiniplayer&&
(K=_.dpN(P))&&!b.JSC$13270_pageManager.isOnWatch()){var X=K,u=y.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";b.isMiniplayerActive()?b.openToast(X):rDN(X,u)}b.setPlaylistData(a,P,F.autoplayRenderer);_.g3(n)})},mqF=function(b,h){var y=_.Wy();
y.index===void 0&&(y.index=0);y.temporaryItems.push.apply(y.temporaryItems,_.f$(b));if((h.videoId||h.videoIds)&&y.index!==void 0&&h.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!y.queueProxy){var S=[];if(y.response){var F=_.H9().resolve(_.Vp).isMiniplayerActive();if(y.response.playlistPanelRenderer&&y.response.playlistId&&!y.response.playlistId.startsWith("TLPQ")){if(y.JSC$13270_pageManager.isOnWatch()||F)S=_.aPY(y.response.playlistPanelRenderer)}else y.response.playingVideoId&&!h.openMiniplayer?
S.push(y.response.playingVideoId):F&&y.response.playingVideoId&&h.openMiniplayer&&S.push(y.response.playingVideoId)}y.queueProxy=new _.t0(y.JSC$13270_playlistNetworkManager,"",y.setPlaylistData.bind(y),y.clearQueue.bind(y),S,y.storage);y.queueProxy.JSC$13216_setCurrentIndex(y.index)}y.queueProxy.addVideos(h.videoIds||[h.videoId],h)}S$x(y,b);y.response&&_.A0(y,_.UN(y,y.response.autoplayRenderer));y.JSC$13270_pageManager.isOnWatch()?y.isMiniplayerActive()&&y.openToast(b[0]):(b=b[0],h=h.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",
y.isMiniplayerActive()?y.openToast(b):rDN(b,h))},cDf=function(b){var h=_.S2(b);
if(h=="object"||h=="array"){if(typeof b.clone==="function")return b.clone();if(typeof Map!=="undefined"&&b instanceof Map)return new Map(b);if(typeof Set!=="undefined"&&b instanceof Set)return new Set(b);h=h=="array"?[]:{};for(var y in b)h[y]=cDf(b[y]);return h}return b},Zj=function(b,h){return _.NGj(_.z4(b,h,void 0,_.RX))},ot=function(b,h){return _.ZE(_.z4(b,h,void 0,_.RX))},MN=function(b,h){return _.Y7y(_.z4(b,h,void 0,_.RX))},nV=function(b,h){return _.z4(b,h,void 0,_.RX,_.yf)},RZx=_.nc(function(b,
h,y,S){if(_.ZN)return _.q_U(b,h,y,S);
if(b.nextWireType_!==0)return!1;_.cM(h,y,S,_.rf(b.decoder_,_.fM));return!0},_.N9,_.xY),zZf=_.nc(function(b,h,y){if(_.ZN)return _.m9f(b,h,y);
if(b.nextWireType_!==1)return!1;var S=b.decoder_;b=_.wQ(S);S=_.wQ(S);b=_.VW(b,S);_.X9(h,y,b);return!0},_.Tfq,_.bAN),DEa=_.nc(function(b,h,y){if(b.nextWireType_!==2)return!1;
b=_.sNb(b);_.X9(h,y,b===_.J8()?void 0:b);return!0},_.icI,_.SfW),I$f=_.Ax5(function(b,h,y){if(b.nextWireType_!==0&&b.nextWireType_!==2)return!1;
h=_.aR(h,h[_.je]|0,y);b.nextWireType_==2?_.Y7P(b,e0P,h):h.push(_.fF(b.decoder_));return!0},function(b,h,y){h=_.WAk(_.ZE,h,!0);
if(h!=null&&h.length){y=_.iMo(b,y);for(var S=0;S<h.length;S++)_.g$M(b.encoder_,h[S]);_.f8N(b,y)}},_.FYN),B$a=_.nc(function(b,h,y,S){if(b.nextWireType_!==0)return!1;
_.cM(h,y,S,_.fF(b.decoder_));return!0},_.wMM,_.FYN),Wbd=function(b){return b.previousElementSibling!==void 0?b.previousElementSibling:_.XB7(b.previousSibling,!1)},ADP=function(b,h){var y=[];
for(h=h||0;h<b.length;h+=2)_.a9G(b[h],b[h+1],y);return y.join("&")},UEf=function(b,h){var y=arguments.length==2?ADP(arguments[1],0):ADP(arguments,1);
return _.Fnb(b,y)},Zwq=_.WM(_.Cw),pHA=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(pHA,_.ZL);pHA.prototype.getTypeName=function(){return _.gQ(this,1).split("/").pop()};
pHA.prototype.getValue=function(){var b=_.z4(this,2);if(Array.isArray(b)||b instanceof _.ZL)throw Error("W");return _.Bv(this,2)};
var JD2=[0,2,_.FH],y_A=function(){var b=_.Pd();this.JSC$10100_streamzService=b;b.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.z$("channel_type"))};
y_A.prototype.increment=function(b){this.JSC$10100_streamzService.JSC$9970_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",b)};
var S9q=function(){var b=_.Pd();this.JSC$10103_streamzService=b;b.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.z$("channel_type"))};
S9q.prototype.increment=function(b){this.JSC$10103_streamzService.JSC$9970_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",b)};
var aaa=function(){var b=_.Pd();this.JSC$10106_streamzService=b;b.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.z$("channel_type"))};
aaa.prototype.increment=function(b){this.JSC$10106_streamzService.JSC$9970_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",b)};
var Fgq=function(){var b=_.Pd();this.JSC$10109_streamzService=b;b.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
Fgq.prototype.increment=function(){this.JSC$10109_streamzService.JSC$9970_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var d$Y=function(){var b=_.Pd();this.JSC$10112_streamzService=b;b.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.z$("channel_type"),_.z$("error_type"))};
d$Y.prototype.increment=function(b,h){this.JSC$10112_streamzService.JSC$9970_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",b,h)};
var j8F=function(){var b=_.Pd();this.JSC$10115_streamzService=b;b.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
j8F.prototype.increment=function(){this.JSC$10115_streamzService.JSC$9970_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var $$F=function(){var b=_.Pd();this.JSC$10118_streamzService=b;b.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
$$F.prototype.increment=function(){this.JSC$10118_streamzService.JSC$9970_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var MAd=function(){var b=_.Pd();this.JSC$10124_streamzService=b;b.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
MAd.prototype.increment=function(){this.JSC$10124_streamzService.JSC$9970_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var eZA=function(b){return b.getCount&&typeof b.getCount=="function"?b.getCount():_.f4(b)||typeof b==="string"?b.length:_.lR.getCount(b)},CYX=function(b,h){if(typeof b.every=="function")return b.every(h,void 0);
if(_.f4(b)||typeof b==="string")return Array.prototype.every.call(b,h,void 0);for(var y=_.jhw(b),S=_.t7(b),F=S.length,a=0;a<F;a++)if(!h.call(void 0,S[a],y&&y[a],b))return!1;return!0},gex=function(b,h,y,S){var F=new _.lX(null);
b&&_.rv(F,b);h&&_.cR(F,h);y&&_.RE(F,y);S&&_.zS(F,S);return F},sOd=function(){var b=_.h9&&_.n4(_.tMa,10)>=0,h;
if(h=_.V5a)h=_.n4(_.Nk5,10)>=0;var y=_.Nq&&_.n4(_.tMa,85)>=0;return _.XW||b||h||y},YYA=function(b){var h=_.YSa(b);
return h&&sOd()?-b.scrollLeft:h&&_.a4(b,"overflowX")!="visible"?b.scrollWidth-b.clientWidth-b.scrollLeft:b.scrollLeft},T$q=function(b,h){h=Math.max(h,0);
_.YSa(b)?sOd()?b.scrollLeft=-h:b.scrollLeft=b.scrollWidth-h-b.clientWidth:b.scrollLeft=h},GKA=0,f1Y=!1;
l1F.prototype.set=function(b){this.relativeTimeStart_=b};
l1F.prototype.reset=function(){this.set(_.LF())};
l1F.prototype.get=function(){return this.relativeTimeStart_};
var GQq=null,kQf=function(){GQq||(GQq=new l1F)},Vy2=function(){GQq||(GQq=new l1F)};
_.Pv(Vy2,kQf);_.d=qQf.prototype;_.d.JSC$11539_buffer_="";_.d.set=function(b){this.JSC$11539_buffer_=""+b};
_.d.append=function(b,h,y){this.JSC$11539_buffer_+=String(b);if(h!=null)for(var S=1;S<arguments.length;S++)this.JSC$11539_buffer_+=arguments[S];return this};
_.d.clear=function(){this.JSC$11539_buffer_=""};
_.d.getLength=function(){return this.JSC$11539_buffer_.length};
_.d.toString=function(){return this.JSC$11539_buffer_};
var EeX=!1,FfP=function(b){_.bf.call(this,b.message||b.description||b.name);this.isMissing=b instanceof b9F;this.isTimeout=b instanceof _.JoE&&b.errorCode=="net.timeout";this.isCanceled=b instanceof _.GR};
_.z(FfP,_.bf);FfP.prototype.name="BiscottiError";var b9F=function(){_.bf.call(this,"Biscotti ID is missing from server")};
_.z(b9F,_.bf);b9F.prototype.name="BiscottiMissingError";var hzf=null,iF2=function(){try{var b=_.hj("yt.ads.biscotti.getId_");return b?b():J6A()}catch(h){return _.UQ(h)}},ipA=function(b,h){return _.$8({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:b,command:h}})},f$A=function(b){return _.$8({type:"SET_GUIDE_IS_EXPANDED",
payload:b})},wHP=function(b){return _.$8({type:"SET_ONLINE_STATUS",
payload:b})},l$2=function(b,h){return _.$8({type:"SET_TRANSCRIPTION_STATE",
payload:{high:b,low:h}})},qYY=function(b){return _.$8({type:"SET_OVERLAY_STATE",
payload:b})},xEf=0,QOa=function(b,h,y){var S=this;
this.priority=h;this.delay=y;this.jobId=0;this.completionCallback=_.C8;this.wrappedJob=function(){b();S.completionCallback()};
this.id=++xEf};
QOa.prototype.enqueue=function(b){this.completionCallback=b;this.jobId=_.xP.addJob(this.wrappedJob,this.priority,this.delay)};
var Xh=function(){_.D6.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.z(Xh,_.D6);Xh.prototype.addJob=function(b,h,y){b=new QOa(b,h,y);this.taskIdToTask.set(b.id,b);this.isActive?mEf(this,b):this.suspendedTasks.add(b);return b.id};
var mEf=function(b,h){b.scheduledTasks.add(h);h.enqueue(function(){b.scheduledTasks.delete(h)})};
Xh.prototype.cancelJob=function(b){(b=this.taskIdToTask.get(b))&&(this.scheduledTasks.delete(b)?_.xP.cancelJob(b.jobId):this.suspendedTasks.delete(b))};
Xh.prototype.pause=function(){var b=this;this.isActive=!1;this.scheduledTasks.forEach(function(h){_.xP.cancelJob(h.jobId);b.suspendedTasks.add(h)});
this.scheduledTasks.clear()};
Xh.prototype.start=function(){var b=this;this.isActive=!0;this.suspendedTasks.forEach(function(h){mEf(b,h)});
this.suspendedTasks.clear()};
Xh.prototype.reset=function(){this.scheduledTasks.forEach(function(b){_.xP.cancelJob(b.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var veA=function(b,h){this.JSC$13396_networkService_=b;this.pageRequestPromise=h};
veA.prototype.fetchData=function(b){bTf(this,this.JSC$13396_networkService_.fetchData(b))};
veA.prototype.postData=function(b,h){bTf(this,this.JSC$13396_networkService_.postData(b,h))};
veA.prototype.requestDataForServiceEndpoint=function(b,h){bTf(this,this.JSC$13396_networkService_.requestDataForServiceEndpoint(b,h))};
var bTf=function(b,h){h.then(b.pageRequestPromise.onSuccess,b.pageRequestPromise.onFailure,b.pageRequestPromise)};
veA.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var hKA=function(b){this.buildNetworkRequest_=b;this.pendingRequests_=new Set};
hKA.prototype.reset=function(){this.pendingRequests_.forEach(function(b){b.cancel()});
this.pendingRequests_.clear()};
hKA.prototype.fetchData=function(b){var h=yVA(this);h.fetchData(b);return h.pageRequestPromise};
hKA.prototype.postData=function(b,h){var y=yVA(this);y.postData(b,h);return y.pageRequestPromise};
hKA.prototype.requestDataForServiceEndpoint=function(b,h){var y=yVA(this);y.requestDataForServiceEndpoint(b,h);return y.pageRequestPromise};
var yVA=function(b){var h=b.buildNetworkRequest_();b.pendingRequests_.add(h);var y=function(){b.pendingRequests_.delete(h)};
h.pageRequestPromise.then(y,y);return h},SRA=function(b){var h=new Xh;
this.JSC$13403_networkService_=b;this.JSC$13403_taskManager_=h;this.JSC$13403_networkManager_=new hKA(this.networkRequestFactory_.bind(this))};
_.d=SRA.prototype;_.d.networkRequestFactory_=function(){return new veA(this.JSC$13403_networkService_,new _.qL(this.JSC$13403_taskManager_))};
_.d.reset=function(){this.JSC$13403_taskManager_.reset();this.JSC$13403_networkManager_.reset()};
_.d.start=function(){this.JSC$13403_taskManager_.start()};
_.d.pause=function(){this.JSC$13403_taskManager_.pause()};
_.d.getTaskManager=function(){return this.JSC$13403_taskManager_};
_.d.getNetworkManager=function(){return this.JSC$13403_networkManager_};
var uvd=null,tsd=[],oEX=0,H9P=0,MsP=null,cn=function(b){this.token=b};
cn.getInstance=function(){var b;return _.Z(function(h){if(h.nextAddress==1)return h.yield(_.uj(),2);b=h.yieldResult;if(!b)return h.return();cn.instance||(cn.instance=new cn(b));return h.return(cn.instance)})};
var WfY=function(b){var h;return _.Z(function(y){if(y.nextAddress==1)return y.yield(DGY(b.token),2);h=y.yieldResult;return y.return(h.clear("resource-manifest-assets"))})},ro=function(b){this.token=b};
ro.getInstance=function(){var b;return _.Z(function(h){if(h.nextAddress==1)return h.yield(_.uj(),2);b=h.yieldResult;if(!b)return h.return();ro.instance||(ro.instance=new ro(b));return h.return(ro.instance)})};
var Ivx=function(b){var h;return _.Z(function(y){if(y.nextAddress==1)return y.yield(DGY(b.token),2);h=y.yieldResult;return y.yield(h.clear("auth"),0)})},Fsx=!1,VsP=null,EEN=void 0,vEx=!1,aXP=function(b){_.bf.call(this,b)};
_.z(aXP,_.VnP);var m$Y=function(){var b=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return b?parseInt(b[1],10):0},dBx=function(b){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+b)!=-1||document.currentScript.src.indexOf("&"+b)!=-1)},jBX=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},SVE=function(b){b.length?$BX(b.shift(),function(){SVE(b)}):bFf()},aNN=function(b){return"chrome-extension://"+b+"/cast_sender.js"},$BX=function(b,
h,y){var S=document.createElement("script");
S.onerror=h;y&&(S.onload=y);_.ZF(S,_.wB(b));(document.head||document.documentElement).appendChild(S)},Lsx=function(){var b=m$Y(),h=[];
if(b>1){var y=b-1;h.push("//www.gstatic.com/eureka/clank/"+b+"/cast_sender.js");h.push("//www.gstatic.com/eureka/clank/"+y+"/cast_sender.js")}return h},bFf=function(){var b=jBX();
b&&b(!1,"No cast extension found")},y1x=function(){if(PtY){var b=2,h=jBX(),y=function(){b--;
b==0&&h&&h(!0)};
window.__onGCastApiAvailable=y;$BX("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",bFf,y)}},v72=function(){y1x();
var b=Lsx();b.push("//www.gstatic.com/eureka/clank/cast_sender.js");SVE(b)},hyX=function(){y1x();
var b=Lsx();b.push.apply(b,_.f$(FPN.map(aNN)));b.push("//www.gstatic.com/eureka/clank/cast_sender.js");SVE(b)},PtY=dBx("loadCastFramework")||dBx("loadCastApplicationFramework"),FPN=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var Ksq=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(Ksq,_.ZL);var ZT2=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(ZT2,_.ZL);var oqE=function(){var b=new ZT2;return _.EV(b,1,3)};var HK=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(HK,_.ZL);var Vaa=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(Vaa,_.ZL);var MQf=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(MQf,_.ZL);MQf.prototype.getToken=function(){return _.gQ(this,1)};
MQf.prototype.setToken=function(b){return _.lq(this,1,b)};
var God=function(b){return _.mY(b,3,_.zq,_.tW())},koA=function(b){return _.mY(b,6,_.zq,_.tW())};var uP=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(uP,_.ZL);uP.prototype.getToken=function(){return _.cL(this,MQf,2)};
uP.prototype.setToken=function(b){return _.U_(this,2,b)};
uP.prototype.getName=function(){return _.gQ(this,6)};
var nqd=_.WM(uP);var XIN=function(b,h,y){this.requestMessage=b;this.methodDescriptor=h;this.metadata=y};
XIN.prototype.getMetadata=function(){return this.metadata};var HTN=function(b,h){h=h===void 0?{}:h;this.responseMessage=b;this.metadata=h;this.status=null};
HTN.prototype.getMetadata=function(){return this.metadata};
HTN.prototype.getStatus=function(){return this.status};var Os=function(b,h,y,S,F){this.name=b;this.methodType="unary";this.requestType=h;this.responseType=y;this.requestSerializeFn=S;this.responseDeserializeFn=F},uKX=function(b,h,y){y=y===void 0?{}:y;
return new XIN(h,b,y)};
Os.prototype.getName=function(){return this.name};var NN=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(NN,_.ZL);NN.prototype.getHeader=function(){return _.cL(this,HK,1)};
NN.prototype.setHeader=function(b){return _.U_(this,1,b)};
NN.prototype.hasHeader=function(){return _.DN(this,HK,1)};var OTq=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(OTq,_.ZL);var N5P=new Os("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",NN,OTq,function(b){return b.serialize()},_.WM(OTq));var tw=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(tw,_.ZL);tw.prototype.getHeader=function(){return _.cL(this,HK,1)};
tw.prototype.setHeader=function(b){return _.U_(this,1,b)};
tw.prototype.hasHeader=function(){return _.DN(this,HK,1)};var tQX=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(tQX,_.ZL);var rVf=new Os("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",tw,tQX,function(b){return b.serialize()},_.WM(tQX));var rr=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(rr,_.ZL);rr.prototype.getHeader=function(){return _.cL(this,HK,1)};
rr.prototype.setHeader=function(b){return _.U_(this,1,b)};
rr.prototype.hasHeader=function(){return _.DN(this,HK,1)};var cVA=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(cVA,_.ZL);cVA.prototype.getValues=function(b){return _.RwP(this,1,b)};var RKf=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(RKf,_.ZL);RKf.prototype.getLink=function(){return _.cL(this,uP,1)};var zKq=new Os("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",rr,RKf,function(b){return b.serialize()},_.WM(RKf));var cK=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(cK,_.ZL);cK.prototype.getHeader=function(){return _.cL(this,HK,1)};
cK.prototype.setHeader=function(b){return _.U_(this,1,b)};
cK.prototype.hasHeader=function(){return _.DN(this,HK,1)};var DBA=new Os("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",cK,uP,function(b){return b.serialize()},nqd);var IXE=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(IXE,_.ZL);var B5Y=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(B5Y,_.ZL);B5Y.prototype.getUrl=function(){return _.gQ(this,2)};
B5Y.prototype.setUrl=function(b){return _.lq(this,2,b)};var WsY=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(WsY,_.ZL);var AVq=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(AVq,_.ZL);var UBq=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(UBq,_.ZL);var yFN=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(yFN,_.ZL);var bwP=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(bwP,_.ZL);var pIF=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(pIF,_.ZL);var Ko2=_.WM(pIF);var JVf=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(JVf,_.ZL);var eKd=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(eKd,_.ZL);_.d=eKd.prototype;_.d.getHeader=function(){return _.cL(this,HK,1)};
_.d.setHeader=function(b){return _.U_(this,1,b)};
_.d.hasHeader=function(){return _.DN(this,HK,1)};
_.d.getCompletionUrl=function(){return _.gQ(this,6)};
_.d.getDeviceId=function(){return _.gQ(this,11)};var Ctf=new Os("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",eKd,pIF,function(b){return b.serialize()},Ko2);var gqN=new Set(["SAPISIDHASH","APISIDHASH"]);var sBa=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(sBa,_.ZL);sBa.prototype.getMessage=function(){return _.gQ(this,2)};
var YRf=_.WM(sBa);var G9f=function(b,h){this.onDataCallbacks=[];this.onMetadataCallbacks=[];this.onStatusCallbacks=[];this.onEndCallbacks=[];this.onErrorCallbacks=[];this.xhrNodeReadableStream=b.nodeReadableStream;this.grpcResponseDeserializeFn=h;this.xhr=b.xhr;this.xhrNodeReadableStream&&T5f(this)},lXA=function(b,h){var y=new k9X;
_.W3(b.xhr,"complete",function(){if(b.xhr.isSuccess()){var S=b.xhr.getResponseText();var F;if(F=h)F=b.xhr,F.JSC$9979_xhr_&&F.isComplete()?(F=F.JSC$9979_xhr_.getResponseHeader("Content-Type"),F=F===null?void 0:F):F=void 0,F=F==="text/plain";if(F){if(!atob)throw Error("lk");S=atob(S)}try{var a=b.grpcResponseDeserializeFn(S)}catch(K){VQN(b,zTf(new _.xy(13,"Error when deserializing response data; error: "+K+(", response: "+S)),y));return}S=_.HnI(b.xhr.getStatus());Eqx(b,iTa(b));S===0?fXF(b,a):VQN(b,zTf(new _.xy(S,
"Xhr succeeded but the status code is not 200"),y))}else{S=b.xhr.getResponseText();a=iTa(b);if(S){var P=wIE(b,S);S=P.code;F=P.details;P=P.metadata}else S=2,F="Rpc failed due to xhr error. uri: "+String(b.xhr.JSC$9979_lastUri_)+", error code: "+(b.xhr.JSC$9979_lastErrorCode_+", error: ")+b.xhr.getLastError(),P=a;Eqx(b,a);VQN(b,zTf(new _.xy(S,F,P),y))}})},T5f=function(b){b.xhrNodeReadableStream.on("data",function(h){if("1"in h){var y=h["1"];
try{var S=b.grpcResponseDeserializeFn(y)}catch(F){VQN(b,new _.xy(13,"Error when deserializing response data; error: "+F+(", response: "+y)))}S&&fXF(b,S)}if("2"in h)for(h=wIE(b,h["2"]),y=0;y<b.onStatusCallbacks.length;y++)b.onStatusCallbacks[y](h)});
b.xhrNodeReadableStream.on("end",function(){Eqx(b,iTa(b));for(var h=0;h<b.onEndCallbacks.length;h++)b.onEndCallbacks[h]()});
b.xhrNodeReadableStream.on("error",function(){if(b.onErrorCallbacks.length!==0){var h=b.xhr.JSC$9979_lastErrorCode_;h!==0||b.xhr.isSuccess()||(h=6);var y=-1;switch(h){case 0:var S=2;break;case 7:S=10;break;case 8:S=4;break;case 6:y=b.xhr.getStatus();S=_.HnI(y);break;default:S=14}Eqx(b,iTa(b));h=_.gZG(h)+", error: "+b.xhr.getLastError();y!==-1&&(h+=", http status code: "+y);VQN(b,new _.xy(S,h))}})},iTa=function(b){var h={},y=sEN(b.xhr);
Object.keys(y).forEach(function(S){h[S]=y[S]});
return h},wIE=function(b,h){var y=2,S={};
try{var F=YRf(h);y=_.rB(F,1);var a=F.getMessage();_.NK(F,pHA,3,_.tW()).length&&(S["grpc-web-status-details-bin"]=h)}catch(P){b.xhr&&b.xhr.getStatus()===404?(y=5,a="Not Found: "+String(b.xhr.JSC$9979_lastUri_)):(y=14,a="Unable to parse RpcStatus: "+P)}return{code:y,details:a,metadata:S}};
G9f.prototype.on=function(b,h){b==="data"?this.onDataCallbacks.push(h):b==="metadata"?this.onMetadataCallbacks.push(h):b==="status"?this.onStatusCallbacks.push(h):b==="end"?this.onEndCallbacks.push(h):b==="error"&&this.onErrorCallbacks.push(h);return this};
var qRA=function(b,h){h=b.indexOf(h);h>-1&&b.splice(h,1)};
G9f.prototype.removeListener=function(b,h){b==="data"?qRA(this.onDataCallbacks,h):b==="metadata"?qRA(this.onMetadataCallbacks,h):b==="status"?qRA(this.onStatusCallbacks,h):b==="end"?qRA(this.onEndCallbacks,h):b==="error"&&qRA(this.onErrorCallbacks,h);return this};
G9f.prototype.cancel=function(){this.xhr.abort()};
var fXF=function(b,h){for(var y=0;y<b.onDataCallbacks.length;y++)b.onDataCallbacks[y](h)},Eqx=function(b,h){for(var y=0;y<b.onMetadataCallbacks.length;y++)b.onMetadataCallbacks[y](h)},VQN=function(b,h){for(var y=0;y<b.onErrorCallbacks.length;y++)b.onErrorCallbacks[y](h)},k9X=function(){var b=Error.call(this);
this.message=b.message;"stack"in b&&(this.stack=b.stack);this.name="AsyncStack";Object.setPrototypeOf(this,this.constructor.prototype)};
_.z(k9X,Error);var xBx=function(b){this.JSC$19869_worker_=b.worker||null;this.JSC$19869_streamBinaryChunks_=b.streamBinaryChunks||!1;this.JSC$19869_credentialsMode_=void 0};
_.Pv(xBx,_.On4);xBx.prototype.createInstance=function(){var b=new Rt(this.JSC$19869_worker_,this.JSC$19869_streamBinaryChunks_);this.JSC$19869_credentialsMode_&&b.setCredentialsMode(this.JSC$19869_credentialsMode_);return b};
xBx.prototype.setCredentialsMode=function(b){this.JSC$19869_credentialsMode_=b};
var Rt=function(b,h){_.TI.call(this);this.JSC$19873_worker_=b;this.JSC$19873_streamBinaryChunks_=h;this.JSC$19873_credentialsMode_=void 0;this.status=this.readyState=0;this.responseURL=this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=null;this.requestHeaders_=new Headers;this.JSC$19873_responseHeaders_=null;this.JSC$19873_method_="GET";this.JSC$19873_url_="";this.inProgress_=!1;this.JSC$19873_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.Pv(Rt,_.TI);Rt.prototype.open=function(b,h){if(this.readyState!=0)throw this.abort(),Error("mk");this.JSC$19873_method_=b;this.JSC$19873_url_=h;this.readyState=1;QBA(this)};
Rt.prototype.send=function(b){if(this.readyState!=1)throw this.abort(),Error("nk");if(this.abortController_.signal.aborted)throw this.abort(),Error("ok");this.inProgress_=!0;var h={headers:this.requestHeaders_,method:this.JSC$19873_method_,credentials:this.JSC$19873_credentialsMode_,cache:void 0,signal:this.abortController_.signal};b&&(h.body=b);(this.JSC$19873_worker_||_.S5).fetch(new Request(this.JSC$19873_url_,h)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
Rt.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort("Request was aborted.");this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,mBq(this));this.readyState=0};
Rt.prototype.handleResponse_=function(b){if(this.inProgress_&&(this.fetchResponse_=b,this.JSC$19873_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19873_responseHeaders_=b.headers,this.readyState=2,QBA(this)),this.inProgress_&&(this.readyState=3,QBA(this),this.inProgress_)))if(this.responseType==="arraybuffer")b.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.S5.ReadableStream!==
"undefined"&&"body"in b){this.currentReader_=b.body.getReader();if(this.JSC$19873_streamBinaryChunks_){if(this.responseType)throw Error("pk");this.response=[]}else this.response=this.responseText="",this.JSC$19873_textDecoder_=new TextDecoder;vqA(this)}else b.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var vqA=function(b){b.currentReader_.read().then(b.handleDataFromStream_.bind(b)).catch(b.handleSendFailure_.bind(b))};
Rt.prototype.handleDataFromStream_=function(b){if(this.inProgress_){if(this.JSC$19873_streamBinaryChunks_&&b.value)this.response.push(b.value);else if(!this.JSC$19873_streamBinaryChunks_){var h=b.value?b.value:new Uint8Array(0);if(h=this.JSC$19873_textDecoder_.decode(h,{stream:!b.done}))this.response=this.responseText+=h}b.done?mBq(this):QBA(this);this.readyState==3&&vqA(this)}};
Rt.prototype.handleResponseText_=function(b){this.inProgress_&&(this.response=this.responseText=b,mBq(this))};
Rt.prototype.handleResponseArrayBuffer_=function(b){this.inProgress_&&(this.response=b,mBq(this))};
Rt.prototype.handleSendFailure_=function(){this.inProgress_&&mBq(this)};
var mBq=function(b){b.readyState=4;b.fetchResponse_=null;b.currentReader_=null;b.JSC$19873_textDecoder_=null;QBA(b)};
Rt.prototype.setRequestHeader=function(b,h){this.requestHeaders_.append(b,h)};
Rt.prototype.getResponseHeader=function(b){return this.JSC$19873_responseHeaders_?this.JSC$19873_responseHeaders_.get(b.toLowerCase())||"":""};
Rt.prototype.getAllResponseHeaders=function(){if(!this.JSC$19873_responseHeaders_)return"";for(var b=[],h=this.JSC$19873_responseHeaders_.entries(),y=h.next();!y.done;)y=y.value,b.push(y[0]+": "+y[1]),y=h.next();return b.join("\r\n")};
Rt.prototype.setCredentialsMode=function(b){this.JSC$19873_credentialsMode_=b};
var QBA=function(b){b.onreadystatechange&&b.onreadystatechange.call(b)};
Object.defineProperty(Rt.prototype,"withCredentials",{get:function(){return this.JSC$19873_credentialsMode_==="include"},
set:function(b){this.setCredentialsMode(b?"include":"same-origin")}});var bEE=function(b){var h="";_.lR.forEach(b,function(y,S){h+=S;h+=":";h+=y;h+="\r\n"});
return h},hIa=function(b,h,y){if(_.lR.isEmpty(y))return b;
y=bEE(y);if(typeof b==="string")return _.a6(b,_.SR(h),y);_.Ka(b,h,y);return b};var yQE=function(){this.isInputValid_=!0;this.JSC$19879_streamPos_=0;this.leftoverInput_=""};
yQE.prototype.isInputValid=function(){return this.isInputValid_};
yQE.prototype.decode=function(b){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("qk`"+this.JSC$19879_streamPos_+"`stream already broken`"+b);this.leftoverInput_+=b;b=Math.floor(this.leftoverInput_.length/4);if(b==0)return null;try{var h=_.cMr(this.leftoverInput_.slice(0,b*4))}catch(y){throw h=this.leftoverInput_,b=y.message,this.isInputValid_=!1,Error("qk`"+this.JSC$19879_streamPos_+"`"+b+"`"+h);}this.JSC$19879_streamPos_+=b*4;this.leftoverInput_=this.leftoverInput_.slice(b*4);return h};var BCE=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19882_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
BCE.prototype.isInputValid=function(){return this.state_!=3};
var Spf=function(b,h,y,S){b.state_=3;b.errorMessage_="The stream is broken @"+b.JSC$19882_streamPos_+"/"+y+". Error: "+S+". With input:\n"+h;throw Error(b.errorMessage_);};
BCE.prototype.acceptsBinaryInput=function(){return!0};
BCE.prototype.parse=function(b){function h(n){n&128&&Spf(a,P,K,"invalid tag");(n&7)!=2&&Spf(a,P,K,"invalid wire type");a.tag_=n>>>3;a.tag_!=1&&a.tag_!=2&&a.tag_!=15&&Spf(a,P,K,"unexpected tag");a.state_=1;a.length_=0;a.countLengthBytes_=0}
function y(n){a.countLengthBytes_++;a.countLengthBytes_==5&&n&240&&Spf(a,P,K,"message length too long");a.length_|=(n&127)<<(a.countLengthBytes_-1)*7;n&128||(a.state_=2,a.countMessageBytes_=0,typeof Uint8Array!=="undefined"?a.messageBuffer_=new Uint8Array(a.length_):a.messageBuffer_=Array(a.length_),a.length_==0&&F())}
function S(n){a.messageBuffer_[a.countMessageBytes_++]=n;a.countMessageBytes_==a.length_&&F()}
function F(){if(a.tag_<15){var n={};n[a.tag_]=a.messageBuffer_;a.result_.push(n)}a.state_=0}
for(var a=this,P=b instanceof Array?b:new Uint8Array(b),K=0;K<P.length;){switch(a.state_){case 3:Spf(a,P,K,"stream already broken");break;case 0:h(P[K]);break;case 1:y(P[K]);break;case 2:S(P[K]);break;default:throw Error("rk`"+a.state_);}a.JSC$19882_streamPos_++;K++}b=a.result_;a.result_=[];return b.length>0?b:null};var WlA=function(){this.errorMessage_=null;this.JSC$19885_streamPos_=0;this.base64Decoder_=new yQE;this.pbParser_=new BCE};
WlA.prototype.isInputValid=function(){return this.errorMessage_===null};
var F82=function(b,h,y){b.errorMessage_="The stream is broken @"+b.JSC$19885_streamPos_+". Error: "+y+". With input:\n"+h;throw Error(b.errorMessage_);};
WlA.prototype.acceptsBinaryInput=function(){return!1};
WlA.prototype.parse=function(b){this.errorMessage_!==null&&F82(this,b,"stream already broken");var h=null;try{var y=this.base64Decoder_.decode(b);h=y===null?null:this.pbParser_.parse(y)}catch(S){F82(this,b,S.message)}this.JSC$19885_streamPos_+=b.length;return h};var I5F=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19888_streamPos_=0;this.result_=[];this.statusParsed_=!1};
I5F.prototype.isInputValid=function(){return this.errorMessage_===null};
I5F.prototype.acceptsBinaryInput=function(){return!1};
I5F.prototype.parse=function(b){function h(n){a.state_=6;a.errorMessage_="The stream is broken @"+a.JSC$19888_streamPos_+"/"+P+". Error: "+n+". With input:\n";throw Error(a.errorMessage_);}
function y(){a.jsonStreamParser_=new _.pT({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function S(n){if(n)for(var X=0;X<n.length;X++){var u={};u[1]=n[X];a.result_.push(u)}}
function F(n){if(n){(a.statusParsed_||n.length>1)&&h("extra status: "+n);a.statusParsed_=!0;var X={};X[2]=n[0];a.result_.push(X)}}
for(var a=this,P=0;P<b.length;){var K;if(K=a.state_!==2){a:{for(;P<b.length;){if(!_.UR(b[P])){K=!0;break a}P++;a.JSC$19888_streamPos_++}K=!1}K=!K}if(K)return null;switch(a.state_){case 6:h("stream already broken");break;case 0:b[P]==="["?(a.state_=1,P++,a.JSC$19888_streamPos_++):h("unexpected input token");break;case 1:b[P]==="["?(a.state_=2,y()):b[P]===","||b.slice(P,P+5)=="null,"?a.state_=3:b[P]==="]"?(a.state_=5,P++,a.JSC$19888_streamPos_++):h("unexpected input token");break;case 2:K=a.jsonStreamParser_.parse(b.substring(P));
S(K);a.jsonStreamParser_.done()?(a.state_=3,K=a.jsonStreamParser_.JSC$11666_buffer_,a.JSC$19888_streamPos_+=b.length-P-K.length,b=K,P=0):(a.JSC$19888_streamPos_+=b.length-P,P=b.length);break;case 3:b[P]===","||b.slice(P,P+5)=="null,"?(a.state_=4,y(),a.jsonStreamParser_.parse("["),P+=b[P]===","?1:5,a.JSC$19888_streamPos_++):b[P]==="]"&&(a.state_=5,P++,a.JSC$19888_streamPos_++);break;case 4:K=a.jsonStreamParser_.parse(b.substring(P));F(K);a.jsonStreamParser_.done()?(a.state_=5,K=a.jsonStreamParser_.JSC$11666_buffer_,
a.JSC$19888_streamPos_+=b.length-P-K.length,b=K,P=0):(a.JSC$19888_streamPos_+=b.length-P,P=b.length);break;case 5:h("extra input after stream end")}}return a.result_.length>0?(b=a.result_,a.result_=[],b):null};var aGE=function(b){this.JSC$19891_xhr_=b;this.JSC$19891_parser_=null;this.status_=this.JSC$19891_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19891_textDecoder_=null;this.JSC$19891_eventHandler_=new _.B_(this);this.JSC$19891_eventHandler_.listen(this.JSC$19891_xhr_,"readystatechange",this.JSC$19893_readyStateChangeHandler_)},z0=function(b,h){b.status_!=h&&(b.status_=h,b.statusHandler_&&b.statusHandler_())},dea=function(b){b.JSC$19891_eventHandler_.removeAll();
if(b.JSC$19891_xhr_){var h=b.JSC$19891_xhr_;b.JSC$19891_xhr_=null;h.abort();h.dispose()}};
aGE.prototype.getStatus=function(){return this.status_};
aGE.prototype.JSC$19893_readyStateChangeHandler_=function(b){b=b.target;try{if(b==this.JSC$19891_xhr_)a:{var h=_.bD(this.JSC$19891_xhr_),y=this.JSC$19891_xhr_.JSC$9979_lastErrorCode_,S=this.JSC$19891_xhr_.getStatus(),F=this.JSC$19891_xhr_.getResponseText();b=[];if(this.JSC$19891_xhr_.getResponse()instanceof Array){var a=this.JSC$19891_xhr_.getResponse();a.length>0&&a[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,b=a)}if(!(h<3||h==3&&!F&&b.length==0))if(S=S==200||S==206,h==4&&(y==8?z0(this,
7):y==7?z0(this,8):S||z0(this,3)),this.JSC$19891_parser_||(this.JSC$19891_parser_=ABq(this.JSC$19891_xhr_),this.JSC$19891_parser_==null&&z0(this,5)),this.status_>2)dea(this);else{if(b.length>this.JSC$19891_pos_){var P=b.length;y=[];try{if(this.JSC$19891_parser_.acceptsBinaryInput())for(var K=0;K<P;K++){var n=this.JSC$19891_parser_.parse(Array.from(b[K]));n&&(y=y.concat(n))}else{n="";if(!this.JSC$19891_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("sk");this.JSC$19891_textDecoder_=
new TextDecoder}for(K=0;K<P;K++)n+=this.JSC$19891_textDecoder_.decode(b[K],{stream:h==4&&K==P-1});y=this.JSC$19891_parser_.parse(n)}b.splice(0,P);y&&this.dataHandler_(y)}catch(u){z0(this,5);dea(this);break a}}else if(F.length>this.JSC$19891_pos_){K=F.slice(this.JSC$19891_pos_);this.JSC$19891_pos_=F.length;try{var X=this.JSC$19891_parser_.parse(K);X!=null&&this.dataHandler_&&this.dataHandler_(X)}catch(u){z0(this,5);dea(this);break a}}h==4?(F.length!=0||this.hasStreamingResponseData_?z0(this,2):z0(this,
4),dea(this)):z0(this,1)}}}catch(u){z0(this,6),dea(this)}};var jbF=function(b){b=this.xhrReader_=b;var h=(0,_.i5)(this.onData_,this);b.dataHandler_=h;b=this.xhrReader_;h=(0,_.i5)(this.onStatusChange_,this);b.statusHandler_=h;this.JSC$19895_callbackMap_={};this.callbackOnceMap_={}};
_.d=jbF.prototype;_.d.on=function(b,h){var y=this.JSC$19895_callbackMap_[b];y||(y=[],this.JSC$19895_callbackMap_[b]=y);y.push(h);return this};
_.d.addListener=function(b,h){this.on(b,h);return this};
_.d.removeListener=function(b,h){var y=this.JSC$19895_callbackMap_[b];y&&_.Gk(y,h);(b=this.callbackOnceMap_[b])&&_.Gk(b,h);return this};
_.d.once=function(b,h){var y=this.callbackOnceMap_[b];y||(y=[],this.callbackOnceMap_[b]=y);y.push(h);return this};
_.d.onData_=function(b){var h=this.JSC$19895_callbackMap_.data;h&&$e2(b,h);(h=this.callbackOnceMap_.data)&&$e2(b,h);this.callbackOnceMap_.data=[]};
var $e2=function(b,h){for(var y={},S=0;S<b.length;y={message$jscomp$1008:void 0},S++)y.message$jscomp$1008=b[S],h.forEach(function(F){return function(a){try{a(F.message$jscomp$1008)}catch(P){}}}(y))};
jbF.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:L8F(this,"readable");break;case 5:case 6:case 4:case 7:case 3:L8F(this,"error");break;case 8:L8F(this,"close");break;case 2:L8F(this,"end")}};
var L8F=function(b,h){var y=b.JSC$19895_callbackMap_[h];y&&y.forEach(function(S){try{S()}catch(F){}});
(y=b.callbackOnceMap_[h])&&y.forEach(function(S){S()});
b.callbackOnceMap_[h]=[]};var PVf=function(){var b={format:"jspb"};b=b===void 0?{}:b;this.suppressCorsPreflight=b.suppressCorsPreflight||_.hj("suppressCorsPreflight",b)||!1;this.withCredentials=b.withCredentials||_.hj("withCredentials",b)||!1;this.streamInterceptors=b.streamInterceptors||[];this.unaryInterceptors=b.unaryInterceptors||[];this.workerScope=b.workerScope;this.chunkedServerStreaming=b.useFetchDownloadStreams||!1},oLP=function(b,h,y,S,F,a){a=a===void 0?{}:a;
var P=h.substring(0,h.length-F.name.length),K,n=(K=a)==null?void 0:K.signal;return K8f(function(X){return new Promise(function(u,O){if(n==null?0:n.aborted){var N=new _.xy(1,"Aborted");N.cause=n.reason;O(N)}else{var t={},R=ZEE(b,X,P);R.on("error",function(I){return void O(I)});
R.on("metadata",function(I){t=I});
R.on("data",function(I){var U=t;U=U===void 0?{}:U;u(new HTN(I,U))});
n&&n.addEventListener("abort",function(){R.cancel();var I=new _.xy(1,"Aborted");I.cause=n.reason;O(I)})}})},b.unaryInterceptors).call(b,uKX(F,y,S)).then(function(X){return X.responseMessage})},MpP=function(b,h,y,S,F,a){a=a===void 0?{}:a;
return oLP(b,h,y,S,F,a)};
PVf.prototype.serverStreaming=function(b,h,y,S){var F=this,a=b.substring(0,b.length-S.name.length);return nLX(function(P){var K=P.methodDescriptor,n=P.getMetadata(),X=XJX(F,!1);n=HEf(F,n,X,a+K.getName());var u=uVA(X,K.responseDeserializeFn,!0);P=K.requestSerializeFn(P.requestMessage);X.send(n,"POST",P);return u},this.streamInterceptors).call(this,uKX(S,h,y))};
var ZEE=function(b,h,y){var S=h.methodDescriptor,F=h.getMetadata(),a=XJX(b,!0);b=HEf(b,F,a,y+S.getName());y=uVA(a,S.responseDeserializeFn,!1);lXA(y,F["X-Goog-Encode-Response-If-Executable"]==="base64");h=S.requestSerializeFn(h.requestMessage);a.send(b,"POST",h);return y},XJX=function(b,h){h=b.chunkedServerStreaming&&!h;
return b.workerScope||h?new _.mX(new xBx({worker:b.workerScope,streamBinaryChunks:h})):new _.mX},HEf=function(b,h,y,S){h["Content-Type"]="application/json+protobuf";
h["X-User-Agent"]="grpc-web-javascript/0.1";var F=h.Authorization;if(F&&gqN.has(F.split(" ")[0])||b.withCredentials)y.JSC$9979_withCredentials_=!0;if(b.suppressCorsPreflight)S=hIa(S,"$httpHeaders",h);else for(b=_.L(Object.keys(h)),F=b.next();!F.done;F=b.next())F=F.value,y.headers.set(F,h[F]);return S},uVA=function(b,h,y){if(y){y=new aGE(b);
var S=new jbF(y)}return new G9f({xhr:b,nodeReadableStream:S},h)},nLX=function(b,h){return h.reduce(function(y,S){return function(F){return S.intercept(F,y)}},b)},K8f=function(b,h){return h.reduce(function(y,S){return function(F){return S.intercept(F,y)}},b)};var OEA=function(b){this.client_=new PVf;this.hostname_=b==void 0?b:b.replace(/\/+$/,"")};
_.d=OEA.prototype;_.d.JSC$19913_depositGoogleCredential=function(b,h,y){return MpP(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",b,h||{},rVf,y)};
_.d.deleteLink=function(b,h,y){return MpP(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",b,h||{},N5P,y)};
_.d.JSC$19913_finishOAuth=function(b,h,y){return MpP(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",b,h||{},zKq,y)};
_.d.getLink=function(b,h,y){return MpP(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",b,h||{},DBA,y)};
_.d.startLinkingSession=function(b,h,y){return MpP(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",b,h||{},Ctf,y)};var NJX=[0,_.SV,1,I$f,[0,_.L8,[0,_.ay,-1]],[0,DEa],[0,_.MM,-1],[0,DEa]];var tpq=function(){this.storage=new Map},cQx=function(b,h,y,S,F){if(!b.storage.has(h))return null;
b=_.L(b.storage.get(h));for(h=b.next();!h.done;h=b.next())if(h=h.value,!F||h.linkName===F)if(y&&h.scopes&&rQ2(h.scopes,y)||S&&h.capabilities&&rQ2(h.capabilities,S))return h;return null},RId=function(b,h,y){if(!y)b.storage.delete(h);
else if(b.storage.has(h)){var S=b.storage.get(h).filter(function(F){return F.linkName!==y});
S.length>0?b.storage.set(h,S):b.storage.delete(h)}},rQ2=function(b,h){h=_.L(h);
for(var y=h.next();!y.done;y=h.next())if(!b.has(y.value))return!1;return!0};var zIA=function(){var b=_.QC("LINK_GAL_DOMAIN");this.alsDomain1p=_.QC("LINK_GAL_DOMAIN");this.alsDomain3p=b;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},Deq=function(b,h){b.apiKey=h;
return b};
zIA.prototype.build=function(){var b={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("tk");b.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("uk");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("vk");b.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(b.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)b.apiKey=
this.apiKey,b.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("wk");b.oauthToken=this.oauthToken;b.alsDomain=this.alsDomain3p}b.clientXd3=this.clientXd3;b.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(b.authUser=this.authUser);this.bucket!==void 0&&(b.bucket=this.bucket);this.completionUrl!==void 0&&(b.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(b.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(b.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(b.locale=this.locale);this.localStorage!==void 0&&(b.localStorage=this.localStorage);b.loggerType=this.loggerType;b.clientEnvironment=this.clientEnvironment;b.colorScheme=this.colorScheme;b.showCloseOption=this.showCloseOption;return b};var zL=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(zL,_.ZL);var IGf=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(IGf,_.ZL);var BJA=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(BJA,_.ZL);var IJ=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(IJ,_.ZL);var W8A=function(b){return _.sV(b,1)};var AQX=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(AQX,_.ZL);var s7A=_.WM(AQX),DQ=[1,2,3,4,5];var JBA=function(b){try{return s7A(b)}catch(h){return null}},Uef=function(){},eTx=function(b,h){switch(_.Wv(h,DQ)){case 4:return(h=_.kY(h,BJA,4,DQ))&&b.logStateTransition(_.sV(h,1)),!0;
case 5:return(h=_.kY(h,IGf,5,DQ))&&b.logInternalEvent(_.sV(h,1)),!0}return!1},YF2=function(b){switch(b){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.m5(b)}};var Unx=function(b,h){var y=this;this.validator=b;this.messageListener=h;this.dismissCallback=function(){pJq(y,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19942_receiveMessage=function(S){S.type==="message"&&(S=S.event_,S!==null&&(new URL(y.iframe.src)).origin===S.origin&&y.validator(S.data,S.origin)&&!y.messageListener(S.data)&&(y.JSC$19942_resolveCb!==void 0&&y.JSC$19942_resolveCb(S.data),JQE(y)))}},grP=function(b,h,y){b.uiHandler!==void 0&&pJq(b,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(S,F){b.JSC$19942_resolveCb=S;b.JSC$19942_rejectCb=F;b.iframe=document.createElement("iframe");_.Fg(b.iframe,h);b.uiHandler=y.displayContent(b.iframe,b.dismissCallback);_.W3(window,"message",b.JSC$19942_receiveMessage,!1,b)})},pJq=function(b,h){b.JSC$19942_rejectCb!==void 0&&b.JSC$19942_rejectCb(h);
JQE(b)},JQE=function(b){b.uiHandler!==void 0&&b.uiHandler.hideContent();
_.Yy(window,"message",b.JSC$19942_receiveMessage,!1,b);b.JSC$19942_resolveCb=void 0;b.JSC$19942_rejectCb=void 0;b.uiHandler=void 0;b.iframe=void 0};var eIA=function(b){if(b===2){var h;b=((h=window)==null?0:h.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return b},CMa=function(b){b=eIA(b);
switch(b){case 0:return"light";case 1:return"dark";default:_.m5(b)}};var pCq=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),CVN=function(b,h){this.JSC$19954_linkingSession=b;this.noticeConfig=h;this.displayInfoMap=new Map;var y=new Map;if(_.DN(this.JSC$19954_linkingSession,WsY,7))for(b=_.cL(this.JSC$19954_linkingSession,WsY,7),b=_.NK(b,B5Y,1,_.tW()),b=_.L(b),h=b.next();!h.done;h=b.next())h=h.value,y.set(_.sV(h,1),_.JjU(_.cL(h,_.BuN,3)));if(y.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){h=this.noticeConfig.enabledDataUsageNoticeUis;b=h.has(0)?y.get(1):void 0;h=h.has(1)?y.get(2):void 0;y=b!==void 0&&h!==void 0?y.get(3):void 0;var S=this.noticeConfig.nestedOrigins;var F=new AQX;var a=new zL;F=_.pc(F,2,DQ,a);a=new AQX;var P=new zL;a=_.pc(a,3,DQ,P);P=[];b!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:b,lastEvent:F,nestedOrigins:S}]),P.push({trustedUrl:b,lastEvent:F,nestedOrigins:S}));h!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:h,lastEvent:a,nestedOrigins:S}]),P.push({trustedUrl:h,lastEvent:a,nestedOrigins:S}));y!==void 0?this.displayInfoMap.set(3,[{trustedUrl:y,lastEvent:a,nestedOrigins:S}]):this.displayInfoMap.set(3,P)}};var gLN=function(b){var h=new tpq;this.galService=b;this.galCache=h};
gLN.prototype.getLink=function(b){var h=b.serviceId;var y=b.scopes;var S=b.capabilities;var F=b.linkName;var a=this,P;return _.Z(function(K){if(S!==void 0&&y!==void 0)throw Error("xk");P=cQx(a.galCache,h,y,S,F);return P!==null?K.return(P):K.return(a.galService.getLink({serviceId:h,sessionId:Math.floor(Math.random()*2147483648),scopes:y,capabilities:S,linkName:F}).then(function(n){n=ErX(n);var X=a.galCache;X.storage.has(h)?X.storage.get(h).push(n):X.storage.set(h,[n]);return n}))})};
gLN.prototype.deleteLink=function(b,h,y){var S=this;return _.Z(function(F){RId(S.galCache,b,y);return F.return(S.galService.deleteLink({serviceId:b,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:h,linkName:y}).then(function(){return!0}))})};var Ypf=function(b,h){var y=this;this.validator=b;this.msgHandler=h;this.closedPopupTimeout=this.JSC$19976_rejectCb=this.JSC$19976_resolveCb=this.popup=null;this.JSC$19976_receiveMessage=function(S){if(S!==null&&(S=S.event_,S.source===y.popup)){var F=S.data;if(y.validator(F,S.origin)){var a;(a=y.msgHandler)!=null&&a.call(y,F)||(y.JSC$19976_resolveCb!==null&&y.JSC$19976_resolveCb(F),sbA(y))}}}};
Ypf.prototype.open=function(b,h){var y=this;this.popup!==null&&TJq(this);return new Promise(function(S,F){y.JSC$19976_resolveCb=S;y.JSC$19976_rejectCb=F;y.popup=_.d3(window,b,"",h);_.W3(window,"message",y.JSC$19976_receiveMessage,!1,y);Gmf(y)})};
var TJq=function(b,h){b.JSC$19976_rejectCb!==null&&b.JSC$19976_rejectCb(h);sbA(b)},sbA=function(b){b.closedPopupTimeout&&(b.closedPopupTimeout.cancel(),b.closedPopupTimeout=null);
b.popup&&b.popup.close();_.Yy(window,"message",b.JSC$19976_receiveMessage,!1,b);b.popup=null;b.JSC$19976_resolveCb=null;b.JSC$19976_rejectCb=null},Gmf=function(b){b.closedPopupTimeout=_.UUa(100).then(function(){b.popup?b.popup.closed?kmf(b):Gmf(b):TJq(b,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},kmf=function(b){b.closedPopupTimeout=_.UUa(100).then(function(){TJq(b,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var VpP=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),ELx=function(b,h,y,S,F,a,P,K,n,X){var u=this;this.serviceId=b;this.sessionId=h;this.galService=y;this.oauthDetails=S;this.galLogger=F;this.interactionMode=a;this.redirectServiceUrl=P;this.consentLanguageKeys=K;this.dynamicUrlParameters=n;this.partnerConfigMinReadTimestamp=X;this.started=!1;this.JSC$19982_dataValidator=function(O,
N){var t=VpP.has(N);t||u.redirectServiceUrl===void 0||(t=u.redirectServiceUrl===N);return t?O.sentinel==="gdi":!1}};
ELx.prototype.complete=function(){var b=this,h;return _.Z(function(y){if(b.interactionMode!==1)return y.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));h=hlX.getRedirectStateFromUri();return h===null?y.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):y.return(iEP(b,h))})};
ELx.prototype.start=function(){var b=this,h;return _.Z(function(y){if(b.started)return y.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.gQ(b.oauthDetails,1))return y.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(b.interactionMode===1)return hlX.setLocation(_.gQ(b.oauthDetails,1)),y.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));b.started=!0;b.galLogger.logStateTransition(5);
h=hlX.getPostMessagePopup(b.JSC$19982_dataValidator);return y.return(h.open(_.gQ(b.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(S){b.started=!1;var F=b.galLogger;if((S==null?void 0:S.error)!==void 0)throw F.logInternalEvent(59),Error("yk");if((S==null?void 0:S.redirect_state)===void 0)throw F.logInternalEvent(131),Error("zk");return iEP(b,S.redirect_state)}).catch(function(S){b.started=
!1;
return S.errorCode!==void 0?{statusCode:S.errorCode,statusMessage:S.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var iEP=function(b,h){return _.Z(function(y){return y.return(fGY(b.galService,{serviceId:b.serviceId,sessionId:b.sessionId,dynamicUrlParameters:b.dynamicUrlParameters,redirectState:h,consentLanguageKeys:b.consentLanguageKeys,partnerConfigMinReadTimestamp:b.partnerConfigMinReadTimestamp}).then(function(S){var F={statusCode:1,link:ErX(S.getLink())};UJA(_.Bv(S,3))!==void 0&&(F.callerState=UJA(_.Bv(S,3)));_.gFr(S,4,cVA,A6f).size>0&&(F.redirectUriParams=new Map(Array.from(_.gFr(S,4,cVA,A6f).entries()).map(function(a){var P=
_.L(a);a=P.next().value;var K=P.next().value;P=[];var n=P.concat;K=_.mY(K,1,_.zq,_.tW());return[a,n.call(P,_.f$(K))]})));
b.galLogger.logInternalEvent(134);return F}))})},hlX={getPostMessagePopup:function(b){return new Ypf(b)},
getRedirectStateFromUri:function(){var b=_.La(hlX.getLocation()).fragment_;return(new _.WR(b)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(b){_.zhY(window.location,_.lJ(b))},
createOAuthFlow:function(b,h){return new ELx(b.serviceId,b.sessionId,b.galService,h,b.galLogger,b.interactionMode,b.redirectServiceUrl,b.consentLanguageKeys,b.dynamicUrlParameters,b.partnerConfigMinReadTimestamp)}};var wJa=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(wJa,_.ZL);var lGf=_.WM(wJa);var qpP=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),xeA=function(b,h,y,S,F,a,P,K,n){var X=this;this.serviceId=b;this.sessionId=h;this.galService=y;this.gsiWebFlowDetails=S;this.colorScheme=F;this.showCloseOption=a;this.galLogger=P;this.interactionMode=K;this.redirectServiceUrl=n;this.started=!1;this.JSC$19995_dataValidator=function(u,O){var N=qpP.has(O);N||X.redirectServiceUrl===
void 0||(N=X.redirectServiceUrl===O);return N?u.sentinel==="gal":!1};
this.logEventProcessor=function(u){return u.result?(u=JBA(u.result))?eTx(X.galLogger,u):!1:!1}};
xeA.prototype.complete=function(){var b=this,h,y;return _.Z(function(S){if(b.interactionMode!==1)return S.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));h=SoY.getRedirectStateFromUri();if(h===void 0)return b.galLogger.JSC$19934_logErrorEvent(131),S.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return y=Qbf(b,h),S.return(me2(b,y))}catch(F){return S.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
xeA.prototype.start=function(){var b=this,h;return _.Z(function(y){if(b.started)return y.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.gQ(b.gsiWebFlowDetails,1))return y.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(b.interactionMode===1)return SoY.setLocation(vLY(b,_.gQ(b.gsiWebFlowDetails,1))),y.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
b.started=!0;h=SoY.getPostMessagePopup(b.JSC$19995_dataValidator,b.logEventProcessor);return y.return(h.open(vLY(b,_.gQ(b.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(S){b.started=!1;if((S==null?void 0:S.result)===void 0)throw b.galLogger.JSC$19934_logErrorEvent(131),Error("zk");S=Qbf(b,S.result);return me2(b,S)}).catch(function(S){b.started=!1;
return S.errorCode!==void 0?{statusCode:S.errorCode,statusMessage:S.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var vLY=function(b,h){b=["result_channel",b.interactionMode===1?"2":"1","color_scheme",CMa(b.colorScheme),"show_close_option",b.showCloseOption];return UEf(h,b)},me2=function(b,h){if(h!==null&&_.DN(h,IJ,2)){var y,S=h==null?void 0:(y=_.cL(h,IJ,2))==null?void 0:_.sV(y,2);
S&&b.galLogger.JSC$19934_logErrorEvent(YF2(S));return W8A(_.cL(h,IJ,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 b.galService.getLink({serviceId:b.serviceId,sessionId:b.sessionId,consistencyKey:_.gQ(h,1)}).then(function(F){F=ErX(F);b.galLogger.logInternalEvent(134);return{statusCode:1,link:F}})},Qbf=function(b,h){h=lGf(h);
if(!_.DN(h,IJ,2)&&_.gQ(h,1)==="")throw b.galLogger.JSC$19934_logErrorEvent(5),Error("Ak");return h},SoY={getPostMessagePopup:function(b,h){return new Ypf(b,h)},
getRedirectStateFromUri:function(){return _.Ps(_.La(SoY.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(b){_.zhY(window.location,_.lJ(b))},
createStreamlinedFlow:function(b,h){return new xeA(b.serviceId,b.sessionId,b.galService,h,b.colorScheme,b.showCloseOption,b.galLogger,b.interactionMode,b.redirectServiceUrl)}};var LoY=function(b){this.storage=(b=b?_.fn("GAL"):_.hO4("GAL"))?new _.k0(b):null};
LoY.prototype.getSession=function(b){if(this.storage!==null)try{var h=this.storage.get("SAVED_SESSION");if(h===void 0)return null;if(h.serviceId===b)return h}catch(y){}return null};var bjA=function(){};
_.z(bjA,Uef);bjA.prototype.logStateTransition=function(){};
bjA.prototype.logInternalEvent=function(){};
bjA.prototype.JSC$19934_logErrorEvent=function(){};var hMA=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(hMA,_.ZL);hMA.prototype.getCompletionUrl=function(){return _.gQ(this,15)};var Dj=function(b,h,y,S,F,a){this.serviceId=b;this.environment=h;this.sessionId=y;this.colorSchemeSelected=S;this.colorThemeDisplayed=F;this.JSC$20008_transport=a;this.currentState=1};
_.z(Dj,Uef);Dj.prototype.logStateTransition=function(b){var h=yTF(this);h=_.R2(h,3,this.currentState);h=_.R2(h,1,b);this.currentState=b;b=guP(1);this.dispatch(h,b)};
Dj.prototype.logInternalEvent=function(b){b=guP(b);this.dispatch(yTF(this),b)};
Dj.prototype.JSC$19934_logErrorEvent=function(b){var h=yTF(this);h=_.R2(h,1,10);b=guP(b);this.dispatch(h,b)};
var yTF=function(b){var h=new hMA;h=_.R2(h,1,b.currentState);h=_.kb(h,7,b.serviceId);var y,S;var F=((y=window)==null?0:(S=y.location)==null?0:S.href)?_.La(window.location.href).JSC$10215_domain_:"NO_PACKAGE_NAME";y=_.kb(h,8,F);y=_.R2(y,6,b.environment);y=_.kb(y,5,"100");y=_.R2(y,11,b.colorSchemeSelected);return _.R2(y,12,b.colorThemeDisplayed)};
Dj.prototype.dispatch=function(b,h){h===void 0&&(h=new _.I6);var y=h;b=b.serialize();y=_.kb(y,8,b);_.GE(y,12,this.sessionId);this.JSC$20008_transport.dispatch(h)};var SUP=function(b,h){this.loggerType=b;this.sessionIndex=h!=null?h:0},FJf;
SUP.prototype.create=function(b,h,y,S,F){switch(this.loggerType){case 0:return new bjA;case 1:return FJf||(FJf=(new _.UD(555,this.sessionIndex.toString())).build()),new Dj(b,h,y,S,F,FJf);default:_.m5(this.loggerType,"unknown logger type")}};var Foa=[6,2,3,1],nGY=new Map([[4,1],[1,6],[2,2],[3,3]]),l52={statusCode:7,statusMessage:"Failed to create flow object"},jrF=function(b,h,y,S,F,a,P,K,n,X){this.serviceId=b;this.sessionId=h;this.config=y;this.galService=S;this.JSC$20015_linkingSession=F;this.googleScopes=a;this.callerState=P;this.consentLanguageKeys=K;this.dynamicUrlParameters=n;this.partnerConfigMinReadTimestamp=X;this.currentFlow=0;S=this.JSC$20015_linkingSession;F=new Set;_.DN(S,bwP,1)&&F.add(1);_.DN(S,UBq,2)&&_.DN(S,yFN,6)&&F.add(2);
_.DN(S,AVq,3)&&_.DN(S,yFN,6)&&F.add(3);_.DN(S,IXE,4)&&F.add(6);this.supportedFlows=F;S=y.loggerType;F=y.clientEnvironment;a:{a=y.colorScheme;switch(a){case 0:a=1;break a;case 1:a=2;break a;case 2:a=3;break a;default:_.m5(a)}a=void 0}a:{P=y.colorScheme;P=eIA(P);switch(P){case 0:P=1;break a;case 1:P=2;break a;default:_.m5(P)}P=void 0}this.galLogger=(new SUP(S,y.authUser)).create(b,F,h,a,P)},jkx=function(b){return new Promise(function(h){var y,S,F,a,P,K,n,X,u,O;
return _.Z(function(N){switch(N.nextAddress){case 1:y=aAf(b.currentFlow,b.supportedFlows),S=!1,F=new CVN(b.JSC$20015_linkingSession,b.config.dataUsageNoticeConfig);case 2:if(y===void 0){N.jumpTo(4);break}_.WE(N,5);var t=F,R=y,I=void 0;S?R===1&&(I=t.displayInfoMap.get(2)):R===2||R===3?I=t.displayInfoMap.get(1):R===1&&(I=t.displayInfoMap.get(3));a=I?I:[];P=b.consentLanguageKeys;K=_.L(a);n=K.next();case 7:if(n.done)return b.currentFlow=y,N.yield(xnf(aex(b,P)),11);X=n.value;return N.yield(TCA(X,b.config.dataUsageNoticeConfig.uiAdapter,
b.config.colorScheme,b.galLogger),10);case 10:u=N.yieldResult;if(u.statusCode!==1)return dua(b),h(Q7F({statusCode:u.statusCode,statusMessage:u.statusMessage},b.callerState)),N.return();u.consentLanguageKeys!==void 0&&(P=u.consentLanguageKeys);n=K.next();N.jumpTo(7);break;case 11:O=N.yieldResult;if(O.statusCode!==10)return O.statusCode!==6&&dua(b),O.statusCode!==1&&b.callerState!==void 0&&(O.callerState=b.callerState),h(O),N.return();_.Lz(N,6);break;case 5:_.C$(N);case 6:y=aAf(b.currentFlow,b.supportedFlows);
S=!0;N.jumpTo(2);break;case 4:dua(b),h(Q7F({statusCode:12,statusMessage:"Linking failed"},b.callerState)),_.g3(N)}})})},dua=function(b){Pqx(b.serviceId,b.config.localStorage);
b.currentFlow=0},oGf=function(b,h,y){b.currentFlow=h;
return mnx(aex(b,y)).then(function(S){return S.statusCode===10&&b.config.interactionMode===1&&aAf(b.currentFlow,b.supportedFlows)!==void 0?jkx(b):S})},aex=function(b,h){return{flowParams:{serviceId:b.serviceId,
sessionId:b.sessionId,galService:b.galService,galLogger:b.galLogger,interactionMode:b.config.interactionMode,redirectServiceUrl:b.config.redirectServiceUrl,colorScheme:b.config.colorScheme,consentLanguageKeys:h,dynamicUrlParameters:b.dynamicUrlParameters,showCloseOption:b.config.showCloseOption,partnerConfigMinReadTimestamp:b.partnerConfigMinReadTimestamp},currentFlow:b.currentFlow,config:b.config,session:b.JSC$20015_linkingSession,googleScopes:b.googleScopes,callerState:b.callerState}};var Hwq=function(b,h){this.config=b;this.galService=h.getService();this.JSC$20028_galRepository=h.JSC$20046_galRepository};
Hwq.prototype.getLink=function(b,h){return $ux(this,b,h)};
var $ux=function(b,h,y){return b.JSC$20028_galRepository.getLink({serviceId:h,scopes:void 0,capabilities:void 0,linkName:y}).then(function(S){return{statusCode:1,link:S}}).catch(function(S){return{statusCode:XVE(S.code),
statusMessage:S.message}})};
Hwq.prototype.deleteLink=function(b,h){return this.JSC$20028_galRepository.deleteLink(b,this.config.accountLinkingEntryPoint,h).then(function(){return{statusCode:1}}).catch(function(y){return{statusCode:XVE(y.code),
statusMessage:y.message}})};
Hwq.prototype.startLinkingSession=function(b){var h=b.serviceId;var y=b.sessionId;return $DE({serviceId:h,sessionId:y!==void 0?y:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:b.loginHint,callerState:b.callerState,consentLanguageKeys:b.consentLanguageKeys,linkName:b.linkName,dynamicUrlParameters:b.dynamicUrlParameters,partnerConfigMinReadTimestamp:b.partnerConfigMinReadTimestamp})};var It=function(b,h,y,S,F,a,P){this.apiKey=h;this.authUser=y;this.oauthToken=S;this.bucket=F;this.locale=a;this.galSdkEventHandler=P;if(S===void 0){if(h===void 0)throw Error("Bk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new OEA(b)};
It.prototype.deleteLink=function(b){var h=b.serviceId;var y=b.sessionId;var S=b.accountLinkingEntryPoint;var F=b.linkName;var a=this,P;return _.Z(function(K){var n=(new NN).setHeader(a.getHeader(y));var X=LJd({serviceId:h,linkName:F});n=_.U_(n,2,X);P=_.EV(n,3,S);return K.return(a.makeRequest(a.galServiceClient.deleteLink,P,[1,3],[2,4]))})};
var fGY=function(b,h){var y=h.serviceId;var S=h.sessionId;var F=h.dynamicUrlParameters;var a=h.redirectState;var P=h.consentLanguageKeys;var K=h.partnerConfigMinReadTimestamp;var n;return _.Z(function(X){var u=(new rr).setHeader(b.getHeader(S,F));u=_.lq(u,2,y);n=_.lq(u,4,a);P!==void 0&&_.lq(n,5,P);K!==void 0&&_.U_(n,6,K);return X.return(b.makeRequest(b.galServiceClient.JSC$19913_finishOAuth,n,[1,3],[2,4]))})};
It.prototype.getLink=function(b){var h=b.serviceId;var y=b.sessionId;var S=b.scopes;var F=b.capabilities;var a=b.consistencyKey;var P=b.linkName;var K=this,n;return _.Z(function(X){var u=(new cK).setHeader(K.getHeader(y)),O=LJd({serviceId:h,scopes:S,capabilities:F,linkName:P});n=_.U_(u,2,O);a!==void 0&&(u=oqE(),u=_.lq(u,2,a),_.U_(n,3,u));return X.return(K.makeRequest(K.galServiceClient.getLink,n,[1,3],[2,4]))})};
var vrY=function(b,h){var y=h.serviceId;var S=h.sessionId;var F=h.googleScopes;var a=h.consistencyKey;var P;return _.Z(function(K){var n=(new tw).setHeader(b.getHeader(S));n=_.lq(n,2,y);var X=Array.from(F.values());n=_.yD(n,3,X,_.cN);X=oqE();X=_.lq(X,2,a);P=_.U_(n,4,X);return K.return(b.makeRequest(b.galServiceClient.JSC$19913_depositGoogleCredential,P,[1,3],[2,4]))})};
It.prototype.startLinkingSession=function(b){var h=b.serviceId;var y=b.sessionId;var S=b.scopes;var F=b.capabilities;var a=b.loginHint;var P=b.supportedFlows;var K=b.completionUrl;var n=b.usePingPong;var X=b.twoWayLinking;var u=b.accountLinkingEntryPoint;var O=b.callerState;var N=b.consentLanguageKeys;var t=b.googleScopes;var R=b.dataUsageNoticeConfig;var I=b.linkName;var U=b.dynamicUrlParameters;var p=b.partnerConfigMinReadTimestamp;var e=this,E,Y;return _.Z(function(w){if(F!==void 0&&S!==void 0)throw Error("xk");
var x=(new eKd).setHeader(e.getHeader(y,U));E=_.lq(x,2,h);I!==void 0&&_.lq(E,14,I);if(F!==void 0){x=E;var q=Array.from(F.values());_.yD(x,5,q,_.cN)}else S!==void 0&&(x=E,q=Array.from(S.values()),_.yD(x,3,q,_.cN));K!==void 0&&_.lq(E,6,K);n!==void 0&&_.IH(E,15,n);P!==void 0&&(x=E,q=Array.from(P.values()),_.yD(x,4,q,_.$F));if(X!==void 0){if(X&&(!t||t.size===0))throw Error("Ck");_.IH(E,8,X)}u!==void 0&&_.EV(E,9,u);a!==void 0&&_.lq(E,13,a);O!==void 0&&(x=E,q=(new TextEncoder).encode(O),_.SP(x,12,_.ee(q,
!1),_.J8()));N!==void 0&&_.lq(E,16,N);p!==void 0&&_.U_(E,18,p);if(R!==void 0&&R.size>0||t!==void 0&&t.size>0)Y=new JVf,t!==void 0&&t.size>0&&(x=Y,q=Array.from(t.values()),_.yD(x,1,q,_.cN)),R!==void 0&&(R.has(0)&&_.EFk(Y,2,_.$F,1,_.PN),R.has(1)&&_.EFk(Y,2,_.$F,2,_.PN)),_.U_(E,17,Y);return w.return(e.makeRequest(e.galServiceClient.startLinkingSession,E,[1],[2]))})};
It.prototype.getMetadata=function(){var b=this,h,y;return _.Z(function(S){h={};b.useFpa?(h["X-Goog-Api-Key"]=b.apiKey,h["X-Goog-AuthUser"]=b.authUser!==void 0?b.authUser.toString():"0",(y=_.Dhf([]))&&(h.Authorization=y)):h.Authorization="Bearer "+b.oauthToken;b.locale&&(h["accept-language"]=b.locale);return S.return(h)})};
It.prototype.makeRequest=function(b,h,y,S){var F=this,a;return _.Z(function(P){if(P.nextAddress==1)return P.yield(F.getMetadata(),2);a=P.yieldResult;PCF(F,y);return P.return(b.bind(F.galServiceClient)(h,a).finally(function(){PCF(F,S)}))})};
var PCF=function(b,h){b.galSdkEventHandler!==void 0&&h.forEach(function(y){b.galSdkEventHandler.onEvent(y)})};
It.prototype.getHeader=function(b,h){var y=new HK;b=_.SP(y,2,_.KA(b),0);b=_.EV(b,5,3);h=_.yD(b,8,h,_.cN);this.bucket!==void 0&&_.lq(h,1,this.bucket);return h};
var LJd=function(b){var h=b.serviceId;var y=b.scopes;var S=b.capabilities;b=b.linkName;if(S!==void 0&&y!==void 0)throw Error("xk");var F=new Ksq;h=_.lq(F,1,h);S!==void 0?(y=Array.from(S.values()),_.yD(h,5,y,_.cN)):y!==void 0&&(y=Array.from(y.values()),_.yD(h,3,y,_.cN));b!==void 0&&_.lq(h,6,b);return h};var usY=function(b){this.galService=new It(b.alsDomain,b.apiKey,b.authUser,b.oauthToken,b.bucket,b.locale,b.galSdkEventHandler);this.JSC$20046_galRepository=new gLN(this.galService)};
usY.prototype.getService=function(){return this.galService};var KJa=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(KJa,_.ZL);var Zjx=function(b){var h=new KJa;return _.R2(h,1,b)};
KJa.prototype.setErrorMessage=function(b){return _.kb(this,2,b)};var oaA=[0,_.oy,_.FH,_.oy];var BK=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(BK,_.ZL);var Mgd=[0,[1,2,3],_.Pq,[0,_.KYo,_.EjN,-1],_.Pq,[0,zZf,-1],_.dX];var naf=[0,_.h2,1,_.oy,_.FH,-1,1,_.K8,_.mP,_.oy,-1,Mgd];var XAd=[0,_.oy,[0,_.K8,_.mP,[0,_.FH]],_.yw,[0,_.oy,-1]];var dr=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(dr,_.ZL);var HjX=[0,_.FH,_.oy,-2,_.h2,_.oy,_.h2,_.oy,-2,1,_.yw];var uIx=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(uIx,_.ZL);var OjX=[0,_.h2];var N2Y=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(N2Y,_.ZL);var tgx=[0,_.oy,XAd,OjX,HjX,naf];var KW2=_.IR(N2Y,tgx);var rTf=[0,NJX];var uif=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(uif,_.ZL);var cTF=[0,[1,3],B$a,_.oy,B$a];var HGA=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(HGA,_.ZL);var RMq=[0,_.oy];var zMF=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(zMF,_.ZL);var OGa=function(b){return _.kY(b,KJa,2,at)},Dux=function(b){var h=new zMF;
return _.pc(h,2,at,b)},at=[1,
2];var Ief=[0,at,_.Pq,RMq,_.Pq,oaA,_.L8,cTF,1,_.oy,rTf];var B2f=[0,1,[0,[1,2,3],_.Pq,[0],_.Pq,[0,JD2],_.Pq,[0,NJX]]];var WJY=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(WJY,_.ZL);var Uux=function(b){var h=new WJY;return _.pc(h,3,ATN,b)},ATN=[2,
3];var pAA=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(pAA,_.ZL);var JTa=function(b,h){return _.U_(b,2,h)},eMA=function(b,h){return _.U_(b,8,h)},CCd=function(b,h){return _.U_(b,3,h)};var gaF=[0,_.oy,Ief,tgx,_.Hm,[0,[5,6,7],[0,_.oy,-2],[0,_.h2,_.oy,_.FH],[0,Mgd],[0,_.FH,_.oy,-1,_.X0,_.oy],_.Pq,[0,[0,_.h2],_.oy,-1],_.Pq,[0,[3,4],_.oy,-1,_.Pq,[0,[0,_.oy,_.yw]],_.Pq,[0,[0,[0,[1,2,3],_.Pq,[0],_.Pq,[0],_.Pq,[0]]]]],_.Pq,[0,_.oy]],_.Hm,-1,[0,ATN,_.oy,_.Pq,RMq,_.Pq,oaA,_.L8,cTF,[0,NJX],B2f]];var skf=_.IR(pAA,gaF),YUf=_.BM(gaF);var T2A=function(){_.ED.call(this)};
_.z(T2A,_.ED);T2A.prototype.init=function(){};
new T2A;var GcP=_.bm(["data-"]),kcx=_.bm(["aria-"]),VgA=_.bm(["aria-"]),WK=function(b,h){this.isLatencyMeasurementExperiment=b===void 0?!1:b;this.enableDialogA11yFix=h===void 0?!1:h;this.win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.bqe(_.S5.location.href)},ouF=function(b,h){b.onConsentPrimitiveShownCallback=h},EaA=function(b,h){return b.overriddenIframeLoadTimeout?b.overriddenIframeLoadTimeout:h!==void 0?h:5E3},nuE=function(b){if(b.prewarmPromise!==void 0)return b.prewarmPromise;
b.prewarmPromise=new Promise(function(h,y){Aw(b,1);ijP(b,feq(b,!0),wAA(b));b.iframe?b.prewarmChannel||leY(b,b.iframe,h):y(Error("Dk"))});
b.prewarmPromise.finally(function(){b.prewarmPromise=void 0});
return b.prewarmPromise};
WK.prototype.showPrimitive=function(){var b=this;if(this.consentPromise!==void 0)return this.consentPromise;var h=Date.now();qUa(this,h);this.consentPromise=new Promise(function(y,S){Aw(b,0,h);var F=b.isDarkTheme();b.isLatencyMeasurementExperiment||b.initialLoadingStrategy===1||b.initialLoadingStrategy===2||(b.loadingBar||(b.loadingBar=rFA(getComputedStyle(document.body).direction==="rtl",F),b.loadingBar.style.position="fixed",b.loadingBar.style.zIndex="15000"),document.body.appendChild(b.loadingBar));
ijP(b,feq(b),wAA(b));b.iframe?b.channel||xuA(b,b.iframe,y,S):(Qkq(b),S(Error("Dk")))});
this.consentPromise.finally(function(){b.consentPromise=void 0});
return this.consentPromise};
var xuA=function(b,h,y,S){var F,a;_.Z(function(P){switch(P.nextAddress){case 1:Aw(b,3);F=!1;setTimeout(function(){if(!F){Qkq(b);muP(b);vaF(b);var K=Zjx(7).setErrorMessage("Timeout connecting to iframe");y(eMA(JTa(new pAA,Dux(K)),Uux(K)))}},EaA(b,b0a(b)));
if(!b.prewarmPromise){P.jumpTo(2);break}_.WE(P,3);return P.yield(b.prewarmPromise,5);case 5:_.Lz(P,2);break;case 3:_.C$(P),a=Zjx(4).setErrorMessage("Error while prewarming."),y(eMA(JTa(new pAA,Dux(a)),Uux(a)));case 2:b.prewarmChannel&&b.prewarmChannel.send(YUf(CCd(new pAA,b.consentPrimitiveRequest))),b.channel=_.Hq({destination:b.win,iframe:h,origin:hUA(b),channelName:"cpw",onEstablished:function(){F=!0;Qkq(b);b.isLatencyMeasurementExperiment||(b.JSC$20075_previousBodyOverflow=document.body.style.overflow,
b.JSC$20075_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,b.JSC$20075_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",b.enableDialogA11yFix&&window.addEventListener("blur",b.focusChangeListener));var K=b.iframe;K.style.bottom="0";K.style.position="fixed";K.style.right="0";K.style.border="none";K.style.left="0";K.style.top=
"0";K.style.zIndex="5000";K.style.pointerEvents="";K.style.visibility="";b.initialLoadingStrategy===2||b.initialLoadingStrategy===3?Aw(b,4):Aw(b,6);var n;(n=b.onConsentPrimitiveShownCallback)==null||n.call(b)},
onMessage:function(K){K=skf(K.data);switch(_.sV(K,1)){case 1:muP(b);var n=cFN(_.cL(K,_.Cw,7));n&&(b.initialLoadingStrategy!==2&&b.initialLoadingStrategy!==3||Aw(b,6,n),Aw(b,5,n));if(n=cFN(_.cL(K,_.Cw,6)))Aw(b,7,n),Aw(b,8);var X,u;((X=_.cL(K,zMF,2))==null?void 0:_.Wv(X,at))!==0&&((u=_.cL(K,WJY,8))==null?void 0:_.Wv(u,ATN))!==0||S(Error("Ek"));y(K);break;case 2:vaF(b)}}}),_.g3(P)}})},leY=function(b,h,y){b.prewarmChannel=_.Hq({destination:b.win,
iframe:h,origin:hUA(b),channelName:"pwcp",onEstablished:function(){Aw(b,2);y()}})},hUA=function(b){var h=_.s_(b.src).toString();
return h&&h.indexOf("://")<0&&h.indexOf("//")!==0?b.origin:_.bqe(h)},feq=function(b,h){h=h===void 0?!1:h;
var y,S=new Map([["origin",b.origin],["hl",(y=y0x(b))!=null?y:null]]);h&&S.set("pw","1");h=_.L([["cpr",b.consentPrimitiveRequest.serialize()]]);for(y=h.next();!y.done;y=h.next()){var F=_.L(y.value);y=F.next().value;F=F.next().value;S.set(y,F)}b.isDarkTheme()&&S.set("color_scheme","dark");return _.zP(b.src,S)},Qkq=function(b){b.isLatencyMeasurementExperiment||b.loadingBar&&document.body.removeChild(b.loadingBar)};
WK.prototype.getSrc=function(){var b=_.ZI(this.origin),h;var y=(h=_.cL(this.consentPrimitiveRequest,uIx,3))==null?void 0:_.rB(h,1);h="consent.google.com";y=y?"/u/"+encodeURIComponent(y.toString()):"";(b==null?0:b.endsWith("youtube.com"))?h="consent.youtube.com":(b=b==null?void 0:b.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(h="consent.google."+((b[1]?"co.":"")+encodeURIComponent(b[2])));return _.gf("https://"+h+"/signedin"+y+"/landing")};
var ijP=function(b,h,y){b.iframe||(b.iframe=document.createElement("iframe"),b.iframe.style.width="100%",b.iframe.style.height="100%",y!==112496729&&(b.iframe.style.colorScheme="auto"),b.isLatencyMeasurementExperiment&&(b.iframe.style.display="none"),_.Fg(b.iframe,h),b.iframe.setAttribute("jsname","C5o1O"),SNa(b.iframe),document.body.appendChild(b.iframe))},SNa=function(b){b.style.bottom="-200vh";
b.style.position="fixed";b.style.right="-200vw";b.style.border="";b.style.left="";b.style.top="";b.style.zIndex="";b.style.pointerEvents="none";b.style.visibility="hidden"},muP=function(b){b.iframe&&(b.isLatencyMeasurementExperiment||(b.JSC$20075_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=b.JSC$20075_previousHtmlOverscroll),b.JSC$20075_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=b.JSC$20075_previousBodyOverscroll),b.JSC$20075_previousBodyOverflow!==
void 0&&(document.body.style.overflow=b.JSC$20075_previousBodyOverflow),b.enableDialogA11yFix&&F3q(b,!1)),SNa(b.iframe))};
WK.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(F3q(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var F3q=function(b,h){var y,S,F=(y=b.iframe)==null?void 0:(S=y.parentElement)==null?void 0:S.children;if(F)for(y=0;y<F.length;y++)S=F[y],S!==b.iframe&&(h?(S.hasAttribute("aria-hidden")&&_.n$([_.r1(GcP)],S,"data-old-aria-hidden",S.getAttribute("aria-hidden")),_.n$([_.r1(kcx)],S,"aria-hidden","true")):(S.removeAttribute("aria-hidden"),S.hasAttribute("data-old-aria-hidden")&&(_.n$([_.r1(VgA)],S,"aria-hidden",S.getAttribute("data-old-aria-hidden")),S.removeAttribute("data-old-aria-hidden"))))},Aw=function(b,
h,y){var S;
(S=b.latencyCallback)==null||S.call(b,{latencyType:h,timestampEpochMillis:y!=null?y:Date.now()})};var ahF=function(b,h,y){WK.call(this,h,y===void 0?!1:y);this.consentPrimitiveRequest=b;b=y0x(this);_.ExX(b);this.src=this.getSrc();var S;this.initialLoadingStrategy=(S=_.cL(this.consentPrimitiveRequest,dr,4))==null?void 0:_.sV(S,4)},dLX;
_.z(ahF,WK);var ZGN=function(b){b={request:b,enableDialogA11yFix:!0};dLX||(dLX=new ahF(b.request,b.isLatencyMeasurementExperiment||_.sV(b.request,1)===2,b.enableDialogA11yFix));return dLX},y0x=function(b){var h;
return(h=_.cL(b.consentPrimitiveRequest,dr,4))==null?void 0:_.gQ(h,1)},qUa=function(b,h){if(!_.DN(b.consentPrimitiveRequest,BK,5)){var y=b.consentPrimitiveRequest,S=new BK;
_.U_(y,5,S)}var F;if((F=_.cL(b.consentPrimitiveRequest,BK,5))==null||_.gW4(_.z4(F,8))==null){var a;(a=_.cL(b.consentPrimitiveRequest,BK,5))!=null&&_.GE(a,8,h)}},wAA=function(b){var h;
return(h=_.cL(b.consentPrimitiveRequest,BK,5))==null?void 0:_.rB(h,1)};
ahF.prototype.isDarkTheme=function(){var b;return((b=_.cL(this.consentPrimitiveRequest,dr,4))==null?void 0:_.sV(b,2))===2};
var b0a=function(b){var h;return((h=_.cL(b.consentPrimitiveRequest,dr,4))==null?void 0:_.rB(h,5))||void 0},vaF=function(b){b.channel=void 0;
b.prewarmChannel=void 0;b.iframe&&(document.body.contains(b.iframe)&&document.body.removeChild(b.iframe),b.iframe=void 0);dLX=void 0},XRY=function(b){return WK.prototype.showPrimitive.call(b).then(function(h){return _.cL(h,zMF,2)})};for(var Us={},jzN=(Us[64]="ma",Us[73]="ogb",Us[89]="cr",Us[21]="test",Us[0]="unkn",Us[137]="con",Us[155]="hl",Us[78]="yt",Us[171]="lp",Us[172]="ap",Us[177]="amo",Us[178]="pqe",Us[74]="gg",Us[1]="gm",Us[140]="am",Us[193]="sc",Us),$LP=_.L(Object.keys(jzN)),L3a=$LP.next();!L3a.done;L3a=$LP.next());var PKF=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(PKF,_.ZL);var K32=[0,[2,3,4],_.oy,RZx,B$a,_.dX];var Z0f=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(Z0f,_.ZL);var oXx=_.IR(Z0f,[0,_.MM,_.FH,_.oy,_.FH,_.oy,K32]);var M1q=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(M1q,_.ZL);M1q.prototype.getCommand=function(){return _.sV(this,1)};
var nXP=function(){var b=new M1q;return _.EV(b,1,0)};var Xy2=_.BM([0,_.MM,_.FH,[0,_.oy,_.FH,-1]]);var H0X=new _.JU("s"),uqA=new _.JU("t"),O0X=new _.JU("u"),NDY=new _.JU("v"),t12=function(b,h,y){_.eW.call(this,H0X);this.mediaKey=b;this.photoUrl=h;this.photoSource=y};
_.z(t12,_.eW);var r0F=function(){_.eW.call(this,uqA)};
_.z(r0F,_.eW);var c0q=function(b){b=b===void 0?!1:b;_.eW.call(this,O0X);this.isError=b};
_.z(c0q,_.eW);var RUX=function(){_.eW.call(this,NDY)};
_.z(RUX,_.eW);var zUx=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,W3N=function(b){if(typeof b=="string"){if(b.charAt(0)==".")return DLq(b.substr(1));if(b.charAt(0)=="["){var h=zUx.exec(b);b=b.indexOf("=")==-1?void 0:h[3];return IhY(h[1],b)}return BDf(b)}return b},DLq=function(b){return function(h){return h.getAttribute&&_.Zl(h,b)}},IhY=function(b,h){return function(y){return h!==void 0?y.getAttribute&&y.getAttribute(b)==h:y.hasAttribute&&y.hasAttribute(b)}},BDf=function(b){b=b.toUpperCase();
return function(h){return(h=h.tagName)&&h.toUpperCase()==b}},A0f=function(){return!0};var pV=function(b,h){this.JSC$20103_key_=b;this.JSC$20103_value_=h},ULF=function(b){throw Error("Fk`"+b.JSC$20103_key_);
},pyA=function(b,h){return new TypeError("Gk`"+h+"`"+b.JSC$20103_key_+"`"+b.JSC$20103_value_+"`"+typeof b.JSC$20103_value_)};
pV.prototype.string=function(b){return arguments.length==0?J0P(this):eU2(this,b)};
var eU2=function(b,h){var y;return(y=CK2(b))!=null?y:h},J0P=function(b){var h=CK2(b);
h===null&&ULF(b);return h},CK2=function(b){var h=b.JSC$20103_value_;
if(h==null)return null;if(typeof h==="string")return h;throw pyA(b,"string");};
pV.prototype.bool=function(b){if(arguments.length==0){var h=this.optionalBool();h===null&&ULF(this)}else{var y;h=(y=this.optionalBool())!=null?y:b}return h};
pV.prototype.optionalBool=function(){var b=this.JSC$20103_value_;if(b==null)return null;if(typeof b==="boolean")return b;if(typeof b==="string"){b=b.toLowerCase();if(b==="true"||b==="1")return!0;if(b==="false"||b==="0")return!1}throw pyA(this,"boolean");};
pV.prototype.number=function(b){if(arguments.length==0){var h=gX2(this);h===null&&ULF(this)}else h=szY(this,b);return h};
var szY=function(b,h){var y;return(y=gX2(b))!=null?y:h},gX2=function(b){var h=b.JSC$20103_value_;
if(h==null)return null;if(typeof h==="number")return h;if(typeof h==="string"){var y=Number(h);if(!isNaN(y)&&(y!==0||h.trim().length!==0))return y}throw pyA(b,"number");};
pV.prototype.toString=function(){return J0P(this)};
pV.prototype.enum=function(b,h){var y=!0,S=void 0,F;for(F in b){var a=b[F];y&&(y=!1,S=typeof a==="number"?szY(this,h):eU2(this,h));if(a==S)return S}JSON.stringify(b);return S};
pV.prototype.array=function(b){if(arguments.length==0){var h=YNN(this);h===null&&ULF(this);return h}h=YNN(this);return h==null?b:h};
var YNN=function(b){var h=b.JSC$20103_value_;if(h==null)return null;Array.isArray(h)||(typeof h!=="string"?h=[h]:(h=h.trim(),h=h==""?[]:h.split(",").map(function(y){return y.trim()})));
return TDE(b,h)},TDE=function(b,h){var y=b.JSC$20103_key_+"[";
return Array.from(h,function(S,F){return new pV(y+F+"]",S)})};
pV.prototype.object=function(b){var h=this.JSC$20103_value_;if(h==null)return b===void 0&&ULF(this),b;if(typeof h==="object"&&h.constructor===Object){b={};var y=this.JSC$20103_key_+".",S;for(S in h)b[S]=new pV(y+S,h[S]);return b}throw pyA(this,"object");};var Jw=function(b){this.list_=G2E(b)},G2E=function(b){if(b instanceof Jw)b=b.list_;
else if(b[0]instanceof Jw){for(var h=new Set,y=0;y<b.length;y++)for(var S=_.L(b[y].list_),F=S.next();!F.done;F=S.next())h.add(F.value);b=h}return[].concat(_.f$(b))};
_.d=Jw.prototype;_.d.each=function(b,h,y){((y===void 0?0:y)?DJf:_.FS)(this.list_,b,h);return this};
_.d.size=function(){return this.list_.length};
_.d.isEmpty=function(){return this.list_.length===0};
_.d.get=function(b){return this.list_[b]||null};
_.d.el=function(){return this.list_[0]||null};
_.d.map=function(b,h){return _.qz(this.list_,b,h)};
_.d.equals=function(b){return this===b||_.bo(this.list_,b.list_)};
_.d.first=function(){return this.list_.length==0?null:new e0(this.list_[0])};
_.d.last=function(){return this.list_.length==0?null:new e0(this.list_[this.list_.length-1])};
_.d.find=function(b){var h=[];this.each(function(y){y=y.querySelectorAll(String(b));for(var S=0;S<y.length;S++)h.push(y[S])});
return new Jw(h)};
_.d.parent=function(){var b=[];this.each(function(h){(h=h.parentElement||null)&&!_.sj(b,h)&&b.push(h)});
return new Jw(b)};
_.d.children=function(){var b=[];this.each(function(h){h=_.xB(h);for(var y=0;y<h.length;y++)b.push(h[y])});
return new Jw(b)};
_.d.filter=function(b){b=_.oX(this.list_,W3N(b));return new Jw(b)};
_.d.closest=function(b){var h=[],y=W3N(b),S=function(F){return _.nK(F)&&y(F)};
this.each(function(F){(F=_.b5(F,S,!0))&&!_.sj(h,F)&&h.push(F)});
return new Jw(h)};
_.d.next=function(b){return k2f(this,_.HDa,b)};
_.d.prev=function(b){return k2f(this,Wbd,b)};
var k2f=function(b,h,y){var S=[];var F=y?W3N(y):A0f;b.each(function(a){(a=h(a))&&F(a)&&S.push(a)});
return new Jw(S)};
Jw.prototype.setClass=function(b){return this.each(function(h){_.KG(h,b)})};
var V12=function(b,h){return b.each(function(y){_.xS(y,h)})},EXx=function(b,h){return b.each(function(y){_.qJ(y,h)})};
Jw.prototype.toggleClass=function(b,h){return h===!0?V12(this,b):h===!1?EXx(this,b):this.each(function(y){_.Zl(y,b)?_.qJ(y,b):_.xS(y,b)})};
Jw.prototype.setText=function(b){return this.each(function(h){_.Qw(h,b)})};
var i0q=function(b){b.each(function(h){h.removeAttribute("aria-hidden")})};
Jw.prototype.getStyle=function(b){if(this.list_.length>0){var h=this.list_[0],y=h.style[_.nx(b)];return typeof y!=="undefined"?y:h.style[_.AgN(h,b)]||""}};
Jw.prototype.getData=function(b){if(this.list_.length===0)return new pV(b,null);var h=p3d(this.list_[0],b);return new pV(b,h)};
Jw.prototype.focus=function(b){try{b?this.el().focus(b):this.el().focus()}catch(h){}return this};
Jw.prototype.click=function(){var b=_.mQ(this.el());if(b.createEvent){var h=b.createEvent("MouseEvents");h.initMouseEvent("click",!0,!0,b.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(h)}else b=b.createEventObject(),b.clientX=0,b.clientY=0,b.screenX=0,b.screenY=0,b.altKey=!1,b.ctrlKey=!1,b.shiftKey=!1,b.button=0,this.el().fireEvent("onclick",b)};
var CV=function(b,h,y,S){function F(K,n,X){var u=n;n&&n.parentNode&&(u=n.cloneNode(!0));K(u,X)}
S=S===void 0?!1:S;if(b.list_.length==1){var a=b.list_[0],P=function(K){return h(K,a)};
y instanceof Jw?y.each(P,void 0,S):Array.isArray(y)?(S?DJf:_.FS)(y,P):P(y);return b}return b.each(function(K){y instanceof Jw?y.each(function(n){F(h,n,K)}):Array.isArray(y)?_.FS(y,function(n){F(h,n,K)}):F(h,y,K)})};
_.d=Jw.prototype;_.d.append=function(b){return CV(this,function(h,y){h&&y.appendChild(h)},b)};
_.d.appendTo=function(b){(new Jw([b])).append(this);return this};
_.d.remove=function(){return CV(this,function(b,h){_.sD(h)},null)};
_.d.empty=function(){return CV(this,function(b,h){_.wX(h)},null)};
_.d.after=function(b,h){return CV(this,function(y,S){y&&_.qM(y,S)},b,!(h===void 0||h))};
_.d.before=function(b){return CV(this,function(h,y){h&&_.l4(h,y)},b)};
_.d.replaceWith=function(b){return CV(this,function(h,y){h&&_.MFo(h,y)},b)};
_.d.toggle=function(b){return this.each(function(h){_.ZC(h,b)})};
_.d.show=function(){return this.toggle(!0)};
_.d.hide=function(){return this.toggle(!1)};
_.d.trigger=function(b,h,y,S){return fhN(this,b,h,y,S)};
var fhN=function(b,h,y,S,F){return b.each(function(a){_.zvU(_.mQ(a)).triggerWizEventInternal(a,h,y,S,F)})},e0=function(b,h){b instanceof Jw&&(h=b.list_,b=null);
this.list_=G2E(b!=null?[b]:h)};
_.Pv(e0,Jw);_.d=e0.prototype;_.d.children=function(){return new Jw(Array.prototype.slice.call(_.xB(this.list_[0])))};
_.d.each=function(b,h){b.call(h,this.list_[0],0);return this};
_.d.size=function(){return 1};
_.d.el=function(){return this.list_[0]};
_.d.first=function(){return this};var gr=function(b,h){h=h===void 0?window:h;this.hostId=b;this.win=h;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$20114_previousHtmlOverscroll=this.JSC$20114_previousBodyOverscroll=this.JSC$20114_previousBodyOverflow="";this.eventTarget=new _.TI;this.win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},qNN=function(b){var h=
wyx(wyx(wyx(new lhA(78),"po"),"hppp"),"hhc");
h.authUser=Number(_.QC("SESSION_INDEX","0"));h.colorScheme=b;return h};
gr.prototype.getOrigin=function(){return this.origin?this.origin:_.RE(_.cR(_.rv(new _.lX,this.win.location.protocol),this.win.location.hostname),this.win.location.port).toString()};
gr.prototype.getTargetOrigin=function(){return _.RE(_.cR(_.rv(new _.lX,this.scheme),this.domain),this.port)};
gr.prototype.preloadIframe=function(b){var h=this;if(this.iframeLoadPromise===void 0){var y=document.createElement("iframe");this.iframe=y;AFN(y,b);this.iframeLoadPromise=new Promise(function(S,F){var a=!1,P=function(K){K.stopPropagation();y.removeEventListener("error",P);y.removeEventListener("securitypolicyviolation",P);F(Error("Hk",{cause:K}))};
y.addEventListener("error",P);y.addEventListener("securitypolicyviolation",P);setTimeout(function(){a||F(Error("Ik"))},3E4);
xLA(h,y,function(){a=!0;y.removeEventListener("error",P);y.removeEventListener("securitypolicyviolation",P);S()})});
QzE(this);b=this.getTargetOrigin().toString();y.setAttribute("allow","camera "+b+"; display-capture "+b);this.parentElement.appendChild(y)}return this.iframeLoadPromise};
var bdf=function(b,h){var y,S;return _.Z(function(F){if(F.nextAddress==1)return y=rFA(getComputedStyle(b.parentElement).direction==="rtl"),b.parentElement.appendChild(y),document.activeElement instanceof HTMLElement&&(b.elementToFocusAfterClose=document.activeElement),_.WE(F,2),F.yield(b.preloadIframe(h),4);if(F.nextAddress!=2){b.parentElement.removeChild(y);b.JSC$20114_previousBodyOverflow=b.parentElement.style.overflow;b.JSC$20114_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
b.JSC$20114_previousBodyOverscroll=b.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";b.parentElement.style.overscrollBehavior="contain";b.parentElement.style.overflow="hidden";var a=b.iframe;a.style.bottom="0";a.style.border="none";a.style.height="100%";a.style.left="0";a.style.position=b.iframePosition;a.style.right="0";a.style.top="0";a.style.width="100%";a.style.zIndex="2202";a.setAttribute("aria-hidden","false");a.setAttribute("aria-modal","true");
b.opened=!0;mLF(b);return _.Lz(F,0)}S=_.C$(F);b.parentElement.removeChild(y);IAx(b.isDarkTheme());vXf(b,!1);throw Error("Jk",{cause:S});})},vXf=function(b,h){h=h===void 0?!0:h;
b.iframe!==void 0&&(hGf(b),document.documentElement.style.overscrollBehavior=b.JSC$20114_previousHtmlOverscroll,b.parentElement.style.overscrollBehavior=b.JSC$20114_previousBodyOverscroll,b.parentElement.style.overflow=b.JSC$20114_previousBodyOverflow,b.elementToFocusAfterClose!==void 0&&(b.elementToFocusAfterClose.focus(),b.elementToFocusAfterClose=void 0),h?QzE(b):(b.parentElement.removeChild(b.iframe),b.iframe=void 0,b.iframeLoadPromise=void 0,b.mainChannel=void 0),b.opened=!1)},hGf=function(b){b.backgroundElementsAriaHiddenIsNull&&
(i0q(b.backgroundElementsAriaHiddenIsNull),b.backgroundElementsAriaHiddenIsNull=void 0);
b.backgroundElementsAriaHiddenIsFalse&&(b.backgroundElementsAriaHiddenIsFalse.each(function(h){h.setAttribute("aria-hidden","false")}),b.backgroundElementsAriaHiddenIsFalse=void 0);
b.backgroundElementsWithoutInert&&(b.backgroundElementsWithoutInert.each(function(h){h.removeAttribute("inert")}),b.backgroundElementsWithoutInert=void 0)},mLF=function(b){b.backgroundElementsAriaHiddenIsNull=(new e0(b.iframe.parentElement)).children().filter(function(h){return h.getAttribute("aria-hidden")===null&&h!==b.iframe});
b.backgroundElementsAriaHiddenIsNull.each(function(h){h.setAttribute("aria-hidden","true")});
b.backgroundElementsAriaHiddenIsFalse=(new e0(b.iframe.parentElement)).children().filter(function(h){return h.getAttribute("aria-hidden")==="false"&&h!==b.iframe});
b.backgroundElementsAriaHiddenIsFalse.each(function(h){h.setAttribute("aria-hidden","true")});
b.backgroundElementsWithoutInert=(new e0(b.iframe.parentElement)).children().filter(function(h){return!h.hasAttribute("inert")&&h!==b.iframe});
b.backgroundElementsWithoutInert.each(function(h){h.setAttribute("inert","true")})},QzE=function(b){b=b.iframe;
b.style.bottom="-1000px";b.style.position="fixed";b.style.right="-1000px";b.style.border="";b.style.height="";b.style.left="";b.style.top="";b.style.width="";b.style.zIndex="";b.setAttribute("aria-hidden","true");b.setAttribute("aria-modal","false")};
gr.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var lhA=function(b,h){gr.call(this,jzN[b],h);this.options=[];this.style=""};
_.z(lhA,gr);var yJY=function(b){b.style="youtube";return b},SGE=function(b,h){b.eventTarget.listen(O0X,h);
return b},FxE=function(b,h){b.eventTarget.listen(H0X,h);
return b},wyx=function(b,h){b.options.push(h);
return b},a4f=function(b){var h=[b.getOrigin()];
b.ancestorOrigins&&h.push.apply(h,_.f$(b.ancestorOrigins));var y=new _.lX(b.win.location.href),S=b.startUrl?b.startUrl:b.options.includes("po")?"profile-picture/art":"profile-picture";h=Tva(_.zS(b.getTargetOrigin(),S),"origin",h);b.startUrl&&_.Ka(h,"startPath",b.startUrl);b.authUser>0&&_.Ka(h,"authuser",b.authUser);b.pageId!==void 0&&_.Ka(h,"pageId",b.pageId);_.Ka(h,"hostId",b.hostId);b.jsMode!==void 0&&_.Ka(h,"jsmode",b.jsMode);b.rectangleRatio!==void 0&&_.Ka(h,"rectangleRatio",b.rectangleRatio);
b.options.length>0&&_.Ka(h,"opts",b.options.join(","));try{for(var F=_.L(["utm_source","utm_medium","utm_campaign","utm_content"]),a=F.next();!a.done;a=F.next()){var P=a.value;_.Ps(y,P)&&_.Ka(h,P,_.Ps(y,P))}var K,n=(K=b.hl)!=null?K:_.Ps(y,"hl");n!==void 0&&_.Ka(h,"hl",n)}catch(X){if(!(X instanceof URIError))throw X;}b.colorScheme&&_.Ka(h,"theme",b.colorScheme);b.style&&_.Ka(h,"style",b.style);return h},dbY=function(b,h){b.mainChannel=_.Hq({destination:b.win,
iframe:h,origin:b.getTargetOrigin().toString(),channelName:"ow",onMessage:function(y){y=oXx(y.data);if(h===b.iframe)switch(_.sV(y,1)){case 1:b.eventTarget.dispatchEvent(new c0q);vXf(b);break;case 2:b.eventTarget.dispatchEvent(new t12(_.gQ(y,4),_.gQ(y,2),_.sV(y,5),_.cL(y,PKF,6)));break;case 0:var S;b.eventTarget.dispatchEvent(new r0F(_.gQ(y,2),(S=_.sV(y,3))!=null?S:0));break;case 3:b.eventTarget.dispatchEvent(new c0q(!0));vXf(b,!1);break;case 4:b.eventTarget.dispatchEvent(new RUX)}}})},xLA=function(b,
h,y){_.Hq({destination:b.win,
iframe:h,origin:_.RE(_.cR(_.rv(new _.lX,b.scheme),b.domain),b.port).toString(),channelName:"owi",onMessage:function(S){h===b.iframe&&(y!==void 0&&y(),dbY(b,h),b.opened&&b.mainChannel.send(Xy2(nXP())),S.reply(),xLA(b,h))}})};
lhA.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?gr.prototype.preloadIframe.call(this,a4f(this).toString()):this.iframeLoadPromise};
lhA.prototype.openPicker=function(b){var h=this;return _.Z(function(y){if(y.nextAddress==1)return h.startUrl=b?b:h.options.includes("po")?"profile-picture/art":"profile-picture",y.yield(bdf(h,a4f(h).toString()),2);if(h.mainChannel){var S=h.mainChannel,F=S.send;var a=nXP();a=_.kb(a,2,h.startUrl);F.call(S,Xy2(a))}_.g3(y)})};var jDF=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(jDF,_.ZL);_.d=jDF.prototype;_.d.getSize=function(){return ot(this,1)};
_.d.setSize=function(b){return _.V7(this,1,b)};
_.d.getWidth=function(){return ot(this,12)};
_.d.getHeight=function(){return ot(this,13)};
_.d.setCenterCrop=function(b){return _.D9(this,20,b)};
_.d.getHtml=function(){return _.J1(this,4)};
_.d.getToken=function(){return _.Cq(this,24)};
_.d.setToken=function(b){return _.kb(this,24,b)};
_.d.getBackgroundColor=function(){return ot(this,87)};
_.d.hasBackgroundColor=function(){return _.ZE(_.z4(this,87))!=null};
_.d.getStoryboardLevel=function(){return ot(this,109)};var ss=function(b){this.JSC$20122_value_=void 0;this.childNodes_={};if(b){var h=_.jhw(b);b=_.t7(b);for(var y=0;y<h.length;y++)this.set(h[y],b[y])}};
ss.prototype.set=function(b,h){$bN(this,b,h,!1)};
ss.prototype.add=function(b,h){$bN(this,b,h,!0)};
var $bN=function(b,h,y,S){for(var F=0;F<h.length;F++){var a=h.charAt(F);b.childNodes_[a]||(b.childNodes_[a]=new ss);b=b.childNodes_[a]}if(S&&b.JSC$20122_value_!==void 0)throw Error("Kk`"+h);b.JSC$20122_value_=y},LxA=function(b,h){for(var y=0;y<h.length;y++)if(b=b.childNodes_[h.charAt(y)],!b)return;
return b};
ss.prototype.get=function(b){return(b=LxA(this,b))?b.JSC$20122_value_:void 0};
ss.prototype.getValues=function(){var b=[];Pga(this,b);return b};
var Pga=function(b,h){b.JSC$20122_value_!==void 0&&h.push(b.JSC$20122_value_);for(var y in b.childNodes_)Pga(b.childNodes_[y],h)};
ss.prototype.getKeys=function(b){var h=[];if(b){for(var y=this,S=0;S<b.length;S++){var F=b.charAt(S);if(!y.childNodes_[F])return[];y=y.childNodes_[F]}Kx2(y,b,h)}else Kx2(this,"",h);return h};
var Kx2=function(b,h,y){b.JSC$20122_value_!==void 0&&y.push(h);for(var S in b.childNodes_)Kx2(b.childNodes_[S],h+S,y)};
_.d=ss.prototype;_.d.containsKey=function(b){return this.get(b)!==void 0};
_.d.containsValue=function(b){if(this.JSC$20122_value_===b)return!0;for(var h in this.childNodes_)if(this.childNodes_[h].containsValue(b))return!0;return!1};
_.d.clear=function(){this.childNodes_={};this.JSC$20122_value_=void 0};
_.d.remove=function(b){for(var h=this,y=[],S=0;S<b.length;S++){var F=b.charAt(S);if(!h.childNodes_[F])throw Error("Lk`"+b);y.push([h,F]);h=h.childNodes_[F]}b=h.JSC$20122_value_;for(delete h.JSC$20122_value_;y.length>0;)if(S=y.pop(),h=S[0],S=S[1],h.childNodes_[S].isEmpty())delete h.childNodes_[S];else break;return b};
_.d.clone=function(){return new ss(this)};
_.d.getCount=function(){return eZA(this.getValues())};
_.d.isEmpty=function(){return this.JSC$20122_value_===void 0&&_.lR.isEmpty(this.childNodes_)};var Cqx=function(){if(!ZdA){var b=ZdA=new ss,h;for(h in oNA)b.add(h,oNA[h])}},ZdA,Yi=function(b,h){this.types=b;
this.setters=h},oNA={a:new Yi([3,
0],[function(b,h){_.D9(b,21,h)},
function(b,h){_.V7(b,56,h)}]),
al:new Yi([3],[function(b,h){_.D9(b,74,h)}]),
b:new Yi([3,0],[function(b,h){_.D9(b,23,h)},
function(b,h){_.V7(b,38,h)}]),
ba:new Yi([0],[function(b,h){_.V7(b,85,h)}]),
bc:new Yi([0],[function(b,h){_.V7(b,87,h)}]),
br:new Yi([0],[function(b,h){_.V7(b,86,h)}]),
c:new Yi([3,0],[function(b,h){_.D9(b,2,h)},
function(b,h){_.V7(b,39,h)}]),
cc:new Yi([3],[function(b,h){_.D9(b,51,h)}]),
ci:new Yi([3],[function(b,h){_.D9(b,32,h)}]),
ckm:new Yi([3],[function(b,h){_.D9(b,104,h)}]),
cp:new Yi([0],[function(b,h){_.V7(b,92,h)}]),
cr:new Yi([3],[function(b,h){_.D9(b,108,h)}]),
cv:new Yi([0],[function(b,h){_.V7(b,94,h)}]),
d:new Yi([3],[function(b,h){_.D9(b,3,h)}]),
dc:new Yi([5],[function(b,h){_.kb(b,99,h)}]),
df:new Yi([3],[function(b,h){_.D9(b,80,h)}]),
dv:new Yi([3],[function(b,h){_.D9(b,90,h)}]),
e:new Yi([0],[function(b,h){_.V7(b,15,h)}]),
em:new Yi([0],[function(b,h){_.V7(b,107,h)}]),
f:new Yi([4],[function(b,h){_.kb(b,16,h)}]),
fg:new Yi([3],[function(b,h){_.D9(b,34,h)}]),
fh:new Yi([3],[function(b,h){_.D9(b,30,h)}]),
fm:new Yi([3],[function(b,h){_.D9(b,84,h)}]),
fo:new Yi([2],[function(b,h){_.z6(b,79,_.hX(h))}]),
ft:new Yi([3],[function(b,h){_.D9(b,50,h)}]),
fv:new Yi([3],[function(b,h){_.D9(b,31,h)}]),
g:new Yi([3],[function(b,h){_.D9(b,14,h)}]),
gce:new Yi([4],[function(b,h){_.kb(b,112,h)}]),
gd:new Yi([3],[function(b,h){_.D9(b,83,h)}]),
gm:new Yi([3],[function(b,h){_.D9(b,105,h)}]),
h:new Yi([3,0],[function(b,h){_.D9(b,4,h)},
function(b,h){_.V7(b,13,h)}]),
i:new Yi([3],[function(b,h){_.D9(b,22,h)}]),
ic:new Yi([0],[function(b,h){_.V7(b,71,h)}]),
id:new Yi([3],[function(b,h){_.D9(b,70,h)}]),
il:new Yi([3],[function(b,h){_.D9(b,96,h)}]),
ip:new Yi([3],[function(b,h){_.D9(b,54,h)}]),
iv:new Yi([0],[function(b,h){_.GE(b,75,h)}]),
j:new Yi([1],[function(b,h){h=h==null?h:WId(h);_.z6(b,29,h)}]),
k:new Yi([3,0],[function(b,h){_.D9(b,17,h)},
function(b,h){_.V7(b,42,h)}]),
l:new Yi([0],[function(b,h){_.V7(b,44,h)}]),
lf:new Yi([3],[function(b,h){_.D9(b,65,h)}]),
lo:new Yi([3],[function(b,h){_.D9(b,97,h)}]),
m:new Yi([0],[function(b,h){_.V7(b,63,h)}]),
md:new Yi([3],[function(b,h){_.D9(b,91,h)}]),
mm:new Yi([4],[function(b,h){_.kb(b,81,h)}]),
mo:new Yi([3],[function(b,h){_.D9(b,73,h)}]),
mp:new Yi([0],[function(b,h){_.V7(b,115,h)}]),
mv:new Yi([3],[function(b,h){_.D9(b,66,h)}]),
n:new Yi([3],[function(b,h){b.setCenterCrop(h)}]),
nc:new Yi([3],[function(b,h){_.D9(b,55,h)}]),
nd:new Yi([3],[function(b,h){_.D9(b,53,h)}]),
ng:new Yi([3],[function(b,h){_.D9(b,95,h)}]),
ngm:new Yi([3],[function(b,h){_.D9(b,106,h)}]),
no:new Yi([3],[function(b,h){_.D9(b,37,h)}]),
ns:new Yi([3],[function(b,h){_.D9(b,40,h)}]),
nt0:new Yi([4],[function(b,h){_.kb(b,36,h)}]),
ntm:new Yi([3],[function(b,h){_.D9(b,114,h)}]),
nu:new Yi([3],[function(b,h){_.D9(b,46,h)}]),
nw:new Yi([3],[function(b,h){_.D9(b,48,h)}]),
o:new Yi([1,3],[function(b,h){h=h==null?h:WId(h);_.z6(b,7,h)},
function(b,h){_.D9(b,27,h)}]),
p:new Yi([3,0],[function(b,h){_.D9(b,19,h)},
function(b,h){_.V7(b,43,h)}]),
pa:new Yi([3],[function(b,h){_.D9(b,61,h)}]),
pc:new Yi([0],[function(b,h){_.V7(b,88,h)}]),
pd:new Yi([3],[function(b,h){_.D9(b,60,h)}]),
pf:new Yi([3],[function(b,h){_.D9(b,67,h)}]),
pg:new Yi([3],[function(b,h){_.D9(b,72,h)}]),
pi:new Yi([2],[function(b,h){_.z6(b,76,_.hX(h))}]),
pp:new Yi([3],[function(b,h){_.D9(b,52,h)}]),
pt:new Yi([4],[function(b,h){_.kb(b,111,h)}]),
q:new Yi([4],[function(b,h){_.kb(b,28,h)}]),
r:new Yi([3,0],[function(b,h){_.D9(b,6,h)},
function(b,h){_.V7(b,26,h)}]),
ra:new Yi([3],[function(b,h){_.D9(b,103,h)}]),
rf:new Yi([3],[function(b,h){_.D9(b,100,h)}]),
rg:new Yi([3],[function(b,h){_.D9(b,59,h)}]),
rh:new Yi([3],[function(b,h){_.D9(b,49,h)}]),
rj:new Yi([3],[function(b,h){_.D9(b,57,h)}]),
ro:new Yi([2],[function(b,h){_.z6(b,78,_.hX(h))}]),
rp:new Yi([3],[function(b,h){_.D9(b,58,h)}]),
rw:new Yi([3],[function(b,h){_.D9(b,35,h)}]),
rwa:new Yi([3],[function(b,h){_.D9(b,64,h)}]),
rwu:new Yi([3],[function(b,h){_.D9(b,41,h)}]),
s:new Yi([3,0],[function(b,h){_.D9(b,33,h)},
function(b,h){b.setSize(h)}]),
sb:new Yi([0],[function(b,h){_.V7(b,110,h)}]),
sc:new Yi([0],[function(b,h){_.V7(b,89,h)}]),
sg:new Yi([3],[function(b,h){_.D9(b,82,h)}]),
sl:new Yi([0],[function(b,h){_.V7(b,109,h)}]),
sm:new Yi([3],[function(b,h){_.D9(b,93,h)}]),
t:new Yi([4],[function(b,h){b.setToken(h)}]),
tm:new Yi([3],[function(b,h){_.D9(b,113,h)}]),
u:new Yi([3],[function(b,h){_.D9(b,18,h)}]),
ut:new Yi([3],[function(b,h){_.D9(b,45,h)}]),
v:new Yi([0],[function(b,h){_.V7(b,62,h)}]),
vb:new Yi([0],[function(b,h){_.GE(b,68,h)}]),
vf:new Yi([4],[function(b,h){_.kb(b,102,h)}]),
vl:new Yi([0],[function(b,h){_.GE(b,69,h)}]),
vm:new Yi([3],[function(b,h){_.D9(b,98,h)}]),
w:new Yi([0],[function(b,h){_.V7(b,12,h)}]),
x:new Yi([0],[function(b,h){_.V7(b,9,h)}]),
y:new Yi([0],[function(b,h){_.V7(b,10,h)}]),
ya:new Yi([2],[function(b,h){_.z6(b,77,_.hX(h))}]),
z:new Yi([0],[function(b,h){_.V7(b,11,h)}])};
Cqx.prototype.parse=function(b){var h=new jDF,y=new jDF;if(b=="")b=!0;else{b=b.split("-");for(var S=!0,F=0;F<b.length;F++){var a=b[F];if(a.length==0)S=!1;else{var P=a,K=!1;var n=P;var X=P.charAt(0);X!=X.toLowerCase()&&(K=!0,n=P.charAt(0).toLowerCase()+P.substring(1));var u=ZdA;for(X=1;X<=n.length;++X){var O=u,N=n.substring(0,X);if(N.length==0?O.isEmpty():!LxA(O,N))break}n=X==1?null:(n=u.get(n.substring(0,X-1)))?{option:P.substring(0,X-1),value:P.substring(X-1),signed:K,attributes:n}:null;if(n){P=
[];K=[];X=!1;for(u=0;u<n.attributes.types.length;u++){O=n.attributes.types[u];var t=n.value;N=F;if(n.signed&&O==1)for(var R=t.length;R<12&&N<b.length-1;)t+="-"+b[N+1],R=t.length,++N;else if(O==2)for(;N<b.length-1&&b[N+1].match(/^[\d\.]/);)t+="-"+b[N+1],++N;R=n.attributes.setters[u];t=MSd(this,O)(n.option,t,h,y,R);if(t===null){X=!0;F=N;break}else P.push(O),K.push(t)}if(!X)for(n=0;n<K.length;n++)u=P[n],t=K[n],nNF(this,u)(a,t);S=S&&X}else S=!1}}b=S}return new Xja(h,y,b)};
var Hda=function(b,h,y,S,F,a){F(y,h);b=b.charAt(0);a=a(b==b.toUpperCase());F(S,a)};
_.d=Cqx.prototype;_.d.parseAndSetIntOption_=function(b,h,y,S,F){if(h=="")return 0;isFinite(h)&&(h=String(h));h=typeof h==="string"?/^\s*-?0x/i.test(h)?parseInt(h,16):parseInt(h,10):NaN;if(isNaN(h))return 1;Hda(b,h,y,S,F,Number);return null};
_.d.logIntParseError_=function(){};
_.d.parseAndSetFloatOption_=function(b,h,y,S,F){if(h=="")return 0;var a=Number(h);h=a==0&&_.$U(h)?NaN:a;if(isNaN(h))return 1;Hda(b,h,y,S,F,Number);return null};
_.d.logFloatParseError_=function(){};
_.d.parseAndSetBoolOption_=function(b,h,y,S,F){if(h!="")return 2;Hda(b,!0,y,S,F,Boolean);return null};
_.d.logBoolParseError_=function(){};
_.d.parseAndSetStringOption_=function(b,h,y,S,F){if(h=="")return 0;Hda(b,h,y,S,F,function(a){return a?"1":""});
return null};
_.d.logStringParseError_=function(){};
_.d.parseAndSetUint64Base64Option_=function(b,h,y,S,F){if(h=="")return 0;Hda(b,h,y,S,F,function(a){return a?1:0});
return null};
var MSd=function(b,h){switch(h){case 0:return(0,_.i5)(b.parseAndSetIntOption_,b);case 2:return(0,_.i5)(b.parseAndSetFloatOption_,b);case 3:return(0,_.i5)(b.parseAndSetBoolOption_,b);case 4:return(0,_.i5)(b.parseAndSetStringOption_,b);case 1:return(0,_.i5)(b.parseAndSetUint64Base64Option_,b);default:return function(){}}},nNF=function(b,h){switch(h){case 0:return(0,_.i5)(b.logIntParseError_,b);
case 2:return(0,_.i5)(b.logFloatParseError_,b);case 3:return(0,_.i5)(b.logBoolParseError_,b);case 4:case 1:return(0,_.i5)(b.logStringParseError_,b);default:return function(){}}},Xja=function(b,h,y){this.valueProto_=b;
this.signatureFlagProto_=h;this.JSC$20134_valid_=y};
Xja.prototype.isValid=function(){return this.JSC$20134_valid_};var UDF=function(b){this.JSC$20135_parser_=null;this.JSC$20135_components_=[];this.JSC$20135_parsedOptions_=null;ucP(this,b)},OdE=function(b){b.JSC$20135_parser_==null&&(b.JSC$20135_parser_=new Cqx);
return b.JSC$20135_parser_},ucP=function(b,h){b.JSC$20135_parsedOptions_=h?typeof h==="string"?OdE(b).parse(h):h:OdE(b).parse("")},T0=function(b,h){return b==h?!1:!0};
_.d=UDF.prototype;_.d.JSC$20137_setCrop=function(b){b=b||void 0;var h=this.JSC$20135_parsedOptions_,y=h.valueProto_;T0(b,_.J1(y,2),_.J1(h.signatureFlagProto_,2))&&_.D9(y,2,b);return this};
_.d.JSC$20137_setCircleCrop=function(b){b=b||void 0;var h=this.JSC$20135_parsedOptions_,y=h.valueProto_;T0(b,Zj(y,51),Zj(h.signatureFlagProto_,51))&&_.D9(y,51,b);return this};
_.d.JSC$20137_setImageCrop=function(b){b=b||void 0;var h=this.JSC$20135_parsedOptions_,y=h.valueProto_;T0(b,Zj(y,32),Zj(h.signatureFlagProto_,32))&&_.D9(y,32,b);return this};
_.d.JSC$20137_setHeight=function(b){var h=this.JSC$20135_parsedOptions_,y=h.valueProto_;T0(b,y.getHeight(),h.signatureFlagProto_.getHeight())&&_.V7(y,13,b);return this};
_.d.setCenterCrop=function(b){b=b||void 0;var h=this.JSC$20135_parsedOptions_,y=h.valueProto_;T0(b,_.J1(y,20),_.J1(h.signatureFlagProto_,20))&&y.setCenterCrop(b);return this};
_.d.JSC$20137_setSmartCrop=function(b){b=b||void 0;var h=this.JSC$20135_parsedOptions_,y=h.valueProto_;T0(b,_.J1(y,19),_.J1(h.signatureFlagProto_,19))&&_.D9(y,19,b);return this};
_.d.JSC$20137_setPad=function(b){b=b||void 0;var h=this.JSC$20135_parsedOptions_,y=h.valueProto_;T0(b,Zj(y,60),Zj(h.signatureFlagProto_,60))&&_.D9(y,60,b);return this};
_.d.JSC$20137_setSmartCropUseFace=function(b){b=b||void 0;var h=this.JSC$20135_parsedOptions_,y=h.valueProto_;T0(b,_.J1(y,67),_.J1(h.signatureFlagProto_,67))&&_.D9(y,67,b);return this};
_.d.JSC$20137_setSmartCropNoClip=function(b){b=b||void 0;var h=this.JSC$20135_parsedOptions_,y=h.valueProto_;T0(b,_.J1(y,52),_.J1(h.signatureFlagProto_,52))&&_.D9(y,52,b);return this};
_.d.setSize=function(b){var h=this.JSC$20135_parsedOptions_,y=h.valueProto_;T0(b,y.getSize(),h.signatureFlagProto_.getSize())&&y.setSize(b);return this};
_.d.setToken=function(b){b=b||void 0;var h=this.JSC$20135_parsedOptions_,y=h.valueProto_;T0(b,y.getToken(),h.signatureFlagProto_.getToken())&&y.setToken(b);return this};
_.d.JSC$20137_setWidth=function(b){var h=this.JSC$20135_parsedOptions_,y=h.valueProto_;T0(b,y.getWidth(),h.signatureFlagProto_.getWidth())&&_.V7(y,12,b);return this};
_.d.clearOptions=function(){ucP(this,"");return this};
_.d.build=function(){this.JSC$20135_components_.length=0;var b=this.JSC$20135_parsedOptions_,h=b.valueProto_;b=b.signatureFlagProto_;G0(this,"s",h.getSize(),b.getSize());G0(this,"w",h.getWidth(),b.getWidth());ki(this,"c",_.J1(h,2),_.J1(b,2));ki(this,"d",_.J1(h,3),_.J1(b,3));G0(this,"h",h.getHeight(),b.getHeight());ki(this,"s",Zj(h,33),Zj(b,33));ki(this,"h",h.getHtml(),b.getHtml());ki(this,"p",_.J1(h,19),_.J1(b,19));ki(this,"pp",_.J1(h,52),_.J1(b,52));ki(this,"pf",_.J1(h,67),_.J1(b,67));ki(this,"n",
_.J1(h,20),_.J1(b,20));G0(this,"r",ot(h,26),ot(b,26));ki(this,"r",_.J1(h,6),_.J1(b,6));ki(this,"o",Zj(h,27),Zj(b,27));var y=_.pF(h,7,_.RX);VA(this,"o",y,_.pF(b,7,_.RX));y=_.pF(h,29,_.RX);VA(this,"j",y,_.pF(b,29,_.RX));G0(this,"x",ot(h,9),ot(b,9));G0(this,"y",ot(h,10),ot(b,10));G0(this,"z",ot(h,11),ot(b,11));ki(this,"g",_.J1(h,14),_.J1(b,14));G0(this,"e",ot(h,15),ot(b,15));VA(this,"f",_.Cq(h,16),_.Cq(b,16));ki(this,"k",Zj(h,17),Zj(b,17));ki(this,"u",Zj(h,18),!0);ki(this,"ut",Zj(h,45),!0);ki(this,"i",
Zj(h,22),!0);ki(this,"a",Zj(h,21),Zj(b,21));ki(this,"b",_.J1(h,23),_.J1(b,23));G0(this,"b",ot(h,38),ot(b,38));G0(this,"c",ot(h,39),ot(b,39),16,8);VA(this,"q",_.Cq(h,28),_.Cq(b,28));ki(this,"fh",Zj(h,30),Zj(b,30));ki(this,"fv",Zj(h,31),Zj(b,31));ki(this,"fg",_.J1(h,34),_.J1(b,34));ki(this,"ci",Zj(h,32),Zj(b,32));VA(this,"t",h.getToken(),b.getToken());VA(this,"nt0",_.Cq(h,36),_.Cq(b,36));ki(this,"rw",_.J1(h,35),_.J1(b,35));ki(this,"rwu",_.J1(h,41),_.J1(b,41));ki(this,"rwa",_.J1(h,64),_.J1(b,64));ki(this,
"nw",_.J1(h,48),_.J1(b,48));ki(this,"rh",_.J1(h,49),_.J1(b,49));ki(this,"no",_.J1(h,37),_.J1(b,37));ki(this,"ns",Zj(h,40),Zj(b,40));G0(this,"k",ot(h,42),ot(b,42));G0(this,"p",ot(h,43),ot(b,43));G0(this,"l",ot(h,44),ot(b,44));G0(this,"v",ot(h,62),ot(b,62));ki(this,"nu",Zj(h,46),Zj(b,46));ki(this,"ft",Zj(h,50),Zj(b,50));ki(this,"cc",Zj(h,51),Zj(b,51));ki(this,"nd",Zj(h,53),Zj(b,53));ki(this,"ip",Zj(h,54),Zj(b,54));ki(this,"nc",Zj(h,55),Zj(b,55));G0(this,"a",ot(h,56),ot(b,56));ki(this,"rj",Zj(h,57),
Zj(b,57));ki(this,"rp",Zj(h,58),Zj(b,58));ki(this,"rg",Zj(h,59),Zj(b,59));ki(this,"pd",Zj(h,60),Zj(b,60));ki(this,"pa",Zj(h,61),Zj(b,61));G0(this,"m",ot(h,63),ot(b,63));G0(this,"vb",MN(h,68),MN(b,68));G0(this,"vl",MN(h,69),MN(b,69));ki(this,"lf",Zj(h,65),Zj(b,65));ki(this,"mv",Zj(h,66),Zj(b,66));ki(this,"id",Zj(h,70),Zj(b,70));G0(this,"ic",ot(h,71),!0);ki(this,"pg",_.J1(h,72),_.J1(b,72));ki(this,"mo",Zj(h,73),Zj(b,73));ki(this,"al",Zj(h,74),Zj(b,74));G0(this,"iv",MN(h,75),MN(b,75));G0(this,"pi",nV(h,
76),nV(b,76));G0(this,"ya",nV(h,77),nV(b,77));G0(this,"ro",nV(h,78),nV(b,78));G0(this,"fo",nV(h,79),nV(b,79));ki(this,"df",Zj(h,80),Zj(b,80));VA(this,"mm",_.Cq(h,81),_.Cq(b,81));ki(this,"sg",Zj(h,82),Zj(b,82));ki(this,"gd",Zj(h,83),Zj(b,83));ki(this,"fm",Zj(h,84),Zj(b,84));G0(this,"ba",ot(h,85),ot(b,85));G0(this,"br",ot(h,86),ot(b,86));G0(this,"bc",h.getBackgroundColor(),b.getBackgroundColor(),16,8);G0(this,"pc",ot(h,88),ot(b,88),16,8);G0(this,"sc",ot(h,89),ot(b,89),16,8);ki(this,"dv",Zj(h,90),Zj(b,
90));ki(this,"md",Zj(h,91),Zj(b,91));G0(this,"cp",ot(h,92),ot(b,92));ki(this,"sm",Zj(h,93),Zj(b,93));G0(this,"cv",ot(h,94),ot(b,94));ki(this,"ng",Zj(h,95),Zj(b,95));ki(this,"il",Zj(h,96),Zj(b,96));ki(this,"lo",Zj(h,97),Zj(b,97));ki(this,"vm",Zj(h,98),Zj(b,98));VA(this,"dc",_.Cq(h,99),_.Cq(b,99));ki(this,"rf",Zj(h,100),Zj(b,100));VA(this,"vf",_.Cq(h,102),_.Cq(b,102));ki(this,"ra",_.J1(h,103),_.J1(b,103));ki(this,"ckm",Zj(h,104),Zj(b,104));ki(this,"gm",Zj(h,105),Zj(b,105));ki(this,"ngm",Zj(h,106),Zj(b,
106));G0(this,"em",ot(h,107),ot(b,107));ki(this,"cr",Zj(h,108),Zj(b,108));G0(this,"sl",h.getStoryboardLevel(),b.getStoryboardLevel());G0(this,"sb",ot(h,110),ot(b,110));VA(this,"pt",_.Cq(h,111),_.Cq(b,111));VA(this,"gce",_.Cq(h,112),_.Cq(b,112));ki(this,"tm",Zj(h,113),Zj(b,113));ki(this,"ntm",Zj(h,114),Zj(b,114));G0(this,"mp",ot(h,115),ot(b,115));return this.JSC$20135_components_.join("-")};
var G0=function(b,h,y,S,F,a){if(y!=null){var P=F==void 0||F!=10&&F!=16?10:F;y=Number(y).toString(P);F=new qQf;F.append(P==16?"0x":"");P=F.append;a==void 0?a="":(a-=y.length,a=a<=0?"":(0,_.ykG)("0",a));P.call(F,a);F.append(y);Ncd(b,h,F.toString(),!!Number(S))}},ki=function(b,h,y,S){y&&Ncd(b,h,"",!!S)},VA=function(b,h,y,S){y&&Ncd(b,h,String(y),!!Number(S))},Ncd=function(b,h,y,S){S&&(h=h.charAt(0).toUpperCase()+h.substring(1));
b.JSC$20135_components_.push(h+y)};_.Pv(Bn,UDF);_.d=Bn.prototype;_.d.JSC$20137_setCrop=function(b){b&&Es(this);return Bn.superClass_.JSC$20137_setCrop.call(this,b)};
_.d.JSC$20137_setHeight=function(b){b=b==null||b<0?void 0:b;b!=null&&this.setSize();return Bn.superClass_.JSC$20137_setHeight.call(this,b)};
_.d.JSC$20137_setImageCrop=function(b){b&&Es(this);return Bn.superClass_.JSC$20137_setImageCrop.call(this,b)};
_.d.JSC$20137_setCircleCrop=function(b){b&&Es(this);return Bn.superClass_.JSC$20137_setCircleCrop.call(this,b)};
_.d.setSize=function(b){_.lf(b)&&(b=Math.max(b.width,b.height));b=b==null||b<0?void 0:b;b!=null&&(this.JSC$20137_setWidth(),this.JSC$20137_setHeight());return Bn.superClass_.setSize.call(this,b)};
_.d.JSC$20137_setSmartCrop=function(b){b&&Es(this);return Bn.superClass_.JSC$20137_setSmartCrop.call(this,b)};
_.d.JSC$20137_setSmartCropNoClip=function(b){b&&Es(this);return Bn.superClass_.JSC$20137_setSmartCropNoClip.call(this,b)};
_.d.JSC$20137_setSmartCropUseFace=function(b){b&&Es(this);return Bn.superClass_.JSC$20137_setSmartCropUseFace.call(this,b)};
_.d.setCenterCrop=function(b){b&&Es(this);return Bn.superClass_.setCenterCrop.call(this,b)};
_.d.JSC$20137_setPad=function(b){b&&Es(this);return Bn.superClass_.JSC$20137_setPad.call(this,b)};
_.d.JSC$20137_setWidth=function(b){b=b==null||b<0?void 0:b;b!=null&&this.setSize();return Bn.superClass_.JSC$20137_setWidth.call(this,b)};
var tSF=function(b){b.clearOptions();var h=b.JSC$20135_parsedOptions_,y=h.valueProto_;T0(!0,_.J1(y,3),_.J1(h.signatureFlagProto_,3))&&_.D9(y,3,!0);return b},Es=function(b){b.setCenterCrop();
b.JSC$20137_setCircleCrop();b.JSC$20137_setCrop();b.JSC$20137_setImageCrop();b.JSC$20137_setPad();b.JSC$20137_setSmartCrop();b.JSC$20137_setSmartCropNoClip();b.JSC$20137_setSmartCropUseFace()};
Bn.prototype.build=function(){var b=this.JSC$20135_parsedOptions_.valueProto_;Zj(b,18)||Zj(b,45)?b.getSize()||this.setSize(0):(b=this.JSC$20135_parsedOptions_.valueProto_,b.getSize()||b.getWidth()||b.getHeight()||(this.setSize(),this.JSC$20137_setHeight(),this.JSC$20137_setWidth(),Es(this)));return Bn.superClass_.build.call(this)};var rJq=/^[^\/]*\/\//,cJN=function(b,h){h=h===void 0?!1:h;this.original_=b;this.originalPrefix_="";(b=this.original_.match(rJq))&&b[0]?(this.originalPrefix_=b[0],b=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):b="http://"+this.original_;this.uri_=_.La(b,!0);this.isFreeformUrl_=h;this.JSC$20141_valid_=!0;this.obfuscated_=!1},RG2=function(b,h){b.JSC$20143_pathPrefix_=b.JSC$20143_pathPrefix_?b.JSC$20143_pathPrefix_+("/"+h):h},iP=function(b){if(b.JSC$20143_components_==
void 0){var h=b.uri_.getPath().substring(1);
b.JSC$20143_pathPrefix_=null;if(b.isFreeformUrl_){b.JSC$20143_components_=[];if((h.match(/=/g)||[]).length>1)return b.JSC$20141_valid_=!1,b.JSC$20143_components_;var y=h.indexOf("=");y!=-1?(b.JSC$20143_components_.push(h.substr(0,y)),b.JSC$20143_components_.push(h.substr(y+1))):b.JSC$20143_components_.push(h);return b.JSC$20143_components_}b.JSC$20143_components_=h.split("/");h=b.JSC$20143_components_.length;h>2&&b.JSC$20143_components_[0]=="u"&&(RG2(b,b.JSC$20143_components_[0]+"/"+b.JSC$20143_components_[1]),
b.JSC$20143_components_.shift(),b.JSC$20143_components_.shift(),h-=2);if(h==0||h==4||h>7)return b.JSC$20141_valid_=!1,b.JSC$20143_components_;if(h==2)RG2(b,b.JSC$20143_components_[0]);else if(b.JSC$20143_components_[0]=="image")RG2(b,b.JSC$20143_components_[0]);else if(h==7||h==3)return b.JSC$20141_valid_=!1,b.JSC$20143_components_;if(h<=3){b.obfuscated_=!0;h==3&&(RG2(b,b.JSC$20143_components_[1]),b.JSC$20143_components_.shift(),--h);--h;y=b.JSC$20143_components_[h];var S=y.indexOf("=");S!=-1&&(b.JSC$20143_components_[h]=
y.substr(0,S),b.JSC$20143_components_.push(y.substr(S+1)))}}return b.JSC$20143_components_};
cJN.prototype.isValid=function(){iP(this);return this.JSC$20141_valid_};
cJN.prototype.isObfuscated=function(){iP(this);return this.obfuscated_};
var zGN=function(b){iP(b);return b.isFreeformUrl_},fV=function(b){iP(b);
b.JSC$20143_pathPrefix_==void 0&&(b.JSC$20143_pathPrefix_=null);return b.JSC$20143_pathPrefix_},Dbf=function(b){switch(iP(b).length){case 7:return!0;
case 6:return fV(b)==null;case 5:return!1;case 3:return!0;case 2:return fV(b)==null;case 1:return!1;default:return!1}},wr=function(b,h){if(zGN(b))a:{switch(h){case 7:h=0;
break;case 4:if(!Dbf(b)){b=null;break a}h=1;break;default:b=null;break a}b=iP(b)[h]}else if(b.isObfuscated())a:{var y=fV(b)!=null?1:0;switch(h){case 6:h=y;break;case 4:if(!Dbf(b)){b=null;break a}h=1+y;break;default:b=null;break a}b=iP(b)[h]}else a:{y=fV(b)!=null?1:0;switch(h){case 0:h=y;break;case 1:h=1+y;break;case 2:h=2+y;break;case 3:h=3+y;break;case 4:if(!Dbf(b)){b=null;break a}h=4+y;break;case 5:h=Dbf(b)?1:0;h=4+y+h;break;default:b=null;break a}b=iP(b)[h]}return b};
cJN.prototype.getOptions=function(){this.options_==void 0&&(this.options_=wr(this,4));return this.options_};var elf=function(){};
elf.prototype.parse=function(b,h){return new pVd(b,h===void 0?!1:h)};
var pVd=function(b,h){cJN.call(this,b,h===void 0?!1:h)};
_.z(pVd,cJN);_.Pv(gGA,Bn);var JFN;gGA.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
gGA.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var b=gGA.superClass_.build.call(this),h=[];fV(this.parsedImageUrl_)!=null&&h.push(fV(this.parsedImageUrl_));var y=zGN(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var S=this.parsedImageUrl_;S.obfuscatedData_==void 0&&(S.obfuscatedData_=wr(S,6));h.push(S.obfuscatedData_+(b?"="+b:""))}else if(y){S=h.push;var F=this.parsedImageUrl_;F.freeformUrlPath_===void 0&&(F.freeformUrlPath_=
wr(F,7));S.call(h,F.freeformUrlPath_);b&&h.push(b)}else S=h.push,F=this.parsedImageUrl_,F.obfuscatedGaiaId_==void 0&&(F.obfuscatedGaiaId_=wr(F,0)),S.call(h,F.obfuscatedGaiaId_),S=h.push,F=this.parsedImageUrl_,F.photoId_==void 0&&(F.photoId_=wr(F,1)),S.call(h,F.photoId_),S=h.push,F=this.parsedImageUrl_,F.imageVersion_==void 0&&(F.imageVersion_=wr(F,2)),S.call(h,F.imageVersion_),S=h.push,F=this.parsedImageUrl_,F.signature_==void 0&&(F.signature_=wr(F,3)),S.call(h,F.signature_),b&&h.push(b),b=h.push,
S=this.parsedImageUrl_,S.filename_==void 0&&(S.filename_=wr(S,5)),b.call(h,S.filename_);h=y?h.join("="):h.join("/");h=_.La(this.protocolPrefix_+this.JSC$20149_domain_+"/"+h+(this.JSC$20149_query_?"?"+this.JSC$20149_query_:"")).toString();h.startsWith("%3a//")&&(h=h.replace("%3a//","://"));return h};var I4Y=_.bm(["viewBox"]),BcE=_.bm(["width"]),Wxx=_.bm(["height"]),AJX=_.bm(["fill"]),UbY=_.bm(["id"]),pjN=_.bm(["x"]),JJE=_.bm(["y"]);srF.prototype.getLength=function(){return this.parsedData.length};
srF.prototype.write=function(b){for(var h=0,y=this.parsedData.length;h<y;h++)b.put(this.parsedData[h],8)};
var iwY=function(b,h){var y=new srF(h);b.dataList.push(y);y=b.errorCorrectLevel;var S=1,F=encodeURI(h).toString().replace(/%[0-9a-fA-F]{2}/g,"a");h=F.length+(F.length!=h?3:0);F=0;for(var a=lP.length;F<=a;F++){var P=0;switch(y){case 1:P=lP[F][0];break;case 0:P=lP[F][1];break;case 3:P=lP[F][2];break;case 2:P=lP[F][3]}if(h<=P)break;else S++}if(S>lP.length)throw Error("Uk");b.typeNumber=S;b.dataCache=null};
YoP.prototype.isDark=function(b,h){if(b<0||this.moduleCount<=b||h<0||this.moduleCount<=h)throw Error("Mk`"+b+"`"+h);return this.modules[b][h]};
for(var fAA=function(b,h,y){b.moduleCount=b.typeNumber*4+17;b.modules=Array(b.moduleCount);for(var S=0;S<b.moduleCount;S++){b.modules[S]=Array(b.moduleCount);for(var F=0;F<b.moduleCount;F++)b.modules[S][F]=null}eGa(b,0,0);eGa(b,b.moduleCount-7,0);eGa(b,0,b.moduleCount-7);S=CgA[b.typeNumber-1];for(F=0;F<S.length;F++)for(var a=0;a<S.length;a++){var P=S[F],K=S[a];if(b.modules[P][K]==null)for(var n=-2;n<=2;n++)for(var X=-2;X<=2;X++)b.modules[P+n][K+X]=n==-2||n==2||X==-2||X==2||n==0&&X==0?!0:!1}for(S=
8;S<b.moduleCount-8;S++)b.modules[S][6]==null&&(b.modules[S][6]=S%2==0);for(S=8;S<b.moduleCount-8;S++)b.modules[6][S]==null&&(b.modules[6][S]=S%2==0);S=b.errorCorrectLevel<<3|y;for(F=S<<10;qN(F)-qN(1335)>=0;)F^=1335<<qN(F)-qN(1335);S=(S<<10|F)^21522;for(F=0;F<15;F++)a=!h&&(S>>F&1)==1,F<6?b.modules[F][8]=a:F<8?b.modules[F+1][8]=a:b.modules[b.moduleCount-15+F][8]=a;for(F=0;F<15;F++)a=!h&&(S>>F&1)==1,F<8?b.modules[8][b.moduleCount-F-1]=a:F<9?b.modules[8][15-F-1+1]=a:b.modules[8][15-F-1]=a;b.modules[b.moduleCount-
8][8]=!h;if(b.typeNumber>=7){S=b.typeNumber;for(F=S<<12;qN(F)-qN(7973)>=0;)F^=7973<<qN(F)-qN(7973);S=S<<12|F;for(F=0;F<18;F++)a=!h&&(S>>F&1)==1,b.modules[Math.floor(F/3)][F%3+b.moduleCount-8-3]=a;for(F=0;F<18;F++)a=!h&&(S>>F&1)==1,b.modules[F%3+b.moduleCount-8-3][Math.floor(F/3)]=a}if(b.dataCache==null){F=b.typeNumber;a=b.dataList;h=b.errorCorrectLevel;S=gNA(F,h);if(S==void 0)throw Error("Tk`"+F+"`"+h);P=S.length/3;h=[];for(K=0;K<P;K++){n=S[K*3];X=S[K*3+1];for(var u=S[K*3+2],O=0;O<n;O++)h.push(new TxA(X,
u))}S=new GRP;for(P=0;P<a.length;P++)K=a[P],S.put(K.mode,4),S.put(K.getLength(),sDX(K.mode,F)),K.write(S);for(P=F=0;P<h.length;P++)F+=h[P].dataCount;if(S.length>F*8)throw Error("Nk`"+S.length+"`"+F*8);for(S.length+4<=F*8&&S.put(0,4);S.length%8!=0;)YGF(S,!1);for(;!(S.length>=F*8);){S.put(236,8);if(S.length>=F*8)break;S.put(17,8)}a=F=X=0;P=Array(h.length);K=Array(h.length);for(n=0;n<h.length;n++){O=h[n].dataCount;var N=h[n].totalCount-O;F=Math.max(F,O);a=Math.max(a,N);P[n]=Array(O);for(u=0;u<P[n].length;u++)P[n][u]=
255&S.buffer[u+X];X+=O;u=N;O=new Wn([1],0);for(N=0;N<u;N++)O=O.multiply(new Wn([1,TcX(N)],0));u=O;O=(new Wn(P[n],u.getLength()-1)).mod(u);K[n]=Array(u.getLength()-1);for(u=0;u<K[n].length;u++)N=u+O.getLength()-K[n].length,K[n][u]=N>=0?O.get(N):0}for(u=S=0;u<h.length;u++)S+=h[u].totalCount;S=Array(S);for(u=X=0;u<F;u++)for(n=0;n<h.length;n++)u<P[n].length&&(S[X++]=P[n][u]);for(u=0;u<a;u++)for(n=0;n<h.length;n++)u<K[n].length&&(S[X++]=K[n][u]);b.dataCache=S}h=b.dataCache;S=-1;F=b.moduleCount-1;a=7;P=
0;for(K=b.moduleCount-1;K>0;K-=2)for(K==6&&K--;;){for(n=0;n<2;n++)b.modules[F][K-n]==null&&(X=!1,P<h.length&&(X=(h[P]>>>a&1)==1),Gv2(y,F,K-n)&&(X=!X),b.modules[F][K-n]=X,a--,a==-1&&(P++,a=7));F+=S;if(F<0||b.moduleCount<=F){F-=S;S=-S;break}}},eGa=function(b,h,y){for(var S=-1;S<=7;S++)if(!(h+S<=-1||b.moduleCount<=h+S))for(var F=-1;F<=7;F++)y+F<=-1||b.moduleCount<=y+F||(b.modules[h+S][y+F]=0<=S&&S<=6&&(F==0||F==6)||0<=F&&F<=6&&(S==0||S==6)||2<=S&&S<=4&&2<=F&&F<=4?!0:!1)},wVN=function(b){for(var h=0,
y=0,S=0;S<8;S++){fAA(b,!0,S);
var F=b;for(var a=F.moduleCount,P=0,K=0;K<a;K++)for(var n=0;n<a;n++){for(var X=0,u=F.isDark(K,n),O=-1;O<=1;O++)if(!(K+O<0||a<=K+O))for(var N=-1;N<=1;N++)n+N<0||a<=n+N||(O!=0||N!=0)&&u==F.isDark(K+O,n+N)&&X++;X>5&&(P+=3+X-5)}for(K=0;K<a-1;K++)for(n=0;n<a-1;n++)if(X=0,F.isDark(K,n)&&X++,F.isDark(K+1,n)&&X++,F.isDark(K,n+1)&&X++,F.isDark(K+1,n+1)&&X++,X==0||X==4)P+=3;for(K=0;K<a;K++)for(n=0;n<a-6;n++)F.isDark(K,n)&&!F.isDark(K,n+1)&&F.isDark(K,n+2)&&F.isDark(K,n+3)&&F.isDark(K,n+4)&&!F.isDark(K,n+5)&&
F.isDark(K,n+6)&&(P+=40);for(n=0;n<a;n++)for(K=0;K<a-6;K++)F.isDark(K,n)&&!F.isDark(K+1,n)&&F.isDark(K+2,n)&&F.isDark(K+3,n)&&F.isDark(K+4,n)&&!F.isDark(K+5,n)&&F.isDark(K+6,n)&&(P+=40);for(n=X=0;n<a;n++)for(K=0;K<a;K++)F.isDark(K,n)&&X++;F=P+=Math.abs(100*X/a/a-50)/5*10;if(S==0||h>F)h=F,y=S}return y},CgA=[[],
[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]],qN=function(b){for(var h=0;b!=0;)h++,b>>>=1;return h},Gv2=function(b,h,y){switch(b){case 0:return(h+y)%2==0;
case 1:return h%2==0;case 2:return y%3==0;case 3:return(h+y)%3==0;case 4:return(Math.floor(h/2)+Math.floor(y/3))%2==0;case 5:return h*y%2+h*y%3==0;case 6:return(h*y%2+h*y%3)%2==0;case 7:return(h*y%3+(h+y)%2)%2==0;default:throw Error("Ok`"+b);}},sDX=function(b,h){if(1<=h&&h<10)switch(b){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("Pk`"+b);}else if(h<27)switch(b){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("Pk`"+b);}else if(h<41)switch(b){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("Pk`"+b);}else throw Error("Qk`"+h);},VSx=function(b){if(b<1)throw Error("Rk`"+b);
return kvd[b]},TcX=function(b){for(;b<0;)b+=255;
for(;b>=256;)b-=255;return xi[b]},xi=Array(256),kvd=Array(256),ENa=0;ENa<8;ENa++)xi[ENa]=1<<ENa;
for(var QA=8;QA<256;QA++)xi[QA]=xi[QA-4]^xi[QA-5]^xi[QA-6]^xi[QA-8];for(var idA=0;idA<255;idA++)kvd[xi[idA]]=idA;Wn.prototype.get=function(b){return this.num[b]};
Wn.prototype.getLength=function(){return this.num.length};
Wn.prototype.multiply=function(b){for(var h=Array(this.getLength()+b.getLength()-1),y=0;y<this.getLength();y++)for(var S=0;S<b.getLength();S++)h[y+S]^=TcX(VSx(this.get(y))+VSx(b.get(S)));return new Wn(h,0)};
Wn.prototype.mod=function(b){if(this.getLength()-b.getLength()<0)return this;for(var h=VSx(this.get(0))-VSx(b.get(0)),y=Array(this.getLength()),S=0;S<this.getLength();S++)y[S]=this.get(S);for(S=0;S<b.getLength();S++)y[S]^=TcX(VSx(b.get(S))+h);return(new Wn(y,0)).mod(b)};
var f4F=[[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]],gNA=function(b,h){switch(h){case 1:return f4F[(b-1)*4];case 0:return f4F[(b-1)*4+1];case 3:return f4F[(b-1)*4+2];case 2:return f4F[(b-1)*4+3]}};
GRP.prototype.get=function(b){return(this.buffer[Math.floor(b/8)]>>>7-b%8&1)==1};
GRP.prototype.put=function(b,h){for(var y=0;y<h;y++)YGF(this,(b>>>h-y-1&1)==1)};
var YGF=function(b,h){var y=Math.floor(b.length/8);b.buffer.length<=y&&b.buffer.push(0);h&&(b.buffer[y]|=128>>>b.length%8);b.length++},lP=[[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]],EGP=function(){var b=function(h,y){this.JSC$20169__el=h;this.JSC$20169__htOption=y};
b.prototype.draw=function(h){function y(u,O){u=document.createElementNS("http://www.w3.org/2000/svg",u);for(var N in O)O.hasOwnProperty(N)&&(N==="href"?_.lTf(u,O[N]):_.n$([_.r1(I4Y),_.r1(BcE),_.r1(Wxx),_.r1(AJX),_.r1(UbY),_.r1(pjN),_.r1(JJE)],u,N,O[N]));return u}
var S=this.JSC$20169__htOption,F=this.JSC$20169__el,a=h.moduleCount;this.clear();var P=y("svg",{viewBox:"0 0 "+String(a)+" "+String(a),width:"100%",height:"100%",fill:S.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});F.appendChild(P);P.appendChild(y("rect",{fill:S.colorLight,width:"100%",height:"100%"}));P.appendChild(y("rect",{fill:S.colorDark,width:"1",height:"1",id:"template"}));for(var K=0;K<a;K++)for(var n=0;n<a;n++)if(h.isDark(K,n)){var X=y("use",{x:String(K),y:String(n),href:"#template"});
P.appendChild(X)}};
b.prototype.clear=function(){for(;this.JSC$20169__el.hasChildNodes();)this.JSC$20169__el.removeChild(this.JSC$20169__el.lastChild)};
return b}(),VDd=document.documentElement.tagName.toLowerCase()==="svg"?EGP:typeof CanvasRenderingContext2D!="undefined"?function(){var b=function(h,y){this._bIsPainted=!1;
kRY();this.JSC$20169__htOption=y;this._elCanvas=document.createElement("canvas");this._elCanvas.width=y.width;this._elCanvas.height=y.height;h.appendChild(this._elCanvas);this.JSC$20169__el=h;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$20169__el.appendChild(this._elImage);this._bSupportDataURI=null};
b.prototype._onMakeImage=function(){var h=this._elCanvas.toDataURL("image/png");this._elImage.src=h;this._elImage.style.display="block";this._elCanvas.style.display="none"};
b.prototype._safeSetDataURI=function(h,y){var S=this;S._fFail=y;S._fSuccess=h;S._bSupportDataURI===null?(h=_.gB("IMG"),y=function(){S._bSupportDataURI=!1;S._fFail&&S._fFail.call(S)},h.onabort=y,h.onerror=y,h.onload=function(){S._bSupportDataURI=!0;
S._fSuccess&&S._fSuccess.call(S)},h.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):S._bSupportDataURI===!0&&S._fSuccess?S._fSuccess.call(S):S._bSupportDataURI===!1&&S._fFail&&S._fFail.call(S)};
b.prototype.draw=function(h){var y=this._oContext,S=this.JSC$20169__htOption,F=h.moduleCount,a=S.width/F,P=S.height/F,K=Math.round(a),n=Math.round(P);this._elImage.style.display="none";this.clear();for(var X=0;X<F;X++)for(var u=0;u<F;u++){var O=h.isDark(X,u),N=u*a,t=X*P;y.strokeStyle=O?S.colorDark:S.colorLight;y.lineWidth=1;y.fillStyle=O?S.colorDark:S.colorLight;y.fillRect(N,t,a,P);y.strokeRect(Math.floor(N)+.5,Math.floor(t)+.5,K,n);y.strokeRect(Math.ceil(N)-.5,Math.ceil(t)-.5,K,n)}this._bIsPainted=
!0};
b.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
b.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
b.prototype.round=function(h){return h?Math.floor(h*1E3)/1E3:h};
return b}():function(){var b=function(h,y){this.JSC$20169__el=h;
this.JSC$20169__htOption=y};
b.prototype.draw=function(h){for(var y=this.JSC$20169__htOption,S=this.JSC$20169__el,F=h.moduleCount,a=Math.floor(y.width/F),P=Math.floor(y.height/F),K=['<table style="border:0;border-collapse:collapse;">'],n=0;n<F;n++){K.push("<tr>");for(var X=0;X<F;X++)K.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+a+"px;height:"+P+"px;background-color:"+(h.isDark(n,X)?y.colorDark:y.colorLight)+';"></td>');K.push("</tr>")}K.push("</table>");h=K.join("");h=_.fFP(_.lFW,h);_.M5(S,h);
h=S.childNodes[0];F=(y.width-h.offsetWidth)/2;a=(y.height-h.offsetHeight)/2;F>0&&a>0&&(h.style.margin=a+"px "+F+"px")};
b.prototype.clear=function(){this.JSC$20169__el.textContent=""};
return b}();
lAA.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$20172__android||this.JSC$20172__android>=3)&&this._oDrawing.makeImage()};
lAA.prototype.clear=function(){this._oDrawing.clear()};
_.S5.QRCode=lAA;var wjd={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var l4f=function(){};
l4f.prototype.stringify=function(b){return _.S5.JSON.stringify(b,void 0)};
l4f.prototype.parse=function(b){return _.S5.JSON.parse(b,void 0)};var qG2=function(){_.eW.call(this,"z")};
_.Pv(qG2,_.eW);var xbf=function(){_.eW.call(this,"y")};
_.Pv(xbf,_.eW);var QDY=null,mbd=function(){return QDY=QDY||new _.TI},vNA=function(b){_.eW.call(this,"serverreachability",b)};
_.Pv(vNA,_.eW);var beA=function(b){var h=mbd();h.dispatchEvent(new vNA(h,b))},h4f=function(b,h){_.eW.call(this,"statevent",b);
this.stat=h};
_.Pv(h4f,_.eW);var mR=function(b){var h=mbd();h.dispatchEvent(new h4f(h,b))},yKP=function(b,h,y,S){_.eW.call(this,"timingevent",b);
this.size=h;this.rtt=y;this.retries=S};
_.Pv(yKP,_.eW);var Std=function(b,h,y){var S=mbd();S.dispatchEvent(new yKP(S,b,h,y))},F0d=function(b,h){if(typeof b!=="function")throw Error("Vk");
return _.S5.setTimeout(function(){b()},h)};var vK=function(){this.redactEnabled_=!0};
vK.prototype.disableRedact=function(){this.redactEnabled_=!1};
var awY=function(b,h,y,S,F,a){b.info(function(){if(b.redactEnabled_)if(a){var P="";for(var K=a.split("&"),n=0;n<K.length;n++){var X=K[n].split("=");if(X.length>1){var u=X[0];X=X[1];var O=u.split("_");P=O.length>=2&&O[1]=="type"?P+(u+"="+X+"&"):P+(u+"=redacted&")}}}else P=null;else P=a;return"XMLHTTP REQ ("+S+") [attempt "+F+"]: "+h+"\n"+y+"\n"+P})},d1F=function(b,h,y,S,F,a,P){b.info(function(){return"XMLHTTP RESP ("+S+") [ attempt "+F+"]: "+h+"\n"+y+"\n"+a+" "+P})},b1=function(b,h,y,S){b.info(function(){return"XMLHTTP TEXT ("+
h+"): "+j$a(b,y)+(S?" "+S:"")})},$1P=function(b,h){b.info(function(){return"TIMEOUT: "+h})};
vK.prototype.debug=function(){};
vK.prototype.info=function(){};
vK.prototype.warning=function(){};
var j$a=function(b,h){if(!b.redactEnabled_)return h;if(!h)return null;try{var y=JSON.parse(h);if(y)for(var S=0;S<y.length;S++)if(Array.isArray(y[S])){var F=y[S];if(!(F.length<2)){var a=F[1];if(Array.isArray(a)&&!(a.length<1)){var P=a[0];if(P!="noop"&&P!="stop"&&P!="close")for(var K=1;K<a.length;K++)a[K]=""}}}return(0,_.Q4)(y)}catch(n){return b.debug("Exception parsing expected JS array - probably was not JS"),h}};var h$=function(b,h,y,S,F){this.JSC$20194_channel_=b;this.JSC$20194_channelDebug_=h;this.sid_=y;this.JSC$20194_rid_=S;this.JSC$20194_retryId_=F||1;this.JSC$20194_eventHandler_=new _.B_(this);this.timeout_=45E3;this.JSC$20194_extraHeaders_=null;this.JSC$20194_successful_=!1;this.JSC$20194_postData_=this.JSC$20194_requestUri_=this.JSC$20194_baseUri_=this.JSC$20194_type_=this.JSC$20194_requestStartTime_=this.JSC$20194_watchDogTimeoutTime_=this.JSC$20194_watchDogTimerId_=null;this.JSC$20194_pendingMessages_=
[];this.JSC$20194_xmlHttp_=null;this.JSC$20194_xmlHttpChunkStart_=0;this.JSC$20194_lastError_=this.JSC$20194_verb_=null;this.JSC$20194_lastStatusCode_=-1;this.JSC$20194_cancelled_=!1;this.JSC$20194_readyStateChangeThrottleMs_=0;this.JSC$20194_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new L0X},L0X=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},PuP=function(b,h){switch(b){case 0:return"Non-200 return code ("+h+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},K0A={},Zef={};
h$.prototype.setTimeout=function(b){this.timeout_=b};
var MmP=function(b,h,y){b.JSC$20194_type_=1;b.JSC$20194_baseUri_=_.Uw(h.clone());b.JSC$20194_postData_=y;b.decodeChunks_=!0;o9f(b,null)},o9f=function(b,h){b.JSC$20194_requestStartTime_=Date.now();
n9f(b);b.JSC$20194_requestUri_=b.JSC$20194_baseUri_.clone();Tva(b.JSC$20194_requestUri_,"t",b.JSC$20194_retryId_);b.JSC$20194_xmlHttpChunkStart_=0;var y=b.JSC$20194_channel_.JSC$20213_supportsCrossDomainXhrs_;b.fetchResponseState_=new L0X;b.JSC$20194_xmlHttp_=XPX(b.JSC$20194_channel_,y?h:null,!b.JSC$20194_postData_);b.JSC$20194_readyStateChangeThrottleMs_>0&&(b.JSC$20194_readyStateChangeThrottle_=new _.MG((0,_.i5)(b.JSC$20198_xmlHttpHandler_,b,b.JSC$20194_xmlHttp_),b.JSC$20194_readyStateChangeThrottleMs_));
b.JSC$20194_eventHandler_.listen(b.JSC$20194_xmlHttp_,"readystatechange",b.JSC$20198_readyStateChangeHandler_);h=b.JSC$20194_extraHeaders_?_.lR.clone(b.JSC$20194_extraHeaders_):{};b.JSC$20194_postData_?(b.JSC$20194_verb_||(b.JSC$20194_verb_="POST"),h["Content-Type"]="application/x-www-form-urlencoded",b.JSC$20194_xmlHttp_.send(b.JSC$20194_requestUri_,b.JSC$20194_verb_,b.JSC$20194_postData_,h)):(b.JSC$20194_verb_="GET",b.JSC$20194_xmlHttp_.send(b.JSC$20194_requestUri_,b.JSC$20194_verb_,null,h));beA(1);
awY(b.JSC$20194_channelDebug_,b.JSC$20194_verb_,b.JSC$20194_requestUri_,b.JSC$20194_rid_,b.JSC$20194_retryId_,b.JSC$20194_postData_)};
h$.prototype.JSC$20198_readyStateChangeHandler_=function(b){b=b.target;var h=this.JSC$20194_readyStateChangeThrottle_;h&&_.bD(b)==3?(this.JSC$20194_channelDebug_.debug("Throttling readystatechange."),h.fire()):this.JSC$20198_xmlHttpHandler_(b)};
h$.prototype.JSC$20198_xmlHttpHandler_=function(b){try{b==this.JSC$20194_xmlHttp_?He2(this):this.JSC$20194_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(h){this.JSC$20194_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),uBX(this)}finally{}};
var He2=function(b){var h=_.bD(b.JSC$20194_xmlHttp_),y=b.JSC$20194_xmlHttp_.JSC$9979_lastErrorCode_,S=b.JSC$20194_xmlHttp_.getStatus();if(!(h<3||h==3&&!uBX(b))){b.JSC$20194_cancelled_||h!=4||y==7||(y==8||S<=0?beA(3):beA(2));OeA(b);var F=b.JSC$20194_xmlHttp_.getStatus();b.JSC$20194_lastStatusCode_=F;y=Naq(b);uBX(b)||b.JSC$20194_channelDebug_.debug(function(){return"No response text for uri "+b.JSC$20194_requestUri_+" status "+F});
b.JSC$20194_successful_=F==200;d1F(b.JSC$20194_channelDebug_,b.JSC$20194_verb_,b.JSC$20194_requestUri_,b.JSC$20194_rid_,b.JSC$20194_retryId_,h,F);if(b.JSC$20194_successful_){if(b.decodeInitialResponse_&&!b.initialResponseDecoded_)if(S=tmd(b))b1(b.JSC$20194_channelDebug_,b.JSC$20194_rid_,S,"Initial handshake response via X-HTTP-Initial-Response"),b.initialResponseDecoded_=!0,rKA(b,S);else{b.JSC$20194_successful_=!1;b.JSC$20194_lastError_=3;mR(12);b.JSC$20194_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
b.JSC$20194_rid_+")");ys(b);cKd(b);return}b.decodeChunks_?R4A(b,h,y):(b1(b.JSC$20194_channelDebug_,b.JSC$20194_rid_,y,null),rKA(b,y));h==4&&ys(b);b.JSC$20194_successful_&&!b.JSC$20194_cancelled_&&(h==4?z4f(b.JSC$20194_channel_,b):(b.JSC$20194_successful_=!1,n9f(b)))}else sEN(b.JSC$20194_xmlHttp_),F==400&&y.indexOf("Unknown SID")>0?(b.JSC$20194_lastError_=3,mR(12),b.JSC$20194_channelDebug_.warning("XMLHTTP Unknown SID ("+b.JSC$20194_rid_+")")):(b.JSC$20194_lastError_=0,mR(13),b.JSC$20194_channelDebug_.warning("XMLHTTP Bad status "+
F+" ("+b.JSC$20194_rid_+")")),ys(b),cKd(b)}},tmd=function(b){return b.JSC$20194_xmlHttp_&&(b=Dnd(b.JSC$20194_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.$U(b)?b:null},Naq=function(b){if(!D1A(b))return b.JSC$20194_xmlHttp_.getResponseText();
var h=b.JSC$20194_xmlHttp_.getResponse();if(h==="")return"";var y="",S=h.length,F=_.bD(b.JSC$20194_xmlHttp_)==4;if(!b.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return ys(b),cKd(b),"";b.fetchResponseState_.textDecoder=new _.S5.TextDecoder}for(var a=0;a<S;a++)b.fetchResponseState_.responseArrivedForFetch=!0,y+=b.fetchResponseState_.textDecoder.decode(h[a],{stream:!(F&&a==S-1)});h.length=0;b.fetchResponseState_.responseBuffer+=y;b.JSC$20194_xmlHttpChunkStart_=0;return b.fetchResponseState_.responseBuffer},
uBX=function(b){return b.JSC$20194_xmlHttp_?b.fetchResponseState_.responseArrivedForFetch?!0:!(!b.JSC$20194_xmlHttp_.getResponseText()&&!b.JSC$20194_xmlHttp_.getResponse()):!1},D1A=function(b){return b.JSC$20194_xmlHttp_?b.JSC$20194_verb_=="GET"&&b.JSC$20194_type_!=2&&b.JSC$20194_channel_.usesFetchStreams_:!1},R4A=function(b,h,y){for(var S=!0,F;!b.JSC$20194_cancelled_&&b.JSC$20194_xmlHttpChunkStart_<y.length;)if(F=Iwa(b,y),F==Zef){h==4&&(b.JSC$20194_lastError_=4,mR(14),S=!1);
b1(b.JSC$20194_channelDebug_,b.JSC$20194_rid_,null,"[Incomplete Response]");break}else if(F==K0A){b.JSC$20194_lastError_=4;mR(15);b1(b.JSC$20194_channelDebug_,b.JSC$20194_rid_,y,"[Invalid Chunk]");S=!1;break}else b1(b.JSC$20194_channelDebug_,b.JSC$20194_rid_,F,null),rKA(b,F);D1A(b)&&b.JSC$20194_xmlHttpChunkStart_!=0&&(b.fetchResponseState_.responseBuffer=b.fetchResponseState_.responseBuffer.slice(b.JSC$20194_xmlHttpChunkStart_),b.JSC$20194_xmlHttpChunkStart_=0);h!=4||y.length!=0||b.fetchResponseState_.responseArrivedForFetch||
(b.JSC$20194_lastError_=1,mR(16),S=!1);b.JSC$20194_successful_=b.JSC$20194_successful_&&S;S?y.length>0&&!b.firstByteReceived_&&(b.firstByteReceived_=!0,h=b.JSC$20194_channel_,h.JSC$20213_backChannelRequest_==b&&h.detectBufferingProxy_&&!h.bpDetectionDone_&&(h.JSC$20213_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+y.length),BaA(h),h.bpDetectionDone_=!0,mR(11))):(b1(b.JSC$20194_channelDebug_,b.JSC$20194_rid_,y,"[Invalid Chunked Response]"),ys(b),cKd(b))},Iwa=function(b,
h){var y=b.JSC$20194_xmlHttpChunkStart_,S=h.indexOf("\n",y);
if(S==-1)return Zef;y=Number(h.substring(y,S));if(isNaN(y))return K0A;S+=1;if(S+y>h.length)return Zef;h=h.slice(S,S+y);b.JSC$20194_xmlHttpChunkStart_=S+y;return h};
h$.prototype.cancel=function(){this.JSC$20194_cancelled_=!0;ys(this)};
var n9f=function(b){b.JSC$20194_watchDogTimeoutTime_=Date.now()+b.timeout_;W0E(b,b.timeout_)},W0E=function(b,h){if(b.JSC$20194_watchDogTimerId_!=null)throw Error("Wk");
b.JSC$20194_watchDogTimerId_=F0d((0,_.i5)(b.JSC$20198_onWatchDogTimeout_,b),h)},OeA=function(b){b.JSC$20194_watchDogTimerId_&&(_.S5.clearTimeout(b.JSC$20194_watchDogTimerId_),b.JSC$20194_watchDogTimerId_=null)};
h$.prototype.JSC$20198_onWatchDogTimeout_=function(){this.JSC$20194_watchDogTimerId_=null;var b=Date.now();b-this.JSC$20194_watchDogTimeoutTime_>=0?($1P(this.JSC$20194_channelDebug_,this.JSC$20194_requestUri_),this.JSC$20194_type_!=2&&(beA(3),mR(17)),ys(this),this.JSC$20194_lastError_=2,cKd(this)):(this.JSC$20194_channelDebug_.warning("WatchDog timer called too early"),W0E(this,this.JSC$20194_watchDogTimeoutTime_-b))};
var cKd=function(b){b.JSC$20194_channel_.state_==0||b.JSC$20194_cancelled_||z4f(b.JSC$20194_channel_,b)},ys=function(b){OeA(b);
_.nq(b.JSC$20194_readyStateChangeThrottle_);b.JSC$20194_readyStateChangeThrottle_=null;b.JSC$20194_eventHandler_.removeAll();if(b.JSC$20194_xmlHttp_){var h=b.JSC$20194_xmlHttp_;b.JSC$20194_xmlHttp_=null;h.abort();h.dispose()}};
h$.prototype.getLastError=function(){return this.JSC$20194_lastError_};
var rKA=function(b,h){try{var y=b.JSC$20194_channel_;if(y.state_!=0&&(y.JSC$20213_backChannelRequest_==b||AKA(y.forwardChannelRequestPool_,b)))if(!b.initialResponseDecoded_&&AKA(y.forwardChannelRequestPool_,b)&&y.state_==3){try{var S=y.wireCodec_.JSC$20208_parser_.parse(h)}catch(K){S=null}if(Array.isArray(S)&&S.length==3){h=S;if(h[0]==0)a:if(y.JSC$20213_channelDebug_.debug("Server claims our backchannel is missing."),y.JSC$20213_backChannelTimerId_)y.JSC$20213_channelDebug_.debug("But we are currently starting the request.");
else{if(y.JSC$20213_backChannelRequest_)if(y.JSC$20213_backChannelRequest_.JSC$20194_requestStartTime_+3E3<b.JSC$20194_requestStartTime_)U1A(y),pPf(y);else break a;else y.JSC$20213_channelDebug_.warning("We do not have a BackChannel established");JKf(y);mR(18)}else{y.JSC$20213_lastPostResponseArrayId_=h[1];var F=y.JSC$20213_lastPostResponseArrayId_-y.JSC$20213_lastArrayId_;if(0<F){var a=h[2];y.JSC$20213_channelDebug_.debug(a+" bytes (in "+F+" arrays) are outstanding on the BackChannel");a<37500&&
y.enableStreaming_&&y.JSC$20213_backChannelRetryCount_==0&&!y.JSC$20213_deadBackChannelTimerId_&&(y.JSC$20213_deadBackChannelTimerId_=F0d((0,_.i5)(y.JSC$20215_onBackChannelDead_,y),6E3))}}if(e4f(y.forwardChannelRequestPool_)<=1&&y.forwardChannelFlushedCallback_){try{y.forwardChannelFlushedCallback_()}catch(K){}y.forwardChannelFlushedCallback_=void 0}}else y.JSC$20213_channelDebug_.debug("Bad POST response data returned"),SB(y,11)}else if((b.initialResponseDecoded_||y.JSC$20213_backChannelRequest_==
b)&&U1A(y),!_.$U(h)){var P=y.wireCodec_.JSC$20208_parser_.parse(h);y.onInput_(P,b)}beA(4)}catch(K){}};var Cuf=function(b,h){this.JSC$20201_mapId=b;this.map=h;this.context=null};var g9X=function(b){this.maxPoolSizeConfigured_=b||10;_.S5.PerformanceNavigationTiming?(b=_.S5.performance.getEntriesByType("navigation"),b=b.length>0&&(b[0].nextHopProtocol=="hq"||b[0].nextHopProtocol=="h2")):b=!!(_.S5.chrome&&_.S5.chrome.loadTimes&&_.S5.chrome.loadTimes()&&_.S5.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$20204_maxSize_=b?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$20204_maxSize_>1&&(this.requestPool_=new Set);this.JSC$20204_request_=null;this.JSC$20204_pendingMessages_=
[]},s$F=function(b){return b.JSC$20204_request_?!0:b.requestPool_?b.requestPool_.size>=b.JSC$20204_maxSize_:!1},e4f=function(b){return b.JSC$20204_request_?1:b.requestPool_?b.requestPool_.size:0},AKA=function(b,h){return b.JSC$20204_request_?b.JSC$20204_request_==h:b.requestPool_?b.requestPool_.has(h):!1},YtA=function(b,h){b.requestPool_?b.requestPool_.add(h):b.JSC$20204_request_=h},Taa=function(b,h){b.JSC$20204_request_&&b.JSC$20204_request_==h?b.JSC$20204_request_=null:b.requestPool_&&b.requestPool_.has(h)&&
b.requestPool_.delete(h)};
g9X.prototype.cancel=function(){this.JSC$20204_pendingMessages_=GuN(this);if(this.JSC$20204_request_)this.JSC$20204_request_.cancel(),this.JSC$20204_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var b=_.L(this.requestPool_.values()),h=b.next();!h.done;h=b.next())h.value.cancel();this.requestPool_.clear()}};
var GuN=function(b){if(b.JSC$20204_request_!=null)return b.JSC$20204_pendingMessages_.concat(b.JSC$20204_request_.JSC$20194_pendingMessages_);if(b.requestPool_!=null&&b.requestPool_.size!==0){var h=b.JSC$20204_pendingMessages_;b=_.L(b.requestPool_.values());for(var y=b.next();!y.done;y=b.next())h=h.concat(y.value.JSC$20194_pendingMessages_);return h}return _.Ej(b.JSC$20204_pendingMessages_)},kua=function(b,h){b.JSC$20204_pendingMessages_=b.JSC$20204_pendingMessages_.concat(h)};var VmA=function(b,h){var y=new vK;y.debug("TestLoadImage: loading "+b);if(_.S5.Image){var S=new Image;S.onload=_.X8(FG,y,"TestLoadImage: loaded",!0,h,S);S.onerror=_.X8(FG,y,"TestLoadImage: error",!1,h,S);S.onabort=_.X8(FG,y,"TestLoadImage: abort",!1,h,S);S.ontimeout=_.X8(FG,y,"TestLoadImage: timeout",!1,h,S);_.S5.setTimeout(function(){if(S.ontimeout)S.ontimeout()},1E4);
S.src=b}else h(!1)},E9q=function(b,h){var y=new vK,S=new AbortController,F=setTimeout(function(){S.abort();
FG(y,"TestPingServer: timeout",!1,h)},1E4);
fetch(b,{signal:S.signal}).then(function(a){clearTimeout(F);a.ok?FG(y,"TestPingServer: ok",!0,h):FG(y,"TestPingServer: server error",!1,h)}).catch(function(){clearTimeout(F);
FG(y,"TestPingServer: error",!1,h)})},FG=function(b,h,y,S,F){try{b.debug(h),F&&(F.onload=null,F.onerror=null,F.onabort=null,F.ontimeout=null),S(y)}catch(a){}};var ieA=function(){this.JSC$20208_parser_=new l4f};var fwf=function(b,h,y){return y&&y.internalChannelParams?y.internalChannelParams[b]||h:h},aC=function(b){this.serverVersion_=0;
this.JSC$20213_outgoingMaps_=[];this.JSC$20213_channelDebug_=new vK;this.JSC$20213_hostPrefix_=this.JSC$20213_backChannelUri_=this.JSC$20213_forwardChannelUri_=this.JSC$20213_path_=this.JSC$20213_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$20213_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$20213_extraHeaders_=null;this.JSC$20213_nextMapId_=this.JSC$20213_nextRid_=0;this.JSC$20213_failFast_=fwf("failFast",!1,b);this.enableStreaming_=this.JSC$20213_deadBackChannelTimerId_=
this.JSC$20213_backChannelTimerId_=this.JSC$20213_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$20213_lastPostResponseArrayId_=this.JSC$20213_lastArrayId_=-1;this.JSC$20213_backChannelAttemptId_=this.JSC$20213_backChannelRetryCount_=this.JSC$20213_forwardChannelRetryCount_=0;this.JSC$20213_baseRetryDelayMs_=fwf("baseRetryDelayMs",5E3,b);this.JSC$20213_retryDelaySeedMs_=fwf("retryDelaySeedMs",1E4,b);this.JSC$20213_forwardChannelMaxRetries_=
fwf("forwardChannelMaxRetries",2,b);this.JSC$20213_forwardChannelRequestTimeoutMs_=fwf("forwardChannelRequestTimeoutMs",2E4,b);this.JSC$20213_xmlHttpFactory_=b&&b.xmlHttpFactory||void 0;this.networkTestUrl_=b&&b.networkTestUrl||void 0;this.usesFetchStreams_=b&&b.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$20213_supportsCrossDomainXhrs_=b&&b.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new g9X(b&&b.concurrentRequestLimit);this.wireCodec_=new ieA;
this.fastHandshake_=b&&b.fastHandshake||!1;this.encodeInitMessageHeaders_=b&&b.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$20213_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=b&&b.blockingHandshake||!1;b&&b.disableRedact&&this.JSC$20213_channelDebug_.disableRedact();b&&b.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&
this.allowStreamingMode_&&b&&b.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;b&&b.longPollingTimeout&&b.longPollingTimeout>0&&(this.longPollingTimeout_=b.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
aC.prototype.JSC$20215_channelVersion_=8;aC.prototype.state_=1;
aC.prototype.connect=function(b,h,y,S){this.JSC$20213_channelDebug_.debug("connect()");mR(0);this.JSC$20213_path_=b;this.JSC$20213_extraParams_=h||{};y&&S!==void 0&&(this.JSC$20213_extraParams_.OSID=y,this.JSC$20213_extraParams_.OAID=S);this.enableStreaming_=this.allowStreamingMode_;this.JSC$20213_channelDebug_.debug("connectChannel_()");b=wPE(this,null,this.JSC$20213_path_);this.JSC$20213_channelDebug_.debug("GetForwardChannelUri: "+b);this.JSC$20213_forwardChannelUri_=b;lwN(this)};
aC.prototype.disconnect=function(){this.JSC$20213_channelDebug_.debug("disconnect()");qtq(this);if(this.state_==3){var b=this.JSC$20213_nextRid_++,h=this.JSC$20213_forwardChannelUri_.clone();_.Ka(h,"SID",this.sid_);_.Ka(h,"RID",b);_.Ka(h,"TYPE","terminate");x12(this,h);b=new h$(this,this.JSC$20213_channelDebug_,this.sid_,b);b.JSC$20194_type_=2;b.JSC$20194_baseUri_=_.Uw(h.clone());h=!1;if(_.S5.navigator&&_.S5.navigator.sendBeacon)try{h=_.S5.navigator.sendBeacon(b.JSC$20194_baseUri_.toString(),"")}catch(y){}!h&&
_.S5.Image&&((new Image).src=b.JSC$20194_baseUri_,h=!0);h||(b.JSC$20194_xmlHttp_=XPX(b.JSC$20194_channel_,null),b.JSC$20194_xmlHttp_.send(b.JSC$20194_baseUri_));b.JSC$20194_requestStartTime_=Date.now();n9f(b)}Q$F(this)};
var pPf=function(b){b.JSC$20213_backChannelRequest_&&(BaA(b),b.JSC$20213_backChannelRequest_.cancel(),b.JSC$20213_backChannelRequest_=null)},qtq=function(b){pPf(b);
b.JSC$20213_backChannelTimerId_&&(_.S5.clearTimeout(b.JSC$20213_backChannelTimerId_),b.JSC$20213_backChannelTimerId_=null);U1A(b);b.forwardChannelRequestPool_.cancel();b.JSC$20213_forwardChannelTimerId_&&(typeof b.JSC$20213_forwardChannelTimerId_==="number"&&_.S5.clearTimeout(b.JSC$20213_forwardChannelTimerId_),b.JSC$20213_forwardChannelTimerId_=null)};
aC.prototype.getState=function(){return this.state_};
var lwN=function(b){s$F(b.forwardChannelRequestPool_)||b.JSC$20213_forwardChannelTimerId_||(b.JSC$20213_forwardChannelTimerId_=!0,_.fv(b.JSC$20215_onStartForwardChannelTimer_,b),b.JSC$20213_forwardChannelRetryCount_=0)},v9F=function(b,h){if(e4f(b.forwardChannelRequestPool_)>=b.forwardChannelRequestPool_.JSC$20204_maxSize_-(b.JSC$20213_forwardChannelTimerId_?1:0))return!1;
if(b.JSC$20213_forwardChannelTimerId_)return b.JSC$20213_channelDebug_.debug("Use the retry request that is already scheduled."),b.JSC$20213_outgoingMaps_=h.JSC$20194_pendingMessages_.concat(b.JSC$20213_outgoingMaps_),!0;if(b.state_==1||b.state_==2||b.JSC$20213_forwardChannelRetryCount_>=(b.JSC$20213_failFast_?0:b.JSC$20213_forwardChannelMaxRetries_))return!1;b.JSC$20213_channelDebug_.debug("Going to retry POST");b.JSC$20213_forwardChannelTimerId_=F0d((0,_.i5)(b.JSC$20215_onStartForwardChannelTimer_,
b,h),m12(b,b.JSC$20213_forwardChannelRetryCount_));b.JSC$20213_forwardChannelRetryCount_++;return!0};
aC.prototype.JSC$20215_onStartForwardChannelTimer_=function(b){if(this.JSC$20213_forwardChannelTimerId_)if(this.JSC$20213_forwardChannelTimerId_=null,this.JSC$20213_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!b){this.JSC$20213_channelDebug_.debug("open_()");this.JSC$20213_nextRid_=Math.floor(Math.random()*1E5);b=this.JSC$20213_nextRid_++;var h=new h$(this,this.JSC$20213_channelDebug_,"",b),y=this.JSC$20213_extraHeaders_;this.initHeaders_&&(y?(y=_.lR.clone(y),_.lR.extend(y,this.initHeaders_)):
y=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(h.JSC$20194_extraHeaders_=y,y=null);var S;if(this.fastHandshake_)a:{for(var F=S=0;F<this.JSC$20213_outgoingMaps_.length;F++){b:{var a=this.JSC$20213_outgoingMaps_[F];if("__data__"in a.map&&(a=a.map.__data__,typeof a==="string")){a=a.length;break b}a=void 0}if(a===void 0)break;S+=a;if(S>4096){S=F;break a}if(S===4096||F===this.JSC$20213_outgoingMaps_.length-1){S=F+1;break a}}S=1E3}else S=1E3;S=bfa(this,h,S);
F=this.JSC$20213_forwardChannelUri_.clone();_.Ka(F,"RID",b);_.Ka(F,"CVER",22);this.httpSessionIdParam_&&_.Ka(F,"X-HTTP-Session-Id",this.httpSessionIdParam_);x12(this,F);y&&(this.encodeInitMessageHeaders_?S="headers="+_.SR(bEE(y))+"&"+S:this.httpHeadersOverwriteParam_&&hIa(F,this.httpHeadersOverwriteParam_,y));YtA(this.forwardChannelRequestPool_,h);this.blockingHandshake_&&_.Ka(F,"TYPE","init");this.fastHandshake_?(_.Ka(F,"$req",S),_.Ka(F,"SID","null"),h.decodeInitialResponse_=!0,MmP(h,F,null)):MmP(h,
F,S);this.state_=2}}else this.state_==3&&(b?hcq(this,b):this.JSC$20213_outgoingMaps_.length==0?this.JSC$20213_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):s$F(this.forwardChannelRequestPool_)||(hcq(this),this.JSC$20213_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var hcq=function(b,h){var y;h?y=h.JSC$20194_rid_:y=b.JSC$20213_nextRid_++;var S=b.JSC$20213_forwardChannelUri_.clone();_.Ka(S,"SID",b.sid_);_.Ka(S,"RID",y);_.Ka(S,"AID",b.JSC$20213_lastArrayId_);x12(b,S);b.httpHeadersOverwriteParam_&&b.JSC$20213_extraHeaders_&&hIa(S,b.httpHeadersOverwriteParam_,b.JSC$20213_extraHeaders_);y=new h$(b,b.JSC$20213_channelDebug_,b.sid_,y,b.JSC$20213_forwardChannelRetryCount_+1);b.httpHeadersOverwriteParam_===null&&(y.JSC$20194_extraHeaders_=b.JSC$20213_extraHeaders_);
h&&(b.JSC$20213_outgoingMaps_=h.JSC$20194_pendingMessages_.concat(b.JSC$20213_outgoingMaps_));h=bfa(b,y,1E3);y.setTimeout(Math.round(b.JSC$20213_forwardChannelRequestTimeoutMs_*.5)+Math.round(b.JSC$20213_forwardChannelRequestTimeoutMs_*.5*Math.random()));YtA(b.forwardChannelRequestPool_,y);MmP(y,S,h)},x12=function(b,h){b.JSC$20213_extraParams_&&_.lR.forEach(b.JSC$20213_extraParams_,function(y,S){_.Ka(h,S,y)});
b.handler_&&_.lR.forEach({},function(y,S){_.Ka(h,S,y)})},bfa=function(b,h,y){y=Math.min(b.JSC$20213_outgoingMaps_.length,y);
var S=b.handler_?(0,_.i5)(b.handler_.JSC$20219_badMapError,b.handler_,b):null;a:{for(var F=b.JSC$20213_outgoingMaps_,a=-1;;){var P=["count="+y];a==-1?y>0?(a=F[0].JSC$20201_mapId,P.push("ofs="+a)):a=0:P.push("ofs="+a);for(var K=!0,n=0;n<y;n++){var X=F[n].JSC$20201_mapId,u=F[n].map;X-=a;if(X<0)a=Math.max(0,F[n].JSC$20201_mapId-100),K=!1;else try{X="req"+X+"_"||"";try{var O=u instanceof Map?u:Object.entries(u);for(var N=_.L(O),t=N.next();!t.done;t=N.next()){var R=_.L(t.value),I=R.next().value,U=R.next().value,
p=U;_.lf(U)&&(p=(0,_.Q4)(U));P.push(X+I+"="+encodeURIComponent(p))}}catch(e){throw P.push(X+"type="+encodeURIComponent("_badmap")),e;}}catch(e){S&&S(u)}}if(K){O=P.join("&");break a}}O=void 0}b=b.JSC$20213_outgoingMaps_.splice(0,y);h.JSC$20194_pendingMessages_=b;return O},yvY=function(b){b.JSC$20213_backChannelRequest_||b.JSC$20213_backChannelTimerId_||(b.JSC$20213_backChannelAttemptId_=1,_.fv(b.JSC$20215_onStartBackChannelTimer_,b),b.JSC$20213_backChannelRetryCount_=0)},JKf=function(b){if(b.JSC$20213_backChannelRequest_||
b.JSC$20213_backChannelTimerId_||b.JSC$20213_backChannelRetryCount_>=3)return!1;
b.JSC$20213_channelDebug_.debug("Going to retry GET");b.JSC$20213_backChannelAttemptId_++;b.JSC$20213_backChannelTimerId_=F0d((0,_.i5)(b.JSC$20215_onStartBackChannelTimer_,b),m12(b,b.JSC$20213_backChannelRetryCount_));b.JSC$20213_backChannelRetryCount_++;return!0};
aC.prototype.JSC$20215_onStartBackChannelTimer_=function(){this.JSC$20213_backChannelTimerId_=null;SAE(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$20213_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$20213_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$20213_backChannelRequest_+" "+this.handshakeRttMs_);else{var b=4*this.handshakeRttMs_;this.JSC$20213_channelDebug_.info("BP detection timer enabled: "+b);this.bpDetectionTimerId_=F0d((0,_.i5)(this.onBpDetectionTimer_,
this),b)}};
aC.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$20213_channelDebug_.info("BP detection timeout reached.");if(this.JSC$20213_backChannelRequest_.JSC$20194_xmlHttp_!=null){var b=this.JSC$20213_backChannelRequest_.JSC$20194_xmlHttp_.getResponseText();b&&this.JSC$20213_channelDebug_.warning("Timer should have been cancelled : "+b)}this.JSC$20213_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;mR(10);pPf(this);SAE(this)}else this.JSC$20213_channelDebug_.warning("Invalid operation.")};
var BaA=function(b){b.bpDetectionTimerId_!=null&&(b.JSC$20213_channelDebug_.debug("Cancel the BP detection timer."),_.S5.clearTimeout(b.bpDetectionTimerId_),b.bpDetectionTimerId_=null)},SAE=function(b){b.JSC$20213_channelDebug_.debug("Creating new HttpRequest");
b.JSC$20213_backChannelRequest_=new h$(b,b.JSC$20213_channelDebug_,b.sid_,"rpc",b.JSC$20213_backChannelAttemptId_);b.httpHeadersOverwriteParam_===null&&(b.JSC$20213_backChannelRequest_.JSC$20194_extraHeaders_=b.JSC$20213_extraHeaders_);b.JSC$20213_backChannelRequest_.JSC$20194_readyStateChangeThrottleMs_=0;var h=b.JSC$20213_backChannelUri_.clone();_.Ka(h,"RID","rpc");_.Ka(h,"SID",b.sid_);_.Ka(h,"AID",b.JSC$20213_lastArrayId_);_.Ka(h,"CI",b.enableStreaming_?"0":"1");!b.enableStreaming_&&b.longPollingTimeout_&&
_.Ka(h,"TO",b.longPollingTimeout_);_.Ka(h,"TYPE","xmlhttp");x12(b,h);b.httpHeadersOverwriteParam_&&b.JSC$20213_extraHeaders_&&hIa(h,b.httpHeadersOverwriteParam_,b.JSC$20213_extraHeaders_);b.backChannelRequestTimeoutMs_&&b.JSC$20213_backChannelRequest_.setTimeout(b.backChannelRequestTimeoutMs_);var y=b.JSC$20213_backChannelRequest_,S=b.JSC$20213_hostPrefix_;y.JSC$20194_type_=1;y.JSC$20194_baseUri_=_.Uw(h.clone());y.JSC$20194_postData_=null;y.decodeChunks_=!0;o9f(y,S);b.JSC$20213_channelDebug_.debug("New Request created")};
aC.prototype.JSC$20215_onBackChannelDead_=function(){this.JSC$20213_deadBackChannelTimerId_!=null&&(this.JSC$20213_deadBackChannelTimerId_=null,pPf(this),JKf(this),mR(19))};
var U1A=function(b){b.JSC$20213_deadBackChannelTimerId_!=null&&(_.S5.clearTimeout(b.JSC$20213_deadBackChannelTimerId_),b.JSC$20213_deadBackChannelTimerId_=null)},z4f=function(b,h){b.JSC$20213_channelDebug_.debug("Request complete");
var y=null;if(b.JSC$20213_backChannelRequest_==h){U1A(b);BaA(b);b.JSC$20213_backChannelRequest_=null;var S=2}else if(AKA(b.forwardChannelRequestPool_,h))y=h.JSC$20194_pendingMessages_,Taa(b.forwardChannelRequestPool_,h),S=1;else return;if(b.state_!=0)if(h.JSC$20194_successful_)S==1?(Std(h.JSC$20194_postData_?h.JSC$20194_postData_.length:0,Date.now()-h.JSC$20194_requestStartTime_,b.JSC$20213_forwardChannelRetryCount_),lwN(b)):yvY(b);else{var F=h.JSC$20194_lastStatusCode_,a=h.getLastError();if(a==3||
a==0&&F>0)b.JSC$20213_channelDebug_.debug("Not retrying due to error type"),F>200&&(b.errorResponseStatusCode_=h.JSC$20194_lastStatusCode_);else{b.JSC$20213_channelDebug_.debug(function(){return"Maybe retrying, last error: "+PuP(a,b.errorResponseStatusCode_)});
if(S==1&&v9F(b,h)||S==2&&JKf(b))return;b.JSC$20213_channelDebug_.debug("Exceeded max number of retries")}y&&y.length>0&&kua(b.forwardChannelRequestPool_,y);b.JSC$20213_channelDebug_.debug("Error: HTTP request failed");switch(a){case 1:SB(b,5);break;case 4:SB(b,10);break;case 3:SB(b,6);break;default:SB(b,2)}}},m12=function(b,h){var y=b.JSC$20213_baseRetryDelayMs_+Math.floor(Math.random()*b.JSC$20213_retryDelaySeedMs_);
b.isActive()||(b.JSC$20213_channelDebug_.debug("Inactive channel"),y*=2);return y*h};
aC.prototype.onInput_=function(b,h){for(var y=0;y<b.length;y++){var S=b[y],F=S[0];if(F<=this.JSC$20213_lastArrayId_)this.JSC$20213_channelDebug_.warning("Ignoring out-of-order or duplicate message with arrayId: "+F+", lastArrayId: "+this.JSC$20213_lastArrayId_);else if(F>this.JSC$20213_lastArrayId_+1&&this.JSC$20213_lastArrayId_>-1&&this.JSC$20213_channelDebug_.warning("Received non-consecutive message with arrayId: "+F+", lastArrayId: "+this.JSC$20213_lastArrayId_),this.JSC$20213_lastArrayId_=F,
S=S[1],this.state_==2)if(S[0]=="c"){this.sid_=S[1];this.JSC$20213_hostPrefix_=S[2];F=S[3];F!=null&&(this.JSC$20215_channelVersion_=F,this.JSC$20213_channelDebug_.info("VER="+this.JSC$20215_channelVersion_));F=S[4];F!=null&&(this.serverVersion_=F,this.JSC$20213_channelDebug_.info("SVER="+this.serverVersion_));S=S[5];S!=null&&typeof S==="number"&&S>0&&(this.backChannelRequestTimeoutMs_=S*=1.5,this.JSC$20213_channelDebug_.info("backChannelRequestTimeoutMs_="+S));if(S=h.JSC$20194_xmlHttp_){var a=Dnd(S,
"X-Client-Wire-Protocol");a&&(F=this.forwardChannelRequestPool_,!F.requestPool_&&(_.PF(a,"spdy")||_.PF(a,"quic")||_.PF(a,"h2"))&&(F.JSC$20204_maxSize_=F.maxPoolSizeConfigured_,F.requestPool_=new Set,F.JSC$20204_request_&&(YtA(F,F.JSC$20204_request_),F.JSC$20204_request_=null)));this.httpSessionIdParam_&&((S=Dnd(S,"X-HTTP-Session-Id"))?(this.httpSessionId_=S,_.Ka(this.JSC$20213_forwardChannelUri_,this.httpSessionIdParam_,S)):this.JSC$20213_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=
3;this.handler_&&this.handler_.JSC$20219_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-h.JSC$20194_requestStartTime_,this.JSC$20213_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));S=h;F=wPE(this,this.JSC$20213_supportsCrossDomainXhrs_?this.JSC$20213_hostPrefix_:null,this.JSC$20213_path_);this.JSC$20213_channelDebug_.debug("GetBackChannelUri: "+F);this.JSC$20213_backChannelUri_=F;S.initialResponseDecoded_?(this.JSC$20213_channelDebug_.debug("Upgrade the handshake request to a backchannel."),
Taa(this.forwardChannelRequestPool_,S),F=S,(a=this.backChannelRequestTimeoutMs_)&&F.setTimeout(a),F.JSC$20194_watchDogTimerId_&&(OeA(F),n9f(F)),this.JSC$20213_backChannelRequest_=S):yvY(this);this.JSC$20213_outgoingMaps_.length>0&&lwN(this)}else S[0]!="stop"&&S[0]!="close"||SB(this,7);else this.state_==3&&(S[0]=="stop"||S[0]=="close"?S[0]=="stop"?SB(this,7):this.disconnect():S[0]!="noop"&&this.handler_&&this.handler_.JSC$20219_channelHandleArray(S),this.JSC$20213_backChannelRetryCount_=0)}};
var SB=function(b,h){b.JSC$20213_channelDebug_.info("Error code "+h);if(h==2){var y=(0,_.i5)(b.testNetworkCallback_,b),S=b.networkTestUrl_,F=!S;S=new _.lX(S||"//www.google.com/images/cleardot.gif");_.S5.location&&_.S5.location.protocol=="http"||_.rv(S,"https");_.Uw(S);F?VmA(S.toString(),y):E9q(S.toString(),y)}else mR(2);b.onError_(h)};
aC.prototype.testNetworkCallback_=function(b){b?(this.JSC$20213_channelDebug_.info("Successfully pinged google.com"),mR(2)):(this.JSC$20213_channelDebug_.info("Failed to ping google.com"),mR(1))};
aC.prototype.onError_=function(b){this.JSC$20213_channelDebug_.debug("HttpChannel: error - "+b);this.state_=0;this.handler_&&this.handler_.JSC$20219_channelError(b);Q$F(this);qtq(this)};
var Q$F=function(b){b.state_=0;b.nonAckedMapsAtChannelClose_=[];if(b.handler_){var h=GuN(b.forwardChannelRequestPool_);if(h.length!=0||b.JSC$20213_outgoingMaps_.length!=0)b.JSC$20213_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+h.length+", outgoing: "+b.JSC$20213_outgoingMaps_.length}),_.wI(b.nonAckedMapsAtChannelClose_,h),_.wI(b.nonAckedMapsAtChannelClose_,b.JSC$20213_outgoingMaps_),b.forwardChannelRequestPool_.JSC$20204_pendingMessages_.length=0,_.Ej(b.JSC$20213_outgoingMaps_),
b.JSC$20213_outgoingMaps_.length=0;
b.handler_.JSC$20219_channelClosed()}},FEN=function(b){if(b.state_==0)return b.nonAckedMapsAtChannelClose_;
var h=[];_.wI(h,GuN(b.forwardChannelRequestPool_));_.wI(h,b.JSC$20213_outgoingMaps_);return h},wPE=function(b,h,y){var S=_.La(y);
S.JSC$10215_domain_!=""?(h&&_.cR(S,h+"."+S.JSC$10215_domain_),_.RE(S,S.JSC$10215_port_)):(S=_.S5.location,S=gex(S.protocol,h?h+"."+S.hostname:S.hostname,+S.port,y));h=b.httpSessionIdParam_;y=b.httpSessionId_;h&&y&&_.Ka(S,h,y);_.Ka(S,"VER",b.JSC$20215_channelVersion_);x12(b,S);return S},XPX=function(b,h,y){if(h&&!b.JSC$20213_supportsCrossDomainXhrs_)throw Error("Xk");
h=b.usesFetchStreams_&&!b.JSC$20213_xmlHttpFactory_?new _.mX(new xBx({streamBinaryChunks:y})):new _.mX(b.JSC$20213_xmlHttpFactory_);h.JSC$9979_withCredentials_=b.JSC$20213_supportsCrossDomainXhrs_;return h};
aC.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var aVd=function(){};
_.d=aVd.prototype;_.d.JSC$20219_channelOpened=function(){};
_.d.JSC$20219_channelHandleArray=function(){};
_.d.JSC$20219_channelError=function(){};
_.d.JSC$20219_channelClosed=function(){};
_.d.isActive=function(){return!0};
_.d.JSC$20219_badMapError=function(){};var dTa=function(){},jB=function(b,h){_.TI.call(this);
this.JSC$20222_channel_=new aC(h);this.JSC$20222_url_=b;this.messageUrlParams_=h&&h.messageUrlParams||null;b=h&&h.messageHeaders||null;h&&h.clientProtocolHeaderRequired&&(b?_.lR.set(b,"X-Client-Protocol","webchannel"):b=_.lR.create("X-Client-Protocol","webchannel"));this.JSC$20222_channel_.JSC$20213_extraHeaders_=b;b=h&&h.initMessageHeaders||null;h&&h.messageContentType&&(b?_.lR.set(b,"X-WebChannel-Content-Type",h.messageContentType):b=_.lR.create("X-WebChannel-Content-Type",h.messageContentType));
h&&h.clientProfile&&(b?_.lR.set(b,"X-WebChannel-Client-Profile",h.clientProfile):b=_.lR.create("X-WebChannel-Client-Profile",h.clientProfile));this.JSC$20222_channel_.initHeaders_=b;(b=h&&h.httpHeadersOverwriteParam)&&!_.$U(b)&&(this.JSC$20222_channel_.httpHeadersOverwriteParam_=b);this.supportsCrossDomainXhr_=h&&h.supportsCrossDomainXhr||!1;this.sendRawJson_=h&&h.sendRawJson||!1;(h=h&&h.httpSessionIdParam)&&!_.$U(h)&&(this.JSC$20222_channel_.httpSessionIdParam_=h,_.lR.containsKey(this.messageUrlParams_,
h)&&_.lR.remove(this.messageUrlParams_,h));this.channelHandler_=new d9(this)};
_.Pv(jB,_.TI);jB.prototype.open=function(){this.JSC$20222_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$20222_channel_.JSC$20213_supportsCrossDomainXhrs_=!0);this.JSC$20222_channel_.connect(this.JSC$20222_url_,this.messageUrlParams_||void 0)};
jB.prototype.close=function(){this.JSC$20222_channel_.disconnect()};
jB.prototype.send=function(b){var h=this.JSC$20222_channel_;if(typeof b==="string"){var y={};y.__data__=b;b=y}else this.sendRawJson_&&(y={},y.__data__=(0,_.Q4)(b),b=y);h.JSC$20213_outgoingMaps_.push(new Cuf(h.JSC$20213_nextMapId_++,b));h.state_==3&&lwN(h)};
jB.prototype.disposeInternal=function(){this.JSC$20222_channel_.handler_=null;delete this.channelHandler_;this.JSC$20222_channel_.disconnect();delete this.JSC$20222_channel_;jB.superClass_.disposeInternal.call(this)};
var jpX=function(b){qG2.call(this);b.__headers__&&(this.headers=b.__headers__,this.statusCode=b.__status__,delete b.__headers__,delete b.__status__);var h=b.__sm__;h?this.data=(this.metadataKey=_.lR.getAnyKey(h))?_.lR.get(h,this.metadataKey):h:this.data=b};
_.Pv(jpX,qG2);var $Tq=function(b){xbf.call(this);this.status=1;this.errorCode=b};
_.Pv($Tq,xbf);var d9=function(b){this.JSC$20229_channel_=b};
_.Pv(d9,aVd);d9.prototype.JSC$20219_channelOpened=function(){this.JSC$20229_channel_.dispatchEvent("w")};
d9.prototype.JSC$20219_channelHandleArray=function(b){this.JSC$20229_channel_.dispatchEvent(new jpX(b))};
d9.prototype.JSC$20219_channelError=function(b){this.JSC$20229_channel_.dispatchEvent(new $Tq(b))};
d9.prototype.JSC$20219_channelClosed=function(){this.JSC$20229_channel_.dispatchEvent("x")};
var LEA=function(b,h){this.transportChannel_=b;this.JSC$20232_channel_=h},Pwa=function(b){return FEN(b.JSC$20232_channel_).map(function(h){var y=b.transportChannel_;
h=h.map;"__data__"in h?(h=h.__data__,y=y.sendRawJson_?(0,_.CnP)(h):h):y=h;return y})};
LEA.prototype.commit=function(b){this.JSC$20232_channel_.forwardChannelFlushedCallback_=b};var $t=function(b){KEx.dispatchEvent(new Zff(KEx,b))},KEx=new _.TI,Zff=function(b,h){_.eW.call(this,"statevent",b);
this.stat=h};
_.z(Zff,_.eW);var L6=function(b,h,y,S,F){this.JSC$20237_channel_=b;this.JSC$20237_channelDebug_=h;this.sid_=y;this.JSC$20237_rid_=S;this.JSC$20237_retryId_=F||1;this.timeout_=45E3;this.JSC$20237_eventHandler_=new _.B_(this);this.pollingTimer_=new _.I0;this.pollingTimer_.setInterval(250)};
_.d=L6.prototype;_.d.JSC$20239_extraHeaders_=null;_.d.JSC$20239_successful_=!1;_.d.JSC$20239_watchDogTimerId_=null;_.d.JSC$20239_watchDogTimeoutTime_=null;_.d.JSC$20239_requestStartTime_=null;_.d.JSC$20239_type_=null;_.d.JSC$20239_baseUri_=null;_.d.JSC$20239_requestUri_=null;_.d.JSC$20239_postData_=null;_.d.JSC$20239_xmlHttp_=null;_.d.JSC$20239_xmlHttpChunkStart_=0;_.d.trident_=null;_.d.JSC$20239_verb_=null;_.d.JSC$20239_lastError_=null;_.d.JSC$20239_lastStatusCode_=-1;_.d.sendClose_=!0;
_.d.JSC$20239_cancelled_=!1;_.d.JSC$20239_readyStateChangeThrottleMs_=0;_.d.JSC$20239_readyStateChangeThrottle_=null;var odN=function(b,h){switch(b){case 0:return"Non-200 return code ("+h+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},Mb2={},ndd={};
L6.prototype.setTimeout=function(b){this.timeout_=b};
var Hfa=function(b,h,y){b.JSC$20239_type_=1;b.JSC$20239_baseUri_=_.Uw(h.clone());b.JSC$20239_postData_=y;b.decodeChunks_=!0;Xgx(b,null)},uyA=function(b,h,y,S,F){b.JSC$20239_type_=1;
b.JSC$20239_baseUri_=_.Uw(h.clone());b.JSC$20239_postData_=null;b.decodeChunks_=y;F&&(b.sendClose_=!1);Xgx(b,S)},Xgx=function(b,h){b.JSC$20239_requestStartTime_=Date.now();
OfA(b);b.JSC$20239_requestUri_=b.JSC$20239_baseUri_.clone();Tva(b.JSC$20239_requestUri_,"t",b.JSC$20237_retryId_);b.JSC$20239_xmlHttpChunkStart_=0;b.JSC$20239_xmlHttp_=b.JSC$20237_channel_.JSC$20246_createXhrIo(b.JSC$20237_channel_.JSC$20246_shouldUseSecondaryDomains()?h:null);b.JSC$20239_readyStateChangeThrottleMs_>0&&(b.JSC$20239_readyStateChangeThrottle_=new _.MG((0,_.i5)(b.JSC$20239_xmlHttpHandler_,b,b.JSC$20239_xmlHttp_),b.JSC$20239_readyStateChangeThrottleMs_));b.JSC$20237_eventHandler_.listen(b.JSC$20239_xmlHttp_,
"readystatechange",b.JSC$20239_readyStateChangeHandler_);h=b.JSC$20239_extraHeaders_?_.lR.clone(b.JSC$20239_extraHeaders_):{};b.JSC$20239_postData_?(b.JSC$20239_verb_="POST",h["Content-Type"]="application/x-www-form-urlencoded",b.JSC$20239_xmlHttp_.send(b.JSC$20239_requestUri_,b.JSC$20239_verb_,b.JSC$20239_postData_,h)):(b.JSC$20239_verb_="GET",b.sendClose_&&!_.Hv&&(h.Connection="close"),b.JSC$20239_xmlHttp_.send(b.JSC$20239_requestUri_,b.JSC$20239_verb_,null,h));b.JSC$20237_channel_.notifyServerReachabilityEvent(1);
h=b.JSC$20237_channelDebug_;var y=b.JSC$20239_postData_;if(y){var S="";y=y.split("&");for(var F=0;F<y.length;F++){var a=y[F].split("=");if(a.length>1){var P=a[0];a=a[1];var K=P.split("_");S=K.length>=2&&K[1]=="type"?S+(P+"="+a+"&"):S+(P+"=redacted&")}}}else S=null;h.info("XMLHTTP REQ ("+b.JSC$20237_rid_+") [attempt "+b.JSC$20237_retryId_+"]: "+b.JSC$20239_verb_+"\n"+b.JSC$20239_requestUri_+"\n"+S)};
L6.prototype.JSC$20239_readyStateChangeHandler_=function(b){b=b.target;var h=this.JSC$20239_readyStateChangeThrottle_;h&&_.bD(b)==3?(this.JSC$20237_channelDebug_.debug("Throttling readystatechange."),h.fire()):this.JSC$20239_xmlHttpHandler_(b)};
L6.prototype.JSC$20239_xmlHttpHandler_=function(b){try{if(b==this.JSC$20239_xmlHttp_)a:{var h=_.bD(this.JSC$20239_xmlHttp_),y=this.JSC$20239_xmlHttp_.JSC$9979_lastErrorCode_,S=this.JSC$20239_xmlHttp_.getStatus();if(_.Hv&&!_.um("420+")){if(h<4)break a}else if(h<3||h==3&&!this.JSC$20239_xmlHttp_.getResponseText())break a;this.JSC$20239_cancelled_||h!=4||y==7||(y==8||S<=0?this.JSC$20237_channel_.notifyServerReachabilityEvent(3):this.JSC$20237_channel_.notifyServerReachabilityEvent(2));NPF(this);var F=
this.JSC$20239_xmlHttp_.getStatus();this.JSC$20239_lastStatusCode_=F;var a=this.JSC$20239_xmlHttp_.getResponseText();a||this.JSC$20237_channelDebug_.debug("No response text for uri "+this.JSC$20239_requestUri_+" status "+F);this.JSC$20239_successful_=F==200;this.JSC$20237_channelDebug_.info("XMLHTTP RESP ("+this.JSC$20237_rid_+") [ attempt "+this.JSC$20237_retryId_+"]: "+this.JSC$20239_verb_+"\n"+this.JSC$20239_requestUri_+"\n"+h+" "+F);if(this.JSC$20239_successful_){h==4&&tbN(this);if(this.decodeChunks_){for(b=
!0;!this.JSC$20239_cancelled_&&this.JSC$20239_xmlHttpChunkStart_<a.length;){var P=rvx(this,a);if(P==ndd){h==4&&(this.JSC$20239_lastError_=4,$t(15),b=!1);cvx(this.JSC$20237_channelDebug_,this.JSC$20237_rid_,null,"[Incomplete Response]");break}else if(P==Mb2){this.JSC$20239_lastError_=4;$t(16);cvx(this.JSC$20237_channelDebug_,this.JSC$20237_rid_,a,"[Invalid Chunk]");b=!1;break}else cvx(this.JSC$20237_channelDebug_,this.JSC$20237_rid_,P,null),RcX(this,P)}h==4&&a.length==0&&(this.JSC$20239_lastError_=
1,$t(17),b=!1);this.JSC$20239_successful_=this.JSC$20239_successful_&&b;b||(cvx(this.JSC$20237_channelDebug_,this.JSC$20237_rid_,a,"[Invalid Chunked Response]"),tbN(this),zcd(this))}else cvx(this.JSC$20237_channelDebug_,this.JSC$20237_rid_,a,null),RcX(this,a);this.JSC$20239_successful_&&!this.JSC$20239_cancelled_&&(h==4?this.JSC$20237_channel_.JSC$20246_onRequestComplete(this):(this.JSC$20239_successful_=!1,OfA(this)))}else F==400&&a.indexOf("Unknown SID")>0?(this.JSC$20239_lastError_=3,$t(13),this.JSC$20237_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$20237_rid_+")")):(this.JSC$20239_lastError_=0,$t(14),this.JSC$20237_channelDebug_.warning("XMLHTTP Bad status "+F+" ("+this.JSC$20237_rid_+")")),tbN(this),zcd(this)}else this.JSC$20237_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(K){this.JSC$20237_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var rvx=function(b,h){var y=b.JSC$20239_xmlHttpChunkStart_,S=h.indexOf("\n",y);if(S==-1)return ndd;y=Number(h.substring(y,S));if(isNaN(y))return Mb2;S+=1;if(S+y>h.length)return ndd;h=h.slice(S,S+y);b.JSC$20239_xmlHttpChunkStart_=S+y;return h};
L6.prototype.cancel=function(){this.JSC$20239_cancelled_=!0;tbN(this)};
var OfA=function(b){b.JSC$20239_watchDogTimeoutTime_=Date.now()+b.timeout_;DTF(b,b.timeout_)},DTF=function(b,h){if(b.JSC$20239_watchDogTimerId_!=null)throw Error("Wk");
b.JSC$20239_watchDogTimerId_=AS((0,_.i5)(b.JSC$20239_onWatchDogTimeout_,b),h)},NPF=function(b){b.JSC$20239_watchDogTimerId_&&(_.S5.clearTimeout(b.JSC$20239_watchDogTimerId_),b.JSC$20239_watchDogTimerId_=null)};
L6.prototype.JSC$20239_onWatchDogTimeout_=function(){this.JSC$20239_watchDogTimerId_=null;var b=Date.now();b-this.JSC$20239_watchDogTimeoutTime_>=0?(this.JSC$20237_channelDebug_.info("TIMEOUT: "+this.JSC$20239_requestUri_),this.JSC$20239_type_!=2&&this.JSC$20237_channel_.notifyServerReachabilityEvent(3),tbN(this),this.JSC$20239_lastError_=2,$t(18),zcd(this)):(this.JSC$20237_channelDebug_.warning("WatchDog timer called too early"),DTF(this,this.JSC$20239_watchDogTimeoutTime_-b))};
var zcd=function(b){b.JSC$20237_channel_.JSC$20246_isClosed()||b.JSC$20239_cancelled_||b.JSC$20237_channel_.JSC$20246_onRequestComplete(b)},tbN=function(b){NPF(b);
_.nq(b.JSC$20239_readyStateChangeThrottle_);b.JSC$20239_readyStateChangeThrottle_=null;b.pollingTimer_.stop();b.JSC$20237_eventHandler_.removeAll();if(b.JSC$20239_xmlHttp_){var h=b.JSC$20239_xmlHttp_;b.JSC$20239_xmlHttp_=null;h.abort();h.dispose()}b.trident_&&(b.trident_=null)};
L6.prototype.getLastError=function(){return this.JSC$20239_lastError_};
var RcX=function(b,h){try{b.JSC$20237_channel_.JSC$20246_onRequestData(b,h),b.JSC$20237_channel_.notifyServerReachabilityEvent(4)}catch(y){}};var cvx=function(b,h,y,S){var F=b.info;a:if(y&&y!="y2f%"){try{var a=JSON.parse(y);if(a)for(var P=0;P<a.length;P++)if(Array.isArray(a[P])){var K=a[P];if(!(K.length<2)){var n=K[1];if(Array.isArray(n)&&!(n.length<1)){var X=n[0];if(X!="noop"&&X!="stop")for(var u=1;u<n.length;u++)n[u]=""}}}var O=(0,_.Q4)(a);break a}catch(N){b.debug("Exception parsing expected JS array - probably was not JS");O=y;break a}O=void 0}else O=y;F.call(b,"XMLHTTP TEXT ("+h+"): "+O+(S?" "+S:""))};
U1.prototype.debug=function(b){this.info(b)};
U1.prototype.info=function(){};
U1.prototype.warning=function(){};var IVf=function(b,h){this.JSC$20244_channel_=b;this.JSC$20244_channelDebug_=h;this.JSC$20244_parser_=new l4f};
_.d=IVf.prototype;_.d.JSC$20246_extraHeaders_=null;_.d.JSC$20246_request_=null;_.d.receivedIntermediateResult_=!1;_.d.JSC$20246_path_=null;_.d.state_=null;_.d.JSC$20246_lastStatusCode_=-1;_.d.JSC$20246_hostPrefix_=null;_.d.blockedPrefix_=null;
_.d.connect=function(b){this.JSC$20246_path_=b;b=BPY(this.JSC$20244_channel_,this.JSC$20246_path_);$t(3);Date.now();var h=this.JSC$20244_channel_.firstTestResults_;h!=null?(this.JSC$20246_hostPrefix_=h[0],(this.blockedPrefix_=h[1])?(this.state_=1,WEA(this)):(this.state_=2,Avf(this))):(Tva(b,"MODE","init"),this.JSC$20246_request_=new L6(this,this.JSC$20244_channelDebug_),this.JSC$20246_request_.JSC$20239_extraHeaders_=this.JSC$20246_extraHeaders_,uyA(this.JSC$20246_request_,b,!1,null,!0),this.state_=
0)};
var WEA=function(b){var h=UTf(b.JSC$20244_channel_,b.blockedPrefix_,"/mail/images/cleardot.gif");_.Uw(h);Qrx(h.toString(),5E3,(0,_.i5)(b.checkBlockedCallback_,b),3,2E3);b.notifyServerReachabilityEvent(1)};
IVf.prototype.checkBlockedCallback_=function(b){if(b)this.state_=2,Avf(this);else{$t(4);var h=this.JSC$20244_channel_;h.JSC$20247_channelDebug_.debug("Test Connection Blocked");h.JSC$20251_lastStatusCode_=h.connectionTest_.JSC$20246_lastStatusCode_;Ph(h,9)}b&&this.notifyServerReachabilityEvent(2)};
var Avf=function(b){b.JSC$20244_channelDebug_.debug("TestConnection: starting stage 2");var h=b.JSC$20244_channel_.secondTestResults_;h!=null?(b.JSC$20244_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+h?"Buffered":"Unbuffered"),$t(5),h?($t(11),pgP(b.JSC$20244_channel_,b,!1)):($t(12),pgP(b.JSC$20244_channel_,b,!0))):(b.JSC$20246_request_=new L6(b,b.JSC$20244_channelDebug_),b.JSC$20246_request_.JSC$20239_extraHeaders_=b.JSC$20246_extraHeaders_,h=JvN(b.JSC$20244_channel_,
b.JSC$20246_hostPrefix_,b.JSC$20246_path_),$t(5),Tva(h,"TYPE","xmlhttp"),uyA(b.JSC$20246_request_,h,!1,b.JSC$20246_hostPrefix_,!1))};
_.d=IVf.prototype;_.d.JSC$20246_createXhrIo=function(b){return this.JSC$20244_channel_.JSC$20246_createXhrIo(b)};
_.d.abort=function(){this.JSC$20246_request_&&(this.JSC$20246_request_.cancel(),this.JSC$20246_request_=null);this.JSC$20246_lastStatusCode_=-1};
_.d.JSC$20246_isClosed=function(){return!1};
_.d.JSC$20246_onRequestData=function(b,h){this.JSC$20246_lastStatusCode_=b.JSC$20239_lastStatusCode_;if(this.state_==0)if(this.JSC$20244_channelDebug_.debug("TestConnection: Got data for stage 1"),h){try{var y=this.JSC$20244_parser_.parse(h)}catch(S){ecf(this.JSC$20244_channel_,this);return}this.JSC$20246_hostPrefix_=y[0];this.blockedPrefix_=y[1]}else this.JSC$20244_channelDebug_.debug("TestConnection: Null responseText"),ecf(this.JSC$20244_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
($t(7),Date.now()):h=="11111"?($t(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$20246_lastStatusCode_=200,this.JSC$20246_request_.cancel(),this.JSC$20244_channelDebug_.debug("Test connection succeeded; using streaming connection"),$t(12),pgP(this.JSC$20244_channel_,this,!0)):($t(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.d.JSC$20246_onRequestComplete=function(){this.JSC$20246_lastStatusCode_=this.JSC$20246_request_.JSC$20239_lastStatusCode_;this.JSC$20246_request_.JSC$20239_successful_?this.state_==0?(this.JSC$20244_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,WEA(this)):(this.state_=2,Avf(this))):this.state_==2&&(this.JSC$20244_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$20244_channelDebug_.debug("Test connection succeeded; using streaming connection"),
$t(12),pgP(this.JSC$20244_channel_,this,!0)):(this.JSC$20244_channelDebug_.debug("Test connection failed; not using streaming"),$t(11),pgP(this.JSC$20244_channel_,this,!1))):(this.JSC$20244_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?$t(9):this.state_==2&&$t(10),ecf(this.JSC$20244_channel_,this,this.JSC$20246_request_.getLastError()))};
_.d.JSC$20246_shouldUseSecondaryDomains=function(){return this.JSC$20244_channel_.JSC$20246_shouldUseSecondaryDomains()};
_.d.isActive=function(){return this.JSC$20244_channel_.isActive()};
_.d.notifyServerReachabilityEvent=function(b){this.JSC$20244_channel_.notifyServerReachabilityEvent(b)};var K6=function(b,h,y){this.state_=1;this.JSC$20247_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$20247_channelDebug_=new U1;this.JSC$20247_parser_=new l4f;this.firstTestResults_=b||null;this.secondTestResults_=h!=null?h:null;this.asyncTest_=y||!1},Cw2=function(b,h){this.JSC$20249_mapId=b;
this.map=h;this.context=null};
_.d=K6.prototype;_.d.JSC$20251_extraHeaders_=null;_.d.JSC$20251_extraParams_=null;_.d.forwardChannelRequest_=null;_.d.JSC$20251_backChannelRequest_=null;_.d.JSC$20251_path_=null;_.d.JSC$20251_forwardChannelUri_=null;_.d.JSC$20251_backChannelUri_=null;_.d.JSC$20251_hostPrefix_=null;_.d.JSC$20251_nextRid_=0;_.d.JSC$20251_nextMapId_=0;_.d.handler_=null;_.d.JSC$20251_forwardChannelTimerId_=null;_.d.JSC$20251_backChannelTimerId_=null;_.d.JSC$20251_deadBackChannelTimerId_=null;_.d.connectionTest_=null;
_.d.useChunked_=null;_.d.JSC$20251_lastArrayId_=-1;_.d.JSC$20251_lastPostResponseArrayId_=-1;_.d.JSC$20251_lastStatusCode_=-1;_.d.JSC$20251_forwardChannelRetryCount_=0;_.d.JSC$20251_backChannelRetryCount_=0;_.d.JSC$20251_channelVersion_=8;var gdA={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},sp2=function(b,h,y,S){_.eW.call(this,"timingevent",b);this.size=h;this.rtt=y;this.retries=S};
_.Pv(sp2,_.eW);var YAE=function(b){_.eW.call(this,"serverreachability",b)};
_.Pv(YAE,_.eW);K6.prototype.connect=function(b,h,y,S,F){this.JSC$20247_channelDebug_.debug("connect()");$t(0);this.JSC$20251_path_=h;this.JSC$20251_extraParams_=y||{};S&&F!==void 0&&(this.JSC$20251_extraParams_.OSID=S,this.JSC$20251_extraParams_.OAID=F);this.asyncTest_?(AS((0,_.i5)(this.connectTest_,this,b),100),TP2(this)):this.connectTest_(b)};
K6.prototype.disconnect=function(){this.JSC$20247_channelDebug_.debug("disconnect()");GOq(this);if(this.state_==3){var b=this.JSC$20251_nextRid_++,h=this.JSC$20251_forwardChannelUri_.clone();_.Ka(h,"SID",this.sid_);_.Ka(h,"RID",b);_.Ka(h,"TYPE","terminate");kOA(this,h);b=new L6(this,this.JSC$20247_channelDebug_,this.sid_,b);b.JSC$20239_type_=2;b.JSC$20239_baseUri_=_.Uw(h.clone());(new Image).src=b.JSC$20239_baseUri_.toString();b.JSC$20239_requestStartTime_=Date.now();OfA(b)}Vbx(this)};
K6.prototype.connectTest_=function(b){this.JSC$20247_channelDebug_.debug("connectTest_()");this.connectionTest_=new IVf(this,this.JSC$20247_channelDebug_);this.connectionTest_.JSC$20246_extraHeaders_=this.JSC$20251_extraHeaders_;this.connectionTest_.JSC$20244_parser_=this.JSC$20247_parser_;this.connectionTest_.connect(b)};
var TP2=function(b){b.JSC$20247_channelDebug_.debug("connectChannel_()");b.JSC$20251_ensureInState_(1,0);b.JSC$20251_forwardChannelUri_=BPY(b,b.JSC$20251_path_);EdX(b)},GOq=function(b){b.connectionTest_&&(b.connectionTest_.abort(),b.connectionTest_=null);
b.JSC$20251_backChannelRequest_&&(b.JSC$20251_backChannelRequest_.cancel(),b.JSC$20251_backChannelRequest_=null);b.JSC$20251_backChannelTimerId_&&(_.S5.clearTimeout(b.JSC$20251_backChannelTimerId_),b.JSC$20251_backChannelTimerId_=null);ifP(b);b.forwardChannelRequest_&&(b.forwardChannelRequest_.cancel(),b.forwardChannelRequest_=null);b.JSC$20251_forwardChannelTimerId_&&(_.S5.clearTimeout(b.JSC$20251_forwardChannelTimerId_),b.JSC$20251_forwardChannelTimerId_=null)},fVd=function(b,h){if(b.state_==0)throw Error("Zk");
b.JSC$20247_outgoingMaps_.length==1E3&&b.JSC$20247_parser_.stringify(h);b.JSC$20247_outgoingMaps_.push(new Cw2(b.JSC$20251_nextMapId_++,h));b.state_!=2&&b.state_!=3||EdX(b)};
K6.prototype.JSC$20246_isClosed=function(){return this.state_==0};
K6.prototype.getState=function(){return this.state_};
var EdX=function(b){b.forwardChannelRequest_||b.JSC$20251_forwardChannelTimerId_||(b.JSC$20251_forwardChannelTimerId_=AS((0,_.i5)(b.JSC$20251_onStartForwardChannelTimer_,b),0),b.JSC$20251_forwardChannelRetryCount_=0)};
K6.prototype.JSC$20251_onStartForwardChannelTimer_=function(b){this.JSC$20251_forwardChannelTimerId_=null;wgd(this,b)};
var wgd=function(b,h){b.JSC$20247_channelDebug_.debug("startForwardChannel_");if(b.state_==1){if(!h){b.JSC$20247_channelDebug_.debug("open_()");b.JSC$20251_nextRid_=Math.floor(Math.random()*1E5);h=b.JSC$20251_nextRid_++;var y=new L6(b,b.JSC$20247_channelDebug_,"",h);y.JSC$20239_extraHeaders_=b.JSC$20251_extraHeaders_;var S=lVf(b),F=b.JSC$20251_forwardChannelUri_.clone();_.Ka(F,"RID",h);_.Ka(F,"CVER","1");kOA(b,F);Hfa(y,F,S);b.forwardChannelRequest_=y;b.state_=2}}else b.state_==3&&(h?qAA(b,h):b.JSC$20247_outgoingMaps_.length==
0?b.JSC$20247_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):b.forwardChannelRequest_||(qAA(b),b.JSC$20247_channelDebug_.debug("startForwardChannel_ finished, sent request")))},qAA=function(b,h){if(h)if(b.JSC$20251_channelVersion_>6){b.JSC$20247_outgoingMaps_=b.pendingMaps_.concat(b.JSC$20247_outgoingMaps_);
b.pendingMaps_.length=0;var y=b.JSC$20251_nextRid_-1;h=lVf(b)}else y=h.JSC$20237_rid_,h=h.JSC$20239_postData_;else y=b.JSC$20251_nextRid_++,h=lVf(b);var S=b.JSC$20251_forwardChannelUri_.clone();_.Ka(S,"SID",b.sid_);_.Ka(S,"RID",y);_.Ka(S,"AID",b.JSC$20251_lastArrayId_);kOA(b,S);y=new L6(b,b.JSC$20247_channelDebug_,b.sid_,y,b.JSC$20251_forwardChannelRetryCount_+1);y.JSC$20239_extraHeaders_=b.JSC$20251_extraHeaders_;y.setTimeout(1E4+Math.round(1E4*Math.random()));b.forwardChannelRequest_=y;Hfa(y,S,
h)},kOA=function(b,h){b.handler_&&(b=b.handler_.JSC$20258_getAdditionalParams())&&_.lR.forEach(b,function(y,S){_.Ka(h,S,y)})},lVf=function(b){var h=Math.min(b.JSC$20247_outgoingMaps_.length,1E3),y=["count="+h];
if(b.JSC$20251_channelVersion_>6&&h>0){var S=b.JSC$20247_outgoingMaps_[0].JSC$20249_mapId;y.push("ofs="+S)}else S=0;for(var F={},a=0;a<h;F={mapId$jscomp$3:void 0},a++){F.mapId$jscomp$3=b.JSC$20247_outgoingMaps_[a].JSC$20249_mapId;var P=b.JSC$20247_outgoingMaps_[a].map;F.mapId$jscomp$3=b.JSC$20251_channelVersion_<=6?a:F.mapId$jscomp$3-S;try{_.lR.forEach(P,function(K){return function(n,X){y.push("req"+K.mapId$jscomp$3+"_"+X+"="+encodeURIComponent(n))}}(F))}catch(K){y.push("req"+F.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}b.pendingMaps_=b.pendingMaps_.concat(b.JSC$20247_outgoingMaps_.splice(0,h));
return y.join("&")},xTA=function(b){b.JSC$20251_backChannelRequest_||b.JSC$20251_backChannelTimerId_||(b.JSC$20251_backChannelAttemptId_=1,b.JSC$20251_backChannelTimerId_=AS((0,_.i5)(b.JSC$20251_onStartBackChannelTimer_,b),0),b.JSC$20251_backChannelRetryCount_=0)},mTP=function(b){if(b.JSC$20251_backChannelRequest_||b.JSC$20251_backChannelTimerId_||b.JSC$20251_backChannelRetryCount_>=3)return!1;
b.JSC$20247_channelDebug_.debug("Going to retry GET");b.JSC$20251_backChannelAttemptId_++;b.JSC$20251_backChannelTimerId_=AS((0,_.i5)(b.JSC$20251_onStartBackChannelTimer_,b),Qp2(b,b.JSC$20251_backChannelRetryCount_));b.JSC$20251_backChannelRetryCount_++;return!0};
K6.prototype.JSC$20251_onStartBackChannelTimer_=function(){this.JSC$20251_backChannelTimerId_=null;this.JSC$20247_channelDebug_.debug("Creating new HttpRequest");this.JSC$20251_backChannelRequest_=new L6(this,this.JSC$20247_channelDebug_,this.sid_,"rpc",this.JSC$20251_backChannelAttemptId_);this.JSC$20251_backChannelRequest_.JSC$20239_extraHeaders_=this.JSC$20251_extraHeaders_;this.JSC$20251_backChannelRequest_.JSC$20239_readyStateChangeThrottleMs_=0;var b=this.JSC$20251_backChannelUri_.clone();_.Ka(b,
"RID","rpc");_.Ka(b,"SID",this.sid_);_.Ka(b,"CI",this.useChunked_?"0":"1");_.Ka(b,"AID",this.JSC$20251_lastArrayId_);kOA(this,b);_.Ka(b,"TYPE","xmlhttp");uyA(this.JSC$20251_backChannelRequest_,b,!0,this.JSC$20251_hostPrefix_,!1);this.JSC$20247_channelDebug_.debug("New Request created")};
var pgP=function(b,h,y){b.JSC$20247_channelDebug_.debug("Test Connection Finished");b.useChunked_=b.secondTestResults_==null?y:!b.secondTestResults_;b.JSC$20251_lastStatusCode_=h.JSC$20246_lastStatusCode_;b.asyncTest_||TP2(b)},ecf=function(b,h){b.JSC$20247_channelDebug_.debug("Test Connection Failed");
b.JSC$20251_lastStatusCode_=h.JSC$20246_lastStatusCode_;Ph(b,2)};
K6.prototype.JSC$20246_onRequestData=function(b,h){if(this.state_!=0&&(this.JSC$20251_backChannelRequest_==b||this.forwardChannelRequest_==b))if(this.JSC$20251_lastStatusCode_=b.JSC$20239_lastStatusCode_,this.forwardChannelRequest_==b&&this.state_==3)if(this.JSC$20251_channelVersion_>7){try{var y=this.JSC$20247_parser_.parse(h)}catch(S){y=null}if(Array.isArray(y)&&y.length==3)if(h=y,h[0]==0)a:if(this.JSC$20247_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$20251_backChannelTimerId_)this.JSC$20247_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$20251_backChannelRequest_)if(this.JSC$20251_backChannelRequest_.JSC$20239_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$20239_requestStartTime_)ifP(this),this.JSC$20251_backChannelRequest_.cancel(),this.JSC$20251_backChannelRequest_=null;else break a;else this.JSC$20247_channelDebug_.warning("We do not have a BackChannel established");mTP(this);$t(19)}else this.JSC$20251_lastPostResponseArrayId_=h[1],b=this.JSC$20251_lastPostResponseArrayId_-this.JSC$20251_lastArrayId_,0<
b&&(h=h[2],this.JSC$20247_channelDebug_.debug(h+" bytes (in "+b+" arrays) are outstanding on the BackChannel"),h<37500&&this.useChunked_&&this.JSC$20251_backChannelRetryCount_==0&&!this.JSC$20251_deadBackChannelTimerId_&&(this.JSC$20251_deadBackChannelTimerId_=AS((0,_.i5)(this.JSC$20251_onBackChannelDead_,this),6E3)));else this.JSC$20247_channelDebug_.debug("Bad POST response data returned"),Ph(this,11)}else h!="y2f%"&&(this.JSC$20247_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
Ph(this,11));else this.JSC$20251_backChannelRequest_==b&&ifP(this),_.$U(h)||(b=this.JSC$20247_parser_.parse(h),this.onInput_(b))};
K6.prototype.JSC$20251_onBackChannelDead_=function(){this.JSC$20251_deadBackChannelTimerId_!=null&&(this.JSC$20251_deadBackChannelTimerId_=null,this.JSC$20251_backChannelRequest_.cancel(),this.JSC$20251_backChannelRequest_=null,mTP(this),$t(20))};
var ifP=function(b){b.JSC$20251_deadBackChannelTimerId_!=null&&(_.S5.clearTimeout(b.JSC$20251_deadBackChannelTimerId_),b.JSC$20251_deadBackChannelTimerId_=null)};
K6.prototype.JSC$20246_onRequestComplete=function(b){this.JSC$20247_channelDebug_.debug("Request complete");if(this.JSC$20251_backChannelRequest_==b){ifP(this);this.JSC$20251_backChannelRequest_=null;var h=2}else if(this.forwardChannelRequest_==b)this.forwardChannelRequest_=null,h=1;else return;this.JSC$20251_lastStatusCode_=b.JSC$20239_lastStatusCode_;if(this.state_!=0)if(b.JSC$20239_successful_)if(h==1){h=b.JSC$20239_postData_?b.JSC$20239_postData_.length:0;b=Date.now()-b.JSC$20239_requestStartTime_;
var y=KEx;y.dispatchEvent(new sp2(y,h,b,this.JSC$20251_forwardChannelRetryCount_));EdX(this);this.handler_&&this.handler_.JSC$20258_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else xTA(this);else{y=b.getLastError();if(y==3||y==7||y==0&&this.JSC$20251_lastStatusCode_>0)this.JSC$20247_channelDebug_.debug("Not retrying due to error type");else{this.JSC$20247_channelDebug_.debug("Maybe retrying, last error: "+odN(y,this.JSC$20251_lastStatusCode_));var S;if(S=h==1)this.forwardChannelRequest_||
this.JSC$20251_forwardChannelTimerId_||this.state_==1||this.JSC$20251_forwardChannelRetryCount_>=2?S=!1:(this.JSC$20247_channelDebug_.debug("Going to retry POST"),this.JSC$20251_forwardChannelTimerId_=AS((0,_.i5)(this.JSC$20251_onStartForwardChannelTimer_,this,b),Qp2(this,this.JSC$20251_forwardChannelRetryCount_)),this.JSC$20251_forwardChannelRetryCount_++,S=!0);if(S||h==2&&mTP(this))return;this.JSC$20247_channelDebug_.debug("Exceeded max number of retries")}this.JSC$20247_channelDebug_.debug("Error: HTTP request failed");
switch(y){case 1:Ph(this,5);break;case 4:Ph(this,10);break;case 3:Ph(this,6);break;case 7:Ph(this,12);break;default:Ph(this,2)}}};
var Qp2=function(b,h){var y=5E3+Math.floor(Math.random()*1E4);b.isActive()||(b.JSC$20247_channelDebug_.debug("Inactive channel"),y*=2);return y*h};
K6.prototype.onInput_=function(b){for(var h=0;h<b.length;h++){var y=b[h];this.JSC$20251_lastArrayId_=y[0];y=y[1];this.state_==2?y[0]=="c"?(this.sid_=y[1],this.JSC$20251_hostPrefix_=y[2],y=y[3],y!=null?this.JSC$20251_channelVersion_=y:this.JSC$20251_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$20258_channelOpened(),this.JSC$20251_backChannelUri_=JvN(this,this.JSC$20251_hostPrefix_,this.JSC$20251_path_),xTA(this)):y[0]=="stop"&&Ph(this,7):this.state_==3&&(y[0]=="stop"?Ph(this,7):
y[0]!="noop"&&this.handler_&&this.handler_.JSC$20258_channelHandleArray(y),this.JSC$20251_backChannelRetryCount_=0)}};
K6.prototype.JSC$20251_ensureInState_=function(b){if(!_.sj(arguments,this.state_))throw Error("$k`"+this.state_);};
var Ph=function(b,h){b.JSC$20247_channelDebug_.info("Error code "+h);if(h==2||h==9){var y=null;b.handler_&&(y=null);var S=(0,_.i5)(b.testGoogleComCallback_,b);y||(y=new _.lX("//www.google.com/images/cleardot.gif"),_.Uw(y));xDN(y.toString(),1E4,S)}else $t(2);b.onError_(h)};
K6.prototype.testGoogleComCallback_=function(b){b?(this.JSC$20247_channelDebug_.info("Successfully pinged google.com"),$t(2)):(this.JSC$20247_channelDebug_.info("Failed to ping google.com"),$t(1),this.onError_(8))};
K6.prototype.onError_=function(b){this.JSC$20247_channelDebug_.debug("HttpChannel: error - "+b);this.state_=0;this.handler_&&this.handler_.JSC$20258_channelError(b);Vbx(this);GOq(this)};
var Vbx=function(b){b.state_=0;b.JSC$20251_lastStatusCode_=-1;if(b.handler_)if(b.pendingMaps_.length==0&&b.JSC$20247_outgoingMaps_.length==0)b.handler_.JSC$20258_channelClosed();else{b.JSC$20247_channelDebug_.debug("Number of undelivered maps, pending: "+b.pendingMaps_.length+", outgoing: "+b.JSC$20247_outgoingMaps_.length);var h=_.Ej(b.pendingMaps_),y=_.Ej(b.JSC$20247_outgoingMaps_);b.pendingMaps_.length=0;b.JSC$20247_outgoingMaps_.length=0;b.handler_.JSC$20258_channelClosed(h,y)}},BPY=function(b,
h){h=UTf(b,null,h);
b.JSC$20247_channelDebug_.debug("GetForwardChannelUri: "+h);return h},JvN=function(b,h,y){h=UTf(b,b.JSC$20246_shouldUseSecondaryDomains()?h:null,y);
b.JSC$20247_channelDebug_.debug("GetBackChannelUri: "+h);return h},UTf=function(b,h,y){var S=_.La(y);
if(S.JSC$10215_domain_!="")h&&_.cR(S,h+"."+S.JSC$10215_domain_),_.RE(S,S.JSC$10215_port_);else{var F=window.location;S=gex(F.protocol,h?h+"."+F.hostname:F.hostname,+F.port,y)}b.JSC$20251_extraParams_&&_.lR.forEach(b.JSC$20251_extraParams_,function(a,P){_.Ka(S,P,a)});
_.Ka(S,"VER",b.JSC$20251_channelVersion_);kOA(b,S);return S};
K6.prototype.JSC$20246_createXhrIo=function(b){if(b)throw Error("Xk");b=new _.mX;b.JSC$9979_withCredentials_=!1;return b};
K6.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
K6.prototype.notifyServerReachabilityEvent=function(b){var h=KEx;h.dispatchEvent(new YAE(h,b))};
K6.prototype.JSC$20246_shouldUseSecondaryDomains=function(){return!1};
new Vy2;var vdq=function(){};
_.d=vdq.prototype;_.d.JSC$20258_channelOpened=function(){};
_.d.JSC$20258_channelHandleArray=function(){};
_.d.JSC$20258_channelSuccess=function(){};
_.d.JSC$20258_channelError=function(){};
_.d.JSC$20258_channelClosed=function(){};
_.d.JSC$20258_getAdditionalParams=function(){return{}};
_.d.isActive=function(){return!0};var bkX=function(b){b.front_.length===0&&(b.front_=b.back_,b.front_.reverse(),b.back_=[])};
_.d=vG2.prototype;_.d.enqueue=function(b){this.back_.push(b)};
_.d.peek=function(){bkX(this);return _.Uj(this.front_)};
_.d.getCount=function(){return this.front_.length+this.back_.length};
_.d.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.d.clear=function(){this.front_=[];this.back_=[]};
_.d.contains=function(b){return _.sj(this.front_,b)||_.sj(this.back_,b)};
_.d.remove=function(b){var h=this.front_;var y=Array.prototype.lastIndexOf.call(h,b,h.length-1);y>=0?(_.Uyk(h,y),h=!0):h=!1;return h||_.Gk(this.back_,b)};
_.d.getValues=function(){for(var b=[],h=this.front_.length-1;h>=0;--h)b.push(this.front_[h]);h=this.back_.length;for(var y=0;y<h;++y)b.push(this.back_[y]);return b};var Zz=function(b){this.JSC$20262_map_=new _.CT;this.size=0;b&&this.addAll(b)},hEY=function(b){var h=typeof b;
return h=="object"&&b||h=="function"?"o"+_.mM(b):h.charAt(0)+b};
_.d=Zz.prototype;_.d.getCount=function(){return this.JSC$20262_map_.size};
_.d.add=function(b){this.JSC$20262_map_.set(hEY(b),b);this.size=this.JSC$20262_map_.size};
_.d.addAll=function(b){b=_.t7(b);for(var h=b.length,y=0;y<h;y++)this.add(b[y]);this.size=this.JSC$20262_map_.size};
_.d.removeAll=function(b){b=_.t7(b);for(var h=b.length,y=0;y<h;y++)this.remove(b[y]);this.size=this.JSC$20262_map_.size};
_.d.delete=function(b){b=this.JSC$20262_map_.remove(hEY(b));this.size=this.JSC$20262_map_.size;return b};
_.d.remove=function(b){return this.delete(b)};
_.d.clear=function(){this.JSC$20262_map_.clear();this.size=0};
_.d.isEmpty=function(){return this.JSC$20262_map_.size===0};
_.d.has=function(b){return this.JSC$20262_map_.containsKey(hEY(b))};
_.d.contains=function(b){return this.JSC$20262_map_.containsKey(hEY(b))};
_.d.getValues=function(){return this.JSC$20262_map_.getValues()};
_.d.values=function(){return this.JSC$20262_map_.values()};
_.d.clone=function(){return new Zz(this)};
_.d.equals=function(b){return this.getCount()==eZA(b)&&ypq(this,b)};
var ypq=function(b,h){var y=eZA(h);if(b.getCount()>y)return!1;!(h instanceof Zz)&&y>5&&(h=new Zz(h));return CYX(b,function(S){var F=h;return F.contains&&typeof F.contains=="function"?F.contains(S):F.containsValue&&typeof F.containsValue=="function"?F.containsValue(S):_.f4(F)||typeof F==="string"?_.sj(F,S):_.lR.containsValue(F,S)})};
Zz.prototype.__iterator__=function(){return this.JSC$20262_map_.__iterator__(!1)};
Zz.prototype[Symbol.iterator]=function(){return this.values()};var Szd={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(b){return(this._clampValue(b)-this.min)/(this.max-this.min)},
_clampValue:function(b){return Math.min(this.max,Math.max(this.min,this._calcStep(b)))},
_calcStep:function(b){b=parseFloat(b);if(!this.step)return b;b=Math.round((b-this.min)/this.step);return this.step<1?b/(1/this.step)+this.min:b*this.step+this.min},
_validateValue:function(){var b=this._clampValue(this.value);this.value=this.oldValue=isNaN(b)?this.oldValue:b;return this.value!==b},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var Fqd;var aPX;_.pZ({_template:function(){if(aPX!==void 0)return aPX;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;Fqd===void 0&&(Fqd=document.createElement("template"));var S=Fqd;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return aPX=b},
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(){_.Ob(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(b){b.keyCode===27&&(b.preventDefault(),this.close())},
_track:function(b){if(!this.persistent&&!this.disableSwipe)switch(b.preventDefault(),b.detail.state){case "start":this._trackStart(b);break;case "track":this._trackMove(b);break;case "end":this._trackEnd(b)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var b=this.$.contentContainer.getBoundingClientRect();this._savedWidth=b.width;this._translateOffset=this.position==="left"?b.left:b.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(b){this._trackDetails&&(this._translateDrawer(b.detail.dx+this._translateOffset),this._trackDetails.push({dx:b.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(b){if(this._trackDetails){var h=b.detail.dx+this._translateOffset,y=this.getWidth();h=this.position==="left"?h>=0||h<=-y:h<=0||h>=y;if(!h){var S=this._trackDetails;this._trackDetails=null;this._flingDrawer(b,S);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}y/=2;b.detail.dx<-y?this.opened=this.position==="right":b.detail.dx>y&&(this.opened=this.position==="left");h?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(b,h){for(var y=Date.now(),S=y-100,F,a=0,P=h.length-1;a<=P;){var K=a+P>>1,n=h[K];n.timeStamp>=S?(F=n,P=K-1):a=K+1}return F?(b.detail.dx-F.dx)/(y-F.timeStamp||1):0},
_flingDrawer:function(b,h){h=this._calculateVelocity(b,h);if(!(Math.abs(h)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;b=b.detail.dx+this._translateOffset;var y=this.getWidth(),S=this.position==="left",F=h>0;F?(h=Math.max(h,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(h=Math.min(h,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");h=this._FLING_INITIAL_SLOPE*(!F&&S?-(b+y):F&&!S?y-b:-b)/h;this._styleTransitionDuration(h);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,h)}},
_styleTransitionDuration:function(b){this.style.transitionDuration=b+"ms";this.$.contentContainer.style.transitionDuration=b+"ms";this.$.scrim.style.transitionDuration=b+"ms"},
_styleTransitionTimingFunction:function(b){this.$.contentContainer.style.transitionTimingFunction=b;this.$.scrim.style.transitionTimingFunction=b},
_translateDrawer:function(b){var h=this.getWidth();this.position==="left"?(b=Math.max(-h,Math.min(b,0)),this.$.scrim.style.opacity=1+b/h):(b=Math.max(0,Math.min(b,h)),this.$.scrim.style.opacity=1-b/h);this.translate3d(b+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var b=this._drawerState;b===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;b!==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=""),b!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var b=_.rO(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"])');b.length>0?(this._firstTabStop=b[0],this._lastTabStop=b[b.length-1]):
this._lastTabStop=this._firstTabStop=null;(b=this.getAttribute("tabindex"))&&parseInt(b,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(b){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||b.keyCode!==9||(b.shiftKey?this._firstTabStop&&_.rO(b).localTarget===this._firstTabStop&&(b.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.rO(b).localTarget===this._lastTabStop&&(b.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(b,h){this.toggleClass("visible",b&&!h,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 dpf;var jxY;_.pZ({_template:function(){if(jxY!==void 0)return jxY;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;dpf===void 0&&(dpf=document.createElement("template"));var S=dpf;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return jxY=b},
is:"tp-yt-paper-progress",behaviors:[Szd],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(b){this.toggleClass("indeterminate",b,this.$.primaryProgress)},
_transformProgress:function(b,h){b.style.transform=b.style.webkitTransform="scaleX("+h/100+")"},
_mainRatioChanged:function(b){this._transformProgress(this.$.primaryProgress,b)},
_progressChanged:function(b,h,y,S,F){b=this._clampValue(b);h=this._clampValue(h);var a=this._calcRatio(b)*100,P=this._calcRatio(h)*100;this._setSecondaryRatio(a);this._transformProgress(this.$.secondaryProgress,a);this._transformProgress(this.$.primaryProgress,P);this.secondaryProgress=b;F?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",h);this.setAttribute("aria-valuemin",y);this.setAttribute("aria-valuemax",S)},
_disabledChanged:function(b){this.setAttribute("aria-disabled",b?"true":"false")},
_hideSecondaryProgress:function(b){return b===0}});var $pa;var LqP;var PUX=function(){};
_.d=PUX.prototype;_.d.registered=function(){};
_.d.addOwnKeyBinding=function(){};
_.d.removeOwnKeyBindings=function(){};
_.d.keyboardEventMatchesKeys=function(){};
_.d._collectKeyBindings=function(){};
_.d._prepKeyBindings=function(){};
_.d._addKeyBinding=function(){};
_.d._resetKeyEventListeners=function(){};
_.d._listenKeyEventListeners=function(){};
_.d._unlistenKeyEventListeners=function(){};
_.d._onKeyBindingEvent=function(){};
_.d._triggerKeyHandler=function(){};
_.d._tapHandler=function(){};
_.d._focusChanged=function(){};
_.d._detectKeyboardFocus=function(){};
_.d._userActivate=function(){};
_.d._upHandler=function(){};
_.d._spaceKeyDownHandler=function(){};
_.d._spaceKeyUpHandler=function(){};
_.d._asyncClick=function(){};
_.d._pressedChanged=function(){};
_.d._ariaActiveAttributeChanged=function(){};
_.d._activeChanged=function(){};
_.d._controlStateChanged=function(){};
_.d._changedButtonState=function(){};
_.d._focusBlurHandler=function(){};
_.d._disabledChanged=function(){};
_.d._changedControlState=function(){};
_.d._buttonStateChanged=function(){};
_.d._downHandler=function(){};
_.d.ensureRipple=function(){};
_.d.getRipple=function(){};
_.d.hasRipple=function(){};
_.d._noinkChanged=function(){};
_.d._calcRatio=function(){};
_.d._clampValue=function(){};
_.d._calcStep=function(){};
_.d._validateValue=function(){};
_.d._update=function(){};
_.d._setImmediateValue=function(){};
_.d._setExpand=function(){};
_.d._setDragging=function(){};
_.d._setTransiting=function(){};
_.d._setMarkers=function(){};
_.d._setPressed=function(){};
_.d._setPointerDown=function(){};
_.d._setReceivedFocusFromKeyboard=function(){};
_.d._setFocused=function(){};
_.d._setRatio=function(){};
PUX=_.pZ({_template:function(){if(LqP!==void 0)return LqP;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;$pa===void 0&&($pa=document.createElement("template"));var S=$pa;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return LqP=b},
is:"tp-yt-paper-slider",behaviors:[_.xq,_.bV,_.yUa,Szd],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&&_.yn(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(b,h,y){this.setAttribute("aria-valuemin",h);this.setAttribute("aria-valuemax",y);this.setAttribute("aria-valuenow",b);this._positionKnob(this._calcRatio(b)*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(b){this._setImmediateValue(this._calcStep(this._calcKnobPosition(b)));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(b){return(this.max-this.min)*b/100+this.min},
_onTrack:function(b){b.stopPropagation();switch(b.detail.state){case "start":this._trackStart(b);break;case "track":this._trackX(b);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(b){this.dragging||this._trackStart(b);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,b.detail.dx*(this._isRTL?-1:1)));b=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(b);b=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(b+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var b=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;b.transform=b.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(b){this._expandKnob();b.preventDefault();this.focus()},
_bartrack:function(b){this._allowBarEvent(b)&&this._onTrack(b)},
_barclick:function(b){this._w=this.$.sliderBar.offsetWidth;var h=this.$.sliderBar.getBoundingClientRect();h=(b.detail.x-h.left)/this._w*100;this._isRTL&&(h=100-h);var y=this.ratio;this._setTransiting(!0);this._positionKnob(h);y===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
b.preventDefault();this.focus()},
_bardown:function(b){this._allowBarEvent(b)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(b))},
_knobTransitionEnd:function(b){b.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(b,h,y,S){S||this._setMarkers([]);h=Math.round((y-h)/this.step);h>b&&(h=b);if(h<0||!isFinite(h))h=0;this._setMarkers(Array(h))},
_mergeClasses:function(b){return Object.keys(b).filter(function(h){return b[h]}).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(b){return!this.ignoreBarTouch||b.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(b){this._isRTL?this._incrementKey(b):this._decrementKey(b)},
_rightKey:function(b){this._isRTL?this._decrementKey(b):this._incrementKey(b)},
_incrementKey:function(b){this.disabled||(b.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),b.preventDefault())},
_decrementKey:function(b){this.disabled||(b.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),b.preventDefault())},
_changeValue:function(b){this.value=b.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(b){b.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.hWa._createRipple.call(this)},
_focusedChanged:function(b){b&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=b?"":"none",this._ripple.holdDown=b)}});var KqA;var Zkq;var oC=null,ooa=function(){};
_.d=ooa.prototype;_.d.fit=function(){};
_.d._discoverInfo=function(){};
_.d.resetFit=function(){};
_.d.refit=function(){};
_.d.position=function(){};
_.d.constrain=function(){};
_.d._sizeDimension=function(){};
_.d.__sizeDimension=function(){};
_.d.center=function(){};
_.d.__getNormalizedRect=function(){};
_.d.__getOffscreenArea=function(){};
_.d.__getPosition=function(){};
_.d.notifyResize=function(){};
_.d.assignParentResizable=function(){};
_.d.stopResizeNotificationsFor=function(){};
_.d._subscribeIronResize=function(){};
_.d._unsubscribeIronResize=function(){};
_.d.resizerShouldNotify=function(){};
_.d._onDescendantIronResize=function(){};
_.d._fireResize=function(){};
_.d._onIronRequestResizeNotifications=function(){};
_.d._parentResizableChanged=function(){};
_.d._notifyDescendant=function(){};
_.d._requestResizeNotifications=function(){};
_.d._findParent=function(){};
_.d.toggle=function(){};
_.d.open=function(){};
_.d.close=function(){};
_.d.cancel=function(){};
_.d.invalidateTabbables=function(){};
_.d._ensureSetup=function(){};
_.d._canceledChanged=function(){};
_.d._withBackdropChanged=function(){};
_.d._prepareRenderOpened=function(){};
_.d._finishRenderOpened=function(){};
_.d._finishRenderClosed=function(){};
_.d._preparePositioning=function(){};
_.d._finishPositioning=function(){};
_.d._applyFocus=function(){};
_.d._onCaptureClick=function(){};
_.d._onCaptureFocus=function(){};
_.d._onCaptureEsc=function(){};
_.d._onCaptureTab=function(){};
_.d._onIronResize=function(){};
_.d._onNodesChange=function(){};
_.d.__ensureFirstLastFocusables=function(){};
_.d.__openedChanged=function(){};
_.d.__deraf=function(){};
_.d.__updateScrollObservers=function(){};
_.d.__addScrollListeners=function(){};
_.d.__removeScrollListeners=function(){};
_.d.__isValidScrollAction=function(){};
_.d.__onCaptureScroll=function(){};
_.d.__saveScrollPosition=function(){};
_.d.__restoreScrollPosition=function(){};
_.d._setCanceled=function(){};
ooa=_.pZ({_template:function(){if(Zkq!==void 0)return Zkq;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;KqA===void 0&&(KqA=document.createElement("template"));var S=KqA;y.call(h,S.content.cloneNode(!0),b.content.firstChild);return Zkq=b},
is:"tp-yt-paper-toast",behaviors:[_.tQ],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(){_.qE._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.XV.requestAvailability()},
show:function(b){typeof b=="string"&&(b={text:b});for(var h in b)h.indexOf("_")===0?_.qE._warn('The property "'+h+'" is private and was not set.'):h in this?this[h]=b[h]:_.qE._warn('The property "'+h+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(b){b&&b.target===this&&b.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(oC&&oC!==this&&oC.close(),oC=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):oC===this&&(oC=null);_.Ne._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(b){this.positionTarget=b},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var M9q=new _.r4("disablePersonalizationAction");var LWF=new _.r4("showDmaConsentFlowCommand");var PDA=new _.r4("showMmgNoticeCommand");var noA=new _.r4("saveConsentAction");var XDA=function(b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Tq(b)};
_.z(XDA,_.ZL);var HkP=_.hhk(XDA);var u$A=new _.r4("updateTopbarAvatarAction");var Ok2=new _.r4("channelHandleValidationResultRenderer");var N7Y=new _.r4("generateHandleFromNameResultRenderer");var t9x=new _.r4("channelHandleInputRenderer");var rpA=new _.r4("copyLinkRenderer");var cpA=new _.r4("timedCommand");var REX=new _.r4("clearCookieAction");var zEq=new _.r4("getMultiPageMenuAction");var Dpq=new _.r4("addToGuideSectionAction"),IPF=new _.r4("removeFromGuideSectionAction");var B7q=new _.r4("updateNotificationsUnseenCountAction");var Wqa=new _.r4("resetChannelUnreadCountCommand");var Apf=new _.r4("resetSubscriptionsUnreadDotCommand");var UpN=new _.r4("selectLanguageCommand");var rUa=new _.r4("sendFeedbackAction");var pDf=new _.r4("uploadImageToScottyCommand");var Jp2=new _.r4("registerPromoCommand");var eEA=new _.r4("setPushNotificationsEnabledCommand");var CUF=new _.r4("desktopTopbarRenderer");var gox=new _.r4("surveyFollowUpRenderer");var sxA=new _.r4("handlesClaimingRadioOptionRenderer");var YzA=new _.r4("hotkeyDialogRenderer");var T7q=new _.r4("modifyReportFormCommand");var G_A=new _.r4("accountLinkCommand");var k_X=new _.r4("accountUnlinkCommand");var V9X=new _.r4("logAccountLinkingEventCommand");var nBP=new _.r4("guideCollapsibleEntryRenderer");var EoA=new _.r4("guideDownloadsEntryRenderer");var MVx=new _.r4("guideEntryRenderer");var ikN=new _.r4("getLocationCommand");var fPd=new _.r4("locationCollectionCommand");var wDA=new _.r4("storiesItemViewModel");var lPP=new _.r4("addToRemoteQueueAction");var qzx=new _.r4("insertInRemoteQueueAction");var xpf=new _.r4("removeFromRemoteQueueAction");var Qxd=new _.r4("notificationRenderer");var fy2=new _.r4("localWatchHistoryCommand");var mpf=new _.r4("pdgBuyFlowHeaderRenderer");var vof=new _.r4("pdgColorSliderRenderer");var brd=new _.r4("pdgCommentOptionRenderer");var hfP=new _.r4("pdgCommentPreviewRenderer");var yZx=new _.r4("superVodSelectableItemButtonRenderer");var SXf=new _.r4("switchButtonRenderer");var FzA=new _.r4("upsellDialogRenderer");var aid=new _.r4("feedbackQuestionRenderer"),dYd=new _.r4("feedbackOptionRenderer");var jQq=new _.r4("sponsorshipsTierRenderer"),$Yf=new _.r4("sponsorshipsPromotionChannelRenderer");var LzA=new _.r4("simpleSurveyMessageRenderer");var DIE=new _.r4("invokeInstrumentManagerAction");var PHf=new _.r4("logYpcFlowDismissCommand");var KzP=new _.r4("logYpcFlowStartCommand");var ZrY=new _.r4("unlimitedCreateFamilyEndpoint");var owf=new _.r4("iconBadgeRenderer");var lSX=new _.r4("collaborativePlaylistVisibilityValidationRule");var MUA=function(b){_.eW.call(this,"channelMessage");this.message=b};
_.z(MUA,_.eW);var nwA=function(b){_.eW.call(this,"channelError");this.error=b};
_.z(nwA,_.eW);var XQa={AUTOPLAY:"atp",SKA_SKIPPABLE_ADS:"ska",QUEUE_SUPPORT:"que",MULTI_USER_SESSIONS:"mus",SINGLE_USER_SESSIONS:"sus",HAS_DISPLAY:"dsp",SCREEN_EXTENDED_QUEUE_SUPPORT:"seq",MIC:"mic",DPAD:"dpa",MULTISTATE_LOOP_MODE:"mlm",DISCONNECT_STRATEGY_DEFFERRED_TO_RECEIVER:"dsdtr",NATIVE_BROWSE:"ntb",VARIABLE_SPEED:"vsp",ENABLE_VIDEO_SOURCE_CLIENT_NAME:"scn",RECEIVER_PLAYLIST_EXPANSION:"rpe",DISABLE_CURRENTINDEX_IN_NOWPLAYING:"dcn",DISABLE_CURRENTINDEX_IN_PLAYLISTMODIFIED:"dcp",PAUSE_AT_START:"pas",DISABLE_QUEUE_FOR_RECEIVER_ONLY_SESSION:"drq",
ONUSERACTIVITY_POLLING_FREQUENCY:"opf",ENABLE_LOUNGE_STATUS_PLAYBACK:"els",ENABLE_IDENTITY_SWITCH_TO_GUEST:"isg",SERVER_QUEUES:"svq",MULTIVIEW_PLAYBACK:"mvp",ACTIVE_DEVICE_STORE_WRITES:"ads",STREAM_TRANSFER_CREATE_PLAYLIST:"stcp",SHORTS_ACTIVE_DEVICE_STORE_WRITES:"sads",DISABLE_LOGGED_OUT_CASTING:"dloc",DUAL_CTT_WRITES:"dcw",ACTIVE_STREAM_WRITES_FOR_CONNECTED_REMOTES:"asw",ACTIVE_PLAYBACK_WRITES_FOR_CONNECTED_REMOTES:"apw",ACTIVE_STREAM_WRITES_FOR_REMOTE_CONNECTION_AND_DISCONNECTION:"wrc",PUNCTUAL_WATCH:"pcw",
IP_VALIDATION:"ipv",NO_DISCONNECT_TOAST:"ndt",CONNECT_TOAST_ONCE_PER_SESSION:"ctops"},Hrf={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},uwd={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},Ora={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},NEA={NOW_PLAYING_SHORTS:"nowPlayingShorts",
ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var M2=function(b){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 _.CT;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;b&&(this.id=b.id||b.name,this.name=b.name,this.clientName=b.clientName?b.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=b.app,this.type=b.type||"REMOTE_CONTROL",this.username=b.user||"",this.avatar=b.userAvatarUri||"",this.obfuscatedGaiaId=b.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=b.ownerObfuscatedGaiaId||"",this.castUserId=b.castUserId||"",this.theme=b.theme||"u",tUx(this,b.capabilities||""),rZx(this,
b.compatibleSenderThemes||""),a3f(this,b.experiments||""),this.remoteControllerUrl=b.remoteControllerUrl||"",this.localChannelEncryptionKey=b.localChannelEncryptionKey||"",this.deviceContext=b.deviceContext,this.brand=b.brand||"",this.model=b.model||"",this.year=b.year||0,this.os=b.os||"",this.osVersion=b.osVersion||"",this.chipset=b.chipset||"",this.mdxDialServerType=b.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=b.pairingType||"unknown",b=b.deviceInfo)&&(b=JSON.parse(b),this.brand=
b.brand||"",this.model=b.model||"",this.year=b.year||0,this.os=b.os||"",this.osVersion=b.osVersion||"",this.chipset=b.chipset||"",this.clientName=b.clientName?b.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=b.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
M2.prototype.copy=function(){var b={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&&(b.brand=this.brand);
this.model&&(b.model=this.model);this.year&&(b.year=this.year);this.os&&(b.os=this.os);this.osVersion&&(b.osVersion=this.osVersion);this.chipset&&(b.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(b.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(b.mdxDialServerType=this.mdxDialServerType);b=new M2(b);b.connected=this.connected;b.remoteControllerUrl=this.remoteControllerUrl;b.localChannelEncryptionKey=this.localChannelEncryptionKey;b.deviceContext=
this.deviceContext;b.castUserId=this.castUserId;return b};
M2.prototype.equals=function(b){return b?this.id==b.id:!1};
var tUx=function(b,h){b.capabilities.clear();_.oX(h.split(","),_.X8(_.lR.contains,XQa)).forEach(function(y){b.capabilities.add(y)})},rZx=function(b,h){b.compatibleSenderThemes.clear();
_.oX(h.split(","),_.X8(_.lR.contains,Hrf)).forEach(function(y){b.compatibleSenderThemes.add(y)})},a3f=function(b,h){b.experiments.clear();
h.split(",").forEach(function(y){b.experiments.add(y)})};_.Pv(hNA,_.ED);_.d=hNA.prototype;_.d.JSC$20298_onTick_=function(){this.JSC$20296_interval_=Math.min(3E5,this.JSC$20296_interval_*2);this.JSC$20298_listener_();this.nextTickTime_&&this.start()};
_.d.start=function(){var b=this.JSC$20296_interval_+15E3*Math.random(),h=this.delay_;h.isActive()||h.start(b);this.nextTickTime_=Date.now()+b};
_.d.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.d.isActive=function(){return this.delay_.isActive()};
_.d.reset=function(){this.delay_.stop();this.JSC$20296_interval_=5E3};_.Pv(pY,vdq);_.d=pY.prototype;_.d.subscribe=function(b,h,y){return this.pubsub_.subscribe(b,h,y)};
_.d.unsubscribe=function(b,h,y){return this.pubsub_.unsubscribe(b,h,y)};
_.d.unsubscribeByKey=function(b){return this.pubsub_.unsubscribeByKey(b)};
_.d.publish=function(b,h){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.d.dispose=function(){this.JSC$20299_disposed_||(this.JSC$20299_disposed_=!0,_.nq(this.pubsub_),this.disconnect(),_.nq(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$20299_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.$p({})})};
_.d.isDisposed=function(){return this.JSC$20299_disposed_};
_.d.connect=function(b,h,y){var S=this,F,a,P,K;return _.Z(function(n){if(n.nextAddress==1)return _.p$(n,2),S.useAsyncBrowserChannelHandler_?n.yield(S.connectPromise_,2):n.jumpTo(2);_.U3(n);if(S.JSC$20299_disposed_||S.JSC$20299_channel_&&S.JSC$20299_channel_.getState()==2&&!S.isInitialReconnectTimer_)return n.return();S.sCookie_="";S.isInitialReconnectTimer_||S.reconnectTimer_.stop();S.connectionParams_=b||null;S.connectUi_=h||0;F=S.JSC$20299_pathPrefix_+"/test";a=S.JSC$20299_pathPrefix_+"/bind";P=
new K6(y?y.firstTestResults:null,y?y.secondTestResults:null,S.enableAsyncTest_);if(K=S.JSC$20299_channel_)K.handler_=null;P.handler_=S;S.JSC$20299_channel_=P;if(S.useAsyncBrowserChannelHandler_)return S.connectPromise_=dfF(S).then(function(){return jlA(S,F,a,K,y)}),n.return(S.connectPromise_.then(function(){S.connectPromise_=_.$p()}));
jlA(S,F,a,K,y);return _.Jk(n,0)})};
var jlA=function(b,h,y,S,F){$fX(b);if(b.JSC$20299_channel_){var a=_.QC("ID_TOKEN"),P=b.JSC$20299_channel_.JSC$20251_extraHeaders_||{};a?P["x-youtube-identity-token"]=a:delete P["x-youtube-identity-token"];b.JSC$20299_channel_.JSC$20251_extraHeaders_=P}LrE(b);S?(S.getState(),b.JSC$20299_channel_.connect(h,y,b.defaultQueryParams_,S.sid_,S.JSC$20251_lastArrayId_)):F?b.JSC$20299_channel_.connect(h,y,b.defaultQueryParams_,F.sessionId,F.arrayId):b.JSC$20299_channel_.connect(h,y,b.defaultQueryParams_);b.isInitialReconnectTimer_&&
!b.reconnectTimer_.isActive()&&b.reconnectTimer_.start()};
pY.prototype.disconnect=function(b){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.$p())}finally{this.disconnectUi_=b||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),$fX(this),this.JSC$20299_channel_&&(this.JSC$20299_channel_.getState()==3&&wgd(this.JSC$20299_channel_),this.JSC$20299_channel_.disconnect()),this.disconnectUi_=0}};
pY.prototype.sendMessage=function(b,h){var y=this,S;return _.Z(function(F){switch(F.nextAddress){case 1:_.p$(F,2);if(!y.useAsyncBrowserChannelHandler_){F.jumpTo(2);break}return F.yield(y.connectPromise_,2);case 2:_.U3(F);if(y.JSC$20299_disposed_)return F.return();S={_sc:b};h&&_.lR.extend(S,h);if(y.reconnectTimer_.isActive()||(y.JSC$20299_channel_?y.JSC$20299_channel_.getState():0)==2){y.JSC$20299_pendingMessages_.push(S);F.jumpTo(6);break}if(!y.isChannelOpened()){F.jumpTo(6);break}_.p$(F,8);if(!y.useAsyncBrowserChannelHandler_||
PyP(y,b)){F.jumpTo(8);break}return F.yield(dfF(y),8);case 8:_.U3(F,0,0,1);y.isChannelOpened()&&(PyP(y,b)||LrE(y),$fX(y),fVd(y.JSC$20299_channel_,S));_.Jk(F,6,1);break;case 6:_.Jk(F,0)}})};
var PyP=function(b,h){return b.enableMdxAuthForConnectionOnly_?!0:b.disableMdxAuthForAdMessages_?Object.values(uwd).includes(h):b.disableMdxAuthForNonPlaybackMessages_?!Object.values(Ora).includes(h):b.disableMdxAuthForShortsMessages_?Object.values(NEA).includes(h):!1};
pY.prototype.JSC$20258_channelOpened=function(){this.isInitialReconnectTimer_?(this.reconnectTimer_.stop(),_.nq(this.reconnectTimer_),this.reconnectTimer_=new hNA(this.safeReconnect_,this),this.isInitialReconnectTimer_=!1):this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$20299_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)Krq(this);else{var b=this.JSC$20299_pendingMessages_;this.JSC$20299_pendingMessages_=[];var h=b.length;LrE(this);ZN2(this,
b,h);olf(this)}else olf(this)};
var Krq=function(b){var h,y;_.Z(function(S){if(S.nextAddress==1)return _.p$(S,2),S.yield(dfF(b),2);_.U3(S);h=b.JSC$20299_pendingMessages_;b.JSC$20299_pendingMessages_=[];y=h.length;ZN2(b,h,y);olf(b);return _.Jk(S,0)})},ZN2=function(b,h,y){for(var S=0;S<y;++S)fVd(b.JSC$20299_channel_,h[S]);
olf(b)},olf=function(b){b.publish("handlerOpened");
b.JSC$20299_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.d=pY.prototype;_.d.JSC$20258_channelError=function(b){var h=b==2&&this.JSC$20299_channel_.JSC$20251_lastStatusCode_==401;b==4||h||this.reconnectTimer_.start();this.publish("handlerError",b,h);h=Object.keys(gdA).find(function(y){return gdA[y]===b});
this.JSC$20299_channelErrorCounter.increment("BROWSER_CHANNEL",h!=null?h:"UNKNOWN")};
_.d.JSC$20258_channelClosed=function(b,h){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(h)for(var y=h.length,S=0;S<y;++S){var F=h[S].map;F&&this.JSC$20299_pendingMessages_.push(F)}this.JSC$20299_channelClosedCounter.increment("BROWSER_CHANNEL");b&&this.pendingMapsOnClosedCounter.JSC$10115_streamzService.JSC$9970_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",b.length);h&&this.undeliveredMapsOnClosedCounter.JSC$10118_streamzService.JSC$9970_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
h.length)};
_.d.JSC$20258_channelSuccess=function(b,h){h!=null&&b!=null&&this.channelMessageSentCounter.increment()};
_.d.JSC$20258_getAdditionalParams=function(){var b={v:2};this.sCookie_&&(b.gsessionid=this.sCookie_);this.connectUi_!=0&&(b.ui=""+this.connectUi_);this.disconnectUi_!=0&&(b.ui=""+this.disconnectUi_);this.connectionParams_&&_.lR.extend(b,this.connectionParams_);return b};
_.d.JSC$20258_channelHandleArray=function(b){b[0]=="S"?this.sCookie_=b[1]:b[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$20299_channel_.disconnect()):this.publish("handlerMessage",new bWN(b[0],b[1]));this.JSC$20299_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.d.isChannelOpened=function(){return!!this.JSC$20299_channel_&&this.JSC$20299_channel_.getState()==3};
var $fX=function(b){if(b.JSC$20299_channel_){var h=b.JSC$20299_getXsrfToken_(),y=b.JSC$20299_channel_.JSC$20251_extraHeaders_||{};h?y["x-youtube-lounge-xsrf-token"]=h:delete y["x-youtube-lounge-xsrf-token"];b.JSC$20299_channel_.JSC$20251_extraHeaders_=y}},dfF=function(b){if(b.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.$p();
if(!b.enableCachedUpdateAuthorizationHeader_)return Mlx(b);b.updateAuthorizationHeaderPromise_===null&&(b.updateAuthorizationHeaderPromise_=Mlx(b));return b.updateAuthorizationHeaderPromise_},Mlx=function(b){return _.le(b.getAuthorizationHeader_().then(function(h){nlE(b,h)}).thenCatch(function(){}),function(){b.updateAuthorizationHeaderPromise_=null})},nlE=function(b,h){if(b.JSC$20299_channel_){var y=b.JSC$20299_channel_.JSC$20251_extraHeaders_||{};
h&&Object.keys(h).length>0?y=Object.assign({},y,h):delete y.Authorization;b.JSC$20299_channel_.JSC$20251_extraHeaders_=y}},LrE=function(b){b.getAuthorizationHeaderSync_&&!b.useAsyncBrowserChannelHandler_&&nlE(b,b.getAuthorizationHeaderSync_())};
_.d=pY.prototype;_.d.setLoungeToken=function(b){(this.defaultQueryParams_.loungeIdToken=b)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$20299_channel_){var h=this.JSC$20299_channel_.JSC$20251_extraHeaders_||{};b?h["X-YouTube-LoungeId-Token"]=b:delete h["X-YouTube-LoungeId-Token"];this.JSC$20299_channel_.JSC$20251_extraHeaders_=h}};
_.d.getDeviceId=function(){return this.defaultQueryParams_.id};
_.d.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.d.reconnect=function(){var b=this.reconnectTimer_;b.delay_.fire();b.start()};
_.d.safeReconnect_=function(){var b=this.JSC$20299_channel_,h=0;b.JSC$20251_backChannelRequest_&&h++;b.forwardChannelRequest_&&h++;h==0&&this.connect(this.connectionParams_,this.connectUi_)};var go=function(b,h){var y=b.basePath;b.supportCors&&(y=b.scheme+"://"+b.domain+b.port+b.basePath);return _.P9(y+h,{})};
Lgf.prototype.sendRequest=function(b,h,y,S,F,a,P){b={format:a?"RAW":"JSON",method:b,context:this,timeout:5E3,withCredentials:!!P,onSuccess:_.X8(this.JSC$20305_onSuccess_,S,!a),onError:_.X8(this.onError_,F),onTimeout:_.X8(this.JSC$20305_onTimeout_,F)};y&&(b.postParams=y,b.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.Aj(h,b)};
Lgf.prototype.JSC$20305_onSuccess_=function(b,h,y,S){h?b(S):b({text:y.responseText})};
Lgf.prototype.onError_=function(b,h){b(Error("al`"+h.status))};
Lgf.prototype.JSC$20305_onTimeout_=function(b){b(Error("bl"))};var o7x=function(b,h){return!!h&&(b.id==h||b.uuid==h)},Xuf=function(b){return{name:b.name,
screenId:b.id,loungeToken:b.token,dialId:b.uuid,screenIdType:b.idType,screenIdSecret:b.secret}},HNN=function(b){return new JS(b)},u2N=function(b){return Array.isArray(b)?_.qz(b,HNN):[]},nYP=function(b){if(!b)return"null";
var h=b.token?".."+b.token.slice(-6):"-",y=b.uuid?".."+b.uuid.slice(-6):"-",S=b.secret?".."+b.secret.slice(-6):"-";return'{name:"'+b.name+'",id:'+b.id.substr(0,6)+"..,token:"+(h+",uuid:"+y+",idType:"+b.idType+",secret:")+(S+"}")},V4A=function(b){return Array.isArray(b)?"["+_.qz(b,nYP).join(",")+"]":"null"};var NeF="",CY=null;var A_A=function(b,h){_.TI.call(this);var y=this;this.handler=b();this.handler.subscribe("handlerOpened",this.JSC$20312_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(S,F){y.onError(F)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=h};
_.z(A_A,_.TI);_.d=A_A.prototype;_.d.connect=function(b,h,y){this.handler.connect(b,h,y)};
_.d.disconnect=function(b){this.handler.disconnect(b)};
_.d.reconnect=function(){this.handler.reconnect()};
_.d.getDeviceId=function(){return this.handler.getDeviceId()};
_.d.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.d.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.d.JSC$20312_onOpened=function(){this.dispatchEvent("channelOpened");var b=this.handler,h=this.currentScreenId;_.Bd("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!b.JSC$20299_channel_.useChunked_,sessionId:b.JSC$20299_channel_.sid_,arrayId:b.JSC$20299_channel_.JSC$20251_lastArrayId_});_.Bd("yt-remote-session-screen-id",h);b=M4Y();h=n7Y();_.sj(b,h)||b.push(h);OWA(b);uoN()};
_.d.onClosed=function(){this.dispatchEvent("channelClosed")};
_.d.onMessage=function(b){this.dispatchEvent(new MUA(b))};
_.d.onError=function(b){this.dispatchEvent(new nwA(b?1:0))};
_.d.sendMessage=function(b,h){this.handler.sendMessage(b,h)};
_.d.setLoungeToken=function(b){this.handler.setLoungeToken(b)};
_.d.dispose=function(){this.handler.dispose()};var WgF=function(b,h,y){var S=this;y=y===void 0?function(){return""}:y;
var F=F===void 0?new dTa:F;var a=a===void 0?new _.Jj:a;this.pathPrefix=b;this.defaultQueryParams=h;this.getXsrfToken=y;this.JSC$20315_pubsub=a;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new hNA(function(){var P;((P=S.channel)==null?void 0:e4f((new LEA(P,P.JSC$20222_channel_)).JSC$20232_channel_.forwardChannelRequestPool_))===0&&S.connect(S.connectionParams,S.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$20315_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$20315_channelOpenedCounter=new y_A;this.JSC$20315_channelClosedCounter=new S9q;this.JSC$20315_channelMessageReceivedCounter=new aaa;this.JSC$20315_channelErrorCounter=new d$Y};
WgF.prototype.connect=function(b,h){b=b===void 0?{}:b;h=h===void 0?0:h;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=b,this.connectUi=h,ON2(this),(b=_.QC("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=b: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 jB(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,NmA(this))};
var NmA=function(b){_.W3(b.channel,"w",function(){b.channelState=3;b.reconnectTimer.reset();b.connectionParams=null;b.connectUi=0;for(var h=_.L(b.nonAckedMessagesOnChannelClosed),y=h.next();!y.done;y=h.next())y=y.value,b.channel&&b.channel.send(y);b.nonAckedMessagesOnChannelClosed=[];b.publish("webChannelOpened");b.JSC$20315_channelOpenedCounter.increment("WEB_CHANNEL")});
_.W3(b.channel,"x",function(){b.channelState=0;b.reconnectTimer.isActive()||b.publish("webChannelClosed");var h,y=(h=b.channel)==null?void 0:Pwa(new LEA(h,h.JSC$20222_channel_));y&&(b.nonAckedMessagesOnChannelClosed=[].concat(_.f$(y)));b.JSC$20315_channelClosedCounter.increment("WEB_CHANNEL")});
_.W3(b.channel,"z",function(h){var y=h.data;y[0]==="gracefulReconnect"?(b.reconnectTimer.start(),b.channel&&b.channel.close()):b.publish("webChannelMessage",new bWN(y[0],y[1]));b.lastStatusCode=h.statusCode;b.JSC$20315_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.W3(b.channel,"y",function(){b.lastStatusCode===401||b.reconnectTimer.start();b.publish("webChannelError");b.JSC$20315_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.d=WgF.prototype;_.d.disconnect=function(b){this.disconnectUi=b===void 0?0:b;this.reconnectTimer.stop();ON2(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.d.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.d.reconnect=function(){var b=this.reconnectTimer;b.delay_.fire();b.start()};
_.d.sendMessage=function(b,h){this.channel&&(ON2(this),b=Object.assign({},{_sc:b},h),this.channel.send(b))};
_.d.setLoungeToken=function(b){b||this.reconnectTimer.stop();b?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=b:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var ON2=function(b){var h=b.getXsrfToken();h?b.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=h:delete b.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.d=WgF.prototype;_.d.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.d.publish=function(b){return this.JSC$20315_pubsub.publish.apply(this.JSC$20315_pubsub,[b].concat(_.f$(_.x$.apply(1,arguments))))};
_.d.subscribe=function(b,h,y){return this.JSC$20315_pubsub.subscribe(b,h,y)};
_.d.unsubscribe=function(b,h,y){return this.JSC$20315_pubsub.unsubscribe(b,h,y)};
_.d.unsubscribeByKey=function(b){return this.JSC$20315_pubsub.unsubscribeByKey(b)};
_.d.dispose=function(){this.JSC$20315_disposed||(this.JSC$20315_disposed=!0,_.nq(this.JSC$20315_pubsub),this.disconnect(),_.nq(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.d.isDisposed=function(){return this.JSC$20315_disposed};var BeY=function(b){_.TI.call(this);this.webChannelService=b();this.webChannelService.subscribe("webChannelOpened",this.JSC$20323_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.z(BeY,_.TI);_.d=BeY.prototype;_.d.connect=function(b,h){this.webChannelService.connect(b,h)};
_.d.disconnect=function(b){this.webChannelService.disconnect(b)};
_.d.reconnect=function(){this.webChannelService.reconnect()};
_.d.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.d.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.d.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.d.JSC$20323_onOpened=function(){this.dispatchEvent("channelOpened")};
_.d.onClosed=function(){this.dispatchEvent("channelClosed")};
_.d.onMessage=function(b){this.dispatchEvent(new MUA(b))};
_.d.onError=function(){this.dispatchEvent(new nwA(this.webChannelService.lastStatusCode===401?1:0))};
_.d.sendMessage=function(b,h){this.webChannelService.sendMessage(b,h)};
_.d.setLoungeToken=function(b){this.webChannelService.setLoungeToken(b)};
_.d.dispose=function(){this.webChannelService.dispose()};var kff=Date.now(),s1=null,Teq=Array(50),Y9Y=-1,Gf2=!1;_.Pv(GL,_.KY);GL.prototype.getScreens=function(){return this.screens};
GL.prototype.contains=function(b){return!!ZWY(this.screens,b)};
GL.prototype.get=function(b){return b?eu(this.screens,b):null};
var tlE=function(b,h){var y=b.get(h.uuid)||b.get(h.id);if(y)return b=y.name,y.id=h.id||y.id,y.name=h.name,y.token=h.token,y.uuid=h.uuid||y.uuid,y.name!=b;b.screens.push(h);return!0},rfa=function(b,h){var y=b.screens.length!=h.length;
b.screens=_.oX(b.screens,function(a){return!!ZWY(h,a)});
for(var S=h.length,F=0;F<S;F++)y=tlE(b,h[F])||y;return y},cfP=function(b,h){var y=b.screens.length;
b.screens=_.oX(b.screens,function(S){return!(S||h?!S!=!h?0:S.id==h.id:1)});
return b.screens.length<y};
GL.prototype.info=function(b){Yk(this.JSC$20324_logName_,b)};var R3q=function(b,h,y,S,F){_.KY.call(this);this.JSC$20327_http_=b;this.pairingCode_=h;this.deviceId_=y;this.friendlyName_=S;this.enableShortLivedLoungeToken_=F;this.pollIndex_=0;this.JSC$20327_xhr_=null;this.JSC$20327_timer_=NaN};
_.z(R3q,_.KY);_.d=R3q.prototype;_.d.start=function(){!this.JSC$20327_xhr_&&isNaN(this.JSC$20327_timer_)&&this.poll_()};
_.d.stop=function(){this.JSC$20327_xhr_&&(this.JSC$20327_xhr_.abort(),this.JSC$20327_xhr_=null);isNaN(this.JSC$20327_timer_)||(_.B9(this.JSC$20327_timer_),this.JSC$20327_timer_=NaN)};
_.d.disposeInternal=function(){this.stop();_.KY.prototype.disposeInternal.call(this)};
_.d.poll_=function(){this.JSC$20327_timer_=NaN;this.JSC$20327_xhr_=_.Aj(go(this.JSC$20327_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.i5)(this.JSC$20329_onSuccess_,this),onError:(0,_.i5)(this.onError_,this),onTimeout:(0,_.i5)(this.JSC$20329_onTimeout_,this)})};
_.d.JSC$20329_onSuccess_=function(b,h){this.JSC$20327_xhr_=null;b=h.screen||{};b.dialId=this.deviceId_;b.name=this.friendlyName_;h=-1;this.enableShortLivedLoungeToken_&&b.shortLivedLoungeToken&&b.shortLivedLoungeToken.value&&b.shortLivedLoungeToken.refreshIntervalMs&&(b.screenIdType="shortLived",b.loungeToken=b.shortLivedLoungeToken.value,h=b.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new JS(b),h)};
_.d.onError_=function(b){this.JSC$20327_xhr_=null;b.status&&b.status==404?this.pollIndex_>=z3A.length?this.publish("pairingFailed",Error("cl")):(b=z3A[this.pollIndex_],this.JSC$20327_timer_=_.zn((0,_.i5)(this.poll_,this),b),this.pollIndex_++):this.publish("pairingFailed",Error("dl`"+b.status))};
_.d.JSC$20329_onTimeout_=function(){this.JSC$20327_xhr_=null;this.publish("pairingFailed",Error("el"))};
var z3A=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.Pv(Vc,GL);_.d=Vc.prototype;_.d.start=function(){kk(this)&&this.publish("screenChange");!_.Wd("yt-remote-lounge-token-expiration")&&DfY(this);_.B9(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.zn((0,_.i5)(this.start,this),1E4)};
_.d.add=function(b,h){kk(this);tlE(this,b);I3A(this,!1);this.publish("screenChange");h(b);b.token||DfY(this)};
_.d.remove=function(b,h){var y=kk(this);cfP(this,b)&&(I3A(this,!1),y=!0);h(b);y&&this.publish("screenChange")};
_.d.updateName=function(b,h,y,S){var F=kk(this),a=this.get(b.id);a?(a.name!=h&&(a.name=h,I3A(this,!1),F=!0),y(b)):S(Error("fl"));F&&this.publish("screenChange")};
_.d.disposeInternal=function(){_.B9(this.loungeTokenRefreshTimer_);Vc.superClass_.disposeInternal.call(this)};
var DfY=function(b){if(b.screens.length){var h=_.qz(b.screens,function(S){return S.id}),y=go(b.JSC$20331_http_,"/pairing/get_lounge_token_batch");
b.JSC$20331_http_.sendRequest("POST",y,{screen_ids:h.join(",")},(0,_.i5)(b.handleLoungeTokens_,b),(0,_.i5)(b.handleLoungeTokenError_,b))}};
Vc.prototype.handleLoungeTokens_=function(b){kk(this);var h=this.screens.length;b=b&&b.screens||[];for(var y=b.length,S=0;S<y;++S){var F=b[S],a=this.get(F.screenId);a&&(a.token=F.loungeToken,--h)}I3A(this,!h);h&&Yk(this.JSC$20324_logName_,"Missed "+h+" lounge tokens.")};
Vc.prototype.handleLoungeTokenError_=function(b){Yk(this.JSC$20324_logName_,"Requesting lounge tokens failed: "+b)};
var kk=function(b){if(_.r("deprecate_pair_servlet_enabled"))return rfa(b,[]);var h=u2N(r_f());h=_.oX(h,function(y){return!y.uuid});
return rfa(b,h)},I3A=function(b,h){RNq(_.qz(b.screens,Xuf));
h&&c_N()};var n6=function(b,h){_.KY.call(this);this.getScreensToCheck_=h;h=(h=_.Wd("yt-remote-online-screen-ids")||"")?h.split(","):[];for(var y={},S=this.getScreensToCheck_(),F=S.length,a=0;a<F;++a){var P=S[a].id;y[P]=_.sj(h,P)}this.screenIdSet_=y;this.JSC$20334_http_=b;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;Bmf("Initialized with "+(0,_.Q4)(this.screenIdSet_))};
_.z(n6,_.KY);n6.prototype.isOnline=function(b){return!!this.screenIdSet_[b]};
n6.prototype.start=function(){var b=parseInt(_.Wd("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.LF()-144E5<b?0:b)?Wrx(this):(this.fastCheckEndTime_=_.LF()+3E5,_.Bd("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
n6.prototype.isEmpty=function(){return _.lR.isEmpty(this.screenIdSet_)};
n6.prototype.update=function(){Bmf("Updating availability on schedule.");var b=this.getScreensToCheck_(),h=_.lR.filter(this.screenIdSet_,function(y,S){return y&&!!eu(b,S)},this);
AfY(this,h)};
var UfN=function(b,h,y){var S=go(b.JSC$20334_http_,"/pairing/get_screen_availability");b.JSC$20334_http_.sendRequest("POST",S,{lounge_token:h.token},(0,_.i5)(function(F){F=F.screens||[];for(var a=F.length,P=0;P<a;++P)if(F[P].loungeToken==h.token){y(F[P].status=="online");return}y(!1)},b),(0,_.i5)(function(){y(!1)},b))};
n6.prototype.disposeInternal=function(){_.B9(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.KY.prototype.disposeInternal.call(this)};
var AfY=function(b,h){a:if(_.lR.getCount(h)!=_.lR.getCount(b.screenIdSet_))var y=!1;else{y=_.lR.getKeys(h);for(var S=y.length,F=0;F<S;++F)if(!b.screenIdSet_[y[F]]){y=!1;break a}y=!0}y||(Bmf("Updated online screens: "+(0,_.Q4)(b.screenIdSet_)),b.screenIdSet_=h,b.publish("screenChange"));puf(b)},Wrx=function(b){isNaN(b.refreshTimer_)||_.B9(b.refreshTimer_);
b.refreshTimer_=_.zn((0,_.i5)(b.requestScreenAvailability_,b),b.fastCheckEndTime_>0&&b.fastCheckEndTime_<_.LF()?2E4:1E4)};
n6.prototype.requestScreenAvailability_=function(){_.B9(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var b=Jfq(this);if(_.lR.getCount(b)){var h=go(this.JSC$20334_http_,"/pairing/get_screen_availability"),y={lounge_token:_.lR.getKeys(b).join(",")};this.currentRequest_=this.JSC$20334_http_.sendRequest("POST",h,y,(0,_.i5)(this.onScreenAvailability_,this,b),(0,_.i5)(this.onScreenAvailabilityError_,this))}else AfY(this,{}),Wrx(this)};
n6.prototype.onScreenAvailability_=function(b,h){this.currentRequest_=null;var y=_.lR.getKeys(Jfq(this));if(_.bo(y,_.lR.getKeys(b))){h=h.screens||[];y={};for(var S=h.length,F=0;F<S;++F)y[b[h[F].loungeToken]]=h[F].status=="online";AfY(this,y);Wrx(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
n6.prototype.onScreenAvailabilityError_=function(b){this.warn_("Screen availability failed: "+b);this.currentRequest_=null;Wrx(this)};
var Bmf=function(b){Yk("OnlineScreenService",b)};
n6.prototype.warn_=function(b){Yk("OnlineScreenService",b)};
var Jfq=function(b){var h={};_.FS(b.getScreensToCheck_(),function(y){y.token?h[y.token]=y.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return h},puf=function(b){b=_.lR.getKeys(_.lR.filter(b.screenIdSet_,function(h){return h}));
b.sort(_.Cfr);b.length?_.Bd("yt-remote-online-screen-ids",b.join(","),60):_.AP("yt-remote-online-screen-ids")};_.Pv(E1,GL);_.d=E1.prototype;_.d.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.d.add=function(b,h,y){this.localScreenService_.add(b,h,y)};
_.d.remove=function(b,h,y){this.localScreenService_.remove(b,h,y);this.onlineScreenService_.update()};
_.d.updateName=function(b,h,y,S){this.localScreenService_.contains(b)?this.localScreenService_.updateName(b,h,y,S):(b="Updating name of unknown screen: "+b.name,Yk(this.JSC$20324_logName_,b),S(Error(b)))};
_.d.getScreens=function(b){return b?this.screens:BUA(this.screens,_.oX(this.automaticScreens_,function(h){return!this.contains(h)},this))};
_.d.JSC$20339_getOnlineScreens=function(){return _.oX(this.getScreens(!0),function(b){return this.onlineScreenService_.isOnline(b.id)},this)};
var CyN=function(b,h,y,S,F,a){b.info("getAutomaticScreenByIds "+y+" / "+h);y||(y=b.deviceToScreenId_[h]);var P=b.getScreens(),K=y?eu(P,y):null;y&&(b.disableAutomaticScreenCache_||K)||(K=eu(P,h));if(K){K.uuid=h;var n=XG(b,K);UfN(b.onlineScreenService_,n,function(X){F(X?n:null)})}else y?e3A(b,y,(0,_.i5)(function(X){var u=XG(this,new JS({name:S,
screenId:y,loungeToken:X,dialId:h||""}));UfN(this.onlineScreenService_,u,function(O){F(O?u:null)})},b),a):F(null)};
E1.prototype.JSC$20339_getScreenByPollingPairingCode=function(b,h,y,S,F,a){var P=this;this.info("getDialScreenByPairingCode "+b+" / "+h);var K=new R3q(this.JSC$20337_http_,b,h,y,S);K.subscribe("pairingComplete",function(n,X){_.nq(K);F(XG(P,n),X)});
K.subscribe("pairingFailed",function(n){_.nq(K);a(n)});
K.start();return(0,_.i5)(K.stop,K)};
var glx=function(b,h){for(var y=b.screens.length,S=0;S<y;++S)if(b.screens[S].name==h)return b.screens[S];return null};
E1.prototype.JSC$20339_getScreenByPairingCode=function(b,h,y,S){_.Aj(go(this.JSC$20337_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:b},timeout:5E3,onSuccess:(0,_.i5)(function(F,a){F=new JS(a.screen||{});if(!F.name||glx(this,F.name)){a:{a=F.name;for(var P=2,K=h(a,P);glx(this,K);){P++;if(P>20)break a;K=h(a,P)}a=K}F.name=a}y(XG(this,F))},this),
onError:(0,_.i5)(function(F){S(Error("gl`"+F.status))},this),
onTimeout:(0,_.i5)(function(){S(Error("hl"))},this)})};
var slF=function(b,h,y){UfN(b.onlineScreenService_,h,y)};
E1.prototype.disposeInternal=function(){_.nq(this.localScreenService_);_.nq(this.onlineScreenService_);E1.superClass_.disposeInternal.call(this)};
var e3A=function(b,h,y,S){b.info("requestLoungeToken_ for "+h);var F={postParams:{screen_ids:h},method:"POST",context:b,onSuccess:function(a,P){a=P&&P.screens||[];a[0]&&a[0].screenId==h?y(a[0].loungeToken):S(Error("il"))},
onError:function(){S(Error("jl"))}};
_.Aj(go(b.JSC$20337_http_,"/pairing/get_lounge_token_batch"),F)},YcE=function(b){b.screens=b.localScreenService_.getScreens();
for(var h=_.lR.transpose(b.deviceToScreenId_),y=b.screens.length,S=0;S<y;++S){var F=b.screens[S];F.uuid=h[F.id]||""}b.info("Updated manual screens: "+V4A(b.screens))};
E1.prototype.handleScreenChange_=function(){YcE(this);this.publish("screenChange");this.onlineScreenService_.update()};
var E7P=function(b){TmA(b);b.localScreenService_=new Vc(b.JSC$20337_http_);b.localScreenService_.subscribe("screenChange",(0,_.i5)(b.handleScreenChange_,b));YcE(b);b.disableAutomaticScreenCache_||(b.automaticScreens_=u2N(_.Wd("yt-remote-automatic-screen-cache")||[]));TmA(b);b.info("Initializing automatic screens: "+V4A(b.automaticScreens_));b.onlineScreenService_=new n6(b.JSC$20337_http_,(0,_.i5)(b.getScreens,b,!0));b.onlineScreenService_.subscribe("screenChange",(0,_.i5)(function(){this.publish("onlineScreenChange")},
b))},XG=function(b,h){var y=b.get(h.id);
y?(y.uuid=h.uuid,h=y):((y=eu(b.automaticScreens_,h.uuid))?(y.id=h.id,y.token=h.token,h=y):b.automaticScreens_.push(h),b.disableAutomaticScreenCache_||GZa(b));TmA(b);b.deviceToScreenId_[h.uuid]=h.id;_.Bd("yt-remote-device-id-map",b.deviceToScreenId_,31536E3);return h},GZa=function(b){b=_.oX(b.automaticScreens_,function(h){return h.idType!="shortLived"});
_.Bd("yt-remote-automatic-screen-cache",_.qz(b,Xuf))},TmA=function(b){b.deviceToScreenId_=_.Wd("yt-remote-device-id-map")||{}};
E1.prototype.dispose=E1.prototype.dispose;_.Pv(ix,_.KY);var Hh=function(b,h){b.screen_=h;b.publish("sessionScreen",b.screen_)},kZf=function(b,h){b.screen_&&(b.screen_.token=h,XG(b.JSC$20341_screenService_,b.screen_));
b.publish("sessionScreen",b.screen_)};
ix.prototype.onSessionStopped=function(b){this.isDisposed()||(b&&(u1(this,""+b),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
ix.prototype.info=function(b){Yk(this.JSC$20341_logName_,b)};
var u1=function(b,h){Yk(b.JSC$20341_logName_,h)};
ix.prototype.JSC$20343_getCastSession=function(){return null};
ix.prototype.setDisplayStatus=function(b){var h=this.receiver_;b?(h.displayStatus=new chrome.cast.ReceiverDisplayStatus(b,[]),h.displayStatus.showStop=!0):h.displayStatus=null;chrome.cast.setReceiverDisplayStatus(h,(0,_.i5)(function(){this.info("Updated receiver status for "+h.friendlyName+": "+b)},this),(0,_.i5)(function(){u1(this,"Failed to update receiver status for: "+h.friendlyName)},this))};
ix.prototype.disposeInternal=function(){this.setDisplayStatus("");ix.superClass_.disposeInternal.call(this)};var Or=function(b,h,y){ix.call(this,b,h,"CastSession");var S=this;this.config_=y;this.JSC$20346_session_=null;this.JSC$20346_boundSessionUpdate_=(0,_.i5)(this.JSC$20348_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.i5)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.zn(function(){Vl2(S,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$20346_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$20346_isInitLoungeToken_=!1;this.JSC$20346_lastLoungeTokenRefreshError_="unknown"};
_.z(Or,ix);_.d=Or.prototype;
_.d.setCastSession=function(b){if(this.JSC$20346_session_){if(this.JSC$20346_session_==b)return;u1(this,"Overriding cast session with new session object");ElX(this);this.JSC$20346_isInitLoungeToken_=!1;this.JSC$20346_lastLoungeTokenRefreshError_="unknown";this.JSC$20346_session_.removeUpdateListener(this.JSC$20346_boundSessionUpdate_);this.JSC$20346_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$20346_session_=b;this.JSC$20346_session_.addUpdateListener(this.JSC$20346_boundSessionUpdate_);this.JSC$20346_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);iNa(this,"getMdxSessionStatus")};
_.d.launchWithParams=function(b){this.info("launchWithParams no-op for Cast: "+(0,_.Q4)(b))};
_.d.stop=function(){if(this.JSC$20346_session_)this.JSC$20346_session_.stop((0,_.i5)(function(){this.onSessionStopped()},this),(0,_.i5)(function(){this.onSessionStopped(Error("kl"))},this));
else this.onSessionStopped(Error("ll"))};
_.d.setDisplayStatus=function(){};
_.d.disposeInternal=function(){this.info("disposeInternal");ElX(this);this.JSC$20346_session_&&(this.JSC$20346_session_.removeUpdateListener(this.JSC$20346_boundSessionUpdate_),this.JSC$20346_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$20346_session_=null;ix.prototype.disposeInternal.call(this)};
var wua=function(b,h){_.B9(b.getLoungeTokenTimeoutKey_);b.getLoungeTokenTimeoutKey_=0;h==0?f3f(b):b.getLoungeTokenTimeoutKey_=_.zn(function(){f3f(b)},h)},f3f=function(b){iNa(b,"getLoungeToken");
_.B9(b.onLoungeTokenTimeoutKey_);b.onLoungeTokenTimeoutKey_=_.zn(function(){l3F(b,null)},3E4)},iNa=function(b,h){b.info("sendYoutubeMessage_: "+h+" "+(0,_.Q4)(void 0));
var y={};y.type=h;b.JSC$20346_session_?b.JSC$20346_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",y,function(){},(0,_.i5)(function(){u1(this,"Failed to send message: "+h+".")},b)):u1(b,"Sending yt message without session: "+(0,_.Q4)(y))};
Or.prototype.onYoutubeMessage_=function(b,h){if(!this.isDisposed())if(h)if(h=(0,_.Dn)(h),_.lf(h))switch(b=""+h.type,h=h.data||{},this.info("onYoutubeMessage_: "+b+" "+(0,_.Q4)(h)),b){case "mdxSessionStatus":Vl2(this,h);break;case "loungeToken":l3F(this,h);break;default:u1(this,"Unknown youtube message: "+b)}else u1(this,"Unable to parse message.");else u1(this,"No data in message.")};
var qc2=function(b,h){if(h)b.info("onConnectedScreenId_: Received screenId: "+h),b.screen_&&b.screen_.id==h||b.getScreen_(h,function(y){Hh(b,y)},function(){return b.onSessionStopped()},5);
else b.onSessionStopped(Error("ml"))},Qlf=function(b,h,y){b.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(h));
var S=new JS(h);xfY(b,S,function(F){F?(b.JSC$20346_isInitLoungeToken_=!0,XG(b.JSC$20341_screenService_,S),Hh(b,S),b.JSC$20346_lastLoungeTokenRefreshError_="unknown",wua(b,y)):(_.v4(Error("nl`"+JSON.stringify(h))),b.onSessionStopped())},5)},Vl2=function(b,h){_.B9(b.sessionStatusTimeoutKey_);
b.sessionStatusTimeoutKey_=0;if(h)b.config_.enableCastLoungeToken&&h.loungeToken?h.deviceId?b.screen_&&b.screen_.uuid==h.deviceId||(h.loungeTokenRefreshIntervalMs?Qlf(b,{name:b.receiver_.friendlyName,screenId:h.screenId,loungeToken:h.loungeToken,dialId:h.deviceId,screenIdType:"shortLived"},h.loungeTokenRefreshIntervalMs):(_.v4(Error("pl`"+JSON.stringify(h))),qc2(b,h.screenId))):(_.v4(Error("ol`"+JSON.stringify(h))),qc2(b,h.screenId)):qc2(b,h.screenId);else b.onSessionStopped(Error("ml"))},l3F=function(b,
h){_.B9(b.onLoungeTokenTimeoutKey_);
b.onLoungeTokenTimeoutKey_=0;var y=null;if(h)if(h.loungeToken){var S;((S=b.screen_)==null?void 0:S.token)==h.loungeToken&&(y="staleLoungeToken")}else y="missingLoungeToken";else y="noLoungeTokenResponse";y?(b.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(h)+", error: "+y)),b.JSC$20346_lastLoungeTokenRefreshError_=y,wua(b,3E4)):(kZf(b,h.loungeToken),b.JSC$20346_isInitLoungeToken_=!1,b.JSC$20346_lastLoungeTokenRefreshError_="unknown",wua(b,h.loungeTokenRefreshIntervalMs))};
Or.prototype.getScreen_=function(b,h,y,S){_.B9(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;CyN(this.JSC$20341_screenService_,this.receiver_.label,b,this.receiver_.friendlyName,(0,_.i5)(function(F){F?h(F):S>=0?(u1(this,"Screen "+b+" appears to be offline. "+S+" retries left."),this.getScreenTimeoutKey_=_.zn((0,_.i5)(this.getScreen_,this,b,h,y,S-1),300)):y(Error("ql"))},this),y)};
var xfY=function(b,h,y,S){_.B9(b.JSC$20346_checkScreenAvailabilityTimeoutKey_);b.JSC$20346_checkScreenAvailabilityTimeoutKey_=0;slF(b.JSC$20341_screenService_,h,function(F){F||S<0?y(F):b.JSC$20346_checkScreenAvailabilityTimeoutKey_=_.zn(function(){xfY(b,h,y,S-1)},300)})};
Or.prototype.JSC$20343_getCastSession=function(){return this.JSC$20346_session_};
Or.prototype.JSC$20348_onSessionUpdate_=function(b){this.isDisposed()||b||(u1(this,"Cast session died."),this.onSessionStopped())};
var ElX=function(b){_.B9(b.getScreenTimeoutKey_);b.getScreenTimeoutKey_=0;_.B9(b.JSC$20346_checkScreenAvailabilityTimeoutKey_);b.JSC$20346_checkScreenAvailabilityTimeoutKey_=0;_.B9(b.sessionStatusTimeoutKey_);b.sessionStatusTimeoutKey_=0;_.B9(b.onLoungeTokenTimeoutKey_);b.onLoungeTokenTimeoutKey_=0;_.B9(b.getLoungeTokenTimeoutKey_);b.getLoungeTokenTimeoutKey_=0};var N2=function(b,h,y,S){ix.call(this,b,h,"DialSession");this.config_=S;this.JSC$20350_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$20350_theme_=y;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$20350_deferredLaunchDeadlineTimer_=NaN;this.JSC$20350_boundSessionUpdate_=(0,_.i5)(this.JSC$20352_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$20350_checkScreenAvailabilityTimeoutKey_=0;this.JSC$20350_isInitLoungeToken_=!1;this.JSC$20350_lastLoungeTokenRefreshError_="unknown"};
_.z(N2,ix);N2.prototype.setCastSession=function(b){this.JSC$20350_session_=b;this.JSC$20350_session_.addUpdateListener(this.JSC$20350_boundSessionUpdate_)};
N2.prototype.launchWithParams=function(b){this.connectData_=b;this.deferredLaunch_()};
N2.prototype.stop=function(){mfY(this);if(this.JSC$20350_session_)this.JSC$20350_session_.stop((0,_.i5)(this.onSessionStopped,this,null),(0,_.i5)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
N2.prototype.disposeInternal=function(){mfY(this);this.JSC$20350_session_&&this.JSC$20350_session_.removeUpdateListener(this.JSC$20350_boundSessionUpdate_);this.JSC$20350_session_=null;ix.prototype.disposeInternal.call(this)};
var vlA=function(b){var h;return!!(b.config_.enableDialLoungeToken&&((h=b.JSC$20350_session_)==null?0:h.getDialAppInfo))},hDE=function(b){b.cancelPolling_=b.JSC$20341_screenService_.JSC$20339_getScreenByPollingPairingCode(b.reversePairingCode_,b.receiver_.label,b.receiver_.friendlyName,vlA(b),function(h,y){b.cancelPolling_=function(){};
b.JSC$20350_isInitLoungeToken_=!0;Hh(b,h);h.idType=="shortLived"&&y>0&&bbN(b,y)},function(h){b.cancelPolling_=function(){};
b.onSessionStopped(h)})};
N2.prototype.JSC$20352_onSessionUpdate_=function(b){this.isDisposed()||b||(u1(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var yEF=function(b){var h={};h.pairingCode=b.reversePairingCode_;h.theme=b.JSC$20350_theme_;IaF()&&(h.env_useStageMdx=1);return _.pn(h)},SC2=function(b){return new Promise(function(h){b.reversePairingCode_=PGa();
if(b.connectData_){var y=new chrome.cast.DialLaunchResponse(!0,yEF(b));h(y);hDE(b)}else b.deferredLaunch_=function(){_.B9(b.JSC$20350_deferredLaunchDeadlineTimer_);b.deferredLaunch_=function(){};
b.JSC$20350_deferredLaunchDeadlineTimer_=NaN;var S=new chrome.cast.DialLaunchResponse(!0,yEF(b));h(S);hDE(b)},b.JSC$20350_deferredLaunchDeadlineTimer_=_.zn(function(){b.deferredLaunch_()},100)})},axf=function(b,h,y){b.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(h));
var S=new JS(h);return(new Promise(function(F){FHf(b,S,function(a){a?(b.JSC$20350_isInitLoungeToken_=!0,XG(b.JSC$20341_screenService_,S),Hh(b,S),bbN(b,y)):_.v4(Error("sl`"+JSON.stringify(h)));F(a)},5)})).then(function(F){return F?new chrome.cast.DialLaunchResponse(!1):SC2(b)})},drd=function(b,h){var y=b.launchData_.receiver.label,S=b.receiver_.friendlyName;
return(new Promise(function(F){CyN(b.JSC$20341_screenService_,y,h,S,function(a){a&&a.token&&Hh(b,a);F(a)},function(a){u1(b,"Failed to get DIAL screen: "+a);
F(null)})})).then(function(F){return F&&F.token?new chrome.cast.DialLaunchResponse(!1):SC2(b)})},FHf=function(b,h,y,S){_.B9(b.JSC$20350_checkScreenAvailabilityTimeoutKey_);
b.JSC$20350_checkScreenAvailabilityTimeoutKey_=0;slF(b.JSC$20341_screenService_,h,function(F){F||S<0?y(F):b.JSC$20350_checkScreenAvailabilityTimeoutKey_=_.zn(function(){FHf(b,h,y,S-1)},300)})},bbN=function(b,h){b.info("getDialAppInfoWithTimeout_ "+h);
vlA(b)&&(_.B9(b.getDialAppInfoTimeoutKey_),b.getDialAppInfoTimeoutKey_=0,h==0?jvd(b):b.getDialAppInfoTimeoutKey_=_.zn(function(){jvd(b)},h))},jvd=function(b){vlA(b)&&b.JSC$20350_session_.getDialAppInfo(function(h){b.info("getDialAppInfo dialLaunchData: "+JSON.stringify(h));
h=h.extraData||{};var y=null;if(h.loungeToken){var S;((S=b.screen_)==null?void 0:S.token)==h.loungeToken&&(y="staleLoungeToken")}else y="missingLoungeToken";y?(b.JSC$20350_lastLoungeTokenRefreshError_=y,bbN(b,3E4)):(b.JSC$20350_isInitLoungeToken_=!1,b.JSC$20350_lastLoungeTokenRefreshError_="unknown",kZf(b,h.loungeToken),bbN(b,h.loungeTokenRefreshIntervalMs))},function(h){b.info("getDialAppInfo error: "+h);
b.JSC$20350_lastLoungeTokenRefreshError_="noLoungeTokenResponse";bbN(b,3E4)})},mfY=function(b){_.B9(b.JSC$20350_checkScreenAvailabilityTimeoutKey_);
b.JSC$20350_checkScreenAvailabilityTimeoutKey_=0;_.B9(b.getDialAppInfoTimeoutKey_);b.getDialAppInfoTimeoutKey_=0;b.cancelPolling_();b.cancelPolling_=function(){};
_.B9(b.JSC$20350_deferredLaunchDeadlineTimer_)};var t$=function(b,h){ix.call(this,b,h,"ManualSession");this.JSC$20354_deferredLaunchDeadlineTimer_=_.zn((0,_.i5)(this.launchWithParams,this,null),150)};
_.z(t$,ix);t$.prototype.stop=function(){this.onSessionStopped()};
t$.prototype.setCastSession=function(){};
t$.prototype.launchWithParams=function(){_.B9(this.JSC$20354_deferredLaunchDeadlineTimer_);this.JSC$20354_deferredLaunchDeadlineTimer_=NaN;var b=eu(this.JSC$20341_screenService_.getScreens(),this.receiver_.label);if(b)Hh(this,b);else this.onSessionStopped(Error("tl"))};
t$.prototype.disposeInternal=function(){_.B9(this.JSC$20354_deferredLaunchDeadlineTimer_);this.JSC$20354_deferredLaunchDeadlineTimer_=NaN;ix.prototype.disposeInternal.call(this)};var q6=function(b,h){_.KY.call(this);this.config_=h;this.JSC$20357_screenService_=b;this.JSC$20357_appId_=h.appId||"233637DE";this.JSC$20357_theme_=h.theme||"cl";this.disableDial_=h.disableCastApi||!1;this.forceMirroring_=h.forceMirroring||!1;this.JSC$20357_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.i5)(this.onReceiverAction_,this)};
_.z(q6,_.KY);
q6.prototype.init=function(b,h){chrome.cast.timeout.requestSession=3E4;var y=new chrome.cast.SessionRequest(this.JSC$20357_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.r("desktop_enable_cast_connect")&&(y.androidReceiverCompatible=!0);this.disableDial_||(y.dialRequest=new chrome.cast.DialRequest("YouTube"));var S=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;b=b||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var F=(0,_.i5)(this.onReceiverUpdated_,
this);y=new chrome.cast.ApiConfig(y,(0,_.i5)(this.onSessionEstablished_,this),F,S,b);y.customDialLaunchCallback=(0,_.i5)(this.onDialLaunchRequested_,this);chrome.cast.initialize(y,(0,_.i5)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),CGq(),this.JSC$20357_screenService_.subscribe("onlineScreenChange",(0,_.i5)(this.JSC$20359_onScreenChange_,this)),this.customReceivers_=$rd(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.i5)(function(a){this.warn_("Failed to set initial custom receivers: "+(0,_.Q4)(a))},this)),this.publish("yt-remote-cast2-availability-change",LHA(this)),h(!0))},this),(0,_.i5)(function(a){this.warn_("Failed to initialize API: "+(0,_.Q4)(a));
h(!1)},this))};
q6.prototype.setConnectedScreenStatus=function(b,h){r9("Setting connected screen ID: "+b+" -> "+h);if(this.JSC$20357_session_){var y=this.JSC$20357_session_.screen_;if(!b||y&&y.id!=b)r9("Unsetting old screen status: "+this.JSC$20357_session_.receiver_.friendlyName),ch(this,null)}if(b&&h){if(!this.JSC$20357_session_){b=eu(this.JSC$20357_screenService_.getScreens(),b);if(!b){r9("setConnectedScreenStatus: Unknown screen.");return}if(b.idType=="shortLived"){r9("setConnectedScreenStatus: Screen with id type to be short lived.");
return}y=P0A(this,b);y||(r9("setConnectedScreenStatus: Connected receiver not custom..."),y=new chrome.cast.Receiver(b.uuid?b.uuid:b.id,b.name),y.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(y),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.i5)(function(S){this.warn_("Failed to set initial custom receivers: "+(0,_.Q4)(S))},this)));
r9("setConnectedScreenStatus: new active receiver: "+y.friendlyName);ch(this,new t$(this.JSC$20357_screenService_,y),!0)}this.JSC$20357_session_.setDisplayStatus(h)}else r9("setConnectedScreenStatus: no screen.")};
var P0A=function(b,h){return h?_.p4(b.customReceivers_,function(y){return o7x(h,y.label)},b):null};
q6.prototype.setLaunchParams=function(b){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$20357_session_?this.JSC$20357_session_.launchWithParams(b):this.warn_("Setting connection data without a session")};
q6.prototype.JSC$20359_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$20357_session_?(this.JSC$20357_session_.stop(),ch(this,null)):r9("Stopping non-existing session")};
q6.prototype.requestSession=function(){chrome.cast.requestSession((0,_.i5)(this.onSessionEstablished_,this),(0,_.i5)(this.onSessionRequestFailed_,this))};
q6.prototype.disposeInternal=function(){this.JSC$20357_screenService_.unsubscribe("onlineScreenChange",(0,_.i5)(this.JSC$20359_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.Gk(_.hj("yt.mdx.remote.debug.handlers_")||[],pfP);_.nq(this.JSC$20357_session_);_.KY.prototype.disposeInternal.call(this)};
var r9=function(b){Yk("Controller",b)};
q6.prototype.warn_=function(b){Yk("Controller",b)};
var pfP=function(b){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(b)},LHA=function(b){return b.hasCastReceiver_||!!b.customReceivers_.length||!!b.JSC$20357_session_},ch=function(b,h,y){h!=b.JSC$20357_session_&&(_.nq(b.JSC$20357_session_),(b.JSC$20357_session_=h)?(y?b.publish("yt-remote-cast2-receiver-resumed",h.receiver_):b.publish("yt-remote-cast2-receiver-selected",h.receiver_),h.subscribe("sessionScreen",(0,_.i5)(b.onSessionScreen_,b,h)),h.subscribe("sessionFailed",
function(){return KHY(b,h)}),h.screen_?b.publish("yt-remote-cast2-session-change",h.screen_):y&&b.JSC$20357_session_.launchWithParams(null)):b.publish("yt-remote-cast2-session-change",null))},KHY=function(b,h){b.JSC$20357_session_==h&&b.publish("yt-remote-cast2-session-failed")};
_.d=q6.prototype;_.d.onSessionScreen_=function(b,h){this.JSC$20357_session_==b&&(h||ch(this,null),this.publish("yt-remote-cast2-session-change",h))};
_.d.onReceiverAction_=function(b,h){if(!this.isDisposed())if(b)switch(b.friendlyName=chrome.cast.unescape(b.friendlyName),r9("onReceiverAction_ "+b.label+" / "+b.friendlyName+"-- "+h),h){case chrome.cast.ReceiverAction.CAST:if(this.JSC$20357_session_)if(this.JSC$20357_session_.receiver_.label!=b.label)r9("onReceiverAction_: Stopping active receiver: "+this.JSC$20357_session_.receiver_.friendlyName),this.JSC$20357_session_.stop();else{r9("onReceiverAction_: Casting to active receiver.");this.JSC$20357_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$20357_session_.screen_);break}switch(b.receiverType){case chrome.cast.ReceiverType.CUSTOM:ch(this,new t$(this.JSC$20357_screenService_,b));break;case chrome.cast.ReceiverType.DIAL:ch(this,new N2(this.JSC$20357_screenService_,b,this.JSC$20357_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:ch(this,new Or(this.JSC$20357_screenService_,b,this.config_));break;default:this.warn_("Unknown receiver type: "+b.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$20357_session_&&
this.JSC$20357_session_.receiver_.label==b.label?this.JSC$20357_session_.stop():this.warn_("Stopping receiver w/o session: "+b.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.d.onDialLaunchRequested_=function(b){if(this.isDisposed())return Promise.reject(Error("ul"));var h=b.receiver;h.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+h.friendlyName),h.receiverType=chrome.cast.ReceiverType.DIAL);var y=this.JSC$20357_session_?this.JSC$20357_session_.receiver_:null;if(!y||y.label!=h.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+h.friendlyName),Promise.reject(Error("vl"));if(y&&y.label==h.label&&y.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$20357_session_.screen_)return r9("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$20357_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+y.receiverType+'" to "dial" for '+h.friendlyName);ch(this,new N2(this.JSC$20357_screenService_,h,this.JSC$20357_theme_,this.config_))}h=this.JSC$20357_session_;h.launchData_=b;h.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(b=h.launchData_.extraData||{},y=b.screenId||null,vlA(h)&&b.loungeToken?b.loungeTokenRefreshIntervalMs?b=axf(h,{name:h.receiver_.friendlyName,screenId:b.screenId,loungeToken:b.loungeToken,dialId:h.launchData_.receiver.label,screenIdType:"shortLived"},b.loungeTokenRefreshIntervalMs):(_.v4(Error("rl`"+JSON.stringify(b))),b=drd(h,y)):b=drd(h,y)):b=SC2(h);return b};
_.d.onSessionEstablished_=function(b){var h=this;if(!this.isDisposed()&&!this.forceMirroring_){r9("New cast session ID: "+b.sessionId);var y=b.receiver;if(y.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$20357_session_)if(y.receiverType==chrome.cast.ReceiverType.CAST)r9("Got resumed cast session before resumed mdx connection."),y.friendlyName=chrome.cast.unescape(y.friendlyName),ch(this,new Or(this.JSC$20357_screenService_,y,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var S=this.JSC$20357_session_.receiver_,F=eu(this.JSC$20357_screenService_.getScreens(),S.label);F&&o7x(F,y.label)&&S.receiverType!=chrome.cast.ReceiverType.CAST&&y.receiverType==chrome.cast.ReceiverType.CAST&&(r9("onSessionEstablished_: manual to cast session change "+y.friendlyName),_.nq(this.JSC$20357_session_),this.JSC$20357_session_=new Or(this.JSC$20357_screenService_,y,this.config_),this.JSC$20357_session_.subscribe("sessionScreen",(0,_.i5)(this.onSessionScreen_,this,this.JSC$20357_session_)),
this.JSC$20357_session_.subscribe("sessionFailed",function(){return KHY(h,h.JSC$20357_session_)}),this.JSC$20357_session_.launchWithParams(null));
this.JSC$20357_session_.setCastSession(b)}}};
_.d.JSC$20359_getCastSession=function(){return this.JSC$20357_session_?this.JSC$20357_session_.JSC$20343_getCastSession():null};
_.d.onSessionRequestFailed_=function(b){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.Q4)(b)),b.code!=chrome.cast.ErrorCode.CANCEL&&ch(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.d.onReceiverUpdated_=function(b){r9("Receiver availability updated: "+b);if(!this.isDisposed()){var h=LHA(this);this.hasCastReceiver_=b==chrome.cast.ReceiverAvailability.AVAILABLE;LHA(this)!=h&&this.publish("yt-remote-cast2-availability-change",LHA(this))}};
var $rd=function(b){var h=b.JSC$20357_screenService_.JSC$20339_getOnlineScreens(),y=b.JSC$20357_session_&&b.JSC$20357_session_.receiver_;b=_.qz(h,function(S){y&&o7x(S,y.label)&&(y=null);var F=S.uuid?S.uuid:S.id,a=P0A(this,S);a?(a.label=F,a.friendlyName=S.name):(a=new chrome.cast.Receiver(F,S.name),a.receiverType=chrome.cast.ReceiverType.CUSTOM);return a},b);
y&&(y.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(y=new chrome.cast.Receiver(y.label,y.friendlyName),y.receiverType=chrome.cast.ReceiverType.CUSTOM),b.push(y));return b};
q6.prototype.JSC$20359_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=$rd(this),r9("Updating custom receivers: "+(0,_.Q4)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.i5)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",LHA(this)))};
q6.prototype.setLaunchParams=q6.prototype.setLaunchParams;q6.prototype.setConnectedScreenStatus=q6.prototype.setConnectedScreenStatus;q6.prototype.stopSession=q6.prototype.JSC$20359_stopSession;q6.prototype.getCastSession=q6.prototype.JSC$20359_getCastSession;q6.prototype.requestSession=q6.prototype.requestSession;q6.prototype.init=q6.prototype.init;q6.prototype.dispose=q6.prototype.dispose;var Zbx=_.bm(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),$q2=[],Q8a=_.Ra(Zbx);var oOa=function(b){b.audioTrackId=null;b.trackData=null;b.playerState=-1;b.hasPrevious=!1;b.hasNext=!1;b.playerTime_=0;b.playerTimeAt_=_.LF();b.seekableStart_=0;b.seekableEnd_=0;b.duration_=0;b.loadedTime=0;b.liveIngestionTime_=NaN;b.isLive_=!1};
_.d=xk.prototype;
_.d.reset=function(b){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;b&&(this.index=b.index,this.listId=b.listId,this.videoId=b.videoId,this.playerState=b.playerState,this.volume=b.volume,this.muted=b.muted,this.audioTrackId=b.audioTrackId,this.trackData=b.trackData,this.hasPrevious=b.hasPrevious,this.hasNext=b.hasNext,this.playerTime_=b.playerTime,this.playerTimeAt_=b.playerTimeAt,this.seekableStart_=b.seekableStart,this.seekableEnd_=b.seekableEnd,this.duration_=b.duration,this.loadedTime=
b.loadedTime,this.liveIngestionTime_=b.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.d.stopPlayer=function(){this.index=-1;this.videoId="";oOa(this)};
_.d.isPlaying=function(){return this.playerState==1};
_.d.isBuffering=function(){return this.playerState==3};
_.d.isAdPlaying=function(){return this.playerState==1081};
var RC=function(b,h){b.playerTime_=h;b.playerTimeAt_=_.LF()},Mdf=function(b){switch(b.playerState){case 1:case 1081:return(_.LF()-b.playerTimeAt_)/1E3+b.playerTime_;
case -1E3:return 0}return b.playerTime_};
xk.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.LF()-this.playerTimeAt_)/1E3:0):this.duration_};
var nOd=function(b,h,y){var S=b.videoId;b.videoId=h;b.index=y;h!=S&&oOa(b)},Xef=function(b){var h={};
h.index=b.index;h.listId=b.listId;h.videoId=b.videoId;h.playerState=b.playerState;h.volume=b.volume;h.muted=b.muted;h.audioTrackId=b.audioTrackId;h.trackData=_.lR.unsafeClone(b.trackData);h.hasPrevious=b.hasPrevious;h.hasNext=b.hasNext;h.playerTime=b.playerTime_;h.playerTimeAt=b.playerTimeAt_;h.seekableStart=b.seekableStart_;h.seekableEnd=b.seekableEnd_;h.duration=b.duration_;h.loadedTime=b.loadedTime;h.liveIngestionTime=b.liveIngestionTime_;return h};
xk.prototype.clone=function(){return new xk(Xef(this))};var bP=function(b,h){_.KY.call(this);var y=this;this.state_=0;this.connection_=b;this.contextSubscriptions_=[];this.actionQueue_=new vG2;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.i5)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.i5)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.i5)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.i5)(this.onCloudviewAvailabilityChange_,this);var S=0;b?(S=b.getProxyState(),
S!=3&&(b.subscribe("proxyStateChange",this.setState_,this),HbY(this))):S=3;S!=0&&(h?this.setState_(S):_.zn(function(){y.setState_(S)},0));
(b=ZFA())&&urf(this,b);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.z(bP,_.KY);bP.prototype.getState=function(){return this.state_};
bP.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
bP.prototype.reconnect=function(){this.connection_.reconnect()};
var zg=function(b){return new xk(b.connection_.getPlayerContextData())};
_.d=bP.prototype;_.d.play=function(){Dz(this)?(this.castMedia_?this.castMedia_.play(null,_.C8,ObE(this,"play")):IC(this,"play"),NjA(this,1,Mdf(zg(this))),this.publish("remotePlayerChange")):Bh(this,this.play)};
_.d.pause=function(){Dz(this)?(this.castMedia_?this.castMedia_.pause(null,_.C8,ObE(this,"pause")):IC(this,"pause"),NjA(this,2,Mdf(zg(this))),this.publish("remotePlayerChange")):Bh(this,this.pause)};
_.d.seekTo=function(b){if(Dz(this)){if(this.castMedia_){var h=zg(this),y=new chrome.cast.media.SeekRequest;y.currentTime=b;h.isPlaying()||h.isBuffering()?y.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:y.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(y,_.C8,ObE(this,"seekTo",{newTime:b}))}else IC(this,"seekTo",{newTime:b});NjA(this,3,b);this.publish("remotePlayerChange")}else Bh(this,_.X8(this.seekTo,b))};
_.d.stop=function(){if(Dz(this)){this.castMedia_?this.castMedia_.stop(null,_.C8,ObE(this,"stopVideo")):IC(this,"stopVideo");var b=zg(this);b.stopPlayer();Wh(this,b);this.publish("remotePlayerChange")}else Bh(this,this.stop)};
_.d.setVolume=function(b,h){if(Dz(this)){var y=zg(this);if(this.castSession_){if(y.volume!=b){var S=Math.round(b)/100;this.castSession_.setReceiverVolumeLevel(S,(0,_.i5)(function(){TL("set receiver volume: "+S)},this),(0,_.i5)(function(){this.warn_("failed to set receiver volume.")},this))}y.muted!=h&&this.castSession_.setReceiverMuted(h,(0,_.i5)(function(){TL("set receiver muted: "+h)},this),(0,_.i5)(function(){this.warn_("failed to set receiver muted.")},this))}else{var F={volume:b,
muted:h};y.volume!=-1&&(F.delta=b-y.volume);IC(this,"setVolume",F)}y.muted=h;y.volume=b;Wh(this,y)}else Bh(this,_.X8(this.setVolume,b,h))};
_.d.setAudioTrack=function(b,h){Dz(this)?(h=h.getLanguageInfo().getId(),IC(this,"setAudioTrack",{videoId:b,audioTrackId:h}),b=zg(this),b.audioTrackId=h,Wh(this,b)):Bh(this,_.X8(this.setAudioTrack,b,h))};
_.d.addVideo=function(b){Dz(this)?IC(this,"addVideo",{videoId:b}):Bh(this,_.X8(this.addVideo,b))};
_.d.addPlaylist=function(b){Dz(this)?IC(this,"addVideos",{listId:b}):Bh(this,_.X8(this.addPlaylist,b))};
_.d.addVideos=function(b){b.length==0?this.warn_("Ignore add videos request due to empty list"):Dz(this)?IC(this,"addVideos",{videoIds:b.join(",")}):Bh(this,_.X8(this.addVideos,b))};
_.d.JSC$20369_removeVideo=function(b){Dz(this)?IC(this,"removeVideo",{videoId:b}):Bh(this,_.X8(this.JSC$20369_removeVideo,b))};
_.d.JSC$20369_insertVideo=function(b){Dz(this)?IC(this,"insertVideo",{videoId:b}):Bh(this,_.X8(this.JSC$20369_insertVideo,b))};
_.d.playVideo=function(b,h,y,S,F,a,P){S=S===void 0?null:S;F=F===void 0?null:F;a=a===void 0?null:a;P=P===void 0?null:P;var K=zg(this),n={videoId:b};y!==void 0&&(n.currentIndex=y);nOd(K,b,y||0);h!==void 0&&(RC(K,h),n.currentTime=h);S&&(n.listId=S);F&&(n.playerParams=F);a&&(n.clickTrackingParams=a);P&&(n.locationInfo=(0,_.Q4)(P));IC(this,"setPlaylist",n);S||Wh(this,K)};
_.d.nextVideo=function(b,h){if(Dz(this)){if(b&&h){var y=zg(this);nOd(y,b,h);Wh(this,y)}IC(this,"next")}else Bh(this,_.X8(this.nextVideo,b,h))};
_.d.clearPlaylist=function(){if(Dz(this)){IC(this,"clearPlaylist");var b=zg(this);b.reset();Wh(this,b);this.publish("remotePlayerChange")}else Bh(this,this.clearPlaylist)};
_.d.dispose=function(){if(this.state_!=3){var b=this.state_;this.state_=3;this.publish("proxyStateChange",b,this.state_)}_.KY.prototype.dispose.call(this)};
_.d.disposeInternal=function(){tdf(this);this.connection_=null;this.actionQueue_.clear();urf(this,null);_.KY.prototype.disposeInternal.call(this)};
var HbY=function(b){_.FS("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(h){this.contextSubscriptions_.push(this.connection_.subscribe(h,_.X8(this.onProxyEvent_,h),this))},b)},tdf=function(b){_.FS(b.contextSubscriptions_,function(h){this.connection_.unsubscribeByKey(h)},b);
b.contextSubscriptions_.length=0},Dz=function(b){return b.getState()==1},Bh=function(b,h){b.actionQueue_.getCount()<50&&b.actionQueue_.enqueue(h)},NjA=function(b,h,y){var S=zg(b);
RC(S,y);S.playerState!=-1E3&&(S.playerState=h);Wh(b,S)},IC=function(b,h,y){b.connection_.sendMessage(h,y)},Wh=function(b,h){tdf(b);
b.connection_.setPlayerContextData(Xef(h));HbY(b)};
bP.prototype.setState_=function(b){if((b!=this.state_||b==2)&&this.state_!=3&&b!=0){var h=this.state_;this.state_=b;this.publish("proxyStateChange",h,b);if(b==1)for(;!this.actionQueue_.isEmpty();)b=this.actionQueue_,bkX(b),b.front_.pop().apply(this);else b==3&&this.dispose()}};
bP.prototype.onProxyEvent_=function(b,h){this.publish(b,h)};
var urf=function(b,h){b.castSession_&&(b.castSession_.removeUpdateListener(b.boundCastStatusListener_),b.castSession_.removeMediaListener(b.boundCastMediaListener_),b.onCastMediaChange_(null));b.castSession_=h;if(b.castSession_&&(TL("Setting cast session: "+b.castSession_.sessionId),b.castSession_.addUpdateListener(b.boundCastStatusListener_),b.castSession_.addMediaListener(b.boundCastMediaListener_),b.castSession_.media.length))b.onCastMediaChange_(b.castSession_.media[0])};
bP.prototype.onCastStatusUpdate_=function(b){if(!b)this.onCastMediaChange_(null),urf(this,null);else if(this.castSession_.receiver.volume){b=this.castSession_.receiver.volume;var h=zg(this),y=Math.round(100*b.level||0);if(h.volume!=y||h.muted!=b.muted)TL("Cast volume update: "+b.level+(b.muted?" muted":"")),h.volume=y,h.muted=!!b.muted,Wh(this,h)}};
bP.prototype.onCastMediaChange_=function(b){TL("Cast media: "+!!b);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=b)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),rEY(this),this.publish("remotePlayerChange")};
var rEY=function(b){var h=b.castMedia_.media,y=b.castMedia_.customData;if(h&&y){var S=zg(b);h.contentId!=S.videoId&&TL("Cast changing video to: "+h.contentId);S.videoId=h.contentId;S.playerState=y.playerState;RC(S,b.castMedia_.getEstimatedTime());Wh(b,S)}else TL("No cast media video. Ignoring state update.")};
bP.prototype.onCastMediaUpdate_=function(b){if(b)rEY(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
bP.prototype.onCloudviewAvailabilityChange_=function(){var b=ZFA();b&&urf(this,b)};
bP.prototype.warn_=function(b){Yk("CP",b)};
var ObE=function(b,h,y){return(0,_.i5)(function(S){this.warn_("Failed to "+h+" with cast v2 channel. Error code: "+S.code);S.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+h+" using MDx browser channel."),IC(this,h,y))},b)};var hw=function(b,h,y,S){S=S===void 0?!1:S;_.KY.call(this);var F=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$20374_http_=b;this.enableConnectWithInitialState_=S;this.listeners_.push(_.uF(window,"beforeunload",function(){F.JSC$20377_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new xk;this.currentScreenId_=h.id;this.currentScreenIdType_=h.idType;this.channelService=U$2(this.JSC$20374_http_,y,this.JSC$20377_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){cEA(F)});
this.channelService.listen("channelClosed",function(){A$("Channel closed");isNaN(F.connectTimerId_)?zNq(!0):zNq();F.dispose()});
this.channelService.listen("channelError",function(a){zNq();isNaN(F.getReconnectTimeout_())?(a==1&&F.currentScreenIdType_=="shortLived"&&F.publish("browserChannelAuthError",a),A$("Channel error: "+a+" without reconnection"),F.dispose()):(F.reconnecting_=!0,A$("Channel error: "+a+" with reconnection in "+F.getReconnectTimeout_()+" ms"),RDf(F,2))});
this.channelService.listen("channelMessage",function(a){zDN(F,a)});
this.channelService.setLoungeToken(h.token);this.subscribe("remoteQueueChange",function(){var a=F.playerContext_.videoId;XfY()&&_.Bd("yt-remote-session-video-id",a)})};
_.z(hw,_.KY);
hw.prototype.connect=function(b,h){if(h){var y=h.listId,S=h.videoId,F=h.videoIds,a=h.playerParams,P=h.clickTrackingParams,K=h.index,n={videoId:S},X=h.currentTime,u=h.locationInfo;h=h.loopMode;X!==void 0&&(n.currentTime=X<=5?0:X);a&&(n.playerParams=a);u&&(n.locationInfo=u);P&&(n.clickTrackingParams=P);y&&(n.listId=y);F&&F.length>0&&(n.videoIds=F.join(","));K!==void 0&&(n.currentIndex=K);this.enableConnectWithInitialState_&&(n.loopMode=h||"LOOP_MODE_OFF");y&&(this.playerContext_.listId=y);this.playerContext_.videoId=
S;this.playerContext_.index=K||0;this.playerContext_.state=3;RC(this.playerContext_,X);this.autoplayMode_="UNSUPPORTED";y=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";A$("Connecting with "+y+" and params: "+(0,_.Q4)(n));this.channelService.connect({method:y,params:(0,_.Q4)(n)},b,t4d())}else A$("Connecting without params"),this.channelService.connect({},b,t4d());DrN(this)};
hw.prototype.setLoungeToken=function(b){this.channelService.setLoungeToken(b)};
hw.prototype.dispose=function(){this.isDisposed()||(_.HL("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),RDf(this,3));_.KY.prototype.dispose.call(this)};
hw.prototype.disposeInternal=function(){IxF(this);Bj2(this);WHY(this);_.B9(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.B9(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.zk5(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.KY.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var AEA=function(b){return _.p4(b.connectedDevices_,function(h){return h.type=="LOUNGE_SCREEN"})},A$=function(b){Yk("conn",b)},RDf=function(b,h){b.publish("proxyStateChange",h)},DrN=function(b){b.connectTimerId_=_.zn(function(){A$("Connecting timeout");
b.JSC$20377_disconnect_(1)},2E4)},IxF=function(b){_.B9(b.connectTimerId_);
b.connectTimerId_=NaN},WHY=function(b){_.B9(b.reconnectedCheckScreenTimeout_);
b.reconnectedCheckScreenTimeout_=NaN},pe2=function(b){Bj2(b);
b.playingSyncTimerId_=_.zn(function(){Urf(b,"getNowPlaying")},2E4)},Bj2=function(b){_.B9(b.playingSyncTimerId_);
b.playingSyncTimerId_=NaN},cEA=function(b){A$("Channel opened");
b.reconnecting_&&(b.reconnecting_=!1,WHY(b),b.reconnectedCheckScreenTimeout_=_.zn(function(){A$("Timing out waiting for a screen.");b.JSC$20377_disconnect_(1)},15E3))},eDq=function(b,h){var y=null;
if(h){var S=AEA(b);S&&(y={clientName:S.clientName,deviceMake:S.brand,deviceModel:S.model,osVersion:S.osVersion})}_.HL("yt.mdx.remote.remoteClient_",y);h&&(IxF(b),WHY(b));y=b.channelService.isChannelOpened()&&isNaN(b.connectTimerId_);h==y?h&&(RDf(b,1),Urf(b,"getSubtitlesTrack")):h?(b.getOtherConnectedRemoteId_()&&b.playerContext_.reset(),RDf(b,1),Urf(b,"getNowPlaying"),JEq(b)):b.JSC$20377_disconnect_(1)},C0a=function(b,h){var y=h.params.videoId;
delete h.params.videoId;y==b.playerContext_.videoId&&(_.lR.isEmpty(h.params)?b.playerContext_.trackData=null:b.playerContext_.trackData=h.params,b.publish("remotePlayerChange"))},gOP=function(b,h,y){var S=h.params.videoId||h.params.video_id,F=parseInt(h.params.currentIndex,10);
b.playerContext_.listId=h.params.listId||b.playerContext_.listId;nOd(b.playerContext_,S,F);b.publish("remoteQueueChange",y)},svF=function(b,h){h.params=h.params||{};
gOP(b,h,"NOW_PLAYING_MAY_CHANGE");b.onStateChange_(h);b.publish("autoplayDismissed")};
hw.prototype.onStateChange_=function(b){var h=parseInt(b.params.currentTime||b.params.current_time,10);RC(this.playerContext_,isNaN(h)?0:h);h=parseInt(b.params.state,10);h=isNaN(h)?-1:h;h==-1&&this.playerContext_.playerState==-1E3&&(h=-1E3);this.playerContext_.playerState=h;h=Number(b.params.loadedTime);this.playerContext_.loadedTime=isNaN(h)?0:h;h=Number(b.params.duration);this.playerContext_.duration_=isNaN(h)?0:h;h=this.playerContext_;var y=Number(b.params.liveIngestionTime);h.liveIngestionTime_=
y;h.isLive_=isNaN(y)?!1:!0;h=this.playerContext_;y=Number(b.params.seekableStartTime);b=Number(b.params.seekableEndTime);h.seekableStart_=isNaN(y)?0:y;h.seekableEnd_=isNaN(b)?0:b;this.playerContext_.playerState==1?pe2(this):Bj2(this);this.publish("remotePlayerChange")};
hw.prototype.onAdStateChange_=function(b){if(this.playerContext_.playerState!=-1E3){var h=1085;switch(parseInt(b.params.adState,10)){case 1:h=1081;break;case 2:h=1084;break;case 0:h=1083}this.playerContext_.playerState=h;b=parseInt(b.params.currentTime,10);RC(this.playerContext_,isNaN(b)?0:b);this.publish("remotePlayerChange")}};
var YCf=function(b,h){var y=h.params.muted=="true";b.playerContext_.volume=parseInt(h.params.volume,10);b.playerContext_.muted=y;b.publish("remotePlayerChange")},TjP=function(b,h){b.autoplayVideoId_=h.params.videoId;
b.publish("nowAutoplaying",parseInt(h.params.timeout,10))},GJA=function(b,h){b.autoplayVideoId_=h.params.videoId||null;
b.publish("autoplayUpNext",b.autoplayVideoId_)},kJA=function(b,h){b.autoplayMode_=h.params.autoplayMode;
b.publish("autoplayModeChange",b.autoplayMode_);b.autoplayMode_=="DISABLED"&&b.publish("autoplayDismissed")},VdA=function(b,h){var y=h.params.hasNext=="true";
b.playerContext_.hasPrevious=h.params.hasPrevious=="true";b.playerContext_.hasNext=y;b.publish("previousNextChange")};
hw.prototype.isCapabilitySupportedOnConnectedDevices_=function(b){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var h=_.L(this.connectedDevices_),y=h.next();!y.done;y=h.next())if(!y.value.capabilities.has(b))return!1;return!0};
var zDN=function(b,h){h=h.message;h.params?A$("Received: action="+h.action+", params="+(0,_.Q4)(h.params)):A$("Received: action="+h.action+" {}");switch(h.action){case "loungeStatus":h=(0,_.Dn)(h.params.devices);b.connectedDevices_=_.qz(h,function(S){return new M2(S)});
h=!!_.p4(b.connectedDevices_,function(S){return S.type=="LOUNGE_SCREEN"});
eDq(b,h);h=b.isCapabilitySupportedOnConnectedDevices_("mlm");b.publish("multiStateLoopEnabled",h);break;case "loungeScreenDisconnected":I1X(b.connectedDevices_,function(S){return S.type=="LOUNGE_SCREEN"});
eDq(b,!1);break;case "remoteConnected":var y=new M2((0,_.Dn)(h.params.device));_.p4(b.connectedDevices_,function(S){return S.equals(y)})||_.AYf(b.connectedDevices_,y);
break;case "remoteDisconnected":y=new M2((0,_.Dn)(h.params.device));I1X(b.connectedDevices_,function(S){return S.equals(y)});
break;case "gracefulDisconnect":break;case "playlistModified":gOP(b,h,"QUEUE_MODIFIED");break;case "nowPlaying":svF(b,h);break;case "onStateChange":b.onStateChange_(h);break;case "onAdStateChange":b.onAdStateChange_(h);break;case "onVolumeChanged":YCf(b,h);break;case "onSubtitlesTrackChanged":C0a(b,h);break;case "nowAutoplaying":TjP(b,h);break;case "autoplayDismissed":b.publish("autoplayDismissed");break;case "autoplayUpNext":GJA(b,h);break;case "onAutoplayModeChanged":kJA(b,h);break;case "onHasPreviousNextChanged":VdA(b,
h);break;case "requestAssistedSignIn":b.publish("assistedSignInRequested",h.params.authCode);break;case "onLoopModeChanged":b.publish("loopModeChange",h.params.loopMode);break;default:A$("Unrecognized action: "+h.action)}};
_.d=hw.prototype;_.d.getProxyState_=function(){var b=3;this.isDisposed()||(b=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(b=1):b=2);return b};
_.d.JSC$20377_disconnect_=function(b){A$("Disconnecting with "+b);_.HL("yt.mdx.remote.remoteClient_",null);IxF(this);this.publish("beforeDisconnect",b);b==1&&zNq();this.channelService.disconnect(b);this.dispose()};
_.d.getPlayerContextData_=function(){var b=this.playerContext_;this.clientVideoId_&&(b=this.playerContext_.clone(),nOd(b,this.clientVideoId_,b.index));return Xef(b)};
_.d.setPlayerContextData_=function(b){var h=this,y=new xk(b);y.videoId&&y.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=y.videoId,_.B9(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.zn(function(){if(h.clientVideoId_){var F=h.clientVideoId_;h.clientVideoId_=null;h.playerContext_.videoId!=F&&Urf(h,"getNowPlaying")}},5E3));
var S=[];this.playerContext_.listId==y.listId&&this.playerContext_.videoId==y.videoId&&this.playerContext_.index==y.index||S.push("remoteQueueChange");this.playerContext_.playerState==y.playerState&&this.playerContext_.volume==y.volume&&this.playerContext_.muted==y.muted&&Mdf(this.playerContext_)==Mdf(y)&&(0,_.Q4)(this.playerContext_.trackData)==(0,_.Q4)(y.trackData)||S.push("remotePlayerChange");this.playerContext_.reset(b);_.FS(S,function(F){this.publish(F)},this)};
_.d.getOtherConnectedRemoteId_=function(){var b=this.channelService.getDeviceId(),h=_.p4(this.connectedDevices_,function(y){return y.type=="REMOTE_CONTROL"&&y.id!=b});
return h?h.id:""};
_.d.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.d.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.d.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.d.JSC$20377_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var JEq=function(b){_.B9(b.idleDisconnectTimerId_);b.idleDisconnectTimerId_=_.zn(function(){b.JSC$20377_disconnect_(1)},864E5)},Urf=function(b,h,y){y?A$("Sending: action="+h+", params="+(0,_.Q4)(y)):A$("Sending: action="+h);
b.channelService.sendMessage(h,y)};
hw.prototype.sendMessageWithUserAction_=function(b,h){Urf(this,b,h);JEq(this)};
hw.prototype.JSC$20377_getXsrfToken_=function(){var b=_.Cn.get("SAPISID","")||_.Cn.get("__Secure-1PAPISID",void 0)||"",h=_.Cn.get("__Secure-3PAPISID","")||"";if(!b&&!h)return"";b=_.CA(_.VY(b),2);h=_.CA(_.VY(h),2);return _.CA(_.VY(","+b+","+h),2)};
hw.prototype.subscribe=hw.prototype.subscribe;hw.prototype.unsubscribeByKey=hw.prototype.unsubscribeByKey;hw.prototype.getProxyState=hw.prototype.getProxyState_;hw.prototype.disconnect=hw.prototype.JSC$20377_disconnect_;hw.prototype.getPlayerContextData=hw.prototype.getPlayerContextData_;hw.prototype.setPlayerContextData=hw.prototype.setPlayerContextData_;hw.prototype.getOtherConnectedRemoteId=hw.prototype.getOtherConnectedRemoteId_;hw.prototype.getReconnectTimeout=hw.prototype.getReconnectTimeout_;
hw.prototype.getAutoplayMode=hw.prototype.getAutoplayMode_;hw.prototype.getAutoplayVideoId=hw.prototype.getAutoplayVideoId_;hw.prototype.reconnect=hw.prototype.JSC$20377_reconnect_;hw.prototype.sendMessage=hw.prototype.sendMessageWithUserAction_;hw.prototype.getXsrfToken=hw.prototype.JSC$20377_getXsrfToken_;hw.prototype.isCapabilitySupportedOnConnectedDevices=hw.prototype.isCapabilitySupportedOnConnectedDevices_;var gYN=function(b){GL.call(this,"ScreenServiceProxy");this.instance_=b;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.i5)(this.JSC$20380_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.i5)(this.onOnlineScreenChange_,this)))};
_.z(gYN,GL);_.d=gYN.prototype;_.d.getScreens=function(b){return this.instance_.$_gs(b)};
_.d.contains=function(b){return!!this.instance_.$_c(b)};
_.d.get=function(b){return this.instance_.$_g(b)};
_.d.start=function(){this.instance_.$_st()};
_.d.add=function(b,h,y){this.instance_.$_a(b,h,y)};
_.d.remove=function(b,h,y){this.instance_.$_r(b,h,y)};
_.d.updateName=function(b,h,y,S){this.instance_.$_un(b,h,y,S)};
_.d.disposeInternal=function(){for(var b=this.subscriptionKeys_.length,h=0;h<b;++h)this.instance_.$_ubk(this.subscriptionKeys_[h]);this.subscriptionKeys_.length=0;this.instance_=null;GL.prototype.disposeInternal.call(this)};
_.d.JSC$20380_onScreenChange_=function(){this.publish("screenChange")};
_.d.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
E1.prototype.$_st=E1.prototype.start;E1.prototype.$_gspc=E1.prototype.JSC$20339_getScreenByPairingCode;E1.prototype.$_gsppc=E1.prototype.JSC$20339_getScreenByPollingPairingCode;E1.prototype.$_c=E1.prototype.contains;E1.prototype.$_g=E1.prototype.get;E1.prototype.$_a=E1.prototype.add;E1.prototype.$_un=E1.prototype.updateName;E1.prototype.$_r=E1.prototype.remove;E1.prototype.$_gs=E1.prototype.getScreens;E1.prototype.$_gos=E1.prototype.JSC$20339_getOnlineScreens;E1.prototype.$_s=E1.prototype.subscribe;
E1.prototype.$_ubk=E1.prototype.unsubscribeByKey;var A1E=null,YVY=!1,Xvd=null,Qc=null,CmA=null,m_=[];var EOx=new _.SZ("yt-menu"),ib2=function(){},we2=function(b,h,y){b=h=="right-click"?y.rightClickMenuPopupHint:y.menuPopupHint;
if(!(fxx(h)>10))return h=h||"default",EOx.set(h+"-impression",fxx(h)+1),b},fxx=function(b){return parseInt(EOx.get((b||"default")+"-impression")||0,10)};
_.$Y(ib2);var lxf=function(){this.contexts_=new WeakMap;this.JSC$20386_networkService_=this.activeContext_=null},qCA=function(b,h,y){var S=b.contexts_.get(h);
S||(S=new SRA(b.JSC$20386_networkService_),b.contexts_.set(h,S));b.activeContext_=S;y&&b.activeContext_.reset();b.activeContext_.start();return b.activeContext_};var Ur=function(){};
Ur.prototype.enqueue=function(){var b=this,h;return _.Z(function(y){if(b.isCounterfactual())return(h=b.getCounterfactualData())&&b.shouldLogCounterfactualImpression()&&b.sendImpressionEndpoints(h),y.return();b.doEnqueue();_.g3(y)})};
Ur.prototype.sendImpressionEndpoints=function(b){_.$J.getInstance().triggerOptionalAction("yt-service-request",{},b[0])};var p6=function(b,h){this.renderer=b;this.page=h};
_.z(p6,Ur);p6.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
p6.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
p6.prototype.shouldLogCounterfactualImpression=function(){return!0};
p6.prototype.doEnqueue=function(){var b=_.hB(this.page);b&&b.pause();this.renderer.impressionCommand&&_.$J.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.aO(_.$J.getInstance(),[this.renderer.promoCommand],this.page)};var xrA=function(b,h){this.renderer=b;this.resolver=_.wS();this.JSC$20398_enforcementCounter=new _.aB5;h?this.JSC$20398_playerManager=_.hB(h):this.JSC$20398_playerManager=null;_.Hd(1,!0)};
_.z(xrA,Ur);_.d=xrA.prototype;_.d.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var b=[];this.renderer.impressionEndpoints.forEach(function(h){(h=_.YS(h))&&b.push(h)});
return b}};
_.d.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.d.shouldLogCounterfactualImpression=function(){var b=_.HmM();b?(this.JSC$20398_enforcementCounter.increment("POPUP"),_.Hd(3)):_.Hd(2);return b};
_.d.cancel=function(){this.resolver.promise.cancel()};
_.d.doEnqueue=function(){var b=this;_.HmM()?(this.JSC$20398_enforcementCounter.increment("POPUP"),_.Hd(3),QvX(this)):this.JSC$20398_playerManager?(this.resolver.promise.then(function(){QvX(b)}),mrf(this.resolver,this.JSC$20398_playerManager)):_.Hd(2)};
var mrf=function(b,h){var y=_.wS();h.getPlayerPromise().then(function(S){y.resolve(S)});
y.promise.then(function(S){S.addEventListener("onAbnormalityDetected",b.resolve);_.le(b.promise,function(){S.removeEventListener("onAbnormalityDetected",b.resolve)})});
b.promise.thenCatch(function(){y.promise.cancel()})},QvX=function(b){_.Hd(3);
var h={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:b.renderer}};h=_.$J.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:h},{});Promise.all(h).then(function(){vOF();b.JSC$20398_playerManager&&b.JSC$20398_playerManager.pause()})},vOF=function(){Z9Y(function(b,h){_.Tyf(b,h);
b===0?_.Hd(7):_.Hd(4)})};var bU2=function(b,h){this.renderer=b;this.page=h;this.resolver=_.wS()};
_.z(bU2,Ur);_.d=bU2.prototype;_.d.cancel=function(){this.resolver.promise.cancel()};
_.d.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.d.isCounterfactual=function(){return!this.renderer.isVisible};
_.d.shouldLogCounterfactualImpression=function(){return!0};
_.d.doEnqueue=function(){var b=this;this.resolver.promise.then(function(){var y={popup:{mealbarPromoRenderer:b.renderer},popupType:"MEALBAR"};_.$J.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:y},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var h=_.hB(this.page);h&&h6a(this.resolver,h)}break;default:this.resolver.resolve()}};
var h6a=function(b,h){var y=_.wS();h.getPlayerPromise().then(function(S){y.resolve(S)});
y.promise.then(function(S){S.addEventListener("onAdEnd",b.resolve);_.le(b.promise,function(){S.removeEventListener("onAdEnd",b.resolve)})});
b.promise.thenCatch(function(){y.promise.cancel()})};var yN2=function(b,h){this.renderer=b;this.page=h};
_.z(yN2,Ur);_.d=yN2.prototype;_.d.cancel=function(){this.JSC$20406_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20406_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20406_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.d.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.d.isCounterfactual=function(){return!this.renderer.isVisible};
_.d.shouldLogCounterfactualImpression=function(){return!0};
_.d.doEnqueue=function(){var b=this,h,y;((h=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(y=h.playbackUpsellDialogTriggerConditionData)==null?void 0:y.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$20406_downloadedVideosCountSelectorUnsubscriber=_.Fq(_.hP(),PpE,function(S,F){S>F&&(SIN(b),b.cancel())}):SIN(this)};
var SIN=function(b){var h={popup:{upsellDialogRenderer:b.renderer},popupType:"MODAL"};_.$J.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:h},{});(b=_.hB(b.page))&&b.pause()};var J$={},Fud=(J$.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",J$.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",J$.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",J$.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",J$.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",J$.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",J$.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",J$),atA=function(b,h){this.renderer=b;this.targetManager=
h};
_.z(atA,Ur);_.d=atA.prototype;_.d.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$20413_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20413_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20413_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.d.getCounterfactualData=function(){if(this.isCounterfactual()){var b;return(b=this.renderer.promoConfig)==null?void 0:b.impressionEndpoints}};
_.d.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.d.shouldLogCounterfactualImpression=function(){return!0};
_.d.doEnqueue=function(){var b=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$20413_downloadedVideosCountSelectorUnsubscriber=_.Fq(_.hP(),PpE,function(h,y){b.renderer.targetId&&h>y&&(RHX(b.targetManager,b.renderer.targetId,d3f(b)),b.cancel())});
break;default:RHX(this.targetManager,this.renderer.targetId,d3f(this))}};
var d3f=function(b){var h;if((h=b.renderer.suggestedPosition)==null?0:h.type)var y=Fud[b.renderer.suggestedPosition.type];y||(y="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:b.renderer},popupType:"HINT",position:y}}};var juY=function(){this.previousPage=null},$3a;
juY.prototype.registerPromoCommand=function(b,h){LuE(this,void 0,void 0,_.c(b.roadblock,FzA),void 0,void 0,h)};
var LuE=function(b,h,y,S,F,a,P){b.previousPage!==P&&b.pendingTooltipPromo&&b.pendingTooltipPromo.cancel();b.previousPage=P;F?(b.pendingEnforcementPromo&&b.pendingEnforcementPromo.cancel(),b.pendingEnforcementPromo=new xrA(F,P),b.pendingEnforcementPromo.enqueue()):a?(b.pendingCommandWrapperPromo=new p6(a,P),b.pendingCommandWrapperPromo.enqueue()):S?(b.pendingRoadblockPromo&&b.pendingRoadblockPromo.cancel(),b.pendingRoadblockPromo=new yN2(S,P),b.pendingRoadblockPromo.enqueue()):h?(b.pendingMealbarPromo&&
b.pendingMealbarPromo.cancel(),b.pendingMealbarPromo=new bU2(h,P),b.pendingMealbarPromo.enqueue()):y&&(b.pendingTooltipPromo&&b.pendingTooltipPromo.cancel(),b.pendingTooltipPromo=new atA(y,_.bg()),b.pendingTooltipPromo.enqueue())},P2A=function(){$3a||($3a=new juY);
return $3a};var Vkf=!1;var z0A=function(b,h){var y=_.QC("SESSION_INDEX");this.actionToken_=b;this.commonToken_=h;this.sessionIndex_=y},R0A=function(b){var h=_.wS(),y=_.hj("payments.business.integration.bootstrap"),S=_.hj("payments.business.integration"),F=S.Style.create().withMaterialDesignStyle(),a=S.mashupMode.popup("instrument-manager");
y.asMashupMode(a).usingUserIndex(b.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(F).inStandaloneContext(S.standaloneContextAuthId.forUserId()).instrumentManager(b.actionToken_,b.commonToken_.length>0?b.commonToken_:void 0,function(P){var K=P.instrumentId;K?h.resolve(K):(K=_.hj("payments.business.integration.scenario.InstrumentManager"),h.reject(P.errorCode&&P.errorCode===K.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(P){_.v4(P);
h.reject("instrumentManagerLoadError")});
return h.promise};var S0=function(b,h,y){this.payloadName="transactionFlowFailed";this.payload={errorType:b,serializedTransactionFlowLoggingParams:h,isUserDismiss:y===void 0?!1:y}};
_.HL("yt.ypc.shared.YpcTransactionFlowError",S0);var eB=function(){return _.cl.apply(this,arguments)||this};
_.z(eB,_.cl);eB.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
eB.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
eB.prototype.onErrorMessageDismiss=eB.prototype.onErrorMessageDismiss;_.V([_.C({readOnly:!0,observer:"errorRendererChanged"}),_.f("design:type",Object)],eB.prototype,"errorRenderer",void 0);_.V([_.u3("yt-live-chat-error-message-dismiss"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],eB.prototype,"onErrorMessageDismiss",null);_.V([_.Rc()],eB);var Kuf=[eB.prototype];var ZUA;var oVF;var MEf=new _.SZ("yt-live-chat"),nVA=new Map;nVA.set("timestamp_toggle","show-timestamps");nVA.set("reactions_toggle","allow-reactions");var C6=function(){return _.g.apply(this,arguments)||this};
_.z(C6,_.g);_.d=C6.prototype;_.d.menuItemIdentifierChanged=function(){var b;(b=this.data)!=null&&b.menuItemIdentifier&&(b=nVA.get(this.data.menuItemIdentifier))&&(_.r("enable_lwe_web_mute")?(b=MEf.get(b),this.isToggled=!(b===void 0?!this.data.isToggled:!b)):this.isToggled=MEf.get(b))};
_.d.onFocus=function(){this.toggleButton.focus()};
_.d.onTap=function(){var b=this.data.command;b&&this.componentBehavior.resolveCommand(b)};
_.d.computeText=function(b,h,y){return this.componentBehavior.getSimpleString(b?y:h)};
_.d.computeIcon=function(b,h,y){return(b=b?y:h)&&b.iconType?_.o_(b.iconType):""};
C6.prototype.onTap=C6.prototype.onTap;C6.prototype.onFocus=C6.prototype.onFocus;C6.prototype.menuItemIdentifierChanged=C6.prototype.menuItemIdentifierChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],C6.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],C6.prototype,"componentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],C6.prototype,"data",void 0);
_.V([_.C({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.f("design:type",String)],C6.prototype,"icon",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],C6.prototype,"isToggled",void 0);_.V([_.to("tp-yt-paper-toggle-button"),_.f("design:type",Object)],C6.prototype,"toggleButton",void 0);_.V([_.OB("data.menuItemIdentifier"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],C6.prototype,"menuItemIdentifierChanged",null);
_.V([_.u3("focus"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],C6.prototype,"onFocus",null);_.V([_.u3("tap"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],C6.prototype,"onTap",null);_.V([_.sB({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],C6);
_.k(C6,"yt-live-chat-toggle-renderer",function(){if(oVF===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;ZUA===void 0&&(ZUA=document.createElement("template"));var S=ZUA;y.call(h,S.content.cloneNode(!0),b.content.firstChild);oVF=b}b=oVF;return b},{mode:0});var X$F=new _.ca("NAVIGATION_PROGRESS_TOKEN");var HUX={},uMN={},OUx=(uMN[fPd.name]=!0,uMN),g9=function(){var b=_.cl.apply(this,arguments)||this;b._noAccessors=!0;b.tabGesturesIsActive=!1;b.actionRouterIsRoot=!0;b.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"};b.pageTitle="";b.titleSuffix="YouTube";b.unseenNotificationCount=
0;b.hasNavigated=!1;b.hasSetScrollTopForNavigation=!1;b.pagePreparer=null;b.zwiebackInitJobId=0;b.dataUpdatePromise=null;b.loadDepsPromise=_.$p();b.hasPendingNavigation=!1;b.pendingPlayerOnResponseReceivedActions=[];return b};
_.z(g9,_.cl);g9.prototype.attached=function(){Ntd(this);document.addEventListener("yt-navigate-cache",_.Hl(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var b=sr();b.init();b.dispatchElement=this.hostElement};
var Ntd=function(b,h){h=h===void 0?0:h;var y=_.H9().resolve(_.XS(_.QI));if(y)tEa(b,y);else{if(h>=5)throw Error("wl");setTimeout(function(){Ntd(b,h+1)},0)}},tEa=function(b,h){h.addEventListener("yt-navigate-start",_.Hl(b,b.onYtNavigateStart));
h.addEventListener("yt-navigate-finish",_.Hl(b,b.onYtNavigateFinish));h.addEventListener("yt-navigate-error",_.Hl(b,b.onYtNavigateError));h.addEventListener("yt-page-data-fetched",_.Hl(b,b.onYtPageDataFetched))};
_.d=g9.prototype;_.d.detached=function(){var b=_.H9().resolve(_.QI);b.removeEventListener("yt-navigate-start",_.Hl(this,this.onYtNavigateStart));b.removeEventListener("yt-navigate-finish",_.Hl(this,this.onYtNavigateFinish));b.removeEventListener("yt-navigate-error",_.Hl(this,this.onYtNavigateError));b.removeEventListener("yt-page-data-fetched",_.Hl(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.Hl(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.d.setPageOffset=function(b,h){b?_.F8(this.hostElement,"yt-set-page-offset",[b,h]):_.QT(Error("xl"))};
_.d.setPageOffsetForNavigation=function(b,h){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(b,h))};
_.d.onYtNavigateSetPageOffset=function(b,h){this.setPageOffsetForNavigation(h.page,h.offset)};
_.d.getPageOffset=function(){var b=_.$x(this.hostElement).querySelector("#page-manager").getCurrentPage(),h=0;b&&(h=_.F8(this.hostElement,"yt-get-page-offset",[b])[0]);return h};
_.d.onYtHistoryPop=function(b,h){if(_.m$("DISABLE_WARM_LOADS"))b.preventDefault(),window.location.reload();else{var y=_.H9().resolve(_.QI);y.hasPendingNavigation()&&b.preventDefault();y.cancelPendingNavigation();_.aw(this.hostElement,"yt-pending-navigation-cancelled");h.errorMsg&&(b=h.errorMsg.split(" - "),h=Error(b[0]),b.length==2&&b[1]&&(_.bh(h,b[1]),_.vX(h)),window.location.reload())}};
_.d.onYtHistoryLoad=function(b,h){var y=this;if(_.m$("DISABLE_WARM_LOADS"))window.location.reload();else{(b=h.endpoint)&&Object.keys(b).length||(b=null);var S=h.historyEntry,F=_.H9().resolve(_.QI),a=_.H9().resolve(_.bM),P=null;S&&S.rootData&&(P=S.rootData);var K=P&&rNa(P);!P||K||P.filler?b?(F.navigate(b,!0),cNq(this,b)):(h.legacyBorder||K||(h.JSC$30976_savedComponentState==null&&P==null?_.vX(new _.Gn("Incomplete history entry",h.forward)):_.mm(new _.Gn("Malformed history entry",h.JSC$30976_savedComponentState,
h.forward,P))),window.location.reload()):(_.hMy({isHot:!0}),_.WT({webInfo:{navigationReason:"h"}}),_.jVr(),_.pI("srt"),_.pI("pdc"),this.cancelPendingTasks(),R6a(this,h.forward,P),P.player&&(P.player.loaded=!1),cNq(this,b),_.pKG(F,b||{},P,2,{},!1,h).then(function(){y.setPageOffset(a.getCurrentPage(),S.scrollTop||0)}))}};
_.d.initHistoryManager=function(b){if(!this.hasNavigated){this.hasNavigated=!0;var h=_.$x(this.hostElement).querySelector("#page-manager").getCurrentData();b=isNaN(b)?this.getPageOffset():b;var y=_.H9().resolve(_.QI).currentEndpoint;this.replaceState(y,h,b)}};
_.d.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.d.onYtNavigateStart=function(b,h){this.cancelPendingTasks();h.noProgressBar||(b=_.H9().resolve(_.XS(X$F)))&&b.start();b=this.hasPendingNavigation?null:this.data;var y=_.H9().resolve(_.bM),S,F,a;_.r("kevlar_use_vimio_behavior")&&!((S=h.endpoint)==null?0:(F=S.commandMetadata)==null?0:(a=F.webCommandMetadata)==null?0:a.ignoreNavigation)&&(S=y.getCurrentPage())&&S.disconnectVisibilityRoot();y.prepareForNavigation(h.pageType,h.endpoint);_.r("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.JJ(1,
"pcl"),_.eS(this.pagePreparer,y.preparePage.bind(y,h.pageType,h.endpoint)));S=this.getPageOffset();this.initHistoryManager(S);h.reload||this.hasPendingNavigation?(h.pageType==="shorts"&&h.reload&&_.Sx(this.hostElement,"yt-shorts-reset"),this.replaceState(h.endpoint,b,S)):(b==null?void 0:b.page)==="watch"&&h.pageType==="watch"&&_.r("kevlar_replace_watch_to_watch_history_state")?this.replaceState(h.endpoint,b,S):(b==null?void 0:b.page)!=="shorts"||h.pageType!=="shorts"||h.endpoint.reelWatchEndpoint.sequenceParams||
_.r("short_to_short_back_nav_killswitch")?h.type!="navigate-back"&&h.type!="navigate-forward"&&(h.pageType==="shorts"&&_.Sx(this.hostElement,"yt-shorts-reset"),this.saveAndPush(h.url,h.endpoint,b,S)):this.replaceState(h.endpoint,b,0);this.hasPendingNavigation=!0};
var z6f=function(b){b.hasPendingNavigation=!1;(b=_.H9().resolve(_.XS(X$F)))&&b.finish()};
g9.prototype.onYtNavigateError=function(b,h){z6f(this);b=this.get("endpoint.commandMetadata.webCommandMetadata.url",h);var y=_.dH(window.location.href);b&&!y.pbjreload&&(h=h.navigationErrorReason||"10",_.r("kevlar_parent_on_pbjreload")&&(y={csn:_.UE()},this.get("data.endpoint.clickTrackingParams")&&(y.itct=this.data.endpoint.clickTrackingParams),_.QB(b,y)),_.GM(_.Ln(b,{pbjreload:h})))};
g9.prototype.onYtNavigateCache=function(b,h){var y=this,S=h.url,F=h.endpoint,a=h.data;b=!!h.miniplayer;h=!!h.skipHistory;if(S&&F&&a){var P=this.getPageOffset(),K=this.data||null;h||this.saveAndPush(S,F,K,P);S=_.pKG(_.H9().resolve(_.QI),F,a,b?4:3,{},b);b&&S.then(function(){y.dataUpdatePromise&&y.dataUpdatePromise.then(function(){var n=_.H9().resolve(_.bM);y.setPageOffset(n.getCurrentPage(),0)})})}};
g9.prototype.onYtNavigateFinish=function(b,h){var y=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){D3E(y,h.fromHistory)})};
var D3E=function(b,h){z6f(b);if(b.pendingPlayerOnResponseReceivedActions){for(var y=_.L(b.pendingPlayerOnResponseReceivedActions),S=y.next();!S.done;S=y.next())_.Xb(S.value,b.hostElement);b.pendingPlayerOnResponseReceivedActions=[]}y=_.H9().resolve(_.bM);h||!b.hasNavigated||_.r("web_disable_scroll_on_navigate_finish")||((h=y.getCurrentPage())?h.is==="ytd-shorts"||b.tabGesturesIsActive||b.setPageOffsetForNavigation(h,0):_.vX(Error("yl")));_.fZ(function(){_.fZ(function(){_.pI("pda")})})};
g9.prototype.onYtNavigate=function(b){if(!b.detail.endpoint){var h=new _.Gn("Error: Missing yt-navigate endpoint from target:",b.target,b.target.nodeName);_.QT(h)}if(h=_.r("cold_missing_history"))h=sr(),h.init(!1),h=!(h.browserHistory.boundHistoryReplaceState&&h.browserHistory.boundHistoryPushState);if(h){_.xZ("DISABLE_WARM_LOADS",!0);h=new _.Gn("Failed to initialize history manager",this.getDebugString());var y=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
y?_.vX(h):_.QT(h)}h=b.detail.endpoint;var S,F;_.r("debug_forward_web_query_parameters")&&((S=h.commandMetadata)==null?0:(F=S.webCommandMetadata)==null?0:F.url)&&(h=JSON.parse(JSON.stringify(h)),h.commandMetadata.webCommandMetadata.url=_.Dtq(h.commandMetadata.webCommandMetadata.url,window.location.search));b={type:0,command:h,form:{params:b.detail.params,tempData:b.detail.tempData||{},requestType:b.detail.type,createScreenConfig:b.detail.createScreenConfig,reload:b.detail.reload?b.detail.reload:!1,
requestForm:b.detail}};_.r("kevlar_yt_navigate_command_handler")?(S=_.H9().resolve(_.OM),b.form.skipDefaultElement=!0,S.resolveCommand(h,{form:b.form})):this.handleNavigate(b)};
g9.prototype.handleNavigate=function(b){this.hasSetScrollTopForNavigation=!1;var h=_.H9().resolve(_.QI),y=b.form||{};h.navigate(b.command,y.reload,y.params,y.tempData,y.requestType,y.createScreenConfig,y.ignoreConfirmation,y.requestForm)&&cNq(this,b.command,y.tempData)};
g9.prototype.onYtPageDataFetched=function(b,h){try{_.tt7().reset();this.data=h.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.H9().resolve(_.bM).updatePageData(this.data);var y=this.get("playerResponse.onResponseReceivedActions",this.data);y&&(y=ItA(this,y));y&&_.jx(this.hostElement,y,this.hostElement);var S=this.get("playerResponse.responseContext.consistencyTokenJar",
this.data),F=this.get("response.responseContext.consistencyTokenJar",this.data);if(S||F){var a=_.O1Y(),P=(0,_.lR.getValues)(a.tokenJars);S&&a.replace(P,S);F&&a.replace(P,F)}}catch(K){_.QT(K)}};
var cNq=function(b,h,y){try{b.onYtEndpointChangeHandler(h,y)}catch(S){_.QT(S)}};
_.d=g9.prototype;_.d.onYtEndpointChangeHandler=function(){};
_.d.setPageTitle=function(b){b=(this.pageTitle=b)?b+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+b};
_.d.onYtUpdateTitle=function(b,h){this.setPageTitle(h)};
_.d.setUnseenNotificationCount=function(b){this.unseenNotificationCount=b;this.setPageTitle(this.pageTitle)};
_.d.handleUpdateNotificationsUnseenCountAction=function(b){_.c(b,B7q)&&((b=_.c(b,B7q).unseenCount)?this.setUnseenNotificationCount(b):this.setUnseenNotificationCount(0))};
_.d.handleClearCookieAction=function(b){var h;(b=(h=_.c(b,REX))==null?void 0:h.cookieName)&&_.fW8(b)};
_.d.onYtUpdateUnseenNotificationCount=function(b,h){this.setUnseenNotificationCount(h)};
_.d.loadData=function(b){var h=this;this.loadDepsPromise.then(function(){var y=_.H9().resolve(_.XS(_.QI));y||_.QT(Error("zl"));if(b&&b.response){if(!b.endpoint){var S=_.kj(window.document.location.href)||"/",F="";if(S==="/"||S.startsWith("/?"))F="WEB_PAGE_TYPE_BROWSE";b.endpoint={commandMetadata:{webCommandMetadata:{url:S,webPageType:F,rootVe:3854}}}}_.pKG(y,b.endpoint,b,5,{})}else b.endpoint?y.navigate(b.endpoint):y.navigate(_.S1);_.xP.cancelJob(h.zwiebackInitJobId);h.zwiebackInitJobId=_.xP.addLowPriorityJob(EYE)})};
var sr=function(){return _.H9().resolve(_.y$)};
g9.prototype.getDebugString=function(){return sr().getDebugString()};
g9.prototype.getThirdPartyManipulationSuspected=function(){return sr().getThirdPartyManipulationSuspected()};
g9.prototype.replaceState=function(b,h,y){sr().saveAndReplace(b,h,y)};
g9.prototype.saveAndPush=function(b,h,y,S){sr().saveAndPush(b,h,y,S)};
var rNa=function(b){return _.c(b.endpoint,_.wO)||_.c(b.endpoint,_.cd)?!0:!b||isNaN(b.expirationTime)?!1:(0,_.NO)()>b.expirationTime},R6a=function(b,h,y){var S=b.get("response.trackingParams",y),F=_.Ae(),a=_.UE();
if(S&&F&&a&&(S=b.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",y),!S&&y.rootVe&&(S=y.rootVe),F=h?"forwardButton":"backButton",h=b.get("playerResponse.topbar.desktopTopbarRenderer."+F+".buttonRenderer.command.clickTrackingParams",b.data),b=b.get("response.topbar.desktopTopbarRenderer."+F+".buttonRenderer.command.clickTrackingParams",b.data),h=(b=h||b)?_.I_(b):void 0,b=_.rU(),F=[_.$p(y)],_.w2(b,S,h,{dataPromises:F,csnToClone:y.csn}),y.graftedVes))for(y=
_.L(y.graftedVes),S=y.next();!S.done;S=y.next())_.lC(b,S.value)};
g9.prototype.onStoreGraftedVeAction=function(b){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(b)):_.vX(Error("Al"))};
var ItA=function(b,h){return h.filter(function(y){for(var S in y)if(OUx[S])return b.pendingPlayerOnResponseReceivedActions.push(y),!0;return!1})};
_.tm.Object.defineProperties(g9.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
g9.prototype.onStoreGraftedVeAction=g9.prototype.onStoreGraftedVeAction;g9.prototype.loadData=g9.prototype.loadData;g9.prototype.onYtUpdateUnseenNotificationCount=g9.prototype.onYtUpdateUnseenNotificationCount;g9.prototype.handleClearCookieAction=g9.prototype.handleClearCookieAction;g9.prototype.handleUpdateNotificationsUnseenCountAction=g9.prototype.handleUpdateNotificationsUnseenCountAction;g9.prototype.setUnseenNotificationCount=g9.prototype.setUnseenNotificationCount;
g9.prototype.onYtUpdateTitle=g9.prototype.onYtUpdateTitle;g9.prototype.setPageTitle=g9.prototype.setPageTitle;g9.prototype.onYtEndpointChangeHandler=g9.prototype.onYtEndpointChangeHandler;g9.prototype.onYtPageDataFetched=g9.prototype.onYtPageDataFetched;g9.prototype.handleNavigate=g9.prototype.handleNavigate;g9.prototype.onYtNavigate=g9.prototype.onYtNavigate;g9.prototype.onYtNavigateFinish=g9.prototype.onYtNavigateFinish;g9.prototype.onYtNavigateCache=g9.prototype.onYtNavigateCache;
g9.prototype.onYtNavigateError=g9.prototype.onYtNavigateError;g9.prototype.onYtNavigateStart=g9.prototype.onYtNavigateStart;g9.prototype.cancelPendingTasks=g9.prototype.cancelPendingTasks;g9.prototype.initHistoryManager=g9.prototype.initHistoryManager;g9.prototype.onYtHistoryLoad=g9.prototype.onYtHistoryLoad;g9.prototype.onYtHistoryPop=g9.prototype.onYtHistoryPop;g9.prototype.onYtNavigateSetPageOffset=g9.prototype.onYtNavigateSetPageOffset;g9.prototype.setPageOffset=g9.prototype.setPageOffset;
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],g9.prototype,"ytActionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],g9.prototype,"data",void 0);_.V([_.u3("yt-navigate-set-page-offset"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,Object]),_.f("design:returntype")],g9.prototype,"onYtNavigateSetPageOffset",null);
_.V([_.u3("yt-history-pop"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,Object]),_.f("design:returntype")],g9.prototype,"onYtHistoryPop",null);_.V([_.u3("yt-history-load"),_.f("design:type",Function),_.f("design:paramtypes",[Event,_.q1e]),_.f("design:returntype")],g9.prototype,"onYtHistoryLoad",null);_.V([_.u3("yt-navigate"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],g9.prototype,"onYtNavigate",null);
_.V([_.u3("yt-update-title"),_.f("design:type",Function),_.f("design:paramtypes",[Event,String]),_.f("design:returntype")],g9.prototype,"onYtUpdateTitle",null);_.V([_.u3("yt-update-unseen-notification-count"),_.f("design:type",Function),_.f("design:paramtypes",[Event,Number]),_.f("design:returntype")],g9.prototype,"onYtUpdateUnseenNotificationCount",null);_.V([_.Rc()],g9);HUX.YtdAppBehavior=[_.mx.YtActionHandlerBehavior,g9.prototype];var Yt=function(){var b=_.cl.apply(this,arguments)||this;b._noAccessors=!0;return b};
_.z(Yt,_.cl);Yt.prototype.ready=function(){var b=this;_.$x(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){b.onChange_()})};
Yt.prototype.dataChanged_=function(){_.$x(this.hostElement).querySelector("#checkbox").checked=!1};
Yt.prototype.onChange_=function(){var b=_.$x(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.Sx(this.hostElement,"yt-dismissal-reason-"+b,this.data.feedbackToken)};
Yt.prototype.dataChanged_=Yt.prototype.dataChanged_;_.V([_.C(),_.f("design:type",Object)],Yt.prototype,"data",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Yt.prototype,"dataChanged_",null);_.V([_.Rc()],Yt);var BtA=[Yt.prototype];var Tg=function(){var b=_.cl.apply(this,arguments)||this;b.timeoutJobId=0;b.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return b};
_.z(Tg,_.cl);Tg.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
Tg.prototype.startTimeout=function(){var b=this,h=this.data&&this.data.displayDurationSeconds;h&&!this.timeoutJobId&&(this.timeoutJobId=_.VT(_.xP,function(){_.F8(b.hostElement,"yt-close-popup-action",[b.is]);b.timeoutJobId=0},h*1E3))};
Tg.prototype.cancelTimeout=function(){_.xP.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
Tg.prototype.ytdHatsSurveyBehaviorDataChanged=Tg.prototype.ytdHatsSurveyBehaviorDataChanged;_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],Tg.prototype,"ytActionHandlerBehavior",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Tg.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.V([_.Rc()],Tg);var WuN=[_.mx.YtActionHandlerBehavior,Tg.prototype];var ANP=function(b,h){var y;return((y=b.prefixMapping)==null?0:y[h])?b.prefixMapping[h]:b.SHARED_RENDERERS_.hasOwnProperty(h)?"yt":b.prefix},Gg={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}};Gg.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.r("kevlar_mealbar_above_player"),modern:!0,noAutoFocus:!0,noCancelOnOutsideClick:!0,withBackdrop:!1,restoreFocusOnClose:!0},styles:{position:"fixed",top:"auto",left:"0",right:"auto",bottom:"0",margin:"16px"},rtlStyles:{position:"fixed",top:"auto",right:"0",left:"auto",bottom:"0",margin:"16px"}};
Gg.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};Gg.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};Gg.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
Gg.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)"}};
Gg.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};
Gg.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};
Gg.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};
Gg.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0,addSpacing:_.r("kevlar_add_spacing_to_sheets")},positionalProperties:{OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",verticalAlign:"middle"}},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0,styles:{"max-width":"400px"}};
Gg.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"}};Gg.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};Gg.TOAST={component:null,properties:{}};var U3A=new function(b,h,y){this.supportedPopups=b;this.navigationEndpointPopupMap=h;this.popupTypeMap=y;this.supportedPopups=b;this.navigationEndpointPopupMap=h;this.popupTypeMap=y}({aboutThisAdRenderer:!0,
adFeedbackRenderer:!0,adInfoDialogRenderer:!0,addToPlaylistRenderer:!0,backstagePostDialogPopupRenderer:!0,bubbleHintRenderer:!0,channelCreationDialogRenderer:!0,channelWarmWelcomeRenderer:!0,channelWarmWelcomeContRenderer:!0,checkboxSurveyRenderer:!0,confirmDialogRenderer:!0,dismissalFollowUpRenderer:!0,enforcementMessageViewModel:!0,fancyDismissibleDialogRenderer:!0,formPopupRenderer:!0,gamingAccountLinkConfirmDialogRenderer:!0,gamingAccountLinkSettingRenderer:!0,hotkeyDialogRenderer:!0,sponsorshipConfirmCancelRenderer:!0,
modalWithTitleAndButtonRenderer:!0,notificationActionRenderer:!0,reportFormModalRenderer:!0,searchSuggestionReportDialog:!0,sharingRenderer:!0,sharingEmbedRenderer:!0,menuPopupRenderer:!0,singleOptionSurveyRenderer:!0,surveyFollowUpRenderer:!0,unifiedSharePanelRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,ypcUpgradeDialogRenderer:!0,ypcOffersOverlayRenderer:!0,redCancelSurveyRenderer:!0,conversationSectionController:!0,
conversationHighPriorityNotificationContentRenderer:!0},{adFeedbackEndpoint:"adFeedbackEndpoint.content",adInfoDialogEndpoint:"adInfoDialogEndpoint.dialog",createBackstagePostDialogEndpoint:"createBackstagePostDialogEndpoint.dialog",confirmDialogEndpoint:"confirmDialogEndpoint.content",managePurchaseEndpoint:"managePurchaseEndpoint.content",modalEndpoint:"modalEndpoint.modal",shareEndpoint:"shareEndpoint",shareEntityEndpoint:"shareEntityEndpoint",unlimitedFamilyFlowEndpoint:"unlimitedFamilyFlowEndpoint.unlimitedFamilyFlowEndpointSupportedRenderers",
openPopupAction:"openPopupAction.popup",ypcCancelSurveyEndpoint:"ypcCancelSurveyEndpoint.surveySupportedRenderers"},{aboutThisAdRenderer:"DIALOG",adFeedbackRenderer:"DIALOG",adInfoDialogRenderer:"RESPONSIVE_DROPDOWN",addToPlaylistRenderer:_.r("desktop_add_to_playlist_renderer_dialog_popup")?"DIALOG":"RESPONSIVE_DROPDOWN",backstagePostDialogPopupRenderer:"DIALOG",bubbleHintRenderer:"HINT",checkboxSurveyRenderer:"SURVEY",confirmDialogRenderer:"DIALOG",dismissalFollowUpRenderer:"DIALOG",enforcementMessageViewModel:"LOCKED_MODAL",
fancyDismissibleDialogRenderer:"DIALOG",gamingAccountLinkConfirmDialogRenderer:"DIALOG",gamingAccountLinkSettingRenderer:"DIALOG",hotkeyDialogRenderer:"DIALOG",sponsorshipConfirmCancelRenderer:"DIALOG",menuPopupRenderer:"RESPONSIVE_DROPDOWN",modalWithTitleAndButtonRenderer:"RESPONSIVE_DROPDOWN",notificationActionRenderer:"TOAST",reportFormModalRenderer:"DIALOG",searchSuggestionReportDialog:"DIALOG",sharingEmbedRenderer:"DIALOG",sharingRenderer:"RESPONSIVE_DROPDOWN",singleOptionSurveyRenderer:"SURVEY",
surveyFollowUpRenderer:"SURVEY",unifiedSharePanelRenderer:"DIALOG",unlimitedFamilyMessageInterstitialRenderer:"DIALOG",unlimitedFamilyProfileInterstitialRenderer:"DIALOG",unpluggedPauseMembershipDialogRenderer:"DIALOG",ypcOffersOverlayRenderer:"DIALOG",ypcUpgradeDialogRenderer:"DIALOG",redCancelSurveyRenderer:"DIALOG",conversationSectionController:"MOLE",conversationHighPriorityNotificationContentRenderer:"NOTIFICATION"}),p$2=new function(){this.prefix="ytd";this.prefixMapping=void 0;this.SHARED_RENDERERS_=
{aboutThisAdRenderer:!0,bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unifiedSharePanelRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,
upsellDialogRenderer:!0,ypcOffersModalRenderer:!0,ypcUpgradeDialogRenderer:!0,loadingRenderer:!0,sheetViewModel:!0,miniAppGameInfoDialogViewModel:!0,profileCardViewModel:!0,genAiFeedbackFormViewModel:!0,dialogViewModel:!0,gulpTriggeringDialogViewModel:!0,imageEditorRenderer:!0,storiesViewerViewModel:!0};this.JSC$20464_popupConfig=Gg;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 JNa=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.OA.getInstance()},kt=function(b,h){var y=b.pageNameToElement.get(h);
if(!y){switch(h){case "watch":var S=_.r("web_watch_force_learning_journey_for_testing")?_.pd("ytd-watch-learning-journey"):_.r("kevlar_watch_fixie")?_.pd("ytd-watch-fixie"):_.r("kevlar_watch_grid")?_.pd("ytd-watch-grid"):_.pd("ytd-watch-flexy");break;case "learning_journey_watch":S=_.pd("ytd-watch-learning-journey");break;case "shorts":S=_.pd("ytd-shorts");break;case "search":S=_.pd("ytd-search");break;case "channel":S=_.pd("ytd-browse");S.pageSubtype="channels";break;case "trending":S=_.pd("ytd-browse");
S.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "learning_journey_browse":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "companion-canvas":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":case "your-courses":case "report-history":S=
_.pd("ytd-browse");S.pageSubtype=h;break;case "browse":S=_.pd("ytd-browse");break;default:_.vX(new _.Gn("Error getting page element for type",h))}y=S;b.pageNameToElement.set(h,y)}return y};
JNa.prototype.preparePage=function(b,h,y){y&&(b=_.uk(y)||b);if(b!=="watch"&&b!=="learning_journey_watch"){var S=this.elementPoolPopulator,F=b;F!=S.targetPage_&&S.pendingPages_.indexOf(F)>-1&&(S.targetPage_&&(S.pendingPages_.unshift(S.targetPage_),S.abort()),I6N(S,F),_.xwW(S,F))}if((S=kt(this,b))||!_.c(y,_.jH)){S.isAttached||S===h||(S.hidden=!0);if(!S.data&&(b!=="watch"&&b!=="learning_journey_watch"||!_.r("swatcheroo_page_pool_dont_provide_filler_data"))){var a;if(b=(a=_.QC("FILLER_DATA",{})[b])==
null?void 0:a.response)S.data=b}return S}};var e6A=function(b){this.JSC$32958_clientRoot=b;this.playlistHandlerActionMap={"yt-add-to-playlist-command":vYf,"yt-end-playlist-command":b8q,"yt-recover-playlist-command":y2q,"yt-refresh-playlist-command":aSd,"yt-playlist-remove-videos-action":SeE};_.LP(_.$J.getInstance(),this.playlistHandlerActionMap,this.JSC$32958_clientRoot);sGX()},C2E;var Vs=function(b,h,y){this.apiKey=b;this.endpoint=h;this.confidenceThreshold=y===void 0?.5:y;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=h==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||h==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
h==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||h==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new dTa};
_.d=Vs.prototype;
_.d.start=function(b){if(this.state===0)if(this.isOnline()){b.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=b.supportsHttpHeadersOverwriteParam);b.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=b.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.Ua("voice_assistant");_.JL("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=b.languageCode||"en-US";this.supportsCrossDomainXhr=b.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=b.youtubeAssistantRequest||null;this.listeningHandler=b.listeningHandler||this.listeningHandler;this.audioDetectedHandler=b.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=b.stopHandler||this.stopHandler;this.completeHandler=b.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=b.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=b.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
b.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=b.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=b.accessToken;this.additionalHeaders=b.additionalHeaders||{};var h;this.prefetchResponseTimeoutMs=(h=b.prefetchResponseTimeoutMs)!=null?h:this.prefetchResponseTimeoutMs;gVx(this);this.startAudio();suP(this)}else this.errorHandler("OFFLINE")};
_.d.stop=function(b){var h=b===void 0?{}:b;b=h.logCancel===void 0?!0:h.logCancel;var y=h.logMicClosed===void 0?!0:h.logMicClosed;var S=h.handleError===void 0?!0:h.handleError;h=h.handleStop===void 0?!0:h.handleStop;this.state!==0&&(b&&Er("voz_cx"),i1(this,{logMicClosed:y,handleStop:h}),S&&this.errorHandler("ABORTED"))};
_.d.getState=function(){return this.state};
_.d.isSupported=function(){return!0};
_.d.stopAudio=function(b){(b===void 0||b)&&Er("voz_mf")};
_.d.startAudio=function(){Er("voz_vp");return _.$p(null)};
var YIE=function(b,h){b.channelOpen&&(b.state!==2&&(b.state=2,Er("voz_ss"),b.listeningHandler()),h=new Uint8Array(h),h='{ "audioIn": "'+_.CA(h)+'" }',b.channel.send(h))},i1=function(b,h){var y=h===void 0?{}:h;
h=y.logMicClosed===void 0?!0:y.logMicClosed;y=y.handleStop===void 0?!0:y.handleStop;b.vozEndOfDataTimeout>-1&&(clearTimeout(b.vozEndOfDataTimeout),b.vozEndOfDataTimeout=-1);TtX(b);b.stopAudio(h);b.channel&&(b.channelOpen=!1,b.manuallyClosedChannel=!0,b.channel.close(),b.channel=void 0);b.transcribedSpeechResults=[];b.state=0;y&&b.stopHandler()},gVx=function(b){var h={httpHeadersOverwriteParam:b.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},b.additionalHeaders,b.accessToken&&b.isUsingVoz?{Authorization:"Bearer "+b.accessToken}:{"x-goog-api-key":b.apiKey}),supportsCrossDomainXhr:b.supportsCrossDomainXhr};b.channel=new jB(b.endpoint,h);b.channel.open();_.W3(b.channel,"w",function(){var y=b.channel,S=y.send,F=b.isUsingVoz?"PLACEHOLDER":"example";F={config:{dialogStateIn:{languageCode:b.languageCode},deviceConfig:{deviceId:F,deviceModelId:F},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!b.isUsingVoz)F.config.requestType=4;else if(b.isUsingVoz&&b.youtubeAssistantRequest){var a=JSON.stringify(b.youtubeAssistantRequest);F.config.internalIn={youtubeAssistantS3InputJson:a}}S.call(y,F);b.channelOpen=!0;b.manuallyClosedChannel=!1});
_.W3(b.channel,"x",function(){b.manuallyClosedChannel||(b.channelOpen=!1,b.channel=void 0,i1(b))});
_.W3(b.channel,"z",function(y){if(y.data){TtX(b);for(var S=0;S<y.data.length;S++){var F=b,a=y.data[S],P=a.speechResults;if(P)a:{var K=[];a=[];var n=!1;P=_.L(P);for(var X=P.next();!X.done;X=P.next()){X=X.value;if(X.noSpeech){i1(F);F.errorHandler("NO_SPEECH");break a}X.transcript!==void 0&&X.stability!==void 0&&(X.stability<F.confidenceThreshold&&(n=!0),n?a.push(X.transcript):K.push(X.transcript))}if(K.length!==0||a.length!==0)K=K.join(" "),a=a.join(" "),F.receivedEndOfUtterance&&!F.isUsingVoz?F.isUsingVoz||
F.completeHandler([K,a]):(n=F,P=K,X=a,Er("voz_sf"),n.transcriptionUpdateHandler(P,X),n.transcribedSpeechResults=[P,X]),F.receivedEndOfUtterance&&(Er("voz_eou"),F.transcriptionCompleteHandler([K,a]),F.isUsingVoz&&(F.prefetchResponseTimeoutMs===0?i1(F,{logMicClosed:!1,handleStop:!0}):F.prefetchResponseTimeoutMs>0&&GTY(F)))}else F.isUsingVoz&&(a==null?0:a.internalOut)?(a=JSON.parse(a.internalOut.youtubeAssistantS3OutputJson),a.userHasOptedInToVaa||a.vaaConsent?F.vaaConsentUpdateHandler(!!a.userHasOptedInToVaa,
!!a.vaaConsent):(kTq(F),a&&(K=F.transcribedSpeechResults,Er("voz_rqf"),F.completeHandler(K,a)))):a.eventType==="END_OF_UTTERANCE"?F.receivedEndOfUtterance=!0:(Er("voz_err"),F.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.vX(Error("Bl")))}}});
_.W3(b.channel,"y",function(y){i1(b);switch(y.status){case 1:y="WEBCHANNEL_NETWORK_ERROR";break;case 2:y="WEBCHANNEL_SERVER_ERROR";break;default:y="WEBCHANNEL_UNKNOWN_ERROR"}b.errorHandler(y);b.logError(Error(y))})};
Vs.prototype.logError=function(b){_.QT(b)};
Vs.prototype.isOnline=function(){return!0};
var GTY=function(b){kTq(b);b.prefetchResponseSetTimeoutId=setTimeout(function(){i1(b,{logMicClosed:!1,handleStop:!0})},b.prefetchResponseTimeoutMs)},kTq=function(b){b.prefetchResponseSetTimeoutId>-1&&(clearTimeout(b.prefetchResponseSetTimeoutId),b.prefetchResponseSetTimeoutId=-1)},suP=function(b){TtX(b);
b.noResponseReceivedTimeout=window.setTimeout(function(){i1(b);b.errorHandler("NO_SPEECH")},11E3)},TtX=function(b){b.noResponseReceivedTimeout>-1&&(window.clearTimeout(b.noResponseReceivedTimeout),b.noResponseReceivedTimeout=-1)},Er=function(b){_.pI(b,void 0,"voice_assistant")};var f6=function(){Vs.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.z(f6,Vs);f6.prototype.isSupported=function(){return dMA()};
f6.prototype.startAudio=function(){var b=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.UQ(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(S){VEF(b,S)};
this.processor.connect(this.audioContext.destination);var h=function(S){b.stream=S;if(!b.audioContext)return _.$p(null);S=b.audioContext.createMediaStreamSource(S);b.processor&&S.connect(b.processor);return _.$p(null)},y={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?h(this.stream):(y=navigator.mediaDevices.getUserMedia(y))?y.then(h).catch(function(S){i1(b);S.name&&S.name==="NotAllowedError"?b.errorHandler("NO_MICROPHONE_PERMISSION"):(b.errorHandler("AUDIO_ERROR"),b.logError(S));return _.UQ(null)}):(i1(this),this.errorHandler("AUDIO_ERROR"),_.vX(Error("Cl")));
return Vs.prototype.startAudio.call(this)};
f6.prototype.stopAudio=function(b){b=b===void 0?!0:b;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(h){h.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;Vs.prototype.stopAudio.call(this,b)};
f6.prototype.isOnline=function(){return navigator.onLine};
var VEF=function(b,h){if(b.audioContext)if(window.OfflineAudioContext){var y=b.audioContext.sampleRate,S=h.inputBuffer.getChannelData(0);h=new window.OfflineAudioContext(1,S.length,16E3);for(var F=h.createBuffer(1,S.length,y),a=F.getChannelData(0),P=0,K=0;K<S.length;K++)a[K]=S[K],P+=a[K]*a[K];!b.audioDetected&&Math.sqrt(P/S.length)>.01&&(b.audioDetected=!0,b.audioDetectedHandler());S=h.createBufferSource();S.buffer=F;S.connect(h.destination);S.start(0);h.oncomplete=function(n){n=n.renderedBuffer.getChannelData(0);
for(var X=Math.floor(16384E3/y),u=new Int16Array(X),O=0;O<X;++O)u[O]=Math.max(-1,Math.min(1,n[O]))*32767;YIE(b,u.buffer)};
h.startRendering()}else EVq(b,h)},EVq=function(b,h){var y=b.audioContext.sampleRate,S=h.inputBuffer.getChannelData(0),F=Math.floor((y+8E3)/16E3);
y=S.length/F;h=new Float32Array(y);for(var a=0;a<y;++a)h[a]=S[a*F];S=new Int16Array(y);for(F=0;F<y;++F)S[F]=Math.max(-1,Math.min(1,h[F]))*32767;YIE(b,S.buffer)};var iUA={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var ftN=function(){this.JSC$20529_audioEnabled=!0;this.audioFeedbackHolder={}};
ftN.prototype.isPlaying=function(b){return b.currentTime>0&&!b.paused&&!b.ended&&b.readyState>2};
var w$q=function(b){for(var h=_.L(Object.values(iUA)),y=h.next();!y.done;y=h.next())y=y.value,b.audioFeedbackHolder[y]=new Audio,b.audioFeedbackHolder[y].src="/s/search/audio/"+y+".mp3",b.audioFeedbackHolder[y].load()},w9=function(b,h){if(b.JSC$20529_audioEnabled!==!1&&h in b.audioFeedbackHolder){for(var y=_.L(Object.values(b.audioFeedbackHolder)),S=y.next();!S.done;S=y.next())S=S.value,b.isPlaying(S)&&S.pause();
b.audioFeedbackHolder[h].currentTime=0;b.audioFeedbackHolder[h].play().catch(function(){})}};var ltq=function(b,h){var y=this;this.store=b;this.service=h;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){y.setState("offline");y.stop()};
this.audioPlayer=new ftN;var S;(S=this.audioPlayer)==null||w$q(S)};
_.d=ltq.prototype;_.d.getService=function(){return this.service};
_.d.isEnabled=function(){return!!this.service};
_.d.isSupported=function(){var b;return(b=this.service)==null?void 0:b.isSupported()};
_.d.start=function(){var b=this,h,y,S,F,a,P,K,n,X,u,O,N,t;return _.Z(function(R){switch(R.nextAddress){case 1:b.store.dispatch(l$2("",""));if(!navigator.onLine)return b.setState("offline"),R.return();window.addEventListener("offline",b.handleOfflineEvent);b.stream=null;if(!b.permissionsSupported){R.jumpTo(2);break}_.WE(R,3);return R.yield(qIf(b),5);case 5:h=R.yieldResult;if(!h)return(y=b.audioPlayer)==null||w9(y,"failure"),R.return();b.service.stream=b.stream;b.setState("listening");_.Lz(R,2);break;
case 3:_.C$(R),b.permissionsSupported=!1;case 2:S={context:_.QUF(_.rw())},S.youtubeAssistantParams={searchParams:{inlineSearchResponse:b.enableInlineSearchResponse}},F=function(I,U){b.store.dispatch(qYY("transcribing"));b.store.dispatch(l$2(I,U))},a=function(){var I;
(I=b.audioPlayer)==null||w9(I,"open");b.setState("listening")},P=function(){b.setState("transcribing")},K=function(I){b.setErrorState(I)},n=function(I,U){var p;
(p=b.audioPlayer)==null||w9(p,"success");U&&(_.r("kevlar_voice_search_inline_search")&&(b.responseProcessor=_.H9().resolve(_.MXM),b.responseProcessor&&(p=U.navigationAction,I=U.prefetchedSearchResponse,p&&I&&(p=(new _.z9x).JSC$14363_getStoreKey(p),_.q$(b.responseProcessor,I,p)))),b.JSC$20547_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",U))},X=function(){window.removeEventListener("offline",b.handleOfflineEvent)},u=_.dCq(!1),O=u.Authorization!=null,N=b.enableFirstPartyAuth||
b.enableFPAForSignedInUsers&&O?u:{"X-Goog-Visitor-Id":u["X-Goog-Visitor-Id"]},t={completeHandler:n,
errorHandler:K,listeningHandler:a,audioDetectedHandler:P,stopHandler:X,transcriptionUpdateHandler:F,youtubeAssistantRequest:S,languageCode:x3q(),additionalHeaders:N,supportsCrossDomainXhr:b.enableFirstPartyAuth||b.enableFPAForSignedInUsers&&O,supportsHttpHeadersOverwriteParam:!b.disableHttpHeadersOverwrite},b.service.start(t),_.g3(R)}})};
_.d.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.d.reset=function(){this.store.dispatch(_.$8({type:"RESET_VOICE_SEARCH_STATE"}))};
_.d.setState=function(b){this.store.dispatch(qYY(b))};
_.d.setErrorState=function(b){switch(b){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var h;(h=this.audioPlayer)==null||w9(h,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)qIf(this);else{var y;(y=this.audioPlayer)==null||w9(y,"failure");this.setState("permission-denied")}break;case "ABORTED":var S;(S=this.audioPlayer)==null||w9(S,"no_input");break;default:var F;(F=this.audioPlayer)==
null||w9(F,"no_input");this.setState("timeout")}};
var qIf=function(b){var h,y;return _.Z(function(S){switch(S.nextAddress){case 1:return S.yield(navigator.permissions.query({name:"microphone"}),2);case 2:h=S.yieldResult;if(h.state==="granted")return S.return(!0);if(h.state==="denied")return b.setState("permission-denied"),S.return(!1);b.setState("permission");y={audio:{sampleSize:16,channelCount:1},video:!1};_.WE(S,3);return S.yield(navigator.mediaDevices.getUserMedia(y),5);case 5:return b.stream=S.yieldResult,S.return(!0);case 3:return _.C$(S),
b.setState("permission-denied"),S.return(!1)}})},x3q=function(){var b=_.QC("INNERTUBE_CONTEXT_HL"),h=_.QC("INNERTUBE_CONTEXT_GL");
return b.indexOf("-")>-1?b:b+"-"+h};var Quf=function(b,h,y){ltq.call(this,h,y);this.JSC$20547_actionRouter=b;this.enableInlineSearchResponse=_.r("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.r("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.r("kevlar_voice_search_enable_fpa_signedin_users")},m3f;
_.z(Quf,ltq);
var vVF=function(){if(!m3f){var b="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.r("kevlar_voice_search_auth_enabled")||_.r("kevlar_voice_search_use_yt_endpoint")?b="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.r("kevlar_voice_search_use_fp_endpoint")&&(b="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");m3f=
new Quf(_.$J.getInstance(),_.hP(),new f6(_.QC("VOZ_API_KEY"),b,.5))}return m3f};var bCA=function(b){this.JSC$20551_clientRoot=b;this.autonavPauseReasons={scroll:!1,inputBoxFocus:!1,overlayOpen:!1,guideOpen:!1,backgroundAndMute:!1,requestedByPlayer:!1,longIdle:!1,youthereLactExperiment:!1,userEngagement:!1,commentsPanelOpen:!1};this.autonavPauseActionMap={"ytd-log-youthere-nav":this.onYtEndpointChanged.bind(this),"yt-autonav-pause-user-engagement":this.onYtAutonavPauseUserEngagement.bind(this),"yt-user-activity":this.onYtUserActivity.bind(this),"yt-get-autonav-pause-debug-state":this.onYtGetAutonavPauseDebugState.bind(this)};
this.userEngagementCsn=null;this.eventListeners=new Map;this.eventListeners.set(document,new Map([["visibilitychange",this.onYtAutonavVisibilityChanged.bind(this)]]));this.eventListeners.set(this.JSC$20551_clientRoot,new Map([["iron-overlay-opened",this.onIronOverlayOpened.bind(this)],["iron-overlay-closed",this.onIronOverlayClosed.bind(this)],["yt-autonav-pause-focus",this.onYtAutonavPauseFocus.bind(this)],["yt-autonav-pause-blur",this.onYtAutonavPauseBlur.bind(this)],["yt-autonav-pause-guide-opened",
this.onYtAutonavPauseGuideOpened.bind(this)],["yt-autonav-pause-guide-closed",this.onYtAutonavPauseGuideClosed.bind(this)],["yt-autonav-pause-scroll",this.onYtAutonavPauseScroll.bind(this)],["yt-autonav-pause-player",this.onYtAutonavPausePlayer.bind(this)],["yt-autonav-pause-player-ended",this.onYtAutonavPausePlayerEnded.bind(this)],["yt-autonav-engagement-panel-visible-changed",this.onYtEngagementPanelVisibleChanged.bind(this)]]));b=_.L(this.eventListeners);for(var h=b.next();!h.done;h=b.next()){var y=
_.L(h.value);h=y.next().value;y=y.next().value;y=_.L(y);for(var S=y.next();!S.done;S=y.next()){var F=_.L(S.value);S=F.next().value;F=F.next().value;h.addEventListener(S,F)}}_.LP(_.$J.getInstance(),this.autonavPauseActionMap,this.JSC$20551_clientRoot)},hFf,yuX=function(b){return _.r("kevlar_autonav_popup_filtering")?(b=_.mi(b))?b.hasAttribute("prevent-autonav"):!0:!0};
_.d=bCA.prototype;_.d.onIronOverlayOpened=function(b){yuX(b)&&(this.autonavPauseReasons.overlayOpen=!0,l1(this))};
_.d.onIronOverlayClosed=function(b){yuX(b)&&(this.autonavPauseReasons.overlayOpen=!1,l1(this))};
_.d.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;l1(this)};
_.d.onYtAutonavPauseBlur=function(){var b=this;_.xP.addJob(function(){SLf()||(b.autonavPauseReasons.inputBoxFocus=!1,l1(b))},8,0)};
_.d.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;l1(this)};
_.d.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;l1(this)};
_.d.onYtAutonavPauseScroll=function(){var b=_.H9().resolve(_.bM);b.isOnWatch()&&(b=b.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=b.getBoundingClientRect().top<-200,l1(this))};
_.d.onYtAutonavPauseUserEngagement=function(b){var h=this;if(_.r("user_engagement_enable_autoplay_pause_feature")){var y=Number(b.lowEngagementThresholdMs);isNaN(y)||y<=0||b.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.LY("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.H9().resolve(_.rS),_.td()<y?_.VT(_.xP,function(){_.LY("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.VCF()?(this.userEngagementCsn=_.UE(),_.VT(_.xP,function(){_.LY("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
h.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,l1(this)):_.LY("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.LlU(Error("Dl`"+JSON.stringify(b)))};
_.d.onYtAutonavPausePlayer=function(b){this.autonavPauseReasons.requestedByPlayer=!!b.detail;l1(this)};
_.d.onYtAutonavVisibilityChanged=function(){var b=this,h,y,S;return _.Z(function(F){if(F.nextAddress==1)return(h=_.ye())?F.yield(h.getPlayerPromise(),2):F.return();y=F.yieldResult;S=y.isMuted()||y.getVolume()===0;b.autonavPauseReasons.backgroundAndMute=SLf()&&S;l1(b);_.g3(F)})};
_.d.onYtAutonavPausePlayerEnded=function(){_.H9().resolve(_.rS);var b=144E5;_.r("user_engagement_enable_autoplay_pause_feature")||_.r("is_part_of_any_user_engagement_experiment")||(b=45E5);this.autonavPauseReasons.longIdle=_.td()>b;FGa(this);l1(this)};
_.d.onYtUserActivity=function(){var b=this;this.autonavPauseReasons.userEngagement&&(_.VT(_.xP,function(){_.LY("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",b.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,l1(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.VT(_.xP,function(){_.LY("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",b.userEngagementCsn);_.x2()}),this.autonavPauseReasons.youthereLactExperiment=!1,l1(this));
this.autonavPauseReasons.longIdle&&!_.r("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,l1(this))};
var SLf=function(){var b=window.document.visibilityState;return!(!b||b==="visible")},l1=function(b){for(var h=!1,y=_.L(Object.values(b.autonavPauseReasons)),S=y.next();!S.done;S=y.next())S=S.value,h=h||S;
h?_.g2.getInstance().pause(b.autonavPauseReasons):(b=_.g2.getInstance(),b.autonavState_==3?(b.setState(2,!1,!1),b.autonavPauseReason_=void 0):b.autonavState_==1&&(b.disabledAutonavPauseReason_=void 0))},FGa=function(b){var h=!1;
if(_.r("enable_autoplay_pause_by_lact")){_.H9().resolve(_.rS);h=_.tj("autoplay_pause_by_lact_sec")*1E3;var y=_.tj("autoplay_pause_by_lact_sampling_fraction");(h=_.td()>=h&&Math.random()<y)&&!_.VCF()&&(_.VT(_.xP,function(){_.LY("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),h=!1)}h!==b.autonavPauseReasons.youthereLactExperiment&&(b.autonavPauseReasons.youthereLactExperiment=h)&&(b.userEngagementCsn=_.UE(),_.VT(_.xP,function(){_.LY("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",b.userEngagementCsn)}));
b.autonavPauseReasons.userEngagement&&_.VT(_.xP,function(){_.LY("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",b.userEngagementCsn)})};
bCA.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.LY("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.x2(),this.autonavPauseReasons.youthereLactExperiment=!1,l1(this));this.autonavPauseReasons.userEngagement&&(_.LY("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,l1(this))};
bCA.prototype.onYtEngagementPanelVisibleChanged=function(b){b.detail&&b.detail.targetId==="engagement-panel-comments-section"&&(this.autonavPauseReasons.commentsPanelOpen=b.detail.visible,l1(this))};
bCA.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var aD2=_.iM.persistentPanelVisibleSelector,q2=function(){var b=_.g.apply(this,arguments)||this;b.miniGuideVisible=!1;b.guideOpened=_.r("disable_initial_guide_state_fix")?!1:b.canFitPersistentGuide(b.initialBodyClientWidth);b.guideUserStateOpened=b.getInitialGuideUserStateOpened();b.isFullscreenShorts=!1;b.miniGuideWidthThreshold=_.tj("kevlar_mini_guide_width_threshold",791);b.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");
b.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");b.persistentGuideBlockedPagePathRegex=new RegExp(b.persistentGuideBlockedPagesPatterns.join("|"));b.animationTransitionDuration=0;b.lateDataResolver=_.wS();b.initialGuideDataFetchFailed=!1;b.initialLoad=!0;b.guideRenderers=new Set;b.isMouseOverGuide=!1;b.sessionUserManuallyExpandedGuideState=
!1;b.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return b};
_.z(q2,_.g);_.d=q2.prototype;_.d.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.d.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.d.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.d.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.d.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.d.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.d.ready=function(){_.H9().addProvider({provide:_.zO,useValue:this.hostElement})};
_.d.attached=function(){var b=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.Hl(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.Hl(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.Hl(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.Hl(this,this.onYtGuideShow));_.Ob(this,function(){b.animationTransitionDuration=200})};
_.d.detached=function(){document.removeEventListener("yt-navigate-finish",_.Hl(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.Hl(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.Hl(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.Hl(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.Hl(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.Hl(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.Hl(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.d.getData=function(){return this.data};
_.d.load=function(){var b=this,h,y,S,F;return _.Z(function(a){switch(a.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=b.lateDataResolver.resolve.bind(b),a.return(b.lateDataResolver.promise);if(window.ytInitialGuideData)return h=_.wS(),h.resolve(window.ytInitialGuideData),a.return(h.promise);S=!1;_.WE(a,2);return a.yield(b.fetchGuideData(),4);case 4:y=a.yieldResult;_.Lz(a,3);break;case 2:F=_.C$(a),F.message==="Returned error"&&(S=
!0);case 3:if(y)return a.return(y);b.onYtGuideClose();S||(b.initialGuideDataFetchFailed=!0);return a.return(b.lateDataResolver.promise)}})};
_.d.fetchGuideData=function(){var b=this,h,y,S,F,a,P,K;return _.Z(function(n){if(n.nextAddress==1)return h=_.H9(),b.guidePromise||(y=h.resolve(_.DT),b.guidePromise=_.f9(y,mIq)),n.yield(b.guidePromise,2);if(n.nextAddress!=3)return S=n.yieldResult,F=h.resolve(_.Hw),n.yield(F(),3);(a=n.yieldResult)&&((P=S)==null?void 0:(K=P.responseContext)==null?void 0:K.maxAgeSeconds)!==0&&a.put("service:guide:fallback",new _.mE({innertubeResponse:S}));return n.return(S)})};
_.d.initializeGuideDataIfEmpty=function(){var b=this,h,y;return _.Z(function(S){if(S.nextAddress==1){if(!b.initialGuideDataFetchFailed||b.data)return S.return();_.WE(S,2);return S.yield(b.fetchGuideData(),4)}if(S.nextAddress!=2)return(h=S.yieldResult)&&b.lateDataResolver.resolve(h),_.Lz(S,0);y=_.C$(S);_.vX(y);_.g3(S)})};
_.d.initializeGuideData=function(){var b=this,h,y;return _.Z(function(S){switch(S.nextAddress){case 1:return _.Hf(xJq(),{mainAppWeb:_.wq()}),_.WE(S,2),S.yield(b.load(),4);case 4:b.data=S.yieldResult;_.Lz(S,3);break;case 2:h=_.C$(S),_.uG(xJq(),"FAILURE"),_.vX(new _.Gn("Guide data not present",{errorMessage:h.message}));case 3:y=b.data&&b.data.items&&b.data.items.length>0?"SUCCESS":"FAILURE",y==="FAILURE"&&_.vX(new _.Gn("Guide data.items empty")),_.uG(xJq(),y),_.g3(S)}})};
_.d.setGuideData=function(b){var h=this,y,S;return _.Z(function(F){if(F.nextAddress==1)return h.disabled?F.return():h.data?(b.data=h.data,h.guideRenderers.add(b),F.return()):F.yield(h.initializeGuideData(),2);h.graftGuideToPage();y=_.m$("IS_HOMEPAGE_COLD")?"eop":void 0;_.r("disable_element_pool_populator")?h.setGuideDataAfterInit(b):(S=new _.JJ(1,y),_.eS(S,h.setGuideDataAfterInit.bind(h,b)));_.g3(F)})};
_.d.setGuideDataAfterInit=function(b){b.data=this.data;b.markDirty();this.guideRenderers.add(b);_.fZ(function(){_.pI("gle")});
_.Ob(this,function(){_.pI("gpe")})};
_.d.graftGuideToPage=function(){if(this.data){var b=this.data&&this.data.trackingParams;b&&(b=_.I_(b),_.qu(_.rU(),b))}};
_.d.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.Hl(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.d.onDrawerOpenedChanged=function(b,h){!h.value&&this.guideOpened&&(this.guideOpened=!1)};
_.d.onYtGuideToggle=function(b){var h=this.guideOpened;this.guideOpened=!h;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var y=_.HT();_.uE(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;y.save()}this.updateGuideDrawerElementState();if(this.guideElement){var S;this.guideOpened&&((S=b.detail)==null?0:S.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.Hl(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.Hl(this,this.onAppDrawerTransitioned))}h||this.initializeGuideDataIfEmpty()};
_.d.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Hl(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.Mi(this.guideElement)};
_.d.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Hl(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(f$A(this.guideOpened))};
_.d.guidePersistentAndVisibleChanged=function(){_.aw(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.d.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.$8({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.d.miniGuideVisibleChanged=function(){_.aw(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.d.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(f$A(this.guideOpened)),this.initialLoad=!1);_.aw(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.d.activeEndpointChanged=function(){_.aw(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.d.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.pageType)if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.d.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()};
_.d.cachedClientWidthChanged=function(){this.updateGuideState()};
_.d.persistentPanelVisibleChanged=function(){this.updateGuideState()};
_.d.updateGuideState=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var b=this.canFitPersistentGuide(this.cachedClientWidth);b?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=b}this.updateGuideDrawerElementState()};
_.d.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.d.getGuideOpened=function(){return this.guideOpened};
_.d.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.d.getActiveEndpoint=function(){return this.activeEndpoint};
_.d.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.d.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&&_.Sx(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.d.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.r("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.d.handleGuideMouseLeave=function(){var b=this;!this.sessionUserManuallyExpandedGuideState&&_.r("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.wy(this,"handleGuideMouseLeave",function(){b.isMouseOverGuide||!b.guideOpened||b.miniGuideVisible||(b.guideOpened=!1,b.updateGuideDrawerElementState())},100))};
_.d.computeGuidePersistentAndVisible=function(){var b=this;_.wy(this,"computeGuidePersistentAndVisible",function(){b.guidePersistentAndVisible=b.guideOpened&&b.guidePersistent;b.guideIsVisibleButNotPersistent=!(!b.guideOpened||b.guidePersistent)})};
_.d.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.d.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.d.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.d.startLoadingWatch=function(){this.closeGuide()};
_.d.startLoadingShorts=function(){_.r("web_hide_guide_on_shorts")&&this.closeGuide()};
_.d.onYtNavigateFinish=function(b,h){if(!_.nF||h){this.activeEndpoint=h.endpoint;this.pageType=h.pageType;this.pageUrl=h.response.url;var y,S;b=(S=_.c((y=h.endpoint)==null?void 0:y.commandMetadata,_.ZW))==null?void 0:S.url;!this.pageUrl&&b&&(this.pageUrl=b);_.r("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.d.getVisibleGuideRenderer=function(){for(var b=_.L(this.guideRenderers),h=b.next();!h.done;h=b.next())if(h=h.value,this.miniGuideVisible&&h.is==="ytd-mini-guide-renderer"||this.guideOpened&&h.is==="ytd-guide-renderer")return h;return null};
_.d.markGuideRendererDirty=function(b){if(b){typeof b.markDirty==="function"&&b.markDirty();b=_.L([].concat(_.f$(_.$x(b).children)));for(var h=b.next();!h.done;h=b.next())this.markGuideRendererDirty(h.value)}};
_.d.persistentGuideEnabled=function(b,h){if(!h||b==="watch"||b==="settings"||b==="shorts"&&this.isFullscreenShorts||_.r("reels_web_disable_persistent_guide_shorts")&&b==="shorts")return!1;var y=_.W9(h)||"";return _.r("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(S){return y===S}):!this.persistentGuideBlockedPagePathRegex.test(y)};
_.d.canFitPersistentGuide=function(b){var h=_.tj("kevlar_persistent_guide_width_threshold",1312);return h===-1||_.r("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:b>this.calculateGuideThreshold(h)};
_.d.calculateGuideThreshold=function(b){return _.r("enable_ai_companion")?b+(this.persistentPanelVisible?400:0):b};
_.d.canFitMiniGuide=function(b){return this.miniGuideWidthThreshold===-1?!1:b>this.calculateGuideThreshold(this.miniGuideWidthThreshold)};
_.d.onResize=function(){var b=this;_.wy(this,"calculateGuideState",function(){b.onResizeDebounced()})};
_.d.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.d.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.d.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.d.getInitialGuideUserStateOpened=function(){return _.r("web_force_mini_guide_default")?!1:!_.HT().getFlag(109)};
_.tm.Object.defineProperties(q2.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.QC("initialBodyClientWidth")||window.innerWidth}}});
q2.prototype.onResize=q2.prototype.onResize;q2.prototype.observeForMiniGuideVisible=q2.prototype.observeForMiniGuideVisible;q2.prototype.computeGuidePersistentAndVisible=q2.prototype.computeGuidePersistentAndVisible;q2.prototype.persistentPanelVisibleChanged=q2.prototype.persistentPanelVisibleChanged;q2.prototype.cachedClientWidthChanged=q2.prototype.cachedClientWidthChanged;q2.prototype.resetGuide=q2.prototype.resetGuide;q2.prototype.activeEndpointChanged=q2.prototype.activeEndpointChanged;
q2.prototype.guideOpenedChanged=q2.prototype.guideOpenedChanged;q2.prototype.miniGuideVisibleChanged=q2.prototype.miniGuideVisibleChanged;q2.prototype.guideIsVisibleButNotPersistentChanged=q2.prototype.guideIsVisibleButNotPersistentChanged;q2.prototype.guidePersistentAndVisibleChanged=q2.prototype.guidePersistentAndVisibleChanged;q2.prototype.onGuideElementChanged=q2.prototype.onGuideElementChanged;q2.prototype.onGuidePersistentChanged=q2.prototype.onGuidePersistentChanged;
q2.prototype.onRenderGuideChanged=q2.prototype.onRenderGuideChanged;q2.prototype.onActiveEndpointChanged=q2.prototype.onActiveEndpointChanged;q2.prototype.onMiniGuideVisibleChanged=q2.prototype.onMiniGuideVisibleChanged;q2.prototype.onGuideIsVisibleButNotPersistentChanged=q2.prototype.onGuideIsVisibleButNotPersistentChanged;q2.prototype.onGuidePersistendAndVisibleChanged=q2.prototype.onGuidePersistendAndVisibleChanged;
_.V([_.B(_.ab),_.f("design:type",Object)],q2.prototype,"ironResizableBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],q2.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],q2.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],q2.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],q2.prototype,"data",void 0);
_.V([_.C(),_.f("design:type",Boolean)],q2.prototype,"disabled",void 0);_.V([_.C(),_.f("design:type",Boolean)],q2.prototype,"guidePersistentAndVisible",void 0);_.V([_.OB("guidePersistentAndVisible"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],q2.prototype,"onGuidePersistendAndVisibleChanged",null);_.V([_.C(),_.f("design:type",Boolean)],q2.prototype,"guideIsVisibleButNotPersistent",void 0);
_.V([_.OB("guideIsVisibleButNotPersistent"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],q2.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.V([_.C(),_.f("design:type",Object)],q2.prototype,"miniGuideVisible",void 0);_.V([_.OB("miniGuideVisible"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],q2.prototype,"onMiniGuideVisibleChanged",null);_.V([_.C(),_.f("design:type",Boolean)],q2.prototype,"forceMiniGuideClose",void 0);
_.V([_.C(),_.f("design:type",Object)],q2.prototype,"activeEndpoint",void 0);_.V([_.OB("activeEndpoint"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],q2.prototype,"onActiveEndpointChanged",null);_.V([_.C(),_.f("design:type",Boolean)],q2.prototype,"renderGuide",void 0);_.V([_.OB("renderGuide"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],q2.prototype,"onRenderGuideChanged",null);
_.V([_.C({selector:aD2}),_.f("design:type",Boolean)],q2.prototype,"persistentPanelVisible",void 0);_.V([_.C(),_.f("design:type",Object)],q2.prototype,"guideOpened",void 0);_.V([_.C(),_.f("design:type",Boolean)],q2.prototype,"guidePersistent",void 0);_.V([_.OB("guidePersistent"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],q2.prototype,"onGuidePersistentChanged",null);_.V([_.C(),_.f("design:type",Object)],q2.prototype,"guideUserStateOpened",void 0);
_.V([_.C(),_.f("design:type",String)],q2.prototype,"pageUrl",void 0);_.V([_.C(),_.f("design:type",String)],q2.prototype,"pageType",void 0);_.V([_.C(),_.f("design:type",Number)],q2.prototype,"cachedClientWidth",void 0);_.V([_.C(),_.f("design:type",Object)],q2.prototype,"guideElement",void 0);_.V([_.C({selector:_.jD}),_.f("design:type",Object)],q2.prototype,"isFullscreenShorts",void 0);
_.V([_.OB("guideElement"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],q2.prototype,"onGuideElementChanged",null);_.V([_.OB("guidePersistentAndVisible"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],q2.prototype,"guidePersistentAndVisibleChanged",null);
_.V([_.zj("guideIsVisibleButNotPersistent"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],q2.prototype,"guideIsVisibleButNotPersistentChanged",null);_.V([_.OB("miniGuideVisible"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],q2.prototype,"miniGuideVisibleChanged",null);_.V([_.zj("guideOpened"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],q2.prototype,"guideOpenedChanged",null);
_.V([_.OB("activeEndpoint"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],q2.prototype,"activeEndpointChanged",null);_.V([_.zj("pageUrl"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],q2.prototype,"resetGuide",null);_.V([_.zj("cachedClientWidth"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],q2.prototype,"cachedClientWidthChanged",null);
_.V([_.zj("persistentPanelVisible"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],q2.prototype,"persistentPanelVisibleChanged",null);_.V([_.OB("guideOpened","guidePersistent"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],q2.prototype,"computeGuidePersistentAndVisible",null);
_.V([_.zj("guidePersistentAndVisible","pageUrl","cachedClientWidth","persistentPanelVisible"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],q2.prototype,"observeForMiniGuideVisible",null);_.V([_.u3("iron-resize"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],q2.prototype,"onResize",null);_.V([_.Yx({disableElementRegistration:!0,is:"yt-guide-manager"})],q2);
var dZE=_.k(q2,"yt-guide-manager",void 0,{mode:_.Lt("kevlar_poly_si_batch_j081")?1:2});var xt=function(){var b=_.g.apply(this,arguments)||this;b.JSC$20561_keyboardInUse=!1;b.boundHandleCapturedKeydownEvent=function(h){b.handleCapturedKeydownEvent(h)};
return b};
_.z(xt,_.g);_.d=xt.prototype;_.d.attached=function(){this.listenToDocument(document)};
_.d.listenToDocument=function(b){b.addEventListener("keydown",_.Hl(this,this.onKeyDownEvent));b.addEventListener("keyup",_.Hl(this,this.onKeyUpEvent));b.addEventListener("mousedown",_.Hl(this,this.onMouseDownEvent));_.r("desktop_keyboard_capture_keydown_killswitch")||b.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);b.addEventListener("yt-page-data-updated",_.Hl(this,this.onPageUpdate))};
_.d.detached=function(){this.unlistenFromDocument(document)};
_.d.unlistenFromDocument=function(b){b.removeEventListener("keydown",_.Hl(this,this.onKeyDownEvent));b.removeEventListener("keyup",_.Hl(this,this.onKeyUpEvent));b.removeEventListener("mousedown",_.Hl(this,this.onMouseDownEvent));_.r("desktop_keyboard_capture_keydown_killswitch")||b.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);b.removeEventListener("yt-page-data-updated",_.Hl(this,this.onPageUpdate))};
_.d.ready=function(){_.H9().addProvider({provide:_.sG,useValue:this})};
_.d.isKeyBoardInUse=function(){return this.JSC$20561_keyboardInUse};
_.d.handleCapturedKeydownEvent=function(b){if(b.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(b)};
_.d.onMouseDownEvent=function(){this.JSC$20561_keyboardInUse=!1};
_.d.onPageUpdate=function(){if(_.r("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.r("web_shorts_keyboard_shortcut_usage_log")){_.lm2.clear();for(var b=_.L(_.ZQ),h=b.next();!h.done;h=b.next()){var y=_.L(h.value);h=y.next().value;y=y.next().value;y=_.Kh(y);_.lm2.set(h,y);_.Vh(_.UE(),_.Ae(),y)}_.qBX.clear();b=_.L(_.oJ);for(h=b.next();!h.done;h=b.next())y=_.L(h.value),h=y.next().value,y=y.next().value,y=_.Kh(y),_.qBX.set(h,y),_.Vh(_.UE(),_.Ae(),y);_.Ea(_.UE(),_.Ae(),[].concat(_.f$(_.qBX.values()),
_.f$(_.lm2.values())));_.fI(_.UE(),[].concat(_.f$(_.qBX.values()),_.f$(_.lm2.values())))}};
_.d.onMiniplayerActiveChange=function(){var b;(b=_.H9().resolve(_.Vp).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(b.document):this.unlistenFromDocument(b.document))};
_.d.ignoreKeyEvent=function(b){if(b.ctrlKey||b.altKey)if(_.r("kevlar_macro_markers_keyboard_shortcut")){if(b.keyCode!==37&&b.keyCode!==39)return!0}else return!0;var h=_.Qk(b)||[];return _.fma(h)?(_.r("web_button_or_anchor_list_item")&&RTx(h,b)&&(this.JSC$20561_keyboardInUse=!0),!0):b.defaultPrevented?(RJ(b.keyCode,b.shiftKey,this.isShortsPage),!0):b.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(b):!1};
_.d.isSpacebarClick=function(b){var h=b||window.event;var y;h.composedPath&&typeof h.composedPath==="function"?y=h.composedPath():y=h.path;y&&y.length?h=y[0]:(h=h||window.event,h=h.target||h.srcElement,h.nodeType==3&&(h=h.parentNode));return h&&b.keyCode===32&&(b=h.tagName==="BUTTON"||h.tagName==="A"||h.tagName==="INPUT",h=(h=h.getAttribute("role"))&&(h==="option"||h==="button"||h.indexOf("menuitem")===0),b||h)?!0:!1};
_.d.onKeyDownEvent=function(b){if(!this.ignoreKeyEvent(b)&&(b.keyCode===191&&(b.shiftKey||b.metaKey?b.repeat!=null&&b.repeat||(this.openHotkeyDialog(),RJ(b.keyCode,b.shiftKey,this.isShortsPage)):(this.focusSearchBox(),b.preventDefault())),!b.metaKey)){var h=_.H9().resolve(_.Vp);switch(b.keyCode){case 9:this.JSC$20561_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(b);break;case 84:h.pipController.getWindow()&&window.focus();this.toggleTheaterMode(b.keyCode,b.shiftKey);break;case 73:h.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(b.keyCode,b.shiftKey);break;case 70:if(this.isShortsPage){_.wld();break}this.isMiniplayerActive()?h.pipController.getWindow()&&(h.close(!0),window.focus()):this.passEventToPlayer(b);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(b.keyCode,b.shiftKey):this.closeMiniplayer(b.keyCode,b.shiftKey)||this.passEventToPlayer(b);break;case 13:b.shiftKey&&_.H9().resolve(_.ez).activate(b);break;default:this.passEventToPlayer(b)}}};
_.d.onKeyUpEvent=function(b){if(!this.ignoreKeyEvent(b))if(_.r("web_speedmaster_spacebar_control")&&b.keyCode===32)this.handlePlayerSpaceKey(b,!0);else{var h=this.getPlayerManager();h&&(h=h.getPlayer())&&h.handleGlobalKeyUp(b.keyCode,b.shiftKey,b.ctrlKey,b.altKey,b.metaKey,b.key,b.code)}};
_.d.getPlayerManager=function(){var b=_.ye(),h=_.H9().resolve(_.XS(_.bM));return b&&h&&h.isOnWatch()?b:null};
_.d.passEventToPlayer=function(b,h){var y=this,S,F,a,P;return _.Z(function(K){if(K.nextAddress==1){if(!_.r("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&y.isMiniplayerActive())S=_.H9().resolve(_.Vp).getPlayerElement();else if(y.inlinePreviewIsActive){if(F=_.aw(y.hostElement,"yt-get-inline-preview-player-action"),(a=F)==null?0:a[0])S=F[0]}else S=_.ye();return S?K.yield(S.getPlayerPromise(),3):K.jumpTo(0)}P=K.yieldResult;h?P.handleGlobalKeyUp(b.keyCode,b.shiftKey,b.ctrlKey,b.altKey,b.metaKey,
b.key,b.code):P.handleGlobalKeyDown(b.keyCode,b.shiftKey,b.ctrlKey,b.altKey,b.metaKey,b.key,b.code,b.repeat);b.keyCode!==38&&b.keyCode!==40&&RJ(b.keyCode,b.shiftKey,y.isShortsPage);_.g3(K)})};
_.d.focusSearchBox=function(){_.Sx(this.hostElement,"yt-focus-searchbox")};
_.d.openHotkeyDialog=function(){_.Sx(this.hostElement,"yt-open-hotkey-dialog")};
_.d.isMiniplayerActive=function(){return _.H9().resolve(_.Vp).isMiniplayerActive()};
_.d.closeMiniplayer=function(b,h){return this.isMiniplayerActive()?(_.H9().resolve(_.Vp).close(),RJ(b,h,this.isShortsPage),!0):!1};
_.d.toggleTheaterMode=function(b,h){var y=_.J4(_.hP().getState()),S=this.getPlayerManager(),F=_.r("disable_theater_mode_keyboard")||_.m$("START_IN_FULL_WINDOW_MODE");S&&!F&&(y=!y,_.v5()&&_.r("external_fullscreen")&&(y=!0),_.F8(this.hostElement,"yt-toggle-theater-mode",[y]),RJ(b,h,this.isShortsPage))};
_.d.toggleMiniplayer=function(b,h){var y=this.getPlayerManager();if(this.isMiniplayerActive()){var S;((S=_.H9().resolve(_.XS(_.bM)))==null?0:S.isOnWatch())?_.H9().resolve(_.Vp).close(!0):_.Eg(_.H9().resolve(_.Vp));RJ(b,h,this.isShortsPage)}else y&&(_.F8(this.hostElement,"yt-activate-miniplayer-from-watch-action"),RJ(b,h,this.isShortsPage))};
_.d.handlePlayerSpaceKey=function(b,h){var y=!!_.ye()||this.isMiniplayerActive();y=_.r("disable_space_scroll_fix")||y;_.r("global_spacebar_pause")&&!this.isKeyBoardInUse()&&y&&(b.preventDefault(),this.passEventToPlayer(b,h))};
_.d.isPresentingTheaterMode=function(){return _.r("web_watch_enable_tm_esc_key")?_.J4(_.hP().getState())&&!_.v5():!1};
xt.prototype.onMiniplayerActiveChange=xt.prototype.onMiniplayerActiveChange;_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],xt.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],xt.prototype,"ytdReduxBehavior",void 0);_.V([_.C({selector:_.kv8}),_.f("design:type",Boolean)],xt.prototype,"inlinePreviewIsActive",void 0);_.V([_.C({selector:_.Waj}),_.f("design:type",Boolean)],xt.prototype,"isShortsPage",void 0);
_.V([_.C({selector:_.Ci}),_.f("design:type",Boolean)],xt.prototype,"miniplayerIsActive",void 0);_.V([_.OB("miniplayerIsActive"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],xt.prototype,"onMiniplayerActiveChange",null);_.V([_.Yx({disableElementRegistration:!0,is:"yt-hotkey-manager"})],xt);_.k(xt,"yt-hotkey-manager",void 0,{mode:_.Lt("kevlar_poly_si_batch_j081")?1:2});var Qs=function(){var b=_.g.apply(this,arguments)||this;b.loopStateEntityKey_=null;b.playlistLoopStateEntity_=null;b.isShuffleNextPlaylist=!1;b.PLAYER_EVENTS_=new Map;b.playerListenersSetup_=!1;b.videoSkipJob_=0;b.canAutoAdvance_=!1;b.playerManager_=null;b.TEST_ONLY={};return b};
_.z(Qs,_.g);_.d=Qs.prototype;_.d.ready=function(){_.H9().addProvider({provide:_.Rz,useValue:this.hostElement})};
_.d.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_)};
_.d.attached=function(){document.addEventListener("yt-navigate-start",_.Hl(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.Hl(this,this.onYtNavigateFinish_))};
_.d.detached=function(){document.removeEventListener("yt-navigate-start",_.Hl(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.Hl(this,this.onYtNavigateFinish_))};
_.d.updatePlaylistEventListeners=function(b,h){h&&!this.playerListenersSetup_?(this.playerManager_=b,this.registerPlaylistEventListeners_(b)):!h&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(b))};
_.d.setPlayer=function(b){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=b};
_.d.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.d.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.d.registerPlaylistEventListeners_=function(b){var h=this;b.getPlayerPromise().then(function(y){h.playerListenersSetup_||(h.ytPlayerListenerBehavior.listenToPlayerEvents(y,h.PLAYER_EVENTS_),h.playerListenersSetup_=!0)})};
_.d.removePlaylistEventListeners_=function(b){var h=this;b.getPlayerPromise().then(function(y){h.playerListenersSetup_&&(h.ytPlayerListenerBehavior.unlistenFromPlayerEvents(y,h.PLAYER_EVENTS_),h.playerListenersSetup_=!1)})};
_.d.setPlaylistComponent=function(b){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.Hl(this,this.onPlaylistYtNavigate_)),b&&(b.data&&this.playlistComponent.data&&b.data.playlistId==this.playlistComponent.data.playlistId?(b.loopOn=this.playlistComponent.loopOn,b.shuffleOn=this.playlistComponent.shuffleOn):(b.loopOn=!1,b.shuffleOn=!1),this.isShuffleNextPlaylist&&(b.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=b;this.playlistComponent.addEventListener("yt-navigate",
_.Hl(this,this.onPlaylistYtNavigate_))};
_.d.setAutoplayRenderer=function(b){this.autoplayData=b};
_.d.setPlaylistData=function(b){this.currentPlaylistData_=b;_.Sx(this.hostElement,"yt-playlist-data-updated");_.lR.isEmpty(b)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(b)};
_.d.setPlayerPlaybackControlData=function(b){this.playerManager_&&this.playerManager_.updatePlayerComponents(b.playlistPanelRenderer)};
_.d.getPlaylistData=function(){return this.currentPlaylistData_};
_.d.getTempData_=function(b,h){if(this.playlistComponent==null)return null;b={};this.playlistComponent.shuffleOn&&(b.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(b.loop_on=this.playlistComponent.loopOn);h&&(b.autonav="1",_.H9().resolve(_.rS),h=_.td(),h>0&&(b.lact=h),this.playerManager_&&(h=this.playerManager_.getPlayer())&&h.shouldSendVisibilityState()&&(h=h.getVisibilityState(),h!=0&&(b.vis=h)));_.r("enable_unknown_lact_fix_on_html5")&&(_.H9().resolve(_.rS),b.lact=
_.td());return b};
_.d.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.d.setLoopStateEntityKey_=function(b){var h;this.loopStateEntityKey_=((h=this.getPlaylistLoopData_(b))==null?void 0:h.playlistLoopStateEntityKey)||null};
_.d.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.d.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.d.skipVideo=function(){var b=this,h=_.r("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||h)h=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.I7(_.xP,function(){b.onPlaylistNext();b.videoSkipJob_=0},h)};
_.d.cancelVideoSkip=function(){this.videoSkipJob_&&(_.xP.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.d.isInBackground_=function(){var b=window.document.visibilityState;return!(!b||b=="visible")};
_.d.onPlaylistIndex_=function(b){this.playlistComponent&&(b=this.playlistComponent.data.contents[b].playlistPanelVideoRenderer.navigationEndpoint,_.Sx(this.hostElement,"yt-navigate",{endpoint:b,tempData:this.getTempData_(b)}))};
_.d.onPlayerStateChange_=function(b){if(b=b==0&&this.playlistComponent&&this.canAutoAdvance_)b=_.g2.getInstance(),b=!(b.autonavState_===3?b.autonavPauseReason_&&b.autonavPauseReason_.inputBoxFocus===!0:b.autonavState_===1&&b.disabledAutonavPauseReason_&&b.disabledAutonavPauseReason_.inputBoxFocus===!0);b&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.d.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.d.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.d.navigateToAutoplayWatchEndpoint_=function(b,h,y){var S=this.playlistComponent.data.currentIndex,F=this.getNumPlayableVideos_();b=="NORMAL"&&h=="autoplayVideo"&&S+1>=F&&y||!(b=this.getVideoEndpoint_(b,h))||(y=this.getTempData_(b,y),_.Sx(this.hostElement,"yt-navigate",{endpoint:b,tempData:y}))};
_.d.getNumPlayableVideos_=function(){for(var b=0,h=_.L(this.playlistComponent.data.contents||[]),y=h.next();!y.done;y=h.next())y.value.playlistPanelVideoRenderer&&(b+=1);return b};
_.d.getVideoEndpoint_=function(b,h){if(this.autoplayData&&this.autoplayData.sets)for(var y=0,S=this.autoplayData.sets.length;y<S;y++){var F=this.autoplayData.sets[y];if(F.mode==b){if(F[h])return F[h];break}}else b=new _.Gn("AutoplayData is undefined in playlist manager","Mode: "+b+" endpoint: "+h),_.vX(b)};
_.d.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.d.onPlaylistYtNavigate_=function(b){if(b.detail.endpoint){b.stopPropagation();var h=b.detail;h.tempData=this.getTempData_(b.detail.endpoint);_.Sx(this.hostElement,"yt-navigate",h)}};
_.d.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.d.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.d.playlistLoopStateEntityChanged_=function(b){var h=this,y,S,F;return _.Z(function(a){if(a.nextAddress==1){if(!b)return a.return();y=b.state==="PLAYLIST_LOOP_STATE_ONE";return h.playerManager_?a.yield(h.playerManager_.getPlayerPromise(),3):a.jumpTo(2)}a.nextAddress!=2&&(S=a.yieldResult,S.setLoopVideo(y));F=b.state==="PLAYLIST_LOOP_STATE_ALL";h.playlistComponent&&(h.playlistComponent.loopOn=F);_.g3(a)})};
_.d.getPlaylistLoopData_=function(b){var h,y;if(b=b==null?void 0:(h=b.playlistButtons)==null?void 0:(y=h.menuRenderer)==null?void 0:y.topLevelButtons)for(h=_.L(b),y=h.next();!y.done;y=h.next())if(y=y.value,y.playlistLoopButtonRenderer)return y.playlistLoopButtonRenderer};
_.d.getLoopStateCommand_=function(b){var h=this.getPlaylistData(),y;h=((y=this.getPlaylistLoopData_(h))==null?void 0:y.states)||[];var S;b=(S=_.c(h[b?1:2],_.RK7))==null?void 0:S.button;var F;return(F=_.c(b,_.OU))==null?void 0:F.command};
_.d.onPlayerLoopChange_=function(b){this.playlistLoopStateEntity_&&(b?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(b=this.getLoopStateCommand_(b))&&this.ytComponentBehavior.resolveCommand(b)};
_.d.onSleepTimerSettingsChanged_=function(b){this.canAutoAdvance_=b!=="End of video"};
Qs.prototype.onPlaylistLoopStateEntityChanged=Qs.prototype.onPlaylistLoopStateEntityChanged;_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],Qs.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.UA.YtPlayerListenerBehavior),_.f("design:type",_.pf)],Qs.prototype,"ytPlayerListenerBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],Qs.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Qs.prototype,"loopStateEntityKey_",void 0);
_.V([_.C({selectorArgs:["loopStateEntityKey_"],selector:_.PP.playlistLoopStateEntitySelector}),_.f("design:type",Object)],Qs.prototype,"playlistLoopStateEntity_",void 0);_.V([_.OB("playlistLoopStateEntity_"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Qs.prototype,"onPlaylistLoopStateEntityChanged",null);_.V([_.Yx({disableElementRegistration:!0,is:"yt-playlist-manager"})],Qs);_.k(Qs,"yt-playlist-manager",void 0,{mode:_.Lt("kevlar_poly_si_batch_j081")?1:2});var jmx,$Zd=function(){if(jmx!==void 0)return jmx;var b=document.createElement("template");_.D(b,"\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");b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return jmx=b};var m9=function(){var b=_.g.apply(this,arguments)||this;b.lastCallback=null;b.getAccountLinkPromises={};b.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);b.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return b};
_.z(m9,_.g);_.d=m9.prototype;_.d.getLocation=function(){return window.location.href};
_.d.getCompletionUrl=function(){return _.xj(this.getLocation())};
_.d.containsRedirectState=function(b){return(b=_.pW(_.hiI(b)))?(new URLSearchParams(b)).get("redirect_state")!==null:!1};
_.d.createGalConfig=function(b,h){var y=new zIA;b=y=h?this.getPopupOrRedirectSetting(y,_.QC("LINK_API_KEY"),_.QC("LINK_API_KEY_REDIRECT"),b):Deq(y,_.QC("LINK_API_KEY"));b.authUser=_.QC("SESSION_INDEX")||0;b.supportedFlows=new Set([4]);return b.build()};
_.d.getPopupOrRedirectSetting=function(b,h,y,S){this.isGalInteractionPopupMode(S)?(b.interactionMode=0,b=Deq(b,h)):(b.interactionMode=1,h=this.getCompletionUrl(),b.completionUrl=h,b=Deq(b,y));return b};
_.d.isGalInteractionPopupMode=function(b){if(this.redirectModeProviderAllowlist.has(b))switch(b){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.d.getStatusEntityKeyForProviderId=function(b){return _.oU(b+":all","accountLinkStatusEntity")};
_.d.findNestedPropValue=function(b,h){var y=!1,S=null;JSON.stringify(b,function(F,a){y||F!==h||(y=!0,S=a);return y?null:a});
return S};
_.d.findAccountLinkButtonViewModel=function(b,h){var y=null,S=!1;JSON.stringify(b,function(F,a){S||a.accountLinkStatusEntityKey!==h||a.accountLinkStatusSecondaryEntityKey||(S=!0,y=a);return S?null:a});
return y};
_.d.executeLinkingSuccessOrFailureCommands=function(b,h,y){var S=null,F;(h==null?0:(F=h.url)==null?0:F.includes("account_sharing"))?S=h==null?void 0:h.response:S=h==null?void 0:h.response;(h=this.findAccountLinkButtonViewModel(S,b))?(b=y?this.findNestedPropValue(h,"onSuccessCommand"):this.findNestedPropValue(h,"onFailureCommand"))?_.PT([b],this.hostElement):_.yb(Error("El")):_.yb(Error("Fl`"+b))};
_.d.handleInitializeRequest=function(b,h){var y=this,S=OwA(this.createGalConfig(b,!0));this.containsRedirectState(this.getLocation())?MDf(b,S.config,S.galService).then(function(F){var a=y.getStatusEntityKeyForProviderId(b);if(F.statusCode===1)h&&y.executeLinkingSuccessOrFailureCommands(a,h,!0),F=y.getLocation().indexOf("#"),F!==-1&&window.history.pushState(null,"",y.getLocation().substring(0,F));else return h&&y.executeLinkingSuccessOrFailureCommands(a,h,!1),Promise.reject(Error(F.statusMessage))}).catch(function(F){_.vX(F);
_.qi("gamingAccountLinkStatusChanged",{serviceId:b,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(F)}):this.getAccountLinkPromises[b]=S.startLinkingSession({serviceId:b})};
_.d.handleAccountLinkCommand=function(b){_.c(b,G_A)&&this.handleLinkRequest(_.c(b,G_A))};
_.d.handleLinkRequest=function(b){var h=this,y=b.thirdPartyId;if(y)if(this.isGalInteractionPopupMode(y)){var S=function(){h.closeAndFire("ytd-gaming-account-link-setting-renderer",b.onFailureCommand)},F=function(){h.closeAndFire("ytd-gaming-account-link-setting-renderer",b.onSuccessCommand)};
this.lastCallback=F;this.getAccountLinkPromises[y].then(function(a){jkx(a).then(function(P){P.statusCode===1?F():S()})}).catch(function(){S()})}else this.getAccountLinkPromises[y].then(function(a){jkx(a).then(function(P){if(P.statusCode!==1)return Promise.reject(Error(P.statusMessage))})}).catch(function(a){_.vX(a);
_.qi("gamingAccountLinkStatusChanged",{serviceId:y,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(a)})};
_.d.closeAndFire=function(b,h){_.F8(this.hostElement,"yt-close-popup-action",[b]);h&&_.PT([h],this.hostElement)};
_.d.handleAccountUnlinkCommand=function(b){_.c(b,k_X)&&this.handleUnlinkRequest(_.c(b,k_X))};
_.d.handleUnlinkRequest=function(b){var h=this,y=b.thirdPartyId;if(y){var S=function(){h.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",b.onFailureCommand)},F=function(){h.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",b.onSuccessCommand)};
this.lastCallback=F;var a=OwA(this.createGalConfig(y,!1));this.unlinkUserGal(a,y).then(function(P){P.statusCode===1?F():S()}).catch(function(){S()})}};
_.d.unlinkUserGal=function(b,h){return b.deleteLink(h)};
_.d.handleLogAccountLinkingEventCommand=function(b){_.r("enable_gel_log_commands")&&_.c(b,V9X)&&(b=_.c(b,V9X).event)&&_.qi("gamingAccountLinkStatusChanged",b)};
_.tm.Object.defineProperties(m9,{template:{configurable:!0,enumerable:!0,get:function(){return $Zd()}}});
_.V([_.B(_.xN.YtOpenPopupBehavior),_.f("design:type",Object)],m9.prototype,"ytOpenPopupBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],m9.prototype,"ytActionHandlerBehavior",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-third-party-manager"})],m9);_.k(m9,"ytd-third-party-manager",function(){return $Zd()},{mode:_.Lt("kevlar_poly_si_batch_j081")?1:2});var LGE,P6Y=function(){if(LGE!==void 0)return LGE;var b=document.createElement("template");_.D(b,"\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");b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return LGE=b};var vh=function(){var b=_.g.apply(this,arguments)||this;b.currentPage=void 0;b.renderLoadingStateJobId=0;b.updatePageDataJobId=0;b.pageDisposeJobsets=new WeakMap;b.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"};b.shouldApplyLockupToWatchTransition=_.r("web_thumbnail_to_watch_transition");b.shouldApplySlideTransition=_.rH("web_page_transition_type")==="slide"||_.r("enable_plj_landing_page");b.shouldApplyLearningJourneyTransition=_.r("enable_plj_landing_page");b.TEST_ONLY=void 0;return b};
_.z(vh,_.g);_.d=vh.prototype;_.d.ready=function(){var b=_.H9();b.addProvider({provide:_.bM,useValue:this});b.addProvider({provide:_.aLY,useValue:this})};
_.d.created=function(){this.pagePool=new JNa;this.contextSwitcher=new lxf};
_.d.attached=function(){_.Sx(this.hostElement,"attached");var b=_.H9().resolve(_.XS(_.zM));b&&(this.contextSwitcher.JSC$20386_networkService_=b);this.viewTransitionManager=_.H9().resolve(_.$O)};
_.d.getPageOffset=function(b){return b.getScrollTop()};
_.d.setPageOffset=function(b,h){try{b.setScrollTop(h)}catch(y){}};
_.d.setPageOffsetForNavigation=function(b,h){_.Sx(this.hostElement,"yt-navigate-set-page-offset",{page:b,offset:h===void 0?0:h})};
_.d.pauseActiveContext=function(){var b=this.contextSwitcher;b.activeContext_&&b.activeContext_.pause()};
_.d.getModuleNameForType=function(b){return b==="watch"?_.r("kevlar_watch_fixie")?"watchFixie":_.r("kevlar_watch_grid")?"watchGrid":"watchFlexy":b==="shorts"||b==="search"?b:"browse"};
_.d.attachPage=function(b){var h,y=!_.r("pc_is_attached_ks")&&(b==null?void 0:(h=b.polymerController)==null?void 0:h.isAttached);if(!b.isAttached&&!y)try{_.$x(this.hostElement).appendChild(b)}catch(F){var S;_.vX(new _.Gn("Error attaching page element for component",{origin:(S=this.currentPage)==null?void 0:S.is,component:b.is}))}};
_.d.setActivePage=function(b,h){var y=this,S=!1,F=function(){var a=y.isOnWatch(),P=y.currentPage;if(b)if(b!==y.currentPage){P&&(P.hidden=!0,P.active=!1,P.removeAttribute("role"));y.currentPage=b;var K,n=h!=null?h:_.uk((K=y.data)==null?void 0:K.endpoint);P&&_.Sx(y.hostElement,"yt-page-type-changed",{oldPageType:P.is,newPageType:b.is,newPageSubtype:n});_.mc().dispatch(_.$8({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:b.is}));_.mc().dispatch(_.$8({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:n||""}));
b.hidden=!1;y.attachPage(b);b.active=!0;b.setAttribute("role","main");P&&y.setPageOffsetForNavigation(b,0);_.r("kevlar_remove_page_dom_on_switch")&&!a&&P&&_.$x(y.hostElement).removeChild(P)}else S=!0;else y.handleMissingDestinationPage(P)};
this.shouldRunBrowseTransition(this.currentPage,b)?HpX(this.viewTransitionManager,F):this.shouldRunLearningJourneyTransition(this.currentPage,b)?N$f(this.viewTransitionManager,F):F();return S};
_.d.handleMissingDestinationPage=function(b){if(this.isColdLoadForUnknownPage(b))_.vX(new _.Gn("Cold load for unknown page"));else{var h;b=new _.Gn("Unable to set active page",b?b.is:"unknown origin",(h=this.data)==null?void 0:h.endpoint);_.QT(b)}};
_.d.isColdLoadForUnknownPage=function(b){return!b&&N6(this.data)==="unknown"};
_.d.shouldRunBrowseTransition=function(b,h){return this.shouldApplySlideTransition&&(b==null?void 0:b.is)==="ytd-browse"&&(h==null?void 0:h.is)==="ytd-browse"&&b!==h};
_.d.shouldRunLearningJourneyTransition=function(b,h){return this.shouldApplyLearningJourneyTransition&&(b==null?void 0:b.is)==="ytd-browse"&&((h==null?void 0:h.is)==="ytd-watch-learning-journey"||(h==null?void 0:h.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.d.shouldRunWatchNextLoadedTransition=function(b,h){return this.viewTransitionManager&&b.is==="ytd-watch-flexy"&&h};
_.d.updatePageData=function(b){var h=this,y=this.data;this.updatePageDataJobId&&_.xP.cancelJob(this.updatePageDataJobId);this.data=b;return new _.Uu(function(S){var F=function(){b.filler?h.performDataUpdate(b,y):zHX(function(){h.performDataUpdate(b,y)});
var n=_.Dh();_.Iz(n,"cr")||n.processSignal("cr");S()},a=function(){b&&(b.page==="watch"||_.r("web_shorts_delay_shorts_page_update")&&b.page==="shorts")?h.updatePageDataJobId=_.I7(_.xP,F):F()};
if(_.r("kevlar_enable_mss_page_modules_client")&&b){var P=_.H9().resolve(_.we),K=h.getModuleNameForType(b.page);(P=neY(P,[K]))?P.then(a):a()}else a()})};
_.d.isDownloadsPage=function(b){var h,y;return(b==null?void 0:(h=b.endpoint)==null?void 0:(y=h.browseEndpoint)==null?void 0:y.browseId)==="FEdownloads"};
_.d.setPlayerSyncInterval=function(b){var h;return _.Z(function(y){if(y.nextAddress==1)return y.yield(_.H9().resolve(_.ja),2);h=y.yieldResult;h.setUpPositionSyncInterval(b);_.g3(y)})};
_.d.performDataUpdate=function(b,h){_.r("kevlar_early_popup_close")||_.F8(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var y=!b.filler;y&&(_.pI("lps"),_.r("config_age_report_killswitch")||J4A());var S=N6(b),F,a=!1;if(_.r("kevlar_remove_page_dom_on_switch")){var P=h&&N6(h);S===P&&(F=this.getCurrentPage())}F||(F=kt(this.pagePool,S));y&&B42(this.pagePool.elementPoolPopulator,S);y&&!this.renderLoadingStateJobId&&(a=this.setActivePage(F));if(F){P=S==="watch";var K=
S==="shorts",n=S==="learning_journey_watch";_.r("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(F);if(P||K||n)F.playerData=b.playerResponse;if(K){b.reelWatchSequenceResponse?F.reelWatchSequenceResponse=b.reelWatchSequenceResponse:!F.cachedReelWatchSequenceResponse||F.reelWatchSequenceResponse||_.r("web_enable_delay_shorts_sequence_call_new")||(F.reelWatchSequenceResponse=F.cachedReelWatchSequenceResponse);b.reelWatchSequenceResponse&&(h==null?void 0:h.page)!=="shorts"&&
(F.cachedReelWatchSequenceResponse=b.reelWatchSequenceResponse);F.currentEndpoint=b.endpoint;var X;F.isPreviousPageShorts=!!(h==null?0:(X=h.endpoint)==null?0:X.reelWatchEndpoint)}X=this.isDownloadsPage(b);var u=this.isDownloadsPage(h);X&&!u?this.setPlayerSyncInterval(6E5):!X&&u&&this.setPlayerSyncInterval();_.r("block_all_player_prefetch_requests")||this.preparePrefetchRequest(b,F,y,P,K,n);tyF(_.H9().resolve(_.Vp),h,b);if(_.r("enable_ai_companion")){var O;(O=_.H9().resolve(_.XS(_.HD)))==null||_.C_E(O,
this.getPersistentPanelSurface(S))}_.Yd(_.H9().resolve(_.rS));_.r("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(F);y?(y=typeof F.loadPage,y==="function"?(F.pageContext=qCA(this.contextSwitcher,F,F.data!==b.response),y=function(){F.loadPage(b.response)},this.shouldApplySlideTransition&&F.is==="ytd-browse"&&a&&(S==="learning"||this.isDifferentBrowseId(b==null?void 0:b.endpoint,h==null?void 0:h.endpoint))?HpX(this.viewTransitionManager,y):this.shouldRunWatchNextLoadedTransition(F,
a)?OpA(this.viewTransitionManager,y):y()):_.mm(new _.Gn("b/38014653 ",[S,
F.is,F.nodeName,y,F.isAttached,h&&N6(h),this.hostElement.children.length])),_.pI("pdl")):(F.hidden=!0,b.response.filler=!0,F.data=b.response,this.attachPage(F));_.Sx(this.hostElement,"yt-page-data-updated",{pageType:S})}_.VT(_.xP,function(){_.r("logging_avoid_blocking_during_navigation")&&_.gEj().transition("none");var N=P2A(),t=F;if(b){var R=G4Y(b),I=k4F(b),U;a:{if(b.playerResponse){var p=b.playerResponse,e;if((U=p.auxiliaryUi)==null?0:(e=U.messageRenderers)==null?0:e.upsellDialogRenderer){U=p.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(b.response&&(U=b.response,(p=U.overlay)==null?0:p.upsellDialogRenderer)){U=U.overlay.upsellDialogRenderer;break a}U=void 0}var E;var Y;e=(E=b.playerResponse)==null?void 0:(Y=E.auxiliaryUi)==null?void 0:Y.messageRenderers;E=(e==null?void 0:e.enforcementMessageViewModel)||(e==null?void 0:e.bkaEnforcementMessageViewModel);E=(E==null?void 0:E.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?E:void 0;var w;a:{if(b.response&&(Y=b.response,(w=Y.overlay)==null?0:w.commandWrapperPromoRenderer)){w=
Y.overlay.commandWrapperPromoRenderer;break a}w=void 0}LuE(N,R,I,U,E,w,t)}})};
_.d.preparePrefetchRequest=function(b,h,y,S,F,a){var P,K,n,X,u,O,N,t,R,I,U,p,e,E,Y;return _.Z(function(w){if(w.nextAddress==1)return!y||!(S||F||a)||_.r("kevlar_disable_background_prefetch")&&_.bN(_.fGM)()===0?w.return():(P=_.hB(h))?w.yield(P.getPlayerPromise(),2):w.return();K=w.yieldResult;n=_.H9().resolve(_.XS(_.zM));if(!n)return w.return();if(F)return X=_.Fo(_.xX),Ccx(X,(u=b.endpoint)==null?void 0:u.reelWatchEndpoint,h.reelWatchSequenceResponse,K,n),w.return();t=(O=b.response)==null?void 0:(N=O.responseContext)==
null?void 0:N.webResponseContextExtensionData;if(!t)return w.return();e=(R=b.response)==null?void 0:(I=R.contents)==null?void 0:(U=I.twoColumnWatchNextResults)==null?void 0:(p=U.autoplay)==null?void 0:p.autoplay;E=_.H9().resolve(_.Rz);Y=_.Fo(_.xX);gRq(Y,t,K,n,E,e);_.g3(w)})};
_.d.movePlayerToWatch=function(b){var h=this,y,S;return _.Z(function(F){y=kt(h.pagePool,"watch");S=y.getPlayerContainer();b.appendTo(S);_.g3(F)})};
_.d.movePlayerToShorts=function(b){var h=this,y,S,F;return _.Z(function(a){y=kt(h.pagePool,"shorts");S=y.getPlayerContainer();(F=b)==null||F.appendTo(S,void 0,!0);_.g3(a)})};
_.d.getPlayerFromWatch=function(){var b=kt(this.pagePool,"watch");return _.hB(b)};
_.d.getPlayerFromShorts=function(){var b=kt(this.pagePool,"shorts");return _.hB(b)};
_.d.startLoadingWatch=function(){var b=this,h=kt(this.pagePool,"watch");this.renderLoadingStateJobId?(_.xP.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.r("web_watch_transition_enable_start_loading_watch_callsite")?u3a(this.viewTransitionManager,function(){b.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(h,"watch");
if(_.r("enable_ai_companion")){var y;(y=_.H9().resolve(_.XS(_.HD)))==null||_.C_E(y,this.getPersistentPanelSurface("watch"))}};
_.d.startLoadingShorts=function(){var b=kt(this.pagePool,"shorts");this.setActivePage(b,"shorts")};
_.d.startLoadingLearningJourney=function(){var b=kt(this.pagePool,"learning_journey_watch");this.setActivePage(b,"learning_journey_watch")};
_.d.getCurrentPage=function(){return this.currentPage};
_.d.getDestinationPageType=function(){return this.destinationPageType};
_.d.getCurrentData=function(){return this.data};
_.d.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.d.isOnShorts=function(){var b;return((b=this.currentPage)==null?void 0:b.is)==="ytd-shorts"};
_.d.isWatchPage=function(b){return!!b&&(b.is==="ytd-watch-flexy"||b.is==="ytd-watch-fixie"||b.is==="ytd-watch-grid")};
_.d.preparePage=function(b,h){var y=this,S=function(){var P=y.pagePool.preparePage(b,y.currentPage,h);P&&y.attachPage(P)},F=function(P){_.bh(P,h);
_.vX(P)};
if(_.r("kevlar_enable_mss_page_modules_client")){var a=this.getModuleNameForType(b);if(a=neY(_.H9().resolve(_.we),[a])){a.then(S.bind(this)).catch(F.bind(this));return}}try{S()}catch(P){F(P)}};
_.d.lazyPrepareCriticalPages=function(b,h){b=_.uk(h)||b;_.r("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(b).then(this.maybePrepareWatchPage.bind(this,b)):this.maybePrepareWatchPage(b)};
_.d.maybePrepareWatchPage=function(b){b==="watch"||b==="learning_journey_watch"&&_.r("web_watch_learning_journey_disable_lazy_pages")||_.VT(_.xP,this.preparePage.bind(this,"watch"))};
_.d.downloadPageModules=function(b){b=this.getModuleNameForType(b);var h=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);h.delete(b);var y=_.H9().resolve(_.we);y.JSC$19056_loadModules(b);return y.JSC$19056_loadModules.apply(y,_.f$(h))};
_.d.renderPageLoadingState=function(b,h){this.preparePage(b,h);var y=kt(this.pagePool,b);y.loadingData&&(y.loadingData.endpoint=h);y.loading=!0;this.setActivePage(y,b);b!=="watch"&&b!=="learning_journey_watch"||_.Sx(this.hostElement,"yt-guide-close")};
_.d.prepareForNavigation=function(b,h){var y=this;if(this.currentPage&&this.data){var S=_.uk(h)||b;this.destinationPageType=S;N6(this.data)==S&&_.Sx(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((b==="watch"||b==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.xP.cancelJob(this.renderLoadingStateJobId);_.H9().resolve(_.Vp).deactivate(h);_.N$(_.xP,function(){var a=y.viewTransitionManager,P=y.currentPage;
if(a.isLockupToWatchTransitionEnabled&&a.isLockupThumbnailRegistrationEnabled&&P)if(a.registeredLockupThumbnail)a.lockupThumbnailRegisteredFromWatchEndpoint&&_.vX(new _.Gn("Lockup thumbnail already registered from watch endpoint."));else{a:{var K=_.c(h,_.wO);if(K==null?0:K.videoId){var n="yt-lockup-view-model ."+_.C1F(K.videoId)+" yt-thumbnail-view-model";P=P.querySelectorAll(n);if(P.length===1){K=P[0];break a}P.length>1?_.vX(new _.Gn("Multiple LockupViewModel thumbnails found for videoId: "+K.videoId+
". Selector: "+n)):_.r("web_thumbnail_to_watch_transition_debug")&&_.vX(new _.Gn("No LockupViewModel thumbnail found for videoId: "+K.videoId+". Selector: "+n))}K=void 0}K&&(a.registeredLockupThumbnail=K,a.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.Nwf(a,K))}});
var F=this.data;this.renderLoadingStateJobId=_.N$(_.xP,function(){u3a(y.viewTransitionManager,function(){if(y.data!=F){var a=kt(y.pagePool,b);y.setActivePage(a)}else y.renderPageLoadingState(b,h);y.renderLoadingStateJobId=0})},150)}};
_.d.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var b=new _.JJ(1);this.currentPage.pageDisposeJobs.forEach(function(h){_.eS(b,h)});
this.pageDisposeJobsets.set(this.currentPage,b)}};
_.d.flushPageDisposeJobset=function(b){var h=this.pageDisposeJobsets.get(b);h&&(h.flushJobs(),this.pageDisposeJobsets.delete(b))};
_.d.onYtStopOldPlayer=function(b,h){h=h===void 0?!1:h;var y,S=_.c9("kevlar_new_stop_old_player_logic_pages");if(_.r("kevlar_check_current_page_on_stop_old_player")&&(S.length===0||this.currentPage&&S.includes(this.currentPage.is)))if(this.data&&(y=N6(this.data)),N6(b)===y&&this.currentPage&&N6(this.currentPage.data)!==y)var F=_.hB(this.currentPage);else y=N6(this.data),F=kt(this.pagePool,y),F=_.hB(F);else this.data&&(y=N6(this.data),F=kt(this.pagePool,y),F=_.hB(F));if(F){S=N6(b);var a=kt(this.pagePool,
S);a=_.hB(a);if(F==a)h&&!_.r("kevlar_disable_preemptive_player_reset")&&F.resetForNewPlayback();else if(h=y==="watch"&&S!=="watch",!h||S==="shorts"||_.Frw()&&!RkN(this.data,b))b=_.H9().resolve(_.Vp),h&&b.isMiniplayerActive()&&b.pipController.getWindow()||F.stop()}};
_.d.isDifferentBrowseId=function(b,h){b=_.c(b,_.O0);h=_.c(h,_.O0);return(b==null?void 0:b.browseId)!==(h==null?void 0:h.browseId)};
_.d.getPersistentPanelSurface=function(b){switch(b){case "watch":return"WATCH";default:return"APP"}};
_.tm.Object.defineProperties(vh,{template:{configurable:!0,enumerable:!0,get:function(){return P6Y()}}});
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],vh.prototype,"ytActionHandlerBehavior",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-page-manager"})],vh);_.k(vh,"ytd-page-manager",function(){return P6Y()},{mode:_.Lt("kevlar_poly_si_batch_j081")?1:2});var KGA;var b8=function(){var b=_.g.apply(this,arguments)||this;b.useListItemStyles=_.r("web_list_item_style_for_menu_items");b.systemIcons=_.r("kevlar_system_icons");return b};
_.z(b8,_.g);_.d=b8.prototype;_.d.ready=function(){this.hostElement.addEventListener("tap",_.Hl(this,this.onEndpointTapExtra))};
_.d.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.d.onFocus=function(){var b;(b=_.$x(this.hostElement).querySelector("tp-yt-paper-item"))==null||b.focus()};
_.d.onEndpointTapExtra=function(b){_.Sx(this.hostElement,"iron-activate");var h=this.data.navigationEndpoint;h&&_.c(h,_.Z_q)&&(b.stopPropagation(),_.jx(this.hostElement,[h],this.hostElement))};
_.d.computeIcon=function(b){return b&&b.iconType?_.o_(b.iconType):""};
_.d.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.d.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.d.forceUpdateStylesOnLegacyBrowsers=function(){_.r("kevlar_legacy_browsers")&&_.nZ(this.hostElement)};
b8.prototype.forceUpdateStylesOnLegacyBrowsers=b8.prototype.forceUpdateStylesOnLegacyBrowsers;b8.prototype.onFocus=b8.prototype.onFocus;_.V([_.B(_.Y9),_.f("design:type",Object)],b8.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.B(_.Ax2.YtConditionalRendererBehavior),_.f("design:type",Object)],b8.prototype,"ytConditionalRendererBehavior",void 0);_.V([_.B(_.Q5.YtEndpointBehavior),_.f("design:type",Object)],b8.prototype,"ytEndpointBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],b8.prototype,"data",void 0);_.V([_.C({computed:"computeIcon(data.icon)",value:""}),_.f("design:type",String)],b8.prototype,"icon",void 0);_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],b8.prototype,"useIcons",void 0);_.V([_.C({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.f("design:type",Boolean)],b8.prototype,"hasSeparator",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],b8.prototype,"useListItemStyles",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],b8.prototype,"systemIcons",void 0);_.V([_.u3("focus"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],b8.prototype,"onFocus",null);_.V([_.OB("useIcons","hasSeparator"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],b8.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.k(b8,"ytd-menu-navigation-item-renderer",function(){if(KGA===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);KGA=b}b=KGA;return b},{mode:1});var ZCf;var oCF=_.mk(_.Mt("DOWNLOAD",{},"Download")),MNA=_.mk(_.Mt("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),nCf=_.mk(_.Mt("RETRY",{},"Retry")),XWf=_.mk(_.Mt("PAUSE_DOWNLOADING",{},"Pause downloading")),HCF=_.mk(_.Mt("RESUME_DOWNLOAD",{},"Resume download")),hc=function(){var b=_.g.apply(this,arguments)||this;b.primaryText=oCF;b.primaryIconType="OFFLINE_DOWNLOAD";b.hasSecondaryContent=!1;b.hasSeparator=!1;b.transferState="TRANSFER_STATE_UNKNOWN";b.isVideoDeletedByUser=!1;b.isHidden=!1;b.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return b};
_.z(hc,_.g);_.d=hc.prototype;_.d.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.d.onFocus=function(){this.primaryEntry.focus()};
_.d.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.d.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.d.getRemoveAction=function(){return"ACTION_REMOVE"};
_.d.sendOfflineAction=function(b){var h=this.data.serviceEndpoint;if(h){var y=_.c(h,_.HC);y&&b&&(y.action=b);this.ytComponentBehavior.resolveCommand(h)}};
_.d.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=oCF,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=oCF;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=nCf;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=MNA;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=HCF;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=MNA;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
XWf;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=MNA;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=MNA;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=oCF,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.d.showHideButton=function(){var b;this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||((b=this.playerStateEntity)==null?void 0:b.adsState)==="ADS_STATE_PLAYING"};
_.d.isSecondaryEntryHidden=function(b,h){return b?!0:!h};
_.d.computeHasSeparator=function(){var b;return!((b=this.data)==null||!b.hasSeparator)};
_.d.computePlayerStateEntityKey=function(b){return b};
hc.prototype.showHideButton=hc.prototype.showHideButton;hc.prototype.onTransferStateChange=hc.prototype.onTransferStateChange;hc.prototype.onFocus=hc.prototype.onFocus;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],hc.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],hc.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],hc.prototype,"ytComponentBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],hc.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],hc.prototype,"primaryText",void 0);_.V([_.C(),_.f("design:type",String)],hc.prototype,"primaryIconType",void 0);_.V([_.C(),_.f("design:type",String)],hc.prototype,"primaryAction",void 0);_.V([_.C(),_.f("design:type",Object)],hc.prototype,"secondaryText",void 0);_.V([_.C(),_.f("design:type",String)],hc.prototype,"secondaryIconType",void 0);
_.V([_.C(),_.f("design:type",String)],hc.prototype,"secondaryAction",void 0);_.V([_.C(),_.f("design:type",Object)],hc.prototype,"hasSecondaryContent",void 0);_.V([_.C({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.f("design:type",Object)],hc.prototype,"hasSeparator",void 0);_.V([_.C({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.f("design:type",String)],hc.prototype,"playerStateEntityKey",void 0);
_.V([_.C({selector:_.K9,selectorArgs:["playerStateEntityKey"]}),_.f("design:type",Object)],hc.prototype,"playerStateEntity",void 0);_.V([_.C({selector:_.Y8,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.f("design:type",String)],hc.prototype,"transferState",void 0);_.V([_.C({selector:_.d1U,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.f("design:type",Object)],hc.prototype,"isVideoDeletedByUser",void 0);
_.V([_.C(),_.f("design:type",Object)],hc.prototype,"isHidden",void 0);_.V([_.C({selector:_.vN4,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.f("design:type",Object)],hc.prototype,"offlineabilityState",void 0);_.V([_.to("#primary-entry"),_.f("design:type",Object)],hc.prototype,"primaryEntry",void 0);_.V([_.u3("focus"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],hc.prototype,"onFocus",null);
_.V([_.zj("transferState","isVideoDeletedByUser"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],hc.prototype,"onTransferStateChange",null);_.V([_.zj("offlineabilityState","playerStateEntity"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],hc.prototype,"showHideButton",null);
_.k(hc,"ytd-menu-service-item-download-renderer",function(){if(ZCf===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);ZCf=b}b=ZCf;return b},{mode:1});var u7A;var y6=function(){var b=_.g.apply(this,arguments)||this;b.useIcons=!1;b.systemIcons=_.r("kevlar_system_icons");b.useListItemStyles=_.r("web_list_item_style_for_menu_items");return b};
_.z(y6,_.g);_.d=y6.prototype;_.d.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.d.onFocus=function(){var b;(b=_.$x(this.hostElement).querySelector("tp-yt-paper-item"))==null||b.focus()};
_.d.onTap=function(){_.aw(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var b=this.data.serviceEndpoint,h=this.data.command;if(b){var y,S=(y=this.data)==null?void 0:y.trackingParams;y=!!_.c(b,_.Pgo);S&&y&&_.hP().dispatch(_.$8({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:S}}));this.ytComponentBehavior.resolveCommand(b)||_.H9().resolve(_.OM).resolveCommand(b,{form:{element:this.hostElement}})}h&&(this.ytComponentBehavior.resolveCommand(h)||_.jx(this.hostElement,
[h],this.hostElement))};
_.d.computeIcon=function(b){return b&&b.iconType?_.o_(b.iconType):""};
_.d.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.d.computeHasSeparator=function(){var b;return!((b=this.data)==null||!b.hasSeparator)};
_.d.forceUpdateStylesOnLegacyBrowsers=function(){_.r("kevlar_legacy_browsers")&&_.nZ(this.hostElement)};
_.d.computeIsSelected=function(){var b;return!((b=this.data)==null||!b.isSelected)};
y6.prototype.forceUpdateStylesOnLegacyBrowsers=y6.prototype.forceUpdateStylesOnLegacyBrowsers;y6.prototype.onTap=y6.prototype.onTap;y6.prototype.onFocus=y6.prototype.onFocus;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],y6.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Y9),_.f("design:type",Object)],y6.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],y6.prototype,"ytComponentBehavior",void 0);
_.V([_.B(_.Ax2.YtConditionalRendererBehavior),_.f("design:type",Object)],y6.prototype,"ytConditionalRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],y6.prototype,"data",void 0);_.V([_.C({computed:"computeIcon(data.icon)",value:""}),_.f("design:type",String)],y6.prototype,"icon",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],y6.prototype,"useIcons",void 0);
_.V([_.C({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.f("design:type",Boolean)],y6.prototype,"hasSeparator",void 0);_.V([_.C({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.f("design:type",Boolean)],y6.prototype,"isSelected",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],y6.prototype,"systemIcons",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],y6.prototype,"useListItemStyles",void 0);
_.V([_.u3("focus"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],y6.prototype,"onFocus",null);_.V([_.u3("tap"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],y6.prototype,"onTap",null);_.V([_.OB("useIcons","hasSeparator"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],y6.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.k(y6,"ytd-menu-service-item-renderer",function(){if(u7A===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);u7A=b}b=u7A;return b},{mode:2});var OCd;var Sf=function(){return _.g.apply(this,arguments)||this};
_.z(Sf,_.g);_.d=Sf.prototype;_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.onDataChanged=function(){var b=this;_.Ob(this,function(){b.postbox.openDialog();b.focus();_.Sx(b.hostElement,"yt-refit")})};
_.d.focus=function(){this.postbox.focus()};
_.d.closePopup=function(){_.F8(this.hostElement,"yt-close-popup-action")};
_.d.onYtCommentboxDismiss=function(){this.closePopup()};
Sf.prototype.onYtCommentboxDismiss=Sf.prototype.onYtCommentboxDismiss;Sf.prototype.onDataChanged=Sf.prototype.onDataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Sf.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Sf.prototype,"data",void 0);_.V([_.C({value:function(){return _.Mt("SBOX_INAPPROPRIATE_CANCEL")}}),
_.f("design:type",String)],Sf.prototype,"closeButtonAriaLabel",void 0);_.V([_.to("#postbox"),_.f("design:type",Object)],Sf.prototype,"postbox",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Sf.prototype,"onDataChanged",null);_.V([_.u3("yt-commentbox-dismiss"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Sf.prototype,"onYtCommentboxDismiss",null);
_.V([_.Yx({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],Sf);
_.k(Sf,"ytd-backstage-post-dialog-popup-renderer",function(){if(OCd!==void 0)return OCd;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return OCd=b},{mode:1});var N0Y;var FP=function(){var b=_.g.apply(this,arguments)||this;b.modernModal=!0;return b};
_.z(FP,_.g);FP.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
FP.prototype.computeShouldHideOldButtons=function(){var b;return!((b=this.data)==null?0:b.button)};
_.tm.Object.defineProperties(FP.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var b,h;return(b=this.data)==null?void 0:(h=b.button)==null?void 0:h.buttonRenderer}}});
_.V([_.C(),_.f("design:type",Object)],FP.prototype,"data",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],FP.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.PQ.YtEventForwardingBehavior),_.f("design:type",Object)],FP.prototype,"ytEventForwardingBehavior",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],FP.prototype,"modernModal",void 0);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],FP.prototype,"buttonRendererData",null);
_.V([_.Yx({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],FP);
_.k(FP,"ytd-modal-with-title-and-button-renderer",function(){if(N0Y!==void 0)return N0Y;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return N0Y=b},{mode:1});var tNf;var aj=function(){return _.g.apply(this,arguments)||this};
_.z(aj,_.g);aj.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ut("page-changed",this.page))};
aj.prototype.pageChangedForBinding=aj.prototype.pageChangedForBinding;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],aj.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],aj.prototype,"data",void 0);_.V([_.C(),_.f("design:type",String)],aj.prototype,"page",void 0);_.V([_.OB("page"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],aj.prototype,"pageChangedForBinding",null);
_.V([_.Yx({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],aj);
_.k(aj,"ytd-account-item-section-header-renderer",function(){if(tNf!==void 0)return tNf;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return tNf=b},{mode:1});var ruA;var dK=function(){return _.g.apply(this,arguments)||this};
_.z(dK,_.g);dK.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"}}}};
dK.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],dK.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],dK.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.p1),_.f("design:type",Object)],dK.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],dK.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!1}),_.f("design:type",Function)],dK.prototype,"onAccountItemTap",void 0);
_.V([_.Yx({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],dK);
_.k(dK,"ytd-account-item-section-renderer",function(){if(ruA!==void 0)return ruA;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return ruA=b},{mode:1});var cua;var RFd;var zFX=function(){return _.g.apply(this,arguments)||this};
_.z(zFX,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],zFX.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],zFX.prototype,"data",void 0);_.V([_.Yx({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],zFX);
_.k(zFX,"ytd-accounts-dialog-header-renderer",function(){if(RFd!==void 0)return RFd;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return RFd=b},{mode:1});var DZP;var jf=function(){return _.g.apply(this,arguments)||this};
_.z(jf,_.g);jf.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],jf.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],jf.prototype,"data",void 0);_.V([_.Yx({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],jf);
_.k(jf,"ytd-google-account-header-renderer",function(){if(DZP!==void 0)return DZP;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return DZP=b},{mode:1});var $h=function(){return _.g.apply(this,arguments)||this};
_.z($h,_.g);$h.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"}}}};
$h.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ut("page-changed",this.page))};
$h.prototype.pageChangedForBinding=$h.prototype.pageChangedForBinding;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],$h.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],$h.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],$h.prototype,"data",void 0);_.V([_.C(),_.f("design:type",String)],$h.prototype,"page",void 0);
_.V([_.OB("page"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],$h.prototype,"pageChangedForBinding",null);_.V([_.Yx({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],$h);
_.$S()($h,"ytd-account-section-list-renderer",function(){if(cua===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);cua=b}b=cua;return b},{allowedProps:["data"],
mode:1});var IDx;var L3=function(){var b=_.g.apply(this,arguments)||this;b.enableHandlesAccountMenuSwitcher=_.r("enable_handles_account_menu_switcher");return b};
_.z(L3,_.g);L3.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
L3.prototype.dataChanged=L3.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],L3.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],L3.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],L3.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.V([_.to("#avatar"),_.f("design:type",Object)],L3.prototype,"avatar",void 0);
_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],L3.prototype,"dataChanged",null);_.V([_.Yx({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],L3);
_.$S()(L3,"ytd-active-account-header-renderer",function(){if(IDx===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);IDx=b}b=IDx;return b},{allowedProps:["data"],
mode:1});var B0f;var WGX;var PU=function(){return _.g.apply(this,arguments)||this};
_.z(PU,_.g);PU.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
PU.prototype.onBackTap=function(){_.Sx(this.hostElement,"yt-menu-back-tapped")};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],PU.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],PU.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],PU.prototype,"data",void 0);_.V([_.Yx({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],PU);
_.$S()(PU,"ytd-simple-menu-header-renderer",function(){if(WGX===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);WGX=b}b=WGX;return b},{allowedProps:["data"],
mode:2});var AuY;var UZP=function(){return _.g.apply(this,arguments)||this};
_.z(UZP,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],UZP.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],UZP.prototype,"data",void 0);_.V([_.Yx({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],UZP);
_.k(UZP,"ytd-comment-video-thumbnail-header-renderer",function(){if(AuY!==void 0)return AuY;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return AuY=b},{mode:1});var pWd;var Jua=function(){return _.g.apply(this,arguments)||this};
_.z(Jua,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Jua.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Jua.prototype,"data",void 0);_.V([_.Yx({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],Jua);
_.k(Jua,"ytd-abuse-type-selector-renderer",function(){if(pWd!==void 0)return pWd;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return pWd=b},{mode:1});var eF2;var C62=(0,_.Cvo)(_.eAb.reportChannelAbuse,{isVideoIdSelectedSelector:function(b,h){return h in b.selectedVideoIds},
additionalContextSelector:function(b){return b.additionalContext},
impersonatedChannelUrlSelector:function(b){return b.impersonatedChannelUrl},
reportChannelAbuseSelector:function(b){return b}});var K3=function(){return _.g.apply(this,arguments)||this};
_.z(K3,_.g);K3.prototype.attached=function(){var b=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){b.additionalContextInput.focusTextInput()})};
K3.prototype.handleAdditionalContextChanged=function(){var b=this;_.wy(this,"ytd-report-channel-additional-context-update",function(){b.ytdReduxBehavior.dispatch(_.$8({type:"ADDITIONAL_CONTEXT_UPDATED",payload:b.additionalContext}))},300)};
K3.prototype.updateAdditionalContextFromBinding=function(b){this.additionalContext=b.detail.value};
K3.prototype.handleAdditionalContextChanged=K3.prototype.handleAdditionalContextChanged;_.V([_.B(_.NT),_.f("design:type",Object)],K3.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",String)],K3.prototype,"additionalContext",void 0);_.V([_.C({selector:C62.additionalContextSelector}),_.f("design:type",String)],K3.prototype,"additionalContextRedux",void 0);_.V([_.C(),_.f("design:type",Object)],K3.prototype,"data",void 0);
_.V([_.to("yt-text-input-form-field-renderer"),_.f("design:type",Object)],K3.prototype,"additionalContextInput",void 0);_.V([_.OB("additionalContext"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],K3.prototype,"handleAdditionalContextChanged",null);_.V([_.Yx({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],K3);
_.k(K3,"ytd-report-channel-modal-additional-context-renderer",function(){if(eF2!==void 0)return eF2;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return eF2=b},{mode:1});var gCX;var Zk=function(){var b=_.g.apply(this,arguments)||this;b.nextButtonDisabled=null;b.submitEndpoint=null;b.navigationEndpoint=null;b.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return b};
_.z(Zk,_.g);_.d=Zk.prototype;_.d.computeNextButtonData=function(b,h,y){var S={};h&&(S.navigationEndpoint=h);y&&(S.serviceEndpoint=y);b&&b.buttonRenderer&&_.lR.extend(S,b.buttonRenderer);return S};
_.d.handleReportChannelModalDisableNextButtonAction=function(b){this.setNextButtonIsDisabled(b)};
_.d.handleReportFormEndpointUpdateAction=function(b){this.setNextButtonIsDisabled(!!b.disableSubmitButton);this.resetEndpointData();b.submitEndpoint?this.submitEndpoint=b.submitEndpoint:b.submitNavigationEndpoint&&(this.navigationEndpoint=b.submitNavigationEndpoint)};
_.d.handleSignalActionSubmitForm=function(){var b,h=Object.keys(((b=this.reportChannelAbuseForm)==null?void 0:b.selectedVideoIds)||{}),y;b=((y=this.reportChannelAbuseForm)==null?void 0:y.additionalContext)||"";var S;y=((S=this.reportChannelAbuseForm)==null?void 0:S.impersonatedChannelUrl)||"";var F;if((F=this.data)==null?0:F.submitEndpoint){h={impersonated_channel_url:y,text:b,video_ids:h};var a;_.H9().resolve(_.OM).resolveCommand((a=this.data)==null?void 0:a.submitEndpoint,{form:Object.assign({},
h,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.d.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.d.onYtServiceRequestError=function(b){this.setNextButtonIsDisabled(!1);_.lM(this.hostElement,b.detail.error.message)};
_.d.setNextButtonIsDisabled=function(b){this.set("data.nextButton.buttonRenderer.isDisabled",b)};
_.d.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
Zk.prototype.onYtServiceRequestError=Zk.prototype.onYtServiceRequestError;Zk.prototype.onYtServiceRequestCompleted=Zk.prototype.onYtServiceRequestCompleted;_.V([_.C(),_.f("design:type",Object)],Zk.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],Zk.prototype,"nextButtonDisabled",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],Zk.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],Zk.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Zk.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Zk.prototype,"submitEndpoint",void 0);_.V([_.C(),_.f("design:type",Object)],Zk.prototype,"navigationEndpoint",void 0);_.V([_.C({selector:C62.reportChannelAbuseSelector}),_.f("design:type",Object)],Zk.prototype,"reportChannelAbuseForm",void 0);
_.V([_.u3("yt-service-request-completed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],Zk.prototype,"onYtServiceRequestCompleted",null);_.V([_.u3("yt-service-request-error"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],Zk.prototype,"onYtServiceRequestError",null);_.V([_.Yx({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],Zk);
_.k(Zk,"ytd-report-channel-modal-footer-renderer",function(){if(gCX!==void 0)return gCX;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return gCX=b},{mode:1});var sma;var oj=function(){var b=_.g.apply(this,arguments)||this;b.boundOnTapDismissButton=function(){b.closePopup()};
return b};
_.z(oj,_.g);oj.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
oj.prototype.handleDataChanged=function(){_.oh(this.hostElement)};
oj.prototype.closePopup=function(){_.F8(this.hostElement,"yt-close-popup-action")};
oj.prototype.handleDataChanged=oj.prototype.handleDataChanged;_.V([_.C(),_.f("design:type",Object)],oj.prototype,"boundOnTapDismissButton",void 0);_.V([_.C(),_.f("design:type",Object)],oj.prototype,"data",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],oj.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],oj.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],oj.prototype,"handleDataChanged",null);_.V([_.Yx({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],oj);
_.k(oj,"ytd-report-channel-modal-header-renderer",function(){if(sma!==void 0)return sma;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return sma=b},{mode:1});var YLf;var Mv=function(){var b=_.g.apply(this,arguments)||this;b.autoValidate=!1;b.invalid=!1;b.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return b};
_.z(Mv,_.g);_.d=Mv.prototype;_.d.attached=function(){var b=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){b.channelUrlInput.focusTextInput()})};
_.d.disableNextButton=function(b){_.F8(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[b])};
_.d.handleImpersonatedChannelUrlChanged=function(){var b=this;this.disableNextButton(!0);this.invalid=!1;_.wy(this,"ytd-report-channel-impersonated-channel-update",function(){var h=b.impersonatedChannelUrl.trim();b.ytdReduxBehavior.dispatch(_.$8({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:h}));var y;((y=b.data)==null?0:y.submitEndpoint)&&h&&_.H9().resolve(_.OM).resolveCommand(b.data.submitEndpoint,{form:{impersonated_channel_url:h,element:b.hostElement}})},500)};
_.d.handleModifyReportFormCommand=function(b){this.invalid=this.get("modifyReportFormCommand.action",b)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.d.updateInvalidFromBinding=function(b){this.invalid=b.detail.value};
_.d.updateImpersonatedChannelUrlFromBinding=function(b){this.impersonatedChannelUrl=b.detail.value};
Mv.prototype.handleImpersonatedChannelUrlChanged=Mv.prototype.handleImpersonatedChannelUrlChanged;_.V([_.B(_.NT),_.f("design:type",Object)],Mv.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],Mv.prototype,"ytActionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Mv.prototype,"autoValidate",void 0);_.V([_.C(),_.f("design:type",Object)],Mv.prototype,"invalid",void 0);
_.V([_.C(),_.f("design:type",String)],Mv.prototype,"impersonatedChannelUrl",void 0);_.V([_.C({selector:C62.impersonatedChannelUrlSelector}),_.f("design:type",String)],Mv.prototype,"impersonatedChannelUrlRedux",void 0);_.V([_.C(),_.f("design:type",Object)],Mv.prototype,"data",void 0);_.V([_.to("#text-input"),_.f("design:type",Object)],Mv.prototype,"channelUrlInput",void 0);
_.V([_.OB("impersonatedChannelUrl"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Mv.prototype,"handleImpersonatedChannelUrlChanged",null);_.V([_.Yx({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],Mv);
_.k(Mv,"ytd-report-channel-modal-impersonation-renderer",function(){if(YLf!==void 0)return YLf;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return YLf=b},{mode:1});var T02;var GlA;var n3=function(){return _.g.apply(this,arguments)||this};
_.z(n3,_.g);n3.prototype.onCheckboxToggled=function(b){var h,y,S=(y=_.c((h=this.data)==null?void 0:h.video,_.tT))==null?void 0:y.videoId;S&&this.ytdReduxBehavior.dispatch(b.target.checked?_.$8({type:"VIDEO_SELECTED",payload:S}):_.$8({type:"VIDEO_UNSELECTED",payload:S}))};
n3.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.tm.Object.defineProperties(n3.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var b,h=(b=this.data)==null?void 0:b.video;if(!h)return{};var y;b=(y=_.c(h,_.tT))==null?void 0:y.navigationEndpoint;if(!b)return h;_.c(b==null?void 0:b.commandMetadata,_.ZW)&&(_.c(b.commandMetadata,_.ZW).ignoreNavigation=!0);return h}}});
_.V([_.C({reflectToAttribute:!0,selector:C62.isVideoIdSelectedSelector,selectorArgs:["data.video.videoRenderer.videoId"]}),_.f("design:type",Boolean)],n3.prototype,"checked",void 0);_.V([_.C(),_.f("design:type",Object)],n3.prototype,"data",void 0);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],n3.prototype,"video",null);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],n3.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],n3.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],n3.prototype,"ytdReduxBehavior",void 0);_.V([_.Yx({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],n3);
_.k(n3,"ytd-selectable-video-renderer",function(){if(GlA!==void 0)return GlA;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return GlA=b},{mode:1});var XP=function(){var b=_.g.apply(this,arguments)||this;b.monitorScroll=!0;return b};
_.z(XP,_.g);XP.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],XP.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],XP.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],XP.prototype,"data",void 0);_.V([_.Yx({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],XP);
_.k(XP,"ytd-selectable-video-list-renderer",function(){if(T02!==void 0)return T02;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return T02=b},{mode:1});var klq;_.W2("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var HU=function(){return _.g.apply(this,arguments)||this};
_.z(HU,_.g);HU.prototype.onChange=function(b){if(b=_.mi(b).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.r("kevlar_command_handler_migration_killswitch"))_.jx(this.hostElement,b,this.hostElement);else{b=_.L(b);for(var h=b.next();!h.done;h=b.next())this.ytComponentBehavior.resolveCommand(h.value)}};
HU.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
HU.prototype.updateDataToggledFromBinding=function(b){this.set("data.toggled",b.detail.value)};
_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],HU.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],HU.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],HU.prototype,"data",void 0);_.V([_.C({computed:"isEnabled(data)"}),_.f("design:type",Boolean)],HU.prototype,"enabled",void 0);_.V([_.Yx({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],HU);
_.k(HU,"ytd-toggle-item-renderer",function(){if(klq!==void 0)return klq;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return klq=b},{mode:1});var VNN;var ECa;var iCA;var u8=function(){var b=_.g.apply(this,arguments)||this;b.setVisible=!1;b.boundOnSubmitButtonClick=function(){b.onSubmitButtonClick()};
b.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return b};
_.z(u8,_.g);u8.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}}}}}};
u8.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
u8.prototype.onSubmitButtonClick=function(){var b;((b=this.data)==null?0:b.submitEndpoint)&&!_.r("enable_ytc_refunds_submit_form_signal_action")&&_.dh(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
u8.prototype.handleSignalActionSubmitForm=function(){var b;((b=this.data)==null?0:b.submitEndpoint)&&_.dh(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.tm.Object.defineProperties(u8.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.data)==null||!b.hiddenByDefault)&&!this.setVisible}}});
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],u8.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],u8.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],u8.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],u8.prototype,"setVisible",void 0);_.V([_.C(),_.f("design:type",Object)],u8.prototype,"data",void 0);
_.V([_.C(),_.f("design:type",Object)],u8.prototype,"surveyFeedbackData",void 0);_.V([_.C(),_.f("design:type",Object)],u8.prototype,"boundOnSubmitButtonClick",void 0);_.V([_.C({reflectToAttribute:!0}),_.W("data","setVisible"),_.f("design:type",Object),_.f("design:paramtypes",[])],u8.prototype,"visibilityHidden",null);_.V([_.sB({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],u8);
_.k(u8,"yt-flow-footer-renderer",function(){if(iCA===void 0){var b=document.createElement("template");_.D(b,'\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>');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;ECa===void 0&&(ECa=document.createElement("template"));var S=ECa;y.call(h,S.content.cloneNode(!0),b.content.firstChild);iCA=b}b=iCA;return b},{mode:2});var fDf=(0,_.Cvo)(_.eAb.ypc,{surveyFeedbackDataSelector:function(b){return b.surveyFeedbackData}});var Om=function(){return _.g.apply(this,arguments)||this};
_.z(Om,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Om.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],Om.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Om.prototype,"data",void 0);_.V([_.C({selector:fDf.surveyFeedbackDataSelector}),_.f("design:type",Object)],Om.prototype,"surveyFeedbackData",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],Om);
_.k(Om,"ytd-flow-footer-renderer",function(){if(VNN!==void 0)return VNN;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return VNN=b},{mode:_.Lt("kevlar_poly_si_batch_j025")?1:2});var wWf;var lDa;var Nv=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return b};
_.z(Nv,_.g);_.d=Nv.prototype;_.d.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.A4("multiPageMenuSectionItems")}}};
_.d.handleHideEnclosingAction_=function(b){if(this.data&&this.data.items)for(var h=0;h<this.data.items.length;h++){var y=this.data.items[h].notificationRenderer;if(y&&y.notificationId==b.hideEnclosingAction.notificationId){this.splice("data.items",h,1);_.F8(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.d.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.oc(this.hostElement,"hidden",!0)};
_.d.updateMenu_=function(b){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&b&&!b.doNotRefreshInbox){b=this.data.continuations;for(var h=0;h<b.length;h++)if(b[h].invalidationContinuationData){var y=void 0;var S=(y=b[h].invalidationContinuationData)==null?void 0:y.continuation;break}b=_.lR.clone(this.data.continuationUpdateEndpoint||null);b.continuation=S;b.click_tracking_params=this.data.trackingParams;_.dh(this.hostElement,[b])}};
_.d.onServiceRequestCompleted_=function(b,h){if(this.data&&(b=h.actions)){h=0;for(var y=b.length;h<y;h++){var S=_.c(b[h],_.JDe);if(!S)break;if((S.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||S.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&S.continuationItems&&this.data.items){var F=this.data.items.length-1;this.data.items[F].continuationItemRenderer&&(S=["data.items",F,1].concat(S.continuationItems),this.splice.apply(this,S))}}}};
Nv.prototype.onServiceRequestCompleted_=Nv.prototype.onServiceRequestCompleted_;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Nv.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Nv.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],Nv.prototype,"ytActionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Nv.prototype,"data",void 0);
_.V([_.u3("yt-service-request-completed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,_.xE]),_.f("design:returntype")],Nv.prototype,"onServiceRequestCompleted_",null);_.V([_.sB({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],Nv);
_.$S()(Nv,"yt-multi-page-menu-section-renderer",function(){if(lDa===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;wWf===void 0&&(wWf=document.createElement("template"));var S=wWf;y.call(h,S.content.cloneNode(!0),b.content.firstChild);lDa=b}b=lDa;return b},{allowedProps:["data"],
mode:2});var qLf;var xZf;var tc=function(){return _.g.apply(this,arguments)||this};
_.z(tc,_.g);tc.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.tm.Object.defineProperties(tc.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.data)==null?void 0:b.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.data)==null?void 0:b.progress)==null?0:this.data.progress*100}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],tc.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],tc.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],tc.prototype,"data",void 0);_.V([_.W("data.progress"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],tc.prototype,"showProgressBar",null);
_.V([_.W("data.progress"),_.f("design:type",Number),_.f("design:paramtypes",[])],tc.prototype,"progress",null);_.V([_.sB({is:"yt-flow-header-renderer",disableElementRegistration:!0})],tc);
_.k(tc,"yt-flow-header-renderer",function(){if(xZf===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;qLf===void 0&&(qLf=document.createElement("template"));var S=qLf;y.call(h,S.content.cloneNode(!0),b.content.firstChild);xZf=b}b=xZf;return b},{mode:2});var Qmd;var mZq;var rK=function(){return _.g.apply(this,arguments)||this};
_.z(rK,_.g);rK.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],rK.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],rK.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],rK.prototype,"data",void 0);_.V([_.sB({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],rK);
_.k(rK,"yt-post-confirmation-flow-step-renderer",function(){if(mZq===void 0){var b=document.createElement("template");_.D(b,'\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>');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;Qmd===void 0&&(Qmd=document.createElement("template"));var S=Qmd;y.call(h,S.content.cloneNode(!0),b.content.firstChild);mZq=b}b=mZq;return b},{mode:2});var vCY;var bgA;var cU=function(){return _.g.apply(this,arguments)||this};
_.z(cU,_.g);
cU.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"}}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],cU.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],cU.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],cU.prototype,"data",void 0);_.V([_.sB({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],cU);
_.k(cU,"yt-refund-confirmation-flow-step-renderer",function(){if(bgA===void 0){var b=document.createElement("template");_.D(b,'\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>');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;vCY===void 0&&(vCY=document.createElement("template"));var S=vCY;y.call(h,S.content.cloneNode(!0),b.content.firstChild);bgA=b}b=bgA;return b},{mode:2});var hJA=_.T(function(b){var h=b.data;return _.M("yt-profile-badge-view-model",{class:"profileBadgeViewModelHost"},_.M("div",{class:"profileBadgeViewModelBadgeIconContainer"},_.M(_.mI,{data:function(){return{thumbnails:[{url:h().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.M("div",{class:"profileBadgeViewModelContent"},_.M("div",{class:"profileBadgeViewModelBadgeDescription"},function(){return h().badgeDesc}),_.M(_.H,{cond:function(){return h().badgeSubtitle},
then:function(){return _.M("div",{class:"profileBadgeViewModelBadgeSubtitle"},function(){return h().badgeSubtitle})}})))},"pj");
hJA.idomCompat=!0;var ysa=_.T(function(b){var h=b.data;return _.M("yt-comment-interaction-view-model",{el:_.Qa(_.Ch(function(){return h().rendererContext})),
class:"ytCommentInteractionViewModelHost"},_.M("div",{class:"ytCommentInteractionViewModelFrame",role:"button","aria-label":function(){return h().onTapA11yLabel},
"on:keydown":_.IjY(),tabindex:0},_.M("div",{class:"ytCommentInteractionViewModelHeader"},_.M("div",{class:"ytCommentInteractionViewModelVideoTitle"},function(){return h().headerPrefix},' "',function(){return h().videoTitle}),_.M("div",{class:"ytCommentInteractionViewModelVideoTitleQuote"},'"')),_.M("div",{class:"ytCommentInteractionViewModelContent"},_.M("div",{class:"ytCommentInteractionViewModelCommentContent"},function(){return h().commentContent}),_.M("div",{class:"ytCommentInteractionViewModelChevron"},
_.M(_.mI,{data:function(){return{thumbnails:[{url:h().chevronUrl}]}},
alt:"",targetWidth:18,targetHeight:18})))))},"qj");
ysa.idomCompat=!0;var S2q=_.T(function(b){var h=b.data;return _.M("yt-shared-subscription-view-model",{class:"ytSharedSubscriptionViewModelHost"},_.M(_.rC,{data:function(){return h().avatar}},{avatarViewModel:_.OX}),_.M("div",{class:"ytSharedSubscriptionViewModelChannelName"},function(){return h().channelName}))},"rj");
S2q.idomCompat=!0;var $WE=_.T(function(b){var h=b.data;b={};return _.M("yt-profile-info-view-model",{class:_.P2("ytProfileInfoViewModelHost",(b.ytProfileInfoViewModelWithVideoShelf=function(){return h().videosHorizontalShelf},b))},_.M(FKP,{profileInfo:h}),_.M(_.rC,{data:function(){return h().videosHorizontalShelf}},{horizontalShelfViewModel:function(y){return _.M("div",{class:"ytProfileInfoViewModelVideoShelfContainer"},_.M(_.AN,{data:y.data}))}}),_.M(_.H,{cond:function(){return h().comments},
then:function(){return _.M(apa,{profileInfo:h})}}),_.M(_.H,{cond:function(){return h().sharedSubscriptionsTitle},
then:function(){return _.M(_.H,{cond:function(){return h().subscriptionsAccessButtonCommand},
then:function(){return _.M(dWd,{profileInfo:h})},
else:function(){return _.M(jnA,{profileInfo:h})}})}}))},"sj");
$WE.idomCompat=!0;var apa=_.T(function(b){var h=b.profileInfo;return _.M("div",{class:"ytProfileInfoViewModelActivity"},_.M("div",{class:"ytProfileInfoViewModelHeader"},_.M("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return h().commentsInteractionTitle})),_.M(_.rC,{data:function(){return h().comments}},{commentInteractionViewModel:function(y){return _.M("div",{class:"ytProfileInfoViewModelActivity"},_.M(ysa,{data:y.data}))}}))},"tj"),dWd=_.T(function(b){var h=b.profileInfo;
return _.M("div",{class:"ytProfileInfoViewModelSubSection"},_.M("div",{class:"ytProfileInfoViewModelSubHeader"},_.M(_.YN,{command:function(){return h().subscriptionsAccessButtonCommand},
className:"ytProfileInfoViewModelAnotherHeader"},_.M("div",{class:"ytProfileInfoViewModelSectionTitleModern"},function(){return h().sharedSubscriptionsTitle}),_.M("div",null,_.M(_.rC,{data:function(){return h().subscriptionsAccessButton}},{buttonViewModel:_.EG})))),_.M(LK2,{sharedSubscriptions:function(){var y;
return((y=h().sharedSubscriptions)==null?void 0:y.slice(0,5))||[]}}))},"uj"),jnA=_.T(function(b){var h=b.profileInfo;
return _.M("div",{class:"ytProfileInfoViewModelSubSection"},_.M("div",{class:"ytProfileInfoViewModelSubHeader"},_.M("h2",{class:"ytProfileInfoViewModelSectionTitle"},function(){return h().sharedSubscriptionsTitle})),_.M(LK2,{sharedSubscriptions:function(){var y;
return((y=h().sharedSubscriptions)==null?void 0:y.slice(0,5))||[]}}))},"vj"),LK2=_.T(function(b){return _.M("div",{class:"ytProfileInfoViewModelSubs"},_.M(_.rC,{data:b.sharedSubscriptions},{sharedSubscriptionViewModel:function(h){return _.M("div",{class:"ytProfileInfoViewModelSub"},_.M(S2q,{data:h.data}))}}))},"wj"),FKP=_.T(function(b){var h=b.profileInfo;
return _.M("div",{class:"ytProfileInfoViewModelActivity"},_.M(_.Gw,{each:function(){return[h().profileBadgeInfoYtWide,h().profileBadgeInfoChannelWide].filter(function(y){return!!y})},
keyBy:"INDEX"},function(y){return _.M(_.OW,null,_.M("div",{class:"ytProfileInfoViewModelHeader"},_.M("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return y().profileSectionTitle}),_.M("div",{class:"ytProfileInfoViewModelSectionDesc"},_.M("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var S;
return(S=y().commentBadge)==null?void 0:S.commentDesc}),_.M(_.H,{cond:function(){var S;
return(S=y().commentBadge)==null?void 0:S.blackHeartDesc},
then:function(){return _.M("div",{class:"ytProfileInfoViewModelSectionDivider"},"\u2022")}}),_.M("div",{class:"ytProfileInfoViewModelSectionHeartIcon"},_.M(_.mI,{data:function(){var S;
return{thumbnails:[{url:(S=y().commentBadge)==null?void 0:S.blackHeartIconUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.M("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var S;return(S=y().commentBadge)==null?void 0:S.blackHeartDesc}))),_.M("div",{class:"ytProfileInfoViewModelBadge"},_.M(_.Gw,{each:function(){return y().badges||[]}},function(S){return _.M(hJA,{data:S})})))}))},"xj");var Psd=_.T(function(b){var h=b.data;var y=function(){return h().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.M("yt-profile-card-view-model",{class:"ytProfileCardViewModelHost",style:"overflow: hidden"},_.M(_.rC,{data:function(){return h().profileIdentityInfo}},{profileIdentityInfoViewModel:function(S){return _.M(_.Bhx,{data:S.data,
hideDivider:y,isChannelInfoCard:y})},
profileInfoViewModel:$WE}),_.M(_.rC,{data:function(){return h().profileInfo}},{profileIdentityInfoViewModel:_.Bhx,
profileInfoViewModel:$WE}))},"yj");
Psd.idomCompat=!0;_.yd(Psd,"yt-profile-card-view-model",{props:{data:_.D4}});var Rj=function(){var b=_.g.apply(this,arguments)||this;b.enableFocusFix=_.r("music_web_enable_focus_on_setting_menu_fix")&&_.m$("IS_MOBILE_WEB",!1);b.covered=!1;b.hideMenu=!1;b.isCommentNotificationOnProfileCard=!1;b.scrolledByTouch=!1;b.disableBackdropFilter=_.r("web_disable_backdrop_filter");b.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return b};
_.z(Rj,_.g);_.d=Rj.prototype;
_.d.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"}}}};
_.d.ready=function(){var b=this;this.JSC$20685_containerElement.addEventListener("scroll",function(){b.ytRendererBehavior.markDirty()})};
_.d.attributeChanged=function(b,h){b==="menu-style"&&_.F8(this.hostElement,"yt-multi-page-menu-closed-action",[h])};
_.d.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Hl(this,this.focusOnStampFinished))};
_.d.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.Hl(this,this.focusOnStampFinished))};
_.d.reset=function(){this.closeJobId&&(_.xP.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.d.focusOnStampFinished=function(b){b.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Hl(this,this.focusOnStampFinished)),this.doFocus())};
_.d.doFocus=function(){var b=_.C47(this.sectionsElement);b.length&&b[0].focus()};
_.d.computeMenuStyle=function(b){return b?b.toLowerCase().replace(/_/g,"-"):""};
_.d.computeIsCommentNotificationOnProfileCard=function(b){return _.r("enable_profile_cards_on_comments")&&b.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.d.computeHideMenu=function(b,h){return b||!(!h||!h.showLoadingSpinner)};
_.d.onPopupClosed=function(){this.isPopUpOpen=!1;_.F8(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.d.onPopupOpened=function(b,h){this.isPopUpOpen=!0;h.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.Sx(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.$8({type:"CHANNEL_REPORT_RESET"})))};
_.d.onYtNavigate=function(b,h){this.shouldCloseOnNavigateEvent(h.endpoint)&&_.F8(this.hostElement,"yt-close-all-popups-action")};
_.d.handleEndpoint=function(b){b=_.c(b,_.Mu);!this.isCommentNotificationOnProfileCard&&b&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$20685_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.d.handleActions=function(b){for(var h=0,y=b.length;h<y;h++){var S=_.c(b[h],zEq);S&&this.handleGetMultiPageMenuAction(S);(S=_.c(b[h],_.JDe))&&this.handleAppendContinuationItemsAction(S)}};
_.d.onServiceRequestSentOrCompleted=function(b,h){b.detail&&b.detail.endpoint&&this.handleEndpoint(b.detail.endpoint);h.actions&&this.handleActions(h.actions)};
_.d.handleGetMultiPageMenuAction=function(b){var h=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.$x(this.submenuElement).appendChild(h);(b=b.menu.multiPageMenuRenderer)&&this.logSubmenu(b);h.data=b;h.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.d.handleAppendContinuationItemsAction=function(b){if(this.data&&b.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&b.continuationItems&&this.data.sections){var h=this.data.sections.length-1;this.data.sections[h].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),h--);if(this.data.sections[h].multiPageMenuNotificationSectionRenderer&&b.continuationItems){b=_.L(b==null?void 0:b.continuationItems);for(var y=b.next();!y.done;y=b.next())if(y=y.value,_.c(y,Qxd)){var S=
void 0,F=void 0,a=void 0,P=void 0,K=void 0;((S=this)==null?0:(F=S.data)==null?0:(a=F.sections)==null?0:(P=a[h])==null?0:(K=P.multiPageMenuNotificationSectionRenderer)==null?0:K.items)&&this.push("data.sections."+h+".multiPageMenuNotificationSectionRenderer.items",y)}else if(_.c(y,_.cVG)||_.c(y,_.yp))this.push("data.sections",y),h++}}};
_.d.logSubmenu=function(b){if(!_.r("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var h=this.ytRendererBehavior.getScreenLayer(),y=_.UE(h),S=_.Ae(h);if((b=b.trackingParams)&&y&&S){var F=_.I_(b);_.r("combine_ve_grafts")?_.rU().graftServerVe(b,S,h):_.Vh(y,S,F)}}};
_.d.emptySubmenuContainer=function(){for(var b=_.$x(this.submenuElement);b.firstChild;)b.removeChild(b.firstChild)};
_.d.onMenuBackTap=function(b){_.Sx(this.hostElement,"yt-submenu-closed");b.stopPropagation()};
_.d.onSubmenuClosed=function(b){_.mi(b)!==this.hostElement&&(this.covered=!1,_.Sx(this.hostElement,"yt-refit"),b.stopPropagation())};
_.d.onRetrieveLocation=function(b,h){h.hasComments&&(h.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),b.stopPropagation())};
_.d.shouldCloseOnNavigateEvent=function(b){if(!b)return!0;if(_.c(b,_.SG8)||_.c(b,_.Fx8)||_.c(b,_.yJ5)||_.c(b,_.jH))return!1;var h;return((h=_.c(b==null?void 0:b.commandMetadata,_.ZW))==null?0:h.ignoreNavigation)?!1:!0};
_.d.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.d.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.d.refitAfterRender=function(){var b=this;_.Ob(this,function(){_.Sx(b.hostElement,"yt-refit")})};
Rj.prototype.refitAfterRender=Rj.prototype.refitAfterRender;Rj.prototype.onRetrieveLocation=Rj.prototype.onRetrieveLocation;Rj.prototype.onSubmenuClosed=Rj.prototype.onSubmenuClosed;Rj.prototype.onMenuBackTap=Rj.prototype.onMenuBackTap;Rj.prototype.onServiceRequestSentOrCompleted=Rj.prototype.onServiceRequestSentOrCompleted;Rj.prototype.onYtNavigate=Rj.prototype.onYtNavigate;Rj.prototype.onPopupOpened=Rj.prototype.onPopupOpened;Rj.prototype.onPopupClosed=Rj.prototype.onPopupClosed;
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Rj.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.PQ.YtEventForwardingBehavior),_.f("design:type",Object)],Rj.prototype,"ytEventForwardingBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Rj.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],Rj.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Rj.prototype,"data",void 0);
_.V([_.C(),_.f("design:type",Object)],Rj.prototype,"enableFocusFix",void 0);_.V([_.C(),_.f("design:type",Object)],Rj.prototype,"covered",void 0);_.V([_.C({computed:"computeHideMenu(covered, data)"}),_.f("design:type",Object)],Rj.prototype,"hideMenu",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.f("design:type",String)],Rj.prototype,"menuStyle",void 0);
_.V([_.C({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.f("design:type",Object)],Rj.prototype,"isCommentNotificationOnProfileCard",void 0);_.V([_.C(),_.f("design:type",Boolean)],Rj.prototype,"isPopUpOpen",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Rj.prototype,"scrolledByTouch",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Rj.prototype,"disableBackdropFilter",void 0);
_.V([_.to("#sections"),_.f("design:type",HTMLElement)],Rj.prototype,"sectionsElement",void 0);_.V([_.to("#spinner"),_.f("design:type",HTMLElement)],Rj.prototype,"spinnerElement",void 0);_.V([_.to("#header"),_.f("design:type",HTMLElement)],Rj.prototype,"headerElement",void 0);_.V([_.to("#container"),_.f("design:type",HTMLElement)],Rj.prototype,"JSC$20685_containerElement",void 0);_.V([_.to("#submenu"),_.f("design:type",HTMLElement)],Rj.prototype,"submenuElement",void 0);
_.V([_.u3("yt-popup-closed"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Rj.prototype,"onPopupClosed",null);_.V([_.u3("yt-popup-opened"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,Object]),_.f("design:returntype")],Rj.prototype,"onPopupOpened",null);_.V([_.u3("yt-navigate"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,Object]),_.f("design:returntype")],Rj.prototype,"onYtNavigate",null);
_.V([_.u3("yt-service-request-completed"),_.u3("yt-service-request-sent"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,_.xE]),_.f("design:returntype")],Rj.prototype,"onServiceRequestSentOrCompleted",null);_.V([_.u3("yt-menu-back-tapped"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],Rj.prototype,"onMenuBackTap",null);
_.V([_.u3("yt-submenu-closed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],Rj.prototype,"onSubmenuClosed",null);_.V([_.u3("yt-retrieve-location"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,Object]),_.f("design:returntype")],Rj.prototype,"onRetrieveLocation",null);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Rj.prototype,"refitAfterRender",null);
_.V([_.Yx({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],Rj);
_.k(Rj,"ytd-multi-page-menu-renderer",function(){if(B0f!==void 0)return B0f;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return B0f=b},{mode:1});var KKA;var zX=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return b};
_.z(zX,_.g);_.d=zX.prototype;_.d.created=function(){this.showTooltips=!0};
_.d.computeAccessibility_=function(b){return this.get("accessibility.accessibilityData",b)||null};
_.d.onTap=function(){var b=_.aw(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(b&&b.length===1&&b[0])_.F8(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var h;if((h=this.data)==null?0:h.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var y;((y=this.data)==null?0:y.menuRequest)&&_.dh(this.hostElement,[this.data.menuRequest])}}};
_.d.handleTopbarMenuClosedAction=function(b){var h,y;(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(b)===((h=this.data)==null?void 0:(y=h.icon)==null?void 0:y.iconType)&&this.toggleIconState(!1)};
_.d.toggleIconState=function(b){_.r("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=b)};
_.d.handleUpdateTopbarAvatarAction=function(b){var h;b=(h=_.c(b,u$A))==null?void 0:h.avatarUrl;var y,S;h=(y=this.data)==null?void 0:(S=y.avatar)==null?void 0:S.thumbnails;b&&h&&(y={thumbnails:[Object.assign({},h[0],{url:b})]},this.set("data.avatar",y))};
_.tm.Object.defineProperties(zX.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.$x(this.hostElement).querySelector("#button")}}});
zX.prototype.onTap=zX.prototype.onTap;_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],zX.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],zX.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Y9),_.f("design:type",Object)],zX.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.B(_.Rn8.YtButtonBehavior),_.f("design:type",Object)],zX.prototype,"ytButtonBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],zX.prototype,"data",void 0);
_.V([_.to("yt-icon-button#button"),_.f("design:type",Object)],zX.prototype,"iconButton",void 0);_.V([_.u3("tap"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],zX.prototype,"onTap",null);_.V([_.Yx({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],zX);
_.$S()(zX,"ytd-topbar-menu-button-renderer",function(){if(KKA===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);KKA=b}b=KKA;return b},{allowedProps:["data"],
mode:1});var Zgd;var Dk=function(){return _.g.apply(this,arguments)||this};
_.z(Dk,_.g);Dk.prototype.getSelected=function(){return this.reasons.selected};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Dk.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Dk.prototype,"data",void 0);_.V([_.to("#reasons"),_.f("design:type",Object)],Dk.prototype,"reasons",void 0);_.V([_.Yx({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],Dk);
_.k(Dk,"ytd-ad-feedback-content",function(){if(Zgd!==void 0)return Zgd;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return Zgd=b},{mode:1});var o1f;var Ij=function(){return _.g.apply(this,arguments)||this};
_.z(Ij,_.g);_.d=Ij.prototype;_.d.onPopupOpened=function(){_.F8(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.d.computeConfirmButton=function(b){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:b.confirmLabel}};
_.d.computeCancelButton=function(b){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:b.cancelLabel}};
_.d.onConfirmTap=function(){var b=this.content.getSelected();b!==void 0&&(b=this.data.reasons[b].endpoint)&&(_.H9().resolve(_.OM).resolveCommand(b,{form:{element:this.hostElement}}),_.F8(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.d.sendFeedbackSubmitToastAction=function(){var b;(b=this.data)!=null&&b.completionMessage&&(b=_.SI(this.data.completionMessage),_.F8(this.hostElement,"yt-open-popup-action",[b,this]))};
_.d.onCancelTap=function(){_.F8(this.hostElement,"yt-close-popup-action")};
Ij.prototype.onPopupOpened=Ij.prototype.onPopupOpened;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Ij.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Ij.prototype,"data",void 0);_.V([_.to("#content"),_.f("design:type",Object)],Ij.prototype,"content",void 0);_.V([_.u3("yt-popup-opened"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],Ij.prototype,"onPopupOpened",null);
_.V([_.Yx({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],Ij);
_.k(Ij,"ytd-ad-feedback-renderer",function(){if(o1f!==void 0)return o1f;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return o1f=b},{mode:1});var MvY;var n1N=function(){return _.g.apply(this,arguments)||this};
_.z(n1N,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],n1N.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],n1N.prototype,"data",void 0);_.V([_.Yx({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],n1N);
_.k(n1N,"ytd-ad-info-dialog-content",function(){if(MvY!==void 0)return MvY;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return MvY=b},{mode:1});var X7Y;var BU=function(){return _.g.apply(this,arguments)||this};
_.z(BU,_.g);BU.prototype.computeConfirmButton=function(b){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:b.confirmLabel}};
BU.prototype.onConfirmTap=function(){_.F8(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
BU.prototype.computeShouldShowTitle=function(){var b;return!((b=this.data)==null||!b.title)};
BU.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.H9().resolve(_.OM).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
BU.prototype.onPopupClosed=BU.prototype.onPopupClosed;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],BU.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],BU.prototype,"data",void 0);_.V([_.u3("yt-popup-closed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],BU.prototype,"onPopupClosed",null);_.V([_.Yx({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],BU);
_.k(BU,"ytd-ad-info-dialog-renderer",function(){if(X7Y!==void 0)return X7Y;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return X7Y=b},{mode:1});var HgN;var WU=function(){var b=_.g.apply(this,arguments)||this;b.actionButtonClass="action-button";b.dismissButtonId="dismiss-button";b.dialogDismiss=!0;return b};
_.z(WU,_.g);_.d=WU.prototype;_.d.computeInPlayer=function(b){return(b==null?void 0:b.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.d.computedLogo=function(){var b,h;return this.isDarkTheme()?(b=this.data)==null?void 0:b.logoDark:(h=this.data)==null?void 0:h.logo};
_.d.computedHeaderImage=function(){var b,h;return this.isDarkTheme()?(b=this.data)==null?void 0:b.headerImageDark:(h=this.data)==null?void 0:h.headerImage};
_.d.computeLogoIconId=function(){var b,h,y,S=(b=this.computedLogo())==null?void 0:(h=b.sources)==null?void 0:(y=h[0])==null?void 0:y.height;return S&&S%31===0?"logo-icon-with-padding":"logo-icon"};
_.d.computeLogoIconHeight=function(){var b,h,y,S=(b=this.computedLogo())==null?void 0:(h=b.sources)==null?void 0:(y=h[0])==null?void 0:y.height;return S&&S%31===0?"31":"24"};
_.d.onPopupClosed=function(){_.H9().resolve(_.on).dispose()};
_.d.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.d.onShow=function(){this.inPlayer&&_.Hd(6);this.titleElement.focus()};
_.d.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var b=0;b<this.data.impressionEndpoints.length;b++){var h=_.c(this.data.impressionEndpoints[b],_.sQ);h&&this.ytComponentBehavior.resolveCommand(h)}};
_.d.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.F8(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.tm.Object.defineProperties(WU.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var b,h;return!((b=this.data)==null||!b.headerImageDark)&&!((h=this.data)==null||!h.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.data)==null||!b.secondaryButton)}}});
WU.prototype.onPopupClosed=WU.prototype.onPopupClosed;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],WU.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],WU.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.tJ.YtVisibilityBehavior),_.f("design:type",Object)],WU.prototype,"ytVisibilityBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],WU.prototype,"data",void 0);
_.V([_.C(),_.f("design:type",Object)],WU.prototype,"actionButtonClass",void 0);_.V([_.C(),_.f("design:type",Object)],WU.prototype,"dismissButtonId",void 0);_.V([_.C(),_.f("design:type",Object)],WU.prototype,"dialogDismiss",void 0);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],WU.prototype,"hasHeaderImage",null);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],WU.prototype,"hasPremiumButton",null);
_.V([_.C({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.f("design:type",Boolean)],WU.prototype,"inPlayer",void 0);_.V([_.to("#dismiss-button"),_.f("design:type",HTMLElement)],WU.prototype,"dismissButton",void 0);_.V([_.to("#title"),_.f("design:type",HTMLElement)],WU.prototype,"titleElement",void 0);_.V([_.u3("yt-popup-closed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],WU.prototype,"onPopupClosed",null);
_.V([_.Yx({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],WU);
_.k(WU,"ytd-enforcement-message-view-model",function(){if(HgN!==void 0)return HgN;var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return HgN=b},{mode:1});var uJA;var OgF;var Ac=function(){var b=_.g.apply(this,arguments)||this;b.TEST_ONLY={immediateValidation:function(){b.immediateValidation()},
onValidationResponse:function(h){b.onValidationResponse(h)},
onGenerateHandleFromNameResponse:function(h){b.onGenerateHandleFromNameResponse(h)}};
return b};
_.z(Ac,_.g);_.d=Ac.prototype;_.d.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.d.validate=function(){this.immediateValidation()};
_.d.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.d.setHandleInputValue=function(b){this.handleDir=this.getHandleDir(b);this.handleInput.value=b;this.validationState={status:"PENDING"};this.immediateValidation()};
_.d.getHandleDir=function(b){var h=b===""&&!1;return(h=_.vj7.test.call(_.vj7,b))?"rtl":"ltr"};
_.d.onDataChanged=function(){var b,h;this.handleDir=this.getHandleDir((h=(b=this.data)==null?void 0:b.handle)!=null?h:"");var y;this.validationState=((y=this.data)==null?0:y.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var S;((S=this.data)==null?0:S.validateOnInit)&&this.immediateValidation()};
_.d.stopPropagation=function(b){b.stopPropagation()};
_.d.onInput=function(){var b;this.handleDir=this.getHandleDir((b=this.handleInput.value)!=null?b:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.d.onFocusout=function(b){this.handleInput.contains(b.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.d.delayedValidation=function(){var b,h;this.debouncedValidation((h=(b=this.data)==null?void 0:b.validationDelayMs)!=null?h:1E3)};
_.d.immediateValidation=function(){this.debouncedValidation(0)};
_.d.debouncedValidation=function(b){var h=this;_.wy(this,"debouncedValidation",function(){var y,S=h.staticValidation((y=h.handleInput.value)!=null?y:"");if(S!==void 0)h.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:S};else{var F;if((F=h.data)!=null&&F.validateChannelHandleCommand){h.validationState={status:"LOADING"};var a;h.ytComponentBehavior.resolveCommand(h.data.validateChannelHandleCommand,{form:{handle:(a=h.handleInput.value)!=null?a:""},commandController:{onSuccess:function(P,
K){h.onValidationResponse(K)},
onServerError:function(P,K){h.onValidationServerError(K)}}})}else h.handleUnexpectedValidationError(new _.Gn("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",h.data))}},b)};
_.d.staticValidation=function(b){var h;if(((h=this.data)==null?void 0:h.channelHandleStaticValidationParams)!==void 0){h=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(b)&&h.validValueRegexpErrorMessage!==void 0)return h.validValueRegexpErrorMessage;if(h.minLength!==void 0&&b.length<h.minLength&&h.minLengthErrorMessage!==void 0)return h.minLengthErrorMessage;if(h.maxLength!==void 0&&b.length>h.maxLength&&h.maxLengthErrorMessage!==void 0)return h.maxLengthErrorMessage}};
_.d.onValidationResponse=function(b){var h=_.c(b.result,Ok2);h===void 0?this.handleUnexpectedValidationError(new _.Gn("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",b)):this.handleValidationResultRenderer(h)};
_.d.onValidationServerError=function(b){this.handleUnexpectedValidationError(new _.Gn("ValidateChannelHandle request failed.",b))};
_.d.handleValidationResultRenderer=function(b){if(b.handle===void 0)this.handleUnexpectedValidationError(new _.Gn("ChannelHandleValidationResultRenderer does not contain handle.",b));else if(b.handle===this.handleInput.value)switch(b.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:b.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:b.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.Gn("Unrecognized ChannelHandleValidationResult",b));break;default:_.m5(b.result)}};
_.d.handleUnexpectedValidationError=function(b){var h;this.validationState={status:"UNKNOWN",handle:(h=this.handleInput.value)!=null?h:""};_.vX(b)};
_.d.stopEventPropagation=function(b){b.stopPropagation()};
_.d.updateHandleOnChannelNameInputChange=function(b){if(!this.wasEdited){var h,y;this.debouncedGenerateHandleFromName(b,(y=(h=this.data)==null?void 0:h.validationDelayMs)!=null?y:1E3)}};
_.d.debouncedGenerateHandleFromName=function(b,h){var y=this;_.wy(this,"debouncedGenerateHandleFromName",function(){var S;(S=y.data)!=null&&S.validateChannelHandleCommand?y.ytComponentBehavior.resolveCommand(y.data.validateChannelHandleCommand,{form:{name:b},commandController:{onSuccess:function(F,a){y.onGenerateHandleFromNameResponse(a)},
onServerError:function(F,a){_.vX(new _.Gn("Error calling GenerateHandleFromName",a))}}}):_.vX(new _.Gn("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",y.data))},h)};
_.d.onGenerateHandleFromNameResponse=function(b){this.wasEdited||((b=_.c(b.result,N7Y))?this.setHandleInputValue(b.handle):_.vX(new _.Gn("Invalid results when generate handle from name")))};
_.tm.Object.defineProperties(Ac.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var b;if(b=this.validationState)b=this.validationState,b=b.status==="OK"||b.status==="UNKNOWN";if(b)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var b;if(((b=this.validationState)==null?void 0:b.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 b,h=(b=this.channelHandleEntity)==null?void 0:b.handleEdit;this.handleDir=this.getHandleDir(h!=null?h:"");return h}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var b,h;if(((b=this.data)==null?void 0:(h=b.channelHandleStaticValidationParams)==null?void 0:h.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
Ac.prototype.stopEventPropagation=Ac.prototype.stopEventPropagation;Ac.prototype.onDataChanged=Ac.prototype.onDataChanged;Ac.prototype.applyHandleEdit=Ac.prototype.applyHandleEdit;Ac.prototype.onValueChanged=Ac.prototype.onValueChanged;_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],Ac.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],Ac.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Ac.prototype,"data",void 0);
_.V([_.C(),_.f("design:type",Boolean)],Ac.prototype,"wasEdited",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",String)],Ac.prototype,"handleDir",void 0);_.V([_.to("#handle-input"),_.f("design:type",Object)],Ac.prototype,"handleInput",void 0);_.V([_.C(),_.W("validationState"),_.f("design:type",Object),_.f("design:paramtypes",[])],Ac.prototype,"value",null);
_.V([_.OB("value"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Ac.prototype,"onValueChanged",null);_.V([_.W("validationState"),_.f("design:type",Object),_.f("design:paramtypes",[])],Ac.prototype,"errorIndicator",null);_.V([_.C({reflectToAttribute:!0}),_.W("errorIndicator"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Ac.prototype,"borderErrorIndicator",null);
_.V([_.C({selectorArgs:["data.channelHandleEntityKey"],selector:function(b,h){return _.Mm(b.entities,"channelHandle",h)}}),
_.f("design:type",Object)],Ac.prototype,"channelHandleEntity",void 0);_.V([_.W("channelHandleEntity"),_.f("design:type",Object),_.f("design:paramtypes",[])],Ac.prototype,"handleEdit",null);_.V([_.OB("handleEdit"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Ac.prototype,"applyHandleEdit",null);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Ac.prototype,"onDataChanged",null);
_.V([_.W("data.channelHandleStaticValidationParams.validValueRegexp"),_.f("design:type",Object),_.f("design:paramtypes",[])],Ac.prototype,"validValueRegexp",null);_.V([_.u3("yt-service-request-sent"),_.u3("yt-service-request-completed"),_.u3("yt-service-request-error"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],Ac.prototype,"stopEventPropagation",null);_.V([_.Yx({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],Ac);
_.k(Ac,"ytd-channel-handle-input-renderer",function(){if(OgF!==void 0)return OgF;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return OgF=b},{mode:_.Lt("kevlar_poly_si_batch_j025")?1:2});var Um=function(){var b=_.g.apply(this,arguments)||this;b.data=null;b.errorMessage=null;b.isLoading=!0;b.hideContainer=!1;b.enableNewChannelCreationOnIdForAll=_.r("enable_new_channel_creation_for_id4all");b.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"};b.testOnly={setErrorMessage:function(h){b.resetErrorState();
b.setErrorState(h)}};
return b};
_.z(Um,_.g);_.d=Um.prototype;_.d.created=function(){this.logScreenVe()};
_.d.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")};
_.d.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var b;((b=this.zeroStepErrorMessageEntity)==null?0:b.value)&&this.set("errorMessage",_.mk(this.zeroStepErrorMessageEntity.value))};
_.d.onCreateTap=function(){var b=this;if(this.data&&this.data.channelCreationEndpoint){var h,y;if(!((h=this.data.createChannelButton)==null?0:(y=h.buttonRenderer)==null?0:y.isDisabled)){var S;if((S=this.nameInput)!=null&&S.value){this.setLoadingState();var F,a;h=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(F=this.handleInput)==null?void 0:F.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((a=this.handleInput)==null?void 0:a.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:h,commandController:{onSuccess:function(P,K){b.onChannelCreationEndpointSuccess(K);b.obakeImageSource&&_.qi("channelCreatedWithObakeImage",{imageSourceType:b.obakeImageSource})},
onServerError:function(){b.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.d.endpointRequiresServiceRequestAction=function(b){return!!_.c(b,_.ge)||!!_.c(b,u$A)};
_.d.isNavigateAction=function(b){var h;return!!_.c(b,_.MCq)||!!_.c((h=_.c(b,cpA))==null?void 0:h.command,_.MCq)};
_.d.isPlaylistAction=function(b){return!!_.c(b,_.nj)||!!_.c(b,_.r2)};
_.d.onChannelCreationEndpointSuccess=function(b){if(b.createChannelError){var h;this.setErrorState((h=b.createChannelError)==null?void 0:h.errorMessage);this.handleInput&&this.handleInput.validate()}else{b.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(b.navigationEndpoint);if(b.actions){h=_.L(b.actions);for(var y=h.next();!y.done;y=h.next())if(y=y.value,this.endpointRequiresServiceRequestAction(y)&&this.ytComponentBehavior.resolveCommand(y),this.isNavigateAction(y)){var S=void 0;y=_.c((S=
_.c(y,cpA))==null?void 0:S.command,_.MCq);S=void 0;this.isPlaylistAction((S=y)==null?void 0:S.endpoint)&&(_.F8(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),S=void 0,this.ytComponentBehavior.resolveCommand((S=y)==null?void 0:S.endpoint))}}b.actions&&b.actions.some(function(F){var a;return _.c(F,_.MCq)||_.c((a=_.c(F,cpA))==null?void 0:a.command,_.MCq)})||_.F8(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.d.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.d.onCancelTap=function(){var b,h,y;if(!((b=this.data)==null?0:(h=b.cancelButton)==null?0:(y=h.buttonRenderer)==null?0:y.isDisabled)){var S,F,a;b=(S=this.data)==null?void 0:(F=S.cancelButton)==null?void 0:(a=F.buttonRenderer)==null?void 0:a.command;if(!b||!_.c(b,_.K6n)){var P;this.nameInput&&((P=this.data)==null?0:P.name)&&(this.nameInput.value=this.data.name);var K;this.handleInput&&((K=this.data)==null?0:K.channelHandleInput)&&(this.handleInput.data=_.c(this.data.channelHandleInput,t9x));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.d.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.d.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.d.onClearProfilePhotoTap=function(){var b,h,y;((b=this.data)==null?0:(h=b.clearProfilePhotoButton)==null?0:(y=h.buttonRenderer)==null?0:y.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.d.onEditAvatarTap=function(){var b,h,y;((b=this.data)==null?0:(h=b.editAvatarButton)==null?0:(y=h.buttonRenderer)==null?0:y.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.d.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)};
_.d.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var b;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((b=this.data)==null?0:b.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.d.setErrorState=function(b){this.resetErrorState();if(b)this.set("errorMessage",b);else{var h;if((h=this.zeroStepErrorMessageEntity)==null?0:h.value)this.set("errorMessage",_.mk(this.zeroStepErrorMessageEntity.value));else{var y;((y=this.data)==null?0:y.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.d.fetchImageBlobWithAlr=function(b,h){h=h===void 0?5:h;var y=this,S,F,a,P,K;return _.Z(function(n){switch(n.nextAddress){case 1:return n.yield(fetch(b,{method:"GET",mode:"cors"}),2);case 2:S=n.yieldResult;if(S.ok){n.jumpTo(3);break}if(h===0)throw Error();F=y.addJitter(Math.pow(2,5-h));return n.yield(new Promise(function(X){setTimeout(X,F*1E3)}),4);
case 4:return n.return(y.fetchImageBlobWithAlr(b,h-1));case 3:if(!S.headers.get("content-type").split(";").some(function(X){return X.trim()==="text/plain"})){n.jumpTo(5);
break}a=y;P=a.fetchImageBlobWithAlr;return n.yield(S.text(),6);case 6:return n.return(P.call(a,n.yieldResult,h-1));case 5:return n.yield(S.blob(),7);case 7:return K=n.yieldResult,n.return(K)}})};
_.d.addJitter=function(b){var h=b*.3*Math.random();Math.random()>.5&&(h*=-1);return b+h};
_.d.openProfilePicturePicker=function(){var b=this,h,y,S,F,a,P;return _.Z(function(K){if(K.nextAddress==1){h=b.data.scottyUploadUrl;if(!h)return K.return();y=document.documentElement.hasAttribute("dark");S=document.body.style.colorScheme;y&&(document.body.style.colorScheme="dark");F=SGE(FxE(yJY(qNN(y?"dark":"light")),function(n){var X,u,O,N,t;return _.Z(function(R){if(R.nextAddress==1)return X=_.a6(tSF(new gGA(n.photoUrl,!1)).build(),"alr","yes"),b.obakeImageSource=b.pictureChangeSourceToObakeImageSourceType(n.photoSource),
_.WE(R,2),b.setLoadingState(),R.yield(b.fetchImageBlobWithAlr(X),4);if(R.nextAddress!=2)return u=R.yieldResult,O=new FileReader,O.addEventListener("load",function(){var I,U,p,e,E,Y;return _.Z(function(w){if(w.nextAddress==1){if(u.size>15728640)return b.setErrorState((I=b.data)==null?void 0:I.imageSizeErrorMessage),_.vX(Error("Jl")),w.return();if(!O.result)return b.setErrorState((U=b.data)==null?void 0:U.genericImageLoadErrorMessage),_.vX(Error("Kl")),w.return();p=O.result;_.WE(w,2);return w.yield(jyq(u,
h),4)}if(w.nextAddress!=2)return e=w.yieldResult,b.handleImageUpdatedAction(p,e),b.resetErrorState(),_.Lz(w,0);E=_.C$(w);b.setErrorState((Y=b.data)==null?void 0:Y.uploadErrorMessage);if(E instanceof Error)_.QT(E);else{var x=new _.Gn(JSON.stringify(E));_.QT(x)}_.g3(w)})}),O.readAsDataURL(u),_.Lz(R,0);
N=_.C$(R);b.setErrorState((t=b.data)==null?void 0:t.genericImageLoadErrorMessage);N instanceof Error?_.QT(N):_.mm(new _.Gn(JSON.stringify(N)));_.g3(R)})}),function(){b.hideContainer=!1;
document.body.style.colorScheme=S});
_.WE(K,2);return((a=b.data)==null?0:a.shouldViewChannelCreationFormForSupex)?K.yield(F.openPicker("profile-picture/art-selection"),5):K.yield(F.openPicker(),5)}if(K.nextAddress!=2)return _.Lz(K,0);_.C$(K);b.setErrorState((P=b.data)==null?void 0:P.selectImageErrorMessage);_.g3(K)})};
_.d.pictureChangeSourceToObakeImageSourceType=function(b){switch(b){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.d.logScreenVe=function(){_.w2(_.rU(),124448)};
_.d.graftServerVe=function(){var b=_.Ae(),h,y,S=(h=this.data)==null?void 0:(y=h.loggingDirectives)==null?void 0:y.trackingParams;S&&b&&(this.channelCreationFormVe=_.rU().graftServerVe(S,b),b={visualElement:this.channelCreationFormVe},_.OQ().reportShown(b))};
_.d.isNameChanged=function(b){var h;return((h=this.data)==null?void 0:h.name)!==b};
_.d.isHandleChanged=function(b){var h,y=_.c((h=this.data)==null?void 0:h.channelHandleInput,t9x);return y&&b?y.handle!==b:!1};
_.d.handleImageUpdatedAction=function(b,h){this.hideContainer=!1;this.previewDataUrl=b;this.encryptedBlobId=h};
_.d.handleImageSelectionErrorAction=function(b){this.hideContainer=!1;this.setErrorState(b)};
_.d.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.d.showContainer=function(){this.hideContainer=!1};
_.d.maybeWipeZeroStepErrorMessage=function(){var b,h=(b=this.data)==null?void 0:b.zeroStepErrorMessageEntityKey,y;h&&((y=this.zeroStepErrorMessageEntity)==null?0:y.value)&&this.ytdReduxBehavior.dispatch(_.R7("stringEntity",h,{key:h,value:""}))};
_.tm.Object.defineProperties(Um.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 b;return((b=this.photoThumbnail)==null?0:b.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 b;return!((b=this.data)==null||!b.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var b;return(b=this.data)==null?void 0:b.descriptionInfo}}});
Um.prototype.dataChanged=Um.prototype.dataChanged;_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],Um.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],Um.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],Um.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Um.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],Um.prototype,"errorMessage",void 0);
_.V([_.C(),_.f("design:type",Object)],Um.prototype,"isLoading",void 0);_.V([_.C(),_.f("design:type",String)],Um.prototype,"previewDataUrl",void 0);_.V([_.C(),_.f("design:type",Number)],Um.prototype,"obakeImageSource",void 0);_.V([_.C(),_.f("design:type",Object)],Um.prototype,"hideContainer",void 0);_.V([_.to("#title-input"),_.f("design:type",Object)],Um.prototype,"nameInput",void 0);_.V([_.to("#handle-input"),_.f("design:type",Object)],Um.prototype,"handleInput",void 0);
_.V([_.C(),_.f("design:type",Boolean)],Um.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.V([_.C({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.lHn}),_.f("design:type",Object)],Um.prototype,"zeroStepErrorMessageEntity",void 0);_.V([_.W("data","data.isDefaultProfilePhoto","previewDataUrl"),_.f("design:type",Object),_.f("design:paramtypes",[])],Um.prototype,"photoThumbnail",null);
_.V([_.W("data","data.isDefaultProfilePhoto","photoThumbnail"),_.f("design:type",Object),_.f("design:paramtypes",[])],Um.prototype,"userSetPhotoThumbnailUrl",null);_.V([_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Um.prototype,"hideProfilePhotoButtonLayer",null);_.V([_.C({reflectToAttribute:!0}),_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Um.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.V([_.zj("data","zeroStepErrorMessageEntity"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Um.prototype,"dataChanged",null);_.V([_.C({reflectToAttribute:!0}),_.W("data.descriptionInfo","zeroStepErrorMessageEntity"),_.f("design:type",Object),_.f("design:paramtypes",[])],Um.prototype,"description",null);_.V([_.Yx({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],Um);
_.k(Um,"ytd-channel-creation-dialog-renderer",function(){if(uJA!==void 0)return uJA;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return uJA=b},{mode:1});var N6f;var p3=function(){var b=_.g.apply(this,arguments)||this;b.isLoading=!1;b.isDisabled=!1;return b};
_.z(p3,_.g);p3.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
p3.prototype.updateDisabled=function(){var b;this.isDisabled=this.isLoading||((b=this.handleInput)==null?void 0:b.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
p3.prototype.onSaveClick=function(){var b=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var h;((h=this.data)==null?void 0:h.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 y;if((y=b.data)==null?0:y.nextEndpoint){var S;b.ytComponentBehavior.resolveCommand((S=b.data)==null?void 0:S.nextEndpoint)}else b.isLoading=
!1,b.closeDialog()},
onServerError:function(){b.isLoading=!1;b.handleInput.validate();var y;b.errorMessage=(y=b.data)==null?void 0:y.errorMessage}}}))}};
p3.prototype.closeDialog=function(){_.F8(this.hostElement,"yt-close-popup-action",[this.is])};
p3.prototype.updateDisabled=p3.prototype.updateDisabled;_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],p3.prototype,"ytComponentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],p3.prototype,"data",void 0);_.V([_.to("#handle-input"),_.f("design:type",Object)],p3.prototype,"handleInput",void 0);_.V([_.OB("isLoading"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],p3.prototype,"updateDisabled",null);
_.V([_.Yx({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],p3);
_.k(p3,"ytd-channel-handle-edit-dialog-renderer",function(){if(N6f!==void 0)return N6f;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return N6f=b},{mode:1});var tvX;var Jc=function(){return _.g.apply(this,arguments)||this};
_.z(Jc,_.g);Jc.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Jc.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Jc.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Jc.prototype,"data",void 0);_.V([_.Yx({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],Jc);
_.k(Jc,"ytd-channel-switcher-footer-renderer",function(){if(tvX!==void 0)return tvX;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return tvX=b},{mode:1});var rsf;var csA;var ef=function(){return _.g.apply(this,arguments)||this};
_.z(ef,_.g);ef.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
ef.prototype.onIronChange=ef.prototype.onIronChange;_.V([_.C(),_.f("design:type",Object)],ef.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!1}),_.f("design:type",Function)],ef.prototype,"onDontAskAgainChanged",void 0);_.V([_.to("#checkbox"),_.f("design:type",Object)],ef.prototype,"checkbox",void 0);_.V([_.u3("iron-change"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],ef.prototype,"onIronChange",null);
_.V([_.Yx({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],ef);
_.k(ef,"ytd-identity-prompt-footer-renderer",function(){if(csA!==void 0)return csA;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return csA=b},{mode:1});var C3=function(){var b=_.g.apply(this,arguments)||this;b.dontAskAgain=!1;b.showPopup=!1;b.boundDontAskAgainChanged=function(h){b.dontAskAgainChanged(h)};
b.boundOnAccountItemTap=function(h){b.onAccountItemTap(h)};
return b};
_.z(C3,_.g);_.d=C3.prototype;
_.d.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]]"}}}}}};
_.d.ready=function(){var b=this;_.$x(this.hostElement).querySelector("#container").addEventListener("scroll",function(){b.ytRendererBehavior.markDirty()})};
_.d.dontAskAgainChanged=function(b){this.dontAskAgain=b};
_.d.onAccountItemTap=function(b){if(b){var h={};this.dontAskAgain&&(h={dont_ask_again:this.dontAskAgain});_.GM(b,h)}};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.d.redirectOnlyAccount=function(b){b.sections&&b.sections.length>0&&(b=_.c(b.sections[0],_.OH7),(b==null?0:b.contents)&&(b==null?void 0:b.contents.length)<=1?(b=_.dH(window.location.href),(b==null?0:b.next)&&_.Fyn(b.next)?_.GM(b.next):_.GM("/")):this.showPopup=!0)};
C3.prototype.dataChanged=C3.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],C3.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],C3.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],C3.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!1}),_.f("design:type",Object)],C3.prototype,"dontAskAgain",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],C3.prototype,"showPopup",void 0);_.V([_.C({reflectToAttribute:!1}),_.f("design:type",Object)],C3.prototype,"boundDontAskAgainChanged",void 0);_.V([_.C({reflectToAttribute:!1}),_.f("design:type",Object)],C3.prototype,"boundOnAccountItemTap",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],C3.prototype,"dataChanged",null);
_.V([_.Yx({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],C3);
_.k(C3,"ytd-channel-switcher-renderer",function(){if(rsf!==void 0)return rsf;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return rsf=b},{mode:1});var RJP;var gK=function(){return _.g.apply(this,arguments)||this};
_.z(gK,_.g);_.tm.Object.defineProperties(gK.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.V([_.C(),_.f("design:type",Object)],gK.prototype,"data",void 0);_.V([_.W("data"),_.f("design:type",Array),_.f("design:paramtypes",[])],gK.prototype,"steps",null);_.V([_.Yx({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],gK);
_.k(gK,"ytd-channel-transfer-stepper-renderer",function(){if(RJP!==void 0)return RJP;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return RJP=b},{mode:1});var zJq;var sm=function(){var b=_.g.apply(this,arguments)||this;b.data=null;b.isError=!1;b.isLoading=!1;return b};
_.z(sm,_.g);_.d=sm.prototype;_.d.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"}}}};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.d.computeProfileName=function(b){return b?b.givenNameValue+" "+b.familyNameValue:""};
_.d.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)};
_.d.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)};
sm.prototype.onYtServiceRequestError=sm.prototype.onYtServiceRequestError;sm.prototype.onYtServiceRequestSent=sm.prototype.onYtServiceRequestSent;sm.prototype.dataChanged=sm.prototype.dataChanged;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],sm.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],sm.prototype,"data",void 0);
_.V([_.C({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.f("design:type",String)],sm.prototype,"profileName",void 0);_.V([_.C(),_.f("design:type",Object)],sm.prototype,"isError",void 0);_.V([_.C(),_.f("design:type",Object)],sm.prototype,"isLoading",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],sm.prototype,"dataChanged",null);
_.V([_.u3("yt-service-request-sent"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,_.kE]),_.f("design:returntype")],sm.prototype,"onYtServiceRequestSent",null);_.V([_.u3("yt-service-request-error"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,_.kE]),_.f("design:returntype")],sm.prototype,"onYtServiceRequestError",null);_.V([_.Yx({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],sm);
_.k(sm,"ytd-channel-warm-welcome-cont-renderer",function(){if(zJq!==void 0)return zJq;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return zJq=b},{mode:1});var DWq;var Yh=function(){var b=_.g.apply(this,arguments)||this;b.data=null;return b};
_.z(Yh,_.g);Yh.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Yh.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Yh.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Yh.prototype,"data",void 0);_.V([_.Yx({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],Yh);
_.k(Yh,"ytd-channel-warm-welcome-renderer",function(){if(DWq!==void 0)return DWq;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return DWq=b},{mode:1});var IpP;var TX=function(){return _.g.apply(this,arguments)||this};
_.z(TX,_.g);_.tm.Object.defineProperties(TX.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.data)==null?void 0:b.authorThumbnail)||{}}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],TX.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],TX.prototype,"data",void 0);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],TX.prototype,"thumbnailDetails",null);_.V([_.Yx({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],TX);
_.k(TX,"ytd-comment-preview-renderer",function(){if(IpP!==void 0)return IpP;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return IpP=b},{mode:1});var B6x;var GX=function(){return _.g.apply(this,arguments)||this};
_.z(GX,_.g);GX.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.tm.Object.defineProperties(GX.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var b;return(b=this.data)==null?void 0:b.submitButton}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],GX.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],GX.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],GX.prototype,"data",void 0);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],GX.prototype,"submitButton",null);_.V([_.Yx({is:"ytd-notice-renderer",disableElementRegistration:!0})],GX);
_.k(GX,"ytd-notice-renderer",function(){if(B6x!==void 0)return B6x;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return B6x=b},{mode:1});var WKf;var kh=function(){return _.g.apply(this,arguments)||this};
_.z(kh,_.g);kh.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],kh.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],kh.prototype,"data",void 0);_.V([_.Yx({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],kh);
_.k(kh,"ytd-preview-comment-dialog-content",function(){if(WKf!==void 0)return WKf;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return WKf=b},{mode:1});var As2;var V6=function(){return _.g.apply(this,arguments)||this};
_.z(V6,_.g);V6.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
V6.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],V6.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],V6.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],V6.prototype,"data",void 0);_.V([_.Yx({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],V6);
_.k(V6,"ytd-preview-comment-dialog-renderer",function(){if(As2!==void 0)return As2;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return As2=b},{mode:1});var UWx;var p7F=_.r("web_button_rework")&&_.m$("BUTTON_REWORK")||_.r("web_button_rework_with_live"),Em=function(){var b=_.g.apply(this,arguments)||this;b.closeLabel=_.Mt("CLOSE");b.selectedAmountIndex=1;b.privacyCheckboxValue=!1;b.useAmsterdamStyle=p7F;b.amountPlaceholderIndex=-1;return b};
_.z(Em,_.g);_.d=Em.prototype;_.d.onAmountClick=function(b){this.selectedAmountIndex=_.$x(this.hostElement).querySelector("#amounts").indexForElement(b.currentTarget)};
_.d.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.F8(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.d.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.F8(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.F8(this.hostElement,"yt-close-popup-action",[this.is]);var b;(b=_.ye())==null||b.getPlayerPromise().then(function(h){h.pauseVideo()})}};
_.d.donationCallback=function(b){b.success?(this.hostElement.hasAttribute("live-chat")&&b.response&&b.response.data&&b.response.data.actions&&_.F8(this.hostElement,"yt-live-chat-open-popup",[b.response.data.actions[0]]),_.F8(this.hostElement,"yt-close-popup-action",[this.is]),_.F8(this.hostElement,"yt-live-chat-close-buy-flow")):b.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(b.errorMessageRenderer)};
_.d.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.$x(this.hostElement).querySelector("#custom-amount-input").focus()};
_.d.updateConfirmationDialogTextWithAmount=function(b){var h=this.getConfirmDialogRuns();h&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(h),"text"],this.getFormattedAmount(b))};
_.d.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.d.getAmountPlaceholderIndex=function(b){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=b.findIndex(function(h){return h.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.d.getFormattedAmount=function(b){var h;return(new _.wR(4,((h=this.data)==null?void 0:h.currencyCode)||"")).format(b)};
_.d.isAmountValid=function(b){if(b==="")return!1;b=Number(b)*1E6;var h=this.get("minAmountMicros",this.data),y=this.get("maxAmountMicros",this.data);return h&&b<h||y&&b>y?!1:!0};
_.d.setInputError=function(){this.shouldShowValidationError?_.$x(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.$x(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.d.setInitialCheckboxValue=function(){var b;this.privacyCheckboxValue=!((b=this.data)==null||!b.privacyCheckboxInitialState)};
_.d.updateCustomAmountInputFromBinding=function(b){this.customAmountInput=b.detail.value};
_.d.updatePrivacyCheckboxValueFromBinding=function(b){this.privacyCheckboxValue=b.detail.value};
_.tm.Object.defineProperties(Em.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var b=this,h,y;return((h=this.data)==null?void 0:(y=h.suggestedAmounts)==null?void 0:y.map(function(S,F){return{buttonRenderer:{style:b.selectedAmountIndex===F?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:S.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 b;return!((b=this.data)==null||!b.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 b=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(b&&this.amountMicros!==null)return Object.assign({},b,{ypcGetCartEndpoint:Object.assign({},b.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 b=this.get("confirmLargeAmount",this.data);if(b&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),b}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var b=this.get("donateButton.buttonRenderer",this.data);if(b)return Object.assign({},b,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
Em.prototype.setInitialCheckboxValue=Em.prototype.setInitialCheckboxValue;Em.prototype.setInputError=Em.prototype.setInputError;Em.prototype.setFocusOnCustomAmountInput=Em.prototype.setFocusOnCustomAmountInput;_.V([_.B(Kuf),_.f("design:type",Object)],Em.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Em.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Em.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Em.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],Em.prototype,"closeLabel",void 0);_.V([_.C(),_.f("design:type",Object)],Em.prototype,"selectedAmountIndex",void 0);_.V([_.C(),_.f("design:type",String)],Em.prototype,"customAmountInput",void 0);_.V([_.C(),_.f("design:type",Object)],Em.prototype,"privacyCheckboxValue",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],Em.prototype,"useAmsterdamStyle",void 0);_.V([_.OB("customAmount"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Em.prototype,"setFocusOnCustomAmountInput",null);_.V([_.W("data","selectedAmountIndex"),_.f("design:type",Array),_.f("design:paramtypes",[])],Em.prototype,"suggestedAmountButtons",null);
_.V([_.W("data","selectedAmountIndex"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Em.prototype,"isCustomAmountSelected",null);_.V([_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Em.prototype,"showPrivacyCheckbox",null);_.V([_.W("data","selectedAmountIndex","customAmount"),_.f("design:type",Object),_.f("design:paramtypes",[])],Em.prototype,"amountMicros",null);
_.V([_.W("isCustomAmountSelected","customAmountInput"),_.f("design:type",Object),_.f("design:paramtypes",[])],Em.prototype,"customAmount",null);_.V([_.W("customAmount"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Em.prototype,"shouldShowValidationError",null);_.V([_.W("customAmount"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],Em.prototype,"isDonateButtonEnabled",null);
_.V([_.W("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.f("design:type",Object),_.f("design:paramtypes",[])],Em.prototype,"donateCommand",null);_.V([_.W("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.f("design:type",Object),_.f("design:paramtypes",[])],Em.prototype,"donateCommandWithConfirmation",null);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],Em.prototype,"largeDonationThreshold",null);
_.V([_.W("customAmount","donateCommand","amountMicros"),_.f("design:type",Object),_.f("design:paramtypes",[])],Em.prototype,"confirmLargeAmountCommand",null);_.V([_.W("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.f("design:type",Object),_.f("design:paramtypes",[])],Em.prototype,"donateButtonRenderer",null);_.V([_.OB("shouldShowValidationError"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Em.prototype,"setInputError",null);
_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Em.prototype,"setInitialCheckboxValue",null);_.V([_.Yx({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],Em);
_.k(Em,"ytd-donation-amount-picker-renderer",function(){if(UWx!==void 0)return UWx;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return UWx=b},{mode:1});var Jsf;var eJx=function(){return _.g.apply(this,arguments)||this};
_.z(eJx,_.g);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],eJx.prototype,"ytComponentBehavior",void 0);_.V([_.C({}),_.f("design:type",Object)],eJx.prototype,"data",void 0);_.V([_.Yx({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],eJx);
_.k(eJx,"ytd-donation-post-transaction-content",function(){if(Jsf!==void 0)return Jsf;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return Jsf=b},{mode:1});var CsP;var i8=function(){return _.g.apply(this,arguments)||this};
_.z(i8,_.g);i8.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],i8.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],i8.prototype,"ytRendererBehavior",void 0);_.V([_.C({}),_.f("design:type",Object)],i8.prototype,"data",void 0);_.V([_.Yx({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],i8);
_.k(i8,"ytd-donation-post-transaction-renderer",function(){if(CsP!==void 0)return CsP;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return CsP=b},{mode:1});var g1E;var snP;var f3=function(){return _.g.apply(this,arguments)||this};
_.z(f3,_.g);f3.prototype.computeIsStreamingProvider=function(b){return!!b.isStreamingShelf};
f3.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],f3.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],f3.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],f3.prototype,"data",void 0);_.V([_.C({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.f("design:type",Boolean)],f3.prototype,"isStreamingProvider",void 0);
_.V([_.Yx({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],f3);
_.k(f3,"ytd-media-provider-renderer",function(){if(snP!==void 0)return snP;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return snP=b},{mode:1});var Y2Y;var wK=function(){return _.g.apply(this,arguments)||this};
_.z(wK,_.g);wK.prototype.observeLightsourcePalette=function(){var b,h=(b=this.data)==null?void 0:b.vibrantsourceColorPaletteData;h&&_.IF(this.hostElement,h)};
wK.prototype.observeLightsourcePalette=wK.prototype.observeLightsourcePalette;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],wK.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],wK.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],wK.prototype,"data",void 0);
_.V([_.OB("data.vibrantsourceColorPaletteData"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],wK.prototype,"observeLightsourcePalette",null);_.V([_.Yx({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],wK);
_.k(wK,"ytd-streaming-pop-up-dialog",function(){if(Y2Y!==void 0)return Y2Y;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return Y2Y=b},{mode:1});var l8=function(){return _.g.apply(this,arguments)||this};
_.z(l8,_.g);l8.prototype.onPopupOpened_=function(){var b;((b=this.data)==null?0:b.serviceEndpoint)&&_.H9().resolve(_.OM).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
l8.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
l8.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"}}}}};
l8.prototype.onPopupOpened_=l8.prototype.onPopupOpened_;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],l8.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],l8.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.p1),_.f("design:type",Object)],l8.prototype,"ytContinuationHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],l8.prototype,"data",void 0);
_.V([_.u3("yt-popup-opened"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],l8.prototype,"onPopupOpened_",null);_.V([_.Yx({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],l8);
_.k(l8,"ytd-brandconnect-popup-renderer",function(){if(g1E!==void 0)return g1E;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return g1E=b},{mode:1});var T6E;var qv=function(){return _.g.apply(this,arguments)||this};
_.z(qv,_.g);_.d=qv.prototype;_.d.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.dataChanged=function(){for(var b=0;b<this.getOptionRenderers().length;b++)this.notifyPath("data.options."+b+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+b+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.d.updateSubmitButton=function(b){this.set("data.submitButton.buttonRenderer.isDisabled",!b)};
_.d.computeAlt=function(b){return _.vi(b)};
_.d.onDismissTap=function(){_.F8(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.H9().resolve(_.OM).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.d.getOptionRenderers=function(b){return(b=b||this.data)&&b.options?b.options.reduce(function(h,y){y.checkboxSurveyOptionRenderer&&h.push(y.checkboxSurveyOptionRenderer);return h},[]):[]};
_.d.onOptionChange=function(b){var h=this,y=!1;if(b.detail.checked)for(var S=this.getOptionRenderers().find(function(K){return K.value===b.detail.value}),F=this.getOptionRenderers(),a=0;a<F.length;a++){var P=F[a];
this.notifyPath("data.options."+a+".checkboxSurveyOptionRenderer.checked");P.checked&&((S==null?0:S.isExclusiveOption)?!P.isExclusiveOption:P.isExclusiveOption)?this.set("data.options."+a+".checkboxSurveyOptionRenderer.checked",!1):P.checked&&(y=!0)}else y=this.getOptionRenderers().some(function(K,n){h.notifyPath("data.options."+n+".checkboxSurveyOptionRenderer.checked");return K.checked});
this.updateSubmitButton(y)};
_.d.onSubmitTap=function(){var b=this.getOptionRenderers().filter(function(a){return a.checked});
if(b.length!==0){var h=b.map(function(a){return a.responseEndpoint});
b=[];for(var y=1;y<h.length;y++){var S=void 0,F=(S=_.c(h[y],_.s9))==null?void 0:S.feedbackToken;F&&b.push(F)}h=[h[0]];b.length&&h.push({extra_feedback_tokens:b});_.dh(this.hostElement,h);_.F8(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);b=this.data&&this.data.submitActions||[];if(_.r("kevlar_command_handler_migration_killswitch"))_.jx(this.hostElement,b,this.hostElement);else for(b=_.L(b),h=b.next();!h.done;h=b.next())this.ytComponentBehavior.resolveCommand(h.value)}};
qv.prototype.onOptionChange=qv.prototype.onOptionChange;qv.prototype.dataChanged=qv.prototype.dataChanged;_.V([_.B(_.PQ.YtEventForwardingBehavior),_.f("design:type",Object)],qv.prototype,"ytEventForwardingBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],qv.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],qv.prototype,"ytComponentBehavior",void 0);
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],qv.prototype,"ytRendererBehavior",void 0);_.V([_.B(WuN),_.f("design:type",Object)],qv.prototype,"ytdHatsSurveyBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],qv.prototype,"data",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],qv.prototype,"dataChanged",null);
_.V([_.u3("ytd-checkbox-survey-option-changed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],qv.prototype,"onOptionChange",null);_.V([_.Yx({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],qv);
_.k(qv,"ytd-checkbox-survey-renderer",function(){if(T6E!==void 0)return T6E;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return T6E=b},{mode:1});var G1Y;var k1X;var xh=function(){return _.g.apply(this,arguments)||this};
_.z(xh,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],xh.prototype,"ytRendererBehavior",void 0);_.V([_.B(BtA),_.f("design:type",Object)],xh.prototype,"ytdDismissalReasonBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],xh.prototype,"data",void 0);_.V([_.Yx({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],xh);
_.k(xh,"ytd-dismissal-reason-text-renderer",function(){if(k1X!==void 0)return k1X;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return k1X=b},{mode:1});var VvA;var Q6=function(){return _.g.apply(this,arguments)||this};
_.z(Q6,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Q6.prototype,"ytRendererBehavior",void 0);_.V([_.B(BtA),_.f("design:type",Object)],Q6.prototype,"ytdDismissalReasonBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Q6.prototype,"data",void 0);_.V([_.Yx({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],Q6);
_.k(Q6,"ytd-dismissal-reason-video-renderer",function(){if(VvA!==void 0)return VvA;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return VvA=b},{mode:1});var ma=function(){return _.g.apply(this,arguments)||this};
_.z(ma,_.g);_.d=ma.prototype;_.d.created=function(){this.selectedFeedbackTokens=new Zz};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.d.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.d.onDismissalReasonSelected=function(b,h){_.Sx(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(h);this.hasReasonsSelected=!0};
_.d.onDismissalReasonDeselected=function(b,h){_.Sx(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(h);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.d.onCancelTap=function(){_.F8(this.hostElement,"yt-close-popup-action")};
_.d.onSubmitTap=function(){var b=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(b={feedback_tokens:b},_.H9().resolve(_.OM).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},b,{element:this.hostElement})}));_.F8(this.hostElement,"yt-close-popup-action")};
ma.prototype.onDismissalReasonDeselected=ma.prototype.onDismissalReasonDeselected;ma.prototype.onDismissalReasonSelected=ma.prototype.onDismissalReasonSelected;ma.prototype.dataChanged=ma.prototype.dataChanged;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],ma.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],ma.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],ma.prototype,"data",void 0);
_.V([_.C(),_.f("design:type",Boolean)],ma.prototype,"hasReasonsSelected",void 0);_.V([_.C(),_.f("design:type",Zz)],ma.prototype,"selectedFeedbackTokens",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],ma.prototype,"dataChanged",null);_.V([_.u3("yt-dismissal-reason-selected"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,String]),_.f("design:returntype")],ma.prototype,"onDismissalReasonSelected",null);
_.V([_.u3("yt-dismissal-reason-deselected"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,String]),_.f("design:returntype")],ma.prototype,"onDismissalReasonDeselected",null);_.V([_.Yx({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],ma);
_.k(ma,"ytd-dismissal-follow-up-renderer",function(){if(G1Y!==void 0)return G1Y;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return G1Y=b},{mode:1});var E1f;var vU=function(){return _.g.apply(this,arguments)||this};
_.z(vU,_.g);_.d=vU.prototype;_.d.onCheckedChange=function(){this.multiselect||_.Sx(this.hostElement,"yt-feedback-single-select-changed");_.$x(this.hostElement).querySelector("#freeform").focus();_.Sx(this.hostElement,"yt-refit")};
_.d.showTextBox=function(b,h){return b&&h};
_.d.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))};
_.d.updateDataCheckedFromBinding=function(b){this.set("data.checked",b.detail.value)};
_.d.updateDataResultTextFromBinding=function(b){this.set("data.resultText",b.detail.value)};
vU.prototype.dataChanged=vU.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],vU.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],vU.prototype,"data",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],vU.prototype,"multiselect",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],vU.prototype,"dataChanged",null);
_.V([_.Yx({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],vU);
_.k(vU,"ytd-feedback-option-renderer",function(){if(E1f!==void 0)return E1f;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return E1f=b},{mode:1});var igA;var bO=function(){return _.g.apply(this,arguments)||this};
_.z(bO,_.g);bO.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
bO.prototype.onSingleSelectCheckedChanged=function(b){b=_.mi(b);for(var h=0;h<this.data.options.length;h++)if(b.data!==_.c(this.data.options[h],dYd)){var y="data.options."+h+".feedbackOptionRenderer.checked";this.notifyPath(y);this.set(y,!1)}};
bO.prototype.onSingleSelectCheckedChanged=bO.prototype.onSingleSelectCheckedChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],bO.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],bO.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],bO.prototype,"data",void 0);
_.V([_.u3("yt-feedback-single-select-changed"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],bO.prototype,"onSingleSelectCheckedChanged",null);_.V([_.Yx({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],bO);
_.k(bO,"ytd-feedback-question-renderer",function(){if(igA!==void 0)return igA;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return igA=b},{mode:1});var fpX;var hn=function(){return _.g.apply(this,arguments)||this};
_.z(hn,_.g);hn.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
hn.prototype.getSelectedFeedbackResults=function(){for(var b={},h=0;h<this.data.questions.length;h++)for(var y=_.c(this.data.questions[h],aid),S=0;S<y.options.length;S++){var F=_.c(y.options[S],dYd);F&&F.checked&&(b[F.optionKey]=F.resultText)}return b};
hn.prototype.onKeyUp=function(){var b=this;_.js(_.xP,function(){_.Sx(b.hostElement,"yt-refit")});
_.xP.start()};
hn.prototype.submitSurvey=function(){var b=this.getSelectedFeedbackResults();Object.keys(b).length>0&&this.data.submitFeedbackEndpoint&&(b={survey_results:b,is_feedback_token_unencrypted:!0},_.H9().resolve(_.OM).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},b,{element:this.hostElement})}))};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],hn.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],hn.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],hn.prototype,"data",void 0);_.V([_.Yx({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],hn);
_.k(hn,"ytd-feedback-survey-renderer",function(){if(fpX!==void 0)return fpX;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return fpX=b},{mode:1});var w7A;var lpF;var yS=function(){return _.g.apply(this,arguments)||this};
_.z(yS,_.g);yS.prototype.computeAlt=function(b){return _.vi(b)};
yS.prototype.submitResponse=function(){var b,h;(b=this.data)!=null&&b.feedbackToken&&((h=this.data)==null?void 0:h.nextStageIndex)!==void 0&&(_.aw(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.aw(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
yS.prototype.onClick=function(){this.submitResponse()};
yS.prototype.onClick=yS.prototype.onClick;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],yS.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],yS.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],yS.prototype,"vertical",void 0);_.V([_.u3("click"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],yS.prototype,"onClick",null);
_.V([_.Yx({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],yS);
_.k(yS,"ytd-single-select-answer-option-renderer",function(){if(lpF!==void 0)return lpF;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return lpF=b},{mode:1});var q2P;var ST=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return b};
_.z(ST,_.g);ST.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
ST.prototype.dataChanged=function(){var b,h;this.vertical=((h=(b=this.data)==null?void 0:b.answerOrientation)!=null?h:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
ST.prototype.submitFeedback=function(b){var h;((h=this.data)==null?0:h.responseEndpoint)&&b&&_.dh(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[b]}])};
ST.prototype.dataChanged=ST.prototype.dataChanged;_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],ST.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.PQ.YtEventForwardingBehavior),_.f("design:type",Object)],ST.prototype,"eventForwardingBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],ST.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],ST.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],ST.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],ST.prototype,"vertical",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],ST.prototype,"dataChanged",null);_.V([_.Yx({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],ST);
_.k(ST,"ytd-single-select-question-renderer",function(){if(q2P!==void 0)return q2P;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return q2P=b},{mode:1});var FT=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return b};
_.z(FT,_.g);_.d=FT.prototype;_.d.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"}}}};
_.d.dataChanged=function(){this.jumpToStage(0)};
_.d.jumpToStage=function(b){var h,y;if((h=this.data)==null?0:(y=h.stages)==null?0:y[b])this.currentStage=this.data.stages[b],this.refitAfterRender()};
_.d.computeAlt=function(b){return _.vi(b)};
_.d.computeSimpleMessage=function(b){var h;return(h=_.c(b,LzA))==null?void 0:h.messageText};
_.d.computeHideDismiss=function(b){var h;return(h=_.c(b,gox))==null?void 0:h.hideParentDismissButton};
_.d.onDismissTap=function(){_.F8(this.hostElement,"yt-close-popup-action");_.c(this.currentStage,LzA)||this.data.dismissalEndpoint&&_.H9().resolve(_.OM).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.d.refitAfterRender=function(){var b=this;_.Ob(this,function(){_.Sx(b.hostElement,"yt-refit")})};
FT.prototype.dataChanged=FT.prototype.dataChanged;_.V([_.B(_.PQ.YtEventForwardingBehavior),_.f("design:type",Object)],FT.prototype,"eventForwardingBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],FT.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],FT.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],FT.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.B(WuN),_.f("design:type",Object)],FT.prototype,"ytdHatsSurveyBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],FT.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],FT.prototype,"currentStage",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],FT.prototype,"dataChanged",null);_.V([_.Yx({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],FT);
_.k(FT,"ytd-multi-stage-survey-renderer",function(){if(w7A!==void 0)return w7A;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return w7A=b},{mode:1});var xWA;var a1=function(){return _.g.apply(this,arguments)||this};
_.z(a1,_.g);a1.prototype.computeAlt=function(b){return _.vi(b)};
a1.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.H9().resolve(_.OM).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.F8(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.AoA(!1)))};
a1.prototype.onTap=function(){this.vertical&&this.submitResponse()};
a1.prototype.onTap=a1.prototype.onTap;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],a1.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],a1.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],a1.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],a1.prototype,"vertical",void 0);
_.V([_.u3("tap"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],a1.prototype,"onTap",null);_.V([_.Yx({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],a1);
_.k(a1,"ytd-single-option-survey-option-renderer",function(){if(xWA!==void 0)return xWA;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return xWA=b},{mode:1});var Qnx;var di=function(){return _.g.apply(this,arguments)||this};
_.z(di,_.g);_.d=di.prototype;_.d.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.dataChanged=function(){var b,h;this.vertical=(((b=this.data)==null?void 0:(h=b.surveyOrientation)==null?void 0:h.type)||"HORIZONTAL")==="VERTICAL"};
_.d.computeAlt=function(b){return _.vi(b)};
_.d.onDismissTap=function(){_.F8(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.H9().resolve(_.OM).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.AoA(!1))};
di.prototype.dataChanged=di.prototype.dataChanged;_.V([_.B(_.PQ.YtEventForwardingBehavior),_.f("design:type",Object)],di.prototype,"eventForwardingBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],di.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],di.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(WuN),_.f("design:type",Object)],di.prototype,"ytdHatsSurveyBehavior",void 0);
_.V([_.B(_.NT),_.f("design:type",Object)],di.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],di.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],di.prototype,"vertical",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],di.prototype,"dataChanged",null);_.V([_.Yx({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],di);
_.k(di,"ytd-single-option-survey-renderer",function(){if(Qnx!==void 0)return Qnx;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return Qnx=b},{mode:1});var mWf;var jT=function(){return _.g.apply(this,arguments)||this};
_.z(jT,_.g);jT.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
jT.prototype.onDismissTap=function(){_.F8(this.hostElement,"yt-close-popup-action")};
jT.prototype.onNavigate=function(){_.F8(this.hostElement,"yt-close-popup-action")};
jT.prototype.onNavigate=jT.prototype.onNavigate;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],jT.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.PQ.YtEventForwardingBehavior),_.f("design:type",Object)],jT.prototype,"ytEventForwardingBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],jT.prototype,"data",void 0);_.V([_.u3("yt-navigate"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],jT.prototype,"onNavigate",null);
_.V([_.Yx({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],jT);
_.k(jT,"ytd-survey-follow-up-renderer",function(){if(mWf!==void 0)return mWf;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return mWf=b},{mode:1});var v1Y;var bsA;var h1a;var $4=function(){var b=_.g.apply(this,arguments)||this;b.polymer2="Element"in Polymer;return b};
_.z($4,_.g);_.d=$4.prototype;_.d.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.d.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.d.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.d.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ut("minutes-changed",this.minutes))};
_.d.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ut("seconds-changed",this.seconds))};
_.d.updateMinutesFromBinding=function(b){this.minutes=b.detail.value};
_.d.updateSecondsFromBinding=function(b){this.seconds=b.detail.value};
$4.prototype.secondsChangedForBinding=$4.prototype.secondsChangedForBinding;$4.prototype.minutesChangedForBinding=$4.prototype.minutesChangedForBinding;$4.prototype.secondsChanged=$4.prototype.secondsChanged;_.V([_.C(),_.f("design:type",String)],$4.prototype,"minutes",void 0);_.V([_.C(),_.f("design:type",String)],$4.prototype,"seconds",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],$4.prototype,"polymer2",void 0);
_.V([_.to("#seconds"),_.f("design:type",Object)],$4.prototype,"secondsEl",void 0);_.V([_.OB("seconds"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],$4.prototype,"secondsChanged",null);_.V([_.OB("minutes"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],$4.prototype,"minutesChangedForBinding",null);
_.V([_.OB("seconds"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],$4.prototype,"secondsChangedForBinding",null);_.V([_.sB({is:"yt-timestamp-input",disableElementRegistration:!0})],$4);
_.k($4,"yt-timestamp-input",function(){if(h1a===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;bsA===void 0&&(bsA=document.createElement("template"));var S=bsA;y.call(h,S.content.cloneNode(!0),b.content.firstChild);h1a=b}b=h1a;return b},{mode:2});var LB=function(){return _.g.apply(this,arguments)||this};
_.z(LB,_.g);_.d=LB.prototype;_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$20858_scroller.dialogElement=this.hostElement.parentNode};
_.d.dataChanged=function(){var b=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.Sa().getPlayerPromise().then(function(h){h=h.getCurrentTime();b.minutes=Math.floor(h/60).toString();b.seconds=(Math.floor(h)%60).toString()})};
_.d.onTapSubmit=function(b){b.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(b={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(b.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(b.minutes=this.minutes,b.seconds=this.seconds),_.H9().resolve(_.OM).resolveCommand(this.serviceEndpoint,{form:Object.assign({},b,{element:this.hostElement})}))};
_.d.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.d.onYtServiceRequestCompleted=function(b,h){h=h.actions;if(Array.isArray(h))for(var y=0,S=h.length;y<S;y++)_.c(h[y],_.yG)&&(b.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(h[y]))};
_.d.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.d.toggleSubmitButton=function(b){this.set("submitButton.isDisabled",!b)};
_.d.handleInput=function(){var b=this.issueType,h=this.affiliation,y=this.minutes,S=this.seconds;y=!this.showTimestamp||!!y&&!!S;this.toggleSubmitButton(!!this.descriptionText&&!!b&&!!h&&y)};
_.d.computeServiceEndpoint=function(b){return this.get("submitButton.buttonRenderer.serviceEndpoint",b)};
_.d.computeSubmitButton=function(b){(b=this.get("submitButton.buttonRenderer",b))&&(b=Object.assign({},b,{serviceEndpoint:void 0}));return b};
_.d.computeShowTimestamp=function(b){return!!b};
_.d.onValueChangedForIssueType=function(b){this.issueType=b.detail.value};
_.d.onValueChangedForAffiliation=function(b){this.affiliation=b.detail.value};
_.d.updateDescriptionTextFromBinding=function(b){this.descriptionText=b.detail.value};
_.d.updateFullNameTextFromBinding=function(b){this.fullNameText=b.detail.value};
_.d.updateMinutesFromBinding=function(b){this.minutes=b.detail.value};
_.d.updateSecondsFromBinding=function(b){this.seconds=b.detail.value};
LB.prototype.handleInput=LB.prototype.handleInput;LB.prototype.onYtServiceRequestError=LB.prototype.onYtServiceRequestError;LB.prototype.onYtServiceRequestCompleted=LB.prototype.onYtServiceRequestCompleted;LB.prototype.onYtServiceRequestSent=LB.prototype.onYtServiceRequestSent;LB.prototype.dataChanged=LB.prototype.dataChanged;_.V([_.B(_.xN.YtOpenPopupBehavior),_.f("design:type",Object)],LB.prototype,"ytOpenPopupBehavior",void 0);
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],LB.prototype,"ytRendererBehavior",void 0);_.V([_.to("#scroller"),_.f("design:type",Object)],LB.prototype,"JSC$20858_scroller",void 0);_.V([_.to("#description"),_.f("design:type",HTMLInputElement)],LB.prototype,"description",void 0);_.V([_.to("#full-name"),_.f("design:type",Object)],LB.prototype,"fullName",void 0);_.V([_.C(),_.f("design:type",Object)],LB.prototype,"data",void 0);
_.V([_.C({computed:"computeShowTimestamp(data.timestampLabel)"}),_.f("design:type",Boolean)],LB.prototype,"showTimestamp",void 0);_.V([_.C({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.f("design:type",Object)],LB.prototype,"serviceEndpoint",void 0);_.V([_.C({computed:"computeSubmitButton(data)"}),_.f("design:type",Object)],LB.prototype,"submitButton",void 0);_.V([_.C(),_.f("design:type",String)],LB.prototype,"descriptionText",void 0);
_.V([_.C(),_.f("design:type",Number)],LB.prototype,"issueType",void 0);_.V([_.C(),_.f("design:type",Number)],LB.prototype,"affiliation",void 0);_.V([_.C(),_.f("design:type",String)],LB.prototype,"fullNameText",void 0);_.V([_.C(),_.f("design:type",String)],LB.prototype,"minutes",void 0);_.V([_.C(),_.f("design:type",String)],LB.prototype,"seconds",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],LB.prototype,"dataChanged",null);
_.V([_.u3("yt-service-request-sent"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,_.kE]),_.f("design:returntype")],LB.prototype,"onYtServiceRequestSent",null);_.V([_.u3("yt-service-request-completed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,_.xE]),_.f("design:returntype")],LB.prototype,"onYtServiceRequestCompleted",null);
_.V([_.u3("yt-service-request-error"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],LB.prototype,"onYtServiceRequestError",null);_.V([_.OB("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],LB.prototype,"handleInput",null);_.V([_.Yx({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],LB);
_.k(LB,"ytd-legal-report-details-form-renderer",function(){if(v1Y!==void 0)return v1Y;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return v1Y=b},{mode:1});var ylX;var Pr=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return b};
_.z(Pr,_.g);Pr.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
Pr.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var b=this.formRenderer.getForm();b&&this.data.submitEndpoint&&(_.H9().resolve(_.OM).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},b,{element:this.hostElement})}),_.F8(this.hostElement,"yt-close-popup-action"))}};
Pr.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.F8(this.hostElement,"yt-close-popup-action"))};
Pr.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
Pr.prototype.onPopupClosed=Pr.prototype.onPopupClosed;_.V([_.B(_.PQ.YtEventForwardingBehavior),_.f("design:type",Object)],Pr.prototype,"ytEventForwardingBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Pr.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],Pr.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Pr.prototype,"ytRendererBehavior",void 0);
_.V([_.to("yt-form-renderer"),_.f("design:type",Object)],Pr.prototype,"formRenderer",void 0);_.V([_.C(),_.f("design:type",Object)],Pr.prototype,"data",void 0);_.V([_.u3("yt-popup-closed"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Pr.prototype,"onPopupClosed",null);_.V([_.Yx({is:"ytd-form-popup-content",disableElementRegistration:!0})],Pr);
_.k(Pr,"ytd-form-popup-content",function(){if(ylX!==void 0)return ylX;var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return ylX=b},{mode:1});var SKP;var KB=function(){return _.g.apply(this,arguments)||this};
_.z(KB,_.g);KB.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
KB.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
KB.prototype.onPopupOpened=function(){_.Sx(this.hostElement,"yt-invalidate-popup-tabbables")};
KB.prototype.onYtServiceRequestCompleted=function(b,h){h.data&&h.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.Sx(this.hostElement,"yt-invalidate-popup-tabbables"))};
KB.prototype.onYtServiceRequestCompleted=KB.prototype.onYtServiceRequestCompleted;KB.prototype.onPopupOpened=KB.prototype.onPopupOpened;_.V([_.B(_.PQ.YtEventForwardingBehavior),_.f("design:type",Object)],KB.prototype,"ytEventForwardingBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],KB.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],KB.prototype,"ytRendererBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],KB.prototype,"data",void 0);_.V([_.u3("yt-popup-opened"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],KB.prototype,"onPopupOpened",null);_.V([_.u3("yt-service-request-completed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,_.xE]),_.f("design:returntype")],KB.prototype,"onYtServiceRequestCompleted",null);_.V([_.Yx({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],KB);
_.k(KB,"ytd-form-popup-renderer",function(){if(SKP!==void 0)return SKP;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return SKP=b},{mode:1});var F1f;var Zu=function(){var b=_.g.apply(this,arguments)||this;b.isLoading=!1;return b};
_.z(Zu,_.g);_.d=Zu.prototype;_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");jFd(this.hostElement)};
_.d.onYtServiceRequestSent=function(){this.isLoading=!0};
_.d.onYtServiceRequestCompleted=function(){_.F8(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.d.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.jx(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.d.closePopupHandler=function(){this.fireOnCloseActions()};
_.d.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var b=this.get("data.headerImage.thumbnails");b&&(b=_.Ss(b,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+b+")")}};
_.d.onYtNavigate=function(b){(b=_.mi(b))&&b.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
Zu.prototype.onYtNavigate=Zu.prototype.onYtNavigate;Zu.prototype.onHeaderImageChanged=Zu.prototype.onHeaderImageChanged;Zu.prototype.closePopupHandler=Zu.prototype.closePopupHandler;Zu.prototype.onYtServiceRequestCompleted=Zu.prototype.onYtServiceRequestCompleted;Zu.prototype.onYtServiceRequestSent=Zu.prototype.onYtServiceRequestSent;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Zu.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.PQ.YtEventForwardingBehavior),_.f("design:type",Object)],Zu.prototype,"ytEventForwardingBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Zu.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Zu.prototype,"isLoading",void 0);_.V([_.to("#header"),_.f("design:type",HTMLDivElement)],Zu.prototype,"header",void 0);_.V([_.to("#confirm-button"),_.f("design:type",_.da)],Zu.prototype,"confirmButton",void 0);
_.V([_.u3("yt-service-request-sent"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],Zu.prototype,"onYtServiceRequestSent",null);_.V([_.u3("yt-service-request-completed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],Zu.prototype,"onYtServiceRequestCompleted",null);
_.V([_.u3("yt-popup-closed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,Object]),_.f("design:returntype")],Zu.prototype,"closePopupHandler",null);_.V([_.OB("data.headerImage"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Zu.prototype,"onHeaderImageChanged",null);_.V([_.u3("yt-navigate"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],Zu.prototype,"onYtNavigate",null);
_.V([_.Yx({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],Zu);
_.k(Zu,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(F1f!==void 0)return F1f;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return F1f=b},{mode:1});var asN;var o1=function(){var b=_.g.apply(this,arguments)||this;b.isLoading=!1;return b};
_.z(o1,_.g);_.d=o1.prototype;_.d.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"}}}};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);jFd(this.hostElement)};
_.d.onYtServiceRequestCompleted=function(){_.F8(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.d.onYtServiceRequestError=function(b){_.lM(this.hostElement,b.detail.error.message)};
_.d.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.d.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.F8(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.d.onDataChanged=function(){this.isLoading=!1;var b=this.get("data.headerImage.thumbnails");b&&(b=_.Ss(b,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+b+")");b=_.UE();var h=_.Ae(),y=this.get("data.trackingParams");y&&h&&b&&_.Vh(b,h,_.I_(y))};
_.tm.Object.defineProperties(o1.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
o1.prototype.onDataChanged=o1.prototype.onDataChanged;o1.prototype.onDomChange=o1.prototype.onDomChange;o1.prototype.onYtServiceRequestError=o1.prototype.onYtServiceRequestError;o1.prototype.onYtServiceRequestCompleted=o1.prototype.onYtServiceRequestCompleted;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],o1.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],o1.prototype,"ytRendererBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],o1.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],o1.prototype,"isLoading",void 0);_.V([_.C({reflectToAttribute:!0}),_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],o1.prototype,"hasDescription",null);_.V([_.to("tp-yt-paper-dialog-scrollable"),_.f("design:type",Object)],o1.prototype,"scrollable",void 0);_.V([_.to("#header"),_.f("design:type",HTMLElement)],o1.prototype,"header",void 0);
_.V([_.u3("yt-service-request-completed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],o1.prototype,"onYtServiceRequestCompleted",null);_.V([_.u3("yt-service-request-error"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],o1.prototype,"onYtServiceRequestError",null);
_.V([_.u3("dom-change"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],o1.prototype,"onDomChange",null);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],o1.prototype,"onDataChanged",null);_.V([_.Yx({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],o1);
_.k(o1,"ytd-gaming-account-link-setting-renderer",function(){if(asN!==void 0)return asN;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return asN=b},{mode:1});var dcA;var jWY;var M7=function(){var b=_.g.apply(this,arguments)||this;b.isHeader=!1;b.getEndpointForm=function(){return oBA(b.data)};
return b};
_.z(M7,_.g);_.d=M7.prototype;_.d.triggerHintActions=function(){var b=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var h=_.aw(b.hostElement,"yt-get-opened-popups-action");!(h&&h.length===1?h[0]:[]).some(function(y){y=y.openPopupAction.popupType;return y==="SURVEY"||y==="MEALBAR"||y==="HINT"})&&b.data.hintActions&&b.guideOpened&&(_.jx(b.hostElement,b.data.hintActions,b.hostElement),b.data.hintActions=void 0)})};
_.d.getBadgeIconType=function(b){return b&&b.liveBroadcasting?"live":null};
_.d.onDown=function(){this.interaction.triggerDown()};
_.d.onUp=function(){this.interaction.triggerUp()};
_.d.onTap=function(b){if(this.data.serviceEndpoint){var h;_.r("shorts_controller_retrieve_seedless_sequence_v2")&&((h=_.c(this.data.serviceEndpoint,_.cd))==null?void 0:h.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):Z8E(this.data.serviceEndpoint,this);b.preventDefault()}else this.data.navigationEndpoint&&!_.mf(_.Qk(b),this.hostElement,["A".toString()])&&_.Sx(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.d.computeActive=function(b,h){if(!b)return!1;var y=b.navigationEndpoint;b=b.serviceEndpoint;if(!y&&!b||!h)return!1;if(y){b=(b=_.uk(h))&&["subscriptions","filteredsubscriptions"].includes(b);if(_.c(y,_.O0)&&_.c(h,_.O0)&&!b){var S=_.c(y,_.O0).browseId;h=_.c(h,_.O0).browseId;return S!==void 0&&h!==void 0&&(S===h||S==="VLWL"&&h==="FEwatch_later"||S==="FEwatch_later"&&h==="VLWL")}var F;y=(F=_.c(y.commandMetadata,_.ZW))==null?void 0:F.url;h=(S=_.c(h.commandMetadata,_.ZW))==null?void 0:S.url;return!(!y||
!h||y!==h&&y!==_.W9(h))}return this.isActiveShortsTab(b,h)};
_.d.isActiveShortsTab=function(b,h){h=!!_.c(h,_.cd)||!!_.c(h,_.XI);return(!!_.c(b,_.cd)||!!_.c(b,_.XI))&&h};
_.d.computeIsPrimary=function(b){return!!b};
_.tm.Object.defineProperties(M7.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 b=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&b)return b}}});
M7.prototype.onTap=M7.prototype.onTap;M7.prototype.onUp=M7.prototype.onUp;M7.prototype.onDown=M7.prototype.onDown;M7.prototype.triggerHintActions=M7.prototype.triggerHintActions;_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],M7.prototype,"componentBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],M7.prototype,"rendererBehavior",void 0);_.V([_.B(_.UG.YtTaskEmitterBehavior),_.f("design:type",Object)],M7.prototype,"taskEmitterBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],M7.prototype,"activeEndpoint",void 0);_.V([_.C(),_.f("design:type",Object)],M7.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Boolean)],M7.prototype,"guideOpened",void 0);_.V([_.C(),_.f("design:type",String)],M7.prototype,"type",void 0);_.V([_.to("yt-interaction"),_.f("design:type",Object)],M7.prototype,"interaction",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],M7.prototype,"isHeader",void 0);
_.V([_.C({reflectToAttribute:!0}),_.W("data","activeEndpoint"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],M7.prototype,"active",null);_.V([_.C({reflectToAttribute:!0}),_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],M7.prototype,"isPrimary",null);_.V([_.C({reflectToAttribute:!0}),_.W("data.count","data.presentationStyle","data.badges.*"),_.f("design:type",String),_.f("design:paramtypes",[])],M7.prototype,"lineEndStyle",null);
_.V([_.W("lineEndStyle"),_.f("design:type",Object),_.f("design:paramtypes",[])],M7.prototype,"ariaLabel",null);_.V([_.OB("data.hintActions","guideOpened"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],M7.prototype,"triggerHintActions",null);_.V([_.u3("down"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],M7.prototype,"onDown",null);
_.V([_.u3("up"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],M7.prototype,"onUp",null);_.V([_.u3("tap"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],M7.prototype,"onTap",null);_.V([_.Yx({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],M7);
_.k(M7,"ytd-guide-entry-renderer",function(){if(jWY!==void 0)return jWY;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return jWY=b},{mode:1});var nB=function(){var b=_.g.apply(this,arguments)||this;b.userToggled=!1;return b};
_.z(nB,_.g);_.d=nB.prototype;_.d.getItemsPath=function(){return"data.expandableItems"};
_.d.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.d.onExpanderItemTapped=function(b){var h=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.r("kevlar_guide_expandable_items_killswitch")&&_.Ob(this,function(){_.Mi(h.expandableItems)});
b.preventDefault()};
_.d.onCollapserItemTapped=function(b){var h=this;this._setExpanded(!1);this.userToggled=!0;b.preventDefault();this.expandableItems&&!_.r("kevlar_guide_collapsible_items_killswitch")&&_.Ob(this,function(){_.oh(h.hostElement)})};
_.d.observeActiveEndpoint=function(){for(var b=this.activeEndpoint,h=this.data,y=this.expandableItems.children,S=0,F=y.length;S<F;S++)y[S].activeEndpoint=b;h&&h.autoExpandCommand&&b&&!this.userToggled&&(y=this.data.autoExpandCommand,h=!(!_.c(y,_.O0)||!_.c(b,_.O0)||_.c(y,_.O0).browseId!==_.c(b,_.O0).browseId),b=this.get("commandMetadata.webCommandMetadata.url",b),y=this.get("commandMetadata.webCommandMetadata.url",y),h=h||!!(b&&y&&b.includes(y)),this._setExpanded(h),h&&this.ytLazyListBehavior.fillRemainingListItems())};
nB.prototype.observeActiveEndpoint=nB.prototype.observeActiveEndpoint;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],nB.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],nB.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.GO.YtLazyListBehavior),_.f("design:type",Object)],nB.prototype,"ytLazyListBehavior",void 0);_.V([_.to("#expandable-items"),_.f("design:type",HTMLElement)],nB.prototype,"expandableItems",void 0);
_.V([_.C(),_.f("design:type",Object)],nB.prototype,"data",void 0);_.V([_.C({readOnly:!0,reflectToAttribute:!0}),_.f("design:type",Boolean)],nB.prototype,"expanded",void 0);_.V([_.C({value:0}),_.f("design:type",Number)],nB.prototype,"initialCount",void 0);_.V([_.C(),_.f("design:type",Object)],nB.prototype,"activeEndpoint",void 0);_.V([_.OB("data","activeEndpoint","canShowMore"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],nB.prototype,"observeActiveEndpoint",null);
_.V([_.Yx({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],nB);
_.k(nB,"ytd-guide-collapsible-entry-renderer",function(){if(dcA!==void 0)return dcA;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return dcA=b},{mode:_.Lt("kevlar_poly_si_batch_j079")?1:2});var $ca;var L1q;var XT=function(){var b=_.g.apply(this,arguments)||this;b.allVideosCount=0;b.renderGuideEntry=!1;return b};
_.z(XT,_.g);XT.prototype.observeRenderEntry=function(){var b;this.renderGuideEntry=!((b=this.data)==null||!b.alwaysShow)||!!this.allVideosCount};
XT.prototype.observeRenderEntry=XT.prototype.observeRenderEntry;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],XT.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],XT.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],XT.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],XT.prototype,"activeEndpoint",void 0);_.V([_.C({selector:_.l4N}),_.f("design:type",Object)],XT.prototype,"allVideosCount",void 0);
_.V([_.C(),_.f("design:type",Object)],XT.prototype,"renderGuideEntry",void 0);_.V([_.zj("allVideosCount","data.alwaysShow"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],XT.prototype,"observeRenderEntry",null);_.V([_.Yx({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],XT);
_.k(XT,"ytd-guide-downloads-entry-renderer",function(){if(L1q===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);L1q=b}b=L1q;return b},{mode:1});var Hr=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return b};
_.z(Hr,_.g);_.d=Hr.prototype;_.d.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]]"}}}}}};
_.d.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var b=this.sectionItems.children,h=0,y=b.length;h<y;h++)b[h].activeEndpoint=this.activeEndpoint}};
_.d.handleAddToGuideSectionAction=function(b){var h=_.c(b,Dpq);if(h&&this.data&&(b=h.items,h=h.handlerData,b&&h&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(h)>-1)){h=0;for(var y=b.length;h<y;h++)b[h].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,b[h])}};
_.d.handleRemoveFromGuideSectionAction=function(b){var h=_.c(b,IPF);h&&this.data&&(b=h.guideEntryId,h=h.handlerData,b&&h&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(h)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(b,this.data.sectionItems),this.removeFromCollapsedSection(b,this.data.sectionItems)))};
_.d.removeFromExpandedSection=function(b,h){b=this.getEntryIndexMatchingId(b,h);b!==-1&&this.splice("data.sectionItems",b,1)};
_.d.removeFromCollapsedSection=function(b,h){var y=h.findIndex(function(S){return!!_.c(S,nBP)});
y&&y!==-1&&h[y]&&_.c(h[y],nBP)&&(h=_.c(h[y],nBP).expandableItems)&&(b=this.getEntryIndexMatchingId(b,h),b!==-1&&this.splice("data.sectionItems."+y+".guideCollapsibleEntryRenderer.expandableItems",b,1))};
_.d.getEntryIndexMatchingId=function(b,h){var y=this;return h.findIndex(function(S){return y.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",S)===b})};
Hr.prototype.activeEndpointChanged=Hr.prototype.activeEndpointChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Hr.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],Hr.prototype,"actionHandlerBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Hr.prototype,"ytRendererstamperBehavior",void 0);_.V([_.to("#section-items"),_.f("design:type",HTMLDivElement)],Hr.prototype,"sectionItems",void 0);
_.V([_.to("#header-entry"),_.f("design:type",Object)],Hr.prototype,"headerEntry",void 0);_.V([_.C(),_.f("design:type",Object)],Hr.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],Hr.prototype,"activeEndpoint",void 0);_.V([_.OB("activeEndpoint"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Hr.prototype,"activeEndpointChanged",null);_.V([_.Yx({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],Hr);
_.k(Hr,"ytd-guide-collapsible-section-entry-renderer",function(){if($ca===void 0){var b=document.createElement("template");_.D(b,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="true" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);$ca=b}b=$ca;return b},{mode:1});var P7f;var K12;var uO=function(){var b=_.g.apply(this,arguments)||this;b.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 b};
_.z(uO,_.g);_.d=uO.prototype;
_.d.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}}}}};
_.d.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var b=_.aw(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);b&&b.length===1&&b[0]&&_.aw(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.d.handleResetChannelUnreadCountCommand=function(b){var h;(b=(h=_.c(b,Wqa))==null?void 0:h.channelId)&&this.data&&this.data.items&&(h=this.getPathToEntryMatchingId(b))&&(this.set(h+".guideEntryRenderer.count",0),this.set(h+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.d.handleResetSubscriptionsUnreadDotCommand=function(b){var h,y=(h=_.c(b,Apf))==null?void 0:h.targetId,S;y&&(S=this.data)!=null&&S.items&&(b=this.data.items.findIndex(function(F){var a;return((a=F.guideEntryRenderer)==null?void 0:a.targetId)===y}),b<0||this.set("data.items."+b+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.d.getPathToEntryMatchingId=function(b){if(this.data&&this.data.items){var h=this.getEntryIndexMatchingId(b,this.data.items);if(h>-1)return"data.items."+h;for(var y=0;y<this.data.items.length;y++)if(h=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[y]))if(h=this.getEntryIndexMatchingId(b,h),h>-1)return"data.items."+y+".guideCollapsibleEntryRenderer.expandableItems."+h}};
_.d.handleAddToGuideSectionAction=function(b){var h=this;if(_.c(b,Dpq)){var y=_.c(b,Dpq).items;b=_.c(b,Dpq).handlerData;var S,F;if(y&&b&&((S=this.data)==null?void 0:(F=S.handlerDatas)==null?void 0:F.indexOf(b))>-1){y=y.filter(function(P){return(P=h.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",P))&&!h.isGuideItemPresent(P)});
var a;if(b==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((a=this.data)==null?0:a.items)&&(S=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),S>-1)){this.splice.apply(this,["data.items",S+1,0].concat(_.f$(y)));return}this.unshift.apply(this,["data.items"].concat(_.f$(y)))}}};
_.d.isGuideItemPresent=function(b){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(b,this.data.items)!==-1)return!0;var h=this.data.items.find(function(y){return!!y.guideCollapsibleEntryRenderer});
if((h==null?0:h.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(b,h.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.d.getEntryIndexMatchingId=function(b,h){var y=this;return h.findIndex(function(S){return y.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",S)===b})};
_.d.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(b,h){var y=this;return h.findIndex(function(S){return y.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",S)===b})};
_.d.handleRemoveFromGuideSectionAction=function(b){if(_.c(b,IPF)){var h=_.c(b,IPF).guideEntryId;b=_.c(b,IPF).handlerData;var y,S;h&&b&&((y=this.data)==null?void 0:(S=y.handlerDatas)==null?void 0:S.indexOf(b))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(h,this.data.items),this.removeFromCollapsedSection(h,this.data.items))}};
_.d.removeFromExpandedSection=function(b,h){b=this.getEntryIndexMatchingId(b,h);b!==-1&&this.splice("data.items",b,1)};
_.d.removeFromCollapsedSection=function(b,h){var y=h.findIndex(function(S){return!!S.guideCollapsibleEntryRenderer});
y!==-1&&(h=h[y].guideCollapsibleEntryRenderer.expandableItems)&&(b=this.getEntryIndexMatchingId(b,h),b!==-1&&this.splice("data.items."+y+".guideCollapsibleEntryRenderer.expandableItems",b,1))};
_.d.activeEndpointChanged=function(){for(var b=_.$x(this.hostElement).querySelector("#items").children,h=0,y=b.length;h<y;h++)b[h].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.d.guideOpenedChanged=function(){for(var b=_.$x(this.hostElement).querySelector("#items").children,h=0,y=b.length;h<y;h++)b[h].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
uO.prototype.guideOpenedChanged=uO.prototype.guideOpenedChanged;uO.prototype.activeEndpointChanged=uO.prototype.activeEndpointChanged;uO.prototype.persistentGuideChanged=uO.prototype.persistentGuideChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],uO.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],uO.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],uO.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.GO.YtLazyListBehavior),_.f("design:type",Object)],uO.prototype,"ytLazyListBehavior",void 0);_.V([_.B(_.DV.YtdGuideStateAwareBehavior),_.f("design:type",Object)],uO.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],uO.prototype,"ytComponentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],uO.prototype,"data",void 0);
_.V([_.C(),_.f("design:type",String)],uO.prototype,"type",void 0);_.V([_.C({value:20}),_.f("design:type",Number)],uO.prototype,"initialCount",void 0);_.V([_.C({value:10}),_.f("design:type",Number)],uO.prototype,"targetFramerate",void 0);_.V([_.C({value:!0}),_.f("design:type",Boolean)],uO.prototype,"autoFill",void 0);_.V([_.C({value:50}),_.f("design:type",Number)],uO.prototype,"renderDelay",void 0);
_.V([_.OB("guidePersistentAndVisible"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],uO.prototype,"persistentGuideChanged",null);_.V([_.zj("activeEndpoint"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],uO.prototype,"activeEndpointChanged",null);_.V([_.zj("guideOpened"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],uO.prototype,"guideOpenedChanged",null);
_.V([_.Yx({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],uO);
_.k(uO,"ytd-guide-section-renderer",function(){if(K12!==void 0)return K12;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return K12=b},{mode:_.Lt("kevlar_poly_si_batch_j073")?1:2});var ZsA;var Ox=function(){return _.g.apply(this,arguments)||this};
_.z(Ox,_.g);_.tm.Object.defineProperties(Ox.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Ox.prototype,"rendererBehaviors",void 0);_.V([_.C(),_.f("design:type",Object)],Ox.prototype,"data",void 0);_.V([_.C(),_.W("data.signInButton.buttonRenderer.style"),_.f("design:type",Object),_.f("design:paramtypes",[])],Ox.prototype,"alignByText",null);_.V([_.Yx({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],Ox);
_.k(Ox,"ytd-guide-signin-promo-renderer",function(){if(ZsA===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);ZsA=b}b=ZsA;return b},{mode:1});var N7=function(){var b=_.g.apply(this,arguments)||this;b.showFooter=!1;return b};
_.z(N7,_.g);N7.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}}}}};
N7.prototype.attached=function(){var b=this,h;return _.Z(function(y){if(y.nextAddress==1){h=_.H9().resolve(_.XS(_.zO));if(!h)return y.jumpTo(0);h.setGuideData(b.hostElement);return y.yield(0,3)}b.ytLazyListBehavior.initialCount=2;return y.return()})};
N7.prototype.onMouseExit=function(){_.r("web_guide_hover_expansion")&&_.aw(this.hostElement,"yt-guide-mouseleaved",[])};
N7.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
N7.prototype.dataChanged=N7.prototype.dataChanged;N7.prototype.onMouseExit=N7.prototype.onMouseExit;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],N7.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],N7.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.GO.YtLazyListBehavior),_.f("design:type",Object)],N7.prototype,"ytLazyListBehavior",void 0);
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],N7.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],N7.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],N7.prototype,"showFooter",void 0);_.V([_.C({value:!0}),_.f("design:type",Boolean)],N7.prototype,"autoFill",void 0);_.V([_.u3("mouseleave"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],N7.prototype,"onMouseExit",null);
_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],N7.prototype,"dataChanged",null);_.V([_.Yx({is:"ytd-guide-renderer",disableElementRegistration:!0})],N7);
_.k(N7,"ytd-guide-renderer",function(){if(P7f!==void 0)return P7f;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return P7f=b},{mode:_.Lt("kevlar_poly_si_batch_j073")?1:2});var o3q;var tn=function(){var b=_.g.apply(this,arguments)||this;b.systemIcons=_.r("kevlar_system_icons");b.frostedGlass=_.r("web_frosted_glass");b.onAllyMenuButtonClick=function(){var h=b.getShowSheetCommand();h&&b.ytComponentBehavior.resolveCommand(h)};
b.getEndpointForm=function(){return oBA(b.data)};
return b};
_.z(tn,_.g);_.d=tn.prototype;_.d.attached=function(){this.JSC$20911_sheetController=_.H9().resolve(_.nk)};
_.d.onDown=function(){this.interaction.triggerDown()};
_.d.onMouseEnter=function(){if(this.data.mouseEnterEndpoint){this.ytComponentBehavior.resolveCommand(this.data.mouseEnterEndpoint);var b;(b=this.JSC$20911_sheetController)==null||SYf(b,this.mouseEnterCallback.bind(this),this.mouseLeaveCallback.bind(this))}};
_.d.onMouseLeave=function(){this.data.mouseLeaveEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.mouseLeaveEndpoint)};
_.d.isSeedlessReelCommand=function(b){var h;return!!b&&((h=_.c(b,_.cd))==null?void 0:h.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"};
_.d.isShowSheetCommand=function(b){return!!b&&!!_.c(b,_.zo)};
_.d.getShowSheetCommand=function(){if(this.isShowSheetCommand(this.data.serviceEndpoint))return this.data.serviceEndpoint;if(this.isShowSheetCommand(this.data.mouseEnterEndpoint))return this.data.mouseEnterEndpoint};
_.d.mouseEnterCallback=function(){this.hostElement.classList.add("hovered")};
_.d.mouseLeaveCallback=function(){this.hostElement.classList.remove("hovered")};
_.d.onUp=function(){this.interaction.triggerUp()};
_.d.onTap=function(b){if(this.data.serviceEndpoint){if(_.r("shorts_controller_retrieve_seedless_sequence_v2")&&this.isSeedlessReelCommand(this.data.serviceEndpoint))this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint);else{if(this.isShowSheetCommand(this.data.serviceEndpoint)){this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint);var h;(h=this.JSC$20911_sheetController)==null||SYf(h,this.mouseEnterCallback.bind(this),this.mouseLeaveCallback.bind(this));b.preventDefault();
return}Z8E(this.data.serviceEndpoint,this)}b.preventDefault()}else{var y;((y=this.data)==null?0:y.navigationEndpoint)&&!_.mf(_.Qk(b),this.hostElement,["A".toString()])&&_.Sx(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.d.computeActive=function(b,h){if(!b)return!1;var y=b.navigationEndpoint;b=b.serviceEndpoint;if(!y&&!b||!h)return!1;if(y){b=_.c(y,_.O0);var S=_.c(h,_.O0);if(b&&S)return b.browseId===S.browseId&&b.params===S.params;var F;y=(F=_.c(y.commandMetadata,_.ZW))==null?void 0:F.url;var a;h=(a=_.c(h.commandMetadata,_.ZW))==null?void 0:a.url;return!(!y||!h||y!==h&&y!==_.W9(h))}return this.isActiveShortsTab(b,h)};
_.d.isActiveShortsTab=function(b,h){h=!!_.c(h,_.cd)||!!_.c(h,_.XI);return(!!_.c(b,_.cd)||!!_.c(b,_.XI))&&h};
_.d.computeTitle=function(b,h){return h?"":_.vi(b)};
_.d.computeEndpoint=function(b){return this.isSeedlessReelCommand(b.serviceEndpoint)?b.serviceEndpoint:b.navigationEndpoint};
_.d.computeAriaLabelTitle=function(b){return _.vi(b)};
_.d.computeAllyShowMenuOnTap=function(b){return this.isShowSheetCommand(b.mouseEnterEndpoint)||this.isShowSheetCommand(b.serviceEndpoint)};
_.tm.Object.defineProperties(tn.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
tn.prototype.onMouseLeave=tn.prototype.onMouseLeave;tn.prototype.onMouseEnter=tn.prototype.onMouseEnter;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],tn.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],tn.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.jp),_.f("design:type",Object)],tn.prototype,"ironButtonState",void 0);_.V([_.C(),_.f("design:type",Object)],tn.prototype,"data",void 0);
_.V([_.C(),_.f("design:type",Object)],tn.prototype,"activeEndpoint",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],tn.prototype,"noLabels",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.f("design:type",Boolean)],tn.prototype,"isActive",void 0);_.V([_.C({computed:"computeEndpoint(data)"}),_.f("design:type",Object)],tn.prototype,"computedEndpoint",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],tn.prototype,"systemIcons",void 0);_.V([_.to("yt-interaction"),_.f("design:type",Object)],tn.prototype,"interaction",void 0);_.V([_.W("isActive"),_.f("design:type",Object),_.f("design:paramtypes",[])],tn.prototype,"ariaSelected",null);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],tn.prototype,"frostedGlass",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeAllyShowMenuOnTap(data)"}),_.f("design:type",Boolean)],tn.prototype,"allyShowMenuOnTap",void 0);_.V([_.u3("mouseenter"),_.f("design:type",Function),_.f("design:paramtypes",[MouseEvent]),_.f("design:returntype")],tn.prototype,"onMouseEnter",null);_.V([_.u3("mouseleave"),_.f("design:type",Function),_.f("design:paramtypes",[MouseEvent]),_.f("design:returntype")],tn.prototype,"onMouseLeave",null);
_.V([_.Yx({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],tn);
_.k(tn,"ytd-mini-guide-entry-renderer",function(){if(o3q!==void 0)return o3q;var b=document.createElement("template");_.D(b,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-mini-guide-entry-renderer" href$="[[computeHref_(computedEndpoint)]]" data="[[computedEndpoint]]" title="[[computeTitle(data.formattedTitle, noLabels)]]" get-form="[[getEndpointForm]]" aria-label="[[computeAriaLabelTitle(data.formattedTitle)]]" aria-selected="[[isActive]]" on-click="onTap" on-down="onDown" on-up="onUp">\n  <yt-icon id="icon" class="guide-icon style-scope ytd-mini-guide-entry-renderer" active="[[isActive]]" disable-upgrade$="[[data.thumbnail]]" hidden="[[data.thumbnail]]" icon="[[data.icon.iconType]]">\n  </yt-icon>\n  <span class="title style-scope ytd-mini-guide-entry-renderer" hidden="[[noLabels]]">[[getSimpleString(data.formattedTitle)]]</span>\n  <tp-yt-paper-tooltip animation-delay="0" hidden="[[!noLabels]]" offset="0" position="right" class="style-scope ytd-mini-guide-entry-renderer">\n    [[getSimpleString(data.formattedTitle)]]\n  </tp-yt-paper-tooltip>\n  <yt-interaction class="style-scope ytd-mini-guide-entry-renderer"></yt-interaction>\n</a>\n<span hidden="[[!allyShowMenuOnTap]]" class="style-scope ytd-mini-guide-entry-renderer">\n  <button type="button" id="ally-menu-button" class="ally-menu-button style-scope ytd-mini-guide-entry-renderer" aria-label="[[computeAriaLabelTitle(data.formattedTitle)]]" aria-haspopup="true" aria-expanded="false" on-click="onAllyMenuButtonClick"></button>\n</span>\n');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return o3q=b},{mode:_.Lt("kevlar_poly_si_batch_j063")?1:2});var MtE;var ri=function(){var b=_.g.apply(this,arguments)||this;b.allVideosCount=0;b.noLabels=_.r("kevlar_mini_guide_no_labels");b.frostedGlass=_.r("web_frosted_glass");return b};
_.z(ri,_.g);_.d=ri.prototype;_.d.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.d.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.d.onMouseEnter=function(){_.r("web_guide_hover_expansion")&&_.aw(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.d.visibleChanged=function(){if(this.visible&&!this.data){var b=_.H9().resolve(_.XS(_.zO));b&&b.setGuideData(this.hostElement);_.lC(_.rU(),this.miniGuideVe);(b=_.UE())&&this.miniGuideVe&&_.iE(b,this.miniGuideVe)}};
_.d.dataChanged=function(){var b=_.r("kevlar_guide_menu_on_hover")&&_.r("kevlar_modern_mini_guide"),h=_.r("kevlar_guide_menu_on_click")&&_.r("kevlar_modern_mini_guide"),y;var S=(y=this.data)==null?void 0:y.items;y=this.allVideosCount;var F=[];b=b?0:h?1:void 0;h=b!==void 0;if(S){for(var a=[],P=_.L(S),K=P.next();!K.done;K=P.next())if(K=K.value,K.guideSubscriptionsSectionRenderer){var n=void 0;a=((n=K.guideSubscriptionsSectionRenderer)==null?void 0:n.items)||[]}S=_.L(S);for(P=S.next();!P.done;P=S.next())if(P=
P.value,K=void 0,(K=P.guideSectionRenderer)==null?0:K.items)for(K=void 0,P=_.L((K=P.guideSectionRenderer)==null?void 0:K.items),K=P.next();!K.done;K=P.next()){K=K.value;var X=void 0,u=void 0;n=K.guideEntryRenderer||_.c((X=K)==null?void 0:(u=X.guideCollapsibleSectionEntryRenderer)==null?void 0:u.headerEntry,MVx);X=[];u=[];var O=void 0;if(((O=n)==null?void 0:O.targetId)==="subscriptions-guide-item")X=a;else{var N=O=void 0;if((O=K)==null?0:(N=O.guideCollapsibleSectionEntryRenderer)==null?0:N.sectionItems)u=
X=K.guideCollapsibleSectionEntryRenderer.sectionItems}H8A(F,n,h?X:[],b);if(u.length>0)for(K=_.L(u),n=K.next();!n.done;n=K.next())n=n.value,u=_.c(n,EoA),X=void 0,u=u&&(u.alwaysShow||y)?_.c((X=u)==null?void 0:X.entryRenderer,MVx):_.c(n,MVx),H8A(F,u,[])}}this.miniGuideItems=F};
_.d.activeEndpointChanged=function(){for(var b=this.items.children,h=0;h<b.length;h++)b[h].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.d.registerWithViewTransitionManager=function(){var b=this;_.VT(_.xP,function(){var h=_.H9().resolve(_.XS(_.$O));if(h&&h.isAnyTransitionEnabled){var y={};h.viewTransitionCoordinator.registerElement(b.hostElement,(y.slide="mini-guide-page-transition",y))}})};
ri.prototype.activeEndpointChanged=ri.prototype.activeEndpointChanged;ri.prototype.dataChanged=ri.prototype.dataChanged;ri.prototype.visibleChanged=ri.prototype.visibleChanged;ri.prototype.onMouseEnter=ri.prototype.onMouseEnter;_.V([_.B(_.NT),_.f("design:type",Object)],ri.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],ri.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],ri.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.DV.YtdGuideStateAwareBehavior),_.f("design:type",Object)],ri.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],ri.prototype,"ytComponentBehavior",void 0);_.V([_.to("#items"),_.f("design:type",Object)],ri.prototype,"items",void 0);_.V([_.C(),_.f("design:type",Object)],ri.prototype,"data",void 0);
_.V([_.C(),_.f("design:type",Boolean)],ri.prototype,"visible",void 0);_.V([_.C(),_.f("design:type",Object)],ri.prototype,"miniGuideItems",void 0);_.V([_.C({selector:_.l4N}),_.f("design:type",Object)],ri.prototype,"allVideosCount",void 0);_.V([_.C({value:_.Kh(283834)}),_.f("design:type",_.W5)],ri.prototype,"miniGuideVe",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],ri.prototype,"noLabels",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],ri.prototype,"frostedGlass",void 0);_.V([_.u3("mouseenter"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],ri.prototype,"onMouseEnter",null);_.V([_.zj("visible"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],ri.prototype,"visibleChanged",null);
_.V([_.zj("data","allVideosCount"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],ri.prototype,"dataChanged",null);_.V([_.zj("activeEndpoint"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],ri.prototype,"activeEndpointChanged",null);_.V([_.Yx({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],ri);
_.k(ri,"ytd-mini-guide-renderer",function(){if(MtE===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);MtE=b}b=MtE;return b},{mode:1});var n3F;var XZa=/^[\x00-\x7F]+$/,cr=function(){return _.g.apply(this,arguments)||this};
_.z(cr,_.g);_.tm.Object.defineProperties(cr.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var b,h=_.vi((b=this.data)==null?void 0:b.handle);if(h)return _.mk("@"+h)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var b=_.vi(this.displayHandle),h,y=_.vi((h=this.data)==null?void 0:h.handleUrl);if(b&&y)return _.mk(y+b)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var b=_.vi(this.displayHandle);if(b&&!XZa.test(b)){var h;return(h=this.data)==null?void 0:h.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var b=_.vi(this.displayHandleUrl),h,y=_.vi((h=this.data)==null?void 0:h.urlInfoText);if(b&&y)return _.mk(y+" "+b)}}});
_.V([_.C(),_.f("design:type",Object)],cr.prototype,"data",void 0);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],cr.prototype,"displayHandle",null);_.V([_.W("displayHandle"),_.f("design:type",Object),_.f("design:paramtypes",[])],cr.prototype,"displayHandleUrl",null);_.V([_.W("displayHandle"),_.f("design:type",Object),_.f("design:paramtypes",[])],cr.prototype,"warningText",null);
_.V([_.W("displayHandleUrl"),_.f("design:type",Object),_.f("design:paramtypes",[])],cr.prototype,"urlInfoTextWithUrl",null);_.V([_.Yx({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],cr);
_.k(cr,"ytd-handles-claiming-confirm-dialog-content",function(){if(n3F!==void 0)return n3F;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return n3F=b},{mode:1});var Hsx;var R1=function(){var b=_.g.apply(this,arguments)||this;b.okButtonOverride={style:"mono",type:"outline",size:"M"};return b};
_.z(R1,_.g);R1.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
R1.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],R1.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],R1.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],R1.prototype,"okButtonOverride",void 0);_.V([_.C(),_.f("design:type",Object)],R1.prototype,"data",void 0);_.V([_.Yx({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],R1);
_.k(R1,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(Hsx!==void 0)return Hsx;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return Hsx=b},{mode:1});var utF;var OsX=/^[\x00-\x7F]+$/,zb=function(){var b=_.g.apply(this,arguments)||this;b.isLoading=!1;return b};
_.z(zb,_.g);zb.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var b;this.selectedHandle=(b=this.handleInput)==null?void 0:b.value;this.onSelectedHandleChanged(this.selectedHandle);_.aw(this.hostElement,"yt-refit-popups-action")}};
_.tm.Object.defineProperties(zb.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var b;return(b=this.data)==null?void 0:b.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.mk("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.mk(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!OsX.test(this.selectedHandle)){var b;return(b=this.data)==null?void 0:b.warningText}}}});
_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],zb.prototype,"ytComponentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],zb.prototype,"data",void 0);_.V([_.C(),_.f("design:type",String)],zb.prototype,"selectedHandle",void 0);_.V([_.C(),_.f("design:type",Object)],zb.prototype,"isLoading",void 0);_.V([_.C(),_.f("design:type",Function)],zb.prototype,"onSelectedHandleChanged",void 0);_.V([_.to("#channel-handle-input"),_.f("design:type",Object)],zb.prototype,"handleInput",void 0);
_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],zb.prototype,"handleUrlPrefix",null);_.V([_.W("selectedHandle"),_.f("design:type",Object),_.f("design:paramtypes",[])],zb.prototype,"displayHandle",null);_.V([_.W("selectedHandle"),_.f("design:type",Object),_.f("design:paramtypes",[])],zb.prototype,"displayHandleUrl",null);_.V([_.W("selectedHandle"),_.f("design:type",Object),_.f("design:paramtypes",[])],zb.prototype,"warningText",null);
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],zb.prototype,"ytRendererBehavior",void 0);_.V([_.Yx({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],zb);
_.k(zb,"ytd-handles-claiming-edit-dialog-content",function(){if(utF!==void 0)return utF;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return utF=b},{mode:1});var Nlx;var Du=function(){var b=_.g.apply(this,arguments)||this;b.actionButtonOverride={style:"mono",type:"filled",size:"M"};b.cancelButtonOverride={style:"mono",type:"text",size:"M"};b.selectButtonDisabled=!1;b.isLoading=!1;b.hasSelectedHandleEventListener=!1;b.selectedHandleChanged=function(h){b.selectedHandle=h};
return b};
_.z(Du,_.g);_.d=Du.prototype;_.d.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.d.onDataChanged=function(){var b,h;this.selectedHandle=(h=_.c((b=this.data)==null?void 0:b.inputField,t9x))==null?void 0:h.handle};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.onCancel=function(){this.selectedHandle="";_.F8(this.hostElement,"yt-close-popup-action",[this.is])};
_.d.onSelectHandle=function(){var b=this;if(this.selectedHandle!==void 0){var h;((h=this.data)==null?void 0:h.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(y,S){if(S.newHandleUpdateStatus!==void 0&&S.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&S.newHandleUpdateStatus.errorMessage)_.lM(b.hostElement,_.vi(S.newHandleUpdateStatus.errorMessage)),
b.isLoading=!1;else{var F;if((F=b.data)==null?0:F.onChannelUpdateSuccess){y=b.data.onChannelUpdateSuccess;var a,P;if(S=(a=_.c(y,_.yG))==null?void 0:(P=a.popup)==null?void 0:P.handlesClaimingConfirmDialogRenderer)S.handle=_.mk(b.selectedHandle);b.ytComponentBehavior.resolveCommand(y);_.F8(b.hostElement,"yt-close-popup-action",[b.is])}else b.isLoading=!1}},
onServerError:function(){var y;b.content&&((y=b.content)==null?0:y.handleInput)&&b.content.handleInput.validate();b.isLoading=!1;_.lM(b.hostElement,_.Mt("TRY_AGAIN_LATER"))}}}))}};
_.d.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
Du.prototype.onDataChanged=Du.prototype.onDataChanged;Du.prototype.onSelectedHandleChanged=Du.prototype.onSelectedHandleChanged;_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],Du.prototype,"ytComponentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Du.prototype,"actionButtonOverride",void 0);_.V([_.C(),_.f("design:type",Object)],Du.prototype,"cancelButtonOverride",void 0);_.V([_.C(),_.f("design:type",Object)],Du.prototype,"data",void 0);
_.V([_.C(),_.f("design:type",String)],Du.prototype,"selectedHandle",void 0);_.V([_.C(),_.f("design:type",Object)],Du.prototype,"selectButtonDisabled",void 0);_.V([_.C(),_.f("design:type",Object)],Du.prototype,"isLoading",void 0);_.V([_.C(),_.f("design:type",Object)],Du.prototype,"hasSelectedHandleEventListener",void 0);_.V([_.C(),_.f("design:type",Object)],Du.prototype,"handleInput",void 0);
_.V([_.OB("selectedHandle"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Du.prototype,"onSelectedHandleChanged",null);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Du.prototype,"onDataChanged",null);_.V([_.to("ytd-handles-claiming-edit-dialog-content"),_.f("design:type",Object)],Du.prototype,"content",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Du.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Du.prototype,"ytRendererstamperBehavior",void 0);_.V([_.Yx({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],Du);
_.k(Du,"ytd-handles-claiming-edit-dialog-renderer",function(){if(Nlx!==void 0)return Nlx;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return Nlx=b},{mode:1});var ttf;var I1=function(){return _.g.apply(this,arguments)||this};
_.z(I1,_.g);_.tm.Object.defineProperties(I1.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var b;if((b=this.data)==null?0:b.handle){var h;return _.mk("@"+_.vi((h=this.data)==null?void 0:h.handle))}}}});
_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],I1.prototype,"formattedHandle",null);_.V([_.C(),_.f("design:type",Object)],I1.prototype,"data",void 0);_.V([_.Yx({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],I1);
_.k(I1,"ytd-handles-claiming-radio-option-renderer",function(){if(ttf!==void 0)return ttf;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return ttf=b},{mode:1});var rlF;var clf=/^[\x00-\x7F]+$/,Br=function(){var b=_.g.apply(this,arguments)||this;b.initialRadioIndex="-1";b.isLoading=!1;b.maybeSubmitFeedback=function(){b.feedbackSurveyRenderer.submitSurvey()};
return b};
_.z(Br,_.g);Br.prototype.updateSelectedHandleIndexFromBinding=function(b){this.selectedRadioIndex=+b.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(b)};
Br.prototype.selectedHandleChanged=function(b){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var h;this.selectedHandle=(h=this.handleInput)==null?void 0:h.value;this.onSelectedHandleChanged(b)}};
_.tm.Object.defineProperties(Br.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var b;return(((b=this.data)==null?void 0:b.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var b;return this.ytRendererBehavior.getSimpleString((b=this.data)==null?void 0:b.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.mk("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.mk(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!clf.test(this.selectedHandle)){var b;return(b=this.data)==null?void 0:b.warningText}}}});
_.V([_.C(),_.f("design:type",Object)],Br.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],Br.prototype,"initialRadioIndex",void 0);_.V([_.C(),_.f("design:type",Number)],Br.prototype,"selectedRadioIndex",void 0);_.V([_.C(),_.f("design:type",String)],Br.prototype,"selectedHandle",void 0);_.V([_.C(),_.f("design:type",Object)],Br.prototype,"isLoading",void 0);_.V([_.C(),_.f("design:type",Function)],Br.prototype,"onSelectedHandleChanged",void 0);
_.V([_.C(),_.f("design:type",Function)],Br.prototype,"onSelectedRadioIndexChanged",void 0);_.V([_.to("#channel-handle-input"),_.f("design:type",Object)],Br.prototype,"handleInput",void 0);_.V([_.to("ytd-feedback-survey-renderer"),_.f("design:type",Object)],Br.prototype,"feedbackSurveyRenderer",void 0);_.V([_.W("data"),_.f("design:type",Number),_.f("design:paramtypes",[])],Br.prototype,"radioButtonLength",null);
_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],Br.prototype,"handleUrlPrefix",null);_.V([_.W("selectedHandle"),_.f("design:type",Object),_.f("design:paramtypes",[])],Br.prototype,"displayHandle",null);_.V([_.W("selectedHandle"),_.f("design:type",Object),_.f("design:paramtypes",[])],Br.prototype,"displayHandleUrl",null);_.V([_.W("selectedHandle"),_.f("design:type",Object),_.f("design:paramtypes",[])],Br.prototype,"warningText",null);
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Br.prototype,"ytRendererBehavior",void 0);_.V([_.Yx({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],Br);
_.k(Br,"ytd-handles-claiming-select-dialog-content",function(){if(rlF!==void 0)return rlF;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return rlF=b},{mode:1});var R1N;var Wr=function(){var b=_.g.apply(this,arguments)||this;b.actionButtonOverride={style:"mono",type:"filled",size:"M"};b.cancelButtonOverride={style:"mono",type:"text",size:"M"};b.initialRadioIndex="-1";b.selectButtonDisabled=!1;b.isLoading=!1;b.selectedRadioIndexChanged=function(h){b.selectedRadioIndex=Number(h.detail.value)};
b.selectedHandleChanged=function(h){b.selectedHandle=h.detail.value};
return b};
_.z(Wr,_.g);_.d=Wr.prototype;_.d.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.d.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.d.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.aw(this.hostElement,"yt-refit-popups-action")};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.F8(this.hostElement,"yt-close-popup-action",[this.is])};
_.d.onSelectHandle=function(){var b=this;if(this.selectedHandle!==void 0){var h;((h=this.data)==null?void 0:h.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(y,S){if(S.newHandleUpdateStatus!==void 0&&S.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&S.newHandleUpdateStatus.errorMessage)_.lM(b.hostElement,_.vi(S.newHandleUpdateStatus.errorMessage)),
b.isLoading=!1;else{var F;if((F=b.data)==null?0:F.onChannelUpdateSuccess){y=b.data.onChannelUpdateSuccess;S=_.c(y,_.yG);var a;if(S==null?0:(a=S.popup)==null?0:a.handlesClaimingConfirmDialogRenderer)S.popup.handlesClaimingConfirmDialogRenderer.handle=_.mk(b.selectedHandle);b.ytComponentBehavior.resolveCommand(y);_.F8(b.hostElement,"yt-close-popup-action",[b.is])}else b.isLoading=!1}},
onServerError:function(){if(b.selectedRadioIndex===b.radioButtonLength){var y;b.content&&((y=b.content)==null?0:y.handleInput)&&b.content.handleInput.validate()}b.isLoading=!1;_.lM(b.hostElement,_.Mt("TRY_AGAIN_LATER"))}}}))}};
_.d.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var b,h;this.selectedHandle=(b=this.content)==null?void 0:(h=b.handleInput)==null?void 0:h.value}else this.selectedRadioIndex>=0&&((b=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(b==null?void 0:b.handle):this.selectedHandle=void 0)};
_.d.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.d.getRadioItem=function(b){if(this.radioButtonLength>b&&b>=0)return _.c(this.data.radioButton[b],sxA)};
_.tm.Object.defineProperties(Wr.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var b;return(((b=this.data)==null?void 0:b.radioButton)||[]).length}}});
Wr.prototype.onSelectedHandleChanged=Wr.prototype.onSelectedHandleChanged;Wr.prototype.onSelectedHandleIndexChanged=Wr.prototype.onSelectedHandleIndexChanged;Wr.prototype.onDataChanged=Wr.prototype.onDataChanged;_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],Wr.prototype,"ytComponentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Wr.prototype,"actionButtonOverride",void 0);_.V([_.C(),_.f("design:type",Object)],Wr.prototype,"cancelButtonOverride",void 0);
_.V([_.C(),_.f("design:type",Object)],Wr.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],Wr.prototype,"initialRadioIndex",void 0);_.V([_.C(),_.f("design:type",Number)],Wr.prototype,"selectedRadioIndex",void 0);_.V([_.C(),_.f("design:type",String)],Wr.prototype,"selectedHandle",void 0);_.V([_.C(),_.f("design:type",Object)],Wr.prototype,"selectButtonDisabled",void 0);_.V([_.C(),_.f("design:type",Object)],Wr.prototype,"isLoading",void 0);
_.V([_.W("data"),_.f("design:type",Number),_.f("design:paramtypes",[])],Wr.prototype,"radioButtonLength",null);_.V([_.to("ytd-handles-claiming-select-dialog-content"),_.f("design:type",Object)],Wr.prototype,"content",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Wr.prototype,"onDataChanged",null);
_.V([_.OB("selectedRadioIndex"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Wr.prototype,"onSelectedHandleIndexChanged",null);_.V([_.OB("selectedHandle"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Wr.prototype,"onSelectedHandleChanged",null);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Wr.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Wr.prototype,"ytRendererstamperBehavior",void 0);_.V([_.Yx({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],Wr);
_.k(Wr,"ytd-handles-claiming-select-dialog-renderer",function(){if(R1N!==void 0)return R1N;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return R1N=b},{mode:1});var z1A;var DcE;var An=function(){return _.g.apply(this,arguments)||this};
_.z(An,_.g);An.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],An.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],An.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],An.prototype,"data",void 0);_.V([_.Yx({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],An);
_.k(An,"ytd-hotkey-dialog-section-option-renderer",function(){if(DcE!==void 0)return DcE;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return DcE=b},{mode:1});var IsA;var Ux=function(){return _.g.apply(this,arguments)||this};
_.z(Ux,_.g);Ux.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Ux.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Ux.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Ux.prototype,"data",void 0);_.V([_.Yx({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],Ux);
_.k(Ux,"ytd-hotkey-dialog-section-renderer",function(){if(IsA!==void 0)return IsA;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return IsA=b},{mode:1});var pB=function(){return _.g.apply(this,arguments)||this};
_.z(pB,_.g);pB.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],pB.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],pB.prototype,"data",void 0);_.V([_.Yx({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],pB);
_.k(pB,"ytd-hotkey-dialog-content",function(){if(z1A!==void 0)return z1A;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return z1A=b},{mode:1});var BlE;var Jn=function(){return _.g.apply(this,arguments)||this};
_.z(Jn,_.g);Jn.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var b=document.querySelector("ytd-hotkey-dialog-content #scrollable");b&&(b.dialogElement=this.hostElement.parentElement)};
Jn.prototype.onCloseTap=function(){_.F8(this.hostElement,"yt-close-popup-action")};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Jn.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Jn.prototype,"data",void 0);_.V([_.Yx({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],Jn);
_.k(Jn,"ytd-hotkey-dialog-renderer",function(){if(BlE!==void 0)return BlE;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return BlE=b},{mode:1});var W1X;var eT=function(){return _.g.apply(this,arguments)||this};
_.z(eT,_.g);eT.prototype.onYtServiceRequestError=function(){if(this.blocked){var b;var h=(b=this.data)==null?void 0:b.defaultServiceEndpoint}else{var y;h=(y=this.data)==null?void 0:y.toggledServiceEndpoint}var S;(h=(S=_.c(h,_.W8G))==null?void 0:S.onFailureAction)&&this.ytComponentBehavior.resolveCommand(h);this.updateBlockState(!this.blocked)};
eT.prototype.onYtToggleButton=function(b){this.updateBlockState(b.detail.toggled)};
eT.prototype.updateBlockState=function(b){if(b!==this.blocked){var h=this.blockedEntityKey;h&&this.ytdReduxBehavior.dispatch(_.R7("blockStateEntity",h,{key:h,blocked:b}));this.set("data.isToggled",b)}};
_.tm.Object.defineProperties(eT.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)}}});
eT.prototype.onYtToggleButton=eT.prototype.onYtToggleButton;eT.prototype.onYtServiceRequestError=eT.prototype.onYtServiceRequestError;_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],eT.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],eT.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],eT.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],eT.prototype,"blockedEntityKey",void 0);
_.V([_.C({selectorArgs:["blockedEntityKey"],selector:function(b,h){return _.Mm(b.entities,"blockStateEntity",h)}}),
_.f("design:type",Object)],eT.prototype,"blockStateEntity",void 0);_.V([_.W("data","blockStateEntity"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],eT.prototype,"blocked",null);_.V([_.u3("yt-service-request-error"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],eT.prototype,"onYtServiceRequestError",null);
_.V([_.u3("yt-toggle-button"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],eT.prototype,"onYtToggleButton",null);_.V([_.Yx({is:"ytd-block-button",disableElementRegistration:!0})],eT);
_.k(eT,"ytd-block-button",function(){if(W1X!==void 0)return W1X;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return W1X=b},
{mode:1});var AlN;var UcX;var CB=function(){return _.g.apply(this,arguments)||this};
_.z(CB,_.g);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],CB.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],CB.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],CB.prototype,"data",void 0);_.V([_.Yx({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],CB);
_.k(CB,"ytd-kids-blocklist-picker-item-renderer",function(){if(UcX!==void 0)return UcX;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return UcX=b},{mode:1});var gi=function(){return _.g.apply(this,arguments)||this};
_.z(gi,_.g);gi.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],gi.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],gi.prototype,"data",void 0);_.V([_.Yx({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],gi);
_.k(gi,"ytd-kids-blocklist-picker-content",function(){if(AlN!==void 0)return AlN;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return AlN=
b},{mode:_.Lt("kevlar_poly_si_batch_j025")?1:2});var pZf;var sx=function(){var b=_.g.apply(this,arguments)||this;b.hasAnyRequestSucceeded=!1;b.hasAnyRequestFailed=!1;b.numPendingRequests=0;return b};
_.z(sx,_.g);_.d=sx.prototype;_.d.attached=function(){this.hostElement.setAttribute("dialog","")};
_.d.onDoneButtonTap=function(){_.F8(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.d.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.d.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.d.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.d.onPopupClosed=function(b){var h,y;if(((h=b.detail)==null?void 0:(y=h.popup)==null?void 0:y.is)==="tp-yt-paper-dialog"){var S;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((S=this.data)==null?0:S.successfulToastActionMessage)&&(b=_.SI(this.data.successfulToastActionMessage),this.ytComponentBehavior.resolveCommand(b));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
sx.prototype.onPopupClosed=sx.prototype.onPopupClosed;sx.prototype.onYtServiceRequestError=sx.prototype.onYtServiceRequestError;sx.prototype.onYtServiceRequestCompleted=sx.prototype.onYtServiceRequestCompleted;sx.prototype.onYtServiceRequestSent=sx.prototype.onYtServiceRequestSent;_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],sx.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],sx.prototype,"ytRendererBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],sx.prototype,"data",void 0);_.V([_.u3("yt-service-request-sent"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],sx.prototype,"onYtServiceRequestSent",null);_.V([_.u3("yt-service-request-completed"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],sx.prototype,"onYtServiceRequestCompleted",null);
_.V([_.u3("yt-service-request-error"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],sx.prototype,"onYtServiceRequestError",null);_.V([_.u3("yt-popup-closed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],sx.prototype,"onPopupClosed",null);_.V([_.Yx({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],sx);
_.k(sx,"ytd-kids-blocklist-picker-renderer",function(){if(pZf!==void 0)return pZf;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return pZf=b},{mode:1});var JlP;var e1P;var Y4=function(){return _.g.apply(this,arguments)||this};
_.z(Y4,_.g);Y4.prototype.setTip=function(b){var h=this;this.data&&(this.tip=we2(ib2.getInstance(),b,this.data),_.Ob(this,function(){_.Sx(h.hostElement,"yt-refit")}))};
Y4.prototype.clearTip=function(){this.tip=void 0};
Y4.prototype.computeHidden=function(b){return!b};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Y4.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Y4.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.f("design:type",Boolean)],Y4.prototype,"hidden",void 0);_.V([_.C(),_.f("design:type",Object)],Y4.prototype,"tip",void 0);_.V([_.Yx({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],Y4);
_.k(Y4,"ytd-menu-popup-tip-renderer",function(){if(e1P!==void 0)return e1P;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);
return e1P=b},{mode:1});var C7d;var Tb=function(){var b=_.g.apply(this,arguments)||this;b.useIcons=!1;b.role="menuitem";b.systemIcons=_.r("kevlar_system_icons");return b};
_.z(Tb,_.g);_.d=Tb.prototype;_.d.onFocus=function(){var b;(b=_.$x(this.hostElement).querySelector("tp-yt-paper-item"))==null||b.focus()};
_.d.onTap=function(){var b=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(b&&_.c(b,_.LI))this.componentBehavior.resolveCommand(b),this.updateToggledStateInEntity();else if(b){this.componentBehavior.resolveCommand(b)||_.H9().resolve(_.OM).resolveCommand(b,{form:{element:this.hostElement}});var h;((h=_.c(b,_.KI))==null?void 0:h.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.d.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.d.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.d.updateToggledStateInEntity=function(){var b=this.data.toggleMenuServiceItemEntityKey,h=!this.data.isToggled;b&&this.ytdReduxBehavior.dispatch(_.R7("toggleMenuServiceItemEntity",b,{key:b,isToggled:h}))};
_.d.computeIcon=function(b,h,y){return(b=b?y:h)&&b.iconType?_.o_(b.iconType):""};
_.d.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.d.isIconActive=function(b){return!_.r("toggle_menu_active_icon_killswitch")&&b};
_.tm.Object.defineProperties(Tb.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var b,h,y;return((b=this.data)==null?0:b.isToggled)?(h=this.data)==null?void 0:h.toggledText:(y=this.data)==null?void 0:y.defaultText}}});
Tb.prototype.toggledStateEntityChanged=Tb.prototype.toggledStateEntityChanged;Tb.prototype.onYtServiceRequestCompleted=Tb.prototype.onYtServiceRequestCompleted;Tb.prototype.onTap=Tb.prototype.onTap;Tb.prototype.onFocus=Tb.prototype.onFocus;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Tb.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],Tb.prototype,"componentBehavior",void 0);
_.V([_.B(_.NT),_.f("design:type",Object)],Tb.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Tb.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Tb.prototype,"useIcons",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Tb.prototype,"role",void 0);_.V([_.C({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.f("design:type",String)],Tb.prototype,"icon",void 0);
_.V([_.C({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:_.PP.toggleMenuServiceItemEntitySelector}),_.f("design:type",Object)],Tb.prototype,"toggleMenuServiceItemEntity",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],Tb.prototype,"systemIcons",void 0);_.V([_.u3("focus"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Tb.prototype,"onFocus",null);
_.V([_.W("data.isToggled"),_.f("design:type",Object),_.f("design:paramtypes",[])],Tb.prototype,"toggleButtonText",null);_.V([_.u3("tap"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Tb.prototype,"onTap",null);_.V([_.u3("yt-service-request-completed"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Tb.prototype,"onYtServiceRequestCompleted",null);
_.V([_.OB("toggleMenuServiceItemEntity.isToggled","data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Tb.prototype,"toggledStateEntityChanged",null);_.V([_.Yx({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],Tb);
_.k(Tb,"ytd-toggle-menu-service-item-renderer",function(){if(C7d!==void 0)return C7d;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return C7d=b},{mode:1});var g32;var Gb=function(){return _.g.apply(this,arguments)||this};
_.z(Gb,_.g);Gb.prototype.onFocus=function(){var b;(b=_.$x(this.hostElement).querySelector("tp-yt-paper-item"))==null||b.focus()};
_.tm.Object.defineProperties(Gb.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.lJ(this.data.iconUrl)}}});
Gb.prototype.onFocus=Gb.prototype.onFocus;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Gb.prototype,"rendererBehavior",void 0);_.V([_.B(_.Q5.YtEndpointBehavior),_.f("design:type",Object)],Gb.prototype,"ytEndpointBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Gb.prototype,"data",void 0);_.V([_.u3("focus"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Gb.prototype,"onFocus",null);
_.V([_.W("data.iconUrl"),_.f("design:type",Object),_.f("design:paramtypes",[])],Gb.prototype,"imageSource",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],Gb);
_.k(Gb,"ytd-menu-custom-icon-item-renderer",function(){if(g32!==void 0)return g32;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return g32=b},{mode:_.Lt("kevlar_poly_si_batch_j028")?1:2});_.yd(_.Iu,"yt-list-item-view-model",{props:{data:_.D4,isMenuItem:_.D4,isCompact:_.D4,onTap:_.v3,trailingAccessory:_.v3,hideSelectionTextChevron:_.D4,disabled:_.D4,inPopup:_.D4,disableHorizontalPadding:_.D4,isOverlay:_.D4,isToggled:_.D4,ariaLabel:_.D4,ariaPressed:_.D4,shouldNotFillIcon:_.D4}});var k4=function(){var b=_.g.apply(this,arguments)||this;b.disableBackdropFilter=_.r("web_disable_backdrop_filter");return b};
_.z(k4,_.g);_.d=k4.prototype;
_.d.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"}}}};
_.d.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.d.computeAriaLabel=function(b){return b};
_.d.onPopupOpened=function(){this.items.selected=0;for(var b=_.L(_.$x(this.items).children),h=b.next();!h.done;h=b.next())h.value.popupPositionTarget=this.positionTarget;if(b=this.popupTip||void 0)b.setTip(this.source||""),this.source=void 0;this.veData&&(b=_.UE())&&_.fI(b,[this.veData])};
_.d.onPopupClosed=function(){var b=this.popupTip||void 0;b&&b.clearTip()};
_.d.onIronActivate=function(b){this.shouldPersist(b)||_.F8(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(b=_.UE())&&_.lE(b,this.veData)};
_.d.shouldPersist=function(b){var h,y;if(((h=b.detail)==null?void 0:h.selected)===void 0||(y=this.data)==null||!y.items)return!1;var S,F;return!((F=(S=this.data.items[b.detail.selected])==null?void 0:S.toggleMenuServiceItemRenderer)==null||!F.persistentOnMenuPopup)};
_.d.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(b){return b.menuNavigationItemRenderer?!!b.menuNavigationItemRenderer.icon:b.menuServiceItemRenderer?!!b.menuServiceItemRenderer.icon:b.menuConditionalServiceItemRenderer?!!b.menuConditionalServiceItemRenderer.icon:b.menuConditionalNavigationItemRenderer?!!b.menuConditionalNavigationItemRenderer.icon:b.toggleMenuServiceItemRenderer?!!b.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
k4.prototype.onPopupClosed=k4.prototype.onPopupClosed;k4.prototype.onPopupOpened=k4.prototype.onPopupOpened;_.V([_.B(_.PQ.YtEventForwardingBehavior),_.f("design:type",Object)],k4.prototype,"ytEventForwardingBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],k4.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],k4.prototype,"ytRendererBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],k4.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],k4.prototype,"veData",void 0);_.V([_.C({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.f("design:type",String)],k4.prototype,"ariaLabel",void 0);_.V([_.C({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.f("design:type",Boolean)],k4.prototype,"useIcons",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],k4.prototype,"disableBackdropFilter",void 0);_.V([_.to("#items"),_.f("design:type",Object)],k4.prototype,"items",void 0);_.V([_.to("ytd-menu-popup-tip-renderer"),_.f("design:type",Object)],k4.prototype,"popupTip",void 0);_.V([_.u3("yt-popup-opened"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],k4.prototype,"onPopupOpened",null);
_.V([_.u3("yt-popup-closed"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],k4.prototype,"onPopupClosed",null);_.V([_.Yx({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],k4);
_.k(k4,"ytd-menu-popup-renderer",function(){if(JlP!==void 0)return JlP;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return JlP=b},{mode:1});var sWq;var YKf=_.T(function(b){b=_.h6(b,{icon:void 0});var h=b.data;b=b.icon;var y=function(){return h().iconBadgeText},S={},F=_.P2("yt-spec-icon-badge-shape",function(){a:switch(h().iconBadgeType){case "notification":var a="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":a="yt-spec-icon-badge-shape--type-cart";break a;default:a=""}return a},function(){a:switch(h().iconBadgeStyle){case "overlay":var a="yt-spec-icon-badge-shape--style-overlay";
break a;default:a=""}return a},(S["yt-spec-icon-badge-shape--text-size-small"]=function(){var a=y();
return!!((a==null?0:a.length)&&a.length>2)},S));
return _.M("yt-icon-badge-shape",null,_.M(_.H,{cond:b,then:function(a){return _.M("div",{class:F},_.M("div",{class:"yt-spec-icon-badge-shape__icon"},_.M(_.Xv,{icon:a})),_.M(_.H,{cond:y,then:function(P){return _.M("div",{class:"yt-spec-icon-badge-shape__badge"},P)}}))}}))},"zj");
YKf.idomCompat=!0;_.yd(YKf,"yt-icon-badge-shape",{props:{data:_.D4,icon:_.D4}});var VS=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};b.unseenCount=0;b.isOverlay=!1;return b};
_.z(VS,_.g);_.d=VS.prototype;_.d.attached=function(){var b=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(h){b.onServiceWorkerMessage(h)})};
_.d.onDataChanged=function(){this.isAttached&&!this.JSC$20998_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$20998_lastData=this.data};
_.d.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.d.computeIcon=function(){var b,h;return(b=this.data)==null?void 0:(h=b.icon)==null?void 0:h.iconType};
_.d.onServiceWorkerMessage=function(b){b.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.d.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.c(this.data.updateUnseenCountEndpoint,_.KI)&&_.c(this.data.updateUnseenCountEndpoint,_.KI).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.d.handleUpdateNotificationsUnseenCountAction=function(b){var h=this;b=_.c(b,B7q);b!=null&&b.unseenCount&&b.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(b.unseenCount),_.xP.addLowPriorityJob(function(){h.data.updateUnseenCountEndpoint&&h.ytComponentBehavior.resolveCommand(h.data.updateUnseenCountEndpoint)},b.timeoutMs))};
_.d.onClick=function(){_.Sx(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var b=_.aw(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),h=this.data.menuRequest;b&&b.length===1&&b[0]?_.F8(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):h&&this.ytComponentBehavior.resolveCommand(h)};
_.d.handleTopbarMenuClosedAction=function(b){b==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.d.toggleIconState=function(b){this.iconButton&&(this.iconButton.pressed=b)};
_.d.sendUnseenCountRequest=function(b){var h=this;_.VT(_.xP,function(){h.ytComponentBehavior.resolveCommand(b)})};
_.d.updateCountUI=function(b){this.set("unseenCount",b<9?b:"9+")};
_.tm.Object.defineProperties(VS.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
VS.prototype.handleUpdateNotificationsUnseenCountAction=VS.prototype.handleUpdateNotificationsUnseenCountAction;VS.prototype.onDataChanged=VS.prototype.onDataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],VS.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],VS.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Y9),_.f("design:type",Object)],VS.prototype,"ytdOpenPopupBehavior",void 0);
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],VS.prototype,"ytActionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],VS.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],VS.prototype,"unseenCount",void 0);_.V([_.C(),_.f("design:type",Object)],VS.prototype,"isOverlay",void 0);_.V([_.C({value:!0}),_.f("design:type",Boolean)],VS.prototype,"showTooltips",void 0);_.V([_.to("yt-icon-button"),_.f("design:type",Object)],VS.prototype,"iconButton",void 0);
_.V([_.W("unseenCount"),_.f("design:type",Object),_.f("design:paramtypes",[])],VS.prototype,"showNotificationCount",null);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],VS.prototype,"onDataChanged",null);_.V([_.u3("yt-update-notifications-unseen-count-action"),_.f("design:type",Function),_.f("design:paramtypes",[Object]),_.f("design:returntype")],VS.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.V([_.Yx({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],VS);
_.k(VS,"ytd-notification-topbar-button-renderer",function(){if(sWq!==void 0)return sWq;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return sWq=b},{mode:_.Lt("kevlar_poly_si_batch_j025")?1:2});var TlX;var Ex=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return b};
_.z(Ex,_.g);Ex.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}}}}}};
Ex.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
Ex.prototype.onDarkModeToggled=function(b){this.dark=b};
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],Ex.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Ex.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Ex.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Ex.prototype,"data",void 0);_.V([_.C({value:!0,reflectToAttribute:!0}),_.f("design:type",Boolean)],Ex.prototype,"dark",void 0);
_.V([_.Yx({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],Ex);
_.k(Ex,"yt-pdg-buy-flow-header-renderer",function(){if(TlX!==void 0)return TlX;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return TlX=b},{mode:1});var GWq;var kWE;var iO=function(){var b=_.g.apply(this,arguments)||this;b.immediateValue=0;b.isDarkTheme=!1;b.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return b};
_.z(iO,_.g);_.d=iO.prototype;_.d.created=function(){_.XV.requestAvailability()};
_.d.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.d.dataChanged=function(){var b=_.$x(this.hostElement).querySelector("#color-slider");b.immediateValue&&this.updateSliderKnobAndGradientStyles(b.immediateValue);this.data.notches[0].knobColorArgb&&_.nZ(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.CR(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.QC("HTML_DIR")==="rtl"&&_.$x(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.d.onSliderImmediateChange=function(){var b=_.$x(this.hostElement).querySelector("#color-slider");b.dragging&&(b.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(b.immediateValue),this.updateSliderKnobAndGradientStyles(b.immediateValue)),this.updateSliderAria())};
_.d.onSliderChange=function(){var b=_.$x(this.hostElement).querySelector("#color-slider");b.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(b.immediateValue),this.updateSliderKnobAndGradientStyles(b.immediateValue));this.updateSliderAria()};
_.d.updateSliderAria=function(){var b=_.$x(this.hostElement).querySelector("#color-slider"),h=_.$x(this.hostElement).querySelector("#color-slider");h=_.vi(this.data.notches[h.immediateValue].tierValue);_.un5()&&_.Sx(this.hostElement,"iron-announce",{text:h});b.setAttribute("aria-valuetext",h)};
_.d.updateSuperThanksSelectedTierEntity=function(b){if(b!==this.immediateValue){var h,y,S=this==null?void 0:(h=this.data)==null?void 0:(y=h.superThanksSelectedTierEntity)==null?void 0:y.key;S&&S.length>0&&this.ytdReduxBehavior.dispatch(_.R7("superThanksSelectedTierEntity",S,{key:S,index:b}))}};
_.d.onDarkModeToggledAction=function(b){this.isDarkTheme=b};
_.d.updateSliderKnobAndGradientStyles=function(b){this.immediateValue=b;b=this.data.notches[b];if(b==null?0:b.knobColorArgb)var h={"--ytd-pdg-color-slider-knob-color":_.CR(b.knobColorArgb)};(b==null?0:b.linearGradientCssStyle)&&h!==null&&(h=Object.assign({},h,{"--ytd-pdg-color-slider-active-color":b==null?void 0:b.linearGradientCssStyle}));h!==null&&_.nZ(this.hostElement,h)};
iO.prototype.onSliderChange=iO.prototype.onSliderChange;iO.prototype.onSliderImmediateChange=iO.prototype.onSliderImmediateChange;iO.prototype.dataChanged=iO.prototype.dataChanged;_.V([_.C(),_.f("design:type",Object)],iO.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],iO.prototype,"immediateValue",void 0);_.V([_.C(),_.f("design:type",Number)],iO.prototype,"maxMarkers",void 0);
_.V([_.C({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:uQx}),_.f("design:type",Object)],iO.prototype,"superThanksSelectedTierEntity",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],iO.prototype,"isDarkTheme",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],iO.prototype,"ytdReduxBehavior",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],iO.prototype,"dataChanged",null);
_.V([_.u3("immediate-value-change"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],iO.prototype,"onSliderImmediateChange",null);_.V([_.u3("change"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],iO.prototype,"onSliderChange",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],iO);
_.k(iO,"ytd-pdg-color-slider-renderer",function(){if(kWE!==void 0)return kWE;var b=document.createElement("template");_.D(b,'\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>');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return kWE=b},{mode:1});var VtA;var E3A;var fB=null;
_.pZ({is:"ytd-comment-input",_template:function(){if(E3A!==void 0)return E3A;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return E3A=b},
behaviors:[_.jl4.YtHostElementBehavior,_.xq,_.ug.YtComponentBehavior,_.Cd.YtRendererstamperBehavior,_.d6G.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 _.I$}},
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",_.Hl(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;_.Ye();this.focus()},
detached:function(){document.removeEventListener("tap",_.Hl(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(b){b=b.detail;b=b.isCustomEmoji?b.shortcuts[0]:b.emojiId;var h=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(h,b);this.maybeUpdateTextDirection_();_.Sx(this.hostElement,"input")},
getInputRange_:function(){var b=_.ZA();if(b){b=b.getBrowserRangeObject();for(var h=b.commonAncestorContainer;h;){if(h===this.getEditableTextArea_())return b;h=h.parentNode}}b=this.getEditableTextArea_();b=_.$q(b,b.childNodes.length);b.select();return b.getBrowserRangeObject()},
insertTextWithEmojis_:function(b,h,y){(h=this.emojiManager.createDocumentFragment(h,!0,!1,y===void 0?!0:y))&&h.childNodes.length!==0&&(b.collapsed||b.deleteContents(),y=h.lastChild,b.insertNode(h),_.Kfw(y).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var b=_.ZA();if(b){var h=b.JSC$11530_getStartNode(),y=b.JSC$11530_getEndNode();if(uHd(h)&&uHd(y)){var S=b.JSC$11530_getStartOffset(),F;if(_.OV&&h.nodeType===Node.ELEMENT_NODE&&(F=_.dz8(h)))_.$q(F,0).select();else{F=yA(h)?h:_.b5(h,yA);var a=yA(y)?y:_.b5(y,yA);if(F||a)if(b.isCollapsed()){if(h.nodeType===Node.TEXT_NODE){b=!0;S===h.length&&(b=!1);if(fB==="end"||fB==="right")b=!1;h=h.parentNode;b=[].concat(_.f$(h.parentNode.childNodes)).indexOf(h)+(b?0:1);_.$q(h.parentNode,
b).select()}}else F?F.previousSibling&&F.previousSibling.length>0?_.LT(y,b.JSC$11530_getEndOffset(),F.previousSibling,F.previousSibling.length-1).select():(h=document.createTextNode("\u200b"),F.parentNode.insertBefore(h,F),_.LT(y,b.JSC$11530_getEndOffset(),h,0).select()):a&&(a.nextSibling&&a.nextSibling.length>0?_.LT(h,b.JSC$11530_getStartOffset(),a.nextSibling,1).select():(y=document.createTextNode("\u200b"),a.parentNode.insertBefore(y,a.nextSibling),_.LT(h,b.JSC$11530_getStartOffset(),y,y.length).select()));
fB=null}}else fB=null}else fB=null},
leftKeyPressed_:function(){fB="left"},
rightKeyPressed_:function(){fB="right"},
endKeyPressed_:function(){fB="end"},
maybeDeleteChip_:function(){var b=zo2(!0);if(b){var h=_.ZA(),y=h.JSC$11530_getStartNode();h=h.JSC$11530_getStartOffset();_.SQ(y,h,b,b.childNodes.length).select()}},
maybeBackspaceChip_:function(){var b=zo2(!1);if(b){var h=_.ZA(),y=h.JSC$11530_getStartNode();h=h.JSC$11530_getStartOffset();_.SQ(y,h,b,0).select()}},
maybeBackspaceChipWordMode_:function(b){var h=_.ZA();if(h.isCollapsed()){var y=h.JSC$11530_getStartNode();h=h.JSC$11530_getStartOffset();var S=DMA(y,h,!0);S&&(_.SQ(y,h,S,0).select(),document.execCommand("delete"),b.preventDefault(),b.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(b){var h=_.ZA();if(h.isCollapsed()){var y=h.JSC$11530_getStartNode();h=h.JSC$11530_getStartOffset();var S=DMA(y,h,!1);S&&(_.SQ(y,h,S,S.childNodes.length).select(),document.execCommand("delete"),b.preventDefault(),b.stopImmediatePropagation())}},
onContentClick:function(b){b.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(b){b.defaultPrevented||b.currentTarget.tagName==="YTD-COMMENT-INPUT"&&yA(b.target)&&b.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.$x(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.$x(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(b,h){b=NXx(b,this.emojiManager,h).cloneNode(!0);for(h=b.firstChild;h;)if(h.nodeType!==1)h=h.nextSibling;else switch(h.tagName){case "BR":var y=_.i4();_.MFo(y,h);h=y.nextSibling;break;case "DIV":(y=h.lastChild)&&h.nextSibling&&_.qM(_.i4(),y);h.previousSibling&&(h.previousSibling.nodeType===1||h.previousSibling.nodeType===3&&!h.previousSibling.textContent.endsWith("\n"))&&_.l4(_.i4(),h);y&&y.nodeName==="BR"&&_.sD(y);y=h;h.hasChildNodes()?(h=h.firstChild,
_.nbo(y)):(h=h.nextSibling,_.sD(y));break;default:h=h.nextSibling}return ISF(b)},
setTextAreaValue:function(b){b||(b="");var h=this.getEditableFormattedString_();h.text="";this.getEditableTextArea_().innerText="";typeof b==="string"&&(b={runs:[{text:b}]});h.text=b},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();fB=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var b=this.getEditableTextArea_();b&&(_.$q(b,b.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.QC("HTML_DIR")==="rtl"){var b=this.getEditableTextArea_(),h=this.getTextAreaValue()!==""?"auto":"rtl";b.setAttribute("dir",h)}},
handleInputEvent_:function(){var b=null;if(this.isEmojiButtonDisplayed){var h=this.getInputRange_();h&&(b=this.emojiInput.retrieveTextBeforeRange(h))}this.insertText_(b,!0);this.updateCharCount_();b=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=b.scrollHeight>b.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var b=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:b})},
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(b){this.isEmojiButtonDisplayed&&(b.preventDefault(),b.stopImmediatePropagation(),b=b.clipboardData.getData("text/plain"),this.insertText_(b,!1,!1),_.Sx(this.hostElement,"input"))},
insertText_:function(b,h,y){h=h===void 0?!1:h;y=y===void 0?!0:y;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&b){var S=this.getInputRange_().cloneRange();this.emojiManager&&S&&(h&&this.emojiInput.offsetStartOfRangeBy(S,b.length),this.insertTextWithEmojis_(S,b,y),O8d(this.getEditableTextArea_().lastChild)||(S=this.getInputRange_().cloneRange()),S&&(this.emojiInput.updateSuggestions(S,b),this.updateSuggestionOffset_(S)))}},
getSimpleString:_.vi,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(b){return b?"focused":"not-focused"},
computePlaceholderText_:function(b){return this.getSimpleString(b)},
computeEditableText_:function(b){return this.getSimpleString(b)},
onPrefilledContentDismissed_:function(b){b.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(b,h){b?this.fire("yt-autonav-pause-focus"):h!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(b){var h=this.getEditableTextArea_();[].concat(_.f$(b.dataTransfer.items)).forEach(function(y){y.kind==="string"&&y.type.match("^text/plain")&&y.getAsString(function(S){h.appendChild(document.createTextNode(S))})});
b.preventDefault()},
preventDefault_:function(b){b.preventDefault()},
onSuggestionInsert_:function(b){this.insertTextWithEmojis_(b.detail.range,b.detail.text)},
onEmojiSuggestionClick_:function(b){this.emojiInput.insertSuggestion(b.detail)},
updateSuggestionOffset_:function(b){if(this.emojiInput&&_.$x(this.emojiInput).querySelector("#dropdown")){var h=this.getEditableTextArea_().getBoundingClientRect().bottom,y=b.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(h-y)+5;h=this.getEditableTextArea_().getBoundingClientRect().left;b=b.getBoundingClientRect().left-h;_.$x(this.emojiInput).querySelector("#dropdown").style.marginLeft=b+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.SZ("yt-post"));return this.localStorage}});var wi=function(){var b=_.g.apply(this,arguments)||this;b.currentCommentOptionIndex=0;b.isEmojiPickerDisplayed=!1;b.emojiManager=_.I$;b.isUgcEmpty=!1;b.userGeneratedCommentChangedHandler=function(){_.Sx(b.hostElement,"ytd-pdg-user-generated-comment-changed");b.isEmojiYtdCommentInputEnabled&&(b.isUgcEmpty=!b.ytdCommentInputEl.getTextAreaValue())};
b.pasteHandler=function(h){h.preventDefault();h.stopImmediatePropagation();var y;if(h=(y=h.clipboardData)==null?void 0:y.getData("text/plain"))y=document.getSelection().getRangeAt(0),y.collapsed||y.deleteContents(),h=document.createTextNode(h),y.insertNode(h),y.selectNodeContents(h),y.collapse(!1),h=window.getSelection(),h.removeAllRanges(),h.addRange(y)};
b.onDocumentClick=function(h){if(b.isEmojiPickerDisplayed){var y,S,F;!(h.target instanceof Node)||(y=h.composedPath())!=null&&y.includes(b.editableTextEl)||(S=h.composedPath())!=null&&S.includes(b.emojiButtonEl)||(F=h.composedPath())!=null&&F.includes(b.emojiPickerEl)||(b.isEmojiPickerDisplayed=!1)}};
return b};
_.z(wi,_.g);_.d=wi.prototype;_.d.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.d.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.d.detached=function(){var b;(b=this.contentEl)==null||b.removeEventListener("input",this.userGeneratedCommentChangedHandler);var h;(h=this.contentEl)==null||h.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.d.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.d.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var b;this.contentEl.textContent=this.rendererBehavior.getSimpleString((b=this.data)==null?void 0:b.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.d.reloadEmojis=function(){this.emojiPickerEl&&_.c(this.emojiPicker,_.PCW)&&this.emojiPickerEl.updateEmojiCategories()};
_.d.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.nZ(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.d.handleBackgroundColorStyling=function(){var b;if((b=this.currentCommentOption)==null?0:b.commentBackgroundColorArgb){var h;_.nZ(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.CR((h=this.currentCommentOption)==null?void 0:h.commentBackgroundColorArgb)})}else _.nZ(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.d.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var b;(b=this.contentEl)==null||b.focus()}};
_.d.onEditButtonClick=function(b){var h=document.getSelection();h&&this.contentEl&&(b.stopPropagation(),b.preventDefault(),h.selectAllChildren(this.contentEl),h.collapseToEnd())};
_.d.onContentDrop=function(b){var h=this;if(b.dataTransfer){b=_.L(b.dataTransfer.items);for(var y=b.next();!y.done;y=b.next())y=y.value,y.kind==="string"&&y.type.match("^text/plain")&&y.getAsString(function(S){var F;(F=h.contentEl)==null||F.appendChild(document.createTextNode(S))})}};
_.d.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.d.getUserGeneratedCommentText=function(){var b,h=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(b=this.contentEl)==null?void 0:b.textContent;return h?h.trim():""};
_.d.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.d.onEmojiSelect=function(b){this.ytdCommentInputEl.onEmojiSelect(b)};
_.tm.Object.defineProperties(wi.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.data)==null||!b.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 b;return!((b=this.currentCommentOption)==null||!b.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var b;if(_.c((b=this.currentCommentOption)==null?void 0:b.chipRenderer,_.pjb)){var h;return _.c((h=this.currentCommentOption)==null?void 0:h.chipRenderer,_.pjb)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var b,h;return((b=this.data)==null?0:b.commentOptionRenderers)?_.c((h=this.data)==null?void 0:h.commentOptionRenderers[this.superThanksSelectedTierEntity.index],brd):void 0}var y,S;return((y=this.data)==null?0:y.commentOptionRenderers)?_.c((S=this.data)==null?void 0:S.commentOptionRenderers[this.currentCommentOptionIndex],brd):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var b;return this.rendererBehavior.getSimpleString((b=this.data)==null?void 0:b.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var b;return this.rendererBehavior.getSimpleString((b=this.data)==null?void 0:b.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var b,h;return(h=_.c((b=this.data)==null?void 0:b.commentDialog,_.DEo))==null?void 0:h.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var b,h;return(h=_.c((b=this.data)==null?void 0:b.commentDialog,_.DEo))==null?void 0:h.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var b,h;return(h=_.c((b=this.data)==null?void 0:b.commentDialog,_.DEo))==null?void 0:h.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var b,h,y=(h=_.c((b=this.data)==null?void 0:b.commentDialog,_.DEo))==null?void 0:h.emojiPicker;if(!_.c(y,_.PCW)||!_.c(y,_.PCW).categories)return!1;b=function(a){return a.emojiPickerCategoryRenderer?a.emojiPickerCategoryRenderer.emojiIds&&a.emojiPickerCategoryRenderer.emojiIds.length>0:a.emojiPickerUpsellCategoryRenderer?a.emojiPickerUpsellCategoryRenderer.emojis&&a.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var S,F;return((S=_.c(y,_.PCW))==null?0:(F=S.categories)==null?0:F.find(b))?!0:!1}}});
wi.prototype.onEmojiSelect=wi.prototype.onEmojiSelect;wi.prototype.dataChanged=wi.prototype.dataChanged;wi.prototype.currentCommentOptionChanged=wi.prototype.currentCommentOptionChanged;_.V([_.B(_.NT),_.f("design:type",Object)],wi.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],wi.prototype,"rendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],wi.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.to("#content-dom-if"),_.f("design:type",_.eC)],wi.prototype,"contentDomIfEl",void 0);_.V([_.to("#content-no-emojis"),_.f("design:type",HTMLElement)],wi.prototype,"contentEl",void 0);_.V([_.to("#container"),_.f("design:type",HTMLElement)],wi.prototype,"containerEl",void 0);_.V([_.to("#comment-chip-container"),_.f("design:type",HTMLElement)],wi.prototype,"paidCommentChipContainerEl",void 0);_.V([_.to("#text-input"),_.f("design:type",HTMLElement)],wi.prototype,"editableTextEl",void 0);
_.V([_.to("#emoji-button"),_.f("design:type",HTMLElement)],wi.prototype,"emojiButtonEl",void 0);_.V([_.to("#emoji-picker > yt-emoji-picker-renderer"),_.f("design:type",Object)],wi.prototype,"emojiPickerEl",void 0);_.V([_.to("#text-input > ytd-comment-input"),_.f("design:type",Object)],wi.prototype,"ytdCommentInputEl",void 0);_.V([_.C(),_.f("design:type",Object)],wi.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],wi.prototype,"currentCommentOptionIndex",void 0);
_.V([_.C({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:uQx}),_.f("design:type",Object)],wi.prototype,"superThanksSelectedTierEntity",void 0);_.V([_.C(),_.f("design:type",Object)],wi.prototype,"isEmojiPickerDisplayed",void 0);_.V([_.C(),_.f("design:type",Object)],wi.prototype,"emojiManager",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],wi.prototype,"isUgcEmpty",void 0);
_.V([_.OB("currentCommentOption"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],wi.prototype,"currentCommentOptionChanged",null);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],wi.prototype,"dataChanged",null);_.V([_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],wi.prototype,"isEmojiYtdCommentInputEnabled",null);
_.V([_.W("data.title"),_.f("design:type",Object),_.f("design:paramtypes",[])],wi.prototype,"title",null);_.V([_.W("data.authorText"),_.f("design:type",Object),_.f("design:paramtypes",[])],wi.prototype,"channelName",null);_.V([_.W("data.commentOptionRenderers","currentCommentOption"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],wi.prototype,"shouldShowPaidCommentChipRenderer",null);
_.V([_.W("data.commentOptionRenderers","currentCommentOption"),_.f("design:type",Object),_.f("design:paramtypes",[])],wi.prototype,"paidCommentChipRenderer",null);_.V([_.W("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.f("design:type",Object),_.f("design:paramtypes",[])],wi.prototype,"currentCommentOption",null);
_.V([_.W("data.defaultCommentText","superThanksSelectedTierEntity"),_.f("design:type",Object),_.f("design:paramtypes",[])],wi.prototype,"commentText",null);_.V([_.W("data.placeholderText"),_.f("design:type",Object),_.f("design:paramtypes",[])],wi.prototype,"placeholderText",null);_.V([_.W("data.commentDialog.commentDialogRenderer.editableText"),_.f("design:type",Object),_.f("design:paramtypes",[])],wi.prototype,"editableText",null);
_.V([_.W("data.commentDialog.commentDialogRenderer.emojiButton"),_.f("design:type",Object),_.f("design:paramtypes",[])],wi.prototype,"emojiButton",null);_.V([_.W("data.commentDialog.commentDialogRenderer.emojiPicker"),_.f("design:type",Object),_.f("design:paramtypes",[])],wi.prototype,"emojiPicker",null);
_.V([_.W("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],wi.prototype,"isEmojiButtonDisplayed",null);_.V([_.u3("yt-emoji-select"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],wi.prototype,"onEmojiSelect",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],wi);
_.k(wi,"ytd-pdg-comment-preview-renderer",function(){if(VtA!==void 0)return VtA;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return VtA=b},{mode:2});var isN;var lO=function(){var b=_.g.apply(this,arguments)||this;b.selected=!1;return b};
_.z(lO,_.g);_.d=lO.prototype;_.d.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.d.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.d.dataChanged=function(){this.data&&(_.KZ(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.nZ(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.CR(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.CR(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.d.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.d.onClick=function(){this.logClick()};
_.d.onKeyboardSelect=function(){_.Sx(this.hostElement,"tap");this.onClick()};
_.d.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
lO.prototype.onClick=lO.prototype.onClick;lO.prototype.selectedChanged=lO.prototype.selectedChanged;lO.prototype.dataChanged=lO.prototype.dataChanged;_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],lO.prototype,"componentBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],lO.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.xq),_.f("design:type",Object)],lO.prototype,"ironA11yKeysBehavior",void 0);
_.V([_.B(_.qh),_.f("design:type",Object)],lO.prototype,"ironSelectableBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],lO.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],lO.prototype,"shownThumbnail",void 0);_.V([_.C(),_.f("design:type",Object)],lO.prototype,"basePriceText",void 0);_.V([_.C(),_.f("design:type",Object)],lO.prototype,"purchaseCommand",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],lO.prototype,"selected",void 0);
_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],lO.prototype,"dataChanged",null);_.V([_.OB("selected"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],lO.prototype,"selectedChanged",null);_.V([_.u3("click"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],lO.prototype,"onClick",null);
_.V([_.Yx({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],lO);
_.k(lO,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(isN!==void 0)return isN;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return isN=b},{mode:1});var q7=function(){var b=_.g.apply(this,arguments)||this;b.selectedItemIndex=0;b.buyButtonDisabled=!1;return b};
_.z(q7,_.g);_.d=q7.prototype;
_.d.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]]"}}}}}};
_.d.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var b;var h=(b=_.c(this.data.colorSlider,vof))==null?void 0:b.notches[this.selectedItemIndex].purchaseCommand}else{var y;h=(y=_.c(this.data.selectableItemButtons[this.selectedItemIndex],yZx))==null?void 0:y.purchaseCommand}if(h){b=_.c(h,_.XDP);b.productData||(b.productData={});var S;b.productData={pdgData:{commentMessageText:(S=this.commentPreviewRenderer)==null?void 0:S.getUserGeneratedCommentText()}};
_.Sx(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(h)}}};
_.d.dataChanged=function(){if(this.data){_.I$.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.gs5(_.I$,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.I$.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var b;this.buyButtonDisabled=!((b=_.c(this.data.commentPreview,hfP))==null||!b.placeholderText);this.updatePriceSelectorStatus();var h;if((h=this.data)==null?0:h.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;b=[];this.data.preloadImages&&(b=this.data.preloadImages);
b=b.map(function(y){return _.Ss(y.thumbnails,1920)});
b=_.L(b);for(h=b.next();!h.done;h=b.next())(h=h.value)&&_.tz4(h).thenCatch(function(){_.vX(Error("Ll"))})}};
_.d.superThanksSelectedTierEntityChanged=function(){var b;(this==null?void 0:(b=this.superThanksSelectedTierEntity)==null?void 0:b.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.d.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.d.updatePriceSelectorStatus=function(){this.isColorSlider?(_.$x(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.$x(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.$x(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.$x(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.d.closeBuyFlow=function(){_.F8(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.d.onUserGeneratedContentChanged=function(){var b;this.buyButtonDisabled=!((b=this.commentPreviewRenderer)==null?0:b.getUserGeneratedCommentText())};
_.d.updateSelectedItemIndexFromBinding=function(b){this.selectedItemIndex=b.detail.value};
_.tm.Object.defineProperties(q7.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var b;return!((b=this.data)==null||!b.disclaimerText)}}});
q7.prototype.onUserGeneratedContentChanged=q7.prototype.onUserGeneratedContentChanged;q7.prototype.closeBuyFlow=q7.prototype.closeBuyFlow;q7.prototype.selectedItemIndexChanged=q7.prototype.selectedItemIndexChanged;q7.prototype.superThanksSelectedTierEntityChanged=q7.prototype.superThanksSelectedTierEntityChanged;q7.prototype.dataChanged=q7.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],q7.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],q7.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],q7.prototype,"ytComponentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],q7.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],q7.prototype,"selectedItemIndex",void 0);_.V([_.C(),_.f("design:type",Boolean)],q7.prototype,"isColorSlider",void 0);
_.V([_.C(),_.f("design:type",Object)],q7.prototype,"buyButtonDisabled",void 0);_.V([_.C({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:uQx}),_.f("design:type",Object)],q7.prototype,"superThanksSelectedTierEntity",void 0);_.V([_.to("ytd-pdg-comment-preview-renderer"),_.f("design:type",Object)],q7.prototype,"commentPreviewRenderer",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],q7.prototype,"ytdReduxBehavior",void 0);
_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],q7.prototype,"dataChanged",null);_.V([_.OB("superThanksSelectedTierEntity"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],q7.prototype,"superThanksSelectedTierEntityChanged",null);_.V([_.OB("selectedItemIndex"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],q7.prototype,"selectedItemIndexChanged",null);
_.V([_.u3("yt-service-request-completed"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],q7.prototype,"closeBuyFlow",null);_.V([_.u3("ytd-pdg-user-generated-comment-changed"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],q7.prototype,"onUserGeneratedContentChanged",null);_.V([_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],q7.prototype,"isDisclaimerTextShown",null);
_.V([_.Yx({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],q7);
_.k(q7,"yt-super-vod-buy-flow-content-renderer",function(){if(GWq!==void 0)return GWq;var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return GWq=b},{mode:1});var fsf;var x4=function(){var b=_.g.apply(this,arguments)||this;b.lottieAnimationRef={};return b};
_.z(x4,_.g);_.d=x4.prototype;_.d.created=function(){_.XV.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.Hl(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.d.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.Sx(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.d.detached=function(){this.autoCloseJobId&&_.xP.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.Hl(this,this.onPopupIronOverlayOpened))};
_.d.dataChanged=function(){var b=this;this.data&&this.data.autoCloseDelay&&(_.F8(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.js(_.xP,function(){b.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.nZ(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.d.onDOMLoadedLottie=function(){var b=this,h,y,S=Number((h=this.data)==null?void 0:(y=h.autoCloseDelay)==null?void 0:y.seconds)||0;this.fadeOutJobId=_.js(_.xP,function(){b.lottiePlayerEl.classList.add("fadeout")},(S-.25)*1E3);
this.autoCloseJobId=_.js(_.xP,function(){b.closePopup()},S*1E3)};
_.d.openPopup=function(){this.ironOverlayBehavior.open()};
_.d.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.F8(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.jx(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.H9().resolve(_.OM).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.xP.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.xP.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.d.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var b,h;(b=this.lottieAnimationRef)==null||(h=b.lottieEl)==null||h.destroy();b=this.data.lottie;var y,S;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:b.url+"_"+Math.random(),path:b.url,autoplay:!0,loop:(S=(y=b.settings)==null?void 0:y.loop)!=null?S:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.tm.Object.defineProperties(x4.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var b,h;return!!((b=this.data)==null?0:(h=b.lottie)==null?0:h.url)}}});
x4.prototype.maybeInitializeLottie=x4.prototype.maybeInitializeLottie;x4.prototype.dataChanged=x4.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],x4.prototype,"rendererBehavior",void 0);_.V([_.B(_.tQ),_.f("design:type",Object)],x4.prototype,"ironOverlayBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],x4.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],x4.prototype,"lottiePlayerProps",void 0);
_.V([_.C(),_.f("design:type",Object)],x4.prototype,"lottieAnimationRef",void 0);_.V([_.to("ytd-lottie-player"),_.f("design:type",HTMLElement)],x4.prototype,"lottiePlayerEl",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],x4.prototype,"dataChanged",null);_.V([_.W("data"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],x4.prototype,"hasLottieAnimation",null);
_.V([_.OB("data.lottie.url"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],x4.prototype,"maybeInitializeLottie",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],x4);
_.k(x4,"ytd-desktop-image-overlay-renderer",function(){if(fsf!==void 0)return fsf;var b=document.createElement("template");_.D(b,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-desktop-image-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-desktop-image-overlay-renderer">\n  <yt-img-shadow hidden$="[[hasLottieAnimation]]" thumbnail="[[data.image]]" width="1920" class="style-scope ytd-desktop-image-overlay-renderer"></yt-img-shadow>\n  <ytd-lottie-player class="lottie-player style-scope ytd-desktop-image-overlay-renderer" data="[[lottiePlayerProps]]" hidden$="[[!hasLottieAnimation]]">\n</ytd-lottie-player></div>\n');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return fsf=b},{mode:1});var wZP;var QS=function(){return _.g.apply(this,arguments)||this};
_.z(QS,_.g);_.d=QS.prototype;_.d.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"}}}}};
_.d.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",_.Hl(this,this.closePopup))};
_.d.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Hl(this,this.closePopup))};
_.d.dataChanged=function(){_.aw(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.c(this.data.header,mpf)&&(this.hasBackgroundBanner=!!_.c(this.data.header,mpf).backgroundBanner)};
_.d.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Hl(this,this.closePopup))};
_.d.closePopup=function(){this.data&&this.data.onCloseCommand&&_.dh(this.hostElement,[this.data.onCloseCommand])};
QS.prototype.handleBuyflowSelectionSubmitted=QS.prototype.handleBuyflowSelectionSubmitted;QS.prototype.dataChanged=QS.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],QS.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],QS.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],QS.prototype,"data",void 0);
_.V([_.C({value:!0,reflectToAttribute:!0}),_.f("design:type",Boolean)],QS.prototype,"hasBackgroundBanner",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],QS.prototype,"dataChanged",null);_.V([_.u3("yt-pdg-buy-flow-selection-submitted"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],QS.prototype,"handleBuyflowSelectionSubmitted",null);
_.V([_.Yx({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],QS);
_.k(QS,"ytd-pdg-buy-flow-renderer",function(){if(wZP!==void 0)return wZP;var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return wZP=b},{mode:1});var lsA;var m7=function(){var b=_.g.apply(this,arguments)||this;b.isOpen=!1;b.isPlaylistCreated=!1;return b};
_.z(m7,_.g);_.d=m7.prototype;_.d.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.d.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.Sx(this.hostElement,"yt-refit")};
_.d.onCreateTap=function(){var b=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.dh(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(h,y){if(!_.r("killswitch_ep_in_create_playlist_response")&&(y==null?0:y.actions))for(h=_.L(y.actions),y=h.next();!y.done;y=h.next())y=y.value,_.c(y,_.ge)&&b.ytComponentBehavior.resolveCommand(y)}}]),this.isPlaylistCreated=!0)};
_.d.onKeydown=function(b){if(b.keyCode===13)this.onCreateTap()};
_.d.onServiceRequestCompleted=function(b){b.stopPropagation();_.F8(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.d.computePrivacyBadge=function(b){return b?[{metadataBadgeRenderer:b}]:[]};
m7.prototype.onServiceRequestCompleted=m7.prototype.onServiceRequestCompleted;m7.prototype.onKeydown=m7.prototype.onKeydown;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],m7.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],m7.prototype,"ytComponentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],m7.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],m7.prototype,"isOpen",void 0);
_.V([_.C(),_.f("design:type",Object)],m7.prototype,"isPlaylistCreated",void 0);_.V([_.C({value:{REQUIRED_LABEL:_.Mt("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.Mt("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.f("design:type",Object)],m7.prototype,"addToStrings",void 0);_.V([_.C({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.f("design:type",Array)],m7.prototype,"privacyBadge",void 0);
_.V([_.to("#privacy-input"),_.f("design:type",Object)],m7.prototype,"privacyInput",void 0);_.V([_.to("#name-input"),_.f("design:type",Object)],m7.prototype,"nameInput",void 0);_.V([_.u3("keydown"),_.f("design:type",Function),_.f("design:paramtypes",[KeyboardEvent]),_.f("design:returntype")],m7.prototype,"onKeydown",null);_.V([_.u3("yt-service-request-completed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],m7.prototype,"onServiceRequestCompleted",null);
_.V([_.Yx({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],m7);
_.k(m7,"ytd-add-to-playlist-create-renderer",function(){if(lsA!==void 0)return lsA;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return lsA=b},{mode:1});var qKf;var xcq;var vr=function(){var b=_.g.apply(this,arguments)||this;b.transferState="TRANSFER_STATE_UNKNOWN";return b};
_.z(vr,_.g);vr.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
vr.prototype.onCheckboxChange=function(b){var h=this;this.data&&_.wy(this,"yt-playlist-checkbox-changed",function(){var y=_.mi(b).checked?h.data.addToPlaylistServiceEndpoint:h.data.removeFromPlaylistServiceEndpoint;y&&_.H9().resolve(_.OM).resolveCommand(y,{form:{element:h.hostElement}});_.r("dl_playlist_killswitch")||h.transferState!=="TRANSFER_STATE_UNKNOWN"&&h.transferState!=="TRANSFER_STATE_FAILED"&&h.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:h.data.playlistId,action:"ACTION_SYNC"}})},
100)};
vr.prototype.computeIconType=function(b){return b?"yt-icons:"+b.toLowerCase():null};
vr.prototype.dataChanged=vr.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],vr.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],vr.prototype,"data",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],vr.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],vr.prototype,"ytComponentBehavior",void 0);_.V([_.to("#checkbox"),_.f("design:type",HTMLInputElement)],vr.prototype,"checkbox",void 0);
_.V([_.C({selector:_.TD,selectorArgs:["data.playlistId"]}),_.f("design:type",String)],vr.prototype,"transferState",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],vr.prototype,"dataChanged",null);_.V([_.Yx({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],vr);
_.k(vr,"ytd-playlist-add-to-option-renderer",function(){if(xcq!==void 0)return xcq;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return xcq=b},{mode:1});var QWd=_.T(function(b){var h=b.data;return _.M("ytd-menu-title-renderer",{class:"ytdMenuTitleRendererHost"},_.M("div",null,_.M(_.zv,{text:function(){return h().title}})),_.M(_.H,{cond:function(){return h().subtitle},
then:function(y){return _.M("div",{class:"ytdMenuTitleRendererSubtitle"},_.M(_.zv,{text:y}))}}))},"Aj");
QWd.idomCompat=!0;_.yd(QWd,"ytd-menu-title-renderer",{props:{data:_.D4}});var bI=function(){var b=_.g.apply(this,arguments)||this;b.addToStrings={ADD_TO_DROPDOWN_LABEL:_.Mt("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};b.closeButtonAriaLabel=_.Mt("SBOX_INAPPROPRIATE_CANCEL");b.dialog=_.r("desktop_add_to_playlist_renderer_dialog_popup");return b};
_.z(bI,_.g);_.d=bI.prototype;_.d.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"}}}};
_.d.onPopupOpened=function(){_.Zm(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.d.onPopupClosed=function(){_.Zm(this.playlists,"scrollable",!1)};
_.d.computeAriaLabel=function(){var b;if(this==null?0:(b=this.data)==null?0:b.actions){b=_.L(this.data.actions);for(var h=b.next();!h.done;h=b.next())if(h=h.value,h.menuTitleRenderer)return _.vi(h.menuTitleRenderer.title)}};
_.d.onTapClose=function(){_.F8(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.tm.Object.defineProperties(bI.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var b;if(this==null?0:(b=this.data)==null?0:b.actions){b=_.L(this.data.actions);for(var h=b.next();!h.done;h=b.next())if(h=h.value,h.menuTitleRenderer)return h.menuTitleRenderer}return!1}}});
bI.prototype.onPopupClosed=bI.prototype.onPopupClosed;bI.prototype.onPopupOpened=bI.prototype.onPopupOpened;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],bI.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.PQ.YtEventForwardingBehavior),_.f("design:type",Object)],bI.prototype,"ytEventForwardingBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],bI.prototype,"ytRendererStamperBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],bI.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],bI.prototype,"addToStrings",void 0);_.V([_.C({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.f("design:type",String)],bI.prototype,"ariaLabel",void 0);_.V([_.C(),_.f("design:type",String)],bI.prototype,"closeButtonAriaLabel",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],bI.prototype,"dialog",void 0);
_.V([_.to("#playlists"),_.f("design:type",HTMLElement)],bI.prototype,"playlists",void 0);_.V([_.to("ytd-add-to-playlist-create-renderer"),_.f("design:type",Object)],bI.prototype,"createRenderer",void 0);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],bI.prototype,"menuTitleRenderer",null);_.V([_.u3("yt-popup-opened"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],bI.prototype,"onPopupOpened",null);
_.V([_.u3("yt-popup-closed"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],bI.prototype,"onPopupClosed",null);_.V([_.Yx({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],bI);
_.k(bI,"ytd-add-to-playlist-renderer",function(){if(qKf!==void 0)return qKf;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return qKf=b},{mode:1});var mcA;var hA=function(){var b=_.g.apply(this,arguments)||this;b.isPlaylistEditComplete=!1;b.isCollabEngagementDisabled=!1;b.closeButtonAriaLabel=_.Mt("SBOX_INAPPROPRIATE_CANCEL");b.saveButton={title:_.Mt("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"};b.onValueChanged=function(){b.updateSaveButtonState();b.computeCollabEngagementDisabled()};
return b};
_.z(hA,_.g);_.d=hA.prototype;_.d.attached=function(){this.JSC$21052_scroller&&(this.JSC$21052_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21052_scroller.attached&&typeof this.JSC$21052_scroller.attached==="function"&&this.JSC$21052_scroller.attached())};
_.d.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.d.onPopupClosed=function(){this.reset()};
_.d.close=function(){_.F8(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.d.onClickSave=function(){var b=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var h=[];this.nameInput.value!==null&&h.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&h.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var y=Number(this.privacyInput.value);isNaN(y)||h.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:y})}this.votingInput.value!==null&&(y=this.votingInput.value)&&h.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:y});if(h.length>0){var S;_.c((S=this.data)==null?void 0:S.updateSettingsEndpoint,_.nj).actions=h;var F;if((F=this.data)==null?0:F.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){b.close()}}}),this.isPlaylistEditComplete=!0}}};
_.d.computePrivacyBadge=function(b){return b?[{metadataBadgeRenderer:b}]:[]};
_.d.computeEditorData=function(b){var h,y;return b==null?void 0:(h=b.sections)==null?void 0:(y=h[0])==null?void 0:y.playlistSettingsEditorCasualSectionRenderer};
_.d.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.d.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}}}}}};
_.d.computeAriaLabel=function(){var b,h,y,S=(b=this.data)==null?void 0:(h=b.sections)==null?void 0:(y=h[0])==null?void 0:y.playlistSettingsEditorCasualSectionRenderer;return _.vi(S==null?void 0:S.title)};
_.d.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"}))};
_.d.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.d.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.d.isNameChanged=function(){var b,h,y;return(((b=this.editorData)==null?void 0:(h=b.name)==null?void 0:(y=h.textInputFormFieldRenderer)==null?void 0:y.value)||"")!==(this.nameInput.value||"")};
_.d.isDescriptionChanged=function(){var b,h,y;return(((b=this.editorData)==null?void 0:(h=b.description)==null?void 0:(y=h.textInputFormFieldRenderer)==null?void 0:y.value)||"")!==(this.descriptionInput.value||"")};
_.d.isPrivacyChanged=function(){var b,h,y,S,F,a,P,K;return((P=(b=this.editorData)==null?void 0:(h=b.privacy)==null?void 0:(y=h.dropdownFormFieldRenderer)==null?void 0:(S=y.dropdown)==null?void 0:(F=S.dropdownRenderer)==null?void 0:(a=F.entries)==null?void 0:a.find(function(n){var X;return n==null?void 0:(X=n.privacyDropdownItemRenderer)==null?void 0:X.isSelected}))==null?void 0:(K=P.privacyDropdownItemRenderer)==null?void 0:K.int32Value)!==this.privacyInput.value};
_.d.isVotingChanged=function(){var b,h,y,S,F,a,P,K;return((P=(b=this.editorData)==null?void 0:(h=b.voting)==null?void 0:(y=h.dropdownFormFieldRenderer)==null?void 0:(S=y.dropdown)==null?void 0:(F=S.dropdownRenderer)==null?void 0:(a=F.entries)==null?void 0:a.find(function(n){var X;return n==null?void 0:(X=n.privacyDropdownItemRenderer)==null?void 0:X.isSelected}))==null?void 0:(K=P.privacyDropdownItemRenderer)==null?void 0:K.int32Value)!==this.votingInput.value};
hA.prototype.onPopupClosed=hA.prototype.onPopupClosed;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],hA.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],hA.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.PQ.YtEventForwardingBehavior),_.f("design:type",Object)],hA.prototype,"ytEventForwardingBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],hA.prototype,"ytRendererStamperBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],hA.prototype,"data",void 0);_.V([_.C({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.f("design:type",Array)],hA.prototype,"privacyBadge",void 0);_.V([_.C({computed:"computeEditorData(data)"}),_.f("design:type",Object)],hA.prototype,"editorData",void 0);_.V([_.C(),_.f("design:type",Object)],hA.prototype,"isPlaylistEditComplete",void 0);_.V([_.C(),_.f("design:type",Object)],hA.prototype,"isCollabEngagementDisabled",void 0);
_.V([_.C({value:{REQUIRED_LABEL:_.Mt("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.Mt("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.f("design:type",Object)],hA.prototype,"addToStrings",void 0);_.V([_.C({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.f("design:type",String)],hA.prototype,"ariaLabel",void 0);_.V([_.C(),_.f("design:type",String)],hA.prototype,"closeButtonAriaLabel",void 0);
_.V([_.C(),_.f("design:type",Object)],hA.prototype,"saveButton",void 0);_.V([_.to("#name-input"),_.f("design:type",Object)],hA.prototype,"nameInput",void 0);_.V([_.to("#description-input"),_.f("design:type",Object)],hA.prototype,"descriptionInput",void 0);_.V([_.to("#privacy-input"),_.f("design:type",Object)],hA.prototype,"privacyInput",void 0);_.V([_.to("#voting-input"),_.f("design:type",Object)],hA.prototype,"votingInput",void 0);
_.V([_.to("#scroller"),_.f("design:type",Object)],hA.prototype,"JSC$21052_scroller",void 0);_.V([_.u3("yt-popup-closed"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],hA.prototype,"onPopupClosed",null);_.V([_.C(),_.f("design:type",Object)],hA.prototype,"onValueChanged",void 0);_.V([_.Yx({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],hA);
_.k(hA,"ytd-playlist-settings-editor-renderer",function(){if(mcA===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);mcA=b}b=mcA;return b},{mode:1});var v3X;_.W2("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var yq=function(){return _.g.apply(this,arguments)||this};
_.z(yq,_.g);_.d=yq.prototype;_.d.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}}}}}};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.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 b=this.get("data.nextButton.buttonRenderer.navigationEndpoint");b&&(this.nextNavigationEndpoint=b,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.d.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 b={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",b)}}};
_.d.onPopupOpened=function(b){b.detail!==this&&b.detail!==this.hostElement||!_.r("enable_premium_voluntary_pause")||_.F8(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.d.onNextButtonTap=function(){var b=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);b&&this.ytdOpenPopupBehavior.openPopup(b)};
_.d.updateSelectedResponseIndexFromBinding=function(b){this.selectedResponseIndex=b.detail.value};
yq.prototype.onPopupOpened=yq.prototype.onPopupOpened;yq.prototype.onSelectedResponseIndexChange=yq.prototype.onSelectedResponseIndexChange;yq.prototype.dataChanged=yq.prototype.dataChanged;_.V([_.B(_.Y9),_.f("design:type",Object)],yq.prototype,"ytdOpenPopupBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],yq.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],yq.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],yq.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Number)],yq.prototype,"selectedResponseIndex",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],yq.prototype,"dataChanged",null);_.V([_.OB("selectedResponseIndex"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],yq.prototype,"onSelectedResponseIndexChange",null);
_.V([_.u3("yt-popup-opened"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,Object]),_.f("design:returntype")],yq.prototype,"onPopupOpened",null);_.V([_.Yx({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],yq);
_.k(yq,"ytd-red-cancel-survey-renderer",function(){if(v3X!==void 0)return v3X;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return v3X=b},{mode:1});var bLY;var Sn=function(){var b=_.g.apply(this,arguments)||this;b.closeButtonAriaLabel=_.Mt("SBOX_INAPPROPRIATE_CANCEL");return b};
_.z(Sn,_.g);Sn.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
Sn.prototype.onClickClose=function(){_.F8(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Sn.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Sn.prototype,"rendererStamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Sn.prototype,"data",void 0);_.V([_.C(),_.f("design:type",String)],Sn.prototype,"closeButtonAriaLabel",void 0);_.V([_.Yx({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],Sn);
_.k(Sn,"ytd-search-filter-options-dialog-renderer",function(){if(bLY!==void 0)return bLY;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return bLY=b},{mode:1});var hn2;var A2A=function(){return function(b){b=b.availabilityType;return b===void 0||b==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||b==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var F_=function(){var b=_.g.apply(this,arguments)||this;b.qualityOptions=[];b.upsellOptions=[];b.showUpsellSection=!1;b.rememberSettingsChecked=!1;return b};
_.z(F_,_.g);_.d=F_.prototype;_.d.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}}}}};
_.d.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.d.updateQualityOptions=function(){if(this.formats===void 0)_.F8(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var b=[],h=[];this.showUpsellSection=!1;for(var y=_.L(this.formats),S=y.next();!S.done;S=y.next())(S=S.value)&&(S.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?h.push(S):b.push(S));b.length&&(this.qualityOptions=WLA(b));h.length&&(this.showUpsellSection=!0,this.upsellOptions=WLA(h))}};
_.d.updateRememberString=function(){if(this.downloadQualityPickerEntity)var b=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var h;b=(h=this.data)==null?void 0:h.premiumRememberSettingString}else{var y;b=(y=this.data)==null?void 0:y.rememberSettingString}b=b===void 0?_.Mt("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):b;this.rememberSettingsCheckboxRenderer={title:_.aU(b),disabled:!1}};
_.d.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.tm.Object.defineProperties(F_.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var b;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(b=this.data)==null?void 0:b.qualityFormats}}});
F_.prototype.updateRememberString=F_.prototype.updateRememberString;F_.prototype.updateQualityOptions=F_.prototype.updateQualityOptions;F_.prototype.dataChanged=F_.prototype.dataChanged;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],F_.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],F_.prototype,"ytComponentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],F_.prototype,"data",void 0);
_.V([_.B(_.NT),_.f("design:type",Object)],F_.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Boolean)],F_.prototype,"selectedUpsellQuality",void 0);_.V([_.C({computed:"computeIcon_(data.premiumIcon)",value:""}),_.f("design:type",String)],F_.prototype,"premiumIcon",void 0);_.V([_.C({selector:Kfd,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.f("design:type",Object)],F_.prototype,"downloadQualityPickerEntity",void 0);
_.V([_.C(),_.f("design:type",Array)],F_.prototype,"qualityOptions",void 0);_.V([_.C(),_.f("design:type",Array)],F_.prototype,"upsellOptions",void 0);_.V([_.C(),_.f("design:type",Object)],F_.prototype,"showUpsellSection",void 0);_.V([_.C(),_.f("design:type",Object)],F_.prototype,"rememberSettingsCheckboxRenderer",void 0);_.V([_.to("#remember-settings"),_.f("design:type",HTMLInputElement)],F_.prototype,"rememberSettingsCheckbox",void 0);
_.V([_.C(),_.f("design:type",Object)],F_.prototype,"rememberSettingsChecked",void 0);_.V([_.C(),_.f("design:type",Function)],F_.prototype,"onRememberSettingsCheckedChanged",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],F_.prototype,"dataChanged",null);_.V([_.OB("downloadQualityPickerEntity"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],F_.prototype,"updateQualityOptions",null);
_.V([_.OB("selectedUpsellQuality"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],F_.prototype,"updateRememberString",null);_.V([_.Yx({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],F_);
_.k(F_,"ytd-download-quality-selector-content",function(){if(hn2!==void 0)return hn2;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return hn2=b},{mode:1});var y5A;var aS=function(){var b=_.g.apply(this,arguments)||this;b.selectedUpsellQuality=!1;b.qualityOptions=[];b.useUpsellDismissAlternate=_.r("use_not_now_dl_upsell_dismiss_cta");b.shouldShowAlternateUpsellDimiss=!1;b.rememberSettings=!1;b.rememberSettingsChecked=!1;b.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};b.rememberSettingsCheckedChanged=function(h){b.rememberSettingsChecked=h};
return b};
_.z(aS,_.g);_.d=aS.prototype;
_.d.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.aU(_.Mt("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.aU(_.Mt("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.aU(_.Mt("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.aU(_.Mt("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.d.updateQualityOptions=function(){this.formats===void 0?_.F8(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=WLA(this.formats)};
_.d.onQualityOptionsSelect=function(b){if(this.qualityOptions&&b){b!==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 h=_.L(this.qualityOptions.entries()),y=h.next();!y.done;y=
h.next()){y=_.L(y.value);var S=y.next().value;y=y.next().value;var F=void 0,a=void 0;if(((F=y)==null?void 0:(a=F.settingsRadioOptionRenderer)==null?void 0:a.id)===b){this.selectedQualityIndex=S;b=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((b=this.formats[S])==null?void 0:b.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.d.onClickSubmit=function(){var b;if((b=this.downloadButtonRenderer)==null||!b.isDisabled){var h,y;b=(y=(h=this.data)==null?void 0:h.onSubmitEndpoint)!=null?y:{};var S,F;if(this.formats&&(((S=_.c(b,_.HC))==null?0:S.videoId)||((F=_.c(b,_.uM))==null?0:F.playlistId))){var a,P,K,n,X,u;h={formatType:(n=(a=this.formats)==null?void 0:(P=a[(K=this.selectedQualityIndex)!=null?K:0])==null?void 0:P.format)!=null?n:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(X=this.getOfflineEndpoint(b))==null?void 0:(u=X.actionParams)==null?void 0:u.settingsAction)};this.getOfflineEndpoint(b).actionParams=h;this.ytComponentBehavior.resolveCommand(b)}_.F8(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.d.onClickUpsell=function(){var b;if((b=this.upsellButtonRenderer)==null||!b.isDisabled){var h,y;b=(y=(h=this.data)==null?void 0:h.upsellEndpoint)!=null?y:{};this.ytComponentBehavior.resolveCommand(b);_.F8(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);h="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var S,F,a,P;h=(P=(S=this.formats)==null?void 0:(F=S[(a=this.selectedQualityIndex)!=null?a:0])==null?void 0:F.format)!=null?P:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:h}})}};
_.d.onClickClose=function(){_.F8(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.d.getOfflineSettingsAction=function(b,h){return b?h===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":h:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.d.getOfflineEndpoint=function(b){return _.c(b,_.HC)?_.c(b,_.HC):_.c(b,_.uM)};
_.tm.Object.defineProperties(aS.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.aU(_.Mt("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var b;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(b=this.data)==null?void 0:b.qualityFormats}}});
aS.prototype.updateQualityOptions=aS.prototype.updateQualityOptions;aS.prototype.dataChanged=aS.prototype.dataChanged;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],aS.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],aS.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],aS.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],aS.prototype,"ytActionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],aS.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Number)],aS.prototype,"selectedQualityIndex",void 0);_.V([_.C(),_.f("design:type",Object)],aS.prototype,"selectedUpsellQuality",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],aS.prototype,"ytdReduxBehavior",void 0);
_.V([_.C({selector:Kfd,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.f("design:type",Object)],aS.prototype,"downloadQualityPickerEntity",void 0);_.V([_.C(),_.f("design:type",Array)],aS.prototype,"qualityOptions",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],aS.prototype,"useUpsellDismissAlternate",void 0);_.V([_.C(),_.f("design:type",Object)],aS.prototype,"shouldShowAlternateUpsellDimiss",void 0);
_.V([_.C(),_.f("design:type",Object)],aS.prototype,"downloadButtonRenderer",void 0);_.V([_.C(),_.f("design:type",Object)],aS.prototype,"upsellButtonRenderer",void 0);_.V([_.C(),_.f("design:type",Object)],aS.prototype,"cancelButtonRenderer",void 0);_.V([_.C(),_.f("design:type",Object)],aS.prototype,"upsellCancelButtonRenderer",void 0);_.V([_.C(),_.f("design:type",Object)],aS.prototype,"rememberSettings",void 0);_.V([_.C(),_.f("design:type",Object)],aS.prototype,"rememberSettingsChecked",void 0);
_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],aS.prototype,"dataChanged",null);_.V([_.OB("downloadQualityPickerEntity"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],aS.prototype,"updateQualityOptions",null);_.V([_.Yx({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],aS);
_.k(aS,"ytd-download-quality-selector-renderer",function(){if(y5A!==void 0)return y5A;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return y5A=b},{mode:1});var SJN;var dY=function(){return _.g.apply(this,arguments)||this};
_.z(dY,_.g);dY.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
dY.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"}}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],dY.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],dY.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],dY.prototype,"data",void 0);_.V([_.C({computed:"computeIcon_(data.infoIcon)"}),_.f("design:type",Object)],dY.prototype,"infoIcon",void 0);
_.V([_.C({computed:"computeIcon_(data.warningIcon)"}),_.f("design:type",Object)],dY.prototype,"warningIcon",void 0);_.V([_.Yx({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],dY);
_.k(dY,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(SJN!==void 0)return SJN;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return SJN=b},{mode:1});var F4q;var jn=function(){return _.g.apply(this,arguments)||this};
_.z(jn,_.g);jn.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
jn.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"}}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],jn.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],jn.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],jn.prototype,"data",void 0);_.V([_.Yx({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],jn);
_.k(jn,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(F4q!==void 0)return F4q;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return F4q=b},{mode:1});var aM2;var $D=function(){return _.g.apply(this,arguments)||this};
_.z($D,_.g);$D.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
$D.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"}}}}};
$D.prototype.onServiceRequestSentOrCompleted=function(b,h){h&&h.actions&&h.actions.length>0&&_.F8(this.hostElement,"yt-close-popup-action",[this.is])};
$D.prototype.onServiceRequestSentOrCompleted=$D.prototype.onServiceRequestSentOrCompleted;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],$D.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],$D.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],$D.prototype,"data",void 0);
_.V([_.u3("yt-service-request-completed"),_.u3("yt-service-request-sent"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,_.xE]),_.f("design:returntype")],$D.prototype,"onServiceRequestSentOrCompleted",null);_.V([_.Yx({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],$D);
_.k($D,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(aM2!==void 0)return aM2;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return aM2=b},{mode:1});var dFf;var Lu=function(){var b=_.g.apply(this,arguments)||this;b.submitButtonDisabled=!0;return b};
_.z(Lu,_.g);_.d=Lu.prototype;_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.d.onDataChanged=function(){var b,h,y;if(((b=this.data)==null?void 0:(h=b.confirmButton)==null?void 0:(y=h.buttonRenderer)==null?void 0:y.isDisabled)!==void 0){var S,F,a;this.submitButtonDisabled=(S=this.data)==null?void 0:(F=S.confirmButton)==null?void 0:(a=F.buttonRenderer)==null?void 0:a.isDisabled}};
_.d.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.d.updateSubmitButtonDisabledFromBinding=function(b){this.submitButtonDisabled=b.detail.value};
_.d.updateSubmitButtonDisabledFromConfirmCheckbox=function(b){this.submitButtonDisabled=!b.detail.value};
Lu.prototype.onDataChanged=Lu.prototype.onDataChanged;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Lu.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Lu.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Lu.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],Lu.prototype,"submitButtonDisabled",void 0);
_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Lu.prototype,"onDataChanged",null);_.V([_.Yx({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],Lu);
_.k(Lu,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(dFf!==void 0)return dFf;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return dFf=b},{mode:1});var jZf;var PY=function(){return _.g.apply(this,arguments)||this};
_.z(PY,_.g);_.tm.Object.defineProperties(PY.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var b,h,y;return((b=this.data)==null?void 0:b.title)+" "+((h=this.data)==null?void 0:h.metadataPrimary)+" "+((y=this.data)==null?void 0:y.metadataSecondary)}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],PY.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],PY.prototype,"ytComponentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],PY.prototype,"data",void 0);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],PY.prototype,"ariaLabel",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],PY);
_.k(PY,"ytd-compact-product-list-item-renderer",function(){if(jZf!==void 0)return jZf;var b=document.createElement("template");_.D(b,'\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>');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return jZf=b},{mode:1});var $FF;var Ku=function(){return _.g.apply(this,arguments)||this};
_.z(Ku,_.g);Ku.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]]"}}}}}};
_.tm.Object.defineProperties(Ku.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Ku.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],Ku.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Ku.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Ku.prototype,"data",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],Ku);
_.k(Ku,"ytd-compact-product-list-renderer",function(){if($FF!==void 0)return $FF;var b=document.createElement("template");_.D(b,'\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>');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return $FF=b},{mode:1});var L4N;var ZJ=function(){return _.g.apply(this,arguments)||this};
_.z(ZJ,_.g);_.d=ZJ.prototype;_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.d.getBackgroundUrl=function(){var b=this.get("data.headerImage.thumbnails");return b?"url("+_.Ss(b,this.hostElement.clientWidth)+")":""};
_.d.onDataChanged=function(){var b=this.getBackgroundUrl();b&&(this.header.style.backgroundImage=b);b=_.UE();var h=_.Ae(),y=this.get("data.trackingParams");y&&h&&b&&_.Vh(b,h,_.I_(y));b=_.L(this.hostElement.querySelectorAll("yt-img-shadow"));for(h=b.next();!h.done;h=b.next())h.value.onShow()};
_.d.onPopupClosed=function(b){_.mi(b).localName==="ytd-membership-post-cancel-renderer"&&_.F8(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
ZJ.prototype.onPopupClosed=ZJ.prototype.onPopupClosed;ZJ.prototype.onDataChanged=ZJ.prototype.onDataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],ZJ.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],ZJ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],ZJ.prototype,"data",void 0);_.V([_.to("#header"),_.f("design:type",HTMLDivElement)],ZJ.prototype,"header",void 0);
_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],ZJ.prototype,"onDataChanged",null);_.V([_.u3("yt-popup-closed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],ZJ.prototype,"onPopupClosed",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],ZJ);
_.k(ZJ,"ytd-membership-post-cancel-renderer",function(){if(L4N!==void 0)return L4N;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return L4N=b},{mode:1});var P$P;var oS=function(){return _.g.apply(this,arguments)||this};
_.z(oS,_.g);oS.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
oS.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],oS.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],oS.prototype,"data",void 0);_.V([_.to("ytd-feedback-survey-renderer"),_.f("design:type",Object)],oS.prototype,"feedbackSurveyRenderer",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],oS);
_.k(oS,"ytd-sponsorship-confirm-cancel-content",function(){if(P$P!==void 0)return P$P;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return P$P=b},{mode:1});var K4X;var M0=function(){var b=_.g.apply(this,arguments)||this;b.maybeSubmitFeedback=function(){b.content&&b.content.maybeSubmitFeedback()};
return b};
_.z(M0,_.g);_.d=M0.prototype;_.d.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.d.onYtPopupOpened=function(b,h){h===this&&this.data&&this.data.onOpenCommands&&_.jx(this.hostElement,this.data.onOpenCommands,this.hostElement);_.F8(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.d.onYtPopupClosed=function(b,h){(h&&h.canceled===!0||h&&h.canceled===!1&&h.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.jx(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.d.onYtServiceRequestCompleted=function(){_.F8(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.d.onYtServiceRequestError=function(b){_.lM(this.hostElement,b.detail.error.message)};
_.d.onDataChanged=function(){if(this.isAttached){var b=this.backgroundUrl;b&&(_.$x(this.hostElement).querySelector("#header").style.backgroundImage=b)}};
_.tm.Object.defineProperties(M0.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var b=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return b?"url("+_.Ss(b,this.hostElement.clientWidth)+")":""}}});
M0.prototype.onDataChanged=M0.prototype.onDataChanged;M0.prototype.onYtServiceRequestError=M0.prototype.onYtServiceRequestError;M0.prototype.onYtServiceRequestCompleted=M0.prototype.onYtServiceRequestCompleted;M0.prototype.onYtPopupClosed=M0.prototype.onYtPopupClosed;M0.prototype.onYtPopupOpened=M0.prototype.onYtPopupOpened;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],M0.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],M0.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],M0.prototype,"data",void 0);_.V([_.C({value:function(){return _.Mt("SBOX_INAPPROPRIATE_CANCEL")}}),
_.f("design:type",String)],M0.prototype,"closeButtonAriaLabel",void 0);_.V([_.to("#scrollable"),_.f("design:type",Object)],M0.prototype,"scrollable",void 0);_.V([_.to("ytd-sponsorship-confirm-cancel-content"),_.f("design:type",Object)],M0.prototype,"content",void 0);_.V([_.u3("yt-popup-opened"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,Object]),_.f("design:returntype")],M0.prototype,"onYtPopupOpened",null);
_.V([_.u3("yt-popup-closed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,Object]),_.f("design:returntype")],M0.prototype,"onYtPopupClosed",null);_.V([_.u3("yt-service-request-completed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],M0.prototype,"onYtServiceRequestCompleted",null);
_.V([_.u3("yt-service-request-error"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],M0.prototype,"onYtServiceRequestError",null);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],M0.prototype,"onDataChanged",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],M0);
_.k(M0,"ytd-sponsorship-confirm-cancel-renderer",function(){if(K4X!==void 0)return K4X;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return K4X=b},{mode:_.Lt("kevlar_poly_si_batch_j081")?1:2});var ZLA;var nu=function(){return _.g.apply(this,arguments)||this};
_.z(nu,_.g);nu.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],nu.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],nu.prototype,"data",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],nu);
_.k(nu,"ytd-sponsorships-celebration-content",function(){if(ZLA!==void 0)return ZLA;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return ZLA=
b},{mode:1});var oAA;var McP=_.bm(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),X_=function(){var b=_.g.apply(this,arguments)||this;b.scriptsAppended=!1;b.useFullWidthPrimaryButton=!1;b.buttonOverrides={type:"tonal",style:"overlay-dark"};return b};
_.z(X_,_.g);_.d=X_.prototype;_.d.dataChanged=function(){var b;this.useFullWidthPrimaryButton=!((b=this.data)==null||!b.useFullWidthPrimaryButton)};
_.d.configureRendererStamper=function(){return{"data.header.sponsorshipsHeaderRenderer.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0},properties:{overrides:"[[buttonOverrides]]"},params:{forceModernIconButton:_.r("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.onDataChanged=function(){var b;(b=this.header)==null||b.style.setProperty("background-color",this.backgroundColor);if(b=this.headerImageUrl){var h;(h=this.header)==null||h.style.setProperty("background-image",b)}h=_.UE(4);b=_.Ae(4);var y=this.get("data.trackingParams");if(y&&b&&h){var S=_.I_(y);_.Vh(h,b,S);_.r("combine_ve_grafts")?_.rU().graftServerVe(y,b,4):_.Vh(h,b,S)}h=_.L(this.hostElement.querySelectorAll("yt-img-shadow"));for(b=h.next();!b.done;b=h.next())b.value.onShow();if(h=this.get("data.gtmId"))_.dc(h,
_.QC("GL","")),this.setupConversionTracking()};
_.d.setupConversionTracking=function(){if(!this.scriptsAppended){var b=document.createElement("script");_.K$(b,_.L$(McP.join("")));document.head.appendChild(b);b=document.createElement("noscript");b.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(b);this.scriptsAppended=!0}};
_.d.onPopupClosed=function(b){if(_.mi(b).localName==="ytd-sponsorships-celebration-renderer"){_.F8(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var h;this.data&&((h=this.data)==null?0:h.dismissCommand)&&_.nt.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.tm.Object.defineProperties(X_.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var b=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.CR(b)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var b=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return b?"url("+_.Ss(b,this.hostElement.getBoundingClientRect().width)+")":""}}});
X_.prototype.onPopupClosed=X_.prototype.onPopupClosed;X_.prototype.onDataChanged=X_.prototype.onDataChanged;X_.prototype.dataChanged=X_.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],X_.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],X_.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],X_.prototype,"data",void 0);
_.V([_.to("#header"),_.f("design:type",HTMLElement)],X_.prototype,"header",void 0);_.V([_.C(),_.f("design:type",Object)],X_.prototype,"scriptsAppended",void 0);_.V([_.C({type:Boolean,reflectToAttribute:!0}),_.f("design:type",Object)],X_.prototype,"useFullWidthPrimaryButton",void 0);_.V([_.C(),_.f("design:type",Object)],X_.prototype,"buttonOverrides",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],X_.prototype,"dataChanged",null);
_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],X_.prototype,"onDataChanged",null);_.V([_.u3("yt-popup-closed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],X_.prototype,"onPopupClosed",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],X_);
_.k(X_,"ytd-sponsorships-celebration-renderer",function(){if(oAA!==void 0)return oAA;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return oAA=b},{mode:1});var nAa;var HY=function(){var b=_.g.apply(this,arguments)||this;b.isToggleChecked=!1;return b};
_.z(HY,_.g);HY.prototype.onDataChanged=function(){var b;this.isToggleChecked=((b=this.data)==null?void 0:b.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
HY.prototype.close=function(){var b;((b=this.data)==null?0:b.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
HY.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var b,h=_.c((b=this.data)==null?void 0:b.switchButton,SXf);h&&(this.isToggleChecked&&h.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(h.switchOnInnertubeCommand),!this.isToggleChecked&&h.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(h.switchOffInnertubeCommand))};
HY.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
HY.prototype.onDataChanged=HY.prototype.onDataChanged;_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],HY.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],HY.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],HY.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],HY.prototype,"isToggleChecked",void 0);_.V([_.C({value:_.Mt("CLOSE")}),_.f("design:type",String)],HY.prototype,"closeButtonAriaLabel",void 0);
_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],HY.prototype,"onDataChanged",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],HY);
_.k(HY,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(nAa!==void 0)return nAa;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return nAa=b},{mode:1});var Xzx;var uI=function(){return _.g.apply(this,arguments)||this};
_.z(uI,_.g);_.d=uI.prototype;_.d.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"}}}}};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.detached=function(){this.playerElement.stop()};
_.d.onYtServiceRequestCompleted=function(){_.F8(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.d.onYtServiceRequestError=function(b){_.lM(this.hostElement,b.detail.error.message)};
_.d.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.d.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.d.getTier=function(b,h){return!b||!b.tiers||h<0?null:_.c(b.tiers[h],jQq)};
_.d.moreThanOne=function(b){return!!(b&&b.length>1)};
_.d.tierOverviewTap=function(b){var h=this;this.selectedTier=b.model.index;_.Ob(this,function(){_.Sx(h.hostElement,"yt-refit")})};
_.d.computeSelectedClass=function(b,h){return this.isSelected(b,h)?"selected":""};
_.d.computeButtonAriaPressed=function(b,h){return this.isSelected(b,h)?"true":"false"};
_.d.isSelected=function(b,h){return b===h};
_.d.onDataChanged=function(){_.$x(this.hostElement).querySelector("#header-overlay").style.visibility="";_.$x(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 b=_.L(this.hostElement.querySelectorAll("yt-img-shadow")),
h=b.next();!h.done;h=b.next())h.value.onShow();var y;this.set("selectedTier",(y=this.get("data.targetTierIndex"))!=null?y:0);var S;(b=(S=this.data)==null?void 0:S.onVisible)&&this.ytComponentBehavior.resolveCommand(b)};
_.d.initializeVe=function(b){var h=_.UE(),y=_.Ae(),S=this.get("data.trackingParams");y&&h&&(this.screenLayer=4,h=_.bN(_.oa4)(void 0,69877,{clientScreenNonce:h,visualElement:y},void 0,void 0,void 0),_.e3(h,69877,4),y=_.Ae(4),S&&y&&(S=_.I_(S),_.Vh(h,y,S),b&&(this.offerVideoVe=_.Kh(74659),_.Vh(h,S,this.offerVideoVe))))};
_.d.setHeaderBackground=function(){var b=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.$x(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.CR(b);if(b=this.getHeaderImage())b=_.Ss(b,screen.width),_.$x(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+b+")"};
_.d.getHeaderImage=function(){var b=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&b?b:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.d.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.d.setupVideoPlayer=function(b){var h=this,y,S,F,a;return _.Z(function(P){if(P.nextAddress==1)return y=h.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),S=h.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.r("kevlar_player_update_killswitch")?h.playerElement.update({args:{autoplay:y,video_id:b,player_params:S}}):h.playerElement.loadVideoWithPlayerVars({autoplay:y,video_id:b,player_params:S}),
P.yield(h.playerElement.getPlayerPromise(),2);F=P.yieldResult;F.addEventListener("onStateChange",function(K){h.onPlayerStateChange(K)});
F.setScreenLayer(h.screenLayer);(a=_.UE(4))&&h.offerVideoVe&&_.iE(a,h.offerVideoVe);y&&(h.pauseOtherPlayers(),h.playerElement.focusOnPlayer(),h.playerElement.getPlayer().hideControls(),_.VT(_.xP,function(){h.fadeOutHeaderOverlay()},4E3));
_.g3(P)})};
_.d.onPlayerStateChange=function(b){b===1?this.backgroundPlayerElement&&(b=this.backgroundPlayerElement.player_.getPlayerState(),b!==1&&b!==3||this.backgroundPlayerElement.pause()):b===0&&(_.$x(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.$x(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.d.fadeOutHeaderOverlay=function(){_.$x(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.d.onHeaderTap=function(){if(this.offerVideo){_.$x(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var b;((b=this.playerElement.player_)==null?void 0:b.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(b=_.UE(4))&&this.offerVideoVe&&_.lE(b,this.offerVideoVe)}};
_.d.getBackgroundImageLayerClass=function(b){return b?"background-image-layer-with-video":""};
_.d.getHeaderClass=function(b){return b?"header-with-video":""};
_.d.getHeaderOverlayClass=function(b){return b?"header-overlay-with-video":""};
_.d.getTitleContainerClass=function(b,h){return b?"title-container-with-video":h?"title-container-without-video-flexible":"title-container-without-video"};
_.d.tierTitleDisplayStatus=function(b){return this.moreThanOne(b)?"hide":"show"};
_.d.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.H9().resolve(_.Vp).getPlayerElement():this.backgroundPlayerElement=_.ye();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var b=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=b===1||b===3;this.backgroundPlayerElement.pause()}};
_.d.isMiniplayerActive=function(){return _.H9().resolve(_.Vp).isMiniplayerActive()};
_.d.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ut("selected-tier-changed",this.selectedTier))};
uI.prototype.selectedTierChangedForBinding=uI.prototype.selectedTierChangedForBinding;uI.prototype.onDataChanged=uI.prototype.onDataChanged;uI.prototype.onYtPopupClosed=uI.prototype.onYtPopupClosed;uI.prototype.onYtPopupOpened=uI.prototype.onYtPopupOpened;uI.prototype.onYtServiceRequestError=uI.prototype.onYtServiceRequestError;uI.prototype.onYtServiceRequestCompleted=uI.prototype.onYtServiceRequestCompleted;
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],uI.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],uI.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],uI.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],uI.prototype,"data",void 0);_.V([_.C({value:0}),_.f("design:type",Number)],uI.prototype,"selectedTier",void 0);
_.V([_.C({value:""}),_.f("design:type",String)],uI.prototype,"offerVideo",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],uI.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.V([_.C({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.mM(this)}}),
_.f("design:type",String)],uI.prototype,"playerId",void 0);_.V([_.to("tp-yt-paper-dialog-scrollable"),_.f("design:type",Object)],uI.prototype,"scrollable",void 0);_.V([_.to("ytd-sponsorships-tier-renderer"),_.f("design:type",Object)],uI.prototype,"tierRenderer",void 0);_.V([_.to("#player"),_.f("design:type",Object)],uI.prototype,"playerElement",void 0);
_.V([_.u3("yt-service-request-completed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],uI.prototype,"onYtServiceRequestCompleted",null);_.V([_.u3("yt-service-request-error"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],uI.prototype,"onYtServiceRequestError",null);
_.V([_.u3("yt-popup-opened"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],uI.prototype,"onYtPopupOpened",null);_.V([_.u3("yt-popup-closed"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],uI.prototype,"onYtPopupClosed",null);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],uI.prototype,"onDataChanged",null);
_.V([_.OB("selectedTier"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],uI.prototype,"selectedTierChangedForBinding",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],uI);
_.k(uI,"ytd-sponsorships-offer-renderer",function(){if(Xzx!==void 0)return Xzx;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return Xzx=b},{mode:_.Lt("kevlar_poly_si_batch_j077")?1:2});var HLf;var OZ=function(){var b=_.g.apply(this,arguments)||this;b.buttonOverrides={type:"filled",style:"mono"};return b};
_.z(OZ,_.g);OZ.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}}}}}};
OZ.prototype.backgroundColorChanged=function(){var b,h,y,S=(h=_.c((b=this.data)==null?void 0:b.content,$Yf))==null?void 0:(y=h.backgroundColor)==null?void 0:y.backgroundColor;S&&(b=_.eI(S),_.$x(this.hostElement).querySelector("#banner").style.backgroundColor=b,_.$x(this.hostElement).querySelector("#abstract-art").style.backgroundColor=b)};
OZ.prototype.attached=function(){this.JSC$21137_scroller&&(this.JSC$21137_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21137_scroller.attached&&typeof this.JSC$21137_scroller.attached==="function"&&this.JSC$21137_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
OZ.prototype.backgroundColorChanged=OZ.prototype.backgroundColorChanged;_.V([_.C(),_.f("design:type",Object)],OZ.prototype,"data",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],OZ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.to("#scroller"),_.f("design:type",Object)],OZ.prototype,"JSC$21137_scroller",void 0);_.V([_.C(),_.f("design:type",Object)],OZ.prototype,"buttonOverrides",void 0);
_.V([_.OB("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],OZ.prototype,"backgroundColorChanged",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],OZ);
_.k(OZ,"ytd-sponsorships-promotion-celebration-renderer",function(){if(HLf!==void 0)return HLf;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return HLf=b},{mode:_.Lt("kevlar_poly_si_batch_j077")?1:2});var uUA;var OLA;var N0=function(){return _.g.apply(this,arguments)||this};
_.z(N0,_.g);N0.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
N0.prototype.computeIsInitiallyChecked=function(b){return b===1};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],N0.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],N0.prototype,"data",void 0);_.V([_.to("#checkbox"),_.f("design:type",Object)],N0.prototype,"checkbox",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],N0);
_.k(N0,"ytd-subscription-toggle-option-renderer",function(){if(OLA!==void 0)return OLA;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return OLA=b},{mode:1});var tA=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return b};
_.z(tA,_.g);tA.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"}}}};
tA.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
tA.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var b=_.$x(this.hostElement).querySelector("#options").selected;b=this.data.options[b].subscriptionRadioOptionRenderer.serviceEndpoint;var h=_.$x(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");h&&b&&b.modifyChannelNotificationPreferenceEndpoint&&(h=h.getValue())&&(b.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[h]);_.H9().resolve(_.OM).resolveCommand(b,{form:{element:this.hostElement}});
_.F8(this.hostElement,"yt-close-popup-action")};
_.tm.Object.defineProperties(tA.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var b=this.data.options,h=0;h<b.length;h++){var y=b[h].subscriptionRadioOptionRenderer;if(y&&y.selected)return h}return null}}});
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],tA.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],tA.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.PQ.YtEventForwardingBehavior),_.f("design:type",Object)],tA.prototype,"eventForwardingBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],tA.prototype,"ytRendererBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],tA.prototype,"data",void 0);_.V([_.W("data.options"),_.f("design:type",Object),_.f("design:paramtypes",[])],tA.prototype,"initialIndex",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],tA);
_.k(tA,"ytd-subscription-notification-options-renderer",function(){if(uUA!==void 0)return uUA;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return uUA=b},{mode:1});var NzA;var tcX=function(){return _.g.apply(this,arguments)||this};
_.z(tcX,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],tcX.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],tcX.prototype,"data",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],tcX);
_.k(tcX,"ytd-tvfilm-offer-groups-renderer",function(){if(NzA!==void 0)return NzA;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return NzA=b},{mode:1});var r5a;var rY=function(){return _.g.apply(this,arguments)||this};
_.z(rY,_.g);_.d=rY.prototype;_.d.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"}}}};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.d.computeThumbnailClass=function(b){return b.thumbnailOverlays?b.isShow?"thumbnail-show":"thumbnail-movie":b.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.d.computeCommerceSectionClass=function(b){return b.offers&&b.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.d.computeTitleClass=function(b){return b.offers&&b.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.d.onDataChanged=function(){[].concat(_.f$(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(b){b.onShow()})};
rY.prototype.onDataChanged=rY.prototype.onDataChanged;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],rY.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],rY.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],rY.prototype,"data",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],rY.prototype,"onDataChanged",null);
_.V([_.Yx({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],rY);
_.k(rY,"ytd-ypc-offers-overlay-renderer",function(){if(r5a!==void 0)return r5a;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return r5a=b},{mode:_.Lt("kevlar_poly_si_batch_j028")?1:2});var c5N;var RnX=function(){this.usedMethods=new Set};
RnX.prototype.add=function(b){this.usedMethods.add(b)};
RnX.prototype.reset=function(){this.usedMethods.clear()};var znA,DFa;
_.IMF=function(b,h){this.query=b;this.previousSearchQuery=h;this.id=znA++;if(!DFa){h=_.QC("SBOX_SETTINGS");b="https://"+((h==null?void 0:h.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var y=h==null?void 0:h.REQUEST_LANGUAGE;y&&(b+="&hl="+y);(y=h==null?void 0:h.REQUEST_DOMAIN)&&(b+="&gl="+y);b+="&client=youtube&gs_ri=youtube";(y=h==null?void 0:h.SUGG_EXP_ID)&&(b+="&sugexp="+encodeURIComponent(y));(y=h==null?void 0:h.PSUGGEST_TOKEN)&&(b+="&tok="+y);(h=h==
null?void 0:h.SESSION_INDEX)&&(b+="&authuser="+h);_.r("desktop_enable_visual_suggest")&&(b+="&h=180&w=320&ytvs=1");DFa=b}};
_.BzX=function(b){var h="q="+encodeURIComponent(b.query);b.previousSearchQuery&&(h+="&pq="+encodeURIComponent(b.previousSearchQuery));return h};
_.W42=function(){var b=_.QC("SBOX_SETTINGS"),h={};if(b==null?0:b.SEND_VISITOR_DATA)h["X-Goog-Visitor-Id"]=b==null?void 0:b.VISITOR_DATA;return h};
_.A5a=function(b){var h=DFa;h+="&gs_id="+b.id.toString(36);h+="&q="+encodeURIComponent(b.query);h+="&cp="+b.query.length;b.previousSearchQuery&&(h+="&pq="+encodeURIComponent(b.previousSearchQuery));(b=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(h+="&video_id="+b);return h};
znA=0;DFa="";var UFx=_.lL.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,pzx=_.lL.SEARCH_ENTITY_SUGGESTION_MOVIE,J5q=_.lL.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,enX=_.lL.SEARCH_ENTITY_SUGGESTION_TV_SHOW,C$f=function(b,h){this.text=b;this.bold=h},gAA=function(b,h,y){this.input=h;
this.index=y;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=b[0];this.type=b[1];this.subtypes=b[2];var S;this.displayText=pqA((S=b[3])==null?void 0:S.b);var F;this.ignoredPrefix=pqA((F=b[3])==null?void 0:F.a);var a,P;this.hasNewVideo=((a=b[3])==null?void 0:(P=a.zam)==null?void 0:P.toString())==="true"?!0:!1;var K;this.visualSuggestUrl=(K=b[3])==null?void 0:K.zai;var n;this.entityType=pqA((n=b[3])==null?void 0:n.zap);var X;this.entityName=pqA((X=b[3])==null?void 0:X.zao);var u;h=
pqA((u=b[3])==null?void 0:u.zaf);var O;this.entityMid=(O=b[3])==null?void 0:O.zae;u=J2f(this.subtypes,this.entityMid);if(h&&u){if(h){O="";switch(u){case "YOUTUBE_ENTITY_TYPE_SONG":O=J5q;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":O=UFx;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":O=enX;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":O=pzx}u=u==="YOUTUBE_ENTITY_TYPE_SONG"||u==="YOUTUBE_ENTITY_TYPE_ALBUM"?O+" \u2022  \u2022 "+h:h}else u="";this.entitySubtitle=u}var N;this.externalChannelId=(N=b[3])==null?void 0:N.zav;
var t;this.entityThumbnailAttributionUrl=(t=b[3])==null?void 0:t.zaq},YJq=function(b,h){var y=[],S,F=(S=b.displayText)!=null?S:b.text;
(h==null?0:h.useEntityName)&&sZa(b)&&b.entityName&&(F=b.entityName);if(b.type===33)return y.push(new C$f(F,!1)),y;if(F.length>=b.input.length&&F.substring(0,b.input.length)===b.input)y.push(new C$f(b.input,!1)),y.push(new C$f(F.substring(b.input.length),!0));else{var a=new Set(b.input.split(/\s/)),P=F.split(/\s/);y=P.map(function(K,n){return new C$f(K.trim()+(n===P.length-1?"":" "),!a.has(K))})}return y},sZa=function(b){var h=!!J2f(b.subtypes);
b=!!b.entityMid;return h||b};_.TzA=function(b){this.rawResponse=["",[],{}];this.suggestions=[];try{var h=JSON.parse(eoE(b));if(typeof h==="object"&&h!==null)this.rawResponse=h;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(S){console.log("Suggest: Failed to parse SuggestResponse!");return}var y=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(S,F){return new gAA(S,y,F)})};var GCF=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new RnX;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$21174_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},kCa,VcE=function(){kCa||(kCa=new GCF);
return kCa};
GCF.prototype.updateSuggestions=function(b){var h=this;this.availableSuggestions.forEach(function(y){h.previousSuggestions[y]=!0});
this.availableSuggestions=b.map(function(y){var S=y.type.toString();y.subtypes.length>0&&(S+="i"+y.subtypes.join("i"),S+="k"+y.suggestionSources.COMPLETE_SERVER.toString());return S})};
var EAP=function(b,h){var y=Date.now();b.firstEditTime<0&&(b.firstEditTime=y);h&&(b.lastQueryBuildTime=y);b.lastEditTime=y};
GCF.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$21174_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var iLa=function(b){var h="";b.availableSuggestions.forEach(function(F){delete b.previousSuggestions[F]});
for(var y=_.L(Object.keys(b.previousSuggestions)),S=y.next();!S.done;S=y.next())S=S.value,b.previousSuggestions[S]&&(h+=(h?"j":"")+S);return h},fME=function(b,h){var y=[];
h&&(y[1]=h.toString());y[0]="youtube";y[7]=Date.now()-b.startTime;y[6]=b.sessionNumber;b.zeroPrefixSuggestionCount>=0&&(y[33]=b.zeroPrefixSuggestionCount);y[13]=b.outOfSyncResponseCount;if(b.availableSuggestions.length>0){for(var S=h="",F=0,a=_.L(b.availableSuggestions),P=a.next();!P.done;P=a.next())P=P.value,P!==S&&(F>1&&(h+="l"+F),h+=(S?"j":"")+P,F=0,S=P),F+=1;F>1&&(h+="l"+F);y[3]=h}y[35]=iLa(b);b.selectedSuggestionIndex>=0&&(y[2]=b.selectedSuggestionIndex);var K;if(h=(K=_.QC("SBOX_SETTINGS"))==
null?void 0:K.SUGG_EXP_ID)y[19]=b.normalize(h),K=0,b.experimentTriggeredBeforeFinal&&(K|=1),b.experimentTriggeredFinal&&(K|=2),y[20]=K;y[26]=Array.from(b.inputMethodsTracker.usedMethods).join("j");if(b.JSC$21174_totalRoundTripTime>0){y[15]=b.JSC$21174_totalRoundTripTime;y[14]=b.maxRoundTripTime;K=[];for(F=h=0;F<10;F++)S=b.roundTripTimeHistogram[F],S===0?h++:(h>1?K.push(F+"-"+S):h===1?K.push("0j"+S):K.push(S.toString()),h=0);K=K.join("j");y[16]=K}b.zeroPrefixRoundTripTime>0&&(y[36]=b.zeroPrefixRoundTripTime);
b.lastQueryBuildTime>0&&(y[18]=b.lastQueryBuildTime-b.startTime);b.firstEditTime>0&&(y[4]=b.firstEditTime-b.startTime);b.lastEditTime>0&&(y[5]=b.lastEditTime-b.startTime);return y.join(".")};
GCF.prototype.normalize=function(b){return b.replaceAll(".","-")};
var wzA=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var cY=function(){var b=_.g.apply(this,arguments)||this;b.microphoneSpinnerActive=!1;b.noAnimations=!1;b.boundExitClick=function(){b.onExitButtonClick()};
b.speechOverlayClassName="";b.isLevelAnimating=!1;b.playCloseDialogAudioFeedback=!0;b.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return b};
_.z(cY,_.g);_.d=cY.prototype;_.d.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.d.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=vVF()};
_.d.dataChanged=function(){this.logDialog()};
_.d.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var b;(b=this.manager.audioPlayer)!=null&&(b.JSC$20529_audioEnabled=!1)}this.manager.stop();(b=this.manager.audioPlayer)!=null&&(b.JSC$20529_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.d.handleSpeechQueryCompleteAction=function(b){var h=b.navigationAction;h&&(b.trackingParams&&_.rU().graftServerVe(b.trackingParams,this.dialogVe,5),_.Sx(this.hostElement,"yt-navigate",{endpoint:h,tempData:this.getNavigationParams(h),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.d.onExitButtonClick=function(){this.closeDialog()};
_.d.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var b;if((b=this.manager)!=null){var h;(h=b.audioPlayer)==null||w9(h,"failure");b.setState("microphone-off");b.stop()}}else(b=this.manager)==null||b.start()};
_.d.transcriptionChanged=function(){var b,h;(((b=this.transcription)==null?0:b.low)||((h=this.transcription)==null?0:h.high))&&this.setState("transcribing",this.transcription)};
_.d.stateChanged=function(){this.setState(this.state,this.transcription)};
_.d.logDialog=function(){var b;(b=this.data)!=null&&b.trackingParams&&(b=_.rU(),_.w2(b,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=b.graftServerVe(this.data.trackingParams,void 0,5))};
_.d.getNavigationParams=function(b){var h={};if(_.r("web_yt_searchbox")){var y=VcE();y.inputMethodsTracker.add(6);y=fME(y,15);h.gs_l=y;var S;h.oq=((S=_.c(b,_.NC))==null?void 0:S.query)||""}else if(b=window.ytvoicesearchloggingparams){if(b=b())h.oq=b.oq,h.gs_l=b.gs_l}else _.yb(Error("Ml"));return h};
_.d.closeDialog=function(){_.F8(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.d.setState=function(b,h){if(this.data){var y=this.data,S={};switch(b){case "listening":S={headerText:y.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:y.microphoneButtonAriaLabel};break;case "timeout":S={headerText:y.promptHeader,microphoneState:"try-again",microphoneLabel:y.promptMicrophoneLabel,microphoneAriaLabel:y.promptMicrophoneLabel};break;case "microphone-off":S={headerText:y.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:y.promptMicrophoneLabel,
microphoneAriaLabel:y.promptMicrophoneLabel};break;case "transcribing":(h==null?0:h.low)||(h==null?0:h.high)?S={transcriptionLow:h==null?void 0:h.low,transcriptionHigh:h==null?void 0:h.high,microphoneState:"speaking",microphoneAriaLabel:y.microphoneButtonAriaLabel}:S={headerText:y.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:y.microphoneButtonAriaLabel};break;case "processing":S={headerText:y.loadingHeader,microphoneState:"processing",microphoneAriaLabel:y.microphoneButtonAriaLabel};
break;case "offline":S={headerText:y.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:y.connectionErrorMicrophoneLabel,microphoneAriaLabel:y.connectionErrorMicrophoneLabel};break;case "permission":S={headerText:y.permissionsHeader,bodyLine1:y.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:y.permissionsSubtext};break;case "permission-denied":S={headerText:y.disabledHeader,bodyLine1:y.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:y.disabledSubtext}}S.className=
b;this.speechOverlayState=S;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.d.setMicrophoneState=function(b){var h=this.isLevelAnimating;this.isLevelAnimating=b==="speaking";!h&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=b==="processing"&&!this.noAnimations};
_.d.setClass=function(b){this.speechOverlayClassName&&_.Zm(this.hostElement,this.speechOverlayClassName,!1);b&&(this.speechOverlayClassName=b,_.Zm(this.hostElement,b,!0))};
_.d.runLevelAnimation=function(){var b=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var h=1+Math.random()*.75,y=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+y/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+h+")");_.xP.addJob(function(){b.runLevelAnimation()},3,y)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
cY.prototype.stateChanged=cY.prototype.stateChanged;cY.prototype.transcriptionChanged=cY.prototype.transcriptionChanged;cY.prototype.onPopupClosed=cY.prototype.onPopupClosed;cY.prototype.dataChanged=cY.prototype.dataChanged;_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],cY.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],cY.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],cY.prototype,"rendererStamperBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],cY.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.PQ.YtEventForwardingBehavior),_.f("design:type",Object)],cY.prototype,"eventForwardingBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],cY.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],cY.prototype,"speechOverlayState",void 0);
_.V([_.C(),_.f("design:type",Object)],cY.prototype,"microphoneSpinnerActive",void 0);_.V([_.C({type:_.r("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.f("design:type",Object)],cY.prototype,"noAnimations",void 0);_.V([_.C({selector:function(b){var h;return(h=b.voiceSearch)==null?void 0:h.transcription}}),
_.f("design:type",Object)],cY.prototype,"transcription",void 0);_.V([_.C({selector:function(b){var h;return(h=b.voiceSearch)==null?void 0:h.overlay}}),
_.f("design:type",String)],cY.prototype,"state",void 0);_.V([_.C(),_.f("design:type",Object)],cY.prototype,"boundExitClick",void 0);_.V([_.to("#microphone-levels"),_.f("design:type",HTMLElement)],cY.prototype,"level",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],cY.prototype,"dataChanged",null);_.V([_.u3("yt-popup-closed"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],cY.prototype,"onPopupClosed",null);
_.V([_.zj("transcription"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],cY.prototype,"transcriptionChanged",null);_.V([_.zj("state"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],cY.prototype,"stateChanged",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],cY);
_.k(cY,"ytd-voice-search-dialog-renderer",function(){if(c5N!==void 0)return c5N;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return c5N=b},{mode:1});var lM2;var RS=function(){var b=_.g.apply(this,arguments)||this;b.isOverlay=!1;b.hidden=!1;return b};
_.z(RS,_.g);_.d=RS.prototype;_.d.onPopupClosed=function(){this.toggleIconState(!1)};
_.d.computeIcon=function(){var b,h,y;return(h=_.c((b=this.data)==null?void 0:b.icon,owf))==null?void 0:(y=h.icon)==null?void 0:y.iconType};
_.d.computeIconBadgeShape=function(){var b;return{iconBadgeType:"cart",iconBadgeText:(b=this.iconBadgeEntity)==null?void 0:b.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.d.onClick=function(){var b;(b=this.data)!=null&&b.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.d.computeHidden=function(b){return!b};
_.d.toggleIconState=function(b){this.iconButton&&(this.iconButton.pressed=b)};
RS.prototype.onPopupClosed=RS.prototype.onPopupClosed;_.V([_.B(_.NT),_.f("design:type",Object)],RS.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],RS.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],RS.prototype,"ytComponentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],RS.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],RS.prototype,"isOverlay",void 0);
_.V([_.C({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.f("design:type",Object)],RS.prototype,"hidden",void 0);_.V([_.C({selectorArgs:["data.iconBadgeEntityKey"],selector:function(b,h){return _.Mm(b.entities,"iconBadgeEntity",h)}}),
_.f("design:type",Object)],RS.prototype,"iconBadgeEntity",void 0);_.V([_.to("yt-icon-button"),_.f("design:type",HTMLButtonElement)],RS.prototype,"iconButton",void 0);_.V([_.u3("yt-popup-closed"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],RS.prototype,"onPopupClosed",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],RS);
_.k(RS,"ytd-icon-badge-topbar-button-renderer",function(){if(lM2!==void 0)return lM2;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return lM2=b},{mode:1});var qJF;var zh=function(){var b=_.g.apply(this,arguments)||this;b.premiumOptions=[];return b};
_.z(zh,_.g);zh.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.tm.Object.defineProperties(zh.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],zh.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],zh.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Array)],zh.prototype,"premiumOptions",void 0);_.V([_.W("premiumOptions"),_.f("design:type",Object),_.f("design:paramtypes",[])],zh.prototype,"hasPremiumOptions",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],zh);
_.k(zh,"ytd-offline-promo-content",function(){if(qJF!==void 0)return qJF;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return qJF=b},{mode:1});var xFa;var DJ=function(){var b=_.g.apply(this,arguments)||this;b.premiumOptions=[];return b};
_.z(DJ,_.g);DJ.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var b;this.premiumOptions=UMf((b=this.data)==null?void 0:b.formats)};
DJ.prototype.onClickSubmit=function(){_.F8(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var b;(b=_.ye())==null||b.pause()};
DJ.prototype.attached=function(){this.JSC$21194_scroller&&(this.JSC$21194_scroller.dialogElement=this.hostElement.parentNode)};
_.tm.Object.defineProperties(DJ.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
DJ.prototype.dataChanged=DJ.prototype.dataChanged;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],DJ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],DJ.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],DJ.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],DJ.prototype,"data",void 0);
_.V([_.C({computed:"computeIcon_(data.headersIcon)",value:""}),_.f("design:type",String)],DJ.prototype,"headersIcon",void 0);_.V([_.C(),_.f("design:type",Array)],DJ.prototype,"premiumOptions",void 0);_.V([_.to("#scroller"),_.f("design:type",Object)],DJ.prototype,"JSC$21194_scroller",void 0);_.V([_.W("headersIcon"),_.f("design:type",Object),_.f("design:paramtypes",[])],DJ.prototype,"showIcon",null);
_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],DJ.prototype,"dataChanged",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],DJ);
_.k(DJ,"ytd-offline-promo-renderer",function(){if(xFa!==void 0)return xFa;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return xFa=b},{mode:1});var QZx;var IS=function(){var b=_.g.apply(this,arguments)||this;b.playbackPauseInterval=NaN;b.isLoading=!1;b.hasError=!1;b.dialogClass="";b.youtubeLabel=_.Mt("LOGO_ALT_LABEL",{},"YouTube Home");b.logoName="yt-logos-ext:yt-logo-updated";b.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return b};
_.z(IS,_.g);_.d=IS.prototype;_.d.onDataChange=function(){var b;if(this.showEOMV1Text=!((b=this.data)==null||!b.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.d.attached=function(){this.pausePlayer()};
_.d.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.d.handleLangSelect=function(b){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[b.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.d.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.d.handleSaveConsent=function(b){var h=this;this.showLoadingSpinner();this.showLoadingSpinner();mJq(_.c(b,noA)).catch(function(y){_.vX(new _.Gn("Something went wrong when save consent "+(y.message?y.message:y)+"."));h.hideLoadingSpinner();h.showErrorMessage()})};
_.d.handleDisablePersonalization=function(b){var h=this;this.showLoadingSpinner();vSA(_.c(b,M9q)).then(function(){h.dialog.close();h.resumePlayer()}).catch(function(y){_.vX(new _.Gn("Something went wrong when disable personalization "+(y.message?y.message:y)+"."));
h.hideLoadingSpinner();h.showErrorMessage()})};
_.d.showLoadingSpinner=function(){var b=this;this.showSpinnerJobId=_.xP.addLowPriorityJob(function(){b.isLoading=!0},500)};
_.d.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.xP.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.d.showErrorMessage=function(){var b=this;this.hasError=!0;_.xP.addLowPriorityJob(function(){b.hasError=!1},2E3)};
_.d.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.DI(function(){try{var b=_.ye();b&&b.pause()}catch(h){}},100))};
_.d.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var b=_.ye();b&&b.play()}catch(h){}};
_.tm.Object.defineProperties(IS.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var b;if((b=this.data)==null||!b.eomV1Text)return[];b=[];for(var h=["SHIELD","WARNING","BAR_CHART"],y=this.data.eomV1Text.essentialCookieMsg.items,S=0;S<h.length&&S<y.length;S++)b.push({icon:h[S],text:y[S]});return b}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var b;if((b=this.data)==null||!b.eomV1Text)return[];b=[];for(var h=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],y=this.data.eomV1Text.nonEssentialCookieMsg.items,S=0;S<h.length&&S<y.length;S++)b.push({icon:h[S],text:y[S]});return b}}});
IS.prototype.onDataChange=IS.prototype.onDataChange;_.V([_.C(),_.f("design:type",Object)],IS.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Boolean)],IS.prototype,"showEOMV1Text",void 0);_.V([_.C(),_.f("design:type",Object)],IS.prototype,"isLoading",void 0);_.V([_.C(),_.f("design:type",Object)],IS.prototype,"hasError",void 0);_.V([_.C(),_.f("design:type",Number)],IS.prototype,"showSpinnerJobId",void 0);_.V([_.C(),_.f("design:type",Object)],IS.prototype,"dialogClass",void 0);
_.V([_.to("#dialog"),_.f("design:type",Object)],IS.prototype,"dialog",void 0);_.V([_.to("#cb-header"),_.f("design:type",HTMLElement)],IS.prototype,"header",void 0);_.V([_.to("#lang-select"),_.f("design:type",HTMLElement)],IS.prototype,"langSelect",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],IS.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],IS.prototype,"ytComponentBehavior",void 0);
_.V([_.C(),_.f("design:type",String)],IS.prototype,"youtubeLabel",void 0);_.V([_.C(),_.f("design:type",Object)],IS.prototype,"logoName",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],IS.prototype,"onDataChange",null);_.V([_.W("data"),_.f("design:type",Array),_.f("design:paramtypes",[])],IS.prototype,"eomEssentialCookieMsgItems",null);
_.V([_.W("data"),_.f("design:type",Array),_.f("design:paramtypes",[])],IS.prototype,"eomNonEssentialCookieMsgItems",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],IS);
_.k(IS,"ytd-consent-bump-v2-lightbox",function(){if(QZx!==void 0)return QZx;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return QZx=b},{mode:1});var mFA;var BY=function(){return _.g.apply(this,arguments)||this};
_.z(BY,_.g);BY.prototype.ready=function(){if(!_.sM()||EeX)var b=!0;else EeX=!0,b=!1;b||(b=document.querySelector("ytd-app"),b||(b=document.body),this.internalLightBox=_.$x(b).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.V([_.C(),_.f("design:type",Object)],BY.prototype,"data",void 0);_.V([_.to("#lightbox"),_.f("design:type",Object)],BY.prototype,"lightBox",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],BY);
_.k(BY,"ytd-consent-bump-v2-renderer",function(){if(mFA!==void 0)return mFA;var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return mFA=b},{mode:1});var vAf;var b_P;var hsf;var WY=function(){return _.g.apply(this,arguments)||this};
_.z(WY,_.g);_.d=WY.prototype;_.d.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&Fbq(this.toastManager,this.toastType)};
_.d.open=function(b){this.toast&&(this.ephemeralAction&&_.H9().resolve(_.ez).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=b!=null?b:0,this.toastManager.enqueue(this.toast,b)):this.toast.open())};
_.d.close=function(b){var h;(h=this.toast)==null||h.close();this.toastManager&&b===1&&Fbq(this.toastManager,b)};
_.d.refit=function(){var b;(b=this.toast)==null||b.refit()};
_.d.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var b;(b=this.toast)==null||b.close()}};
_.d.setVerticalOffset=function(b){this.toast&&(this.toast.verticalOffset=b,this.toast.fit())};
_.d.computeButtonClass_=function(b){return b?"toast-button":""};
_.d.computeText_=function(b){return _.vi(b)};
_.d.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Ut("toast-opened-changed",this.toastOpened))};
_.d.updateToastOpenedFromBinding=function(b){this.toastOpened=b.detail.value};
_.tm.Object.defineProperties(WY.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var b,h,y=(b=this.data)==null?void 0:(h=b.actionButton)==null?void 0:h.buttonRenderer;return(y==null?void 0:y.command)||(y==null?void 0:y.serviceEndpoint)||(y==null?void 0:y.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 b=[],h;((h=this.data)==null?0:h.responseText)&&b.push(_.vi(this.data.responseText));var y;((y=this.data)==null?0:y.subText)&&b.push(_.vi(this.data.subText));var S,F;if((S=this.data)==null?0:(F=S.actionButton)==null?0:F.buttonRenderer){var a,P;b.push(((a=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(P=a.accessibilityData)==null?void 0:P.label)||_.vi(this.data.actionButton.buttonRenderer.text))}return b.filter(function(K){return K}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var b,h;return(h=(b=this.toast)==null?void 0:b.opened)!=null?h:!1}}});
WY.prototype.toastOpenedChangedForBinding=WY.prototype.toastOpenedChangedForBinding;WY.prototype.toastOpenedChanged=WY.prototype.toastOpenedChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],WY.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.PQ.YtEventForwardingBehavior),_.f("design:type",Object)],WY.prototype,"ytEventForwardingBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],WY.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],WY.prototype,"duration",void 0);
_.V([_.C(),_.f("design:type",Number)],WY.prototype,"toastType",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],WY.prototype,"useCloseButton",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],WY.prototype,"closeToastOnActionButtonClick",void 0);_.V([_.C({value:function(){return _.Mt("SBOX_INAPPROPRIATE_CANCEL")}}),
_.f("design:type",String)],WY.prototype,"closeButtonAriaLabel",void 0);_.V([_.C(),_.f("design:type",Boolean)],WY.prototype,"toastOpened",void 0);_.V([_.C(),_.f("design:type",Boolean)],WY.prototype,"hasOpened",void 0);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],WY.prototype,"command",null);_.V([_.W("labelText","command","duration"),_.f("design:type",Object),_.f("design:paramtypes",[])],WY.prototype,"ephemeralAction",null);
_.V([_.W("ephemeralAction"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],WY.prototype,"hasEphemeralAction",null);_.V([_.to("#toast"),_.f("design:type",Object)],WY.prototype,"toast",void 0);_.V([_.C({value:function(){return{style:"call-to-action-inverse"}}}),
_.f("design:type",Object)],WY.prototype,"buttonOverrides",void 0);_.V([_.C({value:{style:"mono-inverse"}}),_.f("design:type",Object)],WY.prototype,"closeButtonOverrides",void 0);_.V([_.C({value:function(){return _.H9().resolve(_.XS(_.py))}}),
_.f("design:type",Object)],WY.prototype,"toastManager",void 0);_.V([_.W("data.responseText","data.subText","data.actionButton"),_.f("design:type",Object),_.f("design:paramtypes",[])],WY.prototype,"labelText",null);_.V([_.OB("toastOpened"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],WY.prototype,"toastOpenedChanged",null);
_.V([_.OB("toastOpened"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],WY.prototype,"toastOpenedChangedForBinding",null);_.V([_.sB({is:"yt-notification-action-renderer",disableElementRegistration:!0})],WY);
_.k(WY,"yt-notification-action-renderer",function(){if(hsf===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;b_P===void 0&&(b_P=document.createElement("template"));var S=b_P;y.call(h,S.content.cloneNode(!0),b.content.firstChild);hsf=b}b=hsf;return b},{mode:2});var AA=function(){var b=_.g.apply(this,arguments)||this;b.duration=4E3;b.downloadingCount=0;b.downloadedCount=0;b.downloadingOnlySmartDownloads=!1;b.sessionTotalDownloads=0;b.sessionDownloaded=0;b.previousSessionsDownloaded=0;b.totalDownloadPercentage=0;b.currentDownloadProgress=0;b.currentDownloadPercentage=0;b.isLeaderTab=!0;b.isFullScreen=!1;b.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};b.boundBeforeUnload=function(h){b.isLeaderTab&&b.downloadingCount>0&&(h.preventDefault(),
h.returnValue=!0)};
return b};
_.z(AA,_.g);_.d=AA.prototype;
_.d.open=function(){this.updateDownloadState();if(this.data){var b=this.sessionDownloaded+1,h=this.sessionTotalDownloads>1?_.Mt("VIDEOS_DOWNLOADING_RATIO",{downloaded:b.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+b+"/"+this.sessionTotalDownloads):_.Mt("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(h=this.sessionTotalDownloads>1?_.Mt("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:b.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
b+"/"+this.sessionTotalDownloads):_.Mt("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));b=this.isLeaderTab?_.Mt("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.vi(this.data.responseText)!==h||_.vi(this.data.subText)!==b)this.set("data.responseText",_.mk(h)),this.set("data.subText",_.mk(b)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.d.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.d.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.d.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.d.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var b=this.downloadedCount-this.previousSessionsDownloaded;b<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-b);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.d.handleFullscreenChange=function(b){(this.isFullScreen=b)||this.updatePopup()};
AA.prototype.updateCurrentDownloadProgress=AA.prototype.updateCurrentDownloadProgress;AA.prototype.updatePopup=AA.prototype.updatePopup;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],AA.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],AA.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.PQ.YtEventForwardingBehavior),_.f("design:type",Object)],AA.prototype,"ytEventForwardingBehavior",void 0);
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],AA.prototype,"actionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],AA.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],AA.prototype,"duration",void 0);_.V([_.C({selector:function(b){return _.wyn(b.entities).length}}),
_.f("design:type",Object)],AA.prototype,"downloadingCount",void 0);_.V([_.C({selector:PpE}),_.f("design:type",Object)],AA.prototype,"downloadedCount",void 0);_.V([_.C({selector:function(b){var h=_.wyn(b.entities);return Lfa(b.entities,h)}}),
_.f("design:type",Object)],AA.prototype,"downloadingOnlySmartDownloads",void 0);_.V([_.C(),_.f("design:type",Object)],AA.prototype,"sessionTotalDownloads",void 0);_.V([_.C(),_.f("design:type",Object)],AA.prototype,"sessionDownloaded",void 0);_.V([_.C(),_.f("design:type",Object)],AA.prototype,"previousSessionsDownloaded",void 0);_.V([_.C(),_.f("design:type",Object)],AA.prototype,"totalDownloadPercentage",void 0);
_.V([_.C({selector:function(b){var h;b=(h=_.wyn(b.entities))!=null?h:[];return b.length>0?_.CK5(b.slice(-1)):0}}),
_.f("design:type",Object)],AA.prototype,"currentDownloadProgress",void 0);_.V([_.C(),_.f("design:type",Object)],AA.prototype,"currentDownloadPercentage",void 0);_.V([_.C({selector:_.mb8}),_.f("design:type",Object)],AA.prototype,"isLeaderTab",void 0);_.V([_.to("yt-notification-action-renderer"),_.f("design:type",Object)],AA.prototype,"notificationActionRenderer",void 0);
_.V([_.zj("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],AA.prototype,"updatePopup",null);_.V([_.zj("currentDownloadProgress"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],AA.prototype,"updateCurrentDownloadProgress",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],AA);
_.k(AA,"ytd-video-download-toast-renderer",function(){if(vAf!==void 0)return vAf;var b=document.createElement("template");_.D(b,'\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>');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return vAf=b},{mode:1});var yON;var S8A;var UZ=function(){return _.g.apply(this,arguments)||this};
_.z(UZ,_.g);UZ.prototype.computeIsRedLogo=function(b,h){!b&&h&&(b=h);return b==="YOUTUBE_RED_LOGO"||b==="YOUTUBE_PREMIUM_LOGO"};
UZ.prototype.computeLogoName=function(b){b=this.componentBehavior.computeIcon_(b);return b===""?"yt-logos-ext:yt-logo-updated":b};
_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],UZ.prototype,"componentBehavior",void 0);_.V([_.C({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.f("design:type",Boolean)],UZ.prototype,"isRedLogo",void 0);_.V([_.C({computed:"computeLogoName(data)"}),_.f("design:type",String)],UZ.prototype,"logoName",void 0);_.V([_.C({value:{}}),_.f("design:type",Object)],UZ.prototype,"data",void 0);
_.V([_.C(),_.f("design:type",Object)],UZ.prototype,"logoType",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-logo"})],UZ);
_.k(UZ,"ytd-logo",function(){if(S8A!==void 0)return S8A;var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return S8A=b},{mode:_.Lt("kevlar_poly_si_batch_j074")?1:2});var pu=function(){var b=_.g.apply(this,arguments)||this;b.animationRef={};return b};
_.z(pu,_.g);_.d=pu.prototype;_.d.attached=function(){document.addEventListener("yt-navigate-finish",_.Hl(this,this.logYoodle))};
_.d.detached=function(){document.removeEventListener("yt-navigate-finish",_.Hl(this,this.logYoodle))};
_.d.logYoodle=function(){var b,h;if((b=this.data)==null?0:(h=b.loggingDirectives)==null?0:h.trackingParams)this.ytRendererBehavior.markDirty(),_.rU().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.d.computeHideImg=function(b,h){return!!b||!!h};
_.d.computeHideYtdLogo=function(b,h){return!b||!!h};
_.d.computeHideLottie=function(b){return!b};
_.d.computeIsRedLogo=function(b){return b==="YOUTUBE_RED_LOGO"||b==="YOUTUBE_PREMIUM_LOGO"};
_.d.renderLogoEntity=function(){var b=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),h=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),y=this.getLogoTitleText(this.data),S=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==b&&(this.url=b);this.animatedUrl!==h&&(this.animatedUrl=h);this.logoTitleText!==y&&(this.logoTitleText=y);this.lottieUrl!==S&&(this.lottieUrl=S,this.lottiePlayerProps=this.computeLottiePlayerProps(S))};
_.d.getSanitizedThumbnail=function(b){return b&&b.thumbnails?_.UcY(b.thumbnails,122)||"":""};
_.d.getThumbnailUrl=function(b,h){if(!h)return"";var y,S;b=b?(y=h.darkThemeLogo)==null?void 0:y.thumbnail:(S=h.lightThemeLogo)==null?void 0:S.thumbnail;return this.getSanitizedThumbnail(b)};
_.d.getAnimatedThumbnailUrl=function(b,h){return h?this.getSanitizedThumbnail(b?h.darkThemeAnimatedLogo:h.lightThemeAnimatedLogo):""};
_.d.getLogoTitleText=function(b){if(b)return _.vi(b.tooltipText)};
_.d.computeLogoIcon=function(b,h){if(h){var y,S;return b?(y=h.darkThemeLogo)==null?void 0:y.icon:(S=h.lightThemeLogo)==null?void 0:S.icon}};
_.d.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.d.getLottieUrl=function(b,h){var y,S,F,a;return b?h==null?void 0:(y=h.darkThemeLogo)==null?void 0:(S=y.lottieAnimation)==null?void 0:S.url:h==null?void 0:(F=h.lightThemeLogo)==null?void 0:(a=F.lottieAnimation)==null?void 0:a.url};
_.d.computeLottiePlayerProps=function(b){if(b){var h;if((h=this.animationRef)==null?0:h.lottieEl){var y;(y=this.animationRef)==null||y.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:b,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.d.onLottieError=function(){this.data&&this.lottieUrl&&_.Sx(this.hostElement,"yoodle-error")};
_.d.onImgError=function(){this.data&&!this.lottieUrl&&_.Sx(this.hostElement,"yoodle-error")};
pu.prototype.playAnimation=pu.prototype.playAnimation;pu.prototype.renderLogoEntity=pu.prototype.renderLogoEntity;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],pu.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],pu.prototype,"data",void 0);_.V([_.C({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.f("design:type",Boolean)],pu.prototype,"hideImg",void 0);
_.V([_.C({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.f("design:type",Boolean)],pu.prototype,"hideYtdLogo",void 0);_.V([_.C({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.f("design:type",Boolean)],pu.prototype,"hideLottie",void 0);_.V([_.C({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.f("design:type",Boolean)],pu.prototype,"isRedLogo",void 0);
_.V([_.C(),_.f("design:type",Boolean)],pu.prototype,"useDarkThemeYoodle",void 0);_.V([_.C(),_.f("design:type",String)],pu.prototype,"url",void 0);_.V([_.C(),_.f("design:type",String)],pu.prototype,"animatedUrl",void 0);_.V([_.C(),_.f("design:type",String)],pu.prototype,"logoTitleText",void 0);_.V([_.C({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.f("design:type",Object)],pu.prototype,"logoIcon",void 0);_.V([_.C(),_.f("design:type",Object)],pu.prototype,"logoType",void 0);
_.V([_.C(),_.f("design:type",String)],pu.prototype,"lottieUrl",void 0);_.V([_.C(),_.f("design:type",Object)],pu.prototype,"lottiePlayerProps",void 0);_.V([_.C(),_.f("design:type",Object)],pu.prototype,"animationRef",void 0);_.V([_.OB("data"),_.OB("useDarkThemeYoodle"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],pu.prototype,"renderLogoEntity",null);
_.V([_.u3("click"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],pu.prototype,"playAnimation",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],pu);
_.k(pu,"ytd-yoodle-renderer",function(){if(yON!==void 0)return yON;var b=document.createElement("template");_.D(b,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-yoodle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<picture hidden="[[hideImg]]" class="style-scope ytd-yoodle-renderer">\n  <source srcset$="[[animatedUrl]]" type="image/webp" class="style-scope ytd-yoodle-renderer">\n  <img src$="[[url]]" alt="[[logoTitleText]]" on-error="onImgError" class="style-scope ytd-yoodle-renderer">\n</picture>\n<ytd-logo data="[[logoIcon]]" hidden="[[hideYtdLogo]]" logo-type="[[logoType]]" class="style-scope ytd-yoodle-renderer">\n</ytd-logo>\n<ytd-lottie-player class="lottie-player style-scope ytd-yoodle-renderer" aria-label="[[logoTitleText]]" data="[[lottiePlayerProps]]">\n</ytd-lottie-player>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return yON=b},{mode:_.Lt("kevlar_poly_si_batch_j074")?1:2});var FhA;var aH2;var dgf=_.iM.currentPageTypeSelector,j5A=_.iM.currentPageSubTypeSelector,JA=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return b};
_.z(JA,_.g);_.d=JA.prototype;_.d.onYoodleError=function(){_.r("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.d.computeLogoName=function(b){b=this.componentBehavior.computeIcon_(b);return b===""?"yt-logos-ext:yt-logo-updated":b};
_.d.computeTitle=function(b,h,y){return y&&(h==null?0:h.tooltipText)?_.vi(h.tooltipText):_.vi(b)};
_.d.computeAriaLabel=function(b,h,y){return y&&(h==null?0:h.tooltipText)?_.vi(b):""};
_.d.computeShowYoodle=function(b,h,y){return!b||!h&&!!y&&!_.lR.isEmpty(y)};
_.d.onNavigateHomeAction=function(){if(_.r("kevlar_miniplayer_navigate_home_from_app_killswitch")){var b;(b=_.$x(this.hostElement).querySelector(".yt-simple-endpoint"))==null||b.click()}};
_.d.computeLogoHref=function(b,h,y){var S;(y==null?0:y.onTapCommand)?S=this.componentBehavior.computeHref_(y.onTapCommand):b&&(S=this.componentBehavior.computeHref_(b));return S?S:h};
_.d.computeCommand=function(b,h){return(h==null?void 0:h.onTapCommand)||b};
_.d.getEndpointForm=function(){if(_.r("kevlar_topbar_disable_cache_only_home")){var b=_.H9().resolve(_.nd),h=dgf(b.getState())||"";b=j5A(b.getState())||"";return{disableCache:h==="ytd-browse"&&b==="home"}}return{disableCache:!0}};
JA.prototype.onYoodleError=JA.prototype.onYoodleError;_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],JA.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],JA.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],JA.prototype,"componentBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],JA.prototype,"ytdReduxBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],JA.prototype,"data",void 0);_.V([_.C(),_.f("design:type",String)],JA.prototype,"countryCode",void 0);_.V([_.C({selectorArgs:["data.overrideEntityKey"],selector:function(b,h){return _.Mm(b.entities,"logoEntity",h)}}),
_.f("design:type",Object)],JA.prototype,"logoEntity",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.f("design:type",Boolean)],JA.prototype,"showYoodle",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],JA.prototype,"yoodleError",void 0);_.V([_.C({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.f("design:type",String)],JA.prototype,"titleText",void 0);
_.V([_.C({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.f("design:type",String)],JA.prototype,"ariaLabelText",void 0);_.V([_.C({value:"/"}),_.f("design:type",String)],JA.prototype,"defaultEndpointUrl",void 0);_.V([_.C({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.f("design:type",String)],JA.prototype,"endpointUrl",void 0);
_.V([_.C({computed:"computeCommand(data.endpoint, logoEntity)"}),_.f("design:type",String)],JA.prototype,"command",void 0);_.V([_.C(),_.f("design:type",Object)],JA.prototype,"logoType",void 0);_.V([_.C({}),_.f("design:type",Boolean)],JA.prototype,"useDarkThemeYoodle",void 0);_.V([_.u3("yoodle-error"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],JA.prototype,"onYoodleError",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],JA);
_.k(JA,"ytd-topbar-logo-renderer",function(){if(aH2!==void 0)return aH2;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return aH2=b},{mode:_.Lt("kevlar_poly_si_batch_j027")?1:2});var $gP=0;var LhA=_.lL.SEARCH_APPEND_LABEL,PrX=_.lL.SUGGESTION_NEW_VIDEOS_TEXT,KhF=_.lL.SUGGESTION_THUMBNAIL_LABEL,Z_P=_.lL.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,osX=_.T(function(b){function h(bJ){var ua,kF;return _.Z(function(oa){if(oa.nextAddress==1)return ua=new Request(bJ),_.WE(oa,2),oa.yield(fetch(ua,{credentials:"include"}),4);if(oa.nextAddress!=2)return oq(!0),_.Lz(oa,0);kF=_.C$(oa);_.vX(kF);_.g3(oa)})}
var y=b.isHighlighted;var S=b.suggestion;var F=b.onClickCallback;var a=b.onHoverUpdateCallback;var P=b.labels;var K=b.queryBuilderFunction;var n=b.onRemoveCallback;var X=b.suggestionIndex;var u=b.generateUniqueId;var O=b.highlightedId;var N=b.useScrollMargin;var t=b.isKeyboardMode;var R=null,I=null,U=null,p=_.ZR("div"),e=_.ZR("span");b=_.L(_.pa(!1,void 0,"LafNkf"));var E=b.next().value,Y=b.next().value,w=_.MS("a",function(bJ){bJ&&_.AF(237477,bJ,I,function(ua){I=ua})}),x=_.MS("button",function(bJ){bJ&&
_.AF(237477,bJ,I,function(ua){I=ua})}),q=_.MS("div",function(bJ){bJ&&_.AF(281939,bJ,U,function(ua){U=ua})}),dI=_.Zv(function(bJ){if((bJ==null?void 0:bJ.button)===2)return bJ.preventDefault(),!1;
var ua=_.UE();ua&&R&&_.qt(ua,R,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var kF;F(bJ,S().text,S().index,S().entityMid,bJ==null?void 0:(kF=bJ.detail)==null?void 0:kF.wasSelectedByKeyboard);return!1}),L4=function(){return S().type===35},Rq=function(){return _.r("desktop_enable_single_suggestion_highlight")},Xn=function(){return _.tj("desktop_suggestions_panel_row_height")||0},Ny=function(){var bJ;
return _.r("desktop_enable_new_video_metadata")&&((bJ=S())==null?void 0:bJ.hasNewVideo)===!0},gI=function(){return _.r("desktop_enable_visual_suggest")},YU=function(){return _.r("desktop_enable_entity_suggest")&&sZa(S())},VN=function(){return S().entitySubtitle},Hb=function(){return Rq()?(y==null?void 0:y())||io()&&!(t==null?0:t()):(y==null?void 0:y())||io()},vF=function(){var bJ=_.QC("SBOX_SETTINGS");
return L4()&&!(bJ==null?0:bJ.HIDE_REMOVE_LINK)},xU=function(){return YJq(S(),{useEntityName:YU()})},Xa,rG=!((Xa=_.H9().resolve(_.XS(_.cC)))==null||!Xa()),Wb=function(){return L4()?_.r("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},Xx=function(){return P==null?void 0:P().SUGGESTION_DISMISS_LABEL},Bb=function(){return P==null?void 0:P().SUGGESTION_DISMISSED_LABEL};
b=_.L(_.pa(!1,void 0,"JyfUlf"));Xa=b.next().value;var oq=b.next().value;b=_.L(_.pa(!1,void 0,"QKfAGe"));var kU=b.next().value,O7=b.next().value,io=kU,cb=_.Zv(function(){K(e.value.innerText);return!1}),QW=_.Zv(function(bJ){bJ.preventDefault();
return!1}),vM=_.Zv(function(bJ){var ua=S().text,kF=_.QC("SBOX_SETTINGS"),oa="https://"+(kF.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
oa+="&delq="+encodeURIComponent(ua);(ua=kF==null?void 0:kF.PSUGGEST_TOKEN)&&(oa+="&tok="+ua);(kF=kF==null?void 0:kF.SESSION_INDEX)&&(oa+="&authuser="+kF);h(oa);bJ.preventDefault();(bJ=_.UE())&&I&&_.qt(bJ,I,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");n(X==null?void 0:X());return!1}),wG=_.Zv(function(){if(Rq()&&(t==null?0:t()))return!1;
O7(!0);a(!0);return!1}),oN=_.Zv(function(){O7(!1);
a(!1);return!1}),uo=_.Zv(function(){Y(!0);
return!1}),dA=_.Zv(function(){Y(!1);
return!1}),QN=_.Zv(function(bJ){bJ.preventDefault();
if(S().entityThumbnailAttributionUrl){U&&_.xa(_.rU(),U);var ua=S().entityThumbnailAttributionUrl;bJ=S().entityName;var kF={dismissDialogEndpoint:{}};ua={commandExecutorCommand:{commands:[kF,{urlEndpoint:{url:ua,target:"TARGET_NEW_WINDOW"},commandMetadata:{webCommandMetadata:{url:ua}}}]}};kF={buttonViewModel:{title:_.Mt("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:kF}}};ua={buttonViewModel:{title:_.Mt("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_BUTTON_LABEL"),
style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:ua}}};bJ={dialogHeaderViewModel:{headline:{content:bJ!=null?bJ:_.Mt("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_TITLE"),alignment:"TEXT_ALIGNMENT_CENTER"}}};var oa={basicContentViewModel:{paragraphs:[{text:{content:_.Mt("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_DESCRIPTION"),alignment:"TEXT_ALIGNMENT_CENTER"}}]}};bJ={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:bJ,footer:{panelFooterViewModel:{primaryButton:ua,
secondaryButton:kF,shouldHideDivider:!0}},content:oa}}}}};_.H9().resolve(_.OM).resolveCommand(bJ)}return!1});
b=_.L(_.pa("",void 0,"MvIBn"));var vb=b.next().value,fA=b.next().value;_.fl(function(){vF()&&fA(u==null?void 0:u(X==null?void 0:X()));p.value&&_.AF(12453,p.value,R,function(bJ){R=bJ})});
return _.M(_.H,{cond:Xa,then:function(){var bJ={};return _.M("div",{class:_.P2("ytSuggestionComponentRemovedText",(bJ.ytSuggestionComponentLargerRemovedText=function(){return gI()},bJ)),
style:function(){return Xn()>0?"height: "+Xn()+"px;":""},
role:"button"},Bb)},
else:function(){var bJ={},ua={};return _.M("div",{class:_.P2("ytSuggestionComponentSuggestion",(bJ.ytSuggestionComponentSuggestionHover=function(){return!Rq()},bJ.ytSuggestionComponentHighlighted=Hb,bJ.ytSuggestionComponentPersonalizedSuggestion=L4,bJ.ytSuggestionComponentMweb=!1,bJ.ytSuggestionComponentLargerSuggestion=function(){return Ny()||gI()},bJ.ytSuggestionComponentThumbnailSuggestion=function(){return gI()},bJ.ytSuggestionComponentRoundedSuggestion=function(){return _.r("desktop_enable_scrollable_suggestions_panel")&&
_.r("desktop_enable_suggestions_panel_padding")},bJ.ytSuggestionComponentThumbnailPadding=function(){return gI()&&!L4()},bJ)),
style:function(){return Xn()>0?"height: "+Xn()+"px;":""},
role:"presentation","on:mousedown":dI,"on:mouseover":wG,"on:mouseout":oN,el:p},_.M("div",{class:_.P2("ytSuggestionComponentText",(ua.ytSuggestionComponentScrollMargin=N,ua)),"aria-label":function(){return Ny()?S().text+" "+PrX:S().text},
id:function(){return u==null?void 0:u(X==null?void 0:X())},
"on:mousedown":dI,role:"option"},_.M(_.H,{cond:function(){return S().type!==33},
then:function(){return _.M(_.Xv,{icon:Wb,className:"ytSuggestionComponentIcon"})}}),_.M("div",{class:"ytSuggestionComponentLeftContainer"},_.M("span",{el:e,
role:"button",tabindex:0},_.M(_.Gw,{each:xU},function(kF){return kF.bold?_.M("span",{class:"ytSuggestionComponentBold"},kF.text):_.M("span",null,kF.text)})),_.M(_.H,{cond:function(){return YU()&&!!S().entitySubtitle||Ny()},
then:function(){return _.M("div",{class:"ytSuggestionComponentMetadataContainer"},_.M(_.H,{cond:function(){return YU()&&!!S().entitySubtitle},
then:function(){return _.M("div",{class:"ytSuggestionComponentEntitySubtitle"},VN)}}),_.M(_.H,{cond:function(){return Ny()},
then:function(){return _.M("div",{class:"ytSuggestionComponentNewVideoContainer"},_.M("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.M("div",{class:"ytSuggestionComponentNewVideoText"},PrX))}}))}}))),_.M("div",{class:"ytSuggestionComponentRightContainer"},_.M(_.H,{cond:function(){return gI()&&S().visualSuggestUrl!==void 0},
then:function(){var kF={};return _.M("div",{class:"ytSuggestionComponentThumbnailContainer"},_.M("img",{"aria-label":KhF,class:_.P2("ytSuggestionComponentVisualSuggestThumbnail",(kF.ytSuggestionComponentCircularFrame=function(){return YU()&&S().subtypes.includes(790)},kF.ytSuggestionComponentEntitySuggestThumbnail=function(){return YU()},kF)),
src:function(){return S().visualSuggestUrl}}),_.M(_.H,{cond:function(){return YU()&&!!S().entityThumbnailAttributionUrl},
then:function(){var oa={};return _.M("span",{title:Z_P,role:"tooltip"},_.M("div",{el:q,"on:mouseover":uo,"on:mouseout":dA,"on:mousedown":QN,class:_.P2("ytSuggestionComponentThumbnailOverlay",(oa.ytSuggestionComponentThumbnailOverlayHidden=function(){return!E()},oa))},_.M(_.Xv,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.M(_.kZ,null,_.M(_.YZ,{when:function(){return gI()&&vF()}},function(){var kF={};
return _.M("button",{class:_.P2("ytSuggestionComponentRemoveLinkClearButton",(kF.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return vb()&&vb()===(O==null?void 0:O())},kF.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!Hb()},kF)),
el:x,"on:mousedown":vM,"aria-label":Xx,id:function(){return vb()}},_.M(_.Xv,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.M(_.YZ,{when:function(){return!(gI()&&S().visualSuggestUrl!==void 0)&&vF()}},function(){var kF={};
return _.M("a",{class:_.P2("ytSuggestionComponentRemoveLink",(kF.ytSuggestionComponentRemoveLinkDark=rG,kF.ytSuggestionComponentRemoveLinkSelected=function(){return vb()&&vb()===(O==null?void 0:O())},kF)),
el:w,"on:mousedown":vM,"aria-label":Xx,tabindex:0,role:"button",id:function(){return vb()}},Xx)}),_.M(_.YZ,{when:function(){return!1}},function(){return _.M("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":cb,"on:mousedown":QW,role:"button","aria-label":LhA},_.M(_.Xv,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"Cj");var M$N=_.bm(["//www.google.com/textinputassistant/","/","_tia.js"]),nsq=_.T(function(){return _.M("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.M("button",{class:"ytdTextInputAssistantButton","on:click":_.Zv(function(){VcE().inputMethodsTracker.add(3);var b,h=(b=_.QC("SBOX_SETTINGS"))==null?void 0:b.REQUEST_LANGUAGE;if(h)return _.Tt(_.Ra(M$N,14,h)),!1})},_.M("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"Dj");var H_2;_.Xkq=function(){this.cache=new Map};
H_2=function(b){for(var h=_.L(b.cache.entries()),y=h.next();!y.done;y=h.next()){var S=_.L(y.value);y=S.next().value;S=S.next().value;S.suggestions.some(function(F){return F.type===35})&&b.cache.delete(y)}};var uza=_.lL.SEARCH,O_A=_.lL.SEARCH_CLEAR_LABEL,NF2=new _.ca("FAKE_SUGGEST_RESPONSE"),t$q=_.T(function(b){function h(){wG||(wG=setTimeout(function(){uo()},1E3))}
function y(U7,D8,Vf){if(U7.trim()){vM=U7;_.xZ("REFINEMENTS_TUPLE",void 0);cb=!0;var Lc;D8=fME(Bb,D8);var NP=(Lc=b.searchEndpoint)==null?void 0:Lc.call(b);_.gBA(U7,D8,NP,Xa.value.value,Vf);uo();Xa.value.value=U7;Xa.value.blur();Bb.reset()}}
function S(U7){return _.Z(function(D8){return D8.return(new Promise(function(Vf){var Lc=new XMLHttpRequest;Lc.open("GET",_.A5a(U7),!0);Lc.withCredentials=!0;var NP=_.QC("SBOX_SETTINGS");(NP==null?0:NP.SEND_VISITOR_DATA)&&Lc.setRequestHeader("X-Goog-Visitor-Id",NP==null?void 0:NP.VISITOR_DATA);Lc.onload=function(){Vf(Lc.responseText)};
Lc.onerror=function(){_.vX(Error("Ol"));Vf(null)};
setTimeout(function(){Lc.abort()},1E4);
Lc.send(null)}))})}
function F(U7){var D8,Vf,Lc,NP;return _.Z(function(eF){switch(eF.nextAddress){case 1:return D8={credentials:"include",headers:_.W42()},window.AbortController&&(Vf=new AbortController,setTimeout(function(){Vf.abort("ytsbox-suggest-timeout")},1E4),D8.signal=Vf.signal),_.WE(eF,2),eF.yield(fetch(_.A5a(U7),D8),4);
case 4:Lc=eF.yieldResult.text();_.Lz(eF,3);break;case 2:return NP=_.C$(eF),NP!=="ytsbox-abort-last"&&NP!=="ytsbox-suggest-timeout"&&_.vX(NP),eF.return(null);case 3:return eF.return(Lc)}})}
function a(U7){var D8,Vf,Lc;return _.Z(function(NP){switch(NP.nextAddress){case 1:if(D8=_.H9().resolve(_.XS(NF2)))return NP.return(D8);Vf=Date.now();h();return _.r("yt_searchbox_xhr")?NP.yield(S(U7),5):NP.yield(F(U7),4);case 4:Lc=NP.yieldResult;NP.jumpTo(3);break;case 5:Lc=NP.yieldResult;case 3:if(Lc){wG&&(clearTimeout(wG),wG=null);var eF=Bb,i_=Vf,Y$=U7.query.length===0;i_=Date.now()-i_;Y$?eF.zeroPrefixRoundTripTime=i_:(eF.JSC$21174_totalRoundTripTime+=i_,eF.maxRoundTripTime=Math.max(eF.maxRoundTripTime,
i_),Y$=Math.floor(i_/100),Y$>=wzA.length?++eF.roundTripTimeHistogram[9]:++eF.roundTripTimeHistogram[wzA[Y$]])}return NP.return(Lc)}})}
function P(U7){var D8,Vf,Lc;return _.Z(function(NP){if(NP.nextAddress==1)return(D8=Xx.cache.get(_.BzX(U7)))?NP.return(D8):NP.yield(a(U7),2);Vf=NP.yieldResult;if(Vf===null)return NP.return(null);Lc=new _.TzA(Vf);U7.query.length===0&&Lc.suggestions.length===0||Xx.cache.set(_.BzX(U7),Lc);return NP.return(Lc)})}
function K(U7){var D8,Vf;return _.Z(function(Lc){if(Lc.nextAddress==1){QW=!1;var NP=vM;NP=_.ml()==="search"?(_.jh(location.href,"search_query")||_.jh(location.href,"q"))===NP:!1;D8=new _.IMF(U7,NP?vM:null);return Lc.yield(P(D8),2)}Vf=Lc.yieldResult;if(Vf===null)return Lc.return();D8.query.length===0&&(Bb.zeroPrefixSuggestionCount=Vf.suggestions.length);if(D8.id<=oN)return Bb.outOfSyncResponseCount++,Lc.return();if(document.activeElement!==Xa.value)return Lc.return();oN=D8.id;var eF=Bb,i_=Vf.rawResponse[2]||
{};eF.experimentTriggeredBeforeFinal||(eF.experimentTriggeredBeforeFinal=eF.experimentTriggeredFinal);eF.experimentTriggeredFinal=!!i_.e;Bb.updateSuggestions(Vf.suggestions);U(-1);VN([]);Vf.suggestions!==t()&&B0(Vf.suggestions.length);R(Vf.suggestions);dI(Vf.suggestions.length>0&&Vf.suggestions[0].type===33);Wb&&(Wb.hidden=Vf.suggestions.length===0,q()?(Wb.style.minWidth="",eF=Wb.style,i_=(NP=t()[0])==null?void 0:NP.ignoredPrefix,eF.marginLeft=(i_?Math.min(i_.length*6,rG.value.offsetWidth):0).toString()+
"px"):(Wb.style.minWidth=rG.value.offsetWidth+"px",Wb.style.marginLeft="0"),Vx());_.g3(Lc)})}
function n(){if(!cb)return!1;var U7=_.QC("REFINEMENTS_TUPLE");return U7?(U7=U7[1].map(function(D8,Vf){return new gAA([D8,0,[71]],Xa.value.value,Vf)}),t()!==U7&&B0(U7.length),VN([]),R(U7),Bb.updateSuggestions(U7),cb=!1,Wb.hidden=U7.length===0,QW=U7.length>0,!0):!1}
function X(){var U7=Xa.value.value;(typeof U7==="string"||U7 instanceof String)&&U7!==""?Y(!0):Y(!1)}
function u(){if(_.ml()==="search"){var U7=window.location.href;try{var D8=_.jh(U7,"search_query")||_.jh(U7,"q")||""}catch(Vf){D8=""}D8&&(Xa.value.value=D8,Y(!0))}}
var O=_.L(_.pa([],void 0,"OC8EPc")),N=O.next().value;O=O.next().value;var t=N,R=O;N=_.L(_.pa(-1,void 0,"t2tVQb"));var I=N.next().value,U=N.next().value;N=_.L(_.pa(-1,void 0,"v0RZCe"));var p=N.next().value,e=N.next().value;N=_.L(_.pa(!1,void 0,"rjAnI"));var E=N.next().value,Y=N.next().value;N=_.L(_.pa(!1,void 0,"SyGLvb"));var w=N.next().value,x=N.next().value;O=_.L(_.pa(!1,void 0,"tL09Cb"));N=O.next().value;O=O.next().value;var q=N,dI=O;O=_.L(_.pa(!1,void 0,"FlH7mc"));N=O.next().value;var L4=O.next().value;
O=_.L(_.pa(!1,void 0,"ea3fwe"));var Rq=O.next().value,Xn=O.next().value;O=_.L(_.pa(1,void 0,"vSK1xe"));var Ny=O.next().value,gI=O.next().value;O=_.L(_.pa([],void 0,"ijlw4b"));var YU=O.next().value,VN=O.next().value;O=_.L(_.pa(!1,void 0,"HcRey"));var Hb=O.next().value,vF=O.next().value;O=_.r("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var xU=_.ZR("yt-searchbox"),Xa=_.ZR("input"),rG=_.ZR("div"),Wb,Xx=
new _.Xkq,Bb=VcE(),oq=_.H9().resolve(_.XS(_.cC)),kU=function(){var U7;return((U7=b.forceDarkMode)==null?void 0:U7.call(b))||!(oq==null||!oq())},O7=function(){return _.r("desktop_enable_scrollable_suggestions_panel")},io="i"+$gP++,cb=!1,QW=!1,vM="",wG=null,oN=-1,uo=function(){VN([]);
R([]);dI(!1);Wb&&(Wb.hidden=!0);wG&&(clearTimeout(wG),wG=null);U(-1)},dA=function(U7,D8){U7.preventDefault();
vF(!0);Wb&&(Wb.hidden=!1);var Vf=I();U7=t();var Lc=YU();D8=syA(D8);Vf+=D8;for(Vf>=U7.length?Vf=-1:Vf<-1&&(Vf=U7.length-1);Vf!==-1&&(Lc.includes(Vf)||Vf>=U7.length||Vf<0);)Vf+=D8,Vf>=U7.length&&(Vf=-1);U(Vf);I()>=0&&(Xa.value.value=t()[I()].text,e(0),X(),U7=I(),Lc=p(),(Lc=document.getElementById(uR[U7][Lc]))&&O7()&&(U7===t().length-1?Wb.scrollTop=Wb.scrollHeight:Lc.scrollIntoView({block:"nearest",inline:"start"})))},QN=_.Zv(function(U7){if(!(U7.relatedTarget instanceof Element&&U7.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){x(!0);
var D8;(D8=b.focusCallback)==null||D8.call(b,!0);n()||(QW?Wb.hidden=!1:(_.Sx(xU.value,"yt-autonav-pause-focus",{}),K(U7.target.value)))}}),vb=_.Zv(function(U7){if(!(U7.relatedTarget instanceof Element&&U7.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){x(!1);
var D8;(D8=b.focusCallback)==null||D8.call(b,!1);Wb.scrollTop=0;Wb.hidden=!0;_.Sx(xU.value,"yt-autonav-pause-blur",{})}}),fA=function(U7){U7=syA(U7);
var D8;((D8=uR[I()])==null?0:D8[p()+U7])&&e(p()+U7)},bJ=_.Zv(function(U7){var D8=U7.keyCode,Vf=U7.target;
vF(!0);switch(D8){case 13:U7.preventDefault();var Lc;if((Lc=uR[I()])==null?0:Lc[p()]){var NP;(NP=document.getElementById(uR[I()][p()]))==null||NP.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}U7=U7.shiftKey?4:3;D8=Bb;Lc=I();D8.selectedSuggestionIndex=Lc;y(Vf.value,U7);break;case 27:Wb&&(Wb.hidden=!0);break;case 40:dA(U7,40);break;case 38:dA(U7,38);break;case 39:fA(39);break;case 37:fA(37);break;case 229:Bb.inputMethodsTracker.add(4);break;default:Bb.inputMethodsTracker.add(1),
EAP(Bb)}return!1}),ua=_.Zv(function(U7){K(U7.target.value);
X();O7()&&Wb&&(Wb.scrollTop=0);return!1}),kF=_.Zv(function(){Bb.inputMethodsTracker.add(2);
EAP(Bb);return!1});
_.fl(function(){if(Wb){Bb.reset();if(window.ResizeObserver){var U7=new ResizeObserver(function(){q()||(Wb.style.minWidth=rG.value.offsetWidth+"px")});
U7.observe(rG.value);(new ResizeObserver(function(){Vx()})).observe(Wb);
_.m2(function(){U7.disconnect()})}u();
window.addEventListener("yt-navigate-finish",u);window.addEventListener("yt-focus-searchbox",function(){Xa.value.focus()});
var D8;L4((D8=_.QC("SBOX_SETTINGS"))==null?void 0:D8.HAS_ON_SCREEN_KEYBOARD)}else _.QT(new _.Gn("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var oa=_.Zv(function(U7){U7.preventDefault();y(Xa.value.value,12);return!1}),PB=_.Zv(function(U7){U7.preventDefault();
var D8,Vf;(D8=Xa)==null||(Vf=D8.value)==null||Vf.focus();var Lc,NP;((Lc=Xa)==null?void 0:(NP=Lc.value)==null?void 0:NP.value)!==""&&(Xa.value.value="",Xa.value.dispatchEvent(new Event("input")));return!1}),lo=_.Zv(function(){var U7=OhA(Xa.value.value,t().filter(function(D8){return D8.type!==35}).map(function(D8){return{label:D8.text}}));
_.F8(xU.value,"yt-open-popup-action",[{openPopupAction:U7},document.body]);return!1}),IP=_.Zv(function(){Xa.value.focus();
return!1}),j2=function(U7,D8,Vf,Lc,NP){Bb.selectedSuggestionIndex=Vf;
y(D8,NP?3:1,Lc)},Jg=function(U7){Xa.value.value=U7;
Xa.value.dispatchEvent(new Event("input"));Bb.inputMethodsTracker.add(5);EAP(Bb,!0)},uR=[[]],Yb=function(U7){var D8="searchbox-suggestion"+_.yR(_.rt);
uR[U7].push(D8);return D8},B0=function(U7){if(t()){uR=[[]];
for(var D8=0;D8<U7;D8++)uR.push([])}},Vx=function(){if(O7()){var U7=Wb,D8=U7.scrollTop;
U7=U7.scrollHeight-U7.clientHeight;Xn(D8>=U7);D8=Math.abs(U7-D8);D8<=40?gI(1-(40-D8)/40):gI(1)}},vL=function(){return"opacity: "+Ny()*100+"%"},BF=_.Zv(function(){Vx();
return!1}),Tk=_.Zv(function(){vF(!1);
return!1}),qy,za={},rA={},zp={},BN={};
return _.M("yt-searchbox",{class:_.P2("ytSearchboxComponentHost",(za.ytSearchboxComponentMweb=!1,za.ytSearchboxComponentDesktop=!0,za["yt-searchbox-filled-query"]=function(){return E()},za["ytd-masthead"]=function(){return!w()},za.ytSearchboxComponentHostDark=kU,za)),
role:"search",el:xU,"client-ve-type":10349},_.M("div",{el:rG,"on:click":IP,class:_.P2("ytSearchboxComponentInputBox",(rA.ytSearchboxComponentInputBoxDark=kU,rA.ytSearchboxComponentInputBoxHasFocus=w,rA))},_.M("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":oa},_.M(_.H,{cond:w,then:function(){return _.M("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.M(_.Xv,{icon:"SEARCH"}))}}),_.M("input",{el:Xa,
class:_.P2("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":io,"aria-expanded":!((qy=Wb)==null?0:qy.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:"false","on:blur":vb,"on:focus":QN,"on:input":ua,"on:keydown":bJ,"on:paste":kF,placeholder:b.placeholderText,"aria-activedescendant":function(){var U7;return(U7=uR[I()])==null?void 0:U7[p()]},
"aria-autocomplete":"list",role:"combobox"})),_.M(_.H,{cond:N,then:function(){return _.M("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.M(nsq,null))}}),_.M(_.H,{cond:E,
then:function(){return _.M("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.M("button",{class:"ytSearchboxComponentClearButton","on:click":PB,"aria-label":b.clearButtonAriaLabel||O_A},_.M(_.Xv,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.M(_.Tv,{model:{}})))}})),_.M("button",{class:_.P2("ytSearchboxComponentSearchButton",(zp.ytSearchboxComponentSearchButtonDark=kU,zp)),
"on:click":oa,"aria-label":uza,title:b.placeholderText},_.M(_.Xv,{icon:"SEARCH"})),_.M(_.H,{cond:function(){if(dMA()&&_.r("mweb_voice_search")&&b.voiceSearchButton)return b.voiceSearchButton()},
then:function(U7){var D8={};return _.M("div",{class:_.P2("ytSearchboxComponentVoiceSearchWrapper",(D8.ytSearchboxComponentHideVoiceSearchButton=function(){return E()},D8))},_.M(_.rC,{data:U7},{buttonRenderer:function(Vf){return _.M(_.Cr,{data:Vf.data,
onButtonClickCallback:function(){}})}}))}}),_.M("div",{el:_.Qa(function(U7){return void(Wb=U7)}),
id:io,class:_.P2("ytSearchboxComponentSuggestionsContainer",(BN.ytSearchboxComponentSuggestionsContainerDark=kU,BN["yt-searchbox-suggestions-container"]=!1,BN.ytSearchboxComponentSuggestionsContainerScrollable=O7(),BN.ytSearchboxComponentSuggestionsContainerAnimated=O,BN)),"on:scroll":BF,"on:mousemove":Tk,role:"listbox",hidden:!0},_.M(_.Gw,{each:t},function(U7,D8){return _.M(osX,{suggestion:U7,isHighlighted:function(){return D8()===I()},
onClickCallback:j2,onHoverUpdateCallback:function(Vf){if(_.r("desktop_enable_single_suggestion_highlight")){var Lc=D8();Vf&&(e(0),U(Lc))}},
onRemoveCallback:function(Vf){H_2(Xx);Vf===void 0||Vf<0||YU().includes(Vf)||VN([].concat(_.f$(YU()),[Vf]))},
labels:b.labels,queryBuilderFunction:Jg,suggestionIndex:D8,generateUniqueId:Yb,highlightedId:function(){var Vf;return(Vf=uR[I()])==null?void 0:Vf[p()]},
useScrollMargin:O7(),isKeyboardMode:Hb})}),_.M(_.H,{cond:function(){return!q()&&t().find(function(U7){return U7.type!==35})&&_.r("searchbox_reporting")},
then:function(){return _.M("button",{class:"ytSearchboxComponentReportButton","on:mousedown":lo},_.Mt("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.M(_.H,{cond:function(){return!Rq()&&O7()},
then:function(){return _.M("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.M("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:vL}))}})))},"Fj");
t$q.idomCompat={callbacks:{focusCallback:!0}};_.yd(t$q,"yt-searchbox",{props:{searchEndpoint:_.D4,placeholderText:_.D4,labels:_.D4,voiceSearchButton:_.D4,focusCallback:_.v3,clearButtonAriaLabel:_.D4,forceDarkMode:_.D4}});var en=function(){var b=_.g.apply(this,arguments)||this;b.menuButtonTargetId="topbar-guide-menu";b.narrow=!1;b.menuStrings={BACK_ALT_LABEL:_.Mt("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.Mt("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.Mt("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.Mt("SBOX_PLACEHOLDER",void 0,"Search")};b.pageDarkTheme=document.documentElement.hasAttribute("dark");b.watchPageScrollTop=0;b.theater=!1;b.fullscreen=!1;b.disableFrostedGlassDuringViewTransition=
!1;b.desktopUnifiedSearchPanelMode=_.r("desktop_enable_unified_search_panel");b.aiCompanionEnabled=_.r("enable_ai_companion");b.ytSearchboxFocused=!1;b.searchboxLabels=_.QC("SBOX_LABELS");b.topbarIsAboveChipbar=!1;b.isDarkThemeForced=!1;b.areGhostCardsHidden=!1;b.guideKeyboardToggle=!1;b.voiceSearchManager=vVF();b.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};b.setYtSearchboxFocused=function(h){b.ytSearchboxFocused=h};
b.toggleFrostedGlassDuringViewTransition=function(h){b.disableFrostedGlassDuringViewTransition=h};
return b};
_.z(en,_.g);_.d=en.prototype;_.d.computeSimpleText=function(b){return _.vi(b)};
_.d.onDarkChanged=function(){for(var b=_.L(this.buttons||[]),h=b.next();!h.done;h=b.next())h.value.isOverlay=!!this.dark;b=_.L(this.buttonRenderers||[]);for(h=b.next();!h.done;h=b.next())h.value.overrides=this.computeButtonOverride()};
_.d.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.d.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"}}}};
_.d.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var b=_.Iz(_.Dh(),"aa");_.Zm(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||b||(this.isDarkThemeForced=this.dark=!0);this.logoType?(b=this.hostElement.querySelector("#masthead-logo"))&&(_.r("polymer_on_demand_shady_dom")?b.setAttribute("slot","masthead-logo-old"):_.sD(b)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.Hl(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.Hl(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.d.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.Hl(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.Hl(this,this.onSetTheaterModeEnabled))};
_.d.dataChanged=function(){var b=this.data;b&&(this.voiceEnabled=b.voiceSearchButton?vVF().isSupported():!1,_.vy(_.bg(),this.menuButtonTargetId,this.guideButton),b.onReceivedActions&&b.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.jx(this.hostElement,b.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&b&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.Zm(this.hostElement,"dark",!1),_.Zm(this.hostElement,"theater",!1),(b=
this.hostElement.querySelector("#masthead-logo"))&&(_.r("polymer_on_demand_shady_dom")?b.setAttribute("slot","masthead-logo-old"):_.sD(b))))};
_.d.computeCenterHidden=function(){var b;return this.data&&!((b=this.data.searchbox)==null?0:b.fusionSearchboxRenderer)};
_.d.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.Zm(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.d.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.d.onWatchScroll=function(b){this.watchPageScrollTop=b.detail||0;this.updateMastheadBackgroundOpacity()};
_.d.onFullscreenChangeAction=function(b){b||(this.watchPageScrollTop=0);this.fullscreen=b;this.updateMastheadBackgroundOpacity()};
_.d.onSetTheaterModeEnabled=function(b){this.theater=b.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.d.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.fullscreen?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.d.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.d.setBackgroundOpacity=function(b){b=this.calculateBackgroundOpacity(b);this.background.style.opacity=""+b};
_.d.calculateBackgroundOpacity=function(b){var h=this.theater?.6:0,y=this.hostElement.clientHeight/2;return Math.min(Math.max(b,0),y)/y*(1-h)+h};
_.d.shouldShowCinematicMastHead=function(){var b=_.r("kevlar_watch_grid")&&!_.r("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(b||this.pageDarkTheme)};
_.d.focusGuide=function(){this.guideButton.focus()};
_.d.onGuideToggleTap=function(){_.Sx(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.d.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.d.onGuideToggleHover=function(){_.Sx(this.hostElement,"yt-guide-hover")};
_.d.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.d.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.d.closeOnOutsideClickCondition=function(b){for(b=_.Qk(b);b[0];){var h=b.shift();if(h instanceof Element&&h.id==="kbd")return!1}return!0};
_.d.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.d.pausePlayer=function(){var b;(b=_.ye())==null||b.pause();this.pauseMiniplayer()};
_.d.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var b;(b=_.H9().resolve(_.Vp).getPlayerElement())==null||b.pause()}};
_.d.isMiniplayerActive=function(){return _.H9().resolve(_.Vp).isMiniplayerActive()};
_.d.updateNarrowFromBinding=function(b){this.narrow=b.detail.value};
_.d.onYtSendFeedbackAction=function(){_.F8(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.d.registerWithViewTransitionManager=function(){XHf(_.H9().resolve(_.$O),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.tm.Object.defineProperties(en.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.r("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
shouldShowAiCompanionButton:{configurable:!0,enumerable:!0,get:function(){var b;return!!(this.aiCompanionEnabled&&((b=this.data)==null?0:b.aiCompanionButton))}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var b;return(b=this.data)==null?void 0:b.voiceSearchButton}}},
narrowQuery:{configurable:!0,enumerable:!0,get:function(){return"max-width: "+(this.aiCompanionEnabled?750:656)+"px"}}});
en.prototype.narrowChanged=en.prototype.narrowChanged;en.prototype.onWatchPageChange=en.prototype.onWatchPageChange;en.prototype.onRendererStamperFinished=en.prototype.onRendererStamperFinished;en.prototype.dataChanged=en.prototype.dataChanged;en.prototype.onDarkChanged=en.prototype.onDarkChanged;_.V([_.B(_.ab),_.f("design:type",Object)],en.prototype,"ironResizableBehavior",void 0);_.V([_.B(_.Xlf),_.f("design:type",Object)],en.prototype,"ytdExpandableInputBehavior",void 0);
_.V([_.B(_.DV.YtdGuideStateAwareBehavior),_.f("design:type",Object)],en.prototype,"ytdGuideStateAwareBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],en.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],en.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],en.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],en.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.NT),_.f("design:type",Object)],en.prototype,"ytdReduxBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],en.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],en.prototype,"narrow",void 0);_.V([_.C(),_.f("design:type",Object)],en.prototype,"logoType",void 0);_.V([_.C(),_.f("design:type",Boolean)],en.prototype,"voiceEnabled",void 0);
_.V([_.C(),_.f("design:type",Object)],en.prototype,"menuStrings",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],en.prototype,"dark",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],en.prototype,"pageDarkTheme",void 0);_.V([_.C(),_.f("design:type",Object)],en.prototype,"watchPageScrollTop",void 0);_.V([_.C({reflectToAttribute:!0,selector:_.TcY}),_.f("design:type",Boolean)],en.prototype,"isWatchPage",void 0);
_.V([_.C({reflectToAttribute:!0,selector:_.Gv5}),_.f("design:type",Boolean)],en.prototype,"isShortsPage",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],en.prototype,"theater",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],en.prototype,"fullscreen",void 0);_.V([_.C({reflectToAttribute:!0,selector:_.id4}),_.f("design:type",String)],en.prototype,"frostedGlassMode",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],en.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],en.prototype,"aiCompanionEnabled",void 0);_.V([_.C(),_.f("design:type",Object)],en.prototype,"ytSearchboxFocused",void 0);_.V([_.ry("#buttons > *"),_.f("design:type",Array)],en.prototype,"buttons",void 0);_.V([_.ry("ytd-button-renderer"),_.f("design:type",Array)],en.prototype,"buttonRenderers",void 0);
_.V([_.to("#background"),_.f("design:type",HTMLDivElement)],en.prototype,"background",void 0);_.V([_.to("#guide-button"),_.f("design:type",Object)],en.prototype,"guideButton",void 0);_.V([_.to("#logo"),_.f("design:type",Object)],en.prototype,"logo",void 0);_.V([_.C({computed:"computeButtonOverride(dark)"}),_.f("design:type",Object)],en.prototype,"buttonOverrides",void 0);
_.V([_.zj("dark"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],en.prototype,"onDarkChanged",null);_.V([_.C({value:function(){return this.onVoiceTap.bind(this)}}),
_.f("design:type",Function)],en.prototype,"boundOnTapVoiceButton",void 0);_.V([_.C(),_.f("design:type",Object)],en.prototype,"topbarIsAboveChipbar",void 0);_.V([_.C(),_.f("design:type",String),_.f("design:paramtypes",[])],en.prototype,"guideIcon",null);_.V([_.W("voiceEnabled"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],en.prototype,"shouldShowVoiceSearchButton",null);
_.V([_.W("data.aiCompanionButton","aiCompanionEnabled"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],en.prototype,"shouldShowAiCompanionButton",null);_.V([_.W("data"),_.f("design:type",Object),_.f("design:paramtypes",[])],en.prototype,"voiceSearchButton",null);_.V([_.W("aiCompanionEnabled"),_.f("design:type",String),_.f("design:paramtypes",[])],en.prototype,"narrowQuery",null);
_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],en.prototype,"dataChanged",null);_.V([_.u3("yt-rendererstamper-finished"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],en.prototype,"onRendererStamperFinished",null);_.V([_.zj("isWatchPage"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],en.prototype,"onWatchPageChange",null);
_.V([_.zj("narrow"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],en.prototype,"narrowChanged",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-masthead"})],en);
_.k(en,"ytd-masthead",function(){if(FhA!==void 0)return FhA;var b=document.createElement("template");_.D(b,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="[[narrowQuery]]" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="[[guideIcon]]" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n    <div id="ai-companion-button" hidden="[[!shouldShowAiCompanionButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return FhA=b},{mode:_.Lt("kevlar_poly_si_batch_j036")?1:2});var rOx;var cOf={},Rsa={},zsE={},DgP={},IHX=(DgP.OFFLINE=(cOf["publicytnetworkstatus-online"]="BACK_ONLINE",cOf),DgP.ONLINE=(Rsa["publicytnetworkstatus-offline"]="OFFLINE",Rsa),DgP.BACK_ONLINE=(zsE["publicytnetworkstatus-offline"]="OFFLINE",zsE.TIMER_TRIGGER="ONLINE",zsE),DgP),Cu=function(){var b=_.g.apply(this,arguments)||this;b.currentState="ONLINE";b.scheduledJobId=0;b.bannerString="";b.bannerVe=null;b.networkStatusManagerInstance=new _.PX;return b};
_.z(Cu,_.g);_.d=Cu.prototype;_.d.attached=function(){var b=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){b.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){b.stateChangeHandler("publicytnetworkstatus-offline")})};
_.d.detached=function(){var b=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){b.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){b.stateChangeHandler("publicytnetworkstatus-offline")})};
_.d.enterState=function(b){var h=this;this.scheduledJobId&&_.xP.cancelJob(this.scheduledJobId);b==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):b==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.Mt("NO_INTERNET_CONNECTION",void 0,"No internet connection")):b==="BACK_ONLINE"&&(this.bannerString=_.Mt("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.VT(_.xP,function(){h.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=b};
_.d.stateChangeHandler=function(b){(b=IHX[this.currentState][b])&&this.enterState(b)};
_.d.logVisibility=function(b){var h=_.UE();this.createBannerVe(b);h&&this.bannerVe&&(b?_.fI(h,[this.bannerVe]):_.wh(h,[this.bannerVe]))};
_.d.createBannerVe=function(b){!this.bannerVe&&b&&(this.bannerVe=_.Kh(37929),_.qu(_.rU(),this.bannerVe))};
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",String)],Cu.prototype,"currentState",void 0);_.V([_.C(),_.f("design:type",Object)],Cu.prototype,"scheduledJobId",void 0);_.V([_.C(),_.f("design:type",Object)],Cu.prototype,"bannerString",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-network-status-banner"})],Cu);
_.k(Cu,"ytd-network-status-banner",function(){if(rOx!==void 0)return rOx;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return rOx=
b},{mode:1});var BFA;var gY=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};b.hidden=!0;b.frostedGlass=_.r("web_frosted_glass");return b};
_.z(gY,_.g);gY.prototype.computeHidden=function(b){return b&&b.status?!1:!0};
gY.prototype.handleUpdatePermissionRoleCommand=function(b){if(b=_.c(b,_.eGo))if(b=_.c(b.renderer,_.JJ8))this.data=b};
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],gY.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],gY.prototype,"componentBehavior",void 0);_.V([_.C({value:!0,computed:"computeHidden(data)"}),_.f("design:type",Object)],gY.prototype,"hidden",void 0);_.V([_.C(),_.f("design:type",Object)],gY.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],gY.prototype,"frostedGlass",void 0);
_.V([_.Yx({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],gY);
_.k(gY,"ytd-permission-role-bottom-bar-renderer",function(){if(BFA!==void 0)return BFA;var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);return BFA=b},{mode:1});var WhN;var AOd;var YeX={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var sZ=function(){return _.g.apply(this,arguments)||this};
_.z(sZ,_.g);_.d=sZ.prototype;_.d.attached=function(){this.JSC$21292_scroller&&(this.JSC$21292_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21292_scroller.attached&&typeof this.JSC$21292_scroller.attached==="function"&&this.JSC$21292_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(y){y.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var b=_.$x(this.hostElement);b.querySelector("tp-yt-paper-radio-group").selected="";var h=b.querySelector("#reason-text");h&&(h.value="");b.querySelector("#description-text").value=""}};
_.d.canSubmit=function(b,h){_.Sx(this.hostElement,"yt-invalidate-popup-tabbables");return!(b&&h)};
_.d.onCancel=function(){_.F8(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.d.onSubmit=function(){var b=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(a){return a.active}).map(function(a){return a.innerText.trim()}),h=this.hostElement.querySelector("tp-yt-paper-radio-group"),y=h.selectedItem,S=y.name;
y=y.innerText.trim();var F=h.querySelector("#reason-text");h=void 0;F&&(h=F.value);(F=this.descriptionText.value)&&(F=F.trim());TXd(this.data.searchQuery,b,S,y,F,h);_.F8(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.d.sendFormSubmitToast=function(){var b=_.Fd(_.Mt("SBOX_INAPPROPRIATE_TOAST"));_.F8(this.hostElement,"yt-open-popup-action",[b,this])};
_.d.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(b){return b.active})};
_.d.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
sZ.prototype.onIronSelect=sZ.prototype.onIronSelect;sZ.prototype.onIronChange=sZ.prototype.onIronChange;sZ.prototype.dataChanged=sZ.prototype.dataChanged;_.V([_.C(),_.f("design:type",Object)],sZ.prototype,"data",void 0);_.V([_.C({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.f("design:type",Boolean)],sZ.prototype,"submitDisabled",void 0);_.V([_.C(),_.f("design:type",Boolean)],sZ.prototype,"suggestionSelected",void 0);
_.V([_.C(),_.f("design:type",Boolean)],sZ.prototype,"catagorySelected",void 0);_.V([_.to("#scroller"),_.f("design:type",Object)],sZ.prototype,"JSC$21292_scroller",void 0);_.V([_.to("#description-text"),_.f("design:type",Object)],sZ.prototype,"descriptionText",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],sZ.prototype,"dataChanged",null);
_.V([_.u3("iron-change"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],sZ.prototype,"onIronChange",null);_.V([_.u3("iron-select"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],sZ.prototype,"onIronSelect",null);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],sZ);
_.k(sZ,"ytd-search-suggestion-report-dialog",function(){if(AOd!==void 0)return AOd;var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return AOd=b},{mode:1});var YD=function(b){var h=b.openPopupAction;var y=b.target;var S=b.container;var F=b.popupContainerConfig;var a=b.getElement;b=b.removeWhenClosed===void 0?!1:b.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=h;this.target=y;this.container=S;this.popupContainerConfig=F;this.getElement=a;this.JSC$21298_popupConfig=this.popupContainerConfig.JSC$20464_popupConfig[this.openPopupAction.popupType];this.rendererName=(h=this.getName())?_.nrq(h,ANP(this.popupContainerConfig,
h)):"";_.r("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=b);this.createPopup()};
YD.prototype.updatePopup=function(b){this.openPopupAction=b;this.JSC$21298_popupConfig=this.popupContainerConfig.JSC$20464_popupConfig[this.openPopupAction.popupType];UgF(this);_.r("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
YD.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var esf=function(b,h,y){(h=h&&b.JSC$21298_popupConfig.narrowProperties?b.JSC$21298_popupConfig.narrowProperties:b.JSC$21298_popupConfig.properties)&&y!==void 0&&(h.isAriaModal=y);pkx(b,h);b.isRtl()&&pkx(b,b.JSC$21298_popupConfig.rtlProperties);JOf(b)};
YD.prototype.createPopup=function(){var b=this.JSC$21298_popupConfig.component;if(this.popupContent=Crq(this,this.rendererName)){if(b){this.popup=Crq(this,b);var h=this.popupContent;_.r("web_enable_wrapper_for_cow_component_in_popup")&&(h=document.createElement("div"),h.appendChild(this.popupContent));_.r("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$21298_popupConfig.slotName&&h.setAttribute("slot",this.JSC$21298_popupConfig.slotName);b=this.popup;var y=this.container.tagName.toLowerCase();
_.Ff("desktop_web_boolean_flag_with_counterfactual_study");var S=_.b3(h);_.LZk(_.yU(b),_.ac(h,y,S));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.r("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.$x(this.container).appendChild(this.popup)}};
var UgF=function(b){var h,y,S=(h=b.openPopupAction.accessibilityData)==null?void 0:(y=h.accessibilityData)==null?void 0:y.label;S&&(b.popup.ariaLabel=S);var F;((F=b.popupContent.polymerController)!=null?F:b.popupContent).data=(0,_.lR.unsafeClone)(b.openPopupAction.popup[b.getName()]);b.popupContent.duration=gsY(b);b.popupContent.positionType=b.openPopupAction.position;var a=b.openPopupAction.properties;a&&Object.keys(a).forEach(function(P){b.popupContent[P]=a[P]})},pkx=function(b,h){if(h)for(var y=
_.L(Object.keys(h)),S=y.next();!S.done;S=y.next())S=S.value,b.popup[S]=h[S]},JOf=function(b){if(b.openPopupAction.position){var h=b.JSC$21298_popupConfig.positionalProperties&&b.JSC$21298_popupConfig.positionalProperties[b.openPopupAction.position],y=b.JSC$21298_popupConfig.rtlPositionalProperties&&b.JSC$21298_popupConfig.rtlPositionalProperties[b.openPopupAction.position];
h=b.isRtl()&&y?y:h;h.shiftedHorizontalOffset&&(y=b.popup.style.display,b.popup.style.display="block",b.popupContent&&b.popup.positionTarget&&b.popupContent.clientWidth>b.popup.positionTarget.clientWidth&&(h.horizontalOffset=b.popup.positionTarget.clientWidth/2-h.shiftedHorizontalOffset),b.popup.style.display=y);pkx(b,h)}},s52=function(b,h,y){if(h){for(var S=_.L(Object.keys(h)),F=S.next();!F.done;F=S.next())F=F.value,b.popup.style[F]=h[F];
if(y)for(h=_.L(Object.keys(y)),S=h.next();!S.done;S=h.next())S=S.value,b.popup.style[S]=y[S]}};
YD.prototype.getName=function(){return _.ln(this.openPopupAction.popup,"renderer")||_.ln(this.openPopupAction.popup,"dialog")||_.ln(this.openPopupAction.popup,"model")||void 0};
var gsY=function(b){b=b.openPopupAction.durationHintMs;return b===0?b:Math.max(4E3,b||4E3)};
YD.prototype.isRtl=function(){return _.QC("HTML_DIR")==="rtl"};
var Crq=function(b,h){b=b.getElement(h,b.target);b==null&&_.vX(new _.Gn("popup getElement returned null",h));return b};var Y8F={};
Y8F.YtPopupContainerBehavior=[_.ug.YtComponentBehavior,_.mx.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set;this.expandToFullWidth=this.isAriaModal=!1;this.doNotCacheList_=["yt-dialog-view-model"]},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.hL(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.yh(this.hostElement)},
closePopup:function(b){var h=this.createCacheKey(void 0,b);this.popups_[h]&&this.handleClosePopupAction_(void 0,b)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.xP.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.xP.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(b){b.opened&&b.keepBelowPlayer&&this.ensurePopupBelowPlayer(b)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var b in this.popups_){var h=this.popups_[b];if(h.popup.scrollAction==="refit"){var y=h.popup.positionTarget.getBoundingClientRect(),S=h.popup;y=y.top;var F=h;if(!F.naturalHeight){F.popup.hidden=!1;F.popup.style.position="fixed";F.popup.style.top="0px";F.popup.style.left="0px";var a=F.popup.getBoundingClientRect();F.naturalHeight=a.bottom-a.top;F.popup.refit()}S.hidden=!(y>=F.naturalHeight+60);h.popupContent.clientHeight===0&&h.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(b){this.popupContainerConfig=b},
handleOpenPopupAction:function(b,h,y){var S=b.openPopupAction,F=_.H9().resolve(_.XS(_.py))&&S.popupType==="TOAST";F&&!S.uniqueId&&(S.uniqueId=_.xc());if(!_.r("popup_container_parent_target_killswitch")){var a;h=(a=this.getParentTarget(h))!=null?a:h}var P=this.ensurePopup_(S,h);return new _.Uu(function(K){P.then(function(n){if(!n)return K();this.maybeCreateNarrowMediaQuery_();var X=this.createCacheKey(n.rendererName,n.openPopupAction.uniqueId);if(S.showOncePerUniqueId){if(this.shownPopupKeys_.has(X))return K();
this.shownPopupKeys_.add(X)}X=this.popups_[X];var u=!(!X||!X.openPopupAction.beReused);u=!!S.reusePopup||u;if(n.popup.opened&&!u){F&&!n.openPopupAction.replacePopup||this.handleClosePopupAction_(n.rendererName,n.openPopupAction.uniqueId);u=S.popupType==="DIALOG"&&!_.r("popup_container_dialog_reopen_killswitch");if(!F&&!u&&X&&X.target==h&&(_.r("popup_container_event_target_check_killswitch")||X.target==y)&&!n.openPopupAction.replacePopup)return K();_.Ob(n.popup,function(){this.completeOpenPopupAction_(S,
h,n);K()}.bind(this))}else n.popup.opened?n.updatePopup(S):this.completeOpenPopupAction_(S,h,n),K()}.bind(this))}.bind(this))},
getParentTarget:function(b){if(b&&b instanceof HTMLElement)for(var h=_.L(Object.entries(this.popups_)),y=h.next();!y.done;y=h.next())if(y=_.L(y.value),y.next(),y=y.next().value,this.popupClosesOnClick(y)&&y.popup.contains(b))return y.target},
popupClosesOnClick:function(b){return b.popup.tagName!=="TP-YT-IRON-DROPDOWN"?!1:!["YTD-MULTI-PAGE-MENU-RENDERER","YTCP-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER"].includes(b.rendererName.toUpperCase())},
completeOpenPopupAction_:function(b,h,y){y.updatePopup(b);var S=this.narrowMediaQuery_.queryMatches,F=this.isAriaModal;b=this.expandToFullWidth;y.target=h;var a;h=((a=y.target.polymerController)!=null?a:y.target).popupPositionTarget||y.target;y.JSC$21298_popupConfig.targetContainer&&(h=y.container);y.popup.positionTarget=h;y.popupContent.positionTarget=h;JOf(y);y.JSC$21298_popupConfig.forceFocus&&(y.popupContent.style.outline="none");y.popupContent.tabIndex=-1;y.JSC$21298_popupConfig.narrowProperties&&
(y.popup.style.position="static");y.JSC$21298_popupConfig.preventAutonav&&y.popup.setAttribute("prevent-autonav",!0);y.JSC$21298_popupConfig.forceCloseOnOutsideClick&&y.popup.setAttribute("force-close-on-outside-click",!0);esf(y,S,F);a={};a.width=b?"100%":"";s52(y,y.JSC$21298_popupConfig.styles,a);y.isRtl()&&s52(y,y.JSC$21298_popupConfig.rtlStyles,a);if(!y.openPopupAction.shouldStopParentSignal){var P;b=(P=y.target.polymerController)!=null?P:y.target;(y.popupContent.startForwardingEvents||y.popupContainerConfig.forwardingEnabledPopups.has(y.rendererName))&&
b.parentComponent!==y.popupContent&&y.popupContent!==y.target&&y.target!==document.body&&(y.popupContent.startForwardingEvents?y.popupContent.startForwardingEvents(y.popupContainerConfig.forwardedEvents,y.target):(y.JSC$21298_eventForwarder||(y.JSC$21298_eventForwarder=new _.KW(y.popupContent)),y.JSC$21298_eventForwarder.start(y.popupContainerConfig.forwardedEvents,y.target)))}y=y.popup;y.addEventListener("iron-overlay-opened",_.Hl(this,this.onPopupIronOverlayOpened_));y.addEventListener("iron-overlay-closed",
_.Hl(this,this.onPopupIronOverlayClosed_));y.addEventListener("iron-overlay-canceled",_.Hl(this,this.onPopupIronOverlayCanceled_));y.addEventListener("yt-refit",_.Hl(this,this.refitPopup_));y.addEventListener("yt-invalidate-popup-tabbables",_.Hl(this,this.handleInvalidatePopupTabbables_));y.open()},
getPopupDurationMs_:function(b){return b.durationHintMs===0?b.durationHintMs:Math.max(4E3,b.durationHintMs||4E3)},
handleClosePopupAction_:function(b,h){var y=_.r("web_popup_cache_key_killswitch")||!!h;if(b||y){var S=this.createCacheKey(b,h);b=(b=this.popups_[S])&&b.popup}else b=_.Ye8(_.Op);if(b&&b.close){if(h=_.H9().resolve(_.XS(_.sG)))b.restoreFocusOnClose=h.isKeyBoardInUse();if(b&&b.positionTarget&&!_.r("ytpopup_close_sibling_popups_killswitch")){h=_.L(Object.entries(this.popups_));for(y=h.next();!y.done;y=h.next()){var F=_.L(y.value);y=F.next().value;F=F.next().value;var a=void 0,P=void 0,K=void 0,n=void 0,
X=void 0,u=void 0;b.positionTarget==((a=F)==null?void 0:(P=a.popupContent)==null?void 0:P.positionTarget)&&F.popup&&(!((K=F.popup)==null?0:(n=K.style)==null?0:n.display)||((X=F.popup)==null?void 0:(u=X.style)==null?void 0:u.display)!=="none")&&(a=void 0,(a=F.popup)==null?0:a.close)&&(F.popup.close(),this.removePopup_(F.popup,y))}b&&this.popups_[S]&&(b.close(),this.removePopup_(b,S))}else b.close(),this.removePopup_(b,S)}},
handleClosePopupCommand_:function(b){b.closePopupCommand&&b.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,b.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(b){var h={},y;for(y in this.popups_)if(h={key$jscomp$1233:h.key$jscomp$1233},h.key$jscomp$1233=y,!b||!b.some(function(a){return function(P){return P==a.key$jscomp$1233}}(h))){var S=this.popups_[h.key$jscomp$1233],F=S.popup;
_.H9().resolve(_.XS(_.py))&&S.openPopupAction.popupType==="TOAST"||(F&&F.close&&F.close(),this.removePopup_(F,h.key$jscomp$1233))}},
handleClosePopupsAction_:function(b){b.forEach(function(h){var y=this.popups_[h];y&&((y=y.popup)&&y.close&&y.close(),this.removePopup_(y,h))}.bind(this))},
handleGetPopupOpenedAction_:function(b,h){return(h=this.createCacheKey(b,h))&&this.popups_[h]?this.popups_[b].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var b=[],h;for(h in this.popups_){var y=this.popups_[h];y.popup.opened&&b.push(y)}return b},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(b,h){_.r("ytpopup_disable_default_html_caching")&&b&&b.removeWhenClosed&&(_.$x(this.hostElement).removeChild(b),h&&this.popups_[h]&&delete this.popups_[h])},
shouldReusePopup_:function(b){return!(!b||!b.reusePopup)||!(!b||!b.beReused)},
ensurePopup_:function(b,h){this.maybeCreateNarrowMediaQuery_();var y=_.ln(b.popup,"renderer")||_.ln(b.popup,"dialog")||_.ln(b.popup,"model");if(!y)return _.$p();y=_.nrq(y,ANP(this.popupContainerConfig,y));return _.$p(this.getAndMaybeCreatePopup_(b,y,h))},
getAndMaybeCreatePopup_:function(b,h,y){var S=this.createCacheKey(h,b.uniqueId);if(this.popups_[S])return this.popups_[S];b=new YD({openPopupAction:b,target:y,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(h)});return this.popups_[S]=b},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(b){return _.r("ytpopup_disable_default_html_caching")?_.r("ytpopup_disable_cache_allowlist")?b&&this.doNotCacheList_.includes(b):b&&b.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",_.Hl(this,this.openPopupQueryMatchesChanged_)),_.$x(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(b){b=b.detail.value;for(var h in this.popups_)esf(this.popups_[h],b)},
onPopupIronOverlayClosed_:function(b){var h=b.currentTarget,y=_.WZ8(h);y=y.length>0?y[0]:h;if(y.is!=="ytd-reel-watch-while-dialog-renderer"||b.target.is!=="tp-yt-iron-dropdown"){b.detail.popup=h;b.detail.popupRenderer=y;var S,F={context:{openingElement:((S=this.popups_[(y==null?void 0:y.is)||""])==null?void 0:S.target)||void 0}};Object.assign(F,b.detail);var a;_.Sx((a=y.hostElement)!=null?a:y,"yt-popup-closed",F);h.removeEventListener("yt-refit",_.Hl(this,this.refitPopup_));h.removeEventListener("yt-invalidate-popup-tabbables",
_.Hl(this,this.handleInvalidatePopupTabbables_));h.removeEventListener("iron-overlay-canceled",_.Hl(this,this.onPopupIronOverlayCanceled_));h.removeEventListener("iron-overlay-closed",_.Hl(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(h)}},
onPopupIronOverlayCanceled_:function(b,h){var y=b.currentTarget,S=_.WZ8(y);S=S.length>0?S[0]:y;if(S.is!=="ytd-reel-watch-while-dialog-renderer"||b.target.is!=="tp-yt-iron-dropdown"){var F;_.Sx((F=S.hostElement)!=null?F:S,"yt-popup-canceled",b.detail);F=h?_.Qk(h):null;(!h||["click","tap"].includes(h.type))&&!y.hasAttribute("force-close-on-outside-click")&&y.positionTarget&&F&&F.includes(y.positionTarget)&&b.preventDefault();y.restoreFocusOnClose=_.xq.keyboardEventMatchesKeys(h,"esc")}},
onPopupIronOverlayOpened_:function(b){b=b.currentTarget;var h=_.WZ8(b);h=h.length>0?h[0]:b;var y,S;_.Sx((y=h.hostElement)!=null?y:h,"yt-popup-opened",(S=h.hostElement)!=null?S:h);b.keepBelowPlayer&&(this.ensurePopupBelowPlayer(b,!0),this.dynamicallyPositionedElements_.add(b));y=_.H9().resolve(_.XS(_.sG));S=!!h.querySelector("#toast");y&&y.isKeyBoardInUse()&&!S&&(typeof h.focusFirstItem==="function"?h.focusFirstItem():(h=_.C47(b),h.length&&h[0].focus()));b.removeEventListener("iron-overlay-opened",
_.Hl(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(b){b=b.currentTarget;b.refit&&b.refit()},
refitPopups_:function(){for(var b in this.popups_)this.popups_[b].refit()},
handleInvalidatePopupTabbables_:function(b){b=b.currentTarget;b.invalidateTabbables&&b.invalidateTabbables()},
createCacheKey:function(b,h){return _.r("web_popup_cache_key_killswitch")?h?b+"#"+h:b:h?"#"+h:b},
openSheet:function(b,h,y){var S=b==null?void 0:b.openPopupActionCommand;if(!S&&(b==null?0:b.viewModel)){if(b.sheetPosition)a:switch(b.sheetPosition){case "SHEET_POSITION_RIGHT":S="OPEN_POPUP_POSITION_RIGHT";break a;default:S="OPEN_POPUP_POSITION_UNKNOWN"}else S=void 0;S={openPopupAction:{popup:{sheetViewModel:b.viewModel},popupType:"CONTEXTUAL_SHEET",position:S}}}if(S){var F;this.expandToFullWidth=(F=b==null?void 0:b.expandToFullWidth)!=null?F:!1;this.handleOpenPopupAction(S,h,y===void 0?h:y)}},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var b=this;return _.Z(function(h){return h.return(b.handleGetOpenedPopupsAction_().filter(function(y){var S;return((S=y.openPopupAction)==null?void 0:S.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(b,h,y){if(_.r("web_dialog_utils_killswitch")){var S=b==null?void 0:b.openPopupActionCommand,F=(y==null?0:y.ariaLabel)?{accessibilityData:{accessibilityData:{label:y.ariaLabel}}}:void 0;!S&&(b==null?0:b.viewModel)&&(S={openPopupAction:Object.assign({},{popup:{dialogViewModel:b.viewModel},popupType:(y==null?0:y.isModal)?"MODAL":"DIALOG"},F&&F)});S&&this.handleOpenPopupAction(S,h)}else{if(F=b==null?void 0:b.viewModel){var a=y=y===void 0?{}:y;y=a.ariaLabel;F={popup:{dialogViewModel:F},
popupType:a.isModal?"MODAL":"DIALOG"};a={accessibilityData:{label:y}};y&&(F.accessibilityData=a);F={openPopupAction:F}}else F=void 0;if(F=(S=F)!=null?S:b==null?void 0:b.openPopupActionCommand)this.isAriaModal=_.r("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(F,h)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var b=this;return _.Z(function(h){return h.return(b.handleGetOpenedPopupsAction_().filter(function(y){var S;return((S=y.openPopupAction)==null?void 0:S.popupType)==="DIALOG"}).length>0)})}}];var TFA;var G72;var k7A=_.bm(["about:blank"]),Th=function(){var b=_.g.apply(this,arguments)||this;b.isMuted=!1;b.pageLoadTimeoutId=void 0;b.enableA11yFocusFix=_.r("enable_a11y_focus_fix_for_mac_panel_on_desktop");b.moveFocusToContent=function(){b.iframe.focus()};
return b};
_.z(Th,_.g);_.d=Th.prototype;_.d.dataChanged=function(){var b=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var h=this.data.url,y=_.QV(h);_.r("enable_yt_ata_iframe_authuser")?(y=_.QV(h),_.Fg(this.iframe,GGa(y))):_.Fg(this.iframe,y);this.pageLoadTimeoutId=_.VT(_.J_(),function(){return void b.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.Hq({destination:window,iframe:this.iframe,origin:_.bqe(y.toString()),channelName:"ataiframe",onMessage:_.jRb(XDA,function(S){HkP(S.data)?(S=_.mY(S.data,1,_.PN,_.tW()),S.length!==1?_.vX(Error("Pl")):(S=S[0],S===3?(b.isMuted=!0,b.logStateChanged({adMuteRequested:!0})):S===1&&b.close())):_.vX(Error("Ql"))}),
onEstablished:function(){b.cancelPageLoadTimeout();b.logStateChanged({pageLoadSucceeded:!0})}})}};
_.d.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.J_().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.d.logStateChanged=function(b){var h;if((h=this.data)==null?0:h.trackingParams)b={adsClientData:{aboutThisAdData:b}},_.rU().stateChanged(this.data.trackingParams,b)};
_.d.close=function(){_.F8(this.hostElement,"yt-close-popup-action",[this.is])};
_.d.handlesPopupClosed=function(b,h){var y=this,S,F;return _.Z(function(a){if(a.nextAddress==1)return _.QC("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.F8(y.hostElement,"on-about-this-ad-popup-closed",[y.isMuted,h]),a.jumpTo(0)):b&&kGx(b)?a.yield(VVx(b),4):(y.isMuted&&_.F8(y.hostElement,"yt-mute-ad-action",[y.is,y]),a.jumpTo(0));if(S=a.yieldResult){var P=F=new _.n1(S),K=y.isMuted;P.getOptions().includes("onAboutThisAdPopupClosed")?_.NYW(P,"onAboutThisAdPopupClosed",{isMuted:K,layoutId:h}):_.wC("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.g3(a)})};
_.d.onPopupClosed=function(b){var h=this,y,S;return _.Z(function(F){y=_.Ra(k7A);_.Fg(h.iframe,y);h.cancelPageLoadTimeout();if(!h.data)return F.jumpTo(0);h.ytRendererBehavior.markDirty();S=b.detail.context.openingElement;return F.yield(h.handlesPopupClosed(S,h.data.layoutId),0)})};
_.d.detached=function(){this.cancelPageLoadTimeout()};
_.d.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Th.prototype.onPopupClosed=Th.prototype.onPopupClosed;Th.prototype.dataChanged=Th.prototype.dataChanged;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Th.prototype,"ytRendererBehavior",void 0);_.V([_.to("#iframe"),_.f("design:type",HTMLIFrameElement)],Th.prototype,"iframe",void 0);_.V([_.C(),_.f("design:type",Object)],Th.prototype,"data",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Th.prototype,"dataChanged",null);
_.V([_.u3("yt-popup-closed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype",Promise)],Th.prototype,"onPopupClosed",null);_.V([_.sB({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],Th);
_.k(Th,"yt-about-this-ad-renderer",function(){if(G72===void 0){var b=document.createElement("template");_.D(b,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-about-this-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ads.yt_about_this_ad_renderer.yt.about.this.ad.renderer.css.js--\x3e<iframe id="iframe" class="style-scope yt-about-this-ad-renderer"></iframe><template is="dom-if" if="[[enableA11yFocusFix]]" restamp="" class="style-scope yt-about-this-ad-renderer"><div id="focusTrapEnd" tabindex="0" on-focus="moveFocusToContent" class="style-scope yt-about-this-ad-renderer"></div></template>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;TFA===void 0&&(TFA=document.createElement("template"));var S=TFA;y.call(h,S.content.cloneNode(!0),b.content.firstChild);G72=b}b=G72;return b},{mode:2});var V$f;var EsN;var i_q=function(b){var h=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=h.message;"stack"in h&&(this.stack=h.stack);this.maxFileSizeMB=b;Object.setPrototypeOf(this,i_q.prototype)};
_.z(i_q,Error);var fHq=function(b,h){var y=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=y.message;"stack"in y&&(this.stack=y.stack);this.minWidth=b;this.minHeight=h;Object.setPrototypeOf(this,fHq.prototype)};
_.z(fHq,Error);var wkA=function(b){this.requirements=b;this.JSC$21326_maxFileSize=b.maxFileSizeMB*1024*1024},lHx=function(b,h){if(h.size>b.JSC$21326_maxFileSize)throw new i_q(b.requirements.maxFileSizeMB);
};var q8P=function(b,h){this.canvas=b;this.imageEditorBuilder=h};
q8P.prototype.addEventListeners=function(b){var h=function(F){xgN(b,F)};
this.JSC$21332_mouseDownEvent=h;var y=function(F){Q5A(b,F)};
this.JSC$21332_mouseMoveEvent=y;var S=function(){mgx(b)};
this.JSC$21332_mouseUpEvent=S;this.canvas.addEventListener("mousedown",h);this.canvas.addEventListener("mousemove",y);document.addEventListener("mouseup",S)};
q8P.prototype.removeEventListeners=function(){this.JSC$21332_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$21332_mouseDownEvent);this.JSC$21332_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$21332_mouseMoveEvent);this.JSC$21332_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$21332_mouseUpEvent)};
var vsf=function(b,h){b.removeEventListeners();return new Promise(function(y){var S=new Image;S.crossOrigin="anonymous";S.onload=function(){var F=b.imageEditorBuilder(b.canvas,S);b.addEventListeners(F);y(F)};
S.src=h})},Gh=function(b,h,y,S,F,a,P,K){this.canvas=b;
this.image=h;this.requiredRatio=y;this.minImageCropDimension=S;this.minOutputImageResolution=F;this.component=a;this.styleFocusedCorner=K===void 0?!0:K;this.action=2;this.focusedCorner=this.resizeCorner=0;b=this.canvas.getContext("2d");if(!b)throw Error("Rl");this.ctx=b;this.canvasMargin=P!=null?P:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;P=this.image;b=this.canvasInnerWidth/P.width;P.height*b>912&&(b=P.width/P.height*912/P.width);P=b;this.scaledImageWidth=this.canvas.width%2?
i82(this.image.width*P):EBP(this.image.width*P);this.scaledImageHeight=Math.round(this.image.height*P);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$21335_overlayMarginBottom=this.JSC$21335_overlayMarginTop=this.canvasMargin;this.JSC$21335_overlayMarginRight=this.JSC$21335_overlayMarginLeft=this.horizontalMargin;this.JSC$21335_overlayWidth=this.scaledImageWidth;this.JSC$21335_overlayHeight=this.scaledImageHeight;
b=this.image.width/this.image.height;b>this.requiredRatio?(this.JSC$21335_overlayWidth=this.canvas.width%2?i82(this.scaledImageHeight*this.requiredRatio):EBP(this.scaledImageHeight*this.requiredRatio),this.JSC$21335_overlayMarginRight=this.JSC$21335_overlayMarginLeft=(this.canvas.width-this.JSC$21335_overlayWidth)/2):b<this.requiredRatio&&(this.JSC$21335_overlayHeight=this.canvas.height%2?i82(this.scaledImageWidth/this.requiredRatio):EBP(this.scaledImageWidth/this.requiredRatio),this.JSC$21335_overlayMarginBottom=
this.JSC$21335_overlayMarginTop=(this.canvas.height-this.JSC$21335_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*P,this.scaledImageWidth);byN(this)};
Gh.prototype.getContext=function(){return this.ctx};
var xgN=function(b,h){h={x:Math.round(h.pageX-b.canvas.getBoundingClientRect().left),y:Math.round(h.pageY-b.canvas.getBoundingClientRect().top)};b.dragStart=h;h7F(b,h)!==0?(b.action=1,yzq(b,h),b.resizeCorner=h7F(b,h)):h.x>b.JSC$21335_overlayMarginLeft&&h.x<b.JSC$21335_overlayMarginLeft+b.JSC$21335_overlayWidth&&h.y>b.JSC$21335_overlayMarginTop&&h.y<b.JSC$21335_overlayMarginTop+b.JSC$21335_overlayHeight&&(b.action=0)},SgF=function(b,h){switch(h){case 1:return{x:b.JSC$21335_overlayMarginLeft,
y:b.JSC$21335_overlayMarginTop};case 2:return{x:b.JSC$21335_overlayMarginLeft,y:b.JSC$21335_overlayMarginTop+b.JSC$21335_overlayHeight};case 3:return{x:b.JSC$21335_overlayMarginLeft+b.JSC$21335_overlayWidth,y:b.JSC$21335_overlayMarginTop};case 4:return{x:b.JSC$21335_overlayMarginLeft+b.JSC$21335_overlayWidth,y:b.JSC$21335_overlayMarginTop+b.JSC$21335_overlayHeight};default:throw Error("Sl");}},aqF=function(b,h){if(b.focusedCorner!==0){b.dragStart=SgF(b,b.focusedCorner);
b.action=1;b.resizeCorner=b.focusedCorner;var y=b.dragStart.x,S=b.dragStart.y;switch(h){case 0:b.focusedCorner===1||b.focusedCorner===4?(y-=10,S-=10):(y-=10,S+=10);break;case 1:b.focusedCorner===1||b.focusedCorner===4?(y+=10,S+=10):(y+=10,S-=10);break;case 2:y=b.focusedCorner===1||b.focusedCorner===4?y-10:y+10;S-=10;break;case 3:y=b.focusedCorner===1||b.focusedCorner===4?y+10:y-10;S+=10;break;default:throw Error("Tl");}F6x(b,{x:y,y:S});byN(b);b.action=2;b.dragStart=void 0}},Q5A=function(b,h){h={x:Math.round(h.pageX-
b.canvas.getBoundingClientRect().left),
y:Math.round(h.pageY-b.canvas.getBoundingClientRect().top)};yzq(b,h);switch(b.action){case 1:F6x(b,h);break;case 0:b.dragStart&&(b.JSC$21335_overlayMarginLeft=Math.max(b.horizontalMargin,Math.min(b.JSC$21335_overlayMarginLeft-(b.dragStart.x-h.x),b.horizontalMargin+b.scaledImageWidth-b.JSC$21335_overlayWidth)),b.JSC$21335_overlayMarginRight=b.canvas.width-b.JSC$21335_overlayMarginLeft-b.JSC$21335_overlayWidth,b.JSC$21335_overlayMarginTop=Math.max(b.canvasMargin,Math.min(b.JSC$21335_overlayMarginTop-
(b.dragStart.y-h.y),b.scaledImageHeight-b.JSC$21335_overlayHeight+b.canvasMargin)),b.JSC$21335_overlayMarginBottom=b.canvas.height-(b.JSC$21335_overlayMarginTop+b.JSC$21335_overlayHeight));break;default:return}byN(b);b.dragStart=h},mgx=function(b){b.action=2;
b.dragStart=void 0;document.body.style.cursor="auto"},yzq=function(b,h){switch(h7F(b,h)){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:b.action!==1&&(document.body.style.cursor="auto")}},h7F=function(b,h){var y=b.JSC$21335_overlayMarginLeft-5,S=b.JSC$21335_overlayMarginTop-5,F=b.JSC$21335_overlayMarginLeft+b.JSC$21335_overlayWidth-5;
b=b.JSC$21335_overlayMarginTop+b.JSC$21335_overlayHeight-5;return dHf(h,{x:y,y:S})?1:dHf(h,{x:F,y:S})?3:dHf(h,{x:y,y:b})?2:dHf(h,{x:F,y:b})?4:0},dHf=function(b,h){return b.x>=h.x&&b.x<=h.x+10&&b.y>=h.y&&b.y<=h.y+10},F6x=function(b,h){if(b.dragStart)switch(b.resizeCorner){case 2:Math.abs((b.JSC$21335_overlayMarginLeft+b.JSC$21335_overlayWidth-h.x)/(h.y-b.JSC$21335_overlayMarginTop))>=b.requiredRatio?jTY(b,h.x):$HA(b,h.y);
break;case 1:Math.abs((b.JSC$21335_overlayMarginLeft+b.JSC$21335_overlayWidth-h.x)/(b.JSC$21335_overlayMarginTop+b.JSC$21335_overlayHeight-h.y))>=b.requiredRatio?L6d(b,h.x):$HA(b,h.y);break;case 4:Math.abs((h.x-b.JSC$21335_overlayMarginLeft)/(h.y-b.JSC$21335_overlayMarginTop))>=b.requiredRatio?jTY(b,h.x):P92(b,h.y);break;case 3:Math.abs((h.x-b.JSC$21335_overlayMarginLeft)/(b.JSC$21335_overlayMarginTop+b.JSC$21335_overlayHeight-h.y))>=b.requiredRatio?L6d(b,h.x):P92(b,h.y);break;default:throw Error("Ul");
}},jTY=function(b,h){var y=b.JSC$21335_overlayMarginTop;
b.JSC$21335_overlayMarginBottom=K6x(b,h);b.JSC$21335_overlayHeight=b.canvas.height-b.JSC$21335_overlayMarginBottom-y;b.JSC$21335_overlayWidth=Math.round(b.JSC$21335_overlayHeight*b.requiredRatio);ZyY(b)},L6d=function(b,h){var y=b.JSC$21335_overlayMarginTop+b.JSC$21335_overlayHeight;
b.JSC$21335_overlayMarginTop=K6x(b,h);b.JSC$21335_overlayHeight=y-b.JSC$21335_overlayMarginTop;b.JSC$21335_overlayWidth=Math.round(b.JSC$21335_overlayHeight*b.requiredRatio);ZyY(b)},ZyY=function(b){switch(b.resizeCorner){case 2:case 1:b.JSC$21335_overlayMarginLeft=b.canvas.width-b.JSC$21335_overlayMarginRight-b.JSC$21335_overlayWidth;
break;case 4:case 3:b.JSC$21335_overlayMarginRight=b.canvas.width-b.JSC$21335_overlayMarginLeft-b.JSC$21335_overlayWidth;break;default:throw Error("Ul");}},$HA=function(b,h){var y=b.JSC$21335_overlayMarginLeft+b.JSC$21335_overlayWidth;
b.JSC$21335_overlayMarginLeft=ozd(b,h);b.JSC$21335_overlayWidth=y-b.JSC$21335_overlayMarginLeft;b.JSC$21335_overlayHeight=Math.round(b.JSC$21335_overlayWidth/b.requiredRatio);MzX(b)},P92=function(b,h){var y=b.JSC$21335_overlayMarginLeft;
b.JSC$21335_overlayMarginRight=ozd(b,h);b.JSC$21335_overlayWidth=b.canvas.width-b.JSC$21335_overlayMarginRight-y;b.JSC$21335_overlayHeight=Math.round(b.JSC$21335_overlayWidth/b.requiredRatio);MzX(b)},MzX=function(b){switch(b.resizeCorner){case 2:case 4:b.JSC$21335_overlayMarginBottom=b.canvas.height-b.JSC$21335_overlayMarginTop-b.JSC$21335_overlayHeight;
break;case 1:case 3:b.JSC$21335_overlayMarginTop=b.canvas.height-b.JSC$21335_overlayMarginBottom-b.JSC$21335_overlayHeight;break;default:throw Error("Ul");}},K6x=function(b,h){switch(b.resizeCorner){case 2:h=b.canvas.height-(b.JSC$21335_overlayMarginTop+nzq(b,h));
break;case 4:h=b.canvas.height-(b.JSC$21335_overlayMarginTop+Xw2(b,h));break;case 1:h=b.JSC$21335_overlayMarginTop+b.JSC$21335_overlayHeight-nzq(b,h);break;case 3:h=b.JSC$21335_overlayMarginTop+b.JSC$21335_overlayHeight-Xw2(b,h);break;default:throw Error("Ul");}return Math.max(h,b.canvasMargin)},nzq=function(b,h){h=b.JSC$21335_overlayMarginLeft+b.JSC$21335_overlayWidth-Math.max(h,b.horizontalMargin);
h=h<0?b.JSC$21335_overlayWidth:Math.max(h,b.minOverlayWidth);return Math.round(h/b.requiredRatio)},Xw2=function(b,h){h=b.canvas.width-Math.max(b.canvas.width-h,b.horizontalMargin)-b.JSC$21335_overlayMarginLeft;
h=h<0?b.JSC$21335_overlayWidth:Math.max(h,b.minOverlayWidth);return Math.round(h/b.requiredRatio)},ozd=function(b,h){switch(b.resizeCorner){case 2:h=b.canvas.width-b.JSC$21335_overlayMarginRight-Hy2(b,h);
break;case 4:h=b.canvas.width-b.JSC$21335_overlayMarginLeft-Hy2(b,h);break;case 1:h=b.canvas.width-b.JSC$21335_overlayMarginRight-uEf(b,h);break;case 3:h=b.canvas.width-b.JSC$21335_overlayMarginLeft-uEf(b,h);break;default:throw Error("Ul");}return Math.max(h,b.horizontalMargin)},Hy2=function(b,h){h=b.canvas.height-Math.max(b.canvas.height-h,b.canvasMargin)-b.JSC$21335_overlayMarginTop;
return h<0?b.JSC$21335_overlayWidth:Math.max(Math.round(h*b.requiredRatio),b.minOverlayWidth)},uEf=function(b,h){h=b.JSC$21335_overlayMarginTop+b.JSC$21335_overlayHeight-Math.max(h,b.canvasMargin);
return h<0?b.JSC$21335_overlayWidth:Math.max(Math.round(h*b.requiredRatio),b.minOverlayWidth)},byN=function(b){b.ctx.clearRect(0,0,b.canvas.width,b.canvas.height);
b.ctx.drawImage(b.image,0,0,b.image.width,b.image.height,b.horizontalMargin,b.canvasMargin,b.canvas.width-2*b.horizontalMargin,b.scaledImageHeight);b.ctx.fillStyle="rgba(0, 0, 0, 0.7)";b.ctx.fillRect(b.horizontalMargin,b.JSC$21335_overlayMarginTop,b.JSC$21335_overlayMarginLeft-b.horizontalMargin,b.JSC$21335_overlayHeight);b.ctx.fillRect(b.JSC$21335_overlayMarginLeft+b.JSC$21335_overlayWidth,b.JSC$21335_overlayMarginTop,b.JSC$21335_overlayMarginRight-b.horizontalMargin,b.JSC$21335_overlayHeight);b.ctx.fillRect(b.horizontalMargin,
b.canvasMargin,b.scaledImageWidth,b.JSC$21335_overlayMarginTop-b.canvasMargin);b.ctx.fillRect(b.horizontalMargin,b.JSC$21335_overlayMarginTop+b.JSC$21335_overlayHeight,b.scaledImageWidth,b.JSC$21335_overlayMarginBottom-b.canvasMargin);b.drawOverlay();b.component&&_.Sx(b.component,"image-updated")};
Gh.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$21335_overlayMarginLeft,this.JSC$21335_overlayMarginTop,this.JSC$21335_overlayWidth,this.JSC$21335_overlayHeight);OyN(this)};
var OyN=function(b){var h=b.JSC$21335_overlayMarginLeft-5,y=b.JSC$21335_overlayMarginTop-5,S=b.JSC$21335_overlayMarginLeft+b.JSC$21335_overlayWidth-5,F=b.JSC$21335_overlayMarginTop+b.JSC$21335_overlayHeight-5;b.ctx.fillStyle="#FFF";b.ctx.fillRect(h,y,10,10);b.ctx.strokeRect(h,y,10,10);b.ctx.fillRect(S,y,10,10);b.ctx.strokeRect(S,y,10,10);b.ctx.fillRect(h,F,10,10);b.ctx.strokeRect(h,F,10,10);b.ctx.fillRect(S,F,10,10);b.ctx.strokeRect(S,F,10,10);if(b.focusedCorner!==0&&b.styleFocusedCorner){b.ctx.lineWidth=
4;b.ctx.strokeStyle="#3EA6FF";switch(b.focusedCorner){case 1:--h;--y;break;case 2:--h;y=F-1;break;case 3:h=S-1;--y;break;case 4:h=S-1;y=F-1;break;default:return}b.ctx.strokeRect(h,y,12,12)}};
Gh.prototype.crop=function(b,h){h=h===void 0?!0:h;var y=this.image.width/this.scaledImageWidth,S=document.createElement("canvas"),F=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],a=this.JSC$21335_overlayWidth*y,P=this.JSC$21335_overlayHeight*y;S.width=Math.max(a,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);S.height=Math.max(P,F);b&&(S.width=Math.min(S.width,S.height),S.height=Math.min(S.width,S.height));
b=S.getContext("2d");if(!b)throw Error("Il");F=(this.JSC$21335_overlayMarginLeft-this.horizontalMargin)*y;y*=this.JSC$21335_overlayMarginTop-this.canvasMargin;h||(b.fillStyle="white",b.fillRect(0,0,S.width,S.height));b.drawImage(this.image,F,y,a,P,0,0,S.width,S.height);return S};var NNf=function(b,h,y,S,F){Gh.call(this,b,h,y,S,void 0,F,8,!1)};
_.z(NNf,Gh);NNf.prototype.drawOverlay=function(){var b=this.getContext(),h=this.JSC$21335_overlayWidth,y=this.JSC$21335_overlayHeight,S=this.JSC$21335_overlayMarginTop,F=this.JSC$21335_overlayMarginLeft;b.lineWidth=2;b.strokeStyle="#3EA6FF";b.beginPath();b.arc(F+h/2,S+y/2,h/2,0,2*Math.PI);b.stroke();b.strokeRect(F,S,h,y);OyN(this)};
var tzA={maxFileSizeMB:15,minWidth:98,minHeight:98},rzf=["image/png","image/jpeg","image/gif"],kD=function(){var b=_.g.apply(this,arguments)||this;b.fileSelectorFocusListener=null;b.errorMessage=null;b.isLoading=!0;b.hideContainer=!0;b.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return b};
_.z(kD,_.g);_.d=kD.prototype;_.d.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.d.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.d.computePlaylistThumbnail=function(b){return b==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.d.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.F8(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.d.setErrorState=function(b){this.resetErrorState();b&&(this.errorMessage=b)};
_.d.showPopup=function(){var b=this;this.hideContainer=!1;_.VT(_.xP,function(){_.Sx(b.hostElement,"yt-refit")});
this.isLoading=!1};
_.d.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.d.closePopup=function(){this.resetFileSelector();_.F8(this.hostElement,"yt-close-popup-action",[this.is])};
_.d.onCancelTap=function(){this.isPlaylistThumbnail||_.F8(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.d.openFileSelector=function(){var b=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.VT(_.xP,function(){setTimeout(function(){if(!b.fileSelector.files||b.fileSelector.files.length===0)b.onCancelTap();b.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(h){h instanceof Error?_.QT(h):_.mm(new _.Gn(JSON.stringify(h)))}};
_.d.handleFileSelection=function(){var b=this,h,y,S,F,a,P;return _.Z(function(K){switch(K.nextAddress){case 1:_.WE(K,2);if(!b.fileSelector.files||!b.imageEditorCanvas)return b.onCancelTap(),K.return();h=b.fileSelector.files[0];lHx(b.imageChecker,h);_.WE(K,4);return K.yield(LLF(h),6);case 6:b.mimeType=K.yieldResult;_.Lz(K,5,2);break;case 4:_.C$(K,2),_.F8(b.hostElement,"yt-image-selection-error-action",[(y=b.data)==null?void 0:y.genericImageLoadErrorMessage]),b.onCancelTap();case 5:S=new FileReader;
S.addEventListener("load",function(){var n,X;return _.Z(function(u){if(u.nextAddress==1){if(!S.result)return _.vX(Error("Kl")),u.return();n=S.result;X=new Image;X.src=n;X.onload=function(){try{var O=b.imageChecker;if(X.width<O.requirements.minWidth||X.height<O.requirements.minHeight)throw new fHq(O.requirements.minWidth,O.requirements.minHeight);}catch(t){if(t instanceof fHq){var N;_.F8(b.hostElement,"yt-image-selection-error-action",[(N=b.data)==null?void 0:N.imageDimensionErrorMessage]);b.logImageDimensionErrorVe()}else t instanceof
Error?_.QT(t):(O=new _.Gn(JSON.stringify(t)),_.QT(O));b.onCancelTap()}b.showPopup()};
X.onerror=function(){var O;_.F8(b.hostElement,"yt-image-selection-error-action",[(O=b.data)==null?void 0:O.genericImageLoadErrorMessage]);b.onCancelTap()};
return u.yield(vsf(b.imageEditorCanvas,n),2)}b.imageEditor=u.yieldResult;b.updatePositionOfAllCorners();b.addEventListeners(b.imageEditor);_.g3(u)})},!1);
S.readAsDataURL(h);_.Lz(K,0);break;case 2:F=_.C$(K),F instanceof i_q?_.F8(b.hostElement,"yt-image-selection-error-action",[(a=b.data)==null?void 0:a.imageSizeErrorMessage]):(F instanceof Error?_.QT(F):_.mm(new _.Gn(JSON.stringify(F))),_.F8(b.hostElement,"yt-image-selection-error-action",[(P=b.data)==null?void 0:P.genericImageLoadErrorMessage])),b.onCancelTap(),_.g3(K)}})};
_.d.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var b=_.NJ(_.rU(),{veType:232707,visualElement:_.Kh(232707)});b&&(b={visualElement:b},_.OQ().reportShown(b))}};
_.d.handleImageSelectionErrorAction=function(b){this.isPlaylistThumbnail&&_.vtq(this.hostElement,b)};
_.d.convertToImageFormatBundle=function(b){var h=this,y,S,F;return _.Z(function(a){switch(a.nextAddress){case 1:return y=b.toDataURL(h.outputMimeType,1),a.yield(P4d(y),2);case 2:S=a.yieldResult;_.WE(a,3);lHx(h.imageChecker,S);_.Lz(a,4);break;case 3:F=_.C$(a);if(!(F instanceof i_q))throw F;_.vX(new _.Gn("Output size is bigger than input size for image",h.mimeType,h.outputMimeType,S.size));y=b.toDataURL("image/jpeg",.95);return a.yield(P4d(y),6);case 6:S=a.yieldResult;case 4:return a.return({dataUrl:y,
imageFile:S})}})};
_.d.handleUploadImageToScottyCommand=function(b){var h=this,y,S,F,a,P,K,n,X,u,O;return _.Z(function(N){switch(N.nextAddress){case 1:if(!h.imageEditor||!_.c(b,pDf))return N.return();y=_.c(b,pDf).scottyUploadUrl;if(!y){var t=new _.Gn("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.QT(t);return N.return()}_.WE(N,2);h.setLoadingState();S=h.imageEditor.crop(!1,!1);return N.yield(h.convertToImageFormatBundle(S),4);case 4:return F=N.yieldResult,N.yield(jyq(F.imageFile,y),5);
case 5:a=N.yieldResult;((P=h.data)==null?0:P.onUploadEndpoint)?(K=h.buildUploadServiceEndpoint(a),h.ytComponentBehavior.resolveCommand(K),n=_.c(K,_.nj),((X=n)==null?0:X.params)?h.closePopup():h.resetFileSelector()):(_.F8(h.hostElement,"yt-image-updated-action",[F.dataUrl,a]),h.closePopup());_.Lz(N,0);break;case 2:u=_.C$(N),h.setErrorState((O=h.data)==null?void 0:O.uploadErrorMessage),u instanceof Error?_.QT(u):(t=new _.Gn(JSON.stringify(u)),_.QT(t)),_.g3(N)}})};
_.d.buildUploadServiceEndpoint=function(b){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",b),this.data.onUploadEndpoint):null};
_.d.dataChanged=function(){var b=this,h;return _.Z(function(y){if(y.nextAddress==1){if(!b.data||!b.canvasElement)return y.return();b.data.imageRatio&&b.data.minImageCropWidth||_.mm(new _.Gn("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));h=function(S,F){return b.data.imageType==="IMAGE_TYPE_AVATAR"?new NNf(S,F,b.data.imageRatio,[b.data.minImageCropWidth,b.data.minImageCropWidth/b.data.imageRatio],b.hostElement):new Gh(S,F,b.data.imageRatio,[b.data.minImageCropWidth,
b.data.minImageCropWidth/b.data.imageRatio],void 0,b.hostElement,8,!1)};
b.imageEditorCanvas=new q8P(b.canvasElement,h);return b.data.url?y.yield(vsf(b.imageEditorCanvas,b.data.url),3):(b.hideContainer=!0,b.openFileSelector(),y.jumpTo(0))}b.imageEditor=y.yieldResult;b.showPopup();b.addEventListeners(b.imageEditor);_.g3(y)})};
_.d.addEventListeners=function(b){this.removeEventListeners();var h=function(F){xgN(b,F)};
this.JSC$21343_mouseDownEvent=h;var y=function(F){Q5A(b,F)};
this.JSC$21343_mouseMoveEvent=y;var S=function(){mgx(b)};
this.JSC$21343_mouseUpEvent=S;this.topLeftCorner.addEventListener("mousedown",h);this.topLeftCorner.addEventListener("mousemove",y);this.topLeftCorner.addEventListener("mouseup",S);this.topRightCorner.addEventListener("mousedown",h);this.topRightCorner.addEventListener("mousemove",y);this.topRightCorner.addEventListener("mouseup",S);this.bottomLeftCorner.addEventListener("mousedown",h);this.bottomLeftCorner.addEventListener("mousemove",y);this.bottomLeftCorner.addEventListener("mouseup",S);this.bottomRightCorner.addEventListener("mousedown",
h);this.bottomRightCorner.addEventListener("mousemove",y);this.bottomRightCorner.addEventListener("mouseup",S)};
_.d.removeEventListeners=function(){this.JSC$21343_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$21343_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$21343_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$21343_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$21343_mouseDownEvent));this.JSC$21343_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$21343_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$21343_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$21343_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$21343_mouseMoveEvent));this.JSC$21343_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$21343_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$21343_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$21343_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$21343_mouseUpEvent))};
_.d.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var b=document.activeElement;b&&b.shadowRoot&&b.shadowRoot.activeElement;)b=b.shadowRoot.activeElement;switch(b){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};
_.d.updatePositionOfCorner=function(b,h){var y=b.y-h.offsetHeight/2+4;h.style.left=b.x-h.offsetWidth/2+16+"px";h.style.top=y+"px"};
_.d.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var b=_.L([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),h=b.next();!h.done;h=b.next()){h=h.value;var y=SgF(this.imageEditor,h.corner);this.updatePositionOfCorner(y,h.div)}};
_.d.onLeft=function(b){this.imageEditor&&this.setFocusInImageEditor()&&(aqF(this.imageEditor,0),this.updatePositionOfAllCorners(),b.preventDefault())};
_.d.onRight=function(b){this.imageEditor&&this.setFocusInImageEditor()&&(aqF(this.imageEditor,1),this.updatePositionOfAllCorners(),b.preventDefault())};
_.d.onUp=function(b){this.imageEditor&&this.setFocusInImageEditor()&&(aqF(this.imageEditor,2),this.updatePositionOfAllCorners(),b.preventDefault())};
_.d.onDown=function(b){this.imageEditor&&this.setFocusInImageEditor()&&(aqF(this.imageEditor,3),this.updatePositionOfAllCorners(),b.preventDefault())};
_.d.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.tm.Object.defineProperties(kD.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&rzf.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var b,h,y;((h=this.data)==null?0:h.imageRatio)&&((y=this.data)==null?0:y.minImageCropWidth)?b={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:b=tzA;return new wkA(b)}}});
kD.prototype.updatePositionOfAllCorners=kD.prototype.updatePositionOfAllCorners;kD.prototype.dataChanged=kD.prototype.dataChanged;_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],kD.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],kD.prototype,"ytComponentBehavior",void 0);_.V([_.B(_.xq),_.f("design:type",Object)],kD.prototype,"ironA11yKeysBehavior",void 0);
_.V([_.to("#canvas"),_.f("design:type",HTMLCanvasElement)],kD.prototype,"canvasElement",void 0);_.V([_.to("#file-selector"),_.f("design:type",HTMLInputElement)],kD.prototype,"fileSelector",void 0);_.V([_.to("#top-left-corner"),_.f("design:type",HTMLDivElement)],kD.prototype,"topLeftCorner",void 0);_.V([_.to("#top-right-corner"),_.f("design:type",HTMLDivElement)],kD.prototype,"topRightCorner",void 0);
_.V([_.to("#bottom-left-corner"),_.f("design:type",HTMLDivElement)],kD.prototype,"bottomLeftCorner",void 0);_.V([_.to("#bottom-right-corner"),_.f("design:type",HTMLDivElement)],kD.prototype,"bottomRightCorner",void 0);_.V([_.C(),_.f("design:type",Object)],kD.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],kD.prototype,"errorMessage",void 0);_.V([_.C(),_.f("design:type",Object)],kD.prototype,"isLoading",void 0);_.V([_.C(),_.f("design:type",Object)],kD.prototype,"hideContainer",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.f("design:type",Boolean)],kD.prototype,"isPlaylistThumbnail",void 0);_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype",Promise)],kD.prototype,"dataChanged",null);_.V([_.u3("image-updated"),_.u3("yt-refit"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],kD.prototype,"updatePositionOfAllCorners",null);
_.V([_.sB({is:"yt-image-editor-renderer",disableElementRegistration:!0})],kD);
_.k(kD,"yt-image-editor-renderer",function(){if(EsN===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;V$f===void 0&&(V$f=document.createElement("template"));var S=V$f;y.call(h,S.content.cloneNode(!0),b.content.firstChild);EsN=b}b=EsN;return b},{mode:2});var cza;var R72;var Vq=function(){return _.g.apply(this,arguments)||this};
_.z(Vq,_.g);Vq.prototype.updateMinutesFromBinding=function(b){this.handleMinutesChanged&&this.handleMinutesChanged(b)};
Vq.prototype.updateSecondsFromBinding=function(b){this.handleSecondsChanged&&this.handleSecondsChanged(b)};
Vq.prototype.updateDescriptionFromBinding=function(b){this.handleDescriptionChanged&&this.handleDescriptionChanged(b)};
_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],Vq.prototype,"ytComponentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Vq.prototype,"data",void 0);_.V([_.C(),_.f("design:type",String)],Vq.prototype,"minutes",void 0);_.V([_.C(),_.f("design:type",String)],Vq.prototype,"seconds",void 0);_.V([_.C(),_.f("design:type",String)],Vq.prototype,"description",void 0);_.V([_.C(),_.f("design:type",Function)],Vq.prototype,"handleMinutesChanged",void 0);
_.V([_.C(),_.f("design:type",Function)],Vq.prototype,"handleSecondsChanged",void 0);_.V([_.C(),_.f("design:type",Function)],Vq.prototype,"handleDescriptionChanged",void 0);_.V([_.C(),_.f("design:type",Number)],Vq.prototype,"characterLimit",void 0);_.V([_.C(),_.f("design:type",Number)],Vq.prototype,"textNumRows",void 0);_.V([_.sB({is:"yt-report-details-form-content",disableElementRegistration:!0})],Vq);
_.k(Vq,"yt-report-details-form-content",function(){if(R72===void 0){var b=document.createElement("template");_.D(b,'\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>');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;cza===void 0&&(cza=document.createElement("template"));var S=cza;y.call(h,S.content.cloneNode(!0),b.content.firstChild);R72=b}b=R72;return b},{mode:2});var z72;var DHA;var EZ=function(){var b=_.g.apply(this,arguments)||this;b.updateMinutesFromBinding=function(h){b.minutes=h.detail.value};
b.updateSecondsFromBinding=function(h){b.seconds=h.detail.value};
b.updateDescriptionFromBinding=function(h){b.description=h.detail.value};
return b};
_.z(EZ,_.g);_.d=EZ.prototype;_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.d.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"}}}};
_.d.ready=function(){_.$x(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.d.onSubmitYtAction=function(b){var h=b.detail;h.actionName==="yt-service-request"&&(h=h.args[1],h.flagEndpoint&&(b.stopPropagation(),this.refireAction(h)))};
_.d.refireAction=function(b){var h={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(h.vss_id=this.vssId);_.dh(this.hostElement,[b,h]);this.submitDisabled=!0};
_.d.dataChanged=function(){var b=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var h=_.ye();h&&h.getPlayerPromise().then(function(y){var S=y.getOption("cc","track")||y.getOption("captions","track");S&&(b.vssId=S.vss_id);y=y.getCurrentTime();b.minutes=Math.floor(y/60).toString();b.seconds=(Math.floor(y)%60).toString()})};
_.d.updateSubmitButtonState=function(){var b;((b=this.data)==null?0:b.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==="")};
_.d.onYtServiceRequestCompleted=function(){_.F8(this.hostElement,"yt-close-popup-action")};
_.d.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.tm.Object.defineProperties(EZ.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.data)==null?void 0:b.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var b;return((b=this.data)==null?void 0:b.textNumRows)||4}}});
EZ.prototype.onYtServiceRequestError=EZ.prototype.onYtServiceRequestError;EZ.prototype.onYtServiceRequestCompleted=EZ.prototype.onYtServiceRequestCompleted;EZ.prototype.updateSubmitButtonState=EZ.prototype.updateSubmitButtonState;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],EZ.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],EZ.prototype,"ytRendererBehavior",void 0);
_.V([_.C({observer:"dataChanged"}),_.f("design:type",Object)],EZ.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Boolean)],EZ.prototype,"submitDisabled",void 0);_.V([_.C(),_.f("design:type",String)],EZ.prototype,"minutes",void 0);_.V([_.C(),_.f("design:type",String)],EZ.prototype,"seconds",void 0);_.V([_.C(),_.f("design:type",String)],EZ.prototype,"description",void 0);_.V([_.C(),_.f("design:type",String)],EZ.prototype,"vssId",void 0);
_.V([_.C({value:_.QC("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.f("design:type",Boolean)],EZ.prototype,"isMusic",void 0);_.V([_.W("data"),_.f("design:type",Number),_.f("design:paramtypes",[])],EZ.prototype,"characterLimit",null);_.V([_.W("data"),_.f("design:type",Number),_.f("design:paramtypes",[])],EZ.prototype,"textNumRows",null);
_.V([_.zj("minutes","seconds","description","submitDisabled"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],EZ.prototype,"updateSubmitButtonState",null);_.V([_.u3("yt-service-request-completed"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],EZ.prototype,"onYtServiceRequestCompleted",null);
_.V([_.u3("yt-service-request-error"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],EZ.prototype,"onYtServiceRequestError",null);_.V([_.sB({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],EZ);
_.k(EZ,"yt-report-details-form-renderer",function(){if(DHA===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;z72===void 0&&(z72=document.createElement("template"));var S=z72;y.call(h,S.content.cloneNode(!0),b.content.firstChild);DHA=b}b=DHA;return b});var Iqf;var BNq;var W6A;var AzY;var iI=function(){return _.g.apply(this,arguments)||this};
_.z(iI,_.g);
iI.prototype.onCheckedChanged_=function(){if(this.data){var b=_.$x(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.F8(this.hostElement,"yt-additional-detail-checkbox-update",[b]):this.data.identifier==="yt-hide-user-checkbox"?_.F8(this.hostElement,"yt-hide-user-checkbox-update",[b]):b&&this.data.enableCommand?_.F8(this.hostElement,"yt-modify-report-form-command",[_.c(this.data.enableCommand,T7q)]):!b&&this.data.disableCommand&&_.F8(this.hostElement,
"yt-modify-report-form-command",[_.c(this.data.enableCommand,T7q)])}};
iI.prototype.onLabelTap_=function(b){b.target.tagName!="A"&&(_.$x(this.hostElement).querySelector("#checkbox").checked=!_.$x(this.hostElement).querySelector("#checkbox").checked)};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],iI.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],iI.prototype,"data",void 0);_.V([_.sB({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],iI);
_.k(iI,"yt-boolean-form-field-v2-renderer",function(){if(AzY===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;W6A===void 0&&(W6A=document.createElement("template"));var S=W6A;y.call(h,S.content.cloneNode(!0),b.content.firstChild);AzY=b}b=AzY;return b});var fu=function(){var b=_.g.apply(this,arguments)||this;b.canShowAdditionalDetailCheckbox=!1;b.canShowCheckbox=!1;b.keepDropdownFocusedAfterSelection=!0;return b};
_.z(fu,_.g);fu.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}}}}};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],fu.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],fu.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],fu.prototype,"canShowAdditionalDetailCheckbox",void 0);_.V([_.C(),_.f("design:type",Object)],fu.prototype,"canShowCheckbox",void 0);_.V([_.C(),_.f("design:type",Object)],fu.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.V([_.sB({is:"yt-report-form-modal-content",disableElementRegistration:!0})],fu);
_.k(fu,"yt-report-form-modal-content",function(){if(BNq===void 0){var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;Iqf===void 0&&(Iqf=document.createElement("template"));var S=Iqf;y.call(h,S.content.cloneNode(!0),b.content.firstChild);BNq=b}b=BNq;return b},{mode:2});var UHd;var pwP;var wY=function(){var b=_.g.apply(this,arguments)||this;b.submitting=!1;b.submitButtonDisabled=!0;b.command=null;b.canShowCheckbox=!1;b.canShowAdditionalDetailCheckbox=!1;b.canShowNextButton=!1;b.additionalDetailCheckboxChecked=!1;b.refitJob=0;b.keepDropdownFocusedAfterSelection=!0;b.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 b};
_.z(wY,_.g);_.d=wY.prototype;_.d.created=function(){this.refitJob=0};
_.d.attached=function(){this.JSC$21366_scroller&&(this.JSC$21366_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21366_scroller.attached&&typeof this.JSC$21366_scroller.attached==="function"&&this.JSC$21366_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.dataChanged=function(b){b&&(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,b.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),b.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.d.onYtPopupOpened=function(){var b=_.ye();b&&b.getPlayerPromise().then(function(h){h.pauseVideo()})};
_.d.onYtNavigate=function(b){_.c(b.detail.endpoint,_.hZG)&&(b.stopPropagation(),this.hideReportForm=!0)};
_.d.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.d.onYtServiceRequestCompleted=function(b,h){var y=h.actions;if(y){if(y.length===1&&_.c(y[0],_.LI)){var S;y=((S=_.c(y[0],_.LI))==null?void 0:S.commands)||[]}S=0;for(var F=y.length;S<F;S++)_.c(y[S],_.yG)&&(b.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(y[S]))}if(h.data&&(b=this.get("feedbackResponses",h.data)))for(h=0;h<b.length;h++)if(b[h].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.d.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.d._onDescendantIronResize=function(b){b.stopPropagation();return!1};
_.d.handleReportFormEndpointUpdateAction=function(b){if(b.submitEndpoint){var h=this.command=b.submitEndpoint;h=_.c(h,_.vqM);if(h==null?0:h.additionalDetailCheckboxChecked)h.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else b.submitNavigationEndpoint?(this.command=b.submitNavigationEndpoint,this.toggleSubmitButton(!1)):b.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:b.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;b.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",b));this.refit()};
_.d.handleConfirmDialogCloseAction=function(b){b.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.d.submitButtonDisabledChanged=function(){var b=this.hostElement.parentElement;b&&b.invalidateTabbables&&b.invalidateTabbables()};
_.d.handleModifyReportFormCommand=function(b){b=this.get("action",b);b==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:b==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:b==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:b==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:b==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:b==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.d.updateDialogStyling=function(){var b,h,y,S,F,a=((F=(b=this.data)==null?void 0:(h=b.optionsSupportedRenderers)==null?void 0:(y=h.optionsRenderer)==null?void 0:(S=y.items)==null?void 0:S.length)!=null?F:0)<=2?0:240;_.nZ(this.hostElement,{"--yt-report-form-modal-renderer-min-width":a+"px"})};
_.d.toggleSubmitButton=function(b){this.submitButtonDisabled=!b;this.submitButtonDisabled=b};
_.d.computeSubmitButtonData=function(b,h){var y={};_.c(h,_.hZG)?y.navigationEndpoint=h:y.command=h||void 0;b&&b.buttonRenderer&&_.lR.extend(y,b.buttonRenderer);return y};
_.d.computeNextButtonData=function(b,h){var y={};if(!b||!b.buttonRenderer)return y;_.lR.extend(y,b.buttonRenderer);if(!h)return y;if(_.c(h,_.hZG))y.navigationEndpoint=cDf(h);else if(y.command=cDf(h),b=_.c(y.command,_.vqM))b.legalCheckboxChecked=!0;return y};
_.d.computeShowNextButton=function(b,h,y){return!!b&&h&&y};
_.d.refit=function(){var b=this;this.refitJob||(this.refitJob=_.xP.addLowPriorityJob(function(){_.Sx(b.hostElement,"yt-refit");b.refitJob=0}))};
_.d.handleAdditionalDetailCheckboxUpdateAction=function(b){this.additionalDetailCheckboxChecked=b;_.c(this.command,_.vqM).additionalDetailCheckboxChecked=b};
_.tm.Object.defineProperties(wY,{template:{configurable:!0,enumerable:!0,get:function(){if(pwP===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;UHd===void 0&&(UHd=document.createElement("template"));var S=UHd;y.call(h,S.content.cloneNode(!0),b.content.firstChild);pwP=b}b=pwP;return b}}});
wY.prototype.onYtServiceRequestError=wY.prototype.onYtServiceRequestError;wY.prototype.onYtServiceRequestCompleted=wY.prototype.onYtServiceRequestCompleted;wY.prototype.onYtServiceRequestSent=wY.prototype.onYtServiceRequestSent;wY.prototype.onYtNavigate=wY.prototype.onYtNavigate;wY.prototype.onYtPopupOpened=wY.prototype.onYtPopupOpened;_.V([_.B(_.xN.YtOpenPopupBehavior),_.f("design:type",Object)],wY.prototype,"openPopupBehavior",void 0);
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],wY.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],wY.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.PQ.YtEventForwardingBehavior),_.f("design:type",Object)],wY.prototype,"eventForwardingBehavior",void 0);_.V([_.B(_.ab),_.f("design:type",Object)],wY.prototype,"ironResizableBehavior",void 0);_.V([_.C({observer:"dataChanged"}),_.f("design:type",Object)],wY.prototype,"data",void 0);
_.V([_.C(),_.f("design:type",Object)],wY.prototype,"submitting",void 0);_.V([_.C({observer:"submitButtonDisabledChanged"}),_.f("design:type",Object)],wY.prototype,"submitButtonDisabled",void 0);_.V([_.C(),_.f("design:type",Object)],wY.prototype,"command",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],wY.prototype,"hideReportForm",void 0);_.V([_.C(),_.f("design:type",Object)],wY.prototype,"canShowCheckbox",void 0);
_.V([_.C(),_.f("design:type",Object)],wY.prototype,"canShowAdditionalDetailCheckbox",void 0);_.V([_.C(),_.f("design:type",Object)],wY.prototype,"canShowNextButton",void 0);_.V([_.C(),_.f("design:type",Object)],wY.prototype,"additionalDetailCheckboxChecked",void 0);_.V([_.C(),_.f("design:type",Object)],wY.prototype,"refitJob",void 0);_.V([_.C(),_.f("design:type",Object)],wY.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.V([_.to("#scroller"),_.f("design:type",Object)],wY.prototype,"JSC$21366_scroller",void 0);_.V([_.u3("yt-popup-opened"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],wY.prototype,"onYtPopupOpened",null);_.V([_.u3("yt-navigate"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],wY.prototype,"onYtNavigate",null);
_.V([_.u3("yt-service-request-sent"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,_.kE]),_.f("design:returntype")],wY.prototype,"onYtServiceRequestSent",null);_.V([_.u3("yt-service-request-completed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,_.xE]),_.f("design:returntype")],wY.prototype,"onYtServiceRequestCompleted",null);
_.V([_.u3("yt-service-request-error"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],wY.prototype,"onYtServiceRequestError",null);_.V([_.sB({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],wY);var JzP;var e7q;var lI=function(){return _.g.apply(this,arguments)||this};
_.z(lI,_.g);_.d=lI.prototype;_.d.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.d.onVisible=function(){var b,h;(h=_.H9().resolve(_.XS(_.ez)))==null||h.enqueue({label:_.vi((b=this.data)==null?void 0:b.messageTitle),elementToFocus:this.hostElement})};
_.d.onThumbnailLoaded=function(){_.Sx(this.hostElement,"yt-refit")};
_.d.onDismissTap=function(){_.F8(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.d.computeAlternateIcon=function(b){return b?b==="BACKSTAGE_ARTWORK"?"backstage:artwork":b:null};
_.d.computeFontFamily=function(b){return b==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.d.computeBackgroundStyle=function(b,h){if(b=this.computeBackgroundImage(b,h))if(b=_.Fv(b.thumbnails))return'background-image: url("'+b+'");'};
_.d.computeHasFullHeightImage=function(b){return!(!(b&&b.thumbnails&&b.thumbnails.length>0)||this.modern)};
_.d.isModernStyle=function(b){return b.style==="STYLE_MODERN"};
_.d.computeIcon=function(b,h){if(b&&b.icon)return h?b.iconDark:b.icon};
_.d.computeBackgroundImage=function(b,h){if(b&&b.backgroundImage)return h?b.backgroundImageDark:b.backgroundImage};
_.d.computeLogo=function(b,h){if(b&&b.logo)return h?b.logoDark:b.logo};
_.d.computeShouldShowModernIcon=function(b,h){return b&&!!h};
_.d.getLogoContainerClassName=function(b){return this.logoWithPadding(b)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.d.getLogoImageId=function(b){return this.logoWithPadding(b)?"mealbar-logo-with-padding":"mealbar-logo"};
_.d.logoWithPadding=function(b){var h,y,S;return(b=(h=this.computeLogo(b,this.isDarkTheme))==null?void 0:(y=h.thumbnails)==null?void 0:(S=y[0])==null?void 0:S.height)&&b%31===0?!0:!1};
lI.prototype.onThumbnailLoaded=lI.prototype.onThumbnailLoaded;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],lI.prototype,"ytRendererBehavior",void 0);_.V([_.C({}),_.f("design:type",Object)],lI.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.f("design:type",Boolean)],lI.prototype,"modern",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],lI.prototype,"isDarkTheme",void 0);
_.V([_.C({computed:"computeIcon(data, isDarkTheme)"}),_.f("design:type",Object)],lI.prototype,"icon",void 0);_.V([_.C({computed:"computeLogo(data, isDarkTheme)"}),_.f("design:type",Object)],lI.prototype,"logo",void 0);_.V([_.C({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.f("design:type",Object)],lI.prototype,"backgroundStyle",void 0);_.V([_.C({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.f("design:type",Object)],lI.prototype,"alternateIcon",void 0);
_.V([_.C({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.f("design:type",Boolean)],lI.prototype,"hasFullHeightImage",void 0);_.V([_.C({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.f("design:type",Boolean)],lI.prototype,"useYoutubeSans",void 0);_.V([_.C({computed:"computeShouldShowModernIcon(modern, icon)"}),_.f("design:type",Boolean)],lI.prototype,"shouldShowModernIcon",void 0);
_.V([_.u3("yt-img-shadow-loaded"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],lI.prototype,"onThumbnailLoaded",null);_.V([_.sB({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],lI);
_.k(lI,"yt-mealbar-promo-renderer",function(){if(e7q===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;JzP===void 0&&(JzP=document.createElement("template"));var S=JzP;y.call(h,S.content.cloneNode(!0),b.content.firstChild);e7q=b}b=e7q;return b},{mode:2});var C9a;var gzd;var q0=function(){return _.g.apply(this,arguments)||this};
_.z(q0,_.g);_.d=q0.prototype;_.d.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]]"}}}}}};
_.d.computeHasButtons_=function(b){return!(!b.dismissButton&&!b.acceptButton)};
_.d.computeStyle_=function(b){return b||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.d.observeImpressionEndpoints_=function(){var b=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(h){h.clickTrackingParams&&delete h.clickTrackingParams;_.dh(b.hostElement,[h])})};
_.d.onTap_=function(){_.F8(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
q0.prototype.observeImpressionEndpoints_=q0.prototype.observeImpressionEndpoints_;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],q0.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.PQ.YtEventForwardingBehavior),_.f("design:type",Object)],q0.prototype,"ytEventForwardingBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],q0.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],q0.prototype,"data",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],q0.prototype,"positionType",void 0);_.V([_.C({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.f("design:type",Boolean)],q0.prototype,"hasButtons_",void 0);_.V([_.C({value:function(){return this.onTap_.bind(this)}}),
_.f("design:type",Function)],q0.prototype,"boundOnTap_",void 0);_.V([_.C({value:{style:"mono-inverse"}}),_.f("design:type",Object)],q0.prototype,"buttonOverride",void 0);_.V([_.OB("data.promoConfig.impressionEndpoints"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],q0.prototype,"observeImpressionEndpoints_",null);_.V([_.sB({is:"yt-tooltip-renderer",disableElementRegistration:!0})],q0);
_.k(q0,"yt-tooltip-renderer",function(){if(gzd===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;C9a===void 0&&(C9a=document.createElement("template"));var S=C9a;y.call(h,S.content.cloneNode(!0),b.content.firstChild);gzd=b}b=gzd;return b},{mode:2});var sTq;var Ygf;var TNP;var Gid;var xD=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-open-popup-action":"onOpen"};return b};
_.z(xD,_.g);_.d=xD.prototype;_.d.attached=function(){this.onOpen()};
_.d.updateTimeSecs=function(b){this.currentTimeSecs=b};
_.d.computeTimeString=function(b){b=b.toString();var h=Math.floor(Number(b)/3600),y=Math.floor(Number(b)%3600%60);return(h>0?h+":":"")+_.NM(Math.floor(Number(b)%3600/60),h>0?2:1)+":"+_.NM(y,2)};
_.d.computeTimeStringA11y=function(b){return _.o9N({seconds:b})};
_.d.getTimeParam=function(){return fSE(this.timeString)};
_.d.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var b={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},h;_.QG(_.rU(),(h=this.data)==null?void 0:h.trackingParams,b,7)};
_.d.onChangeStartAtTimestamp=function(){for(var b=this.startAtTimestamp.value.split(":"),h=0,y=1,S=b.length-1;S>=0;S--)h+=Number(b[S])*y,y*=60;this.updateTimeSecs(h);this.setTimestamp()};
_.d.onOpen=function(){var b=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var h=_.ye();h?h.getPlayerPromise().then(function(y){y=y.getCurrentTime();b.updateTimeSecs(y)}):nrP()&&this.updateTimeSecs(nrP())};
_.d.setTimestamp=function(){var b=Math.floor(this.currentTimeSecs);_.F8(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!b,timestamp:b||""}])};
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],xD.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],xD.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],xD.prototype,"data",void 0);_.V([_.C({value:!1,notify:!0}),_.f("design:type",Boolean)],xD.prototype,"isStartAtChecked",void 0);_.V([_.C(),_.f("design:type",Number)],xD.prototype,"currentTimeSecs",void 0);
_.V([_.C({computed:"computeTimeString(currentTimeSecs)"}),_.f("design:type",String)],xD.prototype,"timeString",void 0);_.V([_.C({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.f("design:type",String)],xD.prototype,"timeStringA11y",void 0);_.V([_.to("#start-at-timestamp"),_.f("design:type",Object)],xD.prototype,"startAtTimestamp",void 0);_.V([_.sB({is:"yt-start-at-renderer",disableElementRegistration:!0})],xD);
_.k(xD,"yt-start-at-renderer",function(){if(Gid===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;TNP===void 0&&(TNP=document.createElement("template"));var S=TNP;y.call(h,S.content.cloneNode(!0),b.content.firstChild);Gid=b}b=Gid;return b},{mode:2});var kif={},VzY=(kif.WEB_REMIX="music.youtube.com",kif),Qq=function(){var b=_.g.apply(this,arguments)||this;b.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return b};
_.z(Qq,_.g);_.d=Qq.prototype;_.d.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.created=function(){this.embedHost_=VzY[_.QC("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.d.ready=function(){_.$x(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.d.computeEmbedCode_=function(b,h,y,S,F){if(!b)return"";var a=b.videoId,P=b.fullListId,K=[];b.attributionId&&K.push("si="+b.attributionId);S||K.push("controls=0");y&&Number(h)>0&&K.push("start="+h);P&&(a="videoseries",K.push("list="+P));y="https://"+(F?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+a;b.clipId&&(K.push("clip="+b.clipId),K.push("clipt="+b.clipTiming));h=K.length>0?y+"?"+K.join("&amp;"):y;b.encryptedEmbedConfig&&K.push("embed_config="+JSON.stringify({enc:b.encryptedEmbedConfig}));
K=K.length>0?y+"?"+K.join("&amp;"):y;_.r("web_sharing_embed_preview_killswitch")?_.$x(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(K,b.previewWidth||854,b.previewHeight||480):(_.wX(this.videoPreviewContainer),_.$x(this.videoPreviewContainer).appendChild(this.buildIframeElement(K)));return this.getEmbedCode_(h,b.width||560,b.height||315)};
_.d.buildIframeElement=function(b){var h=document.createElement("iframe"),y,S;h.width=""+((S=(y=this.data)==null?void 0:y.previewWidth)!=null?S:854);var F,a;h.height=""+((a=(F=this.data)==null?void 0:F.previewHeight)!=null?a:480);_.as(h,2,b);h.title="YouTube video player";h.frameBorder="0";h.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";h.referrerPolicy="strict-origin-when-cross-origin";h.allowFullscreen=!0;return h};
_.d.computeIsSquareAspectRatio_=function(b){return b.previewHeight&&b.previewWidth?b.previewHeight==b.previewWidth:!1};
_.d.computeShowEmbedOptions_=function(b){return!!b.enablePrivacyModeOptionLabel||!!b.showPlayerControlsOptionLabel};
_.d.getEmbedCode_=function(b,h,y){return'<iframe width="'+h+'" height="'+y+'" src="'+b+'" 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>'};
_.d.handleSignalActionCopyShareEmbedUrl_=function(){_.$x(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.d.handleSetTimestamp_=function(b){this.startAtTimeStamp_=(this.startAtChecked_=b.isSet)?b.timestamp:0};
_.d.closePanel_=function(){_.F8(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.d.onEmbedCode_=function(){_.$x(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.d.onYtPopupClosed_=function(){_.wX(_.$x(this.hostElement).querySelector("#video-preview"))};
_.d.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.c(this.data.actionButtons[0],_.OU)&&this.ytRendererBehavior.logExplicitClick(_.c(this.data.actionButtons[0],_.OU))};
Qq.prototype.onYtPopupClosed_=Qq.prototype.onYtPopupClosed_;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Qq.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Qq.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],Qq.prototype,"ytActionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],Qq.prototype,"data",void 0);
_.V([_.C({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.f("design:type",String)],Qq.prototype,"embedCode_",void 0);_.V([_.C({value:!0}),_.f("design:type",Boolean)],Qq.prototype,"isPlayerControlsOptionChecked_",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],Qq.prototype,"isPrivacyModeOptionChecked_",void 0);_.V([_.C({value:!1,notify:!0}),_.f("design:type",Boolean)],Qq.prototype,"startAtChecked_",void 0);
_.V([_.C({value:0}),_.f("design:type",Number)],Qq.prototype,"startAtTimeStamp_",void 0);_.V([_.C({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.f("design:type",Boolean)],Qq.prototype,"isSquareAspectRatio_",void 0);_.V([_.to("#video-preview"),_.f("design:type",HTMLElement)],Qq.prototype,"videoPreviewContainer",void 0);_.V([_.u3("yt-popup-closed"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],Qq.prototype,"onYtPopupClosed_",null);
_.V([_.sB({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],Qq);
_.k(Qq,"yt-sharing-embed-renderer",function(){if(Ygf===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;sTq===void 0&&(sTq=document.createElement("template"));var S=sTq;y.call(h,S.content.cloneNode(!0),b.content.firstChild);Ygf=b}b=Ygf;return b},{mode:2});var EzX;var iyA=function(){return _.g.apply(this,arguments)||this};
_.z(iyA,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],iyA.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],iyA.prototype,"data",void 0);_.V([_.sB({disableElementRegistration:!0,is:"yt-sender-id-section-renderer"})],iyA);
_.k(iyA,"yt-sender-id-section-renderer",function(){if(EzX===void 0){var b=document.createElement("template");_.D(b,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sender-id-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text" class="style-scope yt-sender-id-section-renderer">[[getSimpleString(data.text)]]</div>\n');b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);EzX=b}b=
EzX;return b},{mode:1});var fqf;var wwY;var mN=function(){return _.g.apply(this,arguments)||this};
_.z(mN,_.g);mN.prototype.closePopup=function(){_.F8(this.hostElement,"yt-close-popup-action")};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],mN.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],mN.prototype,"data",void 0);_.V([_.sB({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],mN);
_.k(mN,"yt-community-post-section-renderer",function(){if(wwY===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;fqf===void 0&&(fqf=document.createElement("template"));var S=fqf;y.call(h,S.content.cloneNode(!0),b.content.firstChild);wwY=b}b=wwY;return b},{mode:2});var lqA;var qgf;var xHd;var QTx;var mHE;var vza;var box=function(){return _.g.apply(this,arguments)||this};
_.z(box,_.g);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],box.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],box.prototype,"data",void 0);_.V([_.sB({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],box);
_.k(box,"yt-share-start-time-with-context-renderer",function(){if(vza===void 0){var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;mHE===void 0&&(mHE=document.createElement("template"));var S=mHE;y.call(h,S.content.cloneNode(!0),b.content.firstChild);vza=b}b=vza;return b},{mode:2});var vY=function(){return _.g.apply(this,arguments)||this};
_.z(vY,_.g);vY.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],vY.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],vY.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],vY.prototype,"data",void 0);_.V([_.sB({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],vY);
_.k(vY,"yt-share-panel-title-v15-renderer",function(){if(QTx===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;xHd===void 0&&(xHd=document.createElement("template"));var S=xHd;y.call(h,S.content.cloneNode(!0),b.content.firstChild);QTx=b}b=QTx;return b},{mode:2});var bB=function(){return _.g.apply(this,arguments)||this};
_.z(bB,_.g);bB.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"}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],bB.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],bB.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],bB.prototype,"data",void 0);_.V([_.sB({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],bB);
_.k(bB,"yt-share-panel-header-renderer",function(){if(qgf===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;lqA===void 0&&(lqA=document.createElement("template"));var S=lqA;y.call(h,S.content.cloneNode(!0),b.content.firstChild);qgf=b}b=qgf;return b},{mode:2});var hiA;var yya;var SyA={};SyA.YtBindingExpressionsBehavior={identity:_.e5,msg:function(b,h){h=h===void 0?{}:h;return _.Mt(b,h,b)},
msgPlural:function(b,h){return _.nI(b,h)},
getMusicIconFromType:function(b){return _.o_(b)}};var FOA;var a_f;var dwA;var jVE=document.head,$wf=jVE.appendChild,LO2;
if(dwA===void 0){var PLA=document.createElement("template");_.D(PLA,'\x3c!--css-build:shady--\x3e<svg style="position: absolute; height: 0; width: 0;" aria-hidden="true"><defs><clipPath id="android_messenger__a"><path fill="#fff" d="M0 0h192v192H0z"></path></clipPath><mask id="android_messenger__b" width="192" height="192" x="0" y="0" maskUnits="userSpaceOnUse" style="mask-type:luminance"><path fill="#fff" d="M0 0h192v192H0z"></path></mask></defs></svg><iron-iconset-svg name="socialNetworks" size="48"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="socialNetworksRound" size="60"><svg><defs></defs></svg></iron-iconset-svg>');dwA=
PLA}LO2=dwA;$wf.call(jVE,LO2.content);var hG=function(){var b=_.g.apply(this,arguments)||this;b.screenLayer=7;return b};
_.z(hG,_.g);hG.prototype.getScreenLayer=function(){return this.screenLayer};
hG.prototype.onTap=function(b){b&&b.detail&&(b.detail.x||b.detail.y)&&_.$x(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.dh(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(b=this.getScreenLayer(),_.Sx(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:b}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.tm.Object.defineProperties(hG.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()}}});
hG.prototype.onTap=hG.prototype.onTap;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],hG.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],hG.prototype,"ytComponentBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],hG.prototype,"data",void 0);_.V([_.W("data.title"),_.f("design:type",Object),_.f("design:paramtypes",[])],hG.prototype,"title",null);
_.V([_.W("data.serviceName"),_.f("design:type",String),_.f("design:paramtypes",[])],hG.prototype,"icon",null);_.V([_.u3("tap"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],hG.prototype,"onTap",null);_.V([_.sB({is:"yt-share-target-renderer",disableElementRegistration:!0})],hG);
_.k(hG,"yt-share-target-renderer",function(){if(a_f===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;FOA===void 0&&(FOA=document.createElement("template"));var S=FOA;y.call(h,S.content.cloneNode(!0),b.content.firstChild);a_f=b}b=a_f;return b},{mode:2});var KON;var Zox;var yM=function(){var b=_.g.apply(this,arguments)||this;b.SHARE_TARGET_WIDTH=70;b.SHARE_TARGET_MARGIN_RIGHT=8;b.PAGE_SCROLL_SPEED=9;b.actionMap={"yt-share-panel-reset-action":"onReset_"};return b};
_.z(yM,_.g);_.d=yM.prototype;_.d.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.d.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.$x(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.$x(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.d.onReset_=function(){if(_.$x(this.hostElement).querySelector("#list")){var b=_.$x(this.hostElement).querySelector("#list");var h=_.$x(this.hostElement).querySelector("#list");var y=h.offsetLeft,S=h.offsetParent;S||_.pBo(h)!="fixed"||(S=_.mQ(h).documentElement);if(S){if(_.XW&&!_.um(58)){var F=_.GPw(S);y+=F.left}else Number(_.vU8)>=8&&!(Number(_.vU8)>=9)&&(F=_.GPw(S),y-=F.left);h=_.YSa(S)?S.clientWidth-(y+h.offsetWidth):y}else h=y;T$q(b,h);this.updateScrollButtons_()}};
_.d.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.d.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.d.onScrollWheel_=function(b){b.stopPropagation();b.preventDefault();var h=YYA(_.$x(this.hostElement).querySelector("#list"));b=Math.abs(b.deltaX)>Math.abs(b.deltaY)?b.deltaX:b.deltaY;T$q(_.$x(this.hostElement).querySelector("#list"),h+b);this.updateScrollButtons_()};
_.d.smoothScrollByOnePage_=function(b){var h=_.$x(this.hostElement).querySelector("#list"),y=(Math.floor(h.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,S=YYA(h),F=y*(b?1:-1),a=this.PAGE_SCROLL_SPEED,P=this.updateScrollButtons_.bind(this),K=0,n;(function u(){K+=a;n=K/y*2;T$q(h,S+F*(n<1?n*n:-n*n+4*n-2));K<y?window.requestAnimationFrame(u):P()})()};
_.d.updateScrollButtons_=function(){var b=YYA(_.$x(this.hostElement).querySelector("#list")),h=_.$x(this.hostElement).querySelector("#list").scrollWidth-_.$x(this.hostElement).querySelector("#list").clientWidth;_.$x(this.hostElement).querySelector("#scroll-button-back").hidden=b<=0;_.$x(this.hostElement).querySelector("#scroll-button-forward").hidden=b>=h};
yM.prototype.onScrollWheel_=yM.prototype.onScrollWheel_;yM.prototype.onDataChanged_=yM.prototype.onDataChanged_;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],yM.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],yM.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(SyA.YtBindingExpressionsBehavior),_.f("design:type",Object)],yM.prototype,"ytBindingExpressionsBehavior",void 0);
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],yM.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],yM.prototype,"data",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],yM.prototype,"onDataChanged_",null);_.V([_.u3("wheel"),_.f("design:type",Function),_.f("design:paramtypes",[WheelEvent]),_.f("design:returntype")],yM.prototype,"onScrollWheel_",null);
_.V([_.sB({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],yM);
_.k(yM,"yt-third-party-share-target-section-renderer",function(){if(Zox===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;KON===void 0&&(KON=document.createElement("template"));var S=KON;y.call(h,S.content.cloneNode(!0),b.content.firstChild);Zox=b}b=Zox;return b},{mode:2});var SO=function(){return _.g.apply(this,arguments)||this};
_.z(SO,_.g);SO.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"}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],SO.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],SO.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],SO.prototype,"data",void 0);_.V([_.sB({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],SO);
_.k(SO,"yt-third-party-network-section-renderer",function(){if(yya===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;hiA===void 0&&(hiA=document.createElement("template"));var S=hiA;y.call(h,S.content.cloneNode(!0),b.content.firstChild);yya=b}b=yya;return b},{mode:2});var oc2;_.yd(_.T(function(b){return _.M("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.M("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.M(_.rC,{data:function(){return b.data().firstPartyItems}},{listItemViewModel:_.Iu})))},"Gj"),"first-party-network-section-view-model",{props:{data:_.D4}});var MLq=_.bm(["data:image/svg+xml;charset=UTF-8;base64,",""]),FA=function(){var b=_.g.apply(this,arguments)||this;b.screenLayer=7;b.qrCodeEnabled=_.r("web_enable_sharing_qr_code");b.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return b};
_.z(FA,_.g);_.d=FA.prototype;_.d.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{senderIdSectionRenderer:"yt-sender-id-section-renderer",thirdPartyNetworkSection:"yt-third-party-network-section-renderer",firstPartyNetworkSectionViewModel:"first-party-network-section-view-model"}}}};
_.d.attached=function(){this.JSC$21418_scroller&&(this.JSC$21418_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21418_scroller.attached&&typeof this.JSC$21418_scroller.attached==="function"&&this.JSC$21418_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.d.onDataChanged=function(){var b=this,h;(h=this.data)!=null&&h.contents&&(this.hostElement.setAttribute("links-only","true"),_.oc(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.maybeRenderQrCode(this.shortUrl()),_.Ob(this,function(){_.Sx(b.hostElement,"yt-refit");b.focusSharePanelHeader()}))};
_.d.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.d.handleSetTimestamp=function(b){var h=this.shortUrl();b.isSet&&(h=_.a6(h,"t",b.timestamp));this.maybeRenderQrCode(h)};
_.d.shortUrl=function(){var b,h=(b=this.data)==null?void 0:b.contents;if(h)for(b=0;b<h.length;b++){var y=void 0,S=void 0;if((y=h[b])==null?0:(S=y.thirdPartyNetworkSection)==null?0:S.copyLinkContainer){var F=S=y=void 0;return(F=_.c((y=h[b])==null?void 0:(S=y.thirdPartyNetworkSection)==null?void 0:S.copyLinkContainer,rpA))==null?void 0:F.shortUrl}}};
_.d.maybeRenderQrCode=function(b){var h=this,y,S,F,a,P,K,n,X,u;return _.Z(function(O){if(O.nextAddress==1){y=_.$x(h.hostElement).querySelector("#qr-code");if(!h.qrCodeEnabled||!b)return y&&(y.style.display="none"),O.return();S=_.Dgq(_.H9().resolve(_.MJ),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});F=document.createElement("div");return typeof S==="function"?(S(F),O.jumpTo(2)):O.yield(S,3)}O.nextAddress!=2&&(a=O.yieldResult,a(F));n=(P=F)==null?void 0:(K=P.firstChild)==null?void 0:K.firstChild;
X=document.createElement("img");u=_.nff(MLq,btoa(n.outerHTML));X.onload=function(){var N={canvas:y,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:X},t=new YoP;iwY(t,b);fAA(t,!1,wVN(t));var R=t.modules,I=Object.assign({},wjd,N);R=structuredClone(R);N=R.length;var U,p=(U=I.canvas)!=null?U:document.createElement("canvas");U=I.cellSize;t=I.logo;var e,E=(e=I.logoSize)!=null?e:Math.floor(N/4);N%2!==E%2&&E++;var Y=I.logoPadding,w=I.backgroundColor;e=N*U;var x=
I.width,q=0;x&&(q=I.padding,q=Math.ceil(q*e/(x-q*2)),p.style.width=x+"px",p.style.height=x+"px");p.width!==e+q*2&&(p.width=e+q*2);p.height!==e+q*2&&(p.height=e+q*2);e=p.getContext("2d");I.autoClear&&e.clearRect(0,0,p.width,p.height);e.fillStyle=w;e.beginPath();e.roundRect(0,0,p.width,p.height,I.borderRadius);e.fill();e.save();e.translate(q,q);if(t)for(p=Math.floor(N-E)/2-Y,Y=Math.floor(N+E)/2+Y,w=p;w<Y;w++)for(x=p;x<Y;x++)R[w][x]=!1;for(p=0;p<N;p++)for(Y=0;Y<N;Y++)(p<7&&Y<7||p<7&&Y>=N-7||p>=N-7&&
Y<7)&&(R[p][Y]=!1);var dI;p=(dI=I.markerColor)!=null?dI:I.color;qoF(e,0,0,U,p);qoF(e,U*(N-7),0,U,p);qoF(e,0,U*(N-7),U,p);switch(I.cellStyle){case 0:dI=R;R=dI.length;p=I.cellSize;e.beginPath();for(Y=0;Y<R;Y++)for(w=0;w<R;w++)dI[Y][w]&&e.rect(Y*p,w*p,p,p);e.fillStyle=I.color;e.fill();break;case 1:dI=R;R=dI.length;p=I.cellSize;Y=p*I.relativeCircleSize;e.fillStyle=I.color;e.beginPath();for(I=0;I<R;I++)for(w=0;w<R;w++)dI[I][w]&&(e.beginPath(),e.ellipse((I+.5)*p,(w+.5)*p,Y/2,Y/2,0,0,2*Math.PI),e.fill());
e.fill();break;case 2:dI=R;R=dI.length;p=I.cellSize;e.fillStyle=I.color;I=[[1,1],[-1,1],[-1,-1],[1,-1]];e.beginPath();for(Y=0;Y<R;Y++)for(w=0;w<R;w++)if(dI[Y][w])e.roundRect(Y*p,w*p,p,p,p/2),Y+1<R&&dI[Y+1][w]&&e.rect(Y*p+p/2,w*p,p,p),w+1<R&&dI[Y][w+1]&&e.rect(Y*p,w*p+p/2,p,p);else{x=Y*p+p/2;q=w*p+p/2;for(var L4=0;L4<4;L4++){var Rq=_.L(I[L4]),Xn=Rq.next().value;Rq=Rq.next().value;Y+Xn>=0&&Y+Xn<R&&w+Rq>=0&&w+Rq<R&&dI[Y+Xn][w]&&dI[Y][w+Rq]&&dI[Y+Xn][w+Rq]&&(Xn=L4*Math.PI/2,Rq=p/2,e.moveTo(x+Rq*Math.cos(Xn),
q+Rq*Math.sin(Xn)),e.arc(x,q,p/2,Xn,Xn+Math.PI/2,!1),e.lineTo(x+Rq*(Math.cos(Xn)-Math.sin(Xn)),q+Rq*(Math.cos(Xn)+Math.sin(Xn))),e.lineTo(x+Rq*Math.cos(Xn),q+Rq*Math.sin(Xn)))}}e.fill()}t&&e.drawImage(t,(N-E)*U/2,(N-E)*U/2,E*U,E*U);e.restore();y.style.removeProperty("display")};
X.src=_.E_(u);_.g3(O)})};
_.d.hasCommunityPostRenderer=function(){var b,h,y,S;return!!((b=this.data)==null?0:(h=b.header)==null?0:(y=h.sharePanelHeaderRenderer)==null?0:(S=y.communityPost)==null?0:S.communityPostSectionRenderer)};
_.d.onTapClose=function(){_.F8(this.hostElement,"yt-close-popup-action",["yt-unified-share-panel-renderer"])};
_.d.getScreenLayer=function(){return this.screenLayer};
FA.prototype.onDataChanged=FA.prototype.onDataChanged;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],FA.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],FA.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],FA.prototype,"ytActionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],FA.prototype,"data",void 0);
_.V([_.C({value:_.Mt("SBOX_INAPPROPRIATE_CANCEL")}),_.f("design:type",String)],FA.prototype,"closeButtonAriaLabel",void 0);_.V([_.to("yt-share-panel-header-renderer"),_.f("design:type",HTMLElement)],FA.prototype,"header",void 0);_.V([_.C(),_.f("design:type",Object)],FA.prototype,"qrCodeEnabled",void 0);_.V([_.to("#scroller"),_.f("design:type",Object)],FA.prototype,"JSC$21418_scroller",void 0);
_.V([_.zj("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],FA.prototype,"onDataChanged",null);_.V([_.sB({disableElementRegistration:!0,is:"yt-unified-share-panel-renderer"})],FA);
_.k(FA,"yt-unified-share-panel-renderer",function(){if(oc2===void 0){var b=document.createElement("template");_.D(b,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unified-share-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope yt-unified-share-panel-renderer">\n  <div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope yt-unified-share-panel-renderer">\n    <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope yt-unified-share-panel-renderer"></tp-yt-paper-spinner>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="onTapClose" class="style-scope yt-unified-share-panel-renderer">\n    <yt-icon icon="close" class="style-scope yt-unified-share-panel-renderer"></yt-icon>\n  </yt-icon-button>\n  <yt-share-panel-header-renderer id="share-panel-header" data="[[data.header.sharePanelHeaderRenderer]]" hidden="[[data.showLoadingSpinner]]" class="style-scope yt-unified-share-panel-renderer">\n  </yt-share-panel-header-renderer>\n  <div id="contents" class="style-scope yt-unified-share-panel-renderer"></div>\n  <canvas id="qr-code" alt="QR code" hidden="[[!qrCodeVisible]]" class="style-scope yt-unified-share-panel-renderer">\n</canvas></tp-yt-paper-dialog-scrollable>\n');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);oc2=b}b=oc2;return b},{mode:1});var ncf={};
ncf.YtUnlimitedFamilyInterstitialBehavior=[_.xN.YtOpenPopupBehavior,_.mx.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(b){b=_.WQ8(_.mi(b),"yt-button-renderer");return b?b.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(b){this.dialogHistory_.push(b)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var b=this.popFromHistory();if(b){var h={openPopupAction:{popupType:"DIALOG",popup:{}}};h.openPopupAction.popup[b.renderer]=b.data;this.showingPreviousDialog_=!0;this.openPopup(h)}},
handleOpenPopupAction_:function(b){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var h=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(S){return!!b.openPopupAction.popup[S]}),y=this.getElementName_();
h&&this.data&&(this.pushToHistory({renderer:y,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(b){if(b=_.c(b,ZrY))this.loading=!0,_.F8(this.hostElement,"yt-open-create-family-dialog",[b,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var b=this.hostElement.nodeName.split("-").slice(1).map(function(h){return""+h[0].toUpperCase()+h.slice(1).toLowerCase()}).join("");
return b[0].toLowerCase()+b.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var X1A;var HoY;var aI=function(){return _.g.apply(this,arguments)||this};
_.z(aI,_.g);_.d=aI.prototype;_.d.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}}}}}};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.F8(this.hostElement,"yt-register-create-family-dialog");_.$x(this.hostElement).querySelector("#thumbnail").onShow()};
_.d.fireOnCloseCommand_=function(){var b;((b=this.data)==null?0:b.onCloseCommand)&&_.jx(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.d.onYtServiceRequestSent_=function(b,h){h&&h.endpoint&&_.c(h.endpoint,_.KI)||(this.loading=!0)};
_.d.onYtServiceRequestCompleted_=function(){var b=this.hostElement.parentElement;b.close&&b.close();this.loading=!1};
_.d.openPopupHandler_=function(b){if(b.detail==this){var h;((h=this.data)==null?0:h.onOpenCommands)&&_.jx(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.d.closePopupHandler_=function(b,h){this.fireOnCloseCommand_();if(h&&h.canceled===!0||h&&h.canceled===!1&&h.confirmed===!1){var y;((y=this.data)==null?0:y.onDismissCommands)&&_.jx(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.d.dataChanged_=function(){this.loading=!1};
aI.prototype.dataChanged_=aI.prototype.dataChanged_;aI.prototype.closePopupHandler_=aI.prototype.closePopupHandler_;aI.prototype.openPopupHandler_=aI.prototype.openPopupHandler_;aI.prototype.onYtServiceRequestCompleted_=aI.prototype.onYtServiceRequestCompleted_;aI.prototype.onYtServiceRequestSent_=aI.prototype.onYtServiceRequestSent_;_.V([_.B(_.PQ.YtEventForwardingBehavior),_.f("design:type",Object)],aI.prototype,"ytEventForwardingBehavior",void 0);
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],aI.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(ncf.YtUnlimitedFamilyInterstitialBehavior),_.f("design:type",Object)],aI.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],aI.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],aI.prototype,"data",void 0);
_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],aI.prototype,"loading",void 0);_.V([_.u3("yt-service-request-sent"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,_.kE]),_.f("design:returntype")],aI.prototype,"onYtServiceRequestSent_",null);_.V([_.u3("yt-service-request-completed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,_.xE]),_.f("design:returntype")],aI.prototype,"onYtServiceRequestCompleted_",null);
_.V([_.u3("yt-popup-opened"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,Object]),_.f("design:returntype")],aI.prototype,"openPopupHandler_",null);_.V([_.u3("yt-popup-closed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,Object]),_.f("design:returntype")],aI.prototype,"closePopupHandler_",null);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],aI.prototype,"dataChanged_",null);
_.V([_.sB({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],aI);
_.k(aI,"yt-unlimited-family-message-interstitial-renderer",function(){if(HoY===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;X1A===void 0&&(X1A=document.createElement("template"));var S=X1A;y.call(h,S.content.cloneNode(!0),b.content.firstChild);HoY=b}b=HoY;return b},{mode:2});var uYa;var OoP;var dV=function(){return _.g.apply(this,arguments)||this};
_.z(dV,_.g);dV.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"}}}};
dV.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.$x(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(b){b.onShow()});
_.$x(this.hostElement).querySelector("#main-thumbnail").onShow()};
dV.prototype.onButtonTap_=function(b){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(b)};
dV.prototype.computeMainThumbnailWidth_=function(b){return b&&b.length!==0?72:96};
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],dV.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],dV.prototype,"ytRendererBehavior",void 0);_.V([_.B(ncf.YtUnlimitedFamilyInterstitialBehavior),_.f("design:type",Object)],dV.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],dV.prototype,"data",void 0);
_.V([_.C({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.f("design:type",Number)],dV.prototype,"mainThumbnailWidth_",void 0);_.V([_.C({value:function(){return this.onButtonTap_.bind(this)}}),
_.f("design:type",Function)],dV.prototype,"boundButtonTap_",void 0);_.V([_.sB({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],dV);
_.k(dV,"yt-unlimited-family-profile-interstitial-renderer",function(){if(OoP===void 0){var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;uYa===void 0&&(uYa=document.createElement("template"));var S=uYa;y.call(h,S.content.cloneNode(!0),b.content.firstChild);OoP=b}b=OoP;return b},{mode:2});var NTA;var tLa;var jO=function(){var b=_.g.apply(this,arguments)||this;b.sliderAriaValueText_=null;b.selectedIndex_=0;b.messages={PAUSE_SLIDER:_.Mt("PAUSE_SLIDER",void 0,"Pause Duration")};return b};
_.z(jO,_.g);_.d=jO.prototype;_.d.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_]]"}}}}}};
_.d.onPopupOpened_=function(b){b.detail==this&&_.r("enable_premium_voluntary_pause")&&(_.F8(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.setDialogData=function(b){this.data=b;this.resetSlider_()};
_.d.dataChanged_=function(){this.data&&this.resetSlider_()};
_.d.onSubmitTap_=function(){if(this.data.confirmCommand){var b=this.data.confirmCommand;_.c(b,_.hE5)&&_.dh(this.hostElement,[b,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.d.onExitButtonTap_=function(){_.F8(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.d.closePopupHandler_=function(b,h){(h&&h.canceled===!0||h.canceled===!1&&h.confirmed===!1)&&this.handleOnDismissCommands_()};
_.d.onSliderChange_=function(){this.selectedIndex_=_.$x(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.d.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.d.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.d.resetSlider_=function(){if(this.data){var b=this.data.defaultEndOptionIndex||0,h=_.$x(this.hostElement).querySelector("#id-pause-slider");if(h.immediateValue<b)for(;h.immediateValue!=b;)h.increment();else if(b<h.immediateValue)for(;h.immediateValue!=b;)h.decrement();this.selectedIndex_=b;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.d.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.jx(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.d.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.jx(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.d.onYtServiceRequestSent=function(){this.loading=!0};
_.d.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
jO.prototype.onYtServiceRequestCompleted=jO.prototype.onYtServiceRequestCompleted;jO.prototype.onYtServiceRequestSent=jO.prototype.onYtServiceRequestSent;jO.prototype.closePopupHandler_=jO.prototype.closePopupHandler_;jO.prototype.dataChanged_=jO.prototype.dataChanged_;jO.prototype.onPopupOpened_=jO.prototype.onPopupOpened_;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],jO.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],jO.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],jO.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],jO.prototype,"loading",void 0);_.V([_.C(),_.f("design:type",Number)],jO.prototype,"selectIndexMax_",void 0);_.V([_.C(),_.f("design:type",Object)],jO.prototype,"selectedData_",void 0);
_.V([_.C(),_.f("design:type",Object)],jO.prototype,"sliderAriaValueText_",void 0);_.V([_.C({value:function(){return this.onSubmitTap_.bind(this)}}),
_.f("design:type",Function)],jO.prototype,"onButtonTap_",void 0);_.V([_.C({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.f("design:type",Function)],jO.prototype,"onSecondaryTap_",void 0);_.V([_.C(),_.f("design:type",Object)],jO.prototype,"messages",void 0);_.V([_.u3("yt-popup-opened"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,Object]),_.f("design:returntype")],jO.prototype,"onPopupOpened_",null);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],jO.prototype,"dataChanged_",null);
_.V([_.u3("yt-popup-closed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,Object]),_.f("design:returntype")],jO.prototype,"closePopupHandler_",null);_.V([_.u3("yt-service-request-sent"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,_.kE]),_.f("design:returntype")],jO.prototype,"onYtServiceRequestSent",null);
_.V([_.u3("yt-service-request-completed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,_.xE]),_.f("design:returntype")],jO.prototype,"onYtServiceRequestCompleted",null);_.V([_.sB({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],jO);
_.k(jO,"yt-unplugged-pause-membership-dialog-renderer",function(){if(tLa===void 0){var b=document.createElement("template");_.D(b,'\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>');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;NTA===void 0&&(NTA=document.createElement("template"));var S=NTA;y.call(h,S.content.cloneNode(!0),b.content.firstChild);tLa=b}b=tLa;return b},{mode:2});var ryP;var cyN;var $Q=function(){return _.g.apply(this,arguments)||this};
_.z($Q,_.g);$Q.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.A4("vcBalanceRenderer")}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],$Q.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],$Q.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],$Q.prototype,"data",void 0);_.V([_.sB({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],$Q);
_.k($Q,"yt-vc-offer-layout-header-renderer",function(){if(cyN===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;ryP===void 0&&(ryP=document.createElement("template"));var S=ryP;y.call(h,S.content.cloneNode(!0),b.content.firstChild);cyN=b}b=cyN;return b},{mode:2});var Ri2;var ziP;var Dw2;var I_f;var LS=function(){return _.g.apply(this,arguments)||this};
_.z(LS,_.g);LS.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.tm.Object.defineProperties(LS.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)}}});
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],LS.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],LS.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.BGd.YtTappableItemBehavior),_.f("design:type",Object)],LS.prototype,"ytTappableItemBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],LS.prototype,"data",void 0);
_.V([_.C({reflectToAttribute:!0}),_.W("data.accessibilityText"),_.f("design:type",String),_.f("design:paramtypes",[])],LS.prototype,"ariaLabel",null);_.V([_.C({reflectToAttribute:!0}),_.W("data.style"),_.f("design:type",String),_.f("design:paramtypes",[])],LS.prototype,"vcOfferStyle",null);_.V([_.W("data.style","data.titleText"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],LS.prototype,"showTitleText",null);_.V([_.sB({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],LS);
_.k(LS,"yt-vc-offer-renderer",function(){if(I_f===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;Dw2===void 0&&(Dw2=document.createElement("template"));var S=Dw2;y.call(h,S.content.cloneNode(!0),b.content.firstChild);I_f=b}b=I_f;return b},{mode:2});var PO=function(){return _.g.apply(this,arguments)||this};
_.z(PO,_.g);PO.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}}}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],PO.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],PO.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],PO.prototype,"data",void 0);_.V([_.sB({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],PO);
_.k(PO,"yt-vc-offer-layout-renderer",function(){if(ziP===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;Ri2===void 0&&(Ri2=document.createElement("template"));var S=Ri2;y.call(h,S.content.cloneNode(!0),b.content.firstChild);ziP=b}b=ziP;return b},{mode:2});var BTA;var WOd;var AyN;var Uwq;var KS=function(){return _.g.apply(this,arguments)||this};
_.z(KS,_.g);KS.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}}}}}};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],KS.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],KS.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],KS.prototype,"data",void 0);_.V([_.sB({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],KS);
_.k(KS,"yt-ypc-offers-modal-top-bar-renderer",function(){if(Uwq===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;AyN===void 0&&(AyN=document.createElement("template"));var S=AyN;y.call(h,S.content.cloneNode(!0),b.content.firstChild);Uwq=b}b=Uwq;return b},{mode:2});var Zc=function(){return _.g.apply(this,arguments)||this};
_.z(Zc,_.g);Zc.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"}}}}};
Zc.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
Zc.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var b=this.scrollable;b.attached&&typeof b.attached==="function"&&b.attached()};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],Zc.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],Zc.prototype,"ytRendererstamperBehavior",void 0);_.V([_.to("#scrollable"),_.f("design:type",Object)],Zc.prototype,"scrollable",void 0);_.V([_.C(),_.f("design:type",Object)],Zc.prototype,"data",void 0);_.V([_.sB({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],Zc);
_.k(Zc,"yt-ypc-offers-modal-renderer",function(){if(WOd===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;BTA===void 0&&(BTA=document.createElement("template"));var S=BTA;y.call(h,S.content.cloneNode(!0),b.content.firstChild);WOd=b}b=WOd;return b},{mode:2});var p1A;var JyA;var oI=function(){return _.g.apply(this,arguments)||this};
_.z(oI,_.g);_.d=oI.prototype;_.d.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}}}}}};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.$x(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.d.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.F8(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.d.onYtPopupOpened_=function(b,h){(h==null?void 0:h.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.jx(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.d.onYtPopupClosed_=function(b,h){this.continueButtonTapped||h&&(h.canceled===!0||h.canceled===!1&&h.confirmed===!1)&&this.data.onDismissCommands&&_.jx(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.d.onYtServiceRequestError_=function(b){this.set("showSpinner",!1);_.lM(this.hostElement,b.detail.error.message)};
_.d.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.r("enable_ypc_spinners")?_.F8(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
oI.prototype.onYtServiceRequestError_=oI.prototype.onYtServiceRequestError_;oI.prototype.onYtPopupClosed_=oI.prototype.onYtPopupClosed_;oI.prototype.onYtPopupOpened_=oI.prototype.onYtPopupOpened_;oI.prototype.onYtServiceRequestCompleted_=oI.prototype.onYtServiceRequestCompleted_;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],oI.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],oI.prototype,"ytRendererstamperBehavior",void 0);
_.V([_.C(),_.f("design:type",Object)],oI.prototype,"data",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],oI.prototype,"showSpinner",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],oI.prototype,"continueButtonTapped",void 0);_.V([_.C({value:function(){return this.onContinueTapped_.bind(this)}}),
_.f("design:type",Function)],oI.prototype,"bindOnContinueTapped_",void 0);_.V([_.u3("yt-service-request-completed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],oI.prototype,"onYtServiceRequestCompleted_",null);_.V([_.u3("yt-popup-opened"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,Object]),_.f("design:returntype")],oI.prototype,"onYtPopupOpened_",null);
_.V([_.u3("yt-popup-closed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,Object]),_.f("design:returntype")],oI.prototype,"onYtPopupClosed_",null);_.V([_.u3("yt-service-request-error"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],oI.prototype,"onYtServiceRequestError_",null);_.V([_.sB({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],oI);
_.k(oI,"yt-ypc-upgrade-dialog-renderer",function(){if(JyA===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;p1A===void 0&&(p1A=document.createElement("template"));var S=p1A;y.call(h,S.content.cloneNode(!0),b.content.firstChild);JyA=b}b=JyA;return b},{mode:2});var eiA;var CLA;var MR=function(){return _.g.apply(this,arguments)||this};
_.z(MR,_.g);MR.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
MR.prototype.computeHasButtons_=function(b){return!(!b.dismissButton&&!b.confirmButton)};
MR.prototype.computeStyle_=function(b){return b||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],MR.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.PQ.YtEventForwardingBehavior),_.f("design:type",Object)],MR.prototype,"ytEventForwardingBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],MR.prototype,"ytRendererstamperBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],MR.prototype,"data",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],MR.prototype,"positionType",void 0);
_.V([_.C({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.f("design:type",Boolean)],MR.prototype,"hasButtons_",void 0);_.V([_.C({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.f("design:type",Boolean)],MR.prototype,"style_",void 0);_.V([_.sB({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],MR);
_.k(MR,"yt-bubble-hint-renderer",function(){if(CLA===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;eiA===void 0&&(eiA=document.createElement("template"));var S=eiA;y.call(h,S.content.cloneNode(!0),b.content.firstChild);CLA=b}b=CLA;return b},{mode:2});var gcA;var sVN;var nS=function(){var b=_.rk.apply(this,arguments)||this;b.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return b};
_.z(nS,_.rk);_.d=nS.prototype;_.d.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.d.attached=function(){var b=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){b.$.thumbnail.onShow();b.$["header-image"].onShow()})};
_.d.handleCheckBoxUpdateAction_=function(b){this.canShowCheckboxEnabledConfirmButton=b};
_.d.computeUseOverlayForSpinner_=function(b,h){return!!b&&h};
_.d.computeShowSpinner_=function(b,h){return b||!!h};
_.d.fireOnCloseActions_=function(){var b,h=_.L(((b=this.data)==null?void 0:b.onClosedActions)||[]);for(b=h.next();!b.done;b=h.next())this.ytRendererBehavior.resolveCommand(b.value)};
_.d.fireOnOpenCommands_=function(b){var h,y=(h=this.data)==null?void 0:h.onOpenCommands;if(y)for(b.stopImmediatePropagation(),b=_.L(y),h=b.next();!h.done;h=b.next())this.ytRendererBehavior.resolveCommand(h.value)};
_.d.fireOnDismissCommands_=function(b){var h,y=(h=this.data)==null?void 0:h.onDismissCommands;if(y)for(b.stopImmediatePropagation(),b=_.L(y),h=b.next();!h.done;h=b.next())this.ytRendererBehavior.resolveCommand(h.value)};
_.d.openPopupHandler_=function(b){b.detail==this&&this.fireOnOpenCommands_(b)};
_.d.closePopupHandler_=function(b,h){_.aw(this,"yt-confirm-dialog-close-action",[h]);this.fireOnCloseActions_();(h&&h.canceled===!0||h&&h.canceled===!1&&h.confirmed===!1)&&this.fireOnDismissCommands_(b)};
_.d.onHeaderImageChanged_=function(){var b;((b=this.data)==null?0:b.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.d.computeHasHeaderImageWidth_=function(b){return b!=void 0};
_.d.computeHasLoadingMessage=function(b){return!!b};
_.d.onHeaderImageWidthChanged_=function(){var b,h=(b=this.data)==null?void 0:b.headerImageWidth;if(h){if(b=1.25*h*2+h,this.$.main.style.width=b+"px",h=this.$.scroller.firstElementChild)h.style.minWidth=b+"px"}else this.$.main.style.width="100%"};
_.d.onThumbnailChanged_=function(){var b;((b=this.data)==null?0:b.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")};
_.d.onYtNavigate_=function(b){b=_.mi(b);b instanceof Node&&_.KZ(this.$["confirm-button"]).contains(b)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.d.computePrimaryIsCancel_=function(b){return b};
_.d.computeIsCancelButtonHidden_=function(b){return b.skipCancelButton||!b.cancelButton};
_.d.computeIsCheckboxHidden_=function(b){return!b.checkbox};
_.d.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.d.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.d.onYtServiceRequestCompleted_=function(){var b;((b=this.data)==null?0:b.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.tm.Object.defineProperties(nS,{template:{configurable:!0,enumerable:!0,get:function(){if(sVN===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;gcA===void 0&&(gcA=document.createElement("template"));var S=gcA;y.call(h,S.content.cloneNode(!0),b.content.firstChild);sVN=b}b=sVN;return b}}});
nS.prototype.onYtServiceRequestCompleted_=nS.prototype.onYtServiceRequestCompleted_;nS.prototype.onYtServiceRequestSent_=nS.prototype.onYtServiceRequestSent_;nS.prototype.onThumbnailLoaded_=nS.prototype.onThumbnailLoaded_;nS.prototype.onYtNavigate_=nS.prototype.onYtNavigate_;nS.prototype.onThumbnailChanged_=nS.prototype.onThumbnailChanged_;nS.prototype.onHeaderImageWidthChanged_=nS.prototype.onHeaderImageWidthChanged_;nS.prototype.onHeaderImageChanged_=nS.prototype.onHeaderImageChanged_;
nS.prototype.closePopupHandler_=nS.prototype.closePopupHandler_;nS.prototype.openPopupHandler_=nS.prototype.openPopupHandler_;_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],nS.prototype,"ytActionHandlerBehavior",void 0);_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],nS.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],nS.prototype,"ytRendererBehavior",void 0);
_.V([_.B(_.PQ.YtEventForwardingBehavior),_.f("design:type",Object)],nS.prototype,"ytEventForwardingBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],nS.prototype,"data",void 0);_.V([_.C({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.f("design:type",Boolean)],nS.prototype,"primaryIsCancel",void 0);_.V([_.C({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.f("design:type",Boolean)],nS.prototype,"isCancelButtonHidden",void 0);
_.V([_.C({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.f("design:type",Boolean)],nS.prototype,"isCheckboxHidden",void 0);_.V([_.C({value:!1,reflectToAttribute:!0}),_.f("design:type",Boolean)],nS.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.V([_.C({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.f("design:type",Boolean)],nS.prototype,"useOverlayForSpinner_",void 0);
_.V([_.C({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.f("design:type",Boolean)],nS.prototype,"showSpinner_",void 0);_.V([_.C({value:!1}),_.f("design:type",Boolean)],nS.prototype,"isActionInProgress_",void 0);_.V([_.C({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.f("design:type",Boolean)],nS.prototype,"hasHeaderImageWidth_",void 0);
_.V([_.C({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.f("design:type",Boolean)],nS.prototype,"hasLoadingMessage",void 0);_.V([_.u3("yt-popup-opened"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,Object]),_.f("design:returntype")],nS.prototype,"openPopupHandler_",null);_.V([_.u3("yt-popup-closed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,Object]),_.f("design:returntype")],nS.prototype,"closePopupHandler_",null);
_.V([_.OB("data.headerImage"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],nS.prototype,"onHeaderImageChanged_",null);_.V([_.OB("data.headerImageWidth"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],nS.prototype,"onHeaderImageWidthChanged_",null);_.V([_.OB("data.thumbnail"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],nS.prototype,"onThumbnailChanged_",null);
_.V([_.u3("yt-navigate"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],nS.prototype,"onYtNavigate_",null);_.V([_.u3("yt-img-shadow-loaded"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],nS.prototype,"onThumbnailLoaded_",null);_.V([_.u3("yt-service-request-sent"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,_.kE]),_.f("design:returntype")],nS.prototype,"onYtServiceRequestSent_",null);
_.V([_.u3("yt-service-request-completed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,_.xE]),_.f("design:returntype")],nS.prototype,"onYtServiceRequestCompleted_",null);_.V([_.sB({is:"yt-confirm-dialog-renderer",noInjection:!0})],nS);var YyA;var TTA;var XA=function(){return _.g.apply(this,arguments)||this};
_.z(XA,_.g);XA.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.$x(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
XA.prototype.computeConfirmButton_=function(b){var h={text:b.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};b.confirmNavigationEndpoint?h.navigationEndpoint=b.confirmNavigationEndpoint:b.confirmServiceEndpoint&&(h.serviceEndpoint=b.confirmServiceEndpoint);return h};
XA.prototype.computeShowTitle_=function(b){return!(b==null||!b.title)};
_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],XA.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],XA.prototype,"data",void 0);_.V([_.C({computed:"computeShowTitle_(data)"}),_.f("design:type",Boolean)],XA.prototype,"showTitle",void 0);_.V([_.sB({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],XA);
_.k(XA,"yt-fancy-dismissible-dialog-renderer",function(){if(TTA===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;YyA===void 0&&(YyA=document.createElement("template"));var S=YyA;y.call(h,S.content.cloneNode(!0),b.content.firstChild);TTA=b}b=TTA;return b});var G3P;var k3A;var HO=function(){var b=_.g.apply(this,arguments)||this;b.spinnerActive=!1;return b};
_.z(HO,_.g);HO.prototype.created=function(){VAY(2201)};
HO.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
HO.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
HO.prototype.onIronOverlayClosed=HO.prototype.onIronOverlayClosed;HO.prototype.onIronOverlayOpened=HO.prototype.onIronOverlayOpened;_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],HO.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.tQ),_.f("design:type",Object)],HO.prototype,"tpYtIronOverlayBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],HO.prototype,"data",void 0);_.V([_.C(),_.f("design:type",Object)],HO.prototype,"spinnerActive",void 0);
_.V([_.u3("iron-overlay-opened"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],HO.prototype,"onIronOverlayOpened",null);_.V([_.u3("iron-overlay-closed"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],HO.prototype,"onIronOverlayClosed",null);_.V([_.sB({is:"yt-loading-renderer",disableElementRegistration:!0})],HO);
_.k(HO,"yt-loading-renderer",function(){if(k3A===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;G3P===void 0&&(G3P=document.createElement("template"));var S=G3P;y.call(h,S.content.cloneNode(!0),b.content.firstChild);k3A=b}b=k3A;return b},{mode:2});var VLd;var Ecd;var uB=function(){var b=_.g.apply(this,arguments)||this;b.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);b.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);b.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";b.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return b};
_.z(uB,_.g);_.d=uB.prototype;_.d.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.d.onDarkModeToggledAction=function(b){this.isDarkTheme=b};
_.d.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.d.openPopupHandler_=function(b){b.detail===this.hostElement&&this.hostElement.hidden&&_.F8(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.d.onDismissButtonTap_=function(){var b;this.closeOnDismissButton_.has(((b=this.data)==null?void 0:b.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.F8(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.d.onAcceptButtonTap_=function(){var b;this.closeOnAcceptButton_.has(((b=this.data)==null?void 0:b.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.F8(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.d.computeHasHeader_=function(b){return!!b.headerBackgroundImage};
_.d.computeLayoutStyle_=function(b){return b};
_.d.computePopupSize_=function(b){return b};
_.d.computeIconType_=function(b){return b.dialogIcon&&b.dialogIcon.iconType?b.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":b.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":b.dialogIcon.iconType:""};
_.d.computeIsLogo_=function(b){return!!b.dialogIcon&&!!b.dialogIcon.iconType&&(b.dialogIcon.iconType==="YOUTUBE_LOGO"||b.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||b.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.d.computeHasCustomLogo=function(b){return!(b==null||!b.headerForegroundImage)};
_.d.computeCustomLogo=function(b,h){if(b!=null&&b.headerForegroundImage)return b.headerForegroundImageDark?h?b.headerForegroundImageDark:b.headerForegroundImage:b.headerForegroundImage};
_.d.computeHeaderBackgroundImage=function(b,h){if(b!=null&&b.headerBackgroundImage)return h&&(b==null?0:b.headerBackgroundImageDark)?b.headerBackgroundImageDark:b.headerBackgroundImage};
_.d.shouldShowIconContainer=function(b,h){return b&&!h};
_.d.shouldShowNonYouTubeIcon=function(b,h){return!b&&!h};
_.d.getLogoImageId=function(b){var h,y,S;return(b=(h=this.computeCustomLogo(b,this.isDarkTheme))==null?void 0:(y=h.thumbnails)==null?void 0:(S=y[0])==null?void 0:S.height)&&b%31===0?"custom-logo-with-padding":"custom-logo"};
uB.prototype.openPopupHandler_=uB.prototype.openPopupHandler_;uB.prototype.dataChanged_=uB.prototype.dataChanged_;_.V([_.B(_.Cd.YtRendererstamperBehavior),_.f("design:type",Object)],uB.prototype,"ytRendererstamperBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],uB.prototype,"ytRendererBehavior",void 0);_.V([_.C(),_.f("design:type",Boolean)],uB.prototype,"isDarkTheme",void 0);
_.V([_.C({computed:"computeCustomLogo(data, isDarkTheme)"}),_.f("design:type",Object)],uB.prototype,"customLogo",void 0);_.V([_.C({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.f("design:type",Object)],uB.prototype,"headerBackgroundImage",void 0);_.V([_.C(),_.f("design:type",Object)],uB.prototype,"data",void 0);_.V([_.C({computed:"computeHasHeader_(data)"}),_.f("design:type",Boolean)],uB.prototype,"hasHeader",void 0);
_.V([_.C({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.f("design:type",Object)],uB.prototype,"layoutStyle",void 0);_.V([_.C({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.f("design:type",Object)],uB.prototype,"popupSize",void 0);_.V([_.C({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.f("design:type",Boolean)],uB.prototype,"hasLogo",void 0);
_.V([_.C({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.f("design:type",Boolean)],uB.prototype,"hasCustomLogo",void 0);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],uB.prototype,"dataChanged_",null);_.V([_.u3("yt-popup-opened"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],uB.prototype,"openPopupHandler_",null);
_.V([_.sB({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],uB);
_.k(uB,"yt-upsell-dialog-renderer",function(){if(Ecd===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;VLd===void 0&&(VLd=document.createElement("template"));var S=VLd;y.call(h,S.content.cloneNode(!0),b.content.firstChild);Ecd=b}b=Ecd;return b},{mode:2});var iod=_.T(function(b){return _.M("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogHeader"},_.M(_.H,{cond:b.title,then:function(h){return _.M("h2",{class:"miniAppGameInfoDialogViewModelHeaderTitle"},h)}}))},"Hj"),f_a=_.T(function(b){return _.M("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogFooter"},_.M(_.rC,{data:b.closeButton},{buttonViewModel:function(h){return _.M("div",null,_.M(_.EG,{data:h.data}))}}))},"Ij"),w1Y=_.T(function(b){var h=b.data;
return _.M(_.OW,null,_.M("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfoDetails"},_.M("div",{class:"miniAppGameInfoDialogViewModelGameImageWrapper"},_.M(_.H,{cond:function(){return!!h().image&&!!h().title},
then:function(){return _.M(_.mI,{data:function(){return h().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.M("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfo"},_.M(_.H,{cond:function(){return h().title},
then:function(y){return _.M("h3",{class:"miniAppGameInfoDialogViewModelTitle"},y)}}),_.M(_.H,{cond:function(){return h().primaryGenre},
then:function(y){return _.M("span",{class:"miniAppGameInfoDialogViewModelGenre"},y)}}))),_.M(_.H,{cond:function(){var y=h().description;
return y&&y.length<=150},
then:function(){return _.M("div",{class:"miniAppGameInfoDialogViewModelGameDescriptionWrapper"},_.M("span",{class:"miniAppGameInfoDialogViewModelGameDescription"},function(){return h().description}))}}))},"Jj"),l_N=_.T(function(b){var h=b.ageRating;
return _.M("span",{class:"miniAppGameInfoDialogViewModelAgeRatingWrapper"},_.M(_.mI,{data:function(){return{sources:[{url:h().imageUrl||"",width:18,height:18}]}},
className:"miniAppGameInfoDialogViewModelAgeRatingImage",alt:"",targetHeight:18,targetWidth:18,preserveWidth:!0,preserveHeight:!0}),_.M("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.M(_.zv,{text:function(){return h().attributedLabel},
noPreWrap:!0})))},"Kj"),qyf=_.T(function(b){b=b.infoRows;
var h=_.H9().resolve(_.g0),y=_.r("enable_displaying_ppn");return _.M("div",{class:"miniAppGameInfoDialogViewModelGameInfoRowsWrapper"},_.M(_.Gw,{each:b},function(S){return _.M("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.M(_.H,{cond:function(){return S.label},
then:function(F){return _.M("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},F)}}),_.M(_.H,{cond:function(){return S.attributedLabel},
then:function(F){return _.M("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},_.M(_.zv,{text:F,noPreWrap:!0}))}}),_.M(_.H,{cond:function(){return S.value},
then:function(F){return _.M("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},F)}}),_.M(_.H,{cond:function(){return S.attributedValue},
then:function(F){return _.M("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.M(_.zv,{text:F,noPreWrap:!0}))}}),_.M(_.H,{cond:function(){return S.ageRating},
then:function(F){return _.M(l_N,{ageRating:F})}}))}),_.M(_.H,{cond:function(){return y&&h.clientData.has("post_play_nonce")},
then:function(){return _.M("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.M("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},"Post Play Nonce"),_.M("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},h.getData("post_play_nonce")))}}))},"Lj"),xwF=_.T(function(b){var h=b.data;
return _.M("yt-mini-app-game-info-dialog-view-model",{class:"miniAppGameInfoDialogViewModelHost"},_.M(iod,{title:function(){return h().dialogTitle}}),_.M(w1Y,{data:h}),_.M(_.H,{cond:function(){return h().infoRow},
then:function(y){return _.M(qyf,{infoRows:y})}}),_.M(f_a,{closeButton:function(){return h().closeButton}}))},"Mj");
xwF.idomCompat=!0;_.yd(xwF,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.D4}});_.yd(_.T(function(b){var h=b.data;return _.M("yt-gulp-triggering-dialog-view-model",{class:_.P2("ytGulpTriggeringDialogViewModelHost","ytGulpTriggeringDialogViewModelResetSpacing"),dialog:!0},_.M(_.mI,{data:function(){return h().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.M("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.M("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.M("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.M(_.zv,{text:function(){return h().title}})),_.M(_.H,{cond:function(){return h().bodyText},
then:function(y){return _.M(_.Gw,{each:y},function(S){return _.M("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.M(_.zv,{text:S}))})}})),_.M("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.M(_.rC,{data:function(){return h().dismissButton}},{buttonViewModel:function(y){return _.M("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},_.M(_.EG,{data:y.data}))}}),_.M(_.rC,{data:function(){return h().actionButton}},{buttonViewModel:function(y){return _.M("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},
_.M(_.EG,{data:y.data}))}}))))},"Nj"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.D4}});var QVx=_.T(function(b){var h=b.data;b=_.bi(function(){return h().agreements},[]);
return _.M("installment-agreements-view-model",{class:_.P2("ytInstallmentAgreementsViewModelHost")},_.M(_.Gw,{each:b},function(y){return _.M("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.M("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.M(_.zv,{text:y.label})),_.M("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.M(_.rC,{data:function(){return y.openButton}},{buttonViewModel:_.EG})))}))},"Oj");
QVx.idomCompat=!0;var mwA=_.T(function(b){var h=_.L(_.ya(function(){var x,q;return((x=b.data().createPlaylistDialogFormSchema)==null?0:(q=x.initialValues)==null?0:q.title)?b.data().createPlaylistDialogFormSchema.initialValues.title:""})),y=h.next().value,S=h.next().value;
h=_.L(_.ya(function(){b.data();return!1}));
var F=h.next().value,a=h.next().value;h=_.L(_.ya(function(){b.data();return!1}));
var P=h.next().value,K=h.next().value;h=_.L(_.ya(function(){var x,q;return(x=b.data().createPlaylistDialogFormSchema)==null?void 0:(q=x.initialValues)==null?void 0:q.visibility}));
var n=h.next().value,X=h.next().value;h=_.L(_.ya(function(){b.data();return!1}));
var u=h.next().value,O=h.next().value;h=_.L(_.ya(function(){var x,q;return(x=b.data().createPlaylistDialogFormSchema)==null?void 0:(q=x.initialValues)==null?void 0:q.isCollaborative}));
var N=h.next().value,t=h.next().value,R=_.ZR("div");_.Qi(function(){var x=R.value.querySelector("textarea");x&&(x.value=y())},"axFRaf");
_.wg(function(){var x;_.fRF((x=b.data().createPlaylistDialogFormSchema)==null?void 0:x.id,{onSubmit:function(){var q=y();var dI=n(),L4=N(),Rq=b.data();q={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:q,privacyStatus:dI,videoIds:Rq.videoIds,sourcePlaylistId:Rq.sourcePlaylistId,params:L4?Rq.createPlaylistParamsCollaborationEnabled:Rq.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.H9().resolve(_.OM).resolveCommand(q)},
isValid:function(){return F()&&!P()&&!u()}})});
var I=function(x){if(x!==void 0&&(S(x),!F()&&x.length>0&&a(!0),F())){var q=wqa(b.data());if(q){var dI=q.minLength;q=q.maxLength;dI&&x.length<dI?K(!0):q&&x.length>q?K(!0):K(!1)}}},U=function(){var x=!(!N()||n()!=="PRIVATE");
O(x)},p=function(x){x!==void 0&&(X(x),U())},e=function(){if(u())return qeA(b.data())},E=function(){t(!N());
U()},Y=function(){return{validate:function(x){if(F()){var q=wqa(b.data());
if(q){var dI=q.minLength;q=q.translations;if(dI&&x.length<dI)return q==null?void 0:q.minLengthErrorMessage}}}}},w=function(){var x=wqa(b.data()),q=x==null?void 0:x.maxLength,dI;
x=x==null?void 0:(dI=x.translations)==null?void 0:dI.maxLengthErrorMessage;if(q&&x)return{maxChars:q,errorMessage:x}};
return _.M("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.M("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:R},_.M(_.rC,{data:function(){return b.data().playlistTitle}},{textFormFieldViewModel:function(x){return _.M(_.Fif,{data:x.data,
text:y,onInput:I,validation:Y,characterLimit:w})},
textFieldViewModel:function(x){return _.M(_.S0f,{data:x.data,text:y,onInput:I,validation:Y,characterLimit:w})}})),_.M("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.M(_.rC,{data:function(){return b.data().playlistVisibility}},{dropdownViewModel:function(x){return _.M(_.MIa,{data:x.data,
onSelected:p,error:e})}})),_.M(_.H,{cond:function(){return!!b.data().playlistCollaborate},
then:function(){return _.M("div",null,_.M(_.rC,{data:function(){return b.data().playlistCollaborate}},{switchListItemViewModel:function(x){return _.M(_.ch8,{data:x.data,
onTap:E})}}))}}))},"Qj");var vcY=_.T(function(b){var h=b.data;return _.M("upsell-offer-table-cell-content-view-model",null,_.M("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.M(_.kZ,null,_.M(_.YZ,{when:function(){var y;return(y=h().icon)==null?void 0:y.iconType}},function(){return _.M("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.M(_.Xv,{icon:function(){var y;
return(y=h().icon)==null?void 0:y.iconType.toString()}}))}),_.M(_.YZ,{when:function(){return h().title}},function(){return _.M(_.zv,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return h().title}})}),_.M(_.YZ,{when:function(){return h().subtitle}},function(){return _.M(_.zv,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return h().subtitle}})}),_.M(_.YZ,{when:function(){return h().infoText}},function(){return _.M(_.zv,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return h().infoText}})}),_.M(_.YZ,{when:function(){return h().featureDescription}},function(){return _.M(_.zv,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return h().featureDescription}})}),_.M(_.YZ,{when:function(){return h().note}},function(){return _.M(_.zv,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return h().note}})})),_.M(_.H,{cond:function(){var y;
return(y=h().icon)==null?void 0:y.iconAccessibilityText},
then:function(){return _.M("span",{class:"ytUpsellOfferTableCellContentViewModelVisuallyHiddenAccessibility"},function(){var y;return(y=h().icon)==null?void 0:y.iconAccessibilityText})}})))},"Rj");
vcY.idomCompat=!0;var bYA=_.T(function(b){var h=b.data;var y=b.cellIndex;var S=b.rowIndex;return _.M("upsell-offer-table-cell-view-model",null,_.M("div",{class:_.P2("ytUpsellOfferTableCellViewModelCellWrapper",function(){return h().isFirstRow?"ytUpsellOfferTableCellViewModelCellWrapperHeaderRowCell":h().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"}),
id:function(){var F,a;return"cell-"+((F=S==null?void 0:S())!=null?F:0)+"-"+((a=y==null?void 0:y())!=null?a:0)},
role:function(){return h().isFirstRow?"columnHeader":h().isFirstColumn?"rowheader":"gridcell"}},_.M(_.rC,{data:function(){return h().contents}},{upsellOfferTableCellContentViewModel:vcY})))},"Sj");
bYA.idomCompat=!0;var hVP=_.T(function(b){var h=b.data;var y=b.upsellTableIsFirstRow;var S=b.rowIndex;var F=function(){return(y==null?0:y())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},a=function(){return(y==null?0:y())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.M("ytm-upsell-offer-table-row-view-model",null,_.M("div",{class:function(){return(y==null?0:y())?"ytUpsellOfferTableRowViewModelHostFirstRow":"ytUpsellOfferTableRowViewModelHost"},
role:"row","aria-owns":function(){return"cell-"+(S==null?void 0:S())+"-1 cell-"+(S==null?void 0:S())+"-2"}},_.M(_.rC,{data:function(){return h().rowHeaderCell}},{upsellOfferTableCellViewModel:function(P){return _.M("div",{class:F},_.M(bYA,{data:P.data,
cellIndex:0,rowIndex:S}))}}),_.M("div",{class:"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCells"},_.M(_.rC,{data:function(){return h().contentCells}},{upsellOfferTableCellViewModel:function(P,K){return _.M("div",{class:a},_.M(bYA,{data:P.data,
cellIndex:function(){return K()+1},
rowIndex:S}))}}))))},"Tj");
hVP.idomCompat=!0;var ySx=_.T(function(b){var h=b.data;return _.M("ytm-upsell-offer-table-view-model",null,_.M("div",{class:"ytUpsellOfferTableViewModelHost",role:"grid"},_.M("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.M(_.rC,{data:function(){return h().rows}},{upsellOfferTableRowViewModel:function(y,S){return _.M(hVP,{data:y.data,
upsellTableIsFirstRow:function(){return S()===0},
rowIndex:S})}}))))},"Uj");
ySx.idomCompat=!0;var S1d=_.T(function(b){var h=function(){return b.data()},y=_.bi(b.noPadding,!1),S=function(){var a,P;
return(P=(a=h().logo.accessibilityData)==null?void 0:a.label)!=null?P:""},F={};
return _.M("upsell-view-model",{class:_.P2("ytUpsellViewModelHost",(F.ytUpsellViewModelHostNoPadding=function(){return y()},F.ytUpsellViewModelHostWide=function(){return h().offerTable!==void 0},F))},_.M("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.M(_.H,{cond:function(){return _.EF(h().logo)},
then:function(a){return _.M(_.mI,{data:a,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:S})}})),_.M("div",{class:"ytUpsellViewModelHostUpsellTitle",
role:"heading","aria-level":1,autofocus:!0,tabindex:-1},_.M(_.zv,{text:function(){return h().title}})),_.M("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.M(_.Gw,{each:function(){var a;
return(a=h().subtitles)!=null?a:[]},
keyBy:"INDEX"},function(a){var P={};return _.M("div",{class:_.P2("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(P.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return h().offerTable!==void 0},P))},_.M(_.zv,{text:a}))})),_.M("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.M(_.Gw,{each:function(){var a;
return(a=h().benefitInfos)!=null?a:[]},
keyBy:"INDEX"},function(a){return _.M(_.H,{cond:function(){return a().info},
then:function(P){return _.M("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.M(_.Xv,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.M(_.zv,{text:P}))}})})),_.M(_.H,{cond:function(){return h().offerTable!==void 0},
then:function(){return _.M("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.M(_.rC,{data:function(){return h().offerTable}},{upsellOfferTableViewModel:function(a){return _.M(ySx,{data:a.data})}}))}}),_.M("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.M(_.Gw,{each:function(){var a;
return(a=h().legalInfos)!=null?a:[]},
keyBy:"INDEX"},function(a){var P={};return _.M("div",{class:_.P2("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(P.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return h().offerTable!==void 0},P))},_.M(_.zv,{text:a}))})))},"Vj");var F_2=_.T(function(b){var h=b.data;b={};b=(b.ytMiniAppScoreChallengeViewModelScoreRadial=!0,b.ytMiniAppScoreChallengeViewModelDarkScoreRadial=xM2(),b);return _.M("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.M("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return h().title}),_.M("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return h().subtitle}),_.M("div",{class:_.AB(b)},_.M("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return h().score})),_.M("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return h().prompt}))},"Wj");var aQY=function(){this.store=_.mc();this.formId=""};
aQY.prototype.onInit=function(b){b.formId&&(this.formId=b.formId,this.store.dispatch(_.$8({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};
aQY.prototype.cleanup=function(){this.store.dispatch(_.$8({type:"RESET_COMMAND_MAP"}))};var d6A=_.T(function(b){function h(K){if(K&&(K=_.c(K,_.D5)))return Object.assign({},K,{isSelected:a()})}
var y=_.L(_.ya(function(){var K,n;return(n=(K=_.c(b.data().option,_.D5))==null?void 0:K.isSelected)!=null?n:!1})),S=y.next().value,F=y.next().value,a=S;
_.wg(function(){var K;_.fRF((K=b.data().formSchema)==null?void 0:K.id,{onSubmit:function(){var n=_.H9().resolve(_.OM),X=!!b.data().selectedCommand,u=!!b.data().unselectedCommand;if(a()){if(X)var O=b.data().selectedCommand}else u&&(O=b.data().unselectedCommand);O=_.YS(O);h(b.data().option)&&!O?(n="",!X&&u?n="selected ":X&&!u&&(n="unselected "),X=new _.Gn("No "+n+"command found for SelectionListItemFormViewModel"),_.QT(X)):O&&n.resolveCommand(O)},
isValid:function(){return!0}})});
var P=function(){F(!a())};
_.m2(function(){var K,n,X=(K=b.data())==null?void 0:(n=K.formSchema)==null?void 0:n.id;X&&_.Nn()().delete(X)});
return _.M("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.M("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.M(_.zv,{text:function(){return b.data().paragraph}})),_.M(_.H,{cond:function(){return h(b.data().option)},
then:function(K){return _.M(_.Iu,{data:K,isCompact:!0,hideSelectionTextChevron:!0,onTap:P,disableHorizontalPadding:!0})}}))},"Xj");var jJN=_.T(function(b){var h=b.data;var y=b.disablePadding;var S=b.className;var F=_.ZR("yt-dialog-header-view-model"),a=function(){var n=h().imageBanner;a:switch(h().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var X="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:X="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:n,style:X,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},P=function(){return h().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"},
K=function(){return h().alignment==="DIALOG_HEADER_ALIGNMENT_CENTER"};
_.wg(function(){var n=function(){_.F8(F.value,"yt-refit-popups-action")},X;
(X=F.value)==null||X.addEventListener("image-loaded",n);_.m2(function(){var u;(u=F.value)==null||u.removeEventListener("image-loaded",n)})});
b={};return _.M("yt-dialog-header-view-model",{el:F,class:_.P2(S,(b.ytDialogHeaderViewModelHost=!0,b.ytDialogHeaderViewModelHostDisablePadding=y,b.ytDialogHeaderViewModelHostCentered=K,b))},_.M(_.H,{cond:function(){return h().imageBanner},
then:function(){var n={};return _.M("div",{class:_.P2(S,(n.ytDialogHeaderViewModelBanner=!0,n.ytDialogHeaderViewModelBannerFullBleed=P,n)),style:_.n9({"max-height":function(){return h().assetContainerMaxHeight!==void 0?h().assetContainerMaxHeight+"px":void 0}})},_.M(_.fr,{data:a,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.M(_.H,{cond:function(){return h().headerBlock},
then:function(){var n={};return _.M("div",{class:_.P2("ytDialogHeaderViewModelHeaderBlock",(n.ytDialogHeaderViewModelHeaderBlockCentered=K,n))},_.M(_.rC,{data:function(){return h().headerBlock}},{contentPreviewImageViewModel:function(X){return _.M(_.fr,{data:X.data,
notifyOnLoaded:!0})}}))}}),_.M(_.H,{cond:function(){return h().customBanner},
then:function(n){var X={};return _.M("div",{class:_.P2("ytDialogHeaderViewModelCustomAssetContainer",(X.ytDialogHeaderViewModelCustomAssetContainerCentered=K,X))},_.M(_.rC,{data:n},{avatarStackViewModel:_.tZ}))}}),_.M(_.H,{cond:function(){return h().headline},
then:function(n){return _.M("h2",null,_.M(_.zv,{text:n,className:"ytDialogHeaderViewModelText"}))}}))},"Yj");
jJN.idomCompat=!0;var $6x=_.T(function(b){var h=_.mwI(function(){return b.data().formId}),y=h.submitForm,S=h.isValid;
return _.M("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.M(_.rC,{data:function(){return b.data().panelFooter}},{panelFooterViewModel:function(F){return _.M(_.Vo,{data:F.data,
disablePadding:!0,disablePrimaryButton:function(){return!S()},
onClickPrimaryButton:function(){y()}})}}))},"Zj");var L_A=_.T(function(b){var h=function(){var y,S;return(S=(y=_.c(b.data().rendererContext,_.zR))==null?void 0:y.label)!=null?S:""};
return _.M("yt-dialog-image-content-view-model",{class:_.P2("ytDialogImageContentViewModelHost",b.className)},_.M(_.H,{cond:function(){return _.EF(b.data().image)},
then:function(y){var S={};return _.M("div",{style:_.n9((S.width=(0,_.c$)(function(){var F;return(F=b.data().imageMaxWidth)!=null?F:""}),S)),
class:"ytDialogImageContentViewModelImage"},_.M(_.mI,{data:y,alt:h,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.M(_.zv,{text:function(){return b.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"$j");var ZYP=_.T(function(b){var h=_.h6(b,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),y=h.elRefCallback;b=h.Icon;var S=h.Asset,F=h.assetType,a=h.Title,P=h.LeadingActionHeader,K=h.TrailingActionHeader,n=h.headerPosition,X=h.Content,u=h.buttonLayout,O=h.buttonStyle,N=h.primaryButtonWiz,t=h.secondaryButtonWiz,R=h.contentAlignment,I=h.isFullscreen,U=h.width,p=h.maxHeight,e=h.isHeaderWizDefined,E=h.Header,Y=h.isFooterWizDefined,
w=h.Footer;h=_.ZR("dialog-layout",function(gI){y==null||y(gI)});
var x=N?function(){var gI={};return N({buttonOverrides:function(){return{style:(O==null?void 0:O())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.P2((gI["yt-spec-dialog-layout__dialog-layout-button"]=!0,gI["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(u==null?void 0:u())===0||(u==null?void 0:u())===2},gI))})}:void 0,q=t?function(){var gI={};
return t({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.P2((gI["yt-spec-dialog-layout__dialog-layout-button"]=!0,gI["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(u==null?void 0:u())===0||(u==null?void 0:u())===2},gI))})}:void 0,dI=function(){return(!!a||!!P||!!K)&&n()===0},L4={},Rq={},Xn={},Ny={};
return _.M("dialog-layout",{el:h,class:_.P2((L4["yt-spec-dialog-layout"]=!0,L4["yt-spec-dialog-layout--dialog-layout-fullscreen"]=I,L4["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!I()},L4["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return p()===1},L4["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(F==null?void 0:F())===1},L4)),
style:function(){return(U==null?void 0:U())!==void 0?"width: "+U()+"px;":""}},b?_.M("div",{class:_.P2((Rq["yt-spec-dialog-layout__dialog-layout-icon"]=!0,Rq["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!S&&n()===1},Rq["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return R()===1},Rq))},_.M(b,null)):null,_.M(_.H,{cond:e,
then:function(){return E?_.M("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.M(E,null)):null},
else:function(){return _.M(_.OW,null,_.M(_.H,{cond:dI,then:function(){return _.M(PxY,{contentAlignment:R,LeadingActionHeader:P,TrailingActionHeader:K,Title:a,isAboveAsset:!!S})}}),S?_.M("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.M(S,{className:"yt-spec-dialog-layout__dialog-layout-asset-item"})):null)}}),_.M("div",{class:_.P2((Xn["yt-spec-dialog-layout__dialog-layout-container"]=!0,Xn["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(R==null?void 0:R())===1},
Xn["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-top-padding"]=function(){return!a&&!(E&&e())||!!S&&(n==null?void 0:n())===0},Xn))},_.M(_.H,{cond:function(){return a&&!E&&(n==null?void 0:n())===1},
then:function(){return _.M(PxY,{contentAlignment:R,LeadingActionHeader:P,TrailingActionHeader:K,Title:a,isAboveAsset:!1})}}),X?_.M("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.M("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.M(X,null))):null,_.M(_.H,{cond:Y,
then:function(){return w?_.M("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.M(w,null)):null}}),x||q?_.M(K_F,{footerClasses:_.P2((Ny["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,Ny["yt-spec-dialog-layout__dialog-layout-footer"]=!0,Ny["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(u==null?void 0:u())===2},Ny["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(u==null?void 0:u())===1},Ny)),
PrimaryButton:x,SecondaryButton:q}):null))},"ak"),PxY=_.T(function(b){var h=_.h6(b,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),y=h.contentAlignment,S=h.LeadingActionHeader;b=h.Title;var F=h.TrailingActionHeader,a=h.isAboveAsset,P=h.enableLeadingActionHeader;h={};return _.M("div",{class:_.P2((h["yt-spec-dialog-layout__dialog-header-container"]=!0,h["yt-spec-dialog-layout__dialog-header"]=!0,h["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=a,h["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(y==null?void 0:y())===1&&P()},h))},_.M(_.H,{cond:function(){return P()},
then:function(){return S?_.M("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.M(S,null)):null}}),b?_.M("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.M(b,null)):null,F?_.M("div",null,_.M(F,null)):null)},"bk"),K_F=_.T(function(b){var h=b.footerClasses;
var y=b.PrimaryButton;b=b.SecondaryButton;return _.M("div",{class:h},b?_.M(b,null):null,y?_.M(y,null):null)},"ck");var okF=new _.ca("TIME_PICKER_VIEW_MODEL_TOKEN");var MuP=_.T(function(b){var h=b.data;return _.M("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.M("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.M(_.rC,{data:function(){return h().avatar}},{avatarViewModel:_.OX})),_.M("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.M(_.zv,{text:function(){return h().title}})),_.M(_.zv,{text:function(){return h().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"dk");var nkA=_.T(function(b){return _.M("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.M("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.M(_.zv,{text:function(){return b.data().inviteMessage}})),_.M("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.M(_.zv,{text:function(){return b.data().attributedAccountSectionHeaderText}})),_.M("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.M(_.rC,{data:function(){return b.data().accountAvatar}},{avatarViewModel:_.OX}),_.M("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.M(_.zv,{text:function(){return b.data().accountName}}),_.M("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.M(_.zv,{text:function(){return b.data().handle}}))),_.M(_.rC,{data:function(){return b.data().trailingButton}},{buttonViewModel:_.EG})),_.M("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.M(_.zv,{text:function(){return b.data().termsOfService}})))},"ek");var XnP=_.T(function(b){var h=b.data;return _.M("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.M("div",{class:"ytAccessConfirmationViewModelContent"},_.M(_.rC,{data:function(){var y;return(y=h().avatar)!=null?y:h().dualAvatar}},{dualAvatarViewModel:function(y){return _.M(_.XMX,{data:y.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(y){return _.M(_.NY,{data:y.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.M("h2",{class:"ytAccessConfirmationViewModelTitle"},_.M(_.zv,{text:function(){return h().title}})),_.M(_.zv,{text:function(){return h().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"fk");var HYa=_.T(function(b){var h=_.L(_.ya(function(){var P,K;return(P=b.data().formSchema)==null?void 0:(K=P.initialValues)==null?void 0:K.selectedLanguages})),y=h.next().value,S=h.next().value,F={};
_.Qi(function(){var P=b.data().formSchema,K=P==null?void 0:P.submitConfig;b.data()!==F&&(F=b.data(),P&&K&&_.iPY(P.id,{isValid:function(){var n;return((n=y())!=null?n:[]).length>0},
formData:function(){return{preferredLanguageSettingsFormData:{selectedLanguages:y()||[]}}},
submitConfig:K}))},"OYeNHc");
var a=function(P){var K=P.key;if(K){var n;if(K&&((n=y())==null?0:n.includes(K))){var X;S((X=y())==null?void 0:X.filter(function(u){return u!==K}))}else S([].concat(_.f$(y()||[]),[K]))}};
return _.M("yt-preferred-language-settings-panel-view-model",{class:"ytPreferredLanguageSettingsPanelViewModelHost"},_.M(_.rC,{data:function(){return b.data().checkboxGroup}},{checkboxGroupViewModel:function(P){return _.M(_.bRf,{data:P.data,
onItemTap:a,selectedKeys:y,controlledMode:!0})}}))},"hk");var u4q=_.T(function(b){var h=b.data;var y=void 0;b=_.L(_.ya(function(){var u;return((u=_.c(h().content,_.PEA))==null?void 0:u.defaultSelectedKey)||""}));
var S=b.next().value,F=b.next().value,a,P=function(){F("");var u;(u=y)==null||u.cleanup()};
_.wg(function(){y=new aQY;window.addEventListener("yt-popup-closed",P)});
_.Qi(function(){if(y&&a!==h().formId&&(y.onInit(h()),(a=h().formId)&&S())){var u=y,O={key:S()};O.command&&u.store.dispatch(ipA(a,O.command))}},"bo7oA");
_.m2(function(){window.removeEventListener("yt-popup-closed",P)});
var K=function(u,O,N){O.key&&N&&O.key!==S()&&(F(O.key),y&&O.command&&y.store.dispatch(ipA(N,O.command)))},n=function(){if(_.c(h().content,_.PEA))return!(S==null?0:S())},X=_.H9().resolve(_.XS(okF));
return _.M("yt-dialog-view-model",{class:_.P2("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.M(ZYP,{Header:function(){return _.M(_.rC,{data:function(){return h().header}},{dialogHeaderViewModel:function(u){return _.M(jJN,{data:u.data,
disablePadding:!0})}})},
isHeaderWizDefined:function(){return!!h().header},
Content:function(){return _.M(_.rC,{data:function(){return h().customContent?h().customContent:h().content}},Object.assign({},{basicContentViewModel:_.zT,
createPlaylistDialogFormViewModel:mwA,collaborativePlaylistInviteMessageViewModel:nkA,preferredLanguageSettingsPanelViewModel:HYa,miniAppScoreChallengeViewModel:F_2,radioButtonGroupViewModel:function(u){var O=u.data;return _.M(_.mm2,{data:O,selectedKey:S,onSelected:K,groupName:function(){return O().formId}})},
selectionListItemFormViewModel:d6A,upsellViewModel:function(u){return _.M(S1d,{data:u.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:MuP,installmentAgreementsViewModel:QVx,accessConfirmationViewModel:XnP,listViewModel:function(u){return _.M(_.Us5,{data:u.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:L_A},X&&{timePickerViewModel:X}))},
Footer:function(){return _.M(_.rC,{data:function(){return h().footer}},{panelFooterViewModel:function(u){return _.M(_.Vo,{data:u.data,
disablePadding:!0,disablePrimaryButton:n})},
formPanelFooterViewModel:$6x,formFooterViewModel:function(u){return _.M(_.TRA,{data:u.data,disablePadding:!0})}})},
isFooterWizDefined:function(){return!!h().footer}}))},"jk");
u4q.idomCompat=!0;_.yd(u4q,"yt-dialog-view-model",{props:{data:_.D4},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var OYf=_.T(function(b){var h=b.data;return _.M("div",{class:"ytPanelHeaderViewModelTitleWrapper"},_.M(_.H,{cond:function(){return h().title},
then:function(y){return _.M("h2",{class:"ytPanelHeaderViewModelTitleHeader"},_.M(_.zv,{text:y,className:"ytPanelHeaderViewModelTitle"}))}}),_.M(_.H,{cond:function(){return h().subtitle},
then:function(y){return _.M(_.zv,{text:y,className:"ytPanelHeaderViewModelSubtitle"})}}))},"kk"),NoP=_.T(function(b){var h=b.data;
var y=_.BYy(function(){return h().rendererContext});
b={};return _.M("yt-panel-header-view-model",{class:_.P2("ytPanelHeaderViewModelHost",(b.ytPanelHeaderViewModelHostHideDivider=function(){return!!h().shouldHideDivider},b.ytPanelHeaderViewModelHostCompact=function(){return!!h().subtitle},b)),
"aria-label":function(){var S;return(S=y())==null?void 0:S.label}},_.M(_.H,{cond:function(){return _.ea(h().rendererContext)},
then:function(){return _.M(_.MX5,{className:"ytPanelHeaderViewModelButtonOrAnchor",command:function(){return _.JB(h().rendererContext)},
focusedClassName:"ytPanelHeaderViewModelButtonOrAnchorFocused"},_.M(OYf,{data:h}))},
else:function(){return _.M(OYf,{data:h})}}),_.M("div",{class:"ytPanelHeaderViewModelTrailingButtons"},_.M(_.rC,{data:function(){return h().trailingButtons}},{buttonViewModel:function(S){return _.M(_.EG,{data:S.data,
className:"ytPanelHeaderViewModelButton"})}})))},"lk");
NoP.idomCompat=!0;var tuE=_.T(function(b){var h=_.Zv(function(a){var P;if((P=b.skipContentClick)==null?0:P.call(b))return!1;b.onContentWrapperClick(a);return!0}),y,S,F;
return _.M("div",{class:_.P2("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return b.isAnimating()?"transform: translateY("+b.currentY()+"px);transition: 0.2s":""}},(y=b.header)==null?void 0:y.call(b),_.M("div",{id:b.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.n9({"max-height":(0,_.c$)(b.maxHeightForContentWrapper)}),"on:scroll":_.Zv(function(a){return b.onScroll(a),!1}),
"on:touchmove":_.Zv(function(a){return a.stopPropagation(),!1})},_.M("div",{el:_.Qa(b.contentWrapperEl),
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":h},(S=b.body)==null?void 0:S.call(b))),(F=b.footer)==null?void 0:F.call(b))},"mk");
tuE.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var rSx=_.T(function(b){var h=_.bi(b.leadingLabel),y=_.bi(b.trailingLabel),S=_.bi(b.footerButtonType),F=function(){return h()||y()||b.hasPrimaryButton()||b.hasSecondaryButton()},a={},P=_.P2("yt-spec-bottom-sheet-layout__primary-button",(a["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return S()===0&&b.hasPrimaryButton()},a["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return S()===1&&b.hasPrimaryButton()},a["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return S()===2&&b.hasPrimaryButton()},a["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return S()===3&&b.hasPrimaryButton()},a));
a={};var K=_.P2("yt-spec-bottom-sheet-layout__secondary-button",(a["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return S()===1&&b.hasSecondaryButton()},a["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return S()===2&&b.hasSecondaryButton()},a["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return S()===3&&b.hasPrimaryButton()},a));
return _.M(_.H,{cond:b.hasFooterOverride,then:function(){var n;return _.M(_.OW,null,(n=b.footerOverride)==null?void 0:n.call(b))},
else:function(){return _.M(_.H,{cond:F,then:function(){return _.M("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.M(_.H,{cond:function(){return h()||y()},
then:function(){var n={};return _.M("div",{class:_.P2("yt-spec-bottom-sheet-layout__footer-label-wrapper",(n["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!b.hasPrimaryButton()},n))},_.M(_.H,{cond:h,
then:function(){return _.M("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},h)}}),_.M(_.H,{cond:y,
then:function(){return _.M("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},y)}}))}}),_.M(_.H,{cond:function(){return b.hasPrimaryButton()||b.hasSecondaryButton()},
then:function(){var n={};return _.M("div",{class:_.P2("yt-spec-bottom-sheet-layout__footer-button-wrapper",(n["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.$co,n))},_.M(_.H,{cond:function(){return b.hasSecondaryButton()&&S()!==0},
then:function(){var X;return _.M("div",{class:K},(X=b.secondaryButton)==null?void 0:X.call(b))}}),_.M(_.H,{cond:b.hasPrimaryButton,
then:function(){var X;return _.M("div",{class:P},(X=b.primaryButton)==null?void 0:X.call(b))}}))}}))}})}})},"nk");
rSx.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var cSF=_.T(function(b){var h=_.bi(b.title),y=_.bi(b.subtitle);return _.M("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:b.headerId,"on:touchstart":_.Zv(function(S){var F;(F=b.touchstart)==null||F.call(b,S);return!1}),
"on:touchmove":_.Zv(function(S){var F;(F=b.touchmove)==null||F.call(b,S);return!1}),
"on:touchend":_.Zv(function(S){var F;(F=b.touchend)==null||F.call(b,S);return!1})},_.M("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.M(_.H,{cond:b.hasHeaderOverride,
then:function(){var S;return _.M(_.OW,null,(S=b.headerOverride)==null?void 0:S.call(b))},
else:function(){var S={};return _.M("div",{class:_.P2((S["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,S["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=h,S))},_.M("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.M(_.H,{cond:h,then:function(){return _.M(_.OW,null,_.M("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},h),_.M(_.H,{cond:y,then:function(){return _.M("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
y)}}))}})),_.M(_.H,{cond:function(){return h()&&b.hasActionHeader()},
then:function(){var F;return _.M("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(F=b.actionHeader)==null?void 0:F.call(b))}}))}}))},"ok");
cSF.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.T(function(b){function h(dI){if(!E&&typeof MutationObserver!=="undefined"){var L4={childList:!0};"MutationObserver"in window&&(E=new MutationObserver(y.bind(void 0,dI)),E.observe(dI,L4))}}
function y(dI){typeof E!=="undefined"&&(Y["content-wrapper"]===void 0&&(Y["content-wrapper"]=dI.children[0].clientHeight),I(Y["content-wrapper"]),R()>U()||p(R()))}
function S(){t(window.innerHeight);R()>U()||p(R());w.isFullScreen[0]()&&R()>U()?x().dispatch("Snap To Full Screen",{maxHeight:e()}):x().dispatch("Snap To Neutral Position",{maxHeight:U()})}
function F(dI){document.body.style.overscrollBehavior="none";dI.preventDefault();x().dispatch("Touch Start",{event:dI})}
function a(dI){dI.preventDefault();x().dispatch("Touch Move",{event:dI,contentScrollable:R()>U(),fullContentWrapperHeight:e(),contentWrapperHeight:U(),heightMap:Y,contentWrapperId:"content-wrapper",header:hWq(b),footer:hWq(b),headerDivHeight:Y["bottom-sheet-header"],footerDivHeight:Y["bottom-sheet-footer"]})}
function P(){document.body.style.overscrollBehavior="";w.isFullScreen[0]()?w.currentY[0]()>=60?x().dispatch("Snap To Neutral Position",{maxHeight:U()}):x().dispatch("Snap To Full Screen",{maxHeight:e()}):w.currentY[0]()>=60?K():w.currentY[0]()<=-60&&R()>U()?x().dispatch("Snap To Full Screen",{maxHeight:e()}):x().dispatch("Snap To Neutral Position",{maxHeight:U()})}
function K(){x().dispatch("Close Sheet",{clientHeight:N(),maxHeight:0});setTimeout(function(){bvf()},250)}
var n=_.ZR("div"),X=_.ZR("div"),u=_.L(_.pa(window.innerHeight,void 0,"CmOsU")),O=u.next().value;u=u.next().value;var N=O,t=u;u=_.L(_.pa(0,void 0,"p0Flhb"));O=u.next().value;u=u.next().value;var R=O,I=u;u=_.L(_.ya(function(){var dI=hWq(b);return.6*N()-Qy2(dI)-mMX(dI)}));
O=u.next().value;u=u.next().value;var U=O,p=u,e=function(){var dI=hWq(b),L4=N(),Rq=Y["bottom-sheet-header"],Xn=Y["bottom-sheet-footer"];return L4-(dI.hasHeaderFn&&Rq!==void 0?Rq:Qy2(dI))-(dI.hasFooterFn&&Xn!==void 0?Xn:mMX(dI))-24-24},E=null,Y={},w={initialY:_.pa(0,void 0,"sxdESd"),
currentY:_.pa(0,void 0,"GZzqeb"),isAnimating:_.pa(!1,void 0,"vJBupc"),isFullScreen:_.pa(!1,void 0,"XyRDp"),maxHeightForContentWrapper:_.ya(U)},x=function(){var dI=null;return function(){if(!dI){var L4={initialY:w.initialY[0](),currentY:w.currentY[0](),isAnimating:w.isAnimating[0](),isFullScreen:w.isFullScreen[0](),maxHeightForContentWrapper:w.maxHeightForContentWrapper[0]()};dI=vBF(L4)}return dI}}();
_.wg(function(){window.addEventListener("resize",S);x().subscribe(function(dI){w.initialY[1](dI.initialY);w.currentY[1](dI.currentY);w.isAnimating[1](dI.isAnimating);w.isFullScreen[1](dI.isFullScreen);w.maxHeightForContentWrapper[1](dI.maxHeightForContentWrapper)});
requestAnimationFrame(function(){n.value&&(Y["bottom-sheet-header"]=n.value.clientHeight);X.value&&(Y["bottom-sheet-footer"]=X.value.clientHeight)})});
_.m2(function(){window.removeEventListener("resize",S);E&&(E.disconnect(),E=null)});
var q=_.P2({"bottom-sheet-content-without-icon":function(){var dI;return!((dI=b.shouldShowIcons)==null?0:dI.call(b))}});
return _.M("bottom-sheet-layout",null,_.M(tuE,{contentWrapperId:"content-wrapper",isAnimating:function(){return w.isAnimating[0]()},
currentY:function(){return w.currentY[0]()},
maxHeightForContentWrapper:function(){return w.maxHeightForContentWrapper[0]()},
shouldShowIcons:b.shouldShowIcons,skipContentClick:b.skipContentClick,onScroll:function(){var dI=document.getElementById("bottom-sheet-header"),L4=document.getElementById("content-wrapper");if(dI&&L4){var Rq={};Rq=(Rq["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,Rq["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,Rq);dI.className=L4.scrollTop>1?_.AB(Rq):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:bvf,contentWrapperEl:function(dI){h(dI);requestAnimationFrame(function(){y(dI)})},
header:function(){return _.M("div",{el:n},_.M(cSF,{touchstart:F,touchmove:a,touchend:P,title:b.headerTitle,subtitle:b.headerSubtitle,headerId:"bottom-sheet-header",headerOverride:b.headerFn,hasHeaderOverride:b.hasHeaderFn,actionHeader:b.headerActionHeader,hasActionHeader:b.hasHeaderActionHeader}))},
footer:function(){return _.M("div",{el:X},_.M(rSx,{footerButtonType:b.footerButtonType,leadingLabel:b.footerLeadingLabel,trailingLabel:b.footerTrailingLabel,primaryButton:b.footerPrimaryButton,hasPrimaryButton:b.hasFooterPrimaryButton,secondaryButton:b.footerSecondaryButton,hasSecondaryButton:b.hasFooterSecondaryButton,footerOverride:b.footerFn,hasFooterOverride:b.hasFooterFn}))},
body:function(){return _.M(_.H,{cond:b.hasContentFn,then:function(){var dI;return _.M("div",{class:q},(dI=b.contentFn)==null?void 0:dI.call(b))}})}}))},"pk").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var RVY=_.T(function(b){var h=_.H9().resolve(_.nk);return _.M("yt-contextual-sheet-layout",{class:"ytContextualSheetLayoutHost","on:click":_.Zv(function(){return void h.closeSheet()})},_.M(_.H,{cond:function(){return!!b.header},
then:function(){return _.M("div",{class:"ytContextualSheetLayoutHeaderContainer"},b.header())}}),_.M(_.H,{cond:function(){return!!b.content},
then:function(){return _.M("div",{class:"ytContextualSheetLayoutContentContainer"},b.content())}}),_.M(_.H,{cond:function(){return!!b.footer},
then:function(){return _.M("div",{class:"ytContextualSheetLayoutFooterContainer"},b.footer())}}))},"qk");
RVY.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var zVA=_.T(function(b){var h=b.data;var y=_.H9().resolve(_.OM),S=_.ZR("yt-sheet-view-model",function(F){if(_.r("web_focus_first_element_sheet")||!_.r("sheet_focus_first_killswitch"))return F.addEventListener("focus",function(){zk2(F)}),function(){F.removeEventListener("focus",function(){zk2(F)})}});
b={};return _.M("yt-sheet-view-model",{"on:mousedown":_.Zv(function(F){_.r("sheet_focus_first_killswitch")||F.currentTarget!==F.target&&F.preventDefault()}),
"on:focus":_.Zv(function(){_.r("sheet_focus_first_killswitch")||zk2(S.value)}),
"on:mouseleave":_.Zv(function(){var F,a=h==null?void 0:(F=h())==null?void 0:F.rendererContext,P;(F=(P=_.c(a,_.gC))==null?void 0:P.onHoverEnd)&&y.resolveCommand(F)}),
class:_.P2("ytSheetViewModelHost",(b.ytSheetViewModelContextual=!0,b.ytSheetViewModelDisableBackdropFilter=_.r("web_disable_backdrop_filter"),b)),el:S,tabindex:-1},_.M(_.H,{cond:h,then:function(F){return _.M(RVY,{header:function(){return _.M(_.rC,{data:function(){return F().header}},{panelHeaderViewModel:NoP})},
content:function(){return _.M(_.rC,{data:function(){return F().content}},{listViewModel:function(a){return _.M(_.Us5,{data:a.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:S1d,miniAppScoreChallengeViewModel:F_2})},
footer:function(){return _.M(_.rC,{data:function(){return F().footer}},{panelFooterViewModel:_.Vo})}})}}))},"rk");
zVA.idomCompat=!0;_.yd(zVA,"yt-sheet-view-model",{props:{data:_.D4}});var IQE=_.T(function(b){var h=function(){var y;return(y=b.data().enableDebuggingFeatures)!=null?y:!1};
return _.M("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.M(_.Gw,{each:function(){var y;return(y=b.data().stickers)!=null?y:[]}},function(y){return _.M(D6a,{data:function(){return y},
debugMode:h})}))},"sk"),D6a=_.T(function(b){var h=_.h6(b,{debugMode:!1}).debugMode,y=_.bi(function(){var n;
return(n=b.data().region)==null?void 0:n.w},0),S=_.bi(function(){var n;
return(n=b.data().region)==null?void 0:n.h},0),F=_.bi(function(){var n;
return(n=b.data().region)==null?void 0:n.x},0),a=_.bi(function(){var n;
return(n=b.data().region)==null?void 0:n.y},0),P=_.Zv(function(){var n=b.data().onTap;
n&&_.Va(n)}),K={};
return _.M("div",{class:_.P2("ytStoriesStickerLayerViewModelSticker",(K.ytStoriesStickerLayerViewModelDebugMode=h,K)),style:_.n9({width:function(){return 100*y()+"%"},
height:function(){return 100*S()+"%"},
left:function(){return 100*F()+"%"},
top:function(){return 100*a()+"%"},
"flex-direction":function(){return yUq(b.data().flexDirection)},
"justify-content":function(){return S62(b.data().justifyContent)},
"align-items":function(){return FXF(b.data().alignItems)}}),
"on:click":P},_.M(_.rC,{data:function(){return b.data().button||b.data().toggleButton}},{buttonViewModel:function(n){return _.M(_.EG,{data:n.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(n){return _.M(_.Ke,{data:n.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"tk");var W_P=_.T(function(b){var h=function(){return b.data()},y={},S=_.L(_.pa(!1,void 0,"SegA3d")),F=S.next().value,a=S.next().value,P=_.bi(function(){return h().backgroundColor},0);
S=_.bi(function(){return h().actionButtons},[]);
var K=_.bi(function(){return h().stickerLayer},{}),n=function(){var u,O;
return{animationRef:y,animationConfig:{autoplay:!1,loop:!1,path:(O=(u=h().foregroundAnimation)==null?void 0:u.url)!=null?O:"",name:"stories_item_foreground_animation"},listeners:{data_ready:function(){a(!0)},
complete:function(){b.navigateToNextItemOnLottieComplete()}}}},X=function(){var u,O,N,t,R,I,U,p;
return{animationConfig:{autoplay:(I=(u=h().backgroundAnimation)==null?void 0:(O=u.settings)==null?void 0:O.autoplay)!=null?I:!1,loop:(U=(N=h().backgroundAnimation)==null?void 0:(t=N.settings)==null?void 0:t.loop)!=null?U:!1,path:(p=(R=h().backgroundAnimation)==null?void 0:R.url)!=null?p:"",name:"stories_item_background_animation"}}};
_.Qi(function(){if(b.isVisible()&&F()){var u;(u=y.lottieEl)==null||u.play();b.animationRef()&&(b.animationRef().lottieEl=y.lottieEl)}else{var O;(O=y.lottieEl)==null||O.stop()}},"MxM2wb");
return _.M("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.n9({"background-color":function(){return _.CR(P())+";"}})},_.M("div",{class:"ytStoriesItemViewModelAssetContent"},_.M(_.H,{cond:function(){return!!h().backgroundAnimation},
then:function(){return _.M(_.vj,{data:X,animationName:function(){return X().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.M(_.H,{cond:function(){return!!h().backgroundImage},
then:function(){return _.M(_.mI,{data:function(){return h().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.M(_.H,{cond:function(){return!!h().foregroundAnimation},
then:function(){return _.M(_.vj,{data:n,animationName:function(){return n().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.M(_.H,{cond:function(){return!!h().foregroundImage},
then:function(){return _.M(_.mI,{data:function(){return h().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.M("div",{class:"ytStoriesItemViewModelTopShadow"}),_.M(_.rC,{data:function(){return K()}},{storiesStickerLayerViewModel:IQE})),_.M("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.n9({"background-color":function(){return _.CR(P())}})},_.M("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.M(_.Gw,{each:S},function(u){return _.M(BoA,{data:function(){return u},
pauseAutoNavigation:b.pauseAutoNavigation})}))))},"vk"),ASa={style:"overlay",
type:"outline"},BoA=_.T(function(b){var h={};return _.M("div",{class:_.P2("ytStoriesItemViewModelActionButton",(h.ytStoriesItemViewModelStretchedActionButton=function(){return b.data().size==="STORIES_BUTTON_SIZE_STRETCH"},h)),
"on:click":_.Zv(b.pauseAutoNavigation)},_.M(_.rC,{data:function(){return b.data().button}},{buttonViewModel:function(y){return _.M(_.EG,{data:y.data,
buttonOverrides:ASa})}}))},"wk");var U6P={sources:[{url:"https://www.gstatic.com/music/image_composition/dna_recap/youtube_logo_full_color_278x60.png"}]};_.yd(_.T(function(b){var h=function(){var Xn;return(Xn=b.data().startIndex)!=null?Xn:0},y=_.L(_.ya(h)),S=y.next().value,F=y.next().value;
y=_.L(_.pa(!1,void 0,"sjy7s"));var a=y.next().value,P=y.next().value,K=function(){var Xn;return(Xn=b.data().storyItems)!=null?Xn:[]},n={},X=_.ZR("yt-stories-viewer-view-model"),u=function(){return b.data().dismissButton},O=function(){var Xn;
return _.YS((Xn=_.c(u(),_.cA))==null?void 0:Xn.onTap)},N=_.ZR("div"),t,R,I=!1,U=function(){var Xn;
(Xn=t)==null||Xn.cancel();t=p(S()).animate([{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:9E3,easing:"linear",fill:"forwards"});t.onfinish=function(){var Ny=_.c(K()[S()],wDA),gI,YU;Ny!=null&&Ny.foregroundAnimation&&((Ny==null?0:(gI=Ny.foregroundAnimation)==null?0:gI.url)||(Ny==null?0:(YU=Ny.foregroundAnimation)==null?0:YU.payload))||(S()!==K().length-1?(F(S()+1),U()):O()&&_.TK(O()))}},p=function(Xn){return N.value.children[Xn].children[0]},e=function(){for(var Xn=0;Xn<S();Xn++)p(Xn).style.transform=
"scaleX(1)"},E=function(){I||(a()?P(!1):(S()===K().length-1&&O()&&_.TK(O()),p(S()).style.transform="scaleX(1)",S()!==K().length-1&&(F(S()+1),U())))},Y=function(){I||(a()?P(!1):(p(S()).style.transform="scaleX(0)",S()!==0&&F(S()-1),U()))},w=function(){P(!0)},x=function(){p(S()).style.transform="scaleX(1)";
S()!==K().length-1?(F(S()+1),U()):O()&&_.TK(O())};
y=function(){I=!1;R=setTimeout(function(){P(!0);I=!0},300)};
var q=function(){clearTimeout(R);I&&a()&&P(!1)};
_.Qi(function(){if(a()){var Xn;(Xn=t)==null||Xn.pause();var Ny;(Ny=n.lottieEl)==null||Ny.pause()}else{var gI;(gI=t)==null||gI.play();var YU;(YU=n.lottieEl)==null||YU.play()}},"vAvZob");
_.Qi(function(){e();S()===h()&&U()},"uSlfE");
var dI=function(Xn){Xn.key==="ArrowLeft"?Y():Xn.key==="ArrowRight"&&E()},L4=function(Xn){if(Xn.target===X.value){(Xn=O())&&_.TK(Xn);
clearTimeout(R);var Ny;(Ny=t)==null||Ny.cancel();var gI;(gI=n.lottieEl)==null||gI.stop();window.removeEventListener("keydown",dI);window.removeEventListener("yt-popup-closed",L4)}},Rq=function(Xn){if(Xn.target===X.value){var Ny;
(Ny=n.lottieEl)==null||Ny.play();window.addEventListener("keydown",dI);window.addEventListener("yt-popup-closed",L4)}};
_.wg(function(){e();U();window.addEventListener("yt-popup-opened",Rq)});
return _.M("yt-stories-viewer-view-model",{el:X,class:_.P2("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.M("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.M("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":_.Zv(Y),"on:mousedown":_.Zv(y),"on:mouseup":_.Zv(q),"on:mouseleave":_.Zv(q)}),_.M("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":_.Zv(E),"on:mousedown":_.Zv(y),"on:mouseup":_.Zv(q),"on:mouseleave":_.Zv(q)})),
_.M("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},_.M(_.rC,{data:K},{storiesItemViewModel:function(Xn,Ny){var gI=Xn.data;return _.M(_.H,{cond:function(){return Math.abs(Ny()-S())<=1},
then:function(){var YU={};return _.M("div",{class:_.P2("ytStoriesViewerViewModelStoryItem",(YU.ytStoriesViewerViewModelActiveStoryItem=function(){return Ny()===S()},YU))},_.M(W_P,{data:gI,
pauseAutoNavigation:w,navigateToNextItemOnLottieComplete:x,isVisible:function(){return Ny()===S()},
animationRef:n}))}})}})),_.M("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:N},_.M(_.Gw,{each:K},function(){return _.M("div",{class:"ytStoriesViewerViewModelProgressBar"},_.M("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.M("div",{class:"ytStoriesViewerViewModelTopBarContainer"},_.M(_.mI,{data:U6P,
alt:"YouTube Logo",className:"ytStoriesViewerViewModelYouTubeLogo"}),_.M("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.M(_.rC,{data:function(){return b.data().menuButton}},{buttonViewModel:function(Xn){return _.M(_.EG,{data:Xn.data,
className:"ytStoriesViewerViewModelActionButton"})}}),_.M(_.rC,{data:function(){return b.data().muteButton}},{toggleButtonViewModel:function(Xn){return _.M(_.Ke,{data:Xn.data,
className:"ytStoriesViewerViewModelActionButton"})}}),_.M(_.rC,{data:u},{buttonViewModel:function(Xn){return _.M(_.EG,{data:Xn.data,
className:"ytStoriesViewerViewModelActionButton"})}}))))},"zk"),"yt-stories-viewer-view-model",{props:{data:_.D4}});_.yd(_.T(function(b){var h=b.data;var y=_.ZR("yt-gen-ai-feedback-form-view-model"),S=[];return _.M("yt-gen-ai-feedback-form-view-model",{el:y,class:"ytGenAiFeedbackFormViewModelHost"},_.M(_.zv,{text:function(){return h().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.M("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.M(_.rC,{data:function(){return h().feedbackChips}},{toggleButtonViewModel:function(F){var a=F.data;
return _.M(_.Ke,{data:a,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(P){var K=a();K=_.c(K,_.zc);K=_.c(K==null?void 0:K.defaultButtonViewModel,_.cA).trackingParams;P?S.push(K):(P=S.indexOf(K),P>-1&&S.splice(P,1))}})}})),_.M(_.zv,{text:function(){return h().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.M("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.M(_.rC,{data:function(){return h().submitButton}},{buttonViewModel:function(F){return _.M(_.EG,{data:F.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){ayN(y.value,S,h().uniqueId)}})}}),_.M(_.rC,{data:function(){return h().moreFeedbackButton}},{buttonViewModel:function(F){return _.M(_.EG,{data:F.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"Ak"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.D4},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var Oi=function(){return _.g.apply(this,arguments)||this};
_.z(Oi,_.g);Oi.prototype.created=function(){VAY(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(p$2);var b=_.H9().resolve(_.UoA);b&&(b.container=this.ytPopupContainerBehavior);if(b=_.H9().resolve(_.nk))b.container=this.ytPopupContainerBehavior;if(b=_.H9().resolve(_.X$)){var h=this.ytPopupContainerBehavior;b.containerWasInjected?_.vX(Error("tj")):b.container=h}};
Oi.prototype.ensurePopupBelowPlayer=function(b,h){var y=_.H9().resolve(_.XS(_.bM));if(!y||!y.isOnWatch()||!_.ye())return!1;y=y.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.rq().height>y+this.getPopupHeight(b,h)?(b.style.top="auto",b.style.bottom="0px"):(b.style.top=y+"px",b.style.bottom="auto");return!0};
Oi.prototype.getPopupHeight=function(b,h){h&&(b.cachedPopupHeight=0);if(!b.cachedPopupHeight){h=0;var y=b.clientHeight,S=window.getComputedStyle(b);h+=parseInt(S.marginTop,10);h+=parseInt(S.marginBottom,10);b.cachedPopupHeight=y+h}return b.cachedPopupHeight};
Oi.prototype.getElement=function(b){return document.createElement(b)};
_.V([_.B(Y8F.YtPopupContainerBehavior),_.f("design:type",Object)],Oi.prototype,"ytPopupContainerBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],Oi.prototype,"ytComponentBehavior",void 0);_.V([_.Yx({disableElementRegistration:!0,is:"ytd-popup-container"})],Oi);
_.k(Oi,"ytd-popup-container",function(){if(WhN!==void 0)return WhN;var b=document.createElement("template");_.D(b,"\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");b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);return WhN=b},{mode:1});var pna;var JSA={};JSA.YtLogYpcFlowCommandsBehavior=[_.mx.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(b){_.c(b,KzP)&&(b=_.c(b,KzP))&&(b.serializedTransactionFlowLoggingParams?_.DxM(b.serializedTransactionFlowLoggingParams):b.serializedYpcCancelFlowLoggingParams?(b=b.serializedYpcCancelFlowLoggingParams)&&_.l9("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",b):b.serializedYpcResumeFlowLoggingParams?(b=b.serializedYpcResumeFlowLoggingParams)&&_.l9("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",b):b.serializedYpcPauseFlowLoggingParams?(b=b.serializedYpcPauseFlowLoggingParams)&&
_.l9("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",b):b.serializedYpcRefundFlowLoggingParams?(b=b.serializedYpcRefundFlowLoggingParams)&&PMf("YPC_EVENT_TYPE_START",b):b.serializedYpcDeactivateFlowLoggingParams?(b=b.serializedYpcDeactivateFlowLoggingParams)&&_.l9("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",b):b.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(b=b.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.l9("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",b))},
handleLogYpcFlowDismiss_:function(b){_.c(b,PHf)&&(b=_.c(b,PHf),b.serializedTransactionFlowLoggingParams?_.I05(b.serializedTransactionFlowLoggingParams):b.serializedYpcCancelFlowLoggingParams?(b=b.serializedYpcCancelFlowLoggingParams)&&_.l9("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",b):b.serializedYpcResumeFlowLoggingParams?(b=b.serializedYpcResumeFlowLoggingParams)&&_.l9("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",b):b.serializedYpcPauseFlowLoggingParams?(b=
b.serializedYpcPauseFlowLoggingParams)&&_.l9("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",b):b.serializedYpcRefundFlowLoggingParams&&(b=b.serializedYpcRefundFlowLoggingParams)&&PMf("YPC_EVENT_TYPE_CANCEL",b))}}];var eV2={};eV2.YtCancelRecurrenceBehavior=[_.ug.YtComponentBehavior,_.F6a,{attached:function(){var b=this;D8F(this,function(h,y){return b.ypcCancelRecurrenceHandler(h,y)})},
ypcCancelRecurrenceHandler:function(b,h){var y=this;if(!h||!h.ypcCancelRecurrenceEndpoint)return!1;if(!h.ypcCancelRecurrenceEndpoint.params)return _.v4(Error("Vl")),!0;_.kG(this.hostElement);var S=_.Ek.instance,F=_.H9().resolve(_.XS(_.zM));S&&_.ip(S,h)?_.f9(S,h).then(function(a){y.ypcCancelRecurrenceSuccess_(b,h,{data:a})},function(a){y.ypcCancelRecurrenceFailure_(b,h,a)}).thenCatch(function(){_.v4(Error("Wl"))}):F?F.requestDataForServiceEndpoint(h).then(function(a){y.ypcCancelRecurrenceSuccess_(b,
h,a)},function(a){y.ypcCancelRecurrenceFailure_(b,h,a)}).thenCatch(function(){_.v4(Error("Wl"))}):_.v4(Error("Xl"));
return!0},
ypcCancelRecurrenceSuccess_:function(b,h,y){_.VH(this.hostElement);y.data||(y={data:y});y.data&&y.data.actions&&_.jx(this.hostElement,y.data.actions,this.hostElement);y.data.messageRenderer?ZhA(h.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(h=h.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.l9("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",h);_.Sx(b,"yt-service-request-completed",y)},
ypcCancelRecurrenceFailure_:function(b,h,y){_.VH(this.hostElement);ZhA(h.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.Sx(b,"yt-service-request-error",{error:y,params:[b,h]})}}];var Cxd=function(b,h){_.bf.call(this,h)};
_.z(Cxd,aXP);var gkd={};gkd.YtCompleteTransactionBehavior=[_.ug.YtComponentBehavior,_.F6a,{attached:function(){var b=this;D8F(this,function(h,y){return b.ypcCompleteTransactionHandler(h,y)})},
completeTransaction:function(b,h){var y=this;h={payments_payload:window.btoa(h.integratorData),buybucket_params:b.data.buybucketParams,offer_params:b.data.offerParams};var S=_.H9().resolve(_.zM),F=b.data.completeTransactionEndpoint,a=this.get("ypcCompleteTransactionEndpoint.actions",F);a&&_.jx(this.hostElement,a,this.hostElement);return(a=_.Ek.instance)&&_.ip(a,F)?_.f9(a,F,h).then(function(P){return!P||(P==null?0:P.error)?(P=y.get("data.serializedTransactionFlowLoggingParams",b),_.UQ(new S0("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
P))):{data:P}}).then(function(P){return y.handleCompleteTransactionSuccess_(P,b)},function(){return y.handleCompleteTransactionFailure_(b)}):S.requestDataForServiceEndpoint(F,h).then(function(P){return y.handleCompleteTransactionSuccess_(P,b)},function(){return y.handleCompleteTransactionFailure_(b)})},
handleCompleteTransactionSuccess_:function(b,h){b.data||(b={data:b});if(b.data.messageRenderer)return _.UQ(new Cxd(b.data.messageRenderer));if(b.data.trackingParams){var y=_.UE(),S=_.Ae();y&&S&&_.Vh(y,S,_.I_(b.data.trackingParams))}h=this.get("data.serializedTransactionFlowLoggingParams",h);KlX(h);return _.$p(b)},
handleCompleteTransactionFailure_:function(b){b=this.get("data.serializedTransactionFlowLoggingParams",b);_.qC("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",b);return _.UQ(new S0("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",b))},
ypcCompleteTransactionHandler:function(b,h){var y=this;if(!h.ypcCompleteTransactionEndpoint)return!1;if(!h.ypcCompleteTransactionEndpoint.transactionParams)return _.v4(Error("Yl")),!0;h.ypcCompleteTransactionEndpoint&&h.ypcCompleteTransactionEndpoint.gtmData&&_.jS(h.ypcCompleteTransactionEndpoint.gtmData);var S=_.H9().resolve(_.XS(_.zM));if(S){_.kG(this.hostElement);var F=_.Ek.instance;F&&_.ip(F,h)?_.f9(F,h).then(function(a){return!a||(a==null?0:a.error)?(a=y.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
h),_.UQ(new S0("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",a))):{data:a}}).then(function(a){_.Sx(b,"yt-service-request-completed");
y.ypcCompleteTransactionSuccess_(h,a)},function(){return y.ypcCompleteTransactionFailure_(h)}):S.requestDataForServiceEndpoint(h).then(function(a){_.Sx(b,"yt-service-request-completed");
y.ypcCompleteTransactionSuccess_(h,a)},function(){return y.ypcCompleteTransactionFailure_(h)})}return!0},
ypcCompleteTransactionSuccess_:function(b,h){_.VH(this.hostElement);h.data||(h={data:h});_.F8(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);h.data.messageRenderer||h.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(b):(_.jS('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",b));h.data.actions&&(b=lNa(h.data.actions),h=qVN(h.data.actions),b.length&&_.dh(this.hostElement,
b),h.length&&_.jx(this.hostElement,h,this.hostElement))},
ypcCompleteTransactionFailure_:function(b){_.VH(this.hostElement);_.F8(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",b,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(b,h,y){if(h=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",h))h={serializedTransactionFlowLoggingParams:h},y&&(h.errorType=y),_.qi(b,h),_.x2()}}];var sJx={};sJx.YtEndpointHandlerWithYpcBehavior=[_.F6a,_.mx.YtActionHandlerBehavior,[{openWalletDialog:function(b,h,y,S,F,a,P){var K=this,n=_.wS();h=h.replace(/-/g,"+").replace(/_/g,"/");var X=_.HT().get("hl");_.DVy(_.Fo(_.xg),h,n.resolve,F,function(u){a&&a();n.reject(u)},X,function(u){return K.onServerBackendAnalyticEvent_(b,y,u)},this.onDialogClose_.bind(this),S,P);
return n.promise},
openFixFlowDialog:function(b,h,y,S){b=b.replace(/-/g,"+").replace(/_/g,"/");_.Fo(_.xg).openFixFlowDialog(b,h,y,S)},
onDialogClose_:function(){_.F8(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(b,h,y){_.Sx(b,"yt-commerce-action-init-done");h&&_.dh(this.hostElement,[h,{backend_analytics:y}])}}],
_.xN.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(b,h){b=this.get("data.nativeFlowEndpoint",h);h=this.get("data.fallbackEndpoint",h);b?_.dh(this.hostElement,[b]):h&&_.Sx(this.hostElement,"yt-navigate",{endpoint:h})}}],
eV2.YtCancelRecurrenceBehavior,gkd.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 b=this;D8F(this,function(h,y,S){return b.handleYPCEndpoint(h,y,S)});
this.ypcRegisterActionMapJobId_=_.VT(_.xP,function(){b.registerActionMap(b.buyFlowActionMap_)})},
detached:function(){var b=this;_.xP.cancelJob(this.ypcRegisterActionMapJobId_);_.VT(_.xP,function(){b.unregisterActionMap(b.buyFlowActionMap_)})},
handleYPCEndpoint:function(b,h,y){var S=h.ypcGetCartEndpoint;if(S){_.Ua("commerce_transaction");var F=S.gtmId;F&&_.dc(F);(S=S.gtmData)&&_.jS(S)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",h)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(b,h),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",h)!=null?(this.handleYPCFixInstrumentEndpoint_(b,h),!0):h.ypcPauseSubscriptionCommand?(MWf(this.hostElement,b,h,y),
!0):h.ypcResumeSubscriptionCommand?(HvE(this.hostElement,b,h),!0):h.getPaymentInstrumentsParamsCommand?(KXN(this.hostElement,b,h),!0):h.ypcHandleTransactionEndpoint?(LXA(this.hostElement,b,h,y),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(b,h){var y=this;_.pI("ttcr",void 0,"commerce_transaction");h=h.ypcGetCartEndpoint;var S=h.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,F=S.encryptedPurchaseParams,a=S.serializedTransactionFlowLoggingParams,P=S.serializedPaymentsClientParams,K=this.createGetCartResponseFromParams_(S,h.offerParams,a);this.changeButtonState(b,!0);_.le(this.openWalletDialog(b,F,S.ypcLogWalletAnalyticDataEndpoint,a,function(){y.changeButtonState(b,!1)},function(){y.changeButtonState(b,
!1)},P).then(function(n){return y.handleBuyFlowCompleteCallback_(b,K,n)},function(){return y.handleOnLoadError(K)}).then(function(n){return void y.handlePostPurchaseSuccess_(b,K,n)},function(n){return void y.handlePostPurchaseError_(n)}),function(){y.changeButtonState(b,!1);
b instanceof Element&&_.Sx(b,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(b,h,y){var S=b.completeTransactionEndpoint,F=b.handleTransactionEndpoint;h={data:{offerParams:window.btoa(h),serializedTransactionFlowLoggingParams:y}};F?h.data.handleTransactionEndpoint=F:h.data.completeTransactionEndpoint=S;b.onCartDismissCommand&&(h.data.onCartDismissCommand=b.onCartDismissCommand);return h},
onGetCartServiceRequestCompleted_:function(b,h){var y=this,S=b.target;if(h&&h.data&&h.data.messageRenderer)_.VH(this.hostElement),this.handleMessageRenderer_(h.data.messageRenderer),this.changeButtonState(S,!1);else{var F=this.get("data.encryptedPurchaseParams",h),a=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",h),P=this.get("data.ypcLogWalletAnalyticDataEndpoint",h),K=this.get("data.serializedPaymentsClientParams",h),n=this.getLoggingParams_(h);if(n||F||a)b.stopPropagation(),_.pI("ttcr",
void 0,"commerce_transaction"),F||_.VH(this.hostElement),this.changeButtonState(S,!1),a?_.F8(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.QC("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:a}}},this]):F&&(this.changeButtonState(S,!0),b=null,b=this.openWalletDialog(S,F,P,n,function(){_.VH(y.hostElement);y.changeButtonState(S,!1)},function(){_.VH(y.hostElement);
y.changeButtonState(S,!1)},K),_.le(b.then(function(X){return y.handleBuyFlowCompleteCallback_(S,h,X)},function(){return y.handleOnLoadError(h)}).then(function(X){return y.handlePostPurchaseSuccess_(S,h,X)},function(X){return y.handlePostPurchaseError_(X)}),function(){y.changeButtonState(S,!1);
_.Sx(S,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(b,h){h&&h.endpoint&&h.endpoint.ypcGetCartEndpoint&&!h.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",h.endpoint.ypcGetCartEndpoint)&&_.jx(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",h.endpoint.ypcGetCartEndpoint)],b.target),_.kG(this.hostElement),this.changeButtonState(b.target,!0))},
onServiceRequestError_:function(b,h){if(h&&h.params&&h.params.length){h=_.L(h.params);for(var y=h.next();!y.done;y=h.next())if((y=y.value)&&y.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",y.ypcGetCartEndpoint)&&_.jx(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",y.ypcGetCartEndpoint)],b.target);_.VH(this.hostElement);this.changeButtonState(b.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(b,h,y){var S=y.integratorData;return S==null||S===""||y.error!=null?(S=this.getLoggingParams_(h),String(y.error)==="-1"?(h.data.onCartDismissCommand&&_.jx(this.hostElement,[h.data.onCartDismissCommand],b),_.UQ(new S0("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",S,!0))):_.UQ(new S0("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",S))):h.data.handleTransactionEndpoint?Ped(this.hostElement,h.data.handleTransactionEndpoint,{payments_payload:S,funds_guarantee_callback_client_data:y.integratorClientCallbackData}):
this.completeTransaction(h,y)},
handlePostPurchaseSuccess_:function(b,h,y){h=y.data;var S=!1,F,a;if(h&&((F=h.command)==null?0:(a=F.commandExecutorCommand)==null?0:a.commands)){var P,K;F=(P=h.command)==null?void 0:(K=P.commandExecutorCommand)==null?void 0:K.commands;for(P=0;P<F.length;P++)if(_.c(F[P],_.vda)){S=!0;break}}S||(h&&h.gtmDatas&&h.gtmDatas.length?_.jS(h.gtmDatas[0]):_.jS('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));y.data&&y.data.actions&&(h=lNa(y.data.actions),y=qVN(y.data.actions),h.length&&
_.dh(this.hostElement,h),y.length&&_.jx(this.hostElement,y,b))},
handlePostPurchaseError_:function(b){b&&b.payload&&b.payload.isUserDismiss||_.QT(Error("$l"))},
handleOnLoadError:function(b){b=this.getLoggingParams_(b);return _.UQ(new S0("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",b))},
getLoggingParams_:function(b){return this.get("data.serializedTransactionFlowLoggingParams",b)},
handleMessageRenderer_:function(b){var h=_.ln(b,"renderer"),y=_.QC("openPopupConfig");h==="confirmDialogRenderer"&&y&&_.F8(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:y.popupTypeMap[h],popup:b}},this])},
handleYPCFixInstrumentEndpoint_:function(b,h){var y=this,S=h.ypcFixInstrumentEndpoint;h=S.encryptedFixInstrumentParameters;this.logFixFopEvent_(S,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(b,!0);this.openFixFlowDialog(h,function(F,a){y.onFixFlowCompleteCallback_(S,F,a)},function(){return y.changeButtonState(b,!1)},function(){y.changeButtonState(b,!1);
y.logFixFopEvent_(S,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(b,h,y){var S=_.hj("payments.business.integration.scenario.FixInstrument");if(h==S.IntegratorCallbackType.ON_COMPLETE){h="FIX_FOP_EVENT_TYPE_CANCEL";var F=null;y.error!=null?y.error!=S.OnCompleteCallbackError.USER_CANCELLED&&(_.jx(this.hostElement,[b.errorAction],this.hostElement),h="FIX_FOP_EVENT_TYPE_FAILURE",F="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.jx(this.hostElement,[b.successAction],this.hostElement),h="FIX_FOP_EVENT_TYPE_SUCCESS");_.jx(this.hostElement,[b.onFinishAction],
this.hostElement);this.logFixFopEvent_(b,h,F)}},
logFixFopEvent_:function(b,h,y){(b=b.serializedFixFopLoggingParams)?(h={eventType:h,serializedFixFopLoggingParams:b},y!=null&&(h.errorType=y),_.qi("fixFopFlow",h),_.x2()):_.QT(Error("am"))},
changeButtonState:function(b,h){_.r("enable_ypc_spinners")&&b&&(b.is==="yt-button-renderer"||b.is==="ytd-button-renderer")&&(b.disabled=h)}}];var Y12=function(b){this.JSC$33249_clientRoot=b;this.feedbackCollectorActionMap={"yt-help-dialog-requested":Ovf,"yt-feedback-dialog-requested":u0A,"yt-signal-action-help":Nbq,"yt-signal-action-send-feedback":tWf,"yt-send-feedback-action":cUq,"yt-user-feedback-endpoint":RWA};_.LP(_.$J.getInstance(),this.feedbackCollectorActionMap,this.JSC$33249_clientRoot)},ToX;var GLA=function(b){this.JSC$33254_clientRoot=b;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":zWE.bind(null,this.JSC$33254_clientRoot),"yt-signal-action-delete-all-downloads":Iyf,"yt-signal-action-delete-download":Bbx,"yt-signal-action-delete-playlist-download":AUF,"yt-signal-action-install-pwa":gyE,"yt-signal-action-refresh-downloads":eWf,"yt-offline-video-endpoint":Y6F,"yt-offline-playlist-endpoint":GIP,"yt-update-local-app-setting-command":VWa,"yt-offline-orchestration-action-command":ivE,
"yt-signal-action-undo-delete-download":pmx,"yt-local-watch-history-command":lyF,"yt-signal-action-mark-download-to-mobile-edu-shown":xkA};_.LP(_.$J.getInstance(),this.downloadManagerActionMap,this.JSC$33254_clientRoot);_.ik.instance=new _.ik},kLP;var NR=function(){var b=_.g.apply(this,arguments)||this;b.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_"};b.remoteApi_=null;return b};
_.z(NR,_.g);_.d=NR.prototype;
_.d.ready=function(){_.r("polymer_enable_mdx")&&(DqP({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.r("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.r("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.r("enable_cast_short_lived_lounge_token")}),_.zE("yt-remote-connection-change",this.handleConnectionChange_,this),_.zE("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=eyf())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.d.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.d.handleConnectionChange_=function(b){(this.mdxConnected=b)?(b=WPP(),!b&&LPN()&&Pm2()&&(b={key:"cast-selector-receiver",name:Pm2()}),b=b.name):b=null;this.receiverName=b;_.nq(this.remoteApi_);(this.remoteApi_=eyf())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.d.handleReceiverAvailabilityChange_=function(){var b=BQf();LPN()&&_.Wd("yt-remote-cast-available")&&b.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=b.length>0};
_.d.handleRemoteQueueChange_=function(){var b=this.currentVideoId_,h=this.currentListId_,y=zg(this.remoteApi_);this.currentVideoId_=y.videoId;this.currentListId_=y.listId;this.currentVideoId_&&_.F8(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.r("polymer_enable_mdx_queue")?this.currentListId_:null,b,h])};
_.d.handleAddToQueueAction_=function(b){b=_.c(b,lPP);this.remoteApi_&&(b.videoId?this.remoteApi_.addVideo(b.videoId):b.playlistId&&this.remoteApi_.addPlaylist(b.playlistId))};
_.d.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.d.handleInsertInQueueAction_=function(b){b=_.c(b,qzx);this.remoteApi_&&b.videoId&&this.remoteApi_.JSC$20369_insertVideo(b.videoId)};
_.d.handleRemoveFromQueueAction_=function(b){b=_.c(b,xpf);this.remoteApi_&&b.videoId&&this.remoteApi_.JSC$20369_removeVideo(b.videoId)};
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],NR.prototype,"ytActionHandlerBehavior",void 0);_.V([_.C(),_.f("design:type",Object)],NR.prototype,"appId",void 0);_.V([_.C(),_.f("design:type",Boolean)],NR.prototype,"mdxConnected",void 0);_.V([_.C(),_.f("design:type",Boolean)],NR.prototype,"receiverAvailable",void 0);_.V([_.C(),_.f("design:type",Object)],NR.prototype,"receiverName",void 0);_.V([_.C(),_.f("design:type",Object)],NR.prototype,"currentVideoId_",void 0);
_.V([_.C(),_.f("design:type",Object)],NR.prototype,"currentListId_",void 0);_.V([_.sB({is:"yt-mdx-manager",disableElementRegistration:!0})],NR);_.k(NR,"yt-mdx-manager",void 0,{mode:2});var Vuq;var EkA;var tG=function(){var b=_.g.apply(this,arguments)||this;b.APP_IDS={ytr:3,ytm:5};b.JSC$21606_timeoutId_=0;b.actionMap={"yt-open-create-family-dialog":"open"};return b};
_.z(tG,_.g);_.d=tG.prototype;_.d.created=function(){VAY(2200)};
_.d.detached=function(){this.observer_&&this.observer_.disconnect()};
_.d.open=function(b,h){var y=this,S=b.serializedYpcFamilyCreateLoggingParams;this.JSC$21606_timeoutId_=setTimeout(this.abort_.bind(this,b.postFlowErrorEndpoint,S),3E4);h&&(this.onReadyCallback_=h);var F=_.$x(this.hostElement).querySelector("#unicorn-iframe");S&&S&&LlF("ypcFamilyCreateFlowStarted",S);_.nLY("family_creation",function(){var a=_.hj("gapi.family_creation.render");_.hj("gapi.config.update")("iframes/family_creation/url",y.getFamilyCreationUrlWithUnicornParams_());var P=3;b.appId&&b.appId in
y.APP_IDS&&(P=y.APP_IDS[b.appId]);P={authUser:_.QC("SESSION_INDEX")||0,clientId:P,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.QC("HL"),initialflow:[4,5,6,7],m:y.isMobile?1:0,onFlowComplete:y.onUnicornFlowComplete_.bind(y,b.postFlowSuccessEndpoint,S),onError:y.onUnicornFlowError_.bind(y,b.postFlowErrorEndpoint,S),onReady:y.onUnicornFlowReady_.bind(y,b.referencePcidParams)};a(F,P)})};
_.d.close=function(){_.$x(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.d.onUnicornFlowComplete_=function(b,h){this.close();h&&h&&LlF("ypcFamilyCreateFlowSucceeded",h);_.Sx(this.hostElement,"yt-navigate",{endpoint:b})};
_.d.onUnicornFlowError_=function(b,h){this.close();h&&LlF("ypcFamilyCreateFlowCancelled",h);_.Sx(this.hostElement,"yt-navigate",{endpoint:b})};
_.d.onUnicornFlowReady_=function(b){var h=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();b&&_.hj("gapi.family_creation.setConfig")(0,b);this.observer_=new MutationObserver(function(){_.$x(h.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.$x(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.$x(this.hostElement).querySelector("#dialog").open()};
_.d.getFamilyCreationUrlWithUnicornParams_=function(){return _.QC("YTR_FAMILY_CREATION_URL")};
_.d.getCurrentUrl_=function(){return document.location.href};
_.d.abort_=function(b,h){this.clearTimeout_();this.onUnicornFlowError_(b,h)};
_.d.clearTimeout_=function(){clearTimeout(this.JSC$21606_timeoutId_)};
_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],tG.prototype,"ytActionHandlerBehavior",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],tG.prototype,"isMobile",void 0);_.V([_.C(),_.f("design:type",Object)],tG.prototype,"onReadyCallback_",void 0);_.V([_.C(),_.f("design:type",Object)],tG.prototype,"observer_",void 0);_.V([_.sB({is:"yt-create-family-dialog",disableElementRegistration:!0})],tG);
_.k(tG,"yt-create-family-dialog",function(){if(EkA===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);var h=b.content,y=h.insertBefore;Vuq===void 0&&(Vuq=document.createElement("template"));var S=Vuq;y.call(h,S.content.cloneNode(!0),b.content.firstChild);EkA=b}b=EkA;return b},{mode:2});var iYN;var fQx;var rV=function(){var b=_.g.apply(this,arguments)||this;b.STEP=1;b.BLOCK_ON=80;b.MIN_PROGESS=0;b.MAX_PROGESS=100;return b};
_.z(rV,_.g);_.d=rV.prototype;_.d.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.d.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));_.H9().addProvider({provide:X$F,useValue:this})};
_.d.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.d.finish=function(){var b=this;this.progress=this.MAX_PROGESS;Q6Y(function(){b.progress==b.MAX_PROGESS&&(b.hostElement.hidden=!0)})};
_.d.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.tm.Object.defineProperties(rV.prototype,{progress:{configurable:!0,enumerable:!0,set:function(b){this.progress_=b;var h="scaleX("+b/this.MAX_PROGESS+")",y=_.$x(this.hostElement).querySelector("#progress").style;y.transform=h;y.webkitTransform=h;this.hostElement.setAttribute("aria-valuenow",String(b))},
get:function(){return this.progress_}}});
_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],rV.prototype,"ytComponentBehavior",void 0);_.V([_.sB({is:"yt-page-navigation-progress",disableElementRegistration:!0})],rV);
_.k(rV,"yt-page-navigation-progress",function(){if(fQx===void 0){var b=document.createElement("template");_.D(b,'\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');b.content.insertBefore(_.l().content.cloneNode(!0),
b.content.firstChild);var h=b.content,y=h.insertBefore;iYN===void 0&&(iYN=document.createElement("template"));var S=iYN;y.call(h,S.content.cloneNode(!0),b.content.firstChild);fQx=b}b=fQx;return b},{mode:2});var wnF={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"},lQx={"font-size":"12px","font-style":"italic"},q12={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.h0N=function(){return _.Z(function(b){_.g3(b)})};var x6f=_.T(function(b){var h=function(){return b.data().subtext},y={};
return _.M("snackbar-view-model",{class:_.P2("snackbarViewModelHost",b.className)},_.M("div",{class:_.P2("snackbarViewModelEngagementBarWrapper",b.className)},_.M(_.H,{cond:function(){return b.data().image},
then:function(S){return _.M(_.mI,{data:S,alt:"",targetWidth:86,preserveWidth:!0,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",className:"snackbarViewModelImageContainer"})}}),_.M(_.H,{cond:function(){return b.data().imageContent},
then:function(){return _.M("div",{class:"snackbarViewModelAvatarContainer"},_.M(_.rC,{data:function(){return b.data().imageContent}},{decoratedAvatarViewModel:_.NY}))}}),_.M("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.M("div",{class:_.P2((y.snackbarViewModelTitle=!0,y.snackbarViewModelTitleWithSubtext=h,y))},_.M(_.zv,{text:function(){return b.data().text}})),_.M(_.H,{cond:h,
then:function(){return _.M("div",{class:"snackbarViewModelSubtext"},_.M(_.zv,{text:function(){return h()}}))}})),_.M(_.H,{cond:function(){return b.data().buttons},
then:function(){return _.M("div",{class:"snackbarViewModelButtonClassWrapper"},_.M(_.rC,{data:function(){return b.data().buttons}},{buttonViewModel:function(S){return _.M(_.EG,{data:S.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:b.target})}}))}})))},"Bk");_.yd(_.T(function(){function b(e,E,Y){R(e);U(Y);N("in");u(!0);h(e,E);P=setTimeout(function(){y()},E)}
function h(e,E){var Y,w=(Y=e.text)==null?void 0:Y.content;e=_.JB(e.rendererContext);w&&(E={label:w,command:e,durationMs:E},_.H9().resolve(_.ez).enqueue(E))}
function y(e){N("out");e&&clearTimeout(P)}
function S(){y(!0)}
function F(e){if(e){var E=e.snackbarViewModel,Y=e.durationMs,w=e.target;Y||(Y=3E3);E&&(e=_.H9().resolve(_.XS(_.py)))&&e.enqueue({isOpened:X,open:function(){b(E,Y,w)},
close:y},0)}}
var a=_.MS("snackbar-container"),P=void 0,K=_.L(_.pa(!1,void 0,"mDc5N")),n=K.next().value;K=K.next().value;var X=n,u=K;n=_.L(_.pa("out",void 0,"FpOs5e"));var O=n.next().value,N=n.next().value;n=_.L(_.pa(void 0,void 0,"jIDRob"));var t=n.next().value,R=n.next().value;n=_.L(_.pa(void 0,void 0,"kOA3Mb"));var I=n.next().value,U=n.next().value,p=_.Zv(function(){if(O()==="out"){u(!1);R(void 0);U(void 0);var e=_.H9().resolve(_.XS(_.py));e&&Fbq(e,0)}});
_.wg(function(){var e=_.H9().resolve(_.XS(_.B1F));e&&(e.showSnackbarFn=F,e.closeSnackbarFn=S)});
return _.M("snackbar-container",{class:"ytSnackbarContainerHost",el:a},_.M(_.H,{cond:function(){return X()&&!!t()},
then:function(){var e={};return _.M("div",{class:_.P2("ytSnackbarContainerSnackbarContainer",(e.ytSnackbarContainerMobile=!1,e.ytSnackbarContainerPivotBar=function(){var E;return!((E=_.H9().resolve(_.XS(_.WQE)))==null||!E())},e.ytSnackbarContainerOpened=function(){return X()&&O()==="in"},e.ytSnackbarContainerClosed=function(){return X()&&O()==="out"},e)),
"on:animationend":p},_.M(x6f,{data:function(){return t()},
target:function(){return I()}}))}}))},"Ck"),"snackbar-container");_.yd(_.bL5,"yt-tooltip");var QJf=_.oHN.ephemeralActionSelector;_.yd(_.T(function(){var b=_.NG(QJf);return _.M("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var h;return(h=b())==null?void 0:h.announcement})},"Dk"),"yt-ephemeral-actions");var tAP=new Map;var gSf=function(b,h){var y=this;this.handleError=b;this.logEventInternal=h;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){y.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
gSf.prototype.logError=function(b){this.handleError(b)};
gSf.prototype.logEvent=function(b,h){switch(b){case "IDB_DATA_CORRUPTED":_.r("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",h);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",h);break;case "IS_SUPPORTED_COMPLETED":_.r("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",h);break;case "QUOTA_EXCEEDED":m6f(this,h);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",h);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":b=Object.assign({},h,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",b)}};
var m6f=function(b,h){_.gN.getInstance().estimate().then(function(y){y=Object.assign({},h,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:c7A(y==null?void 0:y.usage),deviceStorageQuotaMbytes:c7A(y==null?void 0:y.quota)});b.logEventInternal("idbQuotaExceeded",y)})};var vkf=_.T(function(b){var h=_.ZR("yt-draggable"),y=b.onDrag,S=b.onDragStart,F=b.onDragEnd,a=_.h6(b,{allowClicks:!1,dragThreshold:5}),P=a.dragThreshold,K=a.allowClicks;b=a.children;a=a.className;var n=void 0,X=void 0,u=new _.xb(0,0),O=!1;_.wg(function(){n=new _.d4(h.value);X=new _.R0(t);N(n,X);if(K()){_.Wd8(n,P());var I;(I=h.value)==null||I.addEventListener("click",R,{capture:!0})}_.m2(function(){var U;(U=n)==null||U.dispose();if(K()){var p;(p=h.value)==null||p.removeEventListener("click",R,{capture:!0})}})});
var N=function(I,U){_.W3(I,"earlycancel",function(){K()&&(O=!1)});
_.W3(I,"start",function(p){S==null||S(p);p.defaultPrevented||K()&&(O=!0)});
_.W3(I,"beforedrag",function(p){n&&X&&(p.preventDefault(),u=new _.xb(p.clientX-n.startX,p.clientY-n.startY),X.start())});
_.W3(I,"end",function(){U.stop();F==null||F();u=new _.xb(0,0)})},t=function(){u&&y(u)},R=function(I){O&&(O=!1,I.stopPropagation(),I.preventDefault())};
return _.M("yt-draggable",{el:h,class:_.P2("ytDraggableComponentHost",a)},b)},"Ek");var bVA=_.T(function(b){var h=_.L(_.pa(0,void 0,"Qf0tbc")),y=h.next().value,S=h.next().value;h=function(F){var a={},P={};return _.M(vkf,{className:_.P2("ytdMiniplayerComponentResizer",(a.ytdMiniplayerComponentResizerDisabled=function(){return F===b.horizontalAlignment()||F===b.verticalAlignment()},a.ytdMiniplayerComponentResizerNorth=F==="north",a.ytdMiniplayerComponentResizerEast=F==="east",a.ytdMiniplayerComponentResizerSouth=F==="south",a.ytdMiniplayerComponentResizerWest=F==="west",a)),
onDragStart:function(){S(b.currentMiniplayerSize());if(b.onResizeStart)b.onResizeStart()},
onDrag:function(K){F!=="north"&&F!=="west"||K.scale(-1);var n;K=(n=F==="north"||F==="south")?K.y:K.x;var X=b.currentAspectRatio();n&&X>=1?K*=X:!n&&X<1&&(K/=X);n=K;b.onResize(y()+n)}},_.M("div",{class:_.P2("ytdMiniplayerComponentResizerCorner",(P.ytdMiniplayerComponentResizerNorthCorner=F==="north",P.ytdMiniplayerComponentResizerEastCorner=F==="east",P.ytdMiniplayerComponentResizerSouthCorner=F==="south",P.ytdMiniplayerComponentResizerWestCorner=F==="west",P))}))};
return _.M("div",{class:"ytdMiniplayerComponentResizers"},h("north"),h("east"),h("south"),h("west"))},"Fk");var haf=16/9;_.yd(_.T(function(){var b=_.ZR("ytd-miniplayer"),h=_.L(_.pa(new _.g1(NaN,NaN),void 0,"NHaFyc")),y=h.next().value,S=h.next().value;h=_.L(_.pa(!1,void 0,"a0rwG"));var F=h.next().value,a=h.next().value;h=_.L(_.pa(!1,void 0,"f1jSeb"));var P=h.next().value,K=h.next().value;h=_.L(_.pa(!1,void 0,"JojXKc"));var n=h.next().value,X=h.next().value;h=_.L(_.pa(!1,void 0,"FjS8Db"));var u=h.next().value,O=h.next().value;h=_.L(_.pa(!1,void 0,"z5WG9e"));var N=h.next().value,t=h.next().value;h=_.L(_.pa(!1,void 0,"eUzZd"));
var R=h.next().value,I=h.next().value;h=_.L(_.pa(haf,void 0,"XsBIy"));var U=h.next().value,p=h.next().value,e=_.L(_.pa(!1,void 0,"FJSvse"));h=e.next().value;var E=e.next().value;e=_.L(_.pa(!1,void 0,"VDUFL"));var Y=e.next().value,w=e.next().value;e=_.L(_.pa(void 0,void 0,"nFeh4b"));var x=e.next().value,q=e.next().value;e=_.L(_.pa(j0()?"west":"east",void 0,"T7co7c"));var dI=e.next().value,L4=e.next().value;e=_.L(_.pa("south",void 0,"QDUsLb"));var Rq=e.next().value,Xn=e.next().value;e=_.L(_.pa(400,
void 0,"F7Vdze"));var Ny=e.next().value,gI=e.next().value,YU=_.H9().resolve(_.Vp).miniplayerPropSignalMap[0],VN=YU.data,Hb=YU.externalPlaylistData;e=YU.toastData;var vF=YU.playabilityStatus,xU=YU.isReadyToResume,Xa=YU.isDisabled,rG=YU.watchWhile,Wb=YU.playerVe,Xx=YU.expandVe,Bb=YU.closeVe,oq=YU.readyToResumeVe,kU=YU.readyToResumeCloseVe,O7=YU.repositionVe,io=YU.resizeVe;YU=_.L(_.ya(xU));var cb=YU.next().value,QW=YU.next().value,vM=_.NG(_.iM.persistentPanelVisibleSelector),wG=!1,oN=!1,uo;_.wg(function(){S(_.rq());
b.value.addEventListener("animationend",function(lo){lo.target===b.value&&(t(!1),I(!1))});
WWA(b.value)});
_.KP("yt-window-resized",function(lo){lo&&S(lo)});
var dA=function(){uo&&p(uo.getVideoAspectRatio())},QN=function(){if(uo){var lo=uo.getPlayerState()===1;
cb()&&lo&&QW(!1)}},vb=function(){var lo=Xx();
if(lo){var IP=_.UE(3);IP&&_.lE(IP,lo)}},fA=function(){var lo=Bb(),IP=kU();
lo&&_.lE(_.UE(3),lo);xU()&&IP&&_.lE(_.UE(3),IP)};
_.KP("yt-activate-miniplayer",function(lo){var IP;return _.Z(function(j2){if(j2.nextAddress==1)return F()?j2.return():j2.yield((IP=_.H9().resolve(_.Vp).getPlayerElement())==null?void 0:IP.getPlayerPromise(),2);uo=j2.yieldResult;if(!uo)return j2.return();!Y()&&_.r("kevlar_watch_while_v2")&&(Xn(lo&&!_.r("kevlar_watch_while_bottom_align")?"north":"south"),L4(j0()?"west":"east"));var Jg=uo;Jg.addEventListener("onVideoDataChange",dA);Jg.addEventListener("onStateChange",QN);Jg.addEventListener("onExpandMiniplayer",
vb);Jg.addEventListener("onCloseMiniplayer",fA);p(uo.getVideoAspectRatio());a(!0);BvA()||t(!0);_.g3(j2)})});
_.KP("yt-deactivate-miniplayer",function(lo,IP){return _.Z(function(j2){if(!F())return j2.return();a(!1);QW(!1);I(lo);O(!1);K(!1);if(uo){var Jg=uo;Jg.removeEventListener("onVideoDataChange",dA);Jg.removeEventListener("onStateChange",QN);Jg.removeEventListener("onExpandMiniplayer",vb);Jg.removeEventListener("onCloseMiniplayer",fA)}BvA()||IP?IP&&t(!1):t(!0);_.g3(j2)})});
var bJ=function(){return!(rG()&&_.r("kevlar_watch_while_modern"))},ua=function(){var lo;
return!((lo=Hb())==null||!lo.contents)},kF=function(){var lo=Ny();
var IP=y();IP=Math.min(Math.min(IP.width,IP.height)-32,720);var j2=U(),Jg=bJ(),uR=ua()&&P(),Yb=Math.min(lo,IP);lo=new _.g1(192,Jg?116:192);j2=new _.g1(uR?haf:j2,1);Yb=new _.g1(Yb,Jg?Yb-76:Yb);Yb=j2.aspectRatio()>Yb.aspectRatio()?Yb.width/j2.width:Yb.height/j2.height;j2=j2.scale(Yb);lo.width<=j2.width&&lo.height<=j2.height||(lo=j2.aspectRatio()<=lo.aspectRatio()?lo.width/j2.width:lo.height/j2.height,j2.scale(lo),j2.width=Math.min(j2.width,IP),j2.height=Math.min(j2.height,IP));return new _.g1(j2.width,
_.Y7(192,j2.height+J7A(Jg,uR),720))},oa=function(){var lo=kF(),IP=bJ(),j2=ua()&&P();
return new _.g1(lo.width,lo.height-J7A(IP,j2))},PB=function(){var lo=function(IP){IP.target===b.value&&u()&&(O(!1),b.value.removeEventListener("transitionend",lo))};
BvA()||(b.value.addEventListener("transitionend",lo),O(!0));K(!P())};
_.Qi(function(){var lo=Wb(),IP=_.UE(3),j2=_.Ae(3);if(IP&&j2&&lo){_.Vh(IP,j2,lo);j2=O7();var Jg=io(),uR=Xx(),Yb=Bb(),B0=kU();uR&&Yb&&B0&&(_.Ea(IP,lo,[uR,Yb,B0]),_.fI(IP,[uR,Yb]));j2&&Jg&&_.Ea(IP,lo,[j2,Jg])}},"UBpUDd");
_.Qi(function(){var lo=oq();if(lo){var IP=_.UE(0),j2=_.Ae(0);IP&&j2&&(_.Vh(IP,j2,lo),_.fI(IP,[lo]))}},"fQpBzb");
YU={};return _.M("ytd-miniplayer",{el:b,class:_.P2("ytdMiniplayerComponentHost",(YU.ytdMiniplayerComponentVisible=function(){return(F()||N())&&!(rG()&&_.r("kevlar_watch_while_counterfactual"))},YU.ytdMiniplayerComponentAnimatingSnap=n,YU.ytdMiniplayerComponentAnimatingPlaylistExpand=u,YU.ytdMiniplayerComponentAnimatingFade=N,YU),function(){if(N()){var lo=Rq();
var IP=F(),j2=R();lo=IP?lo==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":j2?lo==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":lo==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else lo="";return lo}),
style:_.n9({top:function(){return Rq()==="north"?"16px":""},
right:function(){var lo=dI(),IP=vM();IP=(IP===void 0?0:IP)&&!j0()?400:0;return lo==="east"?16+IP+"px":""},
bottom:function(){return Rq()==="south"?"16px":""},
left:function(){var lo=dI(),IP=vM();IP=(IP===void 0?0:IP)&&j0()?400:0;return lo==="west"?16+IP+"px":""},
width:function(){return kF().width+"px"},
height:function(){return kF().height+"px"},
transform:function(){var lo=x();return lo?"translate("+lo.x+"px, "+lo.y+"px)":""}})},_.M("div",{class:"ytdMiniplayerComponentContent"},_.M(vkf,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(lo){var IP=pRA(dI(),Rq(),y(),kF(),x()),j2=oa();Math.abs(lo.clientY-(IP.y+j2.height))>15?(E(!0),lo=_.UE(3),IP=O7(),wG||(wG=!0,lo&&IP&&_.fI(lo,[IP])),lo&&IP&&_.lE(lo,IP)):lo.preventDefault()},
onDrag:function(lo){q(lo)},
onDragEnd:function(){var lo=A7a(pRA(dI(),Rq(),y(),kF(),x()),y(),kF()),IP=UIN(dI(),Rq(),y(),kF(),vM()),j2=UIN(lo.horizontalAlignment,lo.verticalAlignment,y(),kF(),vM());j2=new _.xb(j2.x-IP.x,j2.y-IP.y);var Jg;IP=IP.y+(((Jg=x())==null?void 0:Jg.y)||0)+kF().height/2;var uR=function(){dI()===lo.horizontalAlignment&&Rq()===lo.verticalAlignment||w(!0);L4(lo.horizontalAlignment);Xn(lo.verticalAlignment);q(void 0)},Yb=function(B0){B0.target===b.value&&n()&&(X(!1),uR(),b.value.removeEventListener("transitionend",
Yb))};
E(!1);Rq()==="south"&&IP>y().height?(uR(),_.H9().resolve(_.Vp).close()):(b.value.addEventListener("transitionend",Yb),X(!0),q(j2))}},_.M(_.H,{cond:F,
then:function(){return _.M(_.RvN,{isDisabled:Xa,playabilityStatus:vF,size:oa})}}),_.M(_.H,{cond:bJ,
then:function(){return _.M(_.r9Y,{isReadyToResume:cb,data:VN,expanded:P,onExpandClick:PB,playlistData:Hb})}}),_.M(_.H,{cond:h,
then:function(){return _.M("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.M(_.H,{cond:function(){return ua()&&P()||u()},
then:function(){return _.M(_.WAq,{className:"ytdMiniplayerComponentPlaylistPanel",data:Hb,hideHeaderText:!0,withinMiniplayer:!0})}}),_.M("div",{class:"ytdMiniplayerComponentToast"},_.M(_.zvF,{toastData:e}))),_.M(bVA,{onResize:function(lo){gI(_.Y7(192,lo,720))},
onResizeStart:function(){var lo=_.UE(3),IP=io();oN||(oN=!0,lo&&IP&&_.fI(lo,[IP]));lo&&IP&&_.lE(lo,IP)},
currentAspectRatio:U,currentMiniplayerSize:Ny,horizontalAlignment:dI,verticalAlignment:Rq}))},"Ik"),"ytd-miniplayer",{});var ywY=_.iM.persistentPanelVisibleSelector,cO=function(){var b=_.g.apply(this,arguments)||this;b.tabGesturesIsActive=!1;b.persistentPanelEnabled=_.r("enable_ai_companion");b.hasDelegation=!1;b.isFrostedGlassInitialized=!1;b.frostedGlassExp=_.r("web_frosted_glass");b.hasPendingWatchNavigation=!1;b.mastheadHiddenFocusWithinKillswitch=_.r("web_masthead_hidden_focus_within_killswitch");b.clientOnlyWizTooltipsEnabled=_.r("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
b.scrollAtTopInternal=!0;b.guideScrollTop=0;b.isTheaterModeSession=_.m$("START_IN_THEATER_MODE");b.iMaxTheaterMode=_.r("web_watch_imax_theater_mode");b.isFullWindowSession=_.m$("START_IN_FULL_WINDOW_MODE");b.hasCreateFamilyDialog=!1;b.mastheadHeight=56;b.networkStatusManager=new _.PX;b.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"};b.dynamicActionMap={"yt-run-attestation-command":function(h){var y=_.nfa.instance,S=_.c(h,_.nRM);return S?_.r("use_rta_manager_for_async")&&
(_.r("attmusi")&&_.r("attmusi_ue")?window.attmp:tj2())?pad(y,S,h.clickTrackingParams):U8N(y,S,h.clickTrackingParams):_.UQ(Error("si"))}};
b.isFrostedGlassDisabled=!1;b.isChannelOrPlaylistPage=!1;return b};
_.z(cO,_.g);_.d=cO.prototype;_.d.created=function(){var b=_.H9();_.r("kevlar_clear_duplicate_pref_cookie")&&_.VT(_.xP,function(){var h=_.Cn.get("PREF");h&&!/f\d=/.test(h)&&(h=_.rH("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=h?"PREF=null;domain="+h+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.r("gzip_gel_with_worker")&&_.ZZI();_.r("jspb_serialize_with_worker")&&w3A();_.r("web_worker_availability_check")&&r7x();_.r("nwl_init_killswitch")||ita().then(function(){_.xP.addLowPriorityJob(TQd)});
this.pageManagerAttachedPromise=_.wS();this.ytdAppBehavior.loadDepsPromise=_.wb([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.MG(this.onThrottledScroll,200,this);_.r("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);s_F();Fsx=!!_.hj("ytappsettings.initialized");VsP=_.hj("ytappsettings.previousValue");EEN=_.hj("ytappsettings.previousSnapshotTime");Fsx||(Fsx=!0,i9a());fNF();wvx();_.xZ("DEFERRED_DETACH",
_.r("kevlar_tuner_should_defer_detach"));_.xZ("REUSE_COMPONENTS",!0);_.xZ("STAMPER_STABLE_LIST",!0);_.xZ("SCHEDULED_LAZY_LIST",!0);_.xZ("openPopupConfig",U3A);_.xZ("useClickHandler",!0);_.r("kevlar_shell_cleanup")&&_.xP.addLowPriorityJob(UGP.bind(this,_.S5.caches));_.m$("IS_SHELL_LOAD")&&_.WT({shellStartupDurationMs:Math.round((0,_.NO)()-_.cT())});ala(this.networkStatusManager);_.r("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",mkx(wnF)),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!",
mkx(lQx)),console.log("%cVisit http://go/join-youtube-web to apply today.",mkx(q12)));_.V3f(b.resolve(_.W$f),1E3)};
_.d.ready=function(){var b=this;this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var h=dGA();h&&!_.r("external_fullscreen_killswitch")&&document.addEventListener(h,this.setFullscreen.bind(this));(h=window.matchMedia("(prefers-color-scheme: dark)"))&&h.addEventListener&&h.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged();if(h=_.H9().resolve(_.XS(_.HVo)))h.subscribe("navigation-start",
function(y){y.destinationPageSubtype==="watch"&&(b.hasPendingWatchNavigation=!0)}),h.subscribe("navigation-end",function(y){y.destinationPageSubtype==="watch"&&(b.hasPendingWatchNavigation=!1)})};
_.d.attached=function(){var b=this;_.Dh().processSignal("ci");_.r("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.h25?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.uG(_.CtN(),"SUCCESS");this.updateIconSet();_.hL(this.guideInnerContent,!1);_.bg().initVisibilityObserver();this.guideService.guideElement=this.guide;var h=document.createElement("ytd-miniplayer"),y=_.$x(this.hostElement).querySelector("#content");
_.$x(this.hostElement).insertBefore(h,y);_.Dh().processSignal("ma");_.H9().resolve(_.Vp).init(h);this.persistentPanelEnabled&&_.q0q(_.H9().resolve(_.HD),this.persistentPanelContainer,"APP");_.m$("IS_SHELL_LOAD")&&(y=document.createElement("ytd-network-status-banner"),_.$x(this.hostElement).insertBefore(y,h));_.r("kevlar_right_click_on_lockups")&&_.Op._onCaptureClick&&document.addEventListener("contextmenu",_.Op._onCaptureClick.bind(_.Op),!0);var S=function(){var F=_.pd("yt-page-navigation-progress");
_.$x(b.hostElement).appendChild(F)};
setTimeout(function(){_.Dh().parkOrScheduleJob(S,0,"eocs",16)},0);
_.r("service_worker_push_enabled")&&_.VT(_.xP,$nq);_.LP(_.$J.getInstance(),this.dynamicActionMap,this.hostElement);_.Sx(this.hostElement,"ytd-app-attached");_.Dh().processSignal("aa");r4F(this.hostElement);_.HL("gapi.load",_.nLY);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.VT(_.xP,
function(){var F=document.createElement("ytd-video-preview");_.$x(_.$x(b.hostElement).querySelector("#video-preview")).appendChild(F)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.VT(_.xP,function(){y7X();b.registerWithViewTransitionManager()});
if(_.E0()&&this.isAppDarkTheme()!==_.kg())this.onDarkModeToggledAction();else h=_.Vk()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==h&&(_.r("enable_dark_theme_only_on_shorts")?_.GM(_.r("enable_dark_theme_only_on_shorts_control")?window.location.href:_.Ln(window.location.href,{theme:"dark"})):_.vX(new _.Gn("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(C2E=new e6A(this.hostElement)),kLP=new GLA(this.hostElement),ToX=new Y12(this.hostElement),hFf=new bCA(this.hostElement)};
_.d.getThemeSettingsToLog=function(){var b=_.Vk()==="USER_INTERFACE_THEME_DARK";b=_.E0()?_.kg()?"os-dark":"os-light":b?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:b,cookiesEnabled:_.sM()}};
_.d.detached=function(){_.yh(this.guideInnerContent);_.xP.cancelJob(oEX);oEX=0;_.xP.cancelJob(H9P);H9P=0;_.zk5(tsd);tsd.length=0;uvd=_.owN=null;_.bg().dispose();_.r("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.Po(_.$J.getInstance(),C2E.playlistHandlerActionMap,C2E.JSC$32958_clientRoot);_.Po(_.$J.getInstance(),kLP.downloadManagerActionMap,kLP.JSC$33254_clientRoot);_.Po(_.$J.getInstance(),ToX.feedbackCollectorActionMap,ToX.JSC$33249_clientRoot);
for(var b=_.L(hFf.eventListeners),h=b.next();!h.done;h=b.next()){var y=_.L(h.value);h=y.next().value;y=y.next().value;y=_.L(y);for(var S=y.next();!S.done;S=y.next()){var F=_.L(S.value);S=F.next().value;F=F.next().value;h.removeEventListener(S,F)}}_.Po(_.$J.getInstance(),hFf.autonavPauseActionMap,hFf.JSC$20551_clientRoot)};
_.d.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.HT().getFlag(186)};
_.d.computeIsInlinePreviewEnabled=function(b,h,y){return!y&&_.JeE({miniplayerIsActive:b,miniplayerPlaybackState:h})};
_.d.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.$8({type:"SET_FROSTED_GLASS_MODE",payload:!_.r("web_frosted_glass")||this.isFrostedGlassDisabled?"none":!this.isFrostedGlassInitialized&&this.applyFrostedGlassToChipBar?"loading-with-chipbar":this.isFrostedGlassInitialized||this.applyFrostedGlassToChipBar?this.applyFrostedGlassToChipBar?"with-chipbar":"without-chipbar":"loading-without-chipbar"}))};
_.d.computeIsFrostedGlassDisabled=function(b,h,y,S){return b||h||y||S&&_.r("web_frosted_glass_disable_watch")};
_.d.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.r("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.d.computeIsHomePage=function(b,h){if(!b||h==null||!h.endpoint)return!1;var y;return((y=_.c(h.endpoint,_.O0))==null?void 0:y.browseId)==="FEwhat_to_watch"};
_.d.updateIsChannelOrPlaylistPage=function(){if(_.r("web_frosted_glass")){var b,h,y=(h=(b=_.H9().resolve(_.XS(_.bM)))==null?void 0:b.getCurrentPage())==null?void 0:h.pageSubtype;this.isChannelOrPlaylistPage=y?["channel","channels","playlist"].includes(y):!1}};
_.d.scheduleFrostedGlassInitialization=function(){var b=this;_.r("web_frosted_glass")&&_.Dh().parkOrScheduleJob(function(){b.isFrostedGlassInitialized=!0},0,_.qH(["eocs",
"cr"]),300)};
_.d.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.SCe(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.$8({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.$8({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.d.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(wHP(!0))};
_.d.onYtSignalActionRequestPersistentStorage=function(){if(!_.r("request_persistent_storage_killswitch")){var b=_.H9().resolve(_.blN);b.cachedPersistStatePromise||(b.cachedPersistStatePromise=Mya())}};
_.d.handleYtChannelCreationFormEndpoints=function(b){b&&this.ytComponentBehavior.resolveCommand(b)};
_.d.handleShowEngagementPanelEndpoint=function(b){b&&this.ytComponentBehavior.resolveCommand(b)};
_.d.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(wHP(!1))};
_.d.initIconDefs=function(b,h){var y=document.createElement("iron-iconset-svg");y.name=b;b=document.createElementNS("http://www.w3.org/2000/svg","svg");y.appendChild(b);b.appendChild(h);document.body.appendChild(y);return y};
_.d.onWindowResized=function(){_.F8(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var b=_.VI.getInstance();b.documentWidth_=document.body.clientWidth;FDq(b)};
_.d.onWindowScrolled=function(){var b=_.H9().resolve(_.bM).getCurrentPage();if(b!=null&&b.getScrollTop){var h=this.ytdReduxBehavior,y=h.dispatch;b=b.getScrollTop()<=0;y.call(h,_.$8({type:"SET_SCROLL_AT_TOP",payload:b}))}};
_.d.guideIsVisibleButNotPersistentSelectorChanged=function(){var b=_.H9().resolve(_.bM).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=b.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"),
b.setScrollTop(this.guideScrollTop));_.aw(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.d.getCurrentPageScrollableElementType=function(){var b=_.H9().resolve(_.bM).getCurrentPage();if(b&&b.getPageScrollingElement())return b.getPageScrollingElement().nodeName};
_.d.observeGuideVisibility=function(){var b=_.VI.getInstance(),h=this.miniGuideVisible;b.guidePersistentAndVisible_=this.guidePersistentAndVisible;b.miniGuideVisible_=h;FDq(b)};
_.d.observePersistentPanelVisibility=function(){var b=_.VI.getInstance();b.persistentPanelVisible_=this.persistentPanelVisible;FDq(b)};
_.d.handleEduDismissAction=function(b){b&&b.eduDismissAction&&(_.F8(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.ju5.getInstance(),_.G2.set(b.eduDismissAction.key+"-dismissed",!0))};
_.d.handleEduImpressionAction=function(b){if(b&&b.eduImpressionAction){var h=_.ju5.getInstance();b=b.eduImpressionAction.key;h.JSC$13368_eduDisplayedThisLoad_[_.d3W[b].setKey||b]=!0;_.G2.set(b+"-impression",parseInt(_.G2.get(b+"-impression")||0,10)+1)}};
_.d.onYtSignalActionConfirmMentionsEdu=function(){_.F8(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.wD.getInstance();_.EN.set("edu-dismissed",!0)};
_.d.onYtSignalActionRecordMentionsEduImpression=function(){_.wD.getInstance();var b=_.EN.set,h=parseInt(_.EN.get("edu-impressions"),10);b.call(_.EN,"edu-impressions",(isFinite(h)?h:0)+1)};
_.d.onYtPageManagerAttached=function(b){var h;((h=_.mi(b))==null?void 0:h.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.d.onInvokeInstrumentManagerAction=function(b,h){Ilf(h,b)};
_.d.updateIconSet=function(){var b=this.hostElement.querySelector("#masthead");if(b){var h=_.KZ(b),y=h.querySelector("g#yt-logo-updated");y&&(b=document.createElementNS("http://www.w3.org/2000/svg","defs"),b.appendChild(y.cloneNode(!0)),(h=h.querySelector("g#yt-logo-red-updated"))&&b.appendChild(h.cloneNode(!0)),this.initIconDefs("yt-logos-ext",b))}};
_.d.updateMastheadData=function(){var b=this,h,y,S,F,a;return _.Z(function(P){if(P.nextAddress==1){h=b.data;y=b.hostElement.querySelector("#masthead");if(!y)return P.return();_.Ob(b,function(){y.data=b.topbarData});
if(!b.get("response.topbar",h)||b.get("response.topbar.responseContext.maxAgeSeconds",h)===0)return P.jumpTo(0);if(S=_.H9().resolve(_.Hw))return P.yield(S(),6);F=_.H9().resolve(_.QQ);return P.yield(F.put("service:topbar:fallback",new _.mE({innertubeResponse:b.get("response.topbar",h)})),0)}return(a=P.yieldResult)?P.yield(a.put("service:topbar:fallback",new _.mE({innertubeResponse:b.get("response.topbar",h)})),0):P.jumpTo(0)})};
_.d.computeTopbarData=function(b){if(!b)return null;var h;return this.isShortsPage&&this.topbarData&&!_.c((h=b.response)==null?void 0:h.topbar,CUF)?this.topbarData:b.response&&"topbar"in b.response?_.c(b.response.topbar,CUF)||null:null};
_.d.onSetTheaterModeEnabled=function(b,h){this.isTheaterModeSession=h.enabled;this.setTheaterModeStyles(h.enabled)};
_.d.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.d.onDarkModeToggledAction=function(){var b=_.W9(window.location.href);if(!_.X8U(b)){(b=!!_.dH(window.location.href).themeRefresh)&&_.vX(new _.Gn("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!b){i9a();b={themeRefresh:1};var h=_.H9().resolve(_.bM);if(h.isOnWatch()){var y,S;h=((y=h.getPlayerFromWatch())==null?void 0:(S=y.getPlayer())==null?void 0:S.getCurrentTime())||0;h>=1&&(b.time_continue=Math.floor(h))}_.sM()||_.Vk()!=="USER_INTERFACE_THEME_DARK"||(b.theme="dark");_.GM(_.Ln(window.location.href,
b))}_.r("web_appshell_refresh_trigger")&&_.S5.caches&&this.refreshAppShellResponse();y=_.kj(window.location.href);_.hp(_.H9().resolve(_.y$),_.mp(y,"theme"))}};
_.d.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.d.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.d.onPlayerFullscreen=function(b){_.v5();this.playerFullscreen=b};
_.d.setRestrictedMode=function(b){var h=_.HT();_.uE(0,58,b);h.save();_.H9().resolve(_.QI).reload()};
_.d.onPageChanged=function(b){b.detail.newPageType==="ytd-watch-flexy"||b.detail.newPageType==="ytd-watch-fixie"||b.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.e4("WEB_PAGE_TYPE_WATCH")):b.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.e4("WEB_PAGE_TYPE_SHORTS")):b.detail.newPageType==="ytd-browse"&&b.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.e4("WEB_PAGE_TYPE_MINI_APP")):_.r("web_frosted_glass")&&b.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.e4("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.e4("WEB_PAGE_TYPE_UNKNOWN"));b.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.d.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.d.onGuideToggleTap=function(){_.Sx(this.hostElement,"yt-guide-toggle")};
_.d.onGuideToggleHover=function(){_.Sx(this.hostElement,"yt-guide-hover")};
_.d.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.d.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.d.setMastheadTheme=function(){var b=_.KZ(this.hostElement).querySelector("#masthead");b&&(b.dark=b.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),b.isDarkThemeForced=!1)};
_.d.onRequestPanelModeChange=function(b,h){this.hideHeaderShadow=h.mode!=="seamed"};
_.d.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.d.onDrawerIronSelect=function(b){_.mi(b).id==="guide"&&this.processDrawerIronSelect()};
_.d.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var b="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(b="opened"));_.Sx(this.hostElement,"yt-autonav-pause-guide-"+b)};
_.d.onAddElementToApp=function(b){_.$x(this.hostElement).appendChild(b.detail)};
_.d.onThrottledScroll=function(){var b=_.H9().resolve(_.bM).getCurrentPage();b&&(this.scrollAtTopInternal=b.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.d.canHideMasthead=function(){return this.scrollAtTopInternal&&!!this.fullscreen};
_.d.setFullscreen=function(){if(_.r("external_fullscreen")||!this.isWatchPage){var b=_.r("kevlar_fullerscreen_root_only_killswitch")?!!_.v5():!!_.v5()&&_.v5()===document.documentElement;b=(this.isWatchPage||this.isShortsPage||this.isMiniAppPage)&&(b||this.isFullWindowSession);this.fullscreen!==b&&((this.fullscreen=b)&&_.aw(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.hP().dispatch(_.iNo(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),this.updateScrollAndMasthead(this.isWatchPage&&
this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.F8(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.d.setFullscreenLoggingForShorts=function(b){var h,y,S;return _.Z(function(F){if(F.nextAddress==1)return F.yield((h=_.ye())==null?void 0:h.getPlayerPromise(),2);y=F.yieldResult;(S=y)==null||S.setAppFullscreen(b);_.g3(F)})};
_.d.updateMastheadCssHeight=function(){var b=this.mastheadHeight;this.fullscreen&&(b=0);_.nZ(this.hostElement,{"--ytd-masthead-height":b+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.d.updateNetworkStatusBannerDisplayStatus=function(){var b="unset";this.fullscreen&&(b="none");_.nZ(this.hostElement,{"--ytd-network-status-banner-display":b})};
_.d.updateNetworkStatusBannerCssHeight=function(){var b="unset";this.fullscreen&&(b="0px");_.nZ(this.hostElement,{"--ytd-network-status-banner-max-height":b})};
_.d.updateScrollAndMasthead=function(b,h,y,S){this.iMaxTheaterMode||(S=!1);var F=_.H9().resolve(_.bM).getCurrentPage();b||h||S?(document.body.classList.add("no-scroll"),F.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.Hl(this,this.onScroll)),F.setScrollTop(0),_.nZ(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.Qo()+"px"})):y?_.Sx(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.Sx(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
F.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.Hl(this,this.onScroll)));this.mastheadHidden=b||h||y;this.updateMastheadCssHeight();_.r("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.d.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.d.onYtNavigateAction=function(b){b=this.get("navigateAction.endpoint",b);_.Sx(this.hostElement,"yt-navigate",{endpoint:b})};
_.d.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var b=document.createElement("yt-create-family-dialog");_.$x(this.hostElement).appendChild(b);this.hasCreateFamilyDialog=!0}};
_.d.onSetPushNotificationsEnabledCommand=function(b){var h=this,y=_.c(b,eEA);y&&typeof y.enabled==="boolean"&&(Notification.permission!=="granted"?SFE().then(function(){Notification.permission==="granted"?(YkY(!y.enabled).then(kAA),y.successAction&&_.dh(h.hostElement,[y.successAction])):y.failureAction&&_.dh(h.hostElement,[y.failureAction])}):(YkY(!y.enabled).then(kAA),y.successAction&&_.dh(this.hostElement,[y.successAction])))};
_.d.onYtSignalActionEnableChromeNotifications=function(){Fla(!0)};
_.d.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.c(this.topbarData.hotkeyDialog,YzA)}}})};
_.d.onYtSignalActionShowKeyboardShortcutDialog=function(){_.F8(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.d.onYtEndpointChangeHandler=function(b,h){var y=_.Fo(_.xX);y.pendingPrefetchJob_&&(h=!(!h||h.autonav!="1"),y.pendingPrefetchJob_.resolve(b&&_.MUy(b)?_.nwI(b,h):""),y.pendingPrefetchJob_=null);_.F8(this.hostElement,"yt-pause-active-page-context");_.F8(this.hostElement,"ytd-log-youthere-nav");_.F8(this.hostElement,"yt-prepare-page-dispose")};
_.d.handleCommandWithCommandHandler=function(b,h){_.nt.instance.resolveCommand(b,{form:{element:h}})};
_.d.onYtTimedCommand=function(b){var h=this;b=_.c(b,cpA);var y=b.command;y&&_.N$(_.xP,function(){var S=_.c(y,_.uB8);S?(_.nt.instance.resolveCommand(y),h.maybeLogGetAnswerRequestTick(S)):_.jx(h.hostElement,[y],h.hostElement)},b.timeoutMs||0)};
_.d.maybeLogGetAnswerRequestTick=function(b){b&&b.isFirstRequest&&(_.Ua("search_overview_answer"),_.pI("so_rq",void 0,"search_overview_answer"))};
_.d.onYtSignalActionSkipNavigation=function(){var b=_.H9().resolve(_.bM).getCurrentPage();_.Mi(b)};
_.d.onYtSignalActionCopyDebugData=function(){Hhf()};
_.d.handleEntityUpdateCommand=function(b){_.On(_.c(b,_.YR7).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.d.logFlowLoggingEventCommand=function(b){if(b=_.c(b,_.xZN))if(b.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var h=b.flowEventNamespace,y=b.flowEventType,S=b.flowType;S&&h&&y&&_.dY8(_.nR(h,y,b.flowEventMetadata),S)}else{h=_.Xd();y=b.flowEventNamespace;S=b.flowEventType;var F=b.flowType;F&&y&&S&&h.logFlowEvent(_.nR(y,S,b.flowEventMetadata),F,b.flowNonce)}};
_.d.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.d.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.d.onTouchStart=function(){var b=_.hJ();_.UE()&&_.Vd(b.JSC$13490_screenManager,{visualElement:b.ve})};
_.d.handleSelectLanguageCommand=function(b){if(b=_.c(b,UpN).hl){var h=_.HT();h.set("hl",b);h.save();_.H9().resolve(_.QI).reload()}};
_.d.handleConfirmDialogEndpoint=function(b){(b=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(b))&&this.ytOpenPopupBehavior.openPopup(b)};
_.d.handleOpenPopupNavigationEndpoints=function(b,h){(b=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(b))&&this.ytOpenPopupBehavior.openPopup(b,h)};
_.d.handleSaveCommandToSessionStorage=function(b){if(b=_.c(b,_.t6N)){var h=b.key;h&&b.command&&window.sessionStorage.setItem(h,JSON.stringify(b.command))}};
_.d.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(b){b&&b.active&&b.active.postMessage({type:"refresh_shell"})}).catch(function(b){b.name!=="SecurityError"&&_.QT(b)})};
_.d.onDeviceThemeChanged=function(){var b=_.kg();_.uE(_.HT(),185,b);_.HT().save()};
_.d.handleYtRegisterPromoCommand=function(b){if(_.c(b,Jp2)){var h=_.H9().resolve(_.bM).getCurrentPage()||this.hostElement;P2A().registerPromoCommand(_.c(b,Jp2),h)}};
_.d.onYtNavigateHomeAction=function(){if(!_.r("kevlar_miniplayer_navigate_home_from_app_killswitch")){var b,h,y,S,F=(S=(b=this.topbarData)==null?void 0:(h=b.logo)==null?void 0:(y=h.topbarLogoRenderer)==null?void 0:y.endpoint)!=null?S:_.S1;this.ytComponentBehavior.resolveCommand(F)}};
_.d.onYtLocationCollectionCommand=function(b){bGP(_.c(b,fPd))};
_.d.onYtGetLocationCommand=function(b){QXY(_.c(b,ikN),this)};
_.d.updateRenderGuideFromBinding=function(b){this.renderGuide=b.detail.value};
_.d.updateGuidePersistentAndVisibleFromBinding=function(b){this.guidePersistentAndVisible=b.detail.value};
_.d.updateMiniGuideVisibleFromBinding=function(b){this.miniGuideVisible=b.detail.value};
_.d.onThemeSelected=function(b,h){var y=_.HT(),S=b||h?b:_.kg(),F=(S&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!S&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.X8U(_.W9(window.location.href));_.uE(0,165,b);_.uE(0,174,h);y.save();F&&_.F8(this.hostElement,"yt-dark-mode-toggled-action",[S]);_.F8(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.d.getCurrentTheme=function(){return _.E0()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Vk()};
_.d.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.d.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.d.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.d.handleShowConsentPrimitive=function(b){var h=this,y,S;return _.Z(function(F){if(F.nextAddress==1){try{y=(S=_.ye())==null?void 0:S.getPlayerPromise()}catch(a){}return F.yield(NvE(b,y),2)}_.F8(h.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.g3(F)})};
_.d.handleSelectActiveIdentityEndpointInternal=function(b){_.Yg();b=_.c(b,_.e47);if(b!=null&&b.supportedTokens){b=_.L(b.supportedTokens);for(var h=b.next();!h.done;h=b.next())h=h.value,h.accountSigninToken&&_.GM(h.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.d.handleUpdatePermissionRoleCommand=function(b){if(b=_.c(b,_.eGo)){var h;this.hasDelegation=!((h=_.c(b.renderer,_.JJ8))==null||!h.status)}};
_.d.registerWithViewTransitionManager=function(){var b=_.H9().resolve(_.XS(_.$O));if(b){var h,y=(h=this.guide)==null?void 0:h.querySelector("#scrim"),S;h=(S=this.guide)==null?void 0:S.querySelector("#contentContainer");y&&h&&b.isAnyTransitionEnabled&&(S={},b.viewTransitionCoordinator.registerElement(y,(S.slide="app-drawer-scrim-page-transition",S["lockup-to-watch"]="app-drawer-scrim-page-transition",S["learning-journey"]="app-drawer-scrim-page-transition",S)),y={},b.viewTransitionCoordinator.registerElement(h,
(y.slide="app-drawer-container-page-transition",y["lockup-to-watch"]="app-drawer-container-page-transition",y["learning-journey"]="app-drawer-container-page-transition",y)))}};
_.tm.Object.defineProperties(cO.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.r("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky&&(!this.scrollAtTop||!_.r("kevlar_show_chips_on_scroll"))}}});
_.tm.Object.defineProperties(cO,{template:{configurable:!0,enumerable:!0,get:function(){if(pna===void 0){var b=document.createElement("template");_.D(b,'\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');
b.content.insertBefore(_.l().content.cloneNode(!0),b.content.firstChild);pna=b}b=pna;return b}}});
cO.prototype.onOpenHotkeyDialog=cO.prototype.onOpenHotkeyDialog;cO.prototype.setFullscreen=cO.prototype.setFullscreen;cO.prototype.onAddElementToApp=cO.prototype.onAddElementToApp;cO.prototype.onDrawerIronSelect=cO.prototype.onDrawerIronSelect;cO.prototype.onGuideOpenButtonHover=cO.prototype.onGuideOpenButtonHover;cO.prototype.onRequestPanelModeChange=cO.prototype.onRequestPanelModeChange;cO.prototype.onPageDataUpdated=cO.prototype.onPageDataUpdated;cO.prototype.onPageChanged=cO.prototype.onPageChanged;
cO.prototype.onSetTheaterModeEnabled=cO.prototype.onSetTheaterModeEnabled;cO.prototype.updateMastheadData=cO.prototype.updateMastheadData;cO.prototype.onYtPageManagerAttached=cO.prototype.onYtPageManagerAttached;cO.prototype.observePersistentPanelVisibility=cO.prototype.observePersistentPanelVisibility;cO.prototype.observeGuideVisibility=cO.prototype.observeGuideVisibility;cO.prototype.guideIsVisibleButNotPersistentSelectorChanged=cO.prototype.guideIsVisibleButNotPersistentSelectorChanged;
cO.prototype.isInlinePreviewEnabledChanged=cO.prototype.isInlinePreviewEnabledChanged;cO.prototype.isWatchPageChanged=cO.prototype.isWatchPageChanged;cO.prototype.dispatchFrostedGlassMode=cO.prototype.dispatchFrostedGlassMode;_.V([_.B(_.NT),_.f("design:type",Object)],cO.prototype,"ytdReduxBehavior",void 0);_.V([_.B(_.PQ.YtEventForwardingBehavior),_.f("design:type",Object)],cO.prototype,"ytEventForwardingBehavior",void 0);
_.V([_.B(_.xN.YtOpenPopupBehavior),_.f("design:type",Object)],cO.prototype,"ytOpenPopupBehavior",void 0);_.V([_.B(_.mx.YtActionHandlerBehavior),_.f("design:type",Object)],cO.prototype,"ytActionHandlerBehavior",void 0);
_.V([_.B({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.$J.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.r("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var b;((b=this.actionRouterNode.hostElement)!=null?b:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var b;((b=this.actionRouterNode.hostElement)!=null?b:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(b){this.actionRouter_.handleAction(b.detail)}}),
_.f("design:type",Object)],cO.prototype,"ytActionRouterBehavior",void 0);_.V([_.B(HUX.YtdAppBehavior),_.f("design:type",Object)],cO.prototype,"ytdAppBehavior",void 0);_.V([_.B(_.Q5.YtEndpointBehavior),_.f("design:type",Object)],cO.prototype,"ytEndpointBehavior",void 0);_.V([_.B(sJx.YtEndpointHandlerWithYpcBehavior),_.f("design:type",Object)],cO.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.V([_.B(JSA.YtLogYpcFlowCommandsBehavior),_.f("design:type",Object)],cO.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.V([_.B(_.Q.YtRendererBehavior),_.f("design:type",Object)],cO.prototype,"ytRendererBehavior",void 0);_.V([_.B(_.ug.YtComponentBehavior),_.f("design:type",Object)],cO.prototype,"ytComponentBehavior",void 0);_.V([_.C({selector:_.yoA}),_.f("design:type",Object)],cO.prototype,"tabGesturesIsActive",void 0);_.V([_.C(),_.f("design:type",Boolean)],cO.prototype,"renderGuide",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],cO.prototype,"guidePersistentAndVisible",void 0);_.V([_.C({selector:_.bZf}),_.f("design:type",Boolean)],cO.prototype,"guideIsVisibleButNotPersistent",void 0);_.V([_.C({value:!1,reflectToAttribute:!0}),_.f("design:type",Boolean)],cO.prototype,"standalone",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],cO.prototype,"miniGuideVisible",void 0);
_.V([_.C(),_.f("design:type",Object)],cO.prototype,"persistentPanelEnabled",void 0);_.V([_.C({selector:ywY,reflectToAttribute:!0}),_.f("design:type",Boolean)],cO.prototype,"persistentPanelVisible",void 0);_.V([_.C({selector:_.ENf}),_.f("design:type",Number)],cO.prototype,"miniplayerPlaybackState",void 0);_.V([_.C({selector:_.Ci,reflectToAttribute:!0}),_.f("design:type",Boolean)],cO.prototype,"miniplayerIsActive",void 0);
_.V([_.C({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.f("design:type",Boolean)],cO.prototype,"isInlinePreviewEnabled",void 0);_.V([_.C(),_.f("design:type",Boolean)],cO.prototype,"isInlinePreviewDisabled",void 0);_.V([_.C({reflectToAttribute:!0,value:function(){return _.m$("START_IN_FULL_WINDOW_MODE")}}),
_.f("design:type",Boolean)],cO.prototype,"mastheadHidden",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],cO.prototype,"playerFullscreen",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],cO.prototype,"fullscreen",void 0);_.V([_.C({value:!1,reflectToAttribute:!0}),_.f("design:type",Boolean)],cO.prototype,"hideHeaderShadow",void 0);
_.V([_.C({value:{GUIDE_ALT_LABEL:_.Mt("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.f("design:type",Object)],cO.prototype,"menuStrings",void 0);_.V([_.C({computed:"computeTopbarData(data)"}),_.f("design:type",Object)],cO.prototype,"topbarData",void 0);_.V([_.C({selector:_.TcY,reflectToAttribute:!0}),_.f("design:type",Boolean)],cO.prototype,"isWatchPage",void 0);_.V([_.C({selector:_.Gv5,reflectToAttribute:!0}),_.f("design:type",Boolean)],cO.prototype,"isShortsPage",void 0);
_.V([_.C({selector:function(b){return _.gR(b)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.f("design:type",Boolean)],cO.prototype,"isMiniAppPage",void 0);_.V([_.C({selector:function(b){return _.gR(b)==="WEB_PAGE_TYPE_BROWSE"}}),
_.f("design:type",Boolean)],cO.prototype,"isBrowsePage",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Boolean)],cO.prototype,"scrolling",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],cO.prototype,"hasDelegation",void 0);_.V([_.C({reflectToAttribute:!0,value:!1}),_.f("design:type",Boolean)],cO.prototype,"guideScrolledByTouch",void 0);_.V([_.C(),_.f("design:type",Object)],cO.prototype,"isFrostedGlassInitialized",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],cO.prototype,"frostedGlassExp",void 0);_.V([_.C({selector:function(b){return b.ui.chipBarIsSticky}}),
_.f("design:type",Boolean)],cO.prototype,"chipBarIsSticky",void 0);_.V([_.C({selector:_.hqx}),_.f("design:type",Boolean)],cO.prototype,"scrollAtTop",void 0);_.V([_.C({computed:"computeIsHomePage(isBrowsePage, data)"}),_.f("design:type",Boolean)],cO.prototype,"isHomePage",void 0);_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],cO.prototype,"hasPendingWatchNavigation",void 0);
_.V([_.C({reflectToAttribute:!0}),_.f("design:type",Object)],cO.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.V([_.C(),_.f("design:type",Object)],cO.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.V([_.Pn("guide"),_.f("design:type",Object)],cO.prototype,"guide",void 0);_.V([_.Pn("guide-service"),_.f("design:type",dZE)],cO.prototype,"guideService",void 0);_.V([_.Pn("guide-inner-content"),_.f("design:type",HTMLDivElement)],cO.prototype,"guideInnerContent",void 0);
_.V([_.to("#persistent-panel-container"),_.f("design:type",HTMLElement)],cO.prototype,"persistentPanelContainer",void 0);_.V([_.C({selector:_.id4}),_.f("design:type",String)],cO.prototype,"frostedGlassMode",void 0);_.V([_.OB("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],cO.prototype,"dispatchFrostedGlassMode",null);
_.V([_.C({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.f("design:type",Object)],cO.prototype,"isFrostedGlassDisabled",void 0);_.V([_.OB("isWatchPage"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],cO.prototype,"isWatchPageChanged",null);_.V([_.W("isHomePage","chipBarIsSticky","scrollAtTop"),_.f("design:type",Boolean),_.f("design:paramtypes",[])],cO.prototype,"applyFrostedGlassToChipBar",null);
_.V([_.C(),_.f("design:type",Object)],cO.prototype,"isChannelOrPlaylistPage",void 0);_.V([_.zj("isInlinePreviewEnabled"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],cO.prototype,"isInlinePreviewEnabledChanged",null);_.V([_.OB("guideIsVisibleButNotPersistent"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],cO.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.V([_.OB("guidePersistentAndVisible","miniGuideVisible"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],cO.prototype,"observeGuideVisibility",null);_.V([_.OB("persistentPanelVisible"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],cO.prototype,"observePersistentPanelVisibility",null);
_.V([_.u3("attached"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],cO.prototype,"onYtPageManagerAttached",null);_.V([_.OB("data"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype",Promise)],cO.prototype,"updateMastheadData",null);_.V([_.u3("yt-set-theater-mode-enabled"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent,Object]),_.f("design:returntype")],cO.prototype,"onSetTheaterModeEnabled",null);
_.V([_.u3("yt-page-type-changed"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],cO.prototype,"onPageChanged",null);_.V([_.u3("yt-page-data-updated"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],cO.prototype,"onPageDataUpdated",null);_.V([_.u3("yt-request-panel-mode-change"),_.f("design:type",Function),_.f("design:paramtypes",[Event,Object]),_.f("design:returntype")],cO.prototype,"onRequestPanelModeChange",null);
_.V([_.u3("yt-guide-hover"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],cO.prototype,"onGuideOpenButtonHover",null);_.V([_.u3("app-drawer-transitioned"),_.f("design:type",Function),_.f("design:paramtypes",[Event]),_.f("design:returntype")],cO.prototype,"onDrawerIronSelect",null);_.V([_.u3("yt-add-element-to-app"),_.f("design:type",Function),_.f("design:paramtypes",[CustomEvent]),_.f("design:returntype")],cO.prototype,"onAddElementToApp",null);
_.V([_.u3("yt-set-fullerscreen-styles"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],cO.prototype,"setFullscreen",null);_.V([_.u3("yt-open-hotkey-dialog"),_.f("design:type",Function),_.f("design:paramtypes",[]),_.f("design:returntype")],cO.prototype,"onOpenHotkeyDialog",null);_.V([_.Yx({is:"ytd-app"})],cO);_.Dh().processSignal("eor");
_.mn();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
